"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)([0x800000, ]);
/*

 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 $rB,GqB,Irq,hBp,qjO,jOd,IO,mru,cds,qr,ls,kqB,vaa,gX,Mr,Lpu,QOs,xrO,Zr,BXO,Urj,P2,Adv,oaO,drB,rdX,Wps,ars,Yj2,Kpd,uOa,nau,In,ln,eB,EaO,Vi,De,p2u,Qi,Ze,X2X,$8s,HX,WX,bQr,lep,m8O,J5,D8a,c52,un,kAX,vbd,LOv,Rn,eWj,Ou,x8u,Bzd,MBj,LD,ZQO,tBX,k3,snO,DY,gbv,A5s,FOO,WOB,aeO,BL,Cnr,YuO,J5q,KO2,uJX,nbs,OQO,pXX,Sus,Gav,IYd,q1v,V8p,cc2,Dfp,Nf,kad,TjO,Jc,Uf2,M8j,g3v,ZDB,Ac2,KD,RWX,uF,R5,nD,t8O,O1,iDp,zes,o3q,XW,PFO,dfa,yca,rca,HDO,F9v,W92,aYs,NjO,pD,CF2,K9X,ReO,ODs,jo,E3O,XLp,mh,bAO,qvO,S1B,jIu,mEj,eKB,QIp,
czs,fKr,BdO,UEj,gIa,Azp,zKq,oIs,dEa,rzj,Wh2,Ndp,YvO,JzO,RKj,Sv2,oI,$za,bNv,IJv,Hg,Wg,NE,Ov,Ev,Xa,Dzr,jc,kfj,Q$a,fJv,TmX,Bmu,kT,Uzs,LN,Qs,xT,fN,gTO,AjB,McO,ZNv,tcd,oTu,iNs,Ppr,dzd,rju,sZ,UZ,FfO,HN2,Wfp,NmO,aJj,YZr,CpB,Jja,Pp,dm,rm,FD,Wp,uDs,a$,nTj,SZj,KN,XpO,$b2,GlO,nN,by2,Izq,hL2,OZ,lzq,EZ,VSO,Dbu,pN,klq,c4v,vpu,Lnr,Qkq,xbu,$p,fzO,TVO,Gl,BVv,Ubp,be,Ik,h4,qb,skj,A4s,gpj,jS,Zyp,tSa,zL2,mn,Dz,ca,kp,va,Qa,opv,iyr,dbp,y4a,Fn2,Hyv,Wnj,azO,NVr,Ygu,Tl,Cev,J4X,u0O,RLO,npa,Oy2,wap,EpB,paB,gV,Sga,Mb,Zz,Xap,
bTj,ICO,h8B,jlO,lCv,m2r,c2v,kxO,vuB,LFr,Qlj,x2j,fCj,sla,ie,guO,A2X,Maj,ZTv,taO,z8a,iTs,J2j,KFX,uNq,OTq,wrp,Wa,EuO,XrO,b0s,IZq,hCs,qMB,jJ2,lZd,mQp,eCv,DQB,cfO,$Qs,ktv,v82,LTq,QJj,xQj,fZq,Tvs,BvO,UQr,MTs,g8v,zCj,Z0j,tTj,PIO,dQ2,yfO,o8s,FTO,i0q,WTO,bG,aZs,Il,q2,Nvr,CI2,Jfq,RCv,b3B,O0d,n8a,E8q,SMp,w$q,mcX,qBd,eTO,Vkj,Dcr,cCp,kFj,L7d,vzs,Qj2,xcq,fpd,Tyj,Ucd,gzB,ACv,MkB,tkr,Z3d,Nyr,ea,YBr,JCO,K7r,ujs,RTO,nzq,w3r,Ezd,p3B,QQ,xu,SBa,hpp,Br,s8,m1v,VOX,BiX,t2,gWO,ABq,zpd,ZLX,tO2,dk,oWa,iLs,d1a,yBu,rBX,FE2,HLj,
WEr,aUB,YGa,CBp,KEO,JBO,nWa,J2,Rl,wfa,EW2,pfO,SGr,Xfp,$9u,biv,hjO,IOj,qQ,lI,v_r,DZ,BhO,U9p,c$,g_O,sbX,d9O,yF2,rFO,Hij,YAr,JF2,K0X,u5O,Rjv,Ois,E_v,pzO,QA,XzO,sM,Gsv,b1q,I5a,qYp,$Bd,SAr,h2p,B$,l5v,DBr,e2s,v2O,LGr,xBO,f5s,THr,BHO,oJ,UBq,g2u,sBs,AMs,Z1u,dv,o2u,Fq,W$,H$,pAO,z2B,b8q,myB,Dyd,Vej,vGv,C0,Q1j,Tas,Bar,RJ,s1X,OM,wv,Mev,zxp,i8v,Pxp,dyr,p0,yUq,ST,rUs,H8X,WtX,a8a,Naq,CxB,bM,JUB,Kts,hC,lM,nGp,O8B,wwp,SzB,Xwv,Gbd,bJu,eDq,VWs,jLu,cb2,kbO,vVa,f3,B3,UB,f1p,T2X,AC,B2u,Uhu,sLq,gVO,MWj,ZJr,tWj,zD2,Abp,
oVa,tC,P4B,HJ2,zF,FHj,WHp,iJO,a1v,iM,Yiu,C4j,Jbs,KHp,RDu,uIO,nVX,EVq,OJa,SiO,h3u,j3X,mir,Dis,Vuq,e3X,c_2,kgq,LLa,xiB,Q3r,TLj,Yz,Uij,s3O,gcO,A_X,tur,ocv,z3O,ivr,PUd,uM,div,y_X,FLv,WLX,Y3O,J_a,CUa,cf,KL2,Hvr,pqO,Xqa,$PX,Gmu,fL,bUv,hZX,lEq,VXa,eZO,vPu,L$a,QWB,xPa,TKj,AZ2,BKO,sWq,gPs,MXp,ZUX,zZu,tXv,iUO,oPu,Pf,P9v,yZO,rZO,aEj,N1,YW,NKs,YSq,CL,uTd,RN,nL,OG,wTs,wi,SSO,SO,XTa,$O2,GiB,bwO,Gv,I0v,hAr,qbO,l0O,eA2,cQO,vSO,DO,LsO,QoB,xOd,f0B,T4a,B4v,UOd,soq,vz,MnO,Zwq,tnX,zAa,oSO,iwp,Pmv,dOu,yQr,rQv,FsO,Hwq,
Wsp,sA,ESu,pj2,gh,AF,M9,Sbr,Xjs,$ev,G9j,bXO,ILr,hhq,ehr,VLB,Deq,cLr,k9d,ob,Pz,dh,yz,Hz,Wz,ab,Lur,Y_,xeX,Ci,fLB,Tq2,JF,BqX,Ueu,s_a,Pgs,yLr,aLp,JLj,CgO,des,Kuu,nnr,ldq,Xyv,cIu,G8O,VHs,k8r,wh,LNO,pi,x5X,fdq,B8r,U52,s9O,AIB,$2,Znr,tHO,zrO,oyO,inj,PHu,d5j,MH2,FNs,HnX,WNv,b6,KNO,uvB,JIq,nyj,OnO,Eya,p5j,w5p,hcq,jMO,moO,VAp,cA,xop,L6B,QMv,sMa,ANO,MAB,ZG2,tAO,zcB,oQa,sY,amX,Y0v,HGO,F6O,N5O,P$O,JNs,$Ka,Rcd,nQj,OGs,Vhv,caO,eua,fGp,mKB,iGu,xKr,uuq,XvB,DKu,C$j,yNv,doq,rNs,W6O,lGj,NB,dKq,rav,F22,HkO,W2j,noX,SdX,
XNd,p1,GZs,hmp,mts,lap,VKX,DtO,kZu,LA2,vUr,QZO,xtB,fad,TQB,UtB,BQj,D8,tKB,ZMu,MKu,PAB,zmX,dtr,iMs,yWB,rWp,aas,HMO,WAq,Y2p,KAr,umO,OMu,wHO,EUp,pHX,XHj,GIO,xG,IAO,jG2,hQs,lAO,DAr,cxB,Las,xAd,sz,AU,UAO,sGd,My,Z8,ggr,tU,zX,Axv,o1,MNr,ix,ZcX,tNu,da,zQp,oga,icX,PPr,dAO,rxa,yxO,HcO,NcB,aAj,Y4O,CPj,FaB,Jxq,RQv,ueO,Waj,ngO,Ocq,Ww,wRB,pRO,Egq,S4O,XRp,GOq,$_B,bW2,Ny,hzu,qEs,I_j,l_2,m_d,ezj,kOr,QAv,U_s,Mfr,YG,zzd,oxO,C8,iWp,R1,n8,HWO,K8,Ez,WbB,a_u,YEu,CXO,Kbj,Rzj,nxr,OWO,wPr,SEj,IuO,Gd2,pPu,hbu,q5r,b4,bpB,jR2,
qh,lur,mCr,ebX,VRu,vYu,DCO,kdv,fua,TUv,AJd,gY2,tRq,yJp,rJq,Hpd,auv,NUv,C3X,JJr,KIr,Rbs,nYO,Opr,p8j,Gwv,bfs,S5a,hwj,jes,qpO,IIq,lIq,ewO,VEa,Dwv,c8p,kwj,xV,fJ,Ui,g2,Qer,xwa,Ttd,ser,Ab,Mh,g4u,Z1,Zfj,tEs,zwB,zb,y8j,Wer,NtB,Ypj,C0s,KeO,uiu,Rwr,wmX,i4,E4q,XmO,Ph,$LO,hRu,d2,l$v,yR,Hh,Wh,mLa,Vgr,eR2,cKB,kyv,v1p,LXX,DLq,BpO,ULa,g1r,MgB,o1u,zRa,i4v,dLd,yKO,rKX,FXa,H4O,WXO,a$r,C12,Npu,Jb,KX2,KJ,u7O,RL,nJ,RRX,n12,O4O,wZO,E1u,Oi,pZj,Snu,XZs,$Rd,bEr,Icd,hgp,q$a,jvB,mRX,lcX,w2,VPv,c$O,kr2,vmd,LQa,Tur,UR2,XI,gma,
MPj,ZEr,tPv,zga,omB,iEO,PWr,dRu,Buu,sva,y$u,r$s,acO,NuO,Y$O,CWd,IDO,jwu,lDs,m3j,qav,vlX,x3q,LMj,fDj,U3O,glO,M0r,olj,zlX,yud,eu,rur,FMj,Vf,H6O,DP,WM2,aDv,NYa,COu,Yav,Jus,KMj,uzs,Rld,Xoq,GSj,IQr,bFu,Eld,O6s,qcv,lQO,cw2,kSu,Qzr,szp,Awv,Lv,MMX,tMO,zad,iFv,rwO,W8X,Ycr,CYd,Jwr,K8j,wna,uHB,XnO,$sO,GTp,Iiq,Bq,hqO,jup,li2,ms2,eqr,VbO,Dsu,crO,v6p,Lla,A_,Quu,xsO,Trj,ZP,fis,Usp,Mbv,o3,ZYO,tb2,zqj,PQX,dsu,o6j,rr2,aiB,NrO,YKu,F8,CQO,Rqa,n6O,Ni,E6d,OYu,wO2,XOq,$ZB,GQq,qUs,mZq,lfa,jVr,eGs,DZO,csX,xZu,kQj,ffv,B0u,
T0v,ZbO,ofp,PCa,yss,W4v,u_O,BT,nfs,pBs,XBj,fU,i9,qLj,eX2,mjO,Dja,ceq,vFB,kWr,LSr,Qas,PT,NqO,jar,V6X,lRO,zm,TSj,BSr,Ujj,sad,ZmO,t6O,oF2,imX,Pzp,djX,yed,JZ,rep,FSa,Hmp,WSO,aRp,nU,NSB,Jer,ugB,RXX,Xsr,GUr,bRj,Igr,qN2,jCO,bm,mSr,e4j,VmO,DSr,cna,kUd,LqO,xSv,TZu,BZO,ZRs,Anu,tmB,iR2,Pd2,en,dSO,ynX,rnj,Wqs,NZd,aga,Cdu,KqX,vj,R4r,nqB,u6p,ORv,wQX,pQu,XQs,SNs,$Dr,EqO,GVr,bPp,INp,hdr,qQu,jS2,lNs,mDO,edp,cVX,DD2,kVO,LkO,vKq,Lw,QSs,TsO,gKO,xD2,ZPu,tdu,zdv,oKr,dDq,Nsq,YQu,JVj,Kkd,zi,OPa,SQB,GNO,im,qq2,b5O,I9a,hPu,
j42,DTa,r4,cy2,kNu,LUX,Q4X,xTX,f9d,BNq,UTj,lFu,IFj,qTp,eor,mMd,VJr,DMX,kJr,Liv,xMv,TFX,BFO,sFB,dMO,Fiu,Wi2,aFq,NFv,YTv,C7B,Kiu,u1X,O9u,wF2,EE2,pFd,STX,XFO,$Jd,GcO,hEp,mJq,nw,Ob,w4,eEr,V$u,Sn,cXO,UJr,t$q,M$2,Krq,ud2,REd,v9a,B1a,xJq,Oqs,wcO,E9q,pcX,g9d,SmB,$IB,boO,qRX,js2,mu,L5p,xI2,TBs,BBO,grO,MlO,AEr,z6j,ioB,W5r,F5d,dIs,Hop,yEa,abp,JEq,gq,AL,SRO,w_B,$VB,G5O,IXr,h9a,ZL,qCX,mVp,e9O,VCa,DVr,T$q,fXa,rq,MCq,Ne,tCO,z9O,oXO,i$p,Pjv,dVp,yAr,rAq,FDq,H$O,WDO,CX,aXO,N$j,YCj,Cja,JAj,KDr,uFa,R9O,KX,nXO,O$r,wV2,
EXO,pVB,SCv,XVr,$vr,GPB,b_O,I4p,hka,qOr,R_,l4u,ekO,Dvd,v7v,xvv,f4a,Tod,Uva,g7s,APa,MFs,bH,i_q,zkv,P_d,dvr,yPu,H_v,W1d,a4u,YOs,v5,JPB,c5,uwB,Rk2,Ln,n7p,O_X,wWu,E7O,xy,$lu,bzO,lvj,j8a,eOX,VUp,AI,Dlv,cOj,vOa,Q8s,xlB,Teq,Bep,Lgj,UlO,Zzr,izp,PRq,M5,dl2,yO2,av2,rOO,Hzd,Wga,u$X,YxX,ROr,Ozd,EOO,pIa,Sxr,XI2,$da,Gpq,IMa,hNO,qyu,jXO,lMv,eNO,Ddp,vMp,fMr,UdO,gMs,ZSq,d8,tjv,zNq,oMO,iSd,PNv,y1O,r1X,FBv,HSO,WBu,aMv,Nnd,Yyr,CNs,J12,KBB,RNq,uru,wev,pev,Fv,SyX,G2r,$Fa,htd,qfp,jYr,eta,c7X,DFs,mFX,Lzr,vhq,BTO,QYB,Yy,
fWB,t1v,gh2,A7s,M1q,Z7v,zts,i7O,ohq,Cn,JI,Wzq,dFu,H7u,FzX,y7d,r7O,Yfd,J7r,uYs,KzO,RtO,EhB,wDr,Sfu,GEa,ITO,$$a,hIs,jQq,q9r,m$p,D$X,Oh,chd,kEd,QQd,U$v,tqO,Eh,oBX,P2O,FZr,rhB,d$p,yhd,G3,NOa,HlO,WZB,Y9p,JhX,C2r,RIB,nBO,wus,EBO,puu,S9q,Xuu,G$u,bsO,LG,hVO,qrj,eVv,Vxq,Bv,DWq,k$q,sPa,Mo,xWr,UWO,flu,TWa,ZsX,Mxp,is2,txu,PLX,dWB,tN,rHd,FCr,HsO,yHX,i$,WCr,z3,CLr,wia,Eed,pi2,Srp,Xid,$UB,hFu,bCr,IVj,GDq,j0s,eFv,ct2,kDr,Lop,fVB,Q0p,xUu,T7q,UUq,s0X,gAr,AtB,Mir,ZCj,zFd,aM,iCX,ytO,dUX,Fos,rtv,HCa,WoO,N7p,YHr,EAO,OCB,
XUp,$nq,jq2,lou,mnO,eYr,VsO,DnB,v0r,LWa,QqB,fod,Tbr,BbO,UnO,sqv,g0O,MsO,ZVd,tsB,$o,P5s,iVa,o0d,zYd,yvp,HVs,rvO,aov,Nbq,C5X,Jv2,KWv,uBd,RYj,pkO,n0s,OVs,wkO,SlB,Xkq,$gO,E0O,qK,Iyj,q6s,hvX,lk,jDa,mgO,evO,V9d,lya,DgO,c62,kYu,vsu,LVO,xg2,fyv,T3O,B3s,gsp,sDd,zva,Uga,eh,osd,A6u,t9O,PKa,dgj,y62,r6j,FVv,WVX,ay2,N3O,CKv,KVu,Rv2,Oxq,XKa,pKX,S6v,Es2,wKu,$Nu,fk,G_X,TB,bBs,IBr,gR,lBX,e7q,VpO,DNr,cmq,k_d,vCp,MK,ZG,TfO,Qtq,LRa,xNO,Pws,z7v,fBv,tpq,WRs,aBp,Nfd,Y7r,Cwv,uLa,nCj,w9u,p9s,S7u,X9v,Iqu,bZj,hfO,jhB,Od,efd,
Vrp,DGp,cDj,k6j,v5r,Lds,Ed,pk,fqj,Twr,UGO,ADO,iZs,Fd2,rD2,HZO,aqa,Nwu,Y_X,CJd,JDv,Kda,hW,uCp,S_2,Xlj,wlB,OZu,plr,E5v,h$p,qV2,jyq,l6O,muO,e$s,cTa,DuO,V4r,UuO,T6r,syX,g$p,AT2,t4B,z$p,M4p,Zt2,Htv,a6j,YVp,JTs,u22,n$B,pMs,SVr,XMd,brB,GoB,$xO,I3X,hiX,qtq,j22,l3a,mxu,eiO,V5O,Dxp,c0q,vHq,LJB,Q2d,xxu,f3j,TAr,Uxu,s2j,gHO,A0u,M5r,Zrp,irv,Pfa,y0O,FJj,r0a,Hru,QX,WJp,a3j,NAa,YtX,ubd,KJs,Riv,nHs,Ors,wtq,StB,Xtv,$mr,GMO,bgr,Itr,hyd,qwO,jpd,ltq,mmv,V_a,eyu,DmO,cgO,kMB,vDr,Ljv,Qpv,xma,ft2,Mt,B_O,Ums,spv,gDs,AgO,ZgB,
t_O,zyr,oDq,igO,PTs,ygj,rgv,Hg2,oZ,N_O,uhO,Jgj,CTj,Ywr,Kjr,Oga,wCd,EDu,pCq,XCp,$4r,G0u,I22,bhr,hsj,qWv,j6s,esu,VZd,D4d,cSa,k0u,vRj,x4u,f2u,aZ,gRq,ASs,ZhO,oRO,zsr,ihO,PVj,Nt,CM,ySO,rSO,uA,RZ,a2a,FyO,Hhj,CV2,KyX,ukO,Rss,ERp,SWO,XEq,$Yu,G4p,bap,h5u,qer,jfj,lnO,mYj,e5O,V7p,wQ,DYX,clu,pM,k4a,vNO,LcO,Qfr,xYq,fnu,$g,GI,TxO,Bxv,bP,UYO,sfa,gNX,Al2,ZaX,t7p,oNr,rla,yld,dYB,Fcq,Has,KcO,Nxs,Yed,C8q,anr,JlO,uVX,R5u,OaO,ENs,hx,XGv,$0q,GKO,b2d,I7a,qkX,l7X,VDB,vdq,c3O,qA,D0X,TEa,U02,jN,s7X,gdO,A3u,MDu,Z2j,zJq,od2,
PSa,d0q,r32,FKO,NEX,a7O,CSu,J3d,KKO,uKd,ndB,O2O,w4X,Edd,p4d,SkO,X42,$ps,GzO,ISa,hnv,end,V3u,Dpq,cGB,LYa,vR,fSr,TGO,BGB,Up2,sxX,giO,M3s,ZjO,t3O,znO,ijO,PZO,dpu,xg,yGO,rGa,WYO,aSB,fc,TI,CZO,NGj,JGs,Rnd,KYs,niO,wJs,Ax,Ei2,pJq,$kq,buu,MA,h_s,qDp,jcd,lka,mkO,e_j,Vzp,Dk2,LvB,fkj,Qcq,xkO,TCX,gtu,BCr,scu,Aqr,Mzd,ZuO,otO,iuq,Pir,yqr,rq2,YD2,NCO,nta,Etu,rc,p1r,CMs,SDp,X1r,Gu2,h1s,qPr,cRq,kus,vwB,Lw2,Qia,xXO,Tld,Blr,siX,ARB,UX2,gwv,ZI2,MwO,z1O,PqO,owu,dXB,yRr,rRd,Fwv,HIp,Wwr,NlO,axu,Kwj,nwX,uM2,OIu,wx2,Ewq,
Kc,pxr,SPB,RG,$qv,XxO,GRO,Ijd,bK2,ljO,mqa,VYs,DqO,kRp,vLp,LP2,Qdp,TDr,Uqd,A9p,gL2,MYB,ZK2,tYd,iKv,YFv,r9p,J9q,KPj,R0r,nLd,pSp,SFr,XSO,$7r,Gnj,beX,hUr,qsv,jKr,lHO,VVO,civ,D7r,x7O,fHq,T9j,B9q,U7p,sKd,gJr,MVO,zUO,oJv,ier,PEO,d7s,yiO,Hev,F3q,N9O,CEB,Ji2,K3v,uXq,RUd,Oer,nJd,EJB,G1p,qJa,hHp,jUv,lw2,m6j,VQ2,Qp,cYr,BP,vvd,QU2,x6j,sUp,AYs,tQd,ovO,idO,d6X,yYr,rYX,Hds,awp,NMv,Cav,uta,K_a,JYq,Z_,nva,RHd,Odr,wY2,EvO,pY2,SJ2,XYO,$aX,bHd,Ihp,hSr,qXp,jgO,lhX,mav,eSu,V2s,cpO,khp,vZB,sgj,gZX,Apu,ZHq,t2O,zSa,PvB,yp,
WxO,aha,YXB,Cvs,Jpv,Kxv,uPX,FE,jT,HP,aA,GqW,bOn,qjJ,lrb,jO5,Yx,mri,eBQ,VvQ;$rB=function(){var G,b;return typeof CSS!=="undefined"&&((b=(G=CSS).supports)==null?void 0:b.call(G,"selector(:has(*))"))};
GqB=function(G){return G.visibility!=="hidden"&&G.display!=="none"};
Irq=function(G){if($rB()||G.tagName!=="DETAILS"?!G.matches(bOO):G.querySelector("summary")!==null)return-1;G=G.getAttribute("tabindex")||"0";return Number(G)};
hBp=function(G){return G.some(function(b){return Irq(b)>0})};
qjO=function(G){if(G.textContent||G.ariaLabel)return!0;if(G instanceof HTMLInputElement){if(!G.labels)return!1;G=_.e(G.labels);for(var b=G.next();!b.done;b=G.next())if(b.value.textContent)return!0}return!1};
jOd=function(G){return G.sort(function(b,I){return Irq(I)-Irq(b)})};
_.lra=function(G){G=Array.from(G.querySelectorAll(bOO)).filter(function(b){return(GqB(b.style)?GqB(window.getComputedStyle(b)):!1)&&qjO(b)});
return hBp(G)?jOd(G):G};
_.bs=function(G,b){if(Error.captureStackTrace)Error.captureStackTrace(this,_.bs);else{var I=Error().stack;I&&(this.stack=I)}G&&(this.message=String(G));b!==void 0&&(this.cause=b)};
IO=function(){throw Error("E");};
mru=function(G,b){b=String.fromCharCode.apply(null,b);return G==null?b:G+b};
cds=function(G){var b=!1;b=b===void 0?!1:b;if(eBO){if(b&&(VvO?!G.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(G)))throw Error("F");G=(Dr2||(Dr2=new TextEncoder)).encode(G)}else{for(var I=0,h=new Uint8Array(3*G.length),q=0;q<G.length;q++){var l=G.charCodeAt(q);if(l<128)h[I++]=l;else{if(l<2048)h[I++]=l>>6|192;else{if(l>=55296&&l<=57343){if(l<=56319&&q<G.length){var V=G.charCodeAt(++q);if(V>=56320&&V<=57343){l=(l-55296)*1024+V-56320+65536;h[I++]=l>>18|
240;h[I++]=l>>12&63|128;h[I++]=l>>6&63|128;h[I++]=l&63|128;continue}else q--}if(b)throw Error("F");l=65533}h[I++]=l>>12|224;h[I++]=l>>6&63|128}h[I++]=l&63|128}}G=I===h.length?h:h.subarray(0,I)}return G};
qr=function(G){_.hd.setTimeout(function(){throw G;},0)};
_.jv=function(G,b){return G.lastIndexOf(b,0)==0};
ls=function(G,b){var I=G.length-b.length;return I>=0&&G.indexOf(b,I)==I};
_.Dr=function(G){return/^[\s\xa0]*$/.test(G)};
_.c2=function(G,b){return G.indexOf(b)!=-1};
_.ka=function(G,b){return _.c2(G.toLowerCase(),b.toLowerCase())};
_.Qu=function(G,b){var I=0;G=v2(String(G)).split(".");b=v2(String(b)).split(".");for(var h=Math.max(G.length,b.length),q=0;I==0&&q<h;q++){var l=G[q]||"",V=b[q]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];V=/(\d*)(\D*)(.*)/.exec(V)||["","","",""];if(l[0].length==0&&V[0].length==0)break;I=kqB(l[1].length==0?0:parseInt(l[1],10),V[1].length==0?0:parseInt(V[1],10))||kqB(l[2].length==0,V[2].length==0)||kqB(l[2],V[2]);l=l[3];V=V[3]}while(I==0)}return I};
kqB=function(G,b){return G<b?-1:G>b?1:0};
_.Tq=function(){var G=_.hd.navigator;return G&&(G=G.userAgent)?G:""};
vaa=function(G){if(!B2||!sj)return!1;for(var b=0;b<sj.brands.length;b++){var I=sj.brands[b].brand;if(I&&_.c2(I,G))return!0}return!1};
gX=function(G){return _.c2(_.Tq(),G)};
Mr=function(){return B2?!!sj&&sj.brands.length>0:!1};
Lpu=function(){return Mr()?!1:gX("Opera")};
QOs=function(){return Mr()?!1:gX("Trident")||gX("MSIE")};
xrO=function(){return Mr()?vaa("Microsoft Edge"):gX("Edg/")};
Zr=function(){return gX("Firefox")||gX("FxiOS")};
_.frO=function(){return gX("Safari")&&!(_.zq()||(Mr()?0:gX("Coast"))||Lpu()||(Mr()?0:gX("Edge"))||xrO()||(Mr()?vaa("Opera"):gX("OPR"))||Zr()||gX("Silk")||gX("Android"))};
_.zq=function(){return Mr()?vaa("Chromium"):(gX("Chrome")||gX("CriOS"))&&!(Mr()?0:gX("Edge"))||gX("Silk")};
_.TXB=function(){return gX("Android")&&!(_.zq()||Zr()||Lpu()||gX("Silk"))};
BXO=function(G){var b={};G.forEach(function(I){b[I[0]]=I[1]});
return function(I){return b[I.find(function(h){return h in b})]||""}};
Urj=function(G){var b=_.Tq();if(G==="Internet Explorer"){if(QOs())if((G=/rv: *([\d\.]*)/.exec(b))&&G[1])b=G[1];else{G="";var I=/MSIE +([\d\.]+)/.exec(b);if(I&&I[1])if(b=/Trident\/(\d.\d)/.exec(b),I[1]=="7.0")if(b&&b[1])switch(b[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];b=G}else b="";return b}var h=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");I=[];for(var q;q=h.exec(b);)I.push([q[1],q[2],q[3]||void 0]);
b=BXO(I);switch(G){case "Opera":if(Lpu())return b(["Version","Opera"]);if(Mr()?vaa("Opera"):gX("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Mr()?0:gX("Edge"))return b(["Edge"]);if(xrO())return b(["Edg"]);break;case "Chromium":if(_.zq())return b(["Chrome","CriOS","HeadlessChrome"])}return G==="Firefox"&&Zr()||G==="Safari"&&_.frO()||G==="Android Browser"&&_.TXB()||G==="Silk"&&gX("Silk")?(b=I[2])&&b[1]||"":""};
_.sOB=function(G){if(Mr()&&G!=="Silk"){var b=sj.brands.find(function(I){return I.brand===G});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Urj(G);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])};
P2=function(){return B2?!!sj&&!!sj.platform:!1};
_.gaa=function(){return P2()?sj.platform==="Android":gX("Android")};
Adv=function(){return gX("iPhone")&&!gX("iPod")&&!gX("iPad")};
_.dX=function(){return Adv()||gX("iPad")||gX("iPod")};
_.Mvp=function(){return P2()?sj.platform==="macOS":gX("Macintosh")};
_.ZOr=function(){return P2()?sj.platform==="Windows":gX("Windows")};
_.tvd=function(){return P2()?sj.platform==="Chrome OS":gX("CrOS")};
_.rX=function(G){return G[G.length-1]};
_.FO=function(G,b,I){b=_.zBO(G,b,I);return b<0?null:typeof G==="string"?G.charAt(b):G[b]};
_.zBO=function(G,b,I){for(var h=G.length,q=typeof G==="string"?G.split(""):G,l=0;l<h;l++)if(l in q&&b.call(I,q[l],l,G))return l;return-1};
oaO=function(G){for(var b=_.H2,I=typeof G==="string"?G.split(""):G,h=G.length-1;h>=0;h--)if(h in I&&b.call(void 0,I[h],h,G))return h;return-1};
_.Ya=function(G,b){return _.Nr(G,b)>=0};
_.iOr=function(G,b){_.Ya(G,b)||G.push(b)};
_.CO=function(G,b){b=_.Nr(G,b);var I;(I=b>=0)&&_.PsB(G,b);return I};
_.PsB=function(G,b){Array.prototype.splice.call(G,b,1)};
_.Jd=function(G){var b=G.length;if(b>0){for(var I=Array(b),h=0;h<b;h++)I[h]=G[h];return I}return[]};
_.us=function(G,b){for(var I=1;I<arguments.length;I++){var h=arguments[I];if(_.KO(h)){var q=G.length||0,l=h.length||0;G.length=q+l;for(var V=0;V<l;V++)G[q+V]=h[V]}else G.push(h)}};
_.ydq=function(G,b,I,h){Array.prototype.splice.apply(G,drB(arguments,1))};
drB=function(G,b,I){return arguments.length<=2?Array.prototype.slice.call(G,b):Array.prototype.slice.call(G,b,I)};
rdX=function(G,b){b=b||G;for(var I=0,h=0,q={};h<G.length;){var l=G[h++],V=_.Oj(l)?"o"+_.Ej(l):(typeof l).charAt(0)+l;Object.prototype.hasOwnProperty.call(q,V)||(q[V]=!0,b[I++]=l)}b.length=I};
_.HOX=function(G,b,I){I=I||_.FpO;for(var h=0,q=G.length,l;h<q;){var V=h+(q-h>>>1);var D=I(b,G[V]);D>0?h=V+1:(q=V,l=!D)}return l?h:-h-1};
_.pO=function(G,b,I){if(!_.KO(G)||!_.KO(b)||G.length!=b.length)return!1;var h=G.length;I=I||Wps;for(var q=0;q<h;q++)if(!I(G[q],b[q]))return!1;return!0};
_.FpO=function(G,b){return G>b?1:G<b?-1:0};
Wps=function(G,b){return G===b};
ars=function(G,b,I){b=Array.prototype.splice.call(G,b,1);Array.prototype.splice.call(G,I,0,b[0])};
Yj2=function(G){return NXO[G]||""};
Kpd=function(G){if(!CsO)return _.Sv(G);G=Jdq.test(G)?G.replace(Jdq,Yj2):G;G=atob(G);for(var b=new Uint8Array(G.length),I=0;I<G.length;I++)b[I]=G.charCodeAt(I);return b};
uOa=function(G,b){G.__closure__error__context__984382||(G.__closure__error__context__984382={});G.__closure__error__context__984382.severity=b};
_.GA=function(G){G=Error(G);uOa(G,"warning");return G};
nau=function(G,b){if(G!=null){var I;var h=(I=RBq)!=null?I:RBq={};I=h[G]||0;I>=b||(h[G]=I+1,G=Error(),uOa(G,"incident"),qr(G))}};
In=function(G,b,I){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(I===void 0?0:I)&&Symbol.for&&G?Symbol.for(G):G!=null?Symbol(G):Symbol():b};
ln=function(G,b){h5||_.q8 in G||OOO(G,w2a);G[_.q8]|=b};
eB=function(G,b){h5||_.q8 in G||OOO(G,w2a);G[_.q8]=b};
EaO=function(G){if(4&G)return 512&G?512:1024&G?1024:0};
Vi=function(G){ln(G,34);return G};
De=function(G){ln(G,8192);return G};
p2u=function(G){ln(G,32);return G};
Qi=function(){return typeof BigInt==="function"};
Ze=function(G,b){return b===void 0?G.copyOnWrite!==Uu&&!!(2&(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.q8]|0)):!!(2&b)&&G.copyOnWrite!==Uu};
_.yi=function(G,b){if(G!=null)if(typeof G==="string")G=G?new zA(G,PX):_.dz();else if(G.constructor!==zA)if(Sjv&&G!=null&&G instanceof Uint8Array)G=G.length?new zA(new Uint8Array(G),PX):_.dz();else{if(!b)throw Error();G=void 0}return G};
X2X=function(G,b){if(typeof b!=="number"||b<0||b>=G.length)throw Error();};
$8s=function(G,b,I){var h=b&128?0:-1,q=G.length,l;if(l=!!q)l=G[q-1],l=l!=null&&typeof l==="object"&&l.constructor===Object;var V=q+(l?-1:0);for(b=b&128?1:0;b<V;b++)I(b-h,G[b]);if(l){G=G[q-1];for(var D in G)!isNaN(D)&&I(+D,G[D])}};
HX=function(G){return G&128?FJ:void 0};
WX=function(G){G.isGuard_doNotManuallySetPrettyPlease=!0;return G};
bQr=function(){var G=GAp;return WX(function(b){for(var I in G)if(b===G[I]&&!/^[0-9]+$/.test(I))return!0;return!1})};
_.N8=function(G){var b=G;if(Iej(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(hWq(b)&&!Number.isSafeInteger(b))throw Error(String(b));return quu?BigInt(G):G=jnX(G)?G?"1":"0":Iej(G)?G.trim()||"0":String(G)};
lep=function(G,b){if(G.length>b.length)return!1;if(G.length<b.length||G===b)return!0;for(var I=0;I<G.length;I++){var h=G[I],q=b[I];if(h>q)return!1;if(h<q)return!0}};
m8O=function(G){var b=G>>>0;Yb=b;CQ=(G-b)/4294967296>>>0};
J5=function(G){if(G<0){m8O(-G);var b=_.e(eWj(Yb,CQ));G=b.next().value;b=b.next().value;Yb=G>>>0;CQ=b>>>0}else m8O(G)};
D8a=function(G){var b=VBu||(VBu=new DataView(new ArrayBuffer(8)));b.setFloat32(0,+G,!0);CQ=0;Yb=b.getUint32(0,!0)};
c52=function(G,b){var I=b*4294967296+(G>>>0);return Number.isSafeInteger(I)?I:_.KQ(G,b)};
un=function(G,b){var I=b&2147483648;I&&(G=~G+1>>>0,b=~b>>>0,G==0&&(b=b+1>>>0));G=c52(G,b);return typeof G==="number"?I?-G:G:I?"-"+G:G};
kAX=function(G){var b=Yb,I=CQ,h=I>>31;I=(I<<1|b>>>31)^h;G(b<<1^h,I)};
vbd=function(G,b){var I=-(G&1);G=(G>>>1|b<<31)^I;return un(G,b>>>1^I)};
_.KQ=function(G,b){b>>>=0;G>>>=0;if(b<=2097151)var I=""+(4294967296*b+G);else Qi()?I=""+(BigInt(b)<<BigInt(32)|BigInt(G)):(I=(G>>>24|b<<8)&16777215,b=b>>16&65535,G=(G&16777215)+I*6777216+b*6710656,I+=b*8147497,b*=2,G>=1E7&&(I+=G/1E7>>>0,G%=1E7),I>=1E7&&(b+=I/1E7>>>0,I%=1E7),I=b+LOv(I)+LOv(G));return I};
LOv=function(G){G=String(G);return"0000000".slice(G.length)+G};
_.QnO=function(G,b){b&2147483648?Qi()?G=""+(BigInt(b|0)<<BigInt(32)|BigInt(G>>>0)):(b=_.e(eWj(G,b)),G=b.next().value,b=b.next().value,G="-"+_.KQ(G,b)):G=_.KQ(G,b);return G};
Rn=function(G){if(G.length<16)J5(Number(G));else if(Qi())G=BigInt(G),Yb=Number(G&BigInt(4294967295))>>>0,CQ=Number(G>>BigInt(32)&BigInt(4294967295));else{var b=+(G[0]==="-");CQ=Yb=0;for(var I=G.length,h=b,q=(I-b)%6+b;q<=I;h=q,q+=6)h=Number(G.slice(h,q)),CQ*=1E6,Yb=Yb*1E6+h,Yb>=4294967296&&(CQ+=Math.trunc(Yb/4294967296),CQ>>>=0,Yb>>>=0);b&&(b=_.e(eWj(Yb,CQ)),G=b.next().value,b=b.next().value,Yb=G,CQ=b)}};
eWj=function(G,b){b=~b;G?G=~G+1:b+=1;return[G,b]};
Ou=function(G){return Array.prototype.slice.call(G)};
_.Eu=function(G,b){throw Error(b===void 0?"unexpected value "+G+"!":b);};
_.pQ=function(G){if(G!=null&&typeof G!=="number")throw Error("L`"+typeof G+"`"+G);return G};
_.SB=function(G){if(G==null||typeof G==="number")return G;if(G==="NaN"||G==="Infinity"||G==="-Infinity")return Number(G)};
x8u=function(G){if(G!=null&&typeof G!=="boolean")throw Error("M`"+_.$3(G)+"`"+G);return G};
_.feq=function(G){if(G==null||typeof G==="boolean")return G;if(typeof G==="number")return!!G};
_.hc=function(G){switch(typeof G){case "bigint":return!0;case "number":return bF(G);case "string":return TzX.test(G);default:return!1}};
_.qf=function(G){if(!bF(G))throw _.GA("enum");return G|0};
_.lF=function(G){return G==null?G:bF(G)?G|0:void 0};
Bzd=function(G){if(typeof G!=="number")throw _.GA("int32");if(!bF(G))throw _.GA("int32");return G|0};
_.e8=function(G){return G==null?G:Bzd(G)};
_.VK=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return bF(G)?G|0:void 0};
_.U82=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return bF(G)?G>>>0:void 0};
MBj=function(G){var b=0;b=b===void 0?0:b;if(!_.hc(G))throw _.GA("int64");var I=typeof G;switch(b){case 512:switch(I){case "string":return DY(G);case "bigint":return String(cL(64,G));default:return snO(G)}case 1024:switch(I){case "string":return gbv(G);case "bigint":return _.N8(cL(64,G));default:return A5s(G)}case 0:switch(I){case "string":return DY(G);case "bigint":return _.N8(cL(64,G));default:return k3(G)}default:return _.Eu(b,"Unknown format requested type for int64")}};
LD=function(G){return G==null?G:MBj(G)};
ZQO=function(G){var b=G.length;if(G[0]==="-"?b<20||b===20&&G<="-9223372036854775808":b<19||b===19&&G<="9223372036854775807")return G;Rn(G);return _.QnO(Yb,CQ)};
tBX=function(G){if(G[0]==="-")var b=!1;else b=G.length,b=b<20?!0:b===20&&G<="18446744073709551615";if(b)return G;Rn(G);return _.KQ(Yb,CQ)};
k3=function(G){G=QK(G);x3(G)||(J5(G),G=un(Yb,CQ));return G};
_.zWr=function(G){G=QK(G);G>=0&&x3(G)||(J5(G),G=c52(Yb,CQ));return G};
snO=function(G){G=QK(G);x3(G)?G=String(G):(J5(G),G=_.QnO(Yb,CQ));return G};
_.obs=function(G){G=QK(G);G>=0&&x3(G)?G=String(G):(J5(G),G=_.KQ(Yb,CQ));return G};
DY=function(G){var b=QK(Number(G));if(x3(b))return String(b);b=G.indexOf(".");b!==-1&&(G=G.substring(0,b));return ZQO(G)};
gbv=function(G){var b=QK(Number(G));if(x3(b))return _.N8(b);b=G.indexOf(".");b!==-1&&(G=G.substring(0,b));return Qi()?_.N8(cL(64,BigInt(G))):_.N8(ZQO(G))};
A5s=function(G){return x3(G)?_.N8(k3(G)):_.N8(snO(G))};
_.iQa=function(G){return x3(G)?_.N8(_.zWr(G)):_.N8(_.obs(G))};
_.Pnr=function(G){var b=QK(Number(G));if(x3(b)&&b>=0)return String(b);b=G.indexOf(".");b!==-1&&(G=G.substring(0,b));return tBX(G)};
_.d8d=function(G){var b=QK(Number(G));if(x3(b)&&b>=0)return _.N8(b);b=G.indexOf(".");b!==-1&&(G=G.substring(0,b));return Qi()?_.N8((0,_.fD)(64,BigInt(G))):_.N8(tBX(G))};
_.r5s=function(G){if(G==null)return G;if(typeof G==="bigint")return y5O(G)?G=Number(G):(G=cL(64,G),G=y5O(G)?Number(G):String(G)),G;if(_.hc(G))return typeof G==="number"?k3(G):DY(G)};
FOO=function(G,b){b=b===void 0?!1:b;var I=typeof G;if(G==null)return G;if(I==="bigint")return String(cL(64,G));if(_.hc(G))return I==="string"?DY(G):b?snO(G):k3(G)};
_.HQj=function(G){var b=typeof G;if(G==null)return G;if(b==="bigint")return _.N8(cL(64,G));if(_.hc(G))return b==="string"?gbv(G):A5s(G)};
WOB=function(G){if(G==null)return G;var b=typeof G;if(b==="bigint")return String(cL(64,G));if(_.hc(G)){if(b==="string")return DY(G);if(b==="number")return k3(G)}};
aeO=function(G){if(G==null)return G;var b=typeof G;if(b==="bigint")return String((0,_.fD)(64,G));if(_.hc(G)){if(b==="string")return _.Pnr(G);if(b==="number")return _.zWr(G)}};
_.Ta=function(G){if(typeof G!=="string")throw Error();return G};
BL=function(G){if(G!=null&&typeof G!=="string")throw Error();return G};
_.Mf=function(G){return G==null||typeof G==="string"?G:void 0};
Cnr=function(G,b,I,h){if(G!=null&&G[ZY]===iF)return G;if(!Array.isArray(G))return I?h&2?b[NzX]||(b[NzX]=YuO(b)):new b:void 0;I=G[_.q8]|0;h=I|h&32|h&2;h!==I&&eB(G,h);return new b(G)};
YuO=function(G){G=new G;Vi(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
J5q=function(G,b,I){G=b?Bzd(G):_.VK(G);return G==null?I?0:void 0:G|0};
KO2=function(G){return G};
uJX=function(G){return G};
nbs=function(G,b,I,h,q,l){G=Cnr(G,h,I,l);q&&(G=RWX(G));return G};
OQO=function(G){return[G,this.get(G)]};
pXX=function(){return wXB||(wXB=new PL(Vi([]),void 0,void 0,void 0,Eba))};
Sus=function(G){var b=dj(HL);return b?G[b]:void 0};
Gav=function(G,b){var I=I===void 0?!1:I;if(dj(XXO)&&dj(HL)&&void 0===XXO){var h=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=h[HL];if(!q)return;if(q=q.reviveUnknownFields)try{q(h,b,$fd);return}catch(l){qr(l)}}I&&(G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(I=dj(HL))&&I in G&&(G=G[I])&&delete G[b])};
IYd=function(G,b){var I=dj(HL),h;h5&&I&&((h=G[I])==null?void 0:h[b])!=null&&nau(bDO,3)};
q1v=function(G,b){b<100||nau(heO,1)};
V8p=function(G,b,I,h){var q=h!==void 0;h=!!h;var l=dj(HL),V;!q&&h5&&l&&(V=G[l])&&j5r(V,q1v);l=[];var D=G.length;V=4294967295;var k=!1,L=!!(b&64),x=L?b&128?0:-1:void 0;if(!(b&1)){var f=D&&G[D-1];f!=null&&typeof f==="object"&&f.constructor===Object?(D--,V=D):f=void 0;if(L&&!(b&128)&&!q){k=!0;var T;V=((T=lYO)!=null?T:KO2)(V-x,x,G,f,void 0)+x}}b=void 0;for(T=0;T<D;T++){var B=G[T];if(B!=null&&(B=I(B,h))!=null)if(L&&T>=V){var A=T-x,t=void 0;((t=b)!=null?t:b={})[A]=B}else l[T]=B}if(f)for(var y in f)D=f[y],
D!=null&&(D=I(D,h))!=null&&(T=+y,B=void 0,L&&!Number.isNaN(T)&&(B=T+x)<V?l[B]=D:(T=void 0,((T=b)!=null?T:b={})[y]=D));b&&(k?l.push(b):l[V]=b);q&&dj(HL)&&(G=Sus(G))&&G instanceof mfp&&(l[HL]=eeO(G));return l};
cc2=function(G){G[0]=Dfp(G[0]);G[1]=Dfp(G[1]);return G};
Dfp=function(G){switch(typeof G){case "number":return Number.isFinite(G)?G:""+G;case "bigint":return y5O(G)?Number(G):""+G;case "boolean":return G?1:0;case "object":if(Array.isArray(G)){var b=G[_.q8]|0;return G.length===0&&b&1?void 0:V8p(G,b,Dfp)}if(G!=null&&G[ZY]===iF)return kad(G);if(G instanceof zA){b=G.JSC$8893_value_;if(b==null)G="";else if(typeof b==="string")G=b;else{if(CsO){for(var I="",h=0,q=b.length-10240;h<q;)I+=String.fromCharCode.apply(null,b.subarray(h,h+=10240));I+=String.fromCharCode.apply(null,
h?b.subarray(h):b);b=btoa(I)}else b=_.WL(b);G=G.JSC$8893_value_=b}return G}if(G instanceof PL)return G=G.size!==0?v3d(G,cc2):void 0,G;return}return G};
Nf=function(G,b){if(b){lYO=b==null||b===KO2||b[L9s]!==Q5X?KO2:b;try{return kad(G)}finally{lYO=void 0}}return kad(G)};
kad=function(G){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return V8p(G,G[_.q8]|0,Dfp)};
TjO=function(G){switch(typeof G){case "boolean":return xfp||(xfp=[0,void 0,!0]);case "number":return G>0?void 0:G===0?fYO||(fYO=[0,void 0]):[-G,void 0];case "string":return[0,G];case "object":return G}};
Jc=function(G,b,I){return G=_.Y3(G,b[0],b[1],I?1:2)};
_.Y3=function(G,b,I,h){h=h===void 0?0:h;if(G==null){var q=32;I?(G=[I],q|=128):G=[];b&&(q=q&-16760833|(b&1023)<<14)}else{if(!Array.isArray(G))throw Error("O");q=G[_.q8]|0;if(Bjv&&1&q)throw Error("P");2048&q&&!(2&q)&&Uf2();if(q&256)throw Error("Q");if(q&64)return h!==0||q&2048||eB(G,q|2048),G;if(I&&(q|=128,I!==G[0]))throw Error("R");a:{I=G;q|=64;var l=I.length;if(l){var V=l-1,D=I[V];if(D!=null&&typeof D==="object"&&D.constructor===Object){b=q&128?0:-1;V-=b;if(V>=1024)throw Error("T");for(var k in D)l=
+k,l<V&&(I[l+b]=D[k],delete D[k]);q=q&-16760833|(V&1023)<<14;break a}}if(b){k=Math.max(b,l-(q&128?0:-1));if(k>1024)throw Error("U");q=q&-16760833|(k&1023)<<14}}}q|=64;h===0&&(q|=2048);eB(G,q);return G};
Uf2=function(){if(Bjv)throw Error("S");nau(s5v,5)};
M8j=function(G,b){if(typeof G!=="object")return G;if(Array.isArray(G)){var I=G[_.q8]|0;return G.length===0&&I&1?void 0:g3v(G,I,b)}if(G!=null&&G[ZY]===iF)return Ac2(G);if(G instanceof PL){b=G.arrayState;if(b&2)return G;if(!G.size)return;I=Vi(v3d(G));if(G.valueCtor)for(G=0;G<I.length;G++){var h=I[G],q=h[1];q==null||typeof q!=="object"?q=void 0:q!=null&&q[ZY]===iF?q=Ac2(q):Array.isArray(q)?q=g3v(q,q[_.q8]|0,!!(b&32)):q=void 0;h[1]=q}return I}if(G instanceof zA)return G};
g3v=function(G,b,I){if(b&2)return G;!I||4096&b||16&b?G=KD(G,b,!1,I&&!(b&16)):(ln(G,34),b&4&&Object.freeze(G));return G};
ZDB=function(G,b,I){G=new G.constructor(b);I&&(G.copyOnWrite=Uu);G.noLegacyNull=Uu;return G};
Ac2=function(G){var b=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=b[_.q8]|0;return Ze(G,I)?G:t8O(G,b,I)?ZDB(G,b):KD(b,I)};
KD=function(G,b,I,h){h!=null||(h=!!(34&b));G=V8p(G,b,M8j,h);h=32;I&&(h|=2);b=b&16769217|h;eB(G,b);return G};
RWX=function(G){var b=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=b[_.q8]|0;return Ze(G,I)?t8O(G,b,I)?ZDB(G,b,!0):new G.constructor(KD(b,I,!1)):G};
uF=function(G){if(G.copyOnWrite!==Uu)return!1;var b=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=KD(b,b[_.q8]|0);ln(b,2048);G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=b;G.copyOnWrite=void 0;G.noLegacyNull=void 0;return!0};
R5=function(G){if(!uF(G)&&Ze(G,G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.q8]|0))throw Error();};
nD=function(G,b){b===void 0&&(b=G[_.q8]|0);b&32&&!(b&4096)&&eB(G,b|4096)};
t8O=function(G,b,I){return I&2?!0:I&32&&!(I&4096)?(eB(b,I|2),G.copyOnWrite=Uu,!0):!1};
O1=function(G,b,I,h,q){var l=I+(q?0:-1),V=G.length-1;if(V>=1+(q?0:-1)&&l>=V){var D=G[V];if(D!=null&&typeof D==="object"&&D.constructor===Object)return D[I]=h,b}if(l<=V)return G[l]=h,b;if(h!==void 0){var k;V=((k=b)!=null?k:b=G[_.q8]|0)>>14&1023||536870912;I>=V?h!=null&&(l={},G[V+(q?0:-1)]=(l[I]=h,l)):G[l]=h}return b};
_.S8=function(G,b,I,h,q){var l=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=l[_.q8]|0;h=Ze(G,V)?1:h;q=!!q||h===3;h===2&&uF(G)&&(l=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=l[_.q8]|0);G=zes(l,b);var D=G===E1?7:G[_.q8]|0,k=o3q(D,V);var L=4&k?!1:!0;if(L){4&k&&(G=Ou(G),D=0,k=pD(k,V),V=O1(l,V,b,G));for(var x=0,f=0;x<G.length;x++){var T=I(G[x]);T!=null&&(G[f++]=T)}f<x&&(G.length=f);I=(k|4)&-513;k=I&=-1025;k&=-4097}k!==D&&(eB(G,k),2&k&&Object.freeze(G));return G=iDp(G,k,l,
V,b,h,L,q)};
iDp=function(G,b,I,h,q,l,V,D){var k=b;l===1||(l!==4?0:2&b||!(16&b)&&32&h)?XW(b)||(b|=!G.length||V&&!(4096&b)||32&h&&!(4096&b||16&b)?2:256,b!==k&&eB(G,b),Object.freeze(G)):(l===2&&XW(b)&&(G=Ou(G),k=0,b=pD(b,h),h=O1(I,h,q,G)),XW(b)||(D||(b|=16),b!==k&&eB(G,b)));2&b||!(4096&b||16&b)||nD(I,h);return G};
zes=function(G,b,I){G=$I(G,b,I);return Array.isArray(G)?G:E1};
o3q=function(G,b){2&b&&(G|=2);return G|1};
XW=function(G){return!!(2&G)&&!!(4&G)||!!(256&G)};
PFO=function(G){return _.yi(G,!0)};
dfa=function(G){G=Ou(G);for(var b=0;b<G.length;b++){var I=G[b]=Ou(G[b]);Array.isArray(I[1])&&(I[1]=Vi(I[1]))}return De(G)};
yca=function(G,b){var I=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=I[_.q8]|0;a:{var q=h;h=Ze(G,h);!h&&uF(G)&&(I=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=I[_.q8]|0);var l=$I(I,b);G=!1;if(l==null){if(h){b=pXX();break a}l=[]}else if(l.constructor===PL)if(l.arrayState&2&&!h)l=v3d(l);else{b=l;break a}else Array.isArray(l)?G=!!((l[_.q8]|0)&2):l=[];if(h){if(!l.length){b=pXX();break a}G||(G=!0,Vi(l))}else G&&(G=!1,De(l),l=dfa(l));!G&&q&32&&p2u(l);h=new PL(l,void 0,J5q,J5q);
q=O1(I,q,b,h);G||nD(I,q);b=h}return b};
_.G7=function(G,b,I,h){R5(G);var q=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=q[_.q8]|0;if(I==null)return O1(q,l,b),G;var V=I===E1?7:I[_.q8]|0,D=V,k=XW(V),L=k||Object.isFrozen(I);k||(V=0);L||(I=Ou(I),D=0,V=pD(V,l),L=!1);V|=5;var x;k=(x=EaO(V))!=null?x:0;for(x=0;x<I.length;x++){var f=I[x],T=h(f,k);Object.is(f,T)||(L&&(I=Ou(I),D=0,V=pD(V,l),L=!1),I[x]=T)}V!==D&&(L&&(I=Ou(I),V=pD(V,l)),eB(I,V));O1(q,l,b,I);return G};
_.bl=function(G,b,I,h,q){R5(G);var l=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;O1(l,l[_.q8]|0,b,(h==="0"?Number(I)===0:I===h)?void 0:I,q);return G};
_.II=function(G,b,I){if(b&2)throw Error();var h=HX(b),q=zes(G,I,h),l=q===E1?7:q[_.q8]|0,V=o3q(l,b);if(2&V||XW(V)||16&V)V===l||XW(V)||eB(q,V),q=Ou(q),l=0,V=pD(V,b),O1(G,b,I,q,h);V&=-13;V!==l&&eB(q,V);return q};
rca=function(G){if(h5){var b;return(b=G[hz])!=null?b:G[hz]=new Map}if(hz in G)return G[hz];b=new Map;Object.defineProperty(G,hz,{value:b});return b};
HDO=function(G,b,I,h,q){var l=rca(G),V=F9v(l,G,b,I,q);V!==h&&(V&&(b=O1(G,b,V,void 0,q)),l.set(I,h));return b};
F9v=function(G,b,I,h,q){var l=G.get(h);if(l!=null)return l;for(var V=l=0;V<h.length;V++){var D=h[V];$I(b,D,q)!=null&&(l!==0&&(I=O1(b,I,l,void 0,q)),l=D)}G.set(h,l);return l};
W92=function(G,b,I,h,q){var l=!1;h=$I(G,h,q,function(V){var D=Cnr(V,I,!1,b);l=D!==V&&D!=null;return D});
if(h!=null)return l&&!Ze(h)&&nD(G,b),h};
aYs=function(G,b,I,h,q,l,V,D){var k=Ze(G,I);l=k?1:l;V=!!V||l===3;k=D&&!k;(l===2||k)&&uF(G)&&(b=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=b[_.q8]|0);G=zes(b,q);var L=G===E1?7:G[_.q8]|0,x=o3q(L,I);if(D=!(4&x)){var f=G,T=I,B=!!(2&x);B&&(T|=2);for(var A=!B,t=!0,y=0,F=0;y<f.length;y++){var W=Cnr(f[y],h,!1,T);if(W instanceof h){if(!B){var O=Ze(W);A&&(A=!O);t&&(t=O)}f[F++]=W}}F<y&&(f.length=F);x|=4;x=t?x&-4097:x|4096;x=A?x|8:x&-9}x!==L&&(eB(G,x),2&x&&Object.freeze(G));if(k&&!(8&x||!G.length&&
(l===1||(l!==4?0:2&x||!(16&x)&&32&I)))){XW(x)&&(G=Ou(G),x=pD(x,I),I=O1(b,I,q,G));h=G;k=x;for(L=0;L<h.length;L++)f=h[L],x=RWX(f),f!==x&&(h[L]=x);k|=8;x=k=h.length?k|4096:k&-4097;eB(G,x)}return G=iDp(G,x,b,I,q,l,D,V)};
NjO=function(G){G==null&&(G=void 0);return G};
pD=function(G,b){return G=(2&b?G|2:G&-3)&-273};
_.Y1v=function(G,b,I,h,q){R5(G);b=_.S8(G,b,q,2,!0);var l;q=(l=EaO(b===E1?7:b[_.q8]|0))!=null?l:0;b.push(I(h,q));return G};
CF2=function(G,b,I,h,q,l,V){R5(G);var D=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;G=aYs(G,D,D[_.q8]|0,I,b,2,!0);if(l&&V)q!=null||(q=G.length-1),X2X(G,q),G.splice(q,l),G.length||(G[_.q8]&=-4097);else{if(l){if(typeof q!=="number"||q<0||q>G.length)throw Error();}else h=h!=null?h:new I;q!=void 0?G.splice(q,l,h):G.push(h);q=I=G===E1?7:G[_.q8]|0;(h=Ze(h))?(I&=-9,G.length===1&&(I&=-4097)):I|=4096;I!==q&&eB(G,I);h||nD(D)}};
K9X=function(G,b){if(typeof G==="string")return new qE(Kpd(G),b);if(Array.isArray(G))return new qE(new Uint8Array(G),b);if(G.constructor===Uint8Array)return new qE(G,!1);if(G.constructor===ArrayBuffer)return G=new Uint8Array(G),new qE(G,!1);if(G.constructor===zA)return b=Jcq(G)||new Uint8Array(0),new qE(b,!0,G);if(G instanceof Uint8Array)return G=G.constructor===Uint8Array?G:new Uint8Array(G.buffer,G.byteOffset,G.byteLength),new qE(G,!1);throw Error();};
ReO=function(G){switch(typeof G){case "string":uWX(G)}};
ODs=function(G){switch(typeof G){case "string":n3a(G)}};
jo=function(){var G=function(){throw Error();};
Object.setPrototypeOf(G,G.prototype);return G};
E3O=function(G,b){var I=I===void 0?wLv:I;return new ll(G,b,I)};
XLp=function(G,b,I,h,q){pLu(G,I,S1B(b,h),q)};
mh=function(G,b,I,h){var q=h[G];if(q)return q;q={};q.binaryFields=h;q.messageMetadata=TjO(h[0]);var l=h[1],V=1;l&&l.constructor===Object&&(q.extensions=l,l=h[++V],typeof l==="function"&&(q.isMessageSet=!0,$EO!=null||($EO=l),G7v!=null||(G7v=h[V+1]),l=h[V+=2]));for(var D={};l&&bAO(l);){for(var k=0;k<l.length;k++)D[l[k]]=l;l=h[++V]}for(k=1;l!==void 0;){typeof l==="number"&&(k+=l,l=h[++V]);var L=void 0;if(l instanceof ll)var x=l;else x=IKa,V--;l=void 0;if((l=x)==null?0:l.$$isMsg){l=h[++V];L=h;var f=V;
typeof l==="function"&&(l=l(),L[f]=l);L=l}l=h[++V];f=k+1;typeof l==="number"&&l<0&&(f-=l,l=h[++V]);for(;k<f;k++){var T=D[k];L?I(q,k,x,L,T):b(q,k,x,T)}}return h[G]=q};
bAO=function(G){return Array.isArray(G)&&!!G.length&&typeof G[0]==="number"&&G[0]>0};
qvO=function(G){return Array.isArray(G)?G[0]instanceof ll?G:[hKX,G]:[G,void 0]};
S1B=function(G,b){if(G instanceof _.eo)return G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(G))return Jc(G,b,!1)};
jIu=function(G,b,I,h){var q=I.$$binaryReaderFn;G[b]=h?function(l,V,D){return q(l,V,D,h)}:q};
mEj=function(G,b,I,h,q){var l=I.$$binaryReaderFn,V,D;G[b]=function(k,L,x){return l(k,L,x,D||(D=mh(lKX,jIu,mEj,h).messageMetadata),V||(V=eKB(h)),q)}};
eKB=function(G){var b=G[Vop];if(b!=null)return b;var I=mh(lKX,jIu,mEj,G);b=I.isMessageSet?function(h,q){return $EO(h,q,I)}:function(h,q){for(;DEs(q)&&q.nextWireType_!=4;){var l=q.nextField_,V=I[l];
if(V==null){var D=I.extensions;D&&(D=D[l])&&(D=czs(D),D!=null&&(V=I[l]=D))}if(V==null||!V(q,h,l)){D=q;V=D.fieldCursor_;k7X(D);if(D.discardUnknownFields)var k=void 0;else{var L=D.decoder_.cursor_-V;D.decoder_.cursor_=V;k=vIq(D.decoder_,L)}L=D=V=void 0;var x=h;k&&((V=(D=(L=x[HL])!=null?L:x[HL]=new mfp)[l])!=null?V:D[l]=[]).push(k)}}if(h=Sus(h))h.reviveUnknownFields=I.binaryFields[LhO];return!0};
G[Vop]=b;G[LhO]=QIp.bind(G);return b};
QIp=function(G,b,I,h){var q=this[lKX],l=this[Vop],V=Jc(void 0,q.messageMetadata,!1),D=Sus(G);if(D){var k=!1,L=q.extensions;if(L){q=function(A,t,y){if(y.length!==0)if(L[t])for(A=_.e(y),t=A.next();!t.done;t=A.next()){t=xEj(t.value);try{k=!0,l(V,t)}finally{t.free()}}else h==null||h(G,t,y)};
if(b==null)j5r(D,q);else if(D!=null){var x=D[b];x&&q(D,b,x)}if(k){var f=G[_.q8]|0;if(f&2&&f&2048&&(I==null||!I.reviveIntoImmutable))throw Error();var T=HX(f),B=function(A,t){if($I(G,A,T)!=null)switch(I==null?void 0:I.resolutionBehavior){case 1:return;default:throw Error();}t!=null&&(f=O1(G,f,A,t,T));delete D[A]};
b==null?$8s(V,V[_.q8]|0,function(A,t){B(A,t)}):B(b,$I(V,b,T))}}}};
czs=function(G){G=qvO(G);var b=G[0].$$binaryReaderFn;if(G=G[1]){var I=eKB(G),h=mh(lKX,jIu,mEj,G).messageMetadata;return function(q,l,V){return b(q,l,V,h,I)}}return b};
fKr=function(G,b,I){G[b]=I.$$binaryWriterFn};
BdO=function(G,b,I,h){var q,l,V=I.$$binaryWriterFn;G[b]=function(D,k,L){return V(D,k,L,l||(l=mh(Tdu,fKr,BdO,h).messageMetadata),q||(q=UEj(h)))}};
UEj=function(G){var b=G[sIB];if(!b){var I=mh(Tdu,fKr,BdO,G);b=function(h,q){return gIa(h,q,I)};
G[sIB]=b}return b};
gIa=function(G,b,I){$8s(G,G[_.q8]|0,function(h,q){if(q!=null){var l=Azp(I,h);l?l(b,q,h):h<500||nau(MoB,3)}});
(G=Sus(G))&&j5r(G,function(h,q,l){VM(b,b.encoder_.end());for(h=0;h<l.length;h++)VM(b,Jcq(l[h])||new Uint8Array(0))})};
Azp=function(G,b){var I=G[b];if(I)return I;if(I=G.extensions)if(I=I[b]){I=qvO(I);var h=I[0].$$binaryWriterFn;if(I=I[1]){var q=UEj(I),l=mh(Tdu,fKr,BdO,I).messageMetadata;I=G.isMessageSet?G7v(l,q):function(V,D,k){return h(V,D,k,l,q)}}else I=h;
return G[b]=I}};
_.ZAO=function(G,b,I){if(Array.isArray(b)){var h=b[_.q8]|0;if(h&4)return b;for(var q=0,l=0;q<b.length;q++){var V=G(b[q]);V!=null&&(b[l++]=V)}l<q&&(b.length=l);G=h|1;I&&(G=(G|4)&-1537);G!==h&&eB(b,G);I&&G&2&&Object.freeze(b);return b}};
_.cg=function(G,b,I){return new ll(G,b,I)};
_.to2=function(G,b,I){return new ll(G,b,I)};
_.kI=function(G,b,I){O1(G,G[_.q8]|0,b,I,HX(G[_.q8]|0))};
zKq=function(G,b,I){b=_.SB(b);b!=null&&(_.vg(G,I,1),G=G.encoder_,I=VBu||(VBu=new DataView(new ArrayBuffer(8))),I.setFloat64(0,+b,!0),Yb=I.getUint32(0,!0),CQ=I.getUint32(4,!0),_.LA(G,Yb),_.LA(G,CQ))};
oIs=function(G,b,I){b=_.SB(b);b!=null&&(_.vg(G,I,5),G=G.encoder_,D8a(b),_.LA(G,Yb))};
_.xI=function(G,b,I){b=WOB(b);if(b!=null&&(ReO(b),b!=null))switch(_.vg(G,I,0),typeof b){case "number":G=G.encoder_;J5(b);QM(G,Yb,CQ);break;case "bigint":I=BigInt.asUintN(64,b);I=new iAj(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));QM(G.encoder_,I.JSC$8936_lo,I.JSC$8936_hi);break;default:I=uWX(b),QM(G.encoder_,I.JSC$8936_lo,I.JSC$8936_hi)}};
dEa=function(G,b,I){b=aeO(b);if(b!=null&&(ODs(b),b!=null))switch(_.vg(G,I,0),typeof b){case "number":G=G.encoder_;J5(b);QM(G,Yb,CQ);break;case "bigint":I=Plq(b);QM(G.encoder_,I.JSC$8934_lo,I.JSC$8934_hi);break;default:I=n3a(b),QM(G.encoder_,I.JSC$8934_lo,I.JSC$8934_hi)}};
rzj=function(G,b,I){b=_.VK(b);b!=null&&b!=null&&(_.vg(G,I,0),_.yzq(G.encoder_,b))};
_.HAO=function(G,b,I){Fhr(G,I,aeO(b))};
Wh2=function(G,b,I){b=_.feq(b);b!=null&&(_.vg(G,I,0),G.encoder_.JSC$8938_buffer_.push(b?1:0))};
Ndp=function(G,b,I){b=_.Mf(b);b!=null&&aKv(G,I,cds(b))};
YvO=function(G,b,I,h,q){pLu(G,I,S1B(b,h),q)};
_.Clr=function(G,b,I){b=b==null||typeof b=="string"||b instanceof zA?b:void 0;b!=null&&aKv(G,I,K9X(b,!0).buffer)};
JzO=function(G,b,I){b=_.U82(b);b!=null&&b!=null&&(_.vg(G,I,0),fA(G.encoder_,b))};
_.Kha=function(G,b,I){b=_.VK(b);b!=null&&(b=parseInt(b,10),_.vg(G,I,0),_.yzq(G.encoder_,b))};
_.T7=function(G,b){return function(I,h){var q={treatNewDataAsImmutable:!0};h&&Object.assign(q,h);I=xEj(I,void 0,void 0,q);try{var l=new G,V=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;eKB(b)(V,I);var D=l}finally{I.free()}return D}};
_.Uv=function(G){return function(b){return uav(b,G)}};
RKj=function(G){return function(){return uav(this,G)}};
_.nIv=function(G){return WX(function(b){return b instanceof G&&!Ze(b)})};
_.Az=function(G){return function(b){return OAu(G,b)}};
Sv2=function(G,b){return wgB({child:G,origin:b||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:EIj,getPayloadCase:function(I){return I.getPayloadCase()},
createInitMessage:function(I){var h=new ME,q=new pgO;I=_.ZK(q,1,I);return _.tz(h,5,z7,I)}})};
oI=function(G){return{valueOf:G}.valueOf()};
$za=function(){var G=null;if(!XgO)return G;try{var b=function(I){return I};
G=XgO.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(I){}return G};
bNv=function(){Gfv===void 0&&(Gfv=$za());return Gfv};
_.Pg=function(G){var b=bNv();G=b?b.createScriptURL(G):G;return new il(G)};
_.yM=function(G){if(G instanceof il)return G.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.rd=function(G){return Object.isFrozen(G)&&Object.isFrozen(G.raw)};
IJv=function(G){return G.toString().indexOf("`")===-1};
Hg=function(G){return new _.Fa(hMr,G)};
Wg=function(G){return G instanceof _.Fa};
_.aI=function(G){if(Wg(G))return G.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
NE=function(G){return new qZO(function(b){return b.substr(0,G.length+1).toLowerCase()===G+":"})};
_.YI=function(G,b){b=b===void 0?j$s:b;if(Wg(G))return G;for(var I=0;I<b.length;++I){var h=b[I];if(h instanceof qZO&&h.isValid(G))return Hg(G)}};
_.KA=function(G,b){b=b===void 0?j$s:b;return _.YI(G,b)||CA};
_.ul=function(G){var b=window;if(typeof MediaSource!=="undefined"&&G instanceof MediaSource||typeof b.ManagedMediaSource!=="undefined"&&G instanceof b.ManagedMediaSource)return Hg(URL.createObjectURL(G));b=G.type;b.toLowerCase()==="application/octet-stream"?b=!0:(b=b.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),b=(b==null?void 0:b.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/[\w-]+$/i.test(b[1])));if(!b)throw Error("Z");return Hg(URL.createObjectURL(G))};
_.lJa=function(G){for(var b=_.RI.apply(1,arguments),I=[G[0]],h=0;h<b.length;h++)I.push(String(b[h])),I.push(G[h+1]);return Hg(I.join(""))};
_.eMX=function(G){if(!mzq){a:{var b=document.createElement("a");try{b.href=G}catch(I){G=void 0;break a}G=b.protocol;G=G===":"||G===""?"https:":G}return G}try{b=new URL(G)}catch(I){return"https:"}return b.protocol};
_.nA=function(G){G instanceof _.Fa?G=_.aI(G):G=Vcr.test(G)?G:void 0;return G};
Ov=function(G,b){b=_.nA(b);b!==void 0&&(G.href=b)};
Ev=function(G){var b=bNv();G=b?b.createHTML(G):G;return new wd(G)};
Xa=function(G){if(G instanceof wd)return G.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.$T=function(G,b){G.src=_.yM(b).toString()};
Dzr=function(G,b){G.setAttribute("sandbox","");for(var I=0;I<b.length;I++)G.sandbox.supports&&!G.sandbox.supports(b[I])||G.sandbox.add(b[I])};
_.Gf=function(G,b,I){G.removeAttribute("srcdoc");switch(b){case 0:if(I instanceof il)throw new cjs("TrustedResourceUrl",0);Dzr(G,[]);b=_.nA(I);b!==void 0&&(G.src=b);break;case 1:if(!(I instanceof il))throw new cjs(typeof I,1);Dzr(G,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.$T(G,I);break;case 2:if(I instanceof il)throw new cjs("TrustedResourceUrl",2);Dzr(G,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
b=_.nA(I);b!==void 0&&(G.src=b);break;default:_.Eu(b)}};
_.bp=function(G,b,I,h){b=_.nA(b);return b!==void 0?G.open(b,I,h):null};
_.I$=function(G){G=G===void 0?document:G;var b,I;G=(I=(b=G).querySelector)==null?void 0:I.call(b,"script[nonce]");return G==null?"":G.nonce||G.getAttribute("nonce")||""};
_.qz=function(G){var b=bNv();G=b?b.createScript(G):G;return new _.hj(G)};
jc=function(G){if(G instanceof _.hj)return G.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
kfj=function(G){var b=_.I$(G.ownerDocument);b&&G.setAttribute("nonce",b)};
_.lp=function(G,b){G.textContent=jc(b);kfj(G)};
_.mf=function(G,b){G.src=_.yM(b);kfj(G)};
_.ec=function(G,b){if(G.nodeType===1&&/^(script|style)$/i.test(G.tagName))throw Error("Z");G.innerHTML=Xa(b)};
_.Vs=function(G,b,I,h){if(G.length===0)throw Error("Z");G=G.map(function(l){if(l instanceof vT2)l=l.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return l});
var q=I.toLowerCase();if(G.every(function(l){return q.indexOf(l)!==0}))throw Error("aa`"+I);
b.setAttribute(I,h)};
_.DJ=function(G,b,I){if(b instanceof il)G.href=_.yM(b).toString(),G.rel=I;else{if(Lfs.indexOf(I)===-1)throw Error("ba`"+I);b=_.nA(b);b!==void 0&&(G.href=b,G.rel=I)}};
Q$a=function(G){if(G instanceof cp)return G.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.xzX=function(G,b){b=_.nA(b);b!==void 0&&(G.href=b)};
fJv=function(G){return new Worker(_.yM(G),void 0)};
TmX=function(G){return _.Pg(G)};
Bmu=function(G,b){G&&(b=G.indexOf(b),0<=b&&G.splice(b,1))};
kT=function(G){return typeof G==="function"};
Uzs=function(G){return G instanceof vp||G&&"closed"in G&&kT(G.remove)&&kT(G.add)&&kT(G.unsubscribe)};
LN=function(){};
Qs=function(G){s$a(function(){throw G;})};
xT=function(G){return G};
fN=function(){return gTO(_.RI.apply(0,arguments))};
gTO=function(G){return G.length===0?xT:G.length===1?G[0]:function(b){return G.reduce(function(I,h){return h(I)},b)}};
AjB=function(G){var b;return(b=G!=null?G:void 0)!=null?b:Promise};
McO=function(G,b){return new Tf(function(I){var h=0;return b.schedule(function(){h===G.length?I.complete():(I.next(G[h++]),I.closed||this.schedule())})})};
ZNv=function(G,b){if(!G)throw Error("ca");return new Tf(function(I){var h=new vp;h.add(b.schedule(function(){var q=G[Symbol.asyncIterator]();h.add(b.schedule(function(){var l=this;q.next().then(function(V){V.done?I.complete():(I.next(V.value),l.schedule())})}))}));
return h})};
tcd=function(G,b,I){b=b.schedule(function(){try{I.call(this)}catch(h){G.error(h)}},0);
G.add(b)};
oTu=function(G,b){return new Tf(function(I){var h;I.add(b.schedule(function(){h=G[zMa]();tcd(I,b,function(){var q=h.next(),l=q.value;q.done?I.complete():(I.next(l),this.schedule())})}));
return function(){var q;return kT((q=h)==null?void 0:q.return)&&h.return()}})};
iNs=function(G,b){return new Tf(function(I){var h=new vp;h.add(b.schedule(function(){var q=G[Bp]();h.add(q.subscribe({next:function(l){h.add(b.schedule(function(){return I.next(l)}))},
error:function(l){h.add(b.schedule(function(){return I.error(l)}))},
complete:function(){h.add(b.schedule(function(){return I.complete()}))}}))}));
return h})};
Ppr=function(G,b){return new Tf(function(I){return b.schedule(function(){return G.then(function(h){I.add(b.schedule(function(){I.next(h);I.add(b.schedule(function(){return I.complete()}))}))},function(h){I.add(b.schedule(function(){return I.error(h)}))})})})};
dzd=function(G){return new TypeError("da`"+(G!==null&&typeof G==="object"?"an invalid object":"'"+G+"'"))};
rju=function(G,b){if(G!=null){if(kT(G[Bp]))return iNs(G,b);if(yju(G))return McO(G,b);if(kT(G==null?void 0:G.then))return Ppr(G,b);if(Symbol.asyncIterator&&kT(G==null?void 0:G[Symbol.asyncIterator]))return ZNv(G,b);if(kT(G==null?void 0:G[zMa]))return oTu(G,b)}throw dzd(G);};
sZ=function(G,b){return b?rju(G,b):UZ(G)};
UZ=function(G){if(G instanceof Tf)return G;if(G!=null){if(kT(G[Bp]))return FfO(G);if(yju(G))return HN2(G);if(kT(G==null?void 0:G.then))return Wfp(G);if(Symbol.asyncIterator&&kT(G==null?void 0:G[Symbol.asyncIterator]))return aJj(G);if(kT(G==null?void 0:G[zMa]))return NmO(G)}throw dzd(G);};
FfO=function(G){return new Tf(function(b){var I=G[Bp]();if(kT(I.subscribe))return I.subscribe(b);throw new TypeError("ea");})};
HN2=function(G){return new Tf(function(b){for(var I=0;I<G.length&&!b.closed;I++)b.next(G[I]);b.complete()})};
Wfp=function(G){return new Tf(function(b){G.then(function(I){b.closed||(b.next(I),b.complete())},function(I){return b.error(I)}).then(null,Qs)})};
NmO=function(G){return new Tf(function(b){for(var I=G[zMa]();!b.closed;){var h=I.next(),q=h.value;h.done?b.complete():b.next(q)}return function(){return kT(I==null?void 0:I.return)&&I.return()}})};
aJj=function(G){return new Tf(function(b){YZr(G,b).catch(function(I){return b.error(I)})})};
YZr=function(G,b){var I,h,q,l,V,D;return _.c(function(k){switch(k.nextAddress){case 1:_.gm(k,2,3),l=_.Aj(G);case 5:return k.yield(l.next(),8);case 8:h=k.yieldResult;if(h.done){k.jumpTo(3);break}V=h.value;b.next(V);k.jumpTo(5);break;case 3:_.Mz(k);_.ZJ(k,9);if(!h||h.done||!(q=l.return)){k.jumpTo(9);break}return k.yield(q.call(l),9);case 9:_.Mz(k,0,0,1);if(I)throw I.error;_.tj(k,10,1);break;case 10:_.tj(k,4);break;case 2:D=_.zf(k);I={error:D};k.jumpTo(3);break;case 4:b.complete(),_.ip(k)}})};
CpB=function(G,b){return b?McO(G,b):HN2(G)};
Jja=function(G){return kT(G[G.length-1])?G.pop():void 0};
Pp=function(G){var b=G[G.length-1];return b&&kT(b.schedule)?G.pop():void 0};
dm=function(){var G=_.RI.apply(0,arguments),b=Pp(G);return b?McO(G,b):CpB(G)};
rm=function(G){var b=kT(G)?G:function(){return G};
return new Tf(function(I){return I.error(b())})};
FD=function(G){return function(b){if(kT(b==null?void 0:b.lift))return b.lift(function(I){try{return G(I,this)}catch(h){this.error(h)}});
throw new TypeError("fa");}};
Wp=function(){return FD(function(G,b){var I=null;G._refCount++;var h=new Hp(b,void 0,void 0,void 0,function(){if(!G||G._refCount<=0||0<--G._refCount)I=null;else{var q=G._connection,l=I;I=null;!q||l&&q!==l||q.unsubscribe();b.unsubscribe()}});
G.subscribe(h);h.closed||(I=G.connect())})};
uDs=function(){var G=KfB;var b=b===void 0?0:b;return FD(function(I,h){h.add(G.schedule(function(){return I.subscribe(h)},b))})};
a$=function(G){return FD(function(b,I){var h=0;b.subscribe(new Hp(I,function(q){I.next(G.call(void 0,q,h++))}))})};
nTj=function(G){return a$(function(b){return RMq(b)?G.apply(null,_.Nz(b)):G(b)})};
SZj=function(G){if(G.length===1){var b=G[0];if(ONv(b))return{args:b,keys:null};if(b&&typeof b==="object"&&wpr(b)===ETu)return G=ppp(b),{args:G.map(function(I){return b[I]}),
keys:G}}return{args:G,keys:null}};
KN=function(){var G=_.RI.apply(0,arguments),b=Pp(G),I=Jja(G);G=SZj(G);var h=G.args,q=G.keys;if(h.length===0)return sZ([],b);b=new Tf(XpO(h,b,q?function(l){for(var V={},D=0;D<l.length;D++)V[q[D]]=l[D];return V}:xT));
return I?b.pipe(nTj(I)):b};
XpO=function(G,b,I){I=I===void 0?xT:I;return function(h){$b2(b,function(){for(var q=G.length,l=Array(q),V=q,D=G.map(function(){return!1}),k=!0,L={i$jscomp$217:0};L.i$jscomp$217<q;L={i$jscomp$217:L.i$jscomp$217},L.i$jscomp$217++)$b2(b,function(x){return function(){sZ(G[x.i$jscomp$217],b).subscribe(new up(h,function(f){l[x.i$jscomp$217]=f;
k&&(D[x.i$jscomp$217]=!0,k=!D.every(xT));k||h.next(I(l.slice()))},function(){return--V===0}))}}(L),h)},h)}};
$b2=function(G,b,I){G?I.add(G.schedule(b)):b()};
GlO=function(G,b,I,h){var q=[],l=0,V=0,D=!1,k=function(L){l++;UZ(I(L,V++)).subscribe(new Hp(b,function(x){b.next(x)},void 0,function(){l--;
for(var x={};q.length&&l<h;x={bufferedValue:void 0})x.bufferedValue=q.shift(),k(x.bufferedValue);!D||q.length||l||b.complete()}))};
G.subscribe(new Hp(b,function(L){return l<h?k(L):q.push(L)},void 0,function(){D=!0;
!D||q.length||l||b.complete()}));
return function(){q=null}};
nN=function(G,b){var I=I===void 0?Infinity:I;if(kT(b))return nN(function(h,q){return a$(function(l,V){return b(h,l,q,V)})(UZ(G(h,q)))},I);
typeof b==="number"&&(I=b);return FD(function(h,q){return GlO(h,q,G,I)})};
by2=function(G){G=G===void 0?Infinity:G;return nN(xT,G)};
Izq=function(){var G=_.RI.apply(0,arguments);return by2(1)(CpB(G,Pp(G)))};
hL2=function(G){return new Tf(function(b){UZ(G()).subscribe(b)})};
OZ=function(G,b,I){if(kT(I)){var h=I;I=void 0}if(h)return OZ(G,b,I).pipe(nTj(h));h=_.e(kT(G.addEventListener)&&kT(G.removeEventListener)?qgj.map(function(V){return function(D){return G[V](b,D,I)}}):kT(G.addListener)&&kT(G.removeListener)?jkO.map(lzq(G,b)):kT(G.on)&&kT(G.off)?mbB.map(lzq(G,b)):[]);
var q=h.next().value,l=h.next().value;return!q&&yju(G)?nN(function(V){return OZ(V,b,I)})(CpB(G)):new Tf(function(V){if(!q)throw new TypeError("ga");
var D=function(){var k=_.RI.apply(0,arguments);return V.next(1<k.length?k:k[0])};
q(D);return function(){return l(D)}})};
lzq=function(G,b){return function(I){return function(h){return G[I](b,h)}}};
EZ=function(){var G=_.RI.apply(0,arguments),b=Pp(G);var I=typeof G[G.length-1]==="number"?G.pop():Infinity;return G.length?G.length===1?UZ(G[0]):by2(I)(CpB(G,b)):wm};
VSO=function(G){return G.length===1&&eLO(G[0])?G[0]:G};
Dbu=function(){var G=VSO(_.RI.apply(0,arguments));return FD(function(b,I){var h=[b].concat(_.Nz(G)),q=function(){if(!I.closed)if(h.length>0){try{var l=UZ(h.shift())}catch(D){q();return}var V=new Hp(I,void 0,LN,LN);I.add(l.subscribe(V));V.add(q)}else I.complete()};
q()})};
pN=function(G){return FD(function(b,I){var h=0;b.subscribe(new Hp(I,function(q){return G.call(void 0,q,h++)&&I.next(q)}))})};
klq=function(){var G=_.RI.apply(0,arguments);G=VSO(G);return G.length===1?UZ(G[0]):new Tf(c4v(G))};
c4v=function(G){return function(b){for(var I=[],h={i$jscomp$220:0};I&&!b.closed&&h.i$jscomp$220<G.length;h={i$jscomp$220:h.i$jscomp$220},h.i$jscomp$220++)I.push(UZ(G[h.i$jscomp$220]).subscribe(new Hp(b,function(q){return function(l){if(I){for(var V=0;V<I.length;V++)V!==q.i$jscomp$220&&I[V].unsubscribe();I=null}b.next(l)}}(h))))}};
vpu=function(){var G=_.RI.apply(0,arguments),b=Jja(G),I=VSO(G);return I.length?new Tf(function(h){var q=I.map(function(){return[]}),l=I.map(function(){return!1});
h.add(function(){q=l=null});
for(var V={sourceIndex$jscomp$1:0};!h.closed&&V.sourceIndex$jscomp$1<I.length;V={sourceIndex$jscomp$1:V.sourceIndex$jscomp$1},V.sourceIndex$jscomp$1++)UZ(I[V.sourceIndex$jscomp$1]).subscribe(new Hp(h,function(D){return function(k){q[D.sourceIndex$jscomp$1].push(k);q.every(function(L){return L.length})&&(k=q.map(function(L){return L.shift()}),h.next(b?b.apply(null,_.Nz(k)):k),q.some(function(L,x){return!L.length&&l[x]})&&h.complete())}}(V),void 0,function(D){return function(){l[D.sourceIndex$jscomp$1]=
!0;
!q[D.sourceIndex$jscomp$1].length&&h.complete()}}(V)));
return function(){q=l=null}}):wm};
Lnr=function(G){var b,I,h;return!!G&&typeof G.active==="boolean"&&typeof((b=G.clock)==null?void 0:b.now)==="function"&&((I=G.clock)==null?void 0:I.timeline)!==void 0&&!((h=G.lastMeasurement)==null||!h.timestamp)&&typeof G.equivalentTo==="function"&&typeof G.extrapolateToNow==="function"&&typeof G.extrapolateToTime==="function"&&typeof G.map==="function"&&typeof G.joinWith==="function"};
Qkq=function(G){function b(I){return typeof I==="boolean"||typeof I==="string"||typeof I==="number"||I===void 0||I===null}
return b(G)?!0:Array.isArray(G)?G.every(b):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(b):b(I)}):!1};
xbu=function(G){if(Qkq(G))return G;if(Lnr(G))return{lastMeasurement:{value:xbu(G.lastMeasurement.value),timestamp:Sc(G.lastMeasurement.timestamp,new XD(0,G.lastMeasurement.timestamp.timeline))},active:G.active};try{return JSON.parse(JSON.stringify(G))}catch(b){}return String(G)};
$p=function(G,b){return function(I){return new Tf(function(h){return I.subscribe(function(q){G.timeExecution(b,function(){h.next(q)})()},function(q){G.timeExecution(b,function(){h.error(q)})()},function(){G.timeExecution(b,function(){h.complete()})()})})}};
fzO=function(G,b){var I=!1;return new Tf(function(h){var q=G.setTimeout(function(){I=!0;h.next(!0);h.complete()},b);
return function(){I||G.clearTimeout(q)}})};
TVO=function(G){G=G.global;if(G.fetchLater)return G.fetchLater.bind(G)};
Gl=function(G){return FD(function(b,I){var h=null,q=!1,l;h=b.subscribe(new Hp(I,void 0,function(V){l=UZ(G(V,Gl(G)(b)));h?(h.unsubscribe(),h=null,l.subscribe(I)):q=!0}));
q&&(h.unsubscribe(),h=null,l.subscribe(I))})};
BVv=function(G,b,I){return function(h,q){var l=I,V=b,D=0;h.subscribe(new Hp(q,function(k){var L=D++;V=l?G(V,k,L):(l=!0,k);q.next(V)},void 0,void 0))}};
Ubp=function(G){G=G===void 0?null:G;return FD(function(b,I){var h=!1;b.subscribe(new Hp(I,function(q){h=!0;I.next(q)},void 0,function(){h||I.next(G);
I.complete()}))})};
be=function(){return FD(function(G,b){G.subscribe(new Hp(b,LN))})};
Ik=function(G){return FD(function(b,I){b.subscribe(new Hp(I,function(){return I.next(G)}))})};
h4=function(G){return G<=0?function(){return wm}:FD(function(b,I){var h=0;
b.subscribe(new Hp(I,function(q){++h<=G&&(I.next(q),G<=h&&I.complete())}))})};
qb=function(G){var b=b===void 0?xT:b;var I;G=(I=G)!=null?I:skj;return FD(function(h,q){var l,V=!0;h.subscribe(new Hp(q,function(D){var k=b(D);if(V||!G(l,k))V=!1,l=k,q.next(D)}))})};
skj=function(G,b){return G===b};
A4s=function(G){G=G===void 0?gpj:G;return FD(function(b,I){var h=!1;b.subscribe(new Hp(I,function(q){h=!0;I.next(q)},void 0,function(){return h?I.complete():I.error(G())}))})};
gpj=function(){return new MSB};
jS=function(){var G=_.RI.apply(0,arguments);return function(b){return Izq(b,dm.apply(null,_.Nz(G)))}};
Zyp=function(G){return FD(function(b,I){var h=0;b.subscribe(new Hp(I,function(q){G.call(void 0,q,h++,b)||(I.next(!1),I.complete())},void 0,function(){I.next(!0);
I.complete()}))})};
tSa=function(){return FD(function(G,b){var I=[];G.subscribe(new Hp(b,function(h){I.push(h);1<I.length&&I.shift()},void 0,function(){for(var h=_.e(I),q=h.next();!q.done;q=h.next())b.next(q.value);
b.complete()},function(){I=null}))})};
zL2=function(G,b){var I=arguments.length>=2;return function(h){return h.pipe(G?pN(function(q,l){return G(q,l,h)}):xT,tSa(),I?Ubp(b):A4s(function(){return new MSB}))}};
mn=function(G){var b=kT(G)?G:function(){return G};
return kT()?FD(function(I,h){var q=b();(void 0)(q).subscribe(h).add(I.subscribe(q))}):function(I){var h=new le(I,b);
kT(I==null?void 0:I.lift)&&(h.lift=I.lift);h.source=I;h.subjectFactory=b;return h}};
Dz=function(G){var b=new eS(G,void 0,void 0);return function(I){return mn(function(){return b})(I)}};
ca=function(G,b){return FD(BVv(G,b,arguments.length>=2))};
kp=function(){var G=_.RI.apply(0,arguments),b=Pp(G);return FD(function(I,h){(b?Izq(G,I,b):Izq(G,I)).subscribe(h)})};
va=function(G){return FD(function(b,I){var h=null,q=0,l=!1;b.subscribe(new Hp(I,function(V){var D;(D=h)==null||D.unsubscribe();D=q++;UZ(G(V,D)).subscribe(h=new Hp(I,function(k){return I.next(k)},void 0,function(){h=null;
l&&!h&&I.complete()}))},void 0,function(){(l=!0,!h)&&I.complete()}))})};
Qa=function(G,b){b=b===void 0?!1:b;return FD(function(I,h){var q=0;I.subscribe(new Hp(h,function(l){var V=G(l,q++);(V||b)&&h.next(l);!V&&h.complete()}))})};
opv=function(G,b,I){var h=kT(G)||b||I?{next:G,error:b,complete:I}:G;return h?FD(function(q,l){q.subscribe(new Hp(l,function(V){var D;(D=h.next)==null||D.call(h,V);l.next(V)},function(V){var D;
(D=h.error)==null||D.call(h,V);l.error(V)},function(){var V;
(V=h.complete)==null||V.call(h);l.complete()}))}):xT};
iyr=function(){var G=_.RI.apply(0,arguments),b=Jja(G);return FD(function(I,h){for(var q=G.length,l=Array(q),V=G.map(function(){return!1}),D=!1,k={i$jscomp$230:0};k.i$jscomp$230<q;k={i$jscomp$230:k.i$jscomp$230},k.i$jscomp$230++)UZ(G[k.i$jscomp$230]).subscribe(new Hp(h,function(L){return function(x){l[L.i$jscomp$230]=x;
D||V[L.i$jscomp$230]||(V[L.i$jscomp$230]=!0,(D=V.every(xT))&&(V=null))}}(k),void 0,LN));
I.subscribe(new Hp(h,function(L){D&&(L=[L].concat(_.Nz(l)),h.next(b?b.apply(null,_.Nz(L)):L))}))})};
dbp=function(G){var b=PeB;if(b)for(var I in b)Object.prototype.hasOwnProperty.call(b,I)&&G(b[I],I,b)};
y4a=function(){var G=[];dbp(function(b){G.push(b)});
return G};
Fn2=function(G){try{return!!G&&G.location.href!=null&&r4a(G,"foo")}catch(b){return!1}};
_.fy=function(G){return new vT2(G[0].toLowerCase())};
Hyv=function(G){for(var b=_.RI.apply(1,arguments),I=G[0],h=0;h<G.length-1;h++)I+=String(b[h]),I+=G[h+1];b=document.implementation.createHTMLDocument("");h=b.createElement("style");b.head.appendChild(h);b=h.sheet;b.insertRule(I,0);if(b.cssRules.length===1&&(I=b.cssRules[0],I instanceof CSSStyleRule))return new cp(I.cssText.replace(/</g,"\\3C "))};
Wnj=function(G){try{return new URL(G,window.document.baseURI)}catch(b){return new URL("about:invalid")}};
azO=function(G,b){var I=b.createRange();I.selectNode(b.body);G=Ev(G);return I.createContextualFragment(Xa(G))};
NVr=function(G){G=G.nodeName;return typeof G==="string"?G:"FORM"};
Ygu=function(G){G=G.nodeType;return G===1||typeof G!=="number"};
Tl=function(G,b,I){G.setAttribute(b,I)};
Cev=function(G){return G.parts.map(function(b){var I=b.descriptor;return""+b.url+(I?" "+I:"")}).join(" , ")};
_.Ba=function(G){var b=_.RI.apply(1,arguments);if(b.length===0)return _.Pg(G[0]);for(var I=G[0],h=0;h<b.length;h++)I+=encodeURIComponent(b[h])+G[h+1];return _.Pg(I)};
_.Ug=function(G,b){G=_.yM(G).toString();var I=G.split(/[?#]/),h=/[?]/.test(G)?"?"+I[1]:"";return J4X(I[0],h,/[#]/.test(G)?"#"+(h?I[2]:I[1]):"",b)};
J4X=function(G,b,I,h){function q(V,D){V!=null&&(Array.isArray(V)?V.forEach(function(k){return q(k,D)}):(b+=l+encodeURIComponent(D)+"="+encodeURIComponent(V),l="&"))}
var l=b.length?"&":"?";h.constructor===Object&&(h=Object.entries(h));Array.isArray(h)?h.forEach(function(V){return q(V[1],V[0])}):h.forEach(q);
return _.Pg(G+b+I)};
u0O=function(){var G=jc(KnO).toString();return _.Pg(URL.createObjectURL(new Blob([G],{type:"text/javascript"})))};
RLO=function(G){var b=[],I=0,h;for(h in G)b[I++]=h;return b};
npa=function(G,b){for(var I in G)if(G[I]==b)return!0;return!1};
Oy2=function(G,b,I){for(var h in G)if(b.call(I,G[h],h,G))return h};
wap=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 b=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)b[I]=wap(G[I]);return b};
EpB=function(G){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return EpB.apply(null,arguments[0]);if(b%2)throw Error("ma");for(var I={},h=0;h<b;h+=2)I[arguments[h]]=arguments[h+1];return I};
paB=function(G){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return paB.apply(null,arguments[0]);for(var I={},h=0;h<b;h++)I[arguments[h]]=!0;return I};
gV=function(G,b,I,h){this.top=G;this.right=b;this.bottom=I;this.left=h};
Sga=function(G){G=G.global;if(G.PendingGetBeacon)return G.PendingGetBeacon};
Mb=function(G){return function(b){return b.pipe(Xap(G,mn(new A4)))}};
Zz=function(G){return function(b){return b.pipe(Xap(G,Dz(1)))}};
Xap=function(G,b){function I(h){return new Tf(function(q){return h.subscribe(function(l){t4(G,function(){return void q.next(l)},3)},function(l){t4(G,function(){return void q.error(l)},3)},function(){t4(G,function(){return void q.complete()},3)})})}
return fN(I,uDs(),b,Wp(),I)};
bTj=function(G){var b=$2d(G);return b===null?new zl(null):b.pipe(a$(function(I){I=I.serialize();if(GxO)I=_.hd.btoa(I);else{for(var h=[],q=0,l=0;l<I.length;l++){var V=I.charCodeAt(l);V>255&&(h[q++]=V&255,V>>=8);h[q++]=V}I=_.WL(h)}return I}),h4(1),Zz(G.queue))};
ICO=function(G){var b=b===void 0?{}:b;if(typeof Event==="function")return new Event(G,b);if(typeof document!=="undefined"){var I=document.createEvent("CustomEvent");I.initCustomEvent(G,b.bubbles||!1,b.cancelable||!1,b.detail);return I}throw Error();};
h8B=function(G){return typeof G==="string"?document.getElementById(G):G};
jlO=function(G){var b=!1;b=b===void 0?!1:b;if(G.tagName==="IMG"){if(G.complete&&(!G.naturalWidth||!G.naturalHeight))return!0;var I;if(b&&((I=G.style)==null?void 0:I.display)==="none")return!0}var h,q;return q8O.test((h=G.getAttribute("width"))!=null?h:"")&&q8O.test((q=G.getAttribute("height"))!=null?q:"")};
lCv=function(G,b){if(G.tagName==="IMG")return G.naturalWidth&&G.naturalHeight?!0:!1;try{if(G.readyState)var I=G.readyState;else{var h,q;I=(h=G.contentWindow)==null?void 0:(q=h.document)==null?void 0:q.readyState}return I==="complete"}catch(l){return b===void 0?!1:b}};
m2r=function(G){G||(G=function(b,I,h){b.addEventListener(I,h)});
return G};
c2v=function(G,b){var I=e8j();I=I===void 0?new Vas:I;if(G=h8B(G)){var h=m2r(h);for(var q=!1,l=function(y){q||(q=!0,b(y))},V,D=2,k=0;k<D22.length;++k)if(D22[k]===G.tagName){D=3;
V=[G];break}V||(V=G.querySelectorAll(D22.join(",")));var L=0,x=0,f=!0,T=G=!1;k={};for(var B=0;B<V.length;k={isImg:void 0},B++){var A=V[B];if(!jlO(A))if(k.isImg=A.tagName==="IMG",lCv(A,I.crossDomainLoadedDefault))G=!0,k.isImg&&(f=!0);else{L++;var t=function(y){return function(F){L--;!L&&f&&l(D);y.isImg&&(F=F&&F.type==="error",x--,F||(f=!0),!x&&T&&f&&l(D))}}(k);
h(A,"load",t);k.isImg&&(x++,h(A,"error",t))}}x===0&&(f=!0);V=null;V=_.hd.document.readyState==="complete";if(L===0&&!G&&V)D=5;else if(L||!G){h(_.hd,"load",function(){!I.pendingImagesBlockLoad||!x&&f?l(4):T=!0});
return}l(D)}};
kxO=function(G,b,I){if(G)for(var h=0;G!=null&&h<500&&!I(G);++h)G=b(G)};
vuB=function(G,b){kxO(G,function(I){try{return I===I.parent?null:I.parent}catch(h){}return null},b)};
LFr=function(G,b){if(G.tagName=="IFRAME")b(G);else{G=G.querySelectorAll("IFRAME");for(var I=0;I<G.length&&!b(G[I]);++I);}};
Qlj=function(G){return(G=G.ownerDocument)&&(G.parentWindow||G.defaultView)||null};
x2j=function(G,b,I){try{var h=JSON.parse(I.data)}catch(V){}if(typeof h==="object"&&h&&h.type==="creativeLoad"){var q=Qlj(G);if(I.source&&q){var l;vuB(I.source,function(V){try{if(V.parent===q)return l=V,!0}catch(D){}});
l&&LFr(G,function(V){if(V.contentWindow===l)return b(h),!0})}}};
fCj=function(G){return typeof G==="string"?document.getElementById(G):G};
sla=function(){var G={};return G[0]=_.Ba(Tkj,"current"),G[1]=_.Ba(Bkj),G[2]=_.Ba(U2r),G};
ie=function(G,b){return G.left===b.left&&G.top===b.top&&G.width===b.width&&G.height===b.height};
guO=function(G,b){return{left:Math.max(G.left,b.left),top:Math.max(G.top,b.top),width:Math.max(0,Math.min(G.left+G.width,b.left+b.width)-Math.max(G.left,b.left)),height:Math.max(0,Math.min(G.top+G.height,b.top+b.height)-Math.max(G.top,b.top))}};
A2X=function(G,b){return{left:Math.round(G.left+b.x),top:Math.round(G.top+b.y),width:G.width,height:G.height}};
Maj=function(G,b,I){if(G&&b!==null&&b!=b.top){if(!b.top)return new _.Pa(-12245933,-12245933);b=b.top}try{return(I===void 0?0:I)?(new _.Pa(b.innerWidth,b.innerHeight)).round():_.dV(b).round()}catch(h){return new _.Pa(-12245933,-12245933)}};
ZTv=function(G,b,I){try{if(G){if(!b.top)return new gV(-12245933,-12245933,-12245933,-12245933);b=b.top}var h=Maj(G,b,I),q=h.height,l=h.width;if(l===-12245933)return new gV(l,l,l,l);var V=ya(rV(b.document)),D=V.x,k=V.y;return new gV(k,D+l,k+q,D)}catch(L){return new gV(-12245933,-12245933,-12245933,-12245933)}};
taO=function(G){var b;return(b=G.google_tag_data)!=null?b:G.google_tag_data={}};
z8a=function(G){var b,I;return typeof((b=G.navigator)==null?void 0:(I=b.userAgentData)==null?void 0:I.getHighEntropyValues)==="function"};
iTs=function(G){if(!z8a(G))return null;var b=taO(G);if(b.uach_promise)return b.uach_promise;G=G.navigator.userAgentData.getHighEntropyValues(oua).then(function(I){b.uach!=null||(b.uach=I);return I});
return b.uach_promise=G};
J2j=function(G){var b;return PGs(d2O(y2q(r2s(FFr(HT2(WFp(aCu(Nkp(new Y8a,G.architecture||""),G.bitness||""),G.mobile||!1),G.model||""),G.platform||""),G.platformVersion||""),G.uaFullVersion||""),((b=G.fullVersionList)==null?void 0:b.map(function(I){var h=new CGq;h=_.F0(h,1,I.brand);return _.F0(h,2,I.version)}))||[]),G.wow64||!1)};
KFX=function(G){var b,I;return(I=(b=iTs(G))==null?void 0:b.then(function(h){return J2j(h)}))!=null?I:null};
uNq=function(G,b){return new Tf(function(I){var h=!1,q=Array(b.length);q.fill(void 0);var l=new Set,V=new Set,D=function(f,T){G.running?(q[T]=f,l.add(T),h||(h=!0,t4(G,function(){h=!1;I.next(_.Jd(q))},1))):I.error(new Ha(T))},k=function(f,T){V.add(T);
l.add(T);t4(G,function(){I.error(f)},1)},L=function(f){V.add(f);
t4(G,function(){V.size===b.length&&I.complete()},1)},x=b.map(function(f,T){return f.subscribe(function(B){return void D(B,T)},function(B){return void k(B,T)},function(){return void L(T)})});
return function(){x.forEach(function(f){return void f.unsubscribe()})}})};
OTq=function(G,b,I){function h(){if(b.debugChannel){var y=b.debugChannel,F=y.next;var W={creativeId:b.debugNames.getName(I),requiredSignals:q,signals:Object.assign({},l),hasPrematurelyCompleted:V,errorMessage:D,erroredSignalKey:k};W={specMajor:2,specMinor:0,specPatch:0,timestamp:Sc(b.timeProvider.now(),new XD(0,b.timeProvider.timeline)),instanceId:b.debugNames.getName(b.symbol),creativeState:W};F.call(y,W)}}
for(var q=Object.keys(G),l={},V=!1,D=null,k=null,L={},x=new Set,f=[],T=[],B=_.e(q),A=B.next(),t={};!A.done;t={key$jscomp$394:void 0},A=B.next())t.key$jscomp$394=A.value,A=G[t.key$jscomp$394],A instanceof zl?(L[t.key$jscomp$394]=A.value,x.add(t.key$jscomp$394),b.debugChannel&&(l[String(t.key$jscomp$394)]=xbu(A.value))):(A=A.pipe(qb(function(y,F){return Lnr(y)||Lnr(F)?!1:y===F}),a$(function(y){return function(F){b.debugChannel&&(l[String(y.key$jscomp$394)]=xbu(F),h());
var W={};return W[y.key$jscomp$394]=F,W}}(t)),Gl(function(y){return function(F){if(F instanceof Ha)throw new R8O(String(y.key$jscomp$394));
throw F;}}(t)),opv(function(y){return function(){x.add(y.key$jscomp$394)}}(t),function(y){return function(F){k=String(y.key$jscomp$394);
D=String(F);h()}}(t),function(y){return function(){x.has(y.key$jscomp$394)||(V=!0,h())}}(t))),T.push(t.key$jscomp$394),f.push(A));
(G=Object.keys(l).length>0)&&h();B=uNq(b.queue,f).pipe(Gl(function(y){if(y instanceof Ha)throw new nur(String(T[y.inputObservableIndex]));throw y;}),a$(function(y){return Object.freeze(Object.assign.apply(Object,[{},
L].concat(_.Nz(y))))}));
return(f=f.length>0)&&G?EZ(dm(Object.freeze(L)),B):f?B:dm(Object.freeze(L))};
wrp=function(G,b,I,h,q){return G.performanceMonitor.timeExecution.bind(G.performanceMonitor)(733,function(){var l={};try{return b.pipe(Gl(function(V){h(Object.assign({},l,{error:V}));return wm}),nN(function(V){try{var D=I(G,V)}catch(L){return h(Object.assign({},l,{error:L instanceof Error?L:String(L)})),wm}var k={};
return OTq(D,G,V.symbol).pipe(opv(function(L){k=L}),Dz(1),Wp()).pipe(q,Gl(function(L){h(Object.assign({},k,{error:L}));
return wm}),jS(void 0),a$(function(){return!0}))})).pipe(ca(function(V){return V+1},0),Gl(function(V){h(Object.assign({},l,{error:V}));
return wm}))}catch(V){return h(Object.assign({},l,{error:V})),wm}})()};
Wa=function(G){var b=new Map;if(typeof G!=="object"||G===null)return b;Object.values(G).forEach(function(I){I&&typeof I.extrapolateToNow==="function"&&(b.has(I.clock.timeline)||b.set(I.clock.timeline,I.clock.now()))});
return b};
EuO=function(G,b){return typeof G==="string"?encodeURIComponent(G):typeof G==="number"?String(G):Array.isArray(G)?G.map(function(I){return EuO(I,b)}).join(","):G instanceof XD?G.toString():G&&typeof G.extrapolateToNow==="function"?EuO(G.extrapolateUsingTimestampMap(b).value,b):G===!0?"1":G===!1?"0":G===void 0||G===null?null:G instanceof prv?S8r(G):[G.top,
G.left,G.top+G.height,G.left+G.width].join()};
XrO=function(G,b){G=Object.entries(G).map(function(I){var h=_.e(I);I=h.next().value;h=h.next().value;h=EuO(h,b);return h===null?"":I+"="+h}).filter(function(I){return I!==""});
return G.length?G.join("&"):""};
b0s=function(G,b){var I=$Qs,h=Gtr;b=b===void 0?.01:b;return function(q){b>0&&Math.random()<=b&&(G.global.HTMLFencedFrameElement&&G.global.fence&&typeof G.global.fence.reportEvent==="function"&&G.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),q=Object.assign({},q,{errorMessage:q.error instanceof Error&&q.error.message?q.error.message:String(q.error),errorStack:q.error instanceof Error&&q.error.stack?String(q.error.stack):null,errorName:q.error instanceof
Error&&q.error.name?String(q.error.name):null,errorContext:String(G.performanceMonitor.timedFunctionContext),errorEscapedQueryId:q.escapedQueryId}),I(Object.assign({},q,{payloadMapper:function(){return function(l){try{return h(Object.assign({},l))}catch(V){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Wa(q)).forEach(function(l){G.beaconFactory.makeBeacon(l).sendNow()}))}};
IZq=function(){var G=_.RI.apply(0,arguments);return function(b){var I=b.pipe(Dz(1),Wp());b=G.map(function(h){return I.pipe(h,jS(!0))});
return KN(b).pipe(h4(1),be())}};
hCs=function(){var G=_.RI.apply(0,arguments);return function(b){var I=b.pipe(Dz(1),Wp());b=G.map(function(h){return I.pipe(h,jS(!0))});
return EZ.apply(null,_.Nz(b)).pipe(h4(1),be())}};
qMB=function(G,b){return function(I){var h=I.pipe(Dz(1),Wp());I=h.pipe(G,jS(!0));h=h.pipe(fN(b,Dz(),Wp()),jS(!0));I=KN([I,h]);return klq(I,h).pipe(h4(1),be())}};
jJ2=function(G,b,I){I(!0)};
lZd=function(G,b){return fN(va(function(I){var h=G(I),q=b(I),l={};return h&&q&&l?new Tf(function(V){q(h,l,function(D){V.next(Object.assign({},I,{canEmit:D}));V.complete()});
return function(){}}):ak}),pN(function(I){return I.canEmit}))};
mQp=function(G){var b={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(I){return I.pipe(va(function(h){return new Tf(function(q){function l(){D.disconnect();k.unsubscribe()}
var V=G.MutationObserver;if(V&&h.ref!==void 0){var D=new V(function(L){q.next(L)});
D.observe(h.ref,b);var k=h.JSC$9433_released.subscribe(l);return l}})}))}};
eCv=function(G){if(G.measurementDeferralState===3)return null;if(G.timeOnScreenReason!==void 0){var b=G.creativeFound===!1?"n":null;if(b!==null)return b}return G.geometricMeasurementErrors instanceof Nb?"msf":G.contextValidationErrors instanceof Yp?"c":G.contextVisibilityKnown===!1?"pv":G.geometricMeasurementErrors||G.contextValidationErrors?"x":null};
DQB=function(G,b){return G.replace(VTO,function(I,h){try{var q=_.Cy.get(b,h);if(q==null||q.toString()==null)return I;q=q.toString();if(q==""||!_.Dr(q==null?"":String(q)))return encodeURIComponent(q).replace(/%2C/g,",")}catch(l){}return I})};
cfO=function(G,b){var I=Object.assign({},G),h=G.userAgentClientHints;I=(delete I.userAgentClientHints,I);I=G.payloadMapper(I);var q=XrO(I,b);return _.Ky(G.urlPrefixes,function(l){var V="";typeof h==="string"&&(V="&"+XrO({uach:h},b));var D={};return DQB(l,(D.VIEWABILITY=q,D))+V})};
$Qs=function(G,b){var I=G.payloadMapper(G),h=XrO(I,b);return h?_.Ky(G.urlPrefixes,function(q){q=q.indexOf("?")>=0?q:q+"?";q="?&".indexOf(q.slice(-1))>=0?q:q+"&";return q+h}):G.urlPrefixes};
ktv=function(){return fN(pN(function(G){return G!==void 0}),a$(function(G){return G}))};
v82=function(G){return fN(a$(function(){return!0}),kp(!1),Zz(G))};
LTq=function(G){return G.length<=0?wm:KN(G.map(function(b){var I=0;return b.pipe(a$(function(h){return{index:I++,value:h}}))})).pipe(pN(function(b){return b.every(function(I){return I.index===b[0].index})}),a$(function(b){return b.map(function(I){return I.value})}))};
QJj=function(G,b){G.currentState&&(G.previousState=G.currentState);G.currentState=b;G.previousState&&G.previousState.value?(b=Math.max(0,Sc(b.timestamp,G.previousState.timestamp)),G.totalTime+=b,G.consecutiveTime+=b):G.consecutiveTime=0;return G};
xQj=function(){return fN(ca(QJj,{totalTime:0,consecutiveTime:0}),a$(function(G){return G.totalTime}))};
fZq=function(){return fN(ca(QJj,{totalTime:0,consecutiveTime:0}),a$(function(G){return G.consecutiveTime}))};
Tvs=function(G,b){return function(I){return LTq(b.map(function(h){return I.pipe(G(h))}))}};
BvO=function(){var G;return fN(opv(function(b){return void(G=b.timestamp)}),fZq(),a$(function(b){return{timestamp:G,
value:Math.round(b)}}))};
UQr=function(G,b){return ie(G.topWindowViewportExternalGeometry,b.topWindowViewportExternalGeometry)&&ie(G.elementGeometry,b.elementGeometry)&&ie(G.exposedViewportLocalGeometry,b.exposedViewportLocalGeometry)&&ie(G.intersectionGeometry,b.intersectionGeometry)&&G.elementGeometrySourceName===b.elementGeometrySourceName&&G.measurementRequests===b.measurementRequests&&G.viewportGeometrySourceName===b.viewportGeometrySourceName&&G.viewportLocalAppOffset.x===b.viewportLocalAppOffset.x&&G.viewportLocalAppOffset.y===
b.viewportLocalAppOffset.y};
MTs=function(G,b){return function(I){return function(h){var q=h.pipe(mn(new A4),Wp());h=I.element.pipe(qb());q=q.pipe(a$(function(l){return l.value}));
return KN([h,q,b]).pipe(a$(function(l){var V=_.e(l);l=V.next().value;var D=V.next().value;V=V.next().value;if(l.ref===void 0)var k={top:0,left:0,width:0,height:0};else{k=l.ref.getBoundingClientRect();var L=l.ref,x=G.global,f=new _.ue(0,0),T=Rk(_.ny(L));if(r4a(T,"parent")){do{if(T==x)var B=_.Og(L);else B=sJO(L),B=new _.ue(B.left,B.top);f.x+=B.x;f.y+=B.y}while(T&&T!=x&&T!=T.parent&&(L=T.frameElement)&&(T=T.parent))}k={top:f.y,left:f.x,width:k.width,height:k.height}}k=A2X(k,D.viewportLocalAppOffset);
x=guO(k,D.exposedViewportLocalGeometry);f=G.timeProvider.now();T=Object;L=T.assign;if(V!==2||G.inCrossDomainIframe||x.width<=0||x.height<=0)var A=!1;else try{var t=G.document.elementFromPoint(x.left+x.width/2,x.top+x.height/2);A=t?!g8v(t,l):!1}catch(y){A=!1}return{timestamp:f,value:L.call(T,{},D,{elementGeometrySourceName:"geo",intersectionGeometry:A?Afp.intersectionGeometry:x,elementGeometry:k})}}),Mb(G.queue))}}};
g8v=function(G,b,I){I=I===void 0?0:I;return G.ref===void 0||b.ref===void 0?!1:G.ref===b.ref||_.wV(b.ref,function(h){return h===G.ref})?!0:b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView===b.ref.ownerDocument.defaultView.top?!1:I<10&&b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView.frameElement?g8v(G,new Eg(b.ref.ownerDocument.defaultView.frameElement),I+1):!0};
zCj=function(G){return function(b){return b.pipe(G.ResizeObserver?Z0j(G):tTj(G),Dz(1),Wp())}};
Z0j=function(G){return function(b){return b.pipe(va(function(I){var h=G.ResizeObserver;if(!h||I.ref===void 0)return dm(Afp.elementGeometry);var q=(new Tf(function(l){function V(){I.ref!==void 0&&D.unobserve(I.ref);D.disconnect();k.unsubscribe()}
if(I.ref===void 0)return l.complete(),function(){};
var D=new h(function(L){L.forEach(function(x){l.next(x)})});
D.observe(I.ref);var k=I.JSC$9433_released.subscribe(V);return V})).pipe($p(G.performanceMonitor,736),a$(function(l){return l.contentRect}));
return EZ(dm(I.ref.getBoundingClientRect()),q)}),qb(ie))}};
tTj=function(G){return function(b){var I=b.pipe(mQp(G)),h=G.onResize;I=EZ(b.pipe(a$(function(){return ICO("resize")})),I,h);
return KN(b,I).pipe($p(G.performanceMonitor,737),a$(function(q){q=_.e(q).next().value;return q.ref===void 0?void 0:q.ref.getBoundingClientRect()}),ktv(),qb(ie))}};
PIO=function(G,b){var I=o8s(G,b).pipe(Dz(1),Wp());return function(h){return function(q){q=q.pipe(va(function(l){return l.element}),qb());
return KN([I,q]).pipe(va(function(l){var V=_.e(l);l=V.next().value;V=V.next().value;return i0q(G,l.intersectionObserver,zCj(G),l.observations,h,l.flushRecords,V)}),Mb(G.queue))}}};
dQ2=function(G){return a$(function(b){return b.value.viewportGeometrySourceName!=="nio"?b:Object.assign({},b,{value:Object.assign({},b.value,{exposedViewportLocalGeometry:SS(G,!0),topWindowViewportExternalGeometry:SS(G,!0)})})})};
yfO=function(G,b){return dm(b).pipe(G,a$(function(){return b}))};
o8s=function(G,b){return G.timeProvider.timeline!==rfs?rm(new Nb(2)):G.MutationObserver?typeof IntersectionObserver==="undefined"?rm(new Nb(0)):(new Tf(function(I){var h=new A4,q=new X0(h.next.bind(h),{threshold:[].concat(_.Nz(b))});I.next({observations:h.pipe($p(G.performanceMonitor,735)),intersectionObserver:q,flushRecords:function(l){l=q.takeRecords(l);l.length>0&&h.next(l)}})})).pipe(h4(1),Dz(1),Wp()):rm(new Nb(1))};
FTO=function(G){return rju(G.sort(function(b,I){return b.time-I.time}),KfB)};
i0q=function(G,b,I,h,q,l,V){return new Tf(function(D){function k(){A||(A=!0,V.ref!==void 0&&b.unobserve(q,V.ref),x.unsubscribe(),B.unsubscribe(),T.unsubscribe(),t.unsubscribe())}
if(V.ref!==void 0){H0d(b,q);b.observe(q,V.ref);var L=new $u({timestamp:G.timeProvider.now(),value:Object.assign({},Afp,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),x=h.pipe(nN(function(y){return FTO(y)}),pN(function(y){return y.target===V.ref}),a$(function(y){return{timestamp:new XD(y.time,rfs),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:y.rootBounds||Gx,topWindowViewportExternalGeometry:y.rootBounds||SS(G,!0),measurementRequests:f,elementGeometrySourceName:"nio",intersectionGeometry:y.intersectionRect,elementGeometry:y.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:y.isIntersecting,isV2Visible:y.isVisible}}}),mn(L),Wp()).subscribe(D),f=new A4,T=f.subscribe(function(){l(q);
D.next({timestamp:G.timeProvider.now(),value:L.value.value});V.ref!==void 0&&(b.unobserve(q,V.ref),b.observe(q,V.ref))}),B=yfO(I,V).subscribe(function(){f.next()}),A=!1,t=V.JSC$9433_released.subscribe(function(){return k()});
return k}})};
WTO=function(G,b){var I=G.getOnBackgrounded().pipe(a$(function(){return"b"}));
return klq(b,I).pipe(h4(1),Zz(G.queue))};
bG=function(G){return function(b){var I;return b.pipe(opv(function(h){return void(I=h.timestamp)}),a$(function(h){return h.value}),G,a$(function(h){return{timestamp:I,
value:h}}))}};
aZs=function(G){return G.intersectionGeometry.width*G.intersectionGeometry.height/(G.elementGeometry.width*G.elementGeometry.height)};
Il=function(G,b,I){I=I===void 0?function(h,q){return h===q}:I;
return G.timestamp.equals(b.timestamp)&&I(G.value,b.value)};
q2=function(G,b){return b.pipe(a$(function(I){return new h2(G.timeProvider,{timestamp:G.timeProvider.now(),value:I})}))};
Nvr=function(G){return function(b){return b.pipe(iyr(G),a$(function(I){var h=_.e(I);I=h.next().value;h=h.next().value;var q=I.value;return{timestamp:I.timestamp,value:q>=1?!0:q<=0?!1:q>=h}}))}};
CI2=function(){return fN(pN(function(G,b){return b>0}),YMs,kp(-1),qb())};
Jfq=function(G,b,I){return G?KN([b,I]).pipe(pN(function(h){var q=_.e(h);h=q.next().value;q=q.next().value;return h.timestamp.equals(q.timestamp)}),a$(function(h){var q=_.e(h);
h=q.next().value;q=q.next().value;return h.value>q.value?h:q})):b};
RCv=function(G){return function(b){var I=b.pipe(KTr),h=b.pipe(uqO);return G instanceof Tf?G.pipe(va(function(q){return Jfq(q,I,h)})):Jfq(G.value,I,h)}};
b3B=function(G,b,I,h){var q=h.geometryIsOccluded,l=h.exposureThreshold,V=h.wasLargeAdAtRender,D=h.allowLargeAdThreshold,k=h.largeAdExposureThreshold,L=h.mayUseViewportShareExposure,x=h.hasMeasurementStarted;h=h.useIntersectionObserverV2;b=n8a(G,I,b);I=O0d(G,I);h=w$q(b,h);var f=E8q(G,q,L,b),T=f.pipe(a$(function(u){return u.value}),qb(),Zz(G),ca(function(u,w){return Math.max(u,w)},0)),B=f.pipe(a$(function(u){return u.value}),CI2(),Zz(G)),A=b.pipe(p$v,a$(function(u){return u.value}),h4(2),qb(),Zz(G));
V=SMp(G,b,V,D);var t=V.pipe(kp(!1),qb(),a$(function(u){return u?k:l}));
D=f.pipe(Nvr(t),qb(),Zz(G));var y=KN([D,b]).pipe(pN(function(u){var w=_.e(u);u=w.next().value;w=w.next().value;return u.timestamp.equals(w.timestamp)}),a$(function(u){var w=_.e(u);
u=w.next().value;w=w.next().value;return{visible:u.value,geometry:w.value.elementGeometry}}),ca(function(u,w){return!w.visible&&u.visible?u:w},{visible:!1,
geometry:Gx}),a$(function(u){return u.geometry}),kp(Gx),Zz(G),qb(ie));
L=L instanceof Tf?L.pipe(qb(),Ik()):ak;t=KN([L,t]).pipe(Ik());var F=b.pipe(pN(function(u){return u.value.viewportGeometrySourceName!=="ns"&&u.value.elementGeometrySourceName!=="ns"}),ca(function(u){return u+1},0),kp(0),Zz(G)),W=I.pipe(Ik(!0),kp(!1),Zz(G));
W=KN([x,W]).pipe(a$(function(u){var w=_.e(u);u=w.next().value;w=w.next().value;return u&&!w}),Zz(G));
var O=b.pipe(X$a,qb()),K=O.pipe(a$(function(u){return u.value}),ca(function(u,w){return Math.max(u,w)},0),qb(),Zz(G));
G=O.pipe(a$(function(u){return u.value}),CI2(),Zz(G));
return{shouldResetExposureSignals:L,shouldResetViewabilitySignals:t,geometrySignals:{readyGeometryWithDefault:b,measurementStrategy:b.pipe($cs),creativePosition:y.pipe(qb(ie)),visible:D.pipe(qb(Il)),timestampedExposure:f.pipe(qb(Il)),maximumExposure:T,minimumExposure:B,browserSize:b.pipe(GFO,qb(_.pO)),timestampedScreenShare:O,maxScreenShare:K,minScreenShare:G,geometricMeasurementErrors:I,measurementRequests:b.pipe(a$(function(u){return u.value.measurementRequests})),
isLargeAd:V,geometryIsOccluded:q,hasMeasurementStarted:x,geometryMeasurable:W,validMeasurementCount:F,loadTimeExposure:A,v2VisibilityBitVector:h}}};
O0d=function(G,b){return b.pipe(pN(function(){return!1}),a$(function(I){return I}),Gl(function(I){return ja(new zl(I),G)}))};
n8a=function(G,b,I){return b.pipe(Dbu(ak),Zz(G)).pipe(qb(function(h,q){return Il(h,q,UQr)}),kp({timestamp:I.now(),
value:Afp}),Zz(G))};
E8q=function(G,b,I,h){I=h.pipe(RCv(I),bG(a$(function(q){return Math.round(q*100)/100})),Zz(G));
return b instanceof zl?I:KN([I,b]).pipe(a$(function(q){var l=_.e(q);q=l.next().value;l=l.next().value;return{timestamp:l.timestamp.maximum(q.timestamp),value:l.value?0:q.value}}),qb(Il),Zz(G))};
SMp=function(G,b,I,h){b=[b.pipe(a$(function(q){return q.value.elementGeometry.width*q.value.elementGeometry.height>=242500}))];
I instanceof Tf&&b.push(I.pipe(a$(function(q){return!!q})));
I=KN(b);return h?I.pipe(a$(function(q){return q.some(function(l){return l})}),kp(!1),qb(),Zz(G)):ja(new zl(!1),G)};
w$q=function(G,b){G=KN([G,b]).pipe(a$(function(q){var l=_.e(q);q=l.next().value;if(l.next().value&&q.value.isIntersecting)return q.value.isV2Visible}),qb());
var I=G.pipe(a$(function(q){return q===void 0?!0:q}),ca(function(q,l){return q||!l},!1)),h=G.pipe(ca(function(q,l){return l===void 0?q:l?!1:q!=null?q:!0},void 0),a$(function(q){return!!q}));
return KN([b,vpu(G,I,h)]).pipe(a$(function(q){var l=_.e(q);q=l.next().value;var V=_.e(l.next().value);l=V.next().value;var D=V.next().value;V=V.next().value;var k=0;if(!q)return 0;if(l===void 0)return 16;l&&(k|=1);l||(k|=2);D&&(k|=4);V&&(k|=8);return k}))};
mcX=function(G,b,I,h,q){var l=IpO.timeThresholdMs;var V=V===void 0?new hTp(b,h):V;return(new Tf(function(D){var k=I.pipe(kp(void 0),va(function(){return qBd(q)})).pipe(a$(function(L){var x=L.value;
L=L.timestamp;var f=x.visible;x=x.consecutiveViewTime;var T=x>=l;T||!f?jjs(V):(L=Math.max(0,Sc(b.now(),L)),lpa(V,Math.max(0,l-x-L)));return T}),ca(function(L,x){return x||L},!1),qb()).subscribe(D);
return function(){V.dispose();k.unsubscribe()}})).pipe(Qa(function(D){return!D},!0),Zz(G))};
qBd=function(G){return LTq([G,G.pipe(BvO())]).pipe(a$(function(b){var I=_.e(b);b=I.next().value;I=I.next().value;return{timestamp:b.timestamp,value:{visible:b.value,consecutiveViewTime:I.value}}}),qb(function(b,I){return Il(b,I,function(h,q){return h.consecutiveViewTime===q.consecutiveViewTime&&h.visible===q.visible})}))};
eTO=function(){return fN(fZq(),ca(function(G,b){return Math.max(G,b)},0),a$(function(G){return Math.round(G)}))};
Vkj=function(G){return fN(Nvr(dm(G)),eTO())};
Dcr=function(G,b){return b instanceof Tf?b.pipe(va(function(I){return(I=I?15:null)?rm(new Nb(I)):G})):(b=b.value?15:null)?rm(new Nb(b)):G};
cCp=function(G){var b=new Nb(13);if(G.length<1)return{chain:wm,capturedErrors:wm};var I=new A4,h=G[0];return{chain:G.slice(1).reduce(function(q,l){return q.pipe(Gl(function(V){I.next(V);return l}))},h).pipe(Gl(function(q){I.next(q);
return rm(b)}),mn(new A4),Wp()),
capturedErrors:I}};
kFj=function(G,b){var I=G.pipe(mn(new A4),Wp());return va(function(h){return I.pipe(b(h))})};
L7d=function(G,b){if(G.inCrossDomainIframe)return rm(new Nb(6));var I=new A4;return EZ(dm({}),b,I).pipe(a$(function(){return{timestamp:G.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:vzs(G),topWindowViewportExternalGeometry:SS(G,!0),measurementRequests:I,viewportLocalAppOffset:{x:0,y:0}}}}),Mb(G.queue))};
vzs=function(G){var b=SS(G,!1);if(!G.inIframe||!Fn2(G.global.parent)||G.global.parent===G.global)return b;var I=new lG(G.global.parent,G.debugChannel);I.beaconFactory=G.beaconFactory;I=vzs(I);G=G.global.frameElement.getBoundingClientRect();return guO(A2X(guO(I,G),{x:b.left-G.left,y:b.top-G.top}),b)};
Qj2=function(G){if(G.prerendering)return 3;var b;return(b={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[G.visibilityState||G.webkitVisibilityState||G.mozVisibilityState||""])!=null?b:0};
xcq=function(G){return G.document.JSC$9444_onVisibilityChange.pipe(a$(function(b){return b==="visible"}),qb(),Zz(G.queue))};
fpd=function(G,b,I){var h;return b.pipe(qb(),va(function(q){return I.pipe(a$(function(){if(!h){h=!0;try{q.next()}finally{h=!1}}return!0}))}),kp(!1),Zz(G.queue))};
Tyj=function(G){return fN(bG(a$(function(b){return b>=1?!0:b<=0?!1:b>=G})),xQj(),a$(function(b){return Math.round(b)}))};
Ucd=function(G,b,I,h,q){var l=Byd;if(l.length>1)for(var V=0;V<l.length-1;V++)if(l[V]<l[V+1])throw Error();V=q.pipe(kp(void 0),va(function(){return I.pipe(BvO())}),qb(),Zz(G));
q=q.pipe(kp(void 0),va(function(){return I.pipe(eTO())}),qb(),Zz(G));
return{totalMeasurementTime:h.pipe(kp(void 0),va(function(){return b.pipe(a$(function(D){return{timestamp:D.timestamp,value:!0}}),xQj())}),qb(),Zz(G)),
totalUnviewedTime:h.pipe(kp(void 0),va(function(){return b.pipe(a$(function(D){return{timestamp:D.timestamp,value:D.value===0}}),xQj())}),qb(),Zz(G)),
maxTimeOnScreen:h.pipe(kp(void 0),va(function(){return b.pipe(Tvs(Vkj,l))}),qb(_.pO),Zz(G)),
timeOnScreen:h.pipe(kp(void 0),va(function(){return b.pipe(Tvs(Tyj,l),a$(function(D){return D.map(function(k,L){return L>0?k-D[L-1]:k})}))}),qb(_.pO),Zz(G)),
maxConsecutiveViewTime:q,consecutiveViewTime:V.pipe(qb(Il),Zz(G))}};
gzB=function(G){var b=!0;b=b===void 0?!1:b;return fN(va(function(I){return sjp(G.document,I,b)}),Zz(G.queue))};
ACv=function(G,b,I){var h=I.pipe(a$(function(q){return{value:q,timestamp:G.timeProvider.now()}}),qb(Il));
return b instanceof Tf?b.pipe(qb(),va(function(q){return q?ja(new zl({value:!1,timestamp:G.timeProvider.now()}),G.queue):h})):b.value===!1?h:new zl(!1)};
MkB=function(G,b,I,h,q,l,V){var D=IpO;b=b instanceof Tf?b.pipe(kp(!1),qb()):b;var k=!G.isMobile();I=ACv(G,I,h);G=V.measurableCreative.pipe(v82(G.queue));return Object.assign({},D,{geometryIsOccluded:I,wasLargeAdAtRender:q,allowLargeAdThreshold:k,mayUseViewportShareExposure:b,hasMeasurementStarted:G,useIntersectionObserverV2:l})};
tkr=function(G,b,I,h,q,l){var V=1;l=l===void 0?!0:l;V=V===void 0?.01:V;var D=D===void 0?G.timeProvider.intervalObservable(100).pipe(Zz(G.queue)):D;return G.performanceMonitor.timeExecution(916,function(){return Z3d(G,b.pipe(Mb(G.queue)),I.pipe(Mb(G.queue)),h,q,l,V,D)})()};
Z3d=function(G,b,I,h,q,l,V,D){var k=xcq(G).pipe(a$(function(x){return!x})),L=new zTu(G,[new ozB(G,Byd),
new i32(G,D)]);D=IZq(PMu,dcO);return wrp(G,b,function(x,f){var T=ja(new zl(f.element),x.queue).pipe(gzB(x),Zz(x.queue)),B={loadedElement:T,shouldMeasure:T.pipe(Ik(!0)),measurableCreative:T.pipe(a$(function(u){var w=w===void 0?Symbol():w;return Object.freeze({symbol:w,element:ja(new zl(u),x.queue)})})),
creativeSearchResult:ja(new zl("mue"),x.queue)},A=new zl(!1),t=new zl(!1),y=new zl(17),F=new zl(!1),W=new zl(!1),O=ja(mF,x.queue);A=L.buildGeometrySource(B,{inApp:A,useV2:!1,requestSource:ja(y,x.queue)}).geometrySource;B=MkB(x,F,t,k,W,O,B);t=b3B(x.queue,x.timeProvider,A,B);B=t.geometrySignals;F=t.shouldResetViewabilitySignals;t=Ucd(x.queue,B.timestampedExposure,B.visible,t.shouldResetExposureSignals,F);F=mcX(x.queue,x.timeProvider,F,B.measurementRequests,B.visible);W=I.pipe(pN(function(u){return u===
f.element.ref}),a$(function(){return"ur"}));
O=fzO(x.timeProvider,q).pipe(Ik("t"));W=WTO(x,EZ(W,O));O=fpd(x,B.measurementRequests,W.pipe(pN(function(u){return u!==null})));
A=W.pipe(pN(function(u){return u!==null}),a$(function(){return Qj2(x.global.document)===1}));
var K=yCO(x.document);return Object.assign({},{beaconFactory:new zl(x.beaconFactory),context:new zl(x),inferredPingId:new zl("lidar2"),timeOnScreenPingId:new zl("lidartos"),binaryContext:new zl(17),binaryVersion:new zl(h),requestSource:y,contextValidationErrors:new zl(x.validate()?null:new Yp),contextVisibilityKnown:new zl(K),payloadMapper:new zl(Gtr),endOfSessionReason:W,timeOnScreenReason:W,requestMeasurementOnEndOfSession:O,hasImpressionFired:rCp,crossDomainIframeState:new zl(x.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:mF,inFetchLaterBeaconExperiment:mF,isTurtlex:mF,turtlexReportEventData:new zl(""),reportFencedFrameEvent:ak,isViewableAttributionEnabled:mF,inViewableAttributionExperiment:new zl(0),fetchBeaconFactory:ak,supportsPendingBeacon:mF,supportsFetchLater:mF,emit:new zl(jJ2),beginToRenderEvent:new zl(Symbol()),activeViewUnmeasurableEvent:new zl(Symbol()),activeViewViewableEvent:new zl(Symbol()),creativeFound:rCp,immediateUrlPrefixes:new zl(f.immediateUrls),timeOnScreenUrlPrefixes:new zl(f.timeOnScreenUrls),
cpmavUrls:ak,viewableRelayUrls:ak,measurementDeferralState:new zl(2),urlSerializer:new zl(cfO),viewUrlSerializer:new zl(F7r),isCreativeLoaded:T.pipe(v82(x.queue)),pageVisible:k.pipe(a$(function(u){return!u})),
eosPageVisible:A,timestampedExposureHistory:B.timestampedExposure.pipe(ca(function(u,w){u.push(w);return u},[]))},B,{viewable:q2(x,F),
maxTimeOnScreen:q2(x,t.maxTimeOnScreen),timeOnScreen:q2(x,t.timeOnScreen),maxConsecutiveViewTime:q2(x,t.maxConsecutiveViewTime),consecutiveViewTime:t.consecutiveViewTime.pipe(a$(function(u){return new h2(x.timeProvider,u)})),
totalMeasurementTime:q2(x,t.totalMeasurementTime),totalUnviewedTime:q2(x,t.totalUnviewedTime),userAgentClientHints:bTj(x),clientOrderPingCounter:new zl(new prv)})},b0s(G,V),hCs(l?qMB(D,H3O):qMB(D,W7v),aps))};
Nyr=function(G){var b=_.RI.apply(1,arguments).filter(Boolean).join("&");if(!b)return G;var I=G.match(/[?&]adurl=/);return I?G.slice(0,I.index+1)+b+"&"+G.slice(I.index+1):G+(G.indexOf("?")<0?"?":"&")+b};
ea=function(G,b){return b?"&"+G+"="+encodeURIComponent(b):""};
YBr=function(){try{var G,b;return!!((G=window)==null?0:(b=G.top)==null?0:b.location.href)&&!1}catch(I){return!0}};
_.VQ=function(G){G&&typeof G.dispose=="function"&&G.dispose()};
_.DC=function(G){for(var b=0,I=arguments.length;b<I;++b){var h=arguments[b];_.KO(h)?_.DC.apply(null,h):_.VQ(h)}};
JCO=function(){var G=CMs();G=G===void 0?"bevasrsg":G;return new Promise(function(b){var I=window===window.top?window:YBr()?window:window.top,h=I[G],q;((q=h)==null?0:q.bevasrs)?b(new cr(h.bevasrs)):(h||(h={},h=(h.nqfbel=[],h),I[G]=h),h.nqfbel.push(function(l){b(new cr(l))}))})};
K7r=function(G){var b={c:G.fQ,e:G.qlF,mc:G.w6E,me:G.lHl};G.jx&&(b.co={c:G.jx.x8J,a:G.jx.cAF,s:G.jx.tWt});return b};
ujs=function(G){var b,I,h={fQ:G.c,qlF:G.e,w6E:(b=G.mc)!=null?b:!1,lHl:(I=G.me)!=null?I:!1};G.co&&(h.jx={x8J:G.co.c,cAF:G.co.a,tWt:G.co.s});return h};
RTO=function(G){return function(){var b;return _.c(function(I){if(I.nextAddress==1)return I.yield(G(),2);b=I.yieldResult;return I.return({f:function(){return b.g6F()},
c:function(h){return b.xCW(h)},
m:function(h){return b.am(ujs(h))},
mws:function(h){return b.moQ(ujs(h))}})})}};
nzq=function(G,b){var I=CMs();I=I===void 0?"bevasrsg":I;b={s:function(l){var V;return G.snapshot(Object.assign({},l.c&&{fQ:l.c},l.s&&{rGV:l.s},{k8I:(V=l.p)!=null?V:!0}))},
e:function(l){var V;return void((V=G.pUJ)==null?void 0:V.call(G,l))},
c:function(l,V){return G.nDJ(l,V)},
p:G.qhz,l:function(){return G.oph()},
wpc:b?RTO(b):void 0};var h=window===window.top?window:YBr()?window:window.top,q=h[I];if(q){q.bevasrs=b;if(q.nqfbel!==void 0)for(I=_.e(q.nqfbel),h=I.next();!h.done;h=I.next())h=h.value,h(b);q.nqfbel=void 0}else q={},q=(q.bevasrs=b,q.nqfbel=void 0,q),h[I]=q};
w3r=function(G){var b=b===void 0?51:b;var I=[];_.ku(G,O3B,6,_.vr()).forEach(function(h){_.LT(h,2)<=b&&I.push(_.LT(h,1))});
return I};
Ezd=function(G){var b=b===void 0?51:b;var I=[];_.ku(G,O3B,6,_.vr()).forEach(function(h){_.LT(h,2)>b&&I.push(_.LT(h,1))});
return I};
p3B=function(G){G.then(function(){},function(){})};
QQ=function(G){return{fieldType:1,fieldName:G}};
xu=function(G){return{fieldType:2,fieldName:G}};
_.fT=function(G){return{fieldType:3,fieldName:G}};
SBa=function(){function G(){q[0]=1732584193;q[1]=4023233417;q[2]=2562383102;q[3]=271733878;q[4]=3285377520;x=L=0}
function b(f){for(var T=V,B=0;B<64;B+=4)T[B/4]=f[B]<<24|f[B+1]<<16|f[B+2]<<8|f[B+3];for(B=16;B<80;B++)f=T[B-3]^T[B-8]^T[B-14]^T[B-16],T[B]=(f<<1|f>>>31)&4294967295;f=q[0];var A=q[1],t=q[2],y=q[3],F=q[4];for(B=0;B<80;B++){if(B<40)if(B<20){var W=y^A&(t^y);var O=1518500249}else W=A^t^y,O=1859775393;else B<60?(W=A&t|y&(A|t),O=2400959708):(W=A^t^y,O=3395469782);W=((f<<5|f>>>27)&4294967295)+W+F+O+T[B]&4294967295;F=y;y=t;t=(A<<30|A>>>2)&4294967295;A=f;f=W}q[0]=q[0]+f&4294967295;q[1]=q[1]+A&4294967295;q[2]=
q[2]+t&4294967295;q[3]=q[3]+y&4294967295;q[4]=q[4]+F&4294967295}
function I(f,T){if(typeof f==="string"){f=unescape(encodeURIComponent(f));for(var B=[],A=0,t=f.length;A<t;++A)B.push(f.charCodeAt(A));f=B}T||(T=f.length);B=0;if(L==0)for(;B+64<T;)b(f.slice(B,B+64)),B+=64,x+=64;for(;B<T;)if(l[L++]=f[B++],x++,L==64)for(L=0,b(l);B+64<T;)b(f.slice(B,B+64)),B+=64,x+=64}
function h(){var f=[],T=x*8;L<56?I(D,56-L):I(D,64-(L-56));for(var B=63;B>=56;B--)l[B]=T&255,T>>>=8;b(l);for(B=T=0;B<5;B++)for(var A=24;A>=0;A-=8)f[T++]=q[B]>>A&255;return f}
for(var q=[],l=[],V=[],D=[128],k=1;k<64;++k)D[k]=0;var L,x;G();return{reset:G,update:I,digest:h,digestString:function(){for(var f=h(),T="",B=0;B<f.length;B++)T+="0123456789ABCDEF".charAt(Math.floor(f[B]/16))+"0123456789ABCDEF".charAt(f[B]%16);return T}}};
hpp=function(G,b){b=b===void 0?X3p:b;if(!$1O){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"));Gea((G.brands||[]).map(function(q){var l=new bLp;l=_.F0(l,1,q.brand);return _.F0(l,2,q.version)}));
typeof G.mobile==="boolean"&&_.Tx(IUj,2,G.mobile);$1O=G.getHighEntropyValues(b)}var h=new Set(b);return $1O.then(function(q){var l=IUj.clone();h.has("platform")&&_.F0(l,3,q.platform);h.has("platformVersion")&&_.F0(l,4,q.platformVersion);h.has("architecture")&&_.F0(l,5,q.architecture);h.has("model")&&_.F0(l,6,q.model);h.has("uaFullVersion")&&_.F0(l,7,q.uaFullVersion);return l.serialize()}).catch(function(){return IUj.serialize()})};
Br=function(G,b,I,h){this.initialValue_=G;this.maxValue_=b;this.currBaseValue_=this.currValue_=G;this.randomFactor_=I||0;this.backoffFactor_=h||2};
s8=function(G){this.src=G;this.listeners={};this.typeCount_=0};
m1v=function(){for(var G;G=qGv.remove();){try{G.fn.call(G.scope)}catch(b){qr(b)}jNu.put(G)}lUX=!1};
_.ep2=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}};
VOX=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""}};
_.D1O=function(){};
BiX=function(G,b,I,h){G=cBr(kes(vWr(new _.A2(1828,"0"),G),new LEX)).disableWithCredentials();b.length&&QNO(G,x1v(new fUq,b));h!==void 0&&(G.destinationUrl=h);var q=new Tia(1828,"","",!1,"",G.build());_.M2(q,G);var l=new ZC({flush:function(V){try{q.flush(V)}catch(D){I(D)}}});
l.addOnDisposeCallback(function(){setTimeout(function(){try{l.snapshotAndFlush()}finally{q.dispose()}})});
l.invocationLimit=1E5;l.flushInterval=3E4;l.JSC$9860_flushTimer.setInterval(3E4);return l};
t2=function(){var G,b,I;return(I=(G=globalThis.performance)==null?void 0:(b=G.now)==null?void 0:b.call(G))!=null?I:Date.now()};
gWO=function(G,b){if(G.disable)return new U1r;b=b?w3r(b):[];G={y6:G.y6,pVp:G.sDT,ggK:G.sTp,destinationUrl:G.destinationUrl,mOv:G.mOv,mIb:G.mIb};b=b===void 0?[]:b;return new sN2(G,b)};
ABq=function(G){if(!G)return null;G=_.zx(G,2);return G===null||G===void 0?null:Ev(G)};
_.MOr=function(G){if(!G)return null;G=_.zx(G,4);return G===null||G===void 0?null:_.Pg(G)};
zpd=function(G,b){return b?ZLX(b):G?tO2(G):Promise.resolve()};
ZLX=function(G){return new Promise(function(b,I){var h=_.ol("SCRIPT"),q=_.MOr(G);_.mf(h,q);h.onload=function(){_.iG(h);b()};
h.onerror=function(){_.iG(h);I(Error("Fa"))};
(Pr("HEAD")[0]||document.documentElement).appendChild(h)})};
tO2=function(G){return new Promise(function(b){var I=_.ol("SCRIPT");if(G){var h=_.zx(G,6);h=h===null||h===void 0?null:_.qz(h)}else h=null;_.lp(I,h);(Pr("HEAD")[0]||document.documentElement).appendChild(I);_.iG(I);b()})};
dk=function(G,b,I){var h,q=new Promise(function(l){h=setTimeout(l,b)});
return Promise.race([G.finally(function(){return void clearTimeout(h)}),
q.then(I)])};
oWa=function(G,b){try{return globalThis.sessionStorage.setItem(G,b),!0}catch(I){return!1}};
iLs=function(G,b,I,h){b=b===void 0?0:b;I=I===void 0?G.length:I;var q=0;for(h&&(q=iLs(h));b<I;b++)h=typeof G==="string"?G.charCodeAt(b):G[b],q=PBp(31,q)+h|0;return q};
d1a=function(G,b){return[iLs(G,0,G.length>>1,b),iLs(G,G.length>>1)]};
yBu=function(G){var b=_.e(d1a(G,yQ));G=b.next().value;b=b.next().value;return G.toString(16)+b.toString(16)};
rBX=function(G,b){var I=d1a(b);G=new Uint32Array(G.buffer);b=G[0];var h=_.e(I);I=h.next().value;h=h.next().value;for(var q=1;q<G.length;q+=2){for(var l=b,V=q,D=I,k=h,L=0;L<22;L++)V=V>>>8|V<<24,V+=l|0,V^=D+38293,l=l<<3|l>>>29,l^=V,k=k>>>8|k<<24,k+=D|0,k^=L+38293,D=D<<3|D>>>29,D^=k;l=[l,V];G[q]^=l[0];q+1<G.length&&(G[q+1]^=l[1])}};
FE2=function(G,b,I,h,q){var l=(4-(yQ.length+I.length)%4)%4,V=new Uint8Array(4+l+yQ.length+4+I.length),D=new DataView(V.buffer),k=0;D.setUint32(k,Math.random()*4294967295);k=k+4+l;V.set(yQ,k);k+=yQ.length;D.setUint32(k,q);V.set(I,k+4);rBX(V,h);return G.insert(b,function(L){return void globalThis.sessionStorage.removeItem(L)})?oWa(b,_.WL(V))?"s":"t":"i"};
HLj=function(G,b){var I=globalThis.sessionStorage.getItem(G);if(!I)return["m"];try{var h=_.Sv(I);rBX(h,b)}catch(q){return globalThis.sessionStorage.removeItem(G),["c"]}for(b=4;b<7&&h[b]===0;)b++;for(I=0;I<yQ.length;I++)if(h[b++]!==yQ[I])return globalThis.sessionStorage.removeItem(G),["d"];I=(new DataView(h.buffer)).getUint32(b);return Math.floor(Date.now()/1E3)>=I?(globalThis.sessionStorage.removeItem(G),["e"]):["a",new Uint8Array(h.buffer,b+4)]};
WEr=function(G){return globalThis.TextEncoder?(new TextEncoder).encode(G):_.rk(G)};
aUB=function(G){var b=G,I;return function(){if(b){var h=b;b=void 0;I=h.apply(this,arguments)}return I}};
YGa=function(G){return WX(function(b){if(b instanceof G)return!0;var I,h,q=b==null?void 0:(I=b.ownerDocument)==null?void 0:(h=I.defaultView)==null?void 0:h[G.name];return Nip(q)&&b instanceof q})};
_.al=function(G,b,I){_.FN.call(this);this.JSC$10074_listener_=G;this.JSC$10074_interval_=b||0;this.handler_=I;this.callback_=(0,_.Hr)(this.JSC$10076_doAction_,this)};
_.N2=function(G){G=CBp(G);return _.Pg(G)};
CBp=function(G){return G===null?"null":G===void 0?"undefined":G};
KEO=function(G){if(G&&G.focus)if(G!==document.activeElement)G.focus();else return JBO(function(){return _.c(function(b){document.activeElement&&document.activeElement.blur();return b.return(JBO(function(){G.focus()}))})})};
_.uUr=function(G){var b=b===void 0?5:b;setTimeout(function(){var I;return _.c(function(h){h.nextAddress==1&&(I=document.activeElement);if(h.nextAddress!=5)return(document.activeElement===I||document.activeElement===document.body)&&b>=0&&G?h.yield(KEO(G),5):h.jumpTo(0);if(document.activeElement===G)return h.return();G=G.parentElement;--b;return h.jumpTo(2)})},15)};
JBO=function(G){return new Promise(function(b){requestAnimationFrame(function(){b(G())})})};
nWa=function(G){if(_.Yu)G(_.Yu);else{var b;((b=Rpv)!=null?b:Rpv=[]).push(G)}};
J2=function(){!_.Yu&&_.CT&&_.OLO(_.CT());return _.Yu};
_.OLO=function(G){_.Yu=G;var b;(b=Rpv)==null||b.forEach(nWa);Rpv=void 0};
_.KT=function(G){_.Yu&&_.Yu.beforeLoadModuleCode(G)};
_.uG=function(){_.Yu&&_.Yu.JSC$11127_setLoaded()};
Rl=function(G){return y5O(G)?Number(G):String(G)};
wfa=function(G){this.action=G;this.wfv=!1};
EW2=function(G,b){wfa.call(this,"set-drive-options");this.appId=G;this.appOrigin=b};
pfO=function(G){wfa.call(this,"visibility");this.visible=G};
SGr=function(G,b,I){nT.call(this,G,b,I)};
Xfp=function(G){wk.call(this,G)};
$9u=function(G){G=G&&G.getWindow()||window;return G.gadgets&&G.gadgets.rpc};
biv=function(G,b){var I=b&&b.getWindow()||window;if($9u(b))G();else if(Gvv)Gvv.push(G);else var h=Gvv=[G],q=I.setInterval(function(){if($9u(b)){I.clearInterval(q);for(var l=0;l<h.length;l++)h[l]();Gvv=null}},100)};
hjO=function(G,b){var I=new E8(G);_.M2(b,I);var h={passive:!1};b.listen(I,"mousewheel",function(q){return void IOj(G,q)},h).listen(G,"scroll",function(q){return void IOj(G,q)},h)};
IOj=function(G,b){var I;a:{for(I=b.target;I;){if(I.nodeType==1){var h=_.pT(I,"overflowY");if(h=="auto"||h=="scroll")break a}I=I.parentNode}I=null}if(!I||!_.Sa(G,I)||I.scrollHeight==I.clientHeight||b.deltaY>0&&Math.abs(I.scrollTop-(I.scrollHeight-I.clientHeight))<=1||b.deltaY<0&&I.scrollTop==0)b.preventDefault(),b.stopPropagation()};
qQ=function(G,b,I,h,q,l,V,D,k){D=D===void 0?!1:D;k=k===void 0?!1:k;nT.call(this,void 0,void 0,void 0);nT.call(this,l?l+" picker modal-dialog":"picker modal-dialog",!0,I);_.XN(G,"protocol");this.iframeManager_=new qAO;this.targetId_=$8();this.rpcToken_=$8();G=_.Gt(G);_.bI(G,"hostId");this.useGapi_=!k;D&&_.IJ(G,"fv2","true");this.setUrl(G.toString());this.preferredDialogWidth_=h;this.preferredDialogHeight_=q;h!==void 0||q!==void 0?h=!0:(h=_.bI(_.Gt(G.toString()),"hostId"),jba||(jba=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
h=!jba.has(h));this.autoSizeDialog_=h;this.JSC$10264_gadgetsDomHelper_=V||this.JSC$10215_dom_;b&&(V=this.JSC$10264_gadgetsDomHelper_,b=_.bI(_.Gt(this.JSC$10266_url_),"grugl")=="true"?lOB:m9s,$9u(V)||(V=V||rV(document),h=V.createElement("SCRIPT"),_.mf(h,b),h.type="text/javascript",V.JSC$9399_document_.body.appendChild(h)));G=G.toString();b=null;V=G.indexOf("/picker?");V>-1?b=G.substring(0,V+8-1):ls(G,"/picker")&&(b=G);b&&this.setRelayUrl(b+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(G=this.buttons_,G.JSC$10249_element_=this.buttonEl_,G.render()):_.ec(this.buttonEl_,ejj),_.hf(this.buttonEl_,!!this.buttons_))};
_.kvB=function(G){var b=b===void 0?Vyv:b;var I=_.Ej(G),h=function(l){l=_.e(l);l.next();l=jT(l);return b(I,l)},q=function(l){var V=_.e(l);
l=V.next().value;V=jT(V);return G.apply(l,V)};
return function(){var l=_.RI.apply(0,arguments),V=this||_.hd,D=D9j.get(V);D||(D={},D9j.set(V,D));return cF2(D,[this].concat(_.Nz(l)),q,h)}};
lI=function(G){var b={};G=G.replace(/\r/g,"").split("\n");for(var I=0;I<G.length;I++){var h=G[I],q=h.indexOf(":");q<0||(b[h.substring(0,q)]=h.substring(q+2,h.length))}return b};
v_r=function(G,b,I){I=I===void 0?function(){}:I;
return G?b():I()};
_.Qbj=function(G){var b;return((b=L0d.documentOverride)!=null?b:G).__wizdispatcher};
_.eT=function(G){var b=mT;mT=G;return b};
_.fOa=function(G){return G===x9u||(G==null?void 0:G.name)==="\u0275NotFound"};
_.VA=function(G,b){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(b,{optional:!0});G=G.parent}return x9u};
DZ=function(G){return{"\u0275prov":{providedIn:"root",token:Symbol(G),factory:void 0,value:void 0}}};
_.Thd=function(G){var b=mT;if(!b){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 b};
BhO=function(G){var b=_.eT(G);G={};return G[Symbol.dispose]=function(){_.eT(b)},G};
U9p=function(G,b){G.disposables||(G.disposables=[]);G.disposables.push(b)};
c$=function(G){var b=mT;b&&!b.isDisposed&&(U9p(b,G),G.parent=b)};
g_O=function(G){if(G.disposables){for(var b=_.e(G.disposables),I=b.next();!I.done;I=b.next())I=I.value,typeof I==="function"?I():sbX(I);G.disposables.length=0}};
sbX=function(G){if(!G.isDisposed){G.isDisposed=!0;var b;(b=G[Symbol.dispose])==null||b.call(G);delete G.parent;g_O(G)}};
d9O=function(G){var b={retrieve:function(I){switch(I.\u0275prov.token){case AF2.\u0275prov.token:var h=G.asyncDeps;break;case _.Mys.\u0275prov.token:h=G.rootElement;break;case Zis.\u0275prov.token:h=G.modelRootElement;break;case tya.\u0275prov.token:h=G.appContext;break;case zjr.\u0275prov.token:h=G.rendererData;break;case o_O.\u0275prov.token:h=G.injectingConstructor;break;case iis.\u0275prov.token:h=G.dispatcher}if(h)I=h;else a:{for(h=b.parent;h;){var q=h;if(q.retrieve){I=q.retrieve(I);break a}h=
h.parent}h=I.\u0275prov.token;q=PuO[h];q!==void 0?I=q:(q=I.\u0275prov.providedIn,I.\u0275prov.factory?(I=I.\u0275prov.factory(),h&&q==="root"&&(PuO[h]=I)):I=x9u)}return I}};
c$(b);return b};
yF2=function(){var G=_.Thd(1),b=_.VA(G,tya);if(!_.fOa(b))return b;G=_.VA(G,iis);if(!_.fOa(G))return G.getOptionalAppContext()};
rFO=function(G){if(typeof document!=="undefined"&&document&&document.getElementById&&(G=document.getElementById(G))){var b=G.tagName.toUpperCase();if(b=="SCRIPT"||b=="LINK")return G}return null};
Hij=function(G,b){if((G=G===void 0?"":G)&&b)throw Error("sb");var I="";var h=_.hd._F_jsUrl;(G=b||rFO(G))&&(I=G.src?G.src:G.getAttribute("href"));if(h&&I){if(h!=I)throw Error("tb`"+h+"`"+I);I=h}else I=h||I;if(!F0B(I))throw Error("ub");return I};
YAr=function(){if(!W0r){W0r=!0;try{var G=Hij(_.hd._F_jsUrl?"":"base-js")}catch(h){return}var b=aOr(Nhr(G)),I=Object.keys(b);I.length!==0&&nWa(function(h){for(var q=_.e(I),l=q.next();!l.done;l=q.next()){l=l.value;for(var V=_.e(Object.keys(b[l])),D=V.next();!D.done;D=V.next())h.addExtraEdge(l,D.value)}})}};
JF2=function(){var G=Object.assign({},Cuj);Object.getOwnPropertyNames(Cuj).forEach(function(b){k8[b]!==void 0&&(G[b]=k8[b])});
return G};
K0X=function(G,b){if(k8.enablePerformanceTiming){var I,h;(h=(I=performance).mark)==null||h.call(I,G+"Start__"+b)}};
u5O=function(G,b){if(k8.enablePerformanceTiming){var I,h;(h=(I=performance).measure)==null||h.call(I,G+"__"+b,G+"Start__"+b)}};
Rjv=function(G,b,I){var h;return G&&b?G+"__"+b:(h=G!=null?G:b)!=null?h:I};
Ois=function(G,b){var I=Object.create(n_u);I.debugName=b;!mT||c$(I);b=_.eT(I);try{G(I)}finally{_.eT(b)}return function(){return void sbX(I)}};
E_v=function(G){return v$(G)&&wzX in G};
pzO=function(G,b){return Object.is(G,b)};
QA=function(G){var b=L0;L0=G;return b};
XzO=function(G){if(x8)throw Error("Z");if(L0!==null){var b=L0.producersTail;if(b===void 0||b.producer!==G){var I=void 0,h=L0.recomputing;if(h&&(I=b!==void 0?b.nextProducer:L0.producers,I!==void 0&&I.producer===G)){L0.producersTail=I;I.lastReadVersion=G.version;return}var q=G.consumersTail,l;if(!(l=q===void 0||q.consumer!==L0)){if(h){a:{l=L0;h=l.producersTail;if(h!==void 0){l=l.producers;do{if(l===q){h=!0;break a}if(l===h)break;l=l.nextProducer}while(l!==void 0)}h=!1}h=!h}l=h}l&&(h=B$(L0),I={producer:G,
consumer:L0,nextProducer:I,prevConsumer:q,lastReadVersion:G.version,nextConsumer:void 0},L0.producersTail=I,b!==void 0?b.nextProducer=I:L0.producers=I,h&&SAr(G,I))}}};
sM=function(G){if(!B$(G)||G.dirty)if(G.dirty||G.lastCleanEpoch!==UM)(G.producerMustRecompute(G)||$Bd(G))&&G.producerRecomputeValue(G),G.dirty=!1,G.lastCleanEpoch=UM};
Gsv=function(G){if(G.consumers!==void 0){var b=x8;x8=!0;try{for(var I=G.consumers;I!==void 0;I=I.nextConsumer){var h=I.consumer;h.dirty||(G=void 0,h.dirty=!0,Gsv(h),(G=h.consumerMarkedDirty)==null||G.call(h,h))}}finally{x8=b}}};
b1q=function(){var G;return((G=L0)==null?void 0:G.consumerAllowSignalWrites)!==!1};
I5a=function(G){G&&(G.producersTail=void 0,G.recomputing=!0);return QA(G)};
qYp=function(G){G.recomputing=!1;var b=G.producersTail,I=b!==void 0?b.nextProducer:G.producers;if(I!==void 0){if(B$(G)){do I=h2p(I);while(I!==void 0)}b!==void 0?b.nextProducer=void 0:G.producers=void 0}};
$Bd=function(G){for(G=G.producers;G!==void 0;G=G.nextProducer){var b=G.producer,I=G.lastReadVersion;if(I!==b.version)return!0;sM(b);if(I!==b.version)return!0}return!1};
SAr=function(G,b){var I=G.consumersTail,h=B$(G);I!==void 0?(b.nextConsumer=I.nextConsumer,I.nextConsumer=b):(b.nextConsumer=void 0,G.consumers=b);b.prevConsumer=I;G.consumersTail=b;if(!h)for(G=G.producers;G!==void 0;G=G.nextProducer)SAr(G.producer,G)};
h2p=function(G){var b=G.producer,I=G.nextProducer,h=G.nextConsumer,q=G.prevConsumer;G.nextConsumer=void 0;G.prevConsumer=void 0;h!==void 0?h.prevConsumer=q:b.consumersTail=q;if(q!==void 0)q.nextConsumer=h;else if(b.consumers=h,!B$(b))for(G=b.producers;G!==void 0;)G=h2p(G);return I};
B$=function(G){return G.consumerIsAlwaysLive||G.consumers!==void 0};
l5v=function(G){var b=Object.create(jBd);b.computation=G;G=function(){sM(b);XzO(b);if(b.value===gv)throw b.error;return b.value};
G[Af]=b;return G};
DBr=function(G,b){var I=Object.create(mBq);I.value=G;b!==void 0&&(I.equal=b);G=function(){XzO(I);return I.value};
G[Af]=I;return[G,function(h){return e2s(I,h)},
function(h){b1q()||VGO(I);e2s(I,h(I.value))}]};
e2s=function(G,b){b1q()||VGO(G);if(!G.equal(G.value,b)){G.value=b;G.version++;UM++;Gsv(G);var I;(I=cMr)==null||I(G)}};
v2O=function(G,b,I){var h=Object.create(ksr);h.source=G;h.computation=b;I!=void 0&&(h.equal=I);G=function(){sM(h);XzO(h);if(h.value===gv)throw h.error;return h.value};
G[Af]=h;return G};
_.MQ=function(G){var b=QA(null);try{return G()}finally{QA(b)}};
_.ZZ=function(G,b,I){I=I===void 0?"":I;G=DBr(G,b==null?void 0:b.equals);var h=G[0],q=h[Af];q.debugName=Rjv(b==null?void 0:b.debugName,I,"[signal]");if(!k8.enablePerformanceTiming)return G;var l=G[1],V=G[2];return[h,function(D){LGr(function(){return void l(D)},q)},
function(D){LGr(function(){return void V(D)},q)}]};
LGr=function(G,b){K0X("signalSet",b.debugName);try{G()}finally{u5O("signalSet",b.debugName)}};
xBO=function(G,b){var I=_.e(_.ZZ(G,void 0,"cPpJzc"));G=I.next().value;I=I.next().value;G[QBX]=I;G[tf]=b;return G};
f5s=function(G){return!!G&&typeof G==="object"&&Object.getPrototypeOf(G)===Object.prototype};
THr=function(G){return typeof G==="function"&&QBX in G&&typeof G[QBX]==="function"};
BHO=function(G,b){Object.defineProperty(G,tf,{get:function(){return b}})};
oJ=function(G,b){if(zt(G)){var I=G.map(function(l){return oJ(l,b)});
BHO(I,b);return I}if(f5s(G)){I={};G=_.e(Object.entries(G));for(var h=G.next();!h.done;h=G.next()){var q=_.e(h.value);h=q.next().value;q=q.next().value;I[h]=oJ(q,b)}BHO(I,b);return I}return xBO(G,b)};
UBq=function(G){if(zt(G))return G.map(function(q){return UBq(q)});
if(f5s(G)){var b={};G=_.e(Object.entries(G));for(var I=G.next();!I.done;I=G.next()){var h=_.e(I.value);I=h.next().value;h=h.next().value;b[I]=UBq(h)}return b}return THr(G)?G():G};
g2u=function(){var G={height:0,width:0};if(!f5s(G))throw Error("Jb");var b=Symbol("Kb");return[oJ(G,b),function(I,h){if(I[tf]===b)if(typeof h==="function"){var q=[].concat(_.Nz(UBq(I)));h=h(q)||q;sBs(I,[].concat(_.Nz(h)))}else sBs(I,h);else throw Error("Lb");}]};
sBs=function(G,b){if(THr(G))G[QBX](b);else if(zt(G)&&zt(b))b=oJ(b,G[tf]),G.length=0,G.push.apply(G,_.Nz(b));else if((f5s(G)||zt(G))&&(zt(b)||typeof b==="object"&&b!==null)){b=_.e(Object.entries(b));for(var I=b.next();!I.done;I=b.next()){var h=_.e(I.value);I=h.next().value;h=h.next().value;var q=G,l=q[I];Object.hasOwn(G,I)?sBs(l,h):q[I]=oJ(h,G[tf])}}else throw Error("Mb");};
AMs=function(G){return Object.create(Object.assign({},iI,G))};
Z1u=function(){var G;return(G=MGp)!=null?G:MGp=AMs({consumerAllowSignalWrites:!0})};
_.P$=function(G,b,I){I=I===void 0?"":I;G=l5v(G);var h=G[Af];h.debugName=Rjv(b==null?void 0:b.debugName,I,"[computed]");(b==null?void 0:b.equals)!=null&&(h.equal=b.equals);return G};
dv=function(G){var b=QA(tGO);try{G()}finally{QA(b)}};
o2u=function(G,b,I){var h=z2B(G);yA={name:I?h+" ("+I+")":h,isReactive:G.componentType!==rv,parent:yA};G=b();yA=yA.parent;return G};
Fq=function(){var G=yA;return G?G.isReactive:!1};
W$=function(G,b,I){var h=yA;b&&(yA=b);try{return I==null?G():G.call(I)}catch(l){G=l;H$(G,yA);if(G!==i1d){wAr=yA;b=[];for(I=mT;I;){var q=void 0;b.push((q=I.debugName)!=null?q:"[context]");q=void 0;I=(q=I.parent)!=null?q:null}E2v=b.reverse()}i1d=G;throw G;}finally{yA=h}};
H$=function(G,b){try{var I=pAO(b);if(I&&!G.componentStack&&(G.componentStack=I,k8.enableComponentStacksInErrorMessages)){var h=G.message+"\n\nComponent stack: "+I;G.stack&&(G.stack=G.stack.replace(G.message,h));G.message=h}}catch(q){}};
pAO=function(G){if(v$(G)&&G.name!==void 0&&G.isReactive!==void 0&&G.parent!==void 0||G===null){for(var b=0,I="";b<20&&G;)I+=G.name+" > ",G=G.parent,b++;G=I.slice(0,-3)}else if(k8.enableContextBasedComponentStacks){a:{for(G=G===void 0?mT:G;G;){if(E_v(G))break a;b=void 0;G=(b=G.parent)!=null?b:null}G=null}G=G.getComponentStack().slice(0,20).join(" > ")}else G="";return G};
z2B=function(G){return G.debugName||G.name||"[component]"};
b8q=function(G){switch(G.onInitType){case SYj:XAB.schedule(G);break;case $yp:k8.enableQueueEffectAndOnInitInitialRuns?GXv.enqueue(G):GXv.schedule(G);break;default:_.Eu(G.onInitType)}};
myB=function(G){if(!G.isDisposed)switch(G.effectType){case aJ:I8u.schedule(G);break;case hxj:qzO.schedule(G);break;case j1d:k8.enableQueueEffectAndOnInitInitialRuns||G.hasRun?l8O.enqueue(G):l8O.schedule(G);break;default:_.Eu(G.effectType)}};
Dyd=function(){if(NQ>0)k8.flushRenderEffectsDuringRender&&I8u.flush();else{for(var G=_.e(exs),b=G.next();!b.done;b=G.next())b.value.flush();Vej()}};
Vej=function(){_.c(function(G){if(G.nextAddress==1)return G.yield(Promise.resolve(),2);for(var b=_.e(cUq),I=b.next();!I.done;I=b.next())I.value.flush();_.ip(G)})};
vGv=function(G){Y8=!0;try{for(var b=_.e(G),I=b.next();!I.done;I=b.next()){for(var h=I.value,q=[h],l=h;l.parent!==void 0;)l=l.parent,kX2(l)&&G.has(l)&&q.push(l);for(;q.length>0;){var V=q.pop();G.delete(V);V.run()}}}finally{Y8=!1}};
C0=function(G){NQ--;if(G){G=_.e(Ltj);for(var b=G.next();!b.done;b=G.next())b.value.clear()}else NQ>0||Y8&&!k8.flushRenderEffectsDuringRender||Dyd()};
Q1j=function(G,b,I){b=Object.create(b);G&&(b.effectFn=G);I&&(b.debugName=I);c$(b);b.componentStack=yA;return b};
_.Jf=function(G,b){G=Q1j(G,xyO,b);myB(G)};
_.K0=function(G,b){G=Q1j(G,f8O,b);myB(G)};
Tas=function(G){return G};
Bar=function(G,b){function I(){return q()}
var h=h===void 0?"":h;var q=typeof G==="function"?v2O(G,Tas,b==null?void 0:b.equals):v2O(G.source,G.computation,b==null?void 0:b.equals);var l=q[Af];l.debugName=Rjv(b==null?void 0:b.debugName,h,"[linkedSignal]");I[Af]=l;return[I,function(V){LGr(function(){sM(l);e2s(l,V);l.dirty=!1;l.lastCleanEpoch=UM},l)},
function(V){LGr(function(){sM(l);b1q()||VGO(l);e2s(l,V(l.value));l.dirty=!1;l.lastCleanEpoch=UM},l)}]};
_.uI=function(G){var b=mT;if(b){var I=yA;U9p(b,function(){var h=QA(Z1u());try{W$(function(){return void G()},I)}catch(q){throw k8.enableContextBasedComponentStacks&&H$(q),q;
}finally{QA(h)}})}};
RJ=function(G,b){var I={};(b===void 0||b)&&c$(I);b=_.eT(I);try{G(I)}finally{_.eT(b)}return function(){return void sbX(I)}};
_.n0=function(G){return typeof G==="function"?G():(G==null?0:G[Uyq])?G.get():G};
s1X=function(G){if(mT)throw Error("nb");RJ(G,!1)};
OM=function(G,b){G=_.eT(G);try{return _.MQ(b)}finally{_.eT(G)}};
wv=function(G,b){var I=pAO(wAr),h,q;var l=(q=(h=E2v)==null?void 0:h.slice())!=null?q:[];b={componentStack:I,contextTrace:l,errorSeverity:3,featureFlags:JF2(),tagName:b};return[G,b]};
Mev=function(G,b,I){if(Object.hasOwnProperty.call(gGX,G)&&(G=gGX[G],Object.hasOwnProperty.call(G,b)&&(G=G[b],G instanceof Array))){for(var h=null,q=!1,l=0,V=G.length;l<V;++l){var D=G[l],k=D.contingentAttribute;if(!k)return D.contract;h===null&&(h={});k=Object.hasOwnProperty.call(h,k)?h[k]:h[k]=I(k);if(k===D.requiredValue)return D.contract;k==null&&(q=!0)}if(q)return null}b=AUa[b];return typeof b==="number"?b:null};
zxp=function(G,b,I){var h=null;(G=Z8r[G])&&(h=G[b]);return typeof h!=="number"&&((G=Z8r["*"])&&(h=G[b]),typeof h!=="number")?!1:!0===te2[h][String(I).toLowerCase()]};
i8v=function(G,b){b=Mev(G.toLowerCase(),b,function(){var h;(h=k8.handleError)==null||h.call.apply(h,[k8].concat(_.Nz(wv(Error("Tb"),G.toLowerCase()))))});
if(b===null)return null;var I;return(I=oGj[b])!=null?I:null};
Pxp=function(G,b,I){if(I===null||I===void 0)return I;b=b.toLowerCase();G=i8v(G,b);return G===null?I:G(b,I)};
dyr=function(){};
p0=function(G,b){for(;G.length>b;)G.pop()};
yUq=function(G){G=Array(G);p0(G,0);return G};
ST=function(G,b,I){if(I==null)G.removeAttribute(b);else{var h;(h=b.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":b.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?G.setAttributeNS(h,b,I):G.setAttribute(b,I)}};
rUs=function(G,b,I){G[b]=I};
H8X=function(G,b,I){G=G.style;if(typeof I==="string")G.cssText=I;else{G.cssText="";for(var h in I)if(FtO.call(I,h)){b=G;var q=h,l=I[h];q.indexOf("-")>=0?b.setProperty(q,l):b[q]=l}}};
WtX=function(G,b,I){var h=typeof I;h==="object"||h==="function"?G[b]=I:ST(G,b,I)};
a8a=function(){var G=new dyr;G[Xq.default]=WtX;G.style=H8X;return G};
Naq=function(G,b,I,h){(h[b]||h[Xq.default])(G,b,I)};
CxB=function(G,b,I){b=new Yzr(b,I);return G.__incrementalDOMData=b};
bM=function(G,b){if(G.__incrementalDOMData)return G.__incrementalDOMData;var I=G.nodeType===1?G.localName:G.nodeName,h=G.nodeType===1?G.getAttribute("key"):null;b=CxB(G,I,G.nodeType===1?h||b:null);if(G.nodeType===1&&(G=G.attributes,I=G.length)){h=b._attrsArr||(b._attrsArr=yUq(I*2));for(var q=0,l=0;q<I;q+=1,l+=2){var V=G[q],D=V.value;h[l]=V.name;h[l+1]=D}}return b};
JUB=function(G,b,I,h,q){return b==I&&h==q};
Kts=function(G){for(var b=Ij,I=hC();I!==G;){var h=I.nextSibling;b.removeChild(I);qc.deleted.push(I);I=h}};
hC=function(){return jk?jk.nextSibling:Ij.firstChild};
lM=function(){jk=hC()};
nGp=function(G,b,I){lM();var h;a:{if(h=jk){do{var q=h,l=G,V=b,D=bM(q,V);if(upa(q,l,D.nameOrCtor,V,D.key))break a}while(b&&(h=h.nextSibling))}h=null}h||(G==="#text"?(I=m7.createTextNode(""),CxB(I,"#text",null),G=I):(h=m7,q=Ij,typeof G==="function"?h=new G:h=(q=G==="svg"?"http://www.w3.org/2000/svg":G==="math"?"http://www.w3.org/1998/Math/MathML":q==null||bM(q).nameOrCtor==="foreignObject"?null:q.namespaceURI)?h.createElementNS(q,G):h.createElement(G),CxB(h,G,b),G=h,I&&G.setAttribute("nonce",I)),qc.created.push(G),
h=G);I=h;if(I!==jk){if(Rxu.indexOf(I)>=0)for(G=Ij,b=I.nextSibling,h=jk;h!==null&&h!==I;)q=h.nextSibling,G.insertBefore(h,b),h=q;else Ij.insertBefore(I,jk);jk=I}};
O8B=function(G,b,I){nGp(G,b,I);Ij=jk;jk=null;return Ij};
wwp=function(){Kts(null);jk=Ij;Ij=Ij.parentNode};
SzB=function(G,b){b=b===void 0?{}:b;var I=b.matches===void 0?JUB:b.matches;return function(h,q,l){var V=qc,D=m7,k=Rxu,L=ek,x=VS,f=jk,T=Ij,B=upa;m7=h.ownerDocument;qc=new EGO(h);upa=I;ek=[];VS=[];jk=null;var A=Ij=h.parentNode,t,y=pwO.call(h);if((t=y.nodeType===11||y.nodeType===9?y.activeElement:null)&&h.contains(t)){for(y=[];t!==A;)y.push(t),t=t.parentNode||(A?t.host:null);A=y}else A=[];Rxu=A;try{return G(h,q,l)}finally{h=qc,Dp&&h.deleted.length>0&&Dp(h.deleted),m7=D,qc=V,upa=B,ek=L,VS=x,jk=f,Ij=T,
Rxu=k}}};
Xwv=function(G,b,I,h){c3.push(Naq);c3.push(G);c3.push(b);c3.push(I);c3.push(h)};
Gbd=function(G,b,I){var h=VS;b=b._attrsArr||(b._attrsArr=yUq(h.length));for(var q=!b.length||!1,l=0;l<h.length;l+=2){var V=h[l];if(q)b[l]=V;else if(b[l]!==V)break;var D=h[l+1];if(q||b[l+1]!==D)b[l+1]=D,Xwv(G,V,D,I)}if(l<h.length||l<b.length){for(l=q=l;l<b.length;l+=2)kz[b[l]]=b[l+1];for(l=q;l<h.length;l+=2)q=h[l],V=h[l+1],kz[q]!==V&&Xwv(G,q,V,I),b[l]=q,b[l+1]=V,delete kz[q];p0(b,h.length);for(var k in kz)Xwv(G,k,void 0,I),delete kz[k]}G=$hO;$hO=I=c3.length;for(k=G;k<I;k+=5)(0,c3[k])(c3[k+1],c3[k+
2],c3[k+3],c3[k+4]);$hO=G;p0(c3,G);p0(h,0)};
bJu=function(G){nGp("#text",null);var b=jk;var I=bM(b);if(I.text!==G){I=I.text=G;for(var h=1;h<arguments.length;h+=1)I=(0,arguments[h])(I);b.data!==I&&(b.data=I)}};
eDq=function(G,b,I){if(I===!1&&I1d.has(b))ST(G,b,null);else if(b!=="idomKey"&&b!=="skip"&&b!=="skipchildren"&&b!=="children"&&b!=="el")if(b.startsWith("on")){if(b[2]!==":")throw Error("Sb`"+b);if(I===void 0||I===null){var h;(h=k8.handleError)==null||h.call.apply(h,[k8].concat(_.Nz(wv(Error("Xb`"+b),G.tagName))));G[b]=void 0}else{var q=b.slice(3);h=Fq();if(q==="jsaction"){I=Array.isArray(I)?I:[I];I=_.e(I);for(var l=I.next();!l.done;l=I.next()){l=l.value;if(typeof l!=="object"||l===null||typeof l.selfReg!==
"function")throw Error("$b`"+b);l.selfReg(0,G,h?_.uI:function(){})}}else{if(typeof I!=="object"||I===null)throw Error("Yb`"+b+"`"+typeof I);
if(typeof I.getFn!=="function")throw Error("Zb`"+b+"`"+Object.keys(I));if(I.selfReg)I.selfReg(0,G,q,h?_.uI:function(){});
else if(h&&G["on"+q]===void 0){var V=I.getFn(0);G.addEventListener(q,V);_.uI(function(){return void G.removeEventListener(q,V)})}else if(h||!hDr.includes(q))G["on"+q]=I.getFn(0)}}}else{if(b.startsWith("data-")&&typeof I==="string")try{I=qis(I)}catch(D){I="zSoyz"}typeof I!=="function"||G._disposeEffects!=null?((h=b.startsWith("prop:"))&&(b=b.slice(5)),k8.enableAttributeSanitization&&(h&&jLu(G.tagName)||(I=Pxp(G.tagName,b,I))),b==="style"?("function"==typeof _.v3&&I instanceof _.v3&&(I=I.toString()),
l1a(G,b,I)):h?G[b]=I:mhj(G,b,I)):(G._signalProps||(G._signalProps=[]),G._signalValues||(G._signalValues=[]),G._signalProps.push(b))}};
VWs=function(G,b,I){I=(I===void 0?{}:I).isReactive;if(b==null?0:b.el){var h=b.el,q;(q=h.onRender)==null||q.call(h,G);G._disposeRef||(G._disposeRef=function(){var l;(l=h.onUnmount)==null||l.call(h);delete G._disposeRef},I&&_.uI(function(){var l;
(l=G._disposeRef)==null||l.call(G)}))}};
jLu=function(G){return G.length>0&&G.includes("-")&&!Dhs.includes(G.toLowerCase())};
cb2=function(G){return v$(G)&&L3 in G};
kbO=function(G){return cb2(G)?G[L3].flattened:G};
vVa=function(G,b){var I=_.RI.apply(2,arguments),h;b=(h=b)!=null?h:{};h={};return h.type=G,h.props=b,h.children=I,h[QS]=!0,h};
_.xz=function(G){return G.children};
f3=function(G){var b=LHX!==vVa;LHX=G?QLd:vVa;return b};
_.TF=function(G){return _.Oj(G)?"nodeType"in G:!1};
B3=function(){return document.createTextNode("")};
UB=function(G){G=document.createTextNode(String(G));G._isSignalTextNode=!0;return G};
f1p=function(G){return G!=null&&G.contentKind===sB||G instanceof wd||xhq(G)};
T2X=function(G){var b=document.createElement("div");if(xhq(G)&&ABq(G))_.ec(b,ABq(G));else if(G instanceof wd)_.ec(b,G);else if(G!=null&&G.contentKind===sB){if(G.contentKind!==sB)throw Error("Wb");G=Ev(G.toString());_.ec(b,G)}G=_.e(b.childNodes);for(var I=G.next();!I.done;I=G.next())I.value._isSafeOrSanitizedHtmlNode=!0;return b};
AC=function(G){G=typeof G;return G==="string"||G==="number"||G==="boolean"};
B2u=function(G){return G instanceof il||Wg(G)||G instanceof cp||"function"==typeof _.v3&&G instanceof _.v3};
Uhu=function(G,b){var I=G.parentElement;if(!I)return b;I.replaceChild(b,G);return b};
sLq=function(G,b){var I=G[0].parentElement;if(I)if(G[0].previousSibling||G[G.length-1].nextSibling){I.insertBefore(b,G[0]);for(var h=G.length-1;h>=0;h--)I.removeChild(G[h])}else I.textContent="",I.appendChild(b);return b};
gVO=function(G,b){if(G[0].parentElement)for(var I=G[0].parentElement,h=b.length,q=G.length,l=h,V=0,D=0,k=G[q-1].nextSibling,L=null;V<q||D<l;)if(G[V]===b[D])V++,D++;else{for(;G[q-1]===b[l-1];)q--,l--;if(q===V)for(var x=l<h?D?b[D-1].nextSibling:b[l-D]:k;D<l;){var f=b[D++];I.insertBefore(f,x)}else if(l===D)for(;V<q;)x=G[V],L&&L.has(x)||I.removeChild(x),V++;else if(G[V]===b[l-1]&&b[D]===G[q-1])x=G[--q].nextSibling,I.insertBefore(b[D++],G[V++].nextSibling),I.insertBefore(b[--l],x),G[q]=b[l];else{if(!L)for(L=
new Map,x=D;x<l;)L.set(b[x],x++);x=L.get(G[V]);if(x==null)I.removeChild(G[V]),V++;else if(D<x&&x<l){f=V;for(var T=1,B=void 0;++f<q&&f<l&&(B=L.get(G[f]))!=null&&B===x+T;)T++;if(T>x-D)for(f=G[V];D<x;)I.insertBefore(b[D++],f);else I.replaceChild(b[D++],G[V++])}else V++}}return b};
MWj=function(G){if(Array.isArray(G)){if(G.length>1)throw Error("jc`"+G.length+"`"+G.map(Abp).join(", "));G=G[0]}if(G==null)return null;if(!(G instanceof _.hj)){var b,I;if((b=window)==null?0:(I=b.trustedTypes)==null?0:I.isScript(G))throw Error("ic");if(String(G).trim().length===0)return null;throw Error("kc`"+Abp(G));}return G};
ZJr=function(G,b){b=MWj(b);b!==null&&_.lp(G,b)};
tWj=function(G){if(Array.isArray(G)){if(G.length>1)throw Error("lc`"+G.length+"`"+G.map(Abp).join(", "));G=G[0]}if(G==null)return null;if(!(G instanceof cp)){if(String(G).trim().length===0)return null;throw Error("mc`"+Abp(G));}return G};
zD2=function(G,b){b=tWj(b);b!==null&&(G.textContent=Q$a(b))};
Abp=function(G){return"("+typeof G+") "+(G!=null&&typeof G==="object"?G.constructor.name:typeof G)+" "+G};
oVa=function(){};
tC=function(G,b){b=b===void 0?{}:b;var I=iJO(),h=!0,q,l=!!k8.legacyTriggerSoyRendererEvents;l&&(q=yF2());_.Jf(function(){var V=!h&&b.isControlFlowComponent&&l,D=V?I[L3].flattened[0].parentElement:void 0;h=!1;_.Mc.setUp();b.isControlFlowComponent&&NQ++;var k=I[0],L=I[L3].flattened,x=f3(!0);try{var f=G(),T=P4B(k,f,I);Array.isArray(T)||(I[L3].flattened=[T]);var B=I[L3].flattened;if(L&&(!Array.isArray(L)||L.length!==0)){var A=Array.isArray(L)?L[0]:L,t=A[Zp],y=A._disposeEffects;A._disposeEffects=void 0;
A=Array.isArray(B)?B[0]:B;A[Zp]=t;A[Zp]&&(A[Zp].numNodes=A===B?1:B.length);A._disposeEffects=y}I[0]=T;b.isControlFlowComponent&&C0(!1)}catch(F){throw b.isControlFlowComponent&&C0(!0),F;}finally{f3(x),_.Mc.tearDown()}V&&(V=q,V!=null||(V=_.Qbj(document).getAppContext()),V.get(dh2).JSC$29490_getEventTarget().dispatchEvent(new ybj(rbr,D,sB)))},b.debugName);
return I};
P4B=function(G,b,I){for(;typeof b==="function";)b=b();if(b!=null&&b[QS]){var h,q,l;(l=k8.handleError)==null||l.call.apply(l,[k8].concat(_.Nz(wv(Error("nc`"+((h=b.type)==null?void 0:h.TAG_NAME)),(q=b.type)==null?void 0:q.TAG_NAME))))}if(G==null)return b==null?B3():AC(b)?UB(b):B2u(b)?UB(b.toString()):_.TF(b)?b:b.length===0?B3():FHj(b,I);if(_.TF(G)){if(b==null)return Uhu(G,B3());if(AC(b))return HJ2(G,b);if(B2u(b))return HJ2(G,b.toString());if(_.TF(b))return Uhu(G,b);if(b.length===0)return Uhu(G,B3());
b=FHj(b,I);gVO([G],I[L3].flattened);return b}G=zF(G);if(b==null)return sLq(G,B3());if(AC(b))return sLq(G,UB(b));if(B2u(b))return sLq(G,UB(b.toString()));if(_.TF(b))return gVO(G,[b])[0];if(b.length===0)return sLq(G,B3());b=FHj(b,I);gVO(G,I[L3].flattened);return b};
HJ2=function(G,b){G.nodeType===Node.TEXT_NODE?G.textContent!==String(b)&&(G.textContent=String(b)):G=Uhu(G,UB(b));return G};
zF=function(G,b,I){return WHp(G,b!=null?b:[],I===void 0?!1:I)};
FHj=function(G,b){var I=zF(G,void 0,!0);if(I.length===0)return B3();b[L3].flattened=I;return G};
WHp=function(G,b,I,h,q){b=b===void 0?[]:b;I=I===void 0?!1:I;q=q===void 0?-1:q;if(G==null)return b;if(G instanceof oj){var l=G.render();return WHp(l,b,I,h,q)}if(_.TF(b)&&b.nodeType===Node.ELEMENT_NODE)switch(b.tagName){case "SCRIPT":ZJr(b,G);return;case "STYLE":zD2(b,G);return}AC(G)&&(G=UB(G),h&&I&&(h[q]=G));if(f1p(G)){I=T2X(G);I=Array.from(I.childNodes);I=_.e(I);for(l=I.next();!l.done;l=I.next())a1v(b,l.value);return b}B2u(G)&&(G=UB(G.toString()),h&&I&&(h[q]=G));if(_.TF(G))return a1v(b,G);if(Array.isArray(G)){for(l=
0;l<G.length;l++)WHp(G[l],b,I,G,l);return b}if(typeof G==="function"){l=tC(function(){var D=G();return D!=null&&!AC(D)&&f1p(D)?(D=T2X(D),Array.from(D.childNodes)):D},{debugName:"qmF2ne",
debugFn:G})[0];if(Array.isArray(l)){I=_.e(l);for(l=I.next();!l.done;l=I.next())a1v(b,l.value);return b}h&&I&&(h[q]=l);return a1v(b,l)}if(G!=null&&G[QS]){h=G;q=f3(!0);var V=LHX;try{l=V.apply(null,[h.type,h.props].concat(_.Nz(h.children)))}finally{f3(q)}return WHp(l,b,I)}(V=k8.handleError)==null||V.call.apply(V,[k8].concat(_.Nz(wv(Error("oc")))));return b};
iJO=function(G){var b={};b=Object.assign([],(b[L3]={flattened:[]},b));if(!G)return b;b[0]=FHj(G,b);return b};
a1v=function(G,b){Array.isArray(G)?G.push(b):G.appendChild(b);return G};
iM=function(G){if(!k8.enableLazyTsx)return G;if(Array.isArray(G)){for(var b=0;b<G.length;b++)G[b]=iM(G[b]);return G}return G instanceof oj?(G=G.render(),iM(G)):G};
Yiu=function(G,b){var I,h,q=z2B(G),l=function(B){h=B;B=f3(!0);var A=QA(P3);K0X("render",q);try{I=iM(G(b))}finally{u5O("render",q),QA(A),f3(B)}};
l=k8.enableContextPerComponent?Ois(l,q):RJ(l,k8.alwaysTrackContexts||!!mT);E_v(h);if(!b.renderedFromIdom){var V=_.eT(h);try{return N2p(G,b,I),I}finally{_.eT(V)}}!cb2(I)&&Array.isArray(I)&&(I=iJO(I));var D=kbO(I);V=Array.isArray(D)?D[0]:D;var k=!1;if(V){var L,x=(L=b==null?void 0:b.idomKey)!=null?L:G;L=D!==V;V._disposeEffects=l;var f=V[Zp]||{},T=cb2(I)?I:f.sourceDynamicRange;Object.assign(f,{key:x,numNodes:L?D.length:1,context:h,higherOrder:!!V[Zp],sourceDynamicRange:T});V[Zp]=f}else k=!0;(function(){var B=
_.eT(h);try{N2p(G,b,D)}finally{_.eT(B)}})();
k&&l();return I};
C4j=function(G){var b={},I;for(I in G)b={prev$jscomp$24:void 0,next$jscomp$33:void 0},b.prev$jscomp$24=dy[I],b.next$jscomp$33=G[I],dy[I]=function(h){return function(){var q=_.RI.apply(0,arguments);h.prev$jscomp$24.apply(null,_.Nz(q));h.next$jscomp$33.apply(null,_.Nz(q))}}(b)};
Jbs=function(){if(Fq())throw Error("pc");return yS};
KHp=function(G,b){if(!G.__unmounted&&b){G.__unmounted=!0;try{G.didUnmount()}catch(q){var I,h;(h=k8.handleError)==null||h.call.apply(h,[k8].concat(_.Nz(wv(q,(I=G.__type)==null?void 0:I.TAG_NAME))))}dy.didUnmount(G);G.el=null;b.__instance&&delete b.__instance}};
RDu=function(G,b,I){G._signalProps!=null&&G._disposeEffects==null&&((I===void 0?0:I)?G._disposeEffects=RJ(function(){return void uIO(G,b)},k8.alwaysTrackContexts||!!mT):uIO(G,b))};
uIO=function(G,b){_.Jf(function(){for(var I=G._signalProps,h=G._signalValues,q=0;q<I.length;q++){var l=I[q],V=b[l]();h[q]!==V&&(h[q]=V,eDq(G,l,V))}},"e3YVbb")};
nVX=function(G,b,I){var h,q=[];G._disposeEffects=RJ(function(){_.Jf(function(){var l=I();if(l===null||l===void 0)l="";if(AC(l)||l===null)h!=null||(h=document.createTextNode("")),h.parentNode!==G&&(h._isSignalTextNode=!0,G.insertBefore(h,b)),h.textContent=String(l);else if(f1p(l)){for(var V=q.length>0?q[q.length-1].nextSibling:b,D=_.e(q),k=D.next();!k.done;k=D.next())G.removeChild(k.value);l=T2X(l);q=Array.from(l.childNodes);l=_.e(q);for(D=l.next();!D.done;D=l.next())G.insertBefore(D.value,V)}else throw k=
(D=(V=yA)==null?void 0:V.name)!=null?D:"unknown",Error("ec`"+k+"`"+typeof l);},"VvDgC")},k8.alwaysTrackContexts||!!mT)};
EVq=function(G,b){var I=_.RI.apply(2,arguments);b!=null||(b={});return!k8.enableLazyTsx||yA!=null&&!Fq()?OJa(G,b,I):new whv(G,b,I)};
OJa=function(G,b,I){if(G===_.xz)return I;if(typeof G==="function")return yA&&!Fq()&&(b.renderedFromIdom=!0),o2u(G,function(){var l=phO(G,b,I);if(l)return l;I.length>0&&(b.children=I.length===1?I[0]:I);if(G.componentType===rv){var V;Ois(function(){var D=b;if(G.componentType!==rv)V=!1;else{D||(D={});var k=new ry(D,G),L=QA(P3);try{var x=k.render(D)}finally{QA(L)}x instanceof HTMLElement?(x.__instance=k,k.el=x,k.__type=G,G.TAG_NAME=x.tagName.toLowerCase(),dy.didPatch(k),V=x):V=x}},G.name);
if(V)return V}return Yiu(G,b)},b.debugInstance);
var h=SiO(G,b),q;for(q in b)eDq(h,q,b[q]);RDu(h,b);zF(I,h);VWs(h,b,{isReactive:!0});Xhp(h,b);return h};
SiO=function(G,b){G=($is.has(G.toLowerCase())?0:GgB.has(G.startsWith("svg:")?G.replace("svg:",""):G))?document.createElementNS("http://www.w3.org/2000/svg",G.startsWith("svg:")?G.replace("svg:",""):G):bvu(G,b)||document.createElement(G);G[IPa]=!0;return G};
h3u=function(G){if(G){var b;(b=G._disposeRef)==null||b.call(G);var I;(I=G._disposeEffects)==null||I.call(G);G.__instance&&G.__instance instanceof Fj&&(b=G.__instance,KHp(b,G),b instanceof ry&&b.disposeEffects());for(b=0;b<G.childNodes.length;b++)h3u(G.childNodes[b])}};
j3X=function(G){q32.push(G)===1&&requestAnimationFrame(function(){setTimeout(function(){var b=[].concat(_.Nz(q32));q32=[];b=_.e(b);for(var I=b.next();!I.done;I=b.next()){I=I.value;try{for(var h=0;h<I.length;h++)h3u(I[h])}catch(q){h=I=void 0,(h=(I=k8).handleError)==null||h.call.apply(h,[I].concat(_.Nz(wv(q))))}}})})};
_.v=function(G,b){return LHX.apply(null,[G,b].concat(_.Nz(_.RI.apply(2,arguments))))};
_.H3=function(G){return G};
_.W3=function(G){return{isDefault:!0,children:G.children}};
_.Q=function(G){var b=G.cond;if(b===void 0)return G.else&&G.else();var I=_.P$(function(){return!!b()},void 0,"JHVi8"),h=function(){var q=b();
if(!q){var l;(l=k8.handleError)==null||l.call.apply(l,[k8].concat(_.Nz(wv(lPO.nonNullableCondIsNull()))))}return q};
return tC(function(){var q=I(),l;RJ(function(){var V=QA(P3);try{l=iM(q?G.then(h):G.else&&G.else())}finally{QA(V)}},!0);
return l},{debugName:G.debugInstance,
debugFn:G.then,isControlFlowComponent:!0})};
mir=function(G){return _.Q(G)};
_.aj=function(G){return G.keyBy==="INDEX"?e3X(G):Vuq(G)};
Dis=function(G){G=_.e(G);for(var b=G.next();!b.done;b=G.next()){var I=void 0;(I=b.value)==null||I()}};
Vuq=function(G){var b=G.keyBy===void 0||G.keyBy==="REFERENCE",I=b?function(x){return x}:G.keyBy,h=[],q=[],l=[],V=[],D=[],k=[],L=!0;
_.uI(function(){Dis(V)});
return tC(function(){var x=c_2(G),f=x.length;if(f===0){if(h.length===0&&!L)return l;Dis(V);h=x;q=[];for(x=0;x<h.length;x++)q.push(I(h[x]));l=[];V=[];D=[];k=[];G.fallback&&(V[0]=kgq(function(){l[0]=iM(G.fallback())}));
L=!1;return l}for(var T=new vcp,B=h.length-1;B>=0;B--)T.push(q[B],B);B=Array(f);for(var A=Array(f),t=Array(f),y=Array(f),F=Array(b?0:f),W={i$jscomp$450:0};W.i$jscomp$450<f;W={i$jscomp$450:W.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},W.i$jscomp$450++){W.item$jscomp$104=x[W.i$jscomp$450];W.key$jscomp$563=I(W.item$jscomp$104);var O=T.pop(W.key$jscomp$563);O!=null?(t[W.i$jscomp$450]=l[O],A[W.i$jscomp$450]=q[O],B[W.i$jscomp$450]=V[O],y[W.i$jscomp$450]=D[O],b||(F[W.i$jscomp$450]=k[O]),dv(function(K){return function(){y[K.i$jscomp$450](K.i$jscomp$450);
if(!b)F[K.i$jscomp$450](K.item$jscomp$104)}}(W)),delete V[O]):B[W.i$jscomp$450]=kgq(function(K){return function(){var u=_.e(_.ZZ(K.i$jscomp$450,void 0,"Fqk1zd")),w=u.next().value;
u=u.next().value;y[K.i$jscomp$450]=u;A[K.i$jscomp$450]=K.key$jscomp$563;if(b)t[K.i$jscomp$450]=iM(G.children(K.item$jscomp$104,w));else{var $a=_.e(_.ZZ(K.item$jscomp$104,void 0,"GBj5de"));u=$a.next().value;$a=$a.next().value;F[K.i$jscomp$450]=$a;t[K.i$jscomp$450]=iM(G.children(u,w))}}}(W))}Dis(V);
h=x;q=A;l=t;V=B;D=y;k=F;L=!1;return t},{debugName:G.debugInstance,
debugFn:G.each,isControlFlowComponent:!0})};
e3X=function(G){var b=[],I=[],h=[],q=[],l=!1;_.uI(function(){for(var V=_.e(q),D=V.next();!D.done;D=V.next())D=D.value,D()});
return tC(function(){var V=c_2(G);l&&V.length>0&&(q.pop()(),b.pop(),l=!1);for(var D=Array(V.length),k={i$jscomp$451:0};k.i$jscomp$451<V.length;k={i$jscomp$451:k.i$jscomp$451},k.i$jscomp$451++)if(k.i$jscomp$451<b.length)b[k.i$jscomp$451]!==V[k.i$jscomp$451]&&(dv(function(x){return function(){return void I[x.i$jscomp$451](V[x.i$jscomp$451])}}(k)),b[k.i$jscomp$451]=V[k.i$jscomp$451]),D[k.i$jscomp$451]=h[k.i$jscomp$451];
else{var L=kgq(function(x){return function(){b[x.i$jscomp$451]=V[x.i$jscomp$451];var f=_.e(_.ZZ(V[x.i$jscomp$451],void 0,"JMMLmd")),T=f.next().value;f=f.next().value;I[x.i$jscomp$451]=f;D[x.i$jscomp$451]=iM(G.children(T,x.i$jscomp$451))}}(k));
q[k.i$jscomp$451]=L}for(;b.length>V.length;)b.pop(),q.pop()(),I.pop();V.length===0&&!l&&G.fallback&&(k=kgq(function(){D[0]=iM(G.fallback())}),q[0]=k,l=!0);
return h=D},{debugName:G.debugInstance,
isControlFlowComponent:!0})};
c_2=function(G){G=G.each();return Array.isArray(G)?G:Array.from(G)};
kgq=function(G){var b=mT;return RJ(function(I){var h=QA(P3);try{I.parent=b,G(I)}finally{QA(h)}},!1)};
_.Nc=function(G){var b=LLa(G),I=_.P$(function(){return Q3r(b)},void 0,"F1PF4");
return tC(function(){var h=I(),q;RJ(function(){var l=QA(P3);try{q=iM(h())}finally{QA(l)}});
return q},{debugName:G.debugInstance,
isControlFlowComponent:!0})};
LLa=function(G){G=G.children;return Array.isArray(G)?G:[G]};
xiB=function(G){var b=G.props;G=G.getChildren()[0];return b.when?{when:b.when,children:G}:{isDefault:!0,children:G}};
Q3r=function(G){var b=function(){return null};
G=_.e(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I!=null&&I[QS]&&(I=I.type===_.W3?{isDefault:!0,children:I.children[0]}:{when:I.props.when,children:I.children[0]}),I instanceof oj&&(I=xiB(I)),I.isDefault)b=I.children;else if(I.when())return I.children;return b};
TLj=function(G){var b=null,I,h={get value(){var l,V;(V=(l=q).validateGetValue)==null||V.call(l);return q.__value},set value(l){var V,D;(D=(V=q).validateSetValue)==null||D.call(V,l);q.__value=l;q.__hasBeenSet=!0}},q=(h.__value=null,h.__hasBeenSet=!1,h.__hasErrored=!1,h.onRender=function(l){if(I&&l!==I){I._disposeRef=void 0;var V;(V=b)==null||V()}I=l;b=G(l)||null},h.onUnmount=function(){var l;
(l=b)==null||l();b=q.value=null},h[_.fPB]=!0,h);
return q};
Yz=function(G){return typeof G==="symbol"};
Uij=function(G){var b=Jbs();if(b==null)throw _.BL2.PRIMITIVE_INVALID_HOOK_CALL();var I=b.hookCounter++;b.hooks||(b.hooks=[]);var h=b.hooks;h[I]||(h[I]={key:G,host:b});if(G!==h[I].key){if(b.__type){var q;G=(q=b.__type)==null?void 0:q.name}else G=b instanceof ry?z2B(b.functionComponent):"<"+b.el.tagName.toLowerCase()+">";throw _.BL2.OUT_OF_ORDER_HOOK_CALL(G);}return h[I]};
s3O=function(G,b){return!G||G.length!==(b==null?void 0:b.length)||G.some(function(I,h){return I!==b[h]})};
gcO=function(G,b){var I=Uij("onChange"),h=Jbs();s3O(I.deps,b)&&(I.deps=b,I.pendingEffect=G,h.__syncEffects||(h.__syncEffects=[]),h.__syncEffects.push(I))};
_.C3=function(G,b,I){I!=null||(I={});I=I.appContext;var h=!!k8.legacyTriggerSoyRendererEvents;_.Mc.setUp();try{var q=A_X(G,b,I);h&&(b=I,b!=null||(b=_.Qbj(document).getAppContext()),b.get(dh2).JSC$29490_getEventTarget().dispatchEvent(new ybj(MuO,G,sB)));_.Mc.log(G);return q}finally{_.Mc.tearDown()}};
A_X=function(G,b,I){var h=W$(function(){var q=QA(P3);try{return RJ(function(){var l=_.Qbj(_.ny(G)),V;var D=d9O({rootElement:{value:G},appContext:I||(l==null?void 0:(V=l.getOptionalAppContext)==null?void 0:V.call(l)),dispatcher:l});l=_.eT(D);D=f3(!0);NQ++;try{zF(b(),G),C0(!1)}catch(k){throw C0(!0),k;}finally{f3(D),_.eT(l)}},!1)}catch(l){throw k8.enableContextBasedComponentStacks&&H$(l),l;
}finally{QA(q)}});
G[ZvO]=!0;return function(){G.textContent="";h();G[ZvO]=!1}};
_.JC=function(G){if(kX2(L0)){var b;(b=k8.handleError)==null||b.call.apply(b,[k8].concat(_.Nz(wv(Error("dc")))))}var I=mT,h=yA;b8q({onInitType:$yp,run:function(){if(I&&!I.isDisposed){var q=_.eT(I);try{W$(function(){return void G()},h)}catch(l){throw k8.enableContextBasedComponentStacks&&H$(l),l;
}finally{_.eT(q)}}}})};
tur=function(G,b){gcO(function(){return _.MQ(G)},b)};
_.K3=function(G){Fq()?_.JC(function(){_.MQ(G)}):gcO(function(){return _.MQ(G)},[])};
ocv=function(G){var b=[].concat(_.Nz(G));G.length=0;G=_.e(b);for(b=G.next();!b.done;b=G.next()){b=b.value;z3O(b);var I=b.pendingEffect;b.pendingEffect=null;if(I=I==null?void 0:I())b.pendingCleanup=I}};
z3O=function(G){var b=G.pendingCleanup;G.pendingCleanup=null;b==null||b()};
ivr=function(G,b){if(Fq())return G();var I=Uij("useMemoInternal");s3O(I.deps,b)&&(I.deps=b,I.value=G());return I.value};
PUd=function(G,b){return ivr(G,b)};
uM=function(G){return ivr(G,[])};
div=function(G){return uM(function(){return{value:G}})};
_.Rj=function(G,b){if(!G)return null;G=Object.keys(G);G=_.e(G);for(var I=G.next();!I.done;I=G.next()){I=I.value;var h=I.toLowerCase();if(h.indexOf(b,h.length-b.length)>-1)return I}return null};
_.OB=function(){var G=arguments,b=_.n3;G.length>1?b[G[0]]=G[1]:G.length===1&&Object.assign(b,G[0])};
_.wy=function(G,b){return G in _.n3?_.n3[G]:b};
_.Sk=function(G,b){return!!_.wy(G,b)};
y_X=function(G){var b=_.n3.EXPERIMENT_FLAGS;return b?b[G]:void 0};
FLv=function(G){r_u.forEach(function(b){return b(G)})};
_.$W=function(G){return G&&window.yterr?function(){try{return G.apply(this,arguments)}catch(b){_.Xj(b)}}:G};
_.Xj=function(G){var b=_.Ge("yt.logging.errors.log");b?b(G,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=_.wy("ERRORS",[]),b.push([G,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.OB("ERRORS",b));FLv(G)};
_.bB=function(G,b,I,h,q){var l=_.Ge("yt.logging.errors.log");l?l(G,"WARNING",b,I,h,void 0,q):(l=_.wy("ERRORS",[]),l.push([G,"WARNING",b,I,h,void 0,q]),_.OB("ERRORS",l))};
WLX=function(G,b){b=G.split(b);for(var I={},h=0,q=b.length;h<q;h++){var l=b[h].split("=");if(l.length===1&&l[0]||l.length===2)try{var V=Hvr(l[0]||""),D=Hvr(l[1]||"");if(V in I){var k=I[V];Array.isArray(k)?_.us(k,D):I[V]=[k,D]}else I[V]=D}catch(T){var L=T,x=l[0],f=String(WLX);L.args=[{key:x,value:l[1],query:G,method:aPd===f?"unchanged":f}];NLO.hasOwnProperty(x)||_.bB(L)}}return I};
Y3O=function(G){var b=[];_.Cy.forEach(G,function(I,h){var q=_.IN(h);I=Array.isArray(I)?I:[I];_.hB(I,function(l){l==""?b.push(q):b.push(q+"="+_.IN(l))})});
return b.join("&")};
_.q1=function(G){G.charAt(0)==="?"&&(G=G.substring(1));return WLX(G,"&")};
_.jO=function(G){return G.indexOf("?")!==-1?(G=(G||"").split("#")[0],G=G.split("?",2),_.q1(G.length>1?G[1]:G[0])):{}};
_.lB=function(G,b){return CUa(G,b||{},!0)};
J_a=function(G,b){return CUa(G,b||{},!1)};
CUa=function(G,b,I){var h=G.split("#",2);G=h[0];h=h.length>1?"#"+h[1]:"";var q=G.split("?",2);G=q[0];q=_.q1(q[1]||"");for(var l in b)if(I||!_.Cy.containsKey(q,l))q[l]=b[l];return _.mE(G,q)+h};
cf=function(G){if(!b)var b=window.location.href;var I=_.eO(G)[1]||null,h=_.VE(G);return I&&h?DU(G,b):h?_.VE(b)===h&&(Number(_.eO(b)[4]||null)||null)===(Number(_.eO(G)[4]||null)||null):!0};
_.u8q=function(G){G=KL2(G);return G===null?!1:G[0]==="com"&&G[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
KL2=function(G){G=_.VE(G);return G!==null?G.split(".").reverse():null};
Hvr=function(G){return G&&G.match(R3q)?G:kW(G)};
_.vf=function(G){return new ncu(G)};
_.LL=function(){Ovu||(Ovu=new wqs);return Ovu};
pqO=function(){var G=EcB;return function(){var b=_.LL();if(!b.resolve(_.vf(G))){var I={};b.addProvider((I.provide=G,I.useClass=G,I[QE]=void 0,I))}return b.resolve(G)}};
Xqa=function(G){var b=_.xW,I,h;_.c(function(q){I=_.LL();return(h=I.resolve(_.vf(b)))?(G(h),q.return(Promise.resolve(h))):q.return(I.resolve(new S3r(b)).then(function(l){G(l);return l}))})};
_.U=function(G){G=fL(G);return typeof G==="string"&&G==="false"?!1:!!G};
_.Te=function(G,b){G=fL(G);return G===void 0&&b!==void 0?b:Number(G||0)};
$PX=function(G){G=fL(G);return Array.isArray(G)?_.Ky(G,function(b){return Number(b||0)}):[Number(G||0)]};
_.UG=function(G){G=fL(G);return G!==void 0?String(G):""};
_.sG=function(G){G=fL(G);return Array.isArray(G)?_.Ky(G,function(b){return String(b||"")}):[String(G||"")]};
Gmu=function(){return _.wy("EXPERIMENTS_TOKEN","")};
fL=function(G){return _.wy("EXPERIMENT_FLAGS",{})[G]};
bUv=function(){for(var G=[],b=_.wy("EXPERIMENTS_FORCED_FLAGS",{}),I=_.e(Object.keys(b)),h=I.next();!h.done;h=I.next())h=h.value,G.push({key:h,value:String(b[h])});I=_.wy("EXPERIMENT_FLAGS",{});h=_.e(Object.keys(I));for(var q=h.next();!q.done;q=h.next())q=q.value,q.startsWith("force_")&&b[q]===void 0&&G.push({key:q,value:String(I[q])});return G};
hZX=function(){if(!IEB)return null;var G=IEB();return"open"in G?G:null};
_.qSj=function(G){switch(_.gi(G)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.gi=function(G){return G&&"status"in G?G.status:-1};
_.AB=function(G,b){typeof G==="function"&&(G=_.$W(G));return window.setTimeout(G,b)};
_.M1=function(G,b){typeof G==="function"&&(G=_.$W(G));return window.setInterval(G,b)};
_.ZU=function(G){window.clearTimeout(G)};
lEq=function(G){G=_.jO(G);for(var b=_.e(jWp),I=b.next();!I.done;I=b.next())if(G[I.value]!==void 0)return!0;return!1};
VXa=function(G,b,I,h,q,l,V,D,k){I=I===void 0?"GET":I;h=h===void 0?"":h;D=D===void 0?!1:D;var L=hZX();if(!L)return null;var x=function(){(L&&"readyState"in L?L.readyState:0)===4&&b&&_.$W(b)(L)};
"onloadend"in L?L.addEventListener("loadend",x,!1):L.onreadystatechange=x;_.U("debug_forward_web_query_parameters")&&(G=mPa(G,window.location.search));L.open(I,G,!0);l&&(L.responseType=l);V&&(L.withCredentials=!0);I=I==="POST"&&(window.FormData===void 0||!(h instanceof FormData));if(q=eZO(G,q))for(var f in q)L.setRequestHeader(f,q[f]),"content-type"===f.toLowerCase()&&(I=!1);I&&L.setRequestHeader("Content-Type","application/x-www-form-urlencoded");k&&"onprogress"in L&&(L.onprogress=function(){k(L.responseText)});
if(D&&"setAttributionReporting"in XMLHttpRequest.prototype){G={eventSourceEligible:!0,triggerEligible:!1};try{L.setAttributionReporting(G)}catch(T){_.bB(T)}}L.send(h);return L};
eZO=function(G,b){b=b===void 0?{}:b;var I=cf(G),h=_.wy("INNERTUBE_CLIENT_NAME"),q=_.U("web_ajax_ignore_global_headers_if_set"),l;for(l in DPr){var V=_.wy(DPr[l]),D=l==="X-Goog-AuthUser"||l==="X-Goog-PageId";l!=="X-Goog-Visitor-Id"||V||(V=_.wy("VISITOR_DATA"));var k;if(!(k=!V)){if(!(k=I||(_.VE(G)?!1:!0))){k=G;var L;if(L=_.U("add_auth_headers_to_remarketing_google_dot_com_ping")&&l==="Authorization"&&(h==="TVHTML5"||h==="TVHTML5_UNPLUGGED"||h==="TVHTML5_SIMPLY"))L=KL2(k),L=L===null?!1:L[1]==="google"?
!0:L[2]==="google"?L[0]==="au"&&L[1]==="com"?!0:L[0]==="uk"&&L[1]==="co"?!0:!1:!1;L&&(k=_.tB(k)||"",k=k.split("/"),k="/"+(k.length>1?k[1]:""),L=k==="/pagead");k=L?!0:!1}k=!k}k||q&&b[l]!==void 0||h==="TVHTML5_UNPLUGGED"&&D||(b[l]=V)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(I||!_.VE(G))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(I||!_.VE(G)){try{var x=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(f){}x&&(b["X-YouTube-Time-Zone"]=
x)}document.location.hostname.endsWith("youtubeeducation.com")||!I&&_.VE(G)||(b["X-YouTube-Ad-Signals"]=Y3O(cZp()));return b};
_.kmu=function(G,b){var I=_.VE(G);_.U("debug_handle_relative_url_for_query_forward_killswitch")||!I&&cf(G)&&(I=document.location.hostname);var h=_.tB(G);h=(I=I&&(I.endsWith("youtube.com")||I.endsWith("youtube-nocookie.com")))&&h&&h.startsWith("/api/");if(!I||h)return G;var q=_.q1(b),l={};_.hB(jWp,function(V){q[V]&&(l[V]=q[V])});
return J_a(G,l)};
vPu=function(G,b){b.method="POST";b.postParams||(b.postParams={});return _.ze(G,b)};
L$a=function(G,b){var I=_.wy("XSRF_FIELD_NAME"),h;b.headers&&(h=b.headers["Content-Type"]);return!b.excludeXsrf&&(!_.VE(G)||b.withCredentials||_.VE(G)===document.location.hostname)&&b.method==="POST"&&(!h||h==="application/x-www-form-urlencoded")&&!(b.postParams&&b.postParams[I])};
_.ze=function(G,b){var I=b.format||"JSON";G=QWB(G,b);var h=xPa(G,b),q=!1,l=fEp(G,function(k){if(!q){q=!0;D&&_.ZU(D);var L=_.qSj(k),x=null,f=400<=k.status&&k.status<500,T=500<=k.status&&k.status<600;if(L||f||T)x=TKj(G,I,k,b.convertToSafeHtml);L&&(L=BKO(I,k,x));x=x||{};f=b.context||_.hd;L?b.onSuccess&&b.onSuccess.call(f,k,x):b.onError&&b.onError.call(f,k,x);b.onFinish&&b.onFinish.call(f,k,x)}},b.method,h,b.headers,b.responseType,b.withCredentials,!1,b.onProgress);
h=b.timeout||0;if(b.onTimeout&&h>0){var V=b.onTimeout;var D=_.AB(function(){q||(q=!0,l.abort(),_.ZU(D),V.call(b.context||_.hd,l))},h)}return l};
QWB=function(G,b){b.includeDomain&&(G=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+G);var I=_.wy("XSRF_FIELD_NAME");if(b=b.urlParams)b[I]&&delete b[I],G=_.lB(G,b);return G};
xPa=function(G,b){var I=_.wy("XSRF_FIELD_NAME"),h=_.wy("XSRF_TOKEN"),q=b.postBody||"",l=b.postParams;L$a(G,b)&&(l||(l={}),l[I]=h);(_.U("ajax_parse_query_data_only_when_filled")&&l&&Object.keys(l).length>0||l)&&typeof q==="string"&&(q=_.q1(q),_.Cy.extend(q,l),q=b.postBodyFormat&&b.postBodyFormat==="JSON"?JSON.stringify(q):_.oN(q));l=q||l&&!_.Cy.isEmpty(l);!UP2&&l&&b.method!=="POST"&&(UP2=!0,_.Xj(Error("Jc")));return q};
TKj=function(G,b,I,h){var q=null;switch(b){case "JSON":try{var l=I.responseText}catch(V){throw h=Error("Kc"),h.params=G,_.bB(h),V;}G=I.getResponseHeader("Content-Type")||"";l&&G.indexOf("json")>=0&&(l.substring(0,5)===")]}'\n"&&(l=l.substring(5)),q=JSON.parse(l));break;case "XML":if(G=(G=I.responseXML)?sWq(G):null)q={},_.hB(G.getElementsByTagName("*"),function(V){q[V.tagName]=gPs(V)})}h&&AZ2(q);
return q};
AZ2=function(G){if(_.Oj(G))for(var b in G)b==="html_content"||ls(b,"_html")?G[b]=Ev(G[b]):AZ2(G[b])};
BKO=function(G,b,I){if(b&&b.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}};
sWq=function(G){return G?(G=("responseXML"in G?G.responseXML:G).getElementsByTagName("root"))&&G.length>0?G[0]:null:null};
gPs=function(G){var b="";_.hB(G.childNodes,function(I){b+=I.nodeValue});
return b};
MXp=function(G){if(G.name==="JavaException")return!0;G=G.stack;return G.includes("chrome://")||G.includes("-extension://")||G.includes("webkit-masked-url://")};
ZUX=function(G){if(!G.stack)return!0;var b=!G.stack.includes("\n");return b&&G.stack.includes("ErrorType: ")||b&&G.stack.includes("Anonymous function (Unknown script")||G.stack.toLowerCase()==="not available"||G.fileName==="user-script"||G.fileName.startsWith("user-script:")?!0:!1};
_.iB=function(G){_.FN.call(this);this.JSC$10591_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!G};
zZu=function(G,b){var I=G.length,h=0,q=function(){return G.charCodeAt(h++)};
do{var l=tXv(q);if(l===Infinity)break;var V=l>>3;switch(l&7){case 0:l=tXv(q);if(V===b)return l;break;case 1:if(V===b)return;h+=8;break;case 2:l=tXv(q);if(V===b)return G.substr(h,l);h+=l;break;case 5:if(V===b)return;h+=4;break;default:return}}while(h<I)};
tXv=function(G){var b=G(),I=b&127;if(b<128)return I;b=G();I|=(b&127)<<7;if(b<128)return I;b=G();I|=(b&127)<<14;if(b<128)return I;b=G();return b<128?I|(b&127)<<21:Infinity};
iUO=function(G,b,I,h){if(G)if(Array.isArray(G)){var q=h;for(h=0;h<G.length&&!(G[h]&&(q+=oPu(h,G[h],b,I),q>500));h++);h=q}else if(typeof G==="object")for(q in G){if(G[q]){var l=q;var V=G[q],D=b,k=I;l=typeof V!=="string"||l!=="clickTrackingParams"&&l!=="trackingParams"?0:(V=zZu(atob(V.replace(/-/g,"+").replace(/_/g,"/")),2))?oPu(l+".ve",V,D,k):0;h+=l;h+=oPu(q,G[q],b,I);if(h>500)break}}else I[b]=Pf(G),h+=I[b].length;else I[b]=Pf(G),h+=I[b].length;return h};
oPu=function(G,b,I,h){I+="."+G;G=Pf(b);h[I]=G;return I.length+G.length};
Pf=function(G){try{return(typeof G==="string"?G:String(JSON.stringify(G))).substr(0,500)}catch(b){return"unable to serialize "+typeof G+" ("+b.message+")"}};
P9v=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}};
_.yE=function(G,b,I,h,q){_.di.set(G,b,{maxAge:I,path:"/",domain:h===void 0?"youtube.com":h,secure:q===void 0?!1:q})};
_.dPs=function(G,b,I){_.di.remove(G,b===void 0?"/":b,I===void 0?"youtube.com":I)};
_.ri=function(){if(_.U("embeds_web_enable_cookie_detection_fix")){if(!_.hd.navigator.cookieEnabled)return!1}else if(!_.di.isEnabled())return!1;if(!_.di.isEmpty())return!0;_.U("embeds_web_enable_cookie_detection_fix")?_.di.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.di.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.di.get("TESTCOOKIESENABLED")!=="1")return!1;_.di.remove("TESTCOOKIESENABLED");return!0};
yZO=function(){var G=_.hd.navigator;return G?G.connection:void 0};
rZO=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(G){}};
_.HUd=function(){var G=yZO();if(G){var b=F$s[G.type||"unknown"]||"CONN_UNKNOWN";G=F$s[G.effectiveType||"unknown"]||"CONN_UNKNOWN";b==="CONN_CELLULAR_UNKNOWN"&&G!=="CONN_UNKNOWN"&&(b=G);if(b!=="CONN_UNKNOWN")return b;if(G!=="CONN_UNKNOWN")return G}};
aEj=function(){var G=yZO();if(G!=null&&G.effectiveType)return W$u.hasOwnProperty(G.effectiveType)?W$u[G.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Hf=function(){try{return _.FU(),!0}catch(G){return!1}};
_.FU=function(G){if(_.wy("DATASYNC_ID")!==void 0)return _.wy("DATASYNC_ID");throw new _.Wf("Datasync ID not set",G===void 0?"unknown":G);};
_.aN=function(G){this.mechanism=G};
N1=function(G){this.mechanism=G};
YW=function(G){this.storage_=G;this.cachedIsStorageAvailable_=null};
NKs=function(){var G=null;try{G=_.hd.localStorage||null}catch(b){}YW.call(this,G)};
YSq=function(){var G=null;try{G=_.hd.sessionStorage||null}catch(b){}YW.call(this,G)};
CL=function(G,b){this.mechanism_=G;this.JSC$10694_prefix_=b+"::"};
_.C9s=function(G){var b=new NKs;return b.isAvailable()?G?new CL(b,G):b:null};
_.JZX=function(G){var b=new YSq;return b.isAvailable()?G?new CL(b,G):b:null};
uTd=function(){var G;return(G=K$u())==null?void 0:G.get("LAST_RESULT_ENTRY_KEY",!0)};
_.uB=function(G){RZO||(_.JB?_.JB.logError(G):(_.KL.push({type:"ERROR",payload:G}),_.KL.length>10&&_.KL.shift()))};
RN=function(G,b){RZO||(_.JB?_.JB.logEvent(G,b):(_.KL.push({type:"EVENT",eventType:G,payload:b}),_.KL.length>10&&_.KL.shift()))};
nL=function(G){if(G.indexOf(":")>=0)throw Error("Rc");};
OG=function(G){return G.substr(0,G.indexOf(":"))||G};
wTs=function(){return(nPv||OUO)&&wi("applewebkit")&&!wi("version")&&(!wi("safari")||wi("gsa/"))};
wi=function(G){var b=_.Tq();return b?b.toLowerCase().indexOf(G)>=0:!1};
SSO=function(G,b,I,h){b=OG(b);var q=G instanceof Error?G:Error("Sc`"+G);if(q instanceof EG)return q;G={objectStoreNames:I,dbName:b,dbVersion:h};if(q.name==="QuotaExceededError")return new EG("QUOTA_EXCEEDED",G);if(_.pL&&q.name==="UnknownError")return new EG("QUOTA_MAYBE_EXCEEDED",G);if(q instanceof EPO)return new EG("MISSING_INDEX",Object.assign({},G,{objectStore:q.objectStore,index:q.index}));if(q.name==="InvalidStateError"&&pTO.some(function(l){return q.message.includes(l)}))return new EG("EXECUTE_TRANSACTION_ON_CLOSED_DB",
G);
if(q.name==="AbortError")return new EG("UNKNOWN_ABORT",G,q.message);q.args=[Object.assign({},G,{name:"IdbError",originalName:q.name})];q.level="WARNING";return q};
SO=function(G,b,I){var h=uTd();return new EG("IDB_NOT_SUPPORTED",{context:{caller:G,publicName:b,version:I,hasSucceededOnce:h==null?void 0:h.hasSucceededOnce}})};
XTa=function(G){if(!G)throw Error();throw G;};
$O2=function(G){return G};
GiB=function(G,b,I){var h=function(){try{G.removeEventListener("success",q),G.removeEventListener("error",l)}catch(V){}},q=function(){b(G.result);
h()},l=function(){I(G.error);
h()};
G.addEventListener("success",q);G.addEventListener("error",l)};
bwO=function(G){return new Promise(function(b,I){GiB(G,b,I)})};
Gv=function(G){return new XU(new $_(function(b,I){GiB(G,b,I)}))};
I0v=function(G,b){return new XU(new $_(function(I,h){var q=function(){var l=G?b(G):null;l?l.then(function(V){G=V;q()},h):I()};
q()}))};
hAr=function(G,b,I){return new Promise(function(h,q){var l=b!==void 0?self.indexedDB.open(G,b):self.indexedDB.open(G);var V=I.blocked,D=I.blocking,k=I.terminated,L=I.upgrade,x=I.closed,f,T=function(){f||(f=new bu(l.result,{closed:x}));return f};
l.addEventListener("upgradeneeded",function(B){try{if(B.newVersion===null)throw Error("Xc");if(l.transaction===null)throw Error("Yc");B.dataLoss&&B.dataLoss!=="none"&&RN("IDB_DATA_CORRUPTED",{reason:B.dataLossMessage||"unknown reason",dbName:OG(G)});var A=T(),t=new Ib(l.transaction);L&&L(A,function(y){return B.oldVersion<y&&B.newVersion>=y},t);
t.done.catch(function(y){q(y)})}catch(y){q(y)}});
l.addEventListener("success",function(){var B=l.result;D&&B.addEventListener("versionchange",function(){D(T())});
B.addEventListener("close",function(){RN("IDB_UNEXPECTEDLY_CLOSED",{dbName:OG(G),dbVersion:B.version});k&&k()});
h(T())});
l.addEventListener("error",function(){q(l.error)});
V&&l.addEventListener("blocked",function(){V()})})};
qbO=function(G,b,I){I=I===void 0?{}:I;return hAr(G,b,I)};
_.q9=function(G,b){b=b===void 0?{}:b;var I,h,q,l;return _.c(function(V){if(V.nextAddress==1)return _.gm(V,2),I=self.indexedDB.deleteDatabase(G),h=b,(q=h.blocked)&&I.addEventListener("blocked",function(){q()}),V.yield(bwO(I),4);
if(V.nextAddress!=2)return _.hF(V,0);l=_.zf(V);throw SSO(l,G,"",-1);})};
l0O=function(G,b){var I;return _.c(function(h){if(h.nextAddress==1)return h.yield(_.jy(jod,b),2);I=h.yieldResult;return h.return(_.lu(I,["databases"],{enableRetries:!0,mode:"readwrite"},function(q){var l=q.objectStore("databases");return l.get(G.actualName).then(function(V){if(V?G.actualName!==V.actualName||G.publicName!==V.publicName||G.userIdentifier!==V.userIdentifier:1)return l.put(G).then(function(){})})}))})};
_.m0=function(G,b){var I;return _.c(function(h){if(h.nextAddress==1)return G?h.yield(_.jy(jod,b),2):h.return();I=h.yieldResult;return h.return(I.delete("databases",G))})};
_.mOO=function(G,b){var I,h;return _.c(function(q){return q.nextAddress==1?(I=[],q.yield(_.jy(jod,b),2)):q.nextAddress!=3?(h=q.yieldResult,q.yield(_.lu(h,["databases"],{enableRetries:!0,mode:"readonly"},function(l){I.length=0;return ey(l.objectStore("databases"),{},function(V){G(V.getValue())&&I.push(V.getValue());return V.continue()})}),3)):q.return(I)})};
eA2=function(G,b){return _.mOO(function(I){return I.publicName===G&&I.userIdentifier!==void 0},b)};
cQO=function(){var G,b,I,h;return _.c(function(q){switch(q.nextAddress){case 1:G=uTd();if((b=G)==null?0:b.hasSucceededOnce)return q.return(!0);var l;if(l=Vnr)l=/WebKit\/([0-9]+)/.exec(_.Tq()),l=!!(l&&parseInt(l[1],10)>=600);l&&(l=/WebKit\/([0-9]+)/.exec(_.Tq()),l=!(l&&parseInt(l[1],10)>=602));if(l||Vz)return q.return(!1);try{if(I=self,!(I.indexedDB&&I.IDBIndex&&I.IDBKeyRange&&I.IDBObjectStore))return q.return(!1)}catch(V){return q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return q.return(!1);
_.gm(q,2);h={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return q.yield(l0O(h,DOr),4);case 4:return q.yield(_.m0("yt-idb-test-do-not-use",DOr),5);case 5:return q.return(!0);case 2:return _.zf(q),q.return(!1)}})};
vSO=function(){if(kij!==void 0)return kij;RZO=!0;return kij=cQO().then(function(G){RZO=!1;var b;if((b=K$u())!=null&&b.hasLocalStorage()){var I;b={hasSucceededOnce:((I=uTd())==null?void 0:I.hasSucceededOnce)||G};var h;(h=K$u())==null||h.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return G})};
DO=function(){return _.Ge("ytglobal.idbToken_")||void 0};
_.k_=function(){var G=DO();return G?Promise.resolve(G):vSO().then(function(b){(b=b?DOr:void 0)&&_.cz("ytglobal.idbToken_",b);return b})};
LsO=function(G){if(!_.Hf())throw G=new EG("AUTH_INVALID",{dbName:G}),_.uB(G),G;var b=_.FU();return{actualName:G+":"+b,publicName:G,userIdentifier:b}};
QoB=function(G,b,I,h){var q,l,V,D,k,L;return _.c(function(x){switch(x.nextAddress){case 1:return l=(q=Error().stack)!=null?q:"",x.yield(_.k_(),2);case 2:V=x.yieldResult;if(!V)throw D=SO("openDbImpl",G,b),_.U("ytidb_async_stack_killswitch")||(D.stack=D.stack+"\n"+l.substring(l.indexOf("\n")+1)),_.uB(D),D;nL(G);k=I?{actualName:G,publicName:G,userIdentifier:void 0}:LsO(G);_.gm(x,3);return x.yield(l0O(k,V),5);case 5:return x.yield(qbO(k.actualName,b,h),6);case 6:return x.return(x.yieldResult);case 3:return L=
_.zf(x),_.gm(x,7),x.yield(_.m0(k.actualName,V),9);case 9:_.hF(x,8);break;case 7:_.zf(x);case 8:throw L;}})};
xOd=function(G,b,I){I=I===void 0?{}:I;return QoB(G,b,!1,I)};
f0B=function(G,b,I){I=I===void 0?{}:I;return QoB(G,b,!0,I)};
T4a=function(G,b){b=b===void 0?{}:b;var I,h;return _.c(function(q){if(q.nextAddress==1)return q.yield(_.k_(),2);if(q.nextAddress!=3){I=q.yieldResult;if(!I)return q.return();nL(G);h=LsO(G);return q.yield(_.q9(h.actualName,b),3)}return q.yield(_.m0(h.actualName,I),0)})};
B4v=function(G,b,I){G=G.map(function(h){return _.c(function(q){return q.nextAddress==1?q.yield(_.q9(h.actualName,b),2):q.yield(_.m0(h.actualName,I),0)})});
return Promise.all(G).then(function(){})};
UOd=function(G){var b=b===void 0?{}:b;var I,h;return _.c(function(q){if(q.nextAddress==1)return q.yield(_.k_(),2);if(q.nextAddress!=3){I=q.yieldResult;if(!I)return q.return();nL(G);return q.yield(eA2(G,I),3)}h=q.yieldResult;return q.yield(B4v(h,b,I),0)})};
soq=function(G,b){b=b===void 0?{}:b;var I;return _.c(function(h){if(h.nextAddress==1)return h.yield(_.k_(),2);if(h.nextAddress!=3){I=h.yieldResult;if(!I)return h.return();nL(G);return h.yield(_.q9(G,b),3)}return h.yield(_.m0(G,I),0)})};
vz=function(G,b){return gSj(G,b)};
MnO=function(G){return _.jy(AQd(),G)};
Zwq=function(G,b,I,h){var q,l,V;return _.c(function(D){switch(D.nextAddress){case 1:return q={config:G,hashData:b,timestamp:h!==void 0?h:(0,_.Li)()},D.yield(MnO(I),2);case 2:return l=D.yieldResult,D.yield(l.clear("hotConfigStore"),3);case 3:return D.yield(l.put("hotConfigStore",q),4);case 4:return V=D.yieldResult,D.return(V)}})};
tnX=function(G,b,I,h,q){var l,V,D;return _.c(function(k){switch(k.nextAddress){case 1:return l={config:G,hashData:b,configData:I,timestamp:q!==void 0?q:(0,_.Li)()},k.yield(MnO(h),2);case 2:return V=k.yieldResult,k.yield(V.clear("coldConfigStore"),3);case 3:return k.yield(V.put("coldConfigStore",l),4);case 4:return D=k.yieldResult,k.return(D)}})};
zAa=function(G){var b,I;return _.c(function(h){return h.nextAddress==1?h.yield(MnO(G),2):h.nextAddress!=3?(b=h.yieldResult,I=void 0,h.yield(_.lu(b,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(q){return _.Qz(q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(l){I=l.getValue()})}),3)):h.return(I)})};
oSO=function(G){var b,I;return _.c(function(h){return h.nextAddress==1?h.yield(MnO(G),2):h.nextAddress!=3?(b=h.yieldResult,I=void 0,h.yield(_.lu(b,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(q){return _.Qz(q.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(l){I=l.getValue()})}),3)):h.return(I)})};
iwp=function(){return _.c(function(G){return G.yield(UOd("ytGcfConfig"),0)})};
Pmv=function(){return"INNERTUBE_API_KEY"in _.n3&&"INNERTUBE_API_VERSION"in _.n3};
_.x_=function(){return{innertubeApiKey:_.wy("INNERTUBE_API_KEY"),innertubeApiVersion:_.wy("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.wy("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.wy("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.wy("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.wy("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.wy("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.wy("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.wy("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Sk("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Sk("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.wy("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.a0j=function(G){var b={client:{hl:G.innertubeContextHostLanguage,gl:G.innertubeContextGeoLocation,clientName:G.innertubeContextClientName,clientVersion:G.innertubeContextClientVersion,configInfo:G.innertubeContextClientConfigInfo}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var I=_.hd.devicePixelRatio;I&&I!=1&&(b.client.screenDensityFloat=String(I));I=Gmu();I!==""&&(b.client.experimentsToken=I);I=bUv();I.length>0&&(b.request={internalExperimentFlags:I});dOu(G,void 0,b);
yQr(void 0,b);rQv(void 0,b);FsO(G,void 0,b);Hwq(void 0,b);_.U("start_client_gcf")&&Wsp(void 0,b);_.wy("DELEGATED_SESSION_ID")&&!_.U("pageid_as_header_web")&&(b.user={onBehalfOfUser:_.wy("DELEGATED_SESSION_ID")});!_.U("fill_delegate_context_in_gel_killswitch")&&(G=_.wy("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:G}));G=_.wy("INNERTUBE_CONTEXT");var h;if(_.U("enable_persistent_device_token")&&(G==null?0:(h=G.client)==null?0:h.rolloutToken)){var q;
b.client.rolloutToken=G==null?void 0:(q=G.client)==null?void 0:q.rolloutToken}h=Object;q=h.assign;G=b.client;I={};for(var l=_.e(Object.entries(_.q1(_.wy("DEVICE","")))),V=l.next();!V.done;V=l.next()){var D=_.e(V.value);V=D.next().value;D=D.next().value;V==="cbrand"?I.deviceMake=D:V==="cmodel"?I.deviceModel=D:V==="cbr"?I.browserName=D:V==="cbrver"?I.browserVersion=D:V==="cos"?I.osName=D:V==="cosver"?I.osVersion=D:V==="cplatform"&&(I.platform=D)}b.client=q.call(h,G,I);return b};
dOu=function(G,b,I){G=G.innertubeContextClientName;if(G==="WEB"||G==="MWEB"||G===1||G===2)if(b){I=_.fi(b,N4O,96)||new N4O;var h=Yba();h=Object.keys(Cmr).indexOf(h);h=h===-1?null:h;h!==null&&_.Tv(I,3,h);_.ZK(b,96,I)}else I&&(I.client.mainAppWebInfo=(h=I.client.mainAppWebInfo)!=null?h:{},I.client.mainAppWebInfo.webDisplayMode=Yba())};
yQr=function(G,b){var I=_.Ge("yt.embedded_player.embed_url");I&&(G?(b=_.fi(G,JQr,7)||new JQr,_.F0(b,4,I),_.ZK(G,7,b)):b&&(b.thirdParty={embedUrl:I}))};
rQv=function(G,b){var I;if(_.U("web_log_memory_total_kbytes")&&((I=_.hd.navigator)==null?0:I.deviceMemory)){var h;I=(h=_.hd.navigator)==null?void 0:h.deviceMemory;G?_.Bz(G,95,LD(I*1E6)):b&&(b.client.memoryTotalKbytes=""+I*1E6)}};
FsO=function(G,b,I){if(G.appInstallData)if(b){var h;I=(h=_.fi(b,UA,62))!=null?h:new UA;_.F0(I,6,G.appInstallData);_.ZK(b,62,I)}else I&&(I.client.configInfo=I.client.configInfo||{},I.client.configInfo.appInstallData=G.appInstallData)};
Hwq=function(G,b){var I=_.HUd();I&&(G?_.Tv(G,61,Ksq[I]):b&&(b.client.connectionType=I));_.U("web_log_effective_connection_type")&&(I=aEj())&&(G?_.Tv(G,94,uo2[I]):b&&(b.client.effectiveConnectionType=I))};
_.OwX=function(G,b,I){I=I===void 0?{}:I;var h={};_.wy("EOM_VISITOR_DATA")?h={"X-Goog-EOM-Visitor-Id":_.wy("EOM_VISITOR_DATA")}:h={"X-Goog-Visitor-Id":I.visitorData||_.wy("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return h;b=I.authorization||_.wy("AUTHORIZATION");b||(G?b="Bearer "+_.Ge("gapi.auth.getToken")().access_token:(RAp.instance||(RAp.instance=new RAp),G=nSX(),_.U("pageid_as_header_web")||delete G["X-Goog-PageId"],h=Object.assign({},h,G)));b&&(h.Authorization=b);return h};
Wsp=function(G,b){var I=wjB();if(I){var h=I.coldConfigData,q=I.coldHashData;I=I.hotHashData;if(G){var l;b=(l=_.fi(G,UA,62))!=null?l:new UA;h=_.F0(b,1,h);_.F0(h,3,q).setHotHashData(I);_.ZK(G,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},h&&(b.client.configInfo.coldConfigData=h),q&&(b.client.configInfo.coldHashData=q),I&&(b.client.configInfo.hotHashData=I))}};
sA=function(G){for(var b=G.length;--b>=0;)G[b]=0};
ESu=function(G,b,I,h,q){this.static_tree=G;this.extra_bits=b;this.extra_base=I;this.elems=h;this.max_length=q;this.has_stree=G&&G.length};
pj2=function(G,b){this.dyn_tree=G;this.max_code=0;this.stat_desc=b};
gh=function(G,b){G.pending_buf[G.pending++]=b&255;G.pending_buf[G.pending++]=b>>>8&255};
AF=function(G,b,I){G.bi_valid>16-I?(G.bi_buf|=b<<G.bi_valid&65535,gh(G,G.bi_buf),G.bi_buf=b>>16-G.bi_valid,G.bi_valid+=I-16):(G.bi_buf|=b<<G.bi_valid&65535,G.bi_valid+=I)};
M9=function(G,b,I){AF(G,I[b*2],I[b*2+1])};
Sbr=function(G,b){var I=0;do I|=G&1,G>>>=1,I<<=1;while(--b>0);return I>>>1};
Xjs=function(G,b,I){var h=Array(16),q=0,l;for(l=1;l<=15;l++)h[l]=q=q+I[l-1]<<1;for(I=0;I<=b;I++)q=G[I*2+1],q!==0&&(G[I*2]=Sbr(h[q]++,q))};
$ev=function(G){var b;for(b=0;b<286;b++)G.dyn_ltree[b*2]=0;for(b=0;b<30;b++)G.dyn_dtree[b*2]=0;for(b=0;b<19;b++)G.bl_tree[b*2]=0;G.dyn_ltree[512]=1;G.opt_len=G.static_len=0;G.last_lit=G.matches=0};
G9j=function(G){G.bi_valid>8?gh(G,G.bi_buf):G.bi_valid>0&&(G.pending_buf[G.pending++]=G.bi_buf);G.bi_buf=0;G.bi_valid=0};
bXO=function(G,b,I){G9j(G);gh(G,I);gh(G,~I);ZO.arraySet(G.pending_buf,G.window,b,I,G.pending);G.pending+=I};
ILr=function(G,b,I,h){var q=b*2,l=I*2;return G[q]<G[l]||G[q]===G[l]&&h[b]<=h[I]};
hhq=function(G,b,I){for(var h=G.heap[I],q=I<<1;q<=G.heap_len;){q<G.heap_len&&ILr(b,G.heap[q+1],G.heap[q],G.depth)&&q++;if(ILr(b,h,G.heap[q],G.depth))break;G.heap[I]=G.heap[q];I=q;q<<=1}G.heap[I]=h};
ehr=function(G,b,I){var h=0;if(G.last_lit!==0){do{var q=G.pending_buf[G.d_buf+h*2]<<8|G.pending_buf[G.d_buf+h*2+1];var l=G.pending_buf[G.l_buf+h];h++;if(q===0)M9(G,l,b);else{var V=tF[l];M9(G,V+256+1,b);var D=qoa[V];D!==0&&(l-=j_v[V],AF(G,l,D));q--;V=q<256?zv[q]:zv[256+(q>>>7)];M9(G,V,I);D=lLO[V];D!==0&&(q-=mev[V],AF(G,q,D))}}while(h<G.last_lit)}M9(G,256,b)};
VLB=function(G,b){var I=b.dyn_tree,h=b.stat_desc.static_tree,q=b.stat_desc.has_stree,l=b.stat_desc.elems,V,D=-1;G.heap_len=0;G.heap_max=573;for(V=0;V<l;V++)I[V*2]!==0?(G.heap[++G.heap_len]=D=V,G.depth[V]=0):I[V*2+1]=0;for(;G.heap_len<2;){var k=G.heap[++G.heap_len]=D<2?++D:0;I[k*2]=1;G.depth[k]=0;G.opt_len--;q&&(G.static_len-=h[k*2+1])}b.max_code=D;for(V=G.heap_len>>1;V>=1;V--)hhq(G,I,V);k=l;do V=G.heap[1],G.heap[1]=G.heap[G.heap_len--],hhq(G,I,1),h=G.heap[1],G.heap[--G.heap_max]=V,G.heap[--G.heap_max]=
h,I[k*2]=I[V*2]+I[h*2],G.depth[k]=(G.depth[V]>=G.depth[h]?G.depth[V]:G.depth[h])+1,I[V*2+1]=I[h*2+1]=k,G.heap[1]=k++,hhq(G,I,1);while(G.heap_len>=2);G.heap[--G.heap_max]=G.heap[1];V=b.dyn_tree;k=b.max_code;h=b.stat_desc.static_tree;q=b.stat_desc.has_stree;l=b.stat_desc.extra_bits;var L=b.stat_desc.extra_base,x=b.stat_desc.max_length,f,T=0;for(f=0;f<=15;f++)G.bl_count[f]=0;V[G.heap[G.heap_max]*2+1]=0;for(b=G.heap_max+1;b<573;b++){var B=G.heap[b];f=V[V[B*2+1]*2+1]+1;f>x&&(f=x,T++);V[B*2+1]=f;if(!(B>
k)){G.bl_count[f]++;var A=0;B>=L&&(A=l[B-L]);var t=V[B*2];G.opt_len+=t*(f+A);q&&(G.static_len+=t*(h[B*2+1]+A))}}if(T!==0){do{for(f=x-1;G.bl_count[f]===0;)f--;G.bl_count[f]--;G.bl_count[f+1]+=2;G.bl_count[x]--;T-=2}while(T>0);for(f=x;f!==0;f--)for(B=G.bl_count[f];B!==0;)h=G.heap[--b],h>k||(V[h*2+1]!==f&&(G.opt_len+=(f-V[h*2+1])*V[h*2],V[h*2+1]=f),B--)}Xjs(I,D,G.bl_count)};
Deq=function(G,b,I){var h,q=-1,l=b[1],V=0,D=7,k=4;l===0&&(D=138,k=3);b[(I+1)*2+1]=65535;for(h=0;h<=I;h++){var L=l;l=b[(h+1)*2+1];++V<D&&L===l||(V<k?G.bl_tree[L*2]+=V:L!==0?(L!==q&&G.bl_tree[L*2]++,G.bl_tree[32]++):V<=10?G.bl_tree[34]++:G.bl_tree[36]++,V=0,q=L,l===0?(D=138,k=3):L===l?(D=6,k=3):(D=7,k=4))}};
cLr=function(G,b,I){var h,q=-1,l=b[1],V=0,D=7,k=4;l===0&&(D=138,k=3);for(h=0;h<=I;h++){var L=l;l=b[(h+1)*2+1];if(!(++V<D&&L===l)){if(V<k){do M9(G,L,G.bl_tree);while(--V!==0)}else L!==0?(L!==q&&(M9(G,L,G.bl_tree),V--),M9(G,16,G.bl_tree),AF(G,V-3,2)):V<=10?(M9(G,17,G.bl_tree),AF(G,V-3,3)):(M9(G,18,G.bl_tree),AF(G,V-11,7));V=0;q=L;l===0?(D=138,k=3):L===l?(D=6,k=3):(D=7,k=4)}}};
k9d=function(G){var b=4093624447,I;for(I=0;I<=31;I++,b>>>=1)if(b&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};
ob=function(G,b,I){G.pending_buf[G.d_buf+G.last_lit*2]=b>>>8&255;G.pending_buf[G.d_buf+G.last_lit*2+1]=b&255;G.pending_buf[G.l_buf+G.last_lit]=I&255;G.last_lit++;b===0?G.dyn_ltree[I*2]++:(G.matches++,b--,G.dyn_ltree[(tF[I]+256+1)*2]++,G.dyn_dtree[(b<256?zv[b]:zv[256+(b>>>7)])*2]++);return G.last_lit===G.lit_bufsize-1};
Pz=function(G,b){G.msg=iu[b];return b};
dh=function(G){for(var b=G.length;--b>=0;)G[b]=0};
yz=function(G){var b=G.state,I=b.pending;I>G.avail_out&&(I=G.avail_out);I!==0&&(ZO.arraySet(G.output,b.pending_buf,b.pending_out,I,G.next_out),G.next_out+=I,b.pending_out+=I,G.total_out+=I,G.avail_out-=I,b.pending-=I,b.pending===0&&(b.pending_out=0))};
Hz=function(G,b){var I=G.block_start>=0?G.block_start:-1,h=G.strstart-G.block_start,q=0;if(G.level>0){G.strm.data_type===2&&(G.strm.data_type=k9d(G));VLB(G,G.l_desc);VLB(G,G.d_desc);Deq(G,G.dyn_ltree,G.l_desc.max_code);Deq(G,G.dyn_dtree,G.d_desc.max_code);VLB(G,G.bl_desc);for(q=18;q>=3&&G.bl_tree[vnB[q]*2+1]===0;q--);G.opt_len+=3*(q+1)+5+5+4;var l=G.opt_len+3+7>>>3;var V=G.static_len+3+7>>>3;V<=l&&(l=V)}else l=V=h+5;if(h+4<=l&&I!==-1)AF(G,b?1:0,3),bXO(G,I,h);else if(G.strategy===4||V===l)AF(G,2+(b?
1:0),3),ehr(G,rh,F5);else{AF(G,4+(b?1:0),3);I=G.l_desc.max_code+1;h=G.d_desc.max_code+1;q+=1;AF(G,I-257,5);AF(G,h-1,5);AF(G,q-4,4);for(l=0;l<q;l++)AF(G,G.bl_tree[vnB[l]*2+1],3);cLr(G,G.dyn_ltree,I-1);cLr(G,G.dyn_dtree,h-1);ehr(G,G.dyn_ltree,G.dyn_dtree)}$ev(G);b&&G9j(G);G.block_start=G.strstart;yz(G.strm)};
Wz=function(G,b){G.pending_buf[G.pending++]=b};
ab=function(G,b){G.pending_buf[G.pending++]=b>>>8&255;G.pending_buf[G.pending++]=b&255};
Lur=function(G,b){var I=G.max_chain_length,h=G.strstart,q=G.prev_length,l=G.nice_match,V=G.strstart>G.w_size-262?G.strstart-(G.w_size-262):0,D=G.window,k=G.w_mask,L=G.prev,x=G.strstart+258,f=D[h+q-1],T=D[h+q];G.prev_length>=G.good_match&&(I>>=2);l>G.lookahead&&(l=G.lookahead);do{var B=b;if(D[B+q]===T&&D[B+q-1]===f&&D[B]===D[h]&&D[++B]===D[h+1]){h+=2;for(B++;D[++h]===D[++B]&&D[++h]===D[++B]&&D[++h]===D[++B]&&D[++h]===D[++B]&&D[++h]===D[++B]&&D[++h]===D[++B]&&D[++h]===D[++B]&&D[++h]===D[++B]&&h<x;);
B=258-(x-h);h=x-258;if(B>q){G.match_start=b;q=B;if(B>=l)break;f=D[h+q-1];T=D[h+q]}}}while((b=L[b&k])>V&&--I!==0);return q<=G.lookahead?q:G.lookahead};
Y_=function(G){var b=G.w_size,I;do{var h=G.window_size-G.lookahead-G.strstart;if(G.strstart>=b+(b-262)){ZO.arraySet(G.window,G.window,b,b,0);G.match_start-=b;G.strstart-=b;G.block_start-=b;var q=I=G.hash_size;do{var l=G.head[--q];G.head[q]=l>=b?l-b:0}while(--I);q=I=b;do l=G.prev[--q],G.prev[q]=l>=b?l-b:0;while(--I);h+=b}if(G.strm.avail_in===0)break;q=G.strm;I=G.window;l=G.strstart+G.lookahead;var V=q.avail_in;V>h&&(V=h);V===0?I=0:(q.avail_in-=V,ZO.arraySet(I,q.input,q.next_in,V,l),q.state.wrap===
1?q.adler=Q_r(q.adler,I,V,l):q.state.wrap===2&&(q.adler=N9(q.adler,I,V,l)),q.next_in+=V,q.total_in+=V,I=V);G.lookahead+=I;if(G.lookahead+G.insert>=3)for(h=G.strstart-G.insert,G.ins_h=G.window[h],G.ins_h=(G.ins_h<<G.hash_shift^G.window[h+1])&G.hash_mask;G.insert&&!(G.ins_h=(G.ins_h<<G.hash_shift^G.window[h+3-1])&G.hash_mask,G.prev[h&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=h,h++,G.insert--,G.lookahead+G.insert<3););}while(G.lookahead<262&&G.strm.avail_in!==0)};
xeX=function(G,b){for(var I;;){if(G.lookahead<262){Y_(G);if(G.lookahead<262&&b===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=Lur(G,I));if(G.match_length>=3)if(I=ob(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=ob(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++;if(I&&(Hz(G,!1),G.strm.avail_out===0))return 1}G.insert=G.strstart<2?G.strstart:2;return b===4?(Hz(G,
!0),G.strm.avail_out===0?3:4):G.last_lit&&(Hz(G,!1),G.strm.avail_out===0)?1:2};
Ci=function(G,b){for(var I,h;;){if(G.lookahead<262){Y_(G);if(G.lookahead<262&&b===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=Lur(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){h=G.strstart+G.lookahead-3;I=ob(G,G.strstart-1-G.prev_match,G.prev_length-3);G.lookahead-=G.prev_length-1;G.prev_length-=2;do++G.strstart<=h&&(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&&(Hz(G,!1),G.strm.avail_out===0))return 1}else if(G.match_available){if((I=
ob(G,0,G.window[G.strstart-1]))&&Hz(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&&(ob(G,0,G.window[G.strstart-1]),G.match_available=0);G.insert=G.strstart<2?G.strstart:2;return b===4?(Hz(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(Hz(G,!1),G.strm.avail_out===0)?1:2};
fLB=function(G,b){for(var I,h,q,l=G.window;;){if(G.lookahead<=258){Y_(G);if(G.lookahead<=258&&b===0)return 1;if(G.lookahead===0)break}G.match_length=0;if(G.lookahead>=3&&G.strstart>0&&(h=G.strstart-1,I=l[h],I===l[++h]&&I===l[++h]&&I===l[++h])){for(q=G.strstart+258;I===l[++h]&&I===l[++h]&&I===l[++h]&&I===l[++h]&&I===l[++h]&&I===l[++h]&&I===l[++h]&&I===l[++h]&&h<q;);G.match_length=258-(q-h);G.match_length>G.lookahead&&(G.match_length=G.lookahead)}G.match_length>=3?(I=ob(G,1,G.match_length-3),G.lookahead-=
G.match_length,G.strstart+=G.match_length,G.match_length=0):(I=ob(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++);if(I&&(Hz(G,!1),G.strm.avail_out===0))return 1}G.insert=0;return b===4?(Hz(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(Hz(G,!1),G.strm.avail_out===0)?1:2};
Tq2=function(G,b){for(var I;;){if(G.lookahead===0&&(Y_(G),G.lookahead===0)){if(b===0)return 1;break}G.match_length=0;I=ob(G,0,G.window[G.strstart]);G.lookahead--;G.strstart++;if(I&&(Hz(G,!1),G.strm.avail_out===0))return 1}G.insert=0;return b===4?(Hz(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(Hz(G,!1),G.strm.avail_out===0)?1:2};
JF=function(G,b,I,h,q){this.good_length=G;this.max_lazy=b;this.nice_length=I;this.max_chain=h;this.func=q};
BqX=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 ZO.Buf16(1146);this.dyn_dtree=new ZO.Buf16(122);this.bl_tree=new ZO.Buf16(78);dh(this.dyn_ltree);dh(this.dyn_dtree);dh(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new ZO.Buf16(16);this.heap=new ZO.Buf16(573);dh(this.heap);this.heap_max=this.heap_len=0;this.depth=new ZO.Buf16(573);dh(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};
Ueu=function(G,b){if(!G||!G.state||b>5||b<0)return G?Pz(G,-2):-2;var I=G.state;if(!G.output||!G.input&&G.avail_in!==0||I.status===666&&b!==4)return Pz(G,G.avail_out===0?-5:-2);I.strm=G;var h=I.last_flush;I.last_flush=b;if(I.status===42)if(I.wrap===2)G.adler=0,Wz(I,31),Wz(I,139),Wz(I,8),I.gzhead?(Wz(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)),Wz(I,I.gzhead.time&255),Wz(I,I.gzhead.time>>8&255),Wz(I,I.gzhead.time>>16&255),Wz(I,I.gzhead.time>>
24&255),Wz(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),Wz(I,I.gzhead.os&255),I.gzhead.extra&&I.gzhead.extra.length&&(Wz(I,I.gzhead.extra.length&255),Wz(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(G.adler=N9(G.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(Wz(I,0),Wz(I,0),Wz(I,0),Wz(I,0),Wz(I,0),Wz(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),Wz(I,3),I.status=113);else{var q=8+(I.w_bits-8<<4)<<8;q|=(I.strategy>=2||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6;I.strstart!==0&&(q|=
32);I.status=113;ab(I,q+(31-q%31));I.strstart!==0&&(ab(I,G.adler>>>16),ab(I,G.adler&65535));G.adler=1}if(I.status===69)if(I.gzhead.extra){for(q=I.pending;I.gzindex<(I.gzhead.extra.length&65535)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>q&&(G.adler=N9(G.adler,I.pending_buf,I.pending-q,q)),yz(G),q=I.pending,I.pending!==I.pending_buf_size));)Wz(I,I.gzhead.extra[I.gzindex]&255),I.gzindex++;I.gzhead.hcrc&&I.pending>q&&(G.adler=N9(G.adler,I.pending_buf,I.pending-q,q));I.gzindex===I.gzhead.extra.length&&
(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){q=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>q&&(G.adler=N9(G.adler,I.pending_buf,I.pending-q,q)),yz(G),q=I.pending,I.pending===I.pending_buf_size)){var l=1;break}l=I.gzindex<I.gzhead.name.length?I.gzhead.name.charCodeAt(I.gzindex++)&255:0;Wz(I,l)}while(l!==0);I.gzhead.hcrc&&I.pending>q&&(G.adler=N9(G.adler,I.pending_buf,I.pending-q,q));l===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===
91)if(I.gzhead.comment){q=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>q&&(G.adler=N9(G.adler,I.pending_buf,I.pending-q,q)),yz(G),q=I.pending,I.pending===I.pending_buf_size)){l=1;break}l=I.gzindex<I.gzhead.comment.length?I.gzhead.comment.charCodeAt(I.gzindex++)&255:0;Wz(I,l)}while(l!==0);I.gzhead.hcrc&&I.pending>q&&(G.adler=N9(G.adler,I.pending_buf,I.pending-q,q));l===0&&(I.status=103)}else I.status=103;I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&yz(G),
I.pending+2<=I.pending_buf_size&&(Wz(I,G.adler&255),Wz(I,G.adler>>8&255),G.adler=0,I.status=113)):I.status=113);if(I.pending!==0){if(yz(G),G.avail_out===0)return I.last_flush=-1,0}else if(G.avail_in===0&&(b<<1)-(b>4?9:0)<=(h<<1)-(h>4?9:0)&&b!==4)return Pz(G,-5);if(I.status===666&&G.avail_in!==0)return Pz(G,-5);if(G.avail_in!==0||I.lookahead!==0||b!==0&&I.status!==666){h=I.strategy===2?Tq2(I,b):I.strategy===3?fLB(I,b):Ki[I.level].func(I,b);if(h===3||h===4)I.status=666;if(h===1||h===3)return G.avail_out===
0&&(I.last_flush=-1),0;if(h===2&&(b===1?(AF(I,2,3),M9(I,256,rh),I.bi_valid===16?(gh(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)):b!==5&&(AF(I,0,3),bXO(I,0,0),b===3&&(dh(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),yz(G),G.avail_out===0))return I.last_flush=-1,0}if(b!==4)return 0;if(I.wrap<=0)return 1;I.wrap===2?(Wz(I,G.adler&255),Wz(I,G.adler>>8&255),Wz(I,G.adler>>16&255),Wz(I,G.adler>>24&255),Wz(I,
G.total_in&255),Wz(I,G.total_in>>8&255),Wz(I,G.total_in>>16&255),Wz(I,G.total_in>>24&255)):(ab(I,G.adler>>>16),ab(I,G.adler&65535));yz(G);I.wrap>0&&(I.wrap=-I.wrap);return I.pending!==0?0:1};
s_a=function(G){if(!(this instanceof s_a))return new s_a(G);G=this.options=ZO.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 gn2;this.strm.avail_out=0;var b=this.strm;var I=G.level,h=G.method,q=G.windowBits,l=G.memLevel,V=G.strategy;if(b){var D=1;I===-1&&(I=6);q<0?(D=0,q=-q):q>15&&
(D=2,q-=16);if(l<1||l>9||h!==8||q<8||q>15||I<0||I>9||V<0||V>4)b=Pz(b,-2);else{q===8&&(q=9);var k=new BqX;b.state=k;k.strm=b;k.wrap=D;k.gzhead=null;k.w_bits=q;k.w_size=1<<k.w_bits;k.w_mask=k.w_size-1;k.hash_bits=l+7;k.hash_size=1<<k.hash_bits;k.hash_mask=k.hash_size-1;k.hash_shift=~~((k.hash_bits+3-1)/3);k.window=new ZO.Buf8(k.w_size*2);k.head=new ZO.Buf16(k.hash_size);k.prev=new ZO.Buf16(k.w_size);k.lit_bufsize=1<<l+6;k.pending_buf_size=k.lit_bufsize*4;k.pending_buf=new ZO.Buf8(k.pending_buf_size);
k.d_buf=k.lit_bufsize;k.l_buf=3*k.lit_bufsize;k.level=I;k.strategy=V;k.method=h;if(b&&b.state){b.total_in=b.total_out=0;b.data_type=2;I=b.state;I.pending=0;I.pending_out=0;I.wrap<0&&(I.wrap=-I.wrap);I.status=I.wrap?42:113;b.adler=I.wrap===2?0:1;I.last_flush=0;if(!ALO){h=Array(16);for(l=V=0;l<28;l++)for(j_v[l]=V,q=0;q<1<<qoa[l];q++)tF[V++]=l;tF[V-1]=l;for(l=V=0;l<16;l++)for(mev[l]=V,q=0;q<1<<lLO[l];q++)zv[V++]=l;for(V>>=7;l<30;l++)for(mev[l]=V<<7,q=0;q<1<<lLO[l]-7;q++)zv[256+V++]=l;for(q=0;q<=15;q++)h[q]=
0;for(q=0;q<=143;)rh[q*2+1]=8,q++,h[8]++;for(;q<=255;)rh[q*2+1]=9,q++,h[9]++;for(;q<=279;)rh[q*2+1]=7,q++,h[7]++;for(;q<=287;)rh[q*2+1]=8,q++,h[8]++;Xjs(rh,287,h);for(q=0;q<30;q++)F5[q*2+1]=5,F5[q*2]=Sbr(q,5);MLq=new ESu(rh,qoa,257,286,15);ZXO=new ESu(F5,lLO,0,30,15);tLs=new ESu([],zhd,0,19,7);ALO=!0}I.l_desc=new pj2(I.dyn_ltree,MLq);I.d_desc=new pj2(I.dyn_dtree,ZXO);I.bl_desc=new pj2(I.bl_tree,tLs);I.bi_buf=0;I.bi_valid=0;$ev(I);I=0}else I=Pz(b,-2);I===0&&(b=b.state,b.window_size=2*b.w_size,dh(b.head),
b.max_lazy_match=Ki[b.level].max_lazy,b.good_match=Ki[b.level].good_length,b.nice_match=Ki[b.level].nice_length,b.max_chain_length=Ki[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=2,b.match_available=0,b.ins_h=0);b=I}}else b=-2;if(b!==0)throw Error(iu[b]);G.header&&(b=this.strm)&&b.state&&b.state.wrap===2&&(b.state.gzhead=G.header);if(G.dictionary){var L;typeof G.dictionary==="string"?L=onX(G.dictionary):iXp.call(G.dictionary)==="[object ArrayBuffer]"?
L=new Uint8Array(G.dictionary):L=G.dictionary;G=this.strm;l=L;V=l.length;if(G&&G.state)if(L=G.state,b=L.wrap,b===2||b===1&&L.status!==42||L.lookahead)b=-2;else{b===1&&(G.adler=Q_r(G.adler,l,V,0));L.wrap=0;V>=L.w_size&&(b===0&&(dh(L.head),L.strstart=0,L.block_start=0,L.insert=0),I=new ZO.Buf8(L.w_size),ZO.arraySet(I,l,V-L.w_size,L.w_size,0),l=I,V=L.w_size);I=G.avail_in;h=G.next_in;q=G.input;G.avail_in=V;G.next_in=0;G.input=l;for(Y_(L);L.lookahead>=3;){l=L.strstart;V=L.lookahead-2;do L.ins_h=(L.ins_h<<
L.hash_shift^L.window[l+3-1])&L.hash_mask,L.prev[l&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=l,l++;while(--V);L.strstart=l;L.lookahead=2;Y_(L)}L.strstart+=L.lookahead;L.block_start=L.strstart;L.insert=L.lookahead;L.lookahead=0;L.match_length=L.prev_length=2;L.match_available=0;G.next_in=h;G.input=q;G.avail_in=I;L.wrap=b;b=0}else b=-2;if(b!==0)throw Error(iu[b]);this._dict_set=!0}};
Pgs=function(G,b){b=b||{};b.gzip=!0;b=new s_a(b);b.push(G,!0);if(b.err)throw b.msg||iu[b.err];return b.result};
yLr=function(G,b){var I=des();I&&I.publish.call(I,G.toString(),G,b)};
aLp=function(G,b,I){var h=des();if(!h)return 0;var q=h.subscribe(G.toString(),function(l,V){var D=_.Ge("ytPubsub2Pubsub2SkipSubKey");D&&D==q||(D=function(){if(rLj[q])try{if(V&&G instanceof FuB&&G!=l)try{var k=G.dataClass,L=V;if(!L.args||!L.version)throw Error("$c");try{if(!k.version_){var x=new k;k.version_=x.version}var f=k.version_}catch(T){}if(!f||L.version!=f)throw Error("ad");try{V=Reflect.construct(k,_.Jd(L.args))}catch(T){throw T.message="yt.pubsub2.Data.deserialize(): "+T.message,T;}}catch(T){throw T.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+G.toString()+": "+T.message,T;}b.call(I||window,V)}catch(T){_.Xj(T)}},HXa[G.toString()]?_.Ge("yt.scheduler.instance")?_.uu.addLowPriorityJob(D):_.AB(D,0):D())});
rLj[q]=!0;Wu2[G.toString()]||(Wu2[G.toString()]=[]);Wu2[G.toString()].push(q);return q};
JLj=function(){var G=NqO,b=aLp(YoO,function(I){G.apply(void 0,arguments);CgO(b)});
return b};
CgO=function(G){var b=des();b&&(typeof G==="number"&&(G=[G]),_.hB(G,function(I){b.unsubscribeByKey(I);delete rLj[I]}))};
des=function(){return _.Ge("ytPubsub2Pubsub2Instance")};
Kuu=function(G,b,I){I=I===void 0?{sampleRate:.1}:I;Math.random()<Math.min(.02,I.sampleRate/100)&&yLr("meta_logging_csi_event",{timerName:G,timelineData:b})};
_.uAO=function(G){return G?(G=G.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.qz(G):null:null};
_.Rb=function(G){return G?(G=G.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Pg(G):null:null};
nnr=function(){RhB||(RhB=_.Rb(_.wy("WORKER_SERIALIZATION_URL")));return RhB||void 0};
_.wyO=function(){var G=nnr();OXa||G===void 0||(OXa=fJv(G));return OXa};
_.Ena=function(){return typeof Worker==="function"&&nnr()?!0:!1};
_.$5X=function(){if(_.Ena()&&!pyO){var G=function(I){I=I.data;if(I.op==="gzippedGelBatch"){var h=Sop.get(I.key);h&&(Xyv(I.gzippedBatch,h.latencyPayload,h.url,h.options,h.sendFn),Sop.delete(I.key))}},b=_.wyO();
b&&(b.addEventListener("message",G),b.onerror=function(){Sop.clear()},pyO=!0)}};
ldq=function(G,b,I,h,q){q=q===void 0?!1:q;var l={startTime:(0,_.Li)(),ticks:{},infos:{}};if(ni)try{var V=G8O(b);if(V!=null&&(V>bna||V<Ida))h(G,I);else{if(_.U("gzip_gel_with_worker")&&(_.U("initial_gzip_use_main_thread")&&!hra||!_.U("initial_gzip_use_main_thread"))){pyO||_.$5X();var D=_.wyO();if(D&&!q){Sop.set(qhp,{latencyPayload:l,url:G,options:I,sendFn:h});D.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:qhp});qhp++;return}}var k=Pgs(j9O(b));Xyv(k,l,G,I,h)}}catch(L){_.bB(L),h(G,I)}else h(G,
I)};
Xyv=function(G,b,I,h,q){hra=!1;var l=(0,_.Li)();b.ticks.gelc=l;OA++;_.U("disable_compression_due_to_performance_degredation")&&l-b.startTime>=m5u&&(err++,ni=!1);VHs(b);h.headers||(h.headers={});h.headers["Content-Encoding"]="gzip";h.postBody=G;h.postParams=void 0;q(I,h)};
cIu=function(G){var b=b===void 0?!1:b;var I=I===void 0?!1:I;var h=(0,_.Li)(),q={startTime:h,ticks:{},infos:{}},l=b?_.Ge("yt.logging.gzipForFetch",!1):!0;if(ni&&l){if(!G.body)return G;try{var V=I?G.body:typeof G.body==="string"?G.body:JSON.stringify(G.body);l=V;if(!I&&typeof V==="string"){var D=G8O(V);if(D!=null&&(D>bna||D<Ida))return G;I=b?{level:1}:void 0;l=Pgs(j9O(V),I);var k=(0,_.Li)();q.ticks.gelc=k;if(b){OA++;if((_.U("disable_compression_due_to_performance_degredation")||_.U("disable_compression_due_to_performance_degradation_lr"))&&
k-h>=m5u)if(err++,_.U("abandon_compression_after_N_slow_zips_lr")){b=err/OA;var L=D5v/_.Te("compression_disable_point");OA>0&&OA%_.Te("compression_disable_point")===0&&b>=L&&(ni=!1)}else ni=!1;VHs(q)}}G.headers=Object.assign({},{"Content-Encoding":"gzip"},G.headers||{});G.body=l;return G}catch(x){return _.bB(x),G}}else return G};
G8O=function(G){try{return(new Blob(G.split(""))).size}catch(b){return _.bB(b),null}};
VHs=function(G){_.U("gel_compression_csi_killswitch")||!_.U("log_gel_compression_latency")&&!_.U("log_gel_compression_latency_lr")||Kuu("gel_compression",G,{sampleRate:.1})};
k8r=function(){this.blockSize=-1};
wh=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()};
LNO=function(G){G=Object.assign({},G);delete G.Authorization;var b=_.vyB();if(b){var I=new wh;I.update(_.wy("INNERTUBE_API_KEY"));I.update(b);G.hash=_.WL(I.digest(),3)}return G};
pi=function(){Q9q||(Q9q=new _.EA("yt.innertube"));return Q9q};
x5X=function(G,b,I,h){if(h)return null;h=pi().get("nextId",!0)||1;var q=pi().get("requests",!0)||{};q[h]={method:G,request:b,authState:LNO(I),requestTime:Math.round((0,_.Li)())};pi().set("nextId",h+1,86400,!0);pi().set("requests",q,86400,!0);return h};
fdq=function(G){var b=pi().get("requests",!0)||{};delete b[G];pi().set("requests",b,86400,!0)};
B8r=function(G){var b=pi().get("requests",!0);if(b){for(var I in b){var h=b[I];if(!(Math.round((0,_.Li)())-h.requestTime<6E4)){var q=h.authState,l=LNO(_.OwX(!1));_.Cy.equals(q,l)&&(q=h.request,"requestTimeMs"in q&&(q.requestTimeMs=Math.round((0,_.Li)())),T8O(G,h.method,q,{}));delete b[I]}}pi().set("requests",b,86400,!0)}};
U52=function(G){var b;return(G=G==null?void 0:(b=G.error)==null?void 0:b.code)&&G>=400&&G<=599?!1:!0};
s9O=function(G){var b;G=G==null?void 0:(b=G.error)==null?void 0:b.code;return!(G!==400&&G!==415)};
AIB=function(){if(gyr)return gyr();var G={};gyr=vz("LogsDatabaseV2",{objectStores:(G.LogsRequestsStore={addedAtVersion:2},G),shared:!1,upgrade:function(b,I,h){I(2)&&Sy(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});I(3);I(5)&&(h=h.objectStore("LogsRequestsStore"),h.JSC$10753_wrapped.indexNames.contains("newRequest")&&h.JSC$10753_wrapped.deleteIndex("newRequest"),X5(h,"newRequestV2",["status","interface","timestamp"]));I(7)&&b.JSC$10738_wrapped.objectStoreNames.contains("sapisid")&&b.JSC$10738_wrapped.deleteObjectStore("sapisid");
I(9)&&b.JSC$10738_wrapped.objectStoreNames.contains("SWHealthLog")&&b.JSC$10738_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return gyr()};
$2=function(G){return _.jy(AIB(),G)};
Znr=function(G,b){var I,h,q,l;return _.c(function(V){if(V.nextAddress==1)return I={startTime:(0,_.Li)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},V.yield($2(b),2);if(V.nextAddress!=3)return h=V.yieldResult,q=Object.assign({},G,{options:JSON.parse(JSON.stringify(G.options)),interface:_.wy("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),V.yield(h.put("LogsRequestsStore",q),3);l=V.yieldResult;I.ticks.tc=(0,_.Li)();MH2(I);return V.return(l)})};
tHO=function(G,b){var I,h,q,l,V,D,k,L,x;return _.c(function(f){if(f.nextAddress==1)return I={startTime:(0,_.Li)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},f.yield($2(b),2);if(f.nextAddress!=3)return h=f.yieldResult,q=_.wy("INNERTUBE_CONTEXT_CLIENT_NAME",0),l=[G,q,0],V=[G,q,(0,_.Li)()],D=IDBKeyRange.bound(l,V),k="prev",_.U("use_fifo_for_networkless")&&(k="next"),L=void 0,x=G==="NEW"?"readwrite":"readonly",_.U("use_readonly_for_get_most_recent_by_status_killswitch")&&(x="readwrite"),
f.yield(_.lu(h,["LogsRequestsStore"],{mode:x,enableRetries:!0},function(T){return _.Qz(T.objectStore("LogsRequestsStore").index("newRequestV2"),{query:D,direction:k},function(B){B.getValue()&&(L=B.getValue(),G==="NEW"&&(L.status="QUEUED",B.update(L)))})}),3);
I.ticks.tc=(0,_.Li)();MH2(I);return f.return(L)})};
zrO=function(G,b){var I;return _.c(function(h){if(h.nextAddress==1)return h.yield($2(b),2);I=h.yieldResult;return h.return(_.lu(I,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(q){var l=q.objectStore("LogsRequestsStore");return l.get(G).then(function(V){if(V)return V.status="QUEUED",l.put(V).then(function(){return V})})}))})};
oyO=function(G,b,I,h){I=I===void 0?!0:I;var q;return _.c(function(l){if(l.nextAddress==1)return l.yield($2(b),2);q=l.yieldResult;return l.return(_.lu(q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(V){var D=V.objectStore("LogsRequestsStore");return D.get(G).then(function(k){return k?(k.status="NEW",I&&(k.sendCount+=1),h!==void 0&&(k.options.compress=h),D.put(k).then(function(){return k})):XU.resolve(void 0)})}))})};
inj=function(G,b){var I;return _.c(function(h){if(h.nextAddress==1)return h.yield($2(b),2);I=h.yieldResult;return h.return(I.delete("LogsRequestsStore",G))})};
PHu=function(G){var b,I;return _.c(function(h){if(h.nextAddress==1)return h.yield($2(G),2);b=h.yieldResult;I=(0,_.Li)()-2592E6;return h.yield(_.lu(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(q){return ey(q.objectStore("LogsRequestsStore"),{},function(l){if(l.getValue().timestamp<=I)return l.delete().then(function(){return l.continue()})})}),0)})};
d5j=function(){_.c(function(G){return G.yield(UOd("LogsDatabaseV2"),0)})};
MH2=function(G){_.U("nwl_csi_killswitch")||Kuu("networkless_performance",G,{sampleRate:1})};
_.rIr=function(G){return _.jy(yIX(),G)};
FNs=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return h.yield(_.rIr(G),2);b=h.yieldResult;I=(0,_.Li)()-2592E6;return h.yield(_.lu(b,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(q){return ey(q.objectStore("SWHealthLog"),{},function(l){if(l.getValue().timestamp<=I)return l.delete().then(function(){return l.continue()})})}),0)})};
HnX=function(G){var b;return _.c(function(I){if(I.nextAddress==1)return I.yield(_.rIr(G),2);b=I.yieldResult;return I.yield(b.clear("SWHealthLog"),0)})};
_.Gs=function(G,b,I,h,q,l,V){q=q===void 0?"":q;l=l===void 0?!1:l;V=V===void 0?!1:V;if(G)if(I&&!wi("cobalt"))_.bB(new _.Wf("Legacy referrer-scrubbed ping detected")),G&&WNv(G,void 0,{scrubReferrer:!0});else if(q)VXa(G,b,"POST",q,h);else if(_.wy("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||h||V)VXa(G,b,"GET","",h,void 0,l,V);else{b:{try{c:{var D=new adr({url:G});if(D.urlParamValues_.dsh==="1")var k=null;else{var L=D.urlParamValues_.ae;if(L==="1"){var x=D.urlParamValues_.adurl;if(x)try{k={version:3,directUrl:decodeURIComponent(x),
asyncUrl:Nyr(D.JSC$9549_url_,"act=1","ri=1",N82(D))};break c}catch(A){}}k=L==="2"?{version:4,directUrl:Nyr(D.JSC$9549_url_,"dct=1","suid="+D.suid_,"ri=1"),asyncUrl:Nyr(D.JSC$9549_url_,"act=1","ri=1","suid="+D.suid_)}:null}}if(k){var f=_.tB(G);var T=!(!f||!f.endsWith("/aclk")||_.XN(G,"ri")!=="1");break b}}catch(A){}T=!1}if(T){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(G,"")){var B=!0;break b}}catch(A){}B=!1}B?(b&&b(),I=!0):I=!1}else I=!1;I||WNv(G,b)}};
WNv=function(G,b,I){I=I===void 0?{}:I;var h=new Image,q=""+Yhr++;CHO[q]=h;h.onload=h.onerror=function(){b&&CHO[q]&&b();delete CHO[q]};
I.scrubReferrer&&(h.referrerPolicy="no-referrer");h.src=G};
b6=function(G,b){JIq(G,b==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
KNO=function(G){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?G+"&nis=6":G+"&nis=5"};
uvB=function(G){if(!G)return!1;try{var b;if(((b=_.q1(G))==null?void 0:b.asm)==="4")return!0}catch(I){_.Xj(I)}return!1};
JIq=function(G,b){b?(G=KNO(G),_.Gs(G,void 0,void 0,void 0,"",!0,!0)):_.Gs(G)};
nyj=function(){Rrd||(Rrd=new _.EA("yt.offline"));return Rrd};
OnO=function(G){if(_.U("offline_error_handling")){var b=nyj().get("errors",!0)||{};b[G.message]={name:G.name,stack:G.stack};G.level&&(b[G.message].level=G.level);nyj().set("errors",b,2592E3,!0)}};
Eya=function(G,b,I,h){h=h===void 0?!1:h;b=_.U("web_fp_via_jspb")?Object.assign({},b):b;_.U("use_cfr_monitor")&&w5p(G,b);if(_.U("use_request_time_ms_header"))b.headers&&cf(G)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Li)())));else{var q;if((q=b.postParams)==null?0:q.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,_.Li)())}I&&Object.keys(b).length===0?_.Gs(G):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),ldq(G,b.postBody,
b,_.ze,h)):ldq(G,JSON.stringify(b.postParams),b,vPu,h):_.ze(G,b)};
p5j=function(G,b){_.U("use_event_time_ms_header")&&cf(G)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Li)())));return b};
_.X5O=function(){Shv||(Shv=new _.IB({logOfflineErrors:!0,enablePolling:!0}));return Shv};
w5p=function(G,b){var I=b.onError?b.onError:function(){};
b.onError=function(q,l){hM().requestComplete(G,!1);I(q,l)};
var h=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(q,l){hM().requestComplete(G,!0);h(q,l)}};
_.$oO=function(){return _.VE(document.location.toString())!=="www.youtube-nocookie.com"};
_.Imr=function(){return _.Ge("ytNetworklessLoggingInitializationOptions")?_.G3O.isNwlInitialized:_.bGO};
hcq=function(G,b){if(_.U("polymer_on_demand_shady_dom")){var I;var h=(I=G.__shady_native_firstElementChild)!=null?I:G.firstElementChild}else h=G.firstElementChild;for(;h;){if(G=b(h)?h:hcq(h,b))return G;h=h.nextElementSibling}return null};
jMO=function(){var G=document;if("visibilityState"in G)return G.visibilityState;var b=q0q+"VisibilityState";if(b in G)return G[b]};
_.lmv=function(G,b){var I;qB(G,function(h){I=b[h];return!!I});
return I};
_.l6=function(G){var b=moO(G);b?b.focus(void 0):_.jG(G)};
moO=function(G){return(G=hcq(G,function(b){return _.mG(b)?ecu(b)&&!!b.offsetParent:!1}))?G:null};
_.jG=function(G,b){G.hasAttribute("tabindex")||G.setAttribute("tabindex","-1");G.focus(b)};
VAp=function(G,b,I,h){h=h===void 0?{}:h;G.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return _.Cy.findKey(eG,function(q){var l=typeof q[4]==="boolean"&&q[4]==!!h,V=_.Oj(q[4])&&_.Oj(h)&&_.Cy.equals(q[4],h);return!!q.length&&q[0]==G&&q[1]==b&&q[2]==I&&(l||V)})};
_.D5=function(G,b,I,h){h=h===void 0?{}:h;if(!G||!G.addEventListener&&!G.attachEvent)return"";var q=VAp(G,b,I,h);if(q)return q;q=++Doa.count+"";var l=!(b!="mouseenter"&&b!="mouseleave"||!G.addEventListener||"onmouseenter"in document);var V=l?function(D){D=new V9(D);if(!_.wV(D.relatedTarget,function(k){return k==G},!0))return D.currentTarget=G,D.type=b,I.call(G,D)}:function(D){D=new V9(D);
D.currentTarget=G;return I.call(G,D)};
V=_.$W(V);G.addEventListener?(b=="mouseenter"&&l?b="mouseover":b=="mouseleave"&&l?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),cNq()||typeof h==="boolean"?G.addEventListener(b,V,h):G.addEventListener(b,V,!!h.capture)):G.attachEvent("on"+b,V);eG[q]=[G,b,I,V,h];return q};
_.vQO=function(G,b,I){var h=h===void 0?{}:h;var q=_.D5(G,b,function(){_.k3X(q);I.apply(G,arguments)},h)};
_.k3X=function(G){G&&(typeof G=="string"&&(G=[G]),_.hB(G,function(b){if(b in eG){var I=eG[b],h=I[0],q=I[1],l=I[3];I=I[4];h.removeEventListener?cNq()||typeof I==="boolean"?h.removeEventListener(q,l,I):h.removeEventListener(q,l,!!I.capture):h.detachEvent&&h.detachEvent("on"+q,l);delete eG[b]}}))};
cA=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_=_.D5(window,"mousemove",(0,_.Hr)(this.onMouseMove_,this));this.timerId_=_.M1((0,_.Hr)(this.checkPosition_,this),25)};
xop=function(){var G={};var b=G.preferMobileEvents===void 0?!1:G.preferMobileEvents;G=G.enableScrollEventListener===void 0?!0:G.enableScrollEventListener;if(_.Ge("_lact",window)==null){var I=parseInt(_.wy("LACT"),10);I=isFinite(I)?Date.now()-Math.max(I,0):-1;_.cz("_lact",I,window);_.cz("_fact",I,window);I==-1&&_.k2();L6B(window,b,G);new cA(function(){QMv("mouse",100)})}};
L6B=function(G,b,I){b=b===void 0?!1:b;I=I===void 0?!0:I;_.D5(G.document,"keydown",_.k2);_.D5(G.document,"keyup",_.k2);_.D5(G.document,"mousedown",_.k2);_.D5(G.document,"mouseup",_.k2);b?_.D5(G,"touchmove",function(){QMv("touchmove",200)},{passive:!0}):(_.D5(G,"resize",function(){QMv("resize",200)}),I&&_.D5(G,"scroll",function(){QMv("scroll",200)}));
_.D5(G.document,"touchstart",_.k2,{passive:!0});_.D5(G.document,"touchend",_.k2,{passive:!0})};
QMv=function(G,b){fms[G]||(fms[G]=!0,_.uu.addLowPriorityJob(function(){_.k2();fms[G]=!1},b))};
_.k2=function(){_.Ge("_lact",window)==null&&xop();var G=Date.now();_.cz("_lact",G,window);_.Ge("_fact",window)==-1&&_.cz("_fact",G,window);(G=_.Ge("ytglobal.ytUtilActivityCallback_"))&&G()};
_.vA=function(){var G=_.Ge("_lact",window);return G==null?-1:Math.max(Date.now()-G,0)};
_.f1=function(G,b,I){var h=_.L1();if(h&&b){var q=h.subscribe(G,function(){var l=arguments,V=function(){Q9[q]&&b.apply&&typeof b.apply=="function"&&b.apply(I||window,l)};
try{_.T5u[G]?V():_.AB(V,0)}catch(D){_.Xj(D)}},I);
Q9[q]=!0;x2[G]||(x2[G]=[]);x2[G].push(q);return q}return 0};
_.B5p=function(G){var b=_.L1();b&&(typeof G==="number"?G=[G]:typeof G==="string"&&(G=[parseInt(G,10)]),_.hB(G,function(I){b.unsubscribeByKey(I);delete Q9[I]}))};
_.Uor=function(G,b){var I=_.L1();I&&I.publish.apply(I,arguments)};
_.gQj=function(G){var b=_.L1();if(b)if(b.clear(G),G)sMa(G);else for(var I in x2)sMa(I)};
_.L1=function(){return _.hd.ytPubsubPubsubInstance};
sMa=function(G){x2[G]&&(G=x2[G],_.hB(G,function(b){Q9[b]&&delete Q9[b]}),G.length=0)};
ANO=function(){var G,b;return"h5vcc"in BA&&((G=BA.h5vcc.traceEvent)==null?0:G.traceBegin)&&((b=BA.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in BA&&BA.performance.mark&&BA.performance.measure?2:0};
MAB=function(G){var b=ANO();switch(b){case 1:BA.h5vcc.traceEvent.traceBegin("YTLR",G);break;case 2:BA.performance.mark(G+"-start");break;case 0:break;default:_.Eu(b,"unknown trace type")}};
ZG2=function(G){var b=ANO();switch(b){case 1:BA.h5vcc.traceEvent.traceEnd("YTLR",G);break;case 2:b=G+"-start";var I=G+"-end";BA.performance.mark(I);BA.performance.measure(G,b,I);break;case 0:break;default:_.Eu(b,"unknown trace type")}};
tAO=function(G){var b,I;(I=(b=window).onerror)==null||I.call(b,G.message,"",0,0,G)};
zcB=function(G){if(_.U("web_lifecycle_error_handling_killswitch"))return G();try{return G()}catch(b){tAO(b)}};
oQa=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("/")};
_.g=function(G,b){if(G)return G[b.name]};
sY=function(){var G=_.Ge("yt.logging.ims");G||(G=new UY,_.cz("yt.logging.ims",G));return G};
amX=function(G,b){if(G.endpoint==="log_event"){iGu(G);var I=P$O(G),h=doq(G.payload)||"",q=yNv(h),l=200;if(q){if(q.enabled===!1&&!_.U("web_payload_policy_disabled_killswitch"))return;l=rNs(q.tier);if(l===400){F6O(G,b);return}}gH[I]=!0;I={cttAuthInfo:I,isJspb:!1,tier:l};sY().storePayload(I,G.payload);HGO(b,!1,I,W6O(h))}};
Y0v=function(G,b,I){if(b.endpoint==="log_event"){iGu(void 0,b);var h=P$O(b,!0),q=yNv(G),l=200;if(q){if(q.enabled===!1&&!_.U("web_payload_policy_disabled_killswitch"))return;l=rNs(q.tier);if(l===400){N5O(G,b,I);return}}gH[h]=!0;h={cttAuthInfo:h,isJspb:!0,tier:l};sY().storePayload(h,Nf(b.payload));HGO(I,!0,h,W6O(G))}};
HGO=function(G,b,I,h){b=b===void 0?!1:b;h=h===void 0?!1:h;G&&(AM=new G);G=_.Te("tvhtml5_logging_max_batch_ads_fork")||_.Te("tvhtml5_logging_max_batch")||_.Te("web_logging_max_batch")||100;var q=(0,_.Li)(),l=C$j(b,I.tier),V=l.lastDebounceQueueFromLogTimeMs;h&&(l.useVideoStatsEndPoint=!0);h=0;I&&(h=sY().getSequenceCount(I));var D=function(){JNs({writeThenSend:!0},b,I.tier)};
h>=1E3?D():h>=G?K6O||(K6O=uuq(function(){D();K6O=void 0},0)):q-V>=10&&(Rcd(b,I.tier),l.lastDebounceQueueFromLogTimeMs=q)};
F6O=function(G,b){if(G.endpoint==="log_event"){_.U("more_accurate_gel_parser")&&sY().storePayload({isJspb:!1},G.payload);iGu(G);var I=P$O(G),h=new Map;h.set(I,[G.payload]);var q=doq(G.payload)||"";b&&(AM=new b);return new _.MB(function(l,V){AM&&AM.isReady()?nQj(h,AM,l,V,{bypassNetworkless:!0},!0,W6O(q)):l()})}};
N5O=function(G,b,I){if(b.endpoint==="log_event"){iGu(void 0,b);var h=P$O(b,!0),q=new Map;q.set(h,[Nf(b.payload)]);I&&(AM=new I);return new _.MB(function(l){AM&&AM.isReady()?OGs(q,AM,l,{bypassNetworkless:!0},!0,W6O(G)):l()})}};
P$O=function(G,b){var I="";if(G.dangerousLogToVisitorSession)I="visitorOnlyApprovedKey";else if(G.cttAuthInfo){if(b===void 0?0:b){b=G.cttAuthInfo.token;I=G.cttAuthInfo;var h=new wvO;I.videoId?h.setVideoId(I.videoId):I.playlistId&&Z5(h,2,EQB,BL(I.playlistId));pvr[b]=h}else b=G.cttAuthInfo,I={},b.videoId?I.videoId=b.videoId:b.playlistId&&(I.playlistId=b.playlistId),S0j[G.cttAuthInfo.token]=I;I=G.cttAuthInfo.token}return I};
JNs=function(G,b,I){G=G===void 0?{}:G;b=b===void 0?!1:b;new _.MB(function(h,q){var l=C$j(b,I),V=l.useVideoStatsEndPoint;l.useVideoStatsEndPoint=!1;XvB(l.queueTimer);XvB(l.queueMaxTimer);l.queueMaxTimer=0;AM&&AM.isReady()?I===void 0&&_.U("enable_web_tiered_gel")?$Ka(h,q,G,b,300,V):$Ka(h,q,G,b,I,V):(Rcd(b,I),h())})};
$Ka=function(G,b,I,h,q,l){var V=AM;I=I===void 0?{}:I;h=h===void 0?!1:h;q=q===void 0?200:q;l=l===void 0?!1:l;var D=new Map,k=new Map,L={isJspb:h,cttAuthInfo:void 0,tier:q},x={isJspb:h,cttAuthInfo:void 0};if(h){b=_.e(Object.keys(gH));for(q=b.next();!q.done;q=b.next())q=q.value,k=_.U("enable_web_tiered_gel")?sY().smartExtractMatchingEntries({keys:[L,x],sizeLimit:1E3}):sY().extractMatchingEntries({isJspb:!0,cttAuthInfo:q}),k.length>0&&D.set(q,k),(_.U("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.U("web_fp_via_jspb_and_json"))&&
delete gH[q];OGs(D,V,G,I,!1,l)}else{D=_.e(Object.keys(gH));for(L=D.next();!L.done;L=D.next())L=L.value,x=_.U("enable_web_tiered_gel")?sY().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:L,tier:q},{isJspb:!1,cttAuthInfo:L}],sizeLimit:1E3}):sY().extractMatchingEntries({isJspb:!1,cttAuthInfo:L}),x.length>0&&k.set(L,x),(_.U("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.U("web_fp_via_jspb_and_json"))&&delete gH[L];nQj(k,V,G,b,I,!1,l)}};
Rcd=function(G,b){G=G===void 0?!1:G;b=b===void 0?200:b;var I=function(){JNs({writeThenSend:!0},G,b)},h=C$j(G,b),q=h===GBq||h===bkd?5E3:IGj;
_.U("web_gel_timeout_cap")&&!h.queueMaxTimer&&(q=uuq(function(){I()},q),h.queueMaxTimer=q);
XvB(h.queueTimer);q=_.wy("LOGGING_BATCH_TIMEOUT",_.Te("web_gel_debounce_ms",1E4));_.U("shorten_initial_gel_batch_timeout")&&huj&&(q=qdO);q=uuq(function(){_.Te("gel_min_batch_size")>0?sY().getSequenceCount({cttAuthInfo:void 0,isJspb:G,tier:b})>=jra&&I():I()},q);
h.queueTimer=q};
nQj=function(G,b,I,h,q,l,V){q=q===void 0?{}:q;var D=Math.round((0,_.Li)()),k=G.size,L=lGj(V);G=_.e(G);var x=G.next();for(V={};!x.done;V={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},x=G.next()){var f=_.e(x.value);x=f.next().value;f=f.next().value;V.batchRequest=_.Cy.unsafeClone({context:_.a0j(b.config_||_.x_())});if(!_.KO(f)&&!_.U("throw_err_when_logevent_malformed_killswitch")){h();break}V.batchRequest.events=f;
(f=S0j[x])&&mKB(V.batchRequest,x,f);delete S0j[x];V.dangerousLogToVisitorSession=x==="visitorOnlyApprovedKey";eua(V.batchRequest,D,V.dangerousLogToVisitorSession);Vhv(q);V.onSuccess$jscomp$3=function(T){_.U("start_client_gcf")&&_.uu.addLowPriorityJob(function(){return _.c(function(B){return B.yield(DKu(T),0)})});
k--;k||I()};
V.networkFailures=0;V.onError$jscomp$5=function(T){return function(){T.networkFailures++;if(q.bypassNetworkless&&T.networkFailures===1)try{T8O(b,L,T.batchRequest,caO({writeThenSend:!0},T.dangerousLogToVisitorSession,T.onSuccess$jscomp$3,T.onError$jscomp$5,l)),huj=!1}catch(B){_.Xj(B),h()}k--;k||I()}}(V);
try{T8O(b,L,V.batchRequest,caO(q,V.dangerousLogToVisitorSession,V.onSuccess$jscomp$3,V.onError$jscomp$5,l)),huj=!1}catch(T){_.Xj(T),h()}}};
OGs=function(G,b,I,h,q,l){h=h===void 0?{}:h;var V=Math.round((0,_.Li)()),D={value:G.size},k=new Map([].concat(_.Nz(G)));k=_.e(k);for(var L=k.next();!L.done;L=k.next()){var x=_.e(L.value).next().value,f=G.get(x);L=new kBO;var T=b.config_||_.x_(),B=new tM,A=new vou;_.F0(A,1,T.innertubeContextHostLanguage);_.F0(A,2,T.innertubeContextGeoLocation);_.Tv(A,16,T.innertubeContextClientNameFieldNumber);_.F0(A,17,T.innertubeContextClientVersion);if(T.innertubeContextClientConfigInfo){var t=T.innertubeContextClientConfigInfo,
y=new UA;t.coldConfigData&&_.F0(y,1,t.coldConfigData);t.appInstallData&&_.F0(y,6,t.appInstallData);t.coldHashData&&_.F0(y,3,t.coldHashData);t.hotHashData&&y.setHotHashData(t.hotHashData);_.ZK(A,62,y)}(t=_.hd.devicePixelRatio)&&t!=1&&_.Bz(A,65,_.pQ(t));t=Gmu();t!==""&&_.F0(A,54,t);t=bUv();if(t.length>0){y=new L2B;for(var F=0;F<t.length;F++){var W=new zs;W.setKey(t[F].key);Z5(W,2,QrO,BL(t[F].value));oB(y,15,zs,W)}_.ZK(B,5,y)}dOu(T,A);yQr(B);rQv(A);FsO(T,A);Hwq(A);_.U("start_client_gcf")&&Wsp(A);_.wy("DELEGATED_SESSION_ID")&&
!_.U("pageid_as_header_web")&&(T=new i6,_.F0(T,3,_.wy("DELEGATED_SESSION_ID")));!_.U("fill_delegate_context_in_gel_killswitch")&&(t=_.wy("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(y=_.fi(B,i6,3)||new i6,T=B,t=_.F0(y,18,t),_.ZK(T,3,t));T=A;t=_.e(Object.entries(_.q1(_.wy("DEVICE",""))));for(y=t.next();!y.done;y=t.next())F=_.e(y.value),y=F.next().value,F=F.next().value,y==="cbrand"?_.F0(T,12,F):y==="cmodel"?_.F0(T,13,F):y==="cbr"?_.F0(T,87,F):y==="cbrver"?_.F0(T,88,F):y==="cos"?_.F0(T,18,
F):y==="cosver"?_.F0(T,19,F):y==="cplatform"&&_.Tv(T,42,P9v(F));B.setClient(A);_.ZK(L,1,B);if(A=pvr[x])a:{if(_.zx(A,PA(A,EQB,1)))B=1;else if(A.getPlaylistId())B=2;else break a;_.ZK(L,4,A);A=L.getContext()||new tM;T=_.fi(A,i6,3)||new i6;t=new dH;t.setToken(x);_.Tv(t,1,B);oB(T,12,dH,t);_.ZK(A,3,T)}delete pvr[x];x=x==="visitorOnlyApprovedKey";xKr()||_.y9(L,2,V);!x&&(B=_.wy("EVENT_ID"))&&(A=fGp(),T=new TRO,_.F0(T,1,B),_.y9(T,2,A),_.ZK(L,5,T));Vhv(h);if(_.U("jspb_serialize_with_worker")&&(B=_.wyO())&&
h.writeThenSend){_.BRr.set(UKs,{client:b,resolve:I,networklessOptions:h,isIsolated:q,useVSSEndpoint:l,dangerousLogToVisitorSession:x,requestsOutstanding:D});B.postMessage({op:"gelBatchToSerialize",batchRequest:Nf(L),clientEvents:f,key:UKs});UKs++;break}if(f){B=[];for(A=0;A<f.length;A++)try{B.push(new rH(f[A]))}catch(O){_.Xj(new _.Wf("Transport failed to deserialize "+String(f[A])))}f=B}else f=[];f=_.e(f);for(B=f.next();!B.done;B=f.next())oB(L,3,rH,B.value);f={startTime:(0,_.Li)(),ticks:{},infos:{}};
L=L.serialize();f.ticks.geljspc=(0,_.Li)();_.U("log_jspb_serialize_latency")&&Kuu("gel_jspb_serialize",f,{sampleRate:.1});_.sra(L,b,I,h,q,l,x,D)}};
_.sra=function(G,b,I,h,q,l,V,D){h=h===void 0?{}:h;D=D===void 0?{value:0}:D;l=lGj(l);h=caO(h,V,function(k){_.U("start_client_gcf")&&_.uu.addLowPriorityJob(function(){return _.c(function(L){return L.yield(DKu(k),0)})});
D.value--;D.value||I()},function(){D.value--;
D.value||I()},q);
h.headers["Content-Type"]="application/json+protobuf";h.postBodyFormat="JSPB";h.postBody=G;T8O(b,l,"",h);huj=!1};
Vhv=function(G){_.U("always_send_and_write")&&(G.writeThenSend=!1)};
caO=function(G,b,I,h,q){G={retry:!0,onSuccess:I,onError:h,networklessOptions:G,dangerousLogToVisitorSession:b,bypassMonitoring:!!q,headers:{},postBodyFormat:"",postBody:"",compress:_.U("compress_gel")||_.U("compress_gel_lr")};xKr()&&(G.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Li)())));return G};
eua=function(G,b,I){xKr()||(G.requestTimeMs=String(b));_.U("unsplit_gel_payloads_in_logs")&&(G.unsplitGelPayloadsInLogs=!0);!I&&(b=_.wy("EVENT_ID"))&&(I=fGp(),G.serializedClientEventId={serializedEventId:b,clientCounter:String(I)})};
fGp=function(){var G=_.wy("BATCH_CLIENT_COUNTER")||0;G||(G=Math.floor(Math.random()*65535/2));G++;G>65535&&(G=1);_.OB("BATCH_CLIENT_COUNTER",G);return G};
mKB=function(G,b,I){if(I.videoId)var h="VIDEO";else if(I.playlistId)h="PLAYLIST";else return;G.credentialTransferTokenTargetId=I;G.context=G.context||{};G.context.user=G.context.user||{};G.context.user.credentialTransferTokens=[{token:b,scope:h}]};
iGu=function(G,b){var I=_.UG("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Ge("yt.logging.transport.enableScrapingForTest"))if(I)goO=[],_.cz("yt.logging.transport.enableScrapingForTest",!0),_.cz("yt.logging.transport.scrapedPayloadsForTesting",goO),_.cz("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.cz("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.cz("yt.logging.transport.scrapeClientEvent",!0);else return;I=_.Ge("yt.logging.transport.scrapedPayloadsForTesting");var h=_.Ge("yt.logging.transport.payloadToScrape");b&&(b=_.Ge("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b.payload)())&&I.push(b);b=_.Ge("yt.logging.transport.scrapeClientEvent");if(h&&h.length>=1)for(var q=0;q<h.length;q++)if(G&&G.payload[h[q]])if(b)I.push(G.payload);else{var l=void 0;I.push(((l=G)==null?void 0:l.payload)[h[q]])}_.cz("yt.logging.transport.scrapedPayloadsForTesting",
I)};
xKr=function(){return _.U("use_request_time_ms_header")||_.U("lr_use_request_time_ms_header")};
uuq=function(G,b){return _.U("transport_use_scheduler")===!1?_.AB(G,b):_.U("logging_avoid_blocking_during_navigation")||_.U("lr_logging_avoid_blocking_during_navigation")?_.FQ(_.uu,function(){if(_.Aaa().currentState==="none")G();else{var I={};_.Aaa().install((I.none={callback:G},I))}},b):_.FQ(_.uu,G,b)};
XvB=function(G){_.U("transport_use_scheduler")?_.uu.cancelJob(G):_.ZU(G)};
DKu=function(G){var b,I,h,q,l,V,D,k,L,x;return _.c(function(f){return f.nextAddress==1?(h=(b=G)==null?void 0:(I=b.responseContext)==null?void 0:I.globalConfigGroup,q=_.g(h,MhO),V=(l=h)==null?void 0:l.hotHashData,D=_.g(h,Zkq),L=(k=h)==null?void 0:k.coldHashData,(x=_.LL().resolve(_.vf(HA)))?V?q?f.yield(thB(x,V,q),2):f.yield(thB(x,V),2):f.jumpTo(2):f.return()):L?D?f.yield(zus(x,L,D),0):f.yield(zus(x,L),0):f.jumpTo(0)})};
C$j=function(G,b){b=b===void 0?200:b;return G?b===300?GBq:oos:b===300?bkd:ik2};
yNv=function(G){if(_.U("enable_web_tiered_gel")){G=PkO[G||""];var b,I,h,q=_.LL().resolve(_.vf(HA))==null?void 0:(b=WA())==null?void 0:(I=b.loggingHotConfig)==null?void 0:(h=I.eventLoggingConfig)==null?void 0:h.payloadPolicies;if(q)for(b=0;b<q.length;b++)if(q[b].payloadNumber===G)return q[b]}};
doq=function(G){G=Object.keys(G);G=_.e(G);for(var b=G.next();!b.done;b=G.next())if(b=b.value,PkO[b])return b};
rNs=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}};
W6O=function(G){return G==="gelDebuggingEvent"};
lGj=function(G){return(G===void 0?0:G)&&_.U("vss_through_gel_video_stats")?"video_stats":"log_event"};
NB=function(G,b,I,h){h=h===void 0?{}:h;var q={},l=Math.round(h.timestamp||(0,_.Li)());q.eventTimeMs=l<Number.MAX_SAFE_INTEGER?l:0;q[G]=b;G=_.vA();q.context={lastActivityMs:String(h.timestamp||!isFinite(G)?-1:G)};h.sequenceGroup&&!_.U("web_gel_sequence_info_killswitch")&&(G=q.context,b=h.sequenceGroup,b={index:dKq(b),groupKey:b},G.sequence=b,h.endOfSequence&&delete aB[h.sequenceGroup]);_.U("web_tag_automated_log_events")&&(q.context.automatedLogEventSource=h.automatedLogEventSource);(h.sendIsolatedPayload?
F6O:amX)({endpoint:"log_event",payload:q,cttAuthInfo:h.cttAuthInfo,dangerousLogToVisitorSession:h.dangerousLogToVisitorSession},I)};
dKq=function(G){aB[G]=G in aB?aB[G]+1:0;return aB[G]};
_.C1=function(G,b,I){I=I===void 0?{}:I;var h=Y2;_.Sk("ytLoggingEventsDefaultDisabled",!1)&&Y2===Y2&&(h=null);NB(G,b,h,I)};
_.JM=function(){if(_.U("web_fp_via_jspb")){var G=!0;G=G===void 0?!1:G;var b=yau;yau=[];if(b){b=_.e(b);for(var I=b.next();!I.done;I=b.next())I=I.value,G?NB(I.payloadName,I.payload,Y2,I.options):_.C1(I.payloadName,I.payload,I.options)}JNs(void 0,!0);if(!_.U("web_fp_via_jspb_and_json"))return}JNs(void 0,!1)};
rav=function(G,b){var I;if((I=b)==null?0:I.componentStack)return b;if(G=G.componentStack)b||(b={}),b.componentStack=G;return b};
F22=function(){_.hB(_.wy("ERRORS")||[],function(G){_.K1.apply(null,G)});
_.OB("ERRORS",[])};
_.u6=function(G){_.K1(G)};
_.RB=function(G){_.K1(G,"WARNING")};
HkO=function(G){G instanceof Error?_.K1(G):(G=_.Oj(G)?JSON.stringify(G):String(G),G=new _.Wf(G),G.name="RejectedPromiseError",_.RB(G))};
W2j=function(G,b,I,h,q,l){b=b===void 0?"Unknown file":b;I=I===void 0?0:I;var V=!1,D=y_X("log_window_onerror_fraction");if(D&&Math.random()<D)V=!0;else{D=document.getElementsByTagName("script");for(var k=0,L=D.length;k<L;k++)if(D[k].src.indexOf("/debug-")>0){V=!0;break}}V&&(V=!1,q?V=!0:(typeof G==="string"?D=G:ErrorEvent&&G instanceof ErrorEvent?(V=!0,D=G.message,b=G.filename,I=G.lineno,h=G.colno):(D="Unknown error",b="Unknown file",I=0),q=new _.Wf(D),q.name="UnhandledWindowError",q.message=D,q.fileName=
b,q.lineNumber=I,isNaN(h)?delete q.columnNumber:q.columnNumber=h),_.U("wiz_enable_component_stack_propagation_killswitch")||(l=rav(q,l)),l&&_.n1(q,l),V?_.K1(q):_.RB(q))};
_.K1=function(G,b,I,h,q,l,V,D){l=l===void 0?{}:l;l.name=I||_.wy("INNERTUBE_CONTEXT_CLIENT_NAME",1);l.version=h||_.wy("INNERTUBE_CONTEXT_CLIENT_VERSION");I=l;b=b===void 0?"ERROR":b;V=V===void 0?!1:V;b=b===void 0?"ERROR":b;V=V===void 0?!1:V;if(G&&(G.hasOwnProperty("level")&&G.level&&(b=G.level),_.U("console_log_js_exceptions")&&(h=[],h.push("Name: "+G.name),h.push("Message: "+G.message),G.hasOwnProperty("params")&&h.push("Error Params: "+JSON.stringify(G.params)),G.hasOwnProperty("args")&&h.push("Error args: "+
JSON.stringify(G.args)),h.push("File name: "+G.fileName),h.push("Stacktrace: "+G.stack),h=h.join("\n"),window.console.log(h,G)),!(aGr>=5))){h=[];q=_.e(NRr);for(l=q.next();!l.done;l=q.next()){l=l.value;try{l()&&h.push(l())}catch(y){}}h=[].concat(_.Nz(Ydj),_.Nz(h));var k=Cks(G);q=k.message||"Unknown Error";l=k.name||"UnknownError";var L=k.stack||G.stacktrace||"Not available";if(L.startsWith(l+": "+q)){var x=L.split("\n");x.shift();L=x.join("\n")}x=k.lineNumber||"Not available";k=k.fileName||"Not available";
var f=0;if(G.hasOwnProperty("args")&&G.args&&G.args.length)for(var T=0;T<G.args.length&&!(f=iUO(G.args[T],"params."+T,I,f),f>=500);T++);else if(G.hasOwnProperty("params")&&G.params){var B=G.params;if(typeof G.params==="object")for(T in B){if(B[T]){var A="params."+T,t=Pf(B[T]);I[A]=t;f+=A.length+t.length;if(f>500)break}}else I.params=Pf(B)}if(h.length)for(T=0;T<h.length&&!(f=iUO(h[T],"params.context."+T,I,f),f>=500);T++);navigator.vendor&&!I.hasOwnProperty("vendor")&&(I["device.vendor"]=navigator.vendor);
T={message:q,name:l,lineNumber:x,fileName:k,stack:L,params:I,sampleWeight:1};I=Number(G.columnNumber);isNaN(I)||(T.lineNumber=T.lineNumber+":"+I);if(G.level==="IGNORED")G=0;else a:{G=Jad();I=_.e(G.messageWeights);for(h=I.next();!h.done;h=I.next())if(h=h.value,T.message&&T.message.match(h.messageRegExp)){G=h.weight;break a}G=_.e(G.callbackWeights);for(I=G.next();!I.done;I=G.next())if(I=I.value,I.callback(T)){G=I.weight;break a}G=1}T.sampleWeight=G;G=_.e(K2v);for(I=G.next();!I.done;I=G.next())if(I=
I.value,I.patternsForType[T.name])for(q=_.e(I.patternsForType[T.name]),h=q.next();!h.done;h=q.next())if(l=h.value,h=T.message.match(l.regexp)){T.params["params.error.original"]=h[0];q=l.groups;l={};for(x=0;x<q.length;x++)l[q[x]]=h[x+1],T.params["params.error."+q[x]]=h[x+1];T.message=I.messageFn(l);break}T.params||(T.params={});G=Jad();T.params["params.errorServiceSignature"]="msg="+G.messageWeights.length+"&cb="+G.callbackWeights.length;T.params["params.serviceWorker"]="false";_.hd.document&&_.hd.document.querySelectorAll&&
(T.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new OY(usp,"sample")).constructor!==OY&&(T.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(T);if(T.sampleWeight!==0&&!RuO.has(T.message)){if(V&&_.U("web_enable_error_204"))noX(b===void 0?"ERROR":b,T);else{b=b===void 0?"ERROR":b;b==="ERROR"?(wH.publish("handleError",T),_.U("record_app_crashed_web")&&Okv===0&&T.sampleWeight===1&&(Okv++,V={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.U("report_client_error_with_app_crash_ks")||(V.systemHealth={crashData:{clientError:{logMessage:{message:T.message}}}}),_.C1("appCrashed",V)),wNa++):b==="WARNING"&&wH.publish("handleWarning",T);if(_.U("kevlar_gel_error_routing")){V=b;D=D===void 0?{}:D;b:{G=_.e(Eor);for(I=G.next();!I.done;I=G.next())if(wi(I.value.toLowerCase())){G=!0;break b}G=!1}if(G)D=void 0;else{I={stackTrace:T.stack};T.fileName&&(I.filename=T.fileName);G=T.lineNumber&&T.lineNumber.split?T.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:T.message,errorClassName:T.name,sampleWeight:T.sampleWeight};V==="ERROR"?G.level="ERROR_LEVEL_ERROR":V==="WARNING"&&(G.level="ERROR_LEVEL_WARNNING");I={isObfuscated:!0,browserStackInfo:I};D.pageUrl=window.location.href;D.kvPairs=[];_.wy("FEXP_EXPERIMENTS")&&(D.experimentIds=_.wy("FEXP_EXPERIMENTS"));
h=_.wy("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!y_X("web_disable_gel_stp_ecatcher_killswitch")&&h)for(q=_.e(Object.keys(h)),l=q.next();!l.done;l=q.next())l=l.value,D.kvPairs.push({key:l,value:String(h[l])});if(h=T.params)for(q=_.e(Object.keys(h)),l=q.next();!l.done;l=q.next())l=l.value,D.kvPairs.push({key:"client."+l,value:String(h[l])});h=_.wy("SERVER_NAME");q=_.wy("SERVER_VERSION");h&&q&&(D.kvPairs.push({key:"server.name",value:h}),D.kvPairs.push({key:"server.version",value:q}));D={errorMetadata:D,
stackTrace:I,logMessage:G}}D&&(_.C1("clientError",D),(V==="ERROR"||_.U("errors_flush_gel_always_killswitch"))&&_.JM())}_.U("suppress_error_204_logging")||noX(b,T)}try{RuO.add(T.message)}catch(y){}aGr++}}};
noX=function(G,b){var I=b.params||{};G={urlParams:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,250),line:b.lineNumber,level:G,"client.name":I.name},postParams:{url:_.wy("PAGE_NAME",window.location.href),file:b.fileName},method:"POST"};I.version&&(G["client.version"]=I.version);if(G.postParams){b.stack&&(G.postParams.stack=b.stack);b=_.e(Object.keys(I));for(var h=b.next();!h.done;h=b.next())h=h.value,G.postParams["client."+h]=I[h];if(I=_.wy("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
_.e(Object.keys(I)),h=b.next();!h.done;h=b.next())h=h.value,G.postParams[h]=I[h];(I=_.wy("LAVA_VERSION"))&&(G.postParams["lava.version"]=I);I=_.wy("SERVER_NAME");b=_.wy("SERVER_VERSION");I&&b&&(G.postParams["server.name"]=I,G.postParams["server.version"]=b)}_.ze(_.wy("ECATCHER_REPORT_HOST","")+"/error_204",G)};
_.pNO=function(G,b){b=b===void 0?"ERROR":b;var I=I===void 0?{}:I;var h=_.Ge("ytbin.polymer.shared.lib.tampering.info");h&&(h=h())&&(I["params.tamperingInfo"]=h.sort().join(","));_.K1(G,b,void 0,void 0,!0,I)};
_.n1=function(G){var b=_.RI.apply(1,arguments);G.args||(G.args=[]);Array.isArray(G.args)&&G.args.push.apply(G.args,_.Nz(b))};
SdX=function(G){G.level="IGNORED"};
XNd=function(G,b){Ydj.push(G);b();Ydj.pop()};
p1=function(G,b){for(var I in b)b.hasOwnProperty(I)&&(G=_.EY(G,I,b[I]));return G};
_.$tB=function(G,b,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 b=_.Te("polymer_report_client_url_requested_rate"),!I&&Math.random()<b&&_.RB(new _.Wf("urlForEndpoint used on client endpoint",G)),null;var h=_.Te("polymer_report_missing_web_navigation_endpoint_rate");if(G.liveChatEndpoint||G.liveChatReplayEndpoint)h=0;if(!G.commandMetadata&&!G.clickTrackingParams&&Math.random()<h){var q={},l;for(l in G)q[l]="1";_.RB(new _.Wf("Missing navigation data",
q))}q="";if(G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url)q=G.commandMetadata.webCommandMetadata.url;else if(G.searchEndpoint)Math.random()<h&&_.RB(new _.Wf("Should not manually handle search",G)),q="/results?search_query="+encodeURIComponent(G.searchEndpoint.query).replace(/%20/g,"+"),G.searchEndpoint.params&&(q+="&sp="+G.searchEndpoint.params);else if(G.watchEndpoint)Math.random()<h&&_.RB(new _.Wf("Should not manually handle watch",G)),q="/watch?v="+
G.watchEndpoint.videoId,G.watchEndpoint.playlistId&&(q+="&list="+G.watchEndpoint.playlistId),G.watchEndpoint.index&&(q+="&index="+G.watchEndpoint.index),G.watchEndpoint.startTimeSeconds&&(q+="&t="+G.watchEndpoint.startTimeSeconds);else if(G.browseEndpoint)h=G.browseEndpoint.browseId,(l=G.browseEndpoint.canonicalBaseUrl)?q=l:h&&(q=h.substr(0,2),q=q==="FE"?h==="FEwhat_to_watch"?"/":h==="FEmy_videos"?"/my_videos":"/feed/"+h.substr(2):q==="VL"?"/playlist?list="+h.substr(2):"/channel/"+h),q&&G.browseEndpoint.query&&
(q=p1(q+"/search",{query:G.browseEndpoint.query})),q&&G.browseEndpoint.params&&(q=p1(q,{params:G.browseEndpoint.params}));else{if(G.urlEndpoint)return G.urlEndpoint.url;G.signInEndpoint?(q="https://accounts.google.com/ServiceLogin",h={},_.Cy.extend(h,b||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),b=h):G.uploadEndpoint?q="//www.youtube.com/upload":G.liveChatEndpoint?(q=G.liveChatEndpoint,h=_.Cy.clone(q),_.Oj(q.continuation)&&(l=Object.keys(q.continuation)[0],
h.continuation=q.continuation[l].continuation),q=p1("/youtubei/v1/live_chat/get_live_chat",h)):G.liveChatReplayEndpoint?(q=_.Cy.clone(G.liveChatReplayEndpoint),q.currentPlayerState&&(_.Cy.extend(q,q.currentPlayerState),delete q.currentPlayerState),q=p1("/youtubei/v1/live_chat/get_live_chat_replay",q)):G.liveChatItemContextMenuEndpoint?q=p1("/youtubei/v1/live_chat/get_item_context_menu",G.liveChatItemContextMenuEndpoint):G.liveChatPurchaseMessageEndpoint?q=p1("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
G.liveChatPurchaseMessageEndpoint):G.openSuperStickerBuyFlowCommand?q=p1("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",G.openSuperStickerBuyFlowCommand):G.videoEditEndpoint?q=p1("/edit",{video_id:G.videoEditEndpoint.videoId}):G.liveDashboardEndpoint?q=G.liveDashboardEndpoint.videoId?p1("/live_dashboard",{v:G.liveDashboardEndpoint.videoId}):"/live_dashboard":G.signalNavigationEndpoint&&G.signalNavigationEndpoint.signal&&G.signalNavigationEndpoint.signal==="WEBCAM"?q="/webcam":G.getPdgBuyFlowCommand&&
(q=p1(G.getPdgBuyFlowCommand.buyflowApiPath,{params:G.getPdgBuyFlowCommand.params}))}return q||I?p1(q,b||{}):(_.RB(new _.Wf("Error: Can't construct url for endpoint","keys:"+Object.keys(G).sort().join(","),G)),null)};
GZs=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};
_.Iaa=function(G,b){var I=b+G,h=bMX.get(I);if(h)return h;G=b+"-"+G.replace(/([A-Z])/g,"-$1").toLowerCase();bMX.set(I,G);return G};
hmp=function(G){var b=_.Rj(G,"action")||_.Rj(G,"command")||_.Rj(G,"endpoint");if(!b)return null;b=_.Iaa(b,"yt");_.g(G,_.$G)&&(b+="-"+_.g(G,_.$G).signal.toLowerCase().replace(/_/g,"-"));return b};
mts=function(G){try{var b=Object.keys(G)}catch(q){return[]}for(var I=0;I<b.length;I++){var h=b[I];if(q2O.test(h)||jZu.test(h))return lap(G[h])}return[]};
lap=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||[]};
VKX=function(G,b){b=b===void 0?!1:b;var I=_.LL().resolve(_.vf(GX));I||(I=new emp,_.LL().addProvider({provide:GX,useValue:I}));return I&&G&&!_.Cy.isEmpty(G)?I.getUrl(G,b):""};
DtO=function(G,b,I){I=I===void 0?"":I;if(b){G.data=b;var h=VKX(b);h?(Ov(G,h),GZs(b)||!cf(h)?G.rel="nofollow":G.removeAttribute("rel"),_.g(b,_.bx)&&_.g(b,_.bx).target==="TARGET_NEW_WINDOW"?G.target="_blank":I?G.target=I:G.removeAttribute("target")):(G.removeAttribute("href"),G.removeAttribute("rel"),G.removeAttribute("target"))}};
_.mt=function(G,b){var I=mT;if(Fq())cWu(G,function(){var l=_.RI.apply(0,arguments);OM(I,function(){b.apply(null,_.Nz(l))})});
else{var h=_.I1.getInstance(),q=div(b);gcO(function(){q.value=b});
_.K3(function(){var l={},V=_.je(h,(l[G]=function(){var D=_.RI.apply(0,arguments);OM(I,function(){q.value.apply(q,_.Nz(D))})},l));
return function(){var D={};_.lx(h,(D[G]="",D),V)}})}};
_.ee=function(G,b){return kZu(G,!1,b)};
_.VF=function(G,b){return kZu(G,!0,b)};
kZu=function(G,b,I){return Fq()?vUr(G,b,I):LA2(G,b,I)};
LA2=function(G,b,I){return uM(function(){return vUr(G,b,I)})};
vUr=function(G,b,I){var h=TLj(function(q){h.value=q;var l=function(){var V=QA(null);try{return I==null?void 0:I(q)}finally{QA(V)}}();
return function(){l==null||l()}});
h.__expectedTagName=G;h.__optional=b;h.isIdom=!Fq();return h};
QZO=function(G){var b=mT,I=yA;return{getFn:function(){return function(h){if(!b.isDisposed){var q=function(){return G(h)};
W$(function(){return _.MQ(q)},I)!==!0&&h.stopPropagation()}}}}};
xtB=function(G){if(typeof G.children==="function")return G.children(),null;G=_.e(G.children);for(var b=G.next();!b.done;b=G.next())b=b.value,b();return null};
fad=function(G){var b;return((b=G.prototype)==null?void 0:b.render)===void 0};
TQB=function(G){var b=Array.isArray(G.items)?G.items:Array.from(G.items);G=G.children;return(Array.isArray(b)?b:Array.from(b)).map(G)};
UtB=function(G,b,I){I=I===void 0?!1:I;W$(function(){return BQj(G,b,I)})};
BQj=function(G,b,I){var h=null;NQ++;I=(I===void 0?0:I)?sZs:gUX;try{h=I(G,function(){D8(b)}),C0(!1)}catch(q){throw C0(!0),q;
}return h===null?G:h};
D8=function(G){if(G!==void 0&&G!==null)if(G instanceof oj)for(var b=Ij;hC()!=null&&IPa in hC()&&b.contains(hC());)lM();else if(Array.isArray(G))for(b=_.e(G),G=b.next();!G.done;G=b.next())D8(G.value);else if(G instanceof il||G instanceof cp||"function"==typeof _.v3&&G instanceof _.v3)bJu(G.toString());else if(_.TF(G)){if(hC()!==G){var I,h;b=(h=(I=yA)==null?void 0:I.name)!=null?h:"unknown";throw Error("hc`"+G.tagName+"`"+b);}lM()}else if(G!=null&&G.contentKind===sB||G instanceof wd||xhq(G))for(b=T2X(G),
b=Array.from(b.childNodes),b=_.e(b),G=b.next();!G.done;G=b.next())Ij.appendChild(G.value),lM();else if(Wg(G)&&(G=G.toString()),I=typeof G,I==="boolean"||I==="number"||I==="string")bJu(G);else if(typeof G==="function"){b=Ij;var q=hC();q&&(q._isSignalTextNode||q._isSafeOrSanitizedHtmlNode)||nVX(b,q,G);lM()}else if(G.type===TQB)D8(G.type(Object.assign({},G.props,{children:G.children[0]})));else{if(typeof G.type==="string"){a:{G.__open||O8B(G.type,G.props.idomKey);q=Ij;for(b in G.props)if(G.props[b]!==
AWO){var l=G.props[b];I=VS;I.push(b);I.push(l)}b=k8.attributes;b=b===void 0?cw:b;l=Ij;I=bM(l);Gbd(l,I,b);RDu(q,G.props,!0);if((G.props.skip||G.props.skipchildren)&&Ij.hasChildNodes())jk=Ij.lastChild;else{if(G.type==="style"&&tWj(G.children)===null){jk=Ij.lastChild;b=void 0;break a}D8(G.children)}wwp();G.__open&&(G.__open=!1);VWs(q,G.props);b=q}return b}if(G.type===_.xz)D8(G.children);else if(!MKu(G)){b=G;try{ZMu(b)}catch(V){G=V,(l=k8.handleError)==null||l.call.apply(l,[k8].concat(_.Nz(wv(G,(q=b.type)==
null?void 0:q.TAG_NAME))))}b.__open&&(wwp(),b.__open=!1)}}};
tKB=function(G,b){var I;fad(G)?I=new ry(b,G):I=new G(b);I.__type=G;I.__updateContext={nextState:I.state,isForced:!1};return I};
ZMu=function(G){var b=G.type,I=b.TAG_NAME;if(b===xtB)G.props.children=G.children,b(G.props);else{G.children.length>0&&(G.props.children=G.children);var h;(h=G.props).idomKey||(h.idomKey=b);if(I){var q=O8B(I,G.props.idomKey);G.__open=!0;var l=q.__instance}l||(l=tKB(b,G.props),l.props=null,q&&(q.__instance=l,l.el=q));var V;I=((V=l.__updateContext)!=null?V:{nextState:l.state,isForced:!1}).nextState;l.__updateContext=void 0;b.getDerivedStateFromProps&&(I=b.getDerivedStateFromProps(G.props,I));l.props=
G.props;l.state=I;V=function(){var D=l;dy.beforeRender(D);var k=D.render(D.props);k?(D.props.idomKey&&(k.props.idomKey=D.props.idomKey),D=k):D=void 0;if(k=D)if(k.__open=G.__open,D=D8(k),G.__open=k.__open,!b.TAG_NAME)if(D)b.TAG_NAME=D.tagName.toLowerCase(),D.__instance=l,l.el=D;else{var L;if((L=l.hooks)==null?0:L.length){var x;(x=k8.handleError)==null||x.call.apply(x,[k8].concat(_.Nz(wv(Error("od")))))}}l.didPatch();dy.didPatch(l)};
(I=l.functionComponent)?o2u(I,V,l.props.debugInstance):V()}};
MKu=function(G){var b=G.type;if(!fad(b)||b===xtB||b.componentType===rv)return!1;G.props.children=G.children.length>1?G.children:G.children[0];var I,h=(I=G.props.idomKey)!=null?I:G.type,q;if(hC()&&((q=hC()[Zp])==null?void 0:q.key)===h){var l=hC(),V=l[Zp];if(!V)throw Error("gc`"+l.tagName);var D;(D=V.updateSignalsFromIdomProps)==null||D.call(V,G.props);zmX(V);return!0}if(oUu.has(b.name))throw D=b.name,b=(V=(l=yA)==null?void 0:l.name)!=null?V:"unknown",Error("fc`"+D+"`"+b);phO(G.type,G.props,G.children);
G.props.renderedFromIdom=!0;(D=o2u(G.type,function(){return Yiu(G.type,G.props)},G.props.debugInstance))&&iMs(D);
return!0};
PAB=function(G){for(var b=0;b<zF(G).length;b++)lM()};
zmX=function(G){var b=dtr();if(b)PAB(b);else for(var I=0;I<G.numNodes;I++)(b=dtr())?PAB(b):lM()};
dtr=function(){var G;return(G=hC()[Zp])==null?void 0:G.sourceDynamicRange};
iMs=function(G){G=kbO(G);G=Array.isArray(G)?G:[G];G=_.e(G);for(var b=G.next();!b.done;b=G.next())Ij.insertBefore(b.value,hC()),lM()};
yWB=function(){var G=Jbs(),b=uM(function(){return{value:0}});
return[b.value,function(I){if(yS!==null){var h;(h=k8.handleError)==null||h.call.apply(h,[k8].concat(_.Nz(wv(Error("pd")))))}b.value=typeof I==="function"?I(b.value):I;G.__updateContext={nextState:G.state,isForced:!0};I=_.eT(G.effectContext);h=f3(!1);try{if(G.el){var q,l={},V=(l.props=G.props,l.type=G.__type,l.children=(q=G.props.children)!=null?q:[],l[QS]=!0,l);try{UtB(G.el,V,!0)}catch(L){var D,k;(k=k8.handleError)==null||k.call.apply(k,[k8].concat(_.Nz(wv(L,(D=G.__type)==null?void 0:D.TAG_NAME))))}}}finally{f3(h),
_.eT(I)}}]};
_.kG=function(G,b){var I=mT,h=function(q){OM(I,function(){b(q)})};
window.addEventListener(G,h,void 0);_.uI(function(){window.removeEventListener(G,h,void 0)})};
_.L8=function(G){var b=mT;return function(I){var h,q=(h=G.observer)!=null?h:_.LL().resolve(vw);h=rWp(I);var l=[];G.showOption&&l.push(q.observe(I,function(){OM(b,function(){G.visibilityCallback(!0,I)})},G.showOption));
G.hideOption&&l.push(q.observe(I,function(){OM(b,function(){G.visibilityCallback(!1,I)})},G.hideOption));
G.prescanOption&&G.prescanCallback&&l.push(q.observe(I,function(){OM(b,function(){G.prescanCallback()})},G.prescanOption));
var V;h.visibilityMonitorKeys=((V=h.visibilityMonitorKeys)!=null?V:[]).concat(l)}};
rWp=function(G){var b;return(b=G.polymerController)!=null?b:G};
aas=function(G,b){var I=FAj;return _.v(_.xz,null,v_r(k8.enableLazyTsx,function(){return _.v(HMO,{id:I,value:G,children:b})},function(){var h=WAq(I,G);
c$(h);h=_.eT(h);try{return b()}finally{_.eT(h)}}))};
HMO=function(G){var b=G.children;G=WAq(G.id,G.value);c$(G);G=_.eT(G);try{return _.v(_.xz,null,iM(b()))}finally{_.eT(G)}};
WAq=function(G,b){return Object.assign(Object.create(NQd),{id:G,contextValue:b})};
Y2p=function(G){var b,I=mT;_.Jf(function(){var h=_.eT(I),q=f3(!b);try{if(b)UtB(b,G.children(),!0);else if(b=iM(G.children()),!(b instanceof Element))throw Error("qd");}finally{f3(q),_.eT(h)}},"g");
return b};
_.CAq=function(G,b){var I;b=RJ(function(){var h=f3(!0);NQ++;try{I=zF(G()),C0(!1)}catch(q){throw C0(!0),q;}finally{f3(h)}},b===void 0?!1:b);
return[I,b]};
KAr=function(G){var b=new JWr;b.abort(G);return b.signal};
umO=function(){if(this.aborted){var G;throw(G=this.reason)!=null?G:new DOMException("signal is aborted without reason","AbortError");}};
OMu=function(G){var b=new JWr;G=_.e(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.aborted){b.abort(I.reason);break}else Rmu.set(b.signal,b),nUj.add(I,b.signal);return b.signal};
wHO=function(){for(var G=_.e(nUj.get(this)),b=G.next();!b.done;b=G.next())Rmu.get(b.value).abort(this.reason)};
EUp=function(G){var b=new JWr;setTimeout(function(){b.abort(new DOMException("signal timed out","TimeoutError"))},G);
return b.signal};
pHX=function(){var G,b;return{promise:new Promise(function(I,h){G=I;b=h}),
resolve:G,reject:b}};
XHj=function(G){var b=pHX(),I=b.promise;S2q.set(G,{promise:I,resolve:b.resolve,reject:b.reject});QF||(QF=[],queueMicrotask(function(){var h=[].concat(_.Nz(QF));QF=null;var q=J2().loadMultiple(h);h=_.e(h);for(var l=h.next();!l.done;l=h.next())l=l.value,q[l].then(S2q.get(l).resolve,S2q.get(l).reject)}));
QF.push(G);return I};
GIO=function(G){G=G.buf.charCodeAt(G.pos++);return $AO[G]};
xG=function(G){var b=0,I=0;do{var h=GIO(G);b|=(h&31)<<I;I+=5}while(h&32);return b<0?b+4294967296:b};
IAO=function(G,b,I,h){var q=!0;q=q===void 0?!1:q;b=b===void 0?!1:b;h=h===void 0?{}:h;var l=h.cssRowKey||"",V=h.combinedSignature||"";!l&&window&&window._F_cssRowKey&&(l=window._F_cssRowKey,!V&&window._F_combinedSignature&&(V=window._F_combinedSignature));if(l&&typeof window._F_installCss!=="function")throw Error("Ad");var D=h.loaderClass||_.f8;G=rFO(G===void 0?"base-js":G);b=new D(TmX(Hij("",G)),l,V,q,b);q=h.useCors||G&&G.hasAttribute("crossorigin");G=h.corsMode||G&&G.getAttribute("crossorigin");
q&&(b.useCors_=q);G&&(b.corsMode_=G);h.urlMaxLength&&(b.urlMaxLength=h.urlMaxLength);I&&(b.insertPos=I);h.fetchPriority&&(b.fetchPriority=h.fetchPriority);var k=J2();k.JSC$10127_loader_=b;k.setBatchModeEnabled(!0);_.bcp=h.batchingStrategy==="BATCH"?XHj:function(L){return Promise.resolve(k.load(L))}};
jG2=function(G,b,I){hQs(G,b);G[b][q4X].unshift(I)};
hQs=function(G,b){if(!G[b]||!G[b][q4X]){var I=G[b],h=I?[I]:[];G[b]=function(){for(var q=_.e(h),l=q.next();!l.done;l=q.next())l.value.apply(this,arguments)};
G[b][q4X]=h}};
lAO=function(G){if(!G)return[];var b=[];G=_.e(G);for(var I=G.next();!I.done;I=G.next())I=I.value,Array.isArray(I)?b.push.apply(b,_.Nz(lAO(I))):b.push(I);return b};
_.Bw=function(G,b){if(G&&mAp.test(G)||G==="//")return G;if(eQu===void 0){eQu=!1;try{var I=new URL("b","http://a");I.pathname="c%20d";eQu=I.href==="http://a/c%20d"}catch(h){}}b||(b=document.baseURI||window.location.href);if(eQu)try{return(new URL(G,b)).href}catch(h){return G}TX||(TX=document.implementation.createHTMLDocument("temp"),TX.base=TX.createElement("base"),TX.head.appendChild(TX.base),TX.anchor=TX.createElement("a"),TX.body.appendChild(TX.anchor));TX.base.href=b;TX.anchor.href=G;return TX.anchor.href||
G};
DAr=function(G,b){return G.replace(VN2,function(I,h,q,l){return h+"'"+_.Bw(q.replace(/["']/g,""),b)+"'"+l})};
cxB=function(G){return G.substring(0,G.lastIndexOf("/")+1)};
Las=function(){kIO=!1;for(var G=Uz.length,b=0;b<G;b++){var I=Uz[b];if(I)try{I()}catch(h){setTimeout(function(){throw h;})}}Uz.splice(0,G);
vgj+=G};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(G){console.log("["+G.is+"]: registered")};
xAd=function(G){QG2.push(G)};
sz=function(G){return fAO[G]||(fAO[G]=G.indexOf("-")<0?G:G.replace(Tcd,function(b){return b[1].toUpperCase()}))};
AU=function(G){return fAO[G]||(fAO[G]=G.replace(Bcr,"-$1").toLowerCase())};
UAO=function(G,b){var I=b.parentInfo&&UAO(G,b.parentInfo);if(I)for(G=I.firstChild,I=0;G;G=G.nextSibling){if(b.parentIndex===I++)return G}else return G};
sGd=function(G,b){G=G._methodHost||G;return function(I){if(G[b])G[b](I,I.detail);else console.warn("listener method `"+b+"` not defined")}};
My=function(G){return G.indexOf(".")>=0};
Z8=function(G){var b=G.indexOf(".");return b===-1?G:G.slice(0,b)};
ggr=function(G,b){return G.indexOf(b+".")===0};
tU=function(G,b){return b.indexOf(G+".")===0};
zX=function(G,b,I){return b+I.slice(G.length)};
Axv=function(G,b){return G===b||ggr(G,b)||tU(G,b)};
o1=function(G){if(Array.isArray(G)){for(var b=[],I=0;I<G.length;I++)for(var h=G[I].toString().split("."),q=0;q<h.length;q++)b.push(h[q]);return b.join(".")}return G};
MNr=function(G){return Array.isArray(G)?o1(G).split("."):G.toString().split(".")};
ix=function(G,b,I){b=MNr(b);for(var h=0;h<b.length;h++){if(!G)return;G=G[b[h]]}I&&(I.path=b.join("."));return G};
ZcX=function(G,b,I){var h=MNr(b),q=h[h.length-1];if(h.length>1){for(b=0;b<h.length-1;b++)if(G=G[h[b]],!G)return;G[q]=I}else G[b]=I;return h.join(".")};
tNu=function(G,b,I){var h=G[b];if(!h)h=G[b]={};else if(!G.hasOwnProperty(b)&&(h=G[b]=Object.create(G[b]),I))for(var q in h)for(G=h[q],b=h[q]=Array(G.length),I=0;I<G.length;I++)b[I]=G[I];return h};
da=function(G,b,I,h,q,l){if(b){var V=!1,D=Pw++,k;for(k in I){var L=q?Z8(k):k;if(L=b[L])for(var x=0,f=L.length,T=void 0;x<f&&(T=L[x]);x++)T.info&&T.info.lastRun===D||q&&!zQp(k,T.trigger)||(T.info&&(T.info.lastRun=D),T.fn(G,k,I,h,T.info,q,l),V=!0)}return V}return!1};
zQp=function(G,b){if(b){var I=b.name;return I==G||!(!b.structured||!ggr(I,G))||!(!b.wildcard||!tU(I,G))}return!0};
oga=function(G,b,I,h,q){b=typeof q.method==="string"?G[q.method]:q.method;I=q.property;b?b.call(G,G.__data[I],h[I]):q.dynamicFn||console.warn("observer method `"+q.method+"` not defined")};
icX=function(G,b,I,h){I={value:I,queueProperty:!0};h&&(I.path=h);(0,_.yF)(G).dispatchEvent(new CustomEvent(b,{detail:I}))};
PPr=function(G,b,I,h,q,l){l=(h=(l?Z8(b):b)!=b?b:null)?ix(G,h):G.__data[b];h&&l===void 0&&(l=I[b]);icX(G,q.eventName,l,h)};
dAO=function(G,b,I,h,q){I=G.__data[b];ra&&(I=ra(I,q.attrName,"attribute",G));G._propertyToAttribute(b,q.attrName,I)};
rxa=function(G){var b=G.constructor.__orderedComputedDeps;if(!b){b=new Map;for(var I=G.__computeEffects,h=yxO(G),q=h.counts,l=h.ready,V=h.total;h=l.shift();)b.set(h,b.size),(h=I[h])&&h.forEach(function(D){D=D.info.methodInfo;--V;--q[D]===0&&l.push(D)});
V!==0&&console.warn("Computed graph for "+G.localName+" incomplete; circular?");G.constructor.__orderedComputedDeps=b}return b};
yxO=function(G){var b=G.__computeInfo,I={};G=G.__computeEffects;var h=[],q=0,l;for(l in b){var V=b[l];q+=I[l]=V.args.filter(function(k){return!k.literal}).length+(V.dynamicFn?1:0)}for(var D in G)b[D]||h.push(D);
return{counts:I,ready:h,total:q}};
HcO=function(G,b,I,h,q){b=FaB(G,b,I,h,q);if(b===Fp)return!1;q=q.methodInfo;if(G.__dataHasAccessor&&G.__dataHasAccessor[q])return G._setPendingProperty(q,b,!0);G[q]=b;return!1};
NcB=function(G,b,I,h,q,l,V){I.bindings=I.bindings||[];h={kind:h,target:q,parts:l,literal:V,isCompound:l.length!==1};I.bindings.push(h);h.target&&h.kind!="attribute"&&h.kind!="text"&&!h.isCompound&&h.parts[0].mode==="{"&&(I=h.parts[0],l=I.negate,h.listenerEvent=I.event||AU(q)+"-changed",h.listenerNegate=l);q=b.nodeInfoList.length;for(I=0;I<h.parts.length;I++){var D=h.parts[I];D.compoundIndex=I;l=G;V=b;var k=h,L=D,x=q;if(!L.literal)if(k.kind==="attribute"&&k.target[0]==="-")console.warn("Cannot set attribute "+
k.target+' because "-" is not a valid attribute starting character');else for(D=L.dependencies,k={index:x,binding:k,part:L,evaluator:l},L=0;L<D.length;L++)x=D[L],typeof x=="string"&&(x=Waj(x),x.wildcard=!0),l._addTemplatePropertyEffect(V,x.rootProperty,{fn:aAj,info:k,trigger:x})}};
aAj=function(G,b,I,h,q,l,V){V=V[q.index];var D=q.binding,k=q.part;l&&k.source&&b.length>k.source.length&&D.kind=="property"&&!D.isCompound&&V.__isPropertyEffectsClient&&V.__dataHasAccessor&&V.__dataHasAccessor[D.target]?(I=I[b],b=zX(k.source,D.target,b),V._setPendingPropertyOrPath(b,I,!1,!0)&&G._enqueueClient(V)):(b=q.evaluator._evaluateBinding(G,k,b,I,h,l),b!==Fp&&(D.isCompound&&(I=V.__dataCompoundStorage[D.target],I[k.compoundIndex]=b,b=I.join("")),D.kind==="attribute"||D.target!=="textContent"&&
(D.target!=="value"||V.localName!=="input"&&V.localName!=="textarea")||(b=b==void 0?"":b),k=b,ra&&(k=ra(k,D.target,D.kind,V)),D.kind=="attribute"?G._valueToNodeAttribute(V,k,D.target):(D=D.target,V.__isPropertyEffectsClient&&V.__dataHasAccessor&&V.__dataHasAccessor[D]?V.__readOnly&&V.__readOnly[D]||V._setPendingProperty(D,k)&&G._enqueueClient(V):G._setUnmanagedPropertyToNode(V,D,k))))};
Y4O=function(G,b,I){if(I.listenerEvent){var h=I.parts[0];G.addEventListener(I.listenerEvent,function(q){var l=I.target,V=h.source,D=h.negate,k=q.detail,L=k&&k.path;L?(V=zX(l,V,L),q=k&&k.value):q=q.currentTarget[l];b.__readOnly&&b.__readOnly[V]||!b._setPendingPropertyOrPath(V,D?!q:q,!0,!!L)||k&&k.queueProperty||b._invalidateProperties()})}};
CPj=function(G,b,I,h,q,l){l=b.static||l&&(typeof l!=="object"||l[b.methodName]);q={methodName:b.methodName,args:b.args,methodInfo:q,dynamicFn:l};for(var V=0,D=void 0;V<b.args.length&&(D=b.args[V]);V++)D.literal||G._addPropertyEffect(D.rootProperty,I,{fn:h,info:q,trigger:D});l&&G._addPropertyEffect(b.methodName,I,{fn:h,info:q});return q};
FaB=function(G,b,I,h,q){h=G._methodHost||G;var l=h[q.methodName];if(l)return G=G._marshalArgs(q.args,b,I),G===Fp?Fp:l.apply(h,G);q.dynamicFn||console.warn("method `"+q.methodName+"` not defined")};
Jxq=function(G){for(var b="",I=0;I<G.length;I++)b+=G[I].literal||"";return b};
RQv=function(G){if(G=G.match(/([^\s]+?)\(([\s\S]*)\)/)){var b={methodName:G[1],static:!0,args:Kaa};return G[2].trim()?ueO(G[2].replace(/\\,/g,"&comma;").split(","),b):b}return null};
ueO=function(G,b){b.args=G.map(function(I){I=Waj(I);I.literal||(b.static=!1);return I},this);
return b};
Waj=function(G){G=G.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var b={name:G,value:"",literal:!1},I=G[0];I==="-"&&(I=G[1]);I>="0"&&I<="9"&&(I="#");switch(I){case "'":case '"':b.value=G.slice(1,-1);b.literal=!0;break;case "#":b.value=Number(G),b.literal=!0}b.literal||(b.rootProperty=Z8(G),b.structured=My(G),b.structured&&(b.wildcard=G.slice(-2)==".*",b.wildcard&&(b.name=G.slice(0,-2))));return b};
ngO=function(G,b,I){G=ix(G,I);G===void 0&&(G=b[I]);return G};
Ocq=function(G,b,I,h){h={indexSplices:h};Hw&&!G._overrideLegacyUndefined&&(b.splices=h);G.notifyPath(I+".splices",h);G.notifyPath(I+".length",b.length);Hw&&!G._overrideLegacyUndefined&&(h.indexSplices=[])};
Ww=function(G,b,I,h,q,l){Ocq(G,b,I,[{index:h,addedCount:q,removed:l,object:b,type:"splice"}])};
wRB=function(G){G=DAr((G.body?G.body:G).textContent,G.baseURI);var b=document.createElement("style");b.textContent=G;return b};
pRO=function(G){G=G.trim().split(/\s+/);for(var b=[],I=0;I<G.length;I++)b.push.apply(b,_.Nz(Egq(G[I])));return b};
Egq=function(G){var b=a1.import(G);if(!b)return console.warn("Could not find style data in module named",G),[];if(b._styles===void 0){G=[];G.push.apply(G,_.Nz(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b)));var I=b.querySelector("template");I&&G.push.apply(G,_.Nz(S4O(I,b.assetpath)));b._styles=G}return b._styles};
S4O=function(G,b){if(!G._styles){for(var I=[],h=G.content.querySelectorAll("style"),q=0;q<h.length;q++){var l=h[q],V=l.getAttribute("include");V&&I.push.apply(I,_.Nz(pRO(V).filter(function(D,k,L){return L.indexOf(D)===k})));
b&&(l.textContent=DAr(l.textContent,b));I.push(l)}G._styles=I}return G._styles};
XRp=function(G){return(G=a1.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 b=[];G=G.querySelectorAll("link[rel=import][type~=css]");for(var I=0;I<G.length;I++){var h=G[I];if(h.import){var q=h.import;if((h=h.hasAttribute("shady-unscoped"))&&!q._unscopedStyle){var l=wRB(q);l.setAttribute("shady-unscoped","");q._unscopedStyle=l}else q._style||(q._style=wRB(q));b.push(h?q._unscopedStyle:q._style)}}return b};
GOq=function(G){G=G.trim().split(/\s+/);for(var b="",I=0;I<G.length;I++)b+=$_B(G[I]);return b};
$_B=function(G){var b=a1.import(G);if(b&&b._cssText===void 0){var I=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b),h=b.querySelector("template");h&&(I+=bW2(h,b.assetpath));b._cssText=I||null}b||console.warn("Could not find style data in module named",G);return b&&b._cssText||""};
bW2=function(G,b){var I="";G=S4O(G,b);for(b=0;b<G.length;b++){var h=G[b];h.parentNode&&h.parentNode.removeChild(h);I+=h.textContent}return I};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(G){var b="";G=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G);for(var I=0;I<G.length;I++)b+=G[I].textContent;return b};
Ny=function(G,b){return{index:G,removed:[],addedCount:b}};
hzu=function(G,b,I,h){var q=0,l=0,V=0,D=0,k=Math.min(b-q,h-l);if(q==0&&l==0)a:{for(V=0;V<k;V++)if(G[V]!==I[V])break a;V=k}if(b==G.length&&h==I.length){D=G.length;for(var L=I.length,x=0;x<k-V&&I_j(G[--D],I[--L]);)x++;D=x}q+=V;l+=V;b-=D;h-=D;if(b-q==0&&h-l==0)return[];if(q==b){for(b=Ny(q,0);l<h;)b.removed.push(I[l++]);return[b]}if(l==h)return[Ny(q,b-q)];k=q;V=l;h=h-V+1;D=b-k+1;b=Array(h);for(L=0;L<h;L++)b[L]=Array(D),b[L][0]=L;for(L=0;L<D;L++)b[0][L]=L;for(L=1;L<h;L++)for(x=1;x<D;x++)if(G[k+x-1]===
I[V+L-1])b[L][x]=b[L-1][x-1];else{var f=b[L-1][x]+1,T=b[L][x-1]+1;b[L][x]=f<T?f:T}k=b.length-1;V=b[0].length-1;h=b[k][V];for(G=[];k>0||V>0;)k==0?(G.push(2),V--):V==0?(G.push(3),k--):(D=b[k-1][V-1],L=b[k-1][V],x=b[k][V-1],f=L<x?L<D?L:D:x<D?x:D,f==D?(D==h?G.push(0):(G.push(1),h=D),k--,V--):f==L?(G.push(3),k--,h=L):(G.push(2),V--,h=x));G.reverse();b=void 0;k=[];for(V=0;V<G.length;V++)switch(G[V]){case 0:b&&(k.push(b),b=void 0);q++;l++;break;case 1:b||(b=Ny(q,0));b.addedCount++;q++;b.removed.push(I[l]);
l++;break;case 2:b||(b=Ny(q,0));b.addedCount++;q++;break;case 3:b||(b=Ny(q,0)),b.removed.push(I[l]),l++}b&&k.push(b);return k};
qEs=function(G,b){return hzu(G,G.length,b,b.length)};
I_j=function(G,b){return G===b};
l_2=function(G){if(G instanceof jAp)return G.value;throw Error("Id`"+G);};
m_d=function(G,b){for(var I in b)I===null?G.style.removeProperty(I):G.style.setProperty(I,b[I])};
ezj=function(G,b){return(G=window.getComputedStyle(G).getPropertyValue(b))?G.trim():""};
kOr=function(G){requestAnimationFrame(function(){Vfd?Vfd(G):(D_j||(D_j=new Promise(function(b){cku=b}),document.readyState==="complete"?cku():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&cku()})),D_j.then(function(){G&&G()}))})};
QAv=function(G){vxs=G&&G.shimcssproperties?!1:Lbj||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
U_s=function(G){if(!(x_O.indexOf(G)>-1)&&G!=="touchend"&&f_s&&TPv&&BPp)return{passive:!0}};
Mfr=function(G){for(var b=sAr?["click"]:x_O,I=0,h;I<b.length;I++)h=b[I],G?(gxO.length=0,document.addEventListener(h,AkB,!0)):document.removeEventListener(h,AkB,!0)};
YG=function(G){var b=G.type;return x_O.indexOf(b)>-1?b==="mousemove"?(b=G.buttons===void 0?1:G.buttons,G instanceof window.MouseEvent&&!ZWp&&(b=tfr[G.which]||0),!!(b&1)):(G.button===void 0?0:G.button)===0:!1};
zzd=function(G){if(G.type==="click"){if(G.detail===0)return!0;var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);if(!b.nodeType||b.nodeType!==Node.ELEMENT_NODE)return!0;b=b.getBoundingClientRect();var I=G.pageX;G=G.pageY;return!(I>=b.left&&I<=b.right&&G>=b.top&&G<=b.bottom)}return!1};
oxO=function(G,b,I){G.movefn=b;G.upfn=I;document.addEventListener("mousemove",b);document.addEventListener("mouseup",I)};
C8=function(G){document.removeEventListener("mousemove",G.movefn);document.removeEventListener("mouseup",G.upfn);G.movefn=null;G.upfn=null};
iWp=function(G,b){for(var I=document.elementFromPoint(G,b),h=I;h&&h.shadowRoot&&!window.ShadyDOM;){var q=h;h=h.shadowRoot.elementFromPoint(G,b);if(q===h)break;h&&(I=h)}return I};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var b=PXj(G);return b.length>0?b[0]:G.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var b=G.type,I=G.currentTarget.__polymerGestures;if(I&&(I=I[b])){if(!G.__polymerGesturesHandled&&(G.__polymerGesturesHandled={},b.slice(0,5)==="touch")){var h=G.changedTouches[0];b==="touchstart"&&G.touches.length===1&&(d_B=h.identifier);if(d_B!==h.identifier)return;f_s||(b==="touchstart"||b==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)}h=
G.__polymerGesturesHandled;if(!h.skip){for(var q=0,l;q<JU.length;q++)l=JU[q],I[l.name]&&!h[l.name]&&l.flow&&l.flow.start.indexOf(G.type)>-1&&l.reset&&l.reset();for(q=0;q<JU.length;q++)l=JU[q],I[l.name]&&!h[l.name]&&(h[l.name]=!0,l[b](G))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var b=G.changedTouches[0],I=G.type;if(I==="touchstart")ykX=b.clientX,rku=b.clientY,Fbq=!1;else if(I==="touchmove"&&!Fbq){Fbq=!0;I="auto";for(var h=PXj(G),q=0,l;q<h.length;q++)if(l=h[q],l.__polymerGesturesTouchAction){I=l.__polymerGesturesTouchAction;break}h=!1;q=Math.abs(ykX-b.clientX);b=Math.abs(rku-b.clientY);G.cancelable&&(I==="none"?h=!0:I==="pan-x"?h=b>q:I==="pan-y"&&(h=q>b));h?G.preventDefault():
K8("track")}};
R1=function(G,b,I){return ux[b]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,b,I),!0):!1};
n8=function(G,b,I){return ux[b]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,b,I),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,b,I){var h=ux[b],q=h.deps,l=h.name,V=G.__polymerGestures;V||(G.__polymerGestures=V={});for(var D=0,k,L;D<q.length;D++)k=q[D],sAr&&x_O.indexOf(k)>-1&&k!=="click"||((L=V[k])||(V[k]=L={_count:0}),L._count===0&&G.addEventListener(k,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,U_s(k)),L[l]=(L[l]||0)+1,L._count=(L._count||0)+1);G.addEventListener(b,I);h.touchAction&&_.Oz(G,h.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,b,I){var h=ux[b],q=h.deps;h=h.name;var l=G.__polymerGestures;if(l)for(var V=0,D,k;V<q.length;V++)D=q[V],(k=l[D])&&k[h]&&(k[h]=(k[h]||1)-1,k._count=(k._count||1)-1,k._count===0&&G.removeEventListener(D,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,U_s(D)));G.removeEventListener(b,I)};
HWO=function(G){JU.push(G);for(var b=0;b<G.emits.length;b++)ux[G.emits[b]]=G};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){for(var b=0,I;b<JU.length;b++){I=JU[b];for(var h=0,q;h<I.emits.length;h++)if(q=I.emits[h],q===G)return I}return null};
_.Oz=function(G,b){f_s&&G instanceof HTMLElement&&wa.run(function(){G.style.touchAction=b});
G.__polymerGesturesTouchAction=b};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,b,I){b=new Event(b,{bubbles:!0,cancelable:!0,composed:!0});b.detail=I;(0,_.yF)(G).dispatchEvent(b);b.defaultPrevented&&(G=I.preventer||I.sourceEvent)&&G.preventDefault&&G.preventDefault()};
K8=function(G){G=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G.info&&(G.info.prevent=!0)};
Ez=function(G,b,I,h){b&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,G,{x:I.clientX,y:I.clientY,sourceEvent:I,preventer:h,prevent:function(q){return K8(q)}})};
WbB=function(G,b,I){if(G.prevent)return!1;if(G.started)return!0;I=Math.abs(G.y-I);return Math.abs(G.x-b)>=5||I>=5};
a_u=function(G,b,I){if(b){var h=G.moves[G.moves.length-2],q=G.moves[G.moves.length-1],l=q.x-G.x,V=q.y-G.y,D=0;if(h){var k=q.x-h.x;D=q.y-h.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,"track",{state:G.state,x:I.clientX,y:I.clientY,dx:l,dy:V,ddx:k,ddy:D,sourceEvent:I,hover:function(){return iWp(I.clientX,I.clientY)}})}};
YEu=function(G,b,I){var h=Math.abs(b.clientX-G.x),q=Math.abs(b.clientY-G.y),l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I||b);!l||NPa[l.localName]&&l.hasAttribute("disabled")||!(isNaN(h)||isNaN(q)||h<=25&&q<=25||zzd(b))||G.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,"tap",{x:b.clientX,y:b.clientY,sourceEvent:b,preventer:I})};
CXO=function(G,b,I,h,q){var l;q&&(l=typeof I==="object"&&I!==null)&&(h=G.__dataTemp[b]);h=h!==I&&(h===h||I===I);l&&h&&(G.__dataTemp[b]=I);return h};
Kbj=function(){if(Xp&&!$V){if(!JkO){JkO=!0;var G=document.createElement("style");G.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(G)}return!0}return!1};
Rzj=function(){return uEj};
nxr=function(G,b){uEj=G;Object.setPrototypeOf(G,b.prototype);new b;uEj=null};
OWO=function(G,b){for(var I=0;I<b.length;I++){var h=b[I];if(!!G!=!!h.__hideTemplateChildren__)if(h.nodeType===Node.TEXT_NODE)G?(h.__polymerTextContent__=h.textContent,h.textContent=""):h.textContent=h.__polymerTextContent__;else if(h.localName==="slot")if(G)h.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.yF)((0,_.yF)(h).parentNode).replaceChild(h.__polymerReplaced__,h);else{var q=h.__polymerReplaced__;q&&(0,_.yF)((0,_.yF)(q).parentNode).replaceChild(h,q)}else h.style&&(G?(h.__polymerDisplay__=
h.style.display,h.style.display="none"):h.style.display=h.__polymerDisplay__);h.__hideTemplateChildren__=G;h._showHideChildren&&h._showHideChildren(G)}};
wPr=function(G){return(G=G.__dataHost)&&G._methodHost||G};
SEj=function(G,b,I){var h=I.mutableData?Exd:Gb;b4.mixin&&(h=b4.mixin(h));var q=function(){return h.apply(this,arguments)||this};
_.M(q,h);q.prototype.__templatizeOptions=I;q.prototype._bindTemplate(G);pPu(q,G,b,I);return q};
IuO=function(G,b,I,h){var q=I.forwardHostProp;if(q&&b.hasHostProps){var l=G.localName=="template",V=b.templatizeTemplateClass;if(!V){if(l){var D=I.mutableData?XPd:$Cd;V=function(){return D.apply(this,arguments)||this};
_.M(V,D);V=b.templatizeTemplateClass=V}else{var k=G.constructor;V=function(){return k.apply(this,arguments)||this};
_.M(V,k);V=b.templatizeTemplateClass=V}var L=b.hostProps,x;for(x in L)V.prototype._addPropertyEffect("_host_"+x,V.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Gd2(q)}),V.prototype._createNotifyingProperty("_host_"+x);IL&&h&&bpB(b,I,h)}G.__dataProto&&Object.assign(G.__data,G.__dataProto);if(l)nxr(G,V),G.__dataTemp={},G.__dataPending=null,G.__dataOld=null,G._enableProperties();else{Object.setPrototypeOf(G,V.prototype);b=b.hostProps;for(var f in b)f="_host_"+f,f in G&&(b=G[f],delete G[f],G.__data[f]=
b)}}};
Gd2=function(G){return function(b,I,h){G.call(b.__templatizeOwner,I.substring(6),h[I])}};
pPu=function(G,b,I,h){var q=I.hostProps||{},l;for(l in h.instanceProps){delete q[l];var V=h.notifyInstanceProp;V&&G.prototype._addPropertyEffect(l,G.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:hbu(V)})}if(h.forwardHostProp&&b.__dataHost)for(var D in q)I.hasHostProps||(I.hasHostProps=!0),G.prototype._addPropertyEffect(D,G.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:q5r()})};
hbu=function(G){return function(b,I,h){G.call(b.__templatizeOwner,b,I,h[I])}};
q5r=function(){return function(G,b,I){G.__dataHost._setPendingPropertyOrPath("_host_"+b,I[b],!0,!0)}};
b4=function(G,b,I){if(hb&&!wPr(G))throw Error("Od");I=I||{};if(G.__templatizeOwner)throw Error("Pd");G.__templatizeOwner=b;var h=(b?b.constructor:Gb)._parseTemplate(G),q=h.templatizeInstanceClass;q||(q=SEj(G,h,I),h.templatizeInstanceClass=q);var l=wPr(G);IuO(G,h,I,l);I=function(){return q.apply(this,arguments)||this};
_.M(I,q);I.prototype._methodHost=l;I.prototype.__dataHost=G;I.prototype.__templatizeOwner=b;I.prototype.__hostProps=h.hostProps;return I};
bpB=function(G,b,I){I=I.constructor._properties;G=G.propertyEffects;b=b.instanceProps;for(var h in G)if(!(I[h]||b&&b[h]))for(var q=G[h],l=0;l<q.length;l++){var V=q[l].info.part;if(!V.signature||!V.signature.static){console.warn("Property '"+h+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
jR2=function(G,b){for(var I;b;)if(I=b.__dataHost?b:b.__templatizeInstance)if(I.__dataHost!=G)b=I.__dataHost;else return I;else b=(0,_.yF)(b).parentNode;return null};
qh=function(G){return G.localName==="slot"};
lur=function(){for(var G=jW.prototype,b="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),I={},h=0;h<b.length;I={method$jscomp$33:void 0},h++)I.method$jscomp$33=b[h],G[I.method$jscomp$33]=function(q){return function(){return this.node[q.method$jscomp$33].apply(this.node,arguments)}}(I)};
mCr=function(G,b){for(var I={},h=0;h<b.length;I={name$jscomp$448:void 0},h++)I.name$jscomp$448=b[h],Object.defineProperty(G,I.name$jscomp$448,{get:function(q){return function(){return this.node[q.name$jscomp$448]}}(I),
configurable:!0})};
ebX=function(){for(var G=jW.prototype,b=["textContent","innerHTML","className"],I={},h=0;h<b.length;I={name$jscomp$449:void 0},h++)I.name$jscomp$449=b[h],Object.defineProperty(G,I.name$jscomp$449,{get:function(q){return function(){return this.node[q.name$jscomp$449]}}(I),
set:function(q){return function(l){this.node[q.name$jscomp$449]=l}}(I),
configurable:!0})};
VRu=function(){l4=document.documentElement.getAttribute("dir");l4=document.documentElement.getAttribute("dir");for(var G=0;G<mH.length;G++){var b=mH[G];b.__autoDirOptOut||b.setAttribute("dir",l4)}};
vYu=function(){eW=!0;requestAnimationFrame(function(){eW=!1;DCO(cJ2);setTimeout(function(){for(var G=0,b=VR.length;G<b;G++)kdv(VR.shift())})})};
DCO=function(G){for(;G.length;)kdv(G.shift())};
kdv=function(G){var b=G[0],I=G[1];G=G[2];try{I.apply(b,G)}catch(h){setTimeout(function(){throw h;})}};
_.LIO=function(G,b,I){eW||vYu();cJ2.push([G,b,I])};
_.D1=function(G,b,I){eW||vYu();VR.push([G,b,I])};
fua=function(G,b){b=b===void 0?!1:b;if(!QRB||!xCs||!QRB.handlesDynamicScoping)return null;var I=xCs.ScopingShim;if(!I)return null;var h=I.scopeForNode(G),q=(0,_.yF)(G).getRootNode(),l=function(V){if((0,_.yF)(V).getRootNode()===q){var D=Array.from(QRB.nativeMethods.querySelectorAll.call(V,"*"));D.push(V);for(V=0;V<D.length;V++){var k=D[V];if((0,_.yF)(k).getRootNode()===q){var L=I.currentScopeForNode(k);L!==h&&(L!==""&&I.unscopeNode(k,L),I.scopeNode(k,h))}}}};
l(G);return b?(b=new MutationObserver(function(V){for(var D=0;D<V.length;D++)for(var k=V[D],L=0;L<k.addedNodes.length;L++){var x=k.addedNodes[L];x.nodeType===Node.ELEMENT_NODE&&l(x)}}),b.observe(G,{childList:!0,
subtree:!0}),b):null};
TUv=function(){document.body.removeAttribute("unresolved")};
AJd=function(G){var b=G=G.replace(BUX,"").replace(UCO,""),I=new sRv;I.start=0;I.end=b.length;for(var h=I,q=0,l=b.length;q<l;q++)if(b[q]==="{"){h.rules||(h.rules=[]);var V=h,D=V.rules[V.rules.length-1]||null;h=new sRv;h.start=q+1;h.parent=V;h.previous=D;V.rules.push(h)}else b[q]==="}"&&(h.end=q+1,h=h.parent||I);return gY2(I,G)};
gY2=function(G,b){var I=b.substring(G.start,G.end-1);G.parsedCssText=G.cssText=I.trim();G.parent&&(I=b.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(MRO," "),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(ZpO)&&(G.type=7,G.keyframesName=G.selector.split(MRO).pop()):I.indexOf("--")===
0?G.type=1E3:G.type=1);if(I=G.rules)for(var h=0,q=I.length,l=void 0;h<q&&(l=I[h]);h++)gY2(l,b);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 b=arguments[1],I=6-b.length;I--;)b="0"+b;return"\\"+b})};
tRq=function(G,b,I){I=I===void 0?"":I;var h="";if(G.cssText||G.rules){var q=G.rules;if(q&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(q))for(var l=0,V=q.length,D=void 0;l<V&&(D=q[l]);l++)h=tRq(D,b,h);else b?b=G.cssText:(b=G.cssText,b=b.replace(zbX,"").replace(oYB,""),b=b.replace(ipX,"").replace(P3r,"")),(h=b.trim())&&(h="  "+h+"\n")}h&&(G.selector&&(I+=G.selector+" {\n"),I+=h,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};
yJp=function(G){if(G=dCO[G])G._applyShimCurrentVersion=G._applyShimCurrentVersion||0,G._applyShimValidatingVersion=G._applyShimValidatingVersion||0,G._applyShimNextVersion=(G._applyShimNextVersion||0)+1};
rJq=function(G){return G._applyShimCurrentVersion===G._applyShimNextVersion};
Hpd=function(G){G._applyShimValidatingVersion=G._applyShimNextVersion;G._validating||(G._validating=!0,FIr.then(function(){G._applyShimCurrentVersion=G._applyShimNextVersion;G._validating=!1}))};
auv=function(G){if(!G)return"";typeof G==="string"&&(G=AJd(G));return tRq(G,WIB)};
NUv=function(G){!G.__cssRules&&G.textContent&&(G.__cssRules=AJd(G.textContent));return G.__cssRules||null};
C3X=function(G,b,I,h){if(G){var q=!1,l=G.type;if(h&&l===4){var V=G.selector.match(Y52);V&&(window.matchMedia(V[1]).matches||(q=!0))}l===1?b(G):I&&l===7?I(G):l===1E3&&(q=!0);if((G=G.rules)&&!q)for(q=0,l=G.length,V=void 0;q<l&&(V=G[q]);q++)C3X(V,b,I,h)}};
JJr=function(G,b){var I=G.indexOf("var(");if(I===-1)return b(G,"","","");a:{var h=0;var q=I+3;for(var l=G.length;q<l;q++)if(G[q]==="(")h++;else if(G[q]===")"&&--h===0)break a;q=-1}h=G.substring(I+4,q);I=G.substring(0,I);G=JJr(G.substring(q+1),b);l=h.indexOf(",");if(l===-1)return b(I,h.trim(),"",G);q=h.substring(0,l).trim();h=h.substring(l+1).trim();return b(I,q,h,G)};
KIr=function(G){if(ch!==void 0)return ch;if(G.__cssBuild===void 0){var b=G.getAttribute("css-build");if(b)G.__cssBuild=b;else{a:{b=G.localName==="template"?G.content.firstChild:G.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),b[0]==="css-build")){b=b[1];break a}b=""}if(b!==""){var I=G.localName==="template"?G.content.firstChild:G.firstChild;I.parentNode.removeChild(I)}G.__cssBuild=b}}return G.__cssBuild||""};
Rbs=function(G,b,I,h){for(var q=b._noAccessors,l=Object.getOwnPropertyNames(b),V=0;V<l.length;V++){var D=l[V];if(!(D in h))if(q)G[D]=b[D];else{var k=Object.getOwnPropertyDescriptor(b,D);k&&(k.configurable=!0,Object.defineProperty(G,D,k))}}for(var L in ucO)b[L]&&(I[L]=I[L]||[],I[L].push(b[L]))};
nYO=function(G,b,I){b=b||[];for(var h=G.length-1;h>=0;h--){var q=G[h];q?Array.isArray(q)?nYO(q,b):b.indexOf(q)<0&&(!I||I.indexOf(q)<0)&&b.unshift(q):console.warn("behavior is null, check for missing or 404 import")}return b};
Opr=function(G,b){for(var I in b){var h=G[I],q=b[I];G[I]=!("value"in q)&&h&&"value"in h?Object.assign({value:h.value},q):q}};
p8j=function(G,b,I){var h={},q=function(){return b.apply(this,arguments)||this};
_.M(q,b);q._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(V)for(var k=0,L;k<V.length;k++)L=V[k],L.properties&&this.createProperties(L.properties),L.observers&&this.createObservers(L.observers,L.properties);G.properties&&this.createProperties(G.properties);G.observers&&this.createObservers(G.observers,G.properties);this._prepareTemplate()}else b._finalizeClass.call(this)};
q.prototype.created=function(){b.prototype.created.call(this);var k=h.created;if(k)for(var L=0;L<k.length;L++)k[L].call(this)};
q.prototype._registered=function(){var k=q.prototype;if(!k.hasOwnProperty("__hasRegisterFinished")){k.__hasRegisterFinished=!0;b.prototype._registered.call(this);Xp&&D(k);k=Object.getPrototypeOf(this);var L=h.beforeRegister;if(L)for(var x=0;x<L.length;x++)L[x].call(k);if(L=h.registered)for(x=0;x<L.length;x++)L[x].call(k)}};
q.prototype._applyListeners=function(){b.prototype._applyListeners.call(this);var k=h.listeners;if(k)for(var L=0;L<k.length;L++){var x=k[L];if(x)for(var f in x)this._addMethodEventListenerToNode(this,f,x[f])}};
q.prototype._ensureAttributes=function(){var k=h.hostAttributes;if(k)for(var L=k.length-1;L>=0;L--){var x=k[L],f;for(f in x)this._ensureAttribute(f,x[f])}b.prototype._ensureAttributes.call(this)};
q.prototype.ready=function(){b.prototype.ready.call(this);var k=h.ready;if(k)for(var L=0;L<k.length;L++)k[L].call(this)};
q.prototype.attached=function(){b.prototype.attached.call(this);var k=h.attached;if(k)for(var L=0;L<k.length;L++)k[L].call(this)};
q.prototype.detached=function(){b.prototype.detached.call(this);var k=h.detached;if(k)for(var L=0;L<k.length;L++)k[L].call(this)};
q.prototype.attributeChanged=function(k,L,x){b.prototype.attributeChanged.call(this);var f=h.attributeChanged;if(f)for(var T=0;T<f.length;T++)f[T].call(this,k,L,x)};
_.kV.Object.defineProperties(q,{properties:{configurable:!0,enumerable:!0,get:function(){var k={};if(V)for(var L=0;L<V.length;L++)Opr(k,V[L].properties);Opr(k,G.properties);return k}},
observers:{configurable:!0,enumerable:!0,get:function(){var k=[];if(V)for(var L=0,x;L<V.length;L++)x=V[L],x.observers&&(k=k.concat(x.observers));G.observers&&(k=k.concat(G.observers));return k}}});
if(I){Array.isArray(I)||(I=[I]);var l=b.prototype.behaviors;var V=nYO(I,null,l);q.prototype.behaviors=l?l.concat(I):V}var D=function(k){if(V)for(var L=V,x=0;x<L.length;x++)Rbs(k,L[x],h,w8O);Rbs(k,G,h,EYr)};
Xp||D(q.prototype);q.generatedFrom=G;return q};
Gwv=function(G){var b=typeof G!=="string"?G:{is:G,notifyObserversOnUndefined:!0};b.fastInit===void 0&&(b.fastInit=!0);return function(I){if(!b.disableInheritanceCheck&&Object.getPrototypeOf(I.prototype).constructor!==_.vh)throw Error("Td");var h=I.prototype;h.is=b.is;jG2(h,"created",function(){this.hostElement=this;this.polymerController=this});
S5a(h,I,b.fastInit);b.notifyObserversOnUndefined&&(h._overrideLegacyUndefined=!0);if(X8a)for(var q=_.e(Object.getOwnPropertyNames(h)),l=q.next();!l.done;l=q.next()){l=l.value;var V=Object.getOwnPropertyDescriptor(h,l);V.enumerable===!1&&(V.enumerable=!0,Object.defineProperty(h,l,V))}if("template"in I)var D=function(){return I.template};
else b.template!==void 0&&(D=b.template);if(D!==void 0){var k;Object.defineProperty(h,"_template",{get:function(){k===void 0&&(k=D());return k},
set:function(L){k=L},
configurable:!0,enumerable:!0})}Polymer(h);I[$wu]=h}};
bfs=function(G){G=G===void 0?{}:G;G.fastInit===void 0&&(G.fastInit=!0);return function(b){if(!G.disableInheritanceCheck&&Object.getPrototypeOf(b.prototype).constructor!==LJ)throw Error("Ud");S5a(b.prototype,b,G.fastInit)}};
S5a=function(G,b,I){I=I===void 0?!1:I;IIq(b);I?jG2(G,"created",function(){this.disableEnforceFastDefaultValuesCheck||hwj(b,this)}):jG2(G,"ready",function(){for(var h={},q=_.e(lAO(this.behaviors)),l=q.next();!l.done;l=q.next())l=l.value,l.properties&&Object.assign(h,qpO(this,l.properties));
Object.assign(h,qpO(this,this.properties));hwj(b,this);q=_.e(Object.keys(h));for(l=q.next();!l.done;l=q.next())l=l.value,this[l]=h[l]})};
hwj=function(G,b){if(X8a){G=new G;for(var I=_.e(Object.getOwnPropertyNames(G)),h=I.next();!h.done;h=I.next())h=h.value,b[h]=G[h];for(I=b;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){h=_.e(Object.getOwnPropertyNames(I));for(var q=h.next();!q.done;q=h.next())q=q.value,G.hasOwnProperty(q)||Object.defineProperty(G,q,jes(b,q))}}else G.apply(b)};
jes=function(G,b){return{get:function(){var I=G[b];return I instanceof Function?I.bind(G):I},
set:function(I){G[b]=I}}};
qpO=function(G,b){if(!b)return{};for(var I={},h=_.e(Object.keys(b)),q=h.next();!q.done;q=h.next())if(q=q.value,!b[q].readOnly){var l=G[q];l!==void 0&&(I[q]=l)}return I};
IIq=function(G){var b=new G;G=G.prototype.properties||{};for(var I=_.e(Object.keys(G)),h=I.next();!h.done;h=I.next())if(h=h.value,b.hasOwnProperty(h)){var q=G[h];typeof q==="function"&&(G[h]=q={type:q});b[h]!=null&&q.type===Object&&(q.type=lIq(b[h].constructor))}};
lIq=function(G){for(var b=_.e(mwX),I=b.next();!I.done;I=b.next())if(I=I.value,G===I)return I;return Object};
ewO=function(G){return function(b,I){b.behaviors=b.behaviors||[];b.behaviors.push(G||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",b,I).prototype:void 0));Object.defineProperty(b,I,{get:function(){return this},
enumerable:!0,configurable:!0})}};
VEa=function(G){G=G===void 0?{}:G;return function(b,I){b.properties=b.properties||{};G.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?G.type=lIq(Reflect.getMetadata("design:type",b,I)):G.type=String);var h=G,q=b.properties[I];b.properties[I]=q?Object.assign({},q,h):h}};
Dwv=function(G){return function(b,I){b.listeners=b.listeners||{};b.listeners[G]=I}};
c8p=function(){var G=_.RI.apply(0,arguments);if(G.length===0)throw Error("Vd");return function(b,I){b.observers=b.observers||[];b.observers.push(I+"("+G.join(",")+")")}};
kwj=function(){var G=_.RI.apply(0,arguments);return function(b,I,h){var q=Object.getOwnPropertyDescriptor(b,I).get,l="__compute__"+I;Object.defineProperty(b,l,{value:q,enumerable:!0});b.properties=b.properties||{};q=b.properties[I];q||(q={},b.properties[I]=q);q.computed=l+"("+G.join(",")+")";h.get=void 0}};
_.QR=function(G,b,I){_.FN.call(this);this.JSC$11383_id_=null;this.usingListeners_=!1;this.JSC$11383_listener_=G;this.handler_=I;this.JSC$11383_win_=b||window;this.callback_=(0,_.Hr)(this.JSC$11385_doAction_,this)};
xV=function(G){this.range_=G};
fJ=function(G){this.range_=G};
Ui=function(G,b,I){_.FN.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=G;this.scrollTimer_=new _.Tb(50);this.JSC$11462_eventHandler_=new _.Bh(this);this.scrollDelta_=new _.ue;this.containerIsActuallyContent_=G.tagName==="BODY"||G.tagName==="HTML";this.containerBounds_=v4s(G);this.containerIsActuallyContent_&&(G=_.dV(),this.containerBounds_.height=G.height,this.containerBounds_.width=G.width);this.margin_=b||0;if(b){if(b=this.containerBounds_.clone(),G=this.margin_){var h=
Math.min(G,b.height*.25);b.top+=h;b.height-=2*h;G=Math.min(G,b.width*.25);b.left+=G;b.width-=2*G}}else b=this.containerBounds_;this.scrollBounds_=b;I||this.JSC$11462_eventHandler_.listen(_.ny(this.containerNode_),"mousemove",this.JSC$11464_onMouseMove);this.JSC$11462_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11464_onTick_)};
_.si=function(G){this.mechanism=G};
g2=function(G,b){this.JSC$11560_key_=G;this.JSC$11560_value_=b};
Qer=function(G){if(G>=55296&&G<=57343||G>1114111)return"\ufffd";G in Lev&&(G=Lev[G]);var b="";G>65535&&(G-=65536,b+=String.fromCharCode(G>>>10&1023|55296),G=56320|G&1023);return b+=String.fromCharCode(G)};
xwa=function(G,b){return G<b?1:-1};
Ttd=function(){return function(G){return G.charAt(1)==="#"?G.charAt(2)==="X"||G.charAt(2)==="x"?Qer(parseInt(G.substr(3),16)):Qer(parseInt(G.substr(2),10)):fIO[G.slice(1,-1)]}};
ser=function(G){return G.slice(1,G.length-1).trim().replace(Btr,function(b){return Uwq[b]||" "})};
Ab=function(G){return G===32||G===9};
Mh=function(G,b){return b<G.length?G.charCodeAt(b):-1};
g4u=function(G){for(;G;){if(G._lastLineBlank)return!0;var b=G.type;if(b==="list"||b==="item")G=G._lastChild;else break}return!1};
Z1=function(G){if(A8v.test(G)){var b=1,I=0,h=0;for(G[I]=="|"&&I++;I<G.length;){switch(G[I]){case "|":h=1;break;case " ":break;case "\t":break;default:h&&(h=0,b++)}I++}return MEj.test(G)?-b:b}return 0};
Zfj=function(G){return G=="table"||G=="row"||G=="cell"};
tEs=function(){return new tb("document",[[1,1],[0,0]])};
zwB=function(){};
zb=function(){var G={safe:!1};G=G||{};G.softbreak=G.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=G};
y8j=function(G,b){var I="";if(G)if(G=G.toLowerCase(),G===" "||o4p.test(G))I="space";else if(ifO.test(G))I="esc";else if(G.length==1){if(!b||P0O.test(G))I=G}else I=dwO.test(G)?G.replace("arrow",""):G=="multiply"?"*":G;return I};
Wer=function(G,b){var I=G.hasModifiers;if(b.key)I=y8j(b.key,I);else if(b.detail&&b.detail.key)I=y8j(b.detail.key,I);else{I=b.keyIdentifier;var h="";I&&(I in r8O?h=r8O[I]:Fes.test(I)?(I=parseInt(I.replace("U+","0x"),16),h=String.fromCharCode(I).toLowerCase()):h=I.toLowerCase());(I=h)||(I=b.keyCode,h="",Number(I)&&(I>=65&&I<=90?h=String.fromCharCode(32+I):I>=112&&I<=123?h="f"+(I-112+1):I>=48&&I<=57?h=String(I-48):I>=96&&I<=105?h=String(I-96):h=Hfs[I]),I=h);I=I||""}return I===G.key&&(!G.hasModifiers||
!!b.shiftKey===!!G.shiftKey&&!!b.ctrlKey===!!G.ctrlKey&&!!b.altKey===!!G.altKey&&!!b.metaKey===!!G.metaKey)};
NtB=function(G){return G.length===1?{combo:G,key:G,event:"keydown"}:G.split("+").reduce(function(b,I){var h=I.split(":");I=h[0];h=h[1];I in aI2?(b[aI2[I]]=!0,b.hasModifiers=!0):(b.key=I,b.event=h||"keydown");return b},{combo:G.split(":").shift()})};
Ypj=function(G){return G.trim().split(" ").map(function(b){return NtB(b)})};
C0s=function(G,b){if(G&&G.fn){var I=G.fn;G.fn=function(){try{I.apply(this,arguments)}catch(h){if(h instanceof oL)console.warn("Argument '"+h.arg+"'"+(b?" for method '"+b+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw h;}}}return G};
KeO=function(){var G=[],b;var I=I||_.J8u.length;for(b=0;b<8;b++)G[b]=_.J8u[0|Math.random()*I];return G.join("")};
uiu=function(){var G=_.RI.apply(0,arguments);return G.length===0?function(b){return b}:G.length===1?G[0]:G.reduce(function(b,I){return function(){return b(I.apply(null,_.Nz(_.RI.apply(0,arguments))))}})};
Rwr=function(){var G=_.RI.apply(0,arguments);return function(b){return function(I,h){I=b(I,h);var q=function(){throw Error("Fe");},l={getState:I.getState,
dispatch:function(V){return q.apply(null,[V].concat(_.Nz(_.RI.apply(1,arguments))))}};
h=G.map(function(V){return V(l)});
q=uiu.apply(null,_.Nz(h))(I.dispatch);return Object.assign({},I,{dispatch:q})}}};
wmX=function(G){Object.keys(G).forEach(function(b){var I=G[b];if(typeof I(void 0,{type:n4O})==="undefined")throw Error("Ge`"+b);if(typeof I(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+OfO()})==="undefined")throw Error("He`"+b+"`"+n4O);})};
i4=function(G){for(var b=Object.keys(G),I={},h=0;h<b.length;h++){var q=b[h];typeof G[q]==="function"&&(I[q]=G[q])}var l=Object.keys(I);try{wmX(I)}catch(D){var V=D}return function(D,k){D=D===void 0?{}:D;if(V)throw V;for(var L=!1,x={},f=0;f<l.length;f++){var T=l[f],B=D[T],A=(0,I[T])(B,k);if(typeof A==="undefined")throw D=k&&k.type,Error("Ie`"+(D?'"'+String(D)+'"':"(unknown type)")+"`"+T);x[T]=A;L=L||A!==B}return(L=L||l.length!==Object.keys(D).length)?x:D}};
E4q=function(G,b,I){function h(){if(x)throw Error("Je");return D}
function q(B){if(typeof B!=="function")throw Error("Ke`"+typeof B);if(x)throw Error("Le");var A=!0;L===k&&(L=k.slice());L.push(B);return function(){if(A){if(x)throw Error("Me");A=!1;L===k&&(L=k.slice());var t=L.indexOf(B);L.splice(t,1);k=null}}}
function l(B){if(typeof B!=="object"||B===null)var A=!1;else{for(A=B;Object.getPrototypeOf(A)!==null;)A=Object.getPrototypeOf(A);A=Object.getPrototypeOf(B)===A}if(!A)throw Error("Ne`"+typeof B);if(typeof B.type==="undefined")throw Error("Oe");if(x)throw Error("Pe");try{x=!0,D=V(D,B)}finally{x=!1}A=k=L;for(var t=0;t<A.length;t++)(0,A[t])();return B}
if(typeof b==="function"&&typeof I==="function"||typeof I==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof b==="function"&&typeof I==="undefined"&&(I=b,b=void 0);if(typeof I!=="undefined"){if(typeof I!=="function")throw Error("Re`"+typeof I);return I(E4q)(G,b)}if(typeof G!=="function")throw Error("Se`"+typeof G);var V=G,D=b,k=[],L=k,x=!1;l({type:n4O});var f={},T=(f.dispatch=l,f.subscribe=q,f.getState=h,f.replaceReducer=function(B){if(typeof B!=="function")throw Error("Te`"+
typeof B);V=B;l({type:pmO});return T},f[Spu]=function(){var B={};
return B.subscribe=function(A){function t(){A.next&&A.next(h())}
if(typeof A!=="object"||A===null)throw new TypeError("Ue`"+typeof A);t();return{unsubscribe:q(t)}},B[Spu]=function(){return this},B},f);
return T};
XmO=function(G){function b(){q&&(q=!1,G());l&&h()}
function I(){requestAnimationFrame(b)}
function h(){var D=Date.now();if(q){if(D-V<2)return;l=!0}else q=!0,l=!1,setTimeout(I,20);V=D}
var q=!1,l=!1,V=0;return h};
Ph=function(G){return typeof G==="number"?G:parseFloat(G)||0};
$LO=function(G){return _.RI.apply(1,arguments).reduce(function(b,I){return b+Ph(G["border-"+I+"-width"])},0)};
hRu=function(G){if(GyO[G])return GyO[G];var b=globalThis[G],I=b.prototype,h=G in b4O?b4O[G]:void 0;h=!(!h||!h.every(function(k){var L,x;return!!((L=Object.getOwnPropertyDescriptor(I,k))==null?0:(x=L.get)==null?0:x.toString().includes("[native code]"))}));
var q=G in I$j?I$j[G]:void 0;q=!(!q||!q.every(function(k){var L;return typeof I[k]==="function"&&((L=I[k])==null?void 0:L.toString().includes("[native code]"))}));
if(h&&q&&!globalThis.Zone)return GyO[G]=b.prototype;try{var l=document.createElement("iframe");document.body.appendChild(l);var V=l.contentWindow;if(!V)return b.prototype;var D=V[G].prototype;document.body.removeChild(l);return D?GyO[G]=D:I}catch(k){return I}};
d2=function(G,b,I){var h=G+"."+String(I);if(qnd[h])return qnd[h].call(b);G=hRu(G);var q;G=(q=Object.getOwnPropertyDescriptor(G,I))==null?void 0:q.get;if(!G)return b[I];qnd[h]=G;return G.call(b)};
l$v=function(G,b){var I="Node."+String(b);if(jTp[I])return jTp[I].bind(G);var h=hRu("Node")[b];if(typeof h!=="function")return G[b];jTp[I]=h;return h.bind(G)};
yR=function(G,b,I){try{if(!(b in G))return function(){};
var h=G[b],q=I(h);typeof q==="function"&&(q.prototype=q.prototype||{},Object.defineProperties(q,{__rrweb_original__:{enumerable:!1,value:h}}));G[b]=q;return function(){G[b]=h}}catch(l){return function(){}}};
Hh=function(G){var b=G&&"host"in G&&"mode"in G&&r2(G)||null;return!!(b&&"shadowRoot"in b&&FI(b)===G)};
Wh=function(G){return Object.prototype.toString.call(G)==="[object ShadowRoot]"};
mLa=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};
Vgr=function(G){try{var b=G.rules||G.cssRules;if(!b)return null;var I=G.href;!I&&G.ownerNode&&(I=G.ownerNode.baseURI);var h=Array.from(b,function(q){return eR2(q,I)}).join("");
return mLa(h)}catch(q){return null}};
eR2=function(G,b){if("styleSheet"in G){try{var I;if(!(I=Vgr(G.styleSheet))){var h=G.cssText;if(h.split('"').length<3)I=h;else{var q=["@import","url("+JSON.stringify(G.href)+")"];G.layerName===""?q.push("layer"):G.layerName&&q.push("layer("+G.layerName+")");G.supportsText&&q.push("supports("+G.supportsText+")");G.media.length&&q.push(G.media.mediaText);I=q.join(" ")+";"}}var l=I}catch(V){l=G.cssText}return G.styleSheet.href?DLq(l,G.styleSheet.href):l}l=G.cssText;"selectorText"in G&&G.selectorText.includes(":")&&
(l=l.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return b?DLq(l,b):l};
cKB=function(G){var b=G.element;var I=G.maskInputOptions;var h=G.tagName;var q=G.type;var l=G.value;G=G.maskInputFn;l=l||"";q=q&&q.toLowerCase();if(I[h.toLowerCase()]||q&&I[q])l=G?G(l,b):"*".repeat(l.length);return l};
kyv=function(G){var b=G.getContext("2d");if(!b)return!0;for(var I=0;I<G.width;I+=50)for(var h=0;h<G.height;h+=50){var q=b.getImageData;if((new Uint32Array(("__rrweb_original__"in q?q.__rrweb_original__:q).call(b,I,h,Math.min(50,G.width-I),Math.min(50,G.height-h)).data.buffer)).some(function(l){return l!==0}))return!1}return!0};
v1p=function(G){var b=G.type;return G.hasAttribute("data-rr-is-password")?"password":b?b.toLowerCase():null};
LXX=function(G){try{var b=new URL(G,window.location.href)}catch(q){return null}var I,h;return(h=(I=b.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:I[1])!=null?h:null};
DLq=function(G,b){return(G||"").replace(QTO,function(I,h,q,l,V,D){q=q||V||D;h=h||l||"";if(!q)return I;if(xLO.test(q)||f$X.test(q)||Tpq.test(q))return"url("+h+q+h+")";if(q[0]==="/")return I=b.indexOf("//")>-1?b.split("/").slice(0,3).join("/"):b.split("/")[0],I=I.split("?")[0],"url("+h+(I+q)+h+")";I=b.split("/");l=q.split("/");I.pop();l=_.e(l);for(q=l.next();!q.done;q=l.next())q=q.value,q!=="."&&(q===".."?I.pop():I.push(q));return"url("+h+I.join("/")+h+")"})};
BpO=function(G,b){return(b=b===void 0?!1:b)?G.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):G.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
ULa=function(G,b){var I=I===void 0?!1:I;b=Array.from(b.childNodes);var h=[],q=0;if(b.length>1&&G&&typeof G==="string")for(var l=BpO(G,I),V=l.length/G.length,D=1;D<b.length;D++)if(b[D].textContent&&typeof b[D].textContent==="string"){for(var k=BpO(b[D].textContent,I),L=3;L<k.length&&(k[L].match(/[a-zA-Z0-9]/)||k.indexOf(k.substring(0,L),1)!==-1);L++);for(;L<k.length;L++){var x=k.substring(0,L),f=l.split(x),T=-1;if(f.length===2)T=f[0].length;else if(f.length>2&&f[0]===""&&b[D-1].textContent!=="")T=
l.indexOf(x,1);else if(f.length===1){x=x.substring(0,x.length-1);f=l.split(x);if(f.length<=1)return h.push(G),h;L=101}else L===k.length-1&&(T=l.indexOf(x));if(f.length>=2&&L>100){var B=b[D-1].textContent;B&&typeof B==="string"&&(T=l.indexOf(x,BpO(B).length));T===-1&&(T=f[0].length)}if(T!==-1){for(k=Math.floor(T/V);k>0&&k<G.length;){q+=1;if(q>50*b.length)return h.push(G),h;L=BpO(G.substring(0,k),I);if(L.length===T){h.push(G.substring(0,k));G=G.substring(k);l=l.substring(T);break}else k=L.length<T?
k+Math.max(1,Math.floor((T-L.length)/V)):k-Math.max(1,Math.floor((L.length-T)*V))}break}}}h.push(G);return h};
g1r=function(){return sTq++};
MgB=function(G){if(G instanceof HTMLFormElement)return"form";G=G.tagName.toLowerCase();return AKX.test(G)?"div":G};
o1u=function(G,b){function I(L){return(L=L.exec(b.substring(h)))?(L=L[0],h+=L.length,L):""}
if(b.trim()==="")return b;for(var h=0,q=[];;){I(Z4s);if(h>=b.length)break;var l=I(tgO);if(l.slice(-1)===",")l=zRa(G,l.substring(0,l.length-1)),q.push(l);else{var V="";l=zRa(G,l);for(var D=!1;;){var k=b.charAt(h);if(k===""){q.push((l+V).trim());break}else if(D)k===")"&&(D=!1);else if(k===","){h+=1;q.push((l+V).trim());break}else k==="("&&(D=!0);V+=k;h+=1}}}return q.join(", ")};
zRa=function(G,b){return b&&b.trim()!==""?i4v(G,b):b};
i4v=function(G,b){var I=P1s.get(G);I||(I=G.createElement("a"),P1s.set(G,I));if(!b)b="";else if(b.startsWith("blob:")||b.startsWith("data:"))return b;Ov(I,b);return I.href};
dLd=function(G,b,I,h){return h?I==="src"||I==="href"&&(b!=="use"||h[0]!=="#")||I==="xlink:href"&&h[0]!=="#"||I==="background"&&(b==="table"||b==="td"||b==="th")?zRa(G,h):I==="srcset"?o1u(G,h):I==="style"?DLq(h,i4v(G)):b==="object"&&I==="data"?zRa(G,h):h:h};
yKO=function(G,b){return(G==="video"||G==="audio")&&b==="autoplay"};
rKX=function(G,b,I){try{if(typeof b==="string"){if(G.classList.contains(b))return!0}else for(var h=G.classList.length;h--;)if(b.test(G.classList[h]))return!0;if(I)return G.matches(I)}catch(q){}return!1};
FXa=function(G,b,I){if(!G)return!1;if(G.nodeType!==G.ELEMENT_NODE)return I?FXa(aL(G),b,I):!1;for(var h=G.classList.length;h--;)if(b.test(G.classList[h]))return!0;return I?FXa(aL(G),b,I):!1};
H4O=function(G,b,I,h){if(G.nodeType===G.ELEMENT_NODE){if(!Nh(G).length)return!1}else{if(YV(G)===null)return!1;G=YV(G)}try{if(typeof b==="string")if(h){if(G.closest("."+b))return!0}else{if(G.classList.contains(b))return!0}else if(FXa(G,b,h))return!0;if(I)if(h){if(G.closest(I))return!0}else if(G.matches(I))return!0}catch(q){}return!1};
WXO=function(G,b,I){var h=G.contentWindow;if(h){var q=!1;try{var l=h.document.readyState}catch(D){return}if(l!=="complete"){var V=setTimeout(function(){q||(b(),q=!0)},I);
G.addEventListener("load",function(){clearTimeout(V);q=!0;b()})}else h.location.href==="about:blank"&&G.src!=="about:blank"&&G.src!==""||setTimeout(b,0),G.addEventListener("load",b)}};
a$r=function(G,b,I){var h=!1;try{var q=G.sheet}catch(V){return}if(!q){var l=setTimeout(function(){h||(b(),h=!0)},I);
G.addEventListener("load",function(){clearTimeout(l);h=!0;b()})}};
C12=function(G,b){var I=b.doc,h=b.blockClass,q=b.blockSelector,l=b.needsMask,V=b.inlineStylesheet,D=b.maskInputOptions===void 0?{}:b.maskInputOptions,k=b.maskTextFn,L=b.maskInputFn,x=b.dataURLOptions===void 0?{}:b.dataURLOptions,f=b.inlineImages,T=b.recordCanvas,B=b.keepIframeSrcFn,A=b.newlyAddedElement===void 0?!1:b.newlyAddedElement,t=b.cssCaptured===void 0?!1:b.cssCaptured;b=b.mirror;b.nodeMetaMap.has(I)?(b=b.getId(I),b=b===1?void 0:b):b=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:b};case G.ELEMENT_NODE:return Npu(G,{doc:I,blockClass:h,blockSelector:q,inlineStylesheet:V,maskInputOptions:D,maskInputFn:L,dataURLOptions:x,inlineImages:f,recordCanvas:T,keepIframeSrcFn:B,newlyAddedElement:A,rootId:b});case G.TEXT_NODE:return V=(h=aL(G))&&h.tagName,h="",q=V==="STYLE"?!0:void 0,(V=V==="SCRIPT"?!0:void 0)?
h="SCRIPT_PLACEHOLDER":t||(h=YnB(G),q&&h&&(h=DLq(h,i4v(I)))),!q&&!V&&h&&l&&(h=k?k(h,YV(G)):h.replace(/[\S]/g,"*")),{type:3,textContent:h||"",rootId:b};case G.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:b};case G.COMMENT_NODE:return{type:5,textContent:YnB(G)||"",rootId:b};default:return!1}};
Npu=function(G,b){var I=b.doc,h=b.inlineStylesheet,q=b.maskInputOptions===void 0?{}:b.maskInputOptions,l=b.maskInputFn,V=b.dataURLOptions===void 0?{}:b.dataURLOptions,D=b.inlineImages,k=b.recordCanvas,L=b.keepIframeSrcFn,x=b.newlyAddedElement===void 0?!1:b.newlyAddedElement,f=b.rootId;b=rKX(G,b.blockClass,b.blockSelector);for(var T=MgB(G),B={},A=G.attributes.length,t=0;t<A;t++){var y=G.attributes[t];yKO(T,y.name)||(B[y.name]=dLd(I,T,y.name.toLowerCase(),y.value))}T==="link"&&h&&(h=Array.from(I.styleSheets).find(function(u){return u.href===
G.href}),A=null,h&&(A=Vgr(h)),A&&(delete B.rel,delete B.href,B._cssText=A));
T==="style"&&G.sheet&&(h=Vgr(G.sheet))&&(G.childNodes.length>1&&(h=ULa(h,G).join("/* rr_split */")),B._cssText=h);if(T==="input"||T==="textarea"||T==="select")h=G.value,A=G.checked,B.type!=="radio"&&B.type!=="checkbox"&&B.type!=="submit"&&B.type!=="button"&&h?B.value=cKB({element:G,type:v1p(G),tagName:T,value:h,maskInputOptions:q,maskInputFn:l}):A&&(B.checked=A);T==="option"&&(G.selected&&!q.select?B.selected=!0:delete B.selected);T==="dialog"&&G.open&&(B.rr_open_mode=G.matches("dialog:modal")?"modal":
"non-modal");T==="canvas"&&k&&(G.__context==="2d"?kyv(G)||(B.rr_dataURL=G.toDataURL(V.type,V.quality)):"__context"in G||(q=G.toDataURL(V.type,V.quality),l=I.createElement("canvas"),l.width=G.width,l.height=G.height,l=l.toDataURL(V.type,V.quality),q!==l&&(B.rr_dataURL=q)));if(T==="img"&&D){CJ||(CJ=I.createElement("canvas"),JKu=CJ.getContext("2d"));var F=G.currentSrc||G.getAttribute("src")||"<unknown-src>",W=G.crossOrigin,O=function(){G.removeEventListener("load",O);try{CJ.width=G.naturalWidth,CJ.height=
G.naturalHeight,JKu.drawImage(G,0,0),B.rr_dataURL=CJ.toDataURL(V.type,V.quality)}catch(u){if(G.crossOrigin!=="anonymous"){G.crossOrigin="anonymous";G.complete&&G.naturalWidth!==0?O():G.addEventListener("load",O);return}console.warn("Cannot inline img src="+F+"! Error: "+u)}G.crossOrigin==="anonymous"&&(W?B.crossOrigin=W:G.removeAttribute("crossorigin"))};
G.complete&&G.naturalWidth!==0?O():G.addEventListener("load",O)}if(T==="audio"||T==="video")I=B,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;x||(G.scrollLeft&&(B.rr_scrollLeft=G.scrollLeft),G.scrollTop&&(B.rr_scrollTop=G.scrollTop));b&&(x=G.getBoundingClientRect(),B={class:B.class,rr_width:x.width+"px",rr_height:x.height+"px"});T!=="iframe"||L(B.src)||(G.contentDocument||
(B.rr_src=B.src),delete B.src);var K;try{customElements.get(T)&&(K=!0)}catch(u){}return{type:2,tagName:T,attributes:B,childNodes:[],isSVG:!(G.tagName!=="svg"&&!G.ownerSVGElement)||void 0,needBlock:b,rootId:f,isCustom:K}};
Jb=function(G){return G===void 0||G===null?"":G.toLowerCase()};
KX2=function(G,b){return b.comment&&G.type===5||G.type===2&&(b.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"&&LXX(G.attributes.href)==="js")||b.headFavicon&&(G.tagName==="link"&&G.attributes.rel==="shortcut icon"||G.tagName==="meta"&&(Jb(G.attributes.name).match(/^msapplication-tile(image|color)$/)||Jb(G.attributes.name)===
"application-name"||Jb(G.attributes.rel)==="icon"||Jb(G.attributes.rel)==="apple-touch-icon"||Jb(G.attributes.rel)==="shortcut icon"))||G.tagName==="meta"&&(b.headMetaDescKeywords&&Jb(G.attributes.name).match(/^description|keywords$/)||b.headMetaSocial&&(Jb(G.attributes.property).match(/^(og|twitter|fb):/)||Jb(G.attributes.name).match(/^(og|twitter):/)||Jb(G.attributes.name)==="pinterest")||b.headMetaRobots&&(Jb(G.attributes.name)==="robots"||Jb(G.attributes.name)==="googlebot"||Jb(G.attributes.name)===
"bingbot")||b.headMetaHttpEquiv&&G.attributes["http-equiv"]!==void 0||b.headMetaAuthorship&&(Jb(G.attributes.name)==="author"||Jb(G.attributes.name)==="generator"||Jb(G.attributes.name)==="framework"||Jb(G.attributes.name)==="publisher"||Jb(G.attributes.name)==="progid"||Jb(G.attributes.property).match(/^article:/)||Jb(G.attributes.property).match(/^product:/))||b.headMetaVerification&&(Jb(G.attributes.name)==="google-site-verification"||Jb(G.attributes.name)==="yandex-verification"||Jb(G.attributes.name)===
"csrf-token"||Jb(G.attributes.name)==="p:domain_verify"||Jb(G.attributes.name)==="verify-v1"||Jb(G.attributes.name)==="verification"||Jb(G.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
KJ=function(G,b){var I=b.doc,h=b.mirror,q=b.blockClass,l=b.blockSelector,V=b.maskTextClass,D=b.maskTextSelector,k=b.skipChild===void 0?!1:b.skipChild,L=b.inlineStylesheet===void 0?!0:b.inlineStylesheet,x=b.maskInputOptions===void 0?{}:b.maskInputOptions,f=b.maskTextFn,T=b.maskInputFn,B=b.slimDOMOptions,A=b.dataURLOptions===void 0?{}:b.dataURLOptions,t=b.inlineImages===void 0?!1:b.inlineImages,y=b.recordCanvas===void 0?!1:b.recordCanvas,F=b.onSerialize,W=b.onIframeLoad,O=b.iframeLoadTimeout===void 0?
5E3:b.iframeLoadTimeout,K=b.onStylesheetLoad,u=b.stylesheetLoadTimeout===void 0?5E3:b.stylesheetLoadTimeout,w=b.keepIframeSrcFn===void 0?function(){return!1}:b.keepIframeSrcFn,$a=b.newlyAddedElement===void 0?!1:b.newlyAddedElement,ev=b.cssCaptured===void 0?!1:b.cssCaptured,LO=b.needsMask,td=b.preserveWhiteSpace===void 0?!0:b.preserveWhiteSpace;
LO||(LO=H4O(G,V,D,LO===void 0));var xa=C12(G,{doc:I,mirror:h,blockClass:q,blockSelector:l,needsMask:LO,inlineStylesheet:L,maskInputOptions:x,maskTextFn:f,maskInputFn:T,dataURLOptions:A,inlineImages:t,recordCanvas:y,keepIframeSrcFn:w,newlyAddedElement:$a,cssCaptured:ev});if(!xa)return console.warn(G,"not serialized"),null;$a=h.nodeMetaMap.has(G)?h.getId(G):KX2(xa,B)||!td&&xa.type===3&&!xa.textContent.replace(/^\s+|\s+$/gm,"").length?-2:sTq++;b=Object.assign(xa,{id:$a});h.add(G,b);if($a===-2)return null;
F&&F(G);$a=!k;b.type===2&&($a=$a&&!b.needBlock,delete b.needBlock,(ev=FI(G))&&Wh(ev)&&(b.isShadowHost=!0));if((b.type===0||b.type===2)&&$a){B.headWhitespace&&b.type===2&&b.tagName==="head"&&(td=!1);k={doc:I,mirror:h,blockClass:q,blockSelector:l,needsMask:LO,maskTextClass:V,maskTextSelector:D,skipChild:k,inlineStylesheet:L,maskInputOptions:x,maskTextFn:f,maskInputFn:T,slimDOMOptions:B,dataURLOptions:A,inlineImages:t,recordCanvas:y,preserveWhiteSpace:td,onSerialize:F,onIframeLoad:W,iframeLoadTimeout:O,
onStylesheetLoad:K,stylesheetLoadTimeout:u,keepIframeSrcFn:w,cssCaptured:!1};if(b.type!==2||b.tagName!=="textarea"||b.attributes.value===void 0)for(b.type===2&&b.attributes._cssText!==void 0&&typeof b.attributes._cssText==="string"&&(k.cssCaptured=!0),$a=_.e(Array.from(Nh(G))),ev=$a.next();!ev.done;ev=$a.next())(ev=KJ(ev.value,k))&&b.childNodes.push(ev);$a=null;if(G.nodeType===G.ELEMENT_NODE&&($a=FI(G))){ev=_.e(Array.from(Nh($a)));for(var Uj=ev.next();!Uj.done;Uj=ev.next())if(Uj=KJ(Uj.value,k))Wh($a)&&
(Uj.isShadow=!0),b.childNodes.push(Uj)}}(k=aL(G))&&Hh(k)&&Wh(k)&&(b.isShadow=!0);b.type===2&&b.tagName==="iframe"&&WXO(G,function(){var W2=G.contentDocument;W2&&W&&(W2=KJ(W2,{doc:W2,mirror:h,blockClass:q,blockSelector:l,needsMask:LO,maskTextClass:V,maskTextSelector:D,skipChild:!1,inlineStylesheet:L,maskInputOptions:x,maskTextFn:f,maskInputFn:T,slimDOMOptions:B,dataURLOptions:A,inlineImages:t,recordCanvas:y,preserveWhiteSpace:td,onSerialize:F,onIframeLoad:W,iframeLoadTimeout:O,onStylesheetLoad:K,stylesheetLoadTimeout:u,
keepIframeSrcFn:w}))&&W(G,W2)},O);
b.type===2&&b.tagName==="link"&&typeof b.attributes.rel==="string"&&(b.attributes.rel==="stylesheet"||b.attributes.rel==="preload"&&typeof b.attributes.href==="string"&&LXX(b.attributes.href)==="css")&&a$r(G,function(){if(K){var W2=KJ(G,{doc:I,mirror:h,blockClass:q,blockSelector:l,needsMask:LO,maskTextClass:V,maskTextSelector:D,skipChild:!1,inlineStylesheet:L,maskInputOptions:x,maskTextFn:f,maskInputFn:T,slimDOMOptions:B,dataURLOptions:A,inlineImages:t,recordCanvas:y,preserveWhiteSpace:td,onSerialize:F,
onIframeLoad:W,iframeLoadTimeout:O,onStylesheetLoad:K,stylesheetLoadTimeout:u,keepIframeSrcFn:w});W2&&K(G,W2)}},u);
return b};
u7O=function(G){var b=document;G=G||{};var I=G.maskAllInputs===void 0?!1:G.maskAllInputs,h=G.slimDOM===void 0?!1:G.slimDOM;return KJ(b,{doc:b,mirror:G.mirror===void 0?new u4: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:h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:h==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:h===!1?{}:h,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})};
RL=function(G,b,I){I=I===void 0?document:I;var h={capture:!0,passive:!0};I.addEventListener(G,b,h);return function(){return I.removeEventListener(G,b,h)}};
nJ=function(G,b,I){I=I===void 0?{}:I;var h=null,q=0;return function(){var l=_.RI.apply(0,arguments),V=Date.now();q||I.leading!==!1||(q=V);var D=b-(V-q),k=this;D<=0||D>b?(h&&(clearTimeout(h),h=null),q=V,G.apply(k,l)):h||I.trailing===!1||(h=setTimeout(function(){q=I.leading===!1?0:Date.now();h=null;G.apply(k,l)},D))}};
RRX=function(G,b,I,h,q){q=q===void 0?window:q;var l=q.Object.getOwnPropertyDescriptor(G,b);q.Object.defineProperty(G,b,h?I:{set:function(V){var D=this;setTimeout(function(){I.set.call(D,V)},0);
l&&l.set&&l.set.call(this,V)}});
return function(){return RRX(G,b,l||{},!0)}};
n12=function(G){var b=G.document,I,h,q,l;return{left:b.scrollingElement?b.scrollingElement.scrollLeft:G.pageXOffset!==void 0?G.pageXOffset:b.documentElement.scrollLeft||(b==null?void 0:b.body)&&((I=YV(b.body))==null?void 0:I.scrollLeft)||(b==null?void 0:(h=b.body)==null?void 0:h.scrollLeft)||0,top:b.scrollingElement?b.scrollingElement.scrollTop:G.pageYOffset!==void 0?G.pageYOffset:(b==null?void 0:b.documentElement.scrollTop)||(b==null?void 0:b.body)&&((q=YV(b.body))==null?void 0:q.scrollTop)||(b==
null?void 0:(l=b.body)==null?void 0:l.scrollTop)||0}};
O4O=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
wZO=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
E1u=function(G){return G?G.nodeType===G.ELEMENT_NODE?G:YV(G):null};
Oi=function(G,b,I,h){if(!G)return!1;G=E1u(G);if(!G)return!1;try{if(typeof b==="string"){if(G.classList.contains(b)||h&&G.closest("."+b)!==null)return!0}else if(FXa(G,b,h))return!0}catch(q){}return I&&(G.matches(I)||h&&G.closest(I)!==null)?!0:!1};
pZj=function(G,b,I){return G.tagName==="TITLE"&&I.headTitleMutations?!0:b.getId(G)===-2};
Snu=function(G,b){if(Hh(G))return!1;var I=b.getId(G);return b.has(I)?(I=aL(G))&&I.nodeType===G.DOCUMENT_NODE?!1:I?Snu(I,b):!0:!0};
XZs=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)};
$Rd=function(G,b){return!(G.nodeName!=="LINK"||G.nodeType!==G.ELEMENT_NODE||!G.getAttribute||G.getAttribute("rel")!=="stylesheet"||!b.nodeMetaMap.get(G))};
bEr=function(G){var b=null,I;"getRootNode"in G&&((I=Grr(G))==null?void 0:I.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&r2(Grr(G))&&(b=r2(Grr(G)));return b};
Icd=function(G){var b=G.ownerDocument;if(b){if(!(b=l$v(b,"contains")(G)))if(b=G.ownerDocument){for(var I;I=bEr(G);)G=I;b=l$v(b,"contains")(G)}else b=!1}else b=!1;return b};
hgp=function(G,b){G.delete(b);Nh(b).forEach(function(I){return hgp(G,I)})};
q$a=function(G,b){for(var I=[G];I.length;)G=I.pop(),b.has(G)||(b.add(G),Nh(G).forEach(function(h){return I.push(h)}))};
jvB=function(G,b){G.size===0?G=!1:G=(b=aL(b))?G.has(b):!1;return G};
mRX=function(G,b){return G.size===0?!1:lcX(G,b)};
lcX=function(G,b){return(b=aL(b))?G.has(b)?!0:lcX(G,b):!1};
w2=function(G){try{if("composedPath"in G){var b=G.composedPath();if(b.length)return b[0]}else if("path"in G&&G.path.length)return G.path[0]}catch(I){}return G&&G.target};
VPv=function(G,b){var I=new egr;Ei.push(I);I.init(G);G=new (hRu("MutationObserver").constructor)(pJ(I.processMutations.bind(I)));G.observe(b,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return G};
c$O=function(G){var b=G.mousemoveCb;var I=G.sampling;var h=G.doc;var q=G.mirror;if(I.mousemove===!1)return function(){};
var l=[],V,D=nJ(pJ(function(L){var x=Date.now()-V;b(l.map(function(f){f.timeOffset-=x;return f}),L);
l=[];V=null}),typeof I.mousemoveCallback==="number"?I.mousemoveCallback:500);
G=pJ(nJ(pJ(function(L){var x=w2(L),f=L.changedTouches?L.changedTouches[0]:L,T=f.clientX;f=f.clientY;V||(V=DR2());l.push({x:T,y:f,id:q.getId(x),timeOffset:DR2()-V});D(typeof DragEvent!=="undefined"&&L instanceof DragEvent?12:L instanceof MouseEvent?1:6)}),typeof I.mousemove==="number"?I.mousemove:50,{trailing:!1}));
var k=[RL("mousemove",G,h),RL("touchmove",G,h),RL("drag",G,h)];return pJ(function(){k.forEach(function(L){return L()})})};
kr2=function(G){var b=G.mouseInteractionCb;var I=G.doc;var h=G.mirror;var q=G.blockClass;var l=G.blockSelector;G=G.sampling;if(G.mouseInteraction===!1)return function(){};
var V=G.mouseInteraction===!0||G.mouseInteraction===void 0?{}:G.mouseInteraction,D=[],k=null,L=function(x){return function(f){var T=w2(f);if(!Oi(T,q,l,!0)){var B=null,A=x;if("pointerType"in f){switch(f.pointerType){case "mouse":B=0;break;case "touch":B=2;break;case "pen":B=1}B===2&&(SW[x]===1?A="TouchStart":SW[x]===0&&(A="TouchEnd"))}else f.changedTouches&&(B=2);if(B!==null){if(k=B,A.startsWith("Touch")&&B===2||A.startsWith("Mouse")&&B===0)B=null}else SW[x]===2&&(B=k,k=null);if(f=f.changedTouches?
f.changedTouches[0]:f)T=h.getId(T),pJ(b)(Object.assign({},{type:SW[A],id:T,x:f.clientX,y:f.clientY},B!==null&&{pointerType:B}))}}};
Object.keys(SW).filter(function(x){return Number.isNaN(Number(x))&&!x.endsWith("_Departed")&&V[x]!==!1}).forEach(function(x){var f=x.toLowerCase(),T=L(x);
if(window.PointerEvent)switch(SW[x]){case 1:case 0:f=f.replace("mouse","pointer");break;case 7:case 9:return}D.push(RL(f,T,I))});
return pJ(function(){D.forEach(function(x){return x()})})};
vmd=function(G){var b=G.scrollCb;var I=G.doc;var h=G.mirror;var q=G.blockClass;var l=G.blockSelector;return RL("scroll",pJ(nJ(pJ(function(V){var D=w2(V);D&&!Oi(D,q,l,!0)&&(V=h.getId(D),D===I&&I.defaultView?(D=n12(I.defaultView),b({id:V,x:D.left,y:D.top})):b({id:V,x:D.scrollLeft,y:D.scrollTop}))}),G.sampling.scroll||100)),I)};
LQa=function(G,b){var I=G.viewportResizeCb;var h=-1,q=-1;return RL("resize",pJ(nJ(pJ(function(){var l=O4O(),V=wZO();if(h!==l||q!==V)I({width:Number(V),height:Number(l)}),h=l,q=V}),200)),b.win)};
Tur=function(G){function b(y){var F=w2(y),W=y.isTrusted,O=F&&F.tagName;F&&O==="OPTION"&&(F=YV(F));if(!(!F||!O||xRp.indexOf(O)<0||Oi(F,V,D,!0)||F.classList.contains(k)||L&&F.matches(L))){var K=F.value,u=!1;y=v1p(F)||"";if(y==="radio"||y==="checkbox")u=F.checked;else if(x[O.toLowerCase()]||x[y])K=cKB({element:F,maskInputOptions:x,tagName:O,type:y,value:K,maskInputFn:f});I(F,B?{text:K,isChecked:u,userTriggered:W}:{text:K,isChecked:u});W=F.name;y==="radio"&&W&&u&&q.querySelectorAll('input[type="radio"][name="'+
W+'"]').forEach(function(w){if(w!==F){var $a=w.value;I(w,B?{text:$a,isChecked:!u,userTriggered:!1}:{text:$a,isChecked:!u})}})}}
function I(y,F){var W=fcO.get(y);W&&W.text===F.text&&W.isChecked===F.isChecked||(fcO.set(y,F),y=l.getId(y),pJ(h)(Object.assign({},F,{id:y})))}
var h=G.inputCb;var q=G.doc;var l=G.mirror;var V=G.blockClass;var D=G.blockSelector;var k=G.ignoreClass;var L=G.ignoreSelector;var x=G.maskInputOptions;var f=G.maskInputFn;var T=G.sampling;var B=G.userTriggeredOnInput;var A=(T.input==="last"?["change"]:["input","change"]).map(function(y){return RL(y,pJ(b),q)}),t=q.defaultView;
if(!t)return function(){A.forEach(function(y){return y()})};
G=t.Object.getOwnPropertyDescriptor(t.HTMLInputElement.prototype,"value");T=[[t.HTMLInputElement.prototype,"value"],[t.HTMLInputElement.prototype,"checked"],[t.HTMLSelectElement.prototype,"value"],[t.HTMLTextAreaElement.prototype,"value"],[t.HTMLSelectElement.prototype,"selectedIndex"],[t.HTMLOptionElement.prototype,"selected"]];G&&G.set&&A.push.apply(A,_.Nz(T.map(function(y){return RRX(y[0],y[1],{set:function(){pJ(b)({target:this,isTrusted:!1})}},!1,t)})));
return pJ(function(){A.forEach(function(y){return y()})})};
UR2=function(G){var b=[],I,h,q,l;Buu("CSSGroupingRule")&&((I=G.parentRule)==null?void 0:(h=I.constructor)==null?void 0:h.name)==="CSSGroupingRule"||Buu("CSSMediaRule")&&G.parentRule instanceof CSSMediaRule||Buu("CSSSupportsRule")&&G.parentRule instanceof CSSSupportsRule||Buu("CSSConditionRule")&&((q=G.parentRule)==null?void 0:(l=q.constructor)==null?void 0:l.name)==="CSSConditionRule"?(G=Array.from(G.parentRule.cssRules).indexOf(G),b.unshift(G)):G.parentStyleSheet&&(G=Array.from(G.parentStyleSheet.cssRules).indexOf(G),
b.unshift(G));return b};
XI=function(G,b,I){var h,q;if(!G)return{};G.ownerNode?h=b.getId(G.ownerNode):q=I.getId(G);return{styleId:q,id:h}};
gma=function(G,b){var I=G.styleSheetRuleCb;var h=G.mirror;var q=G.stylesheetManager;var l=b.win;if(!l.CSSStyleSheet||!l.CSSStyleSheet.prototype)return function(){};
var V=l.CSSStyleSheet.prototype.insertRule;l.CSSStyleSheet.prototype.insertRule=new $c(V,{apply:pJ(function(T,B,A){var t=_.e(A),y=t.next().value;t=t.next().value;var F=XI(B,h,q.styleMirror),W=F.id;F=F.styleId;(W&&W!==-1||F&&F!==-1)&&I({id:W,styleId:F,adds:[{rule:y,index:t}]});return T.apply(B,A)})});
l.CSSStyleSheet.prototype.addRule=function(T,B,A){A=A===void 0?this.cssRules.length:A;return l.CSSStyleSheet.prototype.insertRule.apply(this,[T+" { "+B+" }",A])};
var D=l.CSSStyleSheet.prototype.deleteRule;l.CSSStyleSheet.prototype.deleteRule=new $c(D,{apply:pJ(function(T,B,A){var t=_.e(A).next().value,y=XI(B,h,q.styleMirror),F=y.id;y=y.styleId;(F&&F!==-1||y&&y!==-1)&&I({id:F,styleId:y,removes:[{index:t}]});return T.apply(B,A)})});
l.CSSStyleSheet.prototype.removeRule=function(T){return l.CSSStyleSheet.prototype.deleteRule.apply(this,[T])};
if(l.CSSStyleSheet.prototype.replace){var k=l.CSSStyleSheet.prototype.replace;l.CSSStyleSheet.prototype.replace=new $c(k,{apply:pJ(function(T,B,A){var t=_.e(A).next().value,y=XI(B,h,q.styleMirror),F=y.id;y=y.styleId;(F&&F!==-1||y&&y!==-1)&&I({id:F,styleId:y,replace:t});return T.apply(B,A)})})}if(l.CSSStyleSheet.prototype.replaceSync){var L=l.CSSStyleSheet.prototype.replaceSync;
l.CSSStyleSheet.prototype.replaceSync=new $c(L,{apply:pJ(function(T,B,A){var t=_.e(A).next().value,y=XI(B,h,q.styleMirror),F=y.id;y=y.styleId;(F&&F!==-1||y&&y!==-1)&&I({id:F,styleId:y,replaceSync:t});return T.apply(B,A)})})}var x={};
sva("CSSGroupingRule")?x.CSSGroupingRule=l.CSSGroupingRule:(sva("CSSMediaRule")&&(x.CSSMediaRule=l.CSSMediaRule),sva("CSSConditionRule")&&(x.CSSConditionRule=l.CSSConditionRule),sva("CSSSupportsRule")&&(x.CSSSupportsRule=l.CSSSupportsRule));var f={};Object.entries(x).forEach(function(T){var B=_.e(T);T=B.next().value;B=B.next().value;f[T]={insertRule:B.prototype.insertRule,deleteRule:B.prototype.deleteRule};B.prototype.insertRule=new $c(f[T].insertRule,{apply:pJ(function(A,t,y){var F=_.e(y),W=F.next().value;
F=F.next().value;var O=XI(t.parentStyleSheet,h,q.styleMirror),K=O.id;O=O.styleId;(K&&K!==-1||O&&O!==-1)&&I({id:K,styleId:O,adds:[{rule:W,index:[].concat(_.Nz(UR2(t)),[F||0])}]});return A.apply(t,y)})});
B.prototype.deleteRule=new $c(f[T].deleteRule,{apply:pJ(function(A,t,y){var F=_.e(y).next().value,W=XI(t.parentStyleSheet,h,q.styleMirror),O=W.id;W=W.styleId;(O&&O!==-1||W&&W!==-1)&&I({id:O,styleId:W,removes:[{index:[].concat(_.Nz(UR2(t)),[F])}]});return A.apply(t,y)})})});
return pJ(function(){l.CSSStyleSheet.prototype.insertRule=V;l.CSSStyleSheet.prototype.deleteRule=D;k&&(l.CSSStyleSheet.prototype.replace=k);L&&(l.CSSStyleSheet.prototype.replaceSync=L);Object.entries(x).forEach(function(T){var B=_.e(T);T=B.next().value;B=B.next().value;B.prototype.insertRule=f[T].insertRule;B.prototype.deleteRule=f[T].deleteRule})})};
MPj=function(G,b){var I=G.mirror;var h=G.stylesheetManager;var q=null;q=b.nodeName==="#document"?I.getId(b):I.getId(r2(b));var l,V,D;G=b.nodeName==="#document"?(l=b.defaultView)==null?void 0:l.Document:(V=b.ownerDocument)==null?void 0:(D=V.defaultView)==null?void 0:D.ShadowRoot;var k=(G==null?0:G.prototype)?Object.getOwnPropertyDescriptor(G==null?void 0:G.prototype,"adoptedStyleSheets"):void 0;if(q===null||q===-1||!G||!k)return function(){};
Object.defineProperty(b,"adoptedStyleSheets",{configurable:k.configurable,enumerable:k.enumerable,get:function(){var L;return(L=k.get)==null?void 0:L.call(this)},
set:function(L){var x,f=(x=k.set)==null?void 0:x.call(this,L);if(q!==null&&q!==-1)try{A$r(h,L,q)}catch(T){}return f}});
return pJ(function(){Object.defineProperty(b,"adoptedStyleSheets",{configurable:k.configurable,enumerable:k.enumerable,get:k.get,set:k.set})})};
ZEr=function(G,b){var I=G.styleDeclarationCb;var h=G.mirror;var q=G.ignoreCSSAttributes;var l=G.stylesheetManager;var V=b.win;var D=V.CSSStyleDeclaration.prototype.setProperty;V.CSSStyleDeclaration.prototype.setProperty=new $c(D,{apply:pJ(function(L,x,f){var T=_.e(f),B=T.next().value,A=T.next().value;T=T.next().value;if(q.has(B))return D.apply(x,[B,A,T]);var t,y=XI((t=x.parentRule)==null?void 0:t.parentStyleSheet,h,l.styleMirror);t=y.id;y=y.styleId;(t&&t!==-1||y&&y!==-1)&&I({id:t,styleId:y,set:{property:B,
value:A,priority:T},index:UR2(x.parentRule)});return L.apply(x,f)})});
var k=V.CSSStyleDeclaration.prototype.removeProperty;V.CSSStyleDeclaration.prototype.removeProperty=new $c(k,{apply:pJ(function(L,x,f){var T=_.e(f).next().value;if(q.has(T))return k.apply(x,[T]);var B,A=XI((B=x.parentRule)==null?void 0:B.parentStyleSheet,h,l.styleMirror);B=A.id;A=A.styleId;(B&&B!==-1||A&&A!==-1)&&I({id:B,styleId:A,remove:{property:T},index:UR2(x.parentRule)});return L.apply(x,f)})});
return pJ(function(){V.CSSStyleDeclaration.prototype.setProperty=D;V.CSSStyleDeclaration.prototype.removeProperty=k})};
tPv=function(G){var b=G.mediaInteractionCb;var I=G.blockClass;var h=G.blockSelector;var q=G.mirror;var l=G.sampling;G=G.doc;var V=pJ(function(k){return nJ(pJ(function(L){if((L=w2(L))&&!Oi(L,I,h,!0)){var x=L.currentTime,f=L.volume,T=L.muted,B=L.playbackRate,A=L.loop;b({type:k,id:q.getId(L),currentTime:x,volume:f,muted:T,playbackRate:B,loop:A})}}),l.media||500)}),D=[RL("play",V(0),G),
RL("pause",V(1),G),RL("seeked",V(2),G),RL("volumechange",V(3),G),RL("ratechange",V(4),G)];return pJ(function(){D.forEach(function(k){return k()})})};
zga=function(G){var b=G.fontCb;G=G.doc;var I=G.defaultView;if(!I)return function(){};
var h=[],q=new WeakMap,l=I.FontFace;I.FontFace=function(V,D,k){var L=new l(V,D,k);q.set(L,{family:V,buffer:typeof D!=="string",descriptors:k,fontSource:typeof D==="string"?D:JSON.stringify(Array.from(new Uint8Array(D)))});return L};
G=yR(G.fonts,"add",function(V){return function(D){setTimeout(pJ(function(){var k=q.get(D);k&&(b(k),q.delete(D))}),0);
return V.apply(this,[D])}});
h.push(function(){I.FontFace=l});
h.push(G);return pJ(function(){h.forEach(function(V){return V()})})};
omB=function(G){var b=G.doc,I=G.mirror,h=G.blockClass,q=G.blockSelector,l=G.selectionCb,V=!0;G=pJ(function(){var D=b.getSelection();if(D&&!(V&&(D==null?0:D.isCollapsed))){V=D.isCollapsed||!1;for(var k=[],L=D.rangeCount||0,x=0;x<L;x++){var f=D.getRangeAt(x),T=f.startContainer,B=f.startOffset,A=f.endContainer;f=f.endOffset;Oi(T,h,q,!0)||Oi(A,h,q,!0)||k.push({start:I.getId(T),startOffset:B,end:I.getId(A),endOffset:f})}l({ranges:k})}});
G();return RL("selectionchange",G)};
iEO=function(G){var b=G.doc;var I=G.customElementCb;return(G=b.defaultView)&&G.customElements?yR(G.customElements,"define",function(h){return function(q,l,V){try{I({define:{name:q}})}catch(D){console.warn("Custom element callback failed for "+q)}return h.apply(this,[q,l,V])}}):function(){}};
PWr=function(G,b){var I=G.mutationCb,h=G.mousemoveCb,q=G.mouseInteractionCb,l=G.scrollCb,V=G.viewportResizeCb,D=G.inputCb,k=G.mediaInteractionCb,L=G.styleSheetRuleCb,x=G.styleDeclarationCb,f=G.canvasMutationCb,T=G.fontCb,B=G.selectionCb,A=G.customElementCb;G.mutationCb=function(){var t=_.RI.apply(0,arguments);b.mutation&&b.mutation.apply(b,_.Nz(t));I.apply(null,_.Nz(t))};
G.mousemoveCb=function(){var t=_.RI.apply(0,arguments);b.mousemove&&b.mousemove.apply(b,_.Nz(t));h.apply(null,_.Nz(t))};
G.mouseInteractionCb=function(){var t=_.RI.apply(0,arguments);b.mouseInteraction&&b.mouseInteraction.apply(b,_.Nz(t));q.apply(null,_.Nz(t))};
G.scrollCb=function(){var t=_.RI.apply(0,arguments);b.scroll&&b.scroll.apply(b,_.Nz(t));l.apply(null,_.Nz(t))};
G.viewportResizeCb=function(){var t=_.RI.apply(0,arguments);b.viewportResize&&b.viewportResize.apply(b,_.Nz(t));V.apply(null,_.Nz(t))};
G.inputCb=function(){var t=_.RI.apply(0,arguments);b.input&&b.input.apply(b,_.Nz(t));D.apply(null,_.Nz(t))};
G.mediaInteractionCb=function(){var t=_.RI.apply(0,arguments);b.mediaInteaction&&b.mediaInteaction.apply(b,_.Nz(t));k.apply(null,_.Nz(t))};
G.styleSheetRuleCb=function(){var t=_.RI.apply(0,arguments);b.styleSheetRule&&b.styleSheetRule.apply(b,_.Nz(t));L.apply(null,_.Nz(t))};
G.styleDeclarationCb=function(){var t=_.RI.apply(0,arguments);b.styleDeclaration&&b.styleDeclaration.apply(b,_.Nz(t));x.apply(null,_.Nz(t))};
G.canvasMutationCb=function(){var t=_.RI.apply(0,arguments);b.canvasMutation&&b.canvasMutation.apply(b,_.Nz(t));f.apply(null,_.Nz(t))};
G.fontCb=function(){var t=_.RI.apply(0,arguments);b.font&&b.font.apply(b,_.Nz(t));T.apply(null,_.Nz(t))};
G.selectionCb=function(){var t=_.RI.apply(0,arguments);b.selection&&b.selection.apply(b,_.Nz(t));B.apply(null,_.Nz(t))};
G.customElementCb=function(){var t=_.RI.apply(0,arguments);b.customElement&&b.customElement.apply(b,_.Nz(t));A.apply(null,_.Nz(t))}};
dRu=function(G,b){b=b===void 0?{}:b;var I=G.doc.defaultView;if(!I)return function(){};
PWr(G,b);var h;G.recordDOM&&(h=VPv(G,G.doc));var q=c$O(G),l=kr2(G),V=vmd(G),D=LQa(G,{win:I}),k=Tur(G),L=tPv(G),x=function(){},f=function(){},T=function(){},B=function(){};
G.recordDOM&&(x=gma(G,{win:I}),f=MPj(G,G.doc),T=ZEr(G,{win:I}),G.collectFonts&&(B=zga(G)));var A=omB(G),t=iEO(G),y=[];G=_.e(G.plugins);for(b=G.next();!b.done;b=G.next())b=b.value,y.push(b.observer(b.callback,I,b.options));return pJ(function(){Ei.forEach(function(W){return W.reset()});
var F;(F=h)==null||F.disconnect();q();l();V();D();k();L();x();f();T();B();A();t();y.forEach(function(W){return W()})})};
Buu=function(G){return typeof window[G]!=="undefined"};
sva=function(G){return!!(typeof window[G]!=="undefined"&&window[G].prototype&&"insertRule"in window[G].prototype&&"deleteRule"in window[G].prototype)};
y$u=function(G){G=new Uint8Array(G);for(var b="",I=0;I<G.byteLength;I++)b+=String.fromCharCode(G[I]);return btoa(b)};
r$s=function(G,b,I){if(G instanceof Array)return G.map(function(q){return r$s(q,b,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 h=G.constructor.name;G=y$u(G);return{rr_type:h,base64:G}}if(G instanceof DataView)return{rr_type:G.constructor.name,args:[r$s(G.buffer,b,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:[r$s(G.data,b,I),G.width,G.height]};if(FQq(G,b)||typeof G==="object")return h=G.constructor.name,G=HEu(G,b,I),{rr_type:h,index:G}}return G};
acO=function(G,b,I,h){for(var q=[],l=_.e(Object.getOwnPropertyNames(b.CanvasRenderingContext2D.prototype)),V=l.next(),D={};!V.done;D={prop$jscomp$58:void 0},V=l.next()){D.prop$jscomp$58=V.value;try{if(typeof b.CanvasRenderingContext2D.prototype[D.prop$jscomp$58]==="function"){var k=yR(b.CanvasRenderingContext2D.prototype,D.prop$jscomp$58,function(L){return function(x){return function(){var f=_.RI.apply(0,arguments),T=this;Oi(this.canvas,I,h,!0)||setTimeout(function(){var B=WQr(f,b,T);G(T.canvas,{type:Gg["2D"],
property:L.prop$jscomp$58,args:B})},0);
return x.apply(this,f)}}}(D));
q.push(k)}}catch(L){V=RRX(b.CanvasRenderingContext2D.prototype,D.prop$jscomp$58,{set:function(x){return function(f){G(this.canvas,{type:Gg["2D"],property:x.prop$jscomp$58,args:[f],setter:!0})}}(D)}),q.push(V)}}return function(){q.forEach(function(L){return L()})}};
NuO=function(G,b,I,h){var q=[];try{var l=yR(G.HTMLCanvasElement.prototype,"getContext",function(V){return function(D){var k=_.RI.apply(1,arguments);if(!Oi(this,b,I,!0)){var L=D==="experimental-webgl"?"webgl":D;"__context"in this||(this.__context=L);h&&["webgl","webgl2"].includes(L)&&(k[0]&&typeof k[0]==="object"?(L=k[0],L.preserveDrawingBuffer||(L.preserveDrawingBuffer=!0)):k.splice(0,1,{preserveDrawingBuffer:!0}))}return V.apply(this,[D].concat(_.Nz(k)))}});
q.push(l)}catch(V){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){q.forEach(function(V){return V()})}};
Y$O=function(G,b,I,h,q,l){for(var V=[],D=_.e(Object.getOwnPropertyNames(G)),k=D.next(),L={};!k.done;L={prop$jscomp$59:void 0},k=D.next())if(L.prop$jscomp$59=k.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(L.prop$jscomp$59))try{if(typeof G[L.prop$jscomp$59]==="function"){var x=yR(G,L.prop$jscomp$59,function(f){return function(T){return function(){var B=_.RI.apply(0,arguments),A=T.apply(this,B);HEu(A,l,this);"tagName"in this.canvas&&!Oi(this.canvas,h,q,!0)&&(B=
WQr(B,l,this),I(this.canvas,{type:b,property:f.prop$jscomp$59,args:B}));return A}}}(L));
V.push(x)}}catch(f){k=RRX(G,L.prop$jscomp$59,{set:function(T){return function(B){I(this.canvas,{type:b,property:T.prop$jscomp$59,args:[B],setter:!0})}}(L)}),V.push(k)}return V};
CWd=function(G,b,I,h){var q=[];q.push.apply(q,_.Nz(Y$O(b.WebGLRenderingContext.prototype,1,G,I,h,b)));typeof b.WebGL2RenderingContext!=="undefined"&&q.push.apply(q,_.Nz(Y$O(b.WebGL2RenderingContext.prototype,2,G,I,h,b)));return function(){q.forEach(function(l){return l()})}};
IDO=function(G){var b=G=G===void 0?{}:G,I=b.emit,h=b.checkoutEveryNms,q=b.checkoutEveryNth,l=b.blockClass===void 0?"rr-block":b.blockClass,V=b.blockSelector===void 0?null:b.blockSelector,D=b.ignoreClass===void 0?"rr-ignore":b.ignoreClass,k=b.ignoreSelector===void 0?null:b.ignoreSelector,L=b.maskTextClass===void 0?"rr-mask":b.maskTextClass,x=b.maskTextSelector===void 0?null:b.maskTextSelector,f=b.inlineStylesheet===void 0?!0:b.inlineStylesheet,T=b.maskAllInputs,B=b.maskInputOptions,A=b.slimDOMOptions,
t=b.maskInputFn,y=b.maskTextFn,F=b.hooks,W=b.packFn,O=b.sampling===void 0?{}:b.sampling,K=b.dataURLOptions===void 0?{}:b.dataURLOptions,u=b.mousemoveWait,w=b.recordDOM===void 0?!0:b.recordDOM,$a=b.recordCanvas===void 0?!1:b.recordCanvas,ev=b.recordCrossOriginIframes===void 0?!1:b.recordCrossOriginIframes,LO=b.recordAfter===void 0?G.recordAfter==="DOMContentLoaded"?G.recordAfter:"load":b.recordAfter,td=b.userTriggeredOnInput===void 0?!1:b.userTriggeredOnInput,xa=b.collectFonts===void 0?!1:b.collectFonts,
Uj=b.inlineImages===void 0?!1:b.inlineImages,W2=b.plugins,is=b.keepIframeSrcFn===void 0?function(){return!1}:b.keepIframeSrcFn,su=b.ignoreCSSAttributes===void 0?new Set([]):b.ignoreCSSAttributes;
bU=b.errorHandler;var an=ev?window.parent===window:!0,A5=!1;if(!an)try{window.parent.document&&(A5=!1)}catch(cX){A5=!0}if(an&&!I)throw Error("$e");if(!an&&!A5)return function(){};
u!==void 0&&O.mousemove===void 0&&(O.mousemove=u);I3.reset();var XO=T===!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}:B!==void 0?B:{password:!0},kb=A===!0||A==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:A==="all",headMetaDescKeywords:A==="all",headTitleMutations:A==="all"}:
A?A:{};XZs();var rz,on=0,Ac=function(cX){for(var Ga=_.e(W2||[]),wX=Ga.next();!wX.done;wX=Ga.next())wX=wX.value,wX.eventProcessor&&(cX=wX.eventProcessor(cX));W&&!A5&&(cX=W(cX));return cX};
h_=function(cX,Ga){cX.timestamp=DR2();var wX;((wX=Ei[0])==null?0:wX.isFrozen())&&cX.type!==2&&(cX.type!==3||cX.data.source!==0)&&Ei.forEach(function(TA){return TA.unfreeze()});
an?I==null||I(Ac(cX),Ga):A5&&(Ga={type:"rrweb",event:Ac(cX),origin:window.location.origin,isCheckout:Ga},window.parent.postMessage(Ga,"*"));cX.type===2?(rz=cX,on=0):cX.type!==3||cX.data.source===0&&cX.data.isAttachIframe||(on++,cX=h&&cX.timestamp-rz.timestamp>h,(q&&on>=q||cX)&&J$v(!0))};
var U1=function(cX){h_({type:3,data:Object.assign({},{source:0},cX)})},mp=function(cX){return h_({type:3,
data:Object.assign({},{source:3},cX)})},bn=function(cX){return h_({type:3,
data:Object.assign({},{source:9},cX)})},xb=new KQa({mutationCb:U1,
adoptedStyleSheetCb:function(cX){return h_({type:3,data:Object.assign({},{source:15},cX)})}}),j8=new u4q({mirror:I3,
mutationCb:U1,stylesheetManager:xb,recordCrossOriginIframes:ev,wrappedEmit:h_});G=_.e(W2||[]);for(b=G.next();!b.done;b=G.next())b=b.value,b.getMirror&&b.getMirror({nodeMirror:I3,crossOriginIframeMirror:j8.crossOriginIframeMirror,crossOriginIframeStyleMirror:j8.crossOriginIframeStyleMirror});var BX=new Rgv;nmO=new OEX({recordCanvas:$a,mutationCb:bn,win:window,blockClass:l,blockSelector:V,mirror:I3,sampling:O.canvas,dataURLOptions:K});var I5=new w0q({mutationCb:U1,scrollCb:mp,bypassOptions:{blockClass:l,
blockSelector:V,maskTextClass:L,maskTextSelector:x,inlineStylesheet:f,maskInputOptions:XO,dataURLOptions:K,maskTextFn:y,maskInputFn:t,recordCanvas:$a,inlineImages:Uj,sampling:O,slimDOMOptions:kb,iframeManager:j8,stylesheetManager:xb,canvasManager:nmO,keepIframeSrcFn:is,processedNodeManager:BX},mirror:I3});J$v=function(cX){cX=cX===void 0?!1:cX;if(w){h_({type:4,data:{href:window.location.href,width:wZO(),height:O4O()}},cX);xb.reset();I5.init();Ei.forEach(function(wX){return wX.lock()});
var Ga=u7O({mirror:I3,blockClass:l,blockSelector:V,maskTextClass:L,maskTextSelector:x,inlineStylesheet:f,maskAllInputs:XO,maskTextFn:y,maskInputFn:t,slimDOM:kb,dataURLOptions:K,recordCanvas:$a,inlineImages:Uj,onSerialize:function(wX){wX.nodeName==="IFRAME"&&I3.nodeMetaMap.get(wX)&&Ems(j8,wX);$Rd(wX,I3)&&p0q(xb,wX);wX&&FI(wX)&&S$O(I5,FI(wX),document)},
onIframeLoad:function(wX,TA){X0O(j8,wX,TA);wX.contentWindow&&wX.contentDocument&&$3s(I5,wX.contentWindow.Element,wX.contentDocument)},
onStylesheetLoad:function(wX,TA){Gkr(xb,wX,TA)},
keepIframeSrcFn:is});Ga?(h_({type:2,data:{node:Ga,initialOffset:n12(window)}},cX),Ei.forEach(function(wX){return wX.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&A$r(xb,document.adoptedStyleSheets,I3.getId(document))):console.warn("Failed to snapshot the document")}};
try{var ys=[],nQ=function(cX){var Ga;return pJ(dRu)({mutationCb:U1,mousemoveCb:function(wX,TA){return h_({type:3,data:{source:TA,positions:wX}})},
mouseInteractionCb:function(wX){return h_({type:3,data:Object.assign({},{source:2},wX)})},
scrollCb:mp,viewportResizeCb:function(wX){return h_({type:3,data:Object.assign({},{source:4},wX)})},
inputCb:function(wX){return h_({type:3,data:Object.assign({},{source:5},wX)})},
mediaInteractionCb:function(wX){return h_({type:3,data:Object.assign({},{source:7},wX)})},
styleSheetRuleCb:function(wX){return h_({type:3,data:Object.assign({},{source:8},wX)})},
styleDeclarationCb:function(wX){return h_({type:3,data:Object.assign({},{source:13},wX)})},
canvasMutationCb:bn,fontCb:function(wX){return h_({type:3,data:Object.assign({},{source:10},wX)})},
selectionCb:function(wX){h_({type:3,data:Object.assign({},{source:14},wX)})},
customElementCb:function(wX){h_({type:3,data:Object.assign({},{source:16},wX)})},
blockClass:l,ignoreClass:D,ignoreSelector:k,maskTextClass:L,maskTextSelector:x,maskInputOptions:XO,inlineStylesheet:f,sampling:O,recordDOM:w,recordCanvas:$a,inlineImages:Uj,userTriggeredOnInput:td,collectFonts:xa,doc:cX,maskInputFn:t,maskTextFn:y,keepIframeSrcFn:is,blockSelector:V,slimDOMOptions:kb,dataURLOptions:K,mirror:I3,iframeManager:j8,stylesheetManager:xb,shadowDomManager:I5,processedNodeManager:BX,canvasManager:nmO,ignoreCSSAttributes:su,plugins:(W2==null?void 0:(Ga=W2.filter(function(wX){return wX.observer}))==
null?void 0:Ga.map(function(wX){return{observer:wX.observer,
options:wX.options,callback:function(TA){return h_({type:6,data:{plugin:wX.name,payload:TA}})}}}))||[]},F)};
b62(j8,function(cX){try{ys.push(nQ(cX.contentDocument))}catch(Ga){console.warn(Ga)}});
var vX=function(){J$v();ys.push(nQ(document))};
document.readyState==="interactive"||document.readyState==="complete"?vX():(ys.push(RL("DOMContentLoaded",function(){h_({type:0,data:{}});LO==="DOMContentLoaded"&&vX()})),ys.push(RL("load",function(){h_({type:1,
data:{}});LO==="load"&&vX()},window)));
return function(){ys.forEach(function(cX){try{cX()}catch(Ga){String(Ga).toLowerCase().includes("cross-origin")||console.warn(Ga)}});
BX.destroy();bU=void 0}}catch(cX){console.warn(cX)}};
_.Z=function(G,b){b=Xa(Ev(b));G.innerHTML=b};
jwu=function(G){var b=hld;b||(b=qav(),b=hld=_.Cy.transpose(b));b=b[G];return typeof b==="string"?b:_.qi(G)};
lDs=function(G){G=String(G).toLowerCase();var b=qav()[G];return typeof b==="string"?b:_.ju(G)};
m3j=function(G){G=G.toLowerCase();G=qav()[G];return typeof G==="string"?G:null};
qav=function(){if(!elu){for(var G=Object.assign({},V0v),b=_.e(D3r),I=b.next();!I.done;I=b.next())I=I.value,G[I.toLowerCase()]=I;elu=G}return elu};
vlX=function(G,b){var I=window.customElements;return I&&I.get(G)||cus[G]===!0?2:b.name==="HTMLUnknownElement"?1:b.name==="HTMLElement"&&kkj.test(G)?3:0};
x3q=function(G,b){switch(b){case "innerHTML":return LMj(G)===1?2:null;case "textContent":return G=LMj(G),G===1||G===6?1:null;default:var I,h;return(h=(I=Qwr[G.localName])==null?void 0:I[b])!=null?h:null}};
LMj=function(G){var b=G.localName,I=vlX(b,G.constructor);switch(I){case 0:case 1:return fDj(b,G);case 3:case 2:return 1;default:_.Eu(I,"got an unknown element classification")}};
fDj=function(G,b){var I=Object.hasOwnProperty.call(TYd,G)?TYd[G]:null;return I!==null?I:Object.hasOwnProperty.call(BYr,G)&&b instanceof SVGElement?BYr[G]:null};
U3O=function(G,b){return b};
glO=function(G){return(G=G.split(swr,2))?{url:G[0],metadata:G[1]}:null};
M0r=function(G){var b=String(G.url).replace(Aup,encodeURIComponent);if(G=G.metadata){Aup.lastIndex=0;if(Aup.test(G))return null;b+=" "+G}return b};
olj=function(G){function b(L){var x=L.localName;if(!L.getAttribute("is")&&vlX(x,L.constructor)===2){var f;return(f=k)!=null?f:k=document.createElement("polyresinuncustomized")}(L=D[x])||(L=D[x]=document.createElement(x));return L}
var I=G.reportHandler||void 0,h=G.safeTypesBridge||Z6u,q=/^$/;if(G=G.allowedIdentifierPrefixes){G=_.e(G);for(var l=G.next();!l.done;l=G.next())q=new RegExp(q.source+"|^"+_.t0p(l.value))}I&&I(!1,"initResin",null);var V=zlX(q,h,I),D={},k=null;return function(L,x,f){var T=L.nodeType;if(T!==Node.ELEMENT_NODE){if(T===Node.TEXT_NODE){x=L.parentElement;f=!x;if(x&&x.nodeType===Node.ELEMENT_NODE){T=x.localName;var B=vlX(T,x.constructor);switch(B){case 0:case 1:x=fDj(T,x);f=x===1||x===6;break;case 3:case 2:f=
!0;break;default:_.Eu(B,"got an unknown element classification")}}if(f)return function(F){return""+h(F,"STRING",F)}}return function(F){if(!F&&F!==document.all)return F;
I&&I(!0,"Failed to sanitize "+(L.parentElement&&L.parentElement.nodeName)+" #text node to value "+F,L.parentElement);return lU}}var A=L.localName;
T=b(L);var t=null;switch(f){case "attribute":if(lDs(x)in T)break;return function(F){return F};
case "property":if(x in T){t=x3q(T,x);break}if((B=m3j(x))&&B in T)break;return function(F){return F};
default:_.Eu(f,"got an unknown resin type, expected either 'property' or 'attribute'")}var y=f==="attribute"?x.toLowerCase():jwu(x);t||(t=Mev(A,y,function(F){var W=L.getAttribute(F);return!W||/[\[\{]/.test(F)?null:W}));
return function(F){var W=mL,O=null;if(!F&&F!==document.all)return F;if(t!=null){var K=V[t],u=K.safeType;O=K.safeReplacement;u&&(W=h(F,u,mL));W===mL&&(K.filterString?(W=String(h(F,"STRING",F)),W=K.filterString(A,y,W)):K.filterRaw&&(W=K.filterRaw(A,y,F,L)),W===O&&(W=mL))}W===mL&&(W=O||lU,I&&I(!0,"Failed to sanitize attribute of <"+A+">: <"+A+" "+y+'="'+F+'">',L));return W}}};
zlX=function(G,b,I){return[,{filterRaw:function(h,q,l){return l},
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:i6O,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:i6O,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:lU,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:POO,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(h,q,l){l=
String(l).toLowerCase();return zxp(h,q,l)?l:lU},
safeReplacement:lU,safeType:void 0},,{filterRaw:void 0,filterString:function(h,q,l){return G.test(l)?l:lU},
safeReplacement:lU,safeType:"CONSTANT"},{filterRaw:function(h,q,l,V){if(typeof l==="string")var D=(D=l.match(d3u))?D.map(glO).filter(Boolean):[];else if(Array.isArray(l))D=l;else return i6O;var k=D;D=[];var L=[],x={};if(Array.isArray(k))for(var f=0,T=k.length;f<T;++f){var B=k[f],A=B&&B.url;if(A){var t=b(A,"URL",x);if(t){var y=t!==x;(y?D:L).push({url:y?t:A,metadata:B.metadata})}}}else L.push(k);k=L.length?JSON.stringify(L):null;L=mL;if(D.length){if(!Array.isArray(D))throw Error();L=D.map(M0r).filter(Boolean).join(" , ")||
mL}k&&I&&I(!0,"Failed to sanitize attribute value of <"+h+">: <"+h+" "+q+'="'+l+'">: '+k,V);return L===mL?i6O:L},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
yud=function(G){var b=olj(G);return function(I,h,q,l){return l||l===document.all?b(I,h,q)(l):l}};
eu=function(G,b){function I(){function q(D,k,L){for(k=Reflect.getMetadata("parameters",D)||[];k.length<=L;)k.push(null);k[L]=k[L]||[];k[L].push(V);Reflect.defineMetadata(k,D);return D}
var l=_.RI.apply(0,arguments);if(this instanceof I)return h.apply(this,l),this;var V=new (Function.prototype.bind.apply(I,[null].concat(_.Nz(l))));q.annotation=V;return q}
var h=rur(b);I.prototype.toString=function(){return"@"+G};
return I.annotationCls=I};
rur=function(G){return function(){var b=_.RI.apply(0,arguments),I=this;G.forEach(function(h,q){q=b[q];if(Array.isArray(h))I[h[0]]=q&&q!==void 0?q:h[1];else for(var l in h)I[l]=q&&q[l]!==void 0?q[l]:h[l]})}};
FMj=function(G){return G!==void 0&&G!==null};
Vf=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 b=G.indexOf("\n");return b===-1?G:G.substring(0,b)};
H6O=function(G){G.__forward_ref__=H6O;G.toString=function(){return Vf(this())};
return G};
DP=function(G){return typeof G==="function"&&G.hasOwnProperty("__forward_ref__")&&G.__forward_ref__===H6O?G():G};
WM2=function(G){return G?G.map(function(b){return new (Function.prototype.bind.apply(b.type.annotationCls,[null].concat(_.Nz(b.args?b.args:[]))))}):[]};
aDv=function(G){for(var b=[],I=0;I<G.length;++I){if(b.indexOf(G[I])>-1){b.push(G[I]);break}b.push(G[I])}return b};
NYa=function(G){return G.length>1?" ("+aDv(G.slice().reverse()).map(function(b){return Vf(b.token)}).join(" -> ")+")":""};
COu=function(G,b,I,h){if(h){var q=Error("cf``"+(h instanceof Error?h.message:h));q.ngOriginalError=h}else q=Error();q.addKey=Yav;q.keys=[b];q.injectors=[G];q.constructResolvingMessage=I;q.message=q.constructResolvingMessage();q.ngOriginalError=h;return q};
Yav=function(G,b){this.injectors.push(G);this.keys.push(b);this.message=this.constructResolvingMessage()};
Jus=function(G,b){return COu(G,b,function(){return"No provider for "+Vf(this.keys[0].token)+"!"+NYa(this.keys)})};
KMj=function(G,b){return COu(G,b,function(){return"Cannot instantiate cyclic dependency!"+NYa(this.keys)})};
uzs=function(G,b,I){return COu(G,I,function(){var h=Vf(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+h+"!"+NYa(this.keys)+"."},b)};
Rld=function(G,b){for(var I=[],h=0,q=b.length;h<q;h++){var l=b[h];l&&l.length!=0?I.push(l.map(Vf).join(" ")):I.push("?")}return Error("gf`"+Vf(G)+"`"+I.join(", ")+"`"+Vf(G))};
Xoq=function(G){var b=void 0,I=void 0;if(G&&G.useClass!==void 0){b=G.useClass;var h=DP(G.useClass);var q=nlr.factory(h);h=O6s(h)}else G&&G.useExisting!==void 0?(q=function(l){return l},h=[woX(cq.get(DP(G.useExisting)))]):G&&G.useFactory!==void 0?(q=G.useFactory,h=Eld(G.useFactory,G.deps)):(I=G.useValue,q=function(){return G.useValue},h=por);
return new SaB(q,h,b,I)};
GSj=function(G){return new $HO(cq.get(DP(G.provide)),[Xoq(G)],G.multi)};
IQr=function(G){G=bFu(G,[]).map(GSj);for(var b=new Map,I=0;I<G.length;I++){var h=G[I],q=b.get(h.key.id);if(q){if(h.multiProvider!==q.multiProvider)throw Error("jf`"+q+"`"+h);if(h.multiProvider)for(var l=0;l<h.resolvedFactories.length;l++)q.resolvedFactories.push(h.resolvedFactories[l]);else b.set(h.key.id,h)}else q=void 0,h.multiProvider?q=new $HO(h.key,h.resolvedFactories.slice(),h.multiProvider):q=h,b.set(h.key.id,q)}return Array.from(b.values())};
bFu=function(G,b){G.forEach(function(I){if(I instanceof haj)b.push({provide:I,useClass:I});else if(I&&typeof I=="object"&&I.provide!==void 0)b.push(I);else if(I instanceof Array)bFu(I,b);else throw Error("ff`"+I);});
return b};
Eld=function(G,b){if(b){var I=b.map(function(h){return[h]});
return b.map(function(h){return qcv(G,h,I)})}return O6s(G)};
O6s=function(G){var b=nlr.parameters(G);if(!b)return[];if(b.some(function(I){return I==null}))throw Rld(G,b);
return b.map(function(I){return qcv(G,I,b)})};
qcv=function(G,b,I){var h=null,q=!1;if(!Array.isArray(b))return b instanceof jz2?lQO(b.token,q,null):lQO(b,q,null);for(var l=null,V=0;V<b.length;++V){var D=b[V];if(D instanceof haj)h=D;else if(D instanceof jz2)h=D.token;else if(D instanceof mHr)q=!0;else if(D instanceof eav||D instanceof VMs)l=D}h=DP(h);if(h!=null)return lQO(h,q,l);throw Rld(G,I);};
lQO=function(G,b,I){return new DHO(cq.get(DP(G)),b,I)};
cw2=function(G,b){for(var I=Array(G.providers.length),h=0;h<G.providers.length;++h){var q=h;if(h<0||h>=G.providers.length)throw Error("hf`"+h);I[q]=b(G.providers[h])}return I};
kSu=function(G){return typeof G==="function"&&nlr.parameters(G).every(function(b){return!!b})};
Qzr=function(G){var b=vjj;L8a.get(G)||L8a.set(G,new b);return L8a.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,b){var I,h;if(G.contains(b))return!0;G=_.kc(G).querySelectorAll("content,slot");for(I=0;I<G.length;++I){var q=_.kc(G[I]).getDistributedNodes();for(h=0;h<q.length;++h)if(q[h].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(q[h],b))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],xHB=G.pageX,fQO=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,b=vq.length;G<b;G++)document.addEventListener(vq[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,b=vq.length;G<b;G++)document.removeEventListener(vq[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 b=_.kc(G).rootTarget;G.type!=="touchmove"&&TIO!==b&&(TIO=b,BIu=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.kc(G).path));if(!BIu.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(BIu,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 b=[],I=G.indexOf(UHB),h=0;h<=I;h++)if(G[h].nodeType===Node.ELEMENT_NODE){var q=G[h],l=q.style;l.overflow!=="scroll"&&l.overflow!=="auto"&&(l=window.getComputedStyle(q));l.overflow!=="scroll"&&l.overflow!=="auto"||b.push(q)}return b};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G,b,I){if(b||I)for(var h=Math.abs(I)>=Math.abs(b),q=0;q<G.length;q++){var l=G[q];if(h?I<0?l.scrollTop>0:l.scrollTop<l.scrollHeight-l.clientHeight:b<0?l.scrollLeft>0:l.scrollLeft<l.scrollWidth-l.clientWidth)return l}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){var b={deltaX:G.deltaX,deltaY:G.deltaY};"deltaX"in G||("wheelDeltaX"in G&&"wheelDeltaY"in G?(b.deltaX=-G.wheelDeltaX,b.deltaY=-G.wheelDeltaY):"wheelDelta"in G?(b.deltaX=0,b.deltaY=-G.wheelDelta):"axis"in G?(b.deltaX=G.axis===1?G.detail:0,b.deltaY=G.axis===2?G.detail:0):G.targetTouches&&(G=G.targetTouches[0],b.deltaX=xHB-G.pageX,b.deltaY=fQO-G.pageY));return b};
szp=function(G){this.element=G;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Awv=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");_.kc(this.waveContainer).appendChild(this.wave);gjr(this)};
Lv=function(G,b){for(var I in G)if(I.toLowerCase()===b.toLowerCase())return G[I]};
MMX=function(G,b){for(var I in G)if(I.toLowerCase()===b.toLowerCase()){delete G[I];break}};
tMO=function(G){G=_.Cy.clone(G);for(var b=0;b<ZFO.length;++b){var I=ZFO[b],h=Lv(G,I);h&&(G["X-Goog-Upload-Header-"+I]=h,MMX(G,I))}return G};
zad=function(G){G=_.Cy.clone(G);MMX(G,"X-Goog-Upload-Status")};
iFv=function(G){return ojj.some(function(b){return b.test(G)})};
rwO=function(G,b){var I;var h=(I=G.formContent)==null?void 0:I.locale;I=h==null?void 0:h.split("-")[0];h=h&&PYv.includes(h)?h:I&&PYv.includes(I)?I:void 0;h=(h!=null?h:"en").replaceAll("-","_").toLowerCase();var q;G=((q=G.initializationData)==null?0:q.useNightlyRelease)?"nightly":"live";var l;return(b==null?0:(l=b.getEnableAlohaBinarySplit)==null?0:l.call(b))?_.Ba(dHu,G):_.Ba(ywp,G,h)};
W8X=function(G,b,I,h){if(F8v&&HF2===b)return F8v;HF2=b;var q=rwO(G,h);return F8v=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(l,V){var D=_.ol("SCRIPT");_.mf(D,q);D.onload=function(){b.feedbackV2GlobalObject?l(b.feedbackV2GlobalObject):V(Error("mf"))};
D.onerror=function(){V(Error("nf`"+q.toString()))};
I.body.appendChild(D)})};
Ycr=function(G,b,I,h){if(aQp&&NIu===b)return aQp;NIu=b;var q=rwO(G,h);return aQp=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(l,V){var D=_.ol("SCRIPT");_.mf(D,q);D.onload=function(){b.feedbackV2GlobalObject?l(b.feedbackV2GlobalObject):V(Error("mf"))};
D.onerror=function(){V(Error("nf`"+q.toString()))};
I.body.appendChild(D)})};
CYd=function(G,b,I,h,q){q=q===void 0?!0:q;var l,V,D,k,L;return _.c(function(x){switch(x.nextAddress){case 1:return l=Date.now(),x.yield(W8X(G,I,h,b),2);case 2:V=x.yieldResult;if(!(q||((k=G.initializationData)==null?0:k.useNightlyRelease)||((L=G.initializationData)==null?0:L.isLocalServer))){D=V.initializeFeedbackClient(G,l,b);x.jumpTo(3);break}return x.yield(V.initializeFeedbackClientAsync(G,l,b),4);case 4:D=x.yieldResult;case 3:return D.initiateAloha(),x.return(D)}})};
Jwr=function(G,b,I,h){var q,l,V;return _.c(function(D){if(D.nextAddress==1)return q=Date.now(),D.yield(Ycr(G,I,h.document,b),2);if(D.nextAddress!=3)return l=D.yieldResult,D.yield(l.initializeFeedbackClientAsync(G,q,b,h),3);V=D.yieldResult;V.initiateAloha();return D.return(V)})};
K8j=function(G,b,I){var h=!0;h=h===void 0?!0:h;var q,l,V,D,k,L,x,f;return _.c(function(T){q=I||_.hd;if((l=b)==null?0:(D=(V=l).getEnableAlohaBinarySplit)==null?0:D.call(V)){k=q;if(k.isFormOpened)throw new Qf;k.isFormOpened=!0;G.callbacks=G.callbacks||{};L=G.callbacks.onClose||function(){};
G.callbacks.onClose=function(B){k.isFormOpened=!1;L(B)};
try{return T.return(Jwr(G,b,k,q))}catch(B){throw k.isFormOpened=!1,B;}}else{x=q;if(x.isFormOpened)throw new Qf;x.isFormOpened=!0;G.callbacks=G.callbacks||{};f=G.callbacks.onClose||function(){};
G.callbacks.onClose=function(B){x.isFormOpened=!1;f(B)};
try{return T.return(CYd(G,b,x,q.document,h))}catch(B){throw x.isFormOpened=!1,B;}}_.ip(T)})};
wna=function(G,b){return _.c(function(I){return I.return(new Promise(function(h,q){Number.isInteger(Number(G))&&Number(G)>0?(q=uHB(b!=null?b:"")+"/aloha_form_properties?productId="+G,Rap(q,function(l){l=l.target;var V=null;try{var D=JSON,k=D.stringify;if(l.JSC$9869_xhr_){var L=l.JSC$9869_xhr_.responseText;L.indexOf(")]}'\n")==0&&(L=L.substring(5));var x=(0,_.xc)(L)}else x=void 0;V=OAu(njr,k.call(D,x))}catch(f){k=new njr,x=OFO(),x=_.fv(x,13,!1),x=_.fv(x,14,!0),x=_.fv(x,15,!0),x=_.fv(x,20,!1),V=_.ZK(k,
1,x)}h(V)},"GET","",{},2E3,!0)):q(Error("of`"+G))}))})};
uHB=function(G){return iFv(G)?G:"https://www.google.com/tools/feedback"};
XnO=function(G){G=G.match(new RegExp(Ej2,"gi"))||[];G=_.e(G);for(var b=G.next();!b.done;b=G.next()){b=b.value;a:{var I=_.e(pns);for(var h=I.next();!h.done;h=I.next())if(h.value.test(b)){I=!1;break a}I=!0}if(!I)a:{I=_.e(ScO);for(h=I.next();!h.done;h=I.next())if(h.value.test(b)){I=!0;break a}I=!1}if(I)return!0}return!1};
$sO=function(G,b){var I={},h=Object.keys(G);h=_.e(h);for(var q=h.next();!q.done;q=h.next())q=q.value,I[q]=b(q,G[q]);return I};
GTp=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"}};
Iiq=function(G){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(G),I=new Uint8Array(G);window.crypto.getRandomValues(I);for(var h=0;h<b.length;h++)b[h]=I[h];return b}catch(l){}b=Array(G);for(I=0;I<G;I++){h=Date.now();for(var q=0;q<h%23;q++)b[I]=Math.random();b[I]=Math.floor(Math.random()*256)}if(bYX)for(I=1,h=0;h<bYX.length;h++)b[I%G]^=b[(I-1)%G]/4^bYX.charCodeAt(h),I++;return b};
Bq=function(G){G=Iiq(G);for(var b=[],I=0;I<G.length;I++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(G[I]&63));return b.join("")};
hqO=function(){var G=_.hd.ytLoggingDocDocumentNonce_;G||(G=Bq(16),_.cz("ytLoggingDocDocumentNonce_",G));return G};
jup=function(G){G&&_.C1("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:qKj,clientScreenNonce:G})};
li2=function(G){return _.wy("client-screen-nonce-store",{})[G===void 0?0:G]};
ms2=function(G,b){b=b===void 0?0:b;var I=_.wy("client-screen-nonce-store");I||(I={},_.OB("client-screen-nonce-store",I));I[b]=G};
eqr=function(G){G=G===void 0?0:G;return G===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+G};
VbO=function(G){return _.wy(eqr(G===void 0?0:G))};
_.s3=function(G){return(G=VbO(G===void 0?0:G))?new U3({veType:G,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Dsu=function(){var G=_.wy("csn-to-ctt-auth-info");G||(G={},_.OB("csn-to-ctt-auth-info",G));return G};
crO=function(){return Object.values(_.wy("client-screen-nonce-store",{})).filter(function(G){return G!==void 0})};
_.gL=function(G){G=li2(G===void 0?0:G);if(!G&&!_.Sk("USE_CSN_FALLBACK",!0))return null;G||(G="UNDEFINED_CSN");return G?G:null};
v6p=function(G){for(var b=_.e(Object.values(kTq)),I=b.next();!I.done;I=b.next())if(_.gL(I.value)===G)return!0;return!1};
Lla=function(G,b,I){var h=Dsu();(I=_.gL(I))&&delete h[I];b&&(h[G]=b)};
A_=function(G){return Dsu()[G]};
_.Mi=function(G,b,I,h){I=I===void 0?0:I;if(G!==li2(I)||b!==_.wy(eqr(I)))if(Lla(G,h,I),ms2(G,I),_.OB(eqr(I),b),b=function(){setTimeout(function(){jup(G)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(q){b()}else b()};
Quu=function(G,b){b=b===void 0?"":b;var I=[],h;for(h in G)if(G.hasOwnProperty(h)){var q=b!==""?b+"."+h:h;typeof G[h]==="object"?I.push.apply(I,_.Nz(Quu(G[h],q))):I.push([q,G[h]])}I.sort();return I};
_.t_=function(G){var b=_.RI.apply(1,arguments);if(!ZP(G)||b.some(function(h){return!ZP(h)}))throw Error("pf");
b=_.e(b);for(var I=b.next();!I.done;I=b.next())xsO(G,I.value)};
xsO=function(G,b){for(var I in b)if(ZP(b[I])){if(I in G&&!ZP(G[I]))throw Error("qf");I in G||(G[I]={});xsO(G[I],b[I])}else if(fis(b[I])){if(I in G&&!fis(G[I]))throw Error("rf");I in G||(G[I]=[]);Trj(G[I],b[I])}else G[I]=b[I];return G};
Trj=function(G,b){b=_.e(b);for(var I=b.next();!I.done;I=b.next())I=I.value,ZP(I)?G.push(xsO({},I)):fis(I)?G.push(Trj([],I)):G.push(I);return G};
ZP=function(G){return typeof G==="object"&&!Array.isArray(G)};
fis=function(G){return typeof G==="object"&&Array.isArray(G)};
Usp=function(G){for(var b=_.e(Object.entries(BrO)),I=b.next();!I.done;I=b.next())if(I=_.e(I.value),I.next(),I=I.next().value,I==="SLI_STATUS_"+G)return I;return"SLI_STATUS_UNKNOWN"};
_.zg=function(G,b,I,h){return suO(G,b,function(){return new _.g6v(G,b,I,h)})};
_.Arq=function(){return _.zg("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Mbv=function(){return _.zg("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
o3=function(){return _.zg("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
ZYO=function(){return _.zg("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
tb2=function(){return _.zg("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
zqj=function(){return _.zg("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
PQX=function(G){G&&(G.dataset?G.dataset[o6j()]="true":_.Vs([_.fy(iY2)],G,"data-loaded","true".toString()))};
dsu=function(G){return G?G.dataset?G.dataset[o6j()]:G.getAttribute("data-loaded"):null};
o6j=function(){return yrO.loaded||(yrO.loaded="loaded".replace(/\-([a-z])/g,function(G,b){return b.toUpperCase()}))};
_.iU=function(G,b,I){rr2(G,b,I===void 0?null:I)};
_.HYs=function(G,b){G&&b&&(G=""+_.Ej(b),(G=Fls[G])&&_.B5p(G))};
rr2=function(G,b,I){I=I===void 0?null:I;var h=_.WlO(typeof G==="string"?G:G.toString()),q=document.getElementById(h),l=q&&dsu(q),V=q&&!l;l?b&&b():(b&&(l=_.f1(h,b),b=""+_.Ej(b),Fls[b]=l),V||(q=aiB(G,h,function(){dsu(q)||(PQX(q),_.Uor(h),_.AB(function(){_.gQj(h)},0))},I)))};
aiB=function(G,b,I,h){h=h===void 0?null:h;var q=_.ol("SCRIPT");q.id=b;q.onload=function(){I&&setTimeout(I,0)};
q.onreadystatechange=function(){switch(q.readyState){case "loaded":case "complete":q.onload()}};
h&&q.setAttribute("nonce",h);_.mf(q,typeof G==="string"?_.N2(G):G);G=document.getElementsByTagName("head")[0]||document.body;G.insertBefore(q,G.firstChild);return q};
_.WlO=function(G){var b=document.createElement("a");Ov(b,G);return"js-"+Pq(b.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
NrO=function(G){var b=_.wy("INNERTUBE_HOST_OVERRIDE");b&&(G=String(b)+String(_.dL(G)));return G};
YKu=function(G){var b={};_.U("json_condensed_response")&&(b.prettyPrint="false");return G=J_a(G,b)};
_.yf=function(G){return cf(G)?"same-origin":"include"};
_.rL=function(G){return cf(G)?"same-origin":"cors"};
F8=function(G,b,I){I=I===void 0?{}:I;G={method:b===void 0?"POST":b,mode:_.rL(G),credentials:_.yf(G)};b={};for(var h=_.e(Object.keys(I)),q=h.next();!q.done;q=h.next())q=q.value,I[q]&&(b[q]=I[q]);Object.keys(b).length>0&&(G.headers=b);return G};
_.Hq=function(G,b){b=b===void 0?{}:b;return"service:"+G+"/"+Object.keys(b).sort().map(function(I){return I+":"+b[I]}).join("/")};
CQO=function(G){var b,I,h,q;G=(b=_.g(G,_.Wq))==null?void 0:(I=b.watchEndpointSupportedOnesieConfig)==null?void 0:(h=I.html5PlaybackOnesieConfig)==null?void 0:(q=h.commonConfig)==null?void 0:q.url;if(!G)return[];b=new _.a3(G);return b.JSC$10105_domain_?["https://"+b.JSC$10105_domain_+"/generate_204"]:[]};
_.uZq=function(){return Jrj()||wTs()||Kld&&wi("version/")?!0:_.wy("EOM_VISITOR_DATA")?!1:!0};
Rqa=function(G){var b=G.docid||G.video_id||G.videoId||G.id;if(b)return b;b=G.raw_player_response;b||(G=G.player_response)&&(b=JSON.parse(G));return b&&b.videoDetails&&b.videoDetails.videoId||null};
n6O=function(G){return G.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Ni=function(G){return!isNaN(Number(G))&&!_.Dr(G)};
_.Cv=function(G,b,I,h){h=h===void 0?!0:h;var q=_.wy("VALID_SESSION_TEMPDATA_DOMAINS",[]),l=_.VE(window.location.href);l&&q.push(l);l=_.VE(G);if(_.Ya(q,l)||!l&&_.jv(G,"/"))if(q=document.createElement("a"),Ov(q,G),G=q.href)if(G=_.dL(G),G=_.Yc(G))h&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:_.gL()},b)),I?(I=parseInt(I,10),isFinite(I)&&I>0&&OYu(G,b,I)):OYu(G,b)};
E6d=function(G){var b=_.wy("VALID_SESSION_TEMPDATA_DOMAINS",[]),I=_.VE(window.location.href);I&&b.push(I);I=_.VE(G);if(!(_.Ya(b,I)||!I&&_.jv(G,"/")))return null;G=_.dL(G);(G=_.Yc(G))?(G=wO2(G),G=(G=_.di.get(G,void 0)||null)?_.q1(G):{}):G=null;return G};
OYu=function(G,b,I){G=wO2(G);b=b?_.oN(b):"";I=I||5;_.uZq()&&_.yE(G,b,I)};
wO2=function(G){for(var b=_.e(pOr),I=b.next();!I.done;I=b.next())G=_.J_(G,I.value);return"ST-"+Pq(G).toString(36)};
_.SKO=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()};
_.uU=function(G){var b;_.lmv(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Kv()==G&&(b=document):b=G;if(b&&(G=_.lmv(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))){G.call(b)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Kv=function(){var G=G===void 0?!1:G;var b=_.lmv(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(G)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
_.R3=function(G,b){b=b===void 0?!0:b;G.addEventListener("wheel",XOq);G.overscrollConfig={cooldown:b}};
_.nv=function(G){G.overscrollConfig=void 0;G.removeEventListener("wheel",XOq)};
XOq=function(G){var b=G.deltaY,I=G.target,h=null;if(window.Polymer&&window.Polymer.Element){if(I=G.path||G.composedPath&&G.composedPath()){I=_.e(I);for(var q=I.next();!q.done&&(q=q.value,!$ZB(q,b));q=I.next())if(q.overscrollConfig){h=q;break}}}else for(;I&&!$ZB(I,b);){if(I.overscrollConfig){h=I;break}I=I.parentElement}h&&(b=h.overscrollConfig,b.cooldown?(h=G.deltaY,I=b.lastDeltaY||0,b.lastDeltaY=h,q=b.lastStopped||0,I&&q&&I>0==h>0?Math.abs(I)>=Math.abs(h)?(h=q+1200,I=!1):(h=q+600,I=!0):(h=Date.now()+
600,I=!0),h>Date.now()&&(G.preventDefault(),I&&(b.lastStopped=Date.now()))):G.preventDefault())};
$ZB=function(G,b){return b<0&&G.scrollTop>0||b>0&&G.scrollTop<G.scrollHeight-G.clientHeight-1?(G=getComputedStyle(G).overflowY,G=="auto"||G=="scroll"):!1};
_.O3=function(G,b,I,h){h||(h={bubbles:!0,cancelable:!1,composed:!0});I!==null&&I!==void 0&&(h.detail=I);var q=new CustomEvent(b,h);_.U("untrack_fire_custom_event_killswitch")?G.dispatchEvent(q):_.MQ(function(){return void G.dispatchEvent(q)});
return q};
GQq=function(G){var b=window,I=function(h){b.removeEventListener("yt-navigate-start",I);return G.call(b,h)};
b.addEventListener("yt-navigate-start",I,void 0)};
_.wL=function(G,b,I,h){b=new bb2(b,!(h===void 0||!h),I);_.O3(G,"yt-action",b);return b.returnValue};
_.E3=function(G,b,I){return _.wL(G,b,I,!0)};
_.Su=function(G,b,I,h){b&&b.length&&b.forEach(function(q){var l=hmp(q);l&&(_.U("handle_service_request_actions")&&q.commandMetadata&&q.commandMetadata.webCommandMetadata&&q.commandMetadata.webCommandMetadata.sendPost?_.pv(I?I:G,[q]):_.E3(G,l,[q,I,h]))})};
_.pv=function(G,b){var I=[G];b&&I.push.apply(I,b);b=_.wL(G,"yt-service-request",I);return b.length>0&&(b=b[0],_.O3(G,"yt-service-request-sent",b),b&&b.ajaxPromise)?(b.ajaxPromise.then(function(h){_.O3(G,"yt-service-request-completed",h)},function(h){_.O3(G,"yt-service-request-error",{error:h,
params:I})},G),b.ajaxPromise):_.X8()};
_.Gm=function(G,b){if(_.U("handle_service_request_actions"))_.Su(b,G,b);else{G=_.e(G);for(var I=G.next();!I.done;I=G.next()){I=I.value;var h=void 0;((h=_.g(I,_.$P))==null?0:h.commands)?_.Gm(_.g(I,_.$P).commands,b):(h=void 0,((h=_.g(I,_.b9))==null?0:h.actions)?_.Gm(_.g(I,_.b9).actions,b):(h=void 0,((h=_.g(I.commandMetadata,_.IW))==null?0:h.sendPost)?_.pv(b,[I]):_.Su(b,[I],b)))}}};
_.hGj=function(G,b,I){b=b===void 0?{}:b;typeof b==="function"&&(b={callback:b});I||b._c&&b._c.jsl&&b._c.jsl.h||_.Cy.extend(b,{_c:{jsl:{h:_.wy("GAPI_HINT_PARAMS")}}});(b.gapiHintOverride||_.wy("GAPI_HINT_OVERRIDE"))&&(I=_.jO(document.location.href).gapi_jsh)&&_.Cy.extend(b,{_c:{jsl:{h:I}}});Ifv(G,b)};
_.qP=function(G,b,I){b=b===void 0?{}:b;G=(G=G in hZ?hZ[G]:I)||"";I={};for(var h in b){I={key$jscomp$844:I.key$jscomp$844};I.key$jscomp$844=h;var q=function(l){return function(){return String(b[l.key$jscomp$844])}}(I);
G=G.replace(new RegExp("\\$\\{"+I.key$jscomp$844+"\\}","gi"),q);G=G.replace(new RegExp("\\$"+I.key$jscomp$844,"gi"),q)}return G};
_.jX=function(G,b){return qUs(G in hZ?hZ[G]:{},b)};
qUs=function(G,b){var I=_.wy("I18N_PLURAL_RULES");I||(I=function(h){return h==1?"one":"other"});
return(G=G["case"+b]||G[I(b)])?G.replace("#",b.toString()):b+""};
mZq=function(G){var b=jVr(G),I=document.getElementById(b),h=I&&dsu(I);h||I&&!h||(I=lfa(G,b,function(){if(!dsu(I)){PQX(I);_.Uor(b);var q=_.l9(_.gQj,b);_.AB(q,0)}}))};
lfa=function(G,b,I){var h=document.createElement("link");h.id=b;h.onload=function(){I&&setTimeout(I,0)};
G=_.N2(G);_.DJ(h,G,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(h);return h};
jVr=function(G){var b=_.ol("A");Ov(b,Hg(G));return"css-"+Pq(b.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.VIu=function(G){var b=eGs();G!==b&&(b=_.m$(),!_.U("web_autonav_allow_off_by_default")&&G||_.eX(0,141,!0),_.eX(0,140,!G),b.save())};
eGs=function(){var G=_.m$();return _.U("web_autonav_allow_off_by_default")&&!G.getFlag(141)&&_.wy("AUTONAV_OFF_BY_DEFAULT")?!1:!G.getFlag(140)};
DZO=function(G,b){var I,h;G=((I=G.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(h=I.videoAuthorizationToken)==null?void 0:h.credentialTransferTokens)||[];for(I=0;I<G.length;++I)if(G[I].scope===b)return G[I].token||void 0};
csX=function(G){for(var b=0,I=0;I<G.length;I++)b=b*31+G.charCodeAt(I),I<G.length-1&&(b%=0x800000000000);return b%1E5};
_.Vn=function(G){return _.Ge("ytcsi."+(G||"")+"data_")||kQj(G)};
_.vfO=function(G){G=_.Vn(G);G.metadata||(G.metadata={});return G.metadata};
_.L42=function(G){G=_.Vn(G);G.tick||(G.tick={});return G.tick};
_.DE=function(G){G=_.Vn(G);if(G.gel){var b=G.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else G.gel={gelTicks:{},gelInfos:{}};return G.gel};
_.QVO=function(G){G=_.DE(G);G.gelInfos||(G.gelInfos={});return G.gelInfos};
xZu=function(G){var b=_.Vn(G).nonce;b||(b=Bq(16),_.Vn(G).nonce=b);return b};
kQj=function(G){var b={tick:{},info:{}};_.cz("ytcsi."+(G||"")+"data_",b);return b};
ffv=function(){var G=_.Ge("ytcsi.debug");G||(G=[],_.cz("ytcsi.debug",G),_.cz("ytcsi.reference",{}));return G};
_.cT=function(G){G=G||"";var b=T0v();if(b[G])return b[G];var I=ffv(),h={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};I.push(h);return b[G]=h};
B0u=function(G){G=G||"";var b=T0v();b[G]&&delete b[G];var I=ffv(),h={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};I.push(h);b[G]=h};
T0v=function(){var G=_.Ge("ytcsi.reference");if(G)return G;ffv();return _.Ge("ytcsi.reference")};
_.sV2=function(G){return UZO[G]||"LATENCY_ACTION_UNKNOWN"};
ZbO=function(G,b,I){I=I===void 0?{}:I;var h=!1;_.Sk("ytLoggingEventsDefaultDisabled",!1)&&(h=!0);h=h?null:Y2;I=I===void 0?{}:I;var q=Math.round(I.timestamp||(0,_.Li)());_.y9(b,1,q<Number.MAX_SAFE_INTEGER?q:0);q=new gf2;if(I.lact)_.y9(q,1,isFinite(I.lact)?I.lact:-1);else if(I.timestamp)_.y9(q,1,-1);else{var l=_.vA();_.y9(q,1,isFinite(l)?l:-1)}if(I.sequenceGroup&&!_.U("web_gel_sequence_info_killswitch")){l=I.sequenceGroup;var V=dKq(l),D=new Asv;_.y9(D,2,V);_.F0(D,1,l);_.ZK(q,3,D);I.endOfSequence&&delete MIs[I.sequenceGroup]}_.ZK(b,
33,q);(I.sendIsolatedPayload?N5O:Y0v)(G,{endpoint:"log_event",payload:b,cttAuthInfo:I.cttAuthInfo,dangerousLogToVisitorSession:I.dangerousLogToVisitorSession},h)};
_.vT=function(){return(_.U("csi_use_time_origin")||_.U("csi_use_time_origin_tvhtml5"))&&_.kP.timeOrigin?Math.floor(_.kP.timeOrigin):_.kP.timing.navigationStart};
_.tIO=function(G,b){_.LU("_start",G,b)};
_.Qn=function(G,b){if(!_.U("web_csi_action_sampling_enabled")||!_.Vn(b).actionDisabled){var I=_.cT(b||"");_.t_(I.info,G);G.loadType&&(I=G.loadType,_.vfO(b).loadType=I);_.t_(_.QVO(b),G);I=xZu(b);b=_.Vn(b).cttAuthInfo;zG2().info(G,I,b)}};
ofp=function(){var G,b,I,h;return((h=_.LL().resolve(_.vf(HA))==null?void 0:(G=WA())==null?void 0:(b=G.loggingHotConfig)==null?void 0:(I=b.csiConfig)==null?void 0:I.debugTicks)!=null?h:[]).map(function(q){return Object.values(q)[0]})};
_.LU=function(G,b,I){if(!_.U("web_csi_action_sampling_enabled")||!_.Vn(I).actionDisabled){var h=xZu(I),q;if(q=_.U("web_csi_debug_sample_enabled")&&h){(_.LL().resolve(_.vf(HA))==null?0:WA())&&!ibv&&(ibv=!0,_.LU("gcfl",(0,_.Li)(),I));var l,V,D;q=(_.LL().resolve(_.vf(HA))==null?void 0:(l=WA())==null?void 0:(V=l.loggingHotConfig)==null?void 0:(D=V.csiConfig)==null?void 0:D.debugSampleWeight)||0;if(l=q!==0)b:{l=ofp();if(l.length>0)for(V=0;V<l.length;V++)if(G===l[V]){l=!0;break b}l=!1}l?(q=csX(h)%q!==0,
_.Vn(I).debugTicksExcludedLogged||(l={},l.debugTicksExcluded=q,_.Qn(l,I)),_.Vn(I).debugTicksExcludedLogged=!0):q=!1}if(!q){G[0]!=="_"&&PCa(G,I,b);q=_.cT(I||"");q.tick[G]=b||(0,_.Li)();if(q.callback&&q.callback[G])for(q=_.e(q.callback[G]),l=q.next();!l.done;l=q.next())l=l.value,l();q=_.DE(I);q.gelTicks&&(q.gelTicks[G]=!0);l=_.L42(I);q=b||(0,_.Li)();_.U("log_repeated_ytcsi_ticks")?G in l||(l[G]=q):l[G]=q;l=_.Vn(I).cttAuthInfo;G==="_start"?zG2().baseline(h,b,l):zG2().tick(G,h,b,l);_.dZr(I);return q}}};
PCa=function(G,b,I){if(_.kP.mark)if(G.startsWith("mark_")||(G="mark_"+G),b&&(G+=" ("+b+")"),I===void 0||_.U("web_csi_disable_alt_time_performance_mark"))_.kP.mark(G);else{I=_.U("csi_use_performance_navigation_timing")?I-_.kP.timeOrigin:I-(_.kP.timeOrigin||_.kP.timing.navigationStart);try{_.kP.mark(G,{startTime:I})}catch(h){}}};
yss=function(){var G,b=(G=_.kP.getEntriesByType)==null?void 0:G.call(_.kP,"mark");b&&b.forEach(function(I){if(I.name.startsWith("mark_")){var h;(h=_.kP.clearMarks)==null||h.call(_.kP,I.name)}})};
_.rsj=function(){switch(jMO()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.F4q=function(G){var b={},I=function(l,V,D){V=V.match("_rid")?V.split("_rid")[0]:V;typeof D==="number"&&(D=JSON.stringify(D));l.requestIds?l.requestIds.push({endpoint:V,id:D}):l.requestIds=[{endpoint:V,id:D}]};
G=_.e(Object.entries(G));for(var h=G.next();!h.done;h=G.next()){var q=_.e(h.value);h=q.next().value;q=q.next().value;switch(h){case "GetBrowse_rid":I(b,h,q);break;case "GetGuide_rid":I(b,h,q);break;case "GetHome_rid":I(b,h,q);break;case "GetPlayer_rid":I(b,h,q);break;case "GetSearch_rid":I(b,h,q);break;case "GetSettings_rid":I(b,h,q);break;case "GetTrending_rid":I(b,h,q);break;case "GetWatchNext_rid":I(b,h,q);break;case "yt_red":b.isRedSubscriber=!!q;break;case "yt_ad":b.isMonetized=!!q}}return b};
W4v=function(G,b,I,h,q,l){if(!_.U("web_csi_action_sampling_enabled")||!_.Vn(l).actionDisabled){var V=_.DE(l);if(V.gelSpans)V.gelSpans[G]=!0;else{var D={};V.gelSpans=(D[G]=!0,D)}Hbp++;G={spanName:G,spanLengthUsec:String(Math.round(b*1E3)),spanNonce:Hbp};h&&(G.spanInfo=h);q&&(G.parentSpanNonce=q);I&&(G.spanStartTimeUsec=String(Math.round(I*1E3)));_.cT(l||"").span[String(G.spanName)]=G;I=_.DE(l);I.gelSpans||(I.gelSpans={});_.t_(I.gelSpans,G);I=xZu(l);l=_.Vn(l).cttAuthInfo;zG2().span(G,I,l);return G.spanNonce}};
_.afO=function(G){var b=_.xP("aft",G);if(b)return b;b=_.wy((G||"")+"TIMING_AFT_KEYS",["ol"]);for(var I=b.length,h=0;h<I;h++){var q=_.xP(b[h],G);if(q)return q}return NaN};
_.N0p=function(G,b){_.cz("ytglobal.timing"+(b||"")+"ready_",G)};
_.xP=function(G,b){if(G=_.L42(b)[G])return typeof G==="number"?G:G[G.length-1]};
_.dZr=function(G){var b=_.xP("_start",G),I=_.afO(G),h=!YUu;b&&I&&h&&(yLr(CCB,new Jsu(Math.round(I-b),G)),YUu=!0)};
u_O=function(G){kQj(G);K4d();yss();G||(_.wy("TIMING_ACTION")&&_.OB("PREVIOUS_ACTION",_.wy("TIMING_ACTION")),_.OB("TIMING_ACTION",""))};
_.RGv=function(G){G=G===void 0?{}:G;_.$W(function(){fU();B0u();u_O();_.N0p(!1);G.cttAuthInfo&&(_.Vn().cttAuthInfo=G.cttAuthInfo);_.OB("TIMING_AFT_KEYS",[]);G.isHot?_.Tm({loadType:"hot"}):_.Tm({loadType:"warm"});_.OB("TIMING_ACTION","");delete _.wy("TIMING_INFO",{}).yt_lt;_.$W(_.tIO)(G.startTime,void 0)})()};
_.US=function(G,b,I,h){b=b===void 0?{}:b;_.$W(function(){var q=I?I:G;BT(q);var l=b.sampleRate;if(!_.U("web_csi_action_sampling_enabled")||l===void 0||l<=1)l=!1;else{var V=xZu(q);l=csX(V)%l!==0}l&&(_.Vn(q).actionDisabled=!0);_.cT(q||"").info.actionType=G;b.cttAuthInfo&&(_.Vn(q).cttAuthInfo=b.cttAuthInfo);_.OB(q+"TIMING_ACTION",G);_.$W(_.tIO)(b.startTime,q);l={actionType:h||_.sV2(G)};b.logPreviousAction&&(l.previousAction=_.sV2(_.wy("TIMING_ACTION")));(V=_.gL())&&V!=="UNDEFINED_CSN"&&(l.clientScreenNonce=
V);_.Tm(l,q);_.N0p(!0,q)})()};
BT=function(G){_.$W(function(){fU(G);B0u(G);u_O(G)})()};
nfs=function(){_.$W(function(){var G=[],b;for(b in _.Ge("ytcsi.".slice(0,-1)))b.endsWith("data_")&&G.push(b.slice(0,-5));G=_.e(G);for(b=G.next();!b.done;b=G.next())BT(b.value);fU()})()};
_.wBs=function(G){return _.$W(function(){return _.Obr("_start",G)})()};
_.Tm=function(G,b,I){_.$W(_.Qn)(G,b,I===void 0?!1:I)};
_.sS=function(G,b,I){return _.$W(_.LU)(G,b,I)};
_.Obr=function(G,b){return _.$W(function(){var I=_.L42(b);return G in I})()};
pBs=function(G){if(!_.U("universal_csi_network_ticks"))return"";G=_.tB(G)||"";for(var b=Object.keys(Efj),I=0;I<b.length;I++){var h=b[I];if(G.includes(h))return h}return""};
XBj=function(G){if(!_.U("universal_csi_network_ticks"))return function(){};
var b=Efj[G];return b?(_.gK(b),function(){var I=_.U("universal_csi_network_ticks")?(I=SUO[G])?_.gK(I):!1:!1;return I}):function(){}};
_.gK=function(G,b,I){return _.$W(function(){if(_.Obr(G,I))return!1;_.sS(G,b,I);return!0})()};
_.ZE=function(G,b,I){_.$W(function(){if(!_.wBs(I)||_.Obr(G,I))return!1;_.sS(G,b,I);return!0})()};
_.tZ=function(G){return _.$W(_.xP)(G,void 0)};
fU=function(G){_.wBs(G)&&_.sS("aa",void 0,G)};
_.hXj=function(G,b,I,h,q,l,V,D,k){var L=$j2();D=new U3({veType:b,youtubeData:l,jspbYoutubeData:D});l=zm({},L);q&&(l.cttAuthInfo=q);q={csn:L,pageVe:D.getAsJson()};_.U("expectation_logging")&&k&&k.screenCreatedLoggingExpectations&&(q.screenCreatedLoggingExpectations=k.screenCreatedLoggingExpectations);I&&I.visualElement?(q.implicitGesture={parentCsn:I.clientScreenNonce,gesturedVe:I.visualElement.getAsJson()},V&&(q.implicitGesture.gestureType=V)):I&&_.RB(new _.Wf("newScreen() parent element does not have a VE - rootVe",
b));h&&(q.cloneCsn=h);G?NB("screenCreated",q,G,l):_.C1("screenCreated",q,l);yLr(YoO,new GWq(L));oW.clear();bmO.clear();IRr.clear();return L};
i9=function(G,b,I,h,q,l){l=l===void 0?{}:l;qLj(G,b,I,[h],q===void 0?!1:q,l)};
qLj=function(G,b,I,h,q,l){q=q===void 0?!1:q;l=l===void 0?{}:l;Object.assign(l,zm({cttAuthInfo:A_(b)||void 0},b));for(var V=_.e(h),D=V.next();!D.done;D=V.next()){D=D.value;var k=D.getAsJson();(_.Cy.isEmpty(k)||!k.trackingParams&&!k.veType)&&_.RB(Error("Bf"));if(_.U("no_client_ve_attach_unless_shown")){var L=jar(D,b);if(k.veType&&!bmO.has(L)&&!IRr.has(L)&&!q){if(!_.U("il_attach_cache_limit")||oW.size<1E3){oW.set(L,[G,b,I,D]);return}_.U("il_attach_cache_limit")&&oW.size>1E3&&_.RB(new _.Wf("IL Attach cache exceeded limit"))}D=
jar(I,b);oW.has(D)?lRO(I,b):IRr.set(D,!0)}}h=h.filter(function(x){x.csn!==b?(x.csn=b,x=!0):x=!1;return x});
I={csn:b,parentVe:I.getAsJson(),childVes:_.Ky(h,function(x){return x.getAsJson()})};
b==="UNDEFINED_CSN"?PT("visualElementAttached",l,I):G?NB("visualElementAttached",I,G,l):_.C1("visualElementAttached",I,l)};
eX2=function(G,b,I,h,q){mjO(G,b,I,q)};
mjO=function(G,b,I,h){V6X(I,b);var q=zm({cttAuthInfo:A_(b)||void 0},b);I={csn:b,ve:I.getAsJson(),eventType:1};h&&(I.clientData=h);b==="UNDEFINED_CSN"?PT("visualElementShown",q,I):G?NB("visualElementShown",I,G,q):_.C1("visualElementShown",I,q)};
Dja=function(G,b,I,h){V6X(I,b);var q=zm({cttAuthInfo:A_(b)||void 0},b);I={csn:b,ve:I.getAsJson(),eventType:4};h&&(I.clientData=h);b==="UNDEFINED_CSN"?PT("visualElementShown",q,I):G?NB("visualElementShown",I,G,q):_.C1("visualElementShown",I,q)};
ceq=function(G,b,I,h,q){var l=(h=h===void 0?!1:h)?16:8;h=zm({cttAuthInfo:A_(b)||void 0,endOfSequence:h},b);I={csn:b,ve:I.getAsJson(),eventType:l};q&&(I.clientData=q);b==="UNDEFINED_CSN"?PT("visualElementHidden",h,I):G?NB("visualElementHidden",I,G,h):_.C1("visualElementHidden",I,h)};
vFB=function(G,b,I,h,q){kWr(G,b,I,void 0,h,q)};
kWr=function(G,b,I,h,q){V6X(I,b);h=h||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var l=zm({cttAuthInfo:A_(b)||void 0},b);I={csn:b,ve:I.getAsJson(),gestureType:h};q&&(I.clientData=q);b==="UNDEFINED_CSN"?PT("visualElementGestured",l,I):G?NB("visualElementGestured",I,G,l):_.C1("visualElementGestured",I,l)};
LSr=function(G,b,I,h){var q=zm({cttAuthInfo:A_(b)||void 0},b);I={csn:b,ve:I.getAsJson(),clientData:h};b==="UNDEFINED_CSN"?PT("visualElementStateChanged",q,I):G?NB("visualElementStateChanged",I,G,q):_.C1("visualElementStateChanged",I,q)};
Qas=function(){var G=Iiq(16);for(var b=[],I=0;I<G.length;I++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(G[I]&63));return b.join("")};
PT=function(G,b,I){xju.push({payloadName:G,payload:I,jspbPayload:void 0,options:b});fRa||(fRa=JLj())};
NqO=function(G){if(xju){for(var b=_.e(xju),I=b.next();!I.done;I=b.next())I=I.value,I.payload&&(I.payload.csn=G.csn,_.C1(I.payloadName,I.payload,I.options));xju.length=0}fRa=0};
jar=function(G,b){return""+G.getAsJson().veType+G.getAsJson().veCounter+b};
V6X=function(G,b){if(_.U("no_client_ve_attach_unless_shown")){var I=jar(G,b);bmO.set(I,!0);lRO(G,b)}};
lRO=function(G,b){G=jar(G,b);oW.has(G)&&(b=oW.get(G)||[],i9(b[0],b[1],b[2],b[3],!0),oW.delete(G))};
zm=function(G,b){_.U("log_sequence_info_on_gel_web")&&(G.sequenceGroup=b);return G};
_.dK=function(G,b,I){_.$W(i9)(void 0,G,b,I)};
_.yn=function(G,b,I){_.$W(qLj)(void 0,G,b,I)};
_.rK=function(G,b){_.$W(eX2)(void 0,G,b,void 0,void 0,void 0)};
_.FT=function(G,b,I){_.$W(function(){_.hB(b,function(h){Dja(void 0,G,h,I)})})()};
_.HT=function(G,b,I,h){_.$W(function(){_.hB(b,function(q){ceq(void 0,G,q,I,h)})})()};
_.WT=function(G,b,I){_.$W(vFB)(void 0,G,b,I,void 0)};
_.aW=function(G,b,I,h){_.$W(kWr)(void 0,G,b,I,h,void 0)};
_.NP=function(G,b,I){_.$W(LSr)(void 0,G,b,I,void 0)};
TSj=function(G,b){YP.set(G,b)};
BSr=function(G){CU.initialized=!0;CU.sessionId=G.sessionId||"";CU.enabledSpans=G.enabledSpans;G.shouldSampleFn!=null&&(CU.shouldSampleFn=G.shouldSampleFn)};
Ujj=function(G){CU.processors.push(G)};
sad=function(G){return CU.initialized?CU.enabledSpans?CU.enabledSpans[G]:!0:!1};
ZmO=function(G,b,I){return sad(G)&&CU.shouldSampleFn(G,b,gFr)?new AeO(G,b,I):M6v};
t6O=function(G,b,I){if(typeof I==="function"){var h=I;I=void 0}var q=ZmO(G,b,I),l;if(((l=I)==null?void 0:l.endTime)!=null)return h&&_.RB(Error("Ff")),q;var V;q!==M6v&&((V=I)==null?void 0:V.active)!==!1&&CU.stack.push(q);if(!h)return q;if(q===M6v)return h(q);try{var D=h(q);if(D instanceof Promise)return D.then(function(k){q.end();return k},function(k){q.end(2);
throw k;});
q.end();return D}catch(k){throw q.end(2),k;}};
oF2=function(){wH.subscribe("handleError",function(G){try{for(var b in zXO)try{var I=zXO[b];typeof zXO[b]==="function"&&(I=I());G.params[b]=typeof zXO[b]==="object"?JSON.stringify(I):String(I)}catch(h){_.RB(h)}}catch(h){_.RB(h)}})};
imX=function(){};
Pzp=function(G,b){var I=Object.keys(G);G=new _.Wf("[Command Handler] "+b,{filteredCommandNames:I,originalCommand:G});_.K1(G)};
djX=function(G,b){Pzp(G,b+" was called but not set")};
yed=function(G){return function(){return new G}};
JZ=function(G){return function(){return _.LL().resolve(G)}};
rep=function(G,b){var I=_.g(G,_.$G);if(I&&(I=b[I.signal]))return I();G=_.e(Object.keys(G));for(I=G.next();!I.done;I=G.next())if(I=I.value,b[I]&&(I=b[I]))return I()};
_.KU=function(G,b,I,h){return{browseEndpoint:{browseId:G},commandMetadata:{webCommandMetadata:{url:b,rootVe:I,webPageType:h===void 0?"WEB_PAGE_TYPE_BROWSE":h}}}};
FSa=function(G,b,I){var h=b=b===void 0?0:b;I=I===void 0?0:I;var q=I-h;return _.u9(G,"PPSV",void 0,void 0,(q>600?0:q<60||I<=0||h/I>.9)?0:b)};
_.u9=function(G,b,I,h,q){var l="/watch?v="+G;G={videoId:G};b&&(G.playlistId=b,l+="&list="+b);h&&(l+="&pp="+h);q&&(G.startTimeSeconds=q,l+="&t="+q+"s");b={watchEndpoint:G,commandMetadata:{webCommandMetadata:{url:l,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};I&&(b.clickTrackingParams=I);h&&(_.g(b,_.Wq).playerParams=h);return b};
Hmp=function(G){return{browseEndpoint:{browseId:"VL"+G},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+G,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
WSO=function(G){if(G){var b;if(G){var I=(b=_.g(G.commandMetadata,_.IW))==null?void 0:b.url;b=!(!I||I==="/service_ajax")}else b=!1;if(b)return G;var h;if(G=(h=_.g(G,_.$P))==null?void 0:h.commands)for(h=_.e(G),G=h.next();!G.done;G=h.next())if(G=WSO(G.value))return G}};
_.RW=function(G){return{runs:[{text:G}]}};
aRp=function(G,b){return G&&b?{runs:[{text:G,navigationEndpoint:b}]}:void 0};
nU=function(G){return G?_.RW(G):void 0};
_.OS=function(G){return G?{simpleText:G}:void 0};
_.wK=function(G){var b=G.type;G=G.payload;b={type:b};G!==void 0&&(b.payload=G);return b};
NSB=function(G,b,I){for(var h=Object.assign({},G),q=_.e(Object.keys(b)),l=q.next();!l.done;l=q.next()){l=l.value;var V=G[l],D=b[l];if(D===void 0)delete h[l];else if(V===void 0)h[l]=D;else if(Array.isArray(D)&&Array.isArray(V))h[l]=I?[].concat(_.Nz(V),_.Nz(D)):D;else if(!Array.isArray(D)&&_.Oj(D)&&!Array.isArray(V)&&_.Oj(V))h[l]=NSB(V,D,I);else if(typeof D===typeof V)h[l]=D;else return b=new _.Wf("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:l,originalValue:V,updateValue:D}),
_.K1(b),G}return h};
Jer=function(G){if(!G.length)return"";try{if(YLu)return YLu.decode(G);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(G)}catch(V){}for(var b=0,I=[],h=G.length;b<h;){for(var q=0;q<1024&&b<h;){var l=G[b++];if(l<128)Cz2[q++]=l;else{if(l<224)l=(l&31)<<6|G[b++]&63;else if(l<240)l=(l&15)<<12|(G[b++]&63)<<6|G[b++]&63;else{if(q+1===1024){--b;break}l=(l&7)<<18|(G[b++]&63)<<12|(G[b++]&63)<<6|G[b++]&63;l-=65536;Cz2[q++]=55296|l>>10;l=56320|l&1023}Cz2[q++]=l}}l=String.fromCharCode.apply(String,
Cz2);q<1024&&(l=l.substring(0,q));I.push(l)}return I.join("")};
ugB=function(G,b){var I;if((I=KSr)==null?0:I.encodeInto)return b=KSr.encodeInto(G,b),b.read<G.length?G.length*4:b.written;for(var h=I=0;h<G.length;h++){var q=G.charCodeAt(h);q<128?b[I++]=q:(q<2048?b[I++]=q>>6|192:((q&64512)===55296&&h+1<G.length&&(G.charCodeAt(h+1)&64512)===56320?(q=65536+((q&1023)<<10)+(G.charCodeAt(++h)&1023),b[I++]=q>>18|240,b[I++]=q>>12&63|128):b[I++]=q>>12|224,b[I++]=q>>6&63|128),b[I++]=q&63|128)}return I};
RXX=function(G,b,I){if(b&&I&&I.buffer===b.exports.memory.buffer){var h=b.realloc(I.byteOffset,G);if(h)return new Uint8Array(b.exports.memory.buffer,h,G)}G=b?new Uint8Array(b.exports.memory.buffer,b.malloc(G),G):new Uint8Array(G);I&&G.set(I);return G};
_.pU=function(G){G=new nFp(new Oma([_.Sv(decodeURIComponent(G))]));if(wsd(G,2)){var b=ES(G);var I=G.pos;var h=G.arrayView;I=I===void 0?0:I;var q=b===void 0?-1:b;I=I===void 0?0:I;q=q===void 0?-1:q;if(h.totalLength&&q){q<0&&(q=h.totalLength-I);h.focus(I);if(!(I-h.arrayPos+q<=h.arrays[h.arrayIdx].length)){var l=h.arrayIdx,V=h.arrayPos;h.focus(I+q-1);V=new Uint8Array(h.arrayPos+h.arrays[h.arrayIdx].length-V);for(var D=0,k=l;k<=h.arrayIdx;k++)V.set(h.arrays[k],D),D+=h.arrays[k].length;h.arrays.splice(l,
h.arrayIdx-l+1,V);h.arrayIdx=0;h.arrayPos=0;h.focus(I)}l=h.arrays[h.arrayIdx];h=new DataView(l.buffer,l.byteOffset+I-h.arrayPos,q)}else h=new DataView(new ArrayBuffer(0));h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength);G.pos+=b;b=h}else b=void 0;b=b?Jer(b):void 0;G=wsd(G,4)?ES(G):void 0;h=EFq[G];if(typeof h==="undefined")throw G=new _.Wf("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:G}),_.K1(G),G;return{entityTypeFieldNumber:G,entityType:h,entityId:b}};
_.$S=function(G,b,I){I=I===void 0?0:I;var h=new psX;if(KSr)G=KSr.encode(G);else{var q=new Uint8Array(Math.ceil(G.length*1.2)),l=ugB(G,q);q.length<l&&(q=new Uint8Array(l),l=ugB(G,q));q.length>l&&(q=q.subarray(0,l));G=q}G!==void 0&&(SX(h,18),q=G.length,SX(h,q),XT(h,q),h.buf.set(G,h.pos),h.pos+=q);G=SLu[b];if(typeof G==="undefined")throw I=new _.Wf("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),_.K1(I),I;G!==void 0&&(SX(h,32),SX(h,G));SX(h,40);SX(h,1);b=new Uint8Array(h.buf.buffer,
h.buf.byteOffset,h.pos);return encodeURIComponent(_.WL(b,I))};
Xsr=function(G){G=G.key||G.id;if(!G)throw Error("Hf");return G};
GUr=function(G,b){G=G===void 0?{}:G;return $SO(G,b)};
bRj=function(G,b,I,h){if(h===void 0)return h=Object.assign({},G[b]||{}),I=(delete h[I],h),h={},Object.assign({},G,(h[b]=I,h));var q={},l={};return Object.assign({},G,(l[b]=Object.assign({},G[b],(q[I]=h,q)),l))};
Igr=function(G,b,I,h,q){var l=G[b];if(l==null||!l[I])return G;h=NSB(l[I],h,q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");q={};l={};return Object.assign({},G,(l[b]=Object.assign({},G[b],(q[I]=h,q)),l))};
_.Gi=function(G,b,I){return G[b]?G[b][I]||null:null};
qN2=function(){if(h4u)return h4u();var G={};h4u=vz("PersistentEntityStoreDb",{objectStores:(G.EntityStore={addedAtVersion:1},G.EntityAssociationStore={addedAtVersion:2},G),shared:!1,upgrade:function(b,I){I(1)&&X5(Sy(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");I(2)&&(b=Sy(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),X5(b,"byParentEntityKey","parentEntityKey"),X5(b,"byChildEntityKey","childEntityKey"))},
version:3});return h4u()};
jCO=function(G){return _.jy(qN2(),G)};
bm=function(G){return window.Int32Array?new Int32Array(G):Array(G)};
mSr=function(G){return _.jy(lgq(),G)};
e4j=function(G){return new Io("WRONG_DATA_TYPE",{encoderVersion:G})};
VmO=function(G){return G instanceof Error?new Io("UNKNOWN_ENCODE_ERROR",{originalMessage:G.message}):new Io("UNKNOWN_ENCODE_ERROR")};
DSr=function(G){return G instanceof Error?new Io("UNKNOWN_DECODE_ERROR",{originalMessage:G.message}):new Io("UNKNOWN_DECODE_ERROR")};
cna=function(G,b){G=G instanceof Io?G:b(G);_.K1(G);throw G;};
kUd=function(G){G=(new TextEncoder).encode(G).subarray(0,16);var b=new Uint8Array(16);b.set(G);return b};
LqO=function(G){var b=vqO[G];if(b)return b;_.RB(new _.Wf("Entity model not found.",{entityType:G}))};
_.hQ=function(){QCr||(QCr=xSv());return QCr};
xSv=function(){var G,b,I;return _.c(function(h){if(h.nextAddress==1)return _.gm(h,2),h.yield(_.k_(),4);if(h.nextAddress!=2){G=h.yieldResult;if(!G||!_.Hf()||typeof _.hd.BroadcastChannel==="undefined")return h.return();b=new fg2;return h.return(new qO(G,b))}I=_.zf(h);I instanceof Error&&_.K1(I);return h.return()})};
_.jn=function(G,b){var I;return _.c(function(h){if(h.nextAddress==1){I=G.mutations;if(!I||I.length<=0)return h.return();b&&b.dispatch(_.wK({type:"ENTITY_LOADED",payload:I}));return h.yield(TZu(I),2)}I.length=0;_.ip(h)})};
TZu=function(G){var b;return _.c(function(I){return I.nextAddress==1?I.yield(_.hQ(),2):(b=I.yieldResult)?I.yield(_.lm(b,"readwrite",function(h){for(var q={},l=_.e(G),V=l.next(),D={};!V.done;D={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},V=l.next())D.mutation$jscomp$8=V.value,D.mutation$jscomp$8.entityKey&&BZO(D.mutation$jscomp$8)&&(D.mutationEntityType$jscomp$3=(0,_.Cy.getAnyKey)(D.mutation$jscomp$8.payload),V=void 0,D.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(V=function(k){return function(){return _.USO(h,
k.mutation$jscomp$8.payload[k.mutationEntityType$jscomp$3],k.mutationEntityType$jscomp$3)}}(D)),D.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(V=function(k){return function(){return sCO(h,k.mutation$jscomp$8.entityKey)}}(D)),D.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(V=function(k){return function(){return gq2(h,k.mutation$jscomp$8.entityKey,k.mutation$jscomp$8.payload[k.mutationEntityType$jscomp$3],k.mutationEntityType$jscomp$3)}}(D)),V&&(q[D.mutation$jscomp$8.entityKey]=
q[D.mutation$jscomp$8.entityKey]?q[D.mutation$jscomp$8.entityKey].then(V):V()));
return XU.all(Object.values(q))}),0):I.return()})};
BZO=function(G){var b;G=(b=G.options)==null?void 0:b.persistenceOption;return G==="ENTITY_PERSISTENCE_OPTION_PERSIST"||G==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
ZRs=function(G,b){var I,h;_.c(function(q){if(q.nextAddress==1)return q.yield(_.hQ(),2);if(q.nextAddress!=3)return(I=q.yieldResult)?q.yield(_.lm(I,"readonly",function(l){var V={},D=Object.keys(b).map(function(k){var L=b[k]?[].concat(_.Nz(b[k])):[];return Anu(l,k,L,V)});
return XU.all(D).then(function(){return V})}),3):q.return();
h=q.yieldResult;Object.keys(h).length>0&&G.dispatch(MmO(h));_.ip(q)})};
Anu=function(G,b,I,h){return ms(G,b,I).then(function(q){h[b]=tmB(I,q)})};
tmB=function(G,b){if(b.length!==G.length)throw Error("Kf");return b.reduce(function(I,h,q){I[G[q]]=h;return I},{})};
iR2=function(G){var b=G.filter(function(q){var l;return(q==null?void 0:(l=q.transferEntity)==null?void 0:l.transferState)==="TRANSFER_STATE_COMPLETE"}).length,I=G.filter(function(q){var l;
return(q==null?void 0:(l=q.transferEntity)==null?void 0:l.transferState)==="TRANSFER_STATE_FAILED"}).length,h=G.filter(function(q){var l;
return(q==null?void 0:(l=q.transferEntity)==null?void 0:l.transferState)&&z4j.includes(q.transferEntity.transferState)});
if(!(b||h!=null&&h.length))return 0;b=_.oqr(h)+b;G=G.length-I;return G===0?0:Math.round(b*100/G)/100};
_.oqr=function(G){var b=[];b=b.concat.apply(b,_.Nz(G.filter(function(l){return l.streamEntity}).map(function(l){var V=Object.assign({},l.streamEntity),D,k=(D=l.transferEntity)==null?void 0:D.transferState;
V.streamsProgress=V.streamsProgress||[];V.streamsProgress=V.streamsProgress.map(function(L){var x=Object.assign({},L);x.numBytesDownloaded=k==="TRANSFER_STATE_COMPLETE"?L.numTotalBytes:L.numBytesDownloaded;return x});
return V}).map(function(l){return l.streamsProgress})));
var I=G=0;b=_.e(b);for(var h=b.next();!h.done;h=b.next()){var q=h.value;h=Number(q.numBytesDownloaded);q=Number(q.numTotalBytes);I+=isNaN(h)?0:h;G+=isNaN(q)?0:q}return G===0?0:Math.round(I*100/G)/100};
Pd2=function(G){if(!G||!G.expirationTimestamp||!G.action)return!1;var b=(0,_.Li)()/1E3;return Number(G.expirationTimestamp)>=b};
en=function(G){return G&&G.expirationTimestamp&&G.action?Pd2(G)&&G.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Vg=function(G){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(G||"TRANSFER_STATE_UNKNOWN")};
dSO=function(G){var b=new psX;if(G!==void 0){var I=Math.ceil(Math.log2(G.length*4+2)/7);I=I===void 0?2:I;SX(b,10);b.submessagePosStack.push(b.pos);b.submessagePosStack.push(I);b.pos+=I;XT(b,G.length*1.2);I=ugB(G,b.buf.subarray(b.pos));b.pos+I>b.buf.length&&(XT(b,I),I=ugB(G,b.buf.subarray(b.pos)));b.pos+=I;G=b.submessagePosStack.pop();I=b.submessagePosStack.pop();for(var h=b.pos-I-G;G--;){var q=G?128:0;b.view.setUint8(I++,h&127|q);h>>=7}}b=new Uint8Array(b.buf.buffer,b.buf.byteOffset,b.pos);return(new TextDecoder("utf-8")).decode(b)};
_.D0=function(G){var b=0;G=_.e(G);for(var I=G.next(),h={};!I.done;h={transferState$jscomp$3:void 0},I=G.next()){var q=I.value,l=void 0;I=(l=q.streamEntity)!=null?l:{};l=void 0;h.transferState$jscomp$3=(l=q.transferEntity)==null?void 0:l.transferState;l=q=void 0;((q=I)==null?0:(l=q.streamsProgress)==null?0:l.length)&&I.streamsProgress.forEach(function(V){return function(D){D=Number(V.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?D.numTotalBytes:D.numBytesDownloaded);isFinite(D)&&(b+=D)}}(h))}return b};
ynX=function(G){return G.some(function(b){var I;if(!(b==null?0:(I=b.transferEntity)==null?0:I.transferState)){var h;return!(b==null?0:(h=b.policyEntity)==null?0:h.action)||b.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return z4j.includes(b.transferEntity.transferState)})};
rnj=function(G,b){if(!b)return!1;if(_.U("of_pb_en_po_ks"))return!0;var I;G=(I=_.Gi(G,"offlineVideoPolicy",_.$S(b,"offlineVideoPolicy")))!=null?I:void 0;return!!G&&en(G)};
_.HRX=function(G){var b=["TRANSFER_STATE_COMPLETE"];b=b===void 0?FqB:b;return G.filter(function(I){var h,q;return b.includes((q=(h=I.transferEntity)==null?void 0:h.transferState)!=null?q:"TRANSFER_STATE_UNKNOWN")})};
Wqs=function(G,b){if(b){var I,h=(I=_.Gi(G,"playbackData",_.$S(b,"playbackData")))!=null?I:null,q;I=(q=_.Gi(G,"transfer",_.$S(b,"transfer")))!=null?q:null;var l;q=(l=_.Gi(G,"offlineVideoStreams",_.$S(b,"offlineVideoStreams")))!=null?l:null;var V;G=(V=_.Gi(G,"offlineVideoPolicy",_.$S(b,"offlineVideoPolicy")))!=null?V:null;if(h||I||q||G)return{playbackDataEntity:h,transferEntity:I,streamEntity:q,policyEntity:G}}};
_.cj=function(G){var b=G.playbackData;if(!b)return[];var I=[];b=_.e(Object.keys(b));for(var h=b.next();!h.done;h=b.next()){var q=h.value;if(!aga(G,_.pU(q).entityId)&&(h=Wqs(G,_.pU(q).entityId))){var l=void 0,V=void 0;q=(V=Number((l=_.Gi(G,"playbackData",q))==null?void 0:l.streamDownloadTimestampSeconds))!=null?V:(0,_.Li)();I.push({entity:h,streamDownloadTimestamp:q})}}return I.sort(function(D,k){var L=D.streamDownloadTimestamp,x=k.streamDownloadTimestamp;return x===L?D.entity.streamEntity&&!k.entity.streamEntity?
1:-1:x-L}).map(function(D){return D.entity})};
NZd=function(G){return _.HRX(_.cj(G))};
_.YN2=function(G){return _.cj(G).filter(function(b){var I;if(((I=b.policyEntity)==null?0:I.action)&&b.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var h;if((h=b.transferEntity)==null?0:h.transferState){var q;return z4j.includes((q=b.transferEntity)==null?void 0:q.transferState)}return!0})};
aga=function(G,b){var I;return((I=_.Gi(G,"downloadStatusEntity",_.$S(b,"downloadStatusEntity")))==null?void 0:I.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Cdu=function(G){var b;if(G==null?0:(b=G.playbackDataEntity)==null?0:b.key)return _.pU(G.playbackDataEntity.key).entityId;var I;if(G==null?0:(I=G.transferEntity)==null?0:I.key)return _.pU(G.transferEntity.key).entityId;var h;if(G==null?0:(h=G.streamEntity)==null?0:h.key)return _.pU(G.streamEntity.key).entityId;var q;if(G==null?0:(q=G.policyEntity)==null?0:q.key)return _.pU(G.policyEntity.key).entityId};
KqX=function(G){var b=new Set,I;G=(I=G.mainDownloadsListEntity)==null?void 0:I[Jnp];var h;if(!(G==null?0:(h=G.downloads)==null?0:h.length))return b;var q;G==null||(q=G.downloads)==null||q.forEach(function(l){(l==null?0:l.videoItem)&&b.add(l.videoItem)});
return b};
vj=function(G,b){if(b){var I=_.Gi(G,"mainVideoEntity",_.$S(b,"mainVideoEntity")),h=_.Gi(G,"downloadStatusEntity",_.$S(b,"downloadStatusEntity")),q=_.Gi(G,"ytMainChannelEntity",_.$S(b,"ytMainChannelEntity")),l={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};G=Wqs(G,b);h=(h==null?void 0:h.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.U("woffle_render_failed_download_state_ks")&&(h==null?void 0:h.downloadState)==="DOWNLOAD_STATE_FAILED";!G&&h&&(G=l);if(G&&I&&
q)return Object.assign({},{videoEntity:I,channelEntity:q},G)}};
R4r=function(G,b){return u6p(G,b)==="TRANSFER_STATE_COMPLETE"&&rnj(G,b)};
nqB=function(G,b){if(!b)return!1;var I;G=(I=_.Gi(G,"playbackData",_.$S(b,"playbackData")))!=null?I:void 0;return!!G&&!!G.playerResponseJson};
u6p=function(G,b){if(!b)return"TRANSFER_STATE_UNKNOWN";var I=_.Gi(G,"transfer",_.$S(b,"transfer"));if(I){var h;return(h=I.transferState)!=null?h:"TRANSFER_STATE_UNKNOWN"}I=_.Gi(G,"offlineOrchestrationActionWrapperEntity",_.$S(b,"offlineOrchestrationActionWrapperEntity"));G=_.Gi(G,"mainVideoEntity",_.$S(b,"mainVideoEntity"));return I||G?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
ORv=function(G,b){if(!b)return"TRANSFER_STATE_UNKNOWN";if(G=_.Gi(G,"transfer",_.$S(b,"transfer"))){var I;return(I=G.transferState)!=null?I:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
wQX=function(G,b){return b&&(G=_.Gi(G,"videoPlaybackPositionEntity",_.$S(b,"videoPlaybackPositionEntity")),G==null?0:G.lastPlaybackPositionSeconds)?Number(G.lastPlaybackPositionSeconds):0};
pQu=function(G,b){return EqO(G).some(function(I){var h;return(I==null?void 0:(h=I.mainPlaylistEntity)==null?void 0:h.playlistId)===b})};
XQs=function(G,b,I){var h=SNs(G,b);if(!h.length)return[];b=[];h=_.e(h);for(var q=h.next();!q.done;q=h.next()){q=q.value;var l=vj(G,q);I&&u6p(G,q)!=="TRANSFER_STATE_COMPLETE"||l&&b.push(l)}return b};
SNs=function(G,b){if(!b)return[];var I=_.$S(b,"mainPlaylistEntity"),h;b=(h=G.mainPlaylistEntity)==null?void 0:h[I];h=[];if(b==null||!b.videos)return h;b=_.e(b.videos);for(I=b.next();!I.done;I=b.next()){I=I.value;var q=void 0,l=void 0,V=void 0,D=(q=G)==null?void 0:(l=q.mainPlaylistVideoEntity)==null?void 0:(V=l[I])==null?void 0:V.video;D&&(I=_.pU(D).entityId)&&h.push(I)}return h};
$Dr=function(G,b){if(b){var I=_.Gi(G,"mainPlaylistEntity",_.$S(b,"mainPlaylistEntity")),h=_.Gi(G,"mainPlaylistDownloadStateEntity",_.$S(b,"mainPlaylistDownloadStateEntity"));G=_.Gi(G,"ytMainChannelEntity",_.$S(b,"ytMainChannelEntity"));if(h&&I)return Object.assign({},{mainPlaylistEntity:I,mainPlaylistDownloadStateEntity:h},!!G&&{channelEntity:G})}};
EqO=function(G){return GVr(G).sort(function(b,I){return I.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedPlaylistEntities})};
GVr=function(G){var b=G.mainPlaylistDownloadStateEntity,I=[];if(!b)return I;for(var h=_.e(Object.keys(b)),q=h.next();!q.done;q=h.next()){var l=q.value;q=$Dr(G,_.pU(l).entityId);var V=void 0;l=Number((V=b[l])==null?void 0:V.addedTimestampMillis);V=isNaN(l)?(0,_.Li)():l;q!==void 0&&I.push({downloadedPlaylistEntities:q,addedTimestampMillis:V})}return I};
bPp=function(G){var b,I=(b=G.mainPlaylistVideoEntity)!=null?b:{};return new Set(EqO(G).reduce(function(h,q){h=h===void 0?[]:h;var l,V;q==null||(l=q.mainPlaylistEntity)==null||(V=l.videos)==null||V.forEach(function(D){var k;(D=(k=I[D])==null?void 0:k.video)&&h.push(D)});
return h},[]))};
INp=function(G){return"downloadedMusicPlaylistEntities"in G};
hdr=function(G){return"mainPlaylistEntity"in G&&"mainPlaylistDownloadStateEntity"in G};
qQu=function(G){return"videoEntity"in G&&"channelEntity"in G};
jS2=function(G){var b=G.musicPlaylistDownloadMetadataEntity,I=[];if(!b)return I;for(var h=_.e(Object.keys(b)),q=h.next();!q.done;q=h.next()){q=q.value;a:{var l=G,V=_.pU(q).entityId;if(V){var D=_.Gi(l,"musicPlaylist",_.$S(V,"musicPlaylist"));l=_.Gi(l,"musicPlaylistDownloadMetadataEntity",_.$S(V,"musicPlaylistDownloadMetadataEntity"));if(D&&l){D={musicPlaylistEntity:D,musicPlaylistDownloadStateEntity:l};break a}}D=void 0}l=void 0;q=Number((l=b[q])==null?void 0:l.addedTimestampMillis);q=isNaN(q)?(0,_.Li)():
q;D!==void 0&&I.push({downloadedMusicPlaylistEntities:D,addedTimestampMillis:q})}return I};
lNs=function(G){var b=new Set;G=_.e(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,"musicPlaylistEntity"in I&&"musicPlaylistDownloadStateEntity"in I){I=_.e(I.musicPlaylistEntity.tracks);for(var h=I.next();!h.done;h=I.next())b.add(h.value)}return b};
mDO=function(G,b){if(b){var I=_.Gi(G,"musicTrack",_.$S(b,"musicTrack")),h=_.Gi(G,"musicArtist",_.$S(b,"musicArtist"))||{};if((G=Wqs(G,b))&&I&&h)return Object.assign({},{musicTrackEntity:I,musicArtistEntity:h},G)}};
edp=function(G){var b=G.musicTrackDownloadMetadataEntity,I=[];if(!b)return[];b=_.e(Object.keys(b));for(var h=b.next();!h.done;h=b.next()){var q=h.value;h=mDO(G,_.pU(q).entityId);var l=void 0;q=Number((l=_.Gi(G,"musicTrackDownloadMetadataEntity",q))==null?void 0:l.addedTimestampMillis);l=isNaN(q)?(0,_.Li)():q;h!==void 0&&I.push({downloadedMusicEntities:h,addedTimestampMillis:l})}return I};
cVX=function(G,b){if(!b)return[];if(Object.values(VdO).includes(b))return DD2(G,b);b=_.$S(b,"musicPlaylist");var I;G=(I=G.musicPlaylist)==null?void 0:I[b];I=[];if(G==null||!G.tracks)return I;G=_.e(G.tracks);for(b=G.next();!b.done;b=G.next())(b=_.pU(b.value).entityId)&&I.push(b);return I};
DD2=function(G,b){var I=new Set,h=jS2(G).map(function(l){return l.downloadedMusicPlaylistEntities});
h=lNs(h);h=_.e(h);for(var q=h.next();!q.done;q=h.next())(q=_.pU(q.value).entityId)&&I.add(q);return kVO(G).downloadedMusicEntities.filter(function(l){var V;if((V=l.musicTrackEntity)!=null&&V.videoId){l=l.musicTrackEntity;if(V=b==="PPOM"?!0:!I.has(l.videoId))b:switch(l=l.musicVideoType,b){case "PPSE":V=l==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:V=l!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}l=V}else l=!1;return l}).map(function(l){var V;
return(V=l.musicTrackEntity)==null?void 0:V.videoId})};
kVO=function(G){var b=edp(G).sort(function(I,h){return h.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:INp(I)?I.downloadedMusicPlaylistEntities:{}});
G=jS2(G).sort(function(I,h){return h.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:INp(I)?I.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:b,downloadedMusicPlaylistEntities:G}};
LkO=function(G,b){b=_.wy("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?cVX(G,b):SNs(G,b);if(!b.length)return"TRANSFER_STATE_UNKNOWN";b=b.map(function(I){return ORv(G,I)});
return vKq(b)};
vKq=function(G){var b=new Set(G);if(b.has("TRANSFER_STATE_FAILED")&&b.size===1)return"TRANSFER_STATE_FAILED";b.delete("TRANSFER_STATE_FAILED");if(b.has("TRANSFER_STATE_UNKNOWN")&&b.size===1)return"TRANSFER_STATE_PRE_TRANSFER";b.delete("TRANSFER_STATE_UNKNOWN");if(b.has("TRANSFER_STATE_PRE_TRANSFER")&&b.size===1||b.size===0)return"TRANSFER_STATE_PRE_TRANSFER";G=b.has("TRANSFER_STATE_TRANSFERRING");b=b.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return G||b?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Lw=function(G){var b=G.mainVideoDownloadStateEntity,I=[];if(!b)return[];b=_.e(Object.keys(b));for(var h=b.next();!h.done;h=b.next()){var q=h.value;if(!aga(G,_.pU(q).entityId)){h=vj(G,_.pU(q).entityId);var l=void 0,V=void 0;q=(V=Number((l=_.Gi(G,"mainVideoDownloadStateEntity",q))==null?void 0:l.addedTimestampMillis))!=null?V:(0,_.Li)();h!==void 0&&I.push({downloadedVideoEntities:h,addedTimestampMillis:q})}}return I};
QSs=function(G){return Lw(G).sort(function(b,I){return I.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedVideoEntities})};
_.fNa=function(G){var b=bPp(G),I=_.Qg(G),h=KqX(G),q=Lw(G).filter(function(V){var D,k;if((V==null?void 0:(D=V.downloadedVideoEntities)==null?void 0:(k=D.transferEntity)==null?void 0:k.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var L,x;V=V==null?void 0:(L=V.downloadedVideoEntities)==null?void 0:(x=L.videoEntity)==null?void 0:x.key;return _.U("kevlar_use_library_entity")?V&&(h.has(V)||I[V]):V&&!b.has(V)}),l=GVr(G).filter(function(V){return LkO(G,V.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Nz(q),_.Nz(l)).sort(function(V,D){return D.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return xD2(V)})};
TsO=function(G,b){if(b&&rnj(G,b)){var I,h,q=(h=(I=_.Gi(G,"playbackData",_.$S(b,"playbackData")))!=null?I:void 0)==null?void 0:h.playerResponseJson;if(q){try{var l=JSON.parse(q);var V=_.Gi(G,"transfer",_.$S(b,"transfer")),D=wQX(G,b);D&&(l=Object.assign({},l,{playerConfig:Object.assign({},l.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+D*1E3}}})}));l.cotn=V==null?void 0:V.cotn}catch(k){}return l}}};
_.UDa=function(G){var b,I,h;G=(h=(I=((b=G.downloadsPageViewConfigurationEntity)!=null?b:{})[_.xS])==null?void 0:I.smartDownloadsOptInBannerVisibility)!=null?h:{};var q;return(q=_.g(G,BsO))!=null?q:{}};
_.Qg=function(G){var b,I,h;G=(h=(I=((b=G.mainDownloadsListEntity)!=null?b:{})[_.sSj])==null?void 0:I.downloads)!=null?h:[];b={};I=_.e(G);for(h=I.next();!h.done;h=I.next())G=void 0,b[(G=h.value.videoItem)!=null?G:""]=!0;return b};
gKO=function(G){var b=_.Qg(G);if(Object.keys(b).length===0)return!1;var I=G.mainVideoEntity;if(!I)return!0;I=_.e(Object.keys(I));for(var h=I.next();!h.done;h=I.next()){h=h.value;var q=_.pU(h).entityId;if(b[h]&&!aga(G,q))return!1}return!0};
_.fw=function(G){var b=_.Qg(G);return Lw(G).sort(function(I,h){return I.addedTimestampMillis-h.addedTimestampMillis}).map(function(I){return I.downloadedVideoEntities}).filter(function(I){var h;
return(I=I==null?void 0:(h=I.videoEntity)==null?void 0:h.key)&&!!b[I]})};
_.Mdu=function(G){var b,I,h;G=(h=(I=((b=G.downloadsPageViewConfigurationEntity)!=null?b:{})[_.xS])==null?void 0:I.downloadsUpsellBannerVisibility)!=null?h:{};var q;return(q=_.g(G,AVq))!=null?q:{}};
xD2=function(G){return"downloadedVideoEntities"in G?G.downloadedVideoEntities:"downloadedPlaylistEntities"in G?G.downloadedPlaylistEntities:{}};
ZPu=function(G){var b=_.Qg(G),I=bPp(G),h=Lw(G).filter(function(q){var l,V;return(q=q==null?void 0:(l=q.downloadedVideoEntities)==null?void 0:(V=l.videoEntity)==null?void 0:V.key)&&!b[q]&&!I.has(q)});
G=GVr(G);return[].concat(_.Nz(h),_.Nz(G)).sort(function(q,l){return l.addedTimestampMillis-q.addedTimestampMillis}).map(function(q){return xD2(q)})};
_.Ti=function(G){if(!_.U("kevlar_use_library_entity"))return ZPu(G);var b=Lw(G).filter(function(h){var q,l;if(q=h=h==null?void 0:(q=h.downloadedVideoEntities)==null?void 0:(l=q.videoEntity)==null?void 0:l.key){var V,D,k;q=((D=(V=G.mainDownloadsListEntity)==null?void 0:V[Jnp])==null?0:(k=D.downloads)==null?0:k.length)?KqX(G).has(h):!1}return q}),I=GVr(G);
return[].concat(_.Nz(b),_.Nz(I)).sort(function(h,q){return q.addedTimestampMillis-h.addedTimestampMillis}).map(function(h){return xD2(h)})};
tdu=function(G){var b=_.Qg(G),I=bPp(G);return QSs(G).filter(function(h){var q;return(h=h==null?void 0:(q=h.videoEntity)==null?void 0:q.key)&&!b[h]&&!I.has(h)})};
zdv=function(G){if(!_.U("kevlar_use_library_entity"))return tdu(G);var b=_.Qg(G),I=KqX(G);return QSs(G).filter(function(h){var q;return(h=h==null?void 0:(q=h.videoEntity)==null?void 0:q.key)&&!b[h]&&I.has(h)})};
oKr=function(G,b){b=_.$S(b,"settingEntity");var I,h,q;return!!((q=(h=((I=G.settingEntity)!=null?I:{})[b])==null?void 0:h.settingOptionValue)!=null?q:{}).boolValue};
_.Bj=function(G){var b=_.fw(G);if(ynX(b))return 0;var I=[];b=_.e(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;var q=void 0,l=void 0;if((q=h)==null?0:(l=q.videoEntity)==null?0:l.key)q=_.pU(h.videoEntity.key).entityId,h=G,q=_.$S(q,"mainVideoDownloadStateEntity"),h=_.Gi(h,"mainVideoDownloadStateEntity",q),(h=Number(h==null?void 0:h.addedTimestampMillis))&&I.push(h)}return Math.max.apply(Math,_.Nz(I))};
_.Ub=function(G){return G.ui.richGridMiniMode};
_.sb=function(G){return G.ui.richGridItemsPerRow};
_.iPp=function(G){return G.ui.richGridSlimItemsPerRow};
_.PDr=function(G){return G.ui.guideIsExpanded};
_.g4=function(G){return G.ui.miniplayerIsActive};
dDq=function(G){return G.ui.singleOptionSurveyIsActive};
_.AQ=function(G){var b;return((b=G.ui)==null?void 0:b.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.yVO=function(G){return _.AQ(G)==="WEB_PAGE_TYPE_WATCH"};
_.rVj=function(G){return _.AQ(G)==="WEB_PAGE_TYPE_SHORTS"};
_.Fku=function(G){return G.ui.inlinePreviewIsActive};
_.HPq=function(G){return G.ui.inlinePreviewIsEnabled};
_.WkO=function(G){return G.ui.miniplayerPlaybackState};
_.MO=function(G){return G.ui.isOnline};
_.aN2=function(G){return G.ui.frostedGlassMode};
_.Z0=function(G,b){return u6p(G.entities,b)};
_.tQ=function(G,b){return LkO(G.entities,b)};
Nsq=function(G,b){var I;if(b){var h;G=(h=_.Gi(G.entities,"offlineVideoPolicy",_.$S(b,"offlineVideoPolicy")))==null?void 0:h.action}else G=void 0;return(I=G)!=null?I:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
YQu=function(G,b){var I;b?(G=_.Gi(G.entities,"offlineVideoPolicy",_.$S(b,"offlineVideoPolicy")),G=Number(G==null?void 0:G.expirationTimestamp)):G=void 0;return(I=G)!=null?I:0};
_.CDX=function(G){return _.cj(G.entities).length};
JVj=function(G,b){return vj(G.entities,b)};
Kkd=function(G,b){return $Dr(G.entities,b)};
zi=function(G,b){return(G=vj(G.entities,b))?_.oqr([G]):0};
_.uGq=function(G,b){var I=_.wy("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(I){var h=G.entities;var q=cVX(h,b);if(q.length){var l=[];q=_.e(q);for(var V=q.next();!V.done;V=q.next())(V=mDO(h,V.value))&&l.push(V);h=l}else h=[]}else h=XQs(G.entities,b);var D;if(I){var k=G.entities;b?(b=_.$S(b,"musicPlaylist"),k=(D=k.musicPlaylist)==null?void 0:D[b],D=k!=null&&k.tracks?k.tracks.length:0):D=0}else D=G.entities,b?(b=_.$S(b,"mainPlaylistEntity"),D=(k=D.mainPlaylistEntity)==null?void 0:k[b],D=D!=null&&D.videos?
D.videos.length:0):D=0;return h.length!==D?0:h?iR2(h):0};
_.Rdq=function(G){return G.download.isLeaderTab};
_.nKr=function(G,b,I){if(!b&&I){var h=G.entities;if(I){var q=dSO(I),l,V;b=(V=(l=_.Gi(h,"offlineabilityEntity",_.$S(q,"offlineabilityEntity")))==null?void 0:l.addToOfflineButtonState)!=null?V:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else l=G.entities,b?(V=dSO(b),b=(q=(h=_.Gi(l,"offlineabilityEntity",_.$S(V,"offlineabilityEntity")))==null?void 0:h.addToOfflineButtonState)!=null?q:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return b};
OPa=function(G,b){G=G.entities;if(b){b=dSO(b);var I,h;b=(h=(I=_.Gi(G,"offlineabilityEntity",_.$S(b,"offlineabilityEntity")))==null?void 0:I.addToOfflineButtonState)!=null?h:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else b="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return b};
_.w6O=function(G){var b=G.entities;G=_.MO(G);var I=oKr(b,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.U("kevlar_modern_downloads_page")&&I)var h=!1;else{var q,l;b=(l=(q=((h=b.downloadsPageViewConfigurationEntity)!=null?h:{})[_.xS])==null?void 0:q.smartDownloadsOptInBannerVisibility)!=null?l:{};h=G?!!b.visibleWithConnection:!!b.visibleWithoutConnection}return h};
_.EKO=function(G){return oKr(G.entities,"SMART_DOWNLOADS_ENABLED")};
_.p6B=function(G){return gKO(G.entities)};
SQB=function(G){return _.fw(G.entities).every(function(b){var I;return(b==null?void 0:(I=b.transferEntity)==null?void 0:I.transferState)&&!z4j.includes(b.transferEntity.transferState)})};
_.X6B=function(G){var b,I,h,q=(h=(I=((b=G.entities.downloadsPageViewConfigurationEntity)!=null?b:{})[_.xS])==null?void 0:I.downloadsUpsellBannerVisibility)!=null?h:{};return _.MO(G)?!!q.visibleWithConnection:!!q.visibleWithoutConnection};
_.$Tq=function(G,b){return aga(G.entities,b)};
GNO=function(G,b){if(b){var I,h;G=(h=(I=_.Gi(G.entities,"downloadStatusEntity",_.$S(b,"downloadStatusEntity")))==null?void 0:I.downloadState)!=null?h:"DOWNLOAD_STATE_UNKNOWN"}else G="DOWNLOAD_STATE_UNKNOWN";return G};
im=function(G,b){return wQX(G.entities,b)};
qq2=function(G){G=b5O(G);var b=G.hours===void 0?0:G.hours,I=G.minutes===void 0?0:G.minutes,h=G.seconds===void 0?0:G.seconds,q=b>0;G=[];q&&(b=I9a(b),G.push(b));b=q;b=b===void 0?!1:b;I=(["af","be","lt"].includes(Pj)||b)&&I<10?hPu().format(I):(new Intl.NumberFormat("en-u-nu-latn")).format(I);G.push(I);I=hPu().format(h);G.push(I);I=":";"da fi id si sr sr-Latn".split(" ").includes(Pj)&&(I=".");return G.join(I)};
_.l9r=function(G){G=b5O(G);var b=G.hours===void 0?0:G.hours,I=G.minutes===void 0?0:G.minutes,h=G.seconds===void 0?0:G.seconds;G=[];if(b>0){var q=j42().format({hours:b});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Pj)||b>9999)q=q.replace(b.toString(),I9a(b)),Pj==="km"&&(q=q.replace(".",","));G.push(q)}I>0&&G.push(j42().format({minutes:I}));h>0&&G.push(j42().format({seconds:h}));b="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");I=Pj=="am"?"{0}\u1363 ":Pj=="fa"?"{0}\u060c\u200f ":
Pj=="my"?"{0} - ":Pj=="ne"?"{0},":Pj=="th"?"{0} ":Pj=="ur"?"{0}\u060c ":Pj=="ar"||Pj=="ar-XB"?"{0} \u0648":Pj=="ja"||Pj=="zh-CN"||Pj=="zh-HK"||Pj=="zh-TW"?"{0}\u3001":"{0}, ";h=Pj=="am"?"\u1363 ":Pj=="fa"?"\u060c\u200f ":Pj=="my"?" - ":Pj=="th"?" ":Pj=="ur"?"\u060c ":Pj=="ar"||Pj=="ar-XB"?" \u0648":Pj=="ja"||Pj=="zh-CN"||Pj=="zh-HK"||Pj=="zh-TW"?"\u3001":", ";q=Pj=="am"?" \u12a5\u1293 {0}":Pj=="as"?" \u0986\u09f0\u09c1 {0}":Pj=="az"?" v\u0259 {0}":Pj=="bn"?" \u098f\u09ac\u0982 {0}":Pj=="cs"?" a\u00a0{0}":
Pj=="de"?" und {0}":Pj=="el"?" \u03ba\u03b1\u03b9 {0}":Pj=="eu"?" eta {0}":Pj=="fa"?"\u060c \u0648 {0}":Pj=="fil"?", at {0}":Pj=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Pj=="hi"?", \u0914\u0930 {0}":Pj=="hu"?" \u00e9s {0}":Pj=="hy"?" \u0587 {0}":Pj=="id"?", dan {0}":Pj=="iw"?" \u05d5-{0}":Pj=="ja"?"\u3001{0}":Pj=="ka"?" \u10d3\u10d0 {0}":Pj=="km"?" \u1793\u17b7\u1784 {0}":Pj=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Pj=="ko"?" \ubc0f {0}":Pj=="ky"?" \u0436\u0430\u043d\u0430 {0}":Pj=="lt"?" ir {0}":Pj==
"lv"?" un {0}":Pj=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Pj=="mr"?" \u0906\u0923\u093f {0}":Pj=="ms"?" dan {0}":Pj=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Pj=="ne"?" \u0930 {0}":Pj=="or"?", \u0b13 {0}":Pj=="pa"?" \u0a05\u0a24\u0a47 {0}":Pj=="ro"?" \u0219i {0}":Pj=="si"?", \u0dc3\u0dc4 {0}":Pj=="sk"?" a {0}":Pj=="sl"?" in {0}":Pj=="sq"?" dhe {0}":Pj=="sv"?" och {0}":Pj=="sw"?" na {0}":Pj=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Pj=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Pj=="th"?" \u0e41\u0e25\u0e30{0}":Pj=="tr"?" ve {0}":Pj=="ur"?"\u060c \u0627\u0648\u0631 {0}":Pj=="uz"?" va {0}":Pj=="vi"?" v\u00e0 {0}":Pj=="zh-HK"?"\u53ca{0}":Pj=="zu"?", ne-{0}":Pj=="af"||Pj=="nl"?" en {0}":Pj=="ar"||Pj=="ar-XB"?" \u0648{0}":Pj=="be"||Pj=="uk"?" \u0456 {0}":Pj=="en-GB"||Pj=="en-IN"?" and {0}":Pj=="en"||Pj=="en-XA"?", and {0}":Pj=="et"||Pj=="fi"?" ja {0}":Pj=="fr"||Pj=="fr-CA"?" et {0}":Pj=="zh-CN"||Pj=="zh-TW"?"\u548c{0}":Pj=="da"||Pj=="is"||Pj=="no"?" og {0}":Pj=="es"||Pj=="es-419"||
Pj=="es-US"?" y {0}":Pj=="kk"||Pj=="lo"||Pj=="mn"?", {0}":Pj=="bg"||Pj=="mk"||Pj=="ru"||Pj=="sr"?" \u0438 {0}":Pj=="gl"||Pj=="it"||Pj=="pt-BR"||Pj=="pt-PT"?" e {0}":" i {0}";var l=Pj=="am"?"{0} \u12a5\u1293 {1}":Pj=="as"?"{0} \u0986\u09f0\u09c1 {1}":Pj=="az"?"{0} v\u0259 {1}":Pj=="bn"?"{0} \u098f\u09ac\u0982 {1}":Pj=="de"?"{0} und {1}":Pj=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Pj=="eu"?"{0} eta {1}":Pj=="fa"?"{0} \u0648 {1}":Pj=="fil"?"{0} at {1}":Pj=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Pj=="hi"?"{0} \u0914\u0930 {1}":
Pj=="hu"?"{0} \u00e9s {1}":Pj=="hy"?"{0} \u0587 {1}":Pj=="iw"?"{0} \u05d5-{1}":Pj=="ja"?"{0}\u3001{1}":Pj=="ka"?"{0} \u10d3\u10d0 {1}":Pj=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Pj=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Pj=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Pj=="ko"?"{0} \ubc0f {1}":Pj=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Pj=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Pj=="lt"?"{0} ir {1}":Pj=="lv"?"{0} un {1}":Pj=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Pj=="mn"?"{0}, {1}":Pj==
"mr"?"{0} \u0906\u0923\u093f {1}":Pj=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Pj=="ne"?"{0} \u0930 {1}":Pj=="or"?"{0} \u0b13 {1}":Pj=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Pj=="ro"?"{0} \u0219i {1}":Pj=="si"?"{0} \u0dc3\u0dc4 {1}":Pj=="sl"?"{0} in {1}":Pj=="sq"?"{0} dhe {1}":Pj=="sv"?"{0} och {1}":Pj=="sw"?"{0} na {1}":Pj=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Pj=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Pj=="th"?"{0}\u0e41\u0e25\u0e30{1}":Pj=="tr"?"{0} ve {1}":Pj=="ur"?
"{0} \u0627\u0648\u0631 {1}":Pj=="uz"?"{0} va {1}":Pj=="vi"?"{0} v\u00e0 {1}":Pj=="zh-HK"?"{0}\u53ca{1}":Pj=="zu"?"{0} ne-{1}":Pj=="af"||Pj=="nl"?"{0} en {1}":Pj=="ar"||Pj=="ar-XB"?"{0} \u0648{1}":Pj=="be"||Pj=="uk"?"{0} \u0456 {1}":Pj=="cs"||Pj=="sk"?"{0} a\u00a0{1}":Pj=="et"||Pj=="fi"?"{0} ja {1}":Pj=="fr"||Pj=="fr-CA"?"{0} et {1}":Pj=="id"||Pj=="ms"?"{0} dan {1}":Pj=="zh-CN"||Pj=="zh-TW"?"{0}\u548c{1}":Pj=="da"||Pj=="is"||Pj=="no"?"{0} og {1}":Pj=="es"||Pj=="es-419"||Pj=="es-US"?"{0} y {1}":Pj==
"bg"||Pj=="mk"||Pj=="ru"||Pj=="sr"?"{0} \u0438 {1}":Pj=="en"||Pj=="en-GB"||Pj=="en-IN"||Pj=="en-XA"?"{0} and {1}":Pj=="gl"||Pj=="it"||Pj=="pt-BR"||Pj=="pt-PT"?"{0} e {1}":"{0} i {1}";Pj==="sq"?(q=q.replace("dhe","e"),l=l.replace("dhe","e")):Pj==="th"?(h=h.replace("{0}"," {0}"),l=l.replace("{0}","{0} "),l=l.replace("{1}"," {1}")):Pj==="ne"?h=",":Pj==="zh-CN"?h="":b.includes(Pj)&&(h=" ");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(Pj)?
G.length===2?l.replace("{0}",G[0]).replace("{1}",G[1]):I.replace("{0}",G[0])+G.slice(1,-1).join(h)+q.replace("{0}",G[G.length-1]):G.join(h)};
b5O=function(G){var b=G.hours||0,I=G.minutes||0,h=G.seconds||0;b=h+I*60+b*3600+(G.days||0)*86400+(G.weeks||0)*604800+(G.months||0)*2629800+(G.years||0)*31557600;if(b<=0)return{hours:0,minutes:0,seconds:0};G=b;b=Math.floor(G/3600);G%=3600;I=Math.floor(G/60);h=Math.floor(G%60);return{hours:b,minutes:I,seconds:h}};
I9a=function(G){G=(new Intl.NumberFormat("en-u-nu-latn")).format(G);var b=["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(Pj)?G.replace(",","\u00a0"):b.includes(Pj)?G.replace(",","\u202f"):I.includes(Pj)?G.replace(",","."):G};
hPu=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
j42=function(){mTO||(d4=ePr,mTO=new Vtr);return mTO};
DTa=function(G){try{return(new _.yg(5)).format(G)}catch(b){}};
r4=function(G){return{thumbnailOverlayDownloadingRenderer:{state:G}}};
cy2=function(){var G=_.qP("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.RW(G),icon:{iconType:"PLAY_ALL"}}}};
kNu=function(G){G=_.Fo(G,2);return Pj!=="ru"&&Pj!=="es_419"&&Pj!=="es-419"&&Pj!=="es"&&Pj!=="es_US"&&Pj!=="es-US"&&Pj!=="fr"&&Pj!=="pl"&&Pj!=="it"&&Pj!=="nl"&&Pj!=="uk"&&Pj!=="fr_CA"&&Pj!=="fr-CA"||G===""?G:G[0].toLocaleUpperCase()+G.substring(1)};
LUX=function(G){return function(b){var I=G(),h=_.Fo(b,I.dateFormat);b=_.Fo(b,I.timeFormat);var q=vkj.DATETIMEFORMATS[I.joinerStyle];q=q.replace(/'(?!')/g,"");q=q.replace("{0}",b);q=q.replace("{1}",h);return I.capitalize(q)}};
Q4X=function(G){return G?typeof G.seconds==="string"&&(G.nanos===void 0||typeof G.nanos==="number"):!1};
xTX=function(G){return new Date(Number(G.seconds)*1E3+(G.nanos||0)*1E-6)};
_.Fo=function(G,b){if(typeof G.getTime==="function")G={date:G};else if(Q4X(G))G={date:xTX(G)};else if(typeof Q4X(G.timestamp)&&typeof G.i18nInternalSecondsEastOfUtc==="number")G={date:xTX(G.timestamp),timeZone:Hj(-G.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(G));var I=G;G=I.date;I=I.timeZone;b=f9d(b).format(G,I);Pj==="zh-TW"&&(G=I?Number(f9d("H").format(G,I)):G.getHours(),b=G<5?b.replace("\u4e0a\u5348","\u51cc\u6668"):G<8?b.replace("\u4e0a\u5348","\u65e9\u4e0a"):G<12?
b.replace("\u4e0a\u5348","\u4e0a\u5348"):G<13?b.replace("\u4e0b\u5348","\u4e2d\u5348"):G<19?b.replace("\u4e0b\u5348","\u4e0b\u5348"):b.replace("\u4e0b\u5348","\u665a\u4e0a"));return b};
f9d=function(G){if(TNO.has(G))return TNO.get(G);var b=BNq(G);b=UTj(b);s4O!==!0&&(s4O=!0);gkB=!0;gkB=!1;b=new Wj(b,vkj);TNO.set(G,b);return b};
BNq=function(G){return(new Wj(G,vkj)).patternParts_.map(function(b){return b.type===0?"'"+b.text+"'":b.text}).join("")};
UTj=function(G){return Pj==="en"||Pj==="es_US"||Pj==="es-US"?G:G.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(b,I,h){return"H".repeat(I.length)+h})};
lFu=function(G,b){Ay2||(d4=ePr,Ay2=new b9a);var I=Ay2;a:if(G=IFj(G),b=IFj(b||new Date),G>b)I=G.getTime()-b.getTime()>6048E5?_.Fo(G,1):hoq(G);else{for(var h=0;qTp(G,12*(h+1))<b;)++h;if(h>0)I=I.format(-h,0);else{for(h=0;qTp(G,h+1)<b;)++h;if(h>0)I=I.format(-h,2);else{G=b.getTime()-G.getTime();b=_.e(jFB);for(h=b.next();!h.done;h=b.next()){h=h.value;var q=h.unit,l=Math.floor(G/h.unitDuration);if(l>=(h.threshold===void 0?1:h.threshold)){I=I.format(-l,q);break a}}I=I.format(-0,7)}}}return I};
IFj=function(G){if(typeof G.getTime==="function")return G;if(Q4X(G))return xTX(G);throw Error("Mf`"+JSON.stringify(G));};
qTp=function(G,b){for(var I=0,h;;++I)if(h=new Date(G.getFullYear(),G.getMonth()+b,G.getDate()-I,G.getHours(),G.getMinutes(),G.getSeconds()),h.getMonth()===(G.getMonth()+b)%12)return h};
_.ao=function(G){return{runs:[{text:G}]}};
_.NO=function(G){if(G&&G.simpleText)return G.simpleText;var b="";if(G&&G.runs)for(var I=0;I<G.runs.length;I++)G.runs[I].text&&(b+=G.runs[I].text);return b};
eor=function(G,b,I,h){return G.videoEntity&&!G.policyEntity&&I!=="DOWNLOAD_STATE_FAILED"?[r4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:en(G.policyEntity)&&b!=="TRANSFER_STATE_FAILED"&&b!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?b==="TRANSFER_STATE_PAUSED_BY_USER"?[r4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Vg(b)?[r4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:G.videoEntity.lengthSeconds?mMd(G.videoEntity.lengthSeconds,h):[]:
[r4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
mMd=function(G,b){var I=[{thumbnailOverlayTimeStatusRenderer:{text:_.RW(qq2({seconds:G})),style:"DEFAULT"}}];b&&(G=b<=0||G<=0?0:b>=G?100:Math.ceil(b*100/G),G>0&&I.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:G}}));return I};
VJr=function(G,b,I,h,q){if(b==="TRANSFER_STATE_UNKNOWN"||!G)return{};if(_.Vg(b)||b==="TRANSFER_STATE_PRE_TRANSFER")var l=[r4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var V,D;if(b==="TRANSFER_STATE_COMPLETE"&&((V=G.mainPlaylistEntity)==null?0:(D=V.videos)==null?0:D.length)){var k;G=(l=G.mainPlaylistEntity)==null?void 0:(k=l.videos)==null?void 0:k.length;l=(l=DTa(G))?{thumbnailOverlayBottomPanelRenderer:{text:_.RW(l),icon:{iconType:"PLAYLISTS"}}}:void 0;l=[cy2(),Object.assign({},
l!=null?l:{})]}else l=[]}a:if(b==="TRANSFER_STATE_PRE_TRANSFER")I=nU(_.qP("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE")I=nU(_.qP("WAITING_TO_DOWNLOAD"));else if(_.Vg(b))I=Math.floor(I*100).toString(),I=nU(_.qP("DOWNLOADING_PERCENT",{percent:I},"Downloading... "+I+"%"));else{if(h&&(_.U("playlist_is_offline_selector_killswitch")&&(q=_.LL().resolve(_.IB).isNetworkAvailable()),q)){I=aRp(_.qP("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
Hmp(h));break a}I=void 0}b=b==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.qP("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},l.length?{thumbnailOverlays:l}:{},I?{viewPlaylistText:I}:{viewPlaylistText:_.ao("")},b.length?{badges:b}:{})};
DMX=function(G,b,I,h,q,l){if(b==="TRANSFER_STATE_UNKNOWN"||!G)return{};if(h==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var V=eor(G,b,h);if(G.videoEntity&&!G.policyEntity&&h!=="DOWNLOAD_STATE_FAILED"){var D=_.qP("WAITING_TO_DOWNLOAD");if(D)return{shortViewCountText:_.ao(D),publishedTimeText:void 0,thumbnailOverlays:V}}if(!en(G.policyEntity)){l=G.policyEntity&&!Pd2(G.policyEntity)?_.qP("DOWNLOAD_EXPIRED",{},"Download expired"):
_.qP("TRANSFER_FAILED",{},"Download failed");var k;if((k=G.policyEntity)==null?0:k.shortMessageForDisabledAction)l=G.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:nU(l),publishedTimeText:void 0,thumbnailOverlays:V}}if(b==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.ao(_.qP("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:V};if(b==="TRANSFER_STATE_FAILED"||b==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.ao(_.qP("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:V};if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(k=_.qP("WAITING_TO_DOWNLOAD"),h==="DOWNLOAD_STATE_PAUSED"&&(k=_.qP("DOWNLOAD_PAUSED",{},"Download paused")),k))return{shortViewCountText:_.ao(k),publishedTimeText:void 0,thumbnailOverlays:V};if(_.Vg(b))return G=Math.floor(I*100).toString(),{shortViewCountText:_.ao(_.qP("DOWNLOADING_PERCENT",{percent:G},"Downloading... "+G+"%")),publishedTimeText:void 0,thumbnailOverlays:V};b=void 0;G.videoEntity.publishedTimestampMillis&&
(b=new Date,q&&(b=new Date(q)),b=nU(lFu(new Date(Number(G.videoEntity.publishedTimestampMillis)),b)));q=[];_.U("kevlar_woffle_badge_killswitch")||(q=[{metadataBadgeRenderer:{label:_.qP("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var L;G=nU((L=G.videoEntity.localizedStrings)==null?void 0:L.viewCount);return Object.assign({},l?{shortViewCountText:void 0}:{shortViewCountText:G},l?{}:{publishedTimeText:b},{badges:q,thumbnailOverlays:V})};
kJr=function(G,b){G=G===void 0?co2:G;switch(b.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:b.payload.playlistId,inviteLinkURL:b.payload.inviteLinkUrl};default:return G}};
Liv=function(G,b){G=G===void 0?vEO:G;switch(b.type){case "SET_CURRENT_FORM_ID":return b=b.payload.formId,G.currentFormId===b?G:{currentFormId:b,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var I=b.payload;b=I.groupId;I=I.command;if(G.currentFormId){var h=Object.assign({},G.commandsMap);h[b]=I;G=Object.assign({},G,{commandsMap:h})}return G;case "RESET_COMMAND_MAP":return Object.assign({},G,{commandsMap:{}});default:return G}};
xMv=function(G,b){G=G===void 0?QFj:G;switch(b.type){case "UPDATE_CANVAS_MODE":return Object.assign({},G,{currentMode:b.payload.currentMode});default:return G}};
TFX=function(G,b){G=G===void 0?fFr:G;switch(b.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},G,{guideIsExpanded:b.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},G,{scrollAtTop:b.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},G,{guideIsVisibleButNotPersistent:b.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},G,{miniplayerIsActive:b.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},G,{singleOptionSurveyIsActive:b.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},G,{slimlineSurveyRatingSelectedIndex:b.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},G,{richGridMiniMode:b.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},G,{richGridItemsPerRow:b.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},G,{richGridSlimItemsPerRow:b.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},G,{richGridContainerWidth:b.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},G,{richGridStyle:b.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},G,{currentPageType:b.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},G,{inlinePreviewIsActive:b.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},G,{inlinePreviewIsEnabled:b.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},G,{darkModeIsEnabled:b.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
G,{miniplayerPlaybackState:b.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},G,{tabGesturesIsActive:b.payload});case "SET_ONLINE_STATUS":return Object.assign({},G,{isOnline:b.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},G,{chipBarIsSticky:b.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},G,{frostedGlassMode:b.payload});default:return G}};
BFO=function(){return _.U("kevlar_disable_theater_mode_persistence")?!1:_.Sk("START_IN_THEATER_MODE")};
sFB=function(G,b){G=G===void 0?UMj:G;switch(b.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},G,{transcription:b.payload});case "SET_OVERLAY_STATE":return Object.assign({},G,{overlay:b.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return G}};
dMO=function(){return i4(Object.assign({},{continuation:gEj,download:AoO,canvas:xMv,reportChannelAbuse:MJr,share:Z9p,talkToRecs:tJp,ui:TFX,voiceSearch:sFB,watch:zov,ypc:oEd,shorts:i9s,radioButtonGroup:Liv,collabInviteLink:kJr},P7j))};
Fiu=function(){return _.U("web_player_entities_middleware")?new YS(dMO(),[yoO,roX]):new YS(dMO(),[yoO])};
_.Cw=function(){H9O||(H9O=Fiu());return H9O};
Wi2=function(G,b,I){if(G.length)return{titleText:_.RW(b!=null?b:_.qP("DOWNLOADS",void 0,"Downloads")),contents:G.map(function(h){var q=h.videoEntity;h={videoId:q.videoId,title:nU(q.title),shortBylineText:nU(h.channelEntity.title),thumbnail:q.thumbnail};var l=q.videoId?im(_.Cw().getState(),q.videoId):0;q.videoId&&I?h.navigationEndpoint=_.u9(q.videoId,I,void 0,void 0,l):q.videoId&&(h.navigationEndpoint=FSa(q.videoId,l,q.lengthSeconds));q.lengthSeconds&&(h.thumbnailOverlays=mMd(q.lengthSeconds,l));return{playlistPanelVideoRenderer:h}}),
totalVideos:G.length}};
aFq=function(G){return(G=(0,_.Cy.getValueByKeys)(G,"playlistId"))?{playlistId:G}:null};
NFv=function(){return{}};
YTv=function(G,b){return new _.MB(function(I,h){G.then(function(q){if(q){if(q=b(q))return I(q);h()}},h)})};
C7B=function(G){var b,I,h,q=(b=G.contents)==null?void 0:(I=b.twoColumnWatchNextResults)==null?void 0:(h=I.autoplay)==null?void 0:h.autoplay,l,V,D;b=(l=G.contents)==null?void 0:(V=l.twoColumnWatchNextResults)==null?void 0:(D=V.playlist)==null?void 0:D.playlist;return q&&b&&b.playlistId?{rawResponse:G,autoplayRenderer:q,playlistPanelRenderer:b,playlistId:b.playlistId}:null};
Kiu=function(G){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(G.length===1)return G[0];var I=Jor[b];if(I){I=new RegExp(I);for(var h=_.e(G),q=h.next();!q.done;q=h.next())if(q=q.value,I.exec(q))return q}var l=[];Object.entries(Jor).forEach(function(V){var D=_.e(V);V=D.next().value;D=D.next().value;b!==V&&l.push(D)});
I=new RegExp(l.join("|"));G.sort(function(V,D){return V.length-D.length});
h=_.e(G);for(q=h.next();!q.done;q=h.next())if(q=q.value,!I.exec(q))return q;return G[0]};
_.JQ=function(G){return"/youtubei/v1/"+Kiu(G)};
_.Kw=function(G,b){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:G}}},b!==void 0?{durationHintMs:b}:{})}};
_.um=function(G,b){return _.Kw(_.ao(G),b)};
u1X=function(G,b){var I={mode:"NORMAL"};G&&(I.autoplayVideo=G.navigationEndpoint,I.nextButtonVideo=G.navigationEndpoint);b&&(I.previousButtonVideo=b.navigationEndpoint);return I};
O9u=function(G,b,I){if(!I||!I.sets)return{sets:[u1X(G,b)]};var h=I.sets.find(function(V){return V.mode==="NORMAL"}),q=(0,_.Cy.unsafeClone)(I);
if(!h)return q.sets.push(u1X(G,b)),q;if(!G)return I;h=_.Cy.getValueByKeys.apply(null,[h].concat(_.Nz(Rop)));var l=_.Cy.getValueByKeys.apply(null,[G].concat(_.Nz(nEj)));if(h===l)return I;q.sets=q.sets.filter(function(V){return V.mode!=="NORMAL"});
q.sets.push(u1X(G,b));return q};
wF2=function(G){return!!G.playlistPanelVideoRenderer&&!G.playlistPanelVideoRenderer.unplayableText};
EE2=function(G){return!!G.playlistPanelVideoRenderer&&!!G.playlistPanelVideoRenderer.title};
pFd=function(G,b){if(b.contents&&!(G>=b.contents.length)&&(G=b.contents.slice(G).find(wF2)))return G.playlistPanelVideoRenderer};
STX=function(G,b){if(b.contents)return(b=b.contents.find(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===G}))?b.playlistPanelVideoRenderer:void 0};
XFO=function(G,b){return b.contents?b.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===G}):-1};
$Jd=function(G,b){return b.contents?b.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.playlistSetVideoId===G}):-1};
GcO=function(G,b){G.contents&&b!==-1&&G.contents.splice(b,1).length===1&&G.totalVideos!==void 0&&(--G.totalVideos,delete G.videoCountText)};
_.bqv=function(G){var b=[];if(!G||!G.contents)return b;G=_.e(G.contents);for(var I=G.next();!I.done;I=G.next())I=I.value,I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId&&b.push(I.playlistPanelVideoRenderer.videoId);return b};
_.IsX=function(G){if(G&&G.contents)return(G=G.contents.find(function(b){return!!b.playlistPanelVideoRenderer&&!!b.playlistPanelVideoRenderer.selected})||G.contents[G.currentIndex])?G.playlistPanelVideoRenderer:void 0};
hEp=function(G,b,I,h,q,l,V){q=q===void 0?!1:q;l=l===void 0?!1:l;V=V===void 0?!1:V;if(G.contents&&G.contents.length!==0){h&&(G.contents=G.contents.filter(h));h=G.contents.length;for(var D=0;D<h;D++){var k=G.contents[D].playlistPanelVideoRenderer;k&&(D===b?(l&&delete k.menu,k.indexText=_.ao("\u25b6")):q||G.isInfinite||k.indexText===void 0?delete k.indexText:k.indexText=_.ao((D+1+I).toString()))}G.currentIndex=b+I;V&&(delete G.videoCountText,G.totalVideos=h)}};
_.Ro=function(G){G=qmu(G);if(G){var b=G.length;var I=-67%b;I<0&&(I=b+I);G=G.slice(b-I)+G.slice(0,b-I)}else G="";I="";for(b=0;b<G.length&&G[b]!==jmO;b++)I+=G[b];return I};
_.lsO=function(G,b){var I=document.body;b=b===void 0?function(D){return D}:b;
var h,q=null;G=_.e(G);for(h=G.next();!h.done;h=G.next()){var l=h.value;h="div";l[2]&&(h=b(l[2]));h=document.createElement(h);q||(q=h);var V=l[0];l=l[1];V&&(h.id=b(V));if(l)for(l=_.e(l),V=l.next();!V.done;V=l.next())h.classList.add(b(V.value));I.appendChild(h);I=h}return[q,I]};
mJq=function(G,b){for(var I="",h=0;h<b;h++)I+=G.charAt(Math.floor(Math.random()*G.length));return I};
nw=function(G){return mJq("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",G)};
Ob=function(G){return mJq("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",G)};
w4=function(G){return mJq("0123456789",G)};
eEr=function(){var G=performance.now(),b=new Date;var I="2."+b.getFullYear()+String(b.getMonth()+1).padStart(2,"0")+String(b.getDate()).padStart(2,"0");for(var h,q=Math.floor(Math.random()*11)+15,l=[],V=0;V<q;V++)l.push(Math.floor(Math.random()*26476865)+24547720);h=l.join(",");var D=nw(10),k=nw(100),L=nw(102),x=nw(106),f=nw(108),T=nw(11),B=nw(1140),A=nw(123),t=nw(14),y=nw(16),F=nw(1900),W=nw(23),O=nw(26),K=nw(34),u=nw(397),w=nw(44),$a=nw(5),ev=nw(72),LO=nw(74),td=nw(75),xa=nw(88),Uj=nw(91),W2="rr2---sn-q4fzen7r rr2---sn-ntq7yned rr3---sn-5hneknek rr3---sn-q4fzenee rr1---sn-5hne6n6e rr4---sn-q4flrnsl rr3---sn-ntq7yns7 rr1---sn-q4flrner rr2---sn-q4flrnld rr1---sn-q4fl6nzy rr4---sn-aigzrnz7 rr1---sn-ntqe6n7r rr4---sn-ntq7yned rr5---sn-hgn7rn7k rr2---sn-t0a7lnee rr1---sn-q4flrn7k rr4---sn-ntq7yner rr2---sn-q4fl6nd6 rr1---sn-q4fl6n6r rr1---sn-q4fl6nss".split(" ");
var is=W2[Math.floor(Math.random()*W2.length)];var su=(new Date("2010-01-01")).getTime();var an=(new Date(su+Math.random()*((new Date).getTime()-su))).toISOString().split("T")[0];for(var A5,XO=[],kb=0;kb<4;kb++)XO.push(Math.floor(Math.random()*100));A5=XO.join(".");var rz=Number(w4(5)),on=Number(w4(6)),Ac=Number(w4(7)),U1=Number(w4(9)),mp=w4(1),bn=w4(10),xb=w4(16),j8=w4(19),BX=w4(2),I5=w4(20),ys=w4(21),nQ=w4(3),vX=w4(4),cX=w4(5),Ga=w4(6),wX=w4(7),TA=w4(8),s1=w4(9);var pA=mJq("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var yK=[Ob(5),Ob(5),Ob(5)].join("%2C"),CN=[w4(3),w4(5),w4(5)].join("%2C"),SG=Ob(0),Va=Ob(1),XJ=Ob(10),tc=Ob(108),m9=Ob(11),Wr=Ob(12),U8=Ob(13),J4=Ob(14),f0=Ob(15),Jj=Ob(16),kS=Ob(17),oO=Ob(18),aO=Ob(19),RO=Ob(2),gz=Ob(20),gj=Ob(22),dd=Ob(23),rj=Ob(24),t5=Ob(266),M8=Ob(3),CD=Ob(30),Bg=Ob(34),fQ=Ob(35),ok=Ob(36),Tt=Ob(4),Jz=Ob(40),EM=Ob(43),XQ=Ob(47),Fs=Ob(5),sg=Ob(6),s5=Ob(7),lL=Ob(75),nO=Ob(8),za=Ob(80),o5=Ob(9),vL="https://www."+Ob(12)+".com",Ly={},py={},O8={},hN={},HN={},u8={},Rf={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:h}]},{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"+Ob(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:h}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:ys+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Ob(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Jz,ypcGetOfflineUpsellEndpoint:{params:za}},trackingParams:fQ+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&cnr="+BX+"&ratebypass=yes&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&c=WEB&txp="+wX+"&n="+y+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:on,width:640,height:360,lastModified:xb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:wX,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+CN+"&mn="+
yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&cnr="+BX+"&ratebypass=yes&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&c=WEB&txp="+wX+"&n="+y+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+tc+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:on,width:1280,
height:720,lastModified:xb,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:wX,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+CN+"&mn="+yK+"&ms="+
yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+s1+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Ac,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:s1,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ac,approxDurationMs:wX},{itag:248,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+CN+"&mn="+yK+"&ms="+yK+"&mv="+
Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fwebm&ns="+rj+"&gir="+M8+"&clen="+s1+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/webm; codecs="vp9"',bitrate:Ac,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:s1,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ac,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:399,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+s1+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Ac,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:s1,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ac,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:136,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+s1+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Ac,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:s1,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:on,approxDurationMs:wX},{itag:247,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+CN+"&mn="+
yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fwebm&ns="+rj+"&gir="+M8+"&clen="+s1+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/webm; codecs="vp9"',bitrate:Ac,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:s1,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:on,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:398,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+s1+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Ac,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:s1,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:on,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:135,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:on,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:on,approxDurationMs:wX},{itag:244,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+CN+"&mn="+
yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fwebm&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+tc+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/webm; codecs="vp9"',bitrate:on,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:on,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:397,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:on,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:on,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:134,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:on,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:on,highReplication:!0,approxDurationMs:wX},{itag:243,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fwebm&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/webm; codecs="vp9"',bitrate:on,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:on,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:396,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:on,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:on,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:133,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:on,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:on,approxDurationMs:wX},{itag:242,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+CN+"&mn="+
yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fwebm&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/webm; codecs="vp9"',bitrate:on,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:on,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:395,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:on,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:on,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:160,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:on,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:rz,approxDurationMs:wX},{itag:278,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+CN+"&mn="+
yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fwebm&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/webm; codecs="vp9"',bitrate:on,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:rz,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:394,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&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="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=video%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:rz,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:rz,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wX},{itag:140,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=audio%2Fmp4&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:on,
initRange:{start:"0",end:"631"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:on,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:wX,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+
BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=audio%2Fwebm&ns="+rj+"&gir="+M8+"&clen="+wX+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'audio/webm; codecs="opus"',bitrate:rz,initRange:{start:"0",end:"265"},indexRange:{start:nQ,
end:vX},lastModified:xb,contentLength:wX,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:rz,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:wX,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=audio%2Fwebm&ns="+
rj+"&gir="+M8+"&clen="+wX+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'audio/webm; codecs="opus"',bitrate:rz,initRange:{start:"0",end:"265"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:wX,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:rz,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:wX,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+is+".googlevideo.com/videoplayback?expire="+bn+"&ei="+W+"&ip="+A5+"&id=o-AF"+EM+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+CN+"&mn="+yK+"&ms="+yK+"&mv="+Va+"&mvi="+mp+"&pl="+BX+"&initcwndbps="+wX+"&siu="+mp+"&spc="+w+"&vprv="+mp+"&svpuc="+mp+"&mime=audio%2Fwebm&ns="+rj+"&gir="+M8+"&clen="+TA+"&dur="+TA+"&lmt="+xb+"&mt="+bn+"&fvip=3&keepalive="+M8+"&c=WEB&txp="+
wX+"&n="+Jj+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+f,mimeType:'audio/webm; codecs="opus"',bitrate:on,initRange:{start:"0",end:"265"},indexRange:{start:nQ,end:vX},lastModified:xb,contentLength:TA,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:on,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:wX,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="+s1+"&docid="+T+"&ei="+W+"&feature="+D+"&fexp="+SG+"&ns="+RO+"&plid="+y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Va+"&el="+XJ+"&len="+vX+"&of="+gj+
"&uga="+BX+"&vm="+t5},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+s1+"&docid="+T+"&ei="+W+"&feature="+D+"&fexp="+SG+"&ns="+RO+"&plid="+y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Va+"&el="+XJ+"&len="+vX+"&of="+gj+"&uga="+BX+"&vm="+t5},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+s1+"&docid="+T+"&ei="+W+"&feature="+D+"&fexp="+SG+"&ns="+RO+"&plid="+y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Va+"&el="+XJ+"&len="+vX+"&of="+gj+"&uga="+BX+"&vm="+t5},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+W+"&m="+xa+"&oid="+gj+"&plid="+y+"&pltype="+s5+"&ptchn="+gj+"&ptk="+t+"&video_id="+T},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+s1+"&docid="+T+"&ei="+W+"&event="+J4+"&feature="+D+"&fexp="+SG+"&ns="+RO+"&plid="+y+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Va},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
Jj+"&ver=2&cmt=1."+nQ+"&fmt="+nQ+"&fs=0&rt="+cX+"&euri&lact="+nQ+"&cl="+s1+"&mos="+mp+"&volume=100&cbrand="+Fs+"&cbr="+sg+"&cbrver="+A5+"&c=WEB&cver="+I+"&cplayer=UNIPLAYER&cos="+o5+"&cosver="+wX+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+BX+"&len="+TA+"&fexp="+yK+"&feature=g-high-rec&afmt="+nQ+"&muted=0&conn=1&docid="+T+"&ei="+W+"&plid="+y+"&vm="+Ob(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
T+"&caps="+M8+"&opi="+s1+"&xoaf="+mp+"&hl="+RO+"&ip="+A5+"&ipbits="+mp+"&expire="+bn+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+A5+"&key="+M8+"&lang="+$a,name:{simpleText:gz},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+T+"&caps="+M8+"&opi="+s1+"&xoaf="+mp+"&hl="+RO+"&ip="+A5+"&ipbits="+mp+"&expire="+bn+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+A5+"&key="+M8+"&kind="+M8+"&lang="+RO,name:{simpleText:sg},
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:m9,title:J4,lengthSeconds:"1155",keywords:[gz,gz,Jj,m9],channelId:rj,isOwnerViewing:!1,shortDescription:aO,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+ok+"G&rs="+Bg,width:168,height:94},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+ok+
"G&rs="+Bg,width:196,height:110},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+ok+"G&rs="+K,width:246,height:138},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+ok+"G&rs="+K,width:336,height:188},{url:"https://i.ytimg.com/vi/"+T+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:wX,author:U8,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:wX,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
gj+"/featured_channel.jpg?v="+nO,width:40,height:40}]},trackingParams:fQ+"=",navigationEndpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{url:"/channel/"+rj,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:rj}},channelName:U8,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:nO}]},subscribed:!1,enabled:!0,type:"FREE",channelId:rj,showPreferences:!1,subscribedButtonText:{runs:[{text:o5}]},unsubscribedButtonText:{runs:[{text:J4}]},
trackingParams:fQ+"=",unsubscribeButtonText:{runs:[{text:aO}]},serviceEndpoints:[{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[rj],params:nO}},{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Jz,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:fQ+"=",dialogMessages:[{runs:[{text:U8},
{text:o5},{text:U8}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:m9}]},serviceEndpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[rj],params:nO}},accessibility:{label:gz},trackingParams:fQ+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Jj}]},accessibility:{label:gz},
trackingParams:fQ+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:aO}},unsubscribeAccessibility:{accessibilityData:{label:Jj}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:TA},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[rj],
params:nO}},unsubscribeCommand:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[rj],params:nO}},addToWatchLaterCommand:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:m9,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:m9}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+T+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+ok+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+m9,width:1280,
height:720},title:{simpleText:s5},description:{simpleText:J4},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+kS,externalChannelId:rj,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:wX,category:"Travel & Events",publishDate:an,ownerChannelName:U8,uploadDate:an}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:J4},trackingParams:fQ+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Jz,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:fQ+"="}}],headerText:{simpleText:Fs},icon:{infoCardIconRenderer:{trackingParams:fQ+"="}},closeButton:{infoCardIconRenderer:{trackingParams:fQ+"="}},trackingParams:fQ+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:fQ+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+m9+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:pA,interpreterSafeUrl:(Ly.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+CD+".js",Ly),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:f0},{text:J4,bold:!0}]},endpoint:{clickTrackingParams:Jz,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:fQ+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:gz}]},actionButton:{buttonRenderer:{text:{runs:[{text:kS}]},navigationEndpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+T,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
T,target:"TARGET_NEW_WINDOW"}},trackingParams:fQ+"="}},trackingParams:fQ+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+ev+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+ev+"=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:wX,endMs:wX,title:{accessibility:{accessibilityData:{label:Tt}},simpleText:f0},metadata:{simpleText:o5},callToAction:{simpleText:m9},dismiss:{simpleText:s5},endpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{url:"/channel/"+rj,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:rj}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:f0}]},subscribed:!1,enabled:!0,type:"FREE",channelId:rj,showPreferences:!1,
subscribedButtonText:{runs:[{text:s5}]},unsubscribedButtonText:{runs:[{text:XJ}]},trackingParams:fQ+"=",unsubscribeButtonText:{runs:[{text:J4}]},serviceEndpoints:[{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[rj],params:nO}},{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Jz,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:fQ+
"=",dialogMessages:[{runs:[{text:kS},{text:f0},{text:aO}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:J4}]},serviceEndpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[rj],params:nO}},accessibility:{label:aO},trackingParams:fQ+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:kS}]},
accessibility:{label:f0},trackingParams:fQ+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Fs}},unsubscribeAccessibility:{accessibilityData:{label:oO}}}},trackingParams:fQ+"=",isSubscribe:!0,id:I5}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+ok+"G&rs="+K,width:168,height:94},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+ok+"G&rs="+Bg,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+ok+"G&rs="+K,width:246,height:138},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+ok+"G&rs="+K,width:336,height:188},{url:"https://i.ytimg.com/vi/"+T+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:wX,endMs:wX,title:{accessibility:{accessibilityData:{label:Wr}},simpleText:s5},metadata:{simpleText:U8},endpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
m9,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:m9,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+is+".googlevideo.com/videoplayback?source=youtube&oeis="+mp+"&c=WEB&oad="+vX+"&ovd="+vX+"&oaad="+cX+"&oavd="+cX+"&ocs="+nQ+"&oewis="+mp+"&oputc="+mp+"&ofpcc="+mp+"&siu="+mp+"&msp="+mp+"&odepv="+mp+
"&id=o-AF"+EM+"&ip="+A5+"&initcwndbps="+wX+"&mt="+bn+"&oweuc="+SG}}}}},trackingParams:fQ+"=",id:I5,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:aO}},simpleText:sg},style:"DEFAULT"}}]}}],startMs:wX,trackingParams:fQ+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:mp,offsetEndMilliseconds:cX},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+s1+";dc_trk_cid="+s1+";dc_dbm_token="+f+";ord="+bn+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+mp+";dc_rui="+mp+";dc_exteid="+I5+";dc_av="+nQ+";dc_sk="+mp+";dc_ctype="+BX+";dc_ref=http://www.youtube.com/video/"+m9+";dc_pubid="+mp+";dc_btype=23?gclid="+Uj+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+mp+"&ns="+mp+"&event="+mp+"&device="+mp+"&content_v="+T+"&el="+XJ+"&ei="+W+"&devicever="+I+"&bti="+wX+"&format="+Ga+"&break_type="+mp+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+mp+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+A5+"&slot_pos="+mp+"&slot_len="+mp+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+CN+"&ad_len="+cX+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
m9+"&aqi="+W+"&ad_rmp="+mp+"&sli="+mp}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+
";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+Ga+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+wX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&ctype="+nQ+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_engaged_view&ctype="+nQ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+Ga+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
s1+";dc_trk_cid="+s1+";dc_dbm_token="+f+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+mp+";ord="+s1+";dc_rui="+mp+";dc_exteid="+j8+";dc_av="+mp+";dc_sk="+mp+";dc_ctype="+BX+";dc_pubid="+mp+";dc_btype=3?gclid="+Uj+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+dd+"&ad_cpn=[AD_CPN]&id="+sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&dc_pubid="+mp+"&dc_exteid="+I5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+dd+"&ad_cpn=[AD_CPN]&id="+sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+mp},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&avm="+mp+"&dc_pubid="+mp+"&dc_exteid="+
I5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&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="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
L+"&sig="+dd+"&ad_cpn=[AD_CPN]&id="+sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+mp},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&dc_pubid="+mp+"&dc_exteid="+I5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+Ga+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+Ga+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Jz,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+
nQ+"&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/"+T+"/mqdefault.jpg",width:320,height:180}]},trackingParams:fQ+"="},trackingParams:fQ+
"=",templatedCountdown:{templatedAdText:{text:Tt,isTemplated:!0,trackingParams:fQ+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:o5,isTemplated:!1,trackingParams:fQ+"="},trackingParams:fQ+"="}},trackingParams:fQ+"=",skipOffsetMilliseconds:5E3}},trackingParams:fQ+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:XJ},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fQ+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:U8,isTemplated:!1,trackingParams:fQ+"="},trackingParams:fQ+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:sg,isTemplated:!0,trackingParams:fQ+"="}},trackingParams:fQ+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Jz,openPopupAction:{popup:{aboutThisAdRenderer:{url:(py.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+RO+"&origin=www.youtube.com&ata_theme="+Tt,py),trackingParams:fQ+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:fQ+"="}},hoverText:{runs:[{text:o5}]},trackingParams:fQ+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+XQ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fQ+"="},headline:{text:nO,isTemplated:!1,trackingParams:fQ+"="},description:{text:XJ,
trackingParams:fQ+"="},actionButton:{buttonRenderer:{text:{simpleText:Tt},navigationEndpoint:{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+s1+";dc_trk_cid="+s1+";dc_dbm_token="+f+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+mp+";ord="+s1+";dc_rui="+mp+";dc_exteid="+I5+";dc_av="+mp+";dc_sk="+mp+";dc_ctype="+BX+";dc_pubid="+mp+";dc_btype=3?gclid="+Uj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fQ+"="}},startMs:mp,trackingParams:fQ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Fs},elementId:U8}},elementId:Jj,trackingParams:fQ+"=",legacyInfoCardVastExtension:Wr,sodarExtensionData:{siub:oO,bgub:Tt,scs:o5,bgp:sg},externalVideoId:m9,adLayoutLoggingData:{serializedAdServingDataEntry:oO},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+XQ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fQ+"="},
headline:{text:nO,isTemplated:!1,trackingParams:fQ+"="},description:{text:Wr,isTemplated:!1,trackingParams:fQ+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Fs},navigationEndpoint:{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+s1+";dc_trk_cid="+s1+";dc_dbm_token="+f+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+mp+";ord="+s1+";dc_rui="+mp+";dc_exteid="+
I5+";dc_av="+mp+";dc_sk="+mp+";dc_ctype="+BX+";dc_pubid="+mp+";dc_btype=3?gclid="+Uj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+
mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fQ+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:fQ+"="}},navigationEndpoint:{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+s1+";dc_trk_cid="+
s1+";dc_dbm_token="+f+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+mp+";ord="+s1+";dc_rui="+mp+";dc_exteid="+I5+";dc_av="+mp+";dc_sk="+mp+";dc_ctype="+BX+";dc_pubid="+mp+";dc_btype=3?gclid="+Uj+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fQ+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:fQ+"="},abandonCommands:{commands:[{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&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="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+
mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Jz,commandExecutorCommand:{commands:[{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:m9,isTemplated:!1,trackingParams:fQ+
"="},trackingParams:fQ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:sg},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+wX+";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="+s1+";dc_trk_cid="+s1+";ord="+bn+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+mp+";dc_rui="+mp+";dc_exteid="+I5+";dc_av="+nQ+";dc_sk="+mp+";dc_ctype="+BX+";dc_ref=http://www.youtube.com/video/"+m9+";dc_pubid="+mp+";dc_btype=23?gclid="+Uj+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+mp+"&ns="+mp+"&event="+mp+"&device="+mp+"&content_v="+T+"&el="+XJ+"&ei="+W+"&devicever="+I+"&bti="+wX+"&format="+Ga+"&break_type="+mp+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+mp+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+A5+"&slot_pos="+mp+"&slot_len="+mp+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
CN+"&ad_len="+cX+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+m9+"&aqi="+W+"&ad_rmp="+mp+"&sli="+mp}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+Ga+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+
O+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+wX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&ctype="+nQ+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,
attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_engaged_view&ctype="+nQ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+Ga+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+dd+"&ad_cpn=[AD_CPN]&id="+
sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&dc_pubid="+mp+"&dc_exteid="+I5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+
"&sig="+dd+"&ad_cpn=[AD_CPN]&id="+sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+mp},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&avm="+mp+"&dc_pubid="+mp+"&dc_exteid="+I5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&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="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+dd+"&ad_cpn=[AD_CPN]&id="+sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+mp},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&dc_pubid="+mp+"&dc_exteid="+I5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+Ga+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+Ga+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+
nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&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/"+T+"/mqdefault.jpg",width:320,height:180}]},trackingParams:fQ+"="},trackingParams:fQ+"=",templatedCountdown:{templatedAdText:{text:XJ,isTemplated:!0,trackingParams:fQ+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:nO,isTemplated:!1,trackingParams:fQ+"="},trackingParams:fQ+"="}},
trackingParams:fQ+"=",skipOffsetMilliseconds:5E3}},trackingParams:fQ+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:aO},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fQ+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:kS,isTemplated:!1,trackingParams:fQ+"="},trackingParams:fQ+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:o5,
isTemplated:!0,trackingParams:fQ+"="}},trackingParams:fQ+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Jz,openPopupAction:{popup:{aboutThisAdRenderer:{url:(O8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+RO+"&origin=www.youtube.com&ata_theme="+Tt,O8),trackingParams:fQ+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:fQ+"="}},hoverText:{runs:[{text:oO}]},trackingParams:fQ+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+LO+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fQ+"="},headline:{text:aO,isTemplated:!1,trackingParams:fQ+"="},description:{text:s5,trackingParams:fQ+"="},actionButton:{buttonRenderer:{text:{simpleText:sg},navigationEndpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fQ+"="}},startMs:mp,trackingParams:fQ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:nO},elementId:Jj}},elementId:aO,trackingParams:fQ+"=",legacyInfoCardVastExtension:f0,sodarExtensionData:{siub:o5,bgub:Jj,scs:nO,bgp:Fs},externalVideoId:m9,adLayoutLoggingData:{serializedAdServingDataEntry:Jj},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+LO+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fQ+"="},headline:{text:o5,
isTemplated:!1,trackingParams:fQ+"="},description:{text:oO,isTemplated:!1,trackingParams:fQ+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Fs},navigationEndpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fQ+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:fQ+"="}},navigationEndpoint:{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+
mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fQ+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:fQ+"="},abandonCommands:{commands:[{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&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="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+BX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Jz,commandExecutorCommand:{commands:[{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Tt,isTemplated:!1,trackingParams:fQ+"="},trackingParams:fQ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:f0},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+mp+";dc_exteid="+I5+";met="+mp+";ecn"+mp+"="+mp+";etm1="+mp+";eid1="+
wX+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Tt}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Tt}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:cX,offsetEndMilliseconds:Ga},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+BX+"&token=ALHj"+u+"&index="+mp+"&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="+cX}},adSlotLoggingData:{serializedSlotAdServingDataEntry:o5}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Ga,offsetEndMilliseconds:Ga},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+nQ+"&token=ALHj"+u+"&index="+mp+"&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="+Ga}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ga,offsetEndMilliseconds:Ga},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+nQ+"&token=ALHj"+u+"&index="+mp+"&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="+Ga}},adSlotLoggingData:{serializedSlotAdServingDataEntry:m9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ga,offsetEndMilliseconds:Ga},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+nQ+"&token=ALHj"+u+"&index="+mp+"&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="+Ga}},adSlotLoggingData:{serializedSlotAdServingDataEntry:XJ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ga,offsetEndMilliseconds:BX},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+nQ+"&token=ALHj"+u+"&index="+mp+"&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="+Ga}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Tt}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:BX,offsetEndMilliseconds:BX},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+BX+"&token=ALHj"+u+"&index="+mp+"&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="+BX}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Fs}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Wr,isTemplated:!1,trackingParams:fQ+"="},description:{text:J4,isTemplated:!1,trackingParams:fQ+"="},actionButton:{buttonRenderer:{text:{simpleText:Tt},navigationEndpoint:{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
s1+";dc_trk_cid="+s1+";dc_dbm_token="+f+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+mp+";ord="+s1+";dc_rui="+mp+";dc_exteid="+I5+";dc_av="+mp+";dc_sk="+mp+";dc_ctype="+BX+";dc_pubid="+mp+";dc_btype=3?gclid="+Uj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fQ+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+XQ+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:fQ+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+td+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:fQ+"="},navigationEndpoint:{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+s1+";dc_trk_cid="+s1+";dc_dbm_token="+f+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+mp+";ord="+s1+
";dc_rui="+mp+";dc_exteid="+I5+";dc_av="+mp+";dc_sk="+mp+";dc_ctype="+BX+";dc_pubid="+mp+";dc_btype=3?gclid="+Uj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fQ+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Jz,openPopupAction:{popup:{aboutThisAdRenderer:{url:(hN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+RO+"&origin=www.youtube.com&ata_theme="+Tt,hN),trackingParams:fQ+"="}},popupType:"DIALOG"}},trackingParams:fQ+"="}},hoverText:{runs:[{text:Wr}]},trackingParams:fQ+"="}},adVideoId:m9,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:aO},associatedCompositePlayerBytesLayoutId:Jj}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:aO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:oO,isTemplated:!1,trackingParams:fQ+"="},description:{text:J4,isTemplated:!1,trackingParams:fQ+"="},actionButton:{buttonRenderer:{text:{simpleText:f0},navigationEndpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fQ+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+LO+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:fQ+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lL+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:fQ+"="},navigationEndpoint:{clickTrackingParams:Jz,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+
mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fQ+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Jz,openPopupAction:{popup:{aboutThisAdRenderer:{url:(HN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+RO+"&origin=www.youtube.com&ata_theme="+Tt,HN),trackingParams:fQ+"="}},popupType:"DIALOG"}},trackingParams:fQ+"="}},
hoverText:{runs:[{text:J4}]},trackingParams:fQ+"="}},adVideoId:m9,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+m9+"&cid="+O+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:XJ},associatedCompositePlayerBytesLayoutId:Jj}},adSlotLoggingData:{serializedSlotAdServingDataEntry:oO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:aO,
isTemplated:!1,trackingParams:fQ+"="},description:{text:Jj,isTemplated:!1,trackingParams:fQ+"="},actionButton:{buttonRenderer:{text:{simpleText:o5},navigationEndpoint:{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+s1+";dc_trk_cid="+s1+";dc_dbm_token="+f+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+mp+";ord="+s1+";dc_rui="+mp+";dc_exteid="+I5+";dc_av="+mp+";dc_sk="+mp+";dc_ctype="+
BX+";dc_pubid="+mp+";dc_btype=3?gclid="+Uj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+
K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fQ+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+XQ+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:fQ+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+td+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:fQ+
"="},navigationEndpoint:{clickTrackingParams:Jz,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+s1+";dc_trk_cid="+s1+";dc_dbm_token="+f+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+mp+";ord="+s1+";dc_rui="+mp+";dc_exteid="+I5+";dc_av="+mp+";dc_sk="+mp+";dc_ctype="+BX+";dc_pubid="+mp+";dc_btype=3?gclid="+Uj+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+A+"AxAA&ase=2&num="+mp+"&cid="+O+"&ad_cpn=%5BAD_CPN%5D&sig="+K+"&adurl="+vL+"&label=video_click_to_advertiser_site&ctype="+nQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fQ+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Jz,openPopupAction:{popup:{aboutThisAdRenderer:{url:(u8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+F+"&hl="+RO+"&origin=www.youtube.com&ata_theme="+Tt,u8),trackingParams:fQ+"="}},popupType:"DIALOG"}},trackingParams:fQ+
"="}},hoverText:{runs:[{text:nO}]},trackingParams:fQ+"="}},adVideoId:m9,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+A+"AxAA&sigh="+T+"&cid="+O+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Tt},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Jj}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nO}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:CD,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:CD,command:{innertubeCommand:{clickTrackingParams:Jz,ypcGetOfflineUpsellEndpoint:{params:za}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:fQ+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:bn,nanos:U1}}}},Qvd=JSON.stringify(Rf),na=performance.now()-G;return{objectRepresentation:Rf,jsonRepresentation:Qvd,generationTime:na}};
V$u=function(G,b){if(G===b)return!0;if(!G||!b||typeof G!==typeof b)return!1;if(G instanceof Array&&b instanceof Array){if(G.length!==b.length)return!1;for(var I=0;I<G.length;I++)if(!V$u(G[I],b[I]))return!1;return!0}if(typeof G==="object"&&typeof b==="object"&&G&&b){for(I in G)if(!(I in b&&V$u(G[I],b[I])))return!1;for(var h in b)if(!(h in G))return!1;return!0}return!1};
_.pw=function(){if(!Eb){Eb=new ZC(new DJj);var G=_.Te("client_streamz_web_flush_count",-1);G!==-1&&(Eb.invocationLimit=G)}return Eb};
Sn=function(G,b,I,h){if(G===b)return!0;if(Array.isArray(G)&&Array.isArray(b)){if(G.length!==b.length)return!1;for(var q=0;q<G.length;q++)if(!Sn(G[q],b[q],I,h))return!1;return!0}if(G instanceof Set||b instanceof Set){if(G instanceof Set&&b instanceof Set){if(G.size!==b.size)return!1;h=_.e(G.values());for(q=h.next();!q.done;q=h.next())if(!b.has(q.value))return!1;return!0}return!1}if(G instanceof Function){if(h)return!0;G.name===""&&_.K1(Error("Qf"),"ERROR");return!1}if(G instanceof Date&&b instanceof
Date)return G.getTime()===b.getTime();if(G instanceof Object&&b instanceof Object){if(cXO(G)&&cXO(b))try{return G.equals(b)}catch(V){_.K1(Error("Rf`"+V),"ERROR")}q=Object.getOwnPropertyNames(G).filter(function(V){return I?G[V]!==void 0:!0});
var l=Object.getOwnPropertyNames(b).filter(function(V){return I?b[V]!==void 0:!0});
if(q.length!==l.length)return!1;q=_.e(q);for(l=q.next();!l.done;l=q.next())if(l=l.value,!Sn(G[l],b[l],I,h))return!1;return!0}return!1};
cXO=function(G){G=Object.getPrototypeOf(G).equals;return G instanceof Function&&G.length===1};
_.Lrr=function(){return _.c(function(G){if(G.nextAddress==1)return kcO!==2?G.jumpTo(2):G.yield(v9a(),3);G.nextAddress!=2&&(kcO=G.yieldResult);return G.return(kcO)})};
_.fsj=function(){return _.c(function(G){if(G.nextAddress==1)return _.U("ab_pl_man")?QmB!==2?G.jumpTo(2):G.yield(xJq(),3):G.return(1);G.nextAddress!=2&&(QmB=G.yieldResult);return G.return(QmB)})};
UJr=function(){return _.c(function(G){if(G.nextAddress==1)return _.U("ab_fk_sk_cl")?T12!==2?G.jumpTo(2):G.yield(B1a(),3):G.return(1);G.nextAddress!=2&&(T12=G.yieldResult);return G.return(T12)})};
_.AXs=function(){return _.c(function(G){if(G.nextAddress==1)return _.U("ab_det_apb_b")?sms!==2?G.jumpTo(2):G.yield(g9d(),3):G.return(1);G.nextAddress!=2&&(sms=G.yieldResult);return G.return(sms)})};
t$q=function(){var G;return _.c(function(b){if(b.nextAddress==1)return b.yield(Promise.all([_.Lrr(),_.AXs(),_.fsj(),UJr()]),2);if(b.nextAddress!=3)return M$2()?b.return(!0):b.yield(_.Zqp(),3);G=b.yieldResult;return b.return(G===0)})};
M$2=function(){var G=!1,b=function(I,h){zEq.increment(h,I);I===0&&(G=!0)};
b(_.o9u(),"j.s_");b(kcO,"f.i_");b(sms,"a.b_");b(QmB,"p.m_");b(T12,"i.f_");iqO===2&&(iqO=_.PoO(dJv));b(iqO,"e.h_");_.U("ks_det_gpbl")||b(_.yXB(),"p.i_");_.U("ks_get_o_pp")||b(_.rXO(),"g.o_");_.U("ab_deg_unex_thr")||b(_.FrB(),"a.o_");b(HqO,"s.t_");_.U("ab_det_sc_inj_enf")&&b(_.WrO(),"s.i_");b(as2,"d.p_");b(_.N1q(_.Xo),"o.p_");b(_.YmO()===0?0:_.Cod(),"o.a_");return _.U("debug_sk_em_precheck")?!0:G};
Krq=function(){var G=[].concat(_.Nz(JXp));try{var b=eEr();G.push({jsonRepresentation:b.jsonRepresentation,objectRepresentation:b.objectRepresentation})}catch(I){G=[].concat(_.Nz(JXp))}return G};
ud2=function(){var G=["adPlacements","adSlots"];try{return G.filter(function(){return!0}).length!==G.length?0:1}catch(b){return 0}};
_.rXO=function(){if(ud2()===0)return 0;var G=eEr(),b=G.objectRepresentation,I=(0,_.Cy.unsafeClone)(b),h=[];if(b&&typeof b==="object")for(var q in b)h.push(q);else return 4;G=G.objectRepresentation.adPlacements;if(!(G&&G.length>0))return 4;try{if(!V$u(h,Object.getOwnPropertyNames(b)))return 0}catch(l){return 0}return V$u(I,b)?1:0};
_.N1q=function(G){if(!G||!G.length||typeof G==="string")return 0;for(var b=Object.getOwnPropertyNames(Object.prototype),I=0;I<G.length;I++)for(var h=_.Ro(G[I]),q=_.e(b),l=q.next();!l.done;l=q.next())if(h===l.value)return 0;return 1};
REd=function(G){var b=_.Ro(G[1]);if(G[0]===null)return b;G=G[0];for(var I={},h=0;h<G.length;h++){var q=_.Ro(G[h]);if(h===0)I[q]=b;else{var l={};l[q]=I;I=l}}return I};
_.YmO=function(){for(var G=_.$n,b=0;b<G.length;b++){var I=REd(G[b]),h=[];h.push(I);if(h.length===0)return 0}return 1};
_.Cod=function(){for(var G=_.$n,b={},I=0;I<G.length;b={xcb:void 0},I++){var h=[REd(G[I])];b.xcb=[];h.forEach(function(q){return function(l){q.xcb[q.xcb.length]=l}}(b));
if(b.xcb.length===0)return 0}return 1};
_.o9u=function(){for(var G=_.e(Krq()),b=G.next();!b.done;b=G.next()){var I=b.value;b=I.jsonRepresentation;I=I.objectRepresentation;try{var h=JSON.parse(b);if(!Sn(h,I,!1,!1))return 0}catch(q){return 0}}return 1};
_.WrO=function(){try{var G=_.sG("ab_det_sc_inj_val");G.length===1&&G[0]===""&&(G=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var b=document.querySelectorAll("script"),I=_.e(b),h=I.next();!h.done;h=I.next())for(var q=h.value,l=_.e(G),V=l.next();!V.done;V=l.next()){var D=V.value;b=void 0;if((b=q.textContent)==null?0:b.includes(D))return 0}}catch(k){return 4}return 1};
_.Zqp=function(){var G,b,I,h,q,l,V;return _.c(function(D){switch(D.nextAddress){case 1:_.gm(D,2),G=_.e(JXp),b=G.next();case 4:if(b.done)return D.return(1);h=I=b.value;q=h.jsonRepresentation;l=h.objectRepresentation;return D.yield((new Response(q,{status:200})).json(),7);case 7:V=D.yieldResult;if(!Sn(V,l,!1,!1))return D.return(0);b=G.next();D.jumpTo(4);break;case 2:return _.zf(D),D.return(4)}})};
_.FrB=function(){try{btoa("abc")}catch(G){return 0}return 1};
v9a=function(){var G,b,I,h,q,l,V,D,k,L,x;return _.c(function(f){switch(f.nextAddress){case 1:_.gm(f,2),G=_.e(Krq()),b=G.next();case 4:if(b.done)return f.return(1);h=I=b.value;q=h.jsonRepresentation;l=h.objectRepresentation;V=btoa(q);D="data:application/json;base64,"+V;k=new Request(D);Object.defineProperty(k,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(k,"method",{get:function(){return"POST"}});
Object.defineProperty(k,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(k,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(k,"body",{get:function(){return new ReadableStream}});
return f.yield(fetch(k),7);case 7:return L=f.yieldResult,f.yield(L.json(),8);case 8:x=f.yieldResult;if(!Sn(x,l,!1,!1))return f.return(0);b=G.next();f.jumpTo(4);break;case 2:return _.zf(f),f.return(4)}})};
_.PoO=function(G){if(!G||!G.length||typeof G==="string")return 0;for(var b=function(q){return _.Ro(q)},I=2,h=0;h<G.length&&(I=_.n9j(_.lsO(G[h],b)),I!==0);h++);
return I};
_.n9j=function(G){var b=_.e(G);G=b.next().value;b=b.next().value;try{var I=document.createElement("div");document.body.appendChild(I);var h=getComputedStyle(I).display;document.body.removeChild(I);if(h==="none")return 4;var q=getComputedStyle(b).display==="none"?0:1;document.body.removeChild(G);return q}catch(l){return 4}};
B1a=function(){var G,b,I;return _.c(function(h){G=new _.G9;b=document.createElement("button");b.classList.add("ytp-ad-skip-button");b.style.opacity="0";b.style.height="0px";b.style.width="0px";b.style.padding="0px";b.style.border="none";I=function(){b.parentElement&&b.parentElement.removeChild(b)};
b.onclick=function(){G.resolve(0);I()};
document.body.appendChild(b);setTimeout(function(){I();G.resolve(1)},50);
return h.return(G.promise)})};
xJq=function(){var G,b,I,h,q,l,V;return _.c(function(D){G=new _.G9;b=document.createElement("ytd-player");try{document.body.prepend(b)}catch(k){return D.return(4)}I=function(){b.parentElement&&b.parentElement.removeChild(b)};
b.getElementsByTagName("div").length>0?h=b.getElementsByTagName("div")[0]:(h=document.createElement("div"),b.appendChild(h));q=document.createElement("div");h.appendChild(q);l=document.createElement("video");V=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"});l.src=_.aI(_.ul(V));l.ontimeupdate=function(){I();G.resolve(0)};
q.appendChild(l);l.classList.add("html5-main-video");setTimeout(function(){q.classList.add("ad-interrupting")},200);
setTimeout(function(){I();G.resolve(1)},5E3);
return D.return(G.promise)})};
Oqs=function(G){var b=eEr().objectRepresentation.playbackTracking;if(b){var I=[],h;I.push(b==null?void 0:(h=b.videostatsPlaybackUrl)==null?void 0:h.baseUrl);var q;I.push(b==null?void 0:(q=b.videostatsDelayplayUrl)==null?void 0:q.baseUrl);var l;I.push(b==null?void 0:(l=b.videostatsWatchtimeUrl)==null?void 0:l.baseUrl);var V;I.push(b==null?void 0:(V=b.ptrackingUrl)==null?void 0:V.baseUrl);var D;I.push(b==null?void 0:(D=b.qoeUrl)==null?void 0:D.baseUrl);var k;I.push(b==null?void 0:(k=b.atrUrl)==null?
void 0:k.baseUrl);b=_.e(I);for(I=b.next();!I.done;I=b.next())if((I=I.value)&&G.test(I))return I.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
wcO=function(G,b){var I,h;return _.c(function(q){switch(q.nextAddress){case 1:I=[],h=0;case 2:if(!(h<3)){q.jumpTo(4);break}return q.yield(fetch(G,{cache:"no-store",method:b}).then(function(l){I.push(l.status)}).catch(function(){I.push(-1)}),3);
case 3:h++;q.jumpTo(2);break;case 4:return q.return(I)}})};
E9q=function(G){return G.domainLookupStart===0&&G.domainLookupEnd===0&&G.connectStart===0&&G.connectEnd===0||G.duration===0};
pcX=function(G,b,I){I=I===void 0?"GET":I;var h,q,l,V,D,k,L,x,f,T;return _.c(function(B){if(B.nextAddress==1)return B.yield(Promise.all([wcO(G,I),wcO(b,I)]),2);h=B.yieldResult;q=_.e(h);l=q.next().value;V=q.next().value;D=l;k=V;if(Math.min.apply(Math,_.Nz(k))!==Math.max.apply(Math,_.Nz(k))||Math.min.apply(Math,_.Nz(D))!==Math.max.apply(Math,_.Nz(D)))return B.return(2);if(Math.min.apply(Math,_.Nz(k))===Math.min.apply(Math,_.Nz(D)))return B.return(1);x=(L=performance.getEntriesByName(G))==null?void 0:
L[0];T=(f=performance.getEntriesByName(b))==null?void 0:f[0];return x&&T?E9q(T)?B.return(1):E9q(x)?B.return(0):B.return(1):B.return(2)})};
g9d=function(){var G;return _.c(function(b){var I=[];var h;var q,l,V;(q=h=(q=eEr().objectRepresentation.streamingData)==null?void 0:(l=q.formats)==null?void 0:(V=l[0])==null?void 0:V.url)&&q&&!h.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(q=q.replace("initcwndbps","ctier=L&initcwndbps"),q=q.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),h={testUrl:q,baseUrl:h,method:"GET"}):h=void 0;h&&I.push(h);_.U("ab_net_tp_e")&&I.push({testUrl:_.hd.location.origin+"/ad_companion",baseUrl:_.hd.location.origin+
"/generate_204",method:"OPTIONS"});_.U("ab_fix_creator_view_cnt")&&(I.length=0,(h=Oqs(/api\/stats\/atr/))&&I.push({testUrl:_.hd.location.origin+h,baseUrl:_.hd.location.origin+"/generate_204",method:"POST"}));_.U("ad_net_pb_pbp")&&(h=Oqs(/api\/stats\/qoe/))&&I.push({testUrl:_.hd.location.origin+h,baseUrl:_.hd.location.origin+"/feed/download",method:"GET"});I=I.length!==0?I[Math.floor(Math.random()*I.length)]:void 0;return(G=I)?b.return(pcX(G.testUrl,G.baseUrl,G.method)):b.return(4)})};
_.yXB=function(){if(_.hd.dME===void 0||_.hd.dME===null||typeof _.hd.dME!=="function")return 2;try{return _.hd.dME()===!0?0:1}catch(G){return 0}};
SmB=function(G){switch(G){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Eu(G,"unknown result type")}};
_.XcB=function(G,b){var I=Number(_.wy("CATSTAT",0));if(b.m0p===void 0)return I;b=b.m0p;G=SmB(G);return I&~(3<<b)|G<<b};
$IB=function(G){var b,I;if((G=(b=G.auxiliaryUi)==null?void 0:(I=b.messageRenderers)==null?void 0:I.bkaEnforcementMessageViewModel)&&G.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return G};
boO=function(){for(var G=_.e(Object.values(_.GCa)),b=G.next();!b.done;b=G.next())b=b.value,b.kwt&&b.m0p&&_.OB("CATSTAT",_.XcB(2,b))};
_.hL=function(G,b){G=_.bg("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",G);(b===void 0?0:b)?_.IbO(G,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.I_().logFlowEvent(G,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
qRX=function(){if(!h6s){if(Polymer.Base){var G=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{G.apply(this,arguments)}catch(f){_.Xj(f)}};
var b=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{b.apply(this,arguments)}catch(f){_.Xj(f)}};
var I=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{I.apply(this,arguments)}catch(f){_.Xj(f)}};
var h=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{h.apply(this,arguments)}catch(f){_.Xj(f)}};
var q=Polymer.Base._listen,l=new WeakMap;Polymer.Base._listen=function(f,T,B){var A=function(){try{B.apply(this,arguments)}catch(t){_.Xj(t)}};
l.set(B,A);q.call(this,f,T,A)};
var V=Polymer.Base._unlisten;Polymer.Base._unlisten=function(f,T,B){V.call(this,f,T,l.get(B))}}if(Polymer.Async){var D=Polymer.Async,k=D._atEndOfMicrotask;
D._atEndOfMicrotask=function(){try{k.apply(D,arguments)}catch(f){_.Xj(f)}}}if(Polymer.RenderStatus){var L=Polymer.RenderStatus,x=L.afterNextRender;
L.afterNextRender=function(f,T,B){x.call(L,f,function(){try{T.apply(this,arguments)}catch(A){_.Xj(A)}},B)}}h6s=!0}};
_.lbp=function(G){var b=G?_.tB(G):"";if(b){if(b.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(b.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(b.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(b.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(b.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.U("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(b.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";b=b.toLowerCase();if(b==="/")return"home";if(b==="/channel_memberships")return"channel-memberships-shopfront";if(b.indexOf("/feed/trending")===0)return"trending";if(b.indexOf("/feed/explore")===0)return"explore";if(b.indexOf("/live")===0)return"live";if(b.indexOf("/results")===0)return"search";if(b.indexOf("/sports")===0)return"sports";if(b.indexOf("/fashion")===0||b.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(b))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(b))return _.U("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(b.indexOf("/channel/")===0||b.indexOf("/user/")===0||b.indexOf("/gaming")===0||b.indexOf("/post/")===0)return"channel";if(js2(G))return"show";if(b==="/playlist"||b.indexOf("/playlist/")===0||b==="/view_play_list"||b.indexOf("/view_play_list/")===0||b.indexOf("/show/")===0)return"playlist";if(b==="/companion_canvas")return"companion-canvas";if(b==="/feed/history"||
b.indexOf("/feed/history/")===0)return"history";if(b==="/new")return"labs";if(b==="/feed/subscriptions")return"subscriptions";if(b.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(b==="/history_controls")return"standalone";if(b.indexOf("/account")===0||b==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(b.indexOf("/paid_memberships")===0||b.indexOf("/refund")===0||b.indexOf("/purchases")===0||b.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(b.indexOf("/product")===
0)return"yts-products";if(b.indexOf("/premium")===0||b.indexOf("/musicpremium")===0)return b.indexOf("/premium/offers")===0||b.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(b==="/cart/checkout"||b==="/cart")return"ypc-checkout";if(b.indexOf("/reporthistory")===0)return _.U("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(b.indexOf("/feed/downloads")===0||b.indexOf("/redeem")===0)return"browse";if(b.indexOf("/hashtag")===0)return"hashtag-landing-page";if(b.indexOf("/handle")===
0)return"handle";if(b.indexOf("/source")===0)return"audio-pivot";if(b.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(b.indexOf("/playables")===0)return"playables";if(b.indexOf("/create/live/join")===0)return"open-in-app";if(b.indexOf("/shorts")===0)return"shorts";if(b.indexOf("/feed/channels")===0)return"subscriptions-channels";var I=G?_.tB(G):"";I&&I.indexOf("/watch")===0&&_.U("web_watch_enable_learning_journey")?(G=_.jO(G),G=!!G.list&&G.list.indexOf("LJPP")===0):G=!1;if(G)return"learning_journey_watch";
if(_.U("enable_new_page_subtypes_for_ai_companion")&&b==="/feed/courses")return"your-courses"}};
_.qe=function(G){var b,I;(G=(I=_.g(G==null?void 0:G.commandMetadata,_.IW))==null?void 0:I.url)&&(b=_.lbp(G));return b};
js2=function(G){var b=G?_.tB(G):"";if(!b)return!1;b=b.toLowerCase();return b.indexOf("/show/")===0||b.indexOf("/playlist")===0&&(G=_.jO(G),G.list&&G.list.indexOf("EL")===0)?!0:!1};
mu=function(G){var b="unknown",I;var h=((I=_.g(G==null?void 0:G.commandMetadata,_.IW))==null?void 0:I.webPageType)||"";h?(I=h.toLowerCase(),I.startsWith("web_page_type_")&&(I=I.slice(14))):I=h;I&&mIq[I.toUpperCase()]?b=mIq[I.toUpperCase()]:_.g(G,_.jL)||_.g(G,e6r)?b="browse":_.g(G,_.lg)?b="search":_.g(G,_.Wq)&&(b="watch");b==="watch"&&_.qe(G||null)==="learning_journey_watch"&&(b="learning_journey_watch");b==="unknown"&&_.RB(Error("Tf`"+JSON.stringify({clickTrackingParams:G==null?void 0:G.clickTrackingParams,
commandMetadata:G==null?void 0:G.commandMetadata,allEndpointKeys:Object.keys(G||[])})));return b};
_.eL=function(G){if(!_.Vlv||G)_.Vlv=_.dV();return _.Vlv};
_.DIr=function(G){return!!_.g(G,_.Wq)||!!_.g(G,_.V4)&&_.U("kevlar_enable_shorts_prefetch")};
_.cEX=function(G,b){G=_.g(G,_.Wq)||_.g(G,_.V4);return"v"+G.videoId+(G.playlistId?"-pl"+G.playlistId:"")+(b?"-an1":"")+(G.params?"-pr"+G.params:"")};
_.kCs=function(G){var b=new DL(_.wy("ONE_PICK_URL",""));b.urlParamMap_.set("hostId",G);(G=_.wy("GAPI_LOCALE"))&&b.urlParamMap_.set("hl",G);(G=_.wy("SESSION_INDEX"))&&b.urlParamMap_.set("authuser",G);(G=_.wy("DELEGATED_SESSION_ID"))&&b.urlParamMap_.set("groupId",G);return b};
L5p=function(){var G=_.LL(),b=G.resolve(_.cy);G=G.resolve(_.kn);return new vrp(b,G)};
xI2=function(G){if(window.IntersectionObserver)return new Qsp(G,400);throw new TypeError("Vf");};
TBs=function(){var G=Hammer.TouchAction,b=G.prototype.preventDefaults;G.prototype.preventDefaults=function(I){var h=this.actions.indexOf("pan-down")>-1;if(!h)return b.call(this,I);if(!fbj){var q=I.srcEvent;I=I.direction;var l;if((l=this.manager)==null?0:l.session.prevented)q.preventDefault();else if(h&&I&Hammer.DIRECTION_DOWN)return this.preventSrc(q)}}};
BBO=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};
_.ssO=function(){return UI2?Promise.resolve(UI2):new Promise(function(G,b){var I=self.indexedDB.open("swpushnotificationsdb");I.onerror=b;I.onsuccess=function(){var h=I.result;if(h.objectStoreNames.contains("swpushnotificationsstore"))UI2=h,G(UI2);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.ssO()};
I.onupgradeneeded=grO})};
grO=function(G){G=G.target.result;G.objectStoreNames.contains("swpushnotificationsstore")&&G.deleteObjectStore("swpushnotificationsstore");G.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.LX=function(G,b,I){var h=I&&I>0?I:0;I=h?Date.now()+h*1E3:0;if((h=h?_.vy.getLocalStorage():_.vy.getSessionStorage())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{h.set(G,b,I)}catch(q){h.remove(G)}}};
_.Q4=function(G){var b=_.vy.getSessionStorage(),I=_.vy.getLocalStorage();if(!b&&!I||!window.JSON)return null;try{var h=b.get(G)}catch(q){}if(typeof h!=="string")try{h=I.get(G)}catch(q){}if(typeof h!=="string")return null;try{h=JSON.parse(h,void 0)}catch(q){}return h};
_.xn=function(G){try{var b=_.vy.getSessionStorage(),I=_.vy.getLocalStorage();b&&b.remove(G);I&&I.remove(G)}catch(h){}};
MlO=function(G){var b=AEr(),I;return _.c(function(h){switch(h.nextAddress){case 1:return _.gm(h,2),h.yield(G.match(b,{cacheName:"yt-appshell-assets"}),4);case 4:I=h.yieldResult;_.hF(h,3);break;case 2:_.zf(h);case 3:return h.return(I)}})};
AEr=function(){var G=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?ZoO.registration.scope:tlr;G.endsWith("/")&&(G=G.slice(0,-1));return G+"/app_shell_home"};
z6j=function(G){G.map(function(b){return b.source}).join("|")};
_.orX=function(G){return _.c(function(b){return b.return(MlO(G))})};
ioB=function(){var G=window.caches,b;return _.c(function(I){if(I.nextAddress==1)return I.yield(_.orX(G),2);b=I.yieldResult;return I.return(!!b)})};
W5r=function(){_.c(function(G){if(G.nextAddress==1){if(Prd)return G.jumpTo(0);Prd=!0;if(_.U("enable_system_health_primes_monitoring"))return _.M1(dIs,3E4),yEa(),G.return();if(!(Math.random()<_.Te("web_system_health_fraction")))return G.jumpTo(0);rEp={heightPixels:screen.height,widthPixels:screen.width};fX&&!isNaN(fX.jsHeapSizeLimit)&&(rEp.memoryTotalKbytes=String(Math.round(fX.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(rEp.devicePixelRatio=window.devicePixelRatio);return G.yield(F5d(),4)}_.M1(dIs,
3E4);return G.yield(Hop(),0)})};
F5d=function(){return _.c(function(G){if(G.nextAddress==1)return T9.intersectionObserverPresent="IntersectionObserver"in window,T9.serviceWorkerPresent="serviceWorker"in navigator,T9.webSharePresent="share"in navigator,T9.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,T9.cacheStoragePresent="caches"in window,T9.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,T9.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
T9.webkitTemporaryStoragePresent="webkitTemporaryStorage"in By&&By.webkitTemporaryStorage&&"queryUsageAndQuota"in By.webkitTemporaryStorage,T9.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",G.yield(vSO(),2);T9.indexedDbPresent=G.yieldResult;T9.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;T9.broadcastChannelPresent="BroadcastChannel"in window;T9.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(T9.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,T9.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.ip(G)})};
dIs=function(){var G=9E4+Math.random()*2E3;_.vA()>G||(_.U("enable_system_health_primes_monitoring")?yEa():Hop())};
Hop=function(){var G;return _.c(function(b){if(b.nextAddress==1)return b.yield(abp(),2);G=b.yieldResult;_.C1("systemHealthCaptured",G);_.ip(b)})};
yEa=function(){var G={metric:{}},b=NBO();b.networkEvents.length&&(G.metric.networkEvents=YRj(b));_.C1("systemHealthCaptured",G)};
abp=function(){var G,b,I,h,q,l,V,D,k,L;return _.c(function(x){switch(x.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)};b=window.screen;_.U("enable_is_extended_monitoring")&&b&&"isExtended"in b&&(G.isExtended=!!b.isExtended);I={metric:{staticContext:rEp,dynamicContext:G,webMetric:Crq,webApiSupport:T9}};
if(h=_.gL())I.csn=h;fX&&(I.metric.webMetric.currentHeapKbytes=Math.round(fX.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 By&&typeof By.getBattery==="function")){x.jumpTo(2);break}return x.yield(By.getBattery(),3);case 3:if(q=
x.yieldResult)I.metric.dynamicContext.chargingStatus=q.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(I.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(T9.storageEstimatePresent)return x.yield(navigator.storage.estimate(),8);if(!T9.webkitTemporaryStoragePresent){x.jumpTo(5);break}return x.yield(JEq(),7);case 7:l=x.yieldResult;x.jumpTo(5);break;case 8:l=x.yieldResult;case 5:return I.metric.dynamicContext.deviceStorageQuotaMbytes=((V=l)==null?0:V.quota)?String(Math.round(l.quota/
1048576/10)*10):"-1",I.metric.dynamicContext.deviceStorageUsageMbytes=((D=l)==null?0:D.usage)?String(Math.round(l.usage/1048576/10)*10):"-1",k=I.metric.dynamicContext,x.yield(ioB(),9);case 9:return k.hasAppShell=x.yieldResult,L=NBO(),L.networkEvents.length&&(I.metric.networkEvents=YRj(L)),x.return(I)}})};
JEq=function(){return new Promise(function(G){var b;T9.webkitTemporaryStoragePresent&&(b=By.webkitTemporaryStorage)!=null&&b.queryUsageAndQuota?By.webkitTemporaryStorage.queryUsageAndQuota(function(I,h){G({usage:I,quota:h})}):G(void 0)})};
_.Uo=function(G){G&=16777215;G=[(G&16711680)>>16,(G&65280)>>8,G&255];return K5v(G[0],G[1],G[2])};
_.so=function(G){G=[(G&16711680)>>>16,(G&65280)>>>8,G&255,(G&4278190080)>>>24];if(!_.unv(G,function(b){return b===(b&255)}))throw Error("Wf`"+G.join(","));
return"rgba("+G[0]+","+G[1]+","+G[2]+","+(G[3]/255).toFixed(3)+")"};
_.R6s=function(G){return[(G&16711680)>>>16,(G&65280)>>>8,G&255]};
_.nrO=function(G){G=G.map(function(b){b/=255;return b<=.03928?b/12.92:Math.pow((b+.05)/1.05,2.4)});
return G[0]*.2126+G[1]*.7152+G[2]*.0722};
gq=function(G,b){G=_.R6s(G);return"rgba("+G[0]+", "+G[1]+", "+G[2]+", "+b+")"};
AL=function(G){return(G&4278190080)>>>24===0?gq(G,"1"):_.so(G)};
_.OoO=function(){try{return!!self.localStorage}catch(G){return!1}};
SRO=function(){if(w_B())_.RB(Error("Xf"));else{var G=document.createElement("iframe");G.style.display="none";var b=b===void 0?window.location.href:b;var I=_.Rb(_.wy("PERSIST_IDENTITY_IFRAME_URL"));b=I?I:(new URL(b)).host.indexOf("studio")===0?_.Ba(Erd,"persist_identity"):_.Ba(p_X,"persist_identity");_.Gf(G,1,b);G.id="persist_identity";var h;(h=document.body)==null||h.appendChild(G)}};
w_B=function(){var G=X_p;G||(G=document.querySelector("#persist_identity"));return G};
$VB=function(){var G=!1;try{G=!!window.sessionStorage.getItem("session_logininfo")}catch(b){G=!0}return(_.wy("INNERTUBE_CLIENT_NAME")==="WEB"||_.wy("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&G};
G5O=function(G,b){if(!$VB())return!1;b||(b=_.wy("LOGIN_INFO"));return b?(G.session_logininfo=b,!0):!1};
IXr=function(G,b){G=G===void 0?!1:G;if((b===void 0||!b)&&b$O!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Sk("LOG_STICKINESS",!1)){b=_.gL();var I=_.s3(),h={identityStickinessData:{initialState:b$O}};b&&I&&_.NP(b,I,h)}if(b=w_B())if(I=b.src?(new URL(b.src)).origin:"*",G){var q;(q=b.contentWindow)==null||q.postMessage({action:"clear"},I)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(G=window.sessionStorage.getItem("session_logininfo"))){var l;(l=b.contentWindow)==null||l.postMessage({loginInfo:G},I)}};
_.Me=function(G){G=G===void 0?!0:G;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.OB("LOGIN_INFO",""),G&&window.sessionStorage.setItem("from_switch_account","1"),IXr(!0,G)}catch(b){}};
h9a=function(G){G&&(G.startsWith("https://accounts.google.com/AddSession")?_.Me():G.startsWith("https://accounts.google.com/ServiceLogin")?_.Me():G.startsWith("https://myaccount.google.com")&&_.Gt(G).getPath().endsWith("/youtubeoptions")&&_.Me())};
ZL=function(G,b){h9a(G);if(_.Sk("LOGGED_IN",!0)&&$VB()){var I=E6d(G);I==null&&(I={});G5O(I,b)&&_.Cv(G,I)}};
qCX=function(){function G(b){for(b=b.target;b&&b.nodeName!=="A";)if(b=b.parentNode,!(b&&b instanceof HTMLElement))return;if(b&&!b.hasAttribute("download")&&b.getAttribute("rel")!=="external"&&b.href)return b.href}
document.addEventListener("mousedown",function(b){b.button!==0&&(b=G(b))&&ZL(b)});
document.addEventListener("click",function(b){(b=G(b))&&ZL(b)})};
mVp=function(){var G=new jEO;try{if(_.Sk("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(D){G.increment(5,!1);return}if(_.wy("LOGIN_INFO")){var b=lXX?lXX:window.location;_.wy("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&SRO();var I=E6d(b.href);I==null&&(I={});var h=I.session_logininfo,q=Number(window.sessionStorage.getItem("stickiness_reload")),l=h===_.wy("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
q>=2||l)q>=2?G.increment(2,l):l?G.increment(7,l):window.sessionStorage.getItem("session_logininfo")||(G.increment(3,l),b$O="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.wy("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.wy("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))G.increment(4,l),window.sessionStorage.removeItem("stickiness_reload");
else if(q<2){window.sessionStorage.setItem("stickiness_reload",String(q+1));var V=b.href;V=_.J_(V,"sttick");ZL(V,window.sessionStorage.getItem("session_logininfo"));V=_.lB(V,{sttick:q});G.increment(q,l);_.xzX(b,V)}}else G.increment(6,!1)}else _.Me(!1)}catch(D){}};
_.tL=function(G,b,I,h,q){b=b===void 0?{}:b;I=I===void 0?"":I;h=h===void 0?window:h;G=_.mE(G,b);ZL(G);I=_.KA(G+I,q);_.xzX(h.location,I)};
e9O=function(G){if(G.urlEndpoint){if(G=_.jO(G.urlEndpoint.url),G.adurl)return kW(G.adurl)}else if(G.watchEndpoint)return"//www.youtube.com/watch?v="+G.watchEndpoint.videoId;return null};
VCa=function(G){if(!G||!G.reportingPings)return null;var b={};G.reportingPings.forEach(function(I){I.pingType in b?b[I.pingType].push(I.url):b[I.pingType]=[I.url]});
return{adpings:Y3O(b)}};
_.o_=function(G){G=G===void 0?!1:G;var b=_.m$(),I="USER_INTERFACE_THEME_LIGHT";b.getFlag(165)?I="USER_INTERFACE_THEME_DARK":b.getFlag(174)?I="USER_INTERFACE_THEME_LIGHT":_.z9()&&(I="USER_INTERFACE_THEME_DARK");return G?I:DVr()||I};
_.cAv=function(){return!_.U("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.z9=function(){return _.cAv()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.ig=function(){var G=_.m$();return _.cAv()&&!G.getFlag(165)&&!G.getFlag(174)};
DVr=function(){var G=G===void 0?window.location.href:G;if(_.U("kevlar_disable_theme_param"))return null;var b=_.tB(G);if(_.k52(b))return"USER_INTERFACE_THEME_DARK";try{var I=_.jO(G).theme;return vXu.get(I)||null}catch(h){}return null};
_.k52=function(G){return _.U("enable_dark_theme_only_on_shorts")?!(G==null||!G.startsWith("/shorts/")):!1};
_.xVd=function(G,b,I,h,q){b=b===void 0?!1:b;I=I===void 0?!1:I;var l=_.wy("INNERTUBE_CONTEXT");if(!l)return _.K1(Error("ag")),{};l=(0,_.Cy.unsafeClone)(l);_.U("web_no_tracking_params_in_shell_killswitch")||delete l.clickTracking;l.client||(l.client={});var V=l.client;V.clientName==="MWEB"&&V.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(V.clientFormFactor=_.wy("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");V.screenWidthPoints=window.innerWidth;V.screenHeightPoints=window.innerHeight;V.screenPixelDensity=
Math.round(window.devicePixelRatio||1);V.screenDensityFloat=window.devicePixelRatio||1;V.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());V.userInterfaceTheme=_.o_();if(!b){var D=_.HUd();D&&(V.connectionType=D);_.U("web_log_effective_connection_type")&&(D=aEj())&&(l.client.effectiveConnectionType=D)}var k;if(_.U("web_log_memory_total_kbytes")&&((k=_.hd.navigator)==null?0:k.deviceMemory)){var L;k=(L=_.hd.navigator)==null?void 0:L.deviceMemory;l.client.memoryTotalKbytes=""+k*1E6}b&&h&&!_.U("web_it_context_set_original_url_ks")&&
(V.originalUrl=LD2(_.hd.location.href,h).toString());_.U("web_gcf_hashes_innertube")&&(D=wjB())&&(L=D.coldConfigData,k=D.coldHashData,D=D.hotHashData,l.client.configInfo=l.client.configInfo||{},L&&(l.client.configInfo.coldConfigData=L),k&&(l.client.configInfo.coldHashData=k),D&&(l.client.configInfo.hotHashData=D));L=_.jO(_.hd.location.href);!_.U("web_populate_internal_geo_killswitch")&&L.internalcountrycode&&(V.internalGeo=L.internalcountrycode);!_.U("web_populate_client_screen_killswitch")&&q&&(V.clientScreen=
q);V.clientName==="MWEB"||V.clientName==="WEB"?(V.mainAppWebInfo||(V.mainAppWebInfo={}),V.mainAppWebInfo.graftUrl=h||_.hd.location.href,_.U("kevlar_woffle")&&_.Py.instance&&(h=_.Py.instance,V.mainAppWebInfo.pwaInstallabilityStatus=!h.appInstalledEventFired&&h.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),V.mainAppWebInfo.webDisplayMode=Yba(),V.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):V.clientName==="TVHTML5"&&
(!_.U("web_lr_app_quality_killswitch")&&(h=_.wy("LIVING_ROOM_APP_QUALITY"))&&(V.tvAppInfo=Object.assign(V.tvAppInfo||{},{appQuality:h})),h=_.wy("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(V.tvAppInfo=Object.assign(V.tvAppInfo||{},{certificationScope:h}));!_.U("web_populate_time_zone_itc_killswitch")&&(h=rZO())&&(V.timeZone=h);(h=Gmu())?V.experimentsToken=h:delete V.experimentsToken;V=bUv();h=_.QEj();h=(0,_.Cy.getValues)(h.tokenJars);l.request=Object.assign({},l.request,{internalExperimentFlags:V,consistencyTokenJars:h});
!_.U("web_prequest_context_killswitch")&&(V=_.wy("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(l.request.externalPrequestContext=V);h=_.m$();V=h.getFlag(58);h=h.get("gsml","");l.user=Object.assign({},l.user);V&&(l.user.enableSafetyMode=V);h&&(l.user.lockedSafetyMode=!0);_.U("warm_op_csn_cleanup")?I&&(b=_.gL())&&(l.clientScreenNonce=b):!b&&(b=_.gL())&&(l.clientScreenNonce=b);G&&(l.clickTracking={clickTrackingParams:G});if(G=_.Ge("yt.mdx.remote.remoteClient_"))l.remoteClient=G;_.dq.getInstance().setLocationOnInnerTubeContext(l);
try{var x=cZp(),f=x.bid;delete x.bid;l.adSignalsInfo={params:[],bid:f};for(var T=_.e(Object.entries(x)),B=T.next();!B.done;B=T.next()){var A=_.e(B.value),t=A.next().value,y=A.next().value;x=t;f=y;G=void 0;(G=l.adSignalsInfo.params)==null||G.push({key:x,value:""+f})}var F,W;if(((F=l.client)==null?void 0:F.clientName)==="TVHTML5"||((W=l.client)==null?void 0:W.clientName)==="TVHTML5_UNPLUGGED"){var O=_.wy("INNERTUBE_CONTEXT");O.adSignalsInfo&&(l.adSignalsInfo.advertisingId=O.adSignalsInfo.advertisingId,
l.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",l.adSignalsInfo.limitAdTracking=O.adSignalsInfo.limitAdTracking)}}catch(K){_.K1(K)}return l};
_.y4=function(){return{isShellLoad:_.Sk("IS_SHELL_LOAD",!1)}};
T$q=function(){navigator.serviceWorker.getRegistrations().then(function(G){G.forEach(fXa)})};
fXa=function(G){G&&_.B$s(UVO,G.scope)};
_.B$s=function(G,b){b={scope:b||_.UG("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.yM(G),b)};
rq=function(G,b,I,h){if(b&&b.serializedYpcCujLoggingParams){if(I){var q={};q.transactionErrorType=I;h&&(q.errorMessage=h);b.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:q}}}I={};I.ypcCujContext=b;G=_.bg("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",G,I);_.I_().logFlowEvent(G,"FLOW_TYPE_YPC_ACQUISITION")}};
_.sE2=function(G,b,I,h){var q={};q.serializedTransactionFlowLoggingParams=b;I&&(q.errorType=I);h&&(q.errorMessage=h);_.C1(G,q);_.JM()};
_.gXv=function(G){G&&_.sE2("transactionFlowStarted",G)};
_.AAp=function(G){G&&_.sE2("transactionFlowCancelled",G)};
_.FA=function(G,b,I){b&&_.sE2("transactionFlowFailed",b,G,I)};
MCq=function(G){var b=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");b&&(b.inert=G)};
_.Hy=function(){this.megabloxUrl_=null};
_.Wy=function(G){try{var b=Z$d==null?void 0:Z$d.composedPath(G)}catch(I){b=G.composedPath?G.composedPath():[]}return b&&b.length>0?b:G.composedPath?G.composedPath():[]};
_.a_=function(G){return _.Wy(G)[0]};
Ne=function(G){return G instanceof ShadowRoot?ShadowRoot:G instanceof DocumentFragment?DocumentFragment:G instanceof Document?Document:HTMLElement};
tCO=function(G){if(G instanceof Element)return Element.prototype;if(G instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+G);};
z9O=function(G,b){return _.U("sunnydom_native_scoped_query_selectors")?tCO(G).querySelector.call(G,b):Ne(G).prototype.querySelector.call(G,b)};
oXO=function(G,b){return _.U("sunnydom_native_scoped_query_selectors")?tCO(G).querySelectorAll.call(G,b):Ne(G).prototype.querySelectorAll.call(G,b)};
i$p=function(G){var b,I,h;return(h=(I=(b=G.parentElement)!=null?b:G.__shady_native_parentElement)!=null?I:G.__shady_parentElement)!=null?h:null};
Pjv=function(G){var b,I,h;return(h=(I=(b=G.parentNode)!=null?b:G.__shady_native_parentNode)!=null?I:G.__shady_parentNode)!=null?h:null};
dVp=function(G){var b,I,h;return(h=(I=(b=G.nextSibling)!=null?b:G.__shady_native_nextSibling)!=null?I:G.__shady_nextSibling)!=null?h:null};
yAr=function(G){var b,I,h;return(h=(I=(b=G.previousSibling)!=null?b:G.__shady_native_previousSibling)!=null?I:G.__shady_previousSibling)!=null?h:null};
rAq=function(G){var b,I,h;return(h=(I=(b=G.nextElementSibling)!=null?b:G.__shady_native_nextElementSibling)!=null?I:G.__shady_nextElementSibling)!=null?h:null};
FDq=function(G){var b,I,h;return(h=(I=(b=G.previousElementSibling)!=null?b:G.__shady_native_previousElementSibling)!=null?I:G.__shady_previousElementSibling)!=null?h:null};
H$O=function(G){var b,I,h;return new Set([].concat(_.Nz((b=G.children)!=null?b:[]),_.Nz((I=G.__shady_native_children)!=null?I:[]),_.Nz((h=G.__shady_children)!=null?h:[])))};
WDO=function(G){var b,I,h;return new Set([].concat(_.Nz((b=G.childNodes)!=null?b:[]),_.Nz((I=G.__shady_native_childNodes)!=null?I:[]),_.Nz((h=G.__shady_childNodes)!=null?h:[])))};
_.Yn=function(G){if(!(G instanceof Element))return null;G=G.classList?Array.from(G.classList):void 0;if(!G)return null;var b=G.indexOf("style-scope");return b>-1&&b+1<G.length?G[b+1]:null};
CX=function(G){if(!(G instanceof HTMLElement))return null;var b=G&&(G.$$||G.polymerController)?G.tagName.toLowerCase():null;return b?b:_.Yn(G)};
aXO=function(G,b){return _.U("sunnydom_native_scoped_query_selectors")?G+".style-scope."+b:G.replace(/[^a-z]*[^\s]+/g,function(I){return I+".style-scope."+b})};
N$j=function(G,b){return b?G.split(",").map(function(I){return aXO(I.trim(),b)}).join(", "):G};
_.JL=function(G){var b,I,h,q;return(q=(h=(I=(b=G.root)!=null?b:G.shadowRoot)!=null?I:G.__shady_native_shadowRoot)!=null?h:G.__shady_shadowRoot)!=null?q:G};
YCj=function(G){var b,I,h;return(h=(I=(b=G.__shady_parentNode)!=null?b:G.__shady_native_parentNode)!=null?I:G.parentNode)!=null?h:null};
Cja=function(G){var b,I;return(I=(b=Pjv(G))!=null?b:G.host)!=null?I:null};
JAj=function(G){for(;G&&!(G instanceof HTMLElement);)G=Cja(G);return G};
KDr=function(G){var b=JAj(G);return G===b?_.Yn(G):b?CX(b):null};
uFa=function(G){return(G=JAj(G))?CX(G):null};
R9O=function(G){if(G instanceof Comment)return!1;if(G instanceof Text){var b,I;if(((I=(b=G.textContent)==null?void 0:b.trim())!=null?I:"")==="")return!1}return!0};
KX=function(G,b,I){var h=b(G);for(I=I===void 0?uFa(G):I;h&&(KDr(h)!==I||!R9O(h));)G=h,h=b(G);return h};
nXO=function(G,b,I){if(!b)return null;G=uFa(G);return KDr(b)===G&&R9O(b)?b:KX(b,I,G)};
O$r=function(G){return KX(G,YCj,_.Yn(G))};
wV2=function(G){return KX(G,rAq)};
EXO=function(G){return KX(G,dVp)};
pVB=function(G){return KX(G,FDq)};
SCv=function(G){return KX(G,yAr)};
XVr=function(G){return nXO(G,G.firstChild||null,dVp)};
$vr=function(G){var b,I,h;var q=(h=(I=(b=G.firstElementChild)!=null?b:G.__shady_native_firstElementChild)!=null?I:G.__shady_firstElementChild)!=null?h:null;return nXO(G,q,rAq)};
GPB=function(G){var b,I,h;var q=(h=(I=(b=G.lastChild)!=null?b:G.__shady_native_lastChild)!=null?I:G.__shady_lastChild)!=null?h:null;return nXO(G,q,yAr)};
b_O=function(G){var b,I,h;var q=(h=(I=(b=G.lastElementChild)!=null?b:G.__shady_native_lastElementChild)!=null?I:G.__shady_lastElementChild)!=null?h:null;return nXO(G,q,FDq)};
I4p=function(G){var b=uFa(G);return Array.from(WDO(G)).filter(function(I){return KDr(I)===b})};
hka=function(G){var b=CX(G);return Array.from(H$O(G)).filter(function(I){return _.Yn(I)===b})};
qOr=function(G){if(!G)return null;var b=_.Yn(G);if(!b){var I;return(I=Node.prototype.getRootNode)==null?void 0:I.call(G)}b=b.toUpperCase();for(G=i$p(G);G&&G.tagName!==b;)G=i$p(G);return G?_.JL(G):null};
_.ug=function(G,b,I){if(G instanceof HTMLElement&&_.Yn(G)===I){var h=Array.from(G.classList).indexOf("style-scope");if(h===-1)G.classList.add("style-scope"),G.classList.add(b);else if(!(h+1>=G.classList.length)){h=G.classList[h+1];var q,l;G==null||(q=G.classList)==null||(l=q.replace)==null||l.call(q,h,b)}}if(G instanceof HTMLElement||G instanceof DocumentFragment)for(q=_.e(H$O(G)),l=q.next();!l.done;l=q.next())_.ug(l.value,b,I);return G};
R_=function(G,b){if(G instanceof HTMLElement&&_.Yn(G)===b){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=_.e(G.children);for(var h=I.next();!h.done;h=I.next())R_(h.value,b)}return G};
_.jHd=function(G,b){return Ne(G).prototype.appendChild.call(G,b)};
l4u=function(G,b){if(G===b)return!0;G=WDO(G);return Array.from(G).some(function(I){return l4u(I,b)})};
_.Eo=function(G,b){if(G instanceof nX)return G;(b==null?0:b.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(G,"ownerDocument")&&Object.defineProperty(G,"ownerDocument",{get:function(){return window.document}});
return new nX(G)};
ekO=function(){var G=nX.prototype,b=[].concat(_.Nz(mvu?[]:["getRootNode"]),["setAttribute","removeAttribute"]);b=_.e(b);for(var I=b.next(),h={};!I.done;h={method$jscomp$53:void 0},I=b.next())h.method$jscomp$53=I.value,G[h.method$jscomp$53]=function(q){return function(){return this.host[q.method$jscomp$53].apply(this.host,arguments)}}(h)};
Dvd=function(){var G=nX.prototype,b=[].concat(_.Nz(mvu?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Nz(VFp?[]:["querySelector","querySelectorAll"]));b=_.e(b);for(var I=b.next(),h={};!I.done;h={method$jscomp$54:void 0},I=b.next())h.method$jscomp$54=I.value,G[h.method$jscomp$54]=function(q){return function(){return this.root[q.method$jscomp$54].apply(this.root,arguments)}}(h)};
v7v=function(){var G=nX.prototype,b=[].concat(_.Nz(cPq?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Nz(kPX?[]:["parentNode"]));b=_.e(b);for(var I=b.next(),h={};!I.done;h={prop$jscomp$67:void 0},I=b.next())h.prop$jscomp$67=I.value,Object.defineProperty(G,h.prop$jscomp$67,{get:function(q){return function(){return this.host[q.prop$jscomp$67]}}(h),
configurable:!0})};
xvv=function(){var G=nX.prototype,b=["activeElement"].concat(_.Nz(cPq?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Nz(L1q?[]:["children"]),_.Nz(QHO?[]:["lastChild"]));b=_.e(b);for(var I=b.next(),h={};!I.done;h={prop$jscomp$68:void 0},I=b.next())h.prop$jscomp$68=I.value,Object.defineProperty(G,h.prop$jscomp$68,{get:function(q){return function(){return this.root[q.prop$jscomp$68]}}(h),
configurable:!0})};
f4a=function(){for(var G=nX.prototype,b=_.e(["innerHTML","textContent"]),I=b.next(),h={};!I.done;h={prop$jscomp$69:void 0},I=b.next())h.prop$jscomp$69=I.value,Object.defineProperty(G,h.prop$jscomp$69,{get:function(q){return function(){return this.root[q.prop$jscomp$69]}}(h),
set:function(q){return function(l){this.root[q.prop$jscomp$69]=l}}(h),
configurable:!0})};
Tod=function(G){var b=nX.prototype;G=_.e(Object.entries(G));for(var I=G.next(),h={};!I.done;h={fn$jscomp$403:void 0},I=G.next()){var q=_.e(I.value);I=q.next().value;q=q.next().value;h.fn$jscomp$403=q;b[I]=function(l){return function(){return l.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.Nz(arguments)))}}(h)}};
Uva=function(){for(var G=nX.prototype,b=_.e(Object.entries(BoO)),I=b.next(),h={};!I.done;h={fn$jscomp$404:void 0},I=b.next()){var q=_.e(I.value);I=q.next().value;q=q.next().value;h.fn$jscomp$404=q;Object.defineProperty(G,I,{get:function(l){return function(){return l.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.Nz(arguments)))}}(h),
configurable:!0})}};
_.pX=function(G){return G instanceof sHO||G instanceof Document?G:new sHO(G)};
g7s=function(){for(var G=sHO.prototype,b=_.e("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),I=b.next(),h={};!I.done;h={method$jscomp$55:void 0},I=b.next())h.method$jscomp$55=I.value,G[h.method$jscomp$55]=function(q){return function(){return HTMLElement.prototype[q.method$jscomp$55].call.apply(HTMLElement.prototype[q.method$jscomp$55],[this.node].concat(_.Nz(arguments)))}}(h)};
APa=function(){for(var G=sHO.prototype,b=_.e("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),I=b.next(),h={};!I.done;h={prop$jscomp$70:void 0},I=b.next())h.prop$jscomp$70=I.value,Object.defineProperty(G,h.prop$jscomp$70,{get:function(q){return function(){var l;return(l=this.node["__shady_native_"+q.prop$jscomp$70])!=null?l:this.node[q.prop$jscomp$70]}}(h),
configurable:!0})};
_.SL=function(G,b,I){I===void 0&&(I=!G.classList.contains(b));I?G.classList.add(b):G.classList.remove(b)};
_.XA=function(G,b,I){I===void 0&&(I=!G.hasAttribute(b));if(b==="class")throw Error("fg");I?_.pX(G).setAttribute(b,""):_.pX(G).removeAttribute(b)};
MFs=function(G){return(G.localName!=="slot"?[]:(0,_.$y)(G).assignedNodes({flatten:!0})).filter(function(b){return b.nodeType===Node.ELEMENT_NODE})};
_.Z_O=function(G){return(G=_.Eo(G).querySelector("slot"))&&G.localName==="slot"?MFs(G):[]};
_.G8=function(G,b){window.ShadyCSS&&window.ShadyCSS.styleSubtree(G,b)};
bH=function(G,b){var I=b.bind(G);return function(h){I(h,h.detail)}};
_.I9=function(G,b){var I=tFs.get(G);I||(I=new WeakMap,tFs.set(G,I));if(I.has(b))return I.get(b);if(_.U("web_fi_listen_disable_bound_fn_helper")){var h=b.bind(G);G=function(q){h(q,q==null?void 0:q.detail)}}else G=bH(G,b);
I.set(b,G);return G};
i_q=function(G,b){zkv(G);G.created[o7O].push(b)};
zkv=function(G){if(!G.created||!G.created[o7O]){var b=G.created,I=b?[b]:[];G.created=function(){for(var h=_.e(I),q=h.next();!q.done;q=h.next())q.value.apply(this)};
G.created[o7O]=I}};
P_d=function(G){return function(){var b=_.RI.apply(0,arguments);return function(I,h,q){G.apply(null,_.Nz(b))(I,h,q)}}};
dvr=function(){return function(){var G=_.RI.apply(0,arguments);return function(b,I,h){ewO.apply(null,_.Nz(G))(b,I,h)}}};
_.z=function(G){return dvr()(G)};
_.P=function(){return P_d(kwj).apply(null,_.Nz(_.RI.apply(0,arguments)))};
_.hI=function(G){return _.U("pbcm_fi_listen_decorators")?yPu(G):P_d(Dwv)(G)};
yPu=function(G){return function(b,I){i_q(b,function(){var h=this[I],q=_.U("web_fi_listen_disable_bound_fn_helper")?function(l){h(l,l.detail)}.bind(this):bH(this,h);
rPO.has(G)?R1(this.hostElement,G,q):this.hostElement.addEventListener(G,q)})}};
_.q5=function(){return P_d(c8p).apply(null,_.Nz(_.RI.apply(0,arguments)))};
_.H=function(G){G=G===void 0?{}:G;return P_d(VEa)(G)};
_.jH=function(G){if(G.hostElement&&G!==G.hostElement){var b=_.kc(G.hostElement);b=G.renderIdom?b:b.shadowRoot}b||(G=G.root,b=G instanceof Node?_.kc(G):null);return b};
_.lH=function(G){return F1j?H_v(G):function(b,I){Object.defineProperty(b,I,{get:function(){var h;return(h=_.jH(this))==null?void 0:h.querySelector(G)},
enumerable:!0,configurable:!0})}};
H_v=function(G){return function(b,I){Object.defineProperty(b,I,{get:function(){var h,q=(h=_.Eo(this.hostElement))==null?void 0:h.querySelector(G);if(q)return q;var l;return(l=_.jH(this))==null?void 0:l.querySelector(G)},
enumerable:!0,configurable:!0})}};
_.mN=function(G){return F1j?W1d(G):function(b,I){Object.defineProperty(b,I,{get:function(){var h;return(h=_.jH(this))==null?void 0:h.querySelectorAll(G)},
enumerable:!0,configurable:!0})}};
W1d=function(G){return function(b,I){Object.defineProperty(b,I,{get:function(){var h,q=(h=_.Eo(this.hostElement))==null?void 0:h.querySelectorAll(G);if(q==null?0:q.length)return q;var l;return(l=_.jH(this))==null?void 0:l.querySelectorAll(G)},
enumerable:!0,configurable:!0})}};
a4u=function(G){return function(b){if(![_.vh,_.a].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("gg");Gwv(Object.assign({},typeof G!=="string"?G:{is:G,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(b)}};
_.Vx=function(){var G=G===void 0?{}:G;return function(b){if(![LJ,_.eH].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("hg");bfs(Object.assign({},G,{disableInheritanceCheck:!0}))(b)}};
YOs=function(G,b){NoO[G]!=null||(NoO[G]=new Set);NoO[G].add(b)};
_.Dd=function(){var G=_.q5.apply(null,_.Nz(_.RI.apply(0,arguments)));return function(b,I){YOs(b.is,I);G(b,I)}};
v5=function(G,b,I){if(c5(G)&&!C_r.has(b)){b=b.replace(/^JSC\$[\d]+_/,"");b=b.replace(/\.\d+(\.|$)/g,function(l,V){return".#"+V});
ky[G]!=null||(ky[G]={});var h,q;(h=ky[G])[q=b]!=null||(h[q]=new Set);ky[G][b].has(I)||(ky[G][b].add(I),_.C1("polymerPropertyAccessEvent",{componentName:G,propertyName:b,accessType:I}))}};
JPB=function(){return _.U("polymer_property_access_logging_debug")||_.U("polymer_enable_property_access_logging")};
c5=function(G){if(_.U("polymer_property_access_logging_debug"))return!0;if(!_.U("polymer_enable_property_access_logging"))return!1;K1v||(K1v=Date.now());return(Pq(G)+K1v)%100<_.Te("polymer_property_access_logging_percent")};
uwB=function(G,b){return c5(b)&&G.hostElement.loggingStatus?new Proxy(G,{get:function(I,h,q){if(I.hostElement.loggingStatus.bypassProxyController)return I[h];I.hostElement.loggingStatus.isExternalGet=!0;var l=I[h];I.hostElement.loggingStatus.isExternalGet=!1;if(l instanceof Function)return function(){var V=_.RI.apply(0,arguments);try{return I.hostElement.loggingStatus.currentExternalCall=h,v5(b,h,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),l.apply(this===q?I:this,V)}finally{I.hostElement.loggingStatus.currentExternalCall=
void 0}};
v5(b,h,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return l},
set:function(I,h,q){if(I.hostElement.loggingStatus.bypassProxyController)return I[h]=q,!0;I.hostElement.loggingStatus.isRendererStamper?v5(b,h,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):I.hostElement.loggingStatus.isDeclarativeExternal||v5(b,h,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{I.hostElement.loggingStatus.currentExternalSet=h,I[h]=q}finally{I.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):G};
Rk2=function(G,b){G&&G.loggingStatus&&!G.loggingStatus.isDeclarativeExternal&&!G.loggingStatus.isExternalGet&&G.loggingStatus.currentExternalSet!==b&&v5(G.tagName.toLowerCase(),b,"PROPERTY_ACCESS_GET_INTERNAL")};
Ln=function(G,b,I){G&&(I||G.loggingStatus&&!G.loggingStatus.isInitializing&&!G.loggingStatus.isDefiningPropertyAccessor&&G.loggingStatus.currentExternalSet!==b)&&v5(G.tagName.toLowerCase(),b,"PROPERTY_ACCESS_SET_INTERNAL")};
n7p=function(){return{_definePropertyAccessor:function(G,b){var I=this,h=I.hostElement.loggingStatus;h&&(h.isDefiningPropertyAccessor=!0);var q=I[G];q!==void 0&&(I.__data?I._setPendingProperty(G,q):(I.__dataProto!=null||(I.__dataProto={}),I.__dataProto[G]=q));h&&(h.isDefiningPropertyAccessor=!1);Object.defineProperty(this,G,{get:function(){Rk2(I.hostElement,G);return this.__data[G]},
set:function(l){b||this._setPendingProperty(G,l,!0)&&this._invalidateProperties()}})},
created:function(){var G=this._setPendingProperty.bind(this);this._setPendingProperty=function(b,I,h){Ln(this.hostElement,b);return G.apply(this,[b,I,h])}}}};
O_X=function(G){JPB()&&_.z(Qx.prototype)(G.prototype,"__templateBindingLoggingBehavior")};
wWu=function(G,b){if(b.resolvedFactories.length!==G.resolvedFactories.length)return!0;b=_.e(b.resolvedFactories.entries());for(var I=b.next();!I.done;I=b.next()){var h=_.e(I.value);I=h.next().value;h=h.next().value;if(h.providerClass){if(h.providerClass!==G.resolvedFactories[I].providerClass)return!0}else if(h.providerValue){if(h.providerValue!==G.resolvedFactories[I].providerValue)return!0}else if(h.factory!==G.resolvedFactories[I].factory)return!0}return!1};
E7O=function(G,b){G=_.e(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.constructor===Array)E7O(I,b);else{var h=b;h.has(I)||(I.inject&&h.add(I),I.behaviors&&E7O(I.behaviors,h))}};
xy=function(G,b){var I=G[b];G[b]=function(){var h=_.RI.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(I)return I.apply(this,h)}};
$lu=function(){_.fn.Class=function(I,h){I=pWB(I,h);xy(I.prototype,"created");return I};
xy(T8.prototype,"_initializeProperties");xy(_.B5.prototype,"_initializeProperties");if(SOa)xy(XWu,"created");else{var G=function(){xy(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))G();else{var b=customElements.define;customElements.define=function(I,h,q){b.call(customElements,I,h,q);I==="tp-yt-iron-list"&&(G(),customElements.define=b)}}}};
bzO=function(G,b){G.prototype.behaviors=G.prototype.behaviors||[];G.prototype.behaviors.unshift(GLO.InjectBehavior);G.prototype.provide=b};
_.g8=function(G){return function(b){if(!G.disableElementRegistration){G.noInjection||bzO(b,G.providers);var I=b.prototype;I.__templateHelpers||ewO(Uh.prototype)(I,"__templateHelpers");I=G.is;IvO||(IvO=Date.now());(Pq(I)+IvO)%100<_.Te("polymer_log_prop_change_observer_percent")&&ewO(sh.prototype)(b.prototype,"__propertyObserverObserver");b.prototype.behaviors=b.prototype.behaviors||[];b.prototype.behaviors.unshift(_.hOO.YtHostElementBehavior);O_X(b);a4u({is:G.is,notifyObserversOnUndefined:G.notifyObserversOnUndefined!==
!1,fastInit:G.fastInit,template:G.template,disableEnforceFastDefaultValuesCheck:!0})(b)}}};
_.N=function(G){return _.g8({is:G.is,template:G.template,disableElementRegistration:G.disableElementRegistration,cssBuildOptOut:G.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
lvj=function(G,b){if(qxO){G=new G;for(var I=_.e(Object.getOwnPropertyNames(G)),h=I.next();!h.done;h=I.next())h=h.value,b[h]=G[h];for(I=b;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){h=_.e(Object.getOwnPropertyNames(I));for(var q=h.next();!q.done;q=h.next())q=q.value,G.hasOwnProperty(q)||Object.defineProperty(G,q,j8a(b,q))}}else G.apply(b)};
j8a=function(G,b){return{get:function(){var I=G[b];return I instanceof Function?I.bind(G):I},
set:function(I){G[b]=I}}};
eOX=function(G,b){for(var I=G._noAccessors,h=_.e(Object.getOwnPropertyNames(G)),q=h.next();!q.done;q=h.next())if(q=q.value,!mlr.has(q))if(I)b[q]=G[q];else{var l=Object.getOwnPropertyDescriptor(G,q);l&&(l.configurable=!0,Object.defineProperty(b,q,l))}};
VUp=function(G,b,I){return function(h){if(I){var q=I();h.model=q}if(G[b])G[b](h,h.detail)}};
AI=function(G){var b=[];if(typeof G==="string")G.length>0&&b.push.apply(b,_.Nz(G.split(".")));else{G=_.e(G);for(var I=G.next();!I.done;I=G.next())I=I.value,typeof I==="string"?b.push.apply(b,_.Nz(I.split("."))):b.push(I)}return b};
Dlv=function(G,b){if(b[b.length-1]!=="*"&&b[b.length-1]!=="splices"){for(var I=0;I<b.length;I++){if(!G)return;G=G[b[I]]}return G}};
cOj=function(G,b){if(G.length>b.length)return!1;for(var I=0;I<G.length;I++)if(G[I]!==b[I])return!1;return!0};
vOa=function(G,b,I){if(b.type==="compute"){var h=b.getter.bind(I);var q=b.args}else h=function(){return I[b.method.methodName].apply(I,_.Nz(_.RI.apply(0,arguments)))},q=b.method.args;
kLO(G,b.propertyKey,h,q,b.value)};
Q8s=function(G,b){if(b.readOnly){var I=Object.getOwnPropertyDescriptor(G.model,b.propertyKey);Object.defineProperty(G.model,b.propertyKey,{get:I.get,set:function(){}});
G.model[Lgj(b.propertyKey)]=I.set}};
xlB=function(G,b,I){if(I){var h=b.propertyKey,q=b.selector;b=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Nz(b.selectorArgs.map(function(l){return{type:"path",path:l}})));
kLO(G,h,function(l){var V=_.RI.apply(1,arguments);return q.apply(null,[I.getState()].concat(_.Nz(V)))},b)}};
Teq=function(G,b,I){var h=_.qi(b.propertyKey)+"-changed";fvd(G,function(q){var l={value:q.value,queueProperty:!0};q.path.split(".").length>1&&(l.path=q.path);I.dispatchEvent(new CustomEvent(h,{detail:l}))},[{type:"wildcard",
path:b.propertyKey}])};
Bep=function(G,b,I){fvd(G,function(){I[b.method.methodName].apply(I,_.Nz(_.RI.apply(0,arguments)))},b.method.args)};
Lgj=function(G){return"_set"+(G.charAt(0).toUpperCase()+G.slice(1))};
UlO=function(){var G,b=RJ(function(I){G=I},!1);
return[G,b]};
Zzr=function(G){G=G.trim().replace(s8X,",").replace(gOO,"$1");var b=G[0];b==="-"&&(b=G[1]);if(b>="0"&&b<="9")return{type:"literal",value:Number(G)};if(b==="'"||b==='"')return{type:"literal",value:G.slice(1,-1)};if(b=G.match(AOB)){b=b[1];var I=MUr[b];if(I)return{type:I,path:G.slice(0,-(b.length+1))}}return{type:"path",path:G}};
izp=function(G){var b=G.match(tUO);if(b)return G={methodName:b[1],args:zOj},b[2].trim()&&(b=b[2].replace(oOs,"&comma;").split(","),G.args=b.map(Zzr)),G};
PRq=function(G,b,I,h){h=h===void 0?!1:h;b=_.qi(b);var q=ra;q&&(I=q(I,b,"attribute",G));M5(G,I,b,h)};
M5=function(G,b,I,h){b=dl2(b,h===void 0?!1:h);b===void 0?G.removeAttribute(I):G.setAttribute(I,b)};
dl2=function(G,b){switch(typeof G){case "object":case "function":if(G instanceof Date)return G.toString();if(G){if((b===void 0?0:b)&&!_.U("polymer_reflect_objects_as_boolean_killswitch"))return G?"":void 0;b=window.trustedTypes?window.trustedTypes.isHTML(G)||window.trustedTypes.isScript(G)||window.trustedTypes.isScriptURL(G):void 0;if(b)return G;try{return JSON.stringify(G)}catch(I){_.RB(Error("Dg`"+G))}}break;case "boolean":return G?"":void 0;default:return G!==null&&G!==void 0?G.toString():void 0}};
yO2=function(G){if(G===void 0)throw Error("Eg");return G};
av2=function(G,b,I,h){var q=rOO(h);if(q.length){h=I;var l="property";Fgq.test(I)?l="attribute":I[I.length-1]==="$"&&(I=I.slice(0,-1),l="attribute");var V=Hzd(q);V&&l==="attribute"&&(I==="class"&&G.hasAttribute("class")&&(V+=" "+G.getAttribute(I)),M5(G,V,I));l==="attribute"&&h==="disable-upgrade$"&&G.setAttribute("disable-upgrade","");G.localName==="input"&&h==="value"&&G.setAttribute("value","");G.removeAttribute(h);l==="property"&&(I=_.ju(I));b=yO2(b);Wga(b,l,I,q);return!0}return I.slice(0,3)===
"on-"?(G.removeAttribute(I),(l=b).events!=null||(l.events=[]),b.events.push({name:I.slice(3),value:h}),!0):I==="id"?(b.id=h,!0):!1};
rOO=function(G){for(var b=[],I=0,h;(h=Nea.exec(G))!==null;){h.index>I&&b.push({type:"literal",value:G.slice(I,h.index)});var q=h[1][0];I=!!h[2];h=h[3].trim();if(q==="{")throw Error("Fg");(q=izp(h))?b.push({type:"method",negate:I,signature:q}):b.push({type:"path",negate:I,path:h});I=Nea.lastIndex}I&&I<G.length&&(G=G.substring(I))&&b.push({type:"literal",value:G});return b};
Hzd=function(G){for(var b="",I=0;I<G.length;I++){var h=G[I];h.type==="literal"&&(b+=h.value)}return b};
Wga=function(G,b,I,h){G.bindings!=null||(G.bindings=[]);G.bindings.push({kind:b,target:I,parts:h})};
u$X=function(G,b,I){var h=!1;if(G.localName==="template"){h=I;var q=b.stripWhitespace;q=YxX(G,q===void 0?!1:q);var l=G.content.ownerDocument.createDocumentFragment();q.content=l;l.appendChild(G.content);h&&(h.templateInfo=q);h=!0}else G.localName==="slot"&&(b.hasInsertionPoint=!0);if(G.firstChild&&(q=I,G.localName!=="script"&&G.localName!=="style")){l=0;for(var V=G.firstChild;V;){var D=V;if(D.localName==="template"){var k=D.getAttribute("is");if((V=k==="dom-if")||k==="dom-repeat"){D.removeAttribute("is");
k=D.ownerDocument.createElement("ps-"+k);D.parentNode.replaceChild(k,D);k.appendChild(D);var L=Array.from(D.attributes);L=_.e(L);for(var x=L.next();!x.done;x=L.next())x=x.value,V?CRd.has(x.name)&&M5(k,x.value,x.name):JOj.has(x.name)?M5(k,x.value,x.name):Kgs.has(x.name),D.removeAttribute(x.name);V=k}else V=D}if(V.nodeType===Node.TEXT_NODE){D=void 0;k=G;for(L=V;((D=L.nextSibling)==null?void 0:D.nodeType)===Node.TEXT_NODE;)x=void 0,(x=L).textContent!=null||(x.textContent=""),L.nextSibling.textContent&&
(L.textContent+=L.nextSibling.textContent),k.removeChild(L.nextSibling);if(b.stripWhitespace&&V.textContent&&!V.textContent.trim()){G.removeChild(V);V=V.nextSibling;continue}}u$X(V,b,{parentIndex:l,parentInfo:q});V.parentNode&&l++;V=V.nextSibling}}var f;if((f=G.hasAttributes)==null?0:f.call(G)){f=I=yO2(I);q=!1;l=Array.from(G.attributes);l=_.e(l);for(D=l.next();!D.done;D=l.next())D=D.value,q=av2(G,f,D.name,D.value)||q;h=q||h}G.nodeType===Node.TEXT_NODE&&(f=rOO(G.textContent),f.length&&(G.textContent=
Hzd(f)||" ",I=yO2(I),Wga(I,"text","textContent",f),h=!0));I&&h&&(I.infoIndex=b.nodeInfoList.push(I)-1)};
YxX=function(G,b){b={nodeInfoList:[],stripWhitespace:(b===void 0?!1:b)||G.hasAttribute("strip-whitespace")};u$X(G.content,b);return b};
ROr=function(G){Object.assign(G,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
Ozd=function(G,b,I){b.signalCache!=null||(b.signalCache={});var h=b.signalCache[I];if(!h){var q=I.split(".");h=!nOB(G,q[0]);if(q.length>1&&h){var l=G.getPathMutationSignal(q);h=function(){var V=OM(G.owner,function(){return G.getWithPath([q[0]])}),D,k=(D=l())==null?void 0:D.value;
return{rootWasDefined:V!==void 0,value:k}}}else h=function(){var V=G.getWithPath(q);
return{rootWasDefined:V!==void 0,value:V}};
b.signalCache[I]=h}return h()};
EOO=function(G,b,I,h,q){b=b.parts.map(function(V,D){if(V.type==="literal"){I.partWasDefined!=null||(I.partWasDefined=[]);var k;(k=I.partWasDefined)[D]||(k[D]=V.value!==void 0);return V.value}var L;if(V.type==="method"){var x,f=(x=(L=I.partWasDefined)==null?void 0:L[D])!=null?x:!1;f||(f=V.signature.args.every(function(A){return A.type==="literal"}));
var T=!1,B=!0;L=V.signature.args.map(function(A){if(A.type==="literal")return A.value;if(A.type!=="path")throw Error("Gg`"+A.type);var t=Ozd(G,I,A.path);A=t.value;t=t.rootWasDefined;T||(T=t);B&&(B=t);return A});
f||(f=q===1?B:T);I.partWasDefined!=null||(I.partWasDefined={});I.partWasDefined[D]=f;if(!f)return;L=(D=Ozd(G,I,V.signature.methodName).value)&&typeof D==="function"?D.apply(h,L):void 0}else x=Ozd(G,I,V.path),L=x.value,I.partWasDefined!=null||(I.partWasDefined={}),(f=I.partWasDefined)[D]||(f[D]=L!==void 0||x.rootWasDefined);V.negate&&(L=!L);return L});
if(b.length===1){var l;return((l=I.partWasDefined)==null?0:l[0])?b[0]:wIr}return b.join("")};
pIa=function(G){return typeof G==="object"&&!!G&&"notifyPath"in G&&"canNotifyPath"in G};
Sxr=function(G){return typeof G==="object"&&!!G&&"notifyPath"in G};
XI2=function(G){return"polymerController"in G};
$da=function(G,b){b=""+AI(b)[0];if(pIa(G))return G.canNotifyPath(b);if(XI2(G)&&pIa(G.polymerController))return G.polymerController.canNotifyPath(b);if(Sxr(G)){var I;return!((I=G.properties)==null||!I[b])}if(XI2(G)&&Sxr(G.polymerController)){var h;return!((h=G.polymerController.properties)==null||!h[b])}return!1};
Gpq=function(G,b,I){pIa(G)||Sxr(G)?G.notifyPath(b,I):XI2(G)&&(pIa(G.polymerController)||Sxr(G.polymerController))&&G.polymerController.notifyPath(b,I)};
IMa=function(G,b,I){if(I!==wIr){G.kind==="attribute"||G.target!=="textContent"&&(G.target!=="value"||b.localName!=="input"&&b.localName!=="textarea")||(I=I===void 0?"":I);var h,q=(h=bSp.Polymer)==null?void 0:h.sanitizeDOMValue;q&&(I=q(I,G.target,G.kind,b));if(G.kind==="attribute"){G=G.target;if(G==="class"||G==="name"||G==="slot")b=(0,_.$y)(b);M5(b,I,G)}else if(G=G.target,I!==b[G]||typeof I==="object")b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!0,v5(b.localName,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
b[G]=I,b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!1)}};
hNO=function(G,b,I,h){var q=b.parts[0];if(b.parts.length!==1||q.type!=="path"||!$da(I,b.target))return!1;var l=_.e(q.path.split(".")),V=l.next().value,D=jT(l);if(nOB(G,V))return!1;h.signalCache!=null||(h.signalCache={});l=h.signalCache[q.path];var k;l=(k=l)==null?void 0:k().value;if((l==null?void 0:l.path)!==void 0){h=AI(l.path);var L=AI(q.path);h=[b.target].concat(_.Nz(h.slice(L.length-1)));Gpq(I,h,q.negate?!l.value:l.value);return!0}var x=Zd(G,V);var f=x.getChangeRecordSignal(D),T=!1;l=function(){if(!T){var A=
OM(G.owner,function(){return x.getWithPath([])});
T||(T=A!==void 0)}return{value:f(),rootWasDefined:T}};
h.signalCache[q.path]=l;h.partWasDefined!=null||(h.partWasDefined={});l=l();(L=h.partWasDefined)[0]||(L[0]=l.rootWasDefined);var B=OM(G.owner,function(){return x.getWithPath(D)});
h.partWasDefined[0]&&OM(G.owner,function(){return void IMa(b,I,q.negate?!B:B)});
return!0};
qyu=function(G,b,I,h,q,l){if(!hNO(G,b,I,h)){var V=EOO(G,b,h,q,l);OM(G.owner,function(){return void IMa(b,I,V)})}};
jXO=function(G,b,I,h,q,l){I=_.e(I);for(var V=I.next(),D={};!V.done;D={infoIndex:void 0},V=I.next()){V=V.value;var k=V.bindings;D.infoIndex=V.infoIndex;V=V.parentInfo;if(k){k=_.e(k);for(var L=k.next(),x={};!L.done;x={b$jscomp$256:void 0,bindingCtx$jscomp$4:void 0},L=k.next()){x.b$jscomp$256=L.value;if(D.infoIndex===void 0)throw Error("Hg");x.bindingCtx$jscomp$4={};G.effect(function(f,T){return function(){q&&!q()||qyu(G,f.b$jscomp$256,b[T.infoIndex],f.bindingCtx$jscomp$4,h,l)}}(x,D))}}V&&jXO(G,b,[V],
h,q,l)}};
lMv=function(G,b){G=(b.parentInfo?lMv(G,b.parentInfo):G).firstChild;for(var I=0;G;G=G.nextSibling)if(b.parentIndex===I++)return G;throw Error("Ig");};
eNO=function(G,b,I,h){G=document.importNode(G.content,!0);G.__noInsertionPoint=!(h==null?0:h.hasInsertionPoint);for(var q=Array(b.length),l={},V=0;V<b.length;V++){var D=b[V],k=lMv(G,D);q[V]=k;D.id&&(l[D.id]=k);if(D.templateInfo){var L=k.parentElement;L&&(L.templateInfo=D.templateInfo,L.parentSignalProxy=I,L.eventListenerHost=h.eventListenerHost,L.stampingEnabled=h.enabledSignal)}L=void 0;if((L=D.events)==null?0:L.length)for(L=0;L<D.events.length;L++){var x=D.events[L];mdj(h.eventListenerHost,k,x.name,
x.value,h.getModel)}}jXO(I,q,b,h.thisCtx,h.enabledSignal,h.methodInvocationRequirement);return{root:G,nodes:q,nodesById:l}};
Ddp=function(G,b){G=G();var I;(I=VjO.ShadyCSS)==null||I.prepareTemplate(G,b);b=YxX(G);return{template:G,nodeInfoList:b.nodeInfoList,hasInsertionPoint:b.hasInsertionPoint}};
vMp=function(){c1O=!1;for(var G=tI.length,b=0;b<G;b++){var I=tI[b];if(I)try{I()}catch(h){Promise.resolve().then(function(){throw h;})}}tI.splice(0,G);
kpr+=G};
fMr=function(G){c1O||(c1O=!0,LBv.textContent=(QXp++).toString());tI.push(G);return xdO++};
_.iH=function(G,b,I){z8++;G=b?new Tnr(z8,G,b,I):new Bna(z8,G);o9.set(z8,G);return z8};
UdO=function(G){(G=o9.get(G))&&G.cancel()};
gMs=function(G,b){G=sXj.get(G);return G?(b=G.get(b))?b:null:null};
_.P5=function(G,b,I,h){var q=gMs(G,b);if(!q){q=new A1r;var l=sXj.get(G);l||(l=new Map,sXj.set(G,l));l.set(b,q)}G=I.bind(G);q.run(G,h,void 0)};
_.Mj2=function(G,b){var I;(I=gMs(G,b))==null||I.cancel()};
ZSq=function(G){var b;(b=gMs(G,"doRender"))==null||b.flush()};
d8=function(G){var b;return(b=G.hostElement)!=null?b:G};
tjv=function(G){var b=G.indexOf(".");return b===-1?G:G.slice(0,b)};
zNq=function(G,b,I,h,q,l){l=(q=(h=l?tjv(b):b)?b:null)?G.get(q):G.__data[b];q&&l===void 0&&(l=I[b]);_.O3(G.hostElement,n6O(h)+"-changed",{value:l,queueProperty:!0,path:q!=null?q:void 0},{bubbles:!1,composed:!1})};
oMO=function(G,b){G.__isReflecting=!0;PRq(G.hostElement,b,G.__data[b]);G.__isReflecting=!1};
iSd=function(G){if(G._onIronRequestResizeNotifications){var b=G._onIronRequestResizeNotifications.bind(G);G._onIronRequestResizeNotifications=function(I){_.a_(I)!==G.hostElement&&b(I)}}G._ariaActiveAttributeChanged&&(G._ariaActiveAttributeChanged=G._ariaActiveAttributeChanged.bind(G.hostElement));
G._activeChanged&&(G._activeChanged=function(I){G.toggles?M5(G.hostElement,I?"true":"false",G.ariaActiveAttribute):G.hostElement.removeAttribute(G.ariaActiveAttribute);G._changedButtonState()});
G._asyncClick&&(G._asyncClick=function(){_.iH(function(){G.hostElement.click()},1)});
!G.keyEventTarget||G.keyEventTarget instanceof EventTarget||(G.keyEventTarget=d8(G.keyEventTarget));G._disabledChanged&&(G._disabledChanged=G._disabledChanged.bind(G.hostElement));G._observeItems&&(G._observeItems=function(I){var h=d8(I);return _.kc(h).observeNodes(function(q){G._updateItems();G._updateSelected();_.O3(h,"iron-items-changed",q,{bubbles:!1,cancelable:!1})})});
G._updateItems&&G._updateItems===_.yx._updateItems&&(G._updateItems=function(){var I=_.kc(G.hostElement).queryDistributedElements(G.selectable||"*");I=Array.prototype.filter.call(I,G._bindFilterItem);G._setItems(I)});
G._computeKeyboardClass&&(G._computeKeyboardClass=function(I){_.SL(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 h=G._rippleContainer||G.hostElement;h&&_.Eo(h).appendChild(G._ripple)}var q;if(I&&((q=G._ripple)==null?0:q.uiDownAction)){h=_.Eo(G._rippleContainer||G.hostElement);var l;q=(l=I.composedPath())==null?void 0:l[0];h.contains(q)&&G._ripple.uiDownAction(I)}});
G._updateMultiselectable&&(G._updateMultiselectable=function(I){I?G.hostElement.setAttribute("aria-multiselectable","true"):G.hostElement.removeAttribute("aria-multiselectable")})};
PNv=function(G,b,I){I=_.e(I);for(var h=I.next();!h.done;h=I.next())lvj(h.value.constructor,G);lvj(b.constructor,G)};
y1O=function(G,b){G=_.e(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.type==="signal"){var h=I.propertyKey;if(b.hasOwnProperty(h)&&b[h]!=null&&I.attributeType===Object){a:{h=b[h].constructor;for(var q=_.e(ddp),l=q.next();!l.done;l=q.next())if(l=l.value,h===l){h=l;break a}h=Object}I.attributeType=h}}};
r1X=function(){};
FBv=function(G){var b;return(b=G.hostElement)!=null?b:G};
HSO=function(){throw Error("Mg");};
WBu=function(G,b){G.constructor.prototype.useSignals=!0;var I=new G.constructor;PNv(I,G,b.behaviors);y1O(b.reactiveSchemas,I);I={};for(var h=_.e(b.reactiveSchemas),q=h.next();!q.done;q=h.next())q=q.value,q.type==="signal"&&(I[q.propertyKey]=q.attributeType);var l={copyPropertiesToProto:HSO,didRegister:!1,typesForSignals:I},V=["disable-upgrade"].concat(_.Nz(b.observedAttributes)),D=function(k){r8.call(this,G,b,l,k)};
_.M(D,r8);_.kV.Object.defineProperties(D,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return V}}});
l.copyPropertiesToProto=function(){for(var k=0;k<b.behaviors.length;k++)eOX(b.behaviors[k],D.prototype);eOX(G,D.prototype)};
b.legacyOptimizations||l.copyPropertiesToProto();D.prototype.is=G.is;return D};
aMv=function(G,b){if(Object.getPrototypeOf(b.prototype).constructor!==_.a)throw Error("Ng");b.prototype.is=G.is;return WBu(b.prototype,G)};
Nnd=function(G){return G.type==="compute"||G.type==="computeWithMethod"};
Yyr=function(G){for(var b=G.reactiveSchemas.filter(Nnd),I=new Map,h=new Map,q=new Map,l=_.e(b),V=l.next();!V.done;V=l.next())V=V.value,I.set(V.propertyKey,V),h.set(V.propertyKey,[]),q.set(V.propertyKey,0);l=0;b=_.e(b);for(V=b.next();!V.done;V=b.next()){V=V.value;for(var D=_.e(V.type==="computeWithMethod"?V.method.args:V.args),k=D.next();!k.done;k=D.next())k=k.value,k.type!=="literal"&&(k=k.path.split(".")[0],h.has(k)&&(h.get(k).push(V.propertyKey),q.set(V.propertyKey,q.get(V.propertyKey)+1),l++))}V=
[].concat(_.Nz(h.keys())).filter(function(L){return q.get(L)===0});
for(b=[];V.length;)for(D=V.shift(),b.push(I.get(D)),D=_.e(h.get(D)),k=D.next();!k.done;k=D.next())k=k.value,q.set(k,q.get(k)-1),l--,q.get(k)===0&&V.push(k);I=G.reactiveSchemas.filter(function(L){return!Nnd(L)});
G.reactiveSchemas=[].concat(_.Nz(I),_.Nz(b))};
CNs=function(G,b){if(b.properties)for(var I=_.e(Object.entries(b.properties)),h=I.next();!h.done;h=I.next()){var q=_.e(h.value);h=q.next().value;q=q.next().value;G.properties[h]=typeof q==="function"?{type:q}:q}b.observers&&G.observers.push.apply(G.observers,_.Nz(b.observers));b.disabledPolySiReactions&&G.disabledPolySiReactions.push.apply(G.disabledPolySiReactions,_.Nz(b.disabledPolySiReactions))};
J12=function(G,b){for(var I=b.length-1;I>=0;I--){var h=b[I];Array.isArray(h)?J12(G,h):G.indexOf(h)<0&&G.unshift(h)}};
KBB=function(G,b){G.reactiveSchemas=G.reactiveSchemas.filter(function(I){return I.type==="observe"&&b.includes(I.method.methodName)||Nnd(I)&&b.includes(I.propertyKey)?!1:!0})};
RNq=function(G,b){var I=b.prototype,h,q,l={is:G.is,reactiveSchemas:[],observedAttributes:[],behaviors:[GLO.InjectBehavior,Uh.prototype],disableElementRegistration:G.disableElementRegistration,provide:(h=G.providers)!=null?h:[],reactivityMode:G.reactivityMode,signalProperties:(q=I.signalProperties)!=null?q:[]};"template"in b?l.templateGetter=function(){return b.template}:G.getTemplate&&(l.templateGetter=G.getTemplate);
I.behaviors&&J12(l.behaviors,I.behaviors);uru(l,b);return l};
uru=function(G,b){for(var I=b.prototype,h={properties:{},observers:[],disabledPolySiReactions:[]},q=_.e(G.behaviors),l=q.next();!l.done;l=q.next())CNs(h,l.value);CNs(h,I);if(G.signalProperties)for(I=_.e(G.signalProperties),q=I.next();!q.done;q=I.next())delete h.properties[q.value];I=_.e(Object.entries(h.properties));for(q=I.next();!q.done;q=I.next()){l=_.e(q.value);q=l.next().value;l=l.next().value;var V=void 0;if((V=G.signalProperties)==null||!V.includes(q)){V=void 0;var D=G,k=l.type;if(!k)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{k=Reflect.getMetadata("design:type",b,q);for(var L=_.e(nMj),x=L.next();!x.done;x=L.next())if(x=x.value,k===x){k=x;break a}k=Object}else k=String;l.computed||l.selector||(D.reactiveSchemas.push({type:"signal",propertyKey:q,value:l.value,attributeType:k,readOnly:l.readOnly}),D.observedAttributes.push(_.qi(q)));l.reflectToAttribute&&D.reactiveSchemas.push({type:"reflect",propertyKey:q});if(l.computed){k=izp(l.computed);if(!k)throw Error("Og");D.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:q,method:k,value:l.value})}l.observer&&D.reactiveSchemas.push({type:"observe",method:{methodName:l.observer,args:[{type:"path",path:q}]}});l.notify&&D.reactiveSchemas.push({type:"notify",propertyKey:q});l.selector&&D.reactiveSchemas.push({type:"redux",propertyKey:q,selector:l.selector,selectorArgs:(V=l.selectorArgs)!=null?V:[]})}}OSj&&Yyr(G);b=_.e(h.observers);for(q=b.next();!q.done;q=b.next())I=G,q=q.value,(l=izp(q))?I.reactiveSchemas.push({type:"observe",method:l}):console.log('Warning: unable to parse observe declaration: "'+
q+'"');KBB(G,h.disabledPolySiReactions)};
wev=function(G,b){for(var I=0;I<b.length;I++){var h=b[I],q=void 0;(q=h).showHideApi!=null||(q.showHideApi={});q=void 0;!!G!==!((q=h.showHideApi)==null||!q.hideTemplateChildren)&&(h.nodeType===Node.TEXT_NODE?G?(h.showHideApi.polymerTextContent=h.textContent,h.textContent=""):(q=void 0,h.textContent=(q=h.showHideApi.polymerTextContent)!=null?q:null):h instanceof Element&&h.localName==="slot"?G?(h.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.$y)((0,_.$y)(h).parentNode).replaceChild(h.showHideApi.polymerReplaced,
h)):(q=h.showHideApi.polymerReplaced)&&(0,_.$y)((0,_.$y)(q).parentNode).replaceChild(h,q):h instanceof HTMLElement&&h.style&&(G?(h.showHideApi.polymerDisplay=h.style.display,h.style.display="none"):h.style.display=h.showHideApi.polymerDisplay));h.showHideApi.hideTemplateChildren=G;h.showHideChildren&&h.showHideChildren(G)}};
pev=function(){if(!EMB){var G=document.createElement("style");G.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(G);EMB=!0}};
Fv=function(){return _.U("disable_hidden_dom_if_using_stamper")};
SyX=function(G,b){var I=_.H5().getState();return b?G.apply(null,[I].concat(_.Nz(b))):G(I)};
G2r=function(){if(Xeu)return Xeu;var G=_.e(_.ZZ(0,void 0,"MB1Hb")),b=G.next().value;G.next();var I=G.next().value;_.H5().subscribe(function(){$Fa(I)});
return Xeu=b};
$Fa=function(G){b7r||(b7r=!0,Promise.resolve().then(function(){G(function(b){return b+1});
b7r=!1}))};
_.H5=function(){return IWr.getAppStore()};
htd=function(G,b){return IWr.getSelectFn()(G,b)};
_.W5=function(G){IWr.getDispatchFn()(G)};
qfp=function(G,b){var I={},h;for(h in G)I[h]=b(G[h],h);return I};
_.a9=function(G,b){return function(){var I;return(I=_.n0(G))!=null?I:b}};
_.N5=function(G,b){var I=Object.assign({},G),h;for(h in b)b.hasOwnProperty(h)&&(I[h]=_.a9(G[h],b[h]));return I};
jYr=function(G,b,I){G instanceof Element&&(I.debugName||(I.debugName="<"+G.tagName.toLowerCase()+(G.tagName.includes("-")?">":"."+G.className+">")),_.U("ytwiz_enable_debug_component_props")&&(G.debugProps||(G.debugProps=qfp(b,function(h){return function(){return h()}}))))};
_.C=function(G,b){var I=function(h){return t6O("ytComponent",{},function(q){var l=lWO={};var V;if(((V=I)==null?0:V.idomCompat)&&h.renderedFromIdom){var D;V=typeof I.idomCompat==="object"?(D=I)==null?void 0:D.idomCompat.callbacks:{};V=_.e(mFX(h,V,I.debugName));D=V.next().value;V.next();V=V.next().value;var k=eta(G,D);l.privateValue=k;lWO=void 0;jYr(k,D,I);q.addAttributes({debugName:I.debugName});q=kbO(k);q=Array.isArray(q)?q[0]:q;q[Zp]||(q[Zp]={});q[Zp].updateSignalsFromIdomProps=V;V1v(D,k);return k}V=
qfp(h,DFs);D=eta(G,V);l.privateValue=D;lWO=void 0;jYr(D,V,I);q.addAttributes({debugName:I.debugName});V1v(V,D);return D})};
I.debugName=b===void 0?"":b;return I};
eta=function(G,b){G=G(b);return iM(G)};
c7X=function(G,b){G[b]||(G=new _.Wf("IDOM interop setter undefined. Key:",b),_.K1(G))};
DFs=function(G,b){return b==="children"||b==="ref"||typeof G==="function"||G===void 0?G:function(){return _.n0(G)}};
mFX=function(G,b,I){var h={},q={},l={},V={},D;for(D in G){V={key$jscomp$951:V.key$jscomp$951};V.key$jscomp$951=D;var k=G[V.key$jscomp$951];if(V.key$jscomp$951==="children"||V.key$jscomp$951==="ref")h[V.key$jscomp$951]=k;else if(typeof k==="function")V.key$jscomp$951 in b||k.length>0?(l[V.key$jscomp$951]=k,h[V.key$jscomp$951]=function(x){return function(){return l[x.key$jscomp$951].apply(l,_.Nz(_.RI.apply(0,arguments)))}}(V)):h[V.key$jscomp$951]=k;
else if(!(G[V.key$jscomp$951]===void 0&&V.key$jscomp$951 in b)){var L=_.e(_.ZZ(G[V.key$jscomp$951],{debugName:V.key$jscomp$951+":cwis:"+I},"cvwbof"));k=L.next().value;L=L.next().value;h[V.key$jscomp$951]=k;q[V.key$jscomp$951]=L}}return[h,q,function(x){var f={},T;for(T in x)f={key$jscomp$952:f.key$jscomp$952,val$jscomp$123:void 0},f.key$jscomp$952=T,f.val$jscomp$123=x[f.key$jscomp$952],f.key$jscomp$952!=="children"&&f.key$jscomp$952!=="ref"&&(typeof f.val$jscomp$123==="function"?f.key$jscomp$952 in
b?l[f.key$jscomp$952]=f.val$jscomp$123:f.val$jscomp$123.length>0&&(l[f.key$jscomp$952]=f.val$jscomp$123,_.RB(new _.Wf("Callback detected that was not set in the idomCompat callbacks map. Key:",f.key$jscomp$952))):f.key$jscomp$952 in b&&f.val$jscomp$123===void 0||(c7X(q,f.key$jscomp$952),dv(function(B){return function(){q[B.key$jscomp$952](B.val$jscomp$123)}}(f))))}]};
Lzr=function(G,b,I){var h=p8j(G.prototype,k2j,G.prototype.behaviors);h.prototype.is=b;h.prototype.localName=b;I&&vhq(h,I);return function(q){q&&(h.prototype.hostElement=q);var l=new h;l.root=l;l.hostElement=q;return l}};
vhq=function(G,b){var I;Object.defineProperty(G.prototype,"_template",{get:function(){I===void 0&&(I=b());return I},
set:function(h){I=h},
configurable:!0,enumerable:!0})};
BTO=function(G,b,I,h){function q(){if(!B){for(var A=new Set,t=_.e(x),y=t.next();!y.done;y=t.next()){y=y.value;for(var F=_.e(Object.getOwnPropertyNames(y)),W=F.next();!W.done;W=F.next()){W=W.value;var O=void 0,K=(O=Object.getOwnPropertyDescriptor(y,W))==null?void 0:O.value;K&&K instanceof Function&&!Yy(W)&&(!D[W]||_.U("polymer_forward_method_killswitch"))&&A.add(W)}}t=_.e(Object.entries(Object.getOwnPropertyDescriptors(G.prototype)));for(y=t.next();!y.done;y=t.next())F=_.e(y.value),y=F.next().value,
F=F.next().value,F.value instanceof Function&&!Yy(y)&&A.add(y);B=A}return B}
QYB(G,b,h==null?void 0:h.providers);S5a(G.prototype,G,!0);var l=Lzr(G,b,I),V,D=(V=G.prototype.properties)!=null?V:{},k,L,x=(L=(k=G.prototype.behaviors)==null?void 0:k.flat(Infinity))!=null?L:[];I=_.e(x);for(V=I.next();!V.done;V=I.next())D=Object.assign({},V.value.properties,D);var f=[].concat(_.Nz(xFs),_.Nz(Object.keys(D).map(function(A){return _.qi(A)}))),T=!1,B;
return{ctor:function(A,t){var y=l(A),F,W;A=[].concat(_.Nz((F=h==null?void 0:h.allowedProps)!=null?F:[]),_.Nz((W=h==null?void 0:h.allowedPropsFromBehaviors)!=null?W:[]));y.allowedProps=A.length>0?A:void 0;F={};W=_.e(f);for(A=W.next();!A.done;A=W.next())A=A.value,F[A]=_.ju(A);y.__dataAttributes=F;var O=y.ready.bind(y);y.ready=function(){t.beforeReady();O();if(c5(b)&&!T){var K=y.__templateInfo;if(K==null?0:K.hostProps){K=_.e(Object.keys(K.hostProps));for(var u=K.next();!u.done;u=K.next())v5(b,u.value,
"PROPERTY_ACCESS_GET_INTERNAL")}T=!0}};
y._overrideLegacyUndefined=!0;return y},
props:D,observedAttributes:f,getInitialMethods:q,getPropsToForwardBeforeRegister:function(){for(var A=[],t=new Set,y=_.e(Object.keys(D)),F=y.next();!F.done;F=y.next())F=F.value,A.push([F,D[F].readOnly]),t.add(F);y=q();F=_.e(Object.keys(Object.getOwnPropertyDescriptors(G.prototype)));for(var W=F.next();!W.done;W=F.next())W=W.value,!fWB(W)||y.has(W)||t.has(W)||(A.push([W,!1]),t.add(W));t=_.e(TTX);for(y=t.next();!y.done;y=t.next())A.push([y.value,!0]);return A},
getPropsToForwardBeforeReady:function(A){for(var t=[],y=_.e(Object.entries(A)),F=y.next();!F.done;F=y.next()){var W=_.e(F.value);F=W.next().value;W=W.next().value;if(fWB(F)&&!(W instanceof Function)&&(t.push([F,!1]),c5(b))){var O=W=void 0;(O=(W=A)._createPropertyAccessor)==null||O.call(W,F)}}return t},
shouldForwardProp:fWB,shouldLog:c5}};
QYB=function(G,b,I){bzO(G,I);G.prototype.behaviors.unshift(UFO);if(JPB()){if(c5(b)){var h;(h=G.prototype).behaviors!=null||(h.behaviors=[]);G.prototype.behaviors.unshift(n7p())}O_X(G)}_.z(Uh.prototype)(G.prototype,"__templateHelpers")};
Yy=function(G){return sYv.has(G)||G.startsWith("__compute__")};
fWB=function(G){return!Yy(G)&&!G.startsWith("_")&&!G.endsWith("_")};
t1v=function(G,b){function I(){var T=k();T=_.e(T);for(var B=T.next();!B.done;B=T.next()){var A=_.e(B.value);B=A.next().value;A=A.next().value;gh2(f.prototype,B,A)}h=!0}
var h=!1,q=G.ctor,l=G.getInitialMethods,V=G.observedAttributes,D=G.getPropsToForwardBeforeReady,k=G.getPropsToForwardBeforeRegister,L=G.shouldForwardProp,x=G.shouldLog,f=function(){var T=HTMLElement.call(this)||this;T.didForwardDynamicProps=!1;T.loggingStatus={};h||I();T.inst=q(T,{beforeReady:function(){T.didForwardDynamicProps||(T.forwardDynamicProps(),T.didForwardDynamicProps=!0)}});
T.controllerProxy=uwB(T.inst,b);T.forwardMethods();return T};
_.M(f,HTMLElement);f.prototype.forwardMethods=function(){for(var T=this,B=_.e(this.inst.getExtraMethodsToForward()),A=B.next(),t={};!A.done;t={method$jscomp$65:void 0},A=B.next()){var y=_.e(A.value);A=y.next().value;y=y.next().value;t.method$jscomp$65=y;this[A]=function(F){return function(){return F.method$jscomp$65.call.apply(F.method$jscomp$65,[T.inst].concat(_.Nz(_.RI.apply(0,arguments))))}}(t)}B=_.e(l());
for(t=B.next();!t.done;t=B.next())t=t.value,L(t)&&A7s(this,t),x(b)&&!Yy(t)&&M1q(this.inst,t)};
f.prototype.forwardDynamicProps=function(){var T=D(this.inst);T=_.e(T);for(var B=T.next();!B.done;B=T.next()){var A=_.e(B.value);B=A.next().value;A=A.next().value;gh2(this,B,A);x(b)&&!Yy(B)&&Z7v(this.inst,B)}};
f.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
f.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
f.prototype.attributeChangedCallback=function(T,B,A){this.inst.attributeChangedCallbackWrapper(T,B,A)};
_.kV.Object.defineProperties(f.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return b}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.kV.Object.defineProperties(f,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return V}}});
customElements.define(b,f)};
gh2=function(G,b,I){G.hasOwnProperty(b)||Object.defineProperty(G,b,{get:function(){var h,q=((h=G.is)!=null?h:G.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||v5(q,b,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,h=this.polymerController[b],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,h},
set:function(h){if(!I){var q,l=((q=G.is)!=null?q:G.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||v5(l,b,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=b,this.loggingStatus.bypassProxyController=!0,this.polymerController[b]!==h&&(q={},this.polymerController.setProperties((q[b]=h,q)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
A7s=function(G,b,I){var h=G.polymerController;G[b]=function(){var q=_.RI.apply(0,arguments);G.loggingStatus.currentExternalCall=b;G.loggingStatus.bypassProxyController=!0;var l,V=((l=G.is)!=null?l:G.tagName).toLowerCase();v5(V,b,"PROPERTY_ACCESS_CALL_EXTERNAL");var D;l=(D=I!=null?I:h[b])==null?void 0:D.call.apply(D,[h].concat(_.Nz(q)));G.loggingStatus.currentExternalCall=void 0;G.loggingStatus.bypassProxyController=!1;return l}};
M1q=function(G,b){var I=G.hostElement,h=G[b];G[b]=function(){var q=_.RI.apply(0,arguments);if(I.loggingStatus.currentExternalCall!==b){var l,V=((l=I.is)!=null?l:I.tagName).toLowerCase();v5(V,b,"PROPERTY_ACCESS_CALL_INTERNAL")}return h==null?void 0:h.apply(G,q)}};
Z7v=function(G,b){var I=Object.getOwnPropertyDescriptor(G,b);I&&!I.get&&Object.defineProperty(G,b,{get:function(){Rk2(G.hostElement,b);return I.value},
set:function(h){Ln(G.hostElement,b);I.value=h}})};
zts=function(G){return _.U("poly_si_dom_repeat_detached_fix_killswitch")||G.tagName!=="PS-DOM-REPEAT"?G.tagName==="DOM-REPEAT":!0};
i7O=function(G,b){var I=ohq(G);G instanceof Element&&I.unshift(G);G=_.e(I.filter(zts));for(var h=G.next();!h.done;h=G.next()){var q=void 0;h=_.e((q=h.value.__instances)!=null?q:[]);for(q=h.next();!q.done;q=h.next())if(q=q.value,q.root){q=Array.from(q.root.children);q=_.e(q);for(var l=q.next();!l.done;l=q.next())I.push.apply(I,_.Nz(i7O(l.value,b)))}}return I.filter(function(V){return V.usePatchedLifecycles&&V.lifecycleIsConnected===b})};
ohq=function(G){var b=null;G instanceof Element?b=Element.prototype.querySelectorAll:G instanceof DocumentFragment&&(b=DocumentFragment.prototype.querySelectorAll);return b?Array.from(b.call(G,"*")):[]};
Cn=function(G){_.MQ(function(){for(var b=_.e(i7O(G,!1)),I=b.next();!I.done;I=b.next()){I=I.value;I.lifecycleIsConnected=!0;try{var h=void 0,q=void 0,l=void 0,V=void 0;(h=(V=I.polymerController)!=null?V:I)==null||(l=(q=h).connectedCallback)==null||l.call(q)}catch(D){_.K1(D)}}})};
JI=function(G){_.MQ(function(){for(var b=_.e(i7O(G,!0)),I=b.next();!I.done;I=b.next()){I=I.value;I.lifecycleIsConnected=!1;try{var h=void 0,q=void 0,l=void 0,V=void 0;(h=(V=I.polymerController)!=null?V:I)==null||(l=(q=h).disconnectedCallback)==null||l.call(q)}catch(D){_.K1(D)}}})};
Wzq=function(){if(!Pbv){Pbv=!0;var G=[Node];Kn&&G.push(Kn.Wrapper);var b=Node.prototype.insertBefore,I=Node.prototype.removeChild;G=_.e(G);for(var h=G.next(),q={};!h.done;q={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},h=G.next())h=h.value,q.nativeInsertBefore=h.prototype.insertBefore,h.prototype.insertBefore=function(V){return function(D,k){if(D instanceof DocumentFragment){var L=Array.from(D.children);D=V.nativeInsertBefore.call(this,D,k);
if(this.isConnected&&V.nativeInsertBefore===b)for(k=_.e(L),L=k.next();!L.done;L=k.next())Cn(L.value);return D}L=D instanceof Element&&D.isConnected;k=V.nativeInsertBefore.call(this,D,k);L&&JI(D);this.isConnected&&Cn(D);return k}}(q),q.nativeAppendChild=h.prototype.appendChild,h.prototype.appendChild=function(V){return function(D){if(D instanceof DocumentFragment){var k=Array.from(D.children);
D=V.nativeAppendChild.call(this,D);if(this.isConnected){k=_.e(k);for(var L=k.next();!L.done;L=k.next())Cn(L.value)}return D}k=D instanceof Element&&D.isConnected;L=V.nativeAppendChild.call(this,D);k&&JI(D);this.isConnected&&Cn(D);return L}}(q),q.nativeRemoveChild=h.prototype.removeChild,h.prototype.removeChild=function(V){return function(D){var k=D instanceof Element&&D.isConnected,L=V.nativeRemoveChild.call(this,D);
k&&I===V.nativeRemoveChild&&JI(D);return L}}(q),q.nativeReplaceChild=h.prototype.replaceChild,h.prototype.replaceChild=function(V){return function(D,k){if(D instanceof DocumentFragment){var L=Array.from(D.children);
D=V.nativeReplaceChild.call(this,D,k);if(this.isConnected)for(JI(k),k=_.e(L),L=k.next();!L.done;L=k.next())Cn(L.value);return D}L=D instanceof Element&&D.isConnected;var x=this.isConnected,f=V.nativeReplaceChild.call(this,D,k);x&&JI(k);L&&JI(D);x&&Cn(D);return f}}(q);
G=[Element];Kn&&G.push(Kn.Wrapper);G=_.e(G);h=G.next();for(q={};!h.done;q={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},h=G.next())h=h.value,h.prototype.before=dFu(h.prototype.before),h.prototype.after=dFu(h.prototype.after),q.nativeReplaceWith=h.prototype.replaceWith,h.prototype.replaceWith=function(V){return function(){var D=_.RI.apply(0,arguments),k=_.e(y7d(D)),L=k.next().value,
x=k.next().value;k=this.isConnected;V.nativeReplaceWith.apply(this,D);D=_.e(x);for(x=D.next();!x.done;x=D.next())JI(x.value);if(k)for(JI(this),L=_.e(L),k=L.next();!k.done;k=L.next())k=k.value,k instanceof Element&&Cn(k)}}(q),q.nativeRemove=h.prototype.remove,h.prototype.remove=function(V){return function(){var D=this.isConnected;
V.nativeRemove.call(this);D&&JI(this)}}(q),q.nativeInsertAdjacentElement=h.prototype.insertAdjacentElement,h.prototype.insertAdjacentElement=function(V){return function(D,k){var L=k.isConnected;
D=V.nativeInsertAdjacentElement.call(this,D,k);L&&JI(k);D.isConnected&&Cn(D);return D}}(q),q.nativeSetAttribute=h.prototype.setAttribute,h.prototype.setAttribute=function(V){return function(D,k){var L=r7O(this);
if(!L.usePatchedLifecycles)return V.nativeSetAttribute.call(this,D,k);var x=this.getAttribute(D);V.nativeSetAttribute.call(this,D,k);k=this.getAttribute(D);FzX(L,D,x,k)}}(q),q.nativeRemoveAttribute=h.prototype.removeAttribute,h.prototype.removeAttribute=function(V){return function(D){var k=r7O(this);
if(!k.usePatchedLifecycles)return V.nativeRemoveAttribute.call(this,D);var L=this.getAttribute(D);V.nativeRemoveAttribute.call(this,D);L!==null&&FzX(k,D,L,null)}}(q),q.nativeToggleAttribute=h.prototype.toggleAttribute,h.prototype.toggleAttribute=function(V){return function(D,k){var L=r7O(this);
if(!this.usePatchedLifecycles)return V.nativeToggleAttribute.call(this,D,k);var x=this.getAttribute(D),f=x!==null;k=V.nativeToggleAttribute.call(this,D,k);k!==f&&FzX(L,D,x,k?"":null);return k}}(q);
G=[Document,DocumentFragment,Element,ShadowRoot];Kn&&G.push(Kn.Wrapper);G=_.e(G);for(q=G.next();!q.done;q=G.next())q=q.value,q.prototype.prepend=dFu(q.prototype.prepend),q.prototype.append=dFu(q.prototype.append);(Kn==null?void 0:Kn.noPatch)===!0&&H7u();document.readyState==="complete"?Cn(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Cn(document.body)});
var l=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");l&&l.get&&l.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:l.enumerable,configurable:!0,get:l.get,set:function(V){V||JI(this);l.set.call(this,V);return V}})}};
dFu=function(G){return function(){var b=_.RI.apply(0,arguments),I=_.e(y7d(b)),h=I.next().value;I=I.next().value;G.apply(this,b);b=_.e(I);for(I=b.next();!I.done;I=b.next())JI(I.value);if(this.isConnected)for(h=_.e(h),b=h.next();!b.done;b=h.next())b=b.value,b instanceof Element&&Cn(b)}};
H7u=function(){for(var G=_.e(aWX),b=G.next();!b.done;b=G.next()){b=b.value.prototype;for(var I=_.e(NTO),h=I.next();!h.done;h=I.next()){h=h.value;var q=Object.getOwnPropertyDescriptor(b,h);q&&Object.defineProperty(b,"__shady_native_"+h,q)}}};
FzX=function(G,b,I,h){var q,l;if((q=G.polymerController)==null?0:(l=q.observedAttributes)==null?0:l.includes(b))if(G=G.polymerController,G.attributeChangedCallbackWrapper)G.attributeChangedCallbackWrapper.call(G,b,I,h);else{var V;(V=G.attributeChangedCallback)==null||V.call(G,b,I,h)}};
y7d=function(G){var b=[],I=[];G=_.e(G);for(var h=G.next();!h.done;h=G.next())h=h.value,h instanceof Element&&h.isConnected&&I.push(h),h instanceof DocumentFragment?b.push.apply(b,_.Nz(Array.from(h.children))):b.push(h);return[b,I]};
r7O=function(G){return!(G instanceof Element)&&G.node instanceof Element?G.node:G};
Yfd=function(G,b){var I=b?["children"].concat(_.Nz(b)):["children"];b=[];I=_.e(I);for(var h=I.next();!h.done;h=I.next()){var q=h.value;if(G.hasOwnProperty(q)){h=G[q];h=typeof h==="function"?h():h;h=Array.isArray(h)?h:[h];h=iM(h).flat();if(q!=="children"){q=n6O(q);for(var l=_.e(h),V=l.next();!V.done;V=l.next())V=V.value,V instanceof Element&&V.setAttribute("slot",q)}b.push(h)}}b.length===0?G=[]:(G=iM(_.v("div",null,b)),G=Array.from(G.childNodes));return G};
J7r=function(G,b,I){var h={};_.Jf(function(){var q={},l;for(l in b)if(b.hasOwnProperty(l)){var V=void 0,D=void 0;if(!(((V=I.slotProps)==null?0:V.includes(l))||l==="children"||((D=I.callbackProps)==null?0:D.includes(l))||l==="ref")&&(V=_.n0(b[l]),h[l]!==V)){h[l]=V;D=void 0;var k=(D=G.hostElement)!=null?D:G;!I.skipHostForwardedProps&&CbO.has(l)&&(k[l]=V);q[l]=V}}dv(function(){if(G.setProperties)G.setProperties(q);else for(var L=_.e(Object.entries(q)),x=L.next();!x.done;x=L.next()){var f=_.e(x.value);
x=f.next().value;f=f.next().value;G[x]=f}})},"j")};
uYs=function(G,b,I,h){var q=Yfd(I,h.slotProps),l=(0,_.$y)(G);q=_.e(q);for(var V=q.next();!V.done;V=q.next())l.appendChild(V.value);J7r(b,I,h);h=_.e(h.callbackProps||[]);q=h.next();for(l={};!q.done;l={kebabEventName:void 0,eventListener:void 0},q=h.next())V=q=q.value,String(q).substring(0,2)==="on"&&I[V]?(l.kebabEventName=n6O(String(q).substring(2)),l.eventListener=I[V],G.addEventListener(l.kebabEventName,l.eventListener),_.uI(function(x){return function(){G.removeEventListener(x.kebabEventName,x.eventListener)}}(l))):
b[V]=I[V];
if(I.ref){I=_.e(KzO(I.ref));var D=I.next().value,k=I.next().value,L=b.attached.bind(b);b.attached=function(){D(G);L()};
_.uI(function(){k()})}};
KzO=function(G){if(typeof G==="function"){var b;return[function(I){b=G(I)},
function(){var I;(I=b)==null||I()}]}if(!G.onRender||!G.onUnmount)throw Error("Sg");
return[G.onRender,G.onUnmount]};
RtO=function(G,b){b=b===void 0?{}:b;var I=function(h){var q=document.createElement(G),l;var V=(l=q.polymerController)!=null?l:q;uYs(q,V,h,b);return q};
I.debugName=G+" (CoW wrapped)";return I};
EhB=function(G,b,I,h,q){h=h===void 0?{}:h;var l=nhv,V=!1;l?(V=!0,nhv=void 0):(O7r=b,l=document.createElement(b),O7r=void 0);var D=l;D.usePatchedLifecycles=!0;D.lifecycleIsConnected=!1;l.loggingStatus={};var k=wDr(G,b,l,h,q);_.uI(function(){D.lifecycleIsConnected&&(D.lifecycleIsConnected=!1,k.disconnectedCallback())});
V||(l.__noInsertionPoint=!0,uYs(l,k,I,h));return l};
wDr=function(G,b,I,h,q){q=q===void 0?BTO:q;pDu[b]!=null||(pDu[b]=q(G,b,h==null?void 0:h.getTemplate,h));var l=pDu[b],V=l.ctor;q=l.getInitialMethods;var D=l.getPropsToForwardBeforeReady;G=l.getPropsToForwardBeforeRegister;h=l.shouldForwardProp;var k=l.observedAttributes,L=l.shouldLog,x=V(I,{beforeReady:function(){var f=x;f._takeAttributes?f._takeAttributes():f.setPropertiesFromInitialAttributeValues&&f.setPropertiesFromInitialAttributeValues();f=_.e(D(I.polymerController));for(var T=f.next();!T.done;T=
f.next()){var B=_.e(T.value);T=B.next().value;B=B.next().value;gh2(I,T,B);L(b)&&!Yy(T)&&Z7v(I.polymerController,T)}I.polymerController=uwB(x,b)}});
I.polymerController=x;I.polymerController.observedAttributes=k;l=_.e(x.getExtraMethodsToForward());for(V=l.next();!V.done;V=l.next())k=_.e(V.value),V=k.next().value,k=k.next().value,A7s(I,V,k);q=_.e(q());for(l=q.next();!l.done;l=q.next())l=l.value,h(l)&&A7s(I,l),L(b)&&!Yy(l)&&M1q(x,l);G=_.e(G());for(h=G.next();!h.done;h=G.next())q=_.e(h.value),h=q.next().value,q=q.next().value,gh2(I,h,q);return x};
Sfu=function(G){var b=uH;uH=G;return b};
GEa=function(G){if(XDr.has(G)&&uH&&$$a(uH)===G){var b;(b=uH)._numRenders!=null||(b._numRenders=0);uH._numRenders++;if(uH._numRenders>1)throw Error("Tg");return uH}};
ITO=function(G){var b=$$a(G);uH!==G&&b.includes("-")&&bl2.set(G,!0)};
$$a=function(G){var b;return(b=G==null?void 0:G.tagName.toLowerCase())!=null?b:""};
hIs=function(G,b){if(G.componentType===rv)throw Error("Ug");XDr.add(b);var I=function(){var h=HTMLElement.call(this)||this;h.is=b;if(O7r===b)return h.isInert=!0,h;h.createElement();return h};
_.M(I,HTMLElement);I.prototype.createElement=function(){if(!this.isInert){nhv=this;var h=_.e(_.CAq(function(){return _.v(G,null)})).next().value;
nhv=void 0;ROr(this);return h}};
customElements.define(b,I)};
jQq=function(G,b,I,h,q){G.prototype.is=b;(h==null?0:h.useSink)?q9r(G,b,I,h,q):(I=BTO(G,b,I,h),t1v(I,b));return G};
q9r=function(G,b,I,h,q){Wzq();var l=_.C(function(V){return EhB(G,b,V,Object.assign({},h,{getTemplate:I}),q)},"k");
l.debugName=b+" (CoW wrapped)";hIs(l,b);return l};
m$p=function(G){return!lTu.has(G)};
D$X=function(G,b,I,h){function q(){if(!f){for(var T=new Set(eIO),B=_.e(l.behaviors),A=B.next();!A.done;A=B.next()){A=A.value;for(var t=_.e(Object.getOwnPropertyNames(A)),y=t.next();!y.done;y=t.next()){y=y.value;var F=void 0,W=(F=Object.getOwnPropertyDescriptor(A,y))==null?void 0:F.value;W&&W instanceof Function&&(!L[y]||_.U("polymer_forward_method_killswitch"))&&T.add(y)}}B=_.e(Object.entries(Object.getOwnPropertyDescriptors(G.prototype)));for(A=B.next();!A.done;A=B.next())t=_.e(A.value),A=t.next().value,
t=t.next().value,t.value instanceof Function&&T.add(A);f=T}return f}
var l=RNq({is:b,disableElementRegistration:!1,getTemplate:I,providers:h==null?void 0:h.providers,reactivityMode:h==null?void 0:h.reactivityMode},G);if((h==null?0:h.allowedProps)||(h==null?0:h.allowedPropsFromBehaviors)){var V,D;l.allowedProps=[].concat(_.Nz((V=h.allowedProps)!=null?V:[]),_.Nz((D=h.allowedPropsFromBehaviors)!=null?D:[]))}var k=aMv(l,G);b=k.observedAttributes;var L={};I=_.e(l.reactiveSchemas);for(h=I.next();!h.done;h=I.next())if(h=h.value,h.type==="signal")L[h.propertyKey]={readOnly:h.readOnly},
h.readOnly&&(L[Lgj(h.propertyKey)]={readOnly:!0});else if(h.type==="compute"||h.type==="computeWithMethod"||h.type==="redux")L[h.propertyKey]={readOnly:!0};var x=l.reactiveSchemas.length,f;return{ctor:function(T,B){T=new k(T);T.beforeReady=B.beforeReady;return T},
props:L,observedAttributes:b,getInitialMethods:q,getPropsToForwardBeforeRegister:function(){for(var T=[],B=new Set,A=_.e(VqB),t=A.next();!t.done;t=A.next())t=t.value,T.push([t,t!=="observers"&&t!=="properties"]),B.add(t);A=_.e(Object.keys(L));for(t=A.next();!t.done;t=A.next())t=t.value,T.push([t,L[t].readOnly]),B.add(t);A=q();t=_.e(Object.keys(Object.getOwnPropertyDescriptors(G.prototype)));for(var y=t.next();!y.done;y=t.next())y=y.value,!m$p(y)||A.has(y)||B.has(y)||(T.push([y,!1]),B.add(y));T.push(["allowedProps",
!0]);return T},
getPropsToForwardBeforeReady:function(T){var B=[];T=_.e(Object.keys(T));for(var A=T.next();!A.done;A=T.next()){A=A.value;var t=q();m$p(A)&&!t.has(A)&&B.push([A,!1])}T=_.e(l.reactiveSchemas.slice(x));for(A=T.next();!A.done;A=T.next())A=A.value,A.type!=="compute"&&A.type!=="computeWithMethod"&&A.type!=="redux"&&A.type!=="signal"||B.push([A.propertyKey,A.type==="signal"?A.readOnly:!0]);return B},
shouldForwardProp:m$p,shouldLog:c5}};
_.J=function(G,b,I,h){var q,l,V=(l=(q=h)==null?void 0:q.mode)!=null?l:0;h!=null||(h={});var D;(D=h).reactivityMode!=null||(D.reactivityMode=0);V===1&&_.sG("creator_poly_si_disable_list").includes(b)&&(V=2);return V===1?jQq(G,b,I,Object.assign({},h,{useSink:!0}),D$X):jQq(G,b,I,Object.assign({},h,{useSink:V===2}))};
_.R9=function(){return function(G,b,I,h){var q,l,V=(l=(q=h)==null?void 0:q.mode)!=null?l:2;h!=null||(h={});var D;(D=h).reactivityMode!=null||(D.reactivityMode=0);if(V===0)throw Error("Vg`"+V);return q9r(G,b,I,h,V===1?D$X:void 0)}};
_.nn=function(G){return _.U("creator_poly_si_killswitch")?!1:_.U("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||_.U(G+"_holdback_enabled")&&_.U("kevlar_polysi_holdback")?!1:_.U(G)};
Oh=function(G){return G?G.icon?G.icon.iconType.toLowerCase():G.customThumbnail?"member":"":""};
chd=function(G){if(!G)return"";G=_.e(G);for(var b=G.next();!b.done;b=G.next())if((b=b.value)&&b.liveChatAuthorBadgeRenderer&&(b=Oh(b.liveChatAuthorBadgeRenderer))&&b!=="verified")return b;return""};
kEd=function(G,b){if(!G)return null;var I;return((I=G.find(function(h){return h&&h.liveChatAuthorBadgeRenderer?Oh(h.liveChatAuthorBadgeRenderer)===b:!1}))==null?void 0:I.liveChatAuthorBadgeRenderer)||null};
_.TOj=function(G){var b=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;G=vBa(G);b=vBa(b);var I=LZq(G.hex);b=LZq(b.hex);var h=b[0]/255;var q=b[1]/255,l=b[2]/255,V=Math.max(h,q,l),D=Math.min(h,q,l),k=0,L=0,x=.5*(V+D);V!=D&&(V==h?k=60*(q-l)/(V-D):V==q?k=60*(l-h)/(V-D)+120:V==l&&(k=60*(h-q)/(V-D)+240),L=0<x&&x<=.5?(V-D)/(2*x):(V-D)/(2-2*x));h=[Math.round(k+360)%360,L,x];I=QQd(I,b);for(G=x$2(G.hex);I<4.5;){G=h[2]>=.5?G.darker((4.5-I)/2):G.brighter((4.5-I)/2);I=G.toString();
q=fTO(I);if(!q.length)throw Error("Xd`"+I);I=q;I=QQd(I,b)}return G.hex()};
QQd=function(G,b){G=_.nrO(G);b=_.nrO(b);return(Math.max(G,b)+.05)/(Math.min(G,b)+.05)};
_.w8=function(G){return"#"+("000000"+(G&16777215).toString(16)).slice(-6)};
_.BOX=function(G){for(var b=0,I=0;I<G.length;I++)b=G.charCodeAt(I)+((b<<5)-b);G="#";for(I=0;I<3;I++)G+=("00"+(b>>I*8&255).toString(16)).slice(-2);return G};
U$v=function(G){G=(G||"").split(":");G.length===1&&G.unshift("yt-icons");G[1]=G[1].toLowerCase();return G};
tqO=function(G,b){var I=(b=b===void 0?!1:b)?sQB:gBX,h=b?Ahu:MqB;G.getIconNames().forEach(function(q){q=b?q:q.substring(q.indexOf(":")+1);G.name==="yt-icons"?Zld.add(q):q.includes("-filled")?I.add(q):h.add(q)})};
Eh=function(G,b,I,h){I=I===void 0?!1:I;h=h===void 0?!1:h;var q,l,V;return _.c(function(D){if(D.nextAddress==1)return D.yield(zIr,2);if(h)return D.return(Zld.has(G));q=I?sQB:gBX;l=I?Ahu:MqB;return b?(V=G.includes("-filled")?G:G.concat("-filled"),D.return(q.has(V))):D.return(l.has(G))})};
_.pn=function(G){if(oBX(G))return G.toString();var b=ild.get(G);if(b)return b;b=G.toLowerCase();var I="yt-icons",h=b.replace(/_/g,"-");switch(G){case "MY_CHANNEL":b="account_circle";break;case "ADD_TO_LIBRARY":b="add";break;case "ALERT_WARN_RED":b="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":b="person_music";break;case "BLOCK_USER":b="block";break;case "CAPTIONS":b="closed_caption";break;case "CLOSED_CAPTION":I="av";b="closed-caption";break;case "COLLECTION":I="maps";b="layers";break;case "CONTACT":I=
"icons";b="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";b=h.split("creator-studio-")[1];break;case "DISMISSAL":b="close";break;case "DO_NOT_DISTURB":b="block";break;case "DOGFOOD":I="icons";b="pets";break;case "DRAFT":b="paper_corner_folded";
break;case "EMPTY_LIKE":b="like_outline";break;case "EXIT_APP":b="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":b=h;break;case "GAMES":I="ytg";b="my-games";break;case "GO_TO_PAGE":b="arrow-forward";break;case "GROUP":I="social";break;case "HIDE":b="not_interested";break;case "INPUT_COMPONENT":I="icons";b="settings-input-component";break;case "KIDS_BLOCK":b="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":I="ytg";b="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":I=
"ytg";b="membership-post-purchase";break;case "MULTIVIEW":b="screen_multi_view";break;case "MY_LOCATION":I="maps";b=h;break;case "NOTIFICATIONS_INBOX":b="NOTIFICATIONS";break;case "NEXT":b="chevron_right";break;case "OFFLINE":b="power-settings-new";break;case "PAUSE":I="miniplayer";break;case "PAYMENT":I="icons";break;case "PHONE_DOWNLOAD":b="phone_download";break;case "PREMIUM_STANDALONE":I="yt-logos";b="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":I="yt-logos";b="premium_standalone_cairo";
break;case "QUESTION_ANSWER":b="question_answer";break;case "REDEEM":I="icons";b="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":b="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":b="library_add";break;case "SCHOOL":I="yt-sys-icons";b="creator_academy";break;case "SETTINGS_LIGHT":b="settings_applications";break;case "SETTINGS_MATERIAL":b="settings";break;case "SEARCH_HISTORY":b="watch_history";break;case "SHOPPING_BAG":b="bag";break;case "SOCIAL":case "PEOPLE":I=
"yt-icons";b="people";break;case "STAFF_PICK":I="ytg";b="spotlight";break;case "START_DVR":b="add";break;case "STOP_DVR":I="av";b="stop";break;case "TAB_LIKED":b="like";break;case "TAB_INBOX":b="mail";break;case "TERMS_OF_SERVICE":I="icons";b="description";break;case "TRENDING":b="fire";break;case "UNBLOCK_USER":b="remove";break;case "UNPLUGGED_DARK_THEME":I="image";b="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":b="live";break;case "UNPLUGGED_SPORTS":I="ytu";b="visibility-off";break;
case "VIDEOS":I="av";b="play-circle-filled";break;case "YOUTUBE":I="yt-logos";b="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":I="yt-logos-ext";b="yt-logo-red-updated";break;case "YOUTUBE_LOGO":I="yt-logos-ext";b="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";b=h;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":I="yt-sys-icons";b="youtube_improve_tv";break;case "OUTLINE_BAG":I=
"yt-sys-icons";b="bag";break;case "QUEUE_PLAY_LAST":I="yt-sys-icons";b="list_queue_last";break;case "SLASH_CIRCLE_LEFT":b="slash_circle_left";break;case "SPEED_1_POINT_2X":b="1_point_2x";break;case "SPEED_1_POINT_5X":b="1_point_5x";break;case "SPEED_1_POINT_8X":b="1_point_8x";break;case "SPEED_POINT_2X":b="point_2x";break;case "SPEED_POINT_5X":b="point_5x";break;case "SPEED_POINT_8X":b="point_8x";break;case "SPEED_1X":b="1x";break;case "SPEED_2X":b="2x";break;case "TAB_BOOKMARK":b="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":I="yt-sys-icons";b="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":I="yt-sys-icons";b="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":I="yt-sys-icons",b="tic_tac_toe"}b=I+":"+b;ild.set(G,b);return b};
oBX=function(G){var b;_.U("kevlar_use_wil_icons")?b=!!_.LL().resolve(_.SH).resolveIcon({iconName:G.toString()}):b=!1;return b};
_.$Q=function(G,b,I,h){I=I===void 0?{}:I;h=h===void 0?!1:h;I===null&&(I={});var q=_.sG("kevlar_command_handler_command_banlist");q=_.e(q);for(var l=q.next();!l.done;l=q.next())if(l=G?G.hasOwnProperty(l.value):void 0,l)return!1;q=_.g(G.commandMetadata,_.IW);return h&&q!=null&&q.url?!1:!b.disableCommandHandlerOverride&&_.Xv.instance?(h=_.Xv.instance,I.form||(I.form={element:b}),I.form.element||(I.form.element=b),!I.clickedVisualElement&&b.visualElement&&(I.clickedVisualElement=b.visualElement),h.resolveCommand(G,
I),!0):!1};
P2O=function(G,b){G=G3(G);for(var I=_.e(G.visibilityMonitorKeys||[]),h=I.next();!h.done;h=I.next())b.unobserveByKey(h.value);G.visibilityMonitorKeys=void 0};
FZr=function(G,b){if(_.gL()){if(_.U("kevlar_vimio_use_shared_monitor"))d$p(G,b.data);else if(!d$p(G,b.data))return;var I=b.data,h=yhd(I);if(_.U("enable_client_ve_spec_logging"))P2O(G,b.observer);else{var q=G3(G);q.trackedParams&&q.trackedParams!==h&&P2O(G,b.observer)}q=G3(G);!I||q.data&&q.data===I||(q.data=I);rhB(G,b);q.trackedParams=h}};
rhB=function(G,b){var I=b.observer;if(!I&&_.U("web_skip_missing_vimio_observer")){var h,q;_.RB(new _.Wf("VisibilityObserver is not defined.",G.tagName,G.trackedParams,(h=b.data)==null?void 0:h.trackingParams,(q=b.data)==null?void 0:q.loggingDirectives))}else{var l=b.layer,V=b.visibilityCallback||function(){},D=b.prescanCallback,k=G3(G);
h=[];b.showOption&&h.push(I.observe(G,function(){b.skipLogging&&b.skipLogging()||_.b$().reportShown(k,void 0,l);V(!0)},b.showOption));
b.hideOption&&h.push(I.observe(G,function(){_.b$().reportHidden(k,void 0,l);V(!1)},b.hideOption));
b.prescanOption&&D&&h.push(I.observe(G,function(){D()},b.prescanOption));
k.visibilityMonitorKeys=h}};
d$p=function(G,b){G=G3(G);if(G.visualElement&&!b)return!0;if(!b)return!1;var I=!1;if(_.U("enable_client_ve_spec_logging")){var h,q;I=!!((h=b.loggingDirectives)==null?0:(q=h.clientVeSpec)==null?0:q.uiType)}h=yhd(b);if(!h&&!I)return!1;_.U("mweb_component_visibility_logging")&&(G.veContainer||(G.veContainer={}),G.veContainer.trackingParams=h);if(G.trackedParams&&G.trackedParams===h)return!1;var l;if(_.U("enable_client_ve_spec_logging")&&((l=G.visualElement)==null?0:l.isClientVe())){var V;l=(V=G.visualElement)==
null?void 0:V.getAsJspb();var D,k,L,x;if(_.LT(l,2)===((D=b.loggingDirectives)==null?void 0:(k=D.clientVeSpec)==null?void 0:k.uiType)&&_.LT(l,3,-1)===((L=b.loggingDirectives)==null?void 0:(x=L.clientVeSpec)==null?void 0:x.elementIndex))return!1}if(_.U("enable_client_ve_spec_logging")){var f,T;!G.visualElement&&((f=b.loggingDirectives)==null?0:(T=f.clientVeSpec)==null?0:T.uiType)&&(D=b.loggingDirectives.clientVeSpec,b=D.uiType,V=D.elementIndex,D=D.clientYoutubeData,G.visualElement=_.IM(_.qo(),{veType:b,
elementIndex:V,clientYouTubeData:D}))}return!0};
yhd=function(G){if(G==null?0:G.rendererContext){var b=_.g(G.rendererContext,_.jA);if(b==null?0:b.loggingDirectives)return b.loggingDirectives.trackingParams}return(G==null?0:G.loggingDirectives)?G.loggingDirectives.trackingParams:G==null?void 0:G.trackingParams};
G3=function(G){var b;return(b=G.polymerController)!=null?b:G};
NOa=function(G){_.b$();if(_.$W(l$().JSC$12794_elementShouldLogGesture).bind(l$())(G,4)){HlO(G);var b=WZB(G);aTa.set(G,b)}};
HlO=function(G){aTa.has(G)&&(aTa.get(G).cancel("untrack hover element"),aTa.delete(G))};
WZB=function(G){var b,I=[],h=!1,q=new _.MB(function(l,V){m6(G,"mouseenter",_.$W(function(){var D,k,L;return _.c(function(x){if(x.nextAddress==1)return b=(0,_.Li)(),D=Y9p(G),I.push(D),k=C2r(G,function(){h=!0;V(Error("Wg"))}),x.yield(D,2);
if(x.nextAddress!=3)return k&&eA(k),L=JhX(G),I.push(L),x.yield(L,3);l();_.ip(x)})}))});
q.then(function(){var l=(0,_.Li)()-b;l=Math.round(l);if(!(500>l||6E5<=l)){var V=G.getScreenLayer?G.getScreenLayer():void 0;V=_.gL(V)||"";var D=KZj(_.b$(),G);_.aW(V,G.visualElement?G.visualElement:_.VB(D),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:l}})}NOa(G)},function(){Dm&&(Dm(),Dm=null);
h&&(HlO(G),NOa(G))});
return q};
Y9p=function(G){var b;return(new _.MB(function(I,h){Dm=function(){h(Error("Xg"))};
b=_.uu.debounce(_.$W(function(){eA(q);I()}),1,100);
var q=_.cv(G,"mousemove",b)})).thenCatch(function(){var I=_.uu.cancelDebouncedJobMap.get(b);
I&&_.uu.cancelJob(I)})};
JhX=function(G){var b;return(new _.MB(function(I,h){Dm=function(){h(Error("Yg"))};
b=m6(G,"mouseleave",_.$W(function(){I()}))})).thenCatch(function(){eA(b)})};
C2r=function(G,b){return m6(G,"mouseleave",_.$W(b))};
RIB=function(G){u9v&&_.kQ.cancel(u9v);u9v=_.kQ.run(function(){_.O3(G,"yt-visibility-refresh");u9v=0})};
nBO=function(G){G=Number(G);return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
wus=function(G){if(!G)return!1;if(_.g(G,_.OlB))return!0;var b;if(G=(b=_.g(G,_.$P))==null?void 0:b.commands)for(b=_.e(G),G=b.next();!G.done;G=b.next())if(_.g(G.value,_.OlB))return!0;return!1};
EBO=function(G){var b=!0;b=b===void 0?!0:b;if(!G.useSignals&&!G.experimentalPropertiesChanged||_.U("experimental_templating_behavior_nopatch_killswitch")){var I=G._propertiesChanged;G._propertiesChanged=function(h,q,l){b?G.debounceRender():G.doRender();I&&I.call(G,h,q,l)}}};
puu=function(G,b){if(G.useSignals||G.experimentalPropertiesChanged)if(_.U("experimental_templating_behavior_nopatch_killswitch"))G.experimentalPropertiesChanged=function(){};
else return;var I=new Set,h=[G].concat(_.Nz(G.behaviors));h=_.e(h);for(var q=h.next();!q.done;q=h.next()){q=q.value;for(var l in q.properties)I.has(l)||(G._addPropertyEffect(l,"function",b),I.add(l))}};
S9q=function(){var G=Polymer.Element,b=G._prepareTemplate;G._prepareTemplate=function(){b.call(this);var I=this.prototype;if(I.experimentalTemplatingInUse&&I.experimentalTemplatingInUse()&&I.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.K1(Error("Zg"));else{I=this.template.content.childNodes;for(var h=I.length-1;h>=0;h--){var q=I[h];q.nodeName!=="STYLE"&&q.nodeName!=="LINK"&&q.nodeName!=="SCRIPT"&&q.nodeName!=="#comment"&&q.remove()}}}};
Xuu=function(G){var b=!0;b=b===void 0?!0:b;S9q();var I=G.ready;G.ready=function(){this._template=null;I.call(this)};
puu(G,b?G.debounceRender:G.doRender)};
G$u=function(G,b,I){if(I===null||I===void 0)return I;var h=Mev(G.tagName.toLowerCase(),b,function(){throw Error("Tb");});
if(h===null)return I;h=$Wr[h];var q;if((q=h.isUnwrappable)==null?0:q.call(h,I)){if(h.unwrap)return h.unwrap(I);throw Error("bh");}return h.filterString?h.filterString(G.tagName,b,String(I)):I};
bsO=function(G,b,I){var h=b[b.length-1]!=="$",q=G$u(G,b,I);if(h)if(typeof q==="function"&&b.startsWith("reactiveon")&&b===b.toLowerCase()){var l=mT;rUs(G,b.slice(8),function(V){OM(l,function(){q(V)})})}else G[b]=q;
else I=q==null?null:String(q),ST(G,b.slice(0,-1),I)};
LG=function(G){Ilu.length===0&&requestAnimationFrame(function(){setTimeout(function(){var b=Ilu.slice();Ilu.length=0;b=_.e(b);for(var I=b.next();!I.done;I=b.next()){I=I.value;try{I()}catch(h){_.vv(h)}}})});
Ilu.push(G)};
hVO=function(G){if(G){var b=G.component;if(b){var I;b==null||(I=b.events)==null||I.publish("DISCONNECTED");var h;b==null||(h=b.onDisconnected)==null||h.call(b)}var q,l;(q=G.__spec)==null||(l=q.didUnmount)==null||l.call(q);for(b=0;b<G.childNodes.length;b++)hVO(G.childNodes[b])}};
qrj=function(G,b,I){var h=b&&b.key,q=ek;q[0]=G;q[1]=h;q[2]=void 0;for(var l in b)b.hasOwnProperty(l)&&(G=b[l],h=VS,h.push(l),h.push(G));b=ek;a:{if(l=ek[2])for(G=0;G<l.length;G+=2)if(l[G]==="nonce"){l=l[G+1];break a}l=""}l=O8B(b[0],b[1],l);G=bM(l);h=b[2];if(!G.staticsApplied&&(G.staticsApplied=!0,h&&h.length))if((q=G._attrsArr)&&q.length){for(q=0;q<h.length;q+=2)QB[h[q]]=q+1;q=G._attrsArr||(G._attrsArr=yUq(0));for(var V=0,D=0;D<q.length;D+=2){var k=q[D],L=q[D+1],x=QB[k];x?h[x]===L&&delete QB[k]:(q[V]=
k,q[V+1]=L,V+=2)}p0(q,V);for(var f in QB)Naq(l,f,h[QB[f]],cw),delete QB[f]}else for(f=0;f<h.length;f+=2)Naq(l,h[f],h[f+1],cw);Gbd(l,G,cw);p0(b,0);I&&I(Ij);wwp()};
_.xQ=function(G,b,I){I===void 0?delete G[b.name]:G[b.name]=I};
_.fG=function(G){var b={androidIncludeFontPadding:!1},I=0,h=[],q=[],l=[];if(G.simpleText)return b.content=G.simpleText,b;if(G.runs===void 0)return b.content="",b;G=_.e(G.runs);for(var V=G.next();!V.done;V=G.next()){V=V.value;var D=V.text,k=void 0,L=(k=D)==null?void 0:k.length;if(D&&L){h.push(D);if(V.bold||V.italics||V.strikethrough||V.underline||V.textColor!=null&&V.textColor!==0||V.deemphasize){D=q;k=D.push;var x={startIndex:I,length:L};V.bold&&(x.weightLabel="FONT_WEIGHT_MEDIUM");V.italics&&(x.italic=
!0);V.strikethrough&&(x.strikethrough="LINE_STYLE_SINGLE");V.underline&&(x.underline="LINE_STYLE_SINGLE");V.textColor!=null&&V.textColor!==0?document.documentElement.hasAttribute("dark")?x.fontColor=V.darkModeTextColor||V.textColor:x.fontColor=V.textColor:V.deemphasize&&(document.documentElement.hasAttribute("dark")?x.fontColor=parseInt("ff"+jPO("#aaa").substring(1),16):x.fontColor=parseInt("ff"+jPO("#606060").substring(1),16));k.call(D,x)}V.navigationEndpoint&&(D=l,k=D.push,x={startIndex:I,length:L,
onTap:{innertubeCommand:V.navigationEndpoint}},V.loggingDirectives&&_.xQ(x,llX,V.loggingDirectives),k.call(D,x));I+=L}}b.content=h.join("");b.styleRuns=q.length?q:void 0;b.commandRuns=l.length?l:void 0;return b};
eVv=function(G){if(G==null||!G.runs)return!0;G=_.e(G.runs);for(var b=G.next();!b.done;b=G.next())if(b=b.value,b.bracket||b.errorUnderline||b.deemphasize||_.g(b,T3)||_.g(b,mWu))return!1;return!0};
Vxq=function(G,b){return function(I){var h=b.unit;if(h!==I)throw Error("eh`"+G+"`"+h+"`"+I);return b}};
Bv=function(G){if(!((G==null?0:G.value)&&(G==null?0:G.unit)))return"";switch(G.unit){case "DIMENSION_UNIT_FRACTION":var b="%";break;default:b="px"}G=G.value;b==="%"&&(G*=100);return""+G+b};
DWq=function(G){try{return G()}catch(b){_.RB(b)}};
_.s0=function(G){var b=_.g(G,_.U0);if(b)return b;if((b=_.g(G,cHu))&&b.commands)return k$q(b.commands);if((b=_.g(G,ver))&&b.commands)return k$q(b.commands);if((G=_.g(G,LCj))&&G.identifier&&G.command&&(QPp||(QPp=[]),!QPp.includes(G.identifier)))return QPp.push(G.identifier),_.g(G.command,_.U0)};
k$q=function(G){if(G.length!==0){var b=[];G=_.e(G);for(var I=G.next();!I.done;I=G.next())(I=_.s0(I.value))&&b.push(I);return{commandExecutorCommand:{commands:b}}}};
_.AN=function(G){var b=G.defaultTarget,I=G.elementConfig,h=G.elementsCommand,q=G.skipOnClick,l=G.forceNewState,V=G.additionalCommandArgs,D=G.innertubeCommand||_.s0(h);if(D){G={};var k=xWr(D);h=k.navigatingCommand;k=k.href;h&&k?(G.href$=k,flu(G,h,k,b),_.U("web_atagconfig_pointerdown")&&TWa(G,h),l&&(G["force-new-state$"]=!0)):(G.role$="button",G.href$="javascript:void(0);");_.g(D,BWu)&&(G["aria-haspopup$"]=!0);q||(G.onclick=function(L){var x={};if(UWO(L)){var f=(V==null?void 0:V.clickedVisualElement)||
(V==null?void 0:V.getClickedVisualElement)&&V.getClickedVisualElement();f&&(x={clickedVisualElement:f});x=Object.assign({},{form:{element:L.target,event:L,createScreenConfig:x}},V);L.preventDefault();_.g5(D,x)}});
return Object.assign({},I,G)}};
sPa=function(G){if(G.length){if(G.length===1)return G[0];var b={};_.xQ(b,_.$P,{commands:G});return b}};
Mo=function(G){return G&&G.href$!=="javascript:void(0);"};
xWr=function(G){var b,I=((b=_.g(G,_.$P))==null?void 0:b.commands)||[G];G=_.e(I);for(b=G.next();!b.done;b=G.next()){b=b.value;var h=void 0,q=void 0;I=(q=_.g((h=b)==null?void 0:h.commandMetadata,_.IW))==null?void 0:q.url;_.U("web_remove_web_navigation_endpoint_data")||(h=void 0,I=I||((h=_.g(b,geO))==null?void 0:h.url));if(I&&I!=="/service_ajax"){if(h=_.YI(I,AHp))return G=_.aI(h),{navigatingCommand:b,href:G};_.RB(new _.Wf("AttributedString URL could not be sanitized",I))}}return{}};
UWO=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)};
flu=function(G,b,I,h){I=!cf(I);var q,l,V;if((q=_.g(b,_.jL))!=null&&q.nofollow||(l=_.g(b,_.Wq))!=null&&l.nofollow||(V=_.g(b,_.bx))!=null&&V.nofollow||I)G.rel$="nofollow";var D;b=((D=_.g(b,_.bx))==null?void 0:D.target)==="TARGET_NEW_WINDOW"?"_blank":h===void 0?"":h;G.target$=b};
TWa=function(G,b){b.clickTrackingParams&&(G.params={itct:b.clickTrackingParams});G.onpointerdown=function(I){Mxp(I)};
G._data=b};
ZsX=function(G){(G.loggingUrls||[]).forEach(function(b){b6(b.baseUrl,b.attributionSrcMode)})};
Mxp=function(G){var b=G.currentTarget;G=DWq(function(){return b.href});
var I=b.params;G&&_.Cv(G,I||{},8,!0)};
_.Zm=function(G,b){(G=_.s0(G))&&_.g5(G,b)};
_.g5=function(G,b){Xqa(function(I){b?I.resolveCommand(G,b):I.resolveCommand(G)})};
is2=function(G,b){var I=["yt-core-attributed-string__link"];b!=null&&b.noLinkColor||((b==null?0:b.isOverlay)?I.push("yt-core-attributed-string__link--overlay-call-to-action-color"):I.push("yt-core-attributed-string__link--call-to-action-color"),(b==null?0:b.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color"));I={className:I.join(" "),tabindex$:"0"};var h=G.onTap||G.onLongPress;if(!h)return I;var q=txu(G);q&&(I["aria-label$"]=q);b=_.AN({elementsCommand:h,elementConfig:I,skipOnClick:!(b==
null||!b.skipOnClick),forceNewState:!0});G.onLongPress&&(h=new zVr(function(){var l=_.s0(G.onLongPress);l&&_.LL().resolve(_.xW).resolveCommand(l)}),b&&oeO(h,b));
return b||I};
txu=function(G){var b,I;return(b=G.onTapOptions)==null?void 0:(I=b.accessibilityInfo)==null?void 0:I.accessibilityLabel};
PLX=function(G){var b=G;G<=16777215&&(b+=parseInt("ff000000",16));return _.so(b)};
dWB=function(G){var b=G.isDarkTheme;var I=G.extension;G=G.runColor;var h=void 0;if(I=I==null?void 0:I.colorMap){b=b?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";I=_.e(I);for(var q=I.next();!q.done;q=I.next())if(q=q.value,b===q.key){h=q.value;break}}h==null&&G&&(h=G);if(h)return PLX(h)};
tN=function(G){var b=G.config;var I=G.image;var h=G.imageConfig;var q=G.imageWrapperConfig;var l=G.run;var V=G.tag;var D=G.textLength;var k=G.startIndex===void 0?0:G.startIndex;G=G.length;k===void 0&&(k=0);l={run:l,startIndex:k,endIndex:G!==void 0?k+G:D,tag:V};I&&(l.image=I);h&&(l.imageConfig=h);q&&(l.imageWrapperConfig=q);b&&(l.config=b);return l};
rHd=function(G,b){var I=[];I.push("yt-core-attributed-string");(b==null?0:b.className)&&I.push(b==null?void 0:b.className);(b==null?0:b.ellipsisTruncate)?I.push("yt-core-attributed-string--ellipsis-truncate"):(b==null?0:b.noWrap)?I.push("yt-core-attributed-string--white-space-no-wrap"):(b==null?0:b.noPreWrap)||I.push("yt-core-attributed-string--white-space-pre-wrap");(b==null?0:b.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color");G.alignment&&I.push(yHX(G.alignment));G.lineBreakMode&&
I.push("yt-core-attributed-string--word-wrapping");return I.join(" ")};
FCr=function(G,b){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 b?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
HsO=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"}};
yHX=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"}};
i$=function(G,b,I){var h=b;G.content&&I&&(I=G.content.indexOf("\n"),I!==-1&&(h=Math.min(b,I)));if(!G.content||G.content.length<=h)b=G;else if(G.attachmentRuns||G.commandRuns||G.decorationRuns||G.styleRuns||G.paragraphStyleRuns){b=z3(G.content,h);I=h;var q=G.attachmentRuns;if(q){var l=[];q=_.e(q);for(var V=q.next();!V.done;V=q.next())V=Object.assign({},V.value),V.startIndex===void 0||V.startIndex>=I||(V.length||(V.length=0),V.length+V.startIndex>I&&(V.length=I-V.startIndex),l.push(V));I=l}else I=void 0;
l=WCr(h,G.commandRuns);q=h;var D=G.decorationRuns;if(D){V=[];D=_.e(D);for(var k=D.next();!k.done;k=D.next()){k=k.value;var L=_.g(k.textDecorator,oM);if(L&&L.startIndex!==void 0&&!(L.startIndex>=q)){k=Object.assign({},k,{textDecorator:{highlightTextDecorator:Object.assign({},L)}});L=_.g(k.textDecorator,oM);if(!L.length||L.length+L.startIndex>q)L.length=q-L.startIndex;V.push(k)}}q=V}else q=void 0;V=WCr(h,G.styleRuns);if(D=G.paragraphStyleRuns)for(G=[],D=_.e(D),k=D.next();!k.done;k=D.next()){var x=k.value;
k=Object.assign({},x);if(!(k.startIndex===void 0||k.startIndex>=h)){if(!k.length||k.length+k.startIndex>h)k.length=h-k.startIndex;L=[];var f=void 0,T=void 0;if((f=x)==null?0:(T=f.listGroup)==null?0:T.listItems)for(x=_.e(x.listGroup.listItems),f=x.next();!f.done;f=x.next())if(f=Object.assign({},f.value),!(f.startIndex===void 0||f.startIndex>=h)){if(!f.length||f.length+f.startIndex>h)f.length=h-f.startIndex;L.push(f)}L.length>0&&(k.listGroup||(k.listGroup={}),k.listGroup=Object.assign({},k.listGroup,
{listItems:L}));G.push(k)}}else G=void 0;b={content:b,attachmentRuns:I,commandRuns:l,decorationRuns:q,styleRuns:V,paragraphStyleRuns:G}}else b=Object.assign({},G,{content:z3(G.content,h)});return b};
WCr=function(G,b){if(b){var I=[];b=_.e(b);for(var h=b.next();!h.done;h=b.next())if(h=Object.assign({},h.value),!(h.startIndex===void 0||h.startIndex>=G)){if(!h.length||h.length+h.startIndex>G)h.length=G-h.startIndex;I.push(h)}return I}};
z3=function(G,b){var I=b,h;if(h=I>0)h=G.charCodeAt(I-1),h=h>=55296&&h<=56319;h&&(I=G.charCodeAt(I),h=I>=56320&&I<=57343);h&&--b;return G.substring(0,b)};
CLr=function(G,b,I){I=I===void 0?als:I;if(G){var h=_.LL().resolve(vw);h||_.U("mweb_no_observer_killswitch")?FZr(G,{data:b,observer:h,visibilityCallback:I,hideOption:NWO,showOption:YrX,layer:G.layer}):_.RB(new _.Wf("Warning: monitorVisibility called with null observer",G.tagName,b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams))}else _.RB(new _.Wf("Warning: monitorVisibility called with null element",b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams,b==null?void 0:
b.rendererContext))};
wia=function(G,b){var I=[],h=G.content.length,q,l=(q=_.LL().resolve(_.vf(_.Pv)))==null?void 0:q();if(G.paragraphStyleRuns){q=_.e(G.paragraphStyleRuns);for(var V=q.next();!V.done;V=q.next()){var D=I.push,k=D.apply;var L=void 0;V=V.value;if((L=V.listGroup)!=null&&L.listItems){L=[];b:switch(V.listGroup.listType){case "LIST_TYPE_BULLET":var x="ul";break b;default:x="span"}L.push(tN({run:V,textLength:h,tag:x,config:{className:"yt-core-attributed-string__list-group"},startIndex:V.startIndex,length:V.length}));
x=_.e(V.listGroup.listItems);for(var f=x.next();!f.done;f=x.next()){f=f.value;b:switch(V.listGroup.listType){case "LIST_TYPE_BULLET":var T="li";break b;default:T="span"}L.push(tN({run:V,textLength:h,tag:T,startIndex:f.startIndex,length:f.length}))}V=L}else V=[];k.call(D,I,_.Nz(V))}}if(G.styleRuns&&(b==null||!b.noStyleRuns))for(q=_.e(G.styleRuns),D=q.next();!D.done;D=q.next()){V=D=D.value;L=l;k=b;L=dWB({extension:_.g(V.styleRunExtensions,JHX),isDarkTheme:L===void 0?!1:L,runColor:V.fontColor});f=V;
x=[];L&&x.push("yt-core-attributed-string--link-inherit-color");f.italic&&x.push("yt-core-attributed-string--italicized");f.underline&&f.strikethrough?x.push("yt-core-attributed-string--underline-strikethrough",HsO(f.underline)):f.underline?x.push("yt-core-attributed-string--underlined",HsO(f.underline)):f.strikethrough&&x.push("yt-core-attributed-string--strikethrough",HsO(f.strikethrough));if(f.baselineOffset){a:switch(f.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":f="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":f="yt-core-attributed-string--baseline-offset-superscript";break a;default:f="yt-core-attributed-string--baseline-offset-unknown"}x.push(f)}x=x.join(" ");f={};if(V.weight||V.weightLabel)f.fontWeight=FCr(V,k==null?void 0:k.isHeadline).toString();L&&(f.color=L);I.push(tN({run:D,textLength:h,tag:"span",config:{className:x,style:f},startIndex:D.startIndex,length:D.length}))}if(G.decorationRuns)for(q=_.e(G.decorationRuns),D=q.next();!D.done;D=q.next())D=D.value,
k={},D.textDecorator&&(x=D.textDecorator,V=l===void 0?!1:l,f=[],L=_.g(x,oM),x=_.g(x,KCr),L?(x=f,f=x.concat,T=[],(V=dWB({extension:_.g(L.highlightTextDecoratorExtensions,uSO),isDarkTheme:V,runColor:L.backgroundColor}))&&T.push("background-color: "+V+";"),L.backgroundCornerRadius!==void 0&&T.push("border-radius: "+L.backgroundCornerRadius+"px;"),L.leftPadding!==void 0&&T.push("padding-left: "+L.leftPadding+"px;"),L.rightPadding!==void 0&&T.push("padding-right: "+L.rightPadding+"px;"),L.topPadding!==
void 0&&T.push("padding-top: "+L.topPadding+"px;"),L.bottomPadding!==void 0&&T.push("padding-bottom: "+L.bottomPadding+"px;"),f=f.call(x,T)):x&&(L=f,f=L.concat,V=V?"#2ba640":"#107516",V=x.color?PLX(x.color):V,V=["padding: 2px;","border-top: solid "+V+" 2px;","border-bottom: solid "+V+" 2px;","background: linear-gradient(135deg, "+V+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+V+" 3px, rgba(0, 0, 0, 0) 3px);"],f=f.call(L,V)),V=f.join(" "),k.style$=V,V=D.textDecorator,L=[],x=_.g(V,
KCr),_.g(V,oM)?L.push("yt-core-attributed-string--highlight-text-decorator"):x&&L.push("yt-core-attributed-string--bracket-text-decorator"),V=L.join(" "),k.className=V,k.dir="auto"),V=_.g(D.textDecorator,oM),L=_.g(D.textDecorator,KCr),x=_.g(D.textDecorator,oM),f=_.g(D.textDecorator,KCr),I.push(tN({run:D,textLength:h,tag:"span",config:k,startIndex:(V==null?void 0:V.startIndex)||(L==null?void 0:L.startIndex)||0,length:(x==null?void 0:x.length)||(f==null?void 0:f.length)||0}));if(G.commandRuns&&(b==
null||!b.noEndpoints))for(l=_.e(G.commandRuns),q=l.next();!q.done;q=l.next())q=q.value,D=is2(q,b),I.push(tN({run:q,textLength:h,tag:"a",config:D,startIndex:q.startIndex,length:q.length}));if(G.attachmentRuns)for(G=_.e(G.attachmentRuns),l=G.next();!l.done;l=G.next()){l=l.value;k=D=void 0;q={className:"yt-core-attributed-string--inline-block-mod"};if((k=l.element)==null?0:k.properties){k=(D=l.element)==null?void 0:D.properties;D=[];k=_.g(k,RVp);if(k==null?0:k.margin)k=k.margin,k.left&&D.push("margin-left: "+
Bv(k.left)+";"),k.right&&D.push("margin-right: "+Bv(k.right)+";"),k.top&&D.push("margin-top: "+Bv(k.top)+";"),k.bottom&&D.push("margin-bottom: "+Bv(k.bottom)+";");D=D.length!==0?D.join(" "):void 0;q.style$=D}V=void 0;D={alt:"",preserveHeight:!0,preserveWidth:!0};k=["yt-core-attributed-string__image-element"];if(l.alignment){a:switch(l.alignment){case "ALIGNMENT_BASELINE":L="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":L="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:L="yt-core-attributed-string__image-element--image-alignment-bottom"}k.push(L)}if((V=l.element)==null?0:V.properties)V=[],L=_.g(l.element.properties,RVp),(L==null?0:L.height)&&V.push("height: "+Bv(L.height)+";"),(L==null?0:L.width)&&V.push("width: "+Bv(L.width)+";"),V=V.length!==0?V.join(" "):void 0,D.style$=V,L=void 0,V=((L=_.g(l.element.properties,nep))==null?void 0:L.label)||"",D.alt=V;D.className=k.join(" ");k=void 0;x=L=void 0;V=((x=l.element)==null?0:x.type)?(L=_.g(l.element.type,
Osd))==null?void 0:L.image:void 0;I.push(tN({run:l,textLength:h,tag:"img",image:V,imageConfig:D,imageWrapperConfig:q,startIndex:l.startIndex,length:(k=l.length)!=null?k:0}))}if(b==null?0:b.headerRuns)for(b=_.e(b.headerRuns),G=b.next();!G.done;G=b.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":l=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":l="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":l="yt-core-attributed-string--heading-3";break a}l=void 0}I.push(tN({run:G,textLength:h,tag:"span",config:l?{className:l}:void 0,startIndex:G.startIndex,length:G.length}))}return I};
_.d5=function(G){return(G==null?void 0:G.content)!==void 0};
Eed=function(G){return _.d5(G)?G:_.fG(G)};
pi2=function(G){return G.image!==void 0&&G.imageConfig!==void 0};
Srp=function(G,b){if(b==null?0:b.userInput)for(G=_.e(G),b=G.next();!b.done;b=G.next())if(b=b.value,b.tag!=="a"&&b.tag!=="li"){var I=void 0;(I=b).config||(I.config={});b.config.dir=b.tag==="ul"?_.LL().resolve(_.yB):"auto"}};
Xid=function(G){return function(b){var I=G.run;(I.onTap!==void 0||I.onLongPress!==void 0)&&_.g(I,llX)&&CLr(b,{loggingDirectives:_.g(I,llX)})}};
$UB=function(G){return function(b){for(var I in G)(cw[I]||cw[Xq["default"]])(b,I,G[I])}};
hFu=function(G,b){GDq(b);var I={data:null,start:0,end:G.length,parts:[]};b=_.e(b);for(var h=b.next();!h.done;h=b.next())h=h.value,bCr(I,h.startIndex,h.endIndex,h);IVj(G,I);return I};
bCr=function(G,b,I,h){for(var q=_.e(G.parts),l=q.next();!l.done;l=q.next()){l=l.value;if(typeof l==="string")throw Error("gh");if(l.start<=b&&I<=l.end){bCr(l,b,I,h);return}}G.parts.push({data:h,parts:[],start:b,end:I})};
IVj=function(G,b){for(var I=b.parts.length;I>=0;I--){var h=b.parts[I],q=b.parts[I-1],l=I===b.parts.length?b.end:h.start;q=I===0?b.start:q.end;l!==q&&b.parts.splice(I,0,G.slice(q,l));h&&IVj(G,h)}};
GDq=function(G){G.sort(function(b,I){if(b.startIndex<I.startIndex)return-1;if(I.startIndex<b.startIndex)return 1;b=b.endIndex-b.startIndex;I=I.endIndex-I.startIndex;return b>I?-1:I>b?1:0})};
_.qHr=function(G){var b=G.thumbnails;if(b){G={sources:[]};b=_.e(b);for(var I=b.next();!I.done;I=b.next()){I=I.value;var h={};h.url=I.url;h.width=I.width;h.height=I.height;G.sources.push(h)}return G}};
j0s=function(G,b,I,h){if(!b)return G.length>=1?G[G.length-1]:null;if(h)for(var q=_.e(G),l=q.next();!l.done;l=q.next()){l=l.value;var V=void 0,D=(V=l.url)==null?void 0:V.indexOf(h);if(D!==void 0&&D>=0)return l}h=_.e(G);for(q=h.next();!q.done;q=h.next())if(q=q.value,q.width&&q.height&&(I&&q.width>=b||!I&&q.height>=b))return q;for(b=G.length-1;b>=0;b--)if(I&&G[b].width||!I&&G[b].height)return G[b];return G[0]};
_.lVj=function(G){var b;return(G=(b=G.sources)==null?void 0:b[0])?G.width/G.height:0};
_.mUj=function(G){if(G.sources){G=_.e(G.sources);for(var b=G.next();!b.done;b=G.next()){b=b.value;var I=void 0;if((I=b.clientResource)==null?0:I.imageName)return b}}};
eFv=function(G){var b;if((b=G.clientResource)!=null&&b.imageColor)return _.so(G.clientResource.imageColor)};
_.DUd=function(G,b,I,h,q,l,V){if(!b||b.length===0||b[0].clientResource)return null;if(I&&b[0].url)return b[0].url;h===void 0&&(h=!0);if(h){var D;G=Viq*(q||(G==null?void 0:(D=G.getBoundingClientRect())==null?void 0:D.width)||0)}else{var k;G=Viq*(l||(G==null?void 0:(k=G.getBoundingClientRect())==null?void 0:k.height)||0)}b=j0s(b,G,h,V);return(b==null?0:b.url)?b.url:(b==null?0:b.imageData)?b.imageData:null};
ct2=function(G,b,I){I=I?[I]:[];G.opacity&&I.push("opacity: "+G.opacity+";");b&&G.placeholderColor?(G=_.so(G.placeholderColor),I.push("background-color: "+G+";")):I.push("background-color: transparent;");return I.join(" ")};
kDr=function(G,b,I,h,q){var l=["ytCoreImageHost"];b&&l.push(b);I||l.push("ytCoreImageFillParentHeight");h||l.push("ytCoreImageFillParentWidth");switch(G.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":l.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":l.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":l.push("ytCoreImageContentModeCenter");break;default:l.push("ytCoreImageContentModeScaleToFill")}G.flipForRtlLayout&&l.push("ytCoreImageFlipRtl");
switch(q){case "TOP_START":var V;l.push(((V=document.body)==null?void 0:V.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return l.join(" ")};
Lop=function(G){var b;if(G==null?0:(b=G.clientResource)==null?0:b.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||vAu.get(G)||G}};
fVB=function(G){return _.U("mweb_wiz_skip_render")?Q0p(G):xUu(G)};
Q0p=function(G){return function(b){var I=O8B("wink-root");jk=Ij.lastChild;wwp();UtB(I,_.v(G,b))}};
xUu=function(G){var b=b===void 0?!1:b;return function(I){if(!b||!_.U("mweb_skip_keto_to_c3_if_no_data")||I.data!==void 0){var h=f3(!1);try{var q=I.children;_.U("mweb_render_outside_patch_killswitch")||Ij?q?D8(_.v(G,I,q)):D8(_.v(G,I)):_.RB(new _.Wf("ketoToC3 called outside of a patch",{tagName:G.TAG_NAME}))}finally{f3(h)}}}};
T7q=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
UUq=function(G,b){G.onViewportEntered=b;B7q.observe(G)};
s0X=function(){var G={rootMargin:"10%",threshold:.01};_.U("mweb_enable_set_io_root_to_null_safari")?G.root=null:_.U("mweb_enable_set_io_root_to_body_safari")&&(G.root=document.body);return new IntersectionObserver(function(b,I){b.filter(function(h){return h.intersectionRect.height>0}).forEach(function(h){h=h.target;
if(!_.U("mweb_enable_only_update_image_when_connected")||h.isConnected!==!1){var q;(q=h.onViewportEntered)==null||q.call(h);I.unobserve(h)}})},G)};
gAr=function(G,b,I,h,q){function l(){if(h){var D=h.loadedClass,k=h.notifyOnUnloaded;D&&_.r5(G,D);k&&G.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function V(){var D=I(b,G);D&&G.getAttribute("src")!==D&&(_.U("mweb_enable_only_update_image_when_connected")&&G.isConnected===!1||D===G.src||(G.src=D),l())}
q=q===void 0?!0:q;G.removeAttribute("src");l();b&&(q?UUq(G,V):V())};
AtB=function(G,b,I){if(!b)return!1;b=I(b,G);I=G.getAttribute("src");return b&&b===I&&G.complete};
Mir=function(G,b){for(var I in b)I==="className"?G.className=b[I]:(cw[I]||cw[Xq.default])(G,I,b[I])};
ZCj=function(G,b,I,h){fVB(_.Fu)({contentMode:b.contentMode,loadedClass:b.loadedClass,isPreloaded:b.isPreloaded,notifyOnLoaded:b.notifyOnLoaded,notifyOnUnloaded:b.notifyOnUnloaded,preferredThumbnail:b.preferredThumbnail,preserveHeight:b.preserveHeight,preserveWidth:b.preserveWidth,objectPosition:b.objectPosition,targetWidth:b.targetWidth,targetHeight:b.targetHeight,shouldShowPlaceholder:b.shouldShowPlaceholder,useWidth:b.useWidth,isToggled:b.isToggled,alt:b.alt,className:b.className,onerror:b.onerror,
onload:b.onload,style$:b.style$,color:b.color,width:b.width,height:b.height,"aria-hidden$":b["aria-hidden$"],draggable:b.draggable,"data-disabled$":b["data-disabled$"],data:G,callback:I,renderLazy:h===void 0?!0:h,hideOn404:!1})};
zFd=function(G,b,I){I=I===void 0?!1:I;var h=G.sources!==void 0?G:_.qHr(G);if(h){var q=b.onload;b.onload=function(k){var L=k.target;I&&L.naturalWidth===120||_.Hv(L,"ytCoreImageLoaded");b.notifyOnLoaded&&L.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));q==null||q(k)};
b.targetWidth&&b.preserveWidth&&(b.width=b.targetWidth);b.targetHeight&&b.preserveHeight&&(b.height=b.targetHeight);var l=_.mUj(h),V=l&&Lop(l);if(V)return(G=eFv(l))&&(b.color=G),{type:"icon",iconName:V,config:Object.assign({},b,b.alt?{}:{"aria-hidden$":"true"},{"aria-label$":b.alt,role:"img"})};if(G.sources===void 0){b.alt=G.accessibility&&G.accessibility.accessibilityData&&G.accessibility.accessibilityData.label||b.alt;b.style$=ct2(G,b.shouldShowPlaceholder,b.style$);var D;b.isPreloaded=!((D=_.g(G,
tip))==null||!D.isPreloaded)}b.contentMode&&!h.contentMode&&(h.contentMode=b.contentMode);b.className=kDr(h,b.className,b.preserveHeight,b.preserveWidth,b.objectPosition);b.loadedClass="ytCoreImageLoaded";return{type:"image",image:h,config:b}}};
_.Wv=function(){var G=_.RI.apply(0,arguments);return _.VF(oAO,function(b){var I=G.map(function(h){return h==null?void 0:h(b)});
return function(){return void I.forEach(function(h){return void(h==null?void 0:h())})}})};
aM=function(G,b){var I=b==null?void 0:b.initial;return _.P$(function(){_.n0(!0);return I=G(I)},{equals:b==null?void 0:b.isEqual},"rSlKsc")};
iCX=function(G,b){if(G===b)return!0;if(G===void 0||b===void 0)return!1;var I,h,q,l,V,D,k,L;return G.content===b.content&&((I=G.styleRuns)==null?void 0:I.length)===((h=b.styleRuns)==null?void 0:h.length)&&((q=G.commandRuns)==null?void 0:q.length)===((l=b.commandRuns)==null?void 0:l.length)&&((V=G.attachmentRuns)==null?void 0:V.length)===((D=b.attachmentRuns)==null?void 0:D.length)&&((k=G.decorationRuns)==null?void 0:k.length)===((L=b.decorationRuns)==null?void 0:L.length)};
ytO=function(G,b){if(G){var I=Eed(G);if(I!=null&&I.content)if(_.U("attr_string_reactive_c3"))fVB(PcX)({text:G,config:b});else{var h=!(b==null||!b.ariaLabel)||!(I.commandRuns&&I.commandRuns.length!==0||I.paragraphStyleRuns&&I.paragraphStyleRuns.length!==0);G=h?b==null?void 0:b.ariaLabel:null;h=h?"text":null;qrj("span",{className:rHd(I,b),dir$:(b==null?0:b.userInput)?"auto":void 0,"aria-label$":G,role$:h},function(){if(I.styleRuns||I.commandRuns||I.attachmentRuns||I.decorationRuns||I.paragraphStyleRuns){var q=
wia(I,b);Srp(q,b);q=hFu(I.content,q);q=_.e(q.parts);for(var l=q.next();!l.done;l=q.next())dUX(l.value)}else bJu(I.content)})}}};
dUX=function(G){typeof G==="string"?bJu(G):pi2(G.data)?qrj("span",G.data.imageWrapperConfig,function(){ZCj(G.data.image,G.data.imageConfig)}):qrj(G.data.tag,G.data.config,function(b){Xid(G.data)(b);
b=_.e(G.parts);for(var I=b.next();!I.done;I=b.next())dUX(I.value)})};
Fos=function(G){return G.parts.map(rtv)};
rtv=function(G){if(typeof G==="string")return G;G=pi2(G.data)?_.v("span",{el:_.Wv($UB(G.data.imageWrapperConfig))},_.v(_.Fu,Object.assign({},{data:G.data.image},G.data.imageConfig))):_.v(G.data.tag,{el:_.Wv(Xid(G.data),$UB(G.data.config))},G.parts.map(rtv));return iM(G)};
HCa=function(G,b){return G===b?!0:G===void 0||b===void 0?!1:G.noStyleRuns===b.noStyleRuns&&G.noLinkColor===b.noLinkColor&&G.noEndpoints===b.noEndpoints&&G.headerRuns===b.headerRuns&&G.isOverlay===b.isOverlay&&G.linkInheritColor===b.linkInheritColor&&G.userInput===b.userInput&&G.isHeadline===b.isHeadline};
WoO=function(G){return function(){var b,I,h,q,l,V,D,k,L,x,f,T,B,A;return{ariaLabel:(b=G.ariaLabel)==null?void 0:b.call(G),className:(I=G.className)==null?void 0:I.call(G),ellipsisTruncate:(h=G.ellipsisTruncate)==null?void 0:h.call(G),isOverlay:(q=G.isOverlay)==null?void 0:q.call(G),linkInheritColor:(l=G.linkInheritColor)==null?void 0:l.call(G),noEndpoints:(V=G.noEndpoints)==null?void 0:V.call(G),noStyleRuns:(D=G.noStyleRuns)==null?void 0:D.call(G),noLinkColor:(k=G.noLinkColor)==null?void 0:k.call(G),
noPreWrap:(L=G.noPreWrap)==null?void 0:L.call(G),noWrap:(x=G.noWrap)==null?void 0:x.call(G),skipOnClick:(f=G.skipOnClick)==null?void 0:f.call(G),userInput:(T=G.userInput)==null?void 0:T.call(G),headerRuns:(B=G.headerRuns)==null?void 0:B.call(G),isHeadline:(A=G.isHeadline)==null?void 0:A.call(G)}}};
N7p=function(G,b){G=new aVB(G,b);_.K1(G);throw G;};
YHr=function(G,b,I){var h=Sfu(G);G._numRenders=0;try{var q=_.CAq(function(){return _.v(b,Object.assign({},I))})}catch(V){var l=function(D){D.args||(D.args=[]);
D.args.push("Error in web component wrapper");D.args.push(G.tagName.toLowerCase());return D};
_.u6(V instanceof Error?l(V):new aVB("Wiz rendering error",G.tagName.toLowerCase()));throw V;}finally{Sfu(h)}return q};
_.JN=function(G,b,I){function h(x){var f={};x=_.e(x);for(var T=x.next();!T.done;T=x.next()){T=T.value;var B=void 0,A=void 0,t=void 0,y=_.ju((t=(A=(B=T).getAttribute)==null?void 0:A.call(B,"slot"))!=null?t:"children");if(B=f[y])B.push(T);else if(y in l||y==="children")f[y]=[T]}x=_.e(Object.keys(f));y=x.next();for(T={};!y.done;T={content$jscomp$59:void 0},y=x.next())y=y.value,y!=="children"&&(T.content$jscomp$59=f[y],f[y]=function(F){return function(){return F.content$jscomp$59}}(T));
return f}
I=I===void 0?{}:I;var q,l=(q=I.props)!=null?q:{};XDr.add(b);var V=CcO();q=function(){var x=V.apply(this,arguments)||this;x.rawProps={};x.queuingRender=!1;x.dispose=function(){};
x.isWebComponentWrapper=!0;x.isReparenting=!1;x.hasRendered=!1;return x};
_.M(q,V);q.prototype.render=function(){this.hasRendered=!0;for(var x=_.e([].concat(_.Nz(this.attributes))),f=x.next();!f.done;f=x.next())f=f.value,f.name!=="slot"&&f.name!=="hidden"&&this.removeAttribute(f.name);x=Object.assign({},this.componentProps,this.slotProps);f=_.e(YHr(this,G,x));x=f.next().value;f=f.next().value;!(x[0]instanceof Element)||x.length>1?N7p("Wrapped Wiz components must return a single root element.",b):(x=x[0].tagName.toLowerCase(),x!==b&&N7p("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(x+" !== '"+b),b),this.dispose=f)};
q.prototype.setUpProps=function(){for(var x=this.rawProps,f=this.attributes,T=_.e(Object.keys(l)),B=T.next();!B.done;B=T.next()){B=B.value;var A=void 0;((A=this)==null?0:A[B])&&this[B]!==Jtu&&x[B]===void 0&&(x[B]=this[B],(A=Object.getOwnPropertyDescriptor(this.constructor.prototype,B))&&Object.defineProperty(this,B,A))}T=_.e(f);for(B=T.next();!B.done;B=T.next()){A=B.value;B=_.ju(A.name);var t=B==="class"&&!f.getNamedItem("class-name");if(B in l||t)A=A.value===""||A.value==="true"?!0:A.value==="false"?
!1:isNaN(Number(A.value))?A.value:Number(A.value),B!=="class"||x.className?x[B]=A:x.className=A}f={};for(var y in l)l[y]!==_.No&&l[y]!==Kov&&(x[y]instanceof Function&&N7p("Function props must be configured as STATIC, not SIGNAL.",b),B=_.e(_.ZZ(x[y],void 0,"RKERzf")),T=B.next().value,B=B.next().value,f[y]=B,x[y]=T);x=_.e([x,f]);this.componentProps=x.next().value;this.setters=x.next().value;this.slotProps=h(this.childNodes)};
q.prototype.connectedCallback=function(){bl2.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in l&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
q.prototype.disconnectedCallback=function(){if(!bl2.has(this)){var x;a:{if(_.YQ)for(x=this;x;){if(_.CG.has(x)){x=!0;break a}x=x.parentElement}x=!1}if(x)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){x=_.e([].concat(_.Nz(this.attributes)));for(var f=x.next();!f.done;f=x.next()){f=f.value;var T=void 0;f.name==="slot"||f.name==="hidden"&&((T=I.unsafeExternallySettableAttributes)==null?0:T.has("hidden"))||this.removeAttribute(f.name)}}this.innerText="";ROr(this)}}};
q.prototype._setPendingPropertyOrPath=function(){};
q.prototype.notifyPath=function(){};
_.kV.Object.defineProperties(q.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var D=_.e(Object.keys(l)),k=D.next(),L={};!k.done;L={prop$jscomp$109:void 0},k=D.next())L.prop$jscomp$109=k.value,k=void 0,((k=I.legacyPolymer)==null?0:k.forwardHostProps)&&CbO.has(L.prop$jscomp$109)||Object.defineProperty(q.prototype,L.prop$jscomp$109,{set:function(x){return function(f){var T=this;bl2.has(this)||(this.setters?dv(function(){var B,A;return void((A=(B=T.setters)[x.prop$jscomp$109])==null?void 0:A.call(B,f))}):(this.rawProps[x.prop$jscomp$109]=f,this.queuingRender&&x.prop$jscomp$109===
"data"&&f!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(L),
get:u3s.has(L.prop$jscomp$109)?void 0:function(){return Jtu}});
customElements.define(b,q)};
_.RFB=function(G,b){return(G=_.KG(G,b))?_.aI(_.KA(G)):null};
_.u$=function(G){if(G=_.KG(G,Number.MAX_VALUE,void 0,"width"))return _.KA(G)};
_.KG=function(G,b,I,h){h=h===void 0?"width":h;if(!G||!G.length)return null;if(_.U("kevlar_tuner_should_always_use_device_pixel_ratio")){var q=window.devicePixelRatio;_.U("kevlar_tuner_should_clamp_device_pixel_ratio")?q=Math.min(q,_.Te("kevlar_tuner_clamp_device_pixel_ratio")):_.U("kevlar_tuner_should_use_thumbnail_factor")&&(q=_.Te("kevlar_tuner_thumbnail_factor"));nAs=q}else nAs||(nAs=window.devicePixelRatio);q=nAs;_.U("kevlar_tuner_should_always_use_device_pixel_ratio")?b*=q:q>1&&(b*=q);if(_.U("kevlar_tuner_min_thumbnail_quality"))return G[0].url||
null;q=G.length;if(_.U("kevlar_tuner_max_thumbnail_quality"))return G[q-1].url||null;if(I)for(var l=0;l<q;l++)if(G[l].url.indexOf(I)>=0)return G[l].url||null;for(I=0;I<q;I++)if(G[I][h]>=b)return G[I].url||null;for(b=q-1;b>0;b--)if(G[b][h])return G[b].url||null;return G[0].url||null};
EAO=function(){RM.size?setTimeout(function(){nG(OCB)},0):wUB=0};
OCB=function(){var G=(0,_.Li)(),b=null,I=!1;RM.forEach(function(q){q.loaded=!0;q.loadTime=G;q.pendingPaint=!1;var l=pUu.get(q);l&&l.resolve(G);b=q;I||!q.ftlEligible&&q.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(I=!0)});
var h;((h=b)==null?0:h.markDirty)&&b.markDirty();RM.clear();wUB=0;I&&SHr(G)};
XUp=function(G){RM.add(G);G.pendingPaint=!0;wUB||(wUB=_.O0(_.uu,EAO))};
$nq=function(G){G.loaded=!1;G.loadTime=Infinity;var b=pUu.get(G);b&&(b.reject(Error("mh")),pUu.delete(G));G.pendingPaint&&(RM.delete(G),G.pendingPaint=!1)};
_.GHO=function(G){var b=G.indexOf(":");return b===-1?{originalName:G}:{originalName:G.substring(0,b),datasyncId:G.substring(b+1)}};
_.Ioq=function(){return _.c(function(G){if(bVr!==void 0)return G.return(bVr);bVr=new Promise(function(b){var I;return _.c(function(h){switch(h.nextAddress){case 1:return _.gm(h,2),h.yield(_.w5.open("test-only"),4);case 4:return h.yield(_.w5.delete("test-only"),5);case 5:_.hF(h,3);break;case 2:if(I=_.zf(h),I instanceof Error&&I.name==="SecurityError")return b(!1),h.return();case 3:b("caches"in window),_.ip(h)}})});
return G.return(bVr)})};
jq2=function(){return _.c(function(G){if(G.nextAddress==1)return G.yield(_.Ioq(),2);if(!G.yieldResult)return G.return(void 0);hY2||(hY2=new qlO);return G.return(hY2)})};
lou=function(G){var b,I,h,q;return _.c(function(l){switch(l.nextAddress){case 1:return l.yield(jq2(),2);case 2:b=l.yieldResult;if(!b)throw Error("oh");return l.yield(b.open("yt-player-local-img"),3);case 3:return I=l.yieldResult,l.yield(I.match(G),4);case 4:h=l.yieldResult;if(!h)throw Error("ph");return l.yield(h.blob(),5);case 5:return q=l.yieldResult,l.return(q)}})};
mnO=function(G,b){for(var I in G)if(G.hasOwnProperty(I)&&b[I])return I;return null};
eYr=function(G){return"stamp"+G.replace("-","_")+"_"};
VsO=function(G){var b=G.match(/\[\[([\w\.]+)\]\]/);if(b&&b.length>1)return b[1];_.K1(Error("rh`"+G));return null};
DnB=function(G){return G===void 0?_.Sk("REUSE_COMPONENTS",!1):G||!1};
v0r=function(G,b,I){I&&(b.is?(cvO.has(b)&&(G=cvO.get(b),I=G.listener,delete b[G.property],I.type==="element"&&b.removeEventListener(I.eventName,I.handler),cvO.delete(b)),kHX(b)):b.__proto__==HTMLElement.prototype&&(b=new _.Wf("Rendererstamper removed a non custom element","Stamper: "+G+" element: "+(b&&b.nodeName)),_.RB(b)))};
LWa=function(G,b,I,h){var q=b.node?b.node:b;_.Eo(I).parentNode===q&&(b.removeChild(I),v0r(G,I,h));if(G=E0.get(I))E0.delete(I),_.uu.cancelJob(G);I.hidden=!1};
QqB=function(G,b,I,h){if(b&&b.children&&(I=b.children[I]))if(_.Sk("DEFERRED_DETACH"))for(;I&&!E0.has(I);){var q=G,l=b,V=I,D=h;V.hidden=!0;q=_.FQ(_.uu,LWa.bind(null,q,l,V,D),0);E0.set(V,q);I=I.nextElementSibling}else for(;(V=b.lastElementChild)&&(b.removeChild(V),v0r(G,V,h),V!=I););};
_.pG=function(){for(var G=_.RI.apply(0,arguments),b=!0,I=_.e(G),h=I.next();!h.done;h=I.next())if(typeof h.value!=="string"){b=!1;break}return b?G.join(" ").trim()||void 0:function(){for(var q="",l=_.e(G),V=l.next();!V.done;V=l.next())if(V=V.value,typeof V==="function"&&(V=V()),V)if(typeof V==="string")q+=" "+V;else for(var D in V)if(V.hasOwnProperty(D)){var k=V[D];typeof k==="function"&&(k=k());k&&(q+=" "+D)}q=q.trim()||void 0;return _.n0(q)}};
_.xnu=function(G,b){return _.Gi(G.entities,"markersEngagementPanelSyncEntity",b)};
_.SA=function(G,b){return _.Gi(G.entities,"playerStateEntity",b)};
fod=function(G,b){return _.Gi(G.entities,"fantasyWinProbabilityEntity",b)};
Tbr=function(G,b){return _.Gi(G.entities,"fantasyTeamEntity",b)};
BbO=function(G,b){return _.Gi(G.entities,"fantasyPlayerEntity",b)};
UnO=function(G,b){return _.Gi(G.entities,"booleanEntity",b)};
sqv=function(G,b){return _.Gi(G.entities,"qrCodeEntity",b)};
g0O=function(G){return _.Gi(G.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
MsO=function(G){var b;return(b=Avu[G])!=null?b:"EVENT_SPAN_TYPE_UNKNOWN"};
ZVd=function(G){var b=G.nodeName;if(G.id)return b+="#"+G.id;if(G.classList)for(var I=_.e(G.classList),h=I.next();!h.done;h=I.next())b+="."+h.value;G.parentElement&&(b=ZVd(G.parentElement)+" > "+b);return b};
tsB=function(G){return function(b){var I=MsO(b.type);return I==="EVENT_SPAN_TYPE_UNKNOWN"?G(b):t6O("event",{type:I,nodepath:b.target instanceof Element?ZVd(b.target):void 0},function(){return G(b)})}};
_.Xu=function(G){G&&sad("event")&&(G=tsB(G));return QZO(function(b){var I,h=(I=G)==null?void 0:I(b);return typeof h==="boolean"?h:!0})};
$o=function(G){return function(){return G()?G():void 0}};
P5s=function(G){var b=_.ee("animated-rolling-character"),I=div(),h=Ni(G.character)||Ni(G.previousCharacter),q=_.e(yWB()),l=q.next().value,V=q.next().value;_.K3(function(){if(window.ResizeObserver&&_.U("web_fix_rolling_numbers_zoom_safari")){var D=new _.GB(function(){var L,x,f=Math.round(((x=(L=b.value.querySelector("div"))==null?void 0:L.getBoundingClientRect().height)!=null?x:0)*100)/100;f&&V(f)},500),k=new ResizeObserver(function(){D.fire()});
k.observe(b.value);return function(){k.disconnect();D.dispose()}}});
gcO(function(){var D=_.U("web_fix_rolling_numbers_zoom_safari")?l:G.marginMultiplier;if(D){var k;(k=I.value)==null||k.cancel();h?(k=G.previousCharacter?Number(G.previousCharacter)+10:G.rollUp?0:30,G.shouldAnimate||(k-=zYd(G,k))):(k=G.rollUp?0:2,G.shouldAnimate||(k-=G.rollUp?-1:1));b.value.style.marginTop="-"+k*D+"px";G.shouldAnimate?I.value=o0d(b.value,G,k,h,D):b.value.style.display=G.character?"":"none"}});
return _.v("animated-rolling-character",{el:b,class:"animatedRollingCharacterHost"},v_r(h,function(){for(var D=[],k=1;k<30;k++)D.push(_.v("div",null,k%10));return _.v(_.xz,null,_.v("div",null,"\u00a0"),D,_.v("div",null,"\u00a0"))},function(){return iVa(G.character)}))};
iVa=function(G){return _.v(_.xz,null,_.v("div",null,"\u00a0"),_.v(_.xz,null,v_r(!G||_.Dr(G),function(){return _.v("div",null,"\u00a0")},function(){return _.v("div",null,G)})),_.v("div",null,"\u00a0"))};
o0d=function(G,b,I,h,q){I=new Animation(new KeyframeEffect(G,[{transform:"translateY(0px)"},{transform:"translateY("+(h?zYd(b,I):b.rollUp?-1:1)*q+"px)"}],dnp),document.timeline);b.character?(G.style.display="",I.onfinish=null):I.onfinish=function(){G.style.display="none"};
I.play();return I};
zYd=function(G,b){var I=Number(G.character)+10;if(G.previousCharacter)if(G.character){var h=Number(G.character),q=Number(G.previousCharacter);G=G.rollUp?q<h?I:I+10:q<h?I-10:I}else G=G.rollUp?30:0;else G=G.character==="0"?I:G.rollUp?I-10:I+10;return b-G};
yvp=function(G){return function(b){var I={},h;for(h in b){var q=void 0,l=void 0;((q=void 0)==null?0:(l=q.callbacks)==null?0:l[h])||(I[h]=b[h])}return _.v(Y2p,null,function(){for(var V in I)b[V]=_.n0(I[V]);b.disableReactiveLogging=!0;return _.v(G,Object.assign({},b))})}};
HVs=function(G,b,I,h,q,l,V){I=new Animation(new KeyframeEffect(G,[{transform:"translateY(0px)"},{transform:"translateY("+(l?rvO(b,I,h,q):h?-1:1)*V+"px)"}],FW2),document.timeline);b?(G.style.display="",I.onfinish=null):I.onfinish=function(){G.style.display="none"};
I.play();return I};
rvO=function(G,b,I,h){var q=Number(G)+10;b?G?(G=Number(G),b=Number(b),I=I?b<G?q:q+10:b<G?q-10:q):I=I?30:0:I=G==="0"?q:I?q-10:q+10;return h-I};
aov=function(G){var b=div(),I=div();tur(function(){b.value=G.numberText;I.value=G.numberValue},[G.numberText]);
var h=G.fontSizeMultiplier?G.heightPx*G.fontSizeMultiplier:G.heightPx,q=PUd(function(){if(G.numberText){var V=G.numberText;var D=G.forceRollUp||!I.value||!G.numberValue||I.value<G.numberValue;var k=!!G.shouldAnimate,L=b.value,x=[],f=0,T=0,B=(L?L.replace(/\D/g,"").length:0)-(V?V.replace(/\D/g,"").length:0);L=L?L.split(/(\d)/).filter(Boolean):[];for(V=V.split(/(\d)/).filter(Boolean);B<0;){var A=V[T];x.push({character:A,rollUp:D,marginMultiplier:h,shouldAnimate:k});T++;Ni(A)&&B++}for(;f<B;)A=L[f],x.push({previousCharacter:A,
rollUp:D,marginMultiplier:h,shouldAnimate:k}),f++,Ni(A)||B++;for(;T<V.length;)B=V[T],A=L[f],Ni(B)===Ni(A)?(T++,f++):Ni(B)?(f++,B=void 0):Ni(A)&&(T++,A=void 0),x.push({character:B,previousCharacter:A,rollUp:D,marginMultiplier:h,shouldAnimate:k});D=x}else D=[];return D},[G.numberText]),l=G.numberText?["height: "+h+"px;",
"line-height: "+G.heightPx+"px;"].join(" "):"";return _.v("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:l,dir:"ltr","aria-hidden":"true"},q.map(function(V){return _.v(WWX,Object.assign({},V))}))};
Nbq=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}};
_.Ylj=function(G,b){if(!G&&!b)return"medium";G=Math.max(G||0,b||0);return G>=256?"large":G>=96?"medium":"small"};
C5X=function(G){switch(G){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
Jv2=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})};
KWv=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})};
_.bk=function(G){if(G.length===0)return Bar(G,"E");var b=_.e(Bar({source:function(){return G()},
computation:function(q,l){return(l==null?0:l.value)?G(l.value):q}},"F")),I=b.next().value,h=b.next().value;
b=b.next().value;return[I,h,b]};
_.Ir=function(G){return function(){var b="",I;for(I in G){for(var h=G[I];typeof h==="function";)h=h();h!==void 0&&h!==null&&(b+="; "+I+": "+h)}return b.length>0?_.n0(b.slice(2)):_.n0()}};
uBd=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"}};
RYj=function(G,b){if(b)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"}};
pkO=function(G,b,I,h,q,l,V){var D=n0s(G),k=D.disabled,L=D.iconPosition,x=D.style,f=D.focused,T=function(){return!!t()&&L()==="icon-only"},B=function(){return!!t()&&L()==="icon-only-40"},A=function(){return!!t()&&L()==="icon-with-label"},t=function(){return!!b||!(h==null||!h())};
return{type:function(){return x()==="call-to-action-inverse"?"text":x()==="overlay-dark"&&G().type!=="filled"&&G().type!=="tonal"?"tonal":G().type},
shouldFocus:function(){return(f()||(l==null?void 0:l()))&&!k()},
hasIconLeading:function(){return!!t()&&L()==="leading"},
hasIconTrailing:function(){return!!t()&&L()==="trailing"},
hasIconLeadingTrailing:function(){return!!t()&&!!(I||q!=null&&q())&&L()==="leading-trailing"},
hasIconOnly:T,hasIconOnly40:B,hasIconWithLabel:A,iconButton:function(){return T()||B()||A()},
visiblyDisabled:function(){return(k()?"disabled":G().state)==="disabled"||k()},
overrideSmallSizeIcon:function(){return!G().ignoreIconSizeOverride&&OVs(G(),t())},
iconToRender:b?b:function(){return _.v(_.ha,{icon:h,gradientColor:function(){var y;return(y=G().customColors)==null?void 0:y.iconGradientColor},
size:function(){return wkO(G(),!0,G().ignoreIconSizeOverride)},
active:function(){return G().toggled},
iconFilter:function(){return E0O(G())},
animateIcon:V})},
secondaryIconToRender:I?I:function(){return _.v(_.ha,{icon:q,size:function(){return wkO(G(),!0,G().ignoreIconSizeOverride)},
active:function(){return G().toggled},
iconFilter:function(){return E0O(G())}})}}};
n0s=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(b){var I,h;return(h=(I=G()).onTap)==null?void 0:h.call(I,b)},
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(b){var I,h;return(h=(I=G()).onToggle)==null?void 0:h.call(I,b)},
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}}};
OVs=function(G,b){b=(G.iconPosition==="icon-only"||G.iconPosition==="icon-only-40"||G.iconPosition==="icon-with-label")&&b;return!G.segmentedPosition&&b&&G.size==="S"};
wkO=function(G,b,I){switch(G.size){case "XS":return 16;case "S":return!I&&OVs(G,b)?24:16;default:return 24}};
SlB=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"}};
Xkq=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"}};
$gO=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"}};
E0O=function(G){if(G.style==="overlay-dark"&&G.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
qK=function(G){return G&&G.endsWith("px")?Number(G.slice(0,-2)):0};
Iyj=function(G,b){var I=_.e(_.bk(function(){var q,l;return(l=G())!=null?l:b==null?void 0:(q=b())==null?void 0:q.text})),h=I.next().value;
return[function(q){var l=_.P$(function(){var k;return Object.assign({},{location:"bottom",offset:16,delay:1},b==null?void 0:b(),{text:(k=h())!=null?k:""})},void 0,"IJU38d");
_.K0(function(){var k=l();_.MQ(function(){_.uu.addJob(function(){jh.notify(q,k)},4)})},"WlsgZc");
var V=function(){GYr(q,l())},D=function(){bxp()};
q.addEventListener("mouseenter",V);q.addEventListener("focus",V);q.addEventListener("mouseleave",D);q.addEventListener("blur",D);q.addEventListener("tap",D);_.uI(function(){q.removeEventListener("mouseenter",V);q.removeEventListener("mouseleave",D);q.removeEventListener("focus",V);q.removeEventListener("blur",D);q.removeEventListener("tap",D);bxp()})},
I.next().value]};
q6s=function(G,b){if(!mT){var I;s1X(function(){return I=aas(G,b)});
return I}G.parent=hvX();return aas(G,b)};
hvX=function(){var G=_.VA(mT||void 0,FAj);return _.fOa(G)?void 0:G};
lk=function(G,b){_.g5(G,Object.assign({},b,{forceClickLogging:!0}))};
jDa=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"}};
mgO=function(G,b){var I=_.s0(G==null?void 0:G.onTap),h={};I&&(h.getClickedVisualElement=function(){var q;return lya(G,I,b==null?void 0:(q=b.value)==null?void 0:q.visualElement)});
h=_.AN({elementsCommand:G.onTap,forceNewState:!0,additionalCommandArgs:h});return Mo(h)?h:void 0};
evO=function(G,b,I,h){lk(G,Object.assign({},{form:{element:b,event:I}},h))};
V9d=function(G,b,I,h,q){var l=void 0;return function(V){var D=_.s0(I?G==null?void 0:G.onDisabledTap:G==null?void 0:G.onTap);if(D){var k;l=(k=l)!=null?k:b==null?void 0:b.value;if(D)if(_.U("web_button_vm_click_client_ve_killswitch"))evO(D,l,V);else{var L;k=lya(G,D,(L=l)==null?void 0:L.visualElement);if(q){evO(D,q,V,{clickedVisualElement:k,form:{element:q}});return}evO(D,l,V,{clickedVisualElement:k})}}h&&h(V)}};
lya=function(G,b,I){b=b==null?void 0:b.clickTrackingParams;var h,q;G=G==null?void 0:(h=G.loggingDirectives)==null?void 0:(q=h.clientVeSpec)==null?void 0:q.uiType;if(I&&G&&!b)return I};
DgO=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"}};
c62=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"}};
kYu=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"}};
vsu=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"}};
_.m2=function(G){return _.P$(function(){G2r()();return htd(G)},{debugName:"d8B62c"},"DEXkhd")};
LVO=function(G,b){return _.Gi(G.entities,"engagementToolbarStateEntityPayload",b)};
xg2=function(G){(G=_.VB(G))&&_.QDp(G)};
_.QDp=function(G){var b=_.gL();b&&_.rK(b,G)};
fyv=function(G,b,I){_.wL(G,"yt-open-popup-action",[b,I||G])};
T3O=function(G,b){var I=_.Rj(G,"endpoint"),h=_.Rj(G,"action");return(I=h?h:I)&&b&&(I=b.navigationEndpointPopupMap[I])&&(G=_.Ge(I,G),(I=_.Rj(G,"renderer"))&&b.supportedPopups.hasOwnProperty(I))?{openPopupAction:{popupType:b.popupTypeMap[I],popup:G}}:null};
B3s=function(G,b,I,h){if(h){var q;I=I==null?void 0:(q=I.data)==null?void 0:q.contents;(q=I instanceof Array&&I.length?I[0]:I)&&(I=_.Rj(q,"renderer"))&&h.supportedPopups.hasOwnProperty(I)&&(b.stopPropagation(),fyv(G,{openPopupAction:{popupType:h.popupTypeMap[I],popup:q}}))}};
gsp=function(G,b,I,h){h=h===void 0?!1:h;var q=Uga(b);if(q){q.href&&ZL(q.href);var l=b.button;l=l!==void 0?l===0&&!eh(b):!eh(b);q.data&&l&&sDd(G,q,b,I,h)}};
sDd=function(G,b,I,h,q){q=q===void 0?!1:q;var l=_.Te("pbj_navigate_limit",-1)===0;A6u(b);_.LL().resolve(_.vf(GX));var V=b.data;if(Object.keys(V).length!==0)if(!_.U("unplugged_web_disable_actions_for_cec_endpoint")&&_.g(V,_.$P))_.U("endpoint_behavior_command_executor_fix_killswitch")||(I.preventDefault(),I.stopPropagation()),_.Su(G,[V],G);else if(h=T3O(V,h))V.loggingUrls&&V.loggingUrls.forEach(function(k){k.baseUrl&&_.Gs(k.baseUrl)}),I.preventDefault(),I.stopPropagation(),fyv(G,h,b);
else{var D=M9q(0,b.data,I);if(G=b.getForm)G=G(),D.tempData=D.tempData||{},D.tempData=Object.assign({},D.tempData,G);G=_.Wy(I);if(h=G.find(function(k){return!!k.visualElement}))D.createScreenConfig=D.createScreenConfig||{},D.createScreenConfig.clickedVisualElement=h.visualElement;
if(!l)if(I.preventDefault(),I.stopPropagation(),_.g(V,_.Zxu)&&!q&&_.Xv.instance)_.Xv.instance.resolveCommand(V,D);else if(_.U("kevlar_command_handler_formatted_string")&&!q&&_.Xv.instance&&t9O(V))q=G.find(function(k){return!!k.is})||I.target,I={form:Object.assign({},D,{event:I,
element:q,originatingNode:b})},_.Xv.instance.resolveCommand(V,I);else{V=_.Wy(I);I=[];for(q=0;q<V.length;q++)(l=V[q].is)&&I.push(l);XNd({parents:I.join(","),text:b.innerText},function(){_.O3(b,"yt-navigate",D)})}}};
zva=function(G){if(G=Uga(G))A6u(G),h9a(G.href)};
Uga=function(G){G=_.Wy(G);for(var b,I=0;I<G.length;I++)if(b=G[I],b.tagName==="A"&&b.classList.contains("yt-simple-endpoint")){if(!b.data)break;return b}return null};
eh=function(G){return G.shiftKey||G.altKey||G.metaKey||G.ctrlKey};
osd=function(G,b){var I={itct:b.clickTrackingParams};_.U("kevlar_client_side_screens")&&(!_.g(b,_.V4)||_.U("kevlar_exclude_endpoint_killswitch"))&&(I.endpoint=JSON.stringify(b));_.U("enable_unknown_lact_fix_on_html5")&&_.LL().resolve(_.vf(_.VO))&&(I.lact=_.vA());G5O(I);_.Cv(G,I)};
A6u=function(G){G.href&&Object.keys(G.data).length!==0&&osd(G.href,G.data)};
t9O=function(G){for(var b=_.e(ixX),I=b.next();!I.done;I=b.next())if(G[I.value])return!1;return!0};
PKa=function(){if(DG)return DG;if(window.lottie)return DG=Promise.resolve(window.lottie);var G=_.Rb(_.wy("LOTTIE_URL"));return G?DG=new Promise(function(b,I){var h=document.createElement("script");h.addEventListener("load",function(){b(lottie)});
h.addEventListener("error",function(q){var l="Lottie library failed to load.";q?q.message&&(l+=" Original description: "+q.message,_.n1(q,l)):q=Error(l);_.RB(q);I(q)});
h.setAttribute("async","");_.mf(h,G);document.head.appendChild(h)}):Promise.reject(Error("sh"))};
dgj=function(){return DG?DG:PKa()};
y62=function(G){if(G)switch(G){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.U("kevlar_use_wil_icons"))return G=(G=g0O(_.Cw().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:cN.get("LIKE");break;case "LIKE_DELHI_PLAYER":return cN.get("LIKE_DELHI_PLAYER")}};
r6j=function(G){var b=y62(G);if(b)return b;switch(G){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return cN.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return cN.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return cN.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return cN.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return cN.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return cN.get("NOTIFICATION_BELL")}};
FVv=function(G,b){if(!G.closest)return!1;b=!!y62(b);return _.wy("ID_TOKEN")&&b?!!G.closest("segmented-like-dislike-button-view-model")||!!G.closest("yt-player-quick-action-buttons"):!1};
WVX=function(G,b){if(!G||HxX)b=!1;else{var I;if(!(I=FVv(G,b)))if(G.closest)if(I=!_.wy("ID_TOKEN"),G=G.closest("ytd-subscription-notification-toggle-button-renderer-next"),I||!G)I=!1;else{var h;I=((h=G.data)==null?void 0:h.targetId)==="notification-bell"&&b!=="EXPAND_MORE"}else I=!1;b=I}return b};
ay2=function(G){var b,I;return _.c(function(h){switch(h.nextAddress){case 1:return _.gm(h,2),h.yield(fetch(G),4);case 4:return b=h.yieldResult,h.yield(b.json(),5);case 5:return h.return(h.yieldResult);case 2:I=_.zf(h),_.RB(I),_.ip(h)}})};
N3O=function(G,b){var I,h,q;return _.c(function(l){if(l.nextAddress==1)return(I=b?G.pathDarkTheme:G.path)?l.yield(Promise.all([ay2(I),PKa()]),2):l.return();h=l.yieldResult;q=h[0];ko.set(I,q);_.ip(l)})};
CKv=function(G,b,I,h){function q(V,D){if(b.value===D&&!b.cancelled&&G!=null&&G.value){for(;G.value.firstChild;)G.value.removeChild(G.value.firstChild);G.value.classList.add("ytSpecIconShapeHost");V(G.value,h)}}
var l=_.Y6a(_.LL().resolve(_.SH),I);typeof l==="function"?(b.value=null,q(l,null)):(b.value=l,l.then(function(V){q(V,l)}))};
KVu=function(G,b){var I=document.createElement("div"),h=_.C3(I,function(){return _.v(_.Q,{cond:G,then:function(q){return _.v(J6X,{data:q,options:b})}})},"ca");
return[I,h]};
_.vN=function(G,b){if(b){var I={};ufB.forEach(function(h){h=Rv2(b,h,"--yt-lightsource-");Object.assign(I,h)});
nsq.forEach(function(h){h=Rv2(b,h,"--yt-basic-");Object.assign(I,h)});
_.G8(G,I)}};
Rv2=function(G,b,I){var h={};h[I+_.qi(b)]=G&&G[b]?_.so(G[b]):"";return h};
_.QO=function(G,b,I){Lk[G]||(Lk[G]={});Lk[G][b]=I};
_.xo=function(G){Lk[G]||(Lk[G]={});return Lk[G]};
Oxq=function(G){if(!G)return{};var b=G.foregroundTitleColor,I=G.backgroundColor;G=G.borderColor;var h="text";G?h="outline":I&&(h="filled");return{type:h,customColors:{color:b?_.so(b):void 0,backgroundColor:I?_.so(I):void 0,borderColor:G?_.so(G):void 0}}};
XKa=function(G){var b=G.renderer;var I=G.element;var h=G.commandController;var q=G.onTapCallback;var l=G.skipCommandHandling;var V=G.overrides;var D=G.forceIcon;var k=G.forceModernIconButton;var L=G.forceDisabled;var x=G.isSubscribe===void 0?!1:G.isSubscribe;var f=G.isPressed===void 0?!1:G.isPressed;var T=G.useButtonSize===void 0?!1:G.useButtonSize;G=wKu(b);x&&(G.style="mono",G.type="filled");D=!b.icon||!D&&b.text?b.icon?b.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:k?"icon-only":"icon-only-40";D==="icon-only-40"&&(G.type="text");var B;k=Object;x=k.assign;T=Es2(b,T);f=!!b.isSelected||!_.U("web_propagate_is_pressed_killswitch")&&!!f;var A=b.isSelected!==void 0;L=L===void 0?b.isDisabled:L;var t=b.text?_.fG(b.text):void 0;var y,F,W,O=((y=b.accessibilityData)==null?void 0:(F=y.accessibilityData)==null?void 0:F.label)||((W=b.accessibility)==null?void 0:W.label);y=O?O:_.NO(b.text);I=pKX(b,I,h,q,l);h=S6v(b);h!=null&&h.length?(h=_.AN({innertubeCommand:sPa(h),
forceNewState:!0}),h=Mo(h)?h:void 0):h=void 0;return x.call(k,{},G,T,{iconPosition:D},V,{focused:!1,toggled:f,toggleable:A,disabled:L,formattedButtonText:t,accessibilityLabel:y,onTap:I,aTagConfig:h},Oxq((B=b.colorData)==null?void 0:B.basicColorPaletteData),{oneOffCustomTextWrap:b.oneOffCustomTextWrap})};
pKX=function(G,b,I,h,q){return function(l){var V=S6v(G);h(V,l);if(!q){V=_.e(V);for(var D=V.next();!D.done;D=V.next())lk(D.value,{form:{element:b,event:l},commandController:I})}}};
S6v=function(G){var b=[];G.command&&b.push(G.command);G.serviceEndpoint&&b.push(G.serviceEndpoint);G.navigationEndpoint&&b.push(G.navigationEndpoint);return b};
Es2=function(G,b){if(b)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"}}};
wKu=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"}}};
$Nu=function(G,b){return typeof G!=="object"||G===null?!1:Object.keys(b).every(function(I){return I in G})};
fk=function(G){return Object.fromEntries(Object.keys(G).map(function(b){return[b,b]}))};
G_X=function(G,b,I){return $sO(I,function(h,q){return function(l){var V=_.RI.apply(1,arguments);return $Nu(l,G)?q.apply(null,[l[b]].concat(_.Nz(V))):q.apply(null,[l].concat(_.Nz(V)))}})};
TB=function(G){return function(b,I){return G_X(G,b,I)}};
bBs=function(G,b){var I;return(I=_.Gi(G,"playlistLoopStateEntity",b))!=null?I:void 0};
IBr=function(G,b){var I;return(I=_.Gi(G,"toggleMenuServiceItemEntity",b))!=null?I:void 0};
_.BN=function(G){return G!=null&&G.watch?G.watch.isTheaterMode:!1};
_.Ud=function(G){return G!=null&&G.watch?G.watch.isWatchFullscreen:!1};
_.sd=function(G){if(_.h7a(G))return!0;G=_.q7q(G);return _.U("web_watch_enable_single_column_grid_view")?G:!1};
_.h7a=function(G){return G!=null&&G.watch?G.watch.isSwatcherooActive:!1};
_.q7q=function(G){return G.watch.isWatchNarrowWidth};
_.jtr=function(G){return G.watch.openEngagementPanels};
gR=function(G,b){return _.Gi(G.entities,"likeStatusEntity",b)};
lBX=function(G,b){return _.Gi(G.entities,"likeCountEntity",b)};
_.mNX=function(G,b){return _.Gi(G.entities,"stringEntity",b)};
e7q=function(G,b){return _.Gi(G.entities,"dataFreshnessEntity",b)};
VpO=function(G,b){if(!G)return!1;var I,h=(I=_.g(G,_.b9))==null?void 0:I.signal;if(h&&b.signalEndpointMap)return!!b.signalEndpointMap[h];var q;if((I=(q=_.g(G,_.Aa))==null?void 0:q.request)&&b.continuationEndpointMap)return!!b.continuationEndpointMap[I];for(var l in G)if(b.commandEndpointMap[l])return!0;return!1};
DNr=function(G,b){if(b.streamingEndpointMap)for(var I in G)if(b.streamingEndpointMap[I]&&(G=b.streamingEndpointMap[I]))return G()};
cmq=function(G,b){var I,h=(I=_.g(G,_.b9))==null?void 0:I.signal;if(h&&b.signalEndpointMap&&(I=b.signalEndpointMap[h]))return I();var q;if((I=(q=_.g(G,_.Aa))==null?void 0:q.request)&&b.continuationEndpointMap&&(q=b.continuationEndpointMap[I]))return q();for(var l in G)if(b.commandEndpointMap[l]&&(G=b.commandEndpointMap[l]))return G()};
k_d=function(G){var b={"Content-Type":"application/json"};_.wy("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=_.wy("EOM_VISITOR_DATA"):_.wy("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=_.wy("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=_.wy("LOGGED_IN",!1);_.wy("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=_.wy("DEBUG_SETTINGS_METADATA"));if(G!=="cors"){var I=_.wy("INNERTUBE_CONTEXT_CLIENT_NAME");I&&(b["X-Youtube-Client-Name"]=I);(I=_.wy("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
I);(I=_.wy("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=I);(I=_.wy("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=I)}_.Sk("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(G=_.wy("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(b["X-YouTube-Lava-Device-Context"]=G):G!=="cors"&&_.Sk("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(G=_.wy("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(b["X-YouTube-Lava-Device-Context"]=G);return b};
vCp=function(G,b){b.watchNextResponse||b.reelItemWatchResponse?b.watchNextResponse?G.content=b.watchNextResponse:G.content=b.reelItemWatchResponse:b.playerResponse?G.player=b.playerResponse:b.reelWatchSequenceResponse&&(G.reelSequence=b.reelWatchSequenceResponse)};
MK=function(G){return function(){return new G}};
ZG=function(G){var b=_.LL();return function(){return b.resolve(G)}};
_.ta=function(G){if(!G)return null;for(var b=[],I=0;I<G.textSegments.length;I++){var h=G.textSegments[I];h.text?b.push(h):h.emojiId&&b.push({emoji_id:h.emojiId})}return{text_segments:b}};
TfO=function(G,b,I,h,q,l,V){l=l===void 0?[]:l;var D=new _.zB;D.endpoint=I;if(!I)return _.u6(new _.Wf("handle undefined endpoint",b.tagName)),D;var k=mts(I);k.length&&(_.Su(G,k,b,h),D.actions=k);I.loggingUrls&&I.loggingUrls.forEach(function(x){x.baseUrl&&b6(x.baseUrl,x.attributionSrcMode)});
k=!_.U("web_skip_impression_click_killswitch")&&h&&h.impression;if(I.clickTrackingParams&&!LRa(I)&&!Qtq(b)&&!k&&(k=_.qo(),!_.or(k,b))){var L=b.getScreenLayer&&b.getScreenLayer();L?k.clickCommand(I,null,L):k.clickCommand(I,null)}k=!1;for(L=0;L<l.length;L++)if((0,l[L])(b,I,h)){k=!0;break}!k&&xNO(I)&&(D.ajaxPromise=fBv(G,b,I,h,q,V));return D};
Qtq=function(G){var b;return(G=(b=G.data)==null?void 0:b.navigationEndpoint)&&!!G.clickTrackingParams};
LRa=function(G){var b=_.g(G,_.b9);if(b&&(b=b.signal)&&Bfa.indexOf(b)>=0)return!0;for(var I in G)if(UNO.indexOf(I)>=0)return!0;return!1};
xNO=function(G){var b;if(((b=_.g(G,_.b9))==null?void 0:b.signal)==="CLIENT_SIGNAL")return!1;for(var I in G)if(sts.indexOf(I)>=0)return!1;G=Object.keys(G);return G.length===1&&G[0]==="loggingUrls"?!1:!0};
Pws=function(G,b,I,h,q,l,V){var D=_.ik.instance;if(D&&_.PN(D,h))var k=_.dR(D,h,q).then(function(x){return(x==null?0:x.data)?x:{data:x}});
else k=G.requestDataForServiceEndpoint(h,q),_.g(h,gCd)||_.g(h,AmO)||_.g(h,_.MpO)||_.g(h,ZBu)||_.RB(new _.Wf("No RequestBuilder for endpoint",h));var L=_.yO();L.promise.thenCatch(function(){var x=_.Rj(h,"action")||_.Rj(h,"command")||_.Rj(h,"endpoint");x&&(x=h[x],x.hasOwnProperty("onFailureAction")?_.Su(b,[x.onFailureAction],I):x.hasOwnProperty("onFailureCommand")&&_.Su(b,x.onFailureCommand,I));k.cancel("Resolver promise rejected")});
k.then(function(x){if(x){var f=x.error;if(f){if(l&&l.onServerError)l.onServerError(h,x);L.reject(new _.Wf("Response error",h,f))}else if(x=x.data)if(f=x.error){if(l&&l.onServerError)l.onServerError(h,x);L.reject(new _.Wf("Returned error",h,f))}else{tpq(b,I,x,h);z7v(x);if(f=lap(x))for(var T=_.e(f),B=T.next();!B.done;B=T.next()){B=B.value;var A=_.LL().resolve(_.vf(oCa))||iBp;if(!_.ik.instance||!A.some(function(y){return!!_.g(h,y)})||_.U("kevlar_response_processor_allowlist_killswitch")){var t=A=void 0;
((t=_.g((A=B)==null?void 0:A.commandMetadata,_.IW))==null?0:t.sendPost)?_.pv(b,[B]):_.Su(b,[B],I)}}(T=_.g(x==null?void 0:x.frameworkUpdates,rR))&&V&&V(T);if(l&&l.onSuccess)l.onSuccess(h,x);L.resolve(new _.WN(x,f))}}else L.reject(new _.Wf("Invalid service endpoint provided",h))},function(x){L.reject(x)});
return L.promise};
z7v=function(G){var b;(G=(b=_.g(G==null?void 0:G.onResponseReceivedCommand,_.dNO))==null?void 0:b.continuationItems)&&(G==null?void 0:G.length)===1&&_.g(G[0],ymr)&&_.sS("so_r",void 0,"search_overview_answer")};
fBv=function(G,b,I,h,q,l){var V;return(V=b.getNetworkManager&&b.getNetworkManager()?b.getNetworkManager():_.LL().resolve(_.vf(_.cy)))?Pws(V,G,b,I,h,q,l):_.vv("No network manager.")};
tpq=function(G,b,I,h){if(I=I.trackingParams||I.loggingDirectives&&I.loggingDirectives.trackingParams){var q;(_.g(h,_.ar)||_.g(h,rmB)||_.g(h,FRr))&&h.clickTrackingParams?q=_.VB(h.clickTrackingParams):_.U("web_graft_to_parent_command")&&h.clickTrackingParams&&(q=_.VB(h.clickTrackingParams));var l;h=(l=b.getScreenLayer)==null?void 0:l.call(b);b=_.qo().graftServerVe(I,q,h);_.E3(G,"yt-store-grafted-ve-action",[b])}};
_.HBj=function(G){var b=new Image;return new _.MB(function(I,h){b.addEventListener("load",function(){I()});
b.addEventListener("error",function(){h()});
b.src=G})};
WRs=function(G){return!!G};
aBp=function(G){return!!G};
Nfd=function(G,b,I){var h=G.rowIndex;h!==void 0&&_.E3(G.hostElement,"yt-section-reactive-dismissal",[h,b,I])};
_.NK=function(G,b,I){G=_.e(G);for(var h=G.next();!h.done;h=G.next()){h=h.value;if(h===b)break;for(var q=_.e(I),l=q.next();!l.done;l=q.next())if(l=l.value,h.tagName===l||!_.U("web_event_button_role_check_killswitch")&&h.role==="button"&&l==="BUTTON")return!0}return!1};
_.Yo=function(G,b,I){G=_.e(G);for(var h=G.next();!h.done;h=G.next()){h=h.value;if(h===b)break;for(var q=_.e(I),l=q.next();!l.done;l=q.next())if(h.id===l.value)return!0}return!1};
_.Kk=function(){var G=_.LL().resolve(_.vf(_.Ck));return G?(G=G.getCurrentPage())?_.Ja(G):null:null};
_.uk=function(){var G=_.Kk();if(!G){var b=_.LL().resolve(_.vf(_.Ck)),I=b?typeof b:"no page manager";b=b?b.getCurrentPage():null;I=new _.Wf("Player is missing when requested.",I,b?b.tagName:"no page");_.K1(I)}return G};
_.Ja=function(G){return G&&G.getPlayer?G.getPlayer():null};
Y7r=function(G,b){G={args:{raw_player_response:G}};b&&(G.args=Object.assign({},G.args,b));return G};
Cwv=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)}};
_.Jms=function(G,b){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}};b&&(G.clickTrackingParams=b);return G};
uLa=function(){return KRO||!!_.Ge("yt.player.Application")};
nCj=function(){return R7v||!!document.querySelector("link#player-css")};
w9u=function(){function G(){KRO=!0;OBB.resolve()}
var b,I;return _.c(function(h){OBB||(OBB=new _.G9,uLa()?G():(b=document.createElement("script"),b.addEventListener("load",G),I=_.N2(_.wy("PLAYER_JS_URL")),_.mf(b,I),document.head.appendChild(b)));return h.return(OBB.promise)})};
p9s=function(){function G(){R7v=!0;ECs.resolve()}
if(!ECs)if(ECs=new _.G9,nCj())G();else{var b=document.createElement("link");b.id="player-css";b.addEventListener("load",G);var I=_.N2(_.wy("PLAYER_CSS_URL"));_.DJ(b,I,"stylesheet");document.head.appendChild(b)}return ECs.promise};
S7u=function(){return uLa()&&nCj()?Promise.resolve([]):Promise.all([w9u(),p9s()])};
X9v=function(G,b,I){var h={args:{}};G&&(h.args.raw_player_response=G);b&&(h.args.raw_watch_next_response=b);I&&(h.args=Object.assign({},h.args,I));return h};
Iqu=function(G,b,I){var h=!1;h=h===void 0?!0:h;G=typeof G==="string"?_.Rr(document,G):G;var q=$Gr+"_"+_.Ej(G),l=G6a[q];if(l&&h)return bZj(b,I)?l.api.loadVideoByPlayerVars(b.args||null):l.loadNewVideoConfig(b),l.api;l=new nk(G,q,b,I,void 0);G6a[q]=l;l.addOnDisposeCallback(function(){delete G6a[l.getId()]});
return l.api};
bZj=function(G,b){return b&&b.serializedExperimentFlags?b.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):G&&G.args&&G.args.fflags?G.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
hfO=function(){var G=new _.G9;G.resolved=!1;var b=G.resolve;G.resolve=function(I){G.resolved=!0;b(I)};
return G};
jhB=function(G){var b={};q_a().install((b.document_disposed={callback:G},b))};
Od=function(G,b){if(!G&&Math.random()<=_.Te("kevlar_unified_player_logging_threshold")){G=Error("uh`"+(b?b:"Unspecified error"));if(_.U("kevlar_unified_player_throw_errors"))throw G;_.RB(G)}};
_.lqO=function(){var G=_.Ge("ytDebugData.callbacks");G||(G={},_.cz("ytDebugData.callbacks",G));return G};
efd=function(G,b){var I=_.lqO();if(_.U("web_dd_iu")||mG2.includes(G))I[G]=b};
Vrp=function(){return _.c(function(G){return G.return({isLeader:_.Rdq(_.Cw().getState()),c:_.wy("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.wy("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
DGp=function(){var G;_.c(function(b){if(b.nextAddress==1)return efd("APP_STATE",Vrp),b.yield(_.LL().resolve(_.wR),2);G=b.yieldResult;efd("PI",function(){return _.c(function(I){return I.return(G.getVideoStats())})});
_.ip(b)})};
cDj=function(G){return!!G&&G.length>0&&G[0].loggingUrls!=null&&G[0].loggingUrls.length>0};
k6j=function(){var G=_.wy("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(G==null?void 0:G.length)===2?G[1]:null};
v5r=function(G){if(!G)return[];var b=[];G=_.e(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.loggingUrls){I=_.e(I.loggingUrls);for(var h=I.next();!h.done;h=I.next())h=h.value,h.baseUrl&&b.push(h.baseUrl)}return b};
Lds=function(G){var b=_.Yc(_.dL(_.hd.location.href));G=_.Yc(_.dL(G));return _.U("kevlar_clear_non_displayable_url_params")?b==Ed(G):Ed(b)==Ed(G)};
Ed=function(G){var b=_.Qhj(G);G=G.slice(0);var I=["frags"];_.U("kevlar_hide_pp_url_param")&&I.push("pp");_.U("kevlar_hide_time_continue_url_param")&&I.push("time_continue");I=_.e(I);for(var h=I.next();!h.done;h=I.next())h=h.value,G=_.J_(_.Yc(G),h);return _.Yc(G)+(b?"#"+b:"")};
pk=function(G,b){b=Number(b)*1E3;var I=Math.round((0,_.Li)()),h=I.toString();G={innertubeResponse:G,serverDateTimestampMs:h,lastModifiedTimestampMs:h,expireTimestampMs:(I+b).toString()};if(b=_.wy("INNERTUBE_CONTEXT_CLIENT_NAME"))G.clientName=b;return G};
fqj=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++xGu};
Twr=function(G){return!isNaN(G)&&G>0};
UGO=function(){_.U("web_adaptive_repeat_ase")&&BwO&&_.C1("applicationStarted",BwO)};
_.sh2=function(){var G=_.s3(),b=_.gL();b&&G&&_.HT(b,[G],!0)};
ADO=function(G){return G&&g5O.some(function(b){return G.includes(b)})};
iZs=function(G){var b=_.g(G,_.bx);if(!b)return!1;var I=b.url,h=b.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!I)return _.K1(Error("zh")),!1;if(b.target==="TARGET_NEW_WINDOW"){b={};_.U("resolve_url_parent_tracking_params")&&(!_.VE(I)||DU(window.location.href,I))&&(b={endpoint:G,itct:G.clickTrackingParams});G5O(b);G=null;try{if(h){a:{var q=I,l=b;h=h===void 0?!1:h;l&&_.Cv(q,l);var V=_.KA(q),D=_.aI(V);q!=D&&_.bB(Error("Yf`"+q));q=D;try{if(h){D=q;D=KNO(D);ZL(D);G=_.bp(window,D,"_blank",
"attributionsrc");break a}}catch(T){_.Xj(T)}ZL(q);G=_.bp(window,V,"_blank")}Mrr(_.LL().resolve(ZZX),G,I);return!0}}catch(T){_.K1(T)}_.Cv(I,b);b={target:"_blank",noopener:!1};V=window;D=Wg(I)?I:_.KA(typeof I.href!="undefined"?I.href:String(I));h=self.crossOriginIsolated!==void 0;G="strict-origin-when-cross-origin";window.Request&&(G=(new Request("/")).referrerPolicy);q=b.noreferrer;if(h&&q&&G==="unsafe-url")throw Error("ve");G=q&&!h;q=b.target||I.target;l=[];var k=[],L=!1;for(f in b){var x=b[f];switch(f){case "width":case "height":case "top":case "left":l.push(f+
"="+x);break;case "target":break;case "noopener":case "noreferrer":x?k.push(f):(L=!0,k.push(f+"=false"));break;case "attributionsrc":l.push(f+(x?"="+x:""));break;default:l.push(f+"="+(x?1:0))}}var f=q!==void 0&&!["_blank","_self","_top","_parent",""].includes(q);f=Zr()&&f;trO&&h&&l.length===0&&k.length>0&&!f&&!L?(k.length===2&&(k=["noreferrer"]),_.bp(V,D,q,k[0]),G=zfd()):(f=l.join(","),_.dX()&&V.navigator&&V.navigator.standalone&&q&&q!="_self"?(f=_.ol("A"),Ov(f,D),f.target=q,G&&(f.rel="noreferrer"),
((b=b.attributionsrc)||b==="")&&f.setAttribute("attributionsrc",b),b=document.createEvent("MouseEvent"),b.initMouseEvent("click",!0,!0,V,1),f.dispatchEvent(b),f=zfd()):G?(f=_.bp(V,"",q,f),V=_.aI(D),f&&(f.opener=null,V===""&&(V="javascript:''"),V='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Sh(V)+'">',V=Ev(V),(b=f.document)&&b.write&&(b.write(Xa(V)),b.close()))):((f=_.bp(V,D,q,f))&&b.noopener&&(f.opener=null),f&&b.noreferrer&&(f.opener=null)),G=f);Mrr(_.LL().resolve(ZZX),
G,I);return!0}f=_.tB(I);f=ADO(f)||I==="https://studio.youtube.com/";if(_.VE(I)&&!DU(window.location.href,I)||f)ZL(I),fU(),_.tL(I,void 0,void 0,window.top,o5j);else return _.RB(new _.Wf("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",G)),!1;return!0};
_.yDO=function(G,b){b=b===void 0?0:b;if(!(_.g(G,PJB)||_.g(G,dGO)||_.g(G,_.bx)&&_.g(G,_.bx).url))return!1;var I,h=(I=_.g(G,_.bx))==null?void 0:I.url;I=h?{externalLinkData:{url:h}}:null;return _.qo().clickCommand(G,I,b)};
Fd2=function(G,b,I,h,q){q=q===void 0?{}:q;return function(l){var V,D;var k=((V=G.loggingDirectives)==null?0:(D=V.clientVeSpec)==null?0:D.uiType)?_.Xs(G.loggingDirectives.clientVeSpec.uiType):void 0;q.clickedVisualElement||(q.clickedVisualElement=k);k=rD2(G,b);I(k,l);k=_.e(k);for(V=k.next();!V.done;V=k.next()){V=V.value;D=h;var L=l,x=q;x.form?x.form.event=L:x.form={element:D,event:L};lk(V,x)}}};
rD2=function(G,b){var I=[];b?(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};
HZO=function(G,b){var I=G.toggledStyle||G.style,h;switch((h=b?I:G.style)==null?void 0:h.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"}}};
_.$U=function(){return _.c(function(G){return G.nextAddress==1?G.yield(_.LL().resolve(_.wR),2):G.return(_.LL().resolve(Wdd)())})};
_.GZ=function(){return _.LL().resolve(Wdd)()};
_.IZ=function(){return uM(function(){return{lottieEl:void 0}})};
aqa=function(G,b){return G.startsWith(b.uniqueId)};
Nwu=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return h.yield(_.$U(),2);b=h.yieldResult;if((I=b)==null||!I.addEventListener)return hW(),h.return();b.addEventListener("onCueRangeEnter",G);_.ip(h)})};
Y_X=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return h.yield(_.$U(),2);b=h.yieldResult;if((I=b)==null||!I.removeEventListener)return hW(),h.return();b.removeEventListener("onCueRangeEnter",G);_.ip(h)})};
CJd=function(G){var b,I,h,q,l;_.c(function(V){if(V.nextAddress==1)return V.yield(_.$U(),2);b=V.yieldResult;if((I=b)==null||!I.addCueRange)return hW(),V.return();h=_.e(G.timings);for(q=h.next();!q.done;q=h.next())l=q.value,b.addCueRange(G.uniqueId+"-"+l,l/1E3,(l+100)/1E3);_.ip(V)})};
JDv=function(G){var b,I,h,q,l;_.c(function(V){if(V.nextAddress==1)return V.yield(_.$U(),2);b=V.yieldResult;if((I=b)==null||!I.removeCueRange)return hW(),V.return();h=_.e(G.timings);for(q=h.next();!q.done;q=h.next())l=q.value,b.removeCueRange(G.uniqueId+"-"+l);_.ip(V)})};
Kda=function(){var G,b,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(_.$U(),2);G=h.yieldResult;if((b=G)==null||!b.getPlayerState)return hW(),h.return();I=G.getPlayerState();return h.return(I===2)})};
hW=function(){_.RB(new _.Wf("Smartimation player does not exist or is corrupted"))};
uCp=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(b){return _.RB(new _.Wf("Smartimation CSS.supports threw an error")),!1}};
S_2=function(G,b,I,h,q){var l=G.playlistId?RfO:n5u;b=b();I=I();q=!!G.videoId&&q()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Vg(b))return OZu({data:G,actionType:l,disabled:q},I);if(G.videoId&&h())return wlB({data:G,actionType:l,disabled:q});switch(b){case "TRANSFER_STATE_UNKNOWN":return wlB({data:G,actionType:l,disabled:q});case "TRANSFER_STATE_FAILED":return G.videoId?E5v({data:G,actionType:l,disabled:q}):plr({data:G,actionType:l,disabled:q});case "TRANSFER_STATE_COMPLETE":return plr({data:G,
actionType:l,disabled:q});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return OZu({data:G,actionType:l,disabled:q},I);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return G.videoId?E5v({data:G,actionType:l,disabled:q}):wlB({data:G,actionType:l,disabled:q});default:return wlB({data:G,actionType:l,disabled:q})}};
Xlj=function(G,b){var I=G.onTapCommand,h=_.s0(I);if(G.videoId&&_.g(h,_.qt))return _.g(h,_.qt).action=b,I;G.playlistId&&_.g(h,_.jK)&&(_.g(h,_.jK).action=b);return I};
wlB=function(G){var b=G.data;var I=G.actionType;G=G.disabled;return{text:$uO,iconType:"OFFLINE_DOWNLOAD",onTap:Xlj(b,I.ACTION_ADD),disabled:G}};
OZu=function(G,b){var I=G.data;var h=G.actionType;G=G.disabled;var q="OFFLINE_DOWNLOAD";b>=0&&b<=.1?q="OFFLINE_DOWNLOADING_ZERO":b>.1&&b<=.3?q="OFFLINE_DOWNLOADING_TWENTY":b>.3&&b<=.5?q="OFFLINE_DOWNLOADING_FORTY":b>.5&&b<=.7?q="OFFLINE_DOWNLOADING_SIXTY":b>.7&&b<1?q="OFFLINE_DOWNLOADING_EIGHTY":b===1&&(q="OFFLINE_PIN");return{text:Gjr,iconType:q,onTap:Xlj(I,h.ACTION_REMOVE_WITH_PROMPT),disabled:G}};
plr=function(G){var b=G.data;var I=G.actionType;G=G.disabled;return{text:btp,iconType:"OFFLINE_PIN",onTap:Xlj(b,I.ACTION_REMOVE_WITH_PROMPT),disabled:G}};
E5v=function(G){var b=G.data;var I=G.actionType;G=G.disabled;return{text:I62,iconType:"OFFLINE_DOWNLOAD",onTap:Xlj(b,I.ACTION_RETRY),disabled:G}};
_.lA=function(G,b){var I=G2r();return _.P$(function(){I();return htd(G,[_.n0(b)||""])},{debugName:"LUZslf"},"Z105t")};
h$p=function(G){var b=_.lA(_.Z0,function(){return G().videoId}),I=_.lA(_.tQ,function(){return G().playlistId});
return function(){return G().videoId?b:G().playlistId?I:_.e(_.ZZ("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
qV2=function(G){var b=_.lA(zi,function(){return G().videoId}),I=_.lA(_.uGq,function(){return G().playlistId});
return function(){return G().videoId?b:G().playlistId?I:_.e(_.ZZ(0,void 0,"K4tgOc")).next().value}};
jyq=function(G){var b=_.lA(_.$Tq,function(){return G().videoId});
return function(){return G().videoId?b:_.e(_.ZZ(!1,void 0,"Oaxwcf")).next().value}};
l6O=function(G){var b=_.lA(OPa,function(){return G().videoId});
return function(){return G().videoId?b:_.e(_.ZZ("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
muO=function(){return{}};
_.kjB=function(G,b,I){return{submitForm:function(){var h,q,l,V;return _.c(function(D){if(D.nextAddress==1){h=e$s(G());if(!h)return D.return();if(h.onSubmit)return V4r(b),h.onSubmit(),V4r(I),D.return();if(!h.submitConfig||!h.formData)return D.jumpTo(0);h.disableDuringSubmission&&DuO(G(),!0);V4r(b);return D.yield(cTa(h.submitConfig,h.formData()),3)}q=D.yieldResult;V4r(I);if(((l=q)==null?0:l.submitResult)&&((V=h)==null?0:V.onSubmitResult))h.onSubmitResult(q.submitResult);h.disableDuringSubmission&&DuO(G(),
!1);return D.return()})},
isValid:function(){var h=e$s(G());if(h){var q;return!((q=h.isValid)==null||!q.call(h))}return!0},
isSubmitting:function(){var h,q;return!!((h=e$s(G()))==null?0:(q=h.isSubmitting)==null?0:q.call(h))}}};
_.mA=function(){if(!v$O){var G=_.e(_.ZZ(new Map,void 0,"Y1XnBc"));v$O=G.next().value;LmB=G.next().value}return v$O};
_.Qyv=function(G){LmB(new Map(G))};
e$s=function(G){if(G)return _.mA()().get(G)};
cTa=function(G,b){var I;return _.c(function(h){return h.nextAddress==1?b?(I=_.LL().resolve(_.vf(xur)))&&G.submitId?h.yield(I.submitForm(G.submitId,b,f6O,G.params,G.clickTrackingParams),2):h.return(Promise.reject(Error("Bh"))):h.return(Promise.reject(Error("Ah"))):h.return(h.yieldResult)})};
DuO=function(G,b){if(G){var I=_.mA();I().set(G,Object.assign({},I().get(G),{isSubmitting:function(){return b}}));
_.Qyv(I())}};
V4r=function(G){if(G){var b=_.LL().resolve(_.xW);b&&(G=_.s0(G()))&&b.resolveCommand(G)}};
UuO=function(G,b){b=b===void 0?{shouldPersist:!0}:b;return{useUpdatableData:function(I,h){var q=_.P$(function(){return G(I())},void 0,"Gmrblb"),l=T6r(I,q,h,b);
_.K0(function(){if(q()!=null){B6O.set(q(),l);var V=q();_.uI(function(){B6O.delete(V)})}},"j4hx9b");
return l},
getData:function(I){var h;return(h=B6O.get(G(I)))==null?void 0:h[0]()},
updateData:function(I,h){I=G(I);I=B6O.get(I);if(!I)return!1;var q=_.e(I);I=q.next().value;q=q.next().value;h=h(I());q(h);return!0}}};
T6r=function(G,b,I,h){h=h===void 0?{}:h;var q=_.e(_.bk(function(){var D=G(),k=b();return syX(D,k,I,h)})),l=q.next().value,V=q.next().value;
return[l,function(D){V(D);var k=b();if(h.shouldPersist&&k!=null){var L,x=(L=I==null?void 0:I.map(function(f){return f()}))!=null?L:[];
_.eK.set(k,[D,x])}}]};
syX=function(G,b,I,h){h=h===void 0?{}:h;if(b==null||!h.shouldPersist)return G;h=_.eK.get(b);if(!h)return G;var q=_.e(h);h=q.next().value;var l=q.next().value,V;q=(V=I==null?void 0:I.map(function(D){return D()}))!=null?V:[];
if((l==null?0:l.length)&&(I==null?0:I.length)&&q.some(function(D,k){return D!==l[k]}))return _.eK.remove(b),G;
(I==null?0:I.length)&&_.eK.set(b,[h,q]);return h};
g$p=function(G){var b=_.e(_.ZZ(!0,void 0,"bKtO6d")),I=b.next().value;b.next();return function(){var h=iM(G.children());return _.v(_.Q,{cond:I,then:function(){return h},
else:G.fallback})}()};
_.VX=function(G){var b=AT2(G),I=b.data,h=b.mapping,q=b.wrapper;b=b.pendingFallback;var l=function(){return M4p(_.n0(I))},V=function(){var D=l(),k=[];
D=_.e(D);for(var L=D.next();!L.done;L=D.next()){var x=void 0;L=L.value;var f=void 0;for(x in L)if(!(!L).hasOwnProperty(x)){f=x;break}(x=f)&&k.push(x)}return k};
return G.data?_.v(g$p,{fallback:b},function(){return _.v(_.aj,{each:V},function(D,k){var L=q?function(f){return q(function(){return h[D](f,k)},x,k)}:function(f){return h[D](f,k)};
L.debugName||(L.debugName=String(D));if(!h[String(D)])return document.createComment("");L.componentType!==rv&&Zt2(String(D));var x=t4B(l,D,k);return _.v(L,{data:x})})}):_.v(_.xz,null)};
AT2=function(G){var b=G.targetId||z$p(G.children);if(!G.data||!b)return Object.assign({},G,{mapping:G.children});var I="stamper-"+o$v++,h=function(){var D;return(D=typeof G.targetId==="function"?G.targetId(I):G.targetId)!=null?D:I};
b=_.e(its(function(){var D=M4p(G.data());D.targetId=h;return D})).next().value;
var q=Object.assign({},(_.LL().resolve(_.vf(PyO))||{}).replaceableMapping,G.children);if(G.replacementWrapper){var l=q.notificationTextRenderer,V=q.notificationMultiActionRenderer;l&&(q.notificationTextRenderer=function(D,k){return G.replacementWrapper(l({data:D.data},k))});
V&&(q.notificationMultiActionRenderer=function(D,k){return G.replacementWrapper(V({data:D.data},k))})}return Object.assign({},G,{data:b,
mapping:q,wrapper:function(D,k,L){return q6s({targetId:h,stamperIndex:L},G.wrapper?function(){return G.wrapper(D,k,L)}:D)}})};
t4B=function(G,b,I){var h;return _.P$(function(){var q=G()[I()];if(q)h=q[b];else return _.RB(new _.Wf("Stamper failed to find "+String(b)+" at index "+I()+" of data array of length "+(G().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),h;return q[b]},void 0,"AtsHlc")};
z$p=function(G){G=_.e(Object.keys(G));for(var b=G.next();!b.done;b=G.next())if(b=b.value,dus.includes(b)||yTa.includes(b)||rTu.includes(b))return!0;return!1};
M4p=function(G){return G?Array.isArray(G)&&G instanceof Array?G:[G]:[]};
Zt2=function(G){if(_.U("web_enable_renderer_logger")){var b;(b=_.LL().resolve(_.vf(Fmp)))!=null&&b.loggingEnabled&&!b.ids.has(G)&&b.ids.add(G)}};
Htv=function(){var G,b;return(b=(G=_.LL().resolve(_.vf(_.Pv)))==null?void 0:G())!=null?b:!1};
a6j=function(G,b){G=G===void 0?Wmp:G;switch(b.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},G,{isOpen:b.payload});default:return G}};
YVp=function(G,b){G=G===void 0?N6j:G;switch(b.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},G,{isAllowed:b.payload});default:return G}};
JTs=function(G,b){G=G===void 0?Cy2:G;switch(b.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},G,{errorMessage:b.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},G,{title:b.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},G,{privacy:b.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},G,{isDisabled:b.payload});default:return G}};
u22=function(G,b){G=G===void 0?Kmr:G;switch(b.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},G,{isOpen:b.payload});default:return G}};
n$B=function(G,b){G=G===void 0?R$O:G;switch(b.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},G,{isFullscreen:b.payload});case "SET_NAVIGATION_BUTTON":var I=b.payload.targetId,h=Object.assign({},G.navigationButtons);h[I]=b.payload.button;return Object.assign({},G,{navigationButtons:h});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},G,{topPanelId:b.payload});case "SET_SECONDARY_HEADER":return I=b.payload.panelId,h=Object.assign({},G.secondaryHeader),h[I]=b.payload.secondaryHeader,
Object.assign({},G,{secondaryHeader:h});default:return G}};
pMs=function(){return i4(Object.assign({},{voiceSearch:sFB,engagementPanel:n$B,bottomSheet:a6j,cinematicSetting:YVp,shorts:i9s,drawerLayout:u22,createPlaylist:JTs,locationCollection:Otr,reportChannel:wMp,reportForm:E$B},P7j))};
SVr=function(G,b){_.uu.addLowPriorityJob(function(){var I,h,q;return _.c(function(l){switch(l.nextAddress){case 1:return _.gm(l,2),l.yield(PKa(),4);case 4:return l.yield(fetch(G),5);case 5:return I=l.yieldResult,l.yield(I.json(),6);case 6:h=l.yieldResult;ko.set(G,h);requestAnimationFrame(function(){b(h)});
_.hF(l,0);break;case 2:q=_.zf(l),_.RB(q),_.ip(l)}})})};
XMd=function(G){var b={animationConfig:{},listeners:{}},I=function(){G(!0)};
b.listeners.data_failed=I;b.listeners.error=I;b.listeners.data_ready=function(){G(!1)};
return b};
brB=function(G){var b=G.model;var I=G.subscribed;var h=G.isOverlay;var q=G.element;var l=G.commandController;var V=G.notificationState;if(I){var D,k;var L=(b==null?void 0:(D=b.buttonStyle)==null?void 0:D.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:b==null?void 0:(k=b.unsubscribeButtonContent)==null?void 0:k.buttonText}else{var x;L=b==null?void 0:(x=b.subscribeButtonContent)==null?void 0:x.buttonText}a:{var f;switch(b==null?void 0:(f=b.buttonStyle)==
null?void 0:f.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":D="S";break a;default:D="M"}}a:if(h)h="overlay";else switch(b.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":h="overlay";break a;default:h="mono"}a:if(I)var T="tonal";else switch((T=b.buttonStyle)==
null?void 0:T.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":T="tonal";break a;default:T="filled"}return{style:h,type:T,state:b.disableSubscribeButton?"disabled":"active",size:D,focused:G.focused,toggled:I,accessibilityLabel:$xO(b,I,V),buttonText:L,iconPosition:b.disableNotificationBell?"none":"leading-trailing",onTap:GoB(b,I,q,l),disableTextEllipsis:!!G.disableTextEllipsis}};
GoB=function(G,b,I,h){return function(q){if(b){var l;var V=G.disableNotificationBell?_.s0(G==null?void 0:(l=G.unsubscribeButtonContent)==null?void 0:l.onTapCommand):_.s0(G==null?void 0:G.onShowSubscriptionOptions)}else{var D;V=_.s0(G==null?void 0:(D=G.subscribeButtonContent)==null?void 0:D.onTapCommand)}V&&lk(V,{form:{element:I==null?void 0:I.value},commandController:h});q.stopPropagation()}};
$xO=function(G,b,I){if(b){if(G==null?0:G.disableNotificationBell){var h;return G==null?void 0:(h=G.unsubscribeButtonContent)==null?void 0:h.accessibilityText}switch(I){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var q;return G==null?void 0:(q=G.bellAccessibilityData)==null?void 0:q.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var l;return G==null?void 0:(l=G.bellAccessibilityData)==null?void 0:l.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var V;return G==null?void 0:(V=
G.bellAccessibilityData)==null?void 0:V.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var D;return G==null?void 0:(D=G.bellAccessibilityData)==null?void 0:D.disabledLabel;default:var k;return G==null?void 0:(k=G.unsubscribeButtonContent)==null?void 0:k.accessibilityText}}else{var L;return G==null?void 0:(L=G.subscribeButtonContent)==null?void 0:L.accessibilityText}};
I3X=function(G,b){return _.Gi(G.entities,"subscriptionStateEntity",b)};
hiX=function(G,b){return _.Gi(G.entities,"subscriptionNotificationStateEntity",b)};
qtq=function(G,b){return _.Gi(G.entities,"upcomingEventReminderStateEntity",b)};
j22=function(G,b){return _.Gi(G.entities,"commentEntityPayload",b)};
l3a=function(G,b){return _.Gi(G.entities,"engagementToolbarSurfaceEntityPayload",b)};
mxu=function(G,b){return _.Gi(G.entities,"triStateButtonStateEntityPayload",b)};
eiO=function(G,b){return _.Gi(G.entities,"commerceCartCheckoutButtonEntity",b)};
V5O=function(G,b){return _.Gi(G.entities,"commandEntity",b)};
Dxp=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}};
c0q=function(G,b,I){I.subscribed!==b&&((I=I.key)&&_.W5(_.Da("subscriptionStateEntity",I,{key:I,subscribed:b})),G.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:b})),b||_.wL(G,"yt-unsubscribe-action"))};
vHq=function(G){G=_.g(_.s0(G),_.cH);var b,I,h,q;return(q=_.g(G==null?void 0:(b=G.panelLoadingStrategy)==null?void 0:(I=b.inlineContent)==null?void 0:(h=I.sheetViewModel)==null?void 0:h.content,koX))==null?void 0:q.listItems};
LJB=function(G,b){if(G.onShowSubscriptionOptions&&b&&(G=vHq(G.onShowSubscriptionOptions),G!=null&&G.length)){var I=Dxp(b);G.forEach(function(h){h=_.g(h,_.kU);var q,l,V,D,k=h==null?void 0:(q=h.leadingImage)==null?void 0:(l=q.sources)==null?void 0:(V=l[0])==null?void 0:(D=V.clientResource)==null?void 0:D.imageName;h&&k&&(h.isSelected=k===I)})}};
Q2d=function(G,b,I,h){b&&I?G.style.width=I+"px":!b&&h&&(G.style.width=h+"px")};
xxu=function(G,b,I){var h;(h=G.lottieEl)==null||h.goToAndPlay(0);var q;(q=b.lottieEl)==null||q.goToAndPlay(0);_.vH(_.uu,function(){var l;(l=I.lottieEl)==null||l.goToAndPlay(0)},300)};
f3j=function(G){return!(G==null||!G.iconName||(G==null?0:G.title))};
TAr=function(G,b,I,h){I&&_.uu.cancelJob(I);I=_.uu.addLowPriorityJob(function(){h(void 0)},5E3);
h(I);b&&G!==(b.likeStatus==="LIKE")&&b.key&&_.W5(_.Da("likeStatusEntity",b.key,{key:b.key,likeStatus:G?"LIKE":"INDIFFERENT",hadUserInteraction:G}))};
_.BAv=function(G,b){return _.Gi(G.entities,"accountLinkStatusEntity",b)};
Uxu=function(G,b){return _.Gi(G.entities,"hatsSurveyEntity",b)};
s2j=function(G,b){return _.Gi(G.entities,"hatsSurveyStateEntity",b)};
gHO=function(G,b){return _.Gi(G.entities,"quantityIncrementerEntity",b)};
A0u=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}};
M5r=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}};
Zrp=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"}};
_.ziO=function(G){var b=_.Te("web_generic_client_event_wait_period ",0);b||(b=3E5);var I=t5r.get(G);!_.U("enable_web_client_experiment_event_timeout_killswitch")&&I&&(0,_.Li)()-I<b||(t5r.set(G,(0,_.Li)()),_.C1("genericClientExperimentEvent",{eventType:G}))};
_.oH2=function(G,b){var I,h,q,l;a:{var V=G.style;if(V===void 0)V=17;else switch(V){case "LIVE":V=18;break a;default:V=17}}return{type:V,text:b?qq2({seconds:b}):_.NO(G.text),accessibilityText:(I=G.text)==null?void 0:(h=I.accessibility)==null?void 0:(q=h.accessibilityData)==null?void 0:q.label,icon:(l=G.icon)==null?void 0:l.iconType}};
irv=function(G){switch(G){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
Pfa=function(G){if(!G)return"";var b,I=(b=_.LL().resolve(_.vf(_.Pv)))==null?void 0:b(),h;if(!I&&((h=G.vibrantColorPalette)==null?0:h.iconInactiveColor))return gq(G.vibrantColorPalette.iconInactiveColor,"1");var q;return I&&((q=G.darkColorPalette)==null?0:q.iconInactiveColor)?gq(G.darkColorPalette.iconInactiveColor,"1"):G.color?gq(G.color,"1"):G.sampledThumbnailColor?(G=G.sampledThumbnailColor,"rgba("+G.red+","+G.green+","+G.blue+");"):""};
_.LM=function(G,b){if(!G.includes("DATE_PLACEHOLDER"))return G;var I=new Date(0);I.setUTCSeconds(b);return G.replace("DATE_PLACEHOLDER",dxr(I))};
y0O=function(G,b,I){return function(h){var q=G.command;q&&(lk(q,{form:{element:I}}),b([q],h))}};
FJj=function(G,b,I,h,q){return function(l){var V=r0a(G,b);V&&lk(V,{form:{element:I},commandController:h});q&&l.stopPropagation()}};
r0a=function(G,b){if(G.signInEndpoint&&!_.U("web_subscribe_sign_in_endpoint_killswitch"))return G.signInEndpoint;if(b){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]}};
Hru=function(G,b){var I,h,q,l;b=b&&((I=G.unsubscribeAccessibility)==null?void 0:(h=I.accessibilityData)==null?void 0:h.label)||((q=G.subscribeAccessibility)==null?void 0:(l=q.accessibilityData)==null?void 0:l.label);return G.longSubscriberCountText?[b,_.NO(G.longSubscriberCountText)].filter(function(V){return V}).join(" "):b};
QX=function(G,b){return b||(G==null?0:G.isChannelDelegate)?"disabled":"active"};
WJp=function(G,b){var I;switch((I=G.style)==null?void 0:I.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:QX(G)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:QX(G)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:QX(G,!0)};case "OVERLAY":return b?{style:"overlay",type:"tonal",state:QX(G)}:{style:"overlay",type:"filled",state:QX(G)};default:return b?{style:"mono",type:"tonal",state:QX(G)}:{style:"mono",type:"filled",state:QX(G)}}};
_.xU=function(){for(var G=[],b=_.e(_.RI.apply(0,arguments)),I=b.next();!I.done;I=b.next())if(I=I.value)if(typeof I==="string")G.push(I);else{I=_.e(Object.entries(I));for(var h=I.next();!h.done;h=I.next()){var q=_.e(h.value);h=q.next().value;(q=q.next().value)&&G.push(h)}}return G.join(" ")};
a3j=function(G){switch(G){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
NAa=function(G){switch(G){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
YtX=function(G,b){var I=G.map(function(h){return h.toString()});
return _.Xu(function(h){if(I.includes(h.key)){b&&h.preventDefault();var q;(q=h.currentTarget)==null||q.click()}})};
_.Cfr=function(){return YtX(["Enter"])};
_.J0O=function(){return YtX(["Enter"," "],!0)};
_.fM=function(G){if(G.composedPath)return G.composedPath();if(!G.__composedPath){for(var b=[],I=G.target;I;)b.push(I),I=I.parentNode;b.push(window);G.__composedPath=b}return G.__composedPath};
_.TZ=function(G,b,I){G=_.e(G);for(var h=G.next();!h.done;h=G.next()){h=h.value;if(h===b)break;for(var q=_.e(I),l=q.next();!l.done;l=q.next())if(l=l.value,h.tagName===l||h.role==="button"&&l==="BUTTON")return!0}return!1};
ubd=function(G,b){var I,h=(I=b.observer)!=null?I:_.LL().resolve(vw);if(G){I=KJs(G);var q=[];b.showOption&&q.push(h.observe(G,function(){b.visibilityCallback(!0,G)},b.showOption));
b.hideOption&&q.push(h.observe(G,function(){b.visibilityCallback(!1,G)},b.hideOption));
b.prescanOption&&b.prescanCallback&&q.push(h.observe(G,function(){b.prescanCallback()},b.prescanOption));
var l;I.visibilityMonitorKeys=((l=I.visibilityMonitorKeys)!=null?l:[]).concat(q)}};
KJs=function(G){var b;return(b=G.polymerController)!=null?b:G};
_.U2=function(G){return!!_.BH(G)};
_.s2=function(G,b,I,h,q){return function(l){var V=hvX();_.K0(function(){if(l){Riv(l,G(),q);var D=nHs(l,G(),b,I,h,V);_.uI(D)}},"nr377e")}};
Riv=function(G,b,I){var h=Ors(b),q=wtq(b);b=h&&EHO;var l=q&&pta;(h||q)&&ubd(G,{visibilityCallback:function(V){var D=_.LL().resolve(_.xW);V&&h?D.resolveCommand(h,{form:{element:I?G:void 0},disableClickTracking:!0}):!V&&q&&D.resolveCommand(q,{form:{element:I?G:void 0},disableClickTracking:!0})},
showOption:b,hideOption:l})};
nHs=function(G,b,I,h,q,l){var V=new Map;if(b=_.BH(b)){var D;G=(h==null?void 0:(D=h.onTap)==null?void 0:D.value)||G;I=StB(b,G,I==null?void 0:I.onTap,q,l);G.addEventListener("click",I);V.set("click",I)}return function(){for(var k=_.e(V),L=k.next();!L.done;L=k.next()){var x=_.e(L.value);L=x.next().value;x=x.next().value;G.removeEventListener(L,x)}}};
_.BH=function(G){var b;return(G=(b=_.g(G,_.gQ))==null?void 0:b.onTap)&&_.s0(G)};
Ors=function(G){var b;return(G=(b=_.g(G,_.gQ))==null?void 0:b.onVisible)&&_.s0(G)};
wtq=function(G){var b;return(G=(b=_.g(G,_.gQ))==null?void 0:b.onHidden)&&_.s0(G)};
StB=function(G,b,I,h,q){var l=function(D){_.LL().resolve(_.xW).resolveCommand(G,D)},V=function(D){h&&_.TZ(_.fM(D),b,h)||l(D.target?{form:{element:D.target,
sourceData:G,mutationContext:q}}:void 0)};
I&&(V=function(D){I(D,l)});
return V};
Xtv=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}};
$mr=function(G){var b=G.numAvatarsInCluster;switch(G.clusterSize){case "small":return b===2?22:18;case "40":return b===2?24:22;default:return b===2?24:20}};
GMO=function(G,b){return function(I){var h=Object.keys(b);_.K0(function(){if(G!=null&&G()){for(var q=_.e(h),l=q.next();!l.done;l=q.next())l=l.value,I.addEventListener(l,b[l]);_.uI(function(){for(var V=_.e(h),D=V.next();!D.done;D=V.next())D=D.value,I.removeEventListener(D,b[D])})}},"bXZGfe")}};
bgr=function(G){switch($mr(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""}};
Itr=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""}};
hyd=function(G){switch($mr(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""}};
qwO=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""}};
jpd=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}};
ltq=function(G){return G==="medium"||G==="48"||G==="large"||G==="extra-large"||G==="extra-extra-large"||G==="giant"};
mmv=function(G){return!!((G==null?0:G.includes(3))||(G==null?0:G.includes(5)))};
V_a=function(G){var b=G.data;return{size:eyu(b.avatarImageSize),type:b.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}};
eyu=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"}};
DmO=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}};
cgO=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""}};
kMB=function(G){var b=G.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",I,h=G.avatars&&G.avatars.length>0?(I=_.g(G.avatars[0],_.AW))==null?void 0:I.avatarImageSize:"AVATAR_SIZE_UNKNOWN";I=DmO(h)||0;if(b){var q,l=(q=G.avatarClusterSize)!=null?q:"AVATAR_SIZE_M";b=DmO(l);var V,D,k=Math.min((D=(V=G.avatars)==null?void 0:V.length)!=null?D:0,4),L;return{avatars:((L=G.avatars)==null?void 0:L.slice(0,4))||[],avatarSizeInPx:I,avatarStackStyle:{width:b+"px",height:b+"px",position:"relative"},avatarStyle:function(f){var T=
$mr({clusterSize:eyu(l),numAvatarsInCluster:k,avatarIndex:f});var B=DmO(l);k===3&&f===2?(B=(B-T)/2,B=(_.wy("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*B):B=void 0;return{position:"absolute",top:k===2&&f===1||k===3&&f===2||k===4&&f>=2?"0":void 0,bottom:k===2&&f===0||k>2&&f<2?"0":void 0,left:k===2&&f===1||k>2&&(f===1||f===3)?"0":void 0,right:k<=3&&f===0||k===4&&(f===0||f===2)?"0":void 0,transform:B?"translateX("+B+"px)":void 0,width:T+"px",height:T+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(f){return{clusterSize:eyu(G.avatarClusterSize),numAvatarsInCluster:k,avatarIndex:f}},
avatarButtonCustomClassName:void 0}}var x;return{avatars:((x=G.avatars)==null?void 0:x.slice())||[],avatarSizeInPx:I,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:cgO(h),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
vDr=function(G,b,I){return function(){lk(G,{form:{element:b},commandController:I})}};
Ljv=function(G){switch(G){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
Qpv=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"}};
xma=function(G){if("accessibilityText"in G)return G.accessibilityText||"";if("title"in G){var b,I,h;return((b=G.title)==null?void 0:(I=b.accessibility)==null?void 0:(h=I.accessibilityData)==null?void 0:h.label)||""}if("accessibility"in G){var q,l;return((q=G.accessibility)==null?void 0:(l=q.accessibilityData)==null?void 0:l.label)||""}return""};
ft2=function(G){return"inlinePlayerData"in G};
Mt=function(G){return new T_O(G)};
B_O=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"}};
Ums=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}};
spv=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}};
gDs=function(G){return function(b){G&&(G.thumbnailElRef=b.thumbnailElRef,G.thumbnail=b.thumbnail,G.thumbnailOverlays=b.thumbnailOverlays,G.thumbnailSize=b.thumbnailSize)}};
AgO=function(G){switch(G){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
ZgB=function(G){var b=_.e(_.ZZ(!1,void 0,"E6wDDe")),I=b.next().value,h=b.next().value;_.K3(function(){var q=G==null?void 0:G();if(q){var l=_.LL().resolve(_.vf(M_j));if(l){var V={triggeringElement:q,onDwellTriggeredFn:function(){h(!0)},
onDwellEndFn:function(){h(!1)}};
l.registerElement(V);_.uI(function(){_.Za(l,V)})}}});
return I};
t_O=function(G,b,I){I?I(b):_.Zm(b,G.target?{form:{element:G.target}}:void 0)};
_.tW=function(G,b,I,h){return function(q){_.K0(function(){function l(x){x=x.composedPath();x=_.e(x);for(var f=x.next();!f.done;f=x.next()){f=f.value;if(f===q)break;if(f.className.indexOf("HostIsClickableAdComponent")>=0||f.tagName==="A".toString()||f.tagName==="BUTTON".toString())return!0}return!1}
var V=new Map,D,k=(D=G())==null?void 0:D.onTap;if(k){D=function(x){l(x)||t_O(x,k,b)};
var L=function(x){l(x)||x.key!=="Enter"||t_O(x,k,b)};
(I==null?0:I())||_.U("enable_web_home_top_landscape_image_layout_level_click")?(q.addEventListener("tap",D),V.set("tap",D)):(q.addEventListener("click",D),V.set("click",D));if(h==null?0:h())q.addEventListener("keydown",L),V.set("keydown",L)}_.uI(function(){for(var x=_.e(V),f=x.next();!f.done;f=x.next()){var T=_.e(f.value);f=T.next().value;T=T.next().value;q.removeEventListener(f,T)}})},"D7XqOc")}};
zyr=function(G,b){var I,h=(I=G.interaction)==null?void 0:I.onTap;if(G=_.AN({elementsCommand:h,forceNewState:!0,skipOnClick:!0}))return G.onclick=function(q){UWO(q)&&(q.preventDefault(),h&&t_O(q,h,b))},Mo(G)?G:void 0};
oDq=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"}};
igO=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"}};
PTs=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"}};
_.dmO=function(G){return _.U("rich_grid_enable_dynamic_offset")&&G?Math.max((G-_.Te("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Te("rich_grid_dynamic_offset_offset_per_100",10),_.Te("rich_grid_dynamic_offset_lower_bound",-60)):0};
ygj=function(G,b){switch(b){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}};
rgv=function(G){var b=G.originalContainerWidth;var I=G.sizing;var h=G.standardUnit;if(G.isCompactList&&b<528)return 1;switch(I){case "STANDARD":return h;case "COMPACT":return h+1;case "EXTRA_COMPACT":return _.U("web_responsive_extra_compact_2x")?h*2:_.U("web_responsive_current")?h===1?2:h%2===0?h/2*3:h+2:h<4?h*2:Math.ceil(h*3/2);case "MINI":return h>1?h*2:3;default:return h}};
Hg2=function(G){var b=G.containerWidth;var I=G.peek;var h=G.gutter;var q=G.numItems;G=G.ignoreMaxWidthLimit;b=I?Math.max((b-I-h*q)/q,0):Math.max((b-h*(q-1))/q,0);return G?b:Math.min(b,Fju)};
_.zZ=function(G){var b=G.containerWidth;var I=G.hasPeek;var h=G.sizing;var q=G.marginSettings;var l=G.isCompactList;var V=G.enableFullBleedForSingleCol;var D=G.standardUnitMinWidth;h=h||"STANDARD";I=!!I;G=b>=528?16:8;var k=I?b>=528?48:24:0;q=ygj(b,q);var L=Math.max(b-q*2,0);D=_.U("kevlar_disable_min_width_override")?void 0:D;D=Math.min(Math.max(Math.floor((L-k+G)/((D!=null?D:Wj2)+_.dmO(b)+G)),1),6);var x=(V=!!V&&D===1)||D===1&&h!=="STANDARD";I=I||x?L:Math.min(L,(Fju+G)*D-G);h=rgv({originalContainerWidth:b,
sizing:h,standardUnit:D,isCompactList:l});return{itemWidth:Hg2({containerWidth:I,peek:k,gutter:G,numItems:h,ignoreMaxWidthLimit:x}),gutter:G,maxContainerWidth:I,numItems:h,margin:V?0:q,contentMargin:ygj(b,1),typographyBump:Hg2({containerWidth:I,peek:k,gutter:G,numItems:D,ignoreMaxWidthLimit:x})>400&&!(l&&b<528),standardUnit:D}};
oZ=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"}};
_.atO=function(G){if(G){var b;if((b=G.responsiveContainerConfiguration)==null?0:b.responsiveSize)return oZ(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"}}};
N_O=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}};
uhO=function(G,b,I,h,q,l,V,D){a:if(G===4&&h==="LOCKUP_CONTENT_TYPE_SOURCE")var k=1;else switch(G){case 3:k=1;break a;default:k=0}a:switch(G){case 4:l=!!(l&&l<100);break a;default:l=!1}a:switch(G){case 3:case 4:var L=h==="LOCKUP_CONTENT_TYPE_CHANNEL"||h==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:L=!1}return{isOverlay:Ywr(G,h),isCard:CTj(h,V),sizing:b!=null?b:"STANDARD",typographyBump:I!=null?I:!1,isTiny:l,isCentered:L,isCollection:Jgj(h),arrangement:k,addMarginForFullbleed:G===1&&h!=="LOCKUP_CONTENT_TYPE_VIDEO",
fullbleed:G===1&&h==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:Kjr(h,q,D),disableRounding:G===5||CTj(h,V)||G===1&&h==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:Jgj(h)?2:0,useLegacyTypography:!(D==null||!D.useLegacyTypography),useRichGridLegacyTypography:!(D==null||!D.useRichGridLegacyTypography)&&!_.U("web_enable_typography_bump"),compactMetadata:k===0&&h==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:D==null?void 0:D.onFocusEffect,titleMaxLines:h==="LOCKUP_CONTENT_TYPE_AI_CARD"?1:void 0}};
Jgj=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}};
CTj=function(G,b){if(b&&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}};
Ywr=function(G,b){if(b==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(G){case 5:return!0;case 4:return!1;default:return!1}};
Kjr=function(G,b,I){if(b&&(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}};
_.iA=function(G){if(G){var b;return((b=_.LL().resolve(_.vf(_.Pv)))==null?0:b())?G.darkThemeImage:G.image}};
Oga=function(G,b,I,h,q,l){if(q&&l&&b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:q,height:l};if(!I)return{};q=I.size;I=I.allowFullWidth;if(b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&I)return{fullWidth:!0};if(q===void 0)return{};switch(G){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:q,height:q};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:q,height:1/Ryd*q};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:q*
nDu,height:q};default:return(h==null?0:h.height)&&(h==null?0:h.width)?h.width/h.height>1?{maxWidth:q*nDu}:{maxWidth:q}:{maxWidth:q}}};
wCd=function(G){var b;return G&&((b=_.iA(G.themedImage))!=null?b:G.image)};
EDu=function(G){var b;return G==null?void 0:(b=G.sources)==null?void 0:b[0]};
pCq=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"}};
_.SwO=function(G){if(G)return"content-id-"+G};
XCp=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"}}};
$4r=function(G){var b=_.PH.currentPageSubTypeSelector(_.H5().getState())||"";return G?G+b:""};
G0u=function(G){switch(G){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
I22=function(G){var b=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],I=_.e(_.ZZ(void 0,void 0,"JrqNsb")),h=I.next().value,q=I.next().value,l=_.e(_.ZZ(void 0,void 0,"rWytse"));I=l.next().value;var V=l.next().value;l=_.e(_.ZZ(void 0,void 0,"DHRqxe"));var D=l.next().value,k=l.next().value;return{touchFeedbackEvents:{pointerUpEvent:h,pointerDownEvent:I,pointerLeaveEvent:D},touchFeedbackOnPointerUp:_.Xu(function(L){bhr(_.fM(L),b)||(q(L),V(void 0),k(void 0))}),
touchFeedbackOnPointerDown:_.Xu(function(L){G==null||G(L);bhr(_.fM(L),b)||(V(L),q(void 0),k(void 0))}),
touchFeedbackOnPointerLeave:_.Xu(function(L){bhr(_.fM(L),b)||(k(L),V(void 0),q(void 0))})}};
bhr=function(G,b){b=b===void 0?[]:b;b=[].concat(_.Nz(b),["BUTTON".toString()]);G=_.e(G);for(var I=G.next();!I.done;I=G.next()){I=I.value;for(var h=_.e(b),q=h.next();!q.done;q=h.next())if(I.tagName===q.value)return!0}return!1};
hsj=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"}};
qWv=function(G){return G.scrollHeight-G.offsetHeight>1};
j6s=function(G,b){var I;return i$(G,((I=G.content)==null?void 0:I.length)||0,!b)};
esu=function(G,b,I,h,q,l){if(!b||l2u){var V;return i$(G,((V=G.content)==null?void 0:V.length)||0,!0)}b=h.value;if(!I.value||!b||!G.content)return G;I=0;h=G.content.length;V=0;m42||(m42=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var D=m42;for(q=q*l*D;I<=h;)l=Math.floor(I+(h-I)/2),D=i$(G,l)||G,b.firstChild&&(b.firstChild.textContent=D.content),b.scrollHeight>q?h=l-1:(V=l,I=l+1);return i$(G,V)};
VZd=function(G,b){var I,h;return(((I=G.content)==null?void 0:I.length)||0)>(((h=b.content)==null?void 0:h.length)||0)};
D4d=function(G,b,I,h,q,l){var V=_.ee("truncated-text-content"),D=_.ee("truncated-text-content"),k=_.ee("button"),L=_.ee("button"),x=_.ee("button"),f=_.LL().resolve(_.yB),T=_.e(_.bk(function(){return j6s(G(),q())})),B=T.next().value,A=T.next().value;
T=_.e(_.bk(function(){return VZd(G(),B())}));
var t=T.next().value,y=T.next().value,F=null;_.K0(function(){function W(){if(V.value&&k.value&&x.value){var u=l()?G():esu(G(),q(),V,D,b(),I());A(u);requestAnimationFrame(function(){if(V.value&&k.value&&x.value){var w=qWv(V.value)||VZd(G(),u);y(w);if(!h()){var $a=qWv(V.value),ev=I(),LO=V.value,td=k.value,xa=x.value,Uj=f==="rtl";if(LO&&td){var W2=td.offsetLeft;Uj&&(W2=LO.offsetWidth-td.offsetWidth-td.offsetLeft);if(w){w=td.offsetWidth;td=LO.offsetWidth;var is=$a?td-w-70:W2-70;ev="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
ev+"rem,\n      #000 "+ev+"rem,\n      #000 100%), linear-gradient(\n      to "+((Uj?"left":"right")+",\n      #000 0px,\n      #000 "+is+"px,\n      transparent "+($a?td-w:is+70)+"px)");LO.style.setProperty("-webkit-mask-image",ev);LO.style.setProperty("mask-image",ev)}else LO.style.setProperty("-webkit-mask-image",""),LO.style.setProperty("mask-image","");$a?Uj?(xa.style.setProperty("left","0"),xa.style.setProperty("right","unset")):(xa.style.setProperty("left",""),xa.style.setProperty("right",
"0")):Uj?(xa.style.setProperty("left","unset"),xa.style.setProperty("right",W2+"px")):(xa.style.setProperty("left",W2+"px"),xa.style.setProperty("right","unset"))}}}})}}
var O,K;(O=F)==null||(K=O.stop)==null||K.call(O);O=new _.GB(W,17);W();F=O},"KjwIxd");
_.K3(function(){A(j6s(G(),q()));y(VZd(G(),B()));var W=function(){m42=void 0;var K,u;(K=F)==null||(u=K.fire)==null||u.call(K)};
if(window.ResizeObserver){var O=new ResizeObserver(W);O.observe(V.value);_.uI(function(){var K,u;(K=F)==null||(u=K.stop)==null||u.call(K);O.disconnect()})}else window.addEventListener("resize",W),_.uI(function(){var K,u;
(K=F)==null||(u=K.stop)==null||u.call(K);window.removeEventListener("resize",W)})});
return{isTruncated:t,displayText:B,contentRef:V,hiddenRef:D,placeholderTruncationTextRef:k,hiddenTruncationTextRef:L,truncationTextRef:x}};
cSa=function(G){return{content:G!=null?G:""}};
k0u=function(G){return _.s0(G.onTap)||_.BH(G.rendererContext)};
vRj=function(G){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:G.overflowMenuA11yLabel,onTap:function(b){b.preventDefault();b.stopPropagation();if(G.overflowMenuOnTap){var I=_.AN({elementsCommand:G.overflowMenuOnTap,forceNewState:!0});if(I==null?0:I.onclick)I.onclick(b)}}}};
_.dQ=function(G,b,I,h,q){h=h===void 0?{}:h;if(!q||Math.random()<5E-4){b=b||null;I=I||null;G=G instanceof Error?G:new _.Wf(G);if(G.args)for(var l=_.e(G.args),V=l.next();!V.done;V=l.next())V=V.value,V instanceof Object&&(h=Object.assign({},V,h));h.category="H5 Ads Control Flow";b&&(h.slot=b?"slot:  "+b.slotType:"");I&&(h.layout=I?"layout:  "+I.layoutType:"",h.layoutId=I.layoutId);q&&(h.known_error_aggressively_sampled=!0);G.args=[h];_.RB(G)}};
_.Lyd=function(G,b){b=_.Kw(b);_.wL(G,"yt-open-popup-action",[b,G])};
_.yX=function(G,b){_.Lyd(G,_.ao(b))};
x4u=function(G){if(!G)return"";if(Q6p[G])return Q6p[G];rQ||(rQ=_.ol("A"));rQ.href!==G&&Ov(rQ,G);var b=rQ.pathname;Q6p[G]=b.startsWith("/")?b:"/"+b;return Q6p[G]};
f2u=function(){var G=x4u(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 b;return(Fm==null?void 0:(b=Fm.response)==null?void 0:b.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"};
_.WH=function(){var G=Fm==null?void 0:Fm.response,b=G==null?void 0:G.endpoint;if(!b)return(G==null?void 0:G.page)==="watch"?"watch":f2u();var I;G=(I=_.g(b==null?void 0:b.commandMetadata,_.IW))==null?void 0:I.webPageType;I=!1;if(G&&!TJq.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 h;return((h=_.g(b==null?void 0:b.commandMetadata,_.IW))==null?0:h.url)&&x4u(_.g(b.commandMetadata,_.IW).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var q;return(b=(q=_.g(b,_.jL))==null?void 0:q.browseId)?BJO[b]||"browse":"browse";default:I=!0}if(_.g(b,_.HH)||_.g(b,U4s))return"sponsorship";q=x4u(window.location.href);if(q.startsWith("/experiments"))return"experiments";if(q.startsWith("/create_channel"))return"create_channel";
if(_.g(b,_.bx)&&q.startsWith("/shorts"))return"shorts";if(_.g(b,_.bx)&&q.startsWith("/watch"))return"watch";I&&(b=new _.Wf("Unsupported mWeb page type",{pathname:q,webPageType:G}),_.K1(b));return"browse"};
aZ=function(G,b,I,h){return G&&b?G!==I||b!==h?(_.dQ(Error("Kh"),void 0,void 0,{"stored-slot":G,"stored-layout":b,"latest-slot":I,"latest-layout":h}),!1):!0:!1};
gRq=function(G,b,I){return G({targetId:b},function(h){return I.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},h,{contents:[I.continuationItems?_.g(I.continuationItems[0],s6a):{}]}):I.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},h,{header:I.continuationItems?I.continuationItems[0]:void 0}):Object.assign({},h,{contents:I.continuationItems?I.continuationItems:[]})})};
ASs=function(G,b,I,h){if(b=b.trackingParams){var q,l=(q=I.getScreenLayer)==null?void 0:q.call(I);I=_.gL(l);q=_.s3(l);if(I&&q){var V=_.VB(b);_.U("combine_ve_grafts")?G.graftServerVe(b,q,l):_.dK(I,q,V);h==null||h(V)}}};
ZhO=function(G){var b;return((b=MZr.get(G))==null?void 0:b.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
oRO=function(G,b){var I={type:b.slotType,controlFlowManagerLayer:tZB.get(b.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(I.entryTriggerType=b.slotEntryTrigger.triggerType);b.slotPhysicalPosition!==1&&(I.slotPhysicalPosition=b.slotPhysicalPosition);if(G){I.debugData={slotId:b.slotId};if(G=b.slotEntryTrigger)I.debugData.slotEntryTriggerData=zsr(G);G=b.slotFulfillmentTriggers;I.debugData.fulfillmentTriggerData=[];G=_.e(G);for(var h=G.next();!h.done;h=G.next())I.debugData.fulfillmentTriggerData.push(zsr(h.value));
b=b.slotExpirationTriggers;I.debugData.expirationTriggerData=[];b=_.e(b);for(G=b.next();!G.done;G=b.next())I.debugData.expirationTriggerData.push(zsr(G.value))}return I};
zsr=function(G,b){var I={type:G.triggerType};b!=null&&(I.category=b);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};
ihO=function(G,b,I,h){b={opportunityType:b};G&&(h||I)&&(h=_.Ky(h||[],function(q){return oRO(G,q)}),b.debugData=Object.assign({},I&&I.length>0?{associatedSlotId:I}:{},h.length>0?{slots:h}:{}));
return b};
PVj=function(G){return Nt(G.opportunityAdapterMap).concat(Nt(G.triggerAdapterMap)).concat(Nt(G.fulfillmentAdapterFactoryMap)).concat(Nt(G.slotAdapterFactoryMap)).concat(Nt(G.layoutRenderingAdapterFactoryMap))};
Nt=function(G){var b=[];G=_.e(G.values());for(var I=G.next();!I.done;I=G.next())I=I.value,I.isAdsControlFlowEventListener&&b.push(I);return b};
CM=function(G){var b=G.slotId,I=G.slotType,h=G.slotPhysicalPosition;return b===void 0?new YU("Cannot construct a slot due to the missing id.",{adSlotMetadata:G}):I===void 0?new YU("Cannot construct a slot due to the missing type.",{adSlotMetadata:G}):h===void 0?new YU("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:G}):{slotId:b,slotType:I,slotPhysicalPosition:h,managerLayer:"external",adSlotLoggingData:G.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new d4O}};
ySO=function(G){var b=G.layoutId,I=G.layoutType;return b===void 0?new JW("Cannot construct a layout due to the missing id.",{adLayoutMetadata:G}):I===void 0?new JW("Cannot construct a layout due to the missing type.",{adLayoutMetadata:G}):{layoutId:b,layoutType:I,managerLayer:"external",adLayoutLoggingData:G.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new d4O,interactionLoggingAdsClientData:{}}};
rSO=function(G){if(G.querySelector("img")){var b=G.querySelector("img");b.addEventListener("error",function(){lou(b.src).then(function(I){(I=_.ul(I).toString())?b.src=I:b.removeAttribute("src")}).catch(function(){b.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
uA=function(G,b){if(b&&(FyO(b.viewableCommand)||FyO(b.endOfSessionCommand))){var I=Hhj(b==null?void 0:b.viewableCommand);b=Hhj(b==null?void 0:b.endOfSessionCommand);if(!KM){var h=_.Te("custom_active_view_tos_timeout_ms");KM=h>0&&h!==36E5?new Wyu(a2a(),h):new Wyu(a2a())}NJd(KM,G);YWO(KM,G,I,b)}};
RZ=function(G){KM&&NJd(KM,G)};
a2a=function(){var G=_.wy("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(G==null?void 0:G.length)===2?G[1]:null};
FyO=function(G){G=_.s0(G);return!(G==null||!G.loggingUrls)&&G.loggingUrls.length>0};
Hhj=function(G){if(!G)return[];var b=[],I,h;((h=(I=_.s0(G))==null?void 0:I.loggingUrls)!=null?h:[]).forEach(function(q){q.baseUrl&&b.push(q.baseUrl)});
return b};
CV2=function(G){if(_.U("stop_av_measurement_on_detach"))return function(){RZ(G)}};
KyX=function(G){return function(){_.U("stop_av_measurement_on_detach")&&RZ(G)}};
ukO=function(G){if(_.U("stop_av_measurement_on_detach"))return function(){RZ(G)}};
Rss=function(G){return G.shorts.isDesktopSmallWidth};
_.nRO=function(G){return G.shorts.isShortsActive};
_.OhX=function(G){return G.shorts.isWatchWhileMode};
_.nM=function(G){return G.shorts.isFullscreen};
_.O2=function(G){return G.shorts.isShortsPipActive};
ERp=function(G){var b,I;if(G=(b=_.g(G.reelsAdCardButtoned,wEB))==null?void 0:(I=b.animatedRenderingConfig)==null?void 0:I.easeOutSeconds)return G+"s"};
SWO=function(G,b,I){return _.c(function(h){return h.return(new Promise(function(q){var l=new Image;l.onload=function(){q(new pEO(G,b,I,l.naturalWidth,l.naturalHeight))};
l.src=I.toString()}))})};
XEq=function(G,b){return Math.round(G/1E-5)===Math.round(b/1E-5)};
$Yu=function(G,b){return Math.round(G/1E-5)===Math.round(b/1E-5)};
G4p=function(G,b){return G.year===b.year&&G.month===b.month&&G.day===b.day};
bap=function(G,b){return G.year!==b.year?G.year<b.year:G.month!==b.month?G.month<b.month:G.day<b.day};
h5u=function(G){return G.day===InO(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}};
qer=function(){var G=new Date,b={year:G.getFullYear(),month:G.getMonth(),day:G.getDate()};return{start:b,end:{year:G.getFullYear()+2,month:G.getMonth(),day:G.getDate()},selectedDate:h5u(b)}};
jfj=function(G){return(new Wj(2)).format(new Date(G.year,G.month,G.day))};
lnO=function(G){return{year:G.getFullYear(),month:G.getMonth(),day:G.getDate()}};
mYj=function(G,b){G=(G+(Number(b.utcOffsetSec)+(new Date(G*1E3)).getTimezoneOffset()*60))*1E3;b=lnO(new Date(G));return{date:b,secondsSinceMidnight:Math.floor((G-(new Date(b.year,b.month,b.day)).getTime())/1E3)}};
e5O=function(G,b){b=b.months.findIndex(function(I){return I.year===G.year&&I.month===G.month});
return b>=0?b:void 0};
V7p=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(b){return!1}return V7p(G.parentNode)};
wQ=function(G){return G?!(G.tagName!=="A"||!G.href||!G.classList.contains("yt-simple-endpoint")):!1};
DYX=function(G){return G?G.tagName==="IMG"&&G.classList.contains("emoji"):!1};
clu=function(G,b,I){if(!G)return null;var h=wQ(G);if(h&&I)return b=G.pathname.substring(G.pathname.indexOf("/channel/")+9),document.createTextNode("@"+b);if(h&&!I)return document.createTextNode("");if(DYX(G))return I=G.alt,G=G.dataset.emojiId,!G&&b&&(b=_.E2(b,I))&&b.isCustomEmoji&&(G=b.emojiId),G?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+G+">"):document.createTextNode(I);h=G.cloneNode(!1);for(var q=0;q<G.childNodes.length;++q){var l=clu(G.childNodes[q],b,I);l&&h.appendChild(l)}return h};
pM=function(G){return G?wQ(G)?G:pM(G.lastChild):null};
k4a=function(G){return G?wQ(G)?G:k4a(G.firstChild):null};
vNO=function(G){if(!G)return null;for(var b=G.previousSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.previousSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.previousSibling;else break;(b=pM(b))?G=b:G=(G=G.parentNode)?pM(G.previousElementSibling):null;return G};
LcO=function(G){if(!G)return null;for(var b=G.nextSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.nextSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.nextSibling;else break;return(b=k4a(b))?b:LcO(G.parentNode)};
Qfr=function(G){var b=_.SK(),I=b.JSC$11416_getStartNode();if(!V7p(I.parentNode))return null;b=b.JSC$11416_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var h=_.wV(I,wQ);if(h){if(G&&b===0||!G&&b===I.length)return h}else{if(G&&b===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.Xm(I.nextElementSibling,"display")==="block"?null:k4a(I.nextElementSibling);if(!G&&b===0)return I?pM(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(G){if(0<=b&&b<I.childNodes.length)return k4a(I.childNodes[b])}else if(0<
b&&b<=I.childNodes.length)return pM(I.childNodes[b-1]);return null};
xYq=function(G,b,I){if(!G)return null;if(G.nodeType===Node.TEXT_NODE)if(I){var h=vNO(G);if(h&&!/^\s+\S/.test(G.wholeText.substr(0,b)))return h}else if((h=LcO(G))&&!/\S\s+/.test(G.wholeText.substr(b,G.wholeText.length)))return h;return G.nodeType===Node.ELEMENT_NODE?I?vNO(G.childNodes[b]):LcO(G.childNodes[b]):xYq(G.parentNode,b,I)};
fnu=function(G){if(G.hasChildNodes())switch(G.tagName){case "DIV":case "A":case "SPAN":var b="";for(G=G.firstChild;G;G=G.nextSibling)b+=fnu(G);return b;default:return""}else switch(G.nodeType){case 3:return G.textContent;default:return""}};
$g=function(G,b){return G.year===b.year&&G.month===b.month&&G.day===b.day};
GI=function(G,b){return G.year!==b.year?G.year<b.year:G.month!==b.month?G.month<b.month:G.day<b.day};
TxO=function(G){return{year:G.getFullYear(),month:G.getMonth(),day:G.getDate()}};
Bxv=function(G){var b=kNu;b=b===void 0?kNu:b;b(new Date(G.year,G.month,G.day))};
bP=function(G){return TxO(new Date(Number(G.seconds)*1E3))};
UYO=function(G){return G.year!==void 0&&G.month!==void 0&&G.day!==void 0};
sfa=function(G){return G.start!==void 0&&G.end!==void 0};
gNX=function(G){return sfa(G)?G.start:G};
Al2=function(G){return sfa(G)?G.end:void 0};
ZaX=function(G,b){for(var I=[],h=new Date(G.start.year,G.start.month);h.getFullYear()<G.end.year||h.getFullYear()===G.end.year&&h.getMonth()<=G.end.month;){var q=I,l=q.push,V=h.getFullYear(),D=h.getMonth(),k=G,L=b,x=void 0,f=[],T=Object.freeze({extraCssClass:"invisible"}),B=new Date(V,D),A=TxO(B);B=B.getDay();for(var t=TxO(new Date);A.month===D;){B!==M7O&&x||(x=Array.from({length:7}).fill(T),f.push(x));var y={date:{year:V,month:D,day:A.day},extraCssClass:"",debugClass:""};y.extraCssClass=L(y.date,
A,t,k).trim();x[(B-M7O+7)%7]=y;A=A.day===InO(A.year,A.month)?A.month===11?{year:A.year+1,month:0,day:1}:{year:A.year,month:A.month+1,day:1}:{year:A.year,month:A.month,day:A.day+1};B=(B+1)%7}l.call(q,{weeks:f,monthLabel:IG.SHORTMONTHS[D]+" "+V,year:V,month:D,monthLabelExtraCssClass:f[0][2]===T?"shift-down-label":""});h.setMonth(h.getMonth()+1)}return I};
t7p=function(G,b){b=b.months.findIndex(function(I){return I.year===G.year&&I.month===G.month});
return b>=0?b:void 0};
oNr=function(G,b){a:{var I=I===void 0?[2,3]:I;I=_.e(I);for(var h=I.next();!h.done;h=I.next()){var q=new Date;if((new z5a(h.value)).parse(b,q,{validate:!0})){q.setHours(0,0,0,0);b=q;break a}}b=null}if(!b)return{isValid:!1,value:void 0};b=TxO(b);I=G.end;return GI(b,G.start)||GI(I,b)?{isValid:!1,value:void 0}:{isValid:!0,value:b}};
rla=function(G){var b=iaX;b=b===void 0?P8j:b;var I=G.columnsToShow||[],h=dYB(G.columnDimensions,G.columnsToShow,G.leftFloatingColumns,b);return I.map(function(q,l){var V=G.columns[q];if(V===void 0)throw Error("Qh");var D=h?h[l]:"";var k=G.getCustomTooltip?G.getCustomTooltip(q,V.headerTooltipParagraphs):V.headerTooltipParagraphs;var L=yld(G,q);return{type:q,index:l,style:D,classes:L,headerName:V.headerName||"",headerIcon:V.headerIcon,headerTooltipParagraphs:k||[],headerTooltipHelpContext:V.headerTooltipHelpContext,
sortOrders:V.sortOrders||[],selectionState:V.isSelectionCheckbox?G.selectionState:void 0}})};
yld=function(G,b){var I=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],h=G.columns[b];if(h===void 0)return"";var q=I.includes("DEFAULTS")&&h.cssClass?[h.cssClass]:[];if(I.includes("SORTING")){h.sortOrders&&h.sortOrders.length&&q.push("sortable");if(G.sorting&&G.sorting.columnType===b)a:switch(G.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var l="column-sorted";break a;default:l=""}else l="";l&&q.push(l)}I.includes("FLOATING")&&(b=G.columnsToShow.indexOf(b),G.leftFloatingColumns&&b<G.leftFloatingColumns&&
q.push("floating-column"),G.leftFloatingColumns&&b===G.leftFloatingColumns-1&&q.push("last-floating-column"));I.includes("RIGHT_ALIGN")&&h.rightAlignHeader&&q.push("right-align");return q.filter(function(V){return V}).join(" ")};
dYB=function(G,b,I,h){I=I===void 0?0:I;h=h===void 0?P8j:h;if(G){var q=[],l=0;Fcq(G,b,h).forEach(function(V,D){var k="min-width:"+V.minWidth+"px;padding-left:"+V.paddingLeft+"px;padding-right:"+V.paddingRight+"px;flex:"+V.flexGrow+" 0 "+V.minWidth+"px;";V.maxWidth!==Infinity&&(k=[k,"max-width:"+V.maxWidth+"px;"].join(""));l>0&&D<I&&(k=[k,"left:"+l+"px;"].join(""));q.push(k);l+=V.minWidth+V.paddingLeft+V.paddingRight});
return q}};
Fcq=function(G,b,I){I=I===void 0?P8j:I;return b.map(function(h,q){h=G&&G[h]||{};var l=q===0?I.paddingLeftFirstColumn:I.padding;h.paddingLeft!==void 0&&(l=h.paddingLeft);q=q===b.length-1?I.paddingRightLastColumn:I.padding;h.paddingRight!==void 0&&(q=h.paddingRight);return{paddingLeft:l,paddingRight:q,minWidth:h.minWidth!==void 0?h.minWidth:I.minWidth,maxWidth:h.maxWidth!==void 0?h.maxWidth:I.maxWidth,flexGrow:h.flexGrow!==void 0?h.flexGrow:I.flexGrow}})};
Has=function(G){var b=G.reduce(function(h,q){var l=q.columnId,V={};q.headerText&&(V.headerName=_.NO(q.headerText));q.rightAlignHeader&&(V.rightAlignHeader=q.rightAlignHeader);var D;if((D=q.headerIcon)==null?0:D.iconType)V.headerIcon=_.pn(q.headerIcon.iconType);h[l]=V;return h},{}),I=G.filter(function(h){return!h.hideColumn}).map(function(h){return h.columnId});
G=G.filter(function(h){return!!h.dimensions}).reduce(function(h,q){h[q.columnId]=q.dimensions;
return h},{});
return{columns:b,columnsToShow:I,columnDimensions:G}};
_.WcX=function(G){return G?G.simpleText?G.simpleText:G.runs?G.runs.map(function(b){return b.text}).join(""):"":""};
KcO=function(G){var b=G.data;var I=G.onTap;var h=G.isSelected;var q=G.onFocusIn;if(!b)return{};G=anr(b);h===void 0&&(h=b==null?void 0:b.isSelected);var l;return{text:Nxs(b,G),startIcon:(l=b.icon)==null?void 0:l.iconType,state:h?0:2,type:0,style:Yed(b),onTap:C8q(b,I),accessibilityLabel:JlO(b,G),onFocusIn:function(){return q==null?void 0:q()}}};
Nxs=function(G,b){if(!b)return G.text?_.WcX(G.text):void 0};
Yed=function(G){var b;switch((b=G.style)==null?void 0:b.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
C8q=function(G,b){return function(I){b==null||b(I,G)}};
anr=function(G){G=G.style&&G.style.styleType;return!l2u&&G==="STYLE_EXPLORE_LAUNCHER_CHIP"};
JlO=function(G,b){if(b){var I,h,q;return(q=(I=G.accessibilityData)==null?void 0:(h=I.accessibilityData)==null?void 0:h.label)!=null?q:Nxs(G,!1)}};
uVX=function(){var G;return[function(b,I,h){return _.O3(G,b,I,h)},
function(b){G=b}]};
R5u=function(G,b){return _.Gi(G.entities,"chipEntity",b)};
OaO=function(G,b,I,h){return function(){var q=nNa.has(G.displayType)&&G.selected,l=q&&G.deselectCommand?G.deselectCommand:G.tapCommand;!l||q&&h||_.Zm(l,{form:{element:b==null?void 0:b.value}});I==null||I()}};
ENs=function(G,b){if(G=G.onUpdateText){var I;G=(I=_.g(G,wGr))==null?void 0:I.stepId}else G=void 0;I=G;b=b==null?void 0:b.stepStates;if(I&&b){var h,q;return(h=b[I])==null?void 0:(q=h.userQuery)==null?void 0:q.userQuery}};
hx=function(G){return{signalAction:{signal:G}}};
XGv=function(){return _.wy("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?pGr:_.Ser};
$0q=function(G,b){G=G===void 0?"SOFT_RELOAD_PAGE":G;b=b===void 0?49504:b;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.RW(_.qP("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:b}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:G}}]}}}};
GKO=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.RW(_.qP("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:XGv()}};
b2d=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.RW(_.qP("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:XGv()}};
I7a=function(G,b){var I=_.RW(_.qP("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),h=_.RW(_.qP("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),q={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.RW(_.qP("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};q.serviceEndpoint=G?G:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[hx("SOFT_RELOAD_PAGE")]}};return{title:I,bodyText:h,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:q},
style:{value:b!=null?b:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
qkX=function(G){G=G===void 0?{}:G;return{title:_.RW(G.localizedZeroStateTitleText===void 0?"":G.localizedZeroStateTitleText),bodyText:_.RW(G.localizedZeroStateMessage===void 0?"":G.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.RW(G.localizedZeroStateButtonText===void 0?"":G.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[hJO]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
l7X=function(G){G=G===void 0?{}:G;return{title:_.RW(G.localizedOptInBannerTitleText===void 0?"":G.localizedOptInBannerTitleText),titleLength:19,subtitle:_.RW(G.localizedOptInMessage===void 0?"":G.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.RW(_.qP("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:_.RW(_.qP("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:[j7u]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
VDB=function(G,b){var I=b=b===void 0?{}:b;b=I.offlineTitleText===void 0?"":I.offlineTitleText;var h=I.offlineDescriptionText===void 0?"":I.offlineDescriptionText,q=I.formattedSupplementalText,l=I.actionButtonText===void 0?"":I.actionButtonText,V=I.titleText===void 0?"":I.titleText;I=I.descriptionText===void 0?"":I.descriptionText;var D={title:l,accessibilityText:l,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||(V=b,I=h,D={title:l,accessibilityText:l,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:_.RW(V),titleLength:V.length,overrideTitleMaxFontSize:30,subtitle:_.RW(I),supplementalText:q,primaryButton:{buttonViewModel:D},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[m0B]},darkTileImage:{thumbnails:[eJO]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.kKs=function(G,b,I,h,q,l,V,D,k,L,x){q=q===void 0?!1:q;l=l===void 0?!1:l;V=V===void 0?0:V;D=D===void 0?-Infinity:D;k=k===void 0?!1:k;L=L===void 0?!1:L;x=x===void 0?!1:x;var f=[],T=_.RW(_.qP("SMART_DOWNLOADS",void 0,"Smart downloads")),B=_.RW(D0X(V,D,G.length));D=V=void 0;L?V={statementBannerRenderer:VDB(x,h)}:q?G.length>0?D=c3O(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.U("kevlar_manual_downloads_above"),T,B):k?D={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:_.qP("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.qP("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:_.sSj}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:l&&(D={backgroundPromoRenderer:{bodyText:_.RW(_.qP("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"}}}):
l&&(D={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:_.qP("TURN_ON",void 0,"Turn on"),accessibilityText:_.qP("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=_.RW(_.qP("YOUR_DOWNLOADS",void 0,"Your downloads"));h=void 0;b.length>0?(h=void 0,_.U("kevlar_display_downloads_numbers")&&(h=_.RW(_.jX("VIDEO_COUNT",b.length))),h=c3O(b,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,I,h)):q||G.length||
L||(h={backgroundPromoRenderer:{bodyText:_.RW(_.qP("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}}}});V?f.push({richSectionRenderer:{content:V}}):D&&!_.U("kevlar_manual_downloads_above")&&f.push({richSectionRenderer:{content:D,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
h&&f.push({richSectionRenderer:{content:h,loggingDirectives:{clientVeSpec:{uiType:51721}}}});D&&_.U("kevlar_manual_downloads_above")&&f.push({richSectionRenderer:{content:D,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(b.length>0||q&&G.length>0&&!L)&&f.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.RW(_.qP("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:f}};
_.LKv=function(G){return vdq(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.Q7a=function(G){return vdq(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
vdq=function(G,b){var I=[];G=c3O(G,b,!0);I.push({richSectionRenderer:{content:G}});return{contents:I}};
c3O=function(G,b,I,h,q){I=I===void 0?!1:I;var l="RESPONSIVE_SIZE_STANDARD";_.U("kevlar_standard_rich_grid_on_offline_home")&&b==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?l="RESPONSIVE_SIZE_STANDARD":_.U("kevlar_modern_downloads_compact")?l="RESPONSIVE_SIZE_COMPACT":_.U("kevlar_modern_downloads_extra_compact")?l="RESPONSIVE_SIZE_EXTRA_COMPACT":_.U("kevlar_modern_downloads_tiny")&&(l="RESPONSIVE_SIZE_TINY");G={isExpanded:I,contents:qA(G),entitySelectorType:b,responsiveContainerConfiguration:{responsiveSize:l}};
h&&(G.title=h);q&&(G.subtitle=q);I||(_.U("kevlar_smart_downloads_show_more_button")?(G.showMoreButton={buttonRenderer:{accessibility:{label:_.qP("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.RW(_.qP("SHOW_MORE",void 0,"Show more"))}},G.showLessButton={buttonRenderer:{accessibility:{label:_.qP("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.RW(_.qP("SHOW_LESS",void 0,"Show less"))}}):(G.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.qP("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:_.qP("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:_.qP("VIEW_ALL",void 0,"View all"),accessibilityText:_.qP("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:_.KU("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:G}};
qA=function(G){var b=[];G=_.e(G);for(var I=G.next();!I.done;I=G.next())if(I=I.value,qQu(I)){var h=b,q=h.push;var l=void 0;if(I==null?0:(l=I.videoEntity)==null?0:l.videoId){l=im(_.Cw().getState(),I.videoEntity.videoId);var V=_.Cw().getState();var D=_.$S(I.videoEntity.videoId,"mainVideoEntity");V=!!_.Qg(V.entities)[D];V={videoId:I.videoEntity.videoId,title:nU(I.videoEntity.title),shortBylineText:nU(I.channelEntity.title),thumbnail:I.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:V&&_.U("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:FSa(I.videoEntity.videoId,l,I.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.qP("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};I.videoEntity.lengthSeconds&&(V.thumbnailOverlays=mMd(I.videoEntity.lengthSeconds,l));V.isWatched=l>0;_.U("kevlar_modern_downloads_page")&&(V.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:I.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.qP("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},V.badges=void 0);I=V}else I={};q.call(h,{richItemRenderer:{content:{videoRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(hdr(I)){h=b;q=h.push;var k=D=l=void 0,L=void 0,x=void 0,f=void 0,T=void 0,B=void 0,A=void 0,t=void 0,y=void 0,F=void 0;V=I.mainPlaylistEntity.playlistId;var W=I==null?void 0:(F=I.mainPlaylistEntity)==null?void 0:(y=F.thumbnailStyleData)==null?void 0:(t=y[0])==null?void 0:(A=t.value)==null?void 0:(B=A.collageThumbnail)==
null?void 0:B.coverThumbnail;if(V&&W){B=Hmp(V);!_.U("enable_offline_playlist_page")&&(I==null?0:(T=I.mainPlaylistEntity)==null?0:T.videos)&&(T=I==null?void 0:(f=I.mainPlaylistEntity)==null?void 0:(x=f.videos)==null?void 0:x[0],x=_.pU(T).entityId,x=JSON.parse(x).videoId,x!==void 0&&(B=im(_.Cw().getState(),x),B=_.u9(x,V,void 0,void 0,B)));x=[];if(I==null?0:(L=I.mainPlaylistEntity)==null?0:(k=L.videos)==null?0:k.length)k=cy2(),L=Object,x=L.assign,f=(f=DTa(I==null?void 0:I.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.RW(f),icon:{iconType:"PLAYLISTS"}}}:void 0,x=[k,x.call(L,{},(D=f)!=null?D:{})];I={playlistId:V,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:W}},navigationEndpoint:B,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:x,title:nU(I.mainPlaylistEntity.title),shortBylineText:nU(I==null?void 0:(l=I.channelEntity)==null?void 0:l.title),badges:[{metadataBadgeRenderer:{label:_.qP("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.U("kevlar_modern_downloads_page")&&(I.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:x0O,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:V,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.qP("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},I.badges=void 0)}else I=void 0;q.call(h,{richItemRenderer:{content:{playlistRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return b};
D0X=function(G,b,I){G=G?f7s(G):"";b!==void 0&&isFinite(b)?b===0?b=_.qP("UPDATING",void 0,"Updating..."):(b=lFu(new Date(b),new Date),b=_.qP("UPDATED_TIME",{relative_time:b},"Updated "+b)):b="";var h="";G&&b&&(h=" \u2022 ");if(I&&_.U("kevlar_display_downloads_numbers")){I=_.jX("VIDEO_COUNT",I);if(G||b)h=" \u2022 ";return I+h+G+h+b}return G+h+b};
TEa=function(G){return EqO(G.entities).length};
_.BEq=function(G,b,I){var h=oZ(G.responsiveSize),q;G=!((q=G.responsiveMap)==null||!q.some(function(l){return l.containerSize==="CONTAINER_SIZE_NARROW"&&l.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:I,containerWidth:b,sizing:h,enableFullBleedForSingleCol:!1,isCompactList:h==="COMPACT"&&G}};
U02=function(G,b){return _.Gi(G.entities,"votingEntity",b)};
jN=function(G){if(G){var b;return((b=_.LL().resolve(_.vf(_.Pv)))==null?0:b())?G.darkTheme:G.lightTheme}};
s7X=function(G,b){if(G.simpleText)return Object.assign({},G,{simpleText:z3(G.simpleText,b)});if(!G.runs)return G;for(var I=Object.assign({},G,{runs:[]}),h=0,q=_.e(G.runs),l=q.next();!l.done;l=q.next())if(l=l.value,l.text)if(h+l.text.length<=b)I.runs.push(l),h+=l.text.length;else return I.runs.push(Object.assign({},l,{text:z3(l.text,b-h)})),I;return G};
gdO=function(G,b){return _.Gi(G.entities,"chipBarStateEntity",b)};
A3u=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""}};
MDu=function(G,b){return{triggeringElement:G,onDwellTriggeredFn:function(){var I={triggeringElement:G,loadVideoPreviewEventData:b},h=document.querySelector(".video-preview");h&&h.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"))}}};
Z2j=function(G,b){var I=_.LL().resolve(_.vf(M_j)),h=function(){var q=b();return I&&q?MDu(G.value,q):null};
_.K0(function(){var q=h();I&&q&&Promise.resolve().then(function(){I.registerElement(q)});
_.uI(function(){I&&q&&Promise.resolve().then(function(){_.Za(I,q)})})},"csPUge")};
zJq=function(G){var b=G.dataset.resizeObserverId;if(b)return b;b=""+tDB++;return G.dataset.resizeObserverId=b};
od2=function(G){G=_.e(G);for(var b=G.next();!b.done;b=G.next()){b=b.value;var I=zJq(b.target),h=Object.assign({},{target:b.target},lP.get(I));if(h!=null&&h.contentRect?h.contentRect.width!==b.contentRect.width||h.contentRect.height!==b.contentRect.height:1)for(lP.set(I,{borderBoxSize:b.borderBoxSize,contentBoxSize:b.contentBoxSize,contentRect:b.contentRect,devicePixelContentBoxSize:b.devicePixelContentBoxSize}),I=_.e(ma.get(I)||[]),h=I.next();!h.done;h=I.next())h=h.value,h(b)}};
PSa=function(G,b){var I=zJq(G);ma.has(I)||ma.set(I,new Set);ma.get(I).add(b);lP.has(I)&&b(Object.assign({},{target:G},lP.get(I)));eN||(eN=new i2O(od2));b=eN;b.observe(G)};
d0q=function(G,b){var I=zJq(G);ma.has(I)&&(ma.get(I).delete(b),ma.get(I).size===0&&(ma.delete(I),lP.delete(I),eN.unobserve(G),delete G.dataset.resizeObserverId));ma.size===0&&eN&&(eN.disconnect(),eN=void 0)};
r32=function(G,b){var I=_.LL().resolve(vw);return y3X.map(function(h){return I.observe(G,b,h)})};
FKO=function(G){var b=_.LL().resolve(vw);G.forEach(function(I){b.unobserveByKey(I)})};
_.Vq=function(G){var b=_.e(g2u()),I=b.next().value,h=b.next().value,q=Object.assign({},H2X,G),l=WKj(function(V){var D=V.contentRect.height;if((V=V.contentRect.width)||D||q.canHaveZeroSize)I.width()===V&&I.height()===D||h(I,{height:D,width:V})},q.throttleMs);
return[I,function(V){var D=[];q.useVisibilityObserver&&(D=r32(V,function(k,L){requestAnimationFrame(function(){L==="visible"?PSa(V,l):d0q(V,l)})}));
D.length||PSa(V,l);return function(){D.length&&(FKO(D),D.length=0);d0q(V,l)}}]};
NEX=function(G,b,I,h,q){G=b?G.switchOffCommand:G.switchOnCommand;if(h&&q)a7O(G,I,q);else{var l,V;(l=_.AN({elementsCommand:G}))==null||(V=l.onclick)==null||V.call(l,I)}};
a7O=function(G,b,I){G=_.AN({elementsCommand:G,additionalCommandArgs:{commandController:{onSuccess:function(){I(!1)},
onServerError:function(){I(!1)}}}});
if(G==null?0:G.onclick)G.onclick(b),I(!0)};
CSu=function(G){if(G)return _.g(G,Ykp)};
J3d=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}};
KKO=function(G,b){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(_.U("enable_web_shorts_captions_language_command")){var I;var h=(I=_.GZ())==null?void 0:I.getOption("captions","track");var q,l=typeof(h==null?void 0:h.translationLanguage)==="object"&&((q=h.translationLanguage)==null?void 0:q.languageName)||(h==null?void 0:h.displayName)||"";h={data:Object.assign({},
!!l&&{selectionText:{content:l}},!!l&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof h==="undefined"})}}else h={};return h;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.U("web_shorts_audio_track_picker")){var V;q=((V=_.GZ())==null?void 0:V.getAudioTrack())||void 0;I=q==null?void 0:(l=q.getLanguageInfo())==null?void 0:l.getName();q={data:Object.assign({},{selectionText:{content:I}},I&&!(q==null?0:(h=q.getLanguageInfo())==
null?0:h.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else q={};return q;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return h=G!=null&&G.entityKey?(h=_.SA(b,G.entityKey))?{isHidden:(h==null?void 0:h.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},h;default:return{}}};
uKd=function(G,b){return function(I){var h=function(q){_.TZ(_.fM(q),I,b)||G(q)};
I.addEventListener("click",h);return function(){I.removeEventListener("click",h)}}};
_.RJO=function(G){return function(){return _.g(G(),_.DA)}};
ndB=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;default:return 0}};
O2O=function(G){return ndB(G==null?void 0:G.all)};
w4X=function(G){var b={};(G=G==null?void 0:G.padding)&&(b.padding=ndB(G.vertical)+"px "+ndB(G.horizontal)+"px");return b};
Edd=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"}};
p4d=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"}};
SkO=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"}};
X42=function(G,b){if(b)return{containerStyles:w4X(b),itemStyles:function(I,h){var q={flex:"1"},l=b==null?void 0:b.flexDirection;b:switch(l){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":I=!!I;break b;default:I=!!h}I||(I=_.wy("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",l==="FLEX_DIRECTION_ROW"||l==="FLEX_DIRECTION_ROW_REVERSE"?(l=O2O(b==null?void 0:b.gap)+"px",I?q["margin-left"]=l:q["margin-right"]=l):q["margin-bottom"]=O2O(b==null?void 0:b.gap)+"px",q.flex=
"1");return q},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(b==null?void 0:b.flexDirection)==="FLEX_DIRECTION_ROW"||(b==null?void 0:b.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
$ps=function(G){return G<528?"CONTAINER_SIZE_NARROW":G<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
GzO=function(G,b){G=_.e(G.responsiveMap||[]);for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.containerSize===b)return I.containerType};
_.bjX=function(G,b){if(b){var I=b.responsiveSize;G=$ps(G);var h=GzO(b,G);if(h&&I){a:{if(h==="CONTAINER_TYPE_VERTICAL_LIST")if(I==="RESPONSIVE_SIZE_STANDARD"){if(G!=="CONTAINER_SIZE_NARROW"){var q="50%";break a}}else{q=G==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}q=void 0}return{responsiveSize:I,containerSize:G,containerType:h,force16By9ThumbnailAspectRatio:!b.enableContentSpecificAspectRatio,contentPreviewWidth:q,fullbleed:(h==="CONTAINER_TYPE_VERTICAL_LIST"||h==="CONTAINER_TYPE_GRID")&&G===
"CONTAINER_SIZE_NARROW"&&!1}}}};
ISa=function(G,b){var I={};switch(b){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};
hnv=function(G,b){if(b){var I=GzO(b,$ps(G));a:switch(I){case "CONTAINER_TYPE_GRID":var h=3;break a;default:h=1}h=_.BEq(b,G,h);var q=_.zZ(h);return{containerLayoutConfig:_.bjX(G,b),containerStyles:ISa(q,I),itemStyles:function(l,V){l={};switch(I){case "CONTAINER_TYPE_VERTICAL_LIST":V||(l["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":l.width=q.itemWidth+"px";l["margin-right"]=q.gutter/2+"px";l["margin-left"]=q.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":l.width=q.itemWidth+
"px",l.flex="none",V||(l["margin-right"]=q.gutter+"px")}return l}}}};
end=function(G,b,I){if(b)return[qIj];switch(G){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[cR];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return I?[cR]:[jxp,cR];case "TRANSFER_STATE_PAUSED_BY_USER":return[lSd,cR];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[mpu,cR];default:return[qIj]}};
V3u=function(G,b,I,h){return end(G,b,h).map(function(q){var l=q.text,V=q.iconType,D=q.videoAction;q=q.playlistAction;l=l?{content:l}:void 0;V=V&&{sources:[{clientResource:{imageName:V}}]};var k=(0,_.Cy.unsafeClone)(I);if(k){var L=_.g(k,_.qt),x=_.g(k,_.jK);L&&D?L.action=D:x&&q&&(x.action=q)}return{title:l,leadingImage:V,rendererContext:k&&{commandContext:{onTap:{innertubeCommand:k}}}}})};
Dpq=function(G){G=_.BH(G.rendererContext);var b;return(b=_.g(G,_.jK))==null?void 0:b.playlistId};
cGB=function(G){var b;return(b=G.listItems)==null?void 0:b.some(function(I){var h;return _.U2((h=_.g(I,_.kU))==null?void 0:h.rendererContext)})};
LYa=function(G){var b;return(b=G.listItems)==null?void 0:b.some(function(I){var h,q,l=(q=(h=_.g(I,kzd))==null?void 0:h.defaultListItem)!=null?q:I;I=_.g(l,_.kU);return!!_.g(I==null?void 0:I.leadingAccessory,viX)})};
_.kg=function(G){var b=_.LL().resolve(_.vf(_.Pv));return b!=null&&b()?G.darkThemeColorPalette:G.lightThemeColorPalette};
_.Lc=function(G){return{primaryTextColor:vR(G,0),secondaryTextColor:vR(G,1),optionColor:vR(G,2),backgroundColor:vR(G,3),videoBackgroundColor:vR(G,4)}};
vR=function(G,b){if(G){switch(b){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 _.Uo(G)}};
fSr=function(G){var b=G.element;var I=G.veType;var h=G.storedVisualElement===void 0?null:G.storedVisualElement;var q=G.elementIndex===void 0?0:G.elementIndex;G=G.clientYouTubeData;var l=_.gL();l!==QxB&&(xpj.clear(),QxB=l);if(b.visualElement&&xpj.has(b.visualElement))return null;if(h&&xpj.has(h))return b.visualElement=h,null;I=_.IM(_.qo(),{veType:I,elementIndex:q,clientYouTubeData:G});if(!I)return null;b.visualElement=I;xpj.add(I);return I};
_.Qq=function(G,b,I,h){I=I===void 0?null:I;h=h===void 0?als:h;var q=q===void 0?null:q;LG(function(){if(b){I instanceof Function&&(I=I());var l=fSr({element:b,veType:G,storedVisualElement:I,clientYouTubeData:void 0});l&&(CLr(b,q),h(l))}})};
TGO=function(G){return G?_.so(G):""};
BGB=function(G){return(G==null?void 0:G.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
Up2=function(G,b){return _.Gi(G.entities,"videoOverviewAsyncDataEntity",b)};
sxX=function(G,b){var I;return"linear-gradient(to bottom, "+((I=b==null?void 0:b.map(function(h){var q=G?h.darkThemeColor:h.lightThemeColor;return q?_.so(q)+" "+((h==null?void 0:h.startLocation)||0)*100+"%":"transparent"}))==null?void 0:I.join(", "))+")"};
giO=function(G,b,I,h,q){if(!((h==null?0:h.height)&&(h==null?0:h.width)))return{size:0};var l=h.width;h=h.height;if(q)return b==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&l>h?{size:312/nDu}:b==="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||b!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&b!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&b!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(b==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||h===l)switch(G){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||h>l)switch(G){case 1:case 3:return{size:240*Ryd};default:return{size:360*Ryd}}switch(G){case 1:case 2:return{size:1/nDu*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.AGO=function(G){if(!("matchMedia"in window))return _.bB(Error("Rh")),function(){return!1};
var b=window.matchMedia(G);G=_.e(_.ZZ(b.matches,void 0,"jLJc8e"));var I=G.next().value,h=G.next().value,q=function(l){h(l.matches)};
b.addEventListener?(b.addEventListener("change",q),_.uI(function(){b.removeEventListener("change",q)})):b.addListener&&(b.addListener(q),_.uI(function(){b.removeListener(q)}));
return I};
M3s=function(G){return G==="IMAGE_BANNER_STYLE_INSET"||G==="IMAGE_BANNER_STYLE_UNKNOWN"};
ZjO=function(){if(!("matchMedia"in window))return _.bB(Error("Rh")),function(){return 0};
var G=uM(function(){return window.matchMedia("(max-width: 527.9px)")}),b=uM(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),I=uM(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),h=uM(function(){return window.matchMedia("(min-width: 1024px)")}),q=_.e(_.ZZ(G.matches,void 0,"og9kEc")),l=q.next().value,V=q.next().value;
q=_.e(_.ZZ(b.matches,void 0,"ybDWCb"));var D=q.next().value,k=q.next().value;q=_.e(_.ZZ(I.matches,void 0,"o0Gfh"));var L=q.next().value,x=q.next().value;q=_.e(_.ZZ(h.matches,void 0,"yqUUgd"));var f=q.next().value,T=q.next().value,B=uM(function(){return function(F){V(F.matches)}}),A=uM(function(){return function(F){k(F.matches)}}),t=uM(function(){return function(F){x(F.matches)}}),y=uM(function(){return function(F){T(F.matches)}});
_.K3(function(){G.addEventListener?(G.addEventListener("change",B),b.addEventListener("change",A),I.addEventListener("change",t),h.addEventListener("change",y)):G.addListener&&(G.addListener(B),b.addListener(A),I.addListener(t),h.addListener(y));_.uI(function(){G.removeEventListener?(G.removeEventListener("change",B),b.removeEventListener("change",A),I.removeEventListener("change",t),h.removeEventListener("change",y)):G.removeListener&&(G.removeListener(B),b.removeListener(A),I.removeListener(t),
h.removeListener(y))})});
return function(){return l()?1:D()?2:L()?3:f()?4:0}};
t3O=function(G){var b=0;G=_.e([G.title,G.metadata,G.actions,G.description,G.attribution]);for(var I=G.next();!I.done;I=G.next())I.value&&b++;return b};
znO=function(G){return G===1||G===2?1:0};
ijO=function(G){G=(new ois).parse(G);return(new zb).render(G).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(b){var I=b.split(":").map(Number),h=0,q=0;if(I.length===3)I=_.e(I),h=I.next().value,q=I.next().value,I=I.next().value;else if(I.length===2)I=_.e(I),q=I.next().value,I=I.next().value;else if(I.length===1)I=_.e(I).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(h*3600+q*60+I)+'" role="button">'+b+"</span>"})};
PZO=function(G){G=_.e(G.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var b=G.next(),I={};!b.done;I={clickHandler$jscomp$5:void 0},b=G.next()){b=b.value;I.clickHandler$jscomp$5=function(q){q=Number(q.target.getAttribute("data-time"));if(isNaN(q))throw Error("Th");var l;(l=_.GZ())==null||l.seekTo(q,!0)};
var h=function(q){return function(l){l.key!=="Enter"&&l.key!=="Space"||(0,q.clickHandler$jscomp$5)(l)}}(I);
b.setAttribute("tabindex","0");b.removeEventListener("click",I.clickHandler$jscomp$5);b.removeEventListener("keydown",h);b.addEventListener("click",I.clickHandler$jscomp$5);b.addEventListener("keydown",h)}};
dpu=function(){return _.v("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.v(xg,{percentWidth:100}),_.v(xg,{animationDelay:200}),_.v(xg,{animationDelay:400}),_.v(xg,{animationDelay:600}),_.v(xg,{animationDelay:800,percentWidth:60}),_.v("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.v(xg,{percentWidth:100}),_.v(xg,{animationDelay:200}),_.v(xg,{animationDelay:400}),_.v(xg,{animationDelay:600,percentWidth:50}))};
xg=function(G){return _.v("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(G.percentWidth===void 0?100:G.percentWidth)+"%"},_.v("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(G.animationDelay===void 0?0:G.animationDelay)+"ms"}))};
yGO=function(){var G=_.e(_.ZZ(function(){return""},void 0,"dXJHWc")),b=G.next().value;
return[function(){return b()()},
G.next().value]};
rGa=function(G,b){G=G?f7s(G):"";b!==void 0&&isFinite(b)?b===0?b=_.qP("UPDATING",void 0,"Updating..."):(b=lFu(new Date(b),new Date),b=_.qP("UPDATED_TIME",{relative_time:b},"Updated "+b)):b="";var I="";G&&b&&(I=" \u2022 ");return _.RW(G+I+b)};
WYO=function(G,b,I,h,q,l){b=b===void 0?0:b;var V=FYO[b],D=V.title,k=V.iconType,L=V.topButtonRenderer,x=V.sectionClientVE;V=V.videoClientVE;var f;if(b!==1||G.length){I=[];G=_.e(G);for(h=G.next();!h.done;h=G.next()){var T=h.value;if(qQu(T))I.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:T.videoEntity.videoId,title:nU(T.videoEntity.title),shortBylineText:nU(T.channelEntity.title),thumbnail:T.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:T.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.qP("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:V}}}}}});else if(hdr(T)){h=I;var B=h.push;var A=void 0,t=void 0,y=void 0,F=void 0,W=void 0,O=void 0,K=void 0,u=void 0,w=T.mainPlaylistEntity.playlistId,$a=T==null?void 0:(u=T.mainPlaylistEntity)==null?void 0:(K=u.thumbnailStyleData)==null?void 0:(O=K[0])==null?void 0:(W=O.value)==null?void 0:(F=W.collageThumbnail)==null?void 0:F.coverThumbnail;F=Hmp(w);if(!_.U("enable_offline_playlist_page")&&
(T==null?0:(y=T.mainPlaylistEntity)==null?0:y.videos)){b:{y=T==null?void 0:(t=T.mainPlaylistEntity)==null?void 0:t.videos;t=_.Cw().getState().entities;if(y!=null&&y.length&&t)for(y=_.e(y),W=y.next();!W.done;W=y.next())if(W=_.pU(W.value).entityId,(W=JSON.parse(W).videoId)&&ORv(t,W)==="TRANSFER_STATE_COMPLETE"){t=W;break b}t=""}t!==void 0&&(F=im(_.Cw().getState(),t),F=_.u9(t,w,void 0,void 0,F))}t=aRp(_.qP("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Hmp(w));T=w&&$a&&t?{playlistId:w,navigationEndpoint:F,
viewPlaylistText:t,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:$a}},title:nU(T.mainPlaylistEntity.title),shortBylineText:nU(T==null?void 0:(A=T.channelEntity)==null?void 0:A.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Hjd,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:w,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.qP("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:V}}}:
void 0;B.call(h,{gridPlaylistRenderer:T})}}V={gridRenderer:{items:I}};b===1&&(f=rGa(q,l))}else if(h){var ev=_.RW((B=I==null?void 0:I.localizedPromptMessage)!=null?B:"");V={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.RW(_.qP("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.sSj}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.RW(_.qP("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};f=rGa(q,l)}else ev=_.RW(_.qP("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
V={};return{contents:[{shelfRenderer:{title:D,titleAnnotation:f,icon:{iconType:k},subtitle:ev,content:V,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:L}]}}}}],loggingDirectives:{clientVeSpec:{uiType:x}}}};
aSB=function(G,b,I,h,q,l,V,D,k,L,x){I=I===void 0?{}:I;h=h===void 0?{}:h;q=q===void 0?!1:q;l=l===void 0?!1:l;V=V===void 0?!1:V;D=D===void 0?!1:D;k=k===void 0?!1:k;L=L===void 0?0:L;x=x===void 0?-Infinity:x;if(!(b.length||G.length||q||D))return l?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:qkX(I)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.RW(_.qP("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 f=[];G.length&&f.push(WYO(G,0));D?f.push({contents:[{statementBannerRenderer:VDB(k,h)}]}):q?f.push(WYO(b,1,I,V,L,x)):l&&f.push({contents:[{statementBannerRenderer:l7X(I)}]});(q&&b.length||G.length)&&f.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.RW(_.qP("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 f.map(function(T){return{itemSectionRenderer:T}})};
fc=function(G,b){if(typeof G!=="object")return null;G=_.e(Object.entries(G));for(var I=G.next();!I.done;I=G.next()){var h=_.e(I.value);I=h.next().value;h=h.next().value;if(I===b)return I;if(h=fc(h,b))return I+"."+h}return null};
TI=function(G){var b=G.content;return(G=G.styleRuns)&&b?{runs:G.map(function(I){var h={text:b.slice(I.startIndex,I.startIndex+I.length)};I.fontColor&&(h.textColor=I.fontColor);return h})}:{simpleText:b}};
CZO=function(G,b,I,h){var q=NGj;h&&(G.quantity=h);if(!G.quantity||!G.maxQuantity)return{};h=G.minusButton;var l=G.plusButton,V,D,k,L;return{value:G.quantity,maxValue:G.maxQuantity,onChangeCallback:function(x){q(G,x)},
minusLabel:(V=_.g(h,YIr))==null?void 0:V.label,minimumReachedLabel:(D=_.g(h,YIr))==null?void 0:D.limitReachedLabel,plusLabel:(k=_.g(l,YIr))==null?void 0:k.label,maximumReachedLabel:(L=_.g(l,YIr))==null?void 0:L.limitReachedLabel,disabled:b,onRemoveCommand:I}};
NGj=function(G,b){var I=G.quantityIncrementerEntityKey;if(I){var h={};h.quantity=b;_.W5(_.BR("quantityIncrementerEntity",I,h));G.onChangeCommand&&_.Zm(G.onChangeCommand)}};
JGs=function(G){if(G)return G===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(G).overflowY)?G:JGs(G.parentElement)};
Rnd=function(G,b){(G=KYs(G))&&((_.U("enable_mini_app_command_handler_mweb_fix")?0:b)?uRX.push({command:G,sourceData:{},commandContext:void 0}):_.LL().resolve(_.xW).resolveCommand(G))};
KYs=function(G){return _.g(G,_.U0)};
niO=function(){var G=window.performance.timeOrigin+window.performance.now(),b=(new _.U4).setSeconds(G/1E9);return _.bl(b,2,_.e8(G%1E9),0)};
wJs=function(G,b){var I;G=(I=_.g(_.g(G,_.U0),Ojd))==null?void 0:I.methodName;var h,q;(I=window.youtubewebview||((h=window.webkit)==null?void 0:(q=h.messageHandlers)==null?void 0:q.youtubewebview))&&G&&(h=new s4,G=_.F0(h,1,G),G=_.WL(G.JSC$12620_serializeBinary()),b=_.WL(b),I.postMessage(G+","+b))};
Ax=function(G,b){var I=_.g(_.g(G,_.U0),Ojd);I&&(b&&(I.serializedAdditionalMetadata=_.WL(b)),Rnd(G,!0))};
Ei2=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"}};
pJq=function(){return!!_.wy("ID_TOKEN")};
$kq=function(G){return G instanceof Error&&G.cause instanceof SI2&&G.cause.rpcErrorCode!==void 0?!XJd.includes(G.cause.rpcErrorCode):!0};
buu=function(){return _.mE(GGs,{authuser:""+(_.wy("SESSION_INDEX")||0)})};
MA=function(G,b,I,h){I=I===void 0?"MINI_APP_SDK_API_UNSPECIFIED":I;h=h===void 0?"":h;var q=new _.Wf;I={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:h,sdkApi:I};G instanceof Error&&(q.message=G.message,q.name=G.name,G.cause instanceof SI2&&G.cause.rpcErrorCode!==void 0&&(I.rpcErrorCode=G.cause.rpcErrorCode));var l;(l=b.onError)==null||l.call(b,{loggingError:q,metadata:I})};
h_s=function(G,b,I,h){switch(G){case "MINI_APP_SOURCE_GAMESNACKS":return new ZA(b,I,h);default:return new Ika(b,I,h)}};
qDp=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"}};
jcd=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"}};
lka=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"}};
mkO=function(){return Math.floor(Math.random()*4)+1};
e_j=function(G,b,I,h){G=_.e(Object.entries(G));for(var q=G.next(),l={};!q.done;l={message$jscomp$995:void 0},q=G.next()){var V=_.e(q.value);q=V.next().value;V=V.next().value;l.message$jscomp$995=V;b.push(setTimeout(function(D){return function(){h(!1);I(D.message$jscomp$995.text)}}(l),l.message$jscomp$995.delayMs));
Number(q)>0&&b.push(setTimeout(function(){h(!0)},l.message$jscomp$995.delayMs-400))}};
Vzp=function(G,b){var I=I===void 0?als:I;_.U("mweb_fix_monitor_visibility_after_render")?G&&LG(function(){CLr(G,b,I)}):LG(function(){CLr(G,b,I)})};
Dk2=function(G,b){var I=document.createElement("ytd-engagement-panel-section-list-renderer");I.data=G;var h=b!=null?b:{};G=h.isPersistentPanel;b=h.hideDelayMs;h=h.overscrollContain;G=Object.assign({},G&&{isPersistentPanel:G},b&&{hideDelayMs:b},h&&{overscrollContain:h});Object.assign(I,G);return I};
LvB=function(G){cqs||(cqs=kGO(new _.yg(1,void 0,void 0,vtO),0));var b=cqs.format(Math.floor(G));b=Pj==="be"||Pj==="bg"||Pj==="es"||Pj==="et"||Pj==="hu"||Pj==="ka"||Pj==="lv"||Pj==="pl"||Pj==="pt-PT"||Pj==="sq"?b.replace(new RegExp("^(\\d)"+vtO.GROUP_SEP.replace(".","\\.")+"(\\d+("+vtO.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):b;return G>=1E3&&G<=9999&&b[1]==="."&&(Pj==="sl"||Pj==="it")?b.replace(".",""):b};
fkj=function(G,b,I,h){if(G)return h=h||G.likeStatus,b?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:h==="LIKE",isDisabled:!G.likesAllowed,defaultIcon:{iconType:I},defaultText:h==="LIKE"?G.likeCountWithUnlikeText:G.likeCountText,toggledText:h==="LIKE"?G.likeCountText:G.likeCountWithLikeText,defaultNavigationEndpoint:Qcq(G,"LIKE"),defaultServiceEndpoint:xkO(G,"LIKE"),toggledServiceEndpoint:xkO(G,"INDIFFERENT"),defaultTooltip:_.NO(G.likeCountTooltipText),toggledTooltip:_.NO(G.likeCountTooltipText),
targetId:G.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:h==="DISLIKE",isDisabled:!G.likesAllowed,defaultIcon:{iconType:I},defaultText:h==="DISLIKE"?G.dislikeCountWithUndislikeText:G.dislikeCountText,toggledText:h==="DISLIKE"?G.dislikeCountText:G.dislikeCountWithDislikeText,defaultNavigationEndpoint:Qcq(G,"DISLIKE"),defaultServiceEndpoint:xkO(G,"DISLIKE"),toggledServiceEndpoint:xkO(G,"INDIFFERENT"),defaultTooltip:_.NO(G.dislikeCountTooltipText),
toggledTooltip:_.NO(G.dislikeCountTooltipText)}};
Qcq=function(G,b){if(b==="LIKE")return G.likeCommand;if(b==="DISLIKE")return G.dislikeNavigationEndpoint};
xkO=function(G,b){var I;return(I=G.serviceEndpoints)==null?void 0:I.find(function(h){var q;return((q=_.g(h,_.tx))==null?void 0:q.status)===b})};
_.UkX=function(G,b,I){return window.spf&&!_.U("web_disable_spfjs_client")?TCX(G,b,I):BCr(G,b)};
TCX=function(G,b,I){var h=null,q=(new _.MB(function(l,V){var D={};if(b){D.method=b.method;var k=b.postParams||{};L$a(G,b)&&(k[_.wy("XSRF_FIELD_NAME")]=_.wy("XSRF_TOKEN"));D.postData=_.oN(k);b.type&&(D.type=b.type);k=b.headers}D.headers=eZO(G,k);_.U("debug_forward_web_query_parameters")&&(G=_.kmu(G,window.location.search));D.experimental_headers=D.headers;D.onError=function(L){L.err&&L.xhr&&(L.err.params={url:L.xhr.responseURL,response:L.xhr.responseText.substr(0,64)});V(L.err)};
D.onPartDone=function(L){I&&I.call(null,L.part)};
D.onDone=function(L){var x=scu(L.response,"xsrf_token");DU(window.location.href,G)&&x&&_.OB("XSRF_TOKEN",x);if(x=scu(L.response,"service_worker_killswitch"))_.OB("SERVICE_WORKER_KILLSWITCH",x),T$q();l(L.response)};
h=spf.request(G,D)})).then(gtu);
q.thenCatch(function(l){var V=l instanceof _.zI,D=l&&l.hasOwnProperty("params")&&l.params.response?l.params.response:"";l instanceof Error&&(D?V?SdX(l):D===')]}\'\n{"reload":"now"}'?SdX(l):(Aqr(l,G,D),Mzd(l,D)?_.RB(l):_.K1(l)):SdX(l));h&&h.abort()});
return q};
gtu=function(G){if(G.type==="multipart"){var b=G.timing;G=G.parts.reduce(function(I,h){Object.assign(I,h);return I},{});
G.timing=G.timing||{};Object.assign(G.timing,b);G.type="reduced"}return G};
BCr=function(G,b){b=b===void 0?{}:b;var I=null,h=new _.MB(function(q,l){b.onFinish=function(V){if(V.readyState===XMLHttpRequest.DONE)if(V.status===200){if(V.responseType!=="json"){var D=V.response;D.substring(0,5)===")]}'\n"&&(D=D.substring(5));try{var k=JSON.parse(D)}catch(L){k=L}}else k=V.response;k instanceof Error?l(k):(D=scu(k,"xsrf_token"),DU(window.location.href,G)&&D&&_.OB("XSRF_TOKEN",D),V=V.responseURL,window.performance&&window.performance.getEntriesByName?(D=window.performance.getEntriesByName(V).pop())?
V={responseStart:(0,_.Li)()-(D.responseEnd-D.responseStart)}:(Math.random()<.01&&(D=Error("ei"),D.params=V,_.RB(D)),V={responseStart:-1}):V={responseStart:0},k.timing=k.timing||{},Object.assign(k.timing,V),q(k))}else l(Error("di`"+V.status))};
(I=_.ze(G,b))||l(Error("di`"+I.status))});
h.thenCatch(function(q){q instanceof Error&&(Aqr(q,G),Mzd(q)&&(q.level="WARNING"))});
_.U("cancel_pending_navs")&&h.thenCatch(function(){I.abort()});
return h};
scu=function(G,b){var I=G[b],h=G.parts;G.type==="multipart"&&h&&(I=(G=h.find(function(q){return b in q}))&&G[b]);
return I};
Aqr=function(G,b,I){var h=G.message||"";b={original:h,url:b};if(I)if(h=h.match(/position:?\s*(\d+)/)){h=h&&Number(h[1])?Number(h[1]):0;var q=Math.max(h-25,0);b.position=h;b.response=I.substring(q,h+25)}else b.response=I.substring(0,50);_.n1(G,b);try{G.message="JSON parse error"}catch(l){}};
Mzd=function(G,b){G=G.message||"";G=!!(G.indexOf("<")>=0||G.indexOf("end of ")>=0||G.indexOf("Unterminated string")>=0||G.indexOf("Unexpected EOF"));if(!G&&b)for(var I=b.length,h=!1,q=0;q<I;q++)if(h&&b[q]==="\\")q++;else if(b[q]==='"')h=!h;else if(b[q]==="<"&&!h){G=!0;break}return G};
ZuO=function(){return document.documentElement.hasAttribute("dark")};
_.tzO=function(G,b){if(G!=="GFEEDBACK"&&G!=="GUIDED_HELP")_.Xj(Error("fi`"+G));else{var I=_.LL().resolve(_.vf(_.Ck));if(I&&(I=I.getCurrentPage())&&I.getServiceTrackingParams&&(I=I.getServiceTrackingParams()))for(var h=0,q;q=I[h++];)if(q.service===G){if(G=q.params)for(I=0;h=G[I++];)b[h.key]=h.value;break}}};
_.z_O=function(G){var b=_.Kk();b&&(b=b.getPlayer())&&(b.pauseVideo(),G.playback_id=b.getVideoData().cpn,G.eid=b.getVideoData().eventId,Object.assign(G,b.getFeedbackProductData()))};
otO=function(){var G={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.wy("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(G.enableAnonymousFeedback=!0);_.wy("SESSION_INDEX")&&(G.authuser=String(_.wy("SESSION_INDEX")));_.U("enable_pageid_for_feedback")&&_.wy("DELEGATED_SESSION_ID")&&(G.pageId=String(_.wy("DELEGATED_SESSION_ID")));return G};
_.oG=function(G){_.U("enable_ypc_spinners")&&_.wL(G,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},G])};
_.iP=function(G){_.U("enable_ypc_spinners")&&_.wL(G,"yt-close-popup-action",["yt-loading-renderer"])};
iuq=function(G){return new Promise(function(b,I){_.g5({verifyCommand:{recaptchaToken:G.recaptchaResponse}},{commandController:{onSuccess:function(h,q){q||I("ChallengeService did not return a response.");var l;b({challengeCompleted:(l=q.verified)!=null?l:!1})},
onServerError:function(h,q){I(q)}}})})};
Pir=function(G,b,I,h){b({recaptchaResponse:h}).then(function(q){q.challengeCompleted?_.ri()?(I(3),_.LL().resolve(_.xW).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:G}})):I(2):I(4)},function(){I(4)})};
yqr=function(G,b,I){_.iU(_.Ba(dkO,_.wy("HL")),function(){var h;(h=window.grecaptcha)==null||h.ready(function(){var q=window.grecaptcha;q?(I(q.render(G,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Pir.bind(null,G,iuq,b)})),b(1)):b(4)})})};
rq2=function(G,b){return function(){switch(b()){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}}()};
_.PR=function(){if(!Fvs){var G=document.querySelector("#player.skeleton");G&&(_.iG(G),Fvs=!0)}};
_.WvX=function(){return Huq=M$2()};
YD2=function(){return _.c(function(G){return akX!==void 0?G.return():G.yield(NCO(),0)})};
NCO=function(){return _.c(function(G){if(G.nextAddress==1)return G.yield(t$q(),2);Huq=G.yieldResult;akX=_.uu.addLowPriorityJob(NCO,5E3);_.ip(G)})};
nta=function(G){var b=b===void 0?Ciq:b;var I,h,q=(I=G.responseContext)==null?void 0:(h=I.mainAppWebResponseContext)==null?void 0:h.trackingParam;if(!q){b.increment("MISSING");var l,V,D,k,L,x;_.RB(new _.Wf("282054944_a",{gXT:!!((l=G.responseContext)==null?0:(V=l.mainAppWebResponseContext)==null?0:V.loggedOut),uup:((D=G.responseContext)==null?void 0:D.mainAppWebResponseContext)===void 0,ni5:G.responseContext===void 0,cp:(k=G.playabilityStatus)==null?void 0:k.contextParams,sQO:(((L=G.streamingData)==
null?void 0:L.formats)||[]).length>0,oLO:(((x=G.streamingData)==null?void 0:x.adaptiveFormats)||[]).length>0,os:!!G.offlineState,cotn:G.cotn}));return 2}I="";try{I=Jq2(q)}catch(B){return b.increment("C_ERROR"),_.K1(B),2}try{var f=_.Kvs(I);var T=uyr(f)}catch(B){return b.increment("P_ERROR"),_.K1(B),2}T=_.ku(T,R_B,1,_.vr());q=[];T=_.e(T);for(f=T.next();!f.done;f=T.next())h=f.value,f=h.getPath(),I=(0,_.Cy.getValueByKeys)(G,f.split(".")),I=String(I===void 0||I===null?"":I),h=h.getValue()||"",l=/[+\-\/_]/g,
I.replace(l,"")!==h.replace(l,"")&&(b.increment("MISMATCH"),_.U("ab_mis_log_err")&&(I=new _.Wf("282054944_p",{v3U:f,g:String(I),e:String(h)}),_.K1(I)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(f)||(f.match(/enforcementMessageViewModel/i)?q.push(3):q.push(2)));if(q.length>0)return Math.max.apply(Math,_.Nz(q));b.increment("SUCCESS");return 1};
Etu=function(G){var b=new dc;if(G.interpreterJavascript){var I=_.uAO(G.interpreterJavascript);I=jc(I).toString();var h=new OuX;_.F0(h,6,I);_.ZK(b,1,h,FJ)}else G.interpreterUrl&&(I=_.Rb(G.interpreterUrl),I=_.yM(I).toString(),h=new _.w1p,_.F0(h,4,I),_.ZK(b,2,h,FJ));G.interpreterHash&&_.yq(b,3,G.interpreterHash,FJ);G.program&&_.yq(b,4,G.program,FJ);G.globalName&&_.yq(b,5,G.globalName,FJ);G.clientExperimentsStateBlob&&_.yq(b,7,G.clientExperimentsStateBlob,FJ);return b};
rc=function(G){var b={};G=_.e(G.split("&"));for(var I=G.next();!I.done;I=G.next())I=I.value.split("="),I.length===2&&(b[I[0]]=I[1]);return b};
p1r=function(G){return Number(G.t)||7200};
CMs=function(){if(_.U("bg_st_hr"))return"havuokmhhs-0";var G,b=((G=globalThis.performance)==null?void 0:G.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)};
SDp=function(){return new Promise(function(G){var b=window;b.ntpevasrs!==void 0?G(new Fe(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(I){G(new Fe(I))}))})};
X1r=function(G){var b=G.dJh.bind(G);_.cz("yt.aba.att",b);G=G.jaN.bind(G);_.cz("yt.aba.att2",G)};
Gu2=function(G){switch(_.tB(G.input)){case _.JQ($Xr):var b={};return b.encryptedVideoId=G.innerTubeRequest.externalVideoId,b}return{}};
h1s=function(G){switch(_.tB(G.input)){case _.JQ($Xr):if(_.U("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.JQ(bIv):if(_.U("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.JQ(HR):if(_.U("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&G.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.JQ(Ixa):var b,I;if(_.U("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((I=_.g((b=G.config)==null?void 0:b.command,_.ar))==null?0:I.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.jiv=function(G){var b;if(G.playlistVideoRenderer&&((b=G.playlistVideoRenderer)==null?0:b.engagementBar))return qPr(G.playlistVideoRenderer.engagementBar);if(_.g(G,WR)){var I;if(G=(I=_.g(G,WR))==null?void 0:I.engagementBar)return qPr(G)}return""};
qPr=function(G){if(!G)return"";G=_.g(G,_.lxu);if(G==null||!G.actions)return"";G=_.e(G.actions);for(G=G.next();!G.done;G=G.next()){G=_.g(G.value,_.mXq);var b=void 0;if((b=G)==null||!b.itemId)break;return G.itemId}return""};
_.e1O=function(G){var b;if(G.playlistVideoRenderer&&((b=G.playlistVideoRenderer)==null?0:b.videoId))return G.playlistVideoRenderer.videoId;if(_.g(G,WR)){var I,h;if(G=(I=_.g(G,WR))==null?void 0:(h=I.playlistItemData)==null?void 0:h.videoId)return G}return""};
_.VwB=function(G){var b;if(G.playlistVideoRenderer&&((b=G.playlistVideoRenderer)==null?0:b.voteCount))return G.playlistVideoRenderer.voteCount;if(_.g(G,WR)){var I,h;if(G=(I=_.g(G,WR))==null?void 0:(h=I.playlistItemData)==null?void 0:h.voteCount)return G}return 0};
_.aG=function(G,b){return _.Gi(G.entities,"flowStateEntity",b)};
cRq=function(G,b,I,h){var q=void 0;G=_.e(G[b.iconName]||[]);for(var l=G.next();!l.done;l=G.next()){l=l.value;var V=b.iconSize;var D=b.iconStyle;V=!V||V===l[2];var k=DXa[l[0]];h&&h!==l[1]||!V||D&&D!==k?D=!1:q?(D=DXa[l[0]],D=!!b.iconStyle||D==="youtube_outline",V=q.version<=l[1],D=(!!b.iconSize||l[2]===24)&&D&&V):D=!0;D&&(q={name:b.iconName,style:DXa[l[0]],size:l[2],version:l[1],allowMirroring:!!l[3],url:I(b.iconName,l)})}return q};
kus=function(G,b,I,h){return G+(""+DXa[I[0]]+((h===void 0?0:h)?"_experimental":"")+"/"+b+"/v"+I[1]+"/")+(I[2]+"px.svg")};
vwB=function(G){return _.wy("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.wy("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":G};
Lw2=function(G,b){return kus("https://fonts.gstatic.com/s/i/",G,b)};
Qia=function(G,b){return kus("https://fonts.gstatic.com/s/i/",G,b,!0)};
xXO=function(G,b){return kus("https://www.gstatic.com/youtube/img/icons/web/",G,b)};
Tld=function(G){var b=G.enabled;var I=G.itemPlaybackModel;var h=G.thumbnailElRef;var q=G.containerElRef;var l=G.options;var V;_.K0(function(){var D=q==null?void 0:q.value;var k,L=(k=h())==null?void 0:k.value;k=I();var x=l();if(b&&k&&D&&L&&(x==null?0:x.thumbnail)){var f={data:k,hostElement:D},T,B,A=[].concat(_.Nz((T=x.thumbnailOverlays)!=null?T:[]),_.Nz((B=k.overlays)!=null?B:[]));B=k.itemPlaybackOptions;T=(B==null?void 0:B.enableRoundedPlayer)||x.enableRounding;B=B==null?void 0:B.disableTimeStatusOverlay;
var t,y;D={mediaRenderer:f,lockupElement:D,thumbnailElement:L,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.s0((t=k.inlinePlayerData)==null?void 0:t.onVisible),navigationEndpoint:_.s0((y=k.inlinePlayerData)==null?void 0:y.onSelect),thumbnail:x.thumbnail,thumbnailOverlays:A,accessibilityText:x.accessibilityText||""},thumbnailSize:x.thumbnailSize,enableRounding:T,mouseleaveCallback:x.mouseleaveCallback,hideTimeDisplay:B}}}else D=void 0;if(t=D){var F;(F=V)==null||NA(F);V=Mt(t);var W,O;
((W=I())==null?0:(O=W.inlinePlayerData)==null?0:O.forceImpAutoplay)&&fxO(V)}},"BLiQOd");
_.uI(function(){var D;(D=V)==null||NA(D)})};
Blr=function(G){G=atob(G);for(var b=[],I=0;I<G.length;I++)b.push(G.charCodeAt(I));return new Blob([new Uint8Array(b)],{type:"image/png"})};
siX=function(G,b,I,h){h=h===void 0?"INSERTION_POSITION_UNSPECIFIED":h;return G({targetId:b},function(q){var l,V=(l=q.contents)!=null?l:[];l=I!=null?I:[];var D=UX2(V);switch(h){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},q,{contents:[].concat(_.Nz(V.slice(0,D)),_.Nz(l),_.Nz(V.slice(D+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},q,{contents:[].concat(_.Nz(l),_.Nz(V))});case "INSERTION_POSITION_LAST":return Object.assign({},q,{contents:[].concat(_.Nz(V),_.Nz(l))});
default:return q}})};
ARB=function(G,b,I,h,q){q=q===void 0?"RELATIVE_INSERTION_POSITION_AFTER":q;return G({targetId:b},function(l){var V,D=(V=l.contents)!=null?V:[];V=gwv(D,I);if(V<0)return l;V=q==="RELATIVE_INSERTION_POSITION_BEFORE"?V:V+1;return Object.assign({},l,{contents:[].concat(_.Nz(D.slice(0,V)),_.Nz(h),_.Nz(D.slice(V)))})})};
UX2=function(G){var b=G.findIndex(function(I){return _.g(I,_.Yg)});
return b>=0?b:G.length};
gwv=function(G,b){return G.findIndex(function(I){a:{I=_.e(Object.values(I));for(var h=I.next();!h.done;h=I.next())if((h=h.value)&&h.targetId){I=h.targetId;break a}I=""}return I===b})};
ZI2=function(G,b,I){return G({targetId:b},function(h){var q,l=(q=h.contents)!=null?q:[];return Object.assign({},h,{contents:MwO(l,I)})})};
MwO=function(G,b){return G.filter(function(I){var h=b.includes;a:{I=_.e(Object.values(I));for(var q=I.next();!q.done;q=I.next())if((q=q.value)&&q.targetId){I=q.targetId;break a}I=""}return!h.call(b,I||"")})};
_.twB=function(G,b){return{engagementPanelSectionListRenderer:{panelIdentifier:G,identifier:b,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
z1O=function(G,b){G=G.getAvailableAudioTracks();if(G.length)return G==null?void 0:G.find(function(I){var h;return(I==null?void 0:(h=I.getLanguageInfo())==null?void 0:h.getId())===b})};
_.iIO=function(G){var b,I=(b=G.getOption("captions","tracklist",{includeAsr:!0}))!=null?b:[];return I=owu(I,G)};
PqO=function(G){return G.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
owu=function(G,b){b=PqO(b);if(b==null||!b.length)return G;var I=b.filter(function(V){return V});
b=G.filter(function(V){return V.languageCode.startsWith("en")});
I=_.e(I);for(var h=I.next();!h.done;h=I.next())if(h=h.value,b.length){var q=b[0],l=Object.assign({},q);q.languageCode!==h.languageCode&&(l.displayName=q.languageName+" >> "+h.languageName,l.translationLanguage=h,G.push(l))}return G};
dXB=function(G,b,I){G=_.iIO(G);if(G.length)return I?G.find(function(h){if(typeof(h==null?void 0:h.translationLanguage)==="object"){var q;return((q=h.translationLanguage)==null?void 0:q.languageCode)===b}return!1}):G==null?void 0:G.find(function(h){return h.languageCode===b})};
yRr=function(G){return G.getOption("captions","tracklist",{includeAsr:!0})};
rRd=function(G){var b=G.getAvailableAudioTracks();if(b!=null&&b.length){var I=G.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Nz(b.map(function(h){return{listItemViewModel:{title:{content:h.getLanguageInfo().getName()},isSelected:h.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:h.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
Fwv=function(G){return G.getOption("captions","tracklist",{includeAsr:!0})};
HIp=function(G){var b=Fwv(G);if(b==null?0:b.length)return b;G.loadModule("captions");return Fwv(G)};
Wwr=function(G){var b=G.getOption("captions","track");if(b)return b;G.loadModule("captions");return G.getOption("captions","track")};
NlO=function(G){var b=HIp(G);if(b!=null&&b.length){var I=Wwr(G),h;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.qP("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(_.Nz(b.map(function(q){return{listItemViewModel:{title:{content:q.displayName},
isSelected:q.displayName===(I==null?void 0:I.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:q.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.qP("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!I.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!I.translationLanguage&&{selectionText:{content:(I==null?void 0:(h=I.translationLanguage)==null?void 0:h.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[axu(G)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
axu=function(G){var b=PqO(G);if(b==null||!b.length)throw Error("Ei");var I=Wwr(G);G=b.filter(function(h){return!h.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Nz(G.map(function(h){var q;return{listItemViewModel:{title:{content:h.languageName},isSelected:h.languageName===(I==null?void 0:(q=I.translationLanguage)==null?void 0:q.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:h.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
Kwj=function(G){return new Promise(function(b,I){if(G===void 0)_.K1(Error("Ii"),"ERROR"),I(Error("Ii"));else{I=new _.YPB;var h=_.CqO();I=I.init();var q=_.JRr(_.wy("YPC_MB_URL"),!0);Promise.all([I,q]).then(function(){var l=_.Cc.payments.business.integration.ClientTokenFactory.createClientToken(G,h);b(l)})}})};
nwX=function(G,b,I,h,q,l,V){var D=_.yO();I=I.replace(/-/g,"+").replace(/_/g,"/");var k=_.m$().get("hl"),L=_.Jx(_.Hy),x=b==null?void 0:b.element;x&&_.oG(x);uM2(b,!0);_.R12(L,I,D.resolve,function(){x&&_.iP(x)},function(f){x&&_.iP(x);
D.reject(f)},k,h?function(f){h&&_.dR(G,h,{backend_analytics:f})}:void 0,D.resolve,q,l,V);
return D.promise};
uM2=function(G,b){!(G=G==null?void 0:G.element)||G.tagName!=="YT-BUTTON-RENDERER"&&G.tagName!=="YTD-BUTTON-RENDERER"||(G.disabled=b)};
OIu=function(){var G=_.qP("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.RW(G),actionButton:{buttonRenderer:b2d()}}},popupType:"TOAST"}};
wx2=function(){var G=_.qP("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.RW(G),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Ewq=function(G){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:G}]}}};
Kc=function(G,b,I,h){var q;return _.c(function(l){if(l.nextAddress==1)return _.gm(l,2),l.yield(G,4);if(l.nextAddress!=2)return(q=_.cj(b.getState().entities).length>0)?l.return({title:_.RW(_.qP("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.RW(_.qP("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:GKO()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
l.return(I7a(I,h));_.zf(l);return l.return(I7a(I,h))})};
pxr=function(G,b){return b?b==="PPSV"||pQu(G,b):!1};
SPB=function(G){G.responseContext||(G.responseContext={});G.responseContext.maxAgeSeconds=0;return G};
RG=function(G){var b;return _.c(function(I){return I.nextAddress==1?I.yield(XxO(G,"service:topbar:fallback"),2):(b=I.yieldResult)&&_.uP(b)?I.return(SPB(_.uP(b))):I.return()})};
$qv=function(G){var b;return _.c(function(I){return I.nextAddress==1?I.yield(XxO(G,"service:downloads_settings:fallback"),2):(b=I.yieldResult)&&_.uP(b)?I.return(b):I.return()})};
XxO=function(G,b){var I;return _.c(function(h){if(h.nextAddress==1)return G?h.yield(G.get(b),2):h.return();I=h.yieldResult;return!I||!_.uP(I)||!isNaN(Number(I.data.expireTimestampMs))&&I.isExpired()?h.return():h.return(I)})};
GRO=function(G){var b=_.LL().resolve(E4).getState().entities;return G.playlistId?pxr(b,G.playlistId):!1};
Ijd=function(G){var b=_.Te("web_pbj_log_warning_rate",0);b=b>0&&Math.random()<b;if(!_.g(G,_.V4))return b&&_.RB(Error("bj")),!1;var I;return _.U("shorts_controller_retrieve_seedless_sequence_v2")&&((I=_.g(G,_.V4))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:bK2(G)?!0:(b&&_.RB(Error("cj")),!1)};
bK2=function(G){var b=(_.g(G,_.Wq)||_.g(G,_.V4)).videoId;if(!b||!h02.test(b))return!1;var I;return(G=(I=_.g(G.commandMetadata,_.IW))==null?void 0:I.url)&&(G.includes(b)||G.startsWith("/clip"))?!0:!1};
_.jds=function(){var G=_.m$();return G.getFlag(192)?G.getFlag(190):!(_.U("web_watch_cinematics_disabled_by_default")||_.U("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&qFr())};
_.pc=function(G,b,I){var h={};h.currentUrl=b;h.vis=G.vis!==void 0?G.vis:0;h.splay=!1;b=_.m$();h.autoCaptionsDefaultOn=b.getFlag(66);b.getFlag(141)?b.getFlag(140)?h.autonavState="STATE_OFF":h.autonavState="STATE_ON":h.autonavState="STATE_NONE";h.html5Preference="HTML5_PREF_WANTS";isNaN(_.wy("STS"))||(h.signatureTimestamp=_.wy("STS"));G.autonav&&(h.autoplay=!0,h.autonav=!0);G.mutedAutoplay&&(h.autoplay=!0,h.mutedAutoplay=!0);G.inlinePlayback&&(h.autoplay=!0,h.autonav=!1,h.isInlineUnmutedPlayback=!!G.inlineUnmuted);
h.referer=I;h.lactMilliseconds=G.lact!==void 0?G.lact.toString():"-1";_.U("enable_unknown_lact_fix_on_html5")&&h.lactMilliseconds==="-1"&&_.RB(new _.Wf("Unknown LACT is set in playbackContext.",{"lact in tempData":G.lact||"undefined",autonav:G.autonav||"undefined"}));G={};b.getFlag(194)&&(G.hasShownAmbientMode=!0);b.getFlag(192)&&(G.hasToggledOffAmbientMode=!0);_.jds()&&(G.watchAmbientModeEnabled=!0);h.watchAmbientModeContext=G;return h};
ljO=function(G){var b={},I=G.pbis||0;I&&(b.playbackBeginsInSeconds=I);G.prefetch_reason&&G.prefetch_reason==="hc_pbis"&&(b.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return b};
mqa=function(G,b){var I;if(b==null?0:(I=b.requestTemplate)==null?0:I.panelId)G.panelId=b.requestTemplate.panelId;var h;if(b==null?0:(h=b.requestTemplate)==null?0:h.params)G.params=b.requestTemplate.params};
VYs=function(){if(e0O)return e0O();var G=!_.U("idb_response_store_auth_killswitch"),b={};e0O=vz("yt-it-response-store",{objectStores:(b.ResponseStore={addedAtVersion:1},b),shared:!G,upgrade:function(I,h){h(1)&&(I=Sy(I,"ResponseStore",{keyPath:["key","clientName"]}),X5(I,"byExpiration","expireTimestampMs"),X5(I,"byInterface","clientName"))},
version:1});return e0O()};
DqO=function(G){return _.jy(VYs(),G)};
kRp=function(G,b){var I;return _.c(function(h){return h.nextAddress==1?h.yield(_.k_(),2):(I=h.yieldResult)?h.return(new c9B(G,b,I)):h.return()})};
vLp=function(G){var b=Object.keys(G)[0];if(b)return G.screenExit&&(b=b+";"+G.screenExit.screen),b};
LP2=function(G){var b=new Map;G=_.e(G);for(var I=G.next();!I.done;I=G.next())I=I.value,I!=null&&(b.has(I.taskType)||b.set(I.taskType,[]),b.get(I.taskType).push(I));return b};
Qdp=function(G){G=[].concat(_.Nz(G)).sort(function(I,h){return I-h});
var b=Math.floor(G.length/2);return G.length%2?G[b]:(G[b-1]+G[b])/2};
TDr=function(G,b){G=G===void 0?W2j:G;b=b===void 0?{}:b;_.cz("yt.logging.errors.log",_.K1);F22();xqd(Jad(),b);window.onerror=G;fjO=HkO;window.addEventListener("unhandledrejection",function(I){if(I.reason instanceof Error){var h=I.reason;_.n1(h,{source:"unhandledrejection"});h.name==="AbortError"&&(h.level="WARNING")}HkO(I.reason);I.preventDefault()})};
_.BDu=function(G){var b,I,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u,w,$a,ev,LO,td,xa,Uj,W2,is,su,an,A5,XO,kb,rz,on,Ac,U1,mp;return _.c(function(bn){if(bn.nextAddress==1)return bn.yield(_.lm(G,{mode:"readonly",enableRetries:!0},function(xb){return ms(xb,"playbackData").then(function(j8){var BX=j8.map(function(vX){return vX.transfer}).filter(function(vX){return!!vX}),I5=j8.map(function(vX){return vX.offlineVideoPolicy}).filter(function(vX){return!!vX}),ys=j8.filter(function(vX){return!!vX.key}).map(function(vX){return _.$S(_.pU(vX.key).entityId,
"downloadStatusEntity")});
BX=ms(xb,"transfer",BX);I5=ms(xb,"offlineVideoPolicy",I5);ys=ms(xb,"downloadStatusEntity",ys);var nQ=BX.then(function(vX){vX=vX.reduce(function(cX,Ga){(Ga==null?0:Ga.offlineVideoStreams)&&cX.push.apply(cX,_.Nz(Ga.offlineVideoStreams));return cX},[]).filter(function(cX){return!!cX});
return ms(xb,"offlineVideoStreams",vX)});
return XU.all([BX,I5,nQ,ys]).then(function(vX){var cX=_.e(vX);vX=cX.next().value;var Ga=cX.next().value;var wX=cX.next().value;cX=cX.next().value;return[j8,vX,Ga,wX,cX]})})}),2);
if(bn.nextAddress!=3)return b=bn.yieldResult,bn.yield(_.lm(G,{mode:"readonly",enableRetries:!0},function(xb){return ms(xb,"mainDownloadsListEntity").then(function(j8){var BX,I5;return(I5=(BX=j8[0])==null?void 0:BX.downloads)!=null?I5:[]})}),3);
I=bn.yieldResult;h=_.e(b);q=h.next().value;l=h.next().value;V=h.next().value;D=h.next().value;k=h.next().value;L=q;x=l;f=V;T=D;B=k;A={};t={};y={};F={};W={};O=[];K=_.e(x);for(u=K.next();!u.done;u=K.next())(w=u.value)&&(A[w.key]=w);$a=_.e(f);for(ev=$a.next();!ev.done;ev=$a.next())(LO=ev.value)&&(t[LO.key]=LO);td=_.e(B);for(xa=td.next();!xa.done;xa=td.next())(Uj=xa.value)&&(y[Uj.key]=Uj);W2=_.e(T);for(is=W2.next();!is.done;is=W2.next())(su=is.value)&&(F[su.key]=su);an=_.e(I);for(A5=an.next();!A5.done;A5=
an.next())XO=A5.value,kb=void 0,W[(kb=XO.videoItem)!=null?kb:""]=!0,XO.videoItem&&(on=rz=void 0,Ac=(on=(rz=_.pU(XO.videoItem))==null?void 0:rz.entityId)!=null?on:"",O.push({externalVideoId:Ac}));U1=L.filter(function(xb){if(!xb||!xb.key||!xb.offlineVideoPolicy)return!1;xb=_.pU(xb.key).entityId;xb=_.$S(xb,"downloadStatusEntity");var j8;return!(xb&&((j8=y[xb])==null?void 0:j8.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
mp=U1.map(function(xb){var j8=A[xb.transfer],BX=[];if(j8==null?0:j8.offlineVideoStreams)for(var I5=_.e(j8.offlineVideoStreams),ys=I5.next();!ys.done;ys=I5.next())(ys=F[ys.value])&&BX.push(ys);I5=t[xb.offlineVideoPolicy];ys=W;var nQ=xb==null?void 0:xb.playerResponseTimestamp,vX=_.pU(I5.key).entityId;xb=_.$S(vX,"mainVideoEntity");if(I5.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var cX="OFFLINE_VIDEO_STATE_DISABLED";I5.expirationTimestamp&&Number(I5.expirationTimestamp)<Date.now()/1E3&&(cX="OFFLINE_VIDEO_STATE_EXPIRED")}else if(I5.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")cX="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(j8==null?void 0:j8.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":cX="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":cX="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":cX="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":cX="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":cX="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":cX="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:cX="OFFLINE_VIDEO_STATE_UNKNOWN"}if(cX==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(j8==null?void 0:j8.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":cX="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":cX="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":cX=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}vX={id:vX,videoState:cX};if(j8==null?0:j8.cotn)vX.cotn=j8.cotn;if(j8==null?0:j8.maximumDownloadQuality)vX.selectedVideoQuality=j8==null?void 0:j8.maximumDownloadQuality;if(j8==null?0:j8.lastProgressTimeMs)vX.lastProgressTimeMs=j8.lastProgressTimeMs;nQ&&(vX.playerResponseSavedTimeMs=String(Number(nQ)*1E3));j8=String;nQ=0;BX=_.e(BX);for(cX=BX.next();!cX.done;cX=BX.next())if(cX=cX.value,cX.streamsProgress){cX=_.e(cX.streamsProgress);for(var Ga=cX.next();!Ga.done;Ga=
cX.next()){var wX=void 0;nQ+=Number((wX=Ga.value.numBytesDownloaded)!=null?wX:0)}}vX.downloadedBytes=j8(nQ);vX.selectedOfflineMode=ys[xb]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";I5.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(vX.offlinePlaybackDisabledReason=I5.offlinePlaybackDisabledReason);return vX});
return bn.return({offlineVideos:mp,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:O}}})})};
Uqd=function(){var G;return _.c(function(b){return b.nextAddress==1?b.yield(_.hQ(),2):(G=b.yieldResult)?b.return(_.BDu(G)):b.return({state:"PES Unavailable"})})};
A9p=function(){var G,b,I,h;return _.c(function(q){if(q.nextAddress==1)return q.yield(_.hQ(),2);if(q.nextAddress!=3)return(G=q.yieldResult)?q.yield(sdd(G),3):q.return({state:"PES Unavailable"});b=q.yieldResult;I={};h=b.reduce(function(l,V){l[V.key]=V;return l},I);
return q.return(gL2(h))})};
gL2=function(G){for(var b={},I=[],h=_.e(Object.keys(G)),q=h.next();!q.done;q=h.next()){var l=q.value;q=G[l];var V=void 0;if(((V=q)==null?void 0:V.entityType)==="mainVideoEntity"){delete G[l];var D=q.data;q={};if(D){var k=void 0;V=(k=D.videoId)!=null?k:"vid-"+l;l=G;q.video=D;delete q.video.formattedDescription;delete q.video.thumbnail;D.owner&&(k=l[D.owner],k==null?0:k.data)&&(delete l[k.key],q.video.owner=k.data,delete q.video.owner.avatar);if(D=D.downloadState)if(k=l[D],k==null?0:k.data)if(delete l[D],
D=k.data.playbackData)if(k=l[D],k!=null&&k.data){delete l[D];D=k.data;delete D.playerResponseJson;q.playbackData=D;if(D.transfer&&(k=l[D.transfer],k==null?0:k.data)){delete l[k.key];var L=k.data;q.transfer=L;k=[];L=_.e(L.offlineVideoStreams||[]);for(var x=L.next();!x.done;x=L.next())if(x=l[x.value])delete l[x.key],k.push(x.data);k&&(q.streams=k)}(D=D.offlineVideoPolicy)&&(D=l[D])&&D.data&&(delete l[D.key],q.offlineVideoPolicy=D.data)}b[V]=q}}else q&&q.entityType==="offlineOrchestrationActionWrapperEntity"&&
q.data&&(delete G[q.key],V=q.data,l=void 0,I.push({id:V.rootActionId,type:((l=V.actionProto)==null?void 0:l.actionType)||"",entity:q}))}b.wrapperEntities=I;Object.keys(G).length>0&&(b.unknownKeys=G);return b};
MYB=function(){var G,b,I,h,q,l,V,D,k;return _.c(function(L){if(L.nextAddress==1)return G=(new _.EA("")).hasLocalStorage(),h=!!((b=_.hd.crypto)==null?0:(I=b.subtle)==null?0:I.importKey),q=!!_.hd.BroadcastChannel,l=!!_.hd.navigator.locks,L.yield(vSO(),2);V=L.yieldResult;D=G&&h&&q&&l&&V;k={isSupported:D};if(D)return L.return(k);k.missingBrowserFeatures=[];V||k.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");G||k.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
h||k.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");q||k.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");l||k.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return L.return(k)})};
ZK2=function(G,b,I,h){var q=!1,l={contentId:void 0,contentType:"video"};b=_.e(Object.entries(b));for(var V=b.next();!V.done;V=b.next()){var D=_.e(V.value);V=D.next().value;D=D.next().value;G.includes(V)&&!I.has(D)?(l.contentId=D,I.add(D),q=!0):V==="contentType"?D==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(l.contentType="playlist"):typeof D==="object"&&D!==null&&ZK2(G,D,I,h)}q&&h.push(l)};
tYd=function(){var G;return!((G=SN?SN:null)==null||!G.window)};
_.oLO=function(G){if(_.zq()&&_.sOB("Chromium")>=120){var b=_.z0r().mediaSession;try{b.setActionHandler("enterpictureinpicture",function(){G()})}catch(I){}}};
iKv=function(G){for(var b=[],I=_.e(document.styleSheets),h=I.next(),q={};!h.done;q={node$jscomp$779:void 0},h=I.next())q.node$jscomp$779=h.value.ownerNode,q.node$jscomp$779&&(q.node$jscomp$779 instanceof HTMLStyleElement||q.node$jscomp$779 instanceof HTMLLinkElement)&&b.push(new Promise(function(l){return function(V){var D=l.node$jscomp$779.cloneNode(!0);D.onload=function(){V()};
D.onerror=function(){_.RB(Error("tj"));V()};
G.document.head.appendChild(D)}}(q)));
return Promise.all(b)};
YFv=function(G){var b=[_.fy(Ptp),_.fy(dqO),_.fy(y9O)];r9p(window.document.documentElement,G.document.documentElement,[_.fy(FP2),_.fy(HKd),_.fy(WPO),_.fy(ajB),_.fy(NDp)]);r9p(window.document.body,G.document.body,b)};
r9p=function(G,b,I){G=_.e(G.attributes);for(var h=G.next();!h.done;h=G.next())if(h=h.value)try{_.Vs(I,b,h.name,h.value)}catch(q){}};
J9q=function(G,b){G=new _.Xe(G.document.documentElement);G.start(Ctu,b);return G};
KPj=function(G){var b=G.document.documentElement;b.addEventListener("click",function(I){gsp(b,I)});
b.addEventListener("touchstart",function(I){zva(I)});
b.addEventListener("mousedown",function(I){zva(I)})};
R0r=function(G,b,I,h){h=h===void 0?!1:h;b=new uxO(b||G,I||G);return{x:G.x+((h===void 0?0:h)?b.lengthX*-1:b.lengthX)*.2,y:G.y+((h===void 0?0:h)?b.lengthY*-1:b.lengthY)*.2}};
nLd=function(G){if(!G)return!1;var b=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",I,h,q,l=(q=(I=G.errorScreen)==null?void 0:I.playerLegacyDesktopYpcTrailerRenderer)!=null?q:(h=G.errorScreen)==null?void 0:h.ypcTrailerRenderer;return!!b||!!l};
_.OKO=function(G,b){if(!G)return!1;var I,h=(I=G.errorScreen)==null?void 0:I.playerLegacyDesktopYpcOfferRenderer,q;b=!!(b==null?0:(q=b.playerOverlayRenderer)==null?0:q.gatedActionsOverlayRenderer);return!!nLd(G)||!!h||!!b};
pSp=function(G){return wSv(G,0,"gclid",G.search(ELO))>=0||wSv(G,0,"gad_source",G.search(ELO))>=0};
SFr=function(G){var b=[],I=0;return{clear:function(){I=b.length=0},
push:function(h){b[I]=h;I=(I+1)%G},
iterate:function(){return function q(){var l,V,D,k;return _.$x(q,function(L){switch(L.nextAddress){case 1:_.ZJ(L,2),l=b.length,V=0;case 4:if(!(V<l)){L.jumpTo(2);break}D=I+V;k=_.GO;return L.yield(b[D%l],7);case 7:k(L.yieldResult);V++;L.jumpTo(4);break;case 2:_.Mz(L),_.tj(L,0)}})}()}}};
XSO=function(G){G.eventsToIgnore||(G.eventsToIgnore=[]);var b=G.eventsToIgnore.map(MsO),I=new Set(b),h=SFr(G.bufferSize);return{flush:function(){var q=Array.from(h.iterate());h.clear();q=q.map(function(l){return{name:l.name,timestamp:l.startTime,attributes:l.attributes}});
return JSON.stringify(q)},
onSpanStart:function(q){q.name==="event"&&I.has(q.attributes.type)||h.push(q)}}};
$7r=function(G){G=XSO(G);var b=G.flush;Ujj({onSpanStart:G.onSpanStart});wH.subscribe("handleError",function(I){try{I.params.breadcrumbs=b()}catch(h){_.K1(h,"WARNING")}})};
Gnj=function(){BT("web_tracing_action");_.US("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
beX=function(){BT("web_tracing_action");_.US("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
hUr=function(G,b,I){if(b===void 0){IHd||(beX(),setInterval(beX,6E5),IHd=!0);var h="web_tracing_action"}else h=b;var q,l=((q=G.endTime)!=null?q:G.startTime)-G.startTime,V={};q=G.name;var D=G.startTime;V={webTracing:(V[G.name]=G.attributes,V)};I=_.$W(W4v)(q,l,D,V,I,h);if(G.children)for(G=_.e(G.children),h=G.next();!h.done;h=G.next())hUr(h.value,b,I)};
qsv=function(G){var b=imX.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"&&(b("Received message from extension",I),G.onMessage(I)))});
return function(I,h){I={app:"yt.telemetry",from:"app",key:I,payload:h};b("Sending message to extension",I);window.postMessage(I,"*")}};
jKr=function(){var G=G===void 0?3E3:G;var b=qsv({onMessage:function(){}}),I=[];
return{onSpanEnd:function(h){h.parentId==null&&I.push(h)===1&&setTimeout(function(){var q=[].concat(_.Nz(I));I.length=0;b("spansReported",{spans:q})},G)}}};
lHO=function(G){G=G===void 0?400:G;var b=[],I=[];return{start:function(){return IDO({checkoutEveryNth:G,emit:function(h,q){q&&(b=I,I=[]);I.push(h)}})},
getRecording:function(){return[].concat(_.Nz(b),_.Nz(I))}}};
VVO=function(){(new m7O({sessionReplayEvents:_.Te("web_tracing_session_replay",0)})).subscribe(function(G){if(G.sessionReplayEvents>0)try{var b=lHO(G.sessionReplayEvents);b.start();if(_.U("web_tracing_session_replay_demo")){var I=console.log;window.exportSessionReplay=function(){var h=JSON.stringify(b.getRecording(),null,2);h=eUv(new Blob([h],{type:"text/plain"}));var q=document.createElement("a");q.download="session_replay.json";q.dataset.downloadurl=["application/json",q.download,q.href].join(":");
q.style.display="none";q.href=h;q.click();URL.revokeObjectURL(h);I("View replay at go/yt-session-replay-viewer")}}}catch(h){_.RB(Error("vj"))}})};
civ=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var G=window.performance.getEntriesByType("navigation");if(G.length>0){var b=G[0],I=window.performance.timeOrigin;t6O("pageLoad",{navigationType:D7r(b.type),unloadEventStart:Math.round(b.unloadEventStart),unloadEventEnd:Math.round(b.unloadEventEnd),domInteractive:Math.round(b.domInteractive),domContentLoadedEventStart:Math.round(b.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(b.domContentLoadedEventEnd),
domComplete:Math.round(b.domComplete),loadEventStart:Math.round(b.loadEventStart),loadEventEnd:Math.round(b.loadEventEnd),redirectCount:b.redirectCount},{active:!1,startTime:I+b.startTime,endTime:I+b.loadEventEnd})}}catch(h){}})};
D7r=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"}};
x7O=function(){for(var G=knX.value,b={},I=_.e(G.enabledSpansArray),h=I.next();!h.done;h=I.next())b[h.value]=!0;BSr({sessionId:hqO(),enabledSpans:b,shouldSampleFn:function(q,l,V){if(vJO){var D;return q==="shortToShort"||(V==null?void 0:(D=V.rootSpan())==null?void 0:D.name)==="shortToShort"}return!0}});
oF2();sad("pageLoad")&&civ();G.exportToCsi&&Ujj(L3s);G.exportToDevTools&&Ujj(jKr());G.maxBreadcrumbs>0&&$7r({eventsToIgnore:QKs,bufferSize:G.maxBreadcrumbs})};
fHq=function(G){return new Promise(function(b){window.setTimeout(b,G)})};
T9j=function(G){var b={bicf:function(l){G.zuW=l},
blc:function(){return G.getLatestChallengeResponse()},
bcr:function(l){G.sLX.push(l)}},I=window;
I.ntpevasrs=b;if(I.ntpqfbel!==void 0)for(var h=_.e(I.ntpqfbel),q=h.next();!q.done;q=h.next())q=q.value,q(b);I.ntpqfbel=void 0};
B9q=function(G){return _.c(function(b){if(b.nextAddress==1)return _.gm(b,2),b.yield(G.g6F(),4);if(b.nextAddress!=2)return _.hF(b,0);_.zf(b);_.ip(b)})};
U7p=function(G){var b,I;(b=G.ytcsi)==null||(I=b.tick)==null||I.call(b,"pot_ist")};
sKd=function(G){if(G instanceof Error){var b=_.Ge("yt.logging.errors.log");b&&b(G,"WARNING")}};
gJr=function(G){try{var b=JSON.parse(G);if(b.bgChallenge)return b}catch(I){}};
MVO=function(){var G=window,b={networkStatusManagerPromise:_.LL().resolve(new S3r(_.IB)),initialChallengeSli:_.U("wpo_att_sli")?new _.g6v("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};G=G===void 0?window:G;var I=G.ytAtR,h;b==null||(h=b.initialChallengeSli)==null||_.bX(h);if(I){if(I=gJr(I)){var q;b==null||(q=b.initialChallengeSli)==null||_.IA(q,"SUCCESS");AiX(I,b)}G.ytAtR=void 0}else G.ytAtRC=function(l){if(l=gJr(l)){var V;b==null||(V=b.initialChallengeSli)==null||
_.IA(V,"SUCCESS");AiX(l,b);G.ytAtRC=void 0}}};
zUO=function(){if(Zej)return Zej;try{var G=_.ol("IFRAME");_.$T(G,_.Ba(tVB));G.sandbox.add("allow-same-origin");G.style.display="none";document.body.appendChild(G);return Zej=G}catch(b){G=new _.Wf("Failed to create sandbox iframe"),_.K1(G)}};
oJv=function(G){var b,I;return(I=G==null?void 0:(b=G.contentWindow)==null?void 0:b.fetch)!=null?I:window.fetch};
ier=function(G){var b,I;return(I=G==null?void 0:(b=G.contentWindow)==null?void 0:b.Request)!=null?I:window.Request};
PEO=function(G){var b,I;return(I=G==null?void 0:(b=G.contentWindow)==null?void 0:b.TextDecoder)!=null?I:window.TextDecoder};
d7s=function(){return function(G,b){_.wy("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[G]=b}};
yiO=function(){return function(G,b){var I={};I[G]=b;G=_.$W(_.F4q)(I);Object.keys(G).length>0&&_.Tm(G)}};
Hev=function(){if(jMO()==="hidden")var G="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else jMO()==="visible"&&(G="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",riq=null);G&&F3q(G)};
F3q=function(G){if(G==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||G==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(W32===G)return;W32=G}var b=9E4+Math.random()*2E3;if(G!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.vA()>b)&&jMO()==="visible"){b=-1;riq&&(b=Math.round((0,_.Li)()-riq));var I=String;var h=_.Ge("_fact",window);h=h==null||h==-1?-1:Math.max(Date.now()-h,0);_.C1("foregroundHeartbeat",{firstActivityMs:I(h),clientDocumentNonce:qKj,index:String(aHv),lastEventDeltaMs:String(b),trigger:G});
_.cz("_fact",-1,window);aHv++;riq=(0,_.Li)()}};
N9O=function(G,b,I,h,q,l){b=new Uint8Array(b);if(G.length===0)return b;var V=0;q=q!=null?q:G.length-1;for(var D=I;D<=q;D++){var k=G[D],L=D===I?h:0,x=void 0,f=D===q?(x=l)!=null?x:k.length:k.length;k=k.subarray(L,f);b.set(k,V);V+=k.length}return b};
_.YsB=function(){try{return!!self.sessionStorage}catch(G){return!1}};
CEB=function(){var G=navigator;return new Promise(function(b,I){var h;(h=G.webkitTemporaryStorage)!=null&&h.queryUsageAndQuota?G.webkitTemporaryStorage.queryUsageAndQuota(function(q,l){b({usage:q,quota:l})},function(q){I(q)}):I(Error("Ej"))})};
Ji2=function(G,b){var I={errorSeverity:b.errorSeverity.toString(),wizFeatureFlags:Object.entries(b.featureFlags).join("\n")};rav(b,I);b=b.errorSeverity;b===3?_.K1(G,"ERROR",void 0,void 0,void 0,I):b===2&&_.K1(G,"WARNING",void 0,void 0,void 0,I);_.U("cow_if_errors_in_popup")&&b===3&&G.message.indexOf("<If>")!==-1&&window.alert(G.message)};
K3v=function(G,b){var I=YP.get(G)||{layerNode:b};I.layerNode=b;TSj(G,I);G.getScreenLayer=function(){return hk(I.layerNode)}};
uXq=function(G){var b;G=G.parentNode;for(var I;G&&((b=YP.get(G))==null||!b.isRenderer)&&!((I=G.polymerController)!=null?I:G).isRenderer_;)G=G.parentNode||G.host;if(b=G)return YP.get(b)};
RUd=function(G){if(G){YP.delete(G);var b=_.LL().resolve(vw);P2O(G,b)}};
Oer=function(G,b,I){if(I===void 0?0:I){if(I=G.getAttribute("client-ve-type"),b.data&&!b.disableReactiveLogging||I)_.Jf(function(){nJd(G,_.n0(b.data))},"vg"),_.uI(function(){return void RUd(G)})}else typeof b.data!=="function"&&nJd(G,b.data)};
nJd=function(G,b){w7X++;EJB(G,b)&&_.uu.addJob(function(){_.q_(_.uu,function(){if(EJB(G,b)&&G.ownerDocument.documentElement===document.documentElement&&G){var I;if(G.getAttribute("layer")){var h=I=Number(G.getAttribute("layer")),q=YP.get(G);q?q.layerNode.layer=h:K3v(G,new p7a(h));(h=uXq(G))&&(q=YP.get(G))!=null&&(q.layerNode.parent=h.layerNode)}else if(I=YP.get(G))I=hk(I.layerNode);else{I=hk;h=new p7a;if(q=uXq(G))h.parent=q.layerNode;K3v(G,h);I=I(h)}I!=null||(I=0);h=G.getAttribute("client-ve-type");
q=Number(h);var l=!1;h=!1;var V=YP.get(G),D;if((D=V)&&!(D=V[Ss2]!==b)&&(D=q)){var k;D=((k=YP.get(G))==null?void 0:k.clientVeType)===void 0}D&&(V[Ss2]=b,l=h=V.isRenderer=!0);YP.has(G)&&(YP.get(G).clientVeType=q);G.visualElement&&(h=!0);if(_.U("wiz_next_ld_fix_client_ve_spec")){var L;k=((L=_.g(b==null?void 0:b.rendererContext,_.jA))==null?void 0:L.loggingDirectives)||(b==null?void 0:b.loggingDirectives)}else k=b==null?void 0:b.loggingDirectives;k&&k.clientVeSpec&&(L=X7p(_.b$(),G),L=_.$6O(_.qo(),k,L||
void 0,I))&&(G.visualElement=L);!G.visualElement&&q&&l&&(G.veType=q,L=void 0,_.U("wiz_next_client_ve_parent_fix")&&(L=X7p(_.b$(),G)),L=_.IM(_.qo(),G,L,I),G.visualElement=L);h&&(L=_.LL().resolve(vw),FZr(G,{data:b,observer:L,layer:I,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
EJB=function(G,b){return(b==null?0:b.trackingParams)||(b==null?0:b.loggingDirectives)||_.g(b==null?void 0:b.rendererContext,_.jA)||G.getAttribute("client-ve-type")?!0:!1};
G1p=function(G,b,I){G.componentType!==rv&&I instanceof HTMLElement&&b&&!_.U("cow_logging_in_component_wrapper")&&Oer(I,b,!0)};
qJa=function(){if(!bdu){bdu=!0;var G=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.U("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:_.U("enable_wiz_context_per_component")||!1},{handleError:Ji2,enableComponentStacksInErrorMessages:!1});Object.assign(k8,G);phO=Iws;hHp();bvu=GEa;Xhp=ITO}};
hHp=function(){_.U("cow_logging_in_component_wrapper")?(V1v=function(G,b){b instanceof HTMLElement&&Oer(b,G,!0)},N2p=function(){}):(V1v=function(){},N2p=G1p)};
jUv=function(G,b,I){b=b===void 0?{}:b;var h,q=(h=_.g(G.commandMetadata,_.IW))==null?void 0:h.url;h=b.form||{};!I||h.element||h.skipDefaultElement||(b.form=b.form||{},b.form.element=I);if(q&&q!=="/service_ajax")return{type:0,command:G,form:b.form};if(_.U("kevlar_service_command_check")){if(_.PN(_.LL().resolve(_.kn),G))return Object.assign({},{type:1,command:G},b)}else{var l;if((l=_.g(G.commandMetadata,_.IW))==null?0:l.apiUrl)return Object.assign({},{type:1,command:G},b)}return{type:2,command:G,form:b.form}};
lw2=function(G){if(G.form){var b=G.form,I=Object.assign({},b);b=b.element;I=(delete I.element,I);if(b)return[_.pv(b,[G.command,I,G.commandController])]}return[]};
m6j=function(G){if(G.form){var b=G.form,I=Object.assign({},b);b=b.element;I=(delete I.element,I);b&&_.Su(b,[G.command],b,I)}};
VQ2=function(G,b,I){var h=new eHO(G,b),q=new jf(G,b,I);G={"/youtubei/v1/browse":new lX(G,b,I),"/youtubei/v1/player":h,"/youtubei/v1/navigation/resolve_url":new mb,"/youtubei/v1/next":q,"/youtubei/v1/guide":new ef(I),"/youtubei/v1/search":new Vp(G,b,I),"/youtubei/v1/reel/reel_item_watch":new D_(G,b,I),"/youtubei/v1/get_watch":new cP(h,q)};G["/youtubei/v1/account/account_menu"]=new kx;G["/youtubei/v1/notification/get_notification_menu"]=new vP;return G};
Qp=function(){var G=_.LL().resolve(_.LW);return Promise.resolve(D6s(G,_.hd.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
cYr=function(G){return G&&(G=_.xx(_.Qhj(G)))?(new URLSearchParams(G)).get("service"):null};
BP=function(G,b){_.O0(_.fW(),function(){_.sS("adl")});
_.LL().resolve(k1d)(b);G=G.root;G.loadData&&G.loadData(b);(b==null?0:b.response)?_.IA(ZYO(),"SUCCESS"):_.RB(new _.Wf("Lifecycle: No response in data",_.Sk("IS_SHELL_LOAD"),b?b.page:"NO_PAGE",b?b.endpoint:"NO_ENDPOINT"));G.polymerController.$["page-manager"].lazyPrepareCriticalPages((b==null?void 0:b.page)||"",b.endpoint);var I,h;((h=_.g(b==null?void 0:(I=b.endpoint)==null?void 0:I.commandMetadata,_.IW))==null?0:h.webPageType)&&_.Cw().dispatch(_.TO(_.g(b.endpoint.commandMetadata,_.IW).webPageType))};
vvd=function(){var G,b;return _.c(function(I){switch(I.nextAddress){case 1:G=window;if(!G.getDataPromise){I.jumpTo(2);break}_.gm(I,3);return I.yield(G.getDataPromise(),5);case 5:return I.return(I.yieldResult);case 3:return _.zf(I),I.yield(Qp(),6);case 6:return I.return(I.yieldResult);case 2:if(G.getInitialData)return b=G.getInitialData(),G.getInitialData=void 0,I.return(b);throw Error("Gj`"+_.hd.location.href);}})};
QU2=function(){_.OB("CSI_SERVICE_NAME","youtube");_.Tm({loadType:"cold"});_.U("kevlar_log_lcp")&&L_r(function(G){_.sS("lcp",G.value)})};
x6j=function(){var G=_.XN(document.location.href,"enable");G&&G.indexOf("scraper")>-1&&_.OB("ADD_SCRAPER_ATTRIBUTES",!0)};
sUp=function(G){var b=G.root;G=[fwu,TMO,_.UE];_.U("web_feedback_endpoint_autolog_allowlist_killswitch")&&G.push(_.sE,BM2);U6O(function(I,h){return jUv(I,h,b)},function(I){if(!I.command)return[];
var h;((h=I.form)==null?0:h.element)?I.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},I.form,{endpoint:I.command})})):b.handleNavigate(I);return[]},G);
_.LL().addProvider({provide:_.xW,useValue:_.Xv.instance})};
AYs=function(){var G={},b={},I;for(I in gvj){var h=_.e(_.ZZ(gvj[I],void 0,"IAtZ7"));G[I]=h.next().value;b[I]=h.next().value}return[G,function(q){for(var l in q){var V=void 0;(V=b[l])==null||V(q[l])}}]};
_.gP=function(G,b,I){b=b===void 0?!1:b;var h=_.Cy.getValueByKeys(G,"contents","twoColumnWatchNextResults","results","results","contents"),q=_.Cy.getValueByKeys(G,"contents","twoColumnWatchNextResults","playlist","playlist")||null;b&&(q=null);var l=b=null;if(q)b=_.Cy.getValueByKeys(q,"titleText"),l=_.Cy.unsafeClone(_.Cy.getValueByKeys(q,"longBylineText")),h="",l&&(h=_.NO(l)),l=_.ao(h);else if(h){h=_.e(h);for(var V=h.next();!V.done;V=h.next())V=V.value,V.videoPrimaryInfoRenderer&&(b=_.Cy.getValueByKeys.apply(_.Cy,
[V].concat(_.Nz(MQj)))),V.videoSecondaryInfoRenderer&&(l=_.Cy.getValueByKeys.apply(_.Cy,[V].concat(_.Nz(ZdX))))}else _.bB(Error("Lj"));var D;G.currentVideoEndpoint?D=G.currentVideoEndpoint:_.bB(Error("Mj"));var k;I&&(k=_.Cy.getValueByKeys(I,"playabilityStatus","miniplayer","miniplayerRenderer"));G={miniplayerTitle:b,miniplayerSubtitle:l,watchEndpoint:D,playlistData:q};k&&(G.miniplayerRenderer=k);return G};
tQd=function(G){if(G)return _.fG(G)};
_.zHd=function(){return{isFullscreen:function(){throw Error("Nj");},
toggleFullscreen:function(){throw Error("Oj");},
exitFullscreen:function(){throw Error("Pj");},
isAutonavEnabled:function(){throw Error("Qj");},
setAutonavEnabled:function(){throw Error("Rj");},
isAutoplaySetExplicitly:function(){throw Error("Sj");}}};
ovO=function(G){return G.videoDuration?G.numTaps>1&&G.tapDirection!==0?_.Ak(G.draggedTime/G.videoDuration,0,1):_.Ak((G.playedTime||0)/G.videoDuration,0,1):0};
idO=function(G){return G.videoDuration?G.isDragging||G.numTaps>1&&G.tapDirection!==0?_.Ak(G.draggedTime/G.videoDuration,0,1):_.Ak((G.playedTime||0)/G.videoDuration,0,1):0};
d6X=function(G){var b,I,h;return _.g(G==null?void 0:(b=G.markersMap)==null?void 0:(I=b.find(function(q){return q.key==="HEATSEEKER"}))==null?void 0:(h=I.value)==null?void 0:h.heatmap,Pas)};
yYr=function(G){var b,I;return(I=(b=d6X(G))==null?void 0:b.heatMarkersDecorations)!=null?I:[]};
rYX=function(G){if(_.U("mweb_supported_chapters_killswitch"))return!0;var b;return!!(G==null?0:(b=G.markersMap)==null?0:b.find(function(I){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(I.key)}))};
_.F_v=function(G){var b=Object,I=b.assign,h;G={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(h=G==null?void 0:G.getPlayerState())!=null?h:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return I.call(b,{},{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})};
Hds=function(G){return function(b){var I=G(),h,q=(h=I.playerApi)==null?void 0:h.getPlayerState();b&&b!==I.playerState&&(b===1||b===2)&&I.setState({playerState:q})}};
awp=function(G){return function(b){var I=G(),h=I.playerApi;h&&(b==null?void 0:b.type)==="newdata"&&(W_O&&(clearTimeout(W_O),W_O=void 0),_.U("web_shorts_use_progress_state_for_gapless")?(b=h==null?void 0:h.getProgressState(b==null?void 0:b.playertype),b=b.seekableEnd-b.seekableStart):b=h==null?void 0:h.getDuration(b==null?void 0:b.playertype),I.setState({playedTime:0,videoDuration:b}))}};
NMv=function(G){return function(b){var I=G(),h=I.playerApi;if(h){var q=h.getPresentingPlayerType();_.U("web_shorts_use_progress_state_for_gapless")?(h=h.getProgressState(q),h=h.seekableEnd-h.seekableStart):h=h.getDuration(q);I.setState({playedTime:b,videoDuration:h})}}};
Cav=function(G){_.Qq(112394,G,function(){return YJq},function(b){YJq=b})};
uta=function(G,b){if(!G)return[];var I,h,q;G=((I=G.markersMap)==null?void 0:(h=I.find(function(l){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(l.key)}))==null?void 0:(q=h.value)==null?void 0:q.chapters)||[];
!JYq(G)||(b==null?0:b.ignoreStub)||(G=[K_a()].concat(_.Nz(G)));return G};
K_a=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
JYq=function(G){if(G.length===0)return!1;var b;return((b=_.g(G[0],M_))==null?void 0:b.timeRangeStartMillis)!==0};
Z_=function(G){return G?G.timeRangeStartMillis||0:0};
nva=function(G,b){if(G.isDragging&&b)return G=RHd(G,b),G===-1?K_a():uta(b)[G]};
RHd=function(G,b){return G.isDragging&&b?uta(b,{ignoreStub:!0}).findIndex(function(I,h,q){I=Odr(G);return wY2(I,q,h).scrubberHovering}):-1};
Odr=function(G){return Object.assign({},G,{videoDuration:G.videoDuration*1E3,playedTime:G.playedTime*1E3,draggedTime:G.draggedTime*1E3})};
wY2=function(G,b,I){var h=Z_(_.g(b[I],M_));b=Z_(_.g(b[I+1],M_))||G.videoDuration;I=G.isDragging;var q;if(q=G.isDragging)q=G.draggedTime,q=q!==null&&q>=h&&q<b;var l=G.playedTime;return l!==null&&l>=h&&l<b?{videoPosition:"active",isScrubbing:I,scrubberHovering:q}:G.playedTime<h?{videoPosition:"pending",isScrubbing:I,scrubberHovering:q}:{videoPosition:"seen",isScrubbing:I,scrubberHovering:q}};
EvO=function(G,b){return G.videoPosition==="seen"||(b===void 0?0:b)>0};
pY2=function(G,b,I){b=G/b.storyboardInterval;var h=uta(I);if(!h.length)return-b*72;I=0;h=_.e(h);for(var q=h.next();!q.done;q=h.next())if(Z_(_.g(q.value,M_))/1E3<G)I++;else break;return-(b*72)-I*56};
SJ2=function(G){return G?G.width/G.columns:0};
XYO=function(G){return G.isHovering?G.hoveredTime:G.draggedTime};
$aX=function(G,b){G=G.draggedTime*1E3;return G>=b.visibleTimeRangeStartMillis&&G<=b.visibleTimeRangeEndMillis};
_.Ghr=function(G){if(G===void 0||Number.isNaN(G))return"--:--";var b=Math.abs(Math.floor(G)),I=Math.floor(b/86400),h=Math.floor(b%86400/3600),q=Math.floor(b%3600/60);b=Math.floor(b%60);var l="";I>0&&(l+=I+":",h<10&&(l+="0"));if(I>0||h>0)l+=h+":",q<10&&(l+="0");l+=q+":";b<10&&(l+="0");l+=b;return G>=0?l:"-"+l};
bHd=function(G,b){return function(){var I=XYO(G());var h=b();var q=G().playerApi;if(q&&q.getNumberOfStoryboardLevels()!==0){var l=q.getStoryboardFrameIndex(I,1);l!==-1?h=q.getStoryboardFrame(l,1):(I=q.getStoryboardFrameIndex(I,0),q=q.getStoryboardFrame(I,0),h&&q&&(q.height*=3,q.width*=3),h=q)}else h=null;if(!h)return null;b()&&(h.width=90*h.columns,h.height=160*h.rows);return h}};
_.tk=function(G){if(!G||G.getVideoData)return G};
Ihp=function(){var G;return{playerApi:(G=_.GZ())!=null?G:void 0}};
hSr=function(G){var b;_.c(function(I){if(I.nextAddress==1)return I.yield(_.$U(),2);if(b=I.yieldResult)b.unMute(!0),b.setVolume(G,!0);_.ip(I)})};
qXp=function(G,b){G&&(G.value=""+b,G.style.setProperty("--gradient-percent",b+"%"))};
jgO=function(G){var b;return(b=G==null?void 0:G.value)!=null?b:0};
lhX=function(){var G;_.c(function(b){if(b.nextAddress==1)return b.yield(_.$U(),2);G=b.yieldResult;if(!G)return b.return();G.isMuted()?G.unMute(!0):G.mute(!0);_.ip(b)})};
mav=function(G){var b=_.LL().resolve(_.zO).getPlayerElement();b&&G&&(G===1?b.pause():b.play())};
eSu=function(G){_.E3(G,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
V2s=function(G){_.E3(G,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
cpO=function(G){return _.C3(G.document.body,function(){return _.v(DaX,null)},"jh")};
khp=function(){var G;return(G=navigator.userActivation)==null?void 0:G.isActive};
vZB=function(){var G=window.performance.getEntriesByType("navigation");return G?G.map(function(b){return b.type}).includes("reload"):!1};
sgj=function(){oA(oA(oA(oA(oA(oA(oA(_.LL().resolve(_.iX),_.Lxr),_.Qgr),_.xad),_.fh2),_.Tgd),_.BgX),_.UaO)};
gZX=function(G,b){b=b===void 0?!1:b;var I,h,q,l;return _.c(function(V){if(V.nextAddress==1)return b||!_.U("kevlar_shorts_seedless_retry_initial_load")||(I=window,h=!(!I.getDataPromise&&!I.getInitialData),h)?V.yield(vvd(),2):(setTimeout(gZX.bind(window,G,!0),1E3),V.return());if(V.nextAddress!=3)return q=V.yieldResult,V.yield(Apu(q),3);l=V.yieldResult;BP(G,l);_.ip(V)})};
Apu=function(G){var b;if((b=G.response)==null||!b.replacementEndpoint)return _.X8(G);b=_.LL().resolve(_.LW);G=G.response;_.g(G.replacementEndpoint,_.V4)&&G.sequenceContinuation&&(_.g(G.replacementEndpoint,_.V4).sequenceParams=G.sequenceContinuation);return PP(b,G.replacementEndpoint,{},_.hd.location.href,"shorts",function(){},function(){return!1})};
ZHq=function(G){var b=_.LL().resolve(M2p);G.playerResponse&&b.handleResponse(G.playerResponse);G.response&&b.handleResponse(G.response)};
t2O=function(G){var b=_.Cw(),I,h=_.g((I=G.response)==null?void 0:I.frameworkUpdates,rR),q;I=_.g((q=G.playerResponse)==null?void 0:q.frameworkUpdates,rR);var l;G=_.g((l=G.reelWatchSequenceResponse)==null?void 0:l.frameworkUpdates,rR);h&&_.jn(h,b);I&&_.jn(I,b);G&&_.jn(G,b)};
zSa=function(G){var b;_.U("enable_redirect_linking_for_desktop_web_client")&&((b=window.location.hash)==null?0:b.includes("redirect_state"))&&G.url&&(G.url=G.url.toString()+window.location.hash)};
PvB=function(G){var b=_.LL(),I=b.resolve(_.LW);b=b.resolve(_.oZO);G.endpoint&&(I=iHd(I,G.endpoint),I.content&&G.response&&_.dP(b,G.response,I.content),I.player&&G.playerResponse&&_.dP(b,G.playerResponse,I.player),I.reelSequence&&G.reelWatchSequenceResponse&&_.dP(b,G.reelWatchSequenceResponse,I.reelSequence))};
yp=function(G,b){ZHq(b);t2O(b);var I;(b==null?0:b.url)&&((I=window.location.hash)==null?0:I.includes("redirect_state"))&&(zSa(b),(I=cYr(b.url))&&_.wL(G.root,"yt-initialize-third-party",[I,b]));PvB(b);I=_.LL();var h=I.resolve(daO);b.playerResponse&&I.resolve(ypq).handleResponse(b.playerResponse);if(b.playerResponse){I=void 0;if(_.U("ab_v_vid_sig")&&b.endpoint){var q,l=(q=_.g(b.endpoint,_.Wq))!=null?q:_.g(b.endpoint,_.V4);l&&(I=l.videoId)}rpO(h,b.playerResponse,I)}b.playerResponse&&$IB(b.playerResponse)&&
_.U("web_enable_ab_rsp_cl")?YD2().then(function(){Fxr(h,b.playerResponse);BP(G,b)}):BP(G,b)};
WxO=function(G){if(G=G.root.data){var b=_.LL().resolve(HHq);G.endpoint&&(G.response&&b.handleResponse(G.response,void 0,document.querySelector("ytd-app")),G.playerResponse&&b.handleResponse(G.playerResponse),G.reelWatchSequenceResponse&&b.handleResponse(G.reelWatchSequenceResponse))}};
aha=function(G){var b,I,h,q,l,V;return _.c(function(D){switch(D.nextAddress){case 1:b=window;if(!b.getDataPromise){D.jumpTo(2);break}_.gm(D,3);return D.yield(b.getDataPromise(),5);case 5:I=D.yieldResult;yp(G,I);_.hF(D,4);break;case 3:return _.zf(D),D.yield(Qp(),6);case 6:h=D.yieldResult,BP(G,h);case 4:return D.return();case 2:if(!_.U("sw_nav_preload_pbj")){D.jumpTo(7);break}b.fetchInitialData=function(){var k;return _.c(function(L){if(L.nextAddress==1)return L.yield(Qp(),2);k=L.yieldResult;BP(G,k);
_.ip(L)})};
if(b.getInitialData){b.loadInitialData=function(k){yp(G,k)};
q=b.getInitialData();b.getInitialData=void 0;yp(G,q);D.jumpTo(8);break}b.fetchInitialData=void 0;return D.yield(Qp(),9);case 9:l=D.yieldResult,BP(G,l);case 8:return D.return();case 7:b.getInitialData?(V=b.getInitialData(),b.getInitialData=void 0,yp(G,V)):b.loadInitialData=function(k){yp(G,k)},_.ip(D)}})};
YXB=function(){var G=new Ngj;_.OLO(G);G.registerInitializationCallback(function(){IAO(void 0,void 0,void 0,_.U("web_enable_mss_batching_ks")?void 0:{batchingStrategy:"BATCH"})});
G.registerCallback("error",function(b,I,h){_.Xj(Error("Wj`"+I+"`"+h))})};
Cvs=function(G){var b=0;return function(){return b<G.length?{done:!1,value:G[b++]}:{done:!0}}};
Jpv=typeof Object.defineProperties=="function"?Object.defineProperty:function(G,b,I){if(G==Array.prototype||G==Object.prototype)return G;G[b]=I.value;return G};
Kxv=function(G){G=["object"==typeof globalThis&&globalThis,G,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<G.length;++b){var I=G[b];if(I&&I.Math==Math)return I}throw Error("a");};
_.kV=Kxv(this);uPX="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.kV.BigInt64Array&&(uPX.push("BigInt64"),uPX.push("BigUint64"));var nZO=function(G,b){if(b)for(var I=0;I<uPX.length;I++)RSO(uPX[I]+"Array.prototype."+G,b)},rP=function(G,b){b&&RSO(G,b)},RSO=function(G,b){var I=_.kV;
G=G.split(".");for(var h=0;h<G.length-1;h++){var q=G[h];if(!(q in I))return;I=I[q]}G=G[G.length-1];h=I[G];b=b(h);b!=h&&b!=null&&Jpv(I,G,{configurable:!0,writable:!0,value:b})};
rP("Symbol",function(G){if(G)return G;var b=function(l,V){this.$jscomp$symbol$id_=l;Jpv(this,"description",{configurable:!0,writable:!0,value:V})};
b.prototype.toString=function(){return this.$jscomp$symbol$id_};
var I="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",h=0,q=function(l){if(this instanceof q)throw new TypeError("b");return new b(I+(l||"")+"_"+h++,l)};
return q});
rP("Symbol.iterator",function(G){if(G)return G;G=Symbol("c");Jpv(Array.prototype,G,{configurable:!0,writable:!0,value:function(){return OHj(Cvs(this))}});
return G});
rP("Symbol.asyncIterator",function(G){return G?G:Symbol("d")});
var OHj=function(G){G={next:G};G[Symbol.iterator]=function(){return this};
return G},wbp=typeof Object.create=="function"?Object.create:function(G){var b=function(){};
b.prototype=G;return new b},EZu=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 b=Reflect.construct;return function(I,h,q){I=b(I,h);q&&Reflect.setPrototypeOf(I,q.prototype);return I}}return function(I,h,q){q===void 0&&(q=I);
q=wbp(q.prototype||Object.prototype);return Function.prototype.apply.call(I,q,h)||q}}(),pbB;
if(typeof Object.setPrototypeOf=="function")pbB=Object.setPrototypeOf;else{var SXj;a:{var XbO={a:!0},$rW={};try{$rW.__proto__=XbO;SXj=$rW.a;break a}catch(G){}SXj=!1}pbB=SXj?function(G,b){G.__proto__=b;if(G.__proto__!==b)throw new TypeError("e`"+G);return G}:null}FE=pbB;
_.M=function(G,b){G.prototype=wbp(b.prototype);G.prototype.constructor=G;if(FE)FE(G,b);else for(var I in b)if(I!="prototype")if(Object.defineProperties){var h=Object.getOwnPropertyDescriptor(b,I);h&&Object.defineProperty(G,I,h)}else G[I]=b[I];G.superClass_=b.prototype};
_.e=function(G){var b=typeof Symbol!="undefined"&&Symbol.iterator&&G[Symbol.iterator];if(b)return b.call(G);if(typeof G.length=="number")return{next:Cvs(G)};throw Error("f`"+String(G));};
jT=function(G){for(var b,I=[];!(b=G.next()).done;)I.push(b.value);return I};
_.Nz=function(G){return G instanceof Array?G:jT(_.e(G))};
_.WP=function(G){return HP(G,G)};
HP=function(G,b){G.raw=b;Object.freeze&&(Object.freeze(G),Object.freeze(b));return G};
aA=function(G,b){return Object.prototype.hasOwnProperty.call(G,b)};
GqW=function(G){if(G==null)throw new TypeError("g");return Object(G)};
bOn=typeof Object.assign=="function"?Object.assign:function(G,b){G=GqW(G);for(var I=1;I<arguments.length;I++){var h=arguments[I];if(h)for(var q in h)aA(h,q)&&(G[q]=h[q])}return G};
rP("Object.assign",function(G){return G||bOn});
var N_=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},IrA=function(G){if(G.isRunning_)throw new TypeError("i");
G.isRunning_=!0};
N_.prototype.JSC$8793_next_=function(G){this.yieldResult=G};
var hBO=function(G,b){G.abruptCompletion_={exception:b,isException:!0};G.nextAddress=G.catchAddress_||G.finallyAddress_};
N_.prototype.return=function(G){this.abruptCompletion_={return:G};this.nextAddress=this.finallyAddress_};
N_.prototype.yield=function(G,b){this.nextAddress=b;return{value:G}};
N_.prototype.jumpTo=function(G){this.nextAddress=G};
_.ip=function(G){G.nextAddress=0};
_.gm=function(G,b,I){G.catchAddress_=b;I!=void 0&&(G.finallyAddress_=I)};
_.ZJ=function(G,b){G.catchAddress_=0;G.finallyAddress_=b||0};
_.hF=function(G,b,I){G.nextAddress=b;G.catchAddress_=I||0};
_.zf=function(G,b){G.catchAddress_=b||0;b=G.abruptCompletion_.exception;G.abruptCompletion_=null;return b};
_.Mz=function(G,b,I,h){h?G.finallyContexts_[h]=G.abruptCompletion_:G.finallyContexts_=[G.abruptCompletion_];G.catchAddress_=b||0;G.finallyAddress_=I||0};
_.tj=function(G,b,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=b};
qjJ=function(G){this.JSC$8798_context_=new N_;this.program_=G};
lrb=function(G,b){IrA(G.JSC$8798_context_);var I=G.JSC$8798_context_.yieldAllIterator_;if(I)return jO5(G,"return"in I?I["return"]:function(h){return{value:h,done:!0}},b,G.JSC$8798_context_.return);
G.JSC$8798_context_.return(b);return Yx(G)};
jO5=function(G,b,I,h){try{var q=b.call(G.JSC$8798_context_.yieldAllIterator_,I);if(!(q instanceof Object))throw new TypeError("h`"+q);if(!q.done)return G.JSC$8798_context_.isRunning_=!1,q;var l=q.value}catch(V){return G.JSC$8798_context_.yieldAllIterator_=null,hBO(G.JSC$8798_context_,V),Yx(G)}G.JSC$8798_context_.yieldAllIterator_=null;h.call(G.JSC$8798_context_,l);return Yx(G)};
Yx=function(G){for(;G.JSC$8798_context_.nextAddress;)try{var b=G.program_(G.JSC$8798_context_);if(b)return G.JSC$8798_context_.isRunning_=!1,{value:b.value,done:!1}}catch(I){G.JSC$8798_context_.yieldResult=void 0,hBO(G.JSC$8798_context_,I)}G.JSC$8798_context_.isRunning_=!1;if(G.JSC$8798_context_.abruptCompletion_){b=G.JSC$8798_context_.abruptCompletion_;G.JSC$8798_context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
mri=function(G){this.next=function(b){IrA(G.JSC$8798_context_);G.JSC$8798_context_.yieldAllIterator_?b=jO5(G,G.JSC$8798_context_.yieldAllIterator_.next,b,G.JSC$8798_context_.JSC$8793_next_):(G.JSC$8798_context_.JSC$8793_next_(b),b=Yx(G));return b};
this.throw=function(b){IrA(G.JSC$8798_context_);G.JSC$8798_context_.yieldAllIterator_?b=jO5(G,G.JSC$8798_context_.yieldAllIterator_["throw"],b,G.JSC$8798_context_.JSC$8793_next_):(hBO(G.JSC$8798_context_,b),b=Yx(G));return b};
this.return=function(b){return lrb(G,b)};
this[Symbol.iterator]=function(){return this}};
_.$x=function(G,b){b=new mri(new qjJ(b));FE&&G.prototype&&FE(b,G.prototype);return b};
eBQ=function(G){function b(h){return G.next(h)}
function I(h){return G.throw(h)}
return new Promise(function(h,q){function l(V){V.done?h(V.value):Promise.resolve(V.value).then(b,I).then(l,q)}
l(G.next())})};
_.c=function(G){return eBQ(new mri(new qjJ(G)))};
_.Aj=function(G){var b=G[Symbol.asyncIterator];return b!==void 0?b.call(G):new VvQ(_.e(G))};
VvQ=function(G){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return G};
this.next=function(b){return Promise.resolve(G.next(b))};
this["throw"]=function(b){return new Promise(function(I,h){var q=G["throw"];q!==void 0?I(q.call(G,b)):(I=G["return"],I!==void 0&&I.call(G),h(new TypeError("j")))})};
G["return"]!==void 0&&(this["return"]=function(b){return Promise.resolve(G["return"](b))})};
_.RI=function(){for(var G=Number(this),b=[],I=G;I<arguments.length;I++)b[I-G]=arguments[I];return b};
_.GO=function(G){return G};
rP("globalThis",function(G){return G||_.kV});
rP("Reflect",function(G){return G?G:{}});
rP("Reflect.construct",function(){return EZu});
rP("Reflect.setPrototypeOf",function(G){return G?G:FE?function(b,I){try{return FE(b,I),!0}catch(h){return!1}}:null});
rP("Promise",function(G){function b(){this.batch_=null}
function I(V){return V instanceof q?V:new q(function(D){D(V)})}
if(G&&(typeof _.kV.PromiseRejectionEvent!=="undefined"||!_.kV.Promise||_.kV.Promise.toString().indexOf("[native code]")===-1))return G;b.prototype.asyncExecute=function(V){if(this.batch_==null){this.batch_=[];var D=this;this.asyncExecuteFunction(function(){D.executeBatch_()})}this.batch_.push(V)};
var h=_.kV.setTimeout;b.prototype.asyncExecuteFunction=function(V){h(V,0)};
b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var V=this.batch_;this.batch_=[];for(var D=0;D<V.length;++D){var k=V[D];V[D]=null;try{k()}catch(L){this.asyncThrow_(L)}}}this.batch_=null};
b.prototype.asyncThrow_=function(V){this.asyncExecuteFunction(function(){throw V;})};
var q=function(V){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var D=this.createResolveAndReject_();try{V(D.resolve,D.reject)}catch(k){D.reject(k)}};
q.prototype.createResolveAndReject_=function(){function V(L){return function(x){k||(k=!0,L.call(D,x))}}
var D=this,k=!1;return{resolve:V(this.resolveTo_),reject:V(this.JSC$8826_reject_)}};
q.prototype.resolveTo_=function(V){if(V===this)this.JSC$8826_reject_(new TypeError("n"));else if(V instanceof q)this.settleSameAsPromise_(V);else{a:switch(typeof V){case "object":var D=V!=null;break a;case "function":D=!0;break a;default:D=!1}D?this.resolveToNonPromiseObj_(V):this.fulfill_(V)}};
q.prototype.resolveToNonPromiseObj_=function(V){var D=void 0;try{D=V.then}catch(k){this.JSC$8826_reject_(k);return}typeof D=="function"?this.settleSameAsThenable_(D,V):this.fulfill_(V)};
q.prototype.JSC$8826_reject_=function(V){this.settle_(2,V)};
q.prototype.fulfill_=function(V){this.settle_(1,V)};
q.prototype.settle_=function(V,D){if(this.state_!=0)throw Error("o`"+V+"`"+D+"`"+this.state_);this.state_=V;this.result_=D;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
q.prototype.scheduleUnhandledRejectionCheck_=function(){var V=this;h(function(){if(V.notifyUnhandledRejection_()){var D=_.kV.console;typeof D!=="undefined"&&D.error(V.result_)}},1)};
q.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var V=_.kV.CustomEvent,D=_.kV.Event,k=_.kV.dispatchEvent;if(typeof k==="undefined")return!0;typeof V==="function"?V=new V("unhandledrejection",{cancelable:!0}):typeof D==="function"?V=new D("unhandledrejection",{cancelable:!0}):(V=_.kV.document.createEvent("CustomEvent"),V.initCustomEvent("unhandledrejection",!1,!0,V));V.promise=this;V.reason=this.result_;return k(V)};
q.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var V=0;V<this.onSettledCallbacks_.length;++V)l.asyncExecute(this.onSettledCallbacks_[V]);this.onSettledCallbacks_=null}};
var l=new b;q.prototype.settleSameAsPromise_=function(V){var D=this.createResolveAndReject_();V.callWhenSettled_(D.resolve,D.reject)};
q.prototype.settleSameAsThenable_=function(V,D){var k=this.createResolveAndReject_();try{V.call(D,k.resolve,k.reject)}catch(L){k.reject(L)}};
q.prototype.then=function(V,D){function k(T,B){return typeof T=="function"?function(A){try{L(T(A))}catch(t){x(t)}}:B}
var L,x,f=new q(function(T,B){L=T;x=B});
this.callWhenSettled_(k(V,L),k(D,x));return f};
q.prototype.catch=function(V){return this.then(void 0,V)};
q.prototype.callWhenSettled_=function(V,D){function k(){switch(L.state_){case 1:V(L.result_);break;case 2:D(L.result_);break;default:throw Error("p`"+L.state_);}}
var L=this;this.onSettledCallbacks_==null?l.asyncExecute(k):this.onSettledCallbacks_.push(k);this.isRejectionHandled_=!0};
q.resolve=I;q.reject=function(V){return new q(function(D,k){k(V)})};
q.race=function(V){return new q(function(D,k){for(var L=_.e(V),x=L.next();!x.done;x=L.next())I(x.value).callWhenSettled_(D,k)})};
q.all=function(V){var D=_.e(V),k=D.next();return k.done?I([]):new q(function(L,x){function f(A){return function(t){T[A]=t;B--;B==0&&L(T)}}
var T=[],B=0;do T.push(void 0),B++,I(k.value).callWhenSettled_(f(T.length-1),x),k=D.next();while(!k.done)})};
return q});
var CW=function(G,b,I){if(G==null)throw new TypeError("q`"+I);if(b instanceof RegExp)throw new TypeError("r`"+I);return G+""};
rP("String.prototype.startsWith",function(G){return G?G:function(b,I){var h=CW(this,b,"startsWith"),q=h.length,l=b.length;I=Math.max(0,Math.min(I|0,h.length));for(var V=0;V<l&&I<q;)if(h[I++]!=b[V++])return!1;return V>=l}});
rP("Object.setPrototypeOf",function(G){return G||FE});
rP("Symbol.dispose",function(G){return G?G:Symbol("s")});
rP("SuppressedError",function(G){function b(I,h,q){if(!(this instanceof b))return new b(I,h,q);q=Error(q);"stack"in q&&(this.stack=q.stack);this.message=q.message;this.error=I;this.suppressed=h}
if(G)return G;_.M(b,Error);b.prototype.name="SuppressedError";return b});
rP("Array.from",function(G){return G?G:function(b,I,h){I=I!=null?I:function(D){return D};
var q=[],l=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof l=="function"){b=l.call(b);for(var V=0;!(l=b.next()).done;)q.push(I.call(h,l.value,V++))}else for(l=b.length,V=0;V<l;V++)q.push(I.call(h,b[V],V));return q}});
var DrX=function(G,b,I){G instanceof String&&(G=String(G));for(var h=G.length,q=0;q<h;q++){var l=G[q];if(b.call(I,l,q,G))return{i:q,v:l}}return{i:-1,v:void 0}};
rP("Array.prototype.find",function(G){return G?G:function(b,I){return DrX(this,b,I).v}});
rP("WeakMap",function(G){function b(){}
function I(k){var L=typeof k;return L==="object"&&k!==null||L==="function"}
function h(k){if(!aA(k,l)){var L=new b;Jpv(k,l,{value:L})}}
function q(k){var L=Object[k];L&&(Object[k]=function(x){if(x instanceof b)return x;Object.isExtensible(x)&&h(x);return L(x)})}
if(function(){if(!G||!Object.seal)return!1;try{var k=Object.seal({}),L=Object.seal({}),x=new G([[k,2],[L,3]]);if(x.get(k)!=2||x.get(L)!=3)return!1;x.delete(k);x.set(L,4);return!x.has(k)&&x.get(L)==4}catch(f){return!1}}())return G;
var l="$jscomp_hidden_"+Math.random();q("freeze");q("preventExtensions");q("seal");var V=0,D=function(k){this.JSC$8834_id_=(V+=Math.random()+1).toString();if(k){k=_.e(k);for(var L;!(L=k.next()).done;)L=L.value,this.set(L[0],L[1])}};
D.prototype.set=function(k,L){if(!I(k))throw Error("t");h(k);if(!aA(k,l))throw Error("u`"+k);k[l][this.JSC$8834_id_]=L;return this};
D.prototype.get=function(k){return I(k)&&aA(k,l)?k[l][this.JSC$8834_id_]:void 0};
D.prototype.has=function(k){return I(k)&&aA(k,l)&&aA(k[l],this.JSC$8834_id_)};
D.prototype.delete=function(k){return I(k)&&aA(k,l)&&aA(k[l],this.JSC$8834_id_)?delete k[l][this.JSC$8834_id_]:!1};
return D});
rP("Map",function(G){if(function(){if(!G||typeof G!="function"||!G.prototype.entries||typeof Object.seal!="function")return!1;try{var D=Object.seal({x:4}),k=new G(_.e([[D,"s"]]));if(k.get(D)!="s"||k.size!=1||k.get({x:4})||k.set({x:4},"t")!=k||k.size!=2)return!1;var L=k.entries(),x=L.next();if(x.done||x.value[0]!=D||x.value[1]!="s")return!1;x=L.next();return x.done||x.value[0].x!=4||x.value[1]!="t"||!L.next().done?!1:!0}catch(f){return!1}}())return G;
var b=new WeakMap,I=function(D){this[0]={};this[1]=l();this.size=0;if(D){D=_.e(D);for(var k;!(k=D.next()).done;)k=k.value,this.set(k[0],k[1])}};
I.prototype.set=function(D,k){D=D===0?0:D;var L=h(this,D);L.list||(L.list=this[0][L.id]=[]);L.entry?L.entry.value=k:(L.entry={next:this[1],previous:this[1].previous,head:this[1],key:D,value:k},L.list.push(L.entry),this[1].previous.next=L.entry,this[1].previous=L.entry,this.size++);return this};
I.prototype.delete=function(D){D=h(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};
I.prototype.clear=function(){this[0]={};this[1]=this[1].previous=l();this.size=0};
I.prototype.has=function(D){return!!h(this,D).entry};
I.prototype.get=function(D){return(D=h(this,D).entry)&&D.value};
I.prototype.entries=function(){return q(this,function(D){return[D.key,D.value]})};
I.prototype.keys=function(){return q(this,function(D){return D.key})};
I.prototype.values=function(){return q(this,function(D){return D.value})};
I.prototype.forEach=function(D,k){for(var L=this.entries(),x;!(x=L.next()).done;)x=x.value,D.call(k,x[1],x[0],this)};
I.prototype[Symbol.iterator]=I.prototype.entries;var h=function(D,k){var L=k&&typeof k;L=="object"||L=="function"?b.has(k)?L=b.get(k):(L=""+ ++V,b.set(k,L)):L="p_"+k;var x=D[0][L];if(x&&aA(D[0],L))for(D=0;D<x.length;D++){var f=x[D];if(k!==k&&f.key!==f.key||k===f.key)return{id:L,list:x,index:D,entry:f}}return{id:L,list:x,index:-1,entry:void 0}},q=function(D,k){var L=D[1];
return OHj(function(){if(L){for(;L.head!=D[1];)L=L.previous;for(;L.next!=L.head;)return L=L.next,{done:!1,value:k(L)};L=null}return{done:!0,value:void 0}})},l=function(){var D={};
return D.previous=D.next=D.head=D},V=0;
return I});
rP("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}),h=new G(_.e([I]));if(!h.has(I)||h.size!=1||h.add(I)!=h||h.size!=1||h.add({x:4})!=h||h.size!=2)return!1;var q=h.entries(),l=q.next();if(l.done||l.value[0]!=I||l.value[1]!=I)return!1;l=q.next();return l.done||l.value[0]==I||l.value[0].x!=4||l.value[1]!=l.value[0]?!1:q.next().done}catch(V){return!1}}())return G;
var b=function(I){this.JSC$8848_map_=new Map;if(I){I=_.e(I);for(var h;!(h=I.next()).done;)this.add(h.value)}this.size=this.JSC$8848_map_.size};
b.prototype.add=function(I){I=I===0?0:I;this.JSC$8848_map_.set(I,I);this.size=this.JSC$8848_map_.size;return this};
b.prototype.delete=function(I){I=this.JSC$8848_map_.delete(I);this.size=this.JSC$8848_map_.size;return I};
b.prototype.clear=function(){this.JSC$8848_map_.clear();this.size=0};
b.prototype.has=function(I){return this.JSC$8848_map_.has(I)};
b.prototype.entries=function(){return this.JSC$8848_map_.entries()};
b.prototype.values=function(){return this.JSC$8848_map_.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(I,h){var q=this;this.JSC$8848_map_.forEach(function(l){return I.call(h,l,l,q)})};
return b});
rP("Math.log2",function(G){return G?G:function(b){return Math.log(b)/Math.LN2}});
rP("Object.values",function(G){return G?G:function(b){var I=[],h;for(h in b)aA(b,h)&&I.push(b[h]);return I}});
rP("Object.is",function(G){return G?G:function(b,I){return b===I?b!==0||1/b===1/I:b!==b&&I!==I}});
rP("Array.prototype.includes",function(G){return G?G:function(b,I){var h=this;h instanceof String&&(h=String(h));var q=h.length;I=I||0;for(I<0&&(I=Math.max(I+q,0));I<q;I++){var l=h[I];if(l===b||Object.is(l,b))return!0}return!1}});
rP("String.prototype.includes",function(G){return G?G:function(b,I){return CW(this,b,"includes").indexOf(b,I||0)!==-1}});
rP("Object.entries",function(G){return G?G:function(b){var I=[],h;for(h in b)aA(b,h)&&I.push([h,b[h]]);return I}});
rP("Number.isFinite",function(G){return G?G:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});
rP("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
rP("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
rP("Number.isInteger",function(G){return G?G:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
rP("Number.isSafeInteger",function(G){return G?G:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
rP("String.prototype.endsWith",function(G){return G?G:function(b,I){var h=CW(this,b,"endsWith");I===void 0&&(I=h.length);I=Math.max(0,Math.min(I|0,h.length));for(var q=b.length;q>0&&I>0;)if(h[--I]!=b[--q])return!1;return q<=0}});
var cdn=function(G,b){G instanceof String&&(G+="");var I=0,h=!1,q={next:function(){if(!h&&I<G.length){var l=I++;return{value:b(l,G[l]),done:!1}}h=!0;return{done:!0,value:void 0}}};
q[Symbol.iterator]=function(){return q};
return q};
rP("Array.prototype.entries",function(G){return G?G:function(){return cdn(this,function(b,I){return[b,I]})}});
rP("Math.trunc",function(G){return G?G:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var I=Math.floor(Math.abs(b));return b<0?-I:I}});
rP("Number.isNaN",function(G){return G?G:function(b){return typeof b==="number"&&isNaN(b)}});
rP("Array.prototype.keys",function(G){return G?G:function(){return cdn(this,function(b){return b})}});
rP("Array.prototype.values",function(G){return G?G:function(){return cdn(this,function(b,I){return I})}});
rP("Array.prototype.fill",function(G){return G?G:function(b,I,h){var q=this.length||0;I<0&&(I=Math.max(0,q+I));if(h==null||h>q)h=q;h=Number(h);h<0&&(h=Math.max(0,q+h));for(I=Number(I||0);I<h;I++)this[I]=b;return this}});
nZO("fill",function(G){return G?G:Array.prototype.fill});
rP("Object.fromEntries",function(G){return G?G:function(b){var I={};if(!(Symbol.iterator in b))throw new TypeError("v`"+b);b=b[Symbol.iterator].call(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;if(Object(h)!==h)throw new TypeError("w");I[h[0]]=h[1]}return I}});
rP("String.prototype.replaceAll",function(G){return G?G:function(b,I){if(b instanceof RegExp&&!b.global)throw new TypeError("x");return b instanceof RegExp?this.replace(b,I):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),I)}});
rP("Object.getOwnPropertySymbols",function(G){return G?G:function(){return[]}});
rP("String.prototype.repeat",function(G){return G?G:function(b){var I=CW(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("y");b|=0;for(var h="";b;)if(b&1&&(h+=I),b>>>=1)I+=I;return h}});
rP("Array.prototype.findIndex",function(G){return G?G:function(b,I){return DrX(this,b,I).i}});
rP("Array.prototype.flatMap",function(G){return G?G:function(b,I){var h=[];Array.prototype.forEach.call(this,function(q,l){q=b.call(I,q,l,this);Array.isArray(q)?h.push.apply(h,q):h.push(q)});
return h}});
rP("String.prototype.codePointAt",function(G){return G?G:function(b){var I=CW(this,null,"codePointAt"),h=I.length;b=Number(b)||0;if(b>=0&&b<h){b|=0;var q=I.charCodeAt(b);if(q<55296||q>56319||b+1===h)return q;b=I.charCodeAt(b+1);return b<56320||b>57343?q:(q-55296)*1024+b+9216}}});
rP("String.fromCodePoint",function(G){return G?G:function(b){for(var I="",h=0;h<arguments.length;h++){var q=Number(arguments[h]);if(q<0||q>1114111||q!==Math.floor(q))throw new RangeError("z`"+q);q<=65535?I+=String.fromCharCode(q):(q-=65536,I+=String.fromCharCode(q>>>10&1023|55296),I+=String.fromCharCode(q&1023|56320))}return I}});
rP("String.prototype.trimLeft",function(G){function b(){return this.replace(/^[\s\xa0]+/,"")}
return G||b});
rP("String.prototype.trimStart",function(G){return G||String.prototype.trimLeft});
rP("String.prototype.padStart",function(G){return G?G:function(b,I){var h=CW(this,null,"padStart");b-=h.length;I=I!==void 0?String(I):" ";return(b>0&&I?I.repeat(Math.ceil(b/I.length)).substring(0,b):"")+h}});
rP("Promise.prototype.finally",function(G){return G?G:function(b){return this.then(function(I){return Promise.resolve(b()).then(function(){return I})},function(I){return Promise.resolve(b()).then(function(){throw I;
})})}});
rP("Math.imul",function(G){return G?G:function(b,I){b=Number(b);I=Number(I);var h=b&65535,q=I&65535;return h*q+((b>>>16&65535)*q+h*(I>>>16&65535)<<16>>>0)|0}});
rP("Object.hasOwn",function(G){return G?G:function(b,I){return Object.prototype.hasOwnProperty.call(b,I)}});
rP("Math.sign",function(G){return G?G:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}});
rP("Array.prototype.flat",function(G){return G?G:function(b){b=b===void 0?1:b;var I=[];Array.prototype.forEach.call(this,function(h){Array.isArray(h)&&b>0?(h=Array.prototype.flat.call(h,b-1),I.push.apply(I,h)):I.push(h)});
return I}});
rP("String.raw",function(G){return G?G:function(b,I){b=GqW(b);for(var h=b.raw,q=h.length,l="",V=0;V<q;++V)l+=h[V],V+1<q&&V+1<arguments.length&&(l+=String(arguments[V+1]));return l}});
rP("WeakSet",function(G){if(function(){if(!G||!Object.seal)return!1;try{var I=Object.seal({}),h=Object.seal({}),q=new G([I]);if(!q.has(I)||q.has(h))return!1;q.delete(I);q.add(h);return!q.has(I)&&q.has(h)}catch(l){return!1}}())return G;
var b=function(I){this.JSC$8859_map_=new WeakMap;if(I){I=_.e(I);for(var h;!(h=I.next()).done;)this.add(h.value)}};
b.prototype.add=function(I){this.JSC$8859_map_.set(I,!0);return this};
b.prototype.has=function(I){return this.JSC$8859_map_.has(I)};
b.prototype.delete=function(I){return this.JSC$8859_map_.delete(I)};
return b});
rP("Reflect.ownKeys",function(G){return G?G:function(b){var I=[],h=Object.getOwnPropertyNames(b);b=Object.getOwnPropertySymbols(b);for(var q=0;q<h.length;q++)(h[q].substring(0,14)=="jscomp_symbol_"?b:I).push(h[q]);return I.concat(b)}});
rP("Object.getOwnPropertyDescriptors",function(G){return G?G:function(b){for(var I={},h=Reflect.ownKeys(b),q=0;q<h.length;q++)I[h[q]]=Object.getOwnPropertyDescriptor(b,h[q]);return I}});
rP("Promise.allSettled",function(G){function b(h){return{status:"fulfilled",value:h}}
function I(h){return{status:"rejected",reason:h}}
return G?G:function(h){var q=this;h=Array.from(h,function(l){return q.resolve(l).then(b,I)});
return q.all(h)}});
rP("Number.parseInt",function(G){return G||parseInt});
_._DumpException=window._DumpException||function(G){throw G;};
window._DumpException=_._DumpException;var kqW=window.ytcsi;kqW&&typeof kqW.tick==="function"&&kqW.tick("rses_dpj");var vab,Jk,KW,uX,Lpi,QOn,xrQ,frn,dj,TXW;vab=vab||{};_.hd=this||self;_.cz=function(G,b,I){G=G.split(".");I=I||_.hd;for(var h;G.length&&(h=G.shift());)G.length||b===void 0?I[h]&&I[h]!==Object.prototype[h]?I=I[h]:I=I[h]={}:I[h]=b};
Jk=function(G,b){var I=_.Ge("WIZ_global_data.oxN3nb");G=I&&I[G];return G!=null?G:b};
KW=_.hd._F_toggles_default_kevlar_base||[];uX=function(){};
uX.get=function(){return null};
_.bcp=null;_.Ge=function(G,b){G=G.split(".");b=b||_.hd;for(var I=0;I<G.length;I++)if(b=b[G[I]],b==null)return null;return b};
_.RA=function(G){G.instance_=void 0;G.getInstance=function(){return G.instance_?G.instance_:G.instance_=new G}};
_.$3=function(G){var b=typeof G;return b!="object"?b:G?Array.isArray(G)?"array":b:"null"};
_.KO=function(G){var b=_.$3(G);return b=="array"||b=="object"&&typeof G.length=="number"};
_.Oj=function(G){var b=typeof G;return b=="object"&&G!=null||b=="function"};
_.Ej=function(G){return Object.prototype.hasOwnProperty.call(G,Lpi)&&G[Lpi]||(G[Lpi]=++QOn)};
Lpi="closure_uid_"+(Math.random()*1E9>>>0);QOn=0;xrQ=function(G,b,I){return G.call.apply(G.bind,arguments)};
frn=function(G,b,I){if(!G)throw Error();if(arguments.length>2){var h=Array.prototype.slice.call(arguments,2);return function(){var q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(q,h);return G.apply(b,q)}}return function(){return G.apply(b,arguments)}};
_.Hr=function(G,b,I){_.Hr=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?xrQ:frn;return _.Hr.apply(null,arguments)};
_.l9=function(G,b){var I=Array.prototype.slice.call(arguments,1);return function(){var h=I.slice();h.push.apply(h,arguments);return G.apply(this,h)}};
_.nW=function(){return Date.now()};
dj=function(G){return G};
_.OE=function(G,b){function I(){}
I.prototype=b.prototype;G.superClass_=b.prototype;G.prototype=new I;G.prototype.constructor=G;G.base=function(h,q,l){for(var V=Array(arguments.length-2),D=2;D<arguments.length;D++)V[D-2]=arguments[D];return b.prototype[q].apply(h,V)}};
TXW=function(G){return G};var BXQ,Uru;_.R=function(G,b,I,h){var q=arguments.length,l=q<3?b:h===null?h=Object.getOwnPropertyDescriptor(b,I):h,V;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")l=Reflect.decorate(G,b,I,h);else for(var D=G.length-1;D>=0;D--)if(V=G[D])l=(q<3?V(l):q>3?V(b,I,l):V(b,I))||l;q>3&&l&&Object.defineProperty(b,I,l)};
_.n=function(G,b){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(G,b)};
BXQ=function(G,b){if(b!==null&&b!==void 0){if(typeof b!=="object"&&typeof b!=="function")throw new TypeError("A");if(I===void 0){if(!Symbol.dispose)throw new TypeError("C");var I=b[Symbol.dispose]}if(typeof I!=="function")throw new TypeError("D");G.stack.push({value:b,dispose:I,async:!1})}return b};
Uru=function(G){function b(l){G.error=G.hasError?new SuppressedError(l,G.error,"An error was suppressed during disposal."):l;G.hasError=!0}
function I(){for(;h=G.stack.pop();)try{if(!h.async&&q===1)return q=0,G.stack.push(h),Promise.resolve().then(I);if(h.dispose){var l=h.dispose.call(h.value);if(h.async)return q|=2,Promise.resolve(l).then(I,function(V){b(V);return I()})}else q|=1}catch(V){b(V)}if(q===1)return G.hasError?Promise.reject(G.error):Promise.resolve();
if(G.hasError)throw G.error;}
var h,q=0;I()};var sOW="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(" ");$rB()&&sOW.push("details:not(:has(summary))");var bOO=sOW.join(",");_.OE(_.bs,Error);_.bs.prototype.name="CustomError";var gab;var AdB=void 0,MvO,ZOe=typeof TextDecoder!=="undefined",Dr2,VvO=typeof String.prototype.isWellFormed==="function",eBO=typeof TextEncoder!=="undefined";var tv5;_.rk=function(G){for(var b=[],I=0,h=0;h<G.length;h++){var q=G.charCodeAt(h);q<128?b[I++]=q:(q<2048?b[I++]=q>>6|192:((q&64512)==55296&&h+1<G.length&&(G.charCodeAt(h+1)&64512)==56320?(q=65536+((q&1023)<<10)+(G.charCodeAt(++h)&1023),b[I++]=q>>18|240,b[I++]=q>>12&63|128):b[I++]=q>>12|224,b[I++]=q>>6&63|128),b[I++]=q&63|128)}return b};
tv5=function(G){for(var b=[],I=0,h=0;I<G.length;){var q=G[I++];if(q<128)b[h++]=String.fromCharCode(q);else if(q>191&&q<224){var l=G[I++];b[h++]=String.fromCharCode((q&31)<<6|l&63)}else if(q>239&&q<365){l=G[I++];var V=G[I++],D=G[I++];q=((q&7)<<18|(l&63)<<12|(V&63)<<6|D&63)-65536;b[h++]=String.fromCharCode(55296+(q>>10));b[h++]=String.fromCharCode(56320+(q&1023))}else l=G[I++],V=G[I++],b[h++]=String.fromCharCode((q&15)<<12|(l&63)<<6|V&63)}return b.join("")};var v2=String.prototype.trim?function(G){return G.trim()}:function(G){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(G)[1]},zBQ=/&/g,oaQ=/</g,iOe=/>/g,PsW=/"/g,drW=/'/g,ydA=/\x00/g,rdz=/[\x00&<>"']/;var wP=!!(KW[0]>>15&1),FpJ=!!(KW[0]&1024),HOz=!!(KW[0]>>16&1),Wpn=!!(KW[0]&8),arn=!!(KW[0]&2),NXJ=!!(KW[0]&4),YjX=!!(KW[0]&16),Csn=!!(KW[0]&128);var B2=wP?HOz:Jk(610401301,!1),JdA=wP?Wpn:Jk(772657768,!1),Kp5=wP?arn:Jk(513659523,!1),uOb=wP?FpJ||!NXJ:Jk(568333945,!0),trO=wP?YjX:Jk(1331761403,!1),Bjv=wP?FpJ||!Csn:Jk(748402147,!0);var sj,RBA=_.hd.navigator;sj=RBA?RBA.userAgentData||null:null;var qB;_.Nr=function(G,b){return Array.prototype.indexOf.call(G,b,void 0)};
_.hB=function(G,b,I){Array.prototype.forEach.call(G,b,I)};
_.EE=function(G,b,I){return Array.prototype.filter.call(G,b,I)};
_.Ky=function(G,b,I){return Array.prototype.map.call(G,b,I)};
qB=function(G,b,I){return Array.prototype.some.call(G,b,I)};
_.unv=function(G,b,I){return Array.prototype.every.call(G,b,I)};var pW=function(G){pW[" "](G);return G};
pW[" "]=function(){};
var r4a=function(G,b){try{return pW(G[b]),!0}catch(I){}return!1},cF2=function(G,b,I,h){h=h?h(b):b;
return Object.prototype.hasOwnProperty.call(G,h)?G[h]:G[h]=I(b)};var nai,Vz,OOQ,w2b,p2i,SjB,Kld,X2z,$8n,GAO,l2u,Ieu,hWA,m8Q,eWu,VBi;_.z0r=function(){return _.hd.navigator||null};
nai=Lpu();_.Sf=QOs();Vz=gX("Edge");OOQ=Vz||_.Sf;_.XE=gX("Gecko")&&!(_.ka(_.Tq(),"WebKit")&&!gX("Edge"))&&!(gX("Trident")||gX("MSIE"))&&!gX("Edge");_.$Y=_.ka(_.Tq(),"WebKit")&&!gX("Edge");w2b=_.$Y&&gX("Mobile");_.EaQ=_.Mvp();p2i=_.ZOr();SjB=(P2()?sj.platform==="Linux":gX("Linux"))||_.tvd();Kld=_.gaa();X2z=Adv();$8n=gX("iPad");GAO=gX("iPod");_.bQ8=_.dX();l2u=_.ka(_.Tq(),"KaiOS");Ieu=function(){var G=_.hd.document;return G?G.documentMode:void 0};
a:{var qui="",jnz=function(){var G=_.Tq();if(_.XE)return/rv:([^\);]+)(\)|;)/.exec(G);if(Vz)return/Edge\/([\d\.]+)/.exec(G);if(_.Sf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(G);if(_.$Y)return/WebKit\/(\S+)/.exec(G);if(nai)return/(?:Version)[ \/]?(\S+)/.exec(G)}();
jnz&&(qui=jnz?jnz[1]:"");if(_.Sf){var leO=Ieu();if(leO!=null&&leO>parseFloat(qui)){hWA=String(leO);break a}}hWA=qui}m8Q=hWA;eWu={};_.Gd=function(G){return cF2(eWu,G,function(){return _.Qu(m8Q,G)>=0})};
if(_.hd.document&&_.Sf){var D8b=Ieu();VBi=D8b?D8b:parseInt(m8Q,10)||void 0}else VBi=void 0;_.c5X=VBi;var nPv,OUO,kAz;_.b3=Zr();nPv=Adv()||gX("iPod");OUO=gX("iPad");kAz=_.TXB();_.IR=_.zq();_.pL=_.frO()&&!_.dX();var vb5,hJ,GxO,qmu,QnJ,LOB;vb5={};hJ=null;GxO=_.XE||_.$Y||typeof _.hd.btoa=="function";_.WL=function(G,b){b===void 0&&(b=0);LOB();b=vb5[b];for(var I=Array(Math.floor(G.length/3)),h=b[64]||"",q=0,l=0;q<G.length-2;q+=3){var V=G[q],D=G[q+1],k=G[q+2],L=b[V>>2];V=b[(V&3)<<4|D>>4];D=b[(D&15)<<2|k>>6];k=b[k&63];I[l++]=L+V+D+k}L=0;k=h;switch(G.length-q){case 2:L=G[q+1],k=b[(L&15)<<2]||h;case 1:G=G[q],I[l]=b[G>>2]+b[(G&3)<<4|L>>4]+k+h}return I.join("")};
qmu=function(G){var b="";QnJ(G,function(I){b+=String.fromCharCode(I)});
return b};
_.Kvs=function(G){var b=[];QnJ(G,function(I){b.push(I)});
return b};
_.Sv=function(G){var b=G.length,I=b*3/4;I%3?I=Math.floor(I):_.c2("=.",G[b-1])&&(I=_.c2("=.",G[b-2])?I-2:I-1);var h=new Uint8Array(I),q=0;QnJ(G,function(l){h[q++]=l});
return q!==I?h.subarray(0,q):h};
QnJ=function(G,b){function I(k){for(;h<G.length;){var L=G.charAt(h++),x=hJ[L];if(x!=null)return x;if(!_.Dr(L))throw Error("H`"+L);}return k}
LOB();for(var h=0;;){var q=I(-1),l=I(0),V=I(64),D=I(64);if(D===64&&q===-1)break;b(q<<2|l>>4);V!=64&&(b(l<<4&240|V>>2),D!=64&&b(V<<6&192|D))}};
LOB=function(){if(!hJ){hJ={};for(var G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],I=0;I<5;I++){var h=G.concat(b[I].split(""));vb5[I]=h;for(var q=0;q<h.length;q++){var l=h[q];hJ[l]===void 0&&(hJ[l]=q)}}}};var Sjv=typeof Uint8Array!=="undefined",CsO=!_.Sf&&typeof btoa==="function",Jdq=/[-_.]/g,NXO={"-":"+",_:"/",".":"="},PX={};var zA,feA;zA=function(G,b){if(b!==PX)throw Error("J");this.JSC$8893_value_=G;if(G!=null&&G.length===0)throw Error("I");};
_.dz=function(){return x8i||(x8i=new zA(null,PX))};
feA=function(G){return new Uint8Array(Jcq(G)||0)};
zA.prototype.isEmpty=function(){return this.JSC$8893_value_==null};
zA.prototype.sizeBytes=function(){var G=Jcq(this);return G?G.length:0};
var Jcq=function(G){if(PX!==PX)throw Error("J");var b=G.JSC$8893_value_;b==null||Sjv&&b!=null&&b instanceof Uint8Array||(typeof b==="string"?b=Kpd(b):(_.$3(b),b=null));return b==null?b:G.JSC$8893_value_=b},x8i;var RBq=void 0;var h5=typeof Symbol==="function"&&typeof Symbol()==="symbol",Tzz=In("jas",void 0,!0),NzX=In(void 0,"0di"),hz=In(void 0,"1oa"),HL=In(void 0,Symbol()),bDO=In(void 0,"0ub"),heO=In(void 0,"0ubs"),MoB=In(void 0,"0ubsb"),s5v=In(void 0,"0actk"),ZY=In("m_m","messagePrototypeMarker",!0),L9s=In(void 0,"vps"),XXO=In();var w2a,OOO,E1,Bz5;w2a={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};OOO=Object.defineProperties;_.q8=h5?Tzz:"internalArrayState";Bz5=[];eB(Bz5,7);E1=Object.freeze(Bz5);var iF={},Uu={},U8X=function(G,b,I){this.iterable=G;this.mapper=b;this.thisArg=I};
U8X.prototype.next=function(){var G=this.iterable.next();G.done||(G.value=this.mapper.call(this.thisArg,G.value));return G};
U8X.prototype[Symbol.iterator]=function(){return this};
var snn=Object.freeze({}),FJ={};_.gbB=WX(function(G){return G!==null&&G!==void 0});var hWq=WX(function(G){return typeof G==="number"}),Iej=WX(function(G){return typeof G==="string"}),jnX=WX(function(G){return typeof G==="boolean"}),A5n=WX(function(G){return G!=null&&typeof G==="object"&&typeof G.then==="function"}),Nip=WX(function(G){return typeof G==="function"}),v$=WX(function(G){return!!G&&(typeof G==="object"||typeof G==="function")});var quu=typeof _.hd.BigInt==="function"&&typeof _.hd.BigInt(0)==="bigint";var y5O=WX(function(G){return quu?G>=MBu&&G<=ZQQ:G[0]==="-"?lep(G,tBz):lep(G,zWe)}),tBz=Number.MIN_SAFE_INTEGER.toString(),MBu=quu?BigInt(Number.MIN_SAFE_INTEGER):void 0,zWe=Number.MAX_SAFE_INTEGER.toString(),ZQQ=quu?BigInt(Number.MAX_SAFE_INTEGER):void 0;var obn=typeof Uint8Array.prototype.slice==="function",Yb=0,CQ=0,VBu;var cL,x3,bF,QK,TzX;cL=typeof BigInt==="function"?BigInt.asIntN:void 0;_.fD=typeof BigInt==="function"?BigInt.asUintN:void 0;x3=Number.isSafeInteger;bF=Number.isFinite;QK=Math.trunc;TzX=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Q5X={};var Eba={},iQb=function(){try{var G=function(){return EZu(Map,[],this.constructor)};
_.M(G,Map);pW(new G);return!1}catch(b){return!0}}(),qC=function(){this.JSC$8912_map_=new Map};
_.m=qC.prototype;_.m.get=function(G){return this.JSC$8912_map_.get(G)};
_.m.set=function(G,b){this.JSC$8912_map_.set(G,b);this.size=this.JSC$8912_map_.size;return this};
_.m.delete=function(G){G=this.JSC$8912_map_.delete(G);this.size=this.JSC$8912_map_.size;return G};
_.m.clear=function(){this.JSC$8912_map_.clear();this.size=this.JSC$8912_map_.size};
_.m.has=function(G){return this.JSC$8912_map_.has(G)};
_.m.entries=function(){return this.JSC$8912_map_.entries()};
_.m.keys=function(){return this.JSC$8912_map_.keys()};
_.m.values=function(){return this.JSC$8912_map_.values()};
_.m.forEach=function(G,b){return this.JSC$8912_map_.forEach(G,b)};
qC.prototype[Symbol.iterator]=function(){return this.entries()};
var jR=function(){if(iQb)return Object.setPrototypeOf(qC.prototype,Map.prototype),Object.defineProperties(qC.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),qC;var G=function(){return EZu(Map,[],this.constructor)};
_.M(G,Map);return G}(),PL=function(G,b,I,h){I=I===void 0?uJX:I;
h=h===void 0?uJX:h;var q=jR.call(this)||this;q.arrayState=G[_.q8]|0;q.valueCtor=b;q.keyToApi=I;q.valueToApi=q.valueCtor?nbs:h;for(var l=0;l<G.length;l++){var V=G[l],D=I(V[0],!1,!0),k=V[1];b?k===void 0&&(k=null):k=h(V[1],!1,!0,void 0,void 0,q.arrayState);jR.prototype.set.call(q,D,k)}return q};
_.M(PL,jR);var Pne=function(G){if(G.arrayState&2)throw Error("N");},v3d=function(G,b){return De(Array.from(jR.prototype.entries.call(G),b))};
_.m=PL.prototype;_.m.clear=function(){Pne(this);jR.prototype.clear.call(this)};
_.m.delete=function(G){Pne(this);return jR.prototype.delete.call(this,this.keyToApi(G,!0,!1))};
_.m.entries=function(){if(this.valueCtor){var G=jR.prototype.keys.call(this);G=new U8X(G,OQO,this)}else G=jR.prototype.entries.call(this);return G};
_.m.values=function(){if(this.valueCtor){var G=jR.prototype.keys.call(this);G=new U8X(G,PL.prototype.get,this)}else G=jR.prototype.values.call(this);return G};
_.m.forEach=function(G,b){this.valueCtor?jR.prototype.forEach.call(this,function(I,h,q){G.call(b,q.get(h),h,q)}):jR.prototype.forEach.call(this,G,b)};
_.m.set=function(G,b){Pne(this);G=this.keyToApi(G,!0,!1);return G==null?this:b==null?(jR.prototype.delete.call(this,G),this):jR.prototype.set.call(this,G,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};
_.m.has=function(G){return jR.prototype.has.call(this,this.keyToApi(G,!1,!1))};
_.m.get=function(G){G=this.keyToApi(G,!1,!1);var b=jR.prototype.get.call(this,G);if(b!==void 0){var I=this.valueCtor;return I?(I=this.valueToApi(b,!1,!0,I,this.callToMutableOnAccess,this.arrayState),I!==b&&jR.prototype.set.call(this,G,I),I):b}};
PL.prototype[Symbol.iterator]=function(){return this.entries()};
PL.prototype.toJSON=void 0;var wXB;var mfp=function(){},j5r=function(G,b){for(var I in G)!isNaN(I)&&b(G,+I,G[I])},eeO=function(G){var b=new mfp;
j5r(G,function(I,h,q){b[h]=Ou(q)});
b.reviveUnknownFields=G.reviveUnknownFields;return b},$fd={reviveIntoImmutable:!0};var lYO;var xfp,fYO;var d85,$I,Z5,PA,y5Q,Lp,oB,r5n,FOQ,Td,HQu,B8,AJ,MC;d85=_.N8(0);_.l3={};_.mI=function(G,b,I,h,q){b=$I(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,I,q);if(b!==null||h&&G.noLegacyNull!==Uu)return b};
$I=function(G,b,I,h){if(b===-1)return null;var q=b+(I?0:-1),l=G.length-1;if(!(l<1+(I?0:-1))){if(q>=l){var V=G[l];if(V!=null&&typeof V==="object"&&V.constructor===Object){I=V[b];var D=!0}else if(q===l)I=V;else return}else I=G[q];if(h&&I!=null){h=h(I);if(h==null)return h;if(!Object.is(h,I))return D?V[b]=h:G[q]=h,h}return I}};
_.Bz=function(G,b,I,h){R5(G);var q=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;O1(q,q[_.q8]|0,b,I,h);return G};
_.eR=function(G,b,I){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return W92(G,G[_.q8]|0,b,I)!==void 0};
_.Vt=function(G,b,I,h){var q=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return W92(q,q[_.q8]|0,b,PA(G,h,I))!==void 0};
_.vr=function(G){return G===snn?2:4};
_.Du=function(G,b){G=_.mI(G,b,void 0,void 0,PFO);return G==null?_.dz():G};
Z5=function(G,b,I,h){R5(G);var q=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=q[_.q8]|0;if(h==null){var V=rca(q);if(F9v(V,q,l,I)===b)V.set(I,0);else return G}else l=HDO(q,l,I,b);O1(q,l,b,h);return G};
_.c8=function(G,b,I,h){var q=G[_.q8]|0,l=HX(q);q=HDO(G,q,I,b,l);O1(G,q,b,h,l)};
PA=function(G,b,I){return _.kY(G,b)===I?I:-1};
_.kY=function(G,b){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return F9v(rca(G),G,void 0,b,void 0)};
y5Q=function(G,b,I){var h=G[_.q8]|0,q=HX(h),l=$I(G,I,q);if(l!=null&&l[ZY]===iF){if(!Ze(l))return uF(l),l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var V=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(l)&&(V=l);if(V){var D=V[_.q8]|0;D&2&&(V=KD(V,D))}V=Jc(V,b,!0);V!==l&&O1(G,h,I,V,q);return V};
_.fi=function(G,b,I,h){var q=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=q[_.q8]|0;b=W92(q,l,b,I,h);if(b==null)return b;l=q[_.q8]|0;if(!Ze(G,l)){var V=RWX(b);V!==b&&(uF(G)&&(q=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=q[_.q8]|0),b=V,l=O1(q,l,I,b,h),nD(q,l))}return b};
_.ku=function(G,b,I,h){var q=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return aYs(G,q,q[_.q8]|0,b,I,h,!1,!0)};
_.ZK=function(G,b,I,h){I=NjO(I);_.Bz(G,b,I,h);I&&!Ze(I)&&nD(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
_.tz=function(G,b,I,h){h=NjO(h);Z5(G,b,I,h);h&&!Ze(h)&&nD(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
Lp=function(G,b,I){R5(G);var h=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=h[_.q8]|0;if(I==null)return O1(h,q,b),G;for(var l=I===E1?7:I[_.q8]|0,V=l,D=XW(l),k=D||Object.isFrozen(I),L=!0,x=!0,f=0;f<I.length;f++){var T=I[f];D||(T=Ze(T),L&&(L=!T),x&&(x=T))}D||(l=L?13:5,l=x?l&-4097:l|4096);k&&l===V||(I=Ou(I),V=0,l=pD(l,q));l!==V&&eB(I,l);q=O1(h,q,b,I);2&l||!(4096&l||16&l)||nD(h,q);return G};
oB=function(G,b,I,h){CF2(G,b,I,h);return G};
r5n=function(G,b,I){CF2(G,b,Qt,void 0,I,1,!0);return G};
_.xY=function(G,b,I){G=_.mI(G,b,void 0,I);b=typeof G;G=G==null?G:b==="bigint"?_.N8((0,_.fD)(64,G)):_.hc(G)?b==="string"?_.d8d(G):_.iQa(G):void 0;return G};
_.fp=function(G,b){var I=I===void 0?!1:I;var h;return(h=_.feq(_.mI(G,b)))!=null?h:I};
_.LT=function(G,b,I){I=I===void 0?0:I;var h;return(h=_.VK(_.mI(G,b)))!=null?h:I};
FOQ=function(G,b){var I=I===void 0?0:I;G=_.U82(_.mI(G,b));return G!=null?G:I};
Td=function(G,b,I){I=I===void 0?d85:I;var h;return(h=_.HQj(_.mI(G,b)))!=null?h:I};
HQu=function(G){var b=b===void 0?d85:b;var I;return(I=_.xY(G,23))!=null?I:b};
B8=function(G,b){var I=I===void 0?0:I;var h;return(h=_.mI(G,b,void 0,void 0,_.SB))!=null?h:I};
_.U5=function(G,b,I,h){I=I===void 0?"":I;var q;return(q=_.Mf(_.mI(G,b,h)))!=null?q:I};
_.gU=function(G,b){var I=I===void 0?0:I;var h;return(h=_.lF(_.mI(G,b)))!=null?h:I};
AJ=function(G,b){var I=I===void 0?"0":I;G=FOO(_.mI(G,b),!0);return G!=null?G:I};
MC=function(G,b,I){return _.U5(G,PA(G,I,b))};
_.Zu=function(G,b,I,h){return _.fi(G,b,PA(G,h,I),void 0)};
_.zx=function(G,b){return _.Mf(_.mI(G,b,void 0,_.l3))};
_.Tx=function(G,b,I){return _.Bz(G,b,x8u(I))};
_.fv=function(G,b,I){return _.bl(G,b,x8u(I),!1)};
_.tJ=function(G,b,I){return _.Bz(G,b,_.e8(I))};
_.y9=function(G,b,I){return _.Bz(G,b,LD(I))};
_.F0=function(G,b,I){return _.Bz(G,b,BL(I))};
_.yq=function(G,b,I,h){return _.bl(G,b,BL(I),"",h)};
_.Tv=function(G,b,I){return _.Bz(G,b,I==null?I:_.qf(I))};
_.zd=function(G,b,I){return _.bl(G,b,I==null?I:_.qf(I),0)};var qE=function(G,b,I){this.buffer=G;if(I&&!b)throw Error();this.JSC$8924_isImmutable=b};var WOW=function(G,b,I,h){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8927_start_=0;this.init(G,b,I,h)},oR,Nzz,YuJ,Cn8,J5A,KOX,vIq,aeJ;
_.m=WOW.prototype;_.m.init=function(G,b,I,h){var q=h===void 0?{}:h;h=q.aliasBytesFields===void 0?!1:q.aliasBytesFields;q=q.treatNewDataAsImmutable===void 0?!1:q.treatNewDataAsImmutable;this.aliasBytesFields=h;this.treatNewDataAsImmutable=q;G&&(G=K9X(G,this.treatNewDataAsImmutable),this.bytes_=G.buffer,this.bytesAreImmutable_=G.JSC$8924_isImmutable,this.JSC$8927_start_=b||0,this.end_=I!==void 0?this.JSC$8927_start_+I:this.bytes_.length,this.cursor_=this.JSC$8927_start_)};
_.m.free=function(){this.clear();aeJ.length<100&&aeJ.push(this)};
_.m.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8927_start_=0;this.aliasBytesFields=!1};
_.m.reset=function(){this.cursor_=this.JSC$8927_start_};
_.m.atEnd=function(){return this.cursor_==this.end_};
_.i3=function(G,b){var I=0,h=0,q=0,l=G.bytes_,V=G.cursor_;do{var D=l[V++];I|=(D&127)<<q;q+=7}while(q<32&&D&128);if(q>32)for(h|=(D&127)>>4,q=3;q<32&&D&128;q+=7)D=l[V++],h|=(D&127)<<q;oR(G,V);if(!(D&128))return b(I>>>0,h>>>0);throw Error();};
oR=function(G,b){G.cursor_=b;if(b>G.end_)throw Error();};
_.P8=function(G){var b=G.bytes_,I=G.cursor_,h=b[I++],q=h&127;if(h&128&&(h=b[I++],q|=(h&127)<<7,h&128&&(h=b[I++],q|=(h&127)<<14,h&128&&(h=b[I++],q|=(h&127)<<21,h&128&&(h=b[I++],q|=h<<28,h&128&&b[I++]&128&&b[I++]&128&&b[I++]&128&&b[I++]&128&&b[I++]&128)))))throw Error();oR(G,I);return q};
_.dU=function(G){var b=G.bytes_,I=G.cursor_,h=b[I],q=b[I+1],l=b[I+2];b=b[I+3];oR(G,G.cursor_+4);return(h<<0|q<<8|l<<16|b<<24)>>>0};
Nzz=function(G){var b=_.dU(G);G=_.dU(G);return c52(b,G)};
YuJ=function(G){var b=_.dU(G);G=(b>>31)*2+1;var I=b>>>23&255;b&=8388607;return I==255?b?NaN:G*Infinity:I==0?G*1.401298464324817E-45*b:G*Math.pow(2,I-150)*(b+8388608)};
Cn8=function(G){var b=_.dU(G),I=_.dU(G);G=(I>>31)*2+1;var h=I>>>20&2047;b=4294967296*(I&1048575)+b;return h==2047?b?NaN:G*Infinity:h==0?G*4.9E-324*b:G*Math.pow(2,h-1075)*(b+4503599627370496)};
J5A=function(G){for(var b=0,I=G.cursor_,h=I+10,q=G.bytes_;I<h;){var l=q[I++];b|=l;if((l&128)===0)return oR(G,I),!!(b&127)}throw Error();};
KOX=function(G,b){if(b<0)throw Error();var I=G.cursor_;b=I+b;if(b>G.end_)throw Error();G.cursor_=b;return I};
vIq=function(G,b){if(b==0)return _.dz();var I=KOX(G,b);G.aliasBytesFields&&G.bytesAreImmutable_?I=G.bytes_.subarray(I,I+b):(G=G.bytes_,b=I+b,I=I===b?new Uint8Array(0):obn?G.slice(I,b):new Uint8Array(G.subarray(I,b)));return I.length==0?_.dz():new zA(I,PX)};
aeJ=[];var RWz=function(G,b,I,h){if(aeJ.length){var q=aeJ.pop();q.init(G,b,I,h);G=q}else G=new WOW(G,b,I,h);this.decoder_=G;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;uJz(this,h)},uJz=function(G,b){b=b===void 0?{}:b;
G.discardUnknownFields=b.discardUnknownFields===void 0?!1:b.discardUnknownFields},xEj=function(G,b,I,h){if(nbn.length){var q=nbn.pop();
uJz(q,h);q.decoder_.init(G,b,I,h);return q}return new RWz(G,b,I,h)},DEs,k7X,rU,OQn,nbn;
RWz.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;nbn.length<100&&nbn.push(this)};
RWz.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
DEs=function(G){if(G.decoder_.atEnd())return!1;G.fieldCursor_=G.decoder_.cursor_;var b=_.P8(G.decoder_)>>>0,I=b>>>3;b&=7;if(!(b>=0&&b<=5))throw Error();if(I<1)throw Error();G.nextField_=I;G.nextWireType_=b;return!0};
k7X=function(G){switch(G.nextWireType_){case 0:G.nextWireType_!=0?k7X(G):J5A(G.decoder_);break;case 1:G=G.decoder_;oR(G,G.cursor_+8);break;case 2:if(G.nextWireType_!=2)k7X(G);else{var b=_.P8(G.decoder_)>>>0;G=G.decoder_;oR(G,G.cursor_+b)}break;case 5:G=G.decoder_;oR(G,G.cursor_+4);break;case 3:b=G.nextField_;do{if(!DEs(G))throw Error();if(G.nextWireType_==4){if(G.nextField_!=b)throw Error();break}k7X(G)}while(1);break;default:throw Error();}};
rU=function(G,b,I){var h=G.decoder_.end_,q=_.P8(G.decoder_)>>>0;q=G.decoder_.cursor_+q;var l=q-h;l<=0&&(G.decoder_.end_=q,I(b,G,void 0,void 0,void 0),l=q-G.decoder_.cursor_);if(l)throw Error();G.decoder_.cursor_=q;G.decoder_.end_=h;return b};
OQn=function(G){var b=_.P8(G.decoder_)>>>0;G=G.decoder_;var I=KOX(G,b);G=G.bytes_;if(ZOe){var h=G,q;(q=MvO)||(q=MvO=new TextDecoder("utf-8",{fatal:!0}));b=I+b;h=I===0&&b===h.length?h:h.subarray(I,b);try{var l=q.decode(h)}catch(L){if(AdB===void 0){try{q.decode(new Uint8Array([128]))}catch(x){}try{q.decode(new Uint8Array([97])),AdB=!0}catch(x){AdB=!1}}!AdB&&(MvO=void 0);throw L;}}else{l=I;b=l+b;I=[];for(var V=null,D,k;l<b;)D=G[l++],D<128?I.push(D):D<224?l>=b?IO():(k=G[l++],D<194||(k&192)!==128?(l--,
IO()):I.push((D&31)<<6|k&63)):D<240?l>=b-1?IO():(k=G[l++],(k&192)!==128||D===224&&k<160||D===237&&k>=160||((q=G[l++])&192)!==128?(l--,IO()):I.push((D&15)<<12|(k&63)<<6|q&63)):D<=244?l>=b-2?IO():(k=G[l++],(k&192)!==128||(D<<28)+(k-144)>>30!==0||((q=G[l++])&192)!==128||((h=G[l++])&192)!==128?(l--,IO()):(D=(D&7)<<18|(k&63)<<12|(q&63)<<6|h&63,D-=65536,I.push((D>>10&1023)+55296,(D&1023)+56320))):IO(),I.length>=8192&&(V=mru(V,I),I.length=0);l=mru(V,I)}return l};
_.wXW=function(G){var b=_.P8(G.decoder_)>>>0;return vIq(G.decoder_,b)};
_.Ebb=function(G,b,I){var h=_.P8(G.decoder_)>>>0;for(h=G.decoder_.cursor_+h;G.decoder_.cursor_<h;)I.push(b(G.decoder_))};
nbn=[];var pXz=function(G,b){this.JSC$8934_lo=G>>>0;this.JSC$8934_hi=b>>>0},Plq=function(G){G=BigInt.asUintN(64,G);
return new pXz(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)))},n3a=function(G){if(!G)return Sun||(Sun=new pXz(0,0));
if(!/^\d+$/.test(G))return null;Rn(G);return new pXz(Yb,CQ)},Sun,iAj=function(G,b){this.JSC$8936_lo=G>>>0;
this.JSC$8936_hi=b>>>0},uWX=function(G){if(!G)return XXJ||(XXJ=new iAj(0,0));
if(!/^-?\d+$/.test(G))return null;Rn(G);return new iAj(Yb,CQ)},XXJ;var Fc=function(){this.JSC$8938_buffer_=[]},QM,fA,$f5;
Fc.prototype.length=function(){return this.JSC$8938_buffer_.length};
Fc.prototype.end=function(){var G=this.JSC$8938_buffer_;this.JSC$8938_buffer_=[];return G};
QM=function(G,b,I){for(;I>0||b>127;)G.JSC$8938_buffer_.push(b&127|128),b=(b>>>7|I<<25)>>>0,I>>>=7;G.JSC$8938_buffer_.push(b)};
fA=function(G,b){for(;b>127;)G.JSC$8938_buffer_.push(b&127|128),b>>>=7;G.JSC$8938_buffer_.push(b)};
_.yzq=function(G,b){if(b>=0)fA(G,b);else{for(var I=0;I<9;I++)G.JSC$8938_buffer_.push(b&127|128),b>>=7;G.JSC$8938_buffer_.push(1)}};
$f5=function(G,b){Rn(b);kAX(function(I,h){QM(G,I>>>0,h>>>0)})};
Fc.prototype.writeUint8=function(G){this.JSC$8938_buffer_.push(G>>>0&255)};
_.LA=function(G,b){G.JSC$8938_buffer_.push(b>>>0&255);G.JSC$8938_buffer_.push(b>>>8&255);G.JSC$8938_buffer_.push(b>>>16&255);G.JSC$8938_buffer_.push(b>>>24&255)};
Fc.prototype.writeInt8=function(G){this.JSC$8938_buffer_.push(G>>>0&255)};var GaB,VM,Fhr,aKv,pLu;GaB=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Fc};
VM=function(G,b){b.length!==0&&(G.blocks_.push(b),G.totalLength_+=b.length)};
_.bDn=function(G,b){_.vg(G,b,2);b=G.encoder_.end();VM(G,b);b.push(G.totalLength_);return b};
_.IY5=function(G,b){var I=b.pop();for(I=G.totalLength_+G.encoder_.length()-I;I>127;)b.push(I&127|128),I>>>=7,G.totalLength_++;b.push(I);G.totalLength_++};
_.vg=function(G,b,I){fA(G.encoder_,b*8+I)};
Fhr=function(G,b,I){if(I!=null)switch(ODs(I),_.vg(G,b,1),typeof I){case "number":G=G.encoder_;m8O(I);_.LA(G,Yb);_.LA(G,CQ);break;case "bigint":I=Plq(I);G=G.encoder_;b=I.JSC$8934_hi;_.LA(G,I.JSC$8934_lo);_.LA(G,b);break;default:I=n3a(I),G=G.encoder_,b=I.JSC$8934_hi,_.LA(G,I.JSC$8934_lo),_.LA(G,b)}};
aKv=function(G,b,I){_.vg(G,b,2);fA(G.encoder_,I.length);VM(G,G.encoder_.end());VM(G,I)};
pLu=function(G,b,I,h){I!=null&&(b=_.bDn(G,b),h(I,G),_.IY5(G,b))};var wLv,hen,q1B,j58,lYJ,een,V8O,ccX,ka5;wLv=jo();hen=jo();q1B=jo();j58=jo();lYJ=jo();_.mfO=jo();_.H8=jo();een=jo();V8O=jo();_.DfO=jo();ccX=jo();ka5=jo();_.v35=jo();_.L9n=jo();_.eo=function(G,b,I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G,b,I)};
_.eo.prototype.toJSON=function(){return Nf(this)};
_.eo.prototype.serialize=function(G){return JSON.stringify(Nf(this,G))};
var OAu=function(G,b){if(b==null||b=="")return new G;b=JSON.parse(b);if(!Array.isArray(b))throw Error("V");return new G(p2u(b))};
_.eo.prototype.getExtension=function(G){IYd(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G.fieldIndex);Gav(this,G.fieldIndex);return G.ctor?G.isRepeated?G.getExtensionFn(this,G.ctor,G.fieldIndex,_.vr(),G.JSC$8949_hasMessageId):G.getExtensionFn(this,G.ctor,G.fieldIndex,G.JSC$8949_hasMessageId):G.isRepeated?G.getExtensionFn(this,G.fieldIndex,_.vr(),G.JSC$8949_hasMessageId):G.getExtensionFn(this,G.fieldIndex,G.defaultValue,G.JSC$8949_hasMessageId)};
_.eo.prototype.clone=function(){var G=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=G[_.q8]|0;return t8O(this,G,b)?ZDB(this,G,!0):new this.constructor(KD(G,b,!1))};
_.eo.prototype[ZY]=iF;_.eo.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var ll=function(G,b,I){this.$$binaryReaderFn=G;this.$$binaryWriterFn=b;G=dj(wLv);this.$$isMsg=!!G&&I===G||!1},IKa=E3O(function(G,b,I,h,q){if(G.nextWireType_!==2)return!1;
rU(G,y5Q(b,h,I),q);return!0},XLp),hKX=E3O(function(G,b,I,h,q){if(G.nextWireType_!==2)return!1;
rU(G,y5Q(b,h,I),q);return!0},XLp),Tdu=Symbol(),lKX=Symbol(),Vop=Symbol(),sIB=Symbol(),LhO=Symbol(),$EO,G7v;var uav,Q5z,W8,xfO,fYJ,Tjn,BjB,NC,s5B,g3B,AcX,M8u,ZDW,zen,o3A,iDO,PFJ,dfb,ycb;uav=function(G,b){var I=new GaB;gIa(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I,mh(Tdu,fKr,BdO,b));VM(I,I.encoder_.end());G=new Uint8Array(I.totalLength_);b=I.blocks_;for(var h=b.length,q=0,l=0;l<h;l++){var V=b[l];G.set(V,q);q+=V.length}I.blocks_=[G];return G};
Q5z=E3O(function(G,b,I,h,q){if(G.nextWireType_!==2)return!1;G=rU(G,Jc([void 0,void 0],h,!0),q);G=Ou(G);h=b[_.q8]|0;q=HX(h);if(h&2)throw Error();var l=$I(b,I,q);if(l instanceof PL)(l.arrayState&2)!=0?(l=v3d(l),l.push(G),O1(b,h,I,l,q)):(b=l,I=b.keyToApi(G[0],!1,!0),G=G[1],G=b.valueCtor?G===void 0?null:G:b.valueToApi(G,!1,!0,void 0,!1,b.arrayState),jR.prototype.set.call(b,I,G));else if(Array.isArray(l)){var V=l[_.q8]|0;V&8192||eB(l,V|=8192);V&2&&(l=dfa(l),O1(b,h,I,l,q));l.push(G)}else O1(b,h,I,De([G]),
q);return!0},function(G,b,I,h,q){if(b instanceof PL)b.forEach(function(D,k){pLu(G,I,Jc([k,
D],h,!1),q)});
else if(Array.isArray(b)){for(var l=0;l<b.length;l++){var V=b[l];Array.isArray(V)&&pLu(G,I,Jc(V,h,!1),q)}De(b)}});
W8=_.cg(function(G,b,I){if(G.nextWireType_!==1)return!1;_.kI(b,I,Cn8(G.decoder_));return!0},zKq,ka5);
xfO=_.cg(function(G,b,I,h){if(G.nextWireType_!==1)return!1;_.c8(b,I,h,Cn8(G.decoder_));return!0},zKq,ka5);
fYJ=_.cg(function(G,b,I){if(G.nextWireType_!==5)return!1;_.kI(b,I,YuJ(G.decoder_));return!0},oIs,ccX);
Tjn=_.to2(function(G,b,I){if(G.nextWireType_!==5&&G.nextWireType_!==2)return!1;b=_.II(b,b[_.q8]|0,I);G.nextWireType_==2?_.Ebb(G,YuJ,b):b.push(YuJ(G.decoder_));return!0},function(G,b,I){b=_.ZAO(_.SB,b,!0);
if(b!=null&&b.length)for(_.vg(G,I,2),fA(G.encoder_,b.length*4),I=0;I<b.length;I++){var h=G.encoder_;D8a(b[I]);_.LA(h,Yb)}},ccX);
BjB=_.cg(function(G,b,I,h){if(G.nextWireType_!==5)return!1;_.c8(b,I,h,YuJ(G.decoder_));return!0},oIs,ccX);
_.UfX=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;_.kI(b,I,_.i3(G.decoder_,_.QnO));return!0},_.xI,_.H8);
_.aR=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;_.kI(b,I,_.i3(G.decoder_,un));return!0},_.xI,_.H8);
NC=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;G=_.i3(G.decoder_,un);_.kI(b,I,G===0?void 0:G);return!0},_.xI,_.H8);
s5B=_.cg(function(G,b,I,h){if(G.nextWireType_!==0)return!1;_.c8(b,I,h,_.i3(G.decoder_,un));return!0},_.xI,_.H8);
g3B=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;_.kI(b,I,_.i3(G.decoder_,_.KQ));return!0},dEa,een);
_.YY=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;_.kI(b,I,_.i3(G.decoder_,c52));return!0},dEa,een);
_.JJ=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;_.kI(b,I,_.P8(G.decoder_));return!0},rzj,j58);
AcX=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;G=_.P8(G.decoder_);_.kI(b,I,G===0?void 0:G);return!0},rzj,j58);
M8u=_.cg(function(G,b,I,h){if(G.nextWireType_!==0)return!1;_.c8(b,I,h,_.P8(G.decoder_));return!0},rzj,j58);
ZDW=_.cg(function(G,b,I){if(G.nextWireType_!==1)return!1;_.kI(b,I,Nzz(G.decoder_));return!0},_.HAO,_.DfO);
_.t8J=_.to2(function(G,b,I){if(G.nextWireType_!==1&&G.nextWireType_!==2)return!1;b=_.II(b,b[_.q8]|0,I);G.nextWireType_==2?_.Ebb(G,Nzz,b):b.push(Nzz(G.decoder_));return!0},function(G,b,I){b=_.ZAO(aeO,b,!1);
if(b!=null)for(var h=0;h<b.length;h++)Fhr(G,I,b[h])},_.DfO);
_.Kp=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;_.kI(b,I,J5A(G.decoder_));return!0},Wh2,hen);
_.u3=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;G=J5A(G.decoder_);_.kI(b,I,G===!1?void 0:G);return!0},Wh2,hen);
zen=_.cg(function(G,b,I,h){if(G.nextWireType_!==0)return!1;_.c8(b,I,h,J5A(G.decoder_));return!0},Wh2,hen);
_.RR=_.cg(function(G,b,I){if(G.nextWireType_!==2)return!1;_.kI(b,I,OQn(G));return!0},Ndp,q1B);
_.np=_.cg(function(G,b,I){if(G.nextWireType_!==2)return!1;G=OQn(G);_.kI(b,I,G===""?void 0:G);return!0},Ndp,q1B);
_.O5=_.cg(function(G,b,I,h){if(G.nextWireType_!==2)return!1;_.c8(b,I,h,OQn(G));return!0},Ndp,q1B);
o3A=_.to2(function(G,b,I){if(G.nextWireType_!==2)return!1;G=OQn(G);_.II(b,b[_.q8]|0,I).push(G);return!0},function(G,b,I){b=_.ZAO(_.Mf,b,!0);
if(b!=null)for(var h=0;h<b.length;h++){var q=G,l=I,V=b[h];V!=null&&aKv(q,l,cds(V))}},q1B);
iDO=void 0;iDO=iDO===void 0?wLv:iDO;_.wU=new ll(function(G,b,I,h,q){if(G.nextWireType_!==2)return!1;h=Jc(void 0,h,!0);_.II(b,b[_.q8]|0,I).push(h);rU(G,h,q);return!0},function(G,b,I,h,q){if(Array.isArray(b)){for(var l=0;l<b.length;l++)YvO(G,b[l],I,h,q);
G=b[_.q8]|0;G&1||eB(b,G|1)}},iDO);
_.E5=E3O(function(G,b,I,h,q,l){if(G.nextWireType_!==2)return!1;var V=b[_.q8]|0;HDO(b,V,l,I,HX(V));b=y5Q(b,h,I);rU(G,b,q);return!0},YvO);
_.pp=_.cg(function(G,b,I){if(G.nextWireType_!==2)return!1;_.kI(b,I,_.wXW(G));return!0},_.Clr,_.v35);
PFJ=_.cg(function(G,b,I,h){if(G.nextWireType_!==2)return!1;_.c8(b,I,h,_.wXW(G));return!0},_.Clr,_.v35);
_.SR=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;_.kI(b,I,_.P8(G.decoder_)>>>0);return!0},JzO,lYJ);
dfb=_.cg(function(G,b,I,h){if(G.nextWireType_!==0)return!1;_.c8(b,I,h,_.P8(G.decoder_)>>>0);return!0},JzO,lYJ);
_.Xc=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;_.kI(b,I,_.P8(G.decoder_));return!0},_.Kha,_.L9n);
_.$4=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;G=_.P8(G.decoder_);_.kI(b,I,G===0?void 0:G);return!0},_.Kha,_.L9n);
ycb=_.cg(function(G,b,I){if(G.nextWireType_!==0)return!1;_.kI(b,I,_.i3(G.decoder_,vbd));return!0},function(G,b,I){b=WOB(b);
if(b!=null&&(ReO(b),b!=null))switch(_.vg(G,I,0),typeof b){case "number":G=G.encoder_;I=b;b=I<0;I=Math.abs(I)*2;m8O(I);I=Yb;var h=CQ;b&&(I==0?h==0?h=I=4294967295:(h--,I=4294967295):I--);Yb=I;CQ=h;QM(G,Yb,CQ);break;case "bigint":G=G.encoder_;b=b<<BigInt(1)^b>>BigInt(63);Yb=Number(BigInt.asUintN(32,b));CQ=Number(BigInt.asUintN(32,b>>BigInt(32)));QM(G,Yb,CQ);break;default:$f5(G.encoder_,b)}},V8O);var HDJ=function(){var G=rcb,b=F9B;this.fieldIndex=175237375;this.ctor=b;this.isRepeated=0;this.getExtensionFn=_.fi;this.defaultValue=void 0;this.JSC$8949_hasMessageId=G.messageId!=null?FJ:void 0};
HDJ.prototype.register=function(){pW(this)};var W9X=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(W9X,_.eo);var aYn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(aYn,_.eo);var pgO=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(pgO,_.eo);var NjQ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(NjQ,_.eo);var Y1B=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Y1B,_.eo);var CFX=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(CFX,_.eo);var JcA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(JcA,_.eo);JcA.prototype.getData=function(){return _.Du(this,2)};var K9z=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(K9z,_.eo);var uWz=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(uWz,_.eo);uWz.prototype.getStyle=function(){return _.fi(this,W9X,1)};var ME=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(ME,_.eo);ME.prototype.getPayloadCase=function(){return _.kY(this,z7)};
ME.prototype.getStyle=function(){return _.Zu(this,uWz,6,z7)};
var ReJ=function(){var G=new ME,b=new Y1B;return _.tz(G,7,z7,b)},n3b=function(){var G=new ME,b=new CFX;
return _.tz(G,8,z7,b)},z7=[1,
2,3,4,5,6,7,8];var ODn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(ODn,_.eo);var wLB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(wLB,_.eo);var E3Q=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(E3Q,_.eo);var pLi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(pLi,_.eo);var S1W=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(S1W,_.eo);var XLO=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(XLO,_.eo);var $EQ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M($EQ,_.eo);var G7B=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(G7B,_.eo);G7B.prototype.getData=function(){return _.Du(this,2)};var bAn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(bAn,_.eo);var EIj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(EIj,_.eo);EIj.prototype.getPayloadCase=function(){return _.kY(this,Gw)};
var Gw=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var b0=function(G,b){G=Error.call(this,G);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=b===void 0?2:b};
_.M(b0,Error);var IKb=Promise;var hKz=function(G){this.channelPromise=G};
hKz.prototype.send=function(G,b,I){this.channelPromise.then(function(h){h.send(G,b,I)})};var qvn=function(G,b){this.data=G;this.channel=b};
qvn.prototype.reply=function(G,b,I){this.channel.send(G,b,I)};var jIi=function(G){this.JSC$9015_port_=G};
jIi.prototype.send=function(G,b,I){I=I===void 0?[]:I;var h=new MessageChannel;lKz(h.port1,b);this.JSC$9015_port_.postMessage(G,[h.port2].concat(I))};
var mEu=function(G,b){lKz(G,b);return new jIi(G)},lKz=function(G,b){b&&(G.onmessage=function(I){b(new qvn(I.data,mEu(I.ports[0])))})};var eKW=function(G){this.verifier_=G};
eKW.prototype.verify=function(G){return this.verifier_(G)};
var VoO=function(G){var b=Object.create(null);(typeof G==="string"?[G]:G).forEach(function(I){if(I==="null")throw Error("X");b[I]=!0});
return function(I){return b[I]===!0}};_.DEn=function(){if(!_.hd.addEventListener||!Object.defineProperty)return!1;var G=!1,b=Object.defineProperty({},"passive",{get:function(){G=!0}});
try{var I=function(){};
_.hd.addEventListener("test",I,b);_.hd.removeEventListener("test",I,b)}catch(h){}return G}();var czn;_.Ie=function(G){var b=G.destination;var I=G.iframe;var h=G.origin;var q=G.channelName===void 0?"ZNWN1d":G.channelName;var l=G.onMessage===void 0?void 0:G.onMessage;G=G.onEstablished===void 0?void 0:G.onEstablished;return czn({destination:b,getSource:function(){return I.contentWindow},
originVerifier:h instanceof eKW?h:typeof h==="function"?new eKW(h):new eKW(VoO(h)),channelName:q,onMessage:l,onEstablished:G})};
czn=function(G){var b=G.destination;var I=G.getSource;var h=G.originVerifier;var q=G.token===void 0?void 0:G.token;var l=G.channelName;var V=G.onMessage===void 0?void 0:G.onMessage;var D=G.onEstablished===void 0?void 0:G.onEstablished;return new hKz(new IKb(function(k,L){var x=function(f){f.source&&f.source===I()&&h.verify(f.origin)&&(f.data.n||f.data)===l&&(b.removeEventListener("message",x,!1),q&&f.data.t!==q?L(Error("Y`"+l+"`"+q+"`"+f.data.t)):(k(mEu(f.ports[0],V)),D&&D(f)))};
b.addEventListener("message",x,!1)}))};var k7z=function(G){try{G()}catch(b){qr(b)}};var LhQ=function(G){var b=this;var I=G.getMessageType;var h=G.onUnregisteredMessage===void 0?function(){}:G.onUnregisteredMessage;
var q=G.onBeforeRegisteredMessage===void 0?function(){}:G.onBeforeRegisteredMessage;
G=G.onAfterRegisteredMessage===void 0?function(){}:G.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=I;this.onUnregisteredMessage_=h;this.onBeforeRegisteredMessage_=q;this.onAfterRegisteredMessage_=G;this.onMessage=function(l){return vIA(b,l)}};
LhQ.prototype.register=function(G,b){this.registry_.set(G,b);return this};
var vIA=function(G,b){var I=G.getMessageType_(b.data),h=G.registry_.get(I);h?(k7z(function(){return G.onBeforeRegisteredMessage_(b,I)}),k7z(function(){return h(b)}),k7z(function(){return G.onAfterRegisteredMessage_(b,I)})):k7z(function(){return G.onUnregisteredMessage_(b,I)})};var QIO=function(G){this.JSC$9032_channel_=G},fK8,Tdi;
QIO.prototype.send=function(G,b,I){this.JSC$9032_channel_.send(Nf(G),b,I)};
_.xEu=function(G,b){return function(I){var h=new G(I.data);return b(new qvn(h,I.channel))}};
fK8=function(G){return function(b){return G(new qvn(b.data,new QIO(b.channel)))}};
Tdi=function(G,b){return fK8(_.xEu(G,b))};var BdQ=function(G,b,I,h){this.registry=G;this.delegate=b;this.receiveMessageConstructor=I;this.createInitMessage=h;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},wgB=function(G){var b=new LhQ({getMessageType:G.getPayloadCase});
return new BdQ(b,new QIO(_.Ie({iframe:G.child,destination:window,origin:G.origin,channelName:G.channelName,onMessage:Tdi(G.receiveMessageConstructor,b.onMessage)})),G.receiveMessageConstructor,G.createInitMessage)},UEu=function(G,b){G.createInitMessage=b};
BdQ.prototype.send=function(G){if(!this.initialised)throw new b0("Attempted to send a message before initialisation.");this.delegate.send(G)};
var sIW=function(G,b){return _.c(function(I){if(!G.initialised)throw new b0("Attempted to send a message before initialisation.");return I.return(new Promise(function(h){G.delegate.send(b,Tdi(G.receiveMessageConstructor,h))}))})};
BdQ.prototype.init=function(){var G=this;return _.c(function(b){if(G.initialised)throw new b0("Attempted to initialise twice. The SDK can only be initialised once.");if(G.createInitMessage!==void 0){var I=G.delegate,h=I.send,q=G.createInitMessage;var l=new aYn;var V=[].concat(_.Nz(G.features));l=_.G7(l,1,V,_.qf);h.call(I,q.call(G,l))}G.initialised=!0;_.ip(b)})};
var h8=function(G,b){if(G.initialised)throw new b0('Attempted to set up API "'+b+'" after initialisation. All APIs must be set up before initialising the SDK.');G.features.add(b);return G.registry};
_.kV.Object.defineProperties(BdQ.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var gIb=function(G){this.channel=G;this.registered=!1};
gIb.prototype.update=function(G){if(this.channel.isInitialised){if(!this.registered)throw new b0("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var b=new ME;var I=new NjQ;I=_.Tx(I,1,G);b=_.tz(b,2,z7,I);this.channel.send(b)}else this.register();this.JSC$9046_audioEnabled=G};
gIb.prototype.register=function(){h8(this.channel,1);this.registered=!0};
gIb.prototype.isAudioEnabled=function(){return this.JSC$9046_audioEnabled};var AzO=function(G){this.channel=G};
_.m=AzO.prototype;_.m.onFirstFrameReady=function(G){h8(this.channel,2).register(11,function(b){b=_.Zu(b.data,ODn,11,Gw);if(!b)throw new b0("Unexpectedly nonexistent GameFirstFrameReadyEvent");G(_.U5(b,1))})};
_.m.onReady=function(G){h8(this.channel,2).register(4,function(b){b=_.Zu(b.data,E3Q,4,Gw);if(!b)throw new b0("Unexpectedly nonexistent GameReadyEvent");G(_.U5(b,1))})};
_.m.onLevelComplete=function(G){h8(this.channel,2).register(5,function(b){b=_.Zu(b.data,pLi,5,Gw);if(!b)throw new b0("Unexpectedly nonexistent LevelCompleteEvent");G(_.U5(b,1),_.LT(b,2))})};
_.m.onGameOver=function(G){h8(this.channel,2).register(6,function(b){b=_.Zu(b.data,wLB,6,Gw);if(!b)throw new b0("Unexpectedly nonexistent GameOverEvent");G(_.U5(b,1))})};
_.m.pause=function(){var G=this;if(!this.channel.isInitialised)return h8(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new b0("Using unregistered Game Feature: pause.");var b=ReJ();return new Promise(function(I){return _.c(function(h){if(h.nextAddress==1)return h.yield(sIW(G.channel,b),2);I();_.ip(h)})})};
_.m.resume=function(){var G=this;if(!this.channel.isInitialised)return h8(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new b0("Using unregistered Game Feature: resume.");var b=n3b();return new Promise(function(I){return _.c(function(h){if(h.nextAddress==1)return h.yield(sIW(G.channel,b),2);I();_.ip(h)})})};var MoW=function(G){this.channel=G};
MoW.prototype.onReady=function(G){h8(this.channel,5).register(8,function(b){if(!_.Zu(b.data,S1W,8,Gw))throw new b0("Unexpectedly nonexistent PageReadyEvent");G()})};var ZAJ=function(G){this.channel=G};
ZAJ.prototype.onChange=function(G){h8(this.channel,3).register(7,function(b){b=_.Zu(b.data,XLO,7,Gw);if(!b)throw new b0("Unexpectedly nonexistent ScoreEvent");G(_.U5(b,1),_.LT(b,2))})};var toX={load:function(){throw new b0("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new b0("Storage used, but storage.onSave() listener not set!");}},zKA=function(G){this.channel=G;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},oIn=function(G){h8(G.channel,4).register(2,toX.load).register(3,toX.save);
G.initialSetupDone=!0};
zKA.prototype.onLoad=function(G){this.initialSetupDone||oIn(this);this.loadRegistered||(this.loadRegistered=!0,h8(this.channel,4).register(2,function(b){var I,h,q;return _.c(function(l){if(l.nextAddress==1){I=_.Zu(b.data,$EQ,2,Gw);if(!I)throw new b0("Unexpectedly nonexistent StorageLoad");h=_.U5(I,1);return l.yield(G(h),2)}q=l.yieldResult;var V=b.reply,D=new ME;var k=new JcA;k=_.F0(k,1,h);k=_.Bz(k,2,_.yi(q,!1));D=_.tz(D,3,z7,k);V.call(b,D);_.ip(l)})}))};
zKA.prototype.onSave=function(G){this.initialSetupDone||oIn(this);this.saveRegistered||(this.saveRegistered=!0,h8(this.channel,4).register(3,function(b){var I,h,q;return _.c(function(l){if(l.nextAddress==1){I=_.Zu(b.data,G7B,3,Gw);if(!I)throw new b0("Unexpectedly nonexistent StorageSave");h=_.U5(I,1);q=feA(I.getData());return l.yield(G(h,q),2)}var V=b.reply,D=new ME;var k=new K9z;k=_.F0(k,1,h);D=_.tz(D,4,z7,k);V.call(b,D);_.ip(l)})}))};var iAu=function(G){this.channel=G};
iAu.prototype.update=function(G){if(!this.channel.features.has(6))throw new b0("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var b=new ME,I=new uWz;G=_.ZK(I,1,G);b=_.tz(b,6,z7,G);this.channel.send(b)};
iAu.prototype.register=function(){h8(this.channel,6)};var PlA=function(G){this.channel=G;this.userActivityLoggingIntervalMs=0};
PlA.prototype.onUserActivity=function(G,b){this.userActivityLoggingIntervalMs=b;h8(this.channel,7).register(9,function(I){if(!_.Zu(I.data,bAn,9,Gw))throw new b0("Unexpectedly nonexistent ClickEvent");G()})};var dEb=function(G){var b=this;this.channel=G;this.init=this.channel.init.bind(this.channel);this.page=new MoW(this.channel);this.game=new AzO(this.channel);this.audio=new gIb(this.channel);this.score=new ZAJ(this.channel);this.storage=new zKA(this.channel);this.style=new iAu(this.channel);this.userActivity=new PlA(this.channel);UEu(this.channel,function(I){var h=new pgO;I=_.ZK(h,1,I);I=_.tJ(I,3,b.userActivity.userActivityLoggingIntervalMs);h=b.audio.isAudioEnabled();h!==void 0&&_.Tx(I,2,h);h=new ME;
return _.tz(h,5,z7,I)})};var yzA=function(){this.timedFunctionContext=0};
yzA.prototype.timeExecution=function(G,b){var I=this;return function(){var h=_.RI.apply(0,arguments);I.timedFunctionContext=G;return b.apply(null,_.Nz(h))}};var rzu=function(){var G={};this.priorityTasks=(G[3]=[],G[2]=[],G[1]=[],G);this.isFlushing=!1},t4=function(G,b,I){var h=Fh8(G,I);
G.priorityTasks[I].push(b);h&&G.priorityTasks[I].length===1&&G.flush()},Fh8=function(G,b){return Object.keys(G.priorityTasks).map(function(I){return Number(I)}).filter(function(I){return!isNaN(I)&&I>b}).every(function(I){return G.priorityTasks[I].length===0})};
rzu.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(G){return G.length>0});)HAQ(this,3),HAQ(this,2),HAQ(this,1)}catch(G){throw Object.values(this.priorityTasks).forEach(function(b){return void b.splice(0,b.length)}),G;
}finally{this.isFlushing=!1}}};
var HAQ=function(G,b){for(;Fh8(G,b)&&G.priorityTasks[b].length>0;)G.priorityTasks[b][0](),G.priorityTasks[b].shift()};
_.kV.Object.defineProperties(rzu.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(G){return G.length>0})}}});var hMr={};var WhX=globalThis.trustedTypes,XgO=WhX,Gfv;var il=function(G){this.privateDoNotAccessOrElseWrappedResourceUrl=G};
il.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var aKB,NdO,YvQ,Cle,Jzn,Khb,uaB,RKu;aKB=_.WP([""]);NdO=HP(["\x00"],["\\0"]);YvQ=HP(["\n"],["\\n"]);Cle=HP(["\x00"],["\\u0000"]);Jzn=_.WP([""]);Khb=HP(["\x00"],["\\0"]);uaB=HP(["\n"],["\\n"]);RKu=HP(["\x00"],["\\u0000"]);_.nIB=IJv(function(G){return G(aKB)})||IJv(function(G){return G(NdO)})||IJv(function(G){return G(YvQ)})||IJv(function(G){return G(Cle)});
_.OAi=_.rd(Jzn)&&_.rd(Khb)&&_.rd(uaB)&&_.rd(RKu);var CA;_.Fa=function(G,b){this.privateDoNotAccessOrElseWrappedUrl=b};
_.Fa.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.wgW=Hg("about:blank");CA=Hg("about:invalid#zClosurez");var qZO=function(G){this.isValid=G},EIu=new qZO(function(G){return/^[^:]*([/?#]|$)/.test(G)}),pgn=NE("data"),SvX=NE("http"),XgJ=NE("https"),$zb=NE("ftp"),GfB=NE("mailto"),bNB=NE("intent"),IJB=NE("vnd.youtube"),j$s=[pgn,
SvX,XgJ,GfB,$zb,EIu],mzq=oI(function(){return typeof URL==="function"}),hM8=["data:",
"http:","https:","mailto:","ftp:"],Vcr=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var wd=function(G){this.privateDoNotAccessOrElseWrappedHtml=G};
wd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var ejj=oI(function(){return new wd(WhX?WhX.emptyHTML:"")});var qZQ={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"},cjs=function(G,b){var I=Error.call(this,G+" cannot be used with intent "+qZQ[b]);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.type=G;this.intent=b;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.M(cjs,Error);_.hj=function(G){this.privateDoNotAccessOrElseWrappedScript=G};
_.hj.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var vT2=function(G){this.privateDoNotAccessOrElseWrappedAttributePrefix=G};
vT2.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var Lfs="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var cp=function(G){this.privateDoNotAccessOrElseWrappedStyleSheet=G};
cp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var Cks=function(G){var b=_.Ge("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:b,stack:"Not available"};var I=!1;try{var h=G.lineNumber||G.line||"Not available"}catch(V){h="Not available",I=!0}try{var q=G.fileName||G.filename||G.sourceURL||_.hd.$googDebugFname||b}catch(V){q="Not available",I=!0}b=j$n(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,qw[I])I=qw[I];else{I=String(I);if(!qw[I]){var l=/function\s+([^\(]+)/m.exec(I);qw[I]=l?l[1]:"[Anonymous]"}I=qw[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:h,fileName:q,stack:b||"Not available"}}return{message:G.message,
name:G.name,lineNumber:G.lineNumber,fileName:G.fileName,stack:b}},j$n=function(G,b){b||(b={});
b[lJb(G)]=!0;var I=G.stack||"",h=G.cause;h&&!b[lJb(h)]&&(I+="\nCaused by: ",h.stack&&h.stack.indexOf(h.toString())==0||(I+=typeof h==="string"?h:h.message+"\n"),I+=j$n(h,b));G=G.errors;if(Array.isArray(G)){h=1;var q;for(q=0;q<G.length&&!(h>4);q++)b[lJb(G[q])]||(I+="\nInner error "+h++ +": ",G[q].stack&&G[q].stack.indexOf(G[q].toString())==0||(I+=typeof G[q]==="string"?G[q]:G[q].message+"\n"),I+=j$n(G[q],b));q<G.length&&(I+="\n... "+(G.length-q)+" more inner errors")}return I},lJb=function(G){var b=
"";
typeof G.toString==="function"&&(b=""+G);return b+G.stack},qw={};var mzA,kW,Sh,Vce,Dze,eMz,$8,Pq,kfu;mzA=function(G,b){for(var I=G.split("%s"),h="",q=Array.prototype.slice.call(arguments,1);q.length&&I.length>1;)h+=I.shift()+q.shift();return h+I.join("%s")};
_.IN=function(G){return encodeURIComponent(String(G))};
kW=function(G){return decodeURIComponent(G.replace(/\+/g," "))};
Sh=function(G){rdz.test(G)&&(G.indexOf("&")!=-1&&(G=G.replace(zBQ,"&amp;")),G.indexOf("<")!=-1&&(G=G.replace(oaQ,"&lt;")),G.indexOf(">")!=-1&&(G=G.replace(iOe,"&gt;")),G.indexOf('"')!=-1&&(G=G.replace(PsW,"&quot;")),G.indexOf("'")!=-1&&(G=G.replace(drW,"&#39;")),G.indexOf("\x00")!=-1&&(G=G.replace(ydA,"&#0;")));return G};
Vce=function(G){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var I=_.hd.document.createElement("div");return G.replace(eMz,function(h,q){var l=b[h];if(l)return l;q.charAt(0)=="#"&&(q=Number("0"+q.slice(1)),isNaN(q)||(l=String.fromCharCode(q)));l||(_.ec(I,Ev(h+" ")),l=I.firstChild.nodeValue.slice(0,-1));return b[h]=l})};
Dze=function(G){return G.replace(/&([^;]+);/g,function(b,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))?b:String.fromCharCode(I)}})};
eMz=/&([^;\s<&]+);?/g;_.t0p=function(G){return String(G).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.cjn=String.prototype.repeat?function(G,b){return G.repeat(b)}:function(G,b){return Array(b+1).join(G)};
_.jE=function(G,b){if(!Number.isFinite(G))return String(G);G=String(G);var I=G.indexOf(".");I===-1&&(I=G.length);var h=G[0]==="-"?"-":"";h&&(G=G.substring(1));return h+(0,_.cjn)("0",Math.max(0,b-I))+G};
$8=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.nW()).toString(36)};
Pq=function(G){for(var b=0,I=0;I<G.length;++I)b=31*b+G.charCodeAt(I)>>>0;return b};
_.ju=function(G){return String(G).replace(/\-([a-z])/g,function(b,I){return I.toUpperCase()})};
_.qi=function(G){return String(G).replace(/([A-Z])/g,"-$1").toLowerCase()};
kfu=function(G){return G.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,I,h){return I+h.toUpperCase()})};var vTX=function(){this.names=new Map};
vTX.prototype.getName=function(G){var b=this.names.get(G);if(b)return b;var I;b=(I=G.description)!=null?I:$8();this.names.set(G,b);return b};var Lfn=function(G){var b=Error.call(this,G?G.length+" errors occurred during unsubscription:\n"+G.map(function(I,h){return h+1+") "+I.toString()}).join("\n  "):"");
this.message=b.message;"stack"in b&&(this.stack=b.stack);this.errors=G;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.M(Lfn,Error);var vp=function(G){this.initialTeardown=G;this.closed=!1;this._teardowns=this._parentage=null};
_.m=vp.prototype;
_.m.unsubscribe=function(){if(!this.closed){this.closed=!0;var G=this._parentage;if(Array.isArray(G))for(var b=_.e(G),I=b.next();!I.done;I=b.next())I.value.remove(this);else G==null||G.remove(this);b=this.initialTeardown;if(kT(b))try{b()}catch(l){var h=l instanceof Lfn?l.errors:[l]}var q=this._teardowns;if(q)for(this._teardowns=null,b=_.e(q),I=b.next();!I.done;I=b.next()){I=I.value;try{kT(I)?I():I.unsubscribe()}catch(l){I=void 0,h=(I=h)!=null?I:[],l instanceof Lfn?h=[].concat(_.Nz(h),_.Nz(l.errors)):
h.push(l)}}if(h)throw new Lfn(h);}};
_.m.add=function(G){if(G&&G!==this)if(this.closed)kT(G)?G():G.unsubscribe();else{if(G instanceof vp){if(G.closed||G._hasParent(this))return;G._addParent(this)}var b;(this._teardowns=(b=this._teardowns)!=null?b:[]).push(G)}};
_.m._hasParent=function(G){var b=this._parentage;return b===G||Array.isArray(b)&&b.includes(G)};
_.m._addParent=function(G){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(G),b):b?[b,G]:G};
_.m._removeParent=function(G){var b=this._parentage;b===G?this._parentage=null:Array.isArray(b)&&Bmu(b,G)};
_.m.remove=function(G){var b=this._teardowns;b&&Bmu(b,G);G instanceof vp&&G._removeParent(this)};
var Q$b=new vp;Q$b.closed=!0;vp.JSC$9142_EMPTY=Q$b;var s$a=function(){setTimeout.apply(null,_.Nz(_.RI.apply(0,arguments)))};var l0=function(G){vp.call(this);this.JSC$9147_isStopped=!1;this.destination=G instanceof l0?G:new me(!G||kT(G)?{next:G!=null?G:void 0}:G);Uzs(G)&&G.add(this)};
_.M(l0,vp);l0.JSC$9142_EMPTY=vp.JSC$9142_EMPTY;l0.create=function(G,b,I){return new eE(G,b,I)};
_.m=l0.prototype;_.m.next=function(G){this.JSC$9147_isStopped||this._next(G)};
_.m.error=function(G){this.JSC$9147_isStopped||(this.JSC$9147_isStopped=!0,this._error(G))};
_.m.complete=function(){this.JSC$9147_isStopped||(this.JSC$9147_isStopped=!0,this._complete())};
_.m.unsubscribe=function(){this.closed||(this.JSC$9147_isStopped=!0,vp.prototype.unsubscribe.call(this))};
_.m._next=function(G){this.destination.next(G)};
_.m._error=function(G){this.destination.error(G);this.unsubscribe()};
_.m._complete=function(){this.destination.complete();this.unsubscribe()};
var me=function(G){this.partialObserver=G};
me.prototype.next=function(G){var b=this.partialObserver;if(b.next)try{b.next(G)}catch(I){Qs(I)}};
me.prototype.error=function(G){var b=this.partialObserver;if(b.error)try{b.error(G)}catch(I){Qs(I)}else Qs(G)};
me.prototype.complete=function(){var G=this.partialObserver;if(G.complete)try{G.complete()}catch(b){Qs(b)}};
var eE=function(G,b,I){l0.call(this);var h;kT(G)||!G?h={next:G!=null?G:void 0,error:b!=null?b:void 0,complete:I!=null?I:void 0}:h=G;this.destination=new me(h)};
_.M(eE,l0);eE.JSC$9142_EMPTY=l0.JSC$9142_EMPTY;eE.create=l0.create;var Bp=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Tf=function(G){G&&(this._subscribe=G)};
_.m=Tf.prototype;_.m.lift=function(G){var b=new Tf;b.source=this;b.operator=G;return b};
_.m.subscribe=function(G,b,I){G=G&&G instanceof l0||G&&kT(G.next)&&kT(G.error)&&kT(G.complete)&&Uzs(G)?G:new eE(G,b,I);b=this.operator;I=this.source;G.add(b?b.call(G,I):I?this._subscribe(G):this._trySubscribe(G));return G};
_.m._trySubscribe=function(G){try{return this._subscribe(G)}catch(b){G.error(b)}};
_.m.forEach=function(G,b){var I=this;b=AjB(b);return new b(function(h,q){var l=I.subscribe(function(V){try{G(V)}catch(D){q(D),l==null||l.unsubscribe()}},q,h)})};
_.m._subscribe=function(G){var b;return(b=this.source)==null?void 0:b.subscribe(G)};
Tf.prototype[Bp]=function(){return this};
Tf.prototype.pipe=function(){var G=_.RI.apply(0,arguments);return G.length?gTO(G)(this):this};
Tf.create=function(G){return new Tf(G)};var xzz=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"};
_.M(xzz,Error);var A4=function(){this.observers=[];this.hasError=this.JSC$9163_isStopped=this.closed=!1;this.thrownError=null};
_.M(A4,Tf);_.m=A4.prototype;_.m.lift=function(G){var b=new VN(this,this);b.operator=G;return b};
_.m._throwIfClosed=function(){if(this.closed)throw new xzz;};
_.m.next=function(G){this._throwIfClosed();if(!this.JSC$9163_isStopped){var b=this.observers.slice();b=_.e(b);for(var I=b.next();!I.done;I=b.next())I.value.next(G)}};
_.m.error=function(G){this._throwIfClosed();if(!this.JSC$9163_isStopped){this.hasError=this.JSC$9163_isStopped=!0;this.thrownError=G;for(var b=this.observers;b.length;)b.shift().error(G)}};
_.m.complete=function(){this._throwIfClosed();if(!this.JSC$9163_isStopped){this.JSC$9163_isStopped=!0;for(var G=this.observers;G.length;)G.shift().complete()}};
_.m.unsubscribe=function(){this.JSC$9163_isStopped=this.closed=!0;this.observers=null};
_.m._trySubscribe=function(G){this._throwIfClosed();return Tf.prototype._trySubscribe.call(this,G)};
_.m._subscribe=function(G){this._throwIfClosed();this._checkFinalizedStatuses(G);return this._innerSubscribe(G)};
_.m._innerSubscribe=function(G){var b=this,I=this.JSC$9163_isStopped,h=this.observers;return this.hasError||I?vp.JSC$9142_EMPTY:(h.push(G),new vp(function(){return Bmu(b.observers,G)}))};
_.m._checkFinalizedStatuses=function(G){var b=this.thrownError,I=this.JSC$9163_isStopped;this.hasError?G.error(b):I&&G.complete()};
A4.create=function(G,b){return new VN(G,b)};
var VN=function(G,b){A4.call(this);this.destination=G;this.source=b};
_.M(VN,A4);VN.create=A4.create;VN.prototype.next=function(G){var b,I;(b=this.destination)==null||(I=b.next)==null||I.call(b,G)};
VN.prototype.error=function(G){var b,I;(b=this.destination)==null||(I=b.error)==null||I.call(b,G)};
VN.prototype.complete=function(){var G,b;(G=this.destination)==null||(b=G.complete)==null||b.call(G)};
VN.prototype._subscribe=function(G){var b,I;return(I=(b=this.source)==null?void 0:b.subscribe(G))!=null?I:vp.JSC$9142_EMPTY};var $u=function(G){A4.call(this);this._value=G};
_.M($u,A4);$u.create=A4.create;$u.prototype._subscribe=function(G){var b=A4.prototype._subscribe.call(this,G);!b.closed&&G.next(this._value);return b};
$u.prototype.getValue=function(){var G=this.thrownError,b=this._value;if(this.hasError)throw G;this._throwIfClosed();return b};
$u.prototype.next=function(G){A4.prototype.next.call(this,this._value=G)};
_.kV.Object.defineProperties($u.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var wm=new Tf(function(G){return G.complete()});var zMa=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var yju=function(G){return G&&typeof G.length==="number"&&typeof G!=="function"};var fJB={now:function(){return(fJB.delegate||Date).now()},
delegate:void 0};var eS=function(G,b,I){G=G===void 0?Infinity:G;b=b===void 0?Infinity:b;I=I===void 0?fJB:I;A4.call(this);this.bufferSize=G;this.windowTime=b;this.timestampProvider=I;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=b===Infinity;this.bufferSize=Math.max(1,G);this.windowTime=Math.max(1,b)};
_.M(eS,A4);eS.create=A4.create;eS.prototype.next=function(G){var b=this.buffer,I=this.infiniteTimeWindow,h=this.timestampProvider,q=this.windowTime;this.JSC$9163_isStopped||(b.push(G),!I&&b.push(h.now()+q));Tmz(this);A4.prototype.next.call(this,G)};
eS.prototype._subscribe=function(G){this._throwIfClosed();Tmz(this);for(var b=this._innerSubscribe(G),I=this.infiniteTimeWindow,h=this.buffer.slice(),q=0;q<h.length&&!G.closed;q+=I?1:2)G.next(h[q]);this._checkFinalizedStatuses(G);return b};
var Tmz=function(G){var b=G.bufferSize,I=G.timestampProvider,h=G.buffer;G=G.infiniteTimeWindow;var q=(G?1:2)*b;b<Infinity&&q<h.length&&h.splice(0,h.length-q);if(!G){b=I.now();I=0;for(G=1;G<h.length&&h[G]<=b;G+=2)I=G;I&&h.splice(0,I+1)}};var Uzn=function(G,b){b=b===void 0?Bmi:b;this.schedulerActionCtor=G;this.now=b};
Uzn.prototype.schedule=function(G,b,I){b=b===void 0?0:b;return(new this.schedulerActionCtor(this,G)).schedule(I,b)};
var Bmi=fJB.now;var MSB=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"};
_.M(MSB,Error);var Hp=function(G,b,I,h,q){l0.call(this,G);this.onUnsubscribe=q;b&&(this._next=function(l){try{b(l)}catch(V){this.destination.error(V)}});
I&&(this._error=function(l){try{I(l)}catch(V){this.destination.error(V)}this.unsubscribe()});
h&&(this._complete=function(){try{h()}catch(l){this.destination.error(l)}this.unsubscribe()})};
_.M(Hp,l0);Hp.JSC$9142_EMPTY=l0.JSC$9142_EMPTY;Hp.create=l0.create;Hp.prototype.unsubscribe=function(){var G;this.closed||(G=this.onUnsubscribe)!=null&&G.call(this);l0.prototype.unsubscribe.call(this)};var le=function(G,b){this.source=G;this.subjectFactory=b;this._subject=null;this._refCount=0;this._connection=null};
_.M(le,Tf);le.create=Tf.create;le.prototype._subscribe=function(G){return s$b(this).subscribe(G)};
var s$b=function(G){var b=G._subject;if(!b||b.JSC$9163_isStopped)G._subject=G.subjectFactory();return G._subject};
le.prototype._teardown=function(){this._refCount=0;var G=this._connection;this._subject=this._connection=null;G==null||G.unsubscribe()};
le.prototype.connect=function(){var G=this,b=this._connection;if(!b){b=this._connection=new vp;var I=s$b(this);b.add(this.source.subscribe(new Hp(I,void 0,function(h){G._teardown();I.error(h)},function(){G._teardown();
I.complete()},function(){return G._teardown()})));
b.closed&&(this._connection=null,b=vp.JSC$9142_EMPTY)}return b};var RMq=Array.isArray;var ONv=Array.isArray,gTn=Object,wpr=gTn.getPrototypeOf,ETu=gTn.prototype,ppp=gTn.keys;var up=function(G,b,I){l0.call(this,G);this._next=b;this.shouldComplete=I};
_.M(up,l0);up.JSC$9142_EMPTY=l0.JSC$9142_EMPTY;up.create=l0.create;up.prototype._complete=function(){this.shouldComplete()?l0.prototype._complete.call(this):this.unsubscribe()};var jkO=["addListener","removeListener"],qgj=["addEventListener","removeEventListener"],mbB=["on","off"];var DI=function(){vp.call(this)};
_.M(DI,vp);DI.JSC$9142_EMPTY=vp.JSC$9142_EMPTY;DI.prototype.schedule=function(){return this};var AjW=function(G,b){return setInterval.apply(null,[G,b].concat(_.Nz(_.RI.apply(2,arguments))))};var cm=function(G,b){vp.call(this);this.scheduler=G;this.work=b;this.pending=!1};
_.M(cm,DI);cm.JSC$9142_EMPTY=DI.JSC$9142_EMPTY;cm.prototype.schedule=function(G,b){b=b===void 0?0:b;if(this.closed)return this;this.state=G;G=this.id;var I=this.scheduler;G!=null&&(this.id=Mcn(this,G,b));this.pending=!0;this.delay=b;this.id=this.id||this.requestAsyncId(I,this.id,b);return this};
cm.prototype.requestAsyncId=function(G,b,I){I=I===void 0?0:I;return AjW(G.flush.bind(G,this),I)};
var Mcn=function(G,b,I){I=I===void 0?0:I;if(I!=null&&G.delay===I&&G.pending===!1)return b;clearInterval(b)};
cm.prototype.execute=function(G,b){if(this.closed)return Error("ha");this.pending=!1;if(G=this._execute(G,b))return G;this.pending===!1&&this.id!=null&&(this.id=Mcn(this,this.id,null))};
cm.prototype._execute=function(G){var b=!1;try{this.work(G)}catch(h){b=!0;var I=!!h&&h||Error(h)}if(b)return this.unsubscribe(),I};
cm.prototype.unsubscribe=function(){if(!this.closed){var G=this.id,b=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Bmu(b,this);G!=null&&(this.id=Mcn(this,G,null));this.delay=null;DI.prototype.unsubscribe.call(this)}};var ZNB=function(G,b){b=b===void 0?Bmi:b;Uzn.call(this,G,b);this.actions=[];this.active=!1;this.scheduled=void 0};
_.M(ZNB,Uzn);ZNB.prototype.flush=function(G){var b=this.actions;if(this.active)b.push(G);else{var I;this.active=!0;do if(I=G.execute(G.state,G.delay))break;while(G=b.shift());this.active=!1;if(I){for(;G=b.shift();)G.unsubscribe();throw I;}}};var ak=new Tf(LN);var eLO=Array.isArray;var k4=function(G,b){cm.call(this,G,b);this.scheduler=G;this.work=b};
_.M(k4,cm);k4.JSC$9142_EMPTY=cm.JSC$9142_EMPTY;k4.prototype.schedule=function(G,b){b=b===void 0?0:b;if(b>0)return cm.prototype.schedule.call(this,G,b);this.delay=b;this.state=G;this.scheduler.flush(this);return this};
k4.prototype.execute=function(G,b){return b>0||this.closed?cm.prototype.execute.call(this,G,b):this._execute(G,b)};
k4.prototype.requestAsyncId=function(G,b,I){I=I===void 0?0:I;return I!=null&&I>0||I==null&&this.delay>0?cm.prototype.requestAsyncId.call(this,G,b,I):G.flush(this)};var tc5=function(){ZNB.apply(this,arguments)};
_.M(tc5,ZNB);var KfB=new tc5(k4);var zMb=function(){this.performanceMonitor=new yzA;this.queue=new rzu;this.internalSymbol=Symbol();this.debugNames=new vTX};
zMb.prototype.getOnBackgrounded=function(){return ak};
_.kV.Object.defineProperties(zMb.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Lf=function(G,b){b=Error.call(this,b?G+": "+b:String(G));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=G;this.__proto__=Lf.prototype;this.name=String(G)};
_.M(Lf,Error);var Nb=function(G){Lf.call(this,1E3,'sfr:"'+G+'"');this.measurementStrategyFailureReason=G;this.__proto__=Nb.prototype};
_.M(Nb,Lf);var Yp=function(){Lf.call(this,1003);this.__proto__=Yp.prototype};
_.M(Yp,Lf);var QN=function(){Lf.call(this,1009);this.__proto__=QN.prototype};
_.M(QN,Lf);var oTi=function(){Lf.call(this,1011);this.__proto__=oTi.prototype};
_.M(oTi,Lf);var iNn=function(){Lf.call(this,1007);this.__proto__=Yp.prototype};
_.M(iNn,Lf);var Ha=function(G){Lf.call(this,1004,String(G));this.inputObservableIndex=G;this.__proto__=Ha.prototype};
_.M(Ha,Lf);var R8O=function(G){Lf.call(this,1010,G);this.__proto__=nur.prototype};
_.M(R8O,Lf);var nur=function(G){Lf.call(this,1005,G);this.__proto__=nur.prototype};
_.M(nur,Lf);var Ppe=function(G){var b=_.RI.apply(1,arguments),I=this;this.orderedFactories=[];this.orderedFactories.push(G);b.forEach(function(h){I.orderedFactories.push(h)})};
Ppe.prototype.isSupported=function(G){return this.orderedFactories.some(function(b){return b.isSupported(G)})};
Ppe.prototype.makeBeacon=function(G,b){for(var I=0;I<this.orderedFactories.length;I++)if(this.orderedFactories[I].isSupported(b))return this.orderedFactories[I].makeBeacon(G,b);throw new QN;};var rfs=Symbol("ia"),dz5=Symbol("ja"),XD=function(G,b){this.value=G;this.timeline=b},Sc=function(G,b){if(b.timeline!==G.timeline)throw new iNn;
return G.value-b.value};
_.m=XD.prototype;_.m.equals=function(G){return Sc(this,G)===0};
_.m.maximum=function(G){if(G.timeline!==this.timeline)throw new iNn;return this.value>=G.value?this:G};
_.m.round=function(){return new XD(Math.round(this.value),this.timeline)};
_.m.add=function(G){return new XD(this.value+G,this.timeline)};
_.m.toString=function(){return String(this.value)};var x4=function(G,b){this.context=G;this.JSC$9269_pinger=b};
x4.prototype.isSupported=function(G){return this.JSC$9269_pinger.isSupported(G)};
x4.prototype.makeBeacon=function(G,b){if(!this.isSupported(b))throw new QN;return new ff(this.context,this.JSC$9269_pinger,b!=null?b:void 0,G)};
var ff=function(G,b,I,h){var q=this;this.JSC$9275_pinger=b;this.properties=I;this.url=h;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var l;this.method=(l=I==null?void 0:I.beaconMethod)!=null?l:"GET";this.backgroundedSubscription=G.getOnBackgrounded().subscribe(function(){q.sendNow()})};
ff.prototype.deactivate=function(){this.internalIsPending=!1};
ff.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9275_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var G,b;this.JSC$9275_pinger.pingWithHeadersAndBody((G=this.properties)!=null?G:{},this.customHeaders,(b=this.body)!=null?b:"",this.url)}else this.JSC$9275_pinger.ping(this.url);this.internalIsPending=!1}catch(I){}else this.internalIsPending=!1};
ff.prototype.setHeader=function(G,b){this.customHeaders.set(G,b)};
_.kV.Object.defineProperties(ff.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var rji=function(){for(var G=_.e(_.RI.apply(0,arguments)),b=G.next();!b.done;b=G.next())if(b=b.value,b.available()){this.timeProvider=b;return}this.timeProvider=new yji};
_.m=rji.prototype;_.m.available=function(){return this.timeProvider.available()};
_.m.now=function(){return this.timeProvider.now()};
_.m.setTimeout=function(G,b){return this.timeProvider.setTimeout(G,b)};
_.m.clearTimeout=function(G){this.timeProvider.clearTimeout(G)};
_.m.interval=function(G,b){var I=this.intervalObservable(G).subscribe(b);return function(){return void I.unsubscribe()}};
_.m.intervalObservable=function(G){return this.timeProvider.intervalObservable(G)};
_.kV.Object.defineProperties(rji.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var yji=function(){this.timeline=Symbol()};
_.m=yji.prototype;_.m.available=function(){return!1};
_.m.now=function(){return new XD(0,this.timeline)};
_.m.setTimeout=function(){return 0};
_.m.clearTimeout=function(){};
_.m.interval=function(){return function(){}};
_.m.intervalObservable=function(){return ak};var Tw=function(G,b){this.intrinsicFunctionNamespace=G;this.performanceMonitor=b};
_.m=Tw.prototype;_.m.setTimeout=function(G,b){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,G),b)};
_.m.clearTimeout=function(G){this.intrinsicFunctionNamespace.clearTimeout(G)};
_.m.interval=function(G,b){var I=this.intervalObservable(G).subscribe(b);return function(){return void I.unsubscribe()}};
_.m.intervalObservable=function(G){var b=this;return new Tf(function(I){var h=0,q=b.intrinsicFunctionNamespace.setInterval(function(){I.next(h++)},G);
return function(){b.intrinsicFunctionNamespace.clearInterval(q)}})};
_.m.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Ffn=function(G,b){Tw.call(this,G,b);this.timeline=dz5};
_.M(Ffn,Tw);Ffn.prototype.now=function(){return new XD(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Ffn.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Tw.prototype.available.call(this)};var HNX=function(G,b){Tw.call(this,G,b);this.timeline=rfs};
_.M(HNX,Tw);HNX.prototype.now=function(){return new XD(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
HNX.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Tw.prototype.available.call(this)};var aJu=function(G){this.context=G;if(WfO===void 0)a:{var b,I,h=(b=G.global)==null?void 0:(I=b.document)==null?void 0:I.createElement("meta");if(h)try{h.httpEquiv="origin-trial";h.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";G.global.document.head.append(h);WfO=h;break a}catch(q){}WfO=void 0}},
WfO;
aJu.prototype.isSupported=function(G){return TVO(this.context)!==void 0&&!(G==null||!G.endOfSession)&&!Bm(this.context)&&!(G==null?0:G.attributionEnabled)&&!(G==null?0:G.customHeaders)&&!(G==null?0:G.customBody)};
aJu.prototype.makeBeacon=function(G,b){if(!this.isSupported(b))throw new QN;return new Up(this.context,G,b)};
var Up=function(G,b,I){this.context=G;this.properties=I;this.JSC$9302_urlWithoutToken=b;var h;this.beaconMethod=(h=I==null?void 0:I.beaconMethod)!=null?h:"GET";G=TVO(this.context);if(G===void 0)throw Error();this.fetchLater=G;NmQ(this,YZe(this))},NmQ=function(G,b){G.beaconResult&&G.beaconResult.activated||(G.beaconAbort=new AbortController,G.beaconResult=G.fetchLater(b,{method:G.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:G.beaconAbort.signal,activateAfter:96E4}))},YZe=function(G){G=G.JSC$9302_urlWithoutToken;
return(G.slice(-1)[0]==="&"?G:G+"&")+"flapi=1"};
Up.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Up.prototype.sendNow=function(){};
Up.prototype.setHeader=function(){};
_.kV.Object.defineProperties(Up.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9302_urlWithoutToken},
set:function(G){this.JSC$9302_urlWithoutToken=G;G=YZe(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);NmQ(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 CpW=function(G){this.context=G};
CpW.prototype.isSupported=function(){return!Bm(this.context)&&!!this.context.global.fetch};
CpW.prototype.ping=function(){var G=this;return EZ.apply(null,_.Nz(_.RI.apply(0,arguments).map(function(b){return sZ(G.context.global.fetch(b,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(a$(function(I){return I.status===200}))}))).pipe(Zyp(function(b){return b}),zL2())};
CpW.prototype.pingWithHeadersAndBody=function(G,b,I){for(var h=_.RI.apply(3,arguments),q=this,l=new Headers,V=_.e(b.entries()),D=V.next();!D.done;D=V.next()){var k=_.e(D.value);D=k.next().value;k=k.next().value;l.set(D,k)}var L,x=(L=G.keepAlive)!=null?L:!1;EZ.apply(null,_.Nz(h.map(function(f){return sZ(q.context.global.fetch(f,Object.assign({},{method:String(G.beaconMethod),cache:"no-cache"},x?{keepalive:!0}:{},{mode:"no-cors",headers:l,body:I}))).pipe(a$(function(T){return T.status===200}))}))).pipe(Zyp(function(f){return f}),
zL2())};var Jjb,WKj,KfW;_.sp=function(){};
_.H2=function(G){return G};
Jjb=function(G){var b=b||0;return function(){return G.apply(this,Array.prototype.slice.call(arguments,0,b))}};
_.gt=function(G){var b=!1,I;return function(){b||(I=G(),b=!0);return I}};
_.A8=function(G,b){var I=0;return function(h){_.hd.clearTimeout(I);var q=arguments;I=_.hd.setTimeout(function(){G.apply(void 0,q)},b)}};
WKj=function(G,b){var I=0,h=!1,q=[],l=function(){I=0;h&&(h=!1,V())},V=function(){I=_.hd.setTimeout(l,b);
var D=q;q=[];G.apply(void 0,D)};
return function(D){q=arguments;I?h=!0:V()}};
KfW=function(G,b){var I=0,h=function(){I=0};
return function(q){I||(I=_.hd.setTimeout(h,b),G.apply(void 0,arguments))}};var RMA=function(){return B2&&sj?sj.mobile:!uDn()&&(gX("iPod")||gX("iPhone")||gX("Android")||gX("IEMobile"))},uDn=function(){return B2&&sj?!sj.mobile&&(gX("iPad")||gX("Android")||gX("Silk")):gX("iPad")||gX("Android")&&!gX("Mobile")||gX("Silk")};var Mw=function(G,b,I,h,q){this.allowedElements=G;this.elementPolicies=b;this.allowedGlobalAttributes=I;this.globalAttributePolicies=h;this.globallyAllowedAttributePrefixes=q},nTu=function(G,b,I){I=G.elementPolicies.get(I);
return(I==null?0:I.has(b))?I.get(b):G.allowedGlobalAttributes.has(b)?{policyAction:1}:(I=G.globalAttributePolicies.get(b))?I:G.globallyAllowedAttributePrefixes&&[].concat(_.Nz(G.globallyAllowedAttributePrefixes)).some(function(h){return b.indexOf(h)===0})?{policyAction:1}:{policyAction:0}};var ONB="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(" "),
wpe=[["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}]])]],ETi="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(" "),
ppO=[["dir",{policyAction:3,conditions:oI(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:oI(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:oI(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:oI(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],SZu=new Mw(new Set(ONB),new Map(wpe),new Set(ETi),new Map(ppO)),XpJ=new Mw(new Set(ONB.concat(["BUTTON",
"INPUT"])),new Map(wpe),new Set(oI(function(){return ETi.concat(["class","id","name"])})),new Map(oI(function(){return ppO.concat([["style",
{policyAction:1}]])})));var $bX,GlQ,IzA;$bX=function(G,b,I,h,q){this.JSC$9359_sanitizerTable=G;this.styleElementSanitizer=b;this.styleAttributeSanitizer=I;this.JSC$9359_resourceUrlPolicy=h;this.JSC$9359_navigationUrlPolicy=q;this.changes=[]};
_.byX=function(G,b){var I=document.implementation.createHTMLDocument("");G=GlQ(G,b,I);I=I.body;I.appendChild(G);I=(new XMLSerializer).serializeToString(I);I=I.slice(I.indexOf(">")+1,I.lastIndexOf("</"));return Ev(I)};
GlQ=function(G,b,I){b=azO(b,I);b=document.createTreeWalker(b,5,function(D){if(D.nodeType===3)D=1;else if(Ygu(D))if(D=NVr(D),D===null)D=2;else{var k=G.JSC$9359_sanitizerTable;D=D!=="FORM"&&(k.allowedElements.has(D)||k.elementPolicies.has(D))?1:2}else D=2;return D});
for(var h=b.nextNode(),q=I.createDocumentFragment(),l=q;h!==null;){var V=void 0;if(h.nodeType===3)G.styleElementSanitizer&&l.nodeName==="STYLE"?(h=G.styleElementSanitizer(h.data),V=G.createTextNode(h)):V=G.createTextNode(h.data);else if(Ygu(h))V=IzA(G,h,I);else throw Error("Z");l.appendChild(V);if(h=b.firstChild())l=V;else for(;!(h=b.nextSibling())&&(h=b.parentNode());)l=l.parentNode}return q};
$bX.prototype.createTextNode=function(G){return document.createTextNode(G)};
IzA=function(G,b,I){var h,q=NVr(b);I=I.createElement(q);b=b.attributes;for(var l=_.e(b),V=l.next();!V.done;V=l.next()){var D=V.value;V=D.name;D=D.value;var k=nTu(G.JSC$9359_sanitizerTable,V,q);a:{if(h=k.conditions){h=_.e(h);for(var L=h.next();!L.done;L=h.next()){var x=_.e(L.value);L=x.next().value;x=x.next().value;var f=void 0;if((L=(f=b.getNamedItem(L))==null?void 0:f.value)&&!x.has(L)){h=!1;break a}}}h=!0}if(h)switch(k.policyAction){case 1:Tl(I,V,D);break;case 2:throw Error();case 3:Tl(I,V,D.toLowerCase());
break;case 4:G.styleAttributeSanitizer?(D=G.styleAttributeSanitizer(D),Tl(I,V,D)):Tl(I,V,D);break;case 5:G.JSC$9359_resourceUrlPolicy?(k={type:2,attributeName:V,elementName:q},D=Wnj(D),(D=G.JSC$9359_resourceUrlPolicy(D,k))&&Tl(I,V,D.toString())):Tl(I,V,D);break;case 6:if(G.JSC$9359_resourceUrlPolicy){k={type:2,attributeName:V,elementName:q};h=[];D=_.e(D.split(","));for(L=D.next();!L.done;L=D.next())x=_.e(L.value.trim().split(/\s+/,2)),L=x.next().value,x=x.next().value,h.push({url:L,descriptor:x});
D={parts:[]};h=_.e(h);for(L=h.next();!L.done;L=h.next())L=L.value,x=Wnj(L.url),(x=G.JSC$9359_resourceUrlPolicy(x,k))&&D.parts.push({url:x.toString(),descriptor:L.descriptor});Tl(I,V,Cev(D))}else Tl(I,V,D);break;case 7:k=D;if(G.JSC$9359_navigationUrlPolicy){k={type:2,attributeName:V,elementName:q};D=Wnj(D);D=G.JSC$9359_navigationUrlPolicy(D,k);if(D===null)break;k=D.toString()}D=k;k=_.eMX(D);k=k!==void 0&&hM8.indexOf(k.toLowerCase())!==-1?D:"about:invalid#zClosurez";Tl(I,V,k)}}return I};
_.hLX=oI(function(){return new $bX(SZu)});
_.qgu=oI(function(){return new $bX(XpJ)});var jkJ=function(){this.calledBuild=!1;this.JSC$9371_sanitizerTable=SZu},lzA=function(){jkJ.apply(this,arguments)};
_.M(lzA,jkJ);lzA.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new $bX(this.JSC$9371_sanitizerTable,void 0,void 0,this.JSC$9371_resourceUrlPolicy,this.JSC$9371_navigationUrlPolicy)};var mbW=/[^#]*/;var PeB={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"},eLJ=_.gt(function(){return y4a()}),
Dbi=function(){var G=VSJ("IFRAME"),b={};
_.hB(eLJ(),function(I){G.sandbox&&G.sandbox.supports&&G.sandbox.supports(I)&&(b[I]=!0)});
return b},VSJ=function(G,b){b=b===void 0?document:b;
return b.createElement(String(G).toLowerCase())};var ZI;_.Ak=function(G,b,I){return Math.min(Math.max(G,b),I)};
ZI=function(G,b,I){return G+I*(b-G)};_.ue=function(G,b){this.x=G!==void 0?G:0;this.y=b!==void 0?b:0};
_.m=_.ue.prototype;_.m.clone=function(){return new _.ue(this.x,this.y)};
_.m.equals=function(G){return G instanceof _.ue&&(this==G?!0:this&&G?this.x==G.x&&this.y==G.y:!1)};
_.m.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.m.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.m.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.m.translate=function(G,b){G instanceof _.ue?(this.x+=G.x,this.y+=G.y):(this.x+=Number(G),typeof b==="number"&&(this.y+=b));return this};
_.m.scale=function(G,b){this.x*=G;this.y*=typeof b==="number"?b:G;return this};_.Pa=function(G,b){this.width=G;this.height=b};
_.m=_.Pa.prototype;_.m.clone=function(){return new _.Pa(this.width,this.height)};
_.m.area=function(){return this.width*this.height};
_.m.aspectRatio=function(){return this.width/this.height};
_.m.isEmpty=function(){return!this.area()};
_.m.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.m.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.m.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.m.scale=function(G,b){this.width*=G;this.height*=typeof b==="number"?b:G;return this};var c4B;_.Cy={};c4B="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Cy.add=function(G,b,I){if(G!==null&&b in G)throw Error("na`"+b);G[b]=I};
_.Cy.clear=function(G){for(var b in G)delete G[b]};
_.Cy.clone=function(G){var b={},I;for(I in G)b[I]=G[I];return b};
_.Cy.contains=function(G,b){return npa(G,b)};
_.Cy.containsKey=function(G,b){return G!==null&&b in G};
_.Cy.containsValue=npa;_.Cy.create=EpB;_.Cy.createImmutableView=function(G){var b=G;Object.isFrozen&&!Object.isFrozen(G)&&(b=Object.create(G),Object.freeze(b));return b};
_.Cy.createSet=paB;_.Cy.equals=function(G,b){for(var I in G)if(!(I in b)||G[I]!==b[I])return!1;for(var h in b)if(!(h in G))return!1;return!0};
_.Cy.every=function(G,b,I){for(var h in G)if(!b.call(I,G[h],h,G))return!1;return!0};
_.Cy.extend=function(G,b){for(var I,h,q=1;q<arguments.length;q++){h=arguments[q];for(I in h)G[I]=h[I];for(var l=0;l<c4B.length;l++)I=c4B[l],Object.prototype.hasOwnProperty.call(h,I)&&(G[I]=h[I])}};
_.Cy.filter=function(G,b,I){var h={},q;for(q in G)b.call(I,G[q],q,G)&&(h[q]=G[q]);return h};
_.Cy.findKey=Oy2;_.Cy.findValue=function(G,b,I){return(b=Oy2(G,b,I))&&G[b]};
_.Cy.forEach=function(G,b,I){for(var h in G)b.call(I,G[h],h,G)};
_.Cy.get=function(G,b,I){return G!==null&&b in G?G[b]:I};
_.Cy.getAllPropertyNames=function(G,b,I){if(!G)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return RLO(G);for(var h={};G&&(G!==Object.prototype||b)&&(G!==Function.prototype||I);){for(var q=Object.getOwnPropertyNames(G),l=0;l<q.length;l++)h[q[l]]=!0;G=Object.getPrototypeOf(G)}return RLO(h)};
_.Cy.getAnyKey=function(G){for(var b in G)return b};
_.Cy.getAnyValue=function(G){for(var b in G)return G[b]};
_.Cy.getCount=function(G){var b=0,I;for(I in G)b++;return b};
_.Cy.getKeys=RLO;_.Cy.getSuperClass=function(G){return(G=Object.getPrototypeOf(G.prototype))&&G.constructor};
_.Cy.getValueByKeys=function(G,b){var I=_.KO(b),h=I?b:arguments;for(I=I?0:1;I<h.length;I++){if(G==null)return;G=G[h[I]]}return G};
_.Cy.getValues=function(G){var b=[],I=0,h;for(h in G)b[I++]=G[h];return b};
_.Cy.isEmpty=function(G){for(var b in G)return!1;return!0};
_.Cy.isImmutableView=function(G){return!!Object.isFrozen&&Object.isFrozen(G)};
_.Cy.map=function(G,b,I){var h={},q;for(q in G)h[q]=b.call(I,G[q],q,G);return h};
_.Cy.remove=function(G,b){var I;(I=b in G)&&delete G[b];return I};
_.Cy.set=function(G,b,I){G[b]=I};
_.Cy.setIfUndefined=function(G,b,I){return b in G?G[b]:G[b]=I};
_.Cy.setWithReturnValueIfNotSet=function(G,b,I){if(b in G)return G[b];I=I();return G[b]=I};
_.Cy.some=function(G,b,I){for(var h in G)if(b.call(I,G[h],h,G))return!0;return!1};
_.Cy.transpose=function(G){var b={},I;for(I in G)b[G[I]]=I;return b};
_.Cy.unsafeClone=wap;var OY=function(G,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=G===usp&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=klA};
OY.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var vpi=function(G){return G instanceof OY&&G.constructor===OY&&G.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===klA?G.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},klA={},usp={};
new OY(usp,"");var rV,Pr,zw,Ln8,fzn,xbi,Rk,BVB,sku,UbO,dt,gpu,iy8,opB,zLX,PeW,dbO,y4b,r4b,ecu,FnX,Wnu,azn,HyB,t8;rV=function(G){return G?new t8(_.ny(G)):gab||(gab=new t8)};
_.Rr=function(G,b){return typeof b==="string"?G.getElementById(b):b};
Pr=function(G,b){return(b||document).getElementsByTagName(String(G))};
_.QkA=function(G){return Ln8("yt-formatted-string","paper-input-input",G)};
zw=function(G,b,I,h){G=h||G;return(b=b&&b!="*"?String(b).toUpperCase():"")||I?G.querySelectorAll(b+(I?"."+I:"")):G.getElementsByTagName("*")};
Ln8=function(G,b,I){var h=document,q=G&&G!="*"?String(G).toUpperCase():"";return q||b?(I||h).querySelector(q+(b?"."+b:"")):zw(h,G,b,I)[0]||null};
fzn=function(G,b){_.Cy.forEach(b,function(I,h){h=="style"?G.style.cssText=I:h=="class"?G.className=I:h=="for"?G.htmlFor=I:xbi.hasOwnProperty(h)?G.setAttribute(xbi[h],I):_.jv(h,"aria-")||_.jv(h,"data-")?G.setAttribute(h,I):G[h]=I})};
xbi={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"};_.dV=function(G){G=(G||window).document;G=G.compatMode=="CSS1Compat"?G.documentElement:G.body;return new _.Pa(G.clientWidth,G.clientHeight)};
_.TVJ=function(G){var b=_.oe(G);G=G.defaultView;return new _.ue((G==null?void 0:G.pageXOffset)||b.scrollLeft,(G==null?void 0:G.pageYOffset)||b.scrollTop)};
_.oe=function(G){return G.scrollingElement?G.scrollingElement:_.$Y||G.compatMode!="CSS1Compat"?G.body||G.documentElement:G.documentElement};
Rk=function(G){return G?G.defaultView:window};
_.i0=function(G,b,I){return BVB(document,arguments)};
BVB=function(G,b){var I=b[1],h=UbO(G,String(b[0]));I&&(typeof I==="string"?h.className=I:Array.isArray(I)?h.className=I.join(" "):fzn(h,I));b.length>2&&sku(G,h,b,2);return h};
sku=function(G,b,I,h){function q(D){D&&b.appendChild(typeof D==="string"?G.createTextNode(D):D)}
for(;h<I.length;h++){var l=I[h];if(!_.KO(l)||_.Oj(l)&&l.nodeType>0)q(l);else{a:{if(l&&typeof l.length=="number"){if(_.Oj(l)){var V=typeof l.item=="function"||typeof l.item=="string";break a}if(typeof l==="function"){V=typeof l.item=="function";break a}}V=!1}_.hB(V?_.Jd(l):l,q)}}};
_.ol=function(G){return UbO(document,G)};
UbO=function(G,b){b=String(b);G.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return G.createElement(b)};
_.Pm=function(){return document.createTextNode("\n")};
dt=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};
gpu=function(G,b){sku(_.ny(G),G,arguments,1)};
_.yN=function(G){for(var b;b=G.firstChild;)G.removeChild(b)};
_.rt=function(G,b){b.parentNode&&b.parentNode.insertBefore(G,b)};
_.Fi=function(G,b){b.parentNode&&b.parentNode.insertBefore(G,b.nextSibling)};
_.iG=function(G){return G&&G.parentNode?G.parentNode.removeChild(G):null};
_.A4n=function(G,b){var I=b.parentNode;I&&I.replaceChild(G,b)};
_.MSW=function(G){var b,I=G.parentNode;if(I&&I.nodeType!=11)if(G.removeNode)G.removeNode(!1);else{for(;b=G.firstChild;)I.insertBefore(b,G);_.iG(G)}};
_.Hm=function(G){return G.children!=void 0?G.children:Array.prototype.filter.call(G.childNodes,function(b){return b.nodeType==1})};
_.tSb=function(G){return G.nextElementSibling!==void 0?G.nextElementSibling:_.ZyO(G.nextSibling,!0)};
_.ZyO=function(G,b){for(;G&&G.nodeType!=1;)G=b?G.nextSibling:G.previousSibling;return G};
_.mG=function(G){return _.Oj(G)&&G.nodeType==1};
_.Sa=function(G,b){if(!G||!b)return!1;if(G.contains&&b.nodeType==1)return G==b||G.contains(b);if(typeof G.compareDocumentPosition!="undefined")return G==b||!!(G.compareDocumentPosition(b)&16);for(;b&&G!=b;)b=b.parentNode;return b==G};
iy8=function(G,b){if(G==b)return 0;if(G.compareDocumentPosition)return G.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in G||G.parentNode&&"sourceIndex"in G.parentNode){var I=G.nodeType==1,h=b.nodeType==1;if(I&&h)return G.sourceIndex-b.sourceIndex;var q=G.parentNode,l=b.parentNode;return q==l?zLX(G,b):!I&&_.Sa(q,b)?-1*opB(G,b):!h&&_.Sa(l,G)?opB(b,G):(I?G.sourceIndex:q.sourceIndex)-(h?b.sourceIndex:l.sourceIndex)}h=_.ny(G);I=h.createRange();I.selectNode(G);I.collapse(!0);G=h.createRange();G.selectNode(b);
G.collapse(!0);return I.compareBoundaryPoints(_.hd.Range.START_TO_END,G)};
opB=function(G,b){var I=G.parentNode;if(I==b)return-1;for(;b.parentNode!=I;)b=b.parentNode;return zLX(b,G)};
zLX=function(G,b){for(;b=b.previousSibling;)if(b==G)return-1;return 1};
PeW=function(G){var b,I=arguments.length;if(!I)return null;if(I==1)return arguments[0];var h=[],q=Infinity;for(b=0;b<I;b++){for(var l=[],V=arguments[b];V;)l.unshift(V),V=V.parentNode;h.push(l);q=Math.min(q,l.length)}l=null;for(b=0;b<q;b++){V=h[0][b];for(var D=1;D<I;D++)if(V!=h[D][b])return l;l=V}return l};
_.ny=function(G){return G.nodeType==9?G:G.ownerDocument||G.document};
dbO=function(G){return G.contentDocument||G.contentWindow.document};
_.Wm=function(G,b){if("textContent"in G)G.textContent=b;else if(G.nodeType==3)G.data=String(b);else if(G.firstChild&&G.firstChild.nodeType==3){for(;G.lastChild!=G.firstChild;)G.removeChild(G.lastChild);G.firstChild.data=String(b)}else _.yN(G),G.appendChild(_.ny(G).createTextNode(String(b)))};
y4b={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};r4b={IMG:" ",BR:"\n"};ecu=function(G){var b;G.tagName=="A"&&G.hasAttribute("href")||G.tagName=="INPUT"||G.tagName=="TEXTAREA"||G.tagName=="SELECT"||G.tagName=="BUTTON"?b=!G.disabled&&(!G.hasAttribute("tabindex")||FnX(G)):b=G.hasAttribute("tabindex")&&FnX(G);return b};
FnX=function(G){G=G.tabIndex;return typeof G==="number"&&G>=0&&G<32768};
Wnu=function(G){var b=[];HyB(G,b,!0);G=b.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};
azn=function(G){var b=[];HyB(G,b,!1);return b.join("")};
HyB=function(G,b,I){if(!(G.nodeName in y4b))if(G.nodeType==3)I?b.push(String(G.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(G.nodeValue);else if(G.nodeName in r4b)b.push(r4b[G.nodeName]);else for(G=G.firstChild;G;)HyB(G,b,I),G=G.nextSibling};
_.NVe=function(G,b,I){if(!b&&!I)return null;var h=b?String(b).toUpperCase():null;return _.wV(G,function(q){return(!h||q.nodeName==h)&&(!I||typeof q.className==="string"&&_.Ya(q.className.split(/\s+/),I))},!0)};
_.wV=function(G,b,I){G&&!I&&(G=G.parentNode);for(I=0;G;){if(b(G))return G;G=G.parentNode;I++}return null};
t8=function(G){this.JSC$9399_document_=G||_.hd.document||document};
_.m=t8.prototype;_.m.getElement=function(G){return _.Rr(this.JSC$9399_document_,G)};
_.m.$=t8.prototype.getElement;_.m.getElementsByTagName=function(G,b){return(b||this.JSC$9399_document_).getElementsByTagName(String(G))};
_.m.getElementsByTagNameAndClass=function(G,b,I){return zw(this.JSC$9399_document_,G,b,I)};
_.m.$$=t8.prototype.getElementsByTagNameAndClass;_.m.setProperties=fzn;_.m.JSC$9401_createDom=function(G,b,I){return BVB(this.JSC$9399_document_,arguments)};
_.m.createElement=function(G){return UbO(this.JSC$9399_document_,G)};
_.m.createTextNode=function(G){return this.JSC$9399_document_.createTextNode(String(G))};
_.m.getWindow=function(){return this.JSC$9399_document_.defaultView};
var ya=function(G){return _.TVJ(G.JSC$9399_document_)};
_.m=t8.prototype;_.m.appendChild=function(G,b){G.appendChild(b)};
_.m.append=gpu;_.m.canHaveChildren=dt;_.m.removeNode=_.iG;_.m.getChildren=_.Hm;_.m.contains=_.Sa;_.m.isFocusable=ecu;_.m=gV.prototype;_.m.getWidth=function(){return this.right-this.left};
_.m.getHeight=function(){return this.bottom-this.top};
_.m.clone=function(){return new gV(this.top,this.right,this.bottom,this.left)};
_.m.contains=function(G){return this&&G?G instanceof gV?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};
_.m.expand=function(G,b,I,h){_.Oj(G)?(this.top-=G.top,this.right+=G.right,this.bottom+=G.bottom,this.left-=G.left):(this.top-=G,this.right+=Number(b),this.bottom+=Number(I),this.left-=Number(h));return this};
_.m.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};
_.m.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};
_.m.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};
_.m.translate=function(G,b){G instanceof _.ue?(this.left+=G.x,this.right+=G.x,this.top+=G.y,this.bottom+=G.y):(this.left+=G,this.right+=G,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this};
_.m.scale=function(G,b){b=typeof b==="number"?b:G;this.left*=G;this.right*=G;this.top*=b;this.bottom*=b;return this};var ae=function(G,b,I,h){this.left=G;this.top=b;this.width=I;this.height=h};
_.m=ae.prototype;_.m.clone=function(){return new ae(this.left,this.top,this.width,this.height)};
_.m.boundingRect=function(G){var b=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=b-this.left;this.height=I-this.top};
_.m.contains=function(G){return G instanceof _.ue?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};
_.m.distance=function(G){var b=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(b*b+G*G)};
_.m.getSize=function(){return new _.Pa(this.width,this.height)};
_.m.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};
_.m.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};
_.m.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};
_.m.translate=function(G,b){G instanceof _.ue?(this.left+=G.x,this.top+=G.y):(this.left+=G,typeof b==="number"&&(this.top+=b));return this};
_.m.scale=function(G,b){b=typeof b==="number"?b:G;this.left*=G;this.width*=G;this.top*=b;this.height*=b;return this};var CeB,Cf,sJO,Y4,RLQ,u0Q,npb,v4s,OyX,EpW;_.Nw=function(G,b,I){if(typeof b==="string")(b=_.Ygi(G,b))&&(G.style[b]=I);else for(var h in b){I=G;var q=b[h],l=_.Ygi(I,h);l&&(I.style[l]=q)}};
CeB={};_.Ygi=function(G,b){var I=CeB[b];if(!I){var h=_.ju(b);I=h;G.style[h]===void 0&&(h=(_.$Y?"Webkit":_.XE?"Moz":null)+kfu(h),G.style[h]!==void 0&&(I=h));CeB[b]=I}return I};
_.Xm=function(G,b){var I=_.ny(G);return I.defaultView&&I.defaultView.getComputedStyle&&(G=I.defaultView.getComputedStyle(G,null))?G[b]||G.getPropertyValue(b)||"":""};
_.pT=function(G,b){return _.Xm(G,b)||(G.currentStyle?G.currentStyle[b]:null)||G.style&&G.style[b]};
_.J4z=function(G){return _.pT(G,"position")};
Cf=function(G,b,I){if(b instanceof _.ue){var h=b.x;b=b.y}else h=b,b=I;G.style.left=Y4(h,!1);G.style.top=Y4(b,!1)};
sJO=function(G){try{return G.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
_.Og=function(G){var b=_.ny(G),I=new _.ue(0,0);if(G==(b?_.ny(b):document).documentElement)return I;G=sJO(G);b=ya(rV(b));I.x=G.left+b.x;I.y=G.top+b.y;return I};
_.KnQ=function(G,b,I){if(b instanceof _.Pa)I=b.height,b=b.width;else if(I==void 0)throw Error("oa");G.style.width=Y4(b,!0);G.style.height=Y4(I,!0)};
Y4=function(G,b){typeof G=="number"&&(G=(b?Math.round(G):G)+"px");return G};
RLQ=function(G){return u0Q(G)};
u0Q=function(G){var b=npb;if(_.pT(G,"display")!="none")return b(G);var I=G.style,h=I.display,q=I.visibility,l=I.position;I.visibility="hidden";I.position="absolute";I.display="inline";G=b(G);I.display=h;I.position=l;I.visibility=q;return G};
npb=function(G){var b=G.offsetWidth,I=G.offsetHeight,h=_.$Y&&!b&&!I;return(b===void 0||h)&&G.getBoundingClientRect?(G=sJO(G),new _.Pa(G.right-G.left,G.bottom-G.top)):new _.Pa(b,I)};
v4s=function(G){var b=_.Og(G);G=u0Q(G);return new ae(b.x,b.y,G.width,G.height)};
OyX=function(G,b){G=G.style;"opacity"in G?G.opacity=b:"MozOpacity"in G?G.MozOpacity=b:"filter"in G&&(G.filter=b===""?"":"alpha(opacity="+Number(b)*100+")")};
_.hf=function(G,b){G.style.display=b?"":"none"};
_.waO=function(G){return"rtl"==_.pT(G,"direction")};
EpW=function(G){var b=_.Xm(G,"marginLeft"),I=_.Xm(G,"marginRight"),h=_.Xm(G,"marginTop");G=_.Xm(G,"marginBottom");return new gV(parseFloat(h),parseFloat(I),parseFloat(G),parseFloat(b))};
_.paW=function(G){var b=_.Xm(G,"borderLeftWidth"),I=_.Xm(G,"borderRightWidth"),h=_.Xm(G,"borderTopWidth");G=_.Xm(G,"borderBottomWidth");return new gV(parseFloat(h),parseFloat(I),parseFloat(G),parseFloat(b))};var J8=function(G){this.context=G};
J8.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:!Bm(this.context)};
J8.prototype.ping=function(){var G=this;return dm(_.RI.apply(0,arguments).map(function(b){try{var I=G.context.global,h=!1;h=h===void 0?!1:h;I.google_image_requests||(I.google_image_requests=[]);var q=VSJ("IMG",I.document);h&&(q.attributionSrc="");q.src=b;I.google_image_requests.push(q);return!0}catch(l){return!1}}).every(function(b){return b}))};
J8.prototype.pingWithHeadersAndBody=function(G,b,I){this.ping.apply(this,_.Nz(_.RI.apply(3,arguments)))};var Sgb=function(G){this.context=G};
Sgb.prototype.isSupported=function(G){return XaO&&!Bm(this.context)&&Sga(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)};
Sgb.prototype.makeBeacon=function(G,b){if(!this.isSupported(b))throw new QN;return new Kf(this.context,G)};
var XaO=!1,Kf=function(G,b){this.context=G;this.JSC$9420_urlWithoutToken=b;G=Sga(this.context);if(G===void 0)throw Error();this.wrappedBeacon=new G($25(this),{})},$25=function(G){G=G.JSC$9420_urlWithoutToken;
return(G.slice(-1)[0]==="&"?G:G+"&")+"pbapi=1"};
Kf.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Kf.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Kf.prototype.setHeader=function(){};
_.kV.Object.defineProperties(Kf.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9420_urlWithoutToken},
set:function(G){this.JSC$9420_urlWithoutToken=G;this.wrappedBeacon.setURL($25(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(G){if(G!=="GET")throw new QN;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var GxQ=function(G){this.context=G};
GxQ.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 b;return!Bm(this.context)&&((b=this.context.global.navigator)==null?void 0:b.sendBeacon)!==void 0};
GxQ.prototype.ping=function(){var G=this;return dm(_.RI.apply(0,arguments).map(function(b){var I;return(I=G.context.global.navigator)==null?void 0:I.sendBeacon(b)}).every(function(b){return b}))};
GxQ.prototype.pingWithHeadersAndBody=function(G,b,I){this.ping.apply(this,_.Nz(_.RI.apply(3,arguments)))};var zl=function(G){this.value=G},ja=function(G,b){return dm(G.value).pipe(Zz(b))},mF=new zl(!1),rCp=new zl(!0);var Eg=function(G){this.value=G;this.releasedSubject=new A4};
Eg.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.kV.Object.defineProperties(Eg.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9433_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var D22=["FRAME","IMG","IFRAME"],q8O=/^[01](px)?$/,Vas=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},e8j=function(){var G=new Vas;
G.crossDomainLoadedDefault=!0;G.pendingImagesBlockLoad=!0;return G};var bTu=function(G,b){var I=fCj(G);if(I)if(I.onCreativeLoad)I.onCreativeLoad(b);else{var h=b?[b]:[],q=function(l){for(var V=0;V<h.length;++V)try{h[V](1,l)}catch(D){}h={push:function(D){D(1,l)}}};
I.onCreativeLoad=function(l){h.push(l)};
I.setAttribute("data-creative-load-listener","");I.addEventListener("creativeLoad",function(l){q(l.detail)});
_.hd.addEventListener("message",function(l){x2j(I,q,l)})}};var u0=function(G,b){var I=this;this.global=G;this.parentContext=b;this.JSC$9444_onVisibilityChange=this.document?EZ(dm(!0),OZ(this.document,"visibilitychange")).pipe($p(this.parentContext.performanceMonitor,748),a$(function(){return I.getVisibilityState()}),qb()):dm("visible");
this.document?OZ(this.document,"DOMContentLoaded").pipe($p(this.parentContext.performanceMonitor,739),h4(1)):dm(ICO("DOMContentLoaded"))},yCO=function(G){return G.document!==null&&G.document.visibilityState!==void 0};
u0.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
u0.prototype.querySelector=function(G){return this.document?this.document.querySelector(G):null};
u0.prototype.querySelectorAll=function(G){return this.document?_.Jd(this.document.querySelectorAll(G)):[]};
u0.prototype.elementFromPoint=function(G,b){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;G=this.document.elementFromPoint(G,b);return G===null?null:new Eg(G)};
var sjp=function(G,b,I){I=I===void 0?!1:I;if(b.ref===void 0||!G.document)return dm(b).pipe($p(G.parentContext.performanceMonitor,749));var h=new eS(1),q=function(){h.next(b)};
I||bTu(b.ref,q);c2v(b.ref,q);return h.pipe($p(G.parentContext.performanceMonitor,749),h4(1))};
_.kV.Object.defineProperties(u0.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return r4a(this.global,"document")?this.global.document||null:null}}});var Tkj=_.WP(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Bkj=_.WP(["./reach_worklet.js"]),U2r=_.WP(["./reach_worklet.js"]),ICJ=_.WP(["./reach_worklet.html"]),h8W=_.WP(["./reach_worklet.js"]),q8n=_.WP(["./reach_worklet.js"]);_.Ba(ICJ);_.Ba(h8W);_.Ba(q8n);var Gx={left:0,top:0,width:0,height:0};var jlQ,lCB,m28,e8u,DU,D2X,c2B,kxJ,wSv,ELO,Qlu,x2u;jlQ=function(G,b,I,h,q,l,V){var D="";G&&(D+=G+":");I&&(D+="//",b&&(D+=b+"@"),D+=I,h&&(D+=":"+h));q&&(D+=q);l&&(D+="?"+l);V&&(D+="#"+V);return D};
lCB=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.eO=function(G){return G.match(lCB)};
_.xx=function(G,b){return G?b?decodeURI(G):decodeURIComponent(G):G};
m28=function(G){G=_.eO(G)[1]||null;!G&&_.hd.self&&_.hd.self.location&&(G=_.hd.self.location.protocol.slice(0,-1));return G?G.toLowerCase():""};
_.VE=function(G){return _.xx(_.eO(G)[3]||null,!0)};
_.tB=function(G){return _.xx(_.eO(G)[5]||null,!0)};
_.Qhj=function(G){var b=G.indexOf("#");return b<0?null:G.slice(b+1)};
e8u=function(G){G=_.eO(G);return jlQ(G[1],G[2],G[3],G[4])};
_.Van=function(G){G=_.eO(G);return jlQ(G[1],null,G[3],G[4])};
_.dL=function(G){G=_.eO(G);return jlQ(null,null,null,null,G[5],G[6],G[7])};
_.Yc=function(G){var b=G.indexOf("#");return b<0?G:G.slice(0,b)};
DU=function(G,b){G=_.eO(G);b=_.eO(b);return G[3]==b[3]&&G[1]==b[1]&&G[4]==b[4]};
D2X=function(G,b){if(G){G=G.split("&");for(var I=0;I<G.length;I++){var h=G[I].indexOf("="),q=null;if(h>=0){var l=G[I].substring(0,h);q=G[I].substring(h+1)}else l=G[I];b(l,q?kW(q):"")}}};
c2B=function(G){var b=G.indexOf("#");b<0&&(b=G.length);var I=G.indexOf("?");if(I<0||I>b){I=b;var h=""}else h=G.substring(I+1,b);return[G.slice(0,I),h,G.slice(b)]};
kxJ=function(G,b){return b?G?G+"&"+b:b:G};
_.vuW=function(G,b){if(!b)return G;G=c2B(G);G[1]=kxJ(G[1],b);return G[0]+(G[1]?"?"+G[1]:"")+G[2]};
_.LF8=function(G,b,I){if(Array.isArray(b))for(var h=0;h<b.length;h++)_.LF8(G,String(b[h]),I);else b!=null&&I.push(G+(b===""?"":"="+_.IN(b)))};
_.oN=function(G){var b=[],I;for(I in G)_.LF8(I,G[I],b);return b.join("&")};
_.mE=function(G,b){b=_.oN(b);return _.vuW(G,b)};
_.Re=function(G,b,I){I=I!=null?"="+_.IN(I):"";return _.vuW(G,b+I)};
wSv=function(G,b,I,h){for(var q=I.length;(b=G.indexOf(I,b))>=0&&b<h;){var l=G.charCodeAt(b-1);if(l==38||l==63)if(l=G.charCodeAt(b+q),!l||l==61||l==38||l==35)return b;b+=q+1}return-1};
ELO=/#|$/;_.XN=function(G,b){var I=G.search(ELO),h=wSv(G,0,b,I);if(h<0)return null;var q=G.indexOf("&",h);if(q<0||q>I)q=I;h+=b.length+1;return kW(G.slice(h,q!==-1?q:0))};
Qlu=/[?&]($|#)/;_.J_=function(G,b){for(var I=G.search(ELO),h=0,q,l=[];(q=wSv(G,h,b,I))>=0;)l.push(G.substring(h,q)),h=Math.min(G.indexOf("&",q)+1||I,I);l.push(G.slice(h));return l.join("").replace(Qlu,"$1")};
_.EY=function(G,b,I){return _.Re(_.J_(G,b),b,I)};
x2u=function(G){var b=c2B(window.location.href),I=b[1],h=[];I&&I.split("&").forEach(function(q){var l=q.indexOf("=");l=l>=0?q.slice(0,l):q;G.hasOwnProperty(l)||h.push(q)});
b[1]=kxJ(h.join("&"),_.oN(G));return b[0]+(b[1]?"?"+b[1]:"")+b[2]};var CGq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(CGq,_.eo);var Y8a=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Y8a,_.eo);var r2s=function(G,b){return _.F0(G,2,b)},Nkp=function(G,b){return _.F0(G,3,b)};
Y8a.prototype.getModel=function(){return _.U5(this,4)};
var HT2=function(G,b){return _.F0(G,4,b)},y2q=function(G,b){return _.F0(G,5,b)},aCu=function(G,b){return _.F0(G,9,b)},d2O=function(G,b){return Lp(G,10,b)},PGs=function(G,b){return _.Tx(G,11,b)},FFr=function(G,b){return _.F0(G,1,b)},WFp=function(G,b){return _.Tx(G,7,b)};var oua="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var lG=function(G,b,I,h){G=G===void 0?window:G;b=b===void 0?null:b;I=I===void 0?new yzA:I;h=h===void 0?sla():h;zMb.call(this);var q=this;this.global=G;this.debugChannel=b;this.performanceMonitor=I;this.onPageHide=hL2(function(){return OZ(q.global,"pagehide")}).pipe($p(this.performanceMonitor,941));
this.onLoad=hL2(function(){return OZ(q.global,"load")}).pipe($p(this.performanceMonitor,738),h4(1));
this.onResize=hL2(function(){return OZ(q.global,"resize")}).pipe($p(this.performanceMonitor,741));
this.onMessage=hL2(function(){return OZ(q.global,"message")}).pipe($p(this.performanceMonitor,740));
this.document=new u0(this.global,this);this.timeProvider=new rji(new HNX(this.intrinsicFunctionNamespace,this.performanceMonitor),new Ffn(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Ppe(new aJu(this),new Sgb(this),new x4(this,new CpW(this)),new x4(this,new GxQ(this)),new x4(this,new J8(this)))};
_.M(lG,zMb);lG.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(G){return G}};
var Bm=function(G){var b=G.global;return!!G.global.HTMLFencedFrameElement&&!!b.fence&&typeof b.fence.reportEvent==="function"};
_.m=lG.prototype;_.m.reportFencedFrameEvent=function(G){Bm(this)&&this.global.fence.reportEvent(G)};
_.m.getOnBackgrounded=function(){return this.onPageHide.pipe($p(this.performanceMonitor,942),Zz(this.queue),a$(function(){}))};
_.m.postMessage=function(G,b,I){I=I===void 0?[]:I;this.global.postMessage(G,b,I)};
_.m.getWidth=function(){return Fn2(this.global)?this.global.width:0};
_.m.getHeight=function(){return Fn2(this.global)?this.global.height:0};
_.m.isMobile=function(){return uDn()||RMA()};
var SS=function(G,b){try{var I=ZTv(b,G.global,G.isMobile());return{left:I.left,top:I.top,width:I.getWidth(),height:I.getHeight()}}catch(h){return Gx}};
lG.prototype.validate=function(){var G=this.beaconFactory.isSupported()||Bm(this);return this.global&&this.timeProvider.available()&&G};
var $2d=function(G){return(G=KFX(G.global))?sZ(G):null};
_.kV.Object.defineProperties(lG.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!Fn2(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}}});_.fCu=!_.Sf&&!_.frO();var F7r=function(G){return G};var W7v=function(G){return G.pipe(pN(function(b){var I=b.endOfSessionReason;var h;return((h=b.viewable)==null?void 0:h.extrapolateToNow().value)||I!=void 0}),h4(1),be())};var prv=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},S8r=function(G){var b=G.sequenceNumber.toString(10).padStart(2,"0");
b=""+G.startTime+b;G.sequenceNumber<99&&G.sequenceNumber++;return b};var dcO=fN(Qa(function(G){return G.endOfSessionReason===void 0}),a$(function(G){return Object.assign({},G,{timestamps:Wa(G)})}),pN(function(G){var b=G.viewable;
G=G.timestamps;var I;return(I=b==null?void 0:b.extrapolateUsingTimestampMap(G).value)!=null?I:!1}),a$(function(G){var b=G.beaconFactory;
var I=G.timestampedExposureHistory;var h=G.timeOnScreen;var q=G.binaryContext;G=G.timestamps;if(b===void 0||I===void 0||h===void 0||q===void 0)return!1;if(h.extrapolateUsingTimestampMap(G).value.every(function(l){return l>=0}))return!0;
I=I.map(function(l){return l.timestamp+":"+l.value}).join(",");
h=XrO({bin:q,tos:h},G);b.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+h+("&eh="+I)).sendNow();return!0}),Qa(function(G){return!G}),be());var Gtr=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 H3O=function(G){var b=[];return G.pipe(a$(function(I){var h=I.beaconFactory,q=I.fetchBeaconFactory,l=I.timeOnScreen,V=I.timeOnScreenUrlPrefixes,D=I.payloadMapper,k=I.timeOnScreenPingId,L=I.timeOnScreenReason,x=I.urlSerializer,f=I.viewable,T=I.hasImpressionFired,B=I.inStatefulBeaconExperiment,A=I.supportsPendingBeacon,t=I.supportsFetchLater,y=I.turtlexReportEventData;if(!I.geometryMeasurable||!T||I.maxTimeOnScreen===void 0||l===void 0||V===void 0||D===void 0||k===void 0||x===void 0||h===void 0)return!1;
if(I.isTurtlex){if(L===void 0)return!1;V=I.reportFencedFrameEvent;if(!V)return!1;V({eventType:"active-view-time-on-screen",eventData:y!=null?y:"",destination:["buyer"]});return!0}if(!(B||t||L))return!1;y=Wa(I);var F;f=(F=f==null?void 0:f.extrapolateUsingTimestampMap(y).value)!=null?F:!1;F=x(Object.assign({},I,{pingId:k,viewState:f?4:3,reasonCode:L!=null?L:"u",payloadMapper:D,urlPrefixes:V}),y);if(B){for(;b.length>V.length;)I=void 0,(I=b.shift())==null||I.deactivate();F.forEach(function(O,K){K>=b.length?
b.push(h.makeBeacon(O)):b[K].url=O});
return A&&q&&L!==void 0?(F.forEach(function(O){q.makeBeacon(O).sendNow()}),!0):L!==void 0}if(A&&q&&L!==void 0)return F.forEach(function(O){q.makeBeacon(O).sendNow()}),!0;
if(t&&q){for(;b.length>V.length;)A=void 0,(A=b.shift())==null||A.deactivate();var W=x(Object.assign({},I,{pingId:k,viewState:f?4:3,reasonCode:L!=null?L:"u",payloadMapper:D,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),y)[0];F.forEach(function(O,K){K>=b.length?b.push(h.makeBeacon(W,{endOfSession:!0})):b[K].url=W});
return L!==void 0?(F.forEach(function(O){q.makeBeacon(O).sendNow()}),!0):L!==void 0}return L!==void 0?(F.forEach(function(O){h.makeBeacon(O).sendNow()}),!0):!1}),Qa(function(I){return!I}),be())};var aps=fN(pN(function(G){return G.immediateUrlPrefixes!==void 0&&G.payloadMapper!==void 0&&G.urlSerializer!==void 0&&G.inferredPingId!==void 0&&G.beaconFactory!==void 0}),pN(function(G){return eCv(G)!==null}),lZd(function(G){return G.activeViewUnmeasurableEvent},function(G){return G.emit}),a$(function(G){if(G.isTurtlex){var b=G.reportFencedFrameEvent;
if(b){var I;b({eventType:"active-view-unmeasurable",eventData:(I=G.turtlexReportEventData)!=null?I:"",destination:["buyer"]})}}else{I=void 0;var h=eCv(G);if(h==="x"){var q,l=(q=G.geometricMeasurementErrors)!=null?q:G.contextValidationErrors;l&&(b=l.stack,I=l.message)}G.urlSerializer(Object.assign({},G,{urlPrefixes:G.immediateUrlPrefixes,payloadMapper:G.payloadMapper,pingId:G.inferredPingId,viewState:2,reasonCode:h,errorMessage:I,errorStack:b}),Wa(G)).forEach(function(V){G.beaconFactory.makeBeacon(V).sendNow()})}}),
h4(1),be());var VTO=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var PMu=fN(pN(function(G){return G.payloadMapper!==void 0&&G.immediateUrlPrefixes!==void 0&&G.urlSerializer!==void 0&&G.inferredPingId!==void 0&&G.beaconFactory!==void 0}),a$(function(G){return Object.assign({},G,{timestamps:Wa(G)})}),pN(function(G){var b=G.viewable;
var I=G.hasImpressionFired;G=G.timestamps;var h;return!!I&&((h=b==null?void 0:b.extrapolateUsingTimestampMap(G).value)!=null?h:!1)}),lZd(function(G){return G.activeViewViewableEvent},function(G){return G.emit}),a$(function(G){var b=G.beaconFactory,I=G.turtlexReportEventData;
if(G.isTurtlex){var h=G.reportFencedFrameEvent;if(!h)return!1;h({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);(h=G.cpmavUrls)&&h.length>0&&G.viewUrlSerializer&&G.viewUrlSerializer(h,G).forEach(function(q){b.makeBeacon(q).sendNow()});
(h=G.viewableRelayUrls)&&h.length>0&&G.viewUrlSerializer&&G.viewUrlSerializer(h,G).forEach(function(q){b.makeBeacon(q).sendNow()});
I.forEach(function(q){b.makeBeacon(q,{attributionEnabled:G.isViewableAttributionEnabled}).sendNow()});
return!0}),Qa(function(G){return!G}),be());var GFO=a$(function(G){return[G.value.topWindowViewportExternalGeometry.width,G.value.topWindowViewportExternalGeometry.height]});var X0=function(G,b){this.callback=G;this.options=b;this.intersectionObserverV2=this.intersectionObserverV1=null},H0d=function(G,b){b?G.intersectionObserverV2||(b=Object.assign({},G.options,{delay:100,
trackVisibility:!0}),G.intersectionObserverV2=new IntersectionObserver(G.callback,b)):G.intersectionObserverV1||(G.intersectionObserverV1=new IntersectionObserver(G.callback,G.options))},Tku=function(G,b){G=b?G.intersectionObserverV2:G.intersectionObserverV1;
if(!G)throw new oTi;return G};
X0.prototype.observe=function(G,b){Tku(this,G).observe(b)};
X0.prototype.unobserve=function(G,b){Tku(this,G).unobserve(b)};
X0.prototype.disconnect=function(G){Tku(this,G).disconnect()};
X0.prototype.takeRecords=function(G){return Tku(this,G).takeRecords()};var Afp={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Gx,topWindowViewportExternalGeometry:Gx,measurementRequests:new A4,elementGeometrySourceName:"ns",elementGeometry:Gx,intersectionGeometry:Gx,viewportLocalAppOffset:{x:0,y:0}};var KTr=bG(fN(a$(function(G){var b;return(b=G.exposureOverride)!=null?b:aZs(G)}),a$(function(G){return isFinite(G)?G:0}))),p$v=bG(fN(a$(function(G){var b;
return(b=G.exposureOverride)!=null?b:aZs(G)}),a$(function(G){return isFinite(G)?G:-1})));var nf=function(G,b){this.a=G;this.b=b;if(G.clock.timeline!==b.clock.timeline)throw Error();};
nf.prototype.equivalentTo=function(G){return G instanceof nf?this.a.equivalentTo(G.a)&&this.b.equivalentTo(G.b):!1};
nf.prototype.extrapolateToTime=function(G){var b=this.a.extrapolateToTime(G).value,I=this.b.extrapolateToTime(G).value;return{timestamp:G,value:[b,I]}};
_.kV.Object.defineProperties(nf.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),b=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:[b,I]}}}});var Op=function(G,b){this.input=G;this.mapFunction=b;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Op.prototype.equivalentTo=function(G){return G instanceof Op?this.input.equivalentTo(G.input)&&this.mapFunction===G.mapFunction:!1};
Op.prototype.extrapolateToTime=function(G){G=this.input.extrapolateToTime(G);return{timestamp:G.timestamp,value:this.mapFunction(G.value)}};
_.kV.Object.defineProperties(Op.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var wt=function(){};
wt.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
wt.prototype.extrapolateUsingTimestampMap=function(G){var b=this.clock.timeline,I,h=(I=G.get(b))!=null?I:this.clock.now();G.set(b,h);return this.extrapolateToTime(h)};
wt.prototype.map=function(G){return new Bku(this,G)};
wt.prototype.joinWith=function(G){return new U28(this,G)};
var U28=function(){nf.apply(this,arguments);this.map=wt.prototype.map;this.joinWith=wt.prototype.joinWith;this.extrapolateToNow=wt.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=wt.prototype.extrapolateUsingTimestampMap};
_.M(U28,nf);var Bku=function(){Op.apply(this,arguments);this.map=wt.prototype.map;this.joinWith=wt.prototype.joinWith;this.extrapolateToNow=wt.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=wt.prototype.extrapolateUsingTimestampMap};
_.M(Bku,Op);var h2=function(G,b){this.lastMeasurement=b;this.extrapolateToNow=wt.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=wt.prototype.extrapolateUsingTimestampMap;this.map=wt.prototype.map;this.joinWith=wt.prototype.joinWith;this.clock=G};
h2.prototype.equivalentTo=function(G){return G.active};
h2.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.kV.Object.defineProperties(h2.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var $cs=a$(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 YMs=fN(pN(function(G){return!isNaN(G)}),ca(function(G,b){return isNaN(G)?b:Math.min(G,b)},NaN),qb());var uqO=bG(fN(a$(function(G){return G.intersectionGeometry.width*G.intersectionGeometry.height/(G.exposedViewportLocalGeometry.width*G.exposedViewportLocalGeometry.height)}),a$(function(G){return isFinite(G)?Math.min(1,G):0})));var X$a=fN(bG(a$(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 hTp=function(G,b){var I=this;this.timeProvider=G;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=b.pipe(qb()).subscribe(function(h){jjs(I);I.measurementRequestObserver=h})},lpa=function(G,b){jjs(G);
G.lastMeasurementRequest=G.timeProvider.setTimeout(function(){var I;return void((I=G.measurementRequestObserver)==null?void 0:I.next())},b)},jjs=function(G){G.lastMeasurementRequest!==null&&G.timeProvider.clearTimeout(G.lastMeasurementRequest);
G.lastMeasurementRequest=null};
hTp.prototype.dispose=function(){jjs(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var slb=function(){};var zTu=function(G,b){this.context=G;this.strategies=b};
_.M(zTu,slb);zTu.prototype.buildGeometrySource=function(G,b){var I=this.strategies.map(function(l){return l.buildGeometrySource(G,b)}),h=cCp(I.map(function(l){return l.geometrySource})),q=h.capturedErrors.pipe(gun());
return{geometrySource:h.chain.pipe(Zz(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:q,strategyErrors:h.capturedErrors}].concat(_.Nz(I.map(function(l){return l.additionalOutputs}))))}};
var gun=function(){return ca(function(G,b){b instanceof Nb?G.push(b.measurementStrategyFailureReason):G.push(-1);return G},[])};var i32=function(G,b){this.context=G;this.poller=b};
_.M(i32,slb);i32.prototype.buildGeometrySource=function(G,b){var I=kFj(L7d(this.context,this.poller),MTs(this.context,b.requestSource));return{geometrySource:Dcr(G.measurableCreative.pipe(I),b.inApp),additionalOutputs:{}}};var ozB=function(G,b,I){I=I===void 0?PIO(G,b):I;this.context=G;this.intersectionObserverStrategy=I};
_.M(ozB,slb);ozB.prototype.buildGeometrySource=function(G,b){var I=this.intersectionObserverStrategy(b.useV2);return{geometrySource:Dcr(G.measurableCreative.pipe(I,dQ2(this.context)),b.inApp),additionalOutputs:{}}};var A2z=function(G,b,I){var h=h===void 0?Symbol():h;this.element=G;this.immediateUrls=b;this.timeOnScreenUrls=I;this.symbol=h};var IpO=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Byd=Object.freeze([1,.75,IpO.exposureThreshold,IpO.largeAdExposureThreshold,0]);var Wyu=function(G,b){b=b===void 0?36E5:b;var I=I===void 0?!0:I;this.creatives=new A4;this.elementsToUnregister=new A4;this.elementMap=new Map;var h=new lG(window,null);h.beaconFactory=new x4(h,new J8(h));tkr(h,this.creatives,this.elementsToUnregister,G,b,I).subscribe()},YWO=function(G,b,I,h){if(!G.elementMap.has(b)){var q=new Eg(b);
G.elementMap.set(b,q);G.creatives.next(new A2z(q,I,h))}},NJd=function(G,b){G.elementsToUnregister.next(b);
var I=G.elementMap.get(b);I!==void 0&&(I.release(),G.elementMap.delete(b))};var adr=function(G){var b=G.url;G=G.uaDataValues;this.JSC$9549_url_=b;this.uaDataValues_=G;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var I=/[?&]([^&=]+)=([^&]*)/g;G=I.exec(b);)this.urlParamValues_[G[1]]=G[2]},N82=function(G){G=G.uaDataValues_;
if(!G)return"";var b=ea("uap",G.platform)+ea("uapv",G.platformVersion)+ea("uafv",G.uaFullVersion)+ea("uaa",G.architecture)+ea("uam",G.model)+ea("uab",G.bitness);G.fullVersionList&&(b+="&uafvl="+encodeURIComponent(G.fullVersionList.map(function(I){return encodeURIComponent(I.brand)+";"+encodeURIComponent(I.version)}).join("|")));
G.wow64!=null&&(b+="&uaw="+Number(G.wow64));return b.slice(1)};var Mau=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Mau,_.eo);Mau.prototype.getId=function(){return _.U5(this,1)};var Ep=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Ep,_.eo);Ep.prototype.getSeconds=function(){return Td(this,1)};
Ep.prototype.setSeconds=function(G){return _.bl(this,1,LD(G),"0")};_.U4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(_.U4,_.eo);_.U4.prototype.getSeconds=function(){return Td(this,1)};
_.U4.prototype.setSeconds=function(G){return _.bl(this,1,LD(G),"0")};
_.ZTB=function(G){var b=Number(AJ(G,1));G=_.LT(G,2);return new Date(b*1E3+G/1E6)};var pf=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(pf,_.eo);pf.prototype.getUrl=function(){return _.U5(this,1)};
pf.prototype.setUrl=function(G){return _.yq(this,1,G)};
pf.prototype.getHeight=function(){return _.LT(this,2)};
pf.prototype.getWidth=function(){return _.LT(this,3)};var SE=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(SE,_.eo);SE.prototype.getAspectRatio=function(){return B8(this,1)};
SE.prototype.getDuration=function(){return _.fi(this,Ep,2)};var tan=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(tan,_.eo);var z8b=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(z8b,_.eo);var oub=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(oub,_.eo);var iTn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(iTn,_.eo);var PGn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(PGn,_.eo);var d2J=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(d2J,_.eo);var y2A=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(y2A,_.eo);var r2n=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(r2n,_.eo);var FF8=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(FF8,_.eo);var Xi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Xi,_.eo);var $1=[2,4,5,6,7];var HTX=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(HTX,_.eo);var Qt=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Qt,_.eo);_.m=Qt.prototype;_.m.getId=function(){return _.fi(this,Mau,1)};
_.m.getName=function(){return _.U5(this,2)};
_.m.setDescription=function(G){return _.yq(this,3,G)};
_.m.getUrl=function(){return _.U5(this,8)};
_.m.setUrl=function(G){return _.yq(this,8,G)};
var Gy=function(G){return _.ku(G,pf,10,_.vr())};
Qt.prototype.getOwner=function(G){var b=_.S8(this,40,_.Mf,3,!0);X2X(b,G);return b[G]};
var b1=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(b1,_.eo);_.IT=[0,NC,AcX];_.hK=[0,NC,AcX];var WFO=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(WFO,_.eo);var qL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(qL,_.eo);qL.prototype.getStatus=function(){return _.gU(this,1)};
qL.prototype.removeItem=function(G){return r5n(this,2,G)};var aCi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(aCi,_.eo);aCi.prototype.getName=function(){return _.U5(this,8)};var jg=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(jg,_.eo);jg.prototype.getCommand=function(){return _.gU(this,1)};
jg.prototype.getSource=function(){return _.fi(this,aCi,2)};
jg.prototype.setVisible=function(G){return _.fv(this,5,G)};
jg.prototype.removeItem=function(G){return r5n(this,7,G)};var NkO=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(NkO,_.eo);NkO.prototype.getCommand=function(){return _.gU(this,1)};
NkO.prototype.removeItem=function(G){return r5n(this,4,G)};
var Y8b=_.Az(NkO);var l1=function(G,b,I){I=I===void 0?Error():I;var h=Error.call(this);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.code=G;b+=":";I instanceof Error?(this.message=b+I.message,this.stack=I.stack||""):(this.message=b+String(I),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.M(l1,Error);_.FN=function(){this.JSC$9607_disposed_=this.JSC$9607_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.FN.prototype.JSC$9607_disposed_=!1;_.FN.prototype.isDisposed=function(){return this.JSC$9607_disposed_};
_.FN.prototype.dispose=function(){this.JSC$9607_disposed_||(this.JSC$9607_disposed_=!0,this.disposeInternal())};
_.FN.prototype[Symbol.dispose]=function(){this.dispose()};
_.M2=function(G,b){G.addOnDisposeCallback(_.l9(_.VQ,b))};
_.FN.prototype.addOnDisposeCallback=function(G,b){this.JSC$9607_disposed_?b!==void 0?G.call(b):G():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),b&&(G=G.bind(b)),this.onDisposeCallbacks_.push(G))};
_.FN.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var mX=function(G){_.FN.call(this);this.wpc=G};
_.M(mX,_.FN);mX.prototype.g6F=function(){return this.wpc.f()};
mX.prototype.xCW=function(G){return this.wpc.c(G)};
mX.prototype.am=function(G){return this.wpc.m(K7r(G))};
mX.prototype.moQ=function(G){return this.wpc.mws(K7r(G))};
var cr=function(G){_.FN.call(this);var b=this;this.vm=G;this.uWP="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.vBh=void 0;this.qhz=this.vm.p;this.tX5=this.pUJ.bind(this);this.addOnDisposeCallback(function(){return void CGA(b)})};
_.M(cr,_.FN);var J2u=function(G){var b;return _.c(function(I){if(I.nextAddress==1){if(!G.vm.wpc)throw new l1(30,"NWA");return G.pIV?I.return(G.pIV):I.yield(G.vm.wpc(),2)}b=I.yieldResult;G.pIV=new mX(b);return I.return(G.pIV)})};
cr.prototype.snapshot=function(G){return this.vm.s(Object.assign({},G.fQ&&{c:G.fQ},G.rGV&&{s:G.rGV},G.cyC!==void 0&&{p:G.cyC}))};
cr.prototype.pUJ=function(G){this.vm.e(G)};
cr.prototype.nDJ=function(G,b){return this.vm.c(G,b,!1)};
var CGA=function(G){G.vBh!==void 0&&(G.uWP.forEach(function(b){var I;(I=G.vBh)==null||I.removeEventListener(b,G.tX5)}),G.vBh=void 0)};
cr.prototype.oph=function(){return this.vm.l()};var eg=function(){_.FN.apply(this,arguments);this.gjN=1};
_.M(eg,_.FN);eg.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.gjN++;return this};
eg.prototype.dispose=function(){--this.gjN||_.FN.prototype.dispose.call(this)};var KFz=function(G){this.wcL=G;G.addNewEventMetric("/client_streamz/bg/frs",_.fT("mk"))};
KFz.prototype.record=function(G,b){this.wcL.record("/client_streamz/bg/frs",G,b)};
var uNA=function(G){this.lix=G;G.addNewEventMetric("/client_streamz/bg/wrl",_.fT("mn"),xu("ac"),xu("sc"),_.fT("rk"),_.fT("mk"))};
uNA.prototype.record=function(G,b,I,h,q,l){this.lix.record("/client_streamz/bg/wrl",G,b,I,h,q,l)};
var R8n=function(G){this.bwL=G;G.addNewCounter("/client_streamz/bg/ec",_.fT("en"),_.fT("mk"))};
R8n.prototype.increment=function(G,b){this.bwL.JSC$9860_incrementCounter("/client_streamz/bg/ec",G,b)};
var nue=function(G){this.fiT=G;G.addNewEventMetric("/client_streamz/bg/el",_.fT("en"),_.fT("mk"))};
nue.prototype.record=function(G,b,I){this.fiT.record("/client_streamz/bg/el",G,b,I)};
var OTA=function(G){this.rQ5=G;G.addNewCounter("/client_streamz/bg/cec",xu("ec"),_.fT("mk"))};
OTA.prototype.increment=function(G,b){this.rQ5.JSC$9860_incrementCounter("/client_streamz/bg/cec",G,b)};
var wrO=function(G){this.yQN=G;G.addNewCounter("/client_streamz/bg/po/csc",xu("cs"),_.fT("mk"))};
wrO.prototype.increment=function(G,b){this.yQN.JSC$9860_incrementCounter("/client_streamz/bg/po/csc",G,b)};
var EuQ=function(G){this.cQD=G;G.addNewCounter("/client_streamz/bg/po/ctav",_.fT("av"),_.fT("mk"))};
EuQ.prototype.increment=function(G,b){this.cQD.JSC$9860_incrementCounter("/client_streamz/bg/po/ctav",G,b)};
var prB=function(G){this.uyt=G;G.addNewCounter("/client_streamz/bg/po/cwsc",_.fT("su"),_.fT("mk"))};
prB.prototype.increment=function(G,b){this.uyt.JSC$9860_incrementCounter("/client_streamz/bg/po/cwsc",G,b)};var fUq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(fUq,_.eo);var x1v=function(G,b){return _.G7(G,3,b,Bzd)};var S88=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(S88,_.eo);var Xrn=[1,2,3];var $Qn=[0,Xrn,_.O5,M8u,zen];var Gt8=[0,_.wU,[0,W8,_.aR]];var b0n=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(b0n,_.eo);var IZA=[1,2,3];var hCn=[0,IZA,s5B,xfO,_.E5,Gt8];var qMW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(qMW,_.eo);var jJX=[0,_.wU,$Qn,hCn];var lZ5=[0,_.RR];var mQO=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(mQO,_.eo);var eCB=[0,_.RR,-1,_.Kp];var VTn=[0,_.RR,-1,_.JJ,_.Kp];var DQW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(DQW,_.eo);var cfn=[1,2,3];var ktB=[0,cfn,_.E5,eCB,_.E5,VTn,_.E5,lZ5];var v8X=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(v8X,_.eo);v8X.prototype.JSC$9680_serializeBinary=RKj([0,_.RR,ktB,o3A,_.wU,jJX,ZDW,_.t8J]);var LTA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(LTA,_.eo);var fZA=function(G){var b=new v8X;b=_.F0(b,1,G.JSC$9796_metricName);var I=QJu(G);b=_.G7(b,3,I,_.Ta);I=[];for(var h=[],q=_.e(G.cellMap.keys()),l=q.next();!l.done;l=q.next())h.push(l.value.split(","));for(q=0;q<h.length;q++){l=h[q];for(var V=G.cellType,D=G.getCells(l)||[],k=[],L=0;L<D.length;L++){var x=D[L],f=x&&x.cellValue;x=new b0n;switch(V){case 3:f=Number(f);Number.isFinite(f)&&Z5(x,1,IZA,LD(f));break;case 2:Z5(x,2,IZA,_.pQ(Number(f)))}k.push(x)}V=k;for(D=0;D<V.length;D++){k=V[D];L=new qMW;k=_.ZK(L,
2,k);L=[];x=xQu(G);for(f=0;f<x.length;f++){var T=x[f],B=l[f],A=new S88;switch(T){case 3:Z5(A,1,Xrn,BL(String(B)));break;case 2:T=Number(B);Number.isFinite(T)&&Z5(A,2,Xrn,_.e8(T));break;case 1:Z5(A,3,Xrn,x8u(B==="true"))}L.push(A)}Lp(k,1,L);I.push(k)}}Lp(b,4,I);return b};var Tvn=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 b=G.substring(G.indexOf("://")+3),I=b.indexOf("/");I!=-1&&(b=b.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 h=b.indexOf(":");if(h!=-1){var q=b.substring(h+1);b=b.substring(0,h);if(I==="http"&&q!=="80"||I==="https"&&q!=="443")G=":"+q}return I+"://"+b+G};var UQ8=function(G,b,I){var h=String(_.hd.location.href);return h&&G&&b?[b,BvQ(Tvn(h),G,I||null)].join(" "):null},BvQ=function(G,b,I){var h=[],q=[];
if((Array.isArray(I)?2:1)==1)return q=[b,G],_.hB(h,function(D){q.push(D)}),sJJ(q.join(" "));
var l=[],V=[];_.hB(I,function(D){V.push(D.key);l.push(D.value)});
I=Math.floor((new Date).getTime()/1E3);q=l.length==0?[I,b,G]:[l.join(":"),I,b,G];_.hB(h,function(D){q.push(D)});
G=sJJ(q.join(" "));G=[I,G];V.length==0||G.push(V.join(""));return G.join("_")},sJJ=function(G){var b=SBa();
b.update(G);return b.digestString().toLowerCase()};var VP=function(G){this.JSC$9691_document_=G||{cookie:""}},g8B;
_.m=VP.prototype;_.m.isEnabled=function(){if(!_.hd.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};
_.m.set=function(G,b,I){var h=!1;if(typeof I==="object"){var q=I.sameSite;h=I.secure||!1;var l=I.domain||void 0;var V=I.path||void 0;var D=I.maxAge}if(/[;=\s]/.test(G))throw Error("sa`"+G);if(/[;\r\n]/.test(b))throw Error("ta`"+b);D===void 0&&(D=-1);I=l?";domain="+l:"";V=V?";path="+V:"";h=h?";secure":"";D=D<0?"":D==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+D*1E3)).toUTCString();this.JSC$9691_document_.cookie=G+"="+b+I+V+D+h+(q!=null?";samesite="+q:"")};
_.m.get=function(G,b){for(var I=G+"=",h=(this.JSC$9691_document_.cookie||"").split(";"),q=0,l;q<h.length;q++){l=v2(h[q]);if(l.lastIndexOf(I,0)==0)return l.slice(I.length);if(l==G)return""}return b};
_.m.remove=function(G,b,I){var h=this.containsKey(G);this.set(G,"",{maxAge:0,path:b,domain:I});return h};
_.m.getKeys=function(){return g8B(this).keys};
_.m.getValues=function(){return g8B(this).values};
_.m.isEmpty=function(){return!this.JSC$9691_document_.cookie};
_.m.getCount=function(){return this.JSC$9691_document_.cookie?(this.JSC$9691_document_.cookie||"").split(";").length:0};
_.m.containsKey=function(G){return this.get(G)!==void 0};
_.m.containsValue=function(G){for(var b=g8B(this).values,I=0;I<b.length;I++)if(b[I]==G)return!0;return!1};
_.m.clear=function(){for(var G=g8B(this).keys,b=G.length-1;b>=0;b--)this.remove(G[b])};
g8B=function(G){G=(G.JSC$9691_document_.cookie||"").split(";");for(var b=[],I=[],h,q,l=0;l<G.length;l++)q=v2(G[l]),h=q.indexOf("="),h==-1?(b.push(""),I.push(q)):(b.push(q.substring(0,h)),I.push(q.substring(h+1)));return{keys:b,values:I}};
_.di=new VP(typeof document=="undefined"?null:document);var Jrj,AfO;Jrj=function(){var G=_.hd.__SAPISID||_.hd.__APISID||_.hd.__3PSAPISID||_.hd.__1PSAPISID||_.hd.__OVERRIDE_SID;if(G)return!0;typeof document!=="undefined"&&(G=new VP(document),G=G.get("SAPISID")||G.get("APISID")||G.get("__Secure-3PAPISID")||G.get("__Secure-1PAPISID"));return!!G};
AfO=function(G,b,I,h){(G=_.hd[G])||typeof document==="undefined"||(G=(new VP(document)).get(b));return G?UQ8(G,I,h):null};
_.vyB=function(G){var b=Tvn(_.hd==null?void 0:_.hd.location.href),I=[];if(Jrj()){b=b.indexOf("https:")==0||b.indexOf("chrome-extension:")==0||b.indexOf("chrome-untrusted://new-tab-page")==0||b.indexOf("moz-extension:")==0;var h=b?_.hd.__SAPISID:_.hd.__APISID;h||typeof document==="undefined"||(h=new VP(document),h=h.get(b?"SAPISID":"APISID")||h.get("__Secure-3PAPISID"));(h=h?UQ8(h,b?"SAPISIDHASH":"APISIDHASH",G):null)&&I.push(h);b&&((b=AfO("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",G))&&I.push(b),
(G=AfO("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",G))&&I.push(G))}return I.length==0?null:I.join(" ")};var MTn=function(){this.minSize=1024};
MTn.prototype.compress=function(G){var b,I,h,q;return _.c(function(l){switch(l.nextAddress){case 1:return b=new CompressionStream("gzip"),I=(new Response(b.readable)).arrayBuffer(),h=b.writable.getWriter(),l.yield(h.write((new TextEncoder).encode(G)),2);case 2:return l.yield(h.close(),3);case 3:return q=Uint8Array,l.yield(I,4);case 4:return l.return(new q(l.yieldResult))}})};
MTn.prototype.isSupported=function(G){return G<this.minSize?!1:typeof CompressionStream!=="undefined"};var Z0u=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Z0u,_.eo);var D$=function(G,b){this.intervalMs=G;this.callback=b;this.enabled=!1;this.nowFn=function(){return _.nW()};
this.lastTimeMs=this.nowFn()};
D$.prototype.setInterval=function(G){this.intervalMs=G;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
D$.prototype.start=function(){var G=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){G.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
D$.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
D$.prototype.tick=function(){var G=this;if(this.enabled){var b=Math.max(this.nowFn()-this.lastTimeMs,0);b<this.intervalMs*.8?this.timer=setTimeout(function(){G.tick()},this.intervalMs-b):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var tTu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(tTu,_.eo);var zCu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(zCu,_.eo);var o8n=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(o8n,_.eo);o8n.prototype.getTransmissionType=function(){return _.gU(this,1)};var bLp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(bLp,_.eo);var cZ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(cZ,_.eo);var Gea=function(G){Lp(IUj,1,G)};
cZ.prototype.getModel=function(){return _.U5(this,6)};
var i0A=_.Az(cZ);var PIn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(PIn,_.eo);var X3p=["platform","platformVersion","architecture","model","uaFullVersion"],IUj=new cZ,$1O=null;var k1=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(k1,_.eo);var dQX=function(G){return _.Tv(G,1,1)};var yfQ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G,4)};
_.M(yfQ,_.eo);_.vZ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G,36)};
_.M(_.vZ,_.eo);_.vZ.prototype.getExperimentIds=function(){return _.fi(this,Z0u,16)};var rfn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G,19)};
_.M(rfn,_.eo);rfn.prototype.setLogSource=function(G){return _.Tv(this,2,G)};
rfn.prototype.setScheduler=function(G){return _.Tv(this,10,G)};var H05=function(G,b){this.isServiceWorkerScope=b=b===void 0?!1:b;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new rfn;Number.isInteger(G)&&this.logRequest.setLogSource(G);b||(this.locale=document.documentElement.getAttribute("lang"));FTQ(this,new k1)};
H05.prototype.setLogSource=function(G){this.logRequest.setLogSource(G);return this};
var FTQ=function(G,b){_.ZK(G.logRequest,1,b);_.gU(b,1)||dQX(b);G.isServiceWorkerScope||(b=L4(G),_.U5(b,5)||_.F0(b,5,G.locale));G.uach&&(b=L4(G),_.fi(b,cZ,9)||_.ZK(b,9,G.uach))},WTJ=function(G,b){G.transmissionType=b},aZn=function(G){var b=b===void 0?X3p:b;
var I=G.isServiceWorkerScope?void 0:Rk();I?hpp(I,b).then(function(h){G.uach=i0A(h!=null?h:"[]");h=L4(G);_.ZK(h,9,G.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},L4=function(G){var b=_.fi(G.logRequest,k1,1);
b||(b=new k1,FTQ(G,b));G=b;b=_.fi(G,PIn,11);b||(b=new PIn,_.ZK(G,11,b));return b};
H05.prototype.build=function(G,b,I,h,q,l){b=b===void 0?0:b;I=I===void 0?0:I;h=h===void 0?null:h;q=q===void 0?0:q;l=l===void 0?0:l;if(!this.isServiceWorkerScope){var V=L4(this);var D=new o8n;D=_.Tv(D,1,this.transmissionType);D=_.Tx(D,2,this.isFinal);I=_.tJ(D,3,I>0?I:void 0);I=_.tJ(I,4,q>0?q:void 0);I=_.tJ(I,5,l>0?l:void 0);q=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l=q[_.q8]|0;I=Ze(I,l)?I:t8O(I,q,l)?ZDB(I,q):new I.constructor(KD(q,l,!0));_.ZK(V,10,I)}V=this.logRequest.clone();I=Date.now().toString();
V=_.Bz(V,4,LD(I));G=G.slice();G=Lp(V,3,G);h&&(V=new tTu,h=_.tJ(V,13,h),V=new zCu,h=_.ZK(V,2,h),V=new yfQ,h=_.ZK(V,1,h),h=_.Tv(h,2,9),_.ZK(G,18,h));b&&_.y9(G,14,b);return G};Br.prototype.currBackoffCount_=0;Br.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Br.prototype.getValue=function(){return this.currValue_};
var Nve=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 rcb=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G,8)};
_.M(rcb,_.eo);var YMn=_.Az(rcb);var F9B=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(F9B,_.eo);var QP;QP=new HDJ;var x1=function(G){_.FN.call(this);var b=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9769_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$9769_sendBeaconApiEnabled=!1;this.logSource=G.logSource;this.getAuthHeaderValue=
G.getAuthHeaderValue||function(){};
this.logRequestBuilder=new H05(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&&!!Rk()&&!!Rk().navigator&&Rk().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(CIX())).searchParams&&!!(new URL(CIX())).searchParams.set;var I=dQX(new k1);FTQ(this.logRequestBuilder,I);this.flushBackoff=new Br(1E4,3E5,.1);G=JfA(this,G.backgroundJobDeferrer);this.JSC$9769_flushTimer=new D$(this.flushBackoff.getValue(),G);this.backupTimer=new D$(6E5,G);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){KT8(b);
var h;(h=b.metalogService)==null||h.flush()}}),document.addEventListener("pagehide",function(){KT8(b);
var h;(h=b.metalogService)==null||h.flush()}))};
_.M(x1,_.FN);var JfA=function(G,b){return G.isBrowserSupported?b?function(){b().then(function(){G.flush()})}:function(){G.flush()}:function(){}};
x1.prototype.disposeInternal=function(){KT8(this);this.JSC$9769_flushTimer.stop();this.backupTimer.stop();_.FN.prototype.disposeInternal.call(this)};
var uqQ=function(G){G.clearcutUrl||(G.clearcutUrl=CIX());try{return(new URL(G.clearcutUrl)).toString()}catch(b){return(new URL(G.clearcutUrl,Rk().location.origin)).toString()}};
x1.prototype.dispatch=function(G){if(G instanceof _.vZ)this.log(G);else try{var b=new _.vZ,I=G.serialize();var h=_.F0(b,8,I);this.log(h)}catch(q){f4(this,4,1)}};
var f4=function(G,b,I){G.metalogService&&G.metalogService.increment(b,I)};
x1.prototype.log=function(G){f4(this,2,1);if(this.isBrowserSupported){G=G.clone();var b=this.sequencePosition++;G=_.y9(G,21,b);this.componentId&&_.F0(G,26,this.componentId);b=G;if(FOO(_.mI(b,1))==null){var I=Date.now();I=Number.isFinite(I)?I.toString():"0";_.Bz(b,1,LD(I))}_.r5s(_.mI(b,15))!=null||_.y9(b,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(I=this.experimentIds.clone(),_.ZK(b,16,I));f4(this,1,1);b=this.pendingEvents.length-this.bufferSize+1;b>0&&(this.pendingEvents.splice(0,b),
this.numLogsDroppedSinceLastFlush+=b,f4(this,3,b));this.pendingEvents.push(G);this.disableAutomaticFlush||this.JSC$9769_flushTimer.enabled||this.JSC$9769_flushTimer.start()}};
x1.prototype.flush=function(G,b){var I=this;if(this.pendingEvents.length===0)G&&G();else if(this.JSC$9769_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,RCB(this);else{var h=Date.now();if(this.noFlushUntilMs>h&&this.startWaitingMs<h)b&&b("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?WTJ(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var q=this.pendingEvents.length,
l=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),V=this.getAuthHeaderValue();if(V&&this.lastFailedAuth===V)b&&b("stale-auth-token");else{this.pendingEvents=[];this.JSC$9769_flushTimer.enabled&&this.JSC$9769_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;h=l.serialize();var D;this.JSC$9769_compressor&&this.JSC$9769_compressor.isSupported(h.length)&&
(D=this.JSC$9769_compressor.compress(h));var k=n8b(this,h,V),L=function(T){I.flushBackoff.reset();I.JSC$9769_flushTimer.setInterval(I.flushBackoff.getValue());if(T){var B=null;try{var A=JSON.stringify(JSON.parse(T.replace(")]}'\n","")));B=YMn(A)}catch(t){}B&&(T=Number(Td(B,1,_.N8("-1"))),T>0&&(I.startWaitingMs=Date.now(),I.noFlushUntilMs=I.startWaitingMs+T),IYd(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,QP.fieldIndex),Gav(B,QP.fieldIndex),B=QP.ctor?QP.getExtensionFn(B,QP.ctor,QP.fieldIndex,
QP.JSC$8949_hasMessageId):QP.getExtensionFn(B,QP.fieldIndex,null,QP.JSC$8949_hasMessageId),B=B===null?void 0:B)&&(B=_.LT(B,1,-1),B!==-1&&(I.flushBackoff=new Br(B<1?1:B,3E5,.1),I.JSC$9769_flushTimer.setInterval(I.flushBackoff.getValue())))}G&&G();I.numRetriesSinceLastSuccessfulFlush=0},x=function(T,B){var A=_.ku(l,_.vZ,3,_.vr());
var t=Number(Td(l,14));Nve(I.flushBackoff);I.JSC$9769_flushTimer.setInterval(I.flushBackoff.getValue());T===401&&V&&(I.lastFailedAuth=V);t&&(I.numLogsDroppedSinceLastFlush+=t);B===void 0&&(B=I.isRetryable(T));B&&(I.pendingEvents=A.concat(I.pendingEvents),I.disableAutomaticFlush||I.JSC$9769_flushTimer.enabled||I.JSC$9769_flushTimer.start());f4(I,7,1);b&&b("net-send-failed",T);++I.numRetriesSinceLastSuccessfulFlush},f=function(){I.network&&I.network.send(k,L,x)};
D?D.then(function(T){f4(I,5,q);k.requestHeaders["Content-Encoding"]="gzip";k.requestHeaders["Content-Type"]="application/binary";k.body=T;k.bodyType=2;f()},function(){f4(I,6,q);
f()}):f()}}}};
var n8b=function(G,b,I){I=I===void 0?null:I;var h=h===void 0?G.withCredentials:h;var q={},l=new URL(uqQ(G));I&&(q.Authorization=I);G.sessionIndex&&(q["X-Goog-AuthUser"]=G.sessionIndex,l.searchParams.set("authuser",G.sessionIndex));G.pageId&&(Object.defineProperty(q,"X-Goog-PageId",{value:G.pageId}),l.searchParams.set("pageId",G.pageId));return{url:l.toString(),body:b,bodyType:1,requestHeaders:q,requestType:"POST",withCredentials:h,timeoutMillis:G.timeoutMillis}},KT8=function(G){G.logRequestBuilder.isFinal=
!0;
G.flush();G.logRequestBuilder.isFinal=!1},RCB=function(G){O05(G,function(b,I){b=new URL(b);
b.searchParams.set("format","json");var h=!1;try{h=Rk().navigator.sendBeacon(b.toString(),I.serialize())}catch(q){}h||(G.isSendBeaconSupported=!1);return h})},O05=function(G,b){if(G.pendingEvents.length!==0){var I=new URL(uqQ(G));
I.searchParams.delete("format");var h=G.getAuthHeaderValue();h&&I.searchParams.set("auth",h);I.searchParams.set("authuser",G.sessionIndex||"0");for(h=0;h<10&&G.pendingEvents.length;++h){var q=G.pendingEvents.slice(0,32),l=G.logRequestBuilder.build(q,G.numLogsDroppedSinceLastFlush,G.numRetriesSinceLastSuccessfulFlush,G.productID,G.persistedLogRecoveredCount,G.persistedLogExpiredCount);if(!b(I.toString(),l)){++G.numRetriesSinceLastSuccessfulFlush;break}G.numLogsDroppedSinceLastFlush=0;G.numRetriesSinceLastSuccessfulFlush=
0;G.persistedLogRecoveredCount=0;G.persistedLogExpiredCount=0;G.pendingEvents=G.pendingEvents.slice(q.length)}G.JSC$9769_flushTimer.enabled&&G.JSC$9769_flushTimer.stop()}};
x1.prototype.isRetryable=function(G){return 500<=G&&G<600||G===401||G===0};
var CIX=function(){return"https://play.google.com/log?format=json&hasfast=true"};var w$A=function(){this.abortSupported=typeof AbortController!=="undefined"};
w$A.prototype.send=function(G,b,I){var h=this,q,l,V,D,k,L,x,f,T,B;return _.c(function(A){switch(A.nextAddress){case 1:return l=(q=h.abortSupported?new AbortController:void 0)?setTimeout(function(){q.abort()},G.timeoutMillis):void 0,_.gm(A,2,3),V=Object.assign({},{method:G.requestType,
headers:Object.assign({},G.requestHeaders)},G.body&&{body:G.body},G.withCredentials&&{credentials:"include"},{signal:G.timeoutMillis&&q?q.signal:null}),A.yield(fetch(G.url,V),5);case 5:D=A.yieldResult;if(D.status!==200){(k=I)==null||k(D.status);A.jumpTo(3);break}if((L=b)==null){A.jumpTo(7);break}return A.yield(D.text(),8);case 8:L(A.yieldResult);case 7:case 3:_.Mz(A);clearTimeout(l);_.tj(A,0);break;case 2:x=_.zf(A);switch((f=x)==null?void 0:f.name){case "AbortError":(T=I)==null||T(408);break;default:(B=
I)==null||B(400)}A.jumpTo(3)}})};
w$A.prototype.getTransmissionType=function(){return 4};_.A2=function(G,b){b=b===void 0?"0":b;_.FN.call(this);this.logSource=G;this.sessionIndex=b;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9787_clearExperimentIds=this.productID=null;this.JSC$9787_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.M(_.A2,_.FN);var vWr=function(G,b){G.buildLabel=b;return G},kes=function(G,b){G.network=b;
return G},QNO=function(G,b){G.JSC$9787_clearExperimentIds=b},cBr=function(G){G.JSC$9787_sendBeaconApiEnabled=!0;
return G};
_.A2.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.A2.prototype.build=function(){this.network||(this.network=new w$A);var G=new x1({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.vyB,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.M2(this,G);if(this.buildLabel){var b=this.buildLabel,I=
L4(G.logRequestBuilder);_.F0(I,7,b)}G.JSC$9769_compressor=new MTn;this.componentId&&(G.componentId=this.componentId);this.productID&&(G.productID=this.productID);this.pageId&&(G.pageId=this.pageId);this.JSC$9787_clearExperimentIds&&((I=this.JSC$9787_clearExperimentIds)?(G.experimentIds||(G.experimentIds=new Z0u),b=G.experimentIds,I=I.serialize(),_.F0(b,4,I)):G.experimentIds&&_.Bz(G.experimentIds,4));this.JSC$9787_sendBeaconApiEnabled&&(G.JSC$9769_sendBeaconApiEnabled=G.isSendBeaconSupported);aZn(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 Tia=function(G,b,I,h,q,l,V){G=G===void 0?-1:G;b=b===void 0?"":b;I=I===void 0?"":I;h=h===void 0?!1:h;q=q===void 0?"":q;_.FN.call(this);this.logSource=G;this.componentId=b;l?b=l:(G=new _.A2(G,"0"),G.componentId=b,_.M2(this,G),I!==""&&(G.destinationUrl=I),h&&(G.serviceWorkerScopeEnabled=!0),q&&vWr(G,q),V&&kes(G,V),b=G.build());this.JSC$9791_transport=b};
_.M(Tia,_.FN);Tia.prototype.flush=function(G){G=G||[];if(G.length){for(var b=new LTA,I=[],h=0;h<G.length;h++){var q=G[h],l=fZA(q);I.push(l);q.clear()}Lp(b,1,I);this.JSC$9791_transport.dispatch(b);this.JSC$9791_transport.flush()}};var E8A=function(G){this.cellValue=G};var Ty=function(G,b,I){this.JSC$9796_metricName=G;this.cellType=b;this.fields=I||[];this.cellMap=new Map},xQu=function(G){return G.fields.map(function(b){return b.fieldType})},QJu=function(G){return G.fields.map(function(b){return b.fieldName})};
_.m=Ty.prototype;_.m.addCell=function(G){var b=_.RI.apply(1,arguments),I=this.getCells(b);I?I.push(new E8A(G)):this.JSC$9796_setCell(G,b)};
_.m.JSC$9796_setCell=function(G){var b=this.JSC$9796_getKey(_.RI.apply(1,arguments));this.cellMap.set(b,[new E8A(G)])};
_.m.getCells=function(){var G=this.JSC$9796_getKey(_.RI.apply(0,arguments));return this.cellMap.has(G)?this.cellMap.get(G):void 0};
_.m.getCell=function(){var G=this.getCells(_.RI.apply(0,arguments));return G&&G.length?G[0]:void 0};
_.m.clear=function(){this.cellMap.clear()};
_.m.JSC$9796_getKey=function(){var G=_.RI.apply(0,arguments);return G?G.join(","):"key"};var p$B=function(G,b){Ty.call(this,G,3,b)};
_.M(p$B,Ty);p$B.prototype.JSC$9799_incrementCounterBy=function(G){var b=_.RI.apply(1,arguments),I=0,h=this.getCell(b);h&&(I=h.cellValue);this.JSC$9796_setCell(I+G,b)};var SMO=function(G,b){Ty.call(this,G,2,b)};
_.M(SMO,Ty);SMO.prototype.record=function(G){this.addCell(G,_.RI.apply(1,arguments))};_.BZ=function(G){this.id=G};
_.BZ.prototype.toString=function(){return this.id};_.Un=function(G,b){this.type=G instanceof _.BZ?String(G):G;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};
_.Un.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Un.prototype.preventDefault=function(){this.defaultPrevented=!0};_.sn=function(G,b){_.Un.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,b)};
_.OE(_.sn,_.Un);
_.sn.prototype.init=function(G,b){var I=this.type=G.type,h=G.changedTouches&&G.changedTouches.length?G.changedTouches[0]:null;this.target=G.target||G.srcElement;this.currentTarget=b;b=G.relatedTarget;b||(I=="mouseover"?b=G.fromElement:I=="mouseout"&&(b=G.toElement));this.relatedTarget=b;h?(this.clientX=h.clientX!==void 0?h.clientX:h.pageX,this.clientY=h.clientY!==void 0?h.clientY:h.pageY,this.screenX=h.screenX||0,this.screenY=h.screenY||0):(this.offsetX=_.$Y||G.offsetX!==void 0?G.offsetX:G.layerX,
this.offsetY=_.$Y||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&&_.sn.superClass_.preventDefault.call(this)};
_.sn.prototype.isButton=function(G){return this.event_.button==G};
_.sn.prototype.stopPropagation=function(){_.sn.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.sn.prototype.preventDefault=function(){_.sn.superClass_.preventDefault.call(this);var G=this.event_;G.preventDefault?G.preventDefault():G.returnValue=!1};var X$b="closure_listenable_"+(Math.random()*1E6|0),gp=function(G){return!(!G||!G[X$b])};var $cn=0;var GFn=function(G,b,I,h,q){this.listener=G;this.proxy=null;this.src=b;this.type=I;this.capture=!!h;this.handler=q;this.key=++$cn;this.removed=this.callOnce=!1},b3W=function(G){G.removed=!0;
G.listener=null;G.proxy=null;G.src=null;G.handler=null};s8.prototype.add=function(G,b,I,h,q){var l=G.toString();G=this.listeners[l];G||(G=this.listeners[l]=[],this.typeCount_++);var V=Ipn(G,b,h,q);V>-1?(b=G[V],I||(b.callOnce=!1)):(b=new GFn(b,this.src,l,!!h,q),b.callOnce=I,G.push(b));return b};
s8.prototype.remove=function(G,b,I,h){G=G.toString();if(!(G in this.listeners))return!1;var q=this.listeners[G];b=Ipn(q,b,I,h);return b>-1?(b3W(q[b]),_.PsB(q,b),q.length==0&&(delete this.listeners[G],this.typeCount_--),!0):!1};
var hTO=function(G,b){var I=b.type;if(!(I in G.listeners))return!1;var h=_.CO(G.listeners[I],b);h&&(b3W(b),G.listeners[I].length==0&&(delete G.listeners[I],G.typeCount_--));return h};
s8.prototype.removeAll=function(G){G=G&&G.toString();var b=0,I;for(I in this.listeners)if(!G||I==G){for(var h=this.listeners[I],q=0;q<h.length;q++)++b,b3W(h[q]);delete this.listeners[I];this.typeCount_--}return b};
s8.prototype.getListener=function(G,b,I,h){G=this.listeners[G.toString()];var q=-1;G&&(q=Ipn(G,b,I,h));return q>-1?G[q]:null};
s8.prototype.hasListener=function(G,b){var I=G!==void 0,h=I?G.toString():"",q=b!==void 0;return _.Cy.some(this.listeners,function(l){for(var V=0;V<l.length;++V)if(!(I&&l[V].type!=h||q&&l[V].capture!=b))return!0;return!1})};
var Ipn=function(G,b,I,h){for(var q=0;q<G.length;++q){var l=G[q];if(!l.removed&&l.listener==b&&l.capture==!!I&&l.handler==h)return q}return-1};var qB5,jjn,lpb,eTJ,Vku,m6,eA,kFu,Dce,cCO,AK,vzn,mcz;qB5="closure_lm_"+(Math.random()*1E6|0);jjn={};lpb=0;_.cv=function(G,b,I,h,q){if(h&&h.once)return m6(G,b,I,h,q);if(Array.isArray(b)){for(var l=0;l<b.length;l++)_.cv(G,b[l],I,h,q);return null}I=mcz(I);return gp(G)?G.listen(b,I,_.Oj(h)?!!h.capture:!!h,q):eTJ(G,b,I,!1,h,q)};
eTJ=function(G,b,I,h,q,l){if(!b)throw Error("va");var V=_.Oj(q)?!!q.capture:!!q,D=AK(G);D||(G[qB5]=D=new s8(G));I=D.add(b,I,h,V,l);if(I.proxy)return I;h=Vku();I.proxy=h;h.src=G;h.listener=I;if(G.addEventListener)_.DEn||(q=V),q===void 0&&(q=!1),G.addEventListener(b.toString(),h,q);else if(G.attachEvent)G.attachEvent(Dce(b.toString()),h);else if(G.addListener&&G.removeListener)G.addListener(h);else throw Error("wa");lpb++;return I};
Vku=function(){var G=cCO,b=function(I){return G.call(b.src,b.listener,I)};
return b};
m6=function(G,b,I,h,q){if(Array.isArray(b)){for(var l=0;l<b.length;l++)m6(G,b[l],I,h,q);return null}I=mcz(I);return gp(G)?G.listenOnce(b,I,_.Oj(h)?!!h.capture:!!h,q):eTJ(G,b,I,!0,h,q)};
_.ML=function(G,b,I,h,q){if(Array.isArray(b))for(var l=0;l<b.length;l++)_.ML(G,b[l],I,h,q);else h=_.Oj(h)?!!h.capture:!!h,I=mcz(I),gp(G)?G.unlisten(b,I,h,q):G&&(G=AK(G))&&(b=G.getListener(b,I,h,q))&&eA(b)};
eA=function(G){if(typeof G==="number"||!G||G.removed)return!1;var b=G.src;if(gp(b))return hTO(b.eventTargetListeners_,G);var I=G.type,h=G.proxy;b.removeEventListener?b.removeEventListener(I,h,G.capture):b.detachEvent?b.detachEvent(Dce(I),h):b.addListener&&b.removeListener&&b.removeListener(h);lpb--;(I=AK(b))?(hTO(I,G),I.typeCount_==0&&(I.src=null,b[qB5]=null)):b3W(G);return!0};
kFu=function(G,b,I,h,q){I=mcz(I);h=!!h;return gp(G)?G.getListener(b,I,h,q):G?(G=AK(G))?G.getListener(b,I,h,q):null:null};
Dce=function(G){return G in jjn?jjn[G]:jjn[G]="on"+G};
cCO=function(G,b){if(G.removed)G=!0;else{b=new _.sn(b,this);var I=G.listener,h=G.handler||G.src;G.callOnce&&eA(G);G=I.call(h,b)}return G};
AK=function(G){G=G[qB5];return G instanceof s8?G:null};
vzn="__closure_events_fn_"+(Math.random()*1E9>>>0);mcz=function(G){if(typeof G==="function")return G;G[vzn]||(G[vzn]=function(b){return G.handleEvent(b)});
return G[vzn]};_.Z$=function(){_.FN.call(this);this.eventTargetListeners_=new s8(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.OE(_.Z$,_.FN);_.Z$.prototype[X$b]=!0;_.m=_.Z$.prototype;_.m.setParentEventTarget=function(G){this.parentEventTarget_=G};
_.m.addEventListener=function(G,b,I,h){_.cv(this,G,b,I,h)};
_.m.removeEventListener=function(G,b,I,h){_.ML(this,G,b,I,h)};
_.m.dispatchEvent=function(G){var b,I=this.parentEventTarget_;if(I)for(b=[];I;I=I.parentEventTarget_)b.push(I);I=this.actualEventTarget_;var h=G.type||G;if(typeof G==="string")G=new _.Un(G,I);else if(G instanceof _.Un)G.target=G.target||I;else{var q=G;G=new _.Un(h,I);_.Cy.extend(G,q)}q=!0;var l;if(b)for(l=b.length-1;!G.propagationStopped_&&l>=0;l--){var V=G.currentTarget=b[l];q=L75(V,h,!0,G)&&q}G.propagationStopped_||(V=G.currentTarget=I,q=L75(V,h,!0,G)&&q,G.propagationStopped_||(q=L75(V,h,!1,G)&&
q));if(b)for(l=0;!G.propagationStopped_&&l<b.length;l++)V=G.currentTarget=b[l],q=L75(V,h,!1,G)&&q;return q};
_.m.disposeInternal=function(){_.Z$.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.m.listen=function(G,b,I,h){return this.eventTargetListeners_.add(String(G),b,!1,I,h)};
_.m.listenOnce=function(G,b,I,h){return this.eventTargetListeners_.add(String(G),b,!0,I,h)};
_.m.unlisten=function(G,b,I,h){return this.eventTargetListeners_.remove(String(G),b,I,h)};
_.m.removeAllListeners=function(G){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(G):0};
var L75=function(G,b,I,h){b=G.eventTargetListeners_.listeners[String(b)];if(!b)return!0;b=b.concat();for(var q=!0,l=0;l<b.length;++l){var V=b[l];if(V&&!V.removed&&V.capture==I){var D=V.listener,k=V.handler||V.src;V.callOnce&&hTO(G.eventTargetListeners_,V);q=D.call(k,h)!==!1&&q}}return q&&!h.defaultPrevented};
_.Z$.prototype.getListener=function(G,b,I,h){return this.eventTargetListeners_.getListener(String(G),b,I,h)};
_.Z$.prototype.hasListener=function(G,b){return this.eventTargetListeners_.hasListener(G!==void 0?String(G):void 0,b)};var tK=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(G){return G&&AsyncContext.Snapshot.wrap(G)}:function(G){return G};var QjX=function(G,b){this.create_=G;this.reset_=b;this.occupants_=0;this.JSC$9831_head_=null};
QjX.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var G=this.JSC$9831_head_;this.JSC$9831_head_=G.next;G.next=null}else G=this.create_();return G};
QjX.prototype.put=function(G){this.reset_(G);this.occupants_<100&&(this.occupants_++,G.next=this.JSC$9831_head_,this.JSC$9831_head_=G)};var xcA=function(){this.workTail_=this.workHead_=null};
xcA.prototype.add=function(G,b){var I=jNu.get();I.set(G,b);this.workTail_?this.workTail_.next=I:this.workHead_=I;this.workTail_=I};
xcA.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 jNu=new QjX(function(){return new fp5},function(G){return G.reset()}),fp5=function(){this.next=this.scope=this.fn=null};
fp5.prototype.set=function(G,b){this.fn=G;this.scope=b;this.next=null};
fp5.prototype.reset=function(){this.next=this.scope=this.fn=null};var Tyu,lUX,qGv,By5;lUX=!1;qGv=new xcA;_.zy=function(G,b){Tyu||By5();lUX||(Tyu(),lUX=!0);qGv.add(G,b)};
By5=function(){var G=Promise.resolve(void 0);Tyu=function(){G.then(m1v)}};var Uc5=function(G){G.prototype.$goog_Thenable=!0},sjO=function(G){if(!G)return!1;
try{return!!G.$goog_Thenable}catch(b){return!1}};var gzW,ACB,MkW,tke,zTi,ozW,yCJ,H3n,YB8,apn,fjO;_.MB=function(G,b){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(G!=_.sp)try{var I=this;G.call(b,function(h){I.resolve_(2,h)},function(h){I.resolve_(3,h)})}catch(h){this.resolve_(3,h)}};
gzW=function(){this.next=this.context=this.JSC$9842_onRejected=this.JSC$9842_onFulfilled=this.child=null;this.always=!1};
gzW.prototype.reset=function(){this.context=this.JSC$9842_onRejected=this.JSC$9842_onFulfilled=this.child=null;this.always=!1};
ACB=new QjX(function(){return new gzW},function(G){G.reset()});
MkW=function(G,b,I){var h=ACB.get();h.JSC$9842_onFulfilled=G;h.JSC$9842_onRejected=b;h.context=I;return h};
_.X8=function(G){if(G instanceof _.MB)return G;var b=new _.MB(_.sp);b.resolve_(2,G);return b};
_.vv=function(G){return new _.MB(function(b,I){I(G)})};
tke=function(G,b,I){Z35(G,b,I,null)||_.zy(_.l9(b,G))};
_.oT=function(G){return new _.MB(function(b,I){var h=G.length,q=[];if(h)for(var l=function(L,x){h--;q[L]=x;h==0&&b(q)},V=function(L){I(L)},D,k=0;k<G.length;k++)D=G[k],tke(D,_.l9(l,k),V);
else b(q)})};
zTi=function(G){return new _.MB(function(b){var I=G.length,h=[];if(I)for(var q=function(D,k,L){I--;h[D]=k?{fulfilled:!0,value:L}:{fulfilled:!1,reason:L};I==0&&b(h)},l,V=0;V<G.length;V++)l=G[V],tke(l,_.l9(q,V,!0),_.l9(q,V,!1));
else b(h)})};
ozW=function(G){return new _.MB(function(b,I){var h=G.length,q=[];if(h)for(var l=function(L){b(L)},V=function(L,x){h--;
q[L]=x;h==0&&I(q)},D,k=0;k<G.length;k++)D=G[k],tke(D,l,_.l9(V,k));
else b(void 0)})};
_.yO=function(){var G,b,I=new _.MB(function(h,q){G=h;b=q});
return new i3X(I,G,b)};
_.MB.prototype.then=function(G,b,I){return PMi(this,tK(typeof G==="function"?G:null),tK(typeof b==="function"?b:null),I)};
Uc5(_.MB);yCJ=function(G,b,I,h){dcQ(G,MkW(b||_.sp,I||null,h))};
_.i1=function(G,b){b=tK(b);b=MkW(b,b);b.always=!0;dcQ(G,b);return G};
_.MB.prototype.finally=function(G){var b=this;G=tK(G);return new _.MB(function(I,h){yCJ(b,function(q){G();I(q)},function(q){G();
h(q)})})};
_.MB.prototype.thenCatch=function(G,b){return PMi(this,null,tK(G),b)};
_.MB.prototype.catch=_.MB.prototype.thenCatch;_.MB.prototype.cancel=function(G){if(this.state_==0){var b=new _.zI(G);_.zy(function(){rCO(this,b)},this)}};
var rCO=function(G,b){if(G.state_==0)if(G.parent_){var I=G.parent_;if(I.callbackEntries_){for(var h=0,q=null,l=null,V=I.callbackEntries_;V&&(V.always||(h++,V.child==G&&(q=V),!(q&&h>1)));V=V.next)q||(l=V);q&&(I.state_==0&&h==1?rCO(I,b):(l?(h=l,h.next==I.callbackEntriesTail_&&(I.callbackEntriesTail_=h),h.next=h.next.next):F78(I),H3n(I,q,3,b)))}G.parent_=null}else G.resolve_(3,b)},dcQ=function(G,b){G.callbackEntries_||G.state_!=2&&G.state_!=3||W7B(G);
G.callbackEntriesTail_?G.callbackEntriesTail_.next=b:G.callbackEntries_=b;G.callbackEntriesTail_=b},PMi=function(G,b,I,h){var q=MkW(null,null,null);
q.child=new _.MB(function(l,V){q.JSC$9842_onFulfilled=b?function(D){try{var k=b.call(h,D);l(k)}catch(L){V(L)}}:l;
q.JSC$9842_onRejected=I?function(D){try{var k=I.call(h,D);k===void 0&&D instanceof _.zI?V(D):l(k)}catch(L){V(L)}}:V});
q.child.parent_=G;dcQ(G,q);return q.child};
_.MB.prototype.unblockAndFulfill_=function(G){this.state_=0;this.resolve_(2,G)};
_.MB.prototype.unblockAndReject_=function(G){this.state_=0;this.resolve_(3,G)};
_.MB.prototype.resolve_=function(G,b){this.state_==0&&(this===b&&(G=3,b=new TypeError("xa")),this.state_=1,Z35(b,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=b,this.state_=G,this.parent_=null,W7B(this),G!=3||b instanceof _.zI||apn(this,b)))};
var Z35=function(G,b,I,h){if(G instanceof _.MB)return yCJ(G,b,I,h),!0;if(sjO(G))return G.then(b,I,h),!0;if(_.Oj(G))try{var q=G.then;if(typeof q==="function")return Nye(G,q,b,I,h),!0}catch(l){return I.call(h,l),!0}return!1},Nye=function(G,b,I,h,q){var l=!1,V=function(k){l||(l=!0,I.call(q,k))},D=function(k){l||(l=!0,h.call(q,k))};
try{b.call(G,V,D)}catch(k){D(k)}},W7B=function(G){G.executing_||(G.executing_=!0,_.zy(G.executeCallbacks_,G))},F78=function(G){var b=null;
G.callbackEntries_&&(b=G.callbackEntries_,G.callbackEntries_=b.next,b.next=null);G.callbackEntries_||(G.callbackEntriesTail_=null);return b};
_.MB.prototype.executeCallbacks_=function(){for(var G;G=F78(this);)H3n(this,G,this.state_,this.result_);this.executing_=!1};
H3n=function(G,b,I,h){if(I==3&&b.JSC$9842_onRejected&&!b.always)for(;G&&G.hadUnhandledRejection_;G=G.parent_)G.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,YB8(b,I,h);else try{b.always?b.JSC$9842_onFulfilled.call(b.context):YB8(b,I,h)}catch(q){fjO.call(null,q)}ACB.put(b)};
YB8=function(G,b,I){b==2?G.JSC$9842_onFulfilled.call(G.context,I):G.JSC$9842_onRejected&&G.JSC$9842_onRejected.call(G.context,I)};
apn=function(G,b){G.hadUnhandledRejection_=!0;_.zy(function(){G.hadUnhandledRejection_&&fjO.call(null,b)})};
fjO=qr;_.zI=function(G){_.bs.call(this,G)};
_.OE(_.zI,_.bs);_.zI.prototype.name="cancel";var i3X=function(G,b,I){this.promise=G;this.resolve=b;this.reject=I};var PZ;_.Tb=function(G,b){_.Z$.call(this);this.JSC$9854_interval_=G||1;this.timerObject_=b||_.hd;this.boundTick_=(0,_.Hr)(this.tick_,this);this.last_=_.nW()};
_.OE(_.Tb,_.Z$);_.m=_.Tb.prototype;_.m.enabled=!1;_.m.JSC$9856_timer_=null;_.m.setInterval=function(G){this.JSC$9854_interval_=G;this.JSC$9856_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9856_timer_&&this.stop()};
_.m.tick_=function(){if(this.enabled){var G=_.nW()-this.last_;G>0&&G<this.JSC$9854_interval_*.8?this.JSC$9856_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9854_interval_-G):(this.JSC$9856_timer_&&(this.timerObject_.clearTimeout(this.JSC$9856_timer_),this.JSC$9856_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.m.start=function(){this.enabled=!0;this.JSC$9856_timer_||(this.JSC$9856_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9854_interval_),this.last_=_.nW())};
_.m.stop=function(){this.enabled=!1;this.JSC$9856_timer_&&(this.timerObject_.clearTimeout(this.JSC$9856_timer_),this.JSC$9856_timer_=null)};
_.m.disposeInternal=function(){_.Tb.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
PZ=function(G,b,I){if(typeof G==="function")I&&(G=(0,_.Hr)(G,I));else if(G&&typeof G.handleEvent=="function")G=(0,_.Hr)(G.handleEvent,G);else throw Error("ya");return Number(b)>2147483647?-1:_.hd.setTimeout(G,b||0)};
_.CMn=function(G){var b=null;return(new _.MB(function(I,h){b=PZ(function(){I(void 0)},G);
b==-1&&h(Error("za"))})).thenCatch(function(I){_.hd.clearTimeout(b);
throw I;})};var ZC=function(G){_.FN.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$9860_flushTimer=new _.Tb(this.flushInterval);this.JSC$9860_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.M2(this,this.JSC$9860_flushTimer)};
_.M(ZC,_.FN);ZC.prototype.sendIsolatedPayload=function(G){this.shouldSendIsolatedPayload=G;this.invocationLimit=1};
var JCJ=function(G){G.JSC$9860_flushTimer.enabled||G.JSC$9860_flushTimer.start();G.invocationCount++;G.invocationCount>=G.invocationLimit&&G.snapshotAndFlush()};
ZC.prototype.snapshotAndFlush=function(){var G=this.metricMap.values();G=[].concat(_.Nz(G)).filter(function(b){return b.cellMap.size});
G.length&&this.streamzLogger.flush(G,this.shouldSendIsolatedPayload);K78(G);this.invocationCount=0;this.JSC$9860_flushTimer.enabled&&this.JSC$9860_flushTimer.stop()};
ZC.prototype.addNewCounter=function(G){var b=_.RI.apply(1,arguments);this.metricMap.has(G)||this.metricMap.set(G,new p$B(G,b))};
ZC.prototype.addNewEventMetric=function(G){var b=_.RI.apply(1,arguments);this.metricMap.has(G)||this.metricMap.set(G,new SMO(G,b))};
var ujn=function(G,b){return G.disabledMetrics.has(b)?void 0:G.metricMap.get(b)};
ZC.prototype.JSC$9860_incrementCounter=function(G){this.JSC$9860_incrementCounterBy(G,1,_.RI.apply(1,arguments))};
ZC.prototype.JSC$9860_incrementCounterBy=function(G,b){var I=_.RI.apply(2,arguments),h=ujn(this,G);h&&h instanceof p$B&&(h.JSC$9799_incrementCounterBy(b,I),JCJ(this))};
ZC.prototype.record=function(G,b){var I=_.RI.apply(2,arguments),h=ujn(this,G);h&&h instanceof SMO&&(h.record(b,I),JCJ(this))};
var K78=function(G){for(var b=0;b<G.length;b++)G[b].clear()};_.dp=function(G,b,I){I=I===void 0?{}:I;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=G;this.metadata=I;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.M(_.dp,Error);_.dp.prototype.toString=function(){var G="RpcError("+(VOX(this.code)||String(this.code))+")";this.message&&(G+=": "+this.message);return G};_.RTJ=_.hd.JSON.parse;_.yP=_.hd.JSON.stringify;_.xc=_.hd.JSON.parse;_.nzA=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 O3W=function(G){switch(G){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var w38,Ez5=function(){};
_.OE(Ez5,_.D1O);Ez5.prototype.createInstance=function(){return new XMLHttpRequest};
w38=new Ez5;_.rp=function(G){_.Z$.call(this);this.headers=new Map;this.JSC$9869_xmlHttpFactory_=G||null;this.JSC$9869_active_=!1;this.JSC$9869_xhr_=null;this.JSC$9869_lastUri_="";this.JSC$9869_lastErrorCode_=0;this.JSC$9869_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9869_timeoutId_=null;this.responseType_="";this.JSC$9869_withCredentials_=!1};
_.OE(_.rp,_.Z$);var p3W=/^https?$/i,SBb=["POST","PUT"],X3O=[],Rap=function(G,b,I,h,q,l,V){var D=new _.rp;X3O.push(D);b&&D.listen("complete",b);D.listenOnce("ready",D.cleanupSend_);l&&(D.timeoutInterval_=Math.max(0,l));V&&(D.JSC$9869_withCredentials_=V);D.send(G,I,h,q)};
_.rp.prototype.cleanupSend_=function(){this.dispose();_.CO(X3O,this)};
_.rp.prototype.send=function(G,b,I,h){if(this.JSC$9869_xhr_)throw Error("Aa`"+this.JSC$9869_lastUri_+"`"+G);b=b?b.toUpperCase():"GET";this.JSC$9869_lastUri_=G;this.JSC$9869_lastError_="";this.JSC$9869_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9869_active_=!0;this.JSC$9869_xhr_=this.createXhr();this.JSC$9869_xhr_.onreadystatechange=tK((0,_.Hr)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9869_xhr_.open(b,String(G),!0),this.inOpen_=!1}catch(V){$1n(this,V);return}G=I||"";I=new Map(this.headers);
if(h)if(Object.getPrototypeOf(h)===Object.prototype)for(var q in h)I.set(q,h[q]);else if(typeof h.keys==="function"&&typeof h.get==="function"){q=_.e(h.keys());for(var l=q.next();!l.done;l=q.next())l=l.value,I.set(l,h.get(l))}else throw Error("Ba`"+String(h));h=Array.from(I.keys()).find(function(V){return"content-type"==V.toLowerCase()});
q=_.hd.FormData&&G instanceof _.hd.FormData;!_.Ya(SBb,b)||h||q||I.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=_.e(I);for(h=b.next();!h.done;h=b.next())I=_.e(h.value),h=I.next().value,I=I.next().value,this.JSC$9869_xhr_.setRequestHeader(h,I);this.responseType_&&(this.JSC$9869_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9869_xhr_&&this.JSC$9869_xhr_.withCredentials!==this.JSC$9869_withCredentials_&&(this.JSC$9869_xhr_.withCredentials=this.JSC$9869_withCredentials_);
try{this.JSC$9869_timeoutId_&&(clearTimeout(this.JSC$9869_timeoutId_),this.JSC$9869_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9869_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9869_xhr_.send(G),this.inSend_=!1}catch(V){$1n(this,V)}};
_.rp.prototype.createXhr=function(){return this.JSC$9869_xmlHttpFactory_?this.JSC$9869_xmlHttpFactory_.createInstance():w38.createInstance()};
_.rp.prototype.timeout_=function(){typeof vab!="undefined"&&this.JSC$9869_xhr_&&(this.JSC$9869_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9869_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var $1n=function(G,b){G.JSC$9869_active_=!1;G.JSC$9869_xhr_&&(G.inAbort_=!0,G.JSC$9869_xhr_.abort(),G.inAbort_=!1);G.JSC$9869_lastError_=b;G.JSC$9869_lastErrorCode_=5;Geb(G);bLO(G)},Geb=function(G){G.errorDispatched_||(G.errorDispatched_=!0,G.dispatchEvent("complete"),G.dispatchEvent("error"))};
_.rp.prototype.abort=function(G){this.JSC$9869_xhr_&&this.JSC$9869_active_&&(this.JSC$9869_active_=!1,this.inAbort_=!0,this.JSC$9869_xhr_.abort(),this.inAbort_=!1,this.JSC$9869_lastErrorCode_=G||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),bLO(this))};
_.rp.prototype.disposeInternal=function(){this.JSC$9869_xhr_&&(this.JSC$9869_active_&&(this.JSC$9869_active_=!1,this.inAbort_=!0,this.JSC$9869_xhr_.abort(),this.inAbort_=!1),bLO(this,!0));_.rp.superClass_.disposeInternal.call(this)};
_.rp.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)IUu(this);else this.onReadyStateChangeEntryPoint_()};
_.rp.prototype.onReadyStateChangeEntryPoint_=function(){IUu(this)};
var IUu=function(G){if(G.JSC$9869_active_&&typeof vab!="undefined")if(G.inSend_&&_.F7(G)==4)setTimeout(G.onReadyStateChange_.bind(G),0);else if(G.dispatchEvent("readystatechange"),G.isComplete()){G.JSC$9869_active_=!1;try{if(G.isSuccess())G.dispatchEvent("complete"),G.dispatchEvent("success");else{G.JSC$9869_lastErrorCode_=6;try{var b=_.F7(G)>2?G.JSC$9869_xhr_.statusText:""}catch(I){b=""}G.JSC$9869_lastError_=b+" ["+G.getStatus()+"]";Geb(G)}}finally{bLO(G)}}},bLO=function(G,b){if(G.JSC$9869_xhr_){G.JSC$9869_timeoutId_&&
(clearTimeout(G.JSC$9869_timeoutId_),G.JSC$9869_timeoutId_=null);
var I=G.JSC$9869_xhr_;G.JSC$9869_xhr_=null;b||G.dispatchEvent("ready");try{I.onreadystatechange=null}catch(h){}}};
_.rp.prototype.isActive=function(){return!!this.JSC$9869_xhr_};
_.rp.prototype.isComplete=function(){return _.F7(this)==4};
_.rp.prototype.isSuccess=function(){var G=this.getStatus(),b;if(!(b=O3W(G))){if(G=G===0)G=m28(String(this.JSC$9869_lastUri_)),G=!p3W.test(G);b=G}return b};
_.F7=function(G){return G.JSC$9869_xhr_?G.JSC$9869_xhr_.readyState:0};
_.m=_.rp.prototype;_.m.getStatus=function(){try{return _.F7(this)>2?this.JSC$9869_xhr_.status:-1}catch(G){return-1}};
_.m.getResponseText=function(){try{return this.JSC$9869_xhr_?this.JSC$9869_xhr_.responseText:""}catch(G){return""}};
_.m.getResponse=function(){try{if(!this.JSC$9869_xhr_)return null;if("response"in this.JSC$9869_xhr_)return this.JSC$9869_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9869_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9869_xhr_)return this.JSC$9869_xhr_.mozResponseArrayBuffer}return null}catch(G){return null}};
_.m.getAllResponseHeaders=function(){return this.JSC$9869_xhr_&&_.F7(this)>=2?this.JSC$9869_xhr_.getAllResponseHeaders()||"":""};
_.m.getLastError=function(){return typeof this.JSC$9869_lastError_==="string"?this.JSC$9869_lastError_:String(this.JSC$9869_lastError_)};var LEX=function(){};
LEX.prototype.send=function(G,b,I){b=b===void 0?function(){}:b;
I=I===void 0?function(){}:I;
Rap(G.url,function(h){h=h.target;h.isSuccess()?b(h.getResponseText()):I(h.getStatus())},G.requestType,G.body,G.requestHeaders,G.timeoutMillis,G.withCredentials)};
LEX.prototype.getTransmissionType=function(){return 1};var hpO=function(G,b){this.qfN=G;this.event=b;this.startTime=t2()},U1r;
hpO.prototype.done=function(){this.qfN.qT(this.event,t2()-this.startTime)};
var HZ=function(){eg.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.M(HZ,eg);_.WZ=function(G,b,I){var h=t2();b=b();G.qT(I,t2()-h);return b};
U1r=function(){HZ.apply(this,arguments)};
_.M(U1r,HZ);_.m=U1r.prototype;_.m.mbp=function(){};
_.m.rn=function(){};
_.m.qT=function(){};
_.m.logError=function(){};
_.m.xN=function(){};
_.m.xNv=function(){};
_.m.zQz=function(){};
_.m.dNF=function(){};
var qGB=function(G){HZ.call(this);var b=this;this.tO=G;this.TEST_ONLY={wrX:function(){return b.tO},
getExperimentIds:function(){return b.tO.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void b.tO.dispose()})};
_.M(qGB,HZ);_.m=qGB.prototype;_.m.update=function(G){this.tO.dispose();this.tO=G};
_.m.rn=function(G){this.tO.rn(G)};
_.m.qT=function(G,b){this.tO.qT(G,b)};
_.m.logError=function(G){this.tO.logError(G)};
_.m.xN=function(){this.tO.xN()};
_.m.xNv=function(G){this.tO.xNv(G)};
_.m.zQz=function(G){this.tO.zQz(G)};
_.m.dNF=function(G){this.tO.dNF(G)};
_.m.mbp=function(G){this.tO.mbp(G)};
var jNi=function(G,b){_.FN.call(this);var I=this;this.callback=G;this.nhn=b;this.nMJ=-b;this.addOnDisposeCallback(function(){return void clearTimeout(I.timer)})};
_.M(jNi,_.FN);var lUz=function(G){if(G.timer===void 0){var b=Math.max(0,G.nMJ+G.nhn-t2());G.timer=setTimeout(function(){try{G.callback()}finally{G.nMJ=t2(),G.timer=void 0}},b)}},m1B=function(G,b){HZ.call(this);
this.metrics=G;this.y6=b};
_.M(m1B,HZ);_.m=m1B.prototype;_.m.mbp=function(G){this.metrics.t4R.record(G,this.y6)};
_.m.rn=function(G){this.metrics.eventCount.increment(G,this.y6)};
_.m.qT=function(G,b){this.metrics.zHT.record(b,G,this.y6)};
_.m.logError=function(G){this.metrics.errorCount.increment(G,this.y6)};
_.m.xNv=function(G){this.metrics.axt.increment(G,this.y6)};
_.m.zQz=function(G){this.metrics.lJQ.increment(G,this.y6)};
_.m.dNF=function(G){this.metrics.xEu.increment(G,this.y6)};
var sN2=function(G,b){b=b===void 0?[]:b;var I={y6:G.y6||"_",pVp:G.pVp||[],ggK:G.ggK|0,destinationUrl:G.destinationUrl,mOv:G.mOv||function(){},
mIb:G.mIb||function(l,V){return BiX(l,V,I.mOv,I.destinationUrl)}},h=I.mIb("51",I.pVp.concat(b));
m1B.call(this,{t4R:new KFz(h),errorCount:new OTA(h),eventCount:new R8n(h),zHT:new nue(h),wkR:new uNA(h),axt:new wrO(h),lJQ:new EuQ(h),xEu:new prB(h)},I.y6);var q=this;this.TEST_ONLY={getExperimentIds:function(){return q.options.pVp.concat(q.m3t).sort(function(l,V){return l-V})}};
this.options=I;this.service=h;this.gGP=!G.mIb;this.flushDebouncer=new jNi(function(){return void q.service.snapshotAndFlush()},I.ggK);
this.addOnDisposeCallback(function(){q.flushDebouncer.dispose();q.gGP&&q.service.dispose()});
(this.m3t=b.slice()).sort(_.FpO)};
_.M(sN2,m1B);sN2.prototype.xN=function(){lUz(this.flushDebouncer)};var OuX=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(OuX,_.eo);_.w1p=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(_.w1p,_.eo);var dc=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G,0,dc.messageId)};
_.M(dc,_.eo);var epX=_.nIv(dc);dc.messageId="bfkj";var O3B=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(O3B,_.eo);var VOz=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(VOz,_.eo);var D1Q=_.Az(VOz);_.G9=function(){var G=this;this.promise=new Promise(function(b,I){G.resolve=b;G.reject=I})};_.aT=function(G){_.FN.call(this);var b=this;this.dn3=Math.floor(Math.random()*200);this.fRV=new VOz;if("challenge"in G&&epX(G.challenge)){var I=_.U5(G.challenge,4,void 0,FJ);var h=_.U5(G.challenge,5,void 0,FJ);_.U5(G.challenge,7,void 0,FJ)&&(this.fRV=D1Q(_.U5(G.challenge,7,void 0,FJ)))}else I=G.program,h=G.globalName;this.addOnDisposeCallback(function(){var A,t,y;return _.c(function(F){if(F.nextAddress==1)return F.yield(b.abz,2);A=F.yieldResult;t=A.uMk;(y=t)==null||y();_.ip(F)})});
this.zS=gWO(G.aKh||{},this.fRV);_.M2(this,this.zS);var q=new _.G9;this.abz=q.promise;this.zS.rn("t");var l=this.zS.share(),V=new hpO(l,"t"),D=function(A,t,y,F){if(!b.zS.isDisposed()){var W="k";t?W="h":y&&(W="u");W!=="k"?F!==0&&(b.zS.rn(W),b.zS.qT(W,A)):b.dn3<=0?(b.zS.rn(W),b.zS.qT(W,A),b.dn3=Math.floor(Math.random()*200)):b.dn3--}},k=function(A,t,y,F){Promise.resolve().then(function(){V.done();
l.xN();l.dispose();q.resolve({mWz:A,uMk:t,egI:y,d6P:F})})};
if(!_.hd[h])throw this.zS.logError(25),Error("Ca");if(!_.hd[h].a)throw this.zS.logError(26),Error("Da");try{var L=_.hd[h].a;h=[];for(var x=[],f=w3r(this.fRV),T=0;T<f.length;T++)h.push(f[T]),x.push(1);var B=Ezd(this.fRV);for(f=0;f<B.length;f++)h.push(B[f]),x.push(2);this.r4X=_.e(L(I,k,!0,G.wyD,D,[h,x],_.U5(this.fRV,5),!1)).next().value;this.qhz=q.promise.then(function(){})}catch(A){throw this.zS.logError(28),A;
}};
_.M(_.aT,_.FN);_.aT.prototype.snapshot=function(G){if(this.isDisposed())throw Error("Ea");this.zS.rn("n");var b=this.zS.share();return this.abz.then(function(I){var h=I.mWz;return new Promise(function(q){var l=new hpO(b,"n");h(function(V){l.done();b.mbp(V.length);b.xN();b.dispose();q(V)},[G.fQ,
G.rGV,G.e9a,G.cyC])})})};
_.aT.prototype.pUJ=function(G){this.abz.then(function(b){var I;(I=b.egI)==null||I(G)})};
_.aT.prototype.nDJ=function(G,b){return this.abz.then(function(I){var h;return(h=I.d6P)==null?void 0:h(G,b,!1)})};
_.aT.prototype.oph=function(){return this.zS.share()};var cB8=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(cB8,_.eo);var xhq=_.nIv(cB8);var ken=function(){this.promises={};this.pZJ=null},vWe=function(){ken.instance||(ken.instance=new ken);
return ken.instance},QNn=function(G,b){return LEz(G,_.fi(b,OuX,1,FJ),_.fi(b,_.w1p,2,FJ),_.U5(b,3,void 0,FJ))},LEz=function(G,b,I,h){if(!b&&!I)return Promise.resolve();
if(!h)return zpd(b,I);var q;(q=G.promises)[h]||(q[h]=new Promise(function(l,V){zpd(b,I).then(function(){G.pZJ=h;l()},function(D){delete G.promises[h];
V(D)})}));
return G.promises[h]};var x1B=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(x1B,_.eo);var fUA=function(G,b){return _.yq(G,1,b)},Tib=function(G,b){return _.yq(G,2,b)};var NL=function(G){_.FN.call(this);var b=this;this.options=G;this.pdA=new _.G9;this.qhz=this.pdA.promise;this.lcG=new _.G9;this.d8h=1;this.hTz=new _.G9;this.jJu=[];this.s7G=G.s7G||function(){};
this.xXQ=new qGB(gWO(G.aKh||{}));Biz(this,G.aq,G.lvt,G.cJk,G.wu9,Object.assign({},U18,G.eiv||{}));this.addOnDisposeCallback(function(){return void sNX(b)})};
_.M(NL,_.FN);NL.prototype.snapshot=function(G){var b=this;return _.c(function(I){switch(I.nextAddress){case 1:if(b.isDisposed())throw Error("Ea");if(b.uP||b.exW){I.jumpTo(2);break}return I.yield(b.lcG.promise,2);case 2:if(!b.uP){I.jumpTo(4);break}return I.yield(b.uP.snapshot(G),5);case 5:return I.return(I.yieldResult);case 4:throw b.exW;}})};
var gWQ=function(G){var b;return _.c(function(I){if(G.isDisposed())throw Error("Ea");(b=G.eM)!=null&&(b.endTimeMs=0,b.resolver(1));return I.yield(G.hTz.promise,0)})},sNX=function(G){G.exW=Error("Ga");
G.lcG.resolve();p3B(G.pdA.promise);G.pdA.reject(Error("Ga"));G.xXQ.dispose();Promise.all(G.jJu).then(function(){var I;return _.c(function(h){(I=G.uP)==null||I.dispose();G.uP=void 0;_.ip(h)})});
G.jJu=[];var b;(b=G.eM)!=null&&(b.endTimeMs=0,b.resolver(1));p3B(G.hTz.promise);G.hTz.reject(Error("Ga"))};
NL.prototype.pUJ=function(G){var b,I;(b=this.uP)==null||(I=b.pUJ)==null||I.call(b,G)};
NL.prototype.nDJ=function(G,b){var I,h,q;return(q=(I=this.uP)==null?void 0:(h=I.nDJ)==null?void 0:h.call(I,G,b))!=null?q:Promise.resolve()};
var ABA=function(G,b){var I=G.s7G;G.s7G=function(){I();b()}},MO8=function(G,b){G.isDisposed()||(G.uP=b,G.xXQ.update(b.oph()),G.lcG.resolve(),G.pdA.resolve(void 0),G.s7G())};
NL.prototype.handleError=function(G){if(!this.isDisposed()){this.exW=G;this.lcG.resolve();var b,I;(I=(b=this.options).zOu)==null||I.call(b,G)}};
var ZLz=function(G,b){b&&(Promise.all(G.jJu).then(function(){return void b.dispose()}),G.jJu=[])},Y1=function(G,b){G.d8h=b;
var I,h;(h=(I=G.options).jwt)==null||h.call(I,b)},tOX=function(G){G.isDisposed()||(G.hTz.resolve(),G.hTz=new _.G9)},Biz=function(G,b,I,h,q,l){h=h===void 0?vWe():h;
q=q===void 0?Promise.resolve(void 0):q;var V,D,k,L,x,f,T,B,A,t,y,F;_.c(function(W){switch(W.nextAddress){case 1:return W.yield(0,3);case 3:D=null;if(!V){W.jumpTo(6);break}Y1(G,7);_.gm(W,7);return W.yield(dk(V.snapshot({}),l.t6L,function(){return Promise.resolve("E:CTO")}),9);
case 9:D=W.yieldResult;_.hF(W,6);break;case 7:_.zf(W),D="E:UCE";case 6:k=void 0,L=V?l.jcT:l.tbx,x=new Br(L,l.gb5,l.iIa,l.k0z),f=1;case 10:if(!(f<=l.maxAttempts)){W.jumpTo(12);break}if(f===1){W.jumpTo(13);break}Y1(G,0);G.eM=new zp5(x.getValue(),l.pbr,l.b3r);return W.yield(G.eM.promise,14);case 14:T=W.yieldResult,G.eM=void 0,T===1?(f=1,x.reset()):Nve(x);case 13:_.gm(W,15);B=void 0;if(I){B=I;W.jumpTo(17);break}Y1(G,5);A=h.pZJ;return W.yield(dk(oWb(b,A,D),l.etQ,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:B=W.yieldResult;case 17:return Y1(G,3),W.yield(dk(QNn(h,B),l.f6D,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return Y1(G,8),W.yield(q,20);case 20:return t=new _.aT({challenge:B,aKh:G.options.aKh,wyD:G.options.wyD}),W.yield(dk(t.qhz,l.fMI,function(){return Promise.reject(Error("Ja"))}),21);
case 21:k=t;W.jumpTo(12);break;case 15:y=_.zf(W),G.handleError(y),tOX(G);case 11:f++;W.jumpTo(10);break;case 12:if(G.isDisposed()){W.jumpTo(5);break}k&&(I=void 0,ZLz(G,V),V=k,MO8(G,k),tOX(G));Y1(G,2);G.eM=new zp5(l.ijL,l.pbr,l.b3r);return W.yield(G.eM.promise,22);case 22:G.eM=void 0;if(G.isDisposed()){W.jumpTo(5);break}W.jumpTo(3);break;case 5:(F=V)==null||F.dispose(),_.ip(W)}})};
NL.prototype.oph=function(){return this.xXQ.share()};
var U18={ijL:432E5,pbr:3E5,b3r:10,t6L:1E4,etQ:3E4,f6D:3E4,fMI:6E4,tbx:1E3,jcT:6E4,gb5:6E5,iIa:.25,k0z:2,maxAttempts:10},zp5=function(G,b,I){var h=this;this.endTimeMs=Date.now()+G;this.promise=new Promise(function(l){h.resolver=l});
var q=function(){var l=h.endTimeMs-Date.now();l<=I?h.resolver(0):setTimeout(q,Math.min(l,b))};
q()};var iLn,PBp=(iLn=Math.imul)!=null?iLn:function(G,b){return G*b|0},yQ=[196,
200,224,18],C4=function(G,b,I){I=I===void 0?[]:I;this.maxItems=G;this.ql=b===void 0?0:b;this.yP=I},PBO=function(G){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!b)return new C4(G);var I=b.split(",");if(I.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new C4(G);b=I.slice(1);b.length===1&&b[0]===""&&(b=[]);I=Number(I[0]);return isNaN(I)||I<0||I>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new C4(G)):new C4(G,I,b)};
C4.prototype.serialize=function(){return String(this.ql)+","+this.yP.join()};
C4.prototype.insert=function(G,b){var I=void 0;if(this.yP[this.ql]!==G){var h=this.yP.indexOf(G);h!==-1?(this.yP.splice(h,1),h<this.ql&&this.ql--,this.yP.splice(this.ql,0,G)):(I=this.yP[this.ql],this.yP[this.ql]=G)}this.ql=(this.ql+1)%this.maxItems;G=oWa("iU5q-!O9@$",this.serialize());I&&G&&b(I);return G};
var d1b=function(G,b){this.qwv=b;try{var I=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(h){I=!1}I&&(this.index=PBO(G))},yBi=function(G,b,I,h,q){var l=G.index?_.WZ(G.qwv,function(){return FE2(G.index,yBu(b),I,h,q)},"W"):"u";
G.qwv.dNF(l)},rBz=function(G,b,I){var h=_.e(G.index?_.WZ(G.qwv,function(){return HLj(yBu(b),I)},"R"):["u"]),q=h.next().value;
h=h.next().value;G.qwv.zQz(q);return h};var FEX={toString:function(G){var b=[],I=0;G-=-2147483648;b[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(G%52);for(G=Math.floor(G/52);G>0;)b[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(G%62),G=Math.floor(G/62);return b.join("")}};var aUW=function(G){G=HLu(G);for(var b=2654435769,I=2654435769,h=314159265,q=G.length,l=q,V=0,D=function(){b-=I;b-=h;b^=h>>>13;I-=h;I-=b;I^=b<<8;h-=b;h-=I;h^=I>>>13;b-=I;b-=h;b^=h>>>12;I-=h;I-=b;I^=b<<16;h-=b;h-=I;h^=I>>>5;b-=I;b-=h;b^=h>>>3;I-=h;I-=b;I^=b<<10;h-=b;h-=I;h^=I>>>15};l>=12;l-=12,V+=12)b+=WE8(G,V),I+=WE8(G,V+4),h+=WE8(G,V+8),D();
h+=q;switch(l){case 11:h+=G[V+10]<<24;case 10:h+=G[V+9]<<16;case 9:h+=G[V+8]<<8;case 8:I+=G[V+7]<<24;case 7:I+=G[V+6]<<16;case 6:I+=G[V+5]<<8;case 5:I+=G[V+4];case 4:b+=G[V+3]<<24;case 3:b+=G[V+2]<<16;case 2:b+=G[V+1]<<8;case 1:b+=G[V]}D();return FEX.toString(h)},HLu=function(G){for(var b=[],I=0;I<G.length;I++)b.push(G.charCodeAt(I));
return b},WE8=function(G,b){return G[b]+(G[b+1]<<8)+(G[b+2]<<16)+(G[b+3]<<24)};var JK=function(G){_.FN.call(this);this.nH=G;this.jJC=new _.G9};
_.M(JK,_.FN);var NiO=function(G,b){var I=setTimeout(function(){G.jJC.resolve()},b);
G.addOnDisposeCallback(function(){return void clearTimeout(I)})};
JK.prototype.moQ=function(G,b){var I=this.am(G);b==null||b(I);return _.WZ(this.nH,function(){return _.WL(I,2)},this.deI)};
var YGb=function(G,b,I,h){return _.WZ(G.nH,function(){return I?G.moQ(b,h):G.am(b,h)},G.wCu)},CBO=function(G,b,I,h){JK.call(this,G);
this.k8n=b;this.tFc=I;this.wCu="m";this.deI="x";this.jTX=0;NiO(this,h)};
_.M(CBO,JK);CBO.prototype.am=function(G,b){var I=this;this.nH.rn(this.wCu);++this.jTX>=this.tFc&&this.jJC.resolve();var h=G();G=_.WZ(this.nH,function(){return I.k8n(h)},"C");
if(G===void 0)throw new l1(17,"YNJ:Undefined");if(!(G instanceof Uint8Array))throw new l1(18,"ODM:Invalid");b==null||b(G);return G};
var JBQ=function(G,b,I){JK.call(this,G);this.tNz=b;this.wCu="f";this.deI="z";NiO(this,I)};
_.M(JBQ,JK);JBQ.prototype.am=function(){return this.tNz};
var KEJ=function(G,b,I){JK.call(this,G);this.pDz=b;this.wCu="w";this.deI="z";NiO(this,I)};
_.M(KEJ,JK);KEJ.prototype.am=function(){var G=this;return _.WZ(this.nH,function(){return _.Sv(G.pDz)},"d")};
KEJ.prototype.moQ=function(){return this.pDz};
var uU8=function(G,b){JK.call(this,G);this.error=b;this.wCu="e";this.deI="y"};
_.M(uU8,JK);var RpB=function(G,b){var I=(b(G.error.message)+":"+b(G.error.stack)).substring(0,2048);b=I.length+1;I=WEr(I);var h=new Uint8Array(4+I.length);h.set([42,b&127|128,b>>7,G.error.code]);h.set(I,4);return h};
uU8.prototype.am=function(){if(this.nz8)return this.nz8;this.nz8=RpB(this,function(G){return"_"+aUW(G)});
return RpB(this,function(G){return G})};
var nWb=function(G,b,I){JK.call(this,G);this.ckz=b;this.clientState=I;this.wCu="S";this.deI="q"};
_.M(nWb,JK);nWb.prototype.am=function(){var G=Math.floor(Date.now()/1E3),b=[Math.random()*255,Math.random()*255],I=b.concat([this.ckz&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 h=b=b.length;h<I.length;++h)I[h]^=I[h%b];this.nH.xNv(this.clientState);return G};var OLQ={htT:3E4,gvu:2E4},u1=function(G){_.FN.call(this);var b=this;this.i5F=new _.G9;this.tFW=0;this.mZ=void 0;this.state=2;this.vm=G.vm;this.aq=G.aq;this.eiv=Object.assign({},OLQ,G.eiv||{});this.bq=G.vm.oph();var I;this.onError=(I=G.onError)!=null?I:function(){};
this.hSK=G.hSK||!1;if(wfb(G)){var h=this.vm;this.q2T=function(){return gWQ(h).catch(function(V){V=b.reportError(new l1(b.iR?20:32,"TRG:Disposed",V));b.mZ=V;var D;(D=b.iR)==null||D.dispose();b.iR=void 0;b.i5F.reject(V)})};
ABA(h,function(){return void EWX(b)});
h.d8h===2&&EWX(this)}else this.q2T=G.nUu,EWX(this);var q=this.bq.share();q.rn("o");var l=new hpO(q,"o");this.i5F.promise.then(function(){l.done();q.xN();q.dispose()},function(){return void q.dispose()});
this.addOnDisposeCallback(function(){b.iR?(b.iR.dispose(),b.iR=void 0):b.mZ?b.bq.xN():(b.mZ=b.reportError(new l1(32,"TNP:Disposed")),b.bq.xN(),b.i5F.reject(b.mZ))});
_.M2(this,this.bq)};
_.M(u1,_.FN);u1.prototype.g6F=function(){return this.i5F.promise};
var pfn=function(G,b){if(!(b instanceof l1))if(b instanceof _.dp){var I=Error(b.toString());I.stack=b.stack;b=new l1(11,"EBH:Error",I)}else b=new l1(12,"BSO:Unknown",b);return G.reportError(b)},EWX=function(G){var b,I,h,q,l,V,D,k,L,x,f,T,B,A,t;
return _.c(function(y){switch(y.nextAddress){case 1:b=void 0;G.tFW++;I=new _.G9;G.vm instanceof NL&&G.vm.jJu.push(I.promise);if(!G.hSK){y.jumpTo(2);break}h=new _.G9;setTimeout(function(){return void h.resolve()});
return y.yield(h.promise,2);case 2:return q=G.bq.share(),_.gm(y,4,5),G.state=5,l={},V=[],y.yield(dk(G.vm.snapshot({fQ:l,e9a:V}),G.eiv.gvu,function(){return Promise.reject(new l1(15,"MDA:Timeout"))}),7);
case 7:D=y.yieldResult;if(G.isDisposed())throw new l1(G.iR?20:32,"MDA:Disposed");k=V[0];G.state=6;return y.yield(dk(SGe(G.aq,D),G.eiv.htT,function(){return Promise.reject(new l1(10,"BWB:Timeout"))}),8);
case 8:L=y.yieldResult;if(G.isDisposed())throw new l1(G.iR?20:32,"BWB:Disposed");G.state=7;b=_.WZ(q,function(){var W=XfO(G,L,I,k);W.jJC.promise.then(function(){return void G.q2T()});
return W},"i");
case 5:_.Mz(y);q.dispose();_.tj(y,6);break;case 4:x=_.zf(y);(f=b)==null||f.dispose();if(!G.mZ){T=pfn(G,x);I.resolve();var F;if(F=G.vm instanceof NL&&G.tFW<2)a:if(x instanceof l1)F=x.code!==32&&x.code!==20&&x.code!==10;else{if(x instanceof _.dp)switch(x.code){case 2:case 13:case 14:case 4:break;default:F=!1;break a}F=!0}if(F)return B=(1+Math.random()*.25)*(G.iR?6E4:1E3),A=setTimeout(function(){return void G.q2T()},B),G.addOnDisposeCallback(function(){return void clearTimeout(A)}),y.return();
G.mZ=T}q.logError(G.iR?13:14);G.i5F.reject(G.mZ);return y.return();case 6:G.state=8,G.tFW=0,(t=G.iR)==null||t.dispose(),G.iR=b,G.i5F.resolve(),_.ip(y)}})},XfO=function(G,b,I,h){var q=FOQ(b,2)*1E3;
if(q<=0)throw new l1(31,"TTM:Invalid");if(_.U5(b,4))return new KEJ(G.bq,_.U5(b,4),q);if(!FOQ(b,3))return new JBQ(G.bq,feA(_.Du(b,1)),q);if(!h)throw new l1(4,"PMD:Undefined");h=h(feA(_.Du(b,1)));if(!(h instanceof Function))throw new l1(16,"APF:Failed");G.pFT=Math.floor((Date.now()+q)/1E3);G=new CBO(G.bq,h,FOQ(b,3),q);G.addOnDisposeCallback(function(){return void I.resolve()});
return G};
u1.prototype.am=function(G){return $9i(this,Object.assign({},G),!1)};
u1.prototype.moQ=function(G){return $9i(this,Object.assign({},G),!0)};
u1.prototype.xCW=function(G){if(G>150)return!1;try{return this.cache=new d1b(G,this.bq),!0}catch(b){return this.reportError(new l1(22,"GBJ:init",b)),!1}};
u1.prototype.reportError=function(G){this.bq.logError(G.code);this.onError(G);return G};
var GvB=function(G,b){b=b instanceof l1?b:new l1(5,"TVD:error",b);return G.reportError(b)},$9i=function(G,b,I){try{if(G.isDisposed())throw new l1(21,"BNT:disposed");
if(!G.iR&&G.mZ)throw G.mZ;var h,q;return(q=(h=biB(G,b,I))!=null?h:IOu(G,b,I))!=null?q:hjQ(G,b,I)}catch(l){if(!b.lHl)throw GvB(G,l);return qAQ(G,I,l)}},biB=function(G,b,I){var h;
return(h=G.iR)==null?void 0:YGb(h,function(){return jbb(G,b)},I,function(q){var l;
if(G.iR instanceof CBO&&((l=b.jx)==null?0:l.tWt))try{var V;(V=G.cache)==null||yBi(V,jbb(G,b),q,b.jx.x8J,G.pFT-120)}catch(D){G.reportError(new l1(24,"ELX:write",D))}})},IOu=function(G,b,I){var h;
if((h=b.jx)!=null&&h.cAF)try{var q,l=(q=G.cache)==null?void 0:rBz(q,jbb(G,b),b.jx.x8J);return l?I?_.WZ(G.bq,function(){return _.WL(l,2)},"a"):l:void 0}catch(V){G.reportError(new l1(23,"RXO:read",V))}},hjQ=function(G,b,I){var h={stack:[],
error:void 0,hasError:!1};try{if(!b.w6E)throw new l1(29,"SDF:notready");return YGb(BXQ(h,new nWb(G.bq,0,G.state)),function(){return jbb(G,b)},I)}catch(q){h.error=q,h.hasError=!0}finally{Uru(h)}},qAQ=function(G,b,I){var h={stack:[],
error:void 0,hasError:!1};try{var q=GvB(G,I);return YGb(BXQ(h,new uU8(G.bq,q)),function(){return[]},b)}catch(l){h.error=l,h.hasError=!0}finally{Uru(h)}},jbb=function(G,b){return b.qlF?b.qlF:b.fQ?_.WZ(G.bq,function(){return b.qlF=WEr(b.fQ)},"c"):[]},wfb=function(G){return WX(function(b){if(!v$(b))return!1;
for(var I=_.e(Object.entries(G)),h=I.next();!h.done;h=I.next()){var q=_.e(h.value);h=q.next().value;q=q.next().value;if(!(h in b)){if(q.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!q(b[h]))return!1}return!0})}({vm:function(G){return WX(function(b){return b instanceof G})}(NL)},"");var lOW=function(){var G=_.pw();this.JSC$9987_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",QQ("cookie_enabled"),QQ("cookie_3p_enabled"),_.fT("browser"))};
lOW.prototype.increment=function(G,b,I){this.JSC$9987_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",G,b,I)};
var jEO=function(){var G=_.pw();this.JSC$10011_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",xu("tick"),QQ("from_st_cookie"))};
jEO.prototype.increment=function(G,b){this.JSC$10011_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",G,b)};
var m9n=function(){var G=_.pw();this.JSC$10017_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.fT("status"))};
m9n.prototype.increment=function(G){this.JSC$10017_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",G)};
var eju=function(){var G=_.pw();this.JSC$10020_streamzService=G;G.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.fT("stage"),QQ("is_using_ytd_player"),QQ("has_expandable_tiles"))};
eju.prototype.increment=function(G,b,I){this.JSC$10020_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",G,b,I)};
var VyB=function(){var G=_.pw();this.JSC$10023_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/response_signature",_.fT("check_status"))};
VyB.prototype.increment=function(G){this.JSC$10023_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/web/response_signature",G)};
var D9u=function(){var G=_.pw();this.JSC$10026_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.fT("sig"),xu("de"))};
D9u.prototype.increment=function(G,b){this.JSC$10026_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/web/e_sig_log",G,b)};
var cFX=function(){var G=_.pw();this.JSC$10029_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.fT("sig"),xu("de"))};
cFX.prototype.increment=function(G,b){this.JSC$10029_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/web/e_sig_en",G,b)};
_.kvW=function(){var G=_.pw();this.JSC$10032_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.fT("action"))};
_.kvW.prototype.increment=function(G){this.JSC$10032_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/web/enforcement_intent",G)};var RT=window;var v_e=(new Date).getTime();_.Cy.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.Cy.createSet("action","cite","data","formaction","href","manifest","poster","src");var L05=function(G){this.servicePromise_=G;G.then((0,_.Hr)(function(){},this),function(){},this)},Qbu=function(G,b,I){G.servicePromise_.then(function(h){var q=h[b];
if(!q)throw Error("Ka`"+b);return q.apply(h,I)})},Th5=function(G,b,I){for(var h=Array(arguments.length-2),q=2;q<arguments.length;q++)h[q-2]=arguments[q];
q=x9i(G,b).then(function(l){return l.apply(null,h)},function(l){l=Error("La`"+b+"`"+G+"`"+l,{cause:l});
delete fOb[b];return _.vv(l)});
return new L05(q)},fOb={},x9i=function(G,b){var I=fOb[b];
if(I)return I;I=(I=_.Ge(b))?_.X8(I):(new _.MB(function(h,q){var l=(new t8(document)).createElement("SCRIPT");l.async=!0;_.mf(l,_.Pg(vpi(G)));l.onload=l.onreadystatechange=function(){l.readyState&&l.readyState!="loaded"&&l.readyState!="complete"||h()};
l.onerror=function(V){q(Error("Ma`"+b+"`"+G,{cause:V}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(l)})).then(function(){var h=_.Ge(b);
if(!h)throw Error("Na`"+b+"`"+G);return h});
return fOb[b]=I};var BhJ={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},sbz=function(){var G=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=aUB(function(){return _.c(function(b){if(b.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?b.return(Promise.resolve()):b.yield(U9O(G),2);G.rsaForList.length>
0&&document.addEventListener("click",G.requestAccessForHelpPanel);_.ip(b)})});
this.requestAccessForHelpPanel=function(){if(!(G.rsaForPromises.length>0)){for(var b=_.e(G.rsaForList),I=b.next();!I.done;I=b.next()){I=I.value;try{G.rsaForPromises.push(document.requestStorageAccessFor(I))}catch(h){}}Promise.all(G.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){G.reset()})}}};
sbz.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var U9O=function(G){var b,I,h,q;return _.c(function(l){switch(l.nextAddress){case 1:b=_.e(Object.values(BhJ)),I=b.next();case 2:if(I.done){l.jumpTo(0);break}h=I.value;_.gm(l,5);return l.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:h}),7);case 7:q=l.yieldResult;q.state!=="granted"&&G.rsaForList.push(h);_.hF(l,3);break;case 5:_.zf(l);l.jumpTo(0);break;case 3:I=b.next(),l.jumpTo(2)}})};(new sbz).initialize();var g_J=function(G){this.JSC$10046_loader_=G};
g_J.prototype.startHelp=function(G){Qbu(this.JSC$10046_loader_,"startHelp",arguments)};
g_J.prototype.JSC$10048_loadChatSupport=function(G){Qbu(this.JSC$10046_loader_,"loadChatSupport",arguments)};
var Myn=function(G,b){b=b||{};G=Th5(AFX,"help.service.Lazy.create",G,{apiKey:b.apiKey||b.apiKey,asxUiUri:b.asxUiUri||b.asxUiUri,environment:b.environment||b.environment,flow:b.flow||b.flow,frdProductData:b.frdProductData||b.frdProductData,frdProductDataSerializedJspb:b.frdProductDataSerializedJspb||b.frdProductDataSerializedJspb,helpCenterPath:b.helpCenterPath||b.helpCenterPath,locale:b.locale||b.locale||"en-US".replace(/-/g,"_"),nonce:b.nonce||b.nonce,productData:b.productData||b.productData,receiverUri:b.receiverUri||
b.receiverUri,renderApiUri:b.renderApiUri||b.renderApiUri,theme:b.theme||b.theme,window:b.window||b.window});return new g_J(G)},AFX=new OY(usp,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Zin=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Zin,_.eo);var tyb=_.Az(Zin);var zje=[0,_.np,NC,AcX];_.o_J=new function(G,b,I,h){this.configType=G;this.flagName=I;this.defaultValue=h;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 Pun=function(){this.retriever=_.LL().resolve(iin)};_.Cc={get payments(){return window.payments}};YGa(Node);YGa(Element);var d9Q=YGa(HTMLElement);YGa(SVGElement);var yFX,rFQ,wp,F0W;yFX=function(G){return typeof G.className=="string"?G.className:G.getAttribute&&G.getAttribute("class")||""};
rFQ=function(G){return G.classList?G.classList:yFX(G).match(/\S+/g)||[]};
_.n4=function(G,b){typeof G.className=="string"?G.className=b:G.setAttribute&&G.setAttribute("class",b)};
_.On=function(G,b){return G.classList?G.classList.contains(b):_.Ya(rFQ(G),b)};
_.Hv=function(G,b){if(G.classList)G.classList.add(b);else if(!_.On(G,b)){var I=yFX(G);_.n4(G,I+(I.length>0?" "+b:b))}};
wp=function(G,b){if(G.classList)Array.prototype.forEach.call(b,function(q){_.Hv(G,q)});
else{var I={};Array.prototype.forEach.call(rFQ(G),function(q){I[q]=!0});
Array.prototype.forEach.call(b,function(q){I[q]=!0});
b="";for(var h in I)b+=b.length>0?" "+h:h;_.n4(G,b)}};
_.r5=function(G,b){G.classList?G.classList.remove(b):_.On(G,b)&&_.n4(G,Array.prototype.filter.call(rFQ(G),function(I){return I!=b}).join(" "))};
F0W=function(G,b){G.classList?Array.prototype.forEach.call(b,function(I){_.r5(G,I)}):_.n4(G,Array.prototype.filter.call(rFQ(G),function(I){return!_.Ya(b,I)}).join(" "))};var Hiu=function(G){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=G.document},Nhe=function(G,b){W0e(G);
var I=document.createElement("div"),h;(h=b.parentNode)==null||h.insertBefore(I,b);I.tabIndex=0;I.id="fc-focus-trap-pre-div";I=document.createElement("div");var q;(q=b.parentNode)==null||q.insertBefore(I,b.nextSibling);I.tabIndex=0;I.id="fc-focus-trap-post-div";var l=aOe(G,b),V=aOe(G,b,!0);l&&V&&(G.focusChangeHandler=function(){var D=G.document.activeElement;if(D)if(_.Sa(b,D))G.previouslyFocusedElement=D;else if(D===G.document.activeElement)switch(G.previouslyFocusedElement){case l:V.focus();G.previouslyFocusedElement=
V;break;default:l.focus(),G.previouslyFocusedElement=l}},G.document.addEventListener("focus",G.focusChangeHandler,!0),G.document.addEventListener("focusin",G.focusChangeHandler))},W0e=function(G){G.focusChangeHandler&&(document.removeEventListener("focus",G.focusChangeHandler,!0),document.removeEventListener("focusin",G.focusChangeHandler),G.focusChangeHandler=null);
var b;(b=document.getElementById("fc-focus-trap-pre-div"))==null||b.remove();var I;(I=document.getElementById("fc-focus-trap-post-div"))==null||I.remove()},YAe=function(G,b,I,h,q){I=I===void 0?!0:I;
var l;q=(l=q===void 0?null:q)!=null?l:aOe(G,b,h===void 0?!1:h);q!==null&&(q.focus(),I&&Nhe(G,b))};
Hiu.prototype.disableButton=function(G,b){b=b===void 0?null:b;G.disabled=!0;b&&_.Hv(G,b)};
var aOe=function(G,b,I){I=I===void 0?!1:I;if(ecu(b)&&!I)return b;var h=I?[].slice.call(b.children,0).reverse():b.children;h=_.e(h);for(var q=h.next();!q.done;q=h.next())if(q=q.value,d9Q(q)&&(q=aOe(G,q,I)))return q;return ecu(b)&&I?b:null};var Cuu=function(G){this.originalBodyOverflow="";this.JSC$10073_domHelper=rV(G);var b;this.isScrollingEnabled=((b=this.JSC$10073_domHelper.JSC$9399_document_.body)==null?void 0:b.style.overflow)!=="hidden"};
Cuu.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10073_domHelper.JSC$9399_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.OE(_.al,_.FN);_.m=_.al.prototype;_.m.JSC$10076_id_=0;_.m.disposeInternal=function(){_.al.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10074_listener_;delete this.handler_};
_.m.start=function(G){this.stop();this.JSC$10076_id_=PZ(this.callback_,G!==void 0?G:this.JSC$10074_interval_)};
_.m.stop=function(){this.isActive()&&_.hd.clearTimeout(this.JSC$10076_id_);this.JSC$10076_id_=0};
_.m.fire=function(){this.stop();this.JSC$10076_doAction_()};
_.m.isActive=function(){return this.JSC$10076_id_!=0};
_.m.JSC$10076_doAction_=function(){this.JSC$10076_id_=0;this.JSC$10074_listener_&&this.JSC$10074_listener_.call(this.handler_)};_.Bh=function(G){_.FN.call(this);this.handler_=G;this.JSC$10077_keys_={}};
_.OE(_.Bh,_.FN);var JFX=[];_.Bh.prototype.listen=function(G,b,I,h){Array.isArray(b)||(b&&(JFX[0]=b.toString()),b=JFX);for(var q=0;q<b.length;q++){var l=_.cv(G,b[q],I||this.handleEvent,h||!1,this.handler_||this);if(!l)break;this.JSC$10077_keys_[l.key]=l}return this};
_.Bh.prototype.listenOnce=function(G,b,I,h){return K0z(this,G,b,I,h)};
var K0z=function(G,b,I,h,q,l){if(Array.isArray(I))for(var V=0;V<I.length;V++)K0z(G,b,I[V],h,q,l);else{b=m6(b,I,h||G.handleEvent,q,l||G.handler_||G);if(!b)return G;G.JSC$10077_keys_[b.key]=b}return G};
_.Bh.prototype.unlisten=function(G,b,I,h,q){if(Array.isArray(b))for(var l=0;l<b.length;l++)this.unlisten(G,b[l],I,h,q);else if(G=kFu(G,b,I||this.handleEvent,_.Oj(h)?!!h.capture:!!h,q||this.handler_||this))eA(G),delete this.JSC$10077_keys_[G.key];return this};
_.Bh.prototype.removeAll=function(){_.Cy.forEach(this.JSC$10077_keys_,function(G,b){this.JSC$10077_keys_.hasOwnProperty(b)&&eA(G)},this);
this.JSC$10077_keys_={}};
_.Bh.prototype.disposeInternal=function(){_.Bh.superClass_.disposeInternal.call(this);this.removeAll()};
_.Bh.prototype.handleEvent=function(){throw Error("Oa");};var En=function(){_.FN.call(this);this.services_={}};
_.OE(En,_.FN);En.prototype.connect=function(G){G&&G()};
En.prototype.isConnected=function(){return!0};
En.prototype.registerService=function(G,b,I){this.services_[G]={callback:b,objectPayload:!!I}};
En.prototype.getService=function(G,b){var I=this.services_[G];return I?I:this.defaultService_?{callback:_.l9(this.defaultService_,G),objectPayload:_.Oj(b)}:null};
var u5Q=function(G,b){if(b&&typeof G==="string")try{return JSON.parse(G)}catch(I){return null}else if(!b&&typeof G!=="string")return(0,_.yP)(G);return G};
En.prototype.disposeInternal=function(){En.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 p4=function(G,b){this.sequence_=[];this.onCancelFunction_=G;this.defaultScope_=b||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};
p4.prototype.cancel=function(G){if(this.fired_)this.result_ instanceof p4&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;G?b.cancel(G):(b.branches_--,b.branches_<=0&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Sg(this))}};
p4.prototype.continue_=function(G,b){this.blocked_=!1;RjB(this,G,b)};
var RjB=function(G,b,I){G.fired_=!0;G.result_=I;G.hadError_=!b;n_i(G)},wzz=function(G){if(G.fired_){if(!G.silentlyCanceled_)throw new Oin(G);
G.silentlyCanceled_=!1}};
p4.prototype.callback=function(G){wzz(this);RjB(this,!0,G)};
p4.prototype.errback=function(G){wzz(this);RjB(this,!1,G)};
var E_B=function(G,b,I){X7(G,b,null,I)};
p4.prototype.finally=function(G){var b=this;return pzJ(new Promise(function(I,h){X7(b,function(q){G();I(q)},function(q){G();
h(q)})}))};
var X7=function(G,b,I,h){var q=G.fired_;q||(b===I?b=I=tK(b):(b=tK(b),I=tK(I)));G.sequence_.push([b,I,h]);q&&n_i(G)};
p4.prototype.then=function(G,b,I){var h,q,l=new _.MB(function(V,D){q=V;h=D});
X7(this,q,function(V){V instanceof Sg?l.cancel():h(V);return SAe},this);
return l.then(G,b,I)};
Uc5(p4);var XzJ=function(G,b){b instanceof p4?E_B(G,(0,_.Hr)(b.branch,b)):E_B(G,function(){return b})};
p4.prototype.branch=function(G){var b=new p4;X7(this,b.callback,b.errback,b);G&&(b.parent_=this,this.branches_++);return b};
p4.prototype.isError=function(G){return G instanceof Error};
var $B5=function(G){return qB(G.sequence_,function(b){return typeof b[1]==="function"})},SAe={},n_i=function(G){if(G.unhandledErrorId_&&G.fired_&&$B5(G)){var b=G.unhandledErrorId_,I=GsB[b];
I&&(_.hd.clearTimeout(I.JSC$10094_id_),delete GsB[b]);G.unhandledErrorId_=0}G.parent_&&(G.parent_.branches_--,delete G.parent_);b=G.result_;for(var h=I=!1;G.sequence_.length&&!G.blocked_;){var q=G.sequence_.shift(),l=q[0],V=q[1];q=q[2];if(l=G.hadError_?V:l)try{var D=l.call(q||G.defaultScope_,b);D===SAe&&(D=void 0);D!==void 0&&(G.hadError_=G.hadError_&&(D==b||G.isError(D)),G.result_=b=D);if(sjO(b)||typeof _.hd.Promise==="function"&&b instanceof _.hd.Promise)h=!0,G.blocked_=!0}catch(k){b=k,G.hadError_=
!0,$B5(G)||(I=!0)}}G.result_=b;h&&(D=(0,_.Hr)(G.continue_,G,!0),h=(0,_.Hr)(G.continue_,G,!1),b instanceof p4?(X7(b,D,h),b.blocking_=!0):b.then(D,h));I&&(b=new b1A(b),GsB[b.JSC$10094_id_]=b,G.unhandledErrorId_=b.JSC$10094_id_)},pzJ=function(G){var b=new p4;
G.then(function(I){b.callback(I)},function(I){b.errback(I)});
return b},Oin=function(){_.bs.call(this)};
_.OE(Oin,_.bs);Oin.prototype.message="Deferred has already fired";Oin.prototype.name="AlreadyCalledError";var Sg=function(){_.bs.call(this)};
_.OE(Sg,_.bs);Sg.prototype.message="Deferred was canceled";Sg.prototype.name="CanceledError";var b1A=function(G){this.JSC$10094_id_=_.hd.setTimeout((0,_.Hr)(this.throwError,this),0);this.JSC$10094_error_=G};
b1A.prototype.throwError=function(){delete GsB[this.JSC$10094_id_];throw this.JSC$10094_error_;};
var GsB={};var I5b={1:"NativeMessagingTransport"},h2O=["pu","lru","pru","lpu","ppu"],jB5=function(){for(var G=10,b=qYO,I=b.length,h="";G-- >0;)h+=b.charAt(Math.floor(Math.random()*I));return h},qYO="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var $m=function(G){_.FN.call(this);this.JSC$10097_domHelper_=G||rV()};
_.OE($m,_.FN);$m.prototype.transportType=0;$m.prototype.getWindow=function(){return this.JSC$10097_domHelper_.getWindow()};
$m.prototype.getName=function(){return I5b[String(this.transportType)]||""};var Gr=function(G,b,I,h,q){$m.call(this,I);this.JSC$10100_channel_=G;this.protocolVersion_=q||2;this.peerHostname_=b||"*";this.JSC$10100_eventHandler_=new _.Bh(this);this.maybeAttemptToConnectTimer_=new _.Tb(100,this.getWindow());this.oneSidedHandshake_=!!h;this.setupAckReceived_=new p4;this.setupAckSent_=new p4;this.JSC$10100_connected_=new p4;this.endpointId_=jB5();this.peerEndpointId_=null;this.oneSidedHandshake_?l5B(this.JSC$10100_channel_)==1?XzJ(this.JSC$10100_connected_,this.setupAckReceived_):
XzJ(this.JSC$10100_connected_,this.setupAckSent_):(XzJ(this.JSC$10100_connected_,this.setupAckReceived_),this.protocolVersion_==2&&XzJ(this.JSC$10100_connected_,this.setupAckSent_));E_B(this.JSC$10100_connected_,this.notifyConnected_,this);this.JSC$10100_connected_.callback(!0);this.JSC$10100_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.OE(Gr,$m);Gr.prototype.peerProtocolVersion_=null;Gr.prototype.initialized_=!1;Gr.prototype.transportType=1;var mBA={};Gr.prototype.sendTimerId_=0;
var DB8=function(G){var b=G.event_.data;if(typeof b!=="string")return!1;var I=b.indexOf("|"),h=b.indexOf(":");if(I==-1||h==-1)return!1;var q=b.substring(0,I);I=b.substring(I+1,h);b=b.substring(h+1);if(h=bW[q])return h.xpcDeliver(I,b,G.event_.origin),!0;h=e2n(b)[0];for(var l in bW){var V=bW[l];if(l5B(V)==1&&!V.isConnected()&&I=="tp"&&(h=="SETUP"||h=="SETUP_NTPV2")&&VGJ(V,G.event_.origin))return delete bW[V.name],V.name=q,bW[q]=V,V.xpcDeliver(I,b),!0}return!1},cMe=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")},ks8=function(G,b){if(G.protocolVersion_!=2||G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=2||b!=2){if(G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=1||b!=1)return;
G.send("tp","SETUP_ACK")}else G.send("tp","SETUP_ACK_NTPV2");G.setupAckSent_.fired_||G.setupAckSent_.callback(!0)},v2n=function(G,b){b>G.peerProtocolVersion_&&(G.peerProtocolVersion_=b);
G.peerProtocolVersion_==1&&(G.setupAckSent_.fired_||G.oneSidedHandshake_||G.setupAckSent_.callback(!0),G.peerEndpointId_=null)};
_.m=Gr.prototype;_.m.connect=function(){var G=this.getWindow(),b=_.Ej(G),I=mBA[b];typeof I!=="number"&&(I=0);I==0&&_.cv(G.postMessage?G:G.document,"message",DB8,!1,Gr);mBA[b]=I+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.m.maybeAttemptToConnect_=function(){var G=l5B(this.JSC$10100_channel_)==0;this.oneSidedHandshake_&&G||this.JSC$10100_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),cMe(this))};
_.m.send=function(G,b){var I=this.JSC$10100_channel_.peerWindowObject_;I&&(this.send=function(h,q){var l=this,V=this.JSC$10100_channel_.name;this.sendTimerId_=PZ(function(){l.sendTimerId_=0;try{var D=I.postMessage?I:I.document;D.postMessage&&D.postMessage(V+"|"+h+":"+q,l.peerHostname_)}catch(k){}},0)},this.send(G,b))};
_.m.notifyConnected_=function(){var G=this.JSC$10100_channel_,b=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;G.isConnected()||G.connectionDelay_&&G.connectionDelay_.isActive()||(G.state_=2,_.VQ(G.connectionDelay_),b!==void 0?(G.connectionDelay_=new _.al(G.connectCb_,b),G.connectionDelay_.start()):(G.connectionDelay_=null,G.connectCb_()))};
_.m.disposeInternal=function(){if(this.initialized_){var G=this.getWindow(),b=_.Ej(G),I=mBA[b];mBA[b]=I-1;I==1&&_.ML(G.postMessage?G:G.document,"message",DB8,!1,Gr)}this.sendTimerId_&&(_.hd.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.VQ(this.JSC$10100_eventHandler_);delete this.JSC$10100_eventHandler_;_.VQ(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10100_connected_.cancel();delete this.JSC$10100_connected_;delete this.send;Gr.superClass_.disposeInternal.call(this)};
var e2n=function(G){G=G.split(",");G[1]=G[1]||null;return G};var QBz;_.Iv=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(_.KO(G)){for(var b=[],I=G.length,h=0;h<I;h++)b.push(G[h]);return b}return _.Cy.getValues(G)};
_.LGe=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(_.KO(G)||typeof G==="string"){var b=[];G=G.length;for(var I=0;I<G;I++)b.push(I);return b}return _.Cy.getKeys(G)}}};
QBz=function(G,b,I){if(G.forEach&&typeof G.forEach=="function")G.forEach(b,I);else if(_.KO(G)||typeof G==="string")Array.prototype.forEach.call(G,b,I);else for(var h=_.LGe(G),q=_.Iv(G),l=q.length,V=0;V<l;V++)b.call(I,q[V],h&&h[V],G)};var LD2,Vm,c0,g2i,xBJ,THe,f5n,sBn,BHJ;
_.a3=function(G,b){this.JSC$10105_domain_=this.userInfo_=this.scheme_="";this.JSC$10105_port_=null;this.fragment_=this.JSC$10105_path_="";this.JSC$10105_ignoreCase_=!1;var I;G instanceof _.a3?(this.JSC$10105_ignoreCase_=b!==void 0?b:G.JSC$10105_ignoreCase_,_.h$(this,G.scheme_),this.userInfo_=G.userInfo_,_.qR(this,G.JSC$10105_domain_),_.jP(this,G.JSC$10105_port_),_.lW(this,G.getPath()),_.mQ(this,G.JSC$10105_queryData_.clone()),_.eP(this,G.fragment_)):G&&(I=_.eO(String(G)))?(this.JSC$10105_ignoreCase_=
!!b,_.h$(this,I[1]||"",!0),this.userInfo_=Vm(I[2]||""),_.qR(this,I[3]||"",!0),_.jP(this,I[4]),_.lW(this,I[5]||"",!0),_.mQ(this,I[6]||"",!0),_.eP(this,I[7]||"",!0)):(this.JSC$10105_ignoreCase_=!!b,this.JSC$10105_queryData_=new _.Dc(null,this.JSC$10105_ignoreCase_))};
_.a3.prototype.toString=function(){var G=[],b=this.scheme_;b&&G.push(c0(b,xBJ,!0),":");var I=this.JSC$10105_domain_;if(I||b=="file")G.push("//"),(b=this.userInfo_)&&G.push(c0(b,xBJ,!0),"@"),G.push(_.IN(I).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),I=this.JSC$10105_port_,I!=null&&G.push(":",String(I));if(I=this.getPath())this.JSC$10105_domain_&&I.charAt(0)!="/"&&G.push("/"),G.push(c0(I,I.charAt(0)=="/"?f5n:THe,!0));(I=this.JSC$10105_queryData_.toString())&&G.push("?",I);(I=this.fragment_)&&G.push("#",
c0(I,BHJ));return G.join("")};
_.a3.prototype.resolve=function(G){var b=this.clone(),I=!!G.scheme_;I?_.h$(b,G.scheme_):I=!!G.userInfo_;I?b.userInfo_=G.userInfo_:I=!!G.JSC$10105_domain_;I?_.qR(b,G.JSC$10105_domain_):I=G.JSC$10105_port_!=null;var h=G.getPath();if(I)_.jP(b,G.JSC$10105_port_);else if(I=!!G.JSC$10105_path_){if(h.charAt(0)!="/")if(this.JSC$10105_domain_&&!this.JSC$10105_path_)h="/"+h;else{var q=b.getPath().lastIndexOf("/");q!=-1&&(h=b.getPath().slice(0,q+1)+h)}q=h;if(q==".."||q==".")h="";else if(_.c2(q,"./")||_.c2(q,
"/.")){h=_.jv(q,"/");q=q.split("/");for(var l=[],V=0;V<q.length;){var D=q[V++];D=="."?h&&V==q.length&&l.push(""):D==".."?((l.length>1||l.length==1&&l[0]!="")&&l.pop(),h&&V==q.length&&l.push("")):(l.push(D),h=!0)}h=l.join("/")}else h=q}I?_.lW(b,h):I=G.JSC$10105_queryData_.toString()!=="";I?_.mQ(b,G.JSC$10105_queryData_.clone()):I=!!G.fragment_;I&&_.eP(b,G.fragment_);return b};
_.a3.prototype.clone=function(){return new _.a3(this)};
_.h$=function(G,b,I){G.scheme_=I?Vm(b,!0):b;G.scheme_&&(G.scheme_=G.scheme_.replace(/:$/,""));return G};
_.qR=function(G,b,I){G.JSC$10105_domain_=I?Vm(b,!0):b;return G};
_.jP=function(G,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Pa`"+b);G.JSC$10105_port_=b}else G.JSC$10105_port_=null;return G};
_.a3.prototype.getPath=function(){return this.JSC$10105_path_};
_.lW=function(G,b,I){G.JSC$10105_path_=I?Vm(b,!0):b;return G};
_.mQ=function(G,b,I){b instanceof _.Dc?(G.JSC$10105_queryData_=b,UBA(G.JSC$10105_queryData_,G.JSC$10105_ignoreCase_)):(I||(b=c0(b,sBn)),G.JSC$10105_queryData_=new _.Dc(b,G.JSC$10105_ignoreCase_));return G};
_.IJ=function(G,b,I){G.JSC$10105_queryData_.set(b,I);return G};
_.bI=function(G,b){return G.JSC$10105_queryData_.get(b)};
_.eP=function(G,b,I){G.fragment_=I?Vm(b):b;return G};
_.km=function(G){_.IJ(G,"zx",$8());return G};
_.Gt=function(G,b){return G instanceof _.a3?G.clone():new _.a3(G,b)};
LD2=function(G,b){G instanceof _.a3||(G=_.Gt(G));b instanceof _.a3||(b=_.Gt(b));return G.resolve(b)};
Vm=function(G,b){return G?b?decodeURI(G.replace(/%25/g,"%2525")):decodeURIComponent(G):""};
c0=function(G,b,I){return typeof G==="string"?(G=encodeURI(G).replace(b,g2i),I&&(G=G.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),G):null};
g2i=function(G){G=G.charCodeAt(0);return"%"+(G>>4&15).toString(16)+(G&15).toString(16)};
xBJ=/[#\/\?@]/g;THe=/[#\?:]/g;f5n=/[#\?]/g;sBn=/[#\?@]/g;BHJ=/#/g;_.Dc=function(G,b){this.count_=this.keyMap_=null;this.encodedQuery_=G||null;this.JSC$10106_ignoreCase_=!!b};
_.v0=function(G){G.keyMap_||(G.keyMap_=new Map,G.count_=0,G.encodedQuery_&&D2X(G.encodedQuery_,function(b,I){G.add(kW(b),I)}))};
_.m=_.Dc.prototype;_.m.getCount=function(){_.v0(this);return this.count_};
_.m.add=function(G,b){_.v0(this);this.encodedQuery_=null;G=LE(this,G);var I=this.keyMap_.get(G);I||this.keyMap_.set(G,I=[]);I.push(b);this.count_+=1;return this};
_.m.remove=function(G){_.v0(this);G=LE(this,G);return this.keyMap_.has(G)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(G).length,this.keyMap_.delete(G)):!1};
_.m.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.m.isEmpty=function(){_.v0(this);return this.count_==0};
_.m.containsKey=function(G){_.v0(this);G=LE(this,G);return this.keyMap_.has(G)};
_.m.containsValue=function(G){var b=this.getValues();return _.Ya(b,G)};
_.m.forEach=function(G,b){_.v0(this);this.keyMap_.forEach(function(I,h){I.forEach(function(q){G.call(b,q,h,this)},this)},this)};
_.m.getKeys=function(){_.v0(this);for(var G=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),I=[],h=0;h<b.length;h++)for(var q=G[h],l=0;l<q.length;l++)I.push(b[h]);return I};
_.m.getValues=function(G){_.v0(this);var b=[];if(typeof G==="string")this.containsKey(G)&&(b=b.concat(this.keyMap_.get(LE(this,G))));else{G=Array.from(this.keyMap_.values());for(var I=0;I<G.length;I++)b=b.concat(G[I])}return b};
_.m.set=function(G,b){_.v0(this);this.encodedQuery_=null;G=LE(this,G);this.containsKey(G)&&(this.count_-=this.keyMap_.get(G).length);this.keyMap_.set(G,[b]);this.count_+=1;return this};
_.m.get=function(G,b){if(!G)return b;G=this.getValues(G);return G.length>0?String(G[0]):b};
_.AMn=function(G,b,I){G.remove(b);I.length>0&&(G.encodedQuery_=null,G.keyMap_.set(LE(G,b),_.Jd(I)),G.count_+=I.length)};
_.Dc.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var G=[],b=Array.from(this.keyMap_.keys()),I=0;I<b.length;I++){var h=b[I],q=_.IN(h);h=this.getValues(h);for(var l=0;l<h.length;l++){var V=q;h[l]!==""&&(V+="="+_.IN(h[l]));G.push(V)}}return this.encodedQuery_=G.join("&")};
_.Dc.prototype.clone=function(){var G=new _.Dc;G.encodedQuery_=this.encodedQuery_;this.keyMap_&&(G.keyMap_=new Map(this.keyMap_),G.count_=this.count_);return G};
var LE=function(G,b){b=String(b);G.JSC$10106_ignoreCase_&&(b=b.toLowerCase());return b},UBA=function(G,b){b&&!G.JSC$10106_ignoreCase_&&(_.v0(G),G.encodedQuery_=null,G.keyMap_.forEach(function(I,h){var q=h.toLowerCase();
h!=q&&(this.remove(h),_.AMn(this,q,I))},G));
G.JSC$10106_ignoreCase_=b};
_.Dc.prototype.extend=function(G){for(var b=0;b<arguments.length;b++)QBz(arguments[b],function(I,h){this.add(h,I)},this)};var Qm=function(G,b){En.call(this);for(var I=0,h;h=h2O[I];I++)if(h in G&&!/^https?:\/\//.test(G[h]))throw Error("Ra`"+G[h]+"`"+h);this.cfg_=G;this.name=this.cfg_.cn||jB5();this.JSC$10101_domHelper_=b||rV();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Bh(this);G.lpu=G.lpu||e8u(this.JSC$10101_domHelper_.getWindow().location.href)+"/robots.txt";G.ppu=G.ppu||e8u(G.pu||"")+"/robots.txt";bW[this.name]=this;kFu(window,"unload",MGO)||m6(window,"unload",MGO)};
_.OE(Qm,En);var Z1i=RegExp("^%*tp$"),tGQ=RegExp("^%+tp$");_.m=Qm.prototype;_.m.connectionDelay_=null;_.m.peerWindowDeferred_=null;_.m.transport_=null;_.m.state_=1;_.m.isConnected=function(){return this.state_==2};
_.m.peerWindowObject_=null;_.m.iframeElement_=null;_.m.getConfig=function(){return this.cfg_};
_.m.connect=function(G){this.connectCb_=G||_.sp;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?E_B(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.m.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10101_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$10101_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Gr(this,this.cfg_.ph,this.JSC$10101_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()()};
_.m.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.VQ(this.transport_);this.connectCb_=this.transport_=null;_.VQ(this.connectionDelay_);this.connectionDelay_=null};
_.m.send=function(G,b){if(this.isConnected()){try{var I=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(q){I=!1}if(I){_.Oj(b)&&(b=(0,_.yP)(b));I=this.transport_;var h=I.send;Z1i.test(G)&&(G="%"+G);G=G.replace(/[%:|]/g,encodeURIComponent);h.call(I,G,b)}else this.close()}};
_.m.xpcDeliver=function(G,b,I){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Hr)(this.xpcDeliver,this,G,b,I));else if(VGJ(this,I)&&!this.isDisposed()&&this.state_!=3)if(G&&G!="tp")this.isConnected()&&(G=G.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),G=tGQ.test(G)?G.substring(1):G,G=this.getService(G,b))&&(b=u5Q(b,G.objectPayload),b!=null&&G.callback(b));else switch(G=this.transport_,I=e2n(b),b=I[1],I[0]){case "SETUP_ACK":v2n(G,1);G.setupAckReceived_.fired_||G.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":G.protocolVersion_==2&&(v2n(G,2),G.setupAckReceived_.fired_||G.setupAckReceived_.callback(!0));break;case "SETUP":v2n(G,1);ks8(G,1);break;case "SETUP_NTPV2":G.protocolVersion_==2&&(I=G.peerProtocolVersion_,v2n(G,2),ks8(G,2),I!=1&&G.peerEndpointId_==null||G.peerEndpointId_==b||cMe(G),G.peerEndpointId_=b)}};
var l5B=function(G){var b=G.cfg_.role;return typeof b==="number"?b:window.parent==G.peerWindowObject_?1:0},VGJ=function(G,b){var I=G.cfg_.ph;
return _.Dr(b==null?"":String(b))||_.Dr(I==null?"":String(I))||b==G.cfg_.ph};
Qm.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete bW[this.name];_.VQ(this.peerLoadHandler_);delete this.peerLoadHandler_;Qm.superClass_.disposeInternal.call(this)};
var MGO=function(){for(var G in bW)_.VQ(bW[G])},bW={};var o2i=function(G,b){this.win=G;this.allowAdsHttpEndpoint=b;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10115_domHelper=rV(G);this.scrollManager=new Cuu(G);this.accessibilityManager=new Hiu(G);z2W(this)},z2W=function(G){var b=function(){G.allowAdsPopup&&G.allowAdsPopup.style.setProperty("display","none","important");
G.wallElement.style.setProperty("display","","important");W0e(G.accessibilityManager);YAe(G.accessibilityManager,G.wallElement.querySelector(".fc-dialog-container"),!1,!1,G.wallElement.querySelector(".fc-button-whitelist"));G.scrollManager.enableScrolling()};
G.allowAdsPopup=G.JSC$10115_domHelper.JSC$9401_createDom("DIV",{"class":"fc-whitelist-root"});G.allowAdsPopup.style.setProperty("display","none","important");G.JSC$10115_domHelper.appendChild(G.JSC$10115_domHelper.JSC$9399_document_.body,G.allowAdsPopup);var I=G.JSC$10115_domHelper.JSC$9401_createDom("DIV",{"class":"fc-dialog-overlay"});G.JSC$10115_domHelper.appendChild(G.allowAdsPopup,I);var h=G.JSC$10115_domHelper.JSC$9401_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:b});G.JSC$10115_domHelper.appendChild(G.allowAdsPopup,
h);I=G.JSC$10115_domHelper.JSC$9401_createDom("IFRAME");I.className="fc-whitelist-dialog";I.frameBorder="0";I.id="fc-whitelist-iframe";I.tabIndex="0";_.$T(I,G.allowAdsHttpEndpoint);G.JSC$10115_domHelper.appendChild(h,I);h={};h.pu=_.yM(G.allowAdsHttpEndpoint).toString();h.tp=1;h.cn="fc-whitelist-channel";h.ifrid=I.id;h.osh=!0;G.allowAdsCrossPageChannel=new Qm(h);G.allowAdsCrossPageChannel.registerService("close",b);G.allowAdsCrossPageChannel.registerService("refresh",function(){G.win.location.reload()});
G.allowAdsCrossPageChannel.registerService("resize",function(q){if(q){var l=G.allowAdsPopup.querySelector(".fc-whitelist-dialog");q.width&&l.style.setProperty("width",q.width,"important");q.height&&l.style.setProperty("height",q.height,"important")}},!0);
G.allowAdsCrossPageChannel.connect()};
o2i.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10115_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var xm=window,fE=document,i15=xm.location,P6O=function(){},dBJ=/\[native code\]/,Tr=function(G,b,I){return G[b]=G[b]||I},yMO=function(G){G=G.sort();
for(var b=[],I=void 0,h=0;h<G.length;h++){var q=G[h];q!=I&&b.push(q);I=q}return b},B0=function(){var G;
if((G=Object.create)&&dBJ.test(G))G=G(null);else{G={};for(var b in G)G[b]=void 0}return G},U$=Tr(xm,"gapi",{});var s$={};s$=Tr(xm,"___jsl",B0());Tr(s$,"I",0);Tr(s$,"hel",10);var rMe=function(){var G=i15.href;if(s$.dpo)var b=s$.h;else{b=s$.h;var I=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),h=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(G=G&&(I.exec(G)||h.exec(G)))try{b=decodeURIComponent(G[2])}catch(q){}}return b},FGn=function(G){var b=Tr(s$,"PQ",[]);
s$.PQ=[];var I=b.length;if(I===0)G();else for(var h=0,q=function(){++h===I&&G()},l=0;l<I;l++)b[l](q)},H1n=function(G){return Tr(Tr(s$,"H",B0()),G,B0())};var gu=function(G){this.JSC$10117_obj_=G};
gu.prototype.value=function(){return this.JSC$10117_obj_};
gu.prototype.getWidth=function(){return this.JSC$10117_obj_.width};
gu.prototype.getHeight=function(){return this.JSC$10117_obj_.height};
gu.prototype.getStyle=function(){return this.JSC$10117_obj_.style};var WG5=function(G){this.JSC$10120_obj_=G||{}};
_.m=WG5.prototype;_.m.value=function(){return this.JSC$10120_obj_};
_.m.setUrl=function(G){this.JSC$10120_obj_.url=G;return this};
_.m.getUrl=function(){return this.JSC$10120_obj_.url};
_.m.getStyle=function(){return this.JSC$10120_obj_.style};
_.m.getId=function(){return this.JSC$10120_obj_.id};
_.m.getContext=function(){return this.JSC$10120_obj_.context};
var a5z=function(G){G.JSC$10120_obj_.attributes=G.JSC$10120_obj_.attributes||{};return new gu(G.JSC$10120_obj_.attributes)};var NHn=function(){WG5.apply(this,arguments)};
_.M(NHn,WG5);var YYz=Tr(s$,"perf",B0());Tr(YYz,"g",B0());var C6B=Tr(YYz,"i",B0());Tr(YYz,"r",[]);B0();B0();var KGQ=function(G,b,I){b&&b.length>0&&(b=JMb(b),I&&I.length>0&&(b+="___"+JMb(I)),b.length>28&&(b=b.substr(0,28)+(b.length-28)),I=b,b=Tr(C6B,"_p",B0()),Tr(b,I,B0())[G]=(new Date).getTime(),b=YYz.r,typeof b==="function"?b(G,"_p",I):b.push([G,"_p",I]))},JMb=function(G){return G.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var uQJ=B0(),R2u=[],A$=function(G){throw Error("Ua`"+G);};
R2u.push(["jsl",function(G){for(var b in G)if(Object.prototype.hasOwnProperty.call(G,b)){var I=G[b];typeof I=="object"?s$[b]=Tr(s$,b,[]).concat(I):Tr(s$,b,I)}if(b=G.u)G=Tr(s$,"us",[]),G.push(b),(b=/^https:(.*)$/.exec(b))&&G.push("http:"+b[1])}]);
var n2u=/^(\/[a-zA-Z0-9_\-]+)+$/,O15=[/\/amp\//,/\/amp$/,/^\/amp$/],wA8=/^[a-zA-Z0-9\-_\.,!]+$/,E2B=/^gapi\.loaded_[0-9]+$/,pAQ=/^[a-zA-Z0-9,._-]+$/,GXB=function(G,b,I,h,q){var l=G.split(";"),V=l.shift(),D=uQJ[V],k=null;D?k=D(l,b,I,h):A$("no hint processor for: "+V);k||A$("failed to generate load url");b=k;I=b.match(SYu);(h=b.match(XAW))&&h.length===1&&$yO.test(b)&&I&&I.length===1||A$("failed sanity: "+G);try{G="?";if(q&&q.length>0){rdX(q);var L=q.join(",");k=k+"?le="+L;G="&"}if(s$.rol){var x=s$.ol;
x&&x.length&&(k=""+k+G+"ol="+x.length)}}catch(f){}return k},hxu=function(G,b,I,h){G=b8A(G);
E2B.test(I)||A$("invalid_callback");b=I8i(b);h=h&&h.length?I8i(h):null;var q=function(l){return encodeURIComponent(l).replace(/%2C/g,",")};
return[encodeURIComponent(G.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",q(G.version),"/m=",q(b),h?"/exm="+q(h):"","/rt=j/sv=1/d=1/ed=1",G.activeMods?"/am="+q(G.activeMods):"",G.resourceSig?"/rs="+q(G.resourceSig):"",G.zcms?"/t="+q(G.zcms):"","/cb=",q(I)].join("")},b8A=function(G){G.charAt(0)!=="/"&&A$("relative path");
for(var b=G.substring(1).split("/"),I=[];b.length;){G=b.shift();if(!G.length||G.indexOf(".")==0)A$("empty/relative directory");else if(G.indexOf("=")>0){b.unshift(G);break}I.push(G)}G={};for(var h=0,q=b.length;h<q;++h){var l=b[h].split("="),V=decodeURIComponent(l[0]),D=decodeURIComponent(l[1]);l.length==2&&V&&D&&(G[V]=G[V]||D)}b="/"+I.join("/");n2u.test(b)||A$("invalid_prefix");I=0;for(h=O15.length;I<h;++I)O15[I].test(b)&&A$("invalid_prefix");I=qzJ(G,"k",!0);h=qzJ(G,"am");q=qzJ(G,"rs");G=qzJ(G,"t");
return{pathPrefix:b,version:I,activeMods:h,resourceSig:q,zcms:G}},I8i=function(G){for(var b=[],I=0,h=G.length;I<h;++I){var q=G[I].replace(/\./g,"_").replace(/-/g,"_");
pAQ.test(q)&&b.push(q)}return b.join(",")},qzJ=function(G,b,I){G=G[b];
!G&&I&&A$("missing: "+b);if(G){if(wA8.test(G))return G;A$("invalid: "+b)}return null},$yO=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,XAW=/\/cb=/g,SYu=/\/\//g;
uQJ.m=function(G,b,I,h){(G=G[0])||A$("missing_hint");return"https://apis.google.com"+hxu(G,b,I,h)};
var j15=decodeURI("%73cript"),l8Q=/^[-+_0-9\/A-Za-z]+={0,2}$/,myW=function(G,b){for(var I=[],h=0;h<G.length;++h){var q=G[h],l;if(l=q){a:{for(l=0;l<b.length;l++)if(b[l]===q)break a;l=-1}l=l<0}l&&I.push(q)}return I},exn=function(){var G=s$.nonce;
return G!==void 0?G&&G===String(G)&&G.match(l8Q)?G:s$.nonce=null:fE.querySelector?(G=fE.querySelector("script[nonce]"))?(G=G.nonce||G.getAttribute("nonce")||"",G&&G===String(G)&&G.match(l8Q)?s$.nonce=G:s$.nonce=null):null:null},cUA=function(G){if(fE.readyState!="loading")Veu(G);
else{var b=exn(),I="";b!==null&&(I=' nonce="'+b+'"');G="<"+j15+' src="'+encodeURI(G)+'"'+I+"></"+j15+">";fE.write(Dy5?Dy5.createHTML(G):G)}},Veu=function(G){var b=fE.createElement(j15);
b.setAttribute("src",Dy5?Dy5.createScriptURL(G):G);G=exn();G!==null&&b.setAttribute("nonce",G);b.async="true";(G=fE.getElementsByTagName(j15)[0])?G.parentNode.insertBefore(b,G):(fE.head||fE.body||fE.documentElement).appendChild(b)},vGB=function(G,b,I){kXX(function(){var h=b===rMe()?Tr(U$,"_",B0()):B0();
h=Tr(H1n(b),"_",h);G(h)},I)},Ifv=function(G,b){var I=b||{};
typeof b=="function"&&(I={},I.callback=b);var h=(b=I)&&b._c;if(h)for(var q=0;q<R2u.length;q++){var l=R2u[q][0],V=R2u[q][1];V&&Object.prototype.hasOwnProperty.call(h,l)&&V(h[l],G,b)}b=[];G?b=G.split(":"):I.features&&(b=I.features);if(!(G=I.h)&&(G=rMe(),!G))throw Error("Va");Ltu(b||[],I,G)},Ltu=function(G,b,I){G=yMO(G)||[];
var h=b.callback,q=b.config,l=b.timeout,V=b.ontimeout,D=b.onerror,k=void 0;typeof D=="function"&&(k=D);var L=null,x=!1;if(l&&!V||!l&&V)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";D=Tr(H1n(I),"r",[]).sort();var f=Tr(H1n(I),"L",[]).sort(),T=s$.le||[],B=[].concat(D),A=function(O,K){if(x)return 0;xm.clearTimeout(L);f.push.apply(f,t);var u=((U$||{}).config||{}).update;u?u(q):q&&Tr(s$,"cu",[]).push(q);if(K){KGQ("me0",O,B);try{vGB(K,I,k)}finally{KGQ("me1",O,B)}}return 1};
l>0&&(L=xm.setTimeout(function(){x=!0;V()},l));
var t=myW(G,f);if(t.length){t=myW(G,D);var y=Tr(s$,"CP",[]),F=y.length;y[F]=function(O){if(!O)return 0;KGQ("ml1",t,B);var K=function(w){y[F]=null;A(t,O)&&FGn(function(){h&&h();w()})},u=function(){var w=y[F+1];
w&&w()};
F>0&&y[F-1]?y[F]=function(){K(u)}:K(u)};
if(t.length){var W="loaded_"+s$.I++;U$[W]=function(O){y[F](O);U$[W]=null};
G=GXB(I,t,"gapi."+W,D,T);D.push.apply(D,t);KGQ("ml0",t,B);b.sync||xm.___gapisync?cUA(G):Veu(G)}else y[F](P6O)}else A(t)&&h&&h()},Q1u;
var xyn=null,f8n=_.hd.trustedTypes;if(f8n&&f8n.createPolicy){try{xyn=f8n.createPolicy("goog#gapi",{createHTML:TXW,createScript:TXW,createScriptURL:TXW})}catch(G){_.hd.console&&_.hd.console.error(G.message)}Q1u=xyn}else Q1u=xyn;var Dy5=Q1u,kXX=function(G,b){if(s$.hee&&s$.hel>0)try{return G()}catch(I){b&&b(I),s$.hel--,Ifv("debug_error",function(){try{window.___jsl.hefn(I)}catch(h){throw I;}})}else try{return G()}catch(I){throw b&&b(I),I;
}},Tan=U$.load;
Tan&&Tr(s$,"ol",[]).push(Tan);U$.load=function(G,b){return kXX(function(){return Ifv(G,b)})};var Rpv;var UyA=function(G,b){var I=I||[];this.serviceId_=G;this.moduleId_=b||null;this.dependencies_=[];Ba8(this,I)};
UyA.prototype.toString=function(){return this.serviceId_};
UyA.prototype.getModuleId=function(){return this.moduleId_};
var Ba8=function(G,b){var I=!1;I=I===void 0?!1:I;G.dependencies_=G.dependencies_.concat(b);if(I){if(!G.moduleId_)throw Error("Wa`"+G.serviceId_);b.map(function(h){return h.getModuleId()}).forEach(function(h){nWa(function(q){q.addExtraEdge(G.moduleId_,h)})})}};var dh2=new UyA("MpJwZc","MpJwZc");var MuO=new _.BZ("a"),rbr=new _.BZ("c"),ybj=function(G,b,I){_.Un.call(this,G,b);this.node=b;this.kind=I};
_.M(ybj,_.Un);var s1z=function(){this.JSC$10133_keys_={};this.urlPrefix_="";this.JSC$10133_queryData_={}};
s1z.prototype.toString=function(){var G=this.urlPrefix_+gGz(this),b=_.oN(this.JSC$10133_queryData_),I="";b!=""&&(I="?"+b);return G+I};
var AUb=function(G){G=MR(G,"md");return!!G&&G!=="0"},gGz=function(G){var b=[],I=function(h){G.JSC$10133_keys_[h]!==void 0&&b.push(h+"="+G.JSC$10133_keys_[h])};
AUb(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$10133_keys_||Zc(G,"d","0"),I("d"),I("exm"),I("excm"),(G.JSC$10133_keys_.excm||G.JSC$10133_keys_.exm)&&b.push("ed=1"),I("im"),I("dg"),I("sm"),MR(G,"br")!="1"&&MR(G,"br")!="0"||I("br"),I("br-d"),MR(G,"rb")=="1"&&I("rb"),MR(G,"zs")!=="0"&&I("zs"),MeB(G)!==""&&I("wt"),I("gssmodulesetproto"),I("ujg"),I("sp"),I("rs"),I("cb"),I("ee"),I("slk"),I("dti"),I("m"));return b.join("/")},
MR=function(G,b){return G.JSC$10133_keys_[b]?G.JSC$10133_keys_[b]:null},Zc=function(G,b,I){I?G.JSC$10133_keys_[b]=I:delete G.JSC$10133_keys_[b]},Z8e=function(G,b){G.urlPrefix_=b},teX=function(G,b){b&&b.length>0?(b.sort(),Zc(G,"exm",b.join(","))):Zc(G,"exm",null)},zxO=function(G,b){b&&b.length>0?(b.sort(),Zc(G,"excm",b.join(","))):Zc(G,"excm",null)},oGu=function(G){return(G=MR(G,"m"))?G.split(","):[]},MeB=function(G){switch(MR(G,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},i8B=function(G,b){var I=Object.keys(b).filter(function(h){return!!Object.keys(b[h]).length}).map(function(h){var q=Object.keys(b[h]);
q.length>1&&q.sort();return h+":"+q.join(",")});
I.sort();Zc(G,"ee",I.join(";"))},aOr=function(G){var b=MR(G,"ee");
if(!b)return{};G={};b=_.e(b.split(";"));for(var I=b.next();!I.done;I=b.next()){var h=_.e(I.value.split(":"));I=h.next().value;h=h.next().value;G[I]={};h=_.e(h.split(","));for(var q=h.next();!q.done;q=h.next())G[I][q.value]=!0}return G},PxO=function(G){delete G.JSC$10133_keys_.m;
delete G.JSC$10133_keys_.exm;delete G.JSC$10133_keys_.ed};
s1z.prototype.clone=function(){var G=new s1z;G.JSC$10133_keys_=Object.assign({},this.JSC$10133_keys_);G.urlPrefix_=this.urlPrefix_;G.JSC$10133_queryData_=Object.assign({},this.JSC$10133_queryData_);return G};
var Nhr=function(G,b){b=b===void 0?!0:b;var I=dy8(G),h=new s1z,q=_.eO(I)[5];_.Cy.forEach(yUA,function(V){var D=q.match("/"+V+"=([^/]+)");D&&Zc(h,V,D[1])});
var l="";l=G.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Z8e(h,G.substr(0,G.indexOf(l)+l.length));if(!b)return h;(G=_.eO(I)[6]||null)&&D2X(G,function(V,D){h.JSC$10133_queryData_[V]=D});
return h},F0B=function(G){G=_.tB(dy8(G));
return G===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(G)?/\/k=/.test(G):!1},dy8=function(G){return G.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?G.substr(65):G},yUA={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"},rUn=RegExp("^loaded_(g|h)?[_\\d]+$");_.t$=function(G){this.JSC$10145_id_=G;this.opts={}};
_.t$.prototype.JSC$10147_setLabel=function(G){this.label_=G||void 0;return this};
_.t$.prototype.addUploadMetadata=function(G,b){var I=this.opts.data||{};I[G]=b;this.opts.data=I;return this};
var FtJ=function(G){var b=_.Cy.filter(G.opts,function(I){return I!==null});
b=_.Cy.isEmpty(b)?null:b;G=[G.JSC$10145_id_,G.label_,b];b=oaO(G);return G=G.slice(0,b+1)};
_.t$.prototype.toString=function(){var G=FtJ(this);return"("+_.Ky(G,function(b){return JSON.stringify(b)}).join(",")+")"};
_.t$.prototype.getId=function(){return this.JSC$10145_id_};
_.t$.prototype.getOptions=function(){return _.Cy.clone(this.opts)};var zr=function(){_.t$.call(this,"image-search")};
_.M(zr,_.t$);zr.prototype.setSize=function(G){this.opts.imgsz=G;return this};
zr.prototype.JSC$10147_setLabel=function(G){_.t$.prototype.JSC$10147_setLabel.call(this,G);return this};
zr.prototype.addUploadMetadata=function(G,b){_.t$.prototype.addUploadMetadata.call(this,G,b);return this};var ov=function(){_.t$.call(this,"maps")};
_.M(ov,_.t$);ov.prototype.setZoom=function(G){this.opts.zoom=G;return this};
ov.prototype.JSC$10147_setLabel=function(G){_.t$.prototype.JSC$10147_setLabel.call(this,G);return this};
ov.prototype.addUploadMetadata=function(G,b){_.t$.prototype.addUploadMetadata.call(this,G,b);return this};_.iW=function(){_.t$.call(this,"photos")};
_.M(_.iW,_.t$);_.iW.prototype.JSC$10147_setLabel=function(G){_.t$.prototype.JSC$10147_setLabel.call(this,G);return this};
_.iW.prototype.addUploadMetadata=function(G,b){_.t$.prototype.addUploadMetadata.call(this,G,b);return this};var P0=function(){_.t$.call(this,"url")};
_.M(P0,_.t$);var H8z=function(){var G=new P0;G.opts.type="video";G.opts.site="youtube.com";return G};
P0.prototype.JSC$10147_setLabel=function(G){_.t$.prototype.JSC$10147_setLabel.call(this,G);return this};
P0.prototype.addUploadMetadata=function(G,b){_.t$.prototype.addUploadMetadata.call(this,G,b);return this};var du=function(){_.t$.call(this,"video-search")};
_.M(du,_.t$);var Wtz=function(){var G=new du;G.opts.site="youtube.com";return G};
du.prototype.JSC$10147_setLabel=function(G){_.t$.prototype.JSC$10147_setLabel.call(this,G);return this};
du.prototype.addUploadMetadata=function(G,b){_.t$.prototype.addUploadMetadata.call(this,G,b);return this};var a8b=function(){_.t$.call(this,"web")};
_.M(a8b,_.t$);a8b.prototype.JSC$10147_setLabel=function(G){_.t$.prototype.JSC$10147_setLabel.call(this,G);return this};
a8b.prototype.addUploadMetadata=function(G,b){_.t$.prototype.addUploadMetadata.call(this,G,b);return this};var ym=function(){this.items_=[];this.opts={}},NaA=function(G){switch(G){case "image-search":return new zr;
case "maps":return new ov;case "photos":return new _.iW;case "url":return new P0;case "video-search":return new du;case "web":return new a8b}return new _.t$(G)};
ym.prototype.addView=function(G){this.items_.push(typeof G==="string"?NaA(G):G);return this};
var Yz8=function(G){return"("+_.Ky(G.items_,function(b){return b.toString()}).join(",")+")"};
ym.prototype.toString=function(){return Yz8(this)};
ym.prototype.getViews=function(G,b){b=b===void 0?[]:b;for(var I=this.items_,h=0;h<I.length;h++){var q=I[h];q instanceof ym?q.getViews(G,b):q.getId()==G&&b.push(q)}return b};
ym.prototype.getOptions=function(){return _.Cy.clone(this.opts)};var wk=function(G){this.basePickerUrl_=G||"https://docs.google.com/picker";this.nav_=new ym};
wk.prototype.nav_=null;wk.prototype.addView=function(G){this.nav_.addView(G);return this};
wk.prototype.getBaseUrl=function(){return this.basePickerUrl_};
wk.prototype.getViews=function(G){return this.nav_.getViews(G)};
_.CxW=function(G,b){G.callback_=b;return G};var JUW=new Map;JUW.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");JUW.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");JUW.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Ktn=new Set;Ktn.add("application/vnd.google-apps.kix");Ktn.add("application/vnd.google-apps.ritz");Ktn.add("application/vnd.google-apps.punch");var bJi=function(G,b,I){var h=I&&_.U5(I,1);I=upb(I);var q=G[0].getId();switch(_.gU(q,2)){case 13:return Rxi(G,b,h,I);case 3:return nGO(G,b,h,I);case 10:return O8W(G,b,h,I);case 27:return O8W(G,b,h,I);case 12:return wwO(G,b);case 2:return EGn(G,b,h,I);case 5:return pwn(G,b,h,I);case 9:return SzW(G,b,h,I);case 6:return XwB(G,b,h,I);case 25:return $hJ(G,b,h,I);case 1:return _.eR(G[0],tan,26)?Gb5(G,b,h,I):O8W(G,b,h,I);default:return{}}},XwB=function(G,b,I,h){G=G.map(function(q){return{id:q.getId().getId(),
serviceId:"youtube",name:q.getName(),description:_.U5(q,3),type:ru(q),lastEditedUtc:_.ZTB(_.fi(q,_.U4,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:q.getUrl(),embedUrl:_.U5(q,13),thumbnails:F4(Gy(q))}});
return{action:b,docs:G,viewToken:h,view:I||"youtube",v2Translated:!0}},EGn=function(G,b,I,h){var q=G.map(function(l){var V=l.getId().getId(),D=_.U5(l,7),k=l.getName(),L=ru(l),x=_.ZTB(_.fi(l,_.U4,12)).getTime(),f=l.getUrl(),T=Number(HQu(l)),B=_.U5(l,3),A=_.U5(l,11),t=F4(Gy(l));
var y=_.fi(l,b1,21);y=_.fp(y,1);var F=_.fi(l,b1,21);F=_.U5(F,10);var W=_.U5(l,13);var O=_.fi(l,b1,21);O=_.fp(O,9);var K=_.fi(l,b1,21);K=_.U5(K,11);V={id:V,serviceId:"docs",mimeType:D,name:k,type:L,lastEditedUtc:x,url:f,sizeBytes:T,description:B,iconUrl:A,thumbnails:t,isShared:y,downloadUrl:F,embedUrl:W,copyable:O,resourceKey:K};D=_.fi(l,b1,21);_.fp(D,12)&&(V.uploadState="success",V.isNew=!0);D=_.fi(l,b1,21);_.eR(D,SE,3)&&(l=_.fi(l,b1,21),l=_.fi(l,SE,3),_.eR(l,Ep,2)&&(D=Rl(l.getDuration().getSeconds()),
k=l.getDuration(),k=_.LT(k,2),V.duration=D+k/1E9),V.aspectRatio=l.getAspectRatio());return V});
return{action:b,docs:q,viewToken:h,view:I||"all",extraUserInputs:I15(G),v2Translated:!0}},pwn=function(G,b,I,h){G=G.map(function(q){var l=_.fi(q,HTX,15);
l=_.fi(l,pf,1);oB(q,10,pf,l);return{id:q.getId().getId(),serviceId:"web",mimeType:_.U5(q,7),name:q.getName(),type:ru(q),url:q.getUrl(),description:_.U5(q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:F4(Gy(q))}});
return{action:b,docs:G,viewToken:h,view:I||"image-search",v2Translated:!0}},SzW=function(G,b,I,h){G=G.map(function(q){return{serviceId:"url",
name:Gy(q)[0].getUrl().split("/").pop(),type:ru(q),mimeType:_.U5(q,7),url:q.getUrl(),description:_.U5(q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:F4(Gy(q))}});
return{action:b,docs:G,viewToken:h,view:I||"url",v2Translated:!0}},Gb5=function(G,b,I,h){G=G.map(function(q){return{id:q.getId().getId(),
serviceId:"picasa",name:q.getName(),type:ru(q),description:_.U5(q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:F4(Gy(q))}});
return{action:b,docs:G,viewToken:h,view:I||"webcam",v2Translated:!0}},O8W=function(G,b,I,h){return{action:b,
docs:G.map(hDe),viewToken:h,view:qin(I||"upload",G),extraUserInputs:I15(G),v2Translated:!0}},qin=function(G,b){return b.some(function(I){var h;
return((h=_.fi(I,Xi,30))==null?void 0:_.gU(h,3))===9})?G+"/gmailphotos":G},nGO=function(G,b,I,h){var q=G.map(function(l){var V={id:l.getId().getId(),
serviceId:"picasa",mimeType:_.U5(l,7),name:l.getName(),type:ru(l),lastEditedUtc:_.ZTB(_.fi(l,_.U4,12)).getTime(),url:l.getUrl(),sizeBytes:Number(HQu(l)),description:_.U5(l,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:F4(Gy(l)),mediaKey:l.getId().getId(),parentId:_.U5(l,4)},D,k=(D=_.fi(l,iTn,18))==null?void 0:_.fi(D,oub,3);k&&(V.latitude=B8(k,1),V.longitude=B8(k,2));var L;l=(L=_.fi(l,iTn,18))==null?void 0:Td(L,6);L=l!=null?Rl(l):void 0;L&&(V.version=
L);return V});
return{action:b,docs:q,viewToken:h,view:I||"photos",extraUserInputs:I15(G),v2Translated:!0}},Rxi=function(G,b,I,h){G=G.map(function(q){return{id:q.getId().getId(),
serviceId:"et",name:Gy(q)[0].getUrl().split("/").pop(),description:_.U5(q,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:F4(Gy(q),"etjpg")}});
return{action:b,docs:G,viewToken:h,view:I||"et",v2Translated:!0}},$hJ=function(G,b,I,h){G=G.map(function(q){var l=q.getId().getId(),V=h["2"];
return{id:l,serviceId:V.type!=="gmail_themes"&&V.parent==="6226252643674576769"?"picasa":"static_themes",name:q.getName(),mimeType:_.U5(q,7),type:ru(q),description:_.U5(q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:q.getUrl(),embedUrl:q.getUrl(),thumbnails:F4(Gy(q))}});
return{action:b,docs:G,viewToken:h,view:I||"photos",v2Translated:!0}},wwO=function(G,b){G=G.map(function(I){var h=_.fi(I,z8b,27);
h=_.S8(h,1,_.Mf,_.vr())[0];return{id:I.getId().getId(),serviceId:"contacts",mimeType:_.U5(I,7),name:I.getName(),description:_.U5(I,3),url:"mailto:"+h,thumbnail:[{url:_.U5(I,11)}],email:h}});
return{action:b,docs:G,view:"contacts",v2Translated:!0}},upb=function(G){if(!G)return{};
var b=_.U5(G,3);b=b&&JSON.parse(b)||{};return{0:_.U5(G,1),1:_.U5(G,2),2:b}},F4=function(G,b){b=b===void 0?"":b;
if(!G.length)return null;b=="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:b}})},I15=function(G){return{isAttachment:G.some(function(b){return _.fp(b,31)})}},hDe=function(G){var b,I={id:(b=G.getId())==null?void 0:b.getId(),
serviceId:jLi(G),mimeType:_.U5(G,7),name:G.getName(),type:ru(G),sizeBytes:Number(HQu(G)),description:_.U5(G,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:F4(Gy(G)),isNew:!0};if(b=_.fi(G,Xi,30)){I.dataUrl=_.U5(b,1)||null;a:{var h=_.fi(G,Xi,30);switch(_.gU(h,3)){case 9:h=_.Zu(h,r2n,2,$1);h={remoteRefs:h&&_.U5(h,1)};break a;case 10:case 15:h=_.Zu(h,y2A,4,$1);var q=Gy(G);h={photo_id:h&&_.U5(h,1),media_key:G.getId().getId(),media_type:_.gU(G,6)===1?1:2,image_url:q&&
q[0].getUrl(),width:q&&String(q[0].getWidth()),height:q&&String(q[0].getHeight())};break a}h=null}I.uploadMetadata=h;I.uploadId=_.U5(b,9)||null;I.uploadState=l1b(b)||null}(h=b&&_.Zu(b,y2A,4,$1))&&(I.id=_.U5(h,1));(h=b&&_.Zu(b,FF8,5,$1))&&(I.contentId=_.U5(h,1));(h=b&&_.Zu(b,PGn,7,$1))&&(I.contentId=_.U5(h,1));(h=b&&_.Zu(b,d2J,6,$1))&&(I.contentId=_.U5(h,1));(b==null?void 0:_.gU(b,3))===1&&(I.mediaKey=G.getId().getId());return I},jLi=function(G){var b;
switch(((b=_.fi(G,Xi,30))==null?void 0:_.gU(b,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},ru=function(G){switch(_.gU(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 _.U5(G,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},l1b=function(G){switch(G==null?void 0:_.gU(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 Dhn,mhu,eDA,VWn;_.cbX=function(G,b){var I=b||{};b=I.document||document;var h=_.yM(G).toString(),q=(new t8(b)).createElement("SCRIPT"),l={script_:q,timeout_:void 0},V=new p4(mhu,l),D=null,k=I.timeout!=null?I.timeout:5E3;k>0&&(D=window.setTimeout(function(){eDA(q,!0);V.errback(new VWn(1,"Timeout reached for loading script "+h))},k),l.timeout_=D);
q.onload=q.onreadystatechange=function(){q.readyState&&q.readyState!="loaded"&&q.readyState!="complete"||(eDA(q,I.cleanupWhenDone||!1,D),V.callback(null))};
q.onerror=function(){eDA(q,!0,D);V.errback(new VWn(0,"Error while loading script "+h))};
l=I.attributes||{};_.Cy.extend(l,{type:"text/javascript",charset:"UTF-8"});fzn(q,l);_.mf(q,G);Dhn(b).appendChild(q);return V};
Dhn=function(G){var b=Pr("HEAD",G);return b&&b.length!==0?b[0]:G.documentElement};
mhu=function(){if(this&&this.script_){var G=this.script_;G&&G.tagName=="SCRIPT"&&eDA(G,!0,this.timeout_)}};
eDA=function(G,b,I){I!=null&&_.hd.clearTimeout(I);G.onload=function(){};
G.onerror=function(){};
G.onreadystatechange=function(){};
b&&window.setTimeout(function(){_.iG(G)},0)};
VWn=function(G,b){var I="Jsloader error (code #"+G+")";b&&(I+=": "+b);_.bs.call(this,I);this.code=G};
_.OE(VWn,_.bs);var kbQ=_.WP(["https://apis.google.com/js/api.js"]),vVb=_.Ba(kbQ),f1O=function(G,b,I){I=I===void 0?{}:I;var h=!1,q=LHz(G,b,I).then(function(V){h=!0;return V}),l=_.CMn(5E3).then(function(){return h?LHz(G,b,I):QL5(b,I).then(function(V){return xhA(V,G)})});
return ozW([q,l])},LHz=function(G,b,I){I=I===void 0?{}:I;
return T2z(b,I).then(function(h){return xhA(h,G)})},xhA=function(G,b){var I=_.jv(b,"gapi.")?b.slice(5):b;
return G[I]?_.X8(G[I]):new _.MB(function(h,q){var l=PZ(function(){q(Error("Ya"))},3E4);
G.load(b,{callback:function(){_.hd.clearTimeout(l);h(G[I])},
onerror:function(V){_.hd.clearTimeout(l);q(V)}})})},T2z=function(G,b){b=b===void 0?{}:b;
return G.gapi&&G.gapi.load?_.X8(G.gapi):QL5(G,b)},QL5=function(G,b){b=b===void 0?{}:b;
return _.cbX(vVb,{document:G.document,attributes:b}).then(function(){return G.gapi})},B2i=function(){};
B2i.prototype.load=function(G,b,I){b=b===void 0?window:b;I=I===void 0?{}:I;var h=Date.now();return f1O(G,b,I).then(function(q){var l=Date.now();return{library:q,loadStartMs:h,loadEndMs:l}},function(q){throw q instanceof Error?q:Error(String(q));
})};var qAO=function(){_.FN.call(this);this.gapiLoader_=new B2i;this.origin_=null;this.gapiPickerIframeResolver_=_.yO();this.gapiIframesResolver_=_.yO();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.M(qAO,_.FN);var Uhi=function(G,b){var I=I===void 0?{}:I;var h=_.Ge("gapi.iframes",b);return h?(G=Date.now(),_.X8({library:h,loadStartMs:G,loadEndMs:G})):G.gapiLoader_.load("gapi.iframes",b,I)},sLA=function(G,b,I,h,q,l){var V=!1;
V=V===void 0?!1:V;Uhi(G,Rk(b.ownerDocument)).then(function(D){var k=D.library;G.gapiIframesResolver_.resolve(k);D=G.gapiPickerIframeResolver_;var L=D.resolve,x=V;x=x===void 0?!1:x;var f={};f["host-message-handler"]=I;G.hostMessageHandlerInternal_=f;var T=_.Gt(h);T=_.Gt(T);T=_.jP(_.qR(_.h$(new _.a3,T.scheme_),T.JSC$10105_domain_),T.JSC$10105_port_).toString();G.origin_=T;T=(new NHn).setUrl(h);T.JSC$10120_obj_.where=b;T.JSC$10120_obj_.allowPost=x;T.JSC$10120_obj_.messageHandlers=f;x=_.Ge("makeWhiteListIframesFilter",
k)([G.origin_]);T.JSC$10120_obj_.messageHandlersFilter=x;q!=null&&(T.JSC$10120_obj_.id=q);l!=null&&(T.JSC$10120_obj_.rpctoken=l);x=a5z(T);x.JSC$10117_obj_.style={display:"block","min-width":"100%",width:"1px"};x.JSC$10117_obj_.height="100%";a5z(T).value().allow="camera 'src' "+G.origin_;k=k.getContext().openChild(T.value());L.call(D,k)},function(D){G.gapiIframesResolver_.reject(D);
G.gapiPickerIframeResolver_.reject(D)});
return G.gapiPickerIframeResolver_.promise},gVJ=function(G,b){return _.oT([G.gapiIframesResolver_.promise,
G.gapiPickerIframeResolver_.promise]).then(function(I){var h=_.e(I);I=h.next().value;return(h=h.next().value)?h.send("picker-message-handler",b,void 0,_.Ge("makeWhiteListIframesFilter",I)([G.origin_])):_.vv(Error("Za"))})};
qAO.prototype.disposeInternal=function(){AbO(this);_.FN.prototype.disposeInternal.call(this)};
var AbO=function(G){G.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete G.hostMessageHandlerInternal_["host-message-handler"])})};var MWu=function(){this.nextId=0};var tWu=function(G,b){switch(G.action){case "select-contacts":G=ZJ8(G.contacts);break;case "visibility":G=G.visible;var I=new jg;G=_.zd(I,1,7).setVisible(G);I={};I["iframe-command"]=G.serialize();G=I;break;default:G=null}return G?gVJ(b,G):_.X8()},ZJ8=function(G){if(!G||G.length==0)return null;
var b=new jg;_.zd(b,1,11);var I=new MWu;G.forEach(function(h){if(h.email){var q=new Qt;q=_.yq(q,2,h.name?h.name:h.email);var l=new z8b;h=_.Y1v(l,1,_.Ta,h.email,_.Mf);h=_.ZK(q,27,h);q=new Mau;l=":"+(I.nextId++).toString(36);q=_.yq(q,1,l);q=_.zd(q,2,12);h=_.ZK(h,1,q)}else h=null;h&&oB(b,7,Qt,h)});
G={};G["iframe-command"]=b.serialize();return G};_.zDX=function(){if(p2i){var G=/Windows NT ([0-9.]+)/;return(G=G.exec(_.Tq()))?G[1]:"0"}return _.EaQ?(G=/1[0|1][_.][0-9_.]+/,(G=G.exec(_.Tq()))?G[0].replace(/_/g,"."):"10"):Kld?(G=/Android\s+([^\);]+)(\)|;)/,(G=G.exec(_.Tq()))?G[1]:""):X2z||$8n||GAO?(G=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(G=G.exec(_.Tq()))?G[1].replace(/_/g,"."):""):""}();var H0;H0=function(G){return(G=G.exec(_.Tq()))?G[1]:""};
_.oVb=function(){if(_.b3)return H0(/Firefox\/([0-9.]+)/);if(_.Sf||Vz||nai)return m8Q;if(_.IR){if(_.dX()||_.Mvp()){var G=H0(/CriOS\/([0-9.]+)/);if(G)return G}return H0(/Chrome\/([0-9.]+)/)}if(_.pL&&!_.dX())return H0(/Version\/([0-9.]+)/);if(nPv||OUO){if(G=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Tq()))return G[1]+"."+G[2]}else if(kAz)return(G=H0(/Android\s+([0-9.]+)/))?G:H0(/Version\/([0-9.]+)/);return""}();var iJn=function(){};
_.RA(iJn);iJn.prototype.nextId_=0;_.W0=function(G){return":"+(G.nextId_++).toString(36)};var av=function(G){_.Z$.call(this);this.JSC$10215_dom_=G||rV();this.JSC$10215_id_=null;this.inDocument_=!1;this.JSC$10215_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.OE(av,_.Z$);av.prototype.idGenerator_=iJn.getInstance();av.prototype.getId=function(){return this.JSC$10215_id_||(this.JSC$10215_id_=_.W0(this.idGenerator_))};
av.prototype.getElement=function(){return this.JSC$10215_element_};
var NR=function(G){G.googUiComponentHandler_||(G.googUiComponentHandler_=new _.Bh(G));return G.googUiComponentHandler_},P4W=function(G,b){if(G==b)throw Error("$a");
var I;if(I=b&&G.parent_&&G.JSC$10215_id_){I=G.parent_;var h=G.JSC$10215_id_;I=I.childIndex_&&h?_.Cy.get(I.childIndex_,h)||null:null}if(I&&G.parent_!=b)throw Error("$a");G.parent_=b;av.superClass_.setParentEventTarget.call(G,b)};
av.prototype.setParentEventTarget=function(G){if(this.parent_&&this.parent_!=G)throw Error("ab");av.superClass_.setParentEventTarget.call(this,G)};
av.prototype.JSC$10217_createDom=function(){this.JSC$10215_element_=this.JSC$10215_dom_.createElement("DIV")};
av.prototype.render=function(G){dhX(this,G)};
var dhX=function(G,b,I){if(G.inDocument_)throw Error("bb");G.JSC$10215_element_||G.JSC$10217_createDom();b?b.insertBefore(G.JSC$10215_element_,I||null):G.JSC$10215_dom_.JSC$9399_document_.body.appendChild(G.JSC$10215_element_);G.parent_&&!G.parent_.inDocument_||G.enterDocument()};
_.m=av.prototype;_.m.decorate=function(G){if(this.inDocument_)throw Error("bb");if(G&&this.canDecorate(G)){this.wasDecorated_=!0;var b=_.ny(G);this.JSC$10215_dom_&&this.JSC$10215_dom_.JSC$9399_document_==b||(this.JSC$10215_dom_=rV(G));this.decorateInternal(G);this.enterDocument()}else throw Error("cb");};
_.m.canDecorate=function(){return!0};
_.m.decorateInternal=function(G){this.JSC$10215_element_=G};
_.m.enterDocument=function(){this.inDocument_=!0;ybu(this,function(G){!G.inDocument_&&G.getElement()&&G.enterDocument()})};
_.m.exitDocument=function(){ybu(this,function(G){G.inDocument_&&G.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.m.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);ybu(this,function(G){G.dispose()});
!this.wasDecorated_&&this.JSC$10215_element_&&_.iG(this.JSC$10215_element_);this.parent_=this.model_=this.JSC$10215_element_=this.childIndex_=this.children_=null;av.superClass_.disposeInternal.call(this)};
_.m.getModel=function(){return this.model_};
_.m.addChild=function(G,b){var I=this.children_?this.children_.length:0;if(G.inDocument_&&(b||!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?(_.Cy.set(this.childIndex_,G.getId(),G),_.CO(this.children_,G)):_.Cy.add(this.childIndex_,G.getId(),G);P4W(G,this);_.ydq(this.children_,I,0,G);G.inDocument_&&this.inDocument_&&G.parent_==this?(b=this.getContentElement(),
(b.childNodes[I]||null)!=G.getElement()&&(G.getElement().parentElement==b&&b.removeChild(G.getElement()),I=b.childNodes[I]||null,b.insertBefore(G.getElement(),I))):b?(this.JSC$10215_element_||this.JSC$10217_createDom(),I=this.children_?this.children_[I+1]||null:null,dhX(G,this.getContentElement(),I?I.JSC$10215_element_:null)):this.inDocument_&&!G.inDocument_&&G.JSC$10215_element_&&G.JSC$10215_element_.parentNode&&G.JSC$10215_element_.parentNode.nodeType==1&&G.enterDocument()};
_.m.getContentElement=function(){return this.JSC$10215_element_};
var ybu=function(G,b){G.children_&&G.children_.forEach(b,void 0)};
av.prototype.removeChild=function(G,b){if(G){var I=typeof G==="string"?G:G.getId();G=this.childIndex_&&I?_.Cy.get(this.childIndex_,I)||null:null;I&&G&&(_.Cy.remove(this.childIndex_,I),_.CO(this.children_,G),b&&(G.exitDocument(),G.JSC$10215_element_&&_.iG(G.JSC$10215_element_)),P4W(G,null))}if(!G)throw Error("eb");return G};_.OE(EW2,wfa);_.OE(pfO,wfa);var rb8;_.Cy.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var FHu=function(G,b){b?G.setAttribute("role",b):G.removeAttribute("role")},Ym=function(G,b,I){Array.isArray(I)&&(I=I.join(" "));
var h="aria-"+b;I===""||I==void 0?(rb8||(I={},rb8=(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=rb8,b in I?G.setAttribute(h,I[b]):G.removeAttribute(h)):G.setAttribute(h,I)};var HJX;_.CE=function(G,b,I){_.Z$.call(this);this.target=G;this.handle=b||G;this.limits=I||new ae(NaN,NaN,NaN,NaN);this.JSC$10220_document_=_.ny(G);this.JSC$10220_eventHandler_=new _.Bh(this);_.M2(this,this.JSC$10220_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;_.cv(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=HJX};
_.OE(_.CE,_.Z$);HJX=_.hd.document&&_.hd.document.documentElement&&!!_.hd.document.documentElement.setCapture&&!!_.hd.document.releaseCapture;_.WHO=function(G,b){G.hysteresisDistanceSquared_=Math.pow(b,2)};
_.m=_.CE.prototype;_.m.setEnabled=function(G){this.enabled_=G};
_.m.disposeInternal=function(){_.CE.superClass_.disposeInternal.call(this);_.ML(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10220_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10220_document_.releaseCapture();this.handle=this.target=null};
_.m.startDrag=function(G){var b=G.type=="mousedown";if(!this.enabled_||this.dragging_||b&&(!G.isButton(0)||_.EaQ&&G.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new J$("start",this,G.clientX,G.clientY,G)))this.dragging_=!0,b&&G.preventDefault();else return;else b&&G.preventDefault();b=this.JSC$10220_document_;var I=b.documentElement,h=!this.useSetCapture_;this.JSC$10220_eventHandler_.listen(b,["touchmove","mousemove"],this.handleMove_,
{capture:h,passive:!1});this.JSC$10220_eventHandler_.listen(b,["touchend","mouseup"],this.endDrag,h);this.useSetCapture_?(I.setCapture(!1),this.JSC$10220_eventHandler_.listen(I,"losecapture",this.endDrag)):this.JSC$10220_eventHandler_.listen(Rk(b),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10220_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,h);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=ya(rV(this.JSC$10220_document_))}};
_.m.endDrag=function(G,b){this.JSC$10220_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10220_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new J$("end",this,G.clientX,G.clientY,G,a1B(this,this.deltaX),N2O(this,this.deltaY),b||G.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.m.handleMove_=function(G){if(this.enabled_){var b=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 h=this.startX-this.clientX,q=this.startY-this.clientY;if(h*h+q*q>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new J$("start",this,G.clientX,G.clientY,G)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(G);return}}I=Yii(this,b,I);b=I.x;I=I.y;this.dragging_&&this.dispatchEvent(new J$("beforedrag",
this,G.clientX,G.clientY,G,b,I))&&(C4u(this,G,b,I),G.preventDefault())}};
var Yii=function(G,b,I){var h=ya(rV(G.JSC$10220_document_));b+=h.x-G.pageScroll.x;I+=h.y-G.pageScroll.y;G.pageScroll=h;G.deltaX+=b;G.deltaY+=I;return new _.ue(a1B(G,G.deltaX),N2O(G,G.deltaY))};
_.CE.prototype.onScroll_=function(G){var b=Yii(this,0,0);G.clientX=this.clientX;G.clientY=this.clientY;C4u(this,G,b.x,b.y)};
var C4u=function(G,b,I,h){G.target.style.left=I+"px";G.target.style.top=h+"px";G.dispatchEvent(new J$("drag",G,b.clientX,b.clientY,b,I,h))},a1B=function(G,b){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,b))},N2O=function(G,b){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,b))};
_.CE.prototype.isDragging=function(){return this.dragging_};
var J$=function(G,b,I,h,q,l,V){_.Un.call(this,G);this.clientX=I;this.clientY=h;this.browserEvent=q;this.left=l!==void 0?l:b.deltaX;this.top=V!==void 0?V:b.deltaY};
_.OE(J$,_.Un);var KE=function(G){this.JSC$10227_map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("ma");for(var I=0;I<b;I+=2)this.set(arguments[I],arguments[I+1])}else G&&this.addAll(G)};
_.m=KE.prototype;_.m.getCount=function(){return this.JSC$10227_map_.size};
_.m.getValues=function(){return Array.from(this.JSC$10227_map_.values())};
_.m.getKeys=function(){return Array.from(this.JSC$10227_map_.keys())};
_.m.containsKey=function(G){return this.JSC$10227_map_.has(G)};
_.m.containsValue=function(G){return this.getValues().some(function(b){return b==G})};
_.m.equals=function(G,b){var I=this;b=b===void 0?function(h,q){return h===q}:b;
return this===G?!0:this.JSC$10227_map_.size!=G.getCount()?!1:this.getKeys().every(function(h){return b(I.JSC$10227_map_.get(h),G.get(h))})};
_.m.isEmpty=function(){return this.JSC$10227_map_.size==0};
_.m.clear=function(){this.JSC$10227_map_.clear()};
_.m.remove=function(G){return this.JSC$10227_map_.delete(G)};
_.m.get=function(G,b){return this.JSC$10227_map_.has(G)?this.JSC$10227_map_.get(G):b};
_.m.set=function(G,b){this.JSC$10227_map_.set(G,b);return this};
_.m.addAll=function(G){if(G instanceof KE){G=_.e(G.JSC$10227_map_);for(var b=G.next();!b.done;b=G.next()){var I=_.e(b.value);b=I.next().value;I=I.next().value;this.JSC$10227_map_.set(b,I)}}else if(G)for(G=_.e(Object.entries(G)),b=G.next();!b.done;b=G.next())I=_.e(b.value),b=I.next().value,I=I.next().value,this.JSC$10227_map_.set(b,I)};
_.m.forEach=function(G,b){var I=this;b=b===void 0?this:b;this.JSC$10227_map_.forEach(function(h,q){return G.call(b,h,q,I)})};
_.m.clone=function(){return new KE(this)};(function(){for(var G=["ms","moz","webkit","o"],b,I=0;b=G[I]&&!_.hd.requestAnimationFrame;++I)_.hd.requestAnimationFrame=_.hd[b+"RequestAnimationFrame"],_.hd.cancelAnimationFrame=_.hd[b+"CancelAnimationFrame"]||_.hd[b+"CancelRequestAnimationFrame"];if(!_.hd.requestAnimationFrame){var h=0;_.hd.requestAnimationFrame=function(q){var l=(new Date).getTime(),V=Math.max(0,16-(l-h));h=l+V;return _.hd.setTimeout(function(){q(l+V)},V)};
_.hd.cancelAnimationFrame||(_.hd.cancelAnimationFrame=function(q){clearTimeout(q)})}})();
var Jbn=[[],[]],KHO=0,uIJ=!1,RDi=0,OJb=function(G,b){var I=RDi++,h={measureTask:{id:I,fn:G.measure,context:b},mutateTask:{id:I,fn:G.mutate,context:b},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(h.args||(h.args=[]),h.args.length=0,h.args.push.apply(h.args,arguments),h.args.push(h.state)):h.args&&h.args.length!=0?(h.args[0]=h.state,h.args.length=1):h.args=[h.state];h.isScheduled||(h.isScheduled=!0,Jbn[KHO].push(h));uIJ||(uIJ=!0,window.requestAnimationFrame(nVz))}},nVz=
function(){uIJ=!1;
var G=Jbn[KHO],b=G.length;KHO=(KHO+1)%2;for(var I,h=0;h<b;++h){I=G[h];var q=I.measureTask;I.isScheduled=!1;q.fn&&q.fn.apply(q.context,I.args)}for(h=0;h<b;++h)I=G[h],q=I.mutateTask,I.isScheduled=!1,q.fn&&q.fn.apply(q.context,I.args),I.state={};G.length=0};var whB=_.WP(["about:blank"]),EVA=_.WP(["javascript:undefined"]),phQ=_.Ba(whB);_.yM(phQ);var SiJ=_.Ba(EVA);_.yM(SiJ);var uW=function(G){_.Z$.call(this);this.JSC$10233_element_=G;this.listenKeyIn_=_.cv(this.JSC$10233_element_,"focus",this,!0);this.listenKeyOut_=_.cv(this.JSC$10233_element_,"blur",this,!0)};
_.OE(uW,_.Z$);uW.prototype.handleEvent=function(G){var b=new _.sn(G.event_);b.type=G.type=="focusin"||G.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};
uW.prototype.disposeInternal=function(){uW.superClass_.disposeInternal.call(this);eA(this.listenKeyIn_);eA(this.listenKeyOut_);delete this.JSC$10233_element_};var XhO=function(G,b){this.JSC$10236_element_=G;this.JSC$10236_dom_=b};var Rv=function(G,b){av.call(this,b);this.useIframeMask_=!!G;this.lastFocus_=null;this.resizeBackgroundTask_=OJb({mutate:this.resizeBackground_},this);OJb({mutate:this.updateModalAndBackground_},this)};
_.OE(Rv,av);_.m=Rv.prototype;_.m.focusHandler_=null;_.m.visible_=!1;_.m.bgEl_=null;_.m.bgIframeEl_=null;_.m.tabCatcherElement_=null;_.m.backwardTabWrapInProgress_=!1;_.m.getCssClass=function(){return"goog-modalpopup"};
_.m.getBackgroundElement=function(){return this.bgEl_};
_.m.JSC$10217_createDom=function(){Rv.superClass_.JSC$10217_createDom.call(this);var G=this.getElement(),b=v2(this.getCssClass()).split(" ");wp(G,b);G.tabIndex=0;_.hf(G,!1);$in(this);GgW(this)};
var $in=function(G){if(G.useIframeMask_&&!G.bgIframeEl_){var b=G.JSC$10215_dom_.JSC$9401_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.$T(b,phQ);G.bgIframeEl_=b;G.bgIframeEl_.className=G.getCssClass()+"-bg";_.hf(G.bgIframeEl_,!1);OyX(G.bgIframeEl_,0)}G.bgEl_||(G.bgEl_=G.JSC$10215_dom_.JSC$9401_createDom("DIV",G.getCssClass()+"-bg"),_.hf(G.bgEl_,!1))},GgW=function(G){G.tabCatcherElement_||(G.tabCatcherElement_=G.JSC$10215_dom_.createElement("SPAN"),_.hf(G.tabCatcherElement_,
!1),G.tabCatcherElement_.tabIndex=0,G.tabCatcherElement_.style.position="absolute")};
_.m=Rv.prototype;_.m.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.m.canDecorate=function(G){return!!G&&G.tagName=="DIV"};
_.m.decorateInternal=function(G){Rv.superClass_.decorateInternal.call(this,G);G=v2(this.getCssClass()).split(" ");wp(this.getElement(),G);$in(this);GgW(this);this.getElement().tabIndex=0;_.hf(this.getElement(),!1)};
_.m.enterDocument=function(){this.bgIframeEl_&&_.rt(this.bgIframeEl_,this.getElement());_.rt(this.bgEl_,this.getElement());Rv.superClass_.enterDocument.call(this);_.Fi(this.tabCatcherElement_,this.getElement());this.focusHandler_=new uW(this.JSC$10215_dom_.JSC$9399_document_);NR(this).listen(this.focusHandler_,"focusin",this.onFocus);bvi(this,!1)};
_.m.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.VQ(this.focusHandler_);Rv.superClass_.exitDocument.call(this);_.iG(this.bgIframeEl_);_.iG(this.bgEl_);_.iG(this.tabCatcherElement_)};
_.m.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_&&bvi(this,G),G){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10215_dom_.JSC$9399_document_.activeElement}catch(q){}this.updateModalAndBackground_();NR(this).listen(this.JSC$10215_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10215_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);IPb(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)m6(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){NR(this).unlisten(this.JSC$10215_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10215_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)m6(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var b=this.JSC$10215_dom_,I=b.JSC$9399_document_.body,h=b.JSC$9399_document_.activeElement||I;if(!this.lastFocus_||this.lastFocus_==I){this.lastFocus_=null;break a}(h==I||b.contains(this.getElement(),h))&&this.lastFocus_.focus()}catch(q){}this.lastFocus_=
null}}};
var bvi=function(G,b){G.modalAriaVisibilityHelper_||(G.modalAriaVisibilityHelper_=new XhO(G.JSC$10215_element_,G.JSC$10215_dom_));G=G.modalAriaVisibilityHelper_;if(b){G.hiddenElements_||(G.hiddenElements_=[]);b=G.JSC$10236_dom_.getChildren(G.JSC$10236_dom_.JSC$9399_document_.body);for(var I=0;I<b.length;I++){var h=b[I],q;if(q=h!=G.JSC$10236_element_)q=h.getAttribute("aria-hidden"),q=!(q==null||q==void 0?0:String(q));q&&(Ym(h,"hidden",!0),G.hiddenElements_.push(h))}}else if(G.hiddenElements_){for(b=
0;b<G.hiddenElements_.length;b++)G.hiddenElements_[b].removeAttribute("aria-hidden");G.hiddenElements_=null}};
Rv.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var IPb=function(G,b){G.bgIframeEl_&&_.hf(G.bgIframeEl_,b);G.bgEl_&&_.hf(G.bgEl_,b);_.hf(G.getElement(),b);_.hf(G.tabCatcherElement_,b)};
_.m=Rv.prototype;_.m.onShow=function(){this.dispatchEvent("show")};
_.m.onHide=function(){IPb(this,!1);this.dispatchEvent("hide")};
_.m.isVisible=function(){return this.visible_};
_.m.focus=function(){this.focusElement_()};
_.m.resizeBackground_=function(){this.bgIframeEl_&&_.hf(this.bgIframeEl_,!1);this.bgEl_&&_.hf(this.bgEl_,!1);var G=this.JSC$10215_dom_.JSC$9399_document_;var b=_.dV(Rk(this.JSC$10215_dom_.JSC$9399_document_)||window);var I=Math.max(b.width,Math.max(G.body.scrollWidth,G.documentElement.scrollWidth));G=Math.max(b.height,Math.max(G.body.scrollHeight,G.documentElement.scrollHeight));this.bgIframeEl_&&(_.hf(this.bgIframeEl_,!0),_.KnQ(this.bgIframeEl_,I,G));this.bgEl_&&(_.hf(this.bgEl_,!0),_.KnQ(this.bgEl_,
I,G))};
_.m.reposition=function(){var G;if(_.J4z(this.getElement())=="fixed")var b=G=0;else b=ya(this.JSC$10215_dom_),G=b.x,b=b.y;var I=RLQ(this.getElement());var h=_.dV(Rk(this.JSC$10215_dom_.JSC$9399_document_)||window);G=Math.max(G+h.width/2-I.width/2,0);b=Math.max(b+h.height/2-I.height/2,0);Cf(this.getElement(),G,b);Cf(this.tabCatcherElement_,G,b)};
_.m.onFocus=function(G){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():G.target==this.tabCatcherElement_&&PZ(this.focusElement_,0,this)};
_.m.focusElement_=function(){try{this.getElement().focus()}catch(G){}};
_.m.disposeInternal=function(){_.VQ(this.popupShowTransition_);this.popupShowTransition_=null;_.VQ(this.popupHideTransition_);this.popupHideTransition_=null;_.VQ(this.bgShowTransition_);this.bgShowTransition_=null;_.VQ(this.bgHideTransition_);this.bgHideTransition_=null;Rv.superClass_.disposeInternal.call(this)};var nT=function(G,b,I){Rv.call(this,b,I);this.JSC$10246_class_=G||"modal-dialog";this.buttons_=(new nE).addButton(h3i,!0).addButton(q3X,!1,!0)};
_.OE(nT,Rv);_.m=nT.prototype;_.m.escapeToCancel_=!0;_.m.hasTitleCloseButton_=!0;_.m.modal_=!0;_.m.draggable_=!0;_.m.backgroundElementOpacity_=.5;_.m.title_="";_.m.JSC$10248_dragger_=null;_.m.JSC$10248_disposeOnHide_=!1;_.m.titleEl_=null;_.m.titleTextEl_=null;_.m.titleTextId_=null;_.m.titleCloseEl_=null;_.m.contentEl_=null;_.m.buttonEl_=null;_.m.getCssClass=function(){return this.JSC$10246_class_};
_.m.setTitle=function(G){this.title_=G;this.titleTextEl_&&_.Wm(this.titleTextEl_,G)};
_.m.getTitle=function(){return this.title_};
_.m.getContent=function(){return""};
_.m.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var j3z=function(G){G.getElement()||G.render();return G.getElement()};
nT.prototype.getBackgroundElement=function(){this.getElement()||this.render();return nT.superClass_.getBackgroundElement.call(this)};
var lPn=function(G,b){G.backgroundElementOpacity_=b;G.getElement()&&(b=G.getBackgroundElement())&&OyX(b,G.backgroundElementOpacity_)};
nT.prototype.setDraggable=function(G){this.draggable_=G;mie(this,G&&this.inDocument_)};
nT.prototype.handleDrag=function(){};
var mie=function(G,b){var I=v2(G.JSC$10246_class_+"-title-draggable").split(" ");G.getElement()&&(b?wp(G.titleEl_,I):F0W(G.titleEl_,I));b&&!G.JSC$10248_dragger_?(b=new _.CE(G.getElement(),G.titleEl_),G.JSC$10248_dragger_=b,wp(G.titleEl_,I),_.cv(G.JSC$10248_dragger_,"start",G.setDraggerLimits_,!1,G),_.cv(G.JSC$10248_dragger_,"drag",G.handleDrag,!1,G)):!b&&G.JSC$10248_dragger_&&(G.JSC$10248_dragger_.dispose(),G.JSC$10248_dragger_=null)};
_.m=nT.prototype;
_.m.JSC$10217_createDom=function(){nT.superClass_.JSC$10217_createDom.call(this);var G=this.getElement(),b=this.JSC$10215_dom_;this.titleTextId_=this.getId();var I=this.getId()+".contentEl";this.titleEl_=b.JSC$9401_createDom("DIV",this.JSC$10246_class_+"-title",this.titleTextEl_=b.JSC$9401_createDom("SPAN",{className:this.JSC$10246_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=b.JSC$9401_createDom("SPAN",this.JSC$10246_class_+"-title-close"));gpu(G,this.titleEl_,this.contentEl_=
b.JSC$9401_createDom("DIV",{className:this.JSC$10246_class_+"-content",id:I}),this.buttonEl_=b.JSC$9401_createDom("DIV",this.JSC$10246_class_+"-buttons"));FHu(this.titleTextEl_,"heading");FHu(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Ym(this.titleCloseEl_,"label","Close");FHu(G,"dialog");Ym(G,"labelledby",this.titleTextId_||"");_.hf(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(G=this.buttons_,G.JSC$10249_element_=this.buttonEl_,G.render());_.hf(this.buttonEl_,!!this.buttons_);
lPn(this,this.backgroundElementOpacity_)};
_.m.decorateInternal=function(G){nT.superClass_.decorateInternal.call(this,G);G=this.getElement();var b=this.JSC$10246_class_+"-content";this.contentEl_=zw(document,null,b,G)[0];this.contentEl_||(this.contentEl_=this.JSC$10215_dom_.JSC$9401_createDom("DIV",b),G.appendChild(this.contentEl_));b=this.JSC$10246_class_+"-title";var I=this.JSC$10246_class_+"-title-text",h=this.JSC$10246_class_+"-title-close";(this.titleEl_=zw(document,null,b,G)[0])?(this.titleTextEl_=zw(document,null,I,this.titleEl_)[0],
this.titleCloseEl_=zw(document,null,h,this.titleEl_)[0]):(this.titleEl_=this.JSC$10215_dom_.JSC$9401_createDom("DIV",b),G.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=Wnu(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.i0("SPAN",{className:I,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Ym(G,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10215_dom_.JSC$9401_createDom("SPAN",h),this.titleEl_.appendChild(this.titleCloseEl_));_.hf(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.JSC$10246_class_+"-buttons";(this.buttonEl_=zw(document,null,b,G)[0])?(this.buttons_=new nE(this.JSC$10215_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10215_dom_.JSC$9401_createDom("DIV",b),G.appendChild(this.buttonEl_),this.buttons_&&(G=this.buttons_,G.JSC$10249_element_=this.buttonEl_,G.render()),_.hf(this.buttonEl_,
!!this.buttons_));lPn(this,this.backgroundElementOpacity_)};
_.m.enterDocument=function(){nT.superClass_.enterDocument.call(this);NR(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);NR(this).listen(this.buttonEl_,"click",this.onButtonClick_);mie(this,this.draggable_);NR(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var G=this.getElement();FHu(G,"dialog");this.titleTextEl_.id!==""&&Ym(G,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){G=this.JSC$10215_dom_;
var b=this.getBackgroundElement();G.removeNode(this.bgIframeEl_);G.removeNode(b)}this.isVisible()&&bvi(this,!1)}};
_.m.exitDocument=function(){this.isVisible()&&this.setVisible(!1);mie(this,!1);nT.superClass_.exitDocument.call(this)};
_.m.setVisible=function(G){G!=this.isVisible()&&(this.inDocument_||this.render(),nT.superClass_.setVisible.call(this,G))};
_.m.onShow=function(){nT.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.m.onHide=function(){nT.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10248_disposeOnHide_&&this.dispose()};
_.m.setDraggerLimits_=function(){var G=this.JSC$10215_dom_.JSC$9399_document_,b=_.dV(Rk(G)||window),I=Math.max(G.body.scrollWidth,b.width);G=Math.max(G.body.scrollHeight,b.height);var h=RLQ(this.getElement());_.J4z(this.getElement())=="fixed"?this.JSC$10248_dragger_.limits=new ae(0,0,Math.max(0,b.width-h.width),Math.max(0,b.height-h.height)):this.JSC$10248_dragger_.limits=new ae(0,0,I-h.width,G-h.height)};
_.m.onTitleCloseClick_=function(){e3z(this)};
var e3z=function(G){if(G.hasTitleCloseButton_){var b=G.buttons_,I=b&&b.cancelButton_;I?(b=b.get(I),G.dispatchEvent(new O$(I,b))&&G.setVisible(!1)):G.setVisible(!1)}},VuA=function(G){G.hasTitleCloseButton_=!1;
G.titleCloseEl_&&_.hf(G.titleCloseEl_,G.hasTitleCloseButton_)};
nT.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;nT.superClass_.disposeInternal.call(this)};
nT.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 b=this.buttons_.get(G);this.dispatchEvent(new O$(G,b))&&this.setVisible(!1)}};
nT.prototype.onKey_=function(G){var b=!1,I=!1,h=this.buttons_,q=G.target;if(G.type=="keydown")if(this.escapeToCancel_&&G.keyCode==27){var l=h&&h.cancelButton_;q=q.tagName=="SELECT"&&!q.disabled;l&&!q?(I=!0,b=h.get(l),b=this.dispatchEvent(new O$(l,b))):q||(b=!0)}else{if(G.keyCode==9&&G.shiftKey&&q==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(x){}PZ(this.resetBackwardTabWrap_,0,this)}}else if(G.keyCode==13){if(q.tagName=="BUTTON"&&!q.disabled)l=q.name;
else if(q==this.titleCloseEl_)e3z(this);else if(h){var V=h.defaultButton_,D;if(D=V)a:{D=Pr("BUTTON",h.JSC$10249_element_);for(var k,L=0;k=D[L];L++)if(k.name==V||k.id==V){D=k;break a}D=null}q=(q.tagName=="TEXTAREA"||q.tagName=="SELECT"||q.tagName=="A")&&!q.disabled;!D||D.disabled||q||(l=V)}l&&h&&(I=!0,b=this.dispatchEvent(new O$(l,String(h.get(l)))))}else q!=this.titleCloseEl_||G.keyCode!=32&&G.key!=" "||e3z(this);if(b||I)G.stopPropagation(),G.preventDefault();b&&this.setVisible(!1)};
var O$=function(G,b){this.type="dialogselect";this.key=G;this.caption=b};
_.OE(O$,_.Un);var nE=function(G){KE.call(this);G||rV();this.cancelButton_=this.JSC$10249_element_=this.defaultButton_=null};
_.OE(nE,KE);_.m=nE.prototype;_.m.clear=function(){KE.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.m.set=function(G,b,I,h){KE.prototype.set.call(this,G,b);I&&(this.defaultButton_=G);h&&(this.cancelButton_=G);return this};
_.m.addButton=function(G,b,I){return this.set(G.key,G.caption,b,I)};
_.m.render=function(){if(this.JSC$10249_element_){_.ec(this.JSC$10249_element_,ejj);var G=rV(this.JSC$10249_element_);this.forEach(function(b,I){b=G.JSC$9401_createDom("BUTTON",{name:I},b);I==this.defaultButton_&&(b.className="goog-buttonset-default");this.JSC$10249_element_.appendChild(b)},this)}};
_.m.decorate=function(G){if(G&&G.nodeType==1){this.JSC$10249_element_=G;G=Pr("BUTTON",this.JSC$10249_element_);for(var b,I,h,q=0;b=G[q];q++)if(I=b.name||b.id,h=Wnu(b)||b.value,I){var l=q==0;this.set(I,h,l,b.name=="cancel");l&&_.Hv(b,"goog-buttonset-default")}}};
_.m.getElement=function(){return this.JSC$10249_element_};
var h3i={key:"ok",caption:"OK"},q3X={key:"cancel",caption:"Cancel"},Din={key:"yes",caption:"Yes"},c_X={key:"no",caption:"No"},kgA={key:"save",caption:"Save"},vcO={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new nE).addButton(h3i,!0,!0),(new nE).addButton(h3i,!0).addButton(q3X,!1,!0),(new nE).addButton(Din,!0).addButton(c_X,!1,!0),(new nE).addButton(Din).addButton(c_X,!0).addButton(q3X,!1,!0),(new nE).addButton(vcO).addButton(kgA).addButton(q3X,!0,!0));_.OE(SGr,nT);_.OE(Xfp,wk);var LLb=_.WP(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),Q3e=_.WP(["//apis.google.com/js/rpc.js"]),m9s=_.Ba(LLb),lOB=_.Ba(Q3e),Gvv=null;var E8=function(G,b){_.Z$.call(this);this.JSC$10258_element_=G;G=_.mG(this.JSC$10258_element_)?this.JSC$10258_element_:this.JSC$10258_element_?this.JSC$10258_element_.body:null;this.isRtl_=!!G&&_.waO(G);this.listenKey_=_.cv(this.JSC$10258_element_,_.XE?"DOMMouseScroll":"mousewheel",this,b)};
_.OE(E8,_.Z$);E8.prototype.handleEvent=function(G){var b=0,I=0,h=G.event_;h.type=="mousewheel"?(G=xiW(-h.wheelDelta),h.wheelDeltaX!==void 0?(b=xiW(-h.wheelDeltaX),I=xiW(-h.wheelDeltaY)):I=G):(G=h.detail,G>100?G=3:G<-100&&(G=-3),h.axis!==void 0&&h.axis===h.HORIZONTAL_AXIS?b=G:I=G);typeof this.maxDeltaX_==="number"&&(b=_.Ak(b,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(I=_.Ak(I,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(b=-b);b=new fPW(G,h,b,I);this.dispatchEvent(b)};
var xiW=function(G){return _.$Y&&(_.EaQ||SjB)&&G%40!=0?G:G/40};
E8.prototype.disposeInternal=function(){E8.superClass_.disposeInternal.call(this);eA(this.listenKey_);this.listenKey_=null};
var fPW=function(G,b,I,h){_.sn.call(this,b);this.type="mousewheel";this.detail=G;this.deltaX=I;this.deltaY=h};
_.OE(fPW,_.sn);_.Jx=function(G){var b="instance_";if(G.instance_&&G.hasOwnProperty(b))return G.instance_;b=new G;return G.instance_=b};var jba;var TLu=_.WP(["https://about:blank"]),BLX=_.WP(['javascript:""']),Uiu=_.WP(["about:blank"]);_.OE(qQ,SGr);_.m=qQ.prototype;_.m.JSC$10266_url_="";_.m.JSC$10266_iframe_=null;_.m.iframeLoaded_=!1;_.m.loadedFired_=!1;_.m.callback_=function(){};
_.m.enterDocument=function(){qQ.superClass_.enterDocument.call(this);hjO(this.getBackgroundElement(),NR(this))};
_.m.render=function(G){var b=this;qQ.superClass_.render.call(this,G);this.useGapi_?Uhi(this.iframeManager_,window).then(function(){return s3Q(b)}).then(null,function(){b.callback_({action:"error"})}):gcQ(this)};
var s3Q=function(G){var b=G.JSC$10215_dom_.JSC$9401_createDom("div",["picker-dialog-content","picker-frame"]);_.hf(b,!1);G.getContentElement().appendChild(b);return sLA(G.iframeManager_,b,function(I){var h=Y8b(I["iframe-command"]);switch(h.getCommand()){case 1:I=G.callback_;h=_.fi(h,qL,2);var q="";switch(h.getStatus()){case 2:q="cancel";break;case 1:q="picked";break;case 3:q="error"}var l=_.ku(h,Qt,2,_.vr(snn));h=l.length===0?{action:q}:bJi(l,q,_.fi(h,WFO,7));I.call(G,h);G.setVisible(!1);break;case 4:VuA(G);
G.callback_({action:"loaded"});break;case 7:case 8:I=G.callback_;a:{q=h.getCommand();l=_.fi(h,qL,2);switch(q){case 7:q="uploadScheduled";break;case 8:q="uploadStateChange";break;default:h={};break a}h=_.ku(l,Qt,2,_.vr(snn));if(h.length===0)h={action:q};else{var V=_.fi(l,WFO,7);l=V&&_.U5(V,1);V=upb(V);h=O8W(h,q,l,V)}}I.call(G,h)}},G.JSC$10266_url_,G.targetId_,G.rpcToken_).then(function(I){G.JSC$10266_iframe_=I.getIframeEl();
A_z(G);_.hf(G.JSC$10266_iframe_.parentElement,!0);_.Hv(G.getElement(),"picker-dialog");Mun(G);return I})},gcQ=function(G){G.JSC$10266_iframe_=G.JSC$10215_dom_.JSC$9401_createDom("IFRAME",{id:G.targetId_,
name:G.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.$T(G.JSC$10266_iframe_,ZvJ(G));_.Hv(G.getElement(),"picker-dialog");G.getContentElement().appendChild(G.JSC$10266_iframe_);NR(G).listen(G.JSC$10266_iframe_,"load",function(){return void A_z(G)});
G.JSC$10266_iframe_.src=G.JSC$10266_url_;Mun(G)},z3Q=function(G){tue(G,(0,_.Hr)(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},G))},Mun=function(G){var b=_.bI(_.Gt(G.JSC$10266_url_),"title");
b&&G.setTitle(b)},ZvJ=function(G){return _.sOB("Internet Explorer")>=7&&_.jv(G.JSC$10266_url_,"https")?_.Ba(TLu):_.Sf?_.Ba(BLX):_.Ba(Uiu)},A_z=function(G){z3Q(G);
G.iframeLoaded_=!0;G.JSC$10266_iframe_.tabIndex=0;G.isVisible()&&G.focus()};
qQ.prototype.handleKeydown_=function(G){G.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),G.stopPropagation(),G.preventDefault())};
var tue=function(G,b){var I=G.JSC$10264_gadgetsDomHelper_;biv(function(){b(I.getWindow().gadgets.rpc)},I)};
qQ.prototype.setUrl=function(G){G=_.IJ(new _.a3(G),"rpcService",this.targetId_);_.IJ(G,"rpctoken",this.rpcToken_);_.eP(G,"rpctoken="+this.rpcToken_);_.h$(G,"https");this.JSC$10266_url_=G.toString();this.JSC$10266_iframe_&&(this.JSC$10266_iframe_.src=this.JSC$10266_url_)};
var ocB=function(G,b){G.callback_=b;tue(G,(0,_.Hr)(function(I){I.register(this.targetId_,(0,_.Hr)(this.handlePickerAction_,this))},G))};
qQ.prototype.handlePickerAction_=function(G){var b=G.action;b=="loaded"&&(this.loadedFired_=!0,ive(this,new pfO(this.isVisible())),PU5(this),VuA(this),NR(this).unlisten(this.JSC$10215_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10266_iframe_.tabIndex=0);b!="picked"&&b!="cancel"||this.setVisible(!1);this.callback_(G)};
var PU5=function(G){G.JSC$10266_appId_&&ive(G,new EW2(G.JSC$10266_appId_,window.location.protocol+"//"+window.location.host))};
qQ.prototype.setRelayUrl=function(G){tue(this,(0,_.Hr)(function(b){b.setRelayUrl(this.targetId_,G)},this))};
var ive=function(G,b){G.useGapi_&&tWu(b,G.iframeManager_).then(null,function(){G.callback_({action:"error"})});
tue(G,(0,_.Hr)(function(I){I.call(this.targetId_,"picker",null,b)},G))};
qQ.prototype.resizePicker_=function(){var G=Rk(this.JSC$10215_dom_.JSC$9399_document_)||window;if(_.bI(_.Gt(this.JSC$10266_url_),"ignoreLimits")=="true")G=new _.Pa(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.bI(_.Gt(this.JSC$10266_url_),"shadeDialog")=="true"){var b=j3z(this);b=EpW(b);var I=_.dV(G);G=I.width-80;I=I.height-40;b&&(G-=b.left?b.left:0,G-=b.right?b.right:0,I-=b.top?b.top:0,I-=b.bottom?b.bottom:0);G=new _.Pa(G>0?G:0,I>0?I:0)}else(b=this.preferredDialogWidth_)?(b=Math.max(320,
Math.min(1051,b)),(I=this.preferredDialogHeight_)||(I=_.dV(G).height*.85),I=Math.max(480,Math.min(650,I))):(b=_.dV(G),I=b.width*.618,I=I<b.height?Math.round(Math.max(480,Math.min(650,I*.85))):Math.round(Math.max(480,Math.min(650,b.height*.85))),b=Math.round(I/.618)),G=_.dV(G),b=Math.min(b,Math.max(G.width,320)),I=Math.min(I,Math.max(G.height,480)),G=new _.Pa(b,I);_.KnQ(this.getContentElement(),G);this.reposition()};
qQ.prototype.reposition=function(){if(_.bI(_.Gt(this.JSC$10266_url_),"shadeDialog")=="true"){var G=RLQ(this.getElement()),b=_.dV(this.JSC$10215_dom_.getWindow());G=Math.floor(b.width/2-G.width/2);b=j3z(this);if(b=EpW(b)){var I=b.left?b.left:0;I+=b.right?b.right:0;G=Math.floor(G-I/2)}G=G>0?G:0;b=ya(this.JSC$10215_dom_).y;Cf(this.getElement(),G,b)}else qQ.superClass_.reposition.call(this)};
qQ.prototype.setVisible=function(G){if(G!=this.isVisible()&&this.autoSizeDialog_){var b=this.JSC$10215_dom_.getWindow();G?(this.resizePicker_(),NR(this).listen(b,"resize",this.resizePicker_),this.iframeLoaded_||NR(this).listen(b,"keydown",this.handleKeydown_)):(NR(this).unlisten(b,"resize",this.resizePicker_),this.iframeLoaded_||NR(this).unlisten(b,"keydown",this.handleKeydown_))}qQ.superClass_.setVisible.call(this,G);ive(this,new pfO(G))};
qQ.prototype.focus=function(){qQ.superClass_.focus.call(this);if(this.JSC$10266_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10266_iframe_.focus()}catch(G){}};var DL=function(G,b){b=b===void 0?qQ:b;wk.call(this,G);this.pickerConstructor=b;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_=[]};
_.M(DL,Xfp);DL.prototype.JSC$10271_disposeOnHide_=!1;
DL.prototype.build=function(){this.JSC$10172_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10172_appId_);this.getRelayUrl()||this.setRelayUrl(_.lW(_.eP(_.mQ(_.Gt(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(diB(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);G.JSC$10248_disposeOnHide_=this.JSC$10271_disposeOnHide_;
G.JSC$10266_appId_=this.JSC$10172_appId_;G.loadedFired_&&PU5(G);ocB(G,this.callback_);return G};
var y_z=function(G){G.urlParamMap_.set("multiselectEnabled","true");return G};
_.m=DL.prototype;_.m.getHeight=function(){return this.dialogHeight_};
_.m.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.m.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.m.getTitle=function(){return this.urlParamMap_.get("title")};
_.m.getWidth=function(){return this.dialogWidth_};
var r_i=function(G){G.JSC$10271_disposeOnHide_=void 0;return G};
DL.prototype.setRelayUrl=function(G){this.urlParamMap_.set("parent",G);return this};
var FLB=function(G,b){G.urlParamMap_.set("selectButtonLabel",b);return G};
DL.prototype.setSize=function(G,b){this.dialogWidth_=G;this.dialogHeight_=b;return this};
DL.prototype.setTitle=function(G){this.urlParamMap_.set("title",G);return this};
var diB=function(G){G.postProcessors_.length&&G.urlParamMap_.set("pp",JSON.stringify(G.postProcessors_));G.urlParamMap_.set("nav",Yz8(G.nav_));var b=new _.a3(G.getBaseUrl());G.urlParamMap_.forEach(function(I,h){_.IJ(b,h,I)});
return b};var aP5=function(G,b){G.name!==void 0?(this.name=G.name,this.code=Hve[G.name]):(this.code=G=G.code,this.name=WLz(G));_.bs.call(this,mzA("%s %s",this.name,b))};
_.OE(aP5,_.bs);var WLz=function(G){var b=_.Cy.findKey(Hve,function(I){return G==I});
if(b===void 0)throw Error("hb`"+G);return b},wu={},Hve=(wu.AbortError=3,wu.EncodingError=5,wu.InvalidModificationError=9,wu.InvalidStateError=7,wu.NotFoundError=1,wu.NotReadableError=4,wu.NoModificationAllowedError=6,wu.PathExistsError=12,wu.QuotaExceededError=10,wu.SecurityError=2,wu.SyntaxError=8,wu.TypeMismatchError=11,wu);var NLQ=function(G,b){_.Un.call(this,G.type,b);this.event_=G};
_.OE(NLQ,_.Un);var Y3n=function(G,b,I){I===void 0&&(I=G.size);return G.slice?G.slice(b,I):null};var D9j=new WeakMap,Vyv=function(G,b){G=[G];for(var I=b.length-1;I>=0;--I)G.push(typeof b[I],b[I]);return G.join("\v")};_.kvB(function(){if(!_.hd.Blob)return!1;var G=new Uint8Array(100);try{var b=new Blob([G])}catch(I){return!1}return b.size!=100?!1:!0});
var CUb=_.kvB(function(){if(!_.hd.Blob)return!1;var G=new Uint8Array(100);try{var b=new Blob([G])}catch(I){return!1}return Y3n(b,0,1)===null?!1:!0});_.hd.U3bHHf!=null||(_.hd.U3bHHf=0);_.hd.U3bHHf++;_.J_b=new WeakMap;_.KLX=new WeakMap;var L0d={};var mT=void 0;var x9u=Symbol("pb");var iis=DZ("WizInjectionContext_Dispatcher");var QS=Symbol("qb");var oj,Fj;oj=function(){this.afterRenderCallbacks=null};
_.fPB=Symbol("rb");Fj=function(G){this.props=G;this.__unmounted=!1};
Fj.prototype.didPatch=function(){};
Fj.prototype.didMount=function(){};
Fj.prototype.didUnmount=function(){};
Fj.prototype.didUpdate=function(){};_.Mys=DZ("WizInjectionContext_RootElement");var tya=DZ("WizInjectionContext_AppContext"),Zis=DZ("WizInjectionContext_ModelRootElement"),zjr=DZ("WizInjectionContext_RendererData"),o_O=DZ("WizInjectionContext_InjectingConstructor"),AF2=DZ("WizInjectionContext_AsyncDeps"),PuO={};var W0r=!1;var Cuj={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:Kp5,enableLazyTsx:uOb,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:JdA,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var k8=Object.assign({},{attributes:{},handleError:function(G){throw G;}},Cuj);var u8A=Symbol("vb"),aJ=Symbol("wb"),j1d=Symbol("xb"),hxj=Symbol("yb"),kX2=WX(function(G){return v$(G)&&u8A in G});var wzX=Symbol("zb"),E$={},n_u=(E$[wzX]=!0,E$.debugName="[component]",E$.getComponentStack=function(){for(var G=[],b=this;b;)E_v(b)&&G.push(b.debugName),b=b.parent;return G},E$.registerSignal=function(){},E$.registerEffect=function(){},E$);var L0=null,x8=!1,UM=1,Af=Symbol("Db"),iI={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 pE=Symbol("Eb"),SP=Symbol("Fb"),gv=Symbol("Gb"),jBd=Object.assign({},iI,{value:pE,dirty:!0,error:null,equal:pzO,kind:"computed",producerMustRecompute:function(G){return G.value===pE||G.value===SP},
producerRecomputeValue:function(G){if(G.value===SP)throw Error("Z");var b=G.value;G.value=SP;var I=I5a(G),h=!1;try{var q=G.computation();QA(null);h=b!==pE&&b!==gv&&q!==gv&&G.equal(b,q)}catch(l){q=gv,G.error=l}finally{QA(I),G&&qYp(G)}h?G.value=b:(G.value=q,G.version++)}});Object.assign({},iI,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var VGO=function(){throw Error();};var cMr=null,mBq=Object.assign({},iI,{equal:pzO,value:void 0,kind:"signal"});var ksr=Object.assign({},iI,{value:pE,dirty:!0,error:null,equal:pzO,kind:"linkedSignal",producerMustRecompute:function(G){return G.value===pE||G.value===SP},
producerRecomputeValue:function(G){if(G.value===SP)throw Error("Z");var b=G.value;G.value=SP;var I=I5a(G);try{var h=G.source();var q=G.computation(h,b===pE||b===gv?void 0:{source:G.sourceValue,value:b});G.sourceValue=h}catch(l){q=gv,G.error=l}finally{QA(I),G&&qYp(G)}b!==pE&&q!==gv&&G.equal(b,q)?G.value=b:(G.value=q,G.version++)}});Object.assign({},iI,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(G){G.schedule!==null&&G.schedule(G.ref)},
cleanupFn:function(){}});var QBX=Symbol("Hb"),tf=Symbol("Ib");var zt=Array.isArray;var MGp;var R3A={},tGO=AMs(Object.assign({},{consumerAllowSignalWrites:!0},R3A)),P3=AMs(Object.assign({},{consumerAllowSignalWrites:!0},R3A));var rv=Symbol("Nb");var yA=null,i1d,wAr=null,E2v;var NQ=0,Y8=!1,X4=function(){this.queue=new Set};
X4.prototype.schedule=function(G){this.queue.add(G)};
X4.prototype.remove=function(G){this.queue.delete(G)};
X4.prototype.clear=function(){this.queue.clear()};
var $yp=Symbol("Ob"),SYj=Symbol("Pb"),$l=function(){X4.apply(this,arguments)};
_.M($l,X4);$l.prototype.flush=function(){if(this.queue.size){Y8=!0;for(var G=_.e(this.queue),b=G.next();!b.done;b=G.next()){b=b.value;this.queue.delete(b);try{b.run()}catch(I){nci(I)}}Y8=!1}};
var Ovi=function(){$l.apply(this,arguments)};
_.M(Ovi,$l);var XAB=new Ovi,wqn=function(){$l.apply(this,arguments)};
_.M(wqn,$l);wqn.prototype.schedule=function(G){return _.c(function(b){if(b.nextAddress==1)return b.yield(Promise.resolve(),2);G.run();_.ip(b)})};
wqn.prototype.enqueue=function(G){this.queue.add(G)};
var GXv=new wqn,Gk=function(){X4.apply(this,arguments)};
_.M(Gk,X4);Gk.prototype.flush=function(){this.queue.size&&vGv(this.queue)};
var EcW=function(){Gk.apply(this,arguments)};
_.M(EcW,Gk);EcW.prototype.schedule=function(G){G.hasRun?this.queue.add(G):G.run()};
EcW.prototype.flush=function(){if(this.queue.size)if(k8.flushRenderEffectsDuringRender){var G=this.queue;this.queue=new Set;vGv(G)}else vGv(this.queue)};
var I8u=new EcW,pqQ=function(){Gk.apply(this,arguments)};
_.M(pqQ,Gk);pqQ.prototype.schedule=function(G){return _.c(function(b){if(b.nextAddress==1)return b.yield(Promise.resolve(),2);G.run();_.ip(b)})};
pqQ.prototype.enqueue=function(G){this.queue.add(G)};
var l8O=new pqQ,S3e=function(){Gk.apply(this,arguments)};
_.M(S3e,Gk);var qzO=new S3e,exs=[I8u,XAB,qzO],cUq=[GXv,l8O],Xqb=[I8u,qzO,l8O],Ltj=[].concat(_.Nz(exs),_.Nz(cUq)),$Pz=[];cMr=function(){Dyd();for(var G=_.e($Pz),b=G.next();!b.done;b=G.next())b=b.value,b()};
var nci=qr;var bO={},Gmi=Object.assign({},iI,(bO[u8A]=!0,bO.effectType=aJ,bO.isResettableContext=!0,bO.hasRun=!1,bO.effectFn=null,bO.consumerIsAlwaysLive=!0,bO.consumerAllowSignalWrites=!0,bO.consumerMarkedDirty=myB,bO.kind="effect",bO.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(x8)throw Error("Qb");this.dirty=!1;if(!this.hasRun||$Bd(this)){this.hasRun=!0;g_O(this);var G=_.eT(this),b=I5a(this);K0X("effectRun",this.debugName);try{W$(this.effectFn,this.componentStack,this)}catch(I){throw k8.enableContextBasedComponentStacks&&
H$(I),I;}finally{u5O("effectRun",this.debugName),QA(b),this&&qYp(this),_.eT(G)}}}},bO.componentStack=void 0,bO.debugName="[effect]",bO[Symbol.dispose]=function(){if(B$(this))for(var G=this.producers;G!==void 0;)G=h2p(G);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;G=_.e(Xqb);for(var b=G.next();!b.done;b=G.next())b.value.remove(this);sbX(this)},bO));var xyO=Object.assign({},Gmi,{effectType:aJ});var f8O=Object.assign({},Gmi,{effectType:j1d});var Uyq=Symbol("Rb");var I1d=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 AUa={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},gGX=
{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}]}},TYd={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},te2=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Z8r={"*":{async:1,dir:0,loading:2,target:3}};var bUB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Iw={},oGj=(Iw[1]=null,Iw[2]=function(G,b){return b instanceof wd?Xa(b):CA.toString()},Iw[3]=function(G,b){return Wg(b)?_.aI(b):bUB.test(String(b))?String(b):CA.toString()},Iw[4]=function(G,b){return b instanceof il?_.yM(b):CA.toString()},Iw[5]=function(G,b){return String(b)},Iw[7]=null,Iw[8]=null,Iw[10]=null,Iw);var AWO=Symbol("Ub");var f7s=function(G){var b=IEW,I=G,h="",q="",l=1;G<0&&(G=-G);if(G===Infinity)G=(Infinity*Math.sign(I)).toString();else{for(var V=0;V<hZz.length;V++){var D=hZz[V];l=b[D];if(G>=l||l<=1&&G>.1*l){h=D;break}}h?(h+="B",q=" "):l=1;G=Math.round(I/l*10)/10+q+h}return G},hZz="Y Z E P T G M K  m u n".split(" "),IEW={"":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};_.qSu=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 sB={};RegExp.prototype.hasOwnProperty("sticky");var qis=function(G){G=String(G);for(var b=function(h,q,l){for(var V=Math.min(q.length-l,h.length),D=0;D<V;D++){var k=q[l+D];if(h[D]!==("A"<=k&&k<="Z"?k.toLowerCase():k))return!1}return!0},I=0;(I=G.indexOf("<",I))!=-1;){if(b("\x3c/script",G,I)||b("\x3c!--",G,I))return"zSoyz";
I+=1}return G};var Xq={default:"__default"};var FtO=Object.prototype.hasOwnProperty;dyr.prototype=Object.create(null);var cw=a8a();var Dp=null;var EGO=function(G){this.created=[];this.deleted=[];this.node=G};var pwO=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var G=this,b=G;G;)b=G,G=G.parentNode;return b};var Yzr=function(G,b){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=G;this.key=b;this.text=void 0};var qc=null,jk=null,Ij=null,m7=null,Rxu=[],upa=JUB,ek=[],VS=[],gUX=function(G){return SzB(function(b,I,h){Ij=jk=b;jk=null;I(h);Kts(null);jk=Ij;Ij=Ij.parentNode;return b},G)}(),sZs=function(G){return SzB(function(b,I,h){var q={nextSibling:b};
jk=q;I(h);Ij&&Kts(b.nextSibling);return q===jk?null:jk},G)}();var c3=[],$hO=0;var kz=new dyr;var QB=new dyr;var jWO=a8a(),mhj=jWO[Xq.default],l1a=jWO.style,hDr=["focusin","focusout"],Dhs="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var phO=function(){},N2p=function(){},bvu=function(){},Xhp=function(){};var L3=Symbol("bc");var QLd,LHX=vVa;var Zp=Symbol("cc");var GgB=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(" ")),
$is=new Set(["a","font","script","style","title"]);_.Mc={setUp:oVa,tearDown:oVa,log:oVa,logNodeRange:oVa,graft:function(G,b){b()}};var dy={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var yS=null,ry=function(G,b){Fj.call(this,G);var I=this;this.functionComponent=b;this.hooks=[];this.hookCounter=0;this.disposeEffects=RJ(function(h){I.effectContext=h;_.uI(function(){KHp(I,I.el)})},k8.alwaysTrackContexts||!!mT)};
_.M(ry,Fj);ry.prototype.render=function(G){var b=yS;yS=this;this.hookCounter=0;var I=QA(P3),h=_.eT(this.effectContext);try{return K0X("render",this.componentName),this.functionComponent(G)}finally{u5O("render",this.componentName),_.eT(h),QA(I),yS=b}};
_.kV.Object.defineProperties(ry.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return z2B(this.functionComponent)}}});var IPa=Symbol("qc"),whv=function(G,b,I){this.afterRenderCallbacks=null;this.kind=G;this.props=b;this.children=I};
_.M(whv,oj);whv.prototype.render=function(){var G=OJa(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var b=_.e(this.afterRenderCallbacks),I=b.next();!I.done;I=b.next())I=I.value,G=I(G);return G};
whv.prototype.getChildren=function(){return this.children};var q32=[];VGO=function(G){throw Error("ob`"+G.debugName);};
(function(){var G=Dp;Dp=function(b){G==null||G(b);j3X(b)}})();Object.assign({},Gmi,{effectType:aJ,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var G=this.elementRef;var b;G.element!=null||(G.element=(b=G.document.getElementById(G.value))!=null?b:void 0);G=G.element;for(b=this.attributes;b;){var I=b.signal();I!==b.prevValue&&(b.prevValue=I,b.namespace===1?G[b.name]=I:I1d.has(b.name)?ST(G,b.name,I?"":null):ST(G,b.name,I));b=b.next}}});_.H3.debugName="tbhMcf";_.W3.debugName="zyMFzb";Object.assign({},Gmi,{effectType:aJ,hasRun:!0});_.Q.debugName="RlDudd";var lPO={nonNullableCondIsNull:function(){return Error("uc")}};var vcp=function(){this.map=new Map};
vcp.prototype.push=function(G,b){var I=this.map;I.has(G)&&(this.multi||(this.multi=new Map),this.multi.set(b,I.get(G)));I.set(G,b)};
vcp.prototype.pop=function(G){var b=this.map,I=b.get(G),h;I!==void 0&&((h=this.multi)==null?0:h.has(I))?(b.set(G,this.multi.get(I)),this.multi.delete(I)):b.delete(G);return I};_.aj.debugName="nsTGHd";_.Nc.debugName="vI1rtf";_.BL2={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,b){return Error("zc`"+((b===void 0?0:b)?"IDOM":"Reactive")+"`"+(Yz(G)?G.description:G))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(G,b){return Error("Ac`"+(Yz(G)?G.description:G)+"`"+b)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(G){return Error("Bc`"+(Yz(G)?G.description:G))},
USE_ELEMENT_NOT_ASSIGNED:function(G){return Error("Cc`"+(Yz(G)?G.description:G))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(G){return Error("Dc`"+(Yz(G)?G.description:G))}};QLd=EVq;var ZvO=Symbol("Ec");C4j({beforeRender:function(G){var b=_.eT(G.effectContext);try{var I;((I=G.__syncEffects)==null?0:I.length)&&ocv(G.__syncEffects)}finally{_.eT(b)}},
didPatch:function(G){var b=_.eT(G.effectContext);try{var I;((I=G.__syncEffects)==null?0:I.length)&&ocv(G.__syncEffects)}finally{_.eT(b)}},
didUnmount:function(G){var b;((b=G.hooks)==null?0:b.length)&&G.hooks.forEach(z3O)}});var lEA,mPb,eZQ;lEA=_.hd.window;_.n3=(lEA==null?void 0:(mPb=lEA.yt)==null?void 0:mPb.config_)||(lEA==null?void 0:(eZQ=lEA.ytcfg)==null?void 0:eZQ.data_)||{};_.cz("yt.config_",_.n3);var VXb={},r_u=[];_.Wf=function(G){var b=_.RI.apply(1,arguments);var I=Error.call(this,G);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.args=[].concat(_.Nz(b));Object.setPrototypeOf(this,this.constructor.prototype)};
_.M(_.Wf,Error);var bb2=function(G,b,I){this.actionName=G;this.optionalAction=b===void 0?!1:b;this.args=I===void 0?null:I;this.returnValue=[]};_.hu=function(G){this.name=G};_.$G=new _.hu("signalAction");var R3q=/^[\w.]*$/,NLO={q:!0,search_query:!0},aPd=String(WLX);var QE;QE=Symbol("Fc");_.q3=function(G){this.name=G};
_.q3.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var ncu=function(G){this.key=G},S3r=function(G){this.deferredKey=G},wqs=function(){var G=this;
this.providers=new Map;this.JSC$10561_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(G.providers)}}};
wqs.prototype.addProvider=function(G){this.providers.set(G.provide,G);var b=this.JSC$10561_deferred.get(G.provide);if(b)try{b.resolver(this.resolve(G.provide))}catch(I){b.rejector(I)}};
wqs.prototype.resolve=function(G){return G instanceof S3r?DPe(this,G):G instanceof ncu?cZO(this,G.key,[],!0):cZO(this,G,[])};
var DPe=function(G,b){b=b.deferredKey;if(G.JSC$10561_deferred.has(b))return G.JSC$10561_deferred.get(b).promise;var I={};I.promise=new Promise(function(h,q){I.resolver=h;I.rejector=q});
G.JSC$10561_deferred.set(b,I);return I.promise},cZO=function(G,b,I,h){h=h===void 0?!1:h;
if(I.indexOf(b)>-1)throw Error("Gc`"+b);if(G.cachedValues.has(b))return G.cachedValues.get(b);if(!G.providers.has(b)){if(h)return;throw Error("Hc`"+b);}h=G.providers.get(b);I.push(b);if(h.useValue!==void 0)var q=h.useValue;else if(h.useFactory)q=h[QE]?kmi(G,h[QE],I):[],q=h.useFactory.apply(h,_.Nz(q));else if(h.useClass){q=h.useClass;var l=q[QE]?kmi(G,q[QE],I):[];q=new (Function.prototype.bind.apply(q,[null].concat(_.Nz(l))))}else throw Error("Ic`"+b);I.pop();h.skipCache||G.cachedValues.set(b,q);return q},
kmi=function(G,b,I){return b?b.map(function(h){return h instanceof ncu?cZO(G,h.key,I,!0):cZO(G,h,I)}):[]};var Ovu;var GX=new _.q3("ENDPOINT_HANDLER_TOKEN");_.bx=new _.hu("urlEndpoint");var vPi=function(){this.data=[];this.cachedPackedInt52=-1};
vPi.prototype.set=function(G,b){b=b===void 0?!0:b;0<=G&&G<52&&Number.isInteger(G)&&this.data[G]!==b&&(this.data[G]=b,this.cachedPackedInt52=-1)};
vPi.prototype.get=function(G){return!!this.data[G]};
var L$b=function(G){G.cachedPackedInt52===-1&&(G.cachedPackedInt52=G.data.reduce(function(b,I,h){return b+(I?Math.pow(2,h):0)},0));
return G.cachedPackedInt52};var cZp=function(G){var b=QWW;G=G===void 0?_.Ge("yt.ads.biscotti.lastId_")||"":G;var I=Object,h=I.assign,q={};q.dt=v_e;q.flash="0";a:{try{var l=b.JSC$10567_win_.top.location.href}catch($a){l=2;break a}l=l?l===b.doc_.location.href?0:1:2}q=(q.frm=l,q);try{q.u_tz=-(new Date).getTimezoneOffset();try{var V=RT.history.length}catch($a){V=0}q.u_his=V;var D;q.u_h=(D=RT.screen)==null?void 0:D.height;var k;q.u_w=(k=RT.screen)==null?void 0:k.width;var L;q.u_ah=(L=RT.screen)==null?void 0:L.availHeight;var x;q.u_aw=
(x=RT.screen)==null?void 0:x.availWidth;var f;q.u_cd=(f=RT.screen)==null?void 0:f.colorDepth}catch($a){}V=b.JSC$10567_win_;try{var T=V.screenX;var B=V.screenY}catch($a){}try{var A=V.outerWidth;var t=V.outerHeight}catch($a){}try{var y=V.innerWidth;var F=V.innerHeight}catch($a){}try{var W=V.screenLeft;var O=V.screenTop}catch($a){}try{y=V.innerWidth,F=V.innerHeight}catch($a){}try{var K=V.screen.availWidth;var u=V.screen.availTop}catch($a){}T=[W,O,T,B,K,u,A,t,y,F];B=Maj(!1,b.JSC$10567_win_.top);A={};
var w=w===void 0?_.hd:w;t=new vPi;"SVGElement"in w&&"createElementNS"in w.document&&t.set(0);y=Dbi();y["allow-top-navigation-by-user-activation"]&&t.set(1);y["allow-popups-to-escape-sandbox"]&&t.set(2);w.crypto&&w.crypto.subtle&&t.set(3);"TextDecoder"in w&&"TextEncoder"in w&&t.set(4);w=L$b(t);b=(A.bc=w,A.bih=B.height,A.biw=B.width,A.brdim=T.join(),A.vis=Qj2(b.doc_),A.wgl=!!RT.WebGLRenderingContext,A);I=h.call(I,q,b);I.ca_type="image";G&&(I.bid=G);return I},QWW=new function(){var G=window.document;
this.JSC$10567_win_=window;this.doc_=G};
_.cz("yt.ads_.signals_.getAdSignalsString",function(G){return Y3O(cZp(G))});_.nW();navigator.userAgent.indexOf(" (CrKey ");var IEB="XMLHttpRequest"in _.hd?function(){return new XMLHttpRequest}:null;var xPb="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),fEO=[].concat(_.Nz(xPb),["client_dev_set_cookie"]);var DPr={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"},jWp="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(_.Nz(xPb)),UP2=!1,mPa=_.kmu,fEp=VXa;var K2v=[{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 TKu={messageWeights:[],callbackWeights:[{callback:MXp,weight:500},{callback:ZUX,weight:500}]};var BKn=function(){this.callbackWeights=[];this.messageWeights=[]},UPX,Jad=function(){if(!UPX){var G=UPX=new BKn;
G.messageWeights.length=0;G.callbackWeights.length=0;xqd(G,TKu)}return UPX},xqd=function(G,b){b.messageWeights&&G.messageWeights.push.apply(G.messageWeights,b.messageWeights);
b.callbackWeights&&G.callbackWeights.push.apply(G.callbackWeights,b.callbackWeights)};_.OE(_.iB,_.FN);_.iB.prototype.subscribe=function(G,b,I){var h=this.topics_[G];h||(h=this.topics_[G]=[]);var q=this.JSC$10591_key_;this.subscriptions_[q]=G;this.subscriptions_[q+1]=b;this.subscriptions_[q+2]=I;this.JSC$10591_key_=q+3;h.push(q);return q};
var sWA=function(G){var b=wH,I=!1,h=b.subscribe("handleError",function(q){I||(I=!0,this.unsubscribeByKey(h),G.apply(void 0,arguments))},b)};
_.iB.prototype.unsubscribe=function(G,b,I){if(G=this.topics_[G]){var h=this.subscriptions_;if(G=G.find(function(q){return h[q+1]==b&&h[q+2]==I}))return this.unsubscribeByKey(G)}return!1};
_.iB.prototype.unsubscribeByKey=function(G){var b=this.subscriptions_[G];if(b){var I=this.topics_[b];this.publishDepth_!=0?(this.pendingKeys_.push(G),this.subscriptions_[G+1]=function(){}):(I&&_.CO(I,G),delete this.subscriptions_[G],delete this.subscriptions_[G+1],delete this.subscriptions_[G+2])}return!!b};
_.iB.prototype.publish=function(G,b){var I=this.topics_[G];if(I){var h=Array(arguments.length-1),q=arguments.length,l;for(l=1;l<q;l++)h[l-1]=arguments[l];if(this.async_)for(l=0;l<I.length;l++)q=I[l],gPn(this.subscriptions_[q+1],this.subscriptions_[q+2],h);else{this.publishDepth_++;try{for(l=0,q=I.length;l<q&&!this.isDisposed();l++){var V=I[l];this.subscriptions_[V+1].apply(this.subscriptions_[V+2],h)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;I=this.pendingKeys_.pop();)this.unsubscribeByKey(I)}}return l!=
0}return!1};
var gPn=function(G,b,I){_.zy(function(){G.apply(b,I)})};
_.iB.prototype.clear=function(G){if(G){var b=this.topics_[G];b&&(b.forEach(this.unsubscribeByKey,this),delete this.topics_[G])}else this.subscriptions_.length=0,this.topics_={}};
_.iB.prototype.getCount=function(G){if(G){var b=this.topics_[G];return b?b.length:0}G=0;for(b in this.topics_)G+=this.getCount(b);return G};
_.iB.prototype.disposeInternal=function(){_.iB.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var wH=new _.iB;var UA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(UA,_.eo);UA.prototype.getColdHashData=function(){return _.U5(this,3)};
UA.prototype.getHotHashData=function(){return _.U5(this,5)};
UA.prototype.setHotHashData=function(G){return _.F0(this,5,G)};var N4O=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(N4O,_.eo);var vou=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(vou,_.eo);_.m=vou.prototype;_.m.getDeviceId=function(){return _.U5(this,6)};
_.m.getExperimentIds=function(G){var b=_.S8(this,9,_.VK,3,!0);X2X(b,G);return b[G]};
_.m.getPlayerType=function(){return _.gU(this,36)};
_.m.setHomeGroupInfo=function(G){return _.ZK(this,81,G)};
_.m.clearLocationPlayabilityToken=function(){return _.Bz(this,89)};var zs=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(zs,_.eo);zs.prototype.setKey=function(G){return _.F0(this,1,G)};
zs.prototype.getValue=function(){return MC(this,2,QrO)};
var QrO=[2,3,4,5,6];var AZX=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(AZX,_.eo);AZX.prototype.setTrackingParams=function(G){return _.Bz(this,1,_.yi(G,!1))};var L2B=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(L2B,_.eo);var JQr=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(JQr,_.eo);JQr.prototype.getExperimentIds=function(G){var b=_.S8(this,5,_.U82,3,!0);X2X(b,G);return b[G]};var dH=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(dH,_.eo);dH.prototype.getToken=function(){return _.zx(this,2)};
dH.prototype.setToken=function(G){return _.F0(this,2,G)};var i6=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(i6,_.eo);i6.prototype.setSafetyMode=function(G){return _.Tv(this,5,G)};var tM=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(tM,_.eo);tM.prototype.setClient=function(G){return _.ZK(this,1,G)};var Cmr={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 Yba;_.Py=function(){var G=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.hd.addEventListener("beforeinstallprompt",function(b){b.preventDefault();G.deferredInstallPrompt=b});
_.hd.addEventListener("appinstalled",function(){G.appInstalledEventFired=!0},{once:!0})};
Yba=function(){if(!_.hd.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.hd.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.hd.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.hd.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.hd.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(G){return"WEB_DISPLAY_MODE_UNKNOWN"}};var RAp=function(){this.syncHeaders=!0},nSX=function(G){var b={},I=[];
"USER_SESSION_ID"in _.n3&&I.push({key:"u",value:_.wy("USER_SESSION_ID")});if(I=_.vyB(I))b.Authorization=I,I=G=G==null?void 0:G.sessionIndex,I===void 0&&(I=Number(_.wy("SESSION_INDEX",0)),I=isNaN(I)?0:I),_.U("voice_search_auth_header_removal")||(b["X-Goog-AuthUser"]=I.toString()),"INNERTUBE_HOST_OVERRIDE"in _.n3||(b["X-Origin"]=window.location.origin),G===void 0&&"DELEGATED_SESSION_ID"in _.n3&&(b["X-Goog-PageId"]=_.wy("DELEGATED_SESSION_ID"));return b};var MXO={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var j0=_.Ge("ytglobal.prefsUserPrefsPrefs_")||{},ZUz;_.cz("ytglobal.prefsUserPrefsPrefs_",j0);_.lO=function(){this.cookieName=_.wy("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.wy("ALT_PREF_COOKIE_DOMAIN","youtube.com");var G=_.di.get(this.cookieName,void 0);G&&this.parse(G)};
_.m$=function(){ZUz||(ZUz=new _.lO);return ZUz};
_.lO.prototype.get=function(G,b){tXB(G);zZi(G);G=j0[G]!==void 0?j0[G].toString():null;return G!=null?G:b?b:""};
_.lO.prototype.set=function(G,b){tXB(G);zZi(G);if(b==null)throw Error("Lc");j0[G]=b.toString()};
_.lO.prototype.getFlag=function(G){return!!((oPi("f"+(Math.floor(G/31)+1))||0)&1<<G%31)};
_.eX=function(G,b,I){G="f"+(Math.floor(b/31)+1);b=1<<b%31;var h=oPi(G)||0;h=I?h|b:h&~b;h===0?delete j0[G]:(I=h.toString(16),j0[G]=I.toString())};
_.lO.prototype.remove=function(G){tXB(G);zZi(G);delete j0[G]};
_.lO.prototype.save=function(){var G=!0;_.U("web_secure_pref_cookie_killswitch")&&(G=!1);_.yE(this.cookieName,this.dump(),63072E3,this.cookieDomain,G)};
_.lO.prototype.clear=function(){_.Cy.clear(j0)};
_.lO.prototype.dump=function(){var G=[],b;for(b in j0)j0.hasOwnProperty(b)&&G.push(b+"="+encodeURIComponent(String(j0[b])));return G.join("&")};
var zZi=function(G){if(/^f([1-9][0-9]*)$/.test(G))throw Error("Mc`"+G);},tXB=function(G){if(!/^\w+$/.test(G))throw Error("Nc`"+G);
},oPi=function(G){G=j0[G]!==void 0?j0[G].toString():null;
return G!=null&&/^[A-Fa-f0-9]+$/.test(G)?parseInt(G,16):null};
_.lO.prototype.parse=function(G){G=decodeURIComponent(G).split("&");for(var b=0;b<G.length;b++){var I=G[b].split("="),h=I[0];(I=I[1])&&(j0[h]=I.toString())}};var F$s={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"},Ksq={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},uo2={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},W$u={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var nG;_.mM=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.FQ=function(G,b,I){return G.addJob(b,0,I)};
_.mM.prototype.addLowPriorityJob=function(G,b){return this.addJob(G,1,b)};
_.vH=function(G,b,I){return G.addJob(b,2,I)};
_.q_=function(G,b,I){return G.addJob(b,3,I)};
_.O0=function(G,b,I){return G.addJob(b,4,I)};
nG=function(G){var b=_.Ge("yt.scheduler.instance.addImmediateJob");b?b(G):G()};
_.mM.prototype.debounce=function(G,b,I){var h=this,q=0,l=function(){q&&h.cancelJob(q);q=h.addJob(G,b,I);h.cancelDebouncedJobMap.set(l,q)};
return l};
_.mM.prototype.cancelThrottle=function(G){(G=this.cancelThrottledJobMap.get(G))&&G()};var e0=function(){_.mM.apply(this,arguments)},iUQ;
_.M(e0,_.mM);_.fW=function(){e0.instance||(e0.instance=new e0);return e0.instance};
e0.prototype.addJob=function(G,b,I){I!==void 0&&Number.isNaN(Number(I))&&(I=void 0);var h=_.Ge("yt.scheduler.instance.addJob");return h?h(G,b,I):I===void 0?(G(),NaN):_.AB(G,I||0)};
e0.prototype.cancelJob=function(G){if(G===void 0||!Number.isNaN(Number(G))){var b=_.Ge("yt.scheduler.instance.cancelJob");b?b(G):_.ZU(G)}};
e0.prototype.start=function(){var G=_.Ge("yt.scheduler.instance.start");G&&G()};
e0.prototype.pause=function(){var G=_.Ge("yt.scheduler.instance.pause");G&&G()};
iUQ=function(){_.fW();var G=_.Ge("yt.scheduler.instance.setPriorityThreshold");G&&G(4)};
_.uu=_.fW();_.aN.prototype.set=function(G,b){b===void 0?this.mechanism.remove(G):this.mechanism.set(G,(0,_.yP)(b))};
_.aN.prototype.get=function(G){try{var b=this.mechanism.get(G)}catch(I){return}if(b!==null)try{return JSON.parse(b)}catch(I){throw"Storage: Invalid value was encountered";}};
_.aN.prototype.remove=function(G){this.mechanism.remove(G)};var VG=function(G){this.mechanism=G};
_.OE(VG,_.aN);var P9B=function(G){this.data=G},dPn=function(G){return G===void 0||G instanceof P9B?G:new P9B(G)};
VG.prototype.set=function(G,b){VG.superClass_.set.call(this,G,dPn(b))};
VG.prototype.getWrapper=function(G){G=VG.superClass_.get.call(this,G);if(G===void 0||G instanceof Object)return G;throw"Storage: Invalid value was encountered";};
VG.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};_.OE(N1,VG);_.yZJ=function(G){var b=G.creation;G=G.expiration;return!!G&&G<_.nW()||!!b&&b>_.nW()};
N1.prototype.set=function(G,b,I){if(b=dPn(b)){if(I){if(I<_.nW()){N1.prototype.remove.call(this,G);return}b.expiration=I}b.creation=_.nW()}N1.superClass_.set.call(this,G,b)};
N1.prototype.getWrapper=function(G,b){var I=N1.superClass_.getWrapper.call(this,G);if(I)if(!b&&_.yZJ(I))N1.prototype.remove.call(this,G);else return I};var DD=function(){};
DD.prototype.next=function(){return co};
var co={done:!0,value:void 0},kl=function(G){return{value:G,done:!1}};
DD.prototype.__iterator__=function(){return this};
_.rZJ=function(G){if(G instanceof DD)return G;if(typeof G.__iterator__=="function")return G.__iterator__(!1);if(_.KO(G)){var b=0,I=new DD;I.next=function(){for(;;){if(b>=G.length)return co;if(b in G)return kl(G[b++]);b++}};
return I}throw Error("Oc");};var F$n=function(G){if(G instanceof vo||G instanceof L6||G instanceof QG)return G;if(typeof G.next=="function")return new vo(function(){return G});
if(typeof G[Symbol.iterator]=="function")return new vo(function(){return G[Symbol.iterator]()});
if(typeof G.__iterator__=="function")return new vo(function(){return G.__iterator__()});
throw Error("Pc");},vo=function(G){this.func_=G};
vo.prototype.__iterator__=function(){return new L6(this.func_())};
vo.prototype[Symbol.iterator]=function(){return new QG(this.func_())};
vo.prototype.toEs6=function(){return new QG(this.func_())};
var L6=function(G){this.JSC$10676_iter_=G};
_.M(L6,DD);L6.prototype.next=function(){return this.JSC$10676_iter_.next()};
L6.prototype[Symbol.iterator]=function(){return new QG(this.JSC$10676_iter_)};
L6.prototype.toEs6=function(){return new QG(this.JSC$10676_iter_)};
var QG=function(G){vo.call(this,function(){return G});
this.JSC$10679_iter_=G};
_.M(QG,vo);QG.prototype.next=function(){return this.JSC$10679_iter_.next()};var HU5=function(){};var xl=function(){};
_.OE(xl,HU5);xl.prototype.getCount=function(){for(var G=0,b=_.e(this),I=b.next();!I.done;I=b.next())G++;return G};
xl.prototype[Symbol.iterator]=function(){return F$n(this.__iterator__(!0)).toEs6()};
xl.prototype.clear=function(){var G=Array.from(this);G=_.e(G);for(var b=G.next();!b.done;b=G.next())this.remove(b.value)};_.OE(YW,xl);_.m=YW.prototype;_.m.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var G=this.storage_;if(G)try{G.setItem("__sak","1");G.removeItem("__sak");var b=!0}catch(I){b=I instanceof DOMException&&(I.name==="QuotaExceededError"||I.code===22||I.code===1014||I.name==="NS_ERROR_DOM_QUOTA_REACHED")&&G&&G.length!==0}else b=!1;this.cachedIsStorageAvailable_=b}return this.cachedIsStorageAvailable_};
_.m.set=function(G,b){f6(this);try{this.storage_.setItem(G,b)}catch(I){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.m.get=function(G){f6(this);G=this.storage_.getItem(G);if(typeof G!=="string"&&G!==null)throw"Storage mechanism: Invalid value was encountered";return G};
_.m.remove=function(G){f6(this);this.storage_.removeItem(G)};
_.m.getCount=function(){f6(this);return this.storage_.length};
_.m.__iterator__=function(G){f6(this);var b=0,I=this.storage_,h=new DD;h.next=function(){if(b>=I.length)return co;var q=I.key(b++);if(G)return kl(q);q=I.getItem(q);if(typeof q!=="string")throw"Storage mechanism: Invalid value was encountered";return kl(q)};
return h};
_.m.clear=function(){f6(this);this.storage_.clear()};
_.m.key=function(G){f6(this);return this.storage_.key(G)};
var f6=function(G){if(G.storage_==null)throw Error("Qc");G.isAvailable()||qr(Error("Qc"))};_.OE(NKs,YW);_.OE(YSq,YW);_.OE(CL,xl);CL.prototype.set=function(G,b){this.mechanism_.set(this.JSC$10694_prefix_+G,b)};
CL.prototype.get=function(G){return this.mechanism_.get(this.JSC$10694_prefix_+G)};
CL.prototype.remove=function(G){this.mechanism_.remove(this.JSC$10694_prefix_+G)};
CL.prototype.__iterator__=function(G){var b=this.mechanism_[Symbol.iterator](),I=this,h=new DD;h.next=function(){var q=b.next();if(q.done)return q;for(q=q.value;q.slice(0,I.JSC$10694_prefix_.length)!=I.JSC$10694_prefix_;){q=b.next();if(q.done)return q;q=q.value}return kl(G?q.slice(I.JSC$10694_prefix_.length):I.mechanism_.get(q))};
return h};_.EA=function(G){this.expiringStorage_=(G=_.C9s(G))?new N1(G):null;this.JSC$10698_domain_=document.domain||window.location.hostname};
_.m=_.EA.prototype;_.m.hasLocalStorage=function(){return!!this.expiringStorage_};
_.m.set=function(G,b,I,h){I=I||31104E3;this.remove(G);if(this.hasLocalStorage())try{this.expiringStorage_.set(G,b,Date.now()+I*1E3);return}catch(l){}var q="";if(h)try{q=escape((0,_.yP)(b))}catch(l){return}else q=escape(b);_.yE(G,q,I,this.JSC$10698_domain_)};
_.m.get=function(G,b){var I=void 0,h=!this.hasLocalStorage();if(!h)try{I=this.expiringStorage_.get(G)}catch(q){h=!0}if(h&&(I=_.di.get(G,void 0))&&(I=unescape(I),b))try{I=JSON.parse(I)}catch(q){this.remove(G),I=void 0}return I};
_.m.remove=function(G){this.hasLocalStorage()&&this.expiringStorage_.remove(G);_.dPs(G,"/",this.JSC$10698_domain_)};
_.m.getCreationTime=function(G){return this.hasLocalStorage()&&(G=(this.expiringStorage_.getWrapper(G)||{}).creation,typeof G==="number")?G:null};var K$u=function(){var G;return function(){G||(G=new _.EA("ytidb"));return G}}();var RZO;_.KL=[];RZO=!1;var Vnr=nPv||OUO;var Tk={},W$i=(Tk.AUTH_INVALID="No user identifier specified.",Tk.EXPLICIT_ABORT="Transaction was explicitly aborted.",Tk.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Tk.MISSING_INDEX="Index not created.",Tk.MISSING_OBJECT_STORES="Object stores not created.",Tk.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Tk.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Tk.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Tk.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Tk.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Tk.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Tk.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Tk),Bo={},aEu=(Bo.AUTH_INVALID="ERROR",Bo.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Bo.EXPLICIT_ABORT="IGNORED",
Bo.IDB_NOT_SUPPORTED="ERROR",Bo.MISSING_INDEX="WARNING",Bo.MISSING_OBJECT_STORES="ERROR",Bo.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Bo.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Bo.QUOTA_EXCEEDED="WARNING",Bo.QUOTA_MAYBE_EXCEEDED="WARNING",Bo.UNKNOWN_ABORT="WARNING",Bo.INCOMPATIBLE_DB_VERSION="WARNING",Bo),Ua={},NKn=(Ua.AUTH_INVALID=!1,Ua.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Ua.EXPLICIT_ABORT=!1,Ua.IDB_NOT_SUPPORTED=!1,Ua.MISSING_INDEX=!1,Ua.MISSING_OBJECT_STORES=!1,Ua.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Ua.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Ua.QUOTA_EXCEEDED=!1,Ua.QUOTA_MAYBE_EXCEEDED=!0,Ua.UNKNOWN_ABORT=!0,Ua.INCOMPATIBLE_DB_VERSION=!1,Ua),EG=function(G,b,I,h,q){b=b===void 0?{}:b;I=I===void 0?W$i[G]:I;h=h===void 0?aEu[G]:h;q=q===void 0?NKn[G]:q;_.Wf.call(this,I,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:G},b));this.type=G;this.message=I;this.level=h;this.retryable=q;Object.setPrototypeOf(this,EG.prototype)};
_.M(EG,_.Wf);var YSA=function(G,b){EG.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:G},W$i.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,YSA.prototype)};
_.M(YSA,EG);var EPO=function(G,b){var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.index=G;this.objectStore=b;Object.setPrototypeOf(this,EPO.prototype)};
_.M(EPO,Error);var pTO=["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 $_=function(G){this.executor=G},XU=function(G){var b=this;
this.state={status:"PENDING"};this.JSC$10726_onFulfilled=[];this.JSC$10726_onRejected=[];G=G.executor;var I=function(q){if(b.state.status==="PENDING"){b.state={status:"FULFILLED",value:q};q=_.e(b.JSC$10726_onFulfilled);for(var l=q.next();!l.done;l=q.next())l=l.value,l()}},h=function(q){if(b.state.status==="PENDING"){b.state={status:"REJECTED",
reason:q};q=_.e(b.JSC$10726_onRejected);for(var l=q.next();!l.done;l=q.next())l=l.value,l()}};
try{G(I,h)}catch(q){h(q)}};
XU.all=function(G){return new XU(new $_(function(b,I){var h=[],q=G.length;q===0&&b(h);for(var l={i$jscomp$468:0};l.i$jscomp$468<G.length;l={i$jscomp$468:l.i$jscomp$468},++l.i$jscomp$468)XU.resolve(G[l.i$jscomp$468]).then(function(V){return function(D){h[V.i$jscomp$468]=D;q--;q===0&&b(h)}}(l)).catch(function(V){I(V)})}))};
XU.resolve=function(G){return new XU(new $_(function(b,I){G instanceof XU?G.then(b,I):b(G)}))};
XU.reject=function(G){return new XU(new $_(function(b,I){I(G)}))};
XU.prototype.then=function(G,b){var I=this,h=G!=null?G:$O2,q=b!=null?b:XTa;return new XU(new $_(function(l,V){I.state.status==="PENDING"?(I.JSC$10726_onFulfilled.push(function(){C9n(I,I,h,l,V)}),I.JSC$10726_onRejected.push(function(){JZz(I,I,q,l,V)})):I.state.status==="FULFILLED"?C9n(I,I,h,l,V):I.state.status==="REJECTED"&&JZz(I,I,q,l,V)}))};
XU.prototype.catch=function(G){return this.then(void 0,G)};
var C9n=function(G,b,I,h,q){try{if(G.state.status!=="FULFILLED")throw Error("Tc");var l=I(G.state.value);l instanceof XU?K$i(G,b,l,h,q):h(l)}catch(V){q(V)}},JZz=function(G,b,I,h,q){try{if(G.state.status!=="REJECTED")throw Error("Uc");
var l=I(G.state.reason);l instanceof XU?K$i(G,b,l,h,q):h(l)}catch(V){q(V)}},K$i=function(G,b,I,h,q){b===I?q(new TypeError("Vc")):I.then(function(l){l instanceof XU?K$i(G,b,l,h,q):h(l)},function(l){q(l)})};var sa;sa=window;_.Li=sa.ytcsi&&sa.ytcsi.now?sa.ytcsi.now:sa.performance&&sa.performance.timing&&sa.performance.now&&sa.performance.timing.navigationStart?function(){return sa.performance.timing.navigationStart+sa.performance.now()}:function(){return(new Date).getTime()};var bu=function(G,b){this.JSC$10738_wrapped=G;this.options=b;this.transactionCount=0;this.startedMs=Math.round((0,_.Li)());this.hasUnknownAbortedTransaction=!1},gY=function(){return _.U("idb_immediate_commit")},nPB,OUJ,ZD,pTJ;
bu.prototype.add=function(G,b,I){return _.lu(this,[G],{mode:"readwrite",enableRetries:!0,commit:gY()},function(h){return h.objectStore(G).add(b,I)})};
bu.prototype.clear=function(G){return _.lu(this,[G],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore(G).clear()})};
bu.prototype.close=function(){this.JSC$10738_wrapped.close();var G;((G=this.options)==null?0:G.closed)&&this.options.closed()};
bu.prototype.count=function(G,b){return _.lu(this,[G],{mode:"readonly",enableRetries:!0,commit:gY()},function(I){return I.objectStore(G).count(b)})};
var Sy=function(G,b,I){G=G.JSC$10738_wrapped.createObjectStore(b,I);return new Au(G)};
bu.prototype.delete=function(G,b){return _.lu(this,[G],{mode:"readwrite",enableRetries:!0,commit:gY()&&!(b instanceof IDBKeyRange)},function(I){return I.objectStore(G).delete(b)})};
var uT5=function(G,b){return _.lu(G,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore("ResponseStore").index("byInterface").delete(b)})};
bu.prototype.get=function(G,b){return _.lu(this,[G],{mode:"readonly",enableRetries:!0,commit:gY()},function(I){return I.objectStore(G).get(b)})};
bu.prototype.getAll=function(G,b,I){return _.lu(this,[G],{mode:"readonly",enableRetries:!0},function(h){return h.objectStore(G).getAll(b,I)})};
bu.prototype.put=function(G,b,I){return _.lu(this,[G],{mode:"readwrite",enableRetries:!0,commit:gY()},function(h){return h.objectStore(G).put(b,I)})};
bu.prototype.objectStoreNames=function(){return Array.from(this.JSC$10738_wrapped.objectStoreNames)};
_.lu=function(G,b,I,h){var q,l,V,D,k,L,x,f,T,B,A,t;return _.c(function(y){switch(y.nextAddress){case 1:var F={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof I==="string"?F.mode=I:Object.assign(F,I);q=F;G.transactionCount++;l=q.enableRetries?3:1;V=0;case 2:if(D){y.jumpTo(4);break}V++;k=Math.round((0,_.Li)());_.gm(y,5);L=G.JSC$10738_wrapped.transaction(b,q.mode);F=y.yield;var W=!!q.commit;var O=new Ib(L);W=RZJ(O,h,W);return F.call(y,W,7);case 7:return x=y.yieldResult,f=Math.round((0,_.Li)()),
nPB(G,k,f,V,void 0,b.join(),q),y.return(x);case 5:T=_.zf(y);B=Math.round((0,_.Li)());A=SSO(T,G.JSC$10738_wrapped.name,b.join(),G.JSC$10738_wrapped.version);if((t=A instanceof EG&&!A.retryable)||V>=l)nPB(G,k,B,V,A,b.join(),q),D=A;y.jumpTo(2);break;case 4:return y.return(Promise.reject(D))}})};
nPB=function(G,b,I,h,q,l,V){b=I-b;q?(q instanceof EG&&(q.type==="QUOTA_EXCEEDED"||q.type==="QUOTA_MAYBE_EXCEEDED")&&RN("QUOTA_EXCEEDED",{dbName:OG(G.JSC$10738_wrapped.name),objectStoreNames:l,transactionCount:G.transactionCount,transactionMode:V.mode}),q instanceof EG&&q.type==="UNKNOWN_ABORT"&&(I-=G.startedMs,I<0&&I>=2147483648&&(I=0),RN("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:l,transactionDuration:b,transactionCount:G.transactionCount,dbDuration:I}),G.hasUnknownAbortedTransaction=!0),
OUJ(G,!1,h,l,b,V.tag),_.uB(q)):OUJ(G,!0,h,l,b,V.tag)};
OUJ=function(G,b,I,h,q,l){RN("TRANSACTION_ENDED",{objectStoreNames:h,connectionHasUnknownAbortedTransaction:G.hasUnknownAbortedTransaction,duration:q,isSuccessful:b,tryCount:I,tag:l===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":l})};
bu.prototype.getName=function(){return this.JSC$10738_wrapped.name};
var Au=function(G){this.JSC$10753_wrapped=G};
Au.prototype.add=function(G,b){return Gv(this.JSC$10753_wrapped.add(G,b))};
Au.prototype.autoIncrement=function(){return this.JSC$10753_wrapped.autoIncrement};
Au.prototype.clear=function(){return Gv(this.JSC$10753_wrapped.clear()).then(function(){})};
var X5=function(G,b,I){G.JSC$10753_wrapped.createIndex(b,I,{unique:!1})};
Au.prototype.count=function(G){return Gv(this.JSC$10753_wrapped.count(G))};
var wTn=function(G,b){return ey(G,{query:b},function(I){return I.delete().then(function(){return I.continue()})}).then(function(){})};
Au.prototype.delete=function(G){return G instanceof IDBKeyRange?wTn(this,G):Gv(this.JSC$10753_wrapped.delete(G))};
Au.prototype.get=function(G){return Gv(this.JSC$10753_wrapped.get(G))};
Au.prototype.getAll=function(G,b){return"getAll"in IDBObjectStore.prototype?Gv(this.JSC$10753_wrapped.getAll(G,b)):EPn(this,G,b)};
var EPn=function(G,b,I){var h=[];return ey(G,{query:b},function(q){if(!(I!==void 0&&h.length>=I))return h.push(q.getValue()),q.continue()}).then(function(){return h})};
Au.prototype.index=function(G){try{return new M3(this.JSC$10753_wrapped.index(G))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new EPO(G,this.JSC$10753_wrapped.name);throw b;}};
Au.prototype.getName=function(){return this.JSC$10753_wrapped.name};
Au.prototype.keyPath=function(){return this.JSC$10753_wrapped.keyPath};
Au.prototype.put=function(G,b){return Gv(this.JSC$10753_wrapped.put(G,b))};
var ey=function(G,b,I){G=G.JSC$10753_wrapped.openCursor(b.query,b.direction);return pTJ(G).then(function(h){return I0v(h,I)})},Ib=function(G){var b=this;
this.JSC$10761_wrapped=G;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(I,h){b.JSC$10761_wrapped.addEventListener("complete",function(){I()});
b.JSC$10761_wrapped.addEventListener("error",function(q){q.currentTarget===q.target&&h(b.JSC$10761_wrapped.error)});
b.JSC$10761_wrapped.addEventListener("abort",function(){var q=b.JSC$10761_wrapped.error;if(q)h(q);else if(!b.aborted){q=EG;for(var l=b.JSC$10761_wrapped.objectStoreNames,V=[],D=0;D<l.length;D++){var k=l.item(D);if(k===null)throw Error("Wc");V.push(k)}q=new q("UNKNOWN_ABORT",{objectStoreNames:V.join(),dbName:b.JSC$10761_wrapped.db.name,mode:b.JSC$10761_wrapped.mode});h(q)}})})},RZJ=function(G,b,I){var h=new Promise(function(q,l){try{var V=b(G);
I&&G.commit();V.then(function(D){q(D)}).catch(l)}catch(D){l(D),G.abort()}});
return Promise.all([h,G.done]).then(function(q){return _.e(q).next().value})};
Ib.prototype.abort=function(){this.JSC$10761_wrapped.abort();this.aborted=!0;throw new EG("EXPLICIT_ABORT");};
Ib.prototype.commit=function(){if(!this.aborted){var G,b;(b=(G=this.JSC$10761_wrapped).commit)==null||b.call(G)}};
Ib.prototype.objectStore=function(G){G=this.JSC$10761_wrapped.objectStore(G);var b=this.objectStoreCache.get(G);b||(b=new Au(G),this.objectStoreCache.set(G,b));return b};
var M3=function(G){this.JSC$10763_wrapped=G};
M3.prototype.count=function(G){return Gv(this.JSC$10763_wrapped.count(G))};
M3.prototype.delete=function(G){return _.Qz(this,{query:G},function(b){return b.delete().then(function(){return b.continue()})})};
M3.prototype.get=function(G){return Gv(this.JSC$10763_wrapped.get(G))};
M3.prototype.getAll=function(G,b){return"getAll"in IDBIndex.prototype?Gv(this.JSC$10763_wrapped.getAll(G,b)):SSJ(this,G,b)};
var SSJ=function(G,b,I){var h=[];return _.Qz(G,{query:b},function(q){if(!(I!==void 0&&h.length>=I))return h.push(q.getValue()),q.continue()}).then(function(){return h})};
M3.prototype.keyPath=function(){return this.JSC$10763_wrapped.keyPath};
M3.prototype.unique=function(){return this.JSC$10763_wrapped.unique};
_.Qz=function(G,b,I){G=G.JSC$10763_wrapped.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return pTJ(G).then(function(h){return I0v(h,I)})};
ZD=function(G,b){this.request=G;this.cursor=b};
pTJ=function(G){return Gv(G).then(function(b){return b?new ZD(G,b):null})};
ZD.prototype.continue=function(G){this.cursor.continue(G);return pTJ(this.request)};
ZD.prototype.delete=function(){return Gv(this.cursor.delete()).then(function(){})};
ZD.prototype.getValue=function(){return this.cursor.value};
ZD.prototype.update=function(G){return Gv(this.cursor.update(G))};var tu=function(G,b){this.name=G;this.options=b;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},XTb;
tu.prototype.openDb=function(G,b,I){I=I===void 0?{}:I;return qbO(G,b,I)};
tu.prototype.delete=function(G){G=G===void 0?{}:G;return _.q9(this.name,G)};
XTb=function(G,b){return new EG("INCOMPATIBLE_DB_VERSION",{dbName:G.name,oldVersion:G.options.version,newVersion:b})};
_.jy=function(G,b){if(!b)throw SO("openWithToken",OG(G.name));return G.open()};
tu.prototype.open=function(){var G=this;if(!this.isCompatible)throw XTb(this);if(this.connectionPromise)return this.connectionPromise;var b,I=function(){G.connectionPromise===b&&(G.connectionPromise=void 0)},h={blocking:function(l){l.close()},
closed:I,terminated:I,upgrade:this.options.upgrade},q=function(){var l,V,D,k,L,x,f,T,B,A;return _.c(function(t){switch(t.nextAddress){case 1:return V=(l=Error().stack)!=null?l:"",_.gm(t,2),t.yield(G.openDb(G.name,G.options.version,h),4);case 4:for(var y=D=t.yieldResult,F=G.options,W=[],O=_.e(Object.keys(F.objectStores)),K=O.next();!K.done;K=O.next()){K=K.value;var u=F.objectStores[K],w=u.removedAtVersion===void 0?Number.MAX_VALUE:u.removedAtVersion;!(y.JSC$10738_wrapped.version>=u.addedAtVersion)||
y.JSC$10738_wrapped.version>=w||y.JSC$10738_wrapped.objectStoreNames.contains(K)||W.push(K)}k=W;if(k.length===0){t.jumpTo(5);break}L=Object.keys(G.options.objectStores);x=D.objectStoreNames();if(G.timesReopenedToFixMissingObjectStore<_.Te("ytidb_reopen_db_retries",0))return G.timesReopenedToFixMissingObjectStore++,D.close(),_.uB(new EG("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:G.name,expectedObjectStores:L,foundObjectStores:x})),t.return(q());if(!(G.timesDeletedToFixMissingObjectStore<_.Te("ytidb_remake_db_retries",
1))){t.jumpTo(6);break}G.timesDeletedToFixMissingObjectStore++;return t.yield(G.delete(),7);case 7:return _.uB(new EG("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:G.name,expectedObjectStores:L,foundObjectStores:x})),t.return(q());case 6:throw new YSA(x,L);case 5:return t.return(D);case 2:f=_.zf(t);if(f instanceof DOMException?f.name!=="VersionError":"DOMError"in self&&f instanceof DOMError?f.name!=="VersionError":!(f instanceof Object&&"message"in f)||f.message!=="An attempt was made to open a database using a lower version than the existing version."){t.jumpTo(8);
break}return t.yield(G.openDb(G.name,void 0,Object.assign({},h,{upgrade:void 0})),9);case 9:T=t.yieldResult;B=T.JSC$10738_wrapped.version;if(G.options.version!==void 0&&B>G.options.version+1)throw T.close(),G.isCompatible=!1,XTb(G,B);return t.return(T);case 8:throw I(),f instanceof Error&&!_.U("ytidb_async_stack_killswitch")&&(f.stack=f.stack+"\n"+V.substring(V.indexOf("\n")+1)),SSO(f,G.name,"",(A=G.options.version)!=null?A:-1);}})};
return this.connectionPromise=b=q()};var jod=new tu("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(G,b){b(1)&&Sy(G,"databases",{keyPath:"actualName"})}});var kij,DOr=new function(){}(new function(){});new _.G9;var $OX=function(G,b){tu.call(this,G,b);this.options=b;nL(G)};
_.M($OX,tu);var gSj=function(G,b){var I;return function(){I||(I=new $OX(G,b));return I}};
$OX.prototype.openDb=function(G,b,I){I=I===void 0?{}:I;return(this.options.shared?f0B:xOd)(G,b,Object.assign({},I))};
$OX.prototype.delete=function(G){G=G===void 0?{}:G;return(this.options.shared?soq:T4a)(this.name,G)};var GiW={},AQd=vz("ytGcfConfig",{objectStores:(GiW.coldConfigStore={addedAtVersion:1},GiW.hotConfigStore={addedAtVersion:1},GiW),shared:!1,upgrade:function(G,b){b(1)&&(X5(Sy(G,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),X5(Sy(G,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var bwn=function(){_.FN.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var G=_.Ge("yt.gcf.config.hotUpdateCallbacks");G?(this.localHotConfigJobQueue=[].concat(_.Nz(G)),this.sharedHotConfigJobQueue=G):(this.sharedHotConfigJobQueue=[],_.cz("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.M(bwn,_.FN);bwn.prototype.disposeInternal=function(){for(var G=_.e(this.localHotConfigJobQueue),b=G.next();!b.done;b=G.next()){var I=this.sharedHotConfigJobQueue;b=I.indexOf(b.value);b>=0&&I.splice(b,1)}this.localHotConfigJobQueue.length=0;_.FN.prototype.disposeInternal.call(this)};var HA=function(){var G=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new bwn;this.TEST_ONLY={initializeConfigDb:function(){G.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return G.coldGlobalConfigGroup},
setHotConfigGroup:function(b){I0B(G,b)},
setHotHashData:function(b){G.setHotHashData(b)},
setColdConfigGroup:function(b){hA8(G,b)},
getColdHashData:function(){return G.coldHashData},
getHotHashData:function(){return G.hotHashData},
getHotConfigGroup:function(){return G.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return qbn()},
getExportedHotConfigGroup:function(){return zk()},
getExportedColdHashData:function(){return _.Ge("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Ge("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){jo5(G)},
resetInstance:function(){G.setHotHashData(void 0);l0J(G);delete HA.instance},
setDebounceTimer:function(b){G.debounceTimer=b},
getDebounceTimer:function(){return G.debounceTimer}}},mOQ=function(){if(!HA.instance){var G=new HA;
HA.instance=G}return HA.instance},DO8=function(G){var b;
_.c(function(I){if(I.nextAddress==1)return _.U("start_client_gcf")||_.U("delete_gcf_config_db")?_.U("start_client_gcf")?I.yield(_.k_(),3):I.jumpTo(2):I.return();I.nextAddress!=2&&((b=I.yieldResult)&&_.Hf()&&!_.U("delete_gcf_config_db")?(G.isConfigDbInitialized=!0,jo5(G)):(eAX(G),Vn8(G)));return _.U("delete_gcf_config_db")?I.yield(iwp(),0):I.jumpTo(0)})},WA=function(){var G;
return(G=zk())!=null?G:_.wy("RAW_HOT_CONFIG_GROUP")},cQJ=function(G){var b,I,h,q,l,V;
return _.c(function(D){switch(D.nextAddress){case 1:if(G.hotGlobalConfigGroup)return D.return(zk());if(!G.isConfigDbInitialized)return b=SO("getHotConfig IDB not initialized"),_.bB(b),D.return(Promise.reject(b));I=DO();h=_.wy("TIME_CREATED_MS");if(!I){q=SO("getHotConfig token error");_.bB(q);D.jumpTo(2);break}return D.yield(oSO(I),3);case 3:if((l=D.yieldResult)&&l.timestamp>h)return I0B(G,l.config),G.setHotHashData(l.hashData),D.return(zk());case 2:Vn8(G);if(!(I&&G.hotGlobalConfigGroup&&G.hotHashData)){D.jumpTo(4);
break}return D.yield(Zwq(G.hotGlobalConfigGroup,G.hotHashData,I,h),4);case 4:return G.hotGlobalConfigGroup?D.return(zk()):(V=new _.Wf("Config not available in ytConfig"),_.bB(V),D.return(Promise.reject(V)))}})},vSQ=function(G){var b,I,h,q,l,V;
return _.c(function(D){switch(D.nextAddress){case 1:if(G.coldGlobalConfigGroup)return D.return(qbn());if(!G.isConfigDbInitialized)return b=SO("getColdConfig IDB not initialized"),_.bB(b),D.return(Promise.reject(b));I=DO();h=_.wy("TIME_CREATED_MS");if(!I){q=SO("getColdConfig");_.bB(q);D.jumpTo(2);break}return D.yield(zAa(I),3);case 3:if((l=D.yieldResult)&&l.timestamp>h)return hA8(G,l.config),kiu(G,l.configData),l0J(G,l.hashData),D.return(qbn());case 2:eAX(G);if(!(I&&G.coldGlobalConfigGroup&&G.coldHashData&&
G.configData)){D.jumpTo(4);break}return D.yield(tnX(G.coldGlobalConfigGroup,G.coldHashData,G.configData,I,h),4);case 4:return G.coldGlobalConfigGroup?D.return(qbn()):(V=new _.Wf("Config not available in ytConfig"),_.bB(V),D.return(Promise.reject(V)))}})},jo5=function(G){if(!G.hotGlobalConfigGroup||!G.coldGlobalConfigGroup){if(!DO()){var b=SO("scheduleGetConfigs");
_.bB(b)}G.initJob||(G.initJob=_.uu.addLowPriorityJob(function(){return _.c(function(I){switch(I.nextAddress){case 1:return _.gm(I,2),I.yield(cQJ(G),4);case 4:_.hF(I,3);break;case 2:_.zf(I);case 3:return _.gm(I,5),I.yield(vSQ(G),7);case 7:_.hF(I,6);break;case 5:_.zf(I);case 6:G.initJob&&(G.initJob=0),_.ip(I)}})},100))}},thB=function(G,b,I){var h,q,l;
return _.c(function(V){switch(V.nextAddress){case 1:if(!_.U("start_client_gcf")){V.jumpTo(0);break}I&&I0B(G,I);G.setHotHashData(b);h=DO();if(!h){V.jumpTo(3);break}if(I){V.jumpTo(4);break}return V.yield(oSO(h),5);case 5:q=V.yieldResult,I=(l=q)==null?void 0:l.config;case 4:return V.yield(Zwq(I,b,h),3);case 3:if(I)for(var D=I,k=_.e(G.configUpdateService.sharedHotConfigJobQueue),L=k.next();!L.done;L=k.next())L=L.value,L(D);_.ip(V)}})},zus=function(G,b,I){var h,q,l,V;
return _.c(function(D){if(D.nextAddress==1){if(!_.U("start_client_gcf"))return D.jumpTo(0);l0J(G,b);return(h=DO())?I?D.jumpTo(4):D.yield(zAa(h),5):D.jumpTo(0)}D.nextAddress!=4&&(q=D.yieldResult,I=(l=q)==null?void 0:l.config);if(!I)return D.jumpTo(0);V=I.configData;return D.yield(tnX(I,b,V,h),0)})},wjB=function(){var G=mOQ(),b=(0,_.Li)()-G.debounceTimer;
if(!(G.debounceTimer!==0&&b<_.Te("send_config_hash_timer"))){b=_.Ge("yt.gcf.config.coldConfigData");var I=_.Ge("yt.gcf.config.hotHashData"),h=_.Ge("yt.gcf.config.coldHashData");b&&I&&h&&(G.debounceTimer=(0,_.Li)());return{coldConfigData:b,hotHashData:I,coldHashData:h}}},eAX=function(G){hA8(G,_.wy("RAW_COLD_CONFIG_GROUP"));
l0J(G,_.wy("SERIALIZED_COLD_HASH_DATA"));var b;kiu(G,(b=G.coldGlobalConfigGroup)==null?void 0:b.configData)},Vn8=function(G){I0B(G,_.wy("RAW_HOT_CONFIG_GROUP"));
G.setHotHashData(_.wy("SERIALIZED_HOT_HASH_DATA"))},I0B=function(G,b){G.hotGlobalConfigGroup=b;
_.cz("yt.gcf.config.hotConfigGroup",G.hotGlobalConfigGroup||null)},hA8=function(G,b){G.coldGlobalConfigGroup=b;
_.cz("yt.gcf.config.coldConfigGroup",G.coldGlobalConfigGroup||null)};
HA.prototype.setHotHashData=function(G){this.hotHashData=G;_.cz("yt.gcf.config.hotHashData",this.hotHashData||null)};
var l0J=function(G,b){G.coldHashData=b;_.cz("yt.gcf.config.coldHashData",G.coldHashData||null)},kiu=function(G,b){G.configData=b;
_.cz("yt.gcf.config.coldConfigData",G.configData||null)},zk=function(){return _.Ge("yt.gcf.config.hotConfigGroup")},qbn=function(){return _.Ge("yt.gcf.config.coldConfigGroup")};var ZO={},LsJ=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";ZO.assign=function(G){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var I=b.shift();if(I){if(typeof I!=="object")throw new TypeError("Zc`"+I);for(var h in I)Object.prototype.hasOwnProperty.call(I,h)&&(G[h]=I[h])}}return G};
ZO.shrinkBuf=function(G,b){if(G.length===b)return G;if(G.subarray)return G.subarray(0,b);G.length=b;return G};
var QoW={arraySet:function(G,b,I,h,q){if(b.subarray&&G.subarray)G.set(b.subarray(I,I+h),q);else for(var l=0;l<h;l++)G[q+l]=b[I+l]},
flattenChunks:function(G){var b,I;var h=I=0;for(b=G.length;h<b;h++)I+=G[h].length;var q=new Uint8Array(I);h=I=0;for(b=G.length;h<b;h++){var l=G[h];q.set(l,I);I+=l.length}return q}},xO5={arraySet:function(G,b,I,h,q){for(var l=0;l<h;l++)G[q+l]=b[I+l]},
flattenChunks:function(G){return[].concat.apply([],G)}};
ZO.setTyped=function(){LsJ?(ZO.Buf8=Uint8Array,ZO.Buf16=Uint16Array,ZO.Buf32=Int32Array,ZO.assign(ZO,QoW)):(ZO.Buf8=Array,ZO.Buf16=Array,ZO.Buf32=Array,ZO.assign(ZO,xO5))};
ZO.setTyped();var f0W=!0;try{new Uint8Array(1)}catch(G){f0W=!1}
var onX=function(G){var b,I,h=G.length,q=0;for(b=0;b<h;b++){var l=G.charCodeAt(b);if((l&64512)===55296&&b+1<h){var V=G.charCodeAt(b+1);(V&64512)===56320&&(l=65536+(l-55296<<10)+(V-56320),b++)}q+=l<128?1:l<2048?2:l<65536?3:4}var D=new ZO.Buf8(q);for(b=I=0;I<q;b++)l=G.charCodeAt(b),(l&64512)===55296&&b+1<h&&(V=G.charCodeAt(b+1),(V&64512)===56320&&(l=65536+(l-55296<<10)+(V-56320),b++)),l<128?D[I++]=l:(l<2048?D[I++]=192|l>>>6:(l<65536?D[I++]=224|l>>>12:(D[I++]=240|l>>>18,D[I++]=128|l>>>12&63),D[I++]=
128|l>>>6&63),D[I++]=128|l&63);return D};var Q_r={};Q_r=function(G,b,I,h){var q=G&65535|0;G=G>>>16&65535|0;for(var l;I!==0;){l=I>2E3?2E3:I;I-=l;do q=q+b[h++]|0,G=G+q|0;while(--l);q%=65521;G%=65521}return q|G<<16|0};for(var N9={},ow,T4b=[],B4B=0;B4B<256;B4B++){ow=B4B;for(var UO5=0;UO5<8;UO5++)ow=ow&1?3988292384^ow>>>1:ow>>>1;T4b[B4B]=ow}N9=function(G,b,I,h){I=h+I;for(G^=-1;h<I;h++)G=G>>>8^T4b[(G^b[h])&255];return G^-1};var iu={};iu={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 qoa=[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],lLO=[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],zhd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vnB=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rh=Array(576);sA(rh);var F5=Array(60);sA(F5);var zv=Array(512);sA(zv);var tF=Array(256);sA(tF);var j_v=Array(29);sA(j_v);var mev=Array(30);sA(mev);var MLq,ZXO,tLs,ALO=!1;var Ki;
Ki=[new JF(0,0,0,0,function(G,b){var I=65535;for(I>G.pending_buf_size-5&&(I=G.pending_buf_size-5);;){if(G.lookahead<=1){Y_(G);if(G.lookahead===0&&b===0)return 1;if(G.lookahead===0)break}G.strstart+=G.lookahead;G.lookahead=0;var h=G.block_start+I;if(G.strstart===0||G.strstart>=h)if(G.lookahead=G.strstart-h,G.strstart=h,Hz(G,!1),G.strm.avail_out===0)return 1;if(G.strstart-G.block_start>=G.w_size-262&&(Hz(G,!1),G.strm.avail_out===0))return 1}G.insert=0;if(b===4)return Hz(G,!0),G.strm.avail_out===0?3:
4;G.strstart>G.block_start&&Hz(G,!1);return 1}),
new JF(4,4,8,4,xeX),new JF(4,5,16,8,xeX),new JF(4,6,32,32,xeX),new JF(4,4,16,16,Ci),new JF(8,16,32,32,Ci),new JF(8,16,128,128,Ci),new JF(8,32,128,256,Ci),new JF(32,128,258,1024,Ci),new JF(32,258,258,4096,Ci)];var gn2={};gn2=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 iXp=Object.prototype.toString;
s_a.prototype.push=function(G,b){var I=this.strm,h=this.options.chunkSize;if(this.ended)return!1;var q=b===~~b?b:b===!0?4:0;typeof G==="string"?I.input=onX(G):iXp.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 ZO.Buf8(h),I.next_out=0,I.avail_out=h);G=Ueu(I,q);if(G!==1&&G!==0)return soA(this,G),this.ended=!0,!1;if(I.avail_out===0||I.avail_in===0&&(q===4||q===2))if(this.options.to==="string"){var l=ZO.shrinkBuf(I.output,
I.next_out);b=l;l=l.length;if(l<65537&&(b.subarray&&f0W||!b.subarray))b=String.fromCharCode.apply(null,ZO.shrinkBuf(b,l));else{for(var V="",D=0;D<l;D++)V+=String.fromCharCode(b[D]);b=V}this.chunks.push(b)}else b=ZO.shrinkBuf(I.output,I.next_out),this.chunks.push(b)}while((I.avail_in>0||I.avail_out===0)&&G!==1);if(q===4)return(I=this.strm)&&I.state?(h=I.state.status,h!==42&&h!==69&&h!==73&&h!==91&&h!==103&&h!==113&&h!==666?G=Pz(I,-2):(I.state=null,G=h===113?Pz(I,-3):0)):G=-2,soA(this,G),this.ended=
!0,G===0;q===2&&(soA(this,0),I.avail_out=0);return!0};
var soA=function(G,b){b===0&&(G.result=G.options.to==="string"?G.chunks.join(""):ZO.flattenChunks(G.chunks));G.chunks=[];G.err=b;G.msg=G.strm.msg};var gSu=typeof TextEncoder!=="undefined"?new TextEncoder:null,j9O=gSu?function(G){return gSu.encode(G)}:function(G){G=_.rk(G);
for(var b=new Uint8Array(G.length),I=0;I<b.length;I++)b[I]=G[I];return b};var Efj={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},SUO={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var iO=function(G,b){this.version=G;this.args=b};
iO.prototype.serialize=function(){return{version:this.version,args:this.args}};var FuB=function(G,b){this.topic=G;this.dataClass=b};
FuB.prototype.toString=function(){return this.topic};var AQ5=_.Ge("ytPubsub2Pubsub2Instance")||new _.iB;_.iB.prototype.subscribe=_.iB.prototype.subscribe;_.iB.prototype.unsubscribeByKey=_.iB.prototype.unsubscribeByKey;_.iB.prototype.publish=_.iB.prototype.publish;_.iB.prototype.clear=_.iB.prototype.clear;_.cz("ytPubsub2Pubsub2Instance",AQ5);var rLj=_.Ge("ytPubsub2Pubsub2SubscribedKeys")||{};_.cz("ytPubsub2Pubsub2SubscribedKeys",rLj);var Wu2=_.Ge("ytPubsub2Pubsub2TopicToKeys")||{};_.cz("ytPubsub2Pubsub2TopicToKeys",Wu2);
var HXa=_.Ge("ytPubsub2Pubsub2IsAsync")||{};_.cz("ytPubsub2Pubsub2IsAsync",HXa);_.cz("ytPubsub2Pubsub2SkipSubKey",null);var OXa=void 0,RhB=void 0;var bna=_.Te("max_body_size_to_compress",5E5),Ida=_.Te("min_body_size_to_compress",500),ni=!0,err=0,OA=0,m5u=_.Te("compression_performance_threshold_lr",250),D5v=_.Te("slow_compressions_before_abandon_count",4),pyO=!1,Sop=new Map,qhp=1,hra=!0;_.OE(wh,k8r);wh.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 MnJ=function(G,b,I){I||(I=0);var h=G.W_;if(typeof b==="string")for(var q=0;q<16;q++)h[q]=b.charCodeAt(I)<<24|b.charCodeAt(I+1)<<16|b.charCodeAt(I+2)<<8|b.charCodeAt(I+3),I+=4;else for(q=0;q<16;q++)h[q]=b[I]<<24|b[I+1]<<16|b[I+2]<<8|b[I+3],I+=4;for(b=16;b<80;b++)I=h[b-3]^h[b-8]^h[b-14]^h[b-16],h[b]=(I<<1|I>>>31)&4294967295;b=G.chain_[0];I=G.chain_[1];q=G.chain_[2];for(var l=G.chain_[3],V=G.chain_[4],D,k,L=0;L<80;L++)L<40?L<20?(D=l^I&(q^l),k=1518500249):(D=I^q^l,k=1859775393):L<60?(D=I&q|l&(I|q),
k=2400959708):(D=I^q^l,k=3395469782),D=(b<<5|b>>>27)+D+V+k+h[L]&4294967295,V=l,l=q,q=(I<<30|I>>>2)&4294967295,I=b,b=D;G.chain_[0]=G.chain_[0]+b&4294967295;G.chain_[1]=G.chain_[1]+I&4294967295;G.chain_[2]=G.chain_[2]+q&4294967295;G.chain_[3]=G.chain_[3]+l&4294967295;G.chain_[4]=G.chain_[4]+V&4294967295};
wh.prototype.update=function(G,b){if(G!=null){b===void 0&&(b=G.length);for(var I=b-this.blockSize,h=0,q=this.buf_,l=this.inbuf_;h<b;){if(l==0)for(;h<=I;)MnJ(this,G,h),h+=this.blockSize;if(typeof G==="string")for(;h<b;){if(q[l]=G.charCodeAt(h),++l,++h,l==this.blockSize){MnJ(this,q);l=0;break}}else for(;h<b;)if(q[l]=G[h],++l,++h,l==this.blockSize){MnJ(this,q);l=0;break}}this.inbuf_=l;this.total_+=b}};
wh.prototype.digest=function(){var G=[],b=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]=b&255,b/=256;MnJ(this,this.buf_);for(I=b=0;I<5;I++)for(var h=24;h>=0;h-=8)G[b]=this.chain_[I]>>h&255,++b;return G};var Q9q;var dY=function(G){var b=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(x){b.databaseToken=x},
triggerThrottle:function(){b.throttledSend()},
cancelThrottle:function(){b.cancelThrottledSend()},
immediateSend:function(x){return _.c(function(f){return f.yield(b.immediateSend(x),0)})},
requestWithinAgeLimit:function(x,f){return b.requestWithinAgeLimit(x,f)},
retryQueuedRequests:function(){b.retryQueuedRequests()}};
var I;this.throttleTimeout=(I=G.throttleTimeout)!=null?I:100;var h;this.retryMaxAttempts=(h=G.retryMaxAttempts)!=null?h:1;var q;this.requestAgeLimitMs=(q=G.requestAgeLimitMs)!=null?q:2592E6;var l;this.queuedRequestAgeLimitMs=(l=G.queuedRequestAgeLimitMs)!=null?l:12E4;var V;this.retryDelayMs=(V=G.retryDelayMs)!=null?V:5E3;var D;this.databaseToken=(D=G.databaseToken)!=null?D:void 0;this.enableCleaning=!!G.enableCleaning;var k;this.cleaningRate=(k=G.cleaningRate)!=null?k:.1;var L;this.potentialEsfErrorLimit=
(L=G.potentialEsfErrorLimit)!=null?L: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;Po(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&ZwA(this)},ZwA=function(G){Po(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)))};
_.m=dY.prototype;_.m.writeThenSend=function(G,b){var I=this;b=b===void 0?{}:b;if(Po(this)&&this.initialized){var h={url:G,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(h,this.databaseToken).then(function(q){h.id=q;I.networkManager.isNetworkAvailable()&&I.immediateSend(h)}).catch(function(q){I.immediateSend(h);
tnz(I,q)})}else this.sendFn(G,b)};
_.m.sendThenWrite=function(G,b,I){var h=this;b=b===void 0?{}:b;if(Po(this)&&this.initialized){var q={url:G,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(q.skipRetry=I);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!q.skipRetry){if(!q.skipRetry){var l=b.onError?b.onError:function(){};
b.onError=function(V,D){return _.c(function(k){if(k.nextAddress==1)return k.yield(h.logsStore.set(q,h.databaseToken).catch(function(L){tnz(h,L)}),2);
l(V,D);_.ip(k)})}}this.sendFn(G,b,q.skipRetry)}else this.logsStore.set(q,this.databaseToken).catch(function(V){h.sendFn(G,b,q.skipRetry);
tnz(h,V)})}else this.sendFn(G,b,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&I)};
_.m.sendAndWrite=function(G,b){var I=this;b=b===void 0?{}:b;if(Po(this)&&this.initialized){var h={url:G,options:b,timestamp:this.now(),status:"NEW",sendCount:0},q=!1,l=b.onSuccess?b.onSuccess:function(){};
h.options.onSuccess=function(V,D){h.id!==void 0?I.logsStore.deleteRequest(h.id,I.databaseToken):q=!0;I.networkManager.networkStatusHint&&I.getBooleanFlag&&I.getBooleanFlag("vss_network_hint")&&I.networkManager.networkStatusHint(!0);l(V,D)};
this.sendFn(h.url,h.options,void 0,!0);this.logsStore.set(h,this.databaseToken).then(function(V){h.id=V;q&&I.logsStore.deleteRequest(h.id,I.databaseToken)}).catch(function(V){tnz(I,V)})}else this.sendFn(G,b,void 0,!0)};
_.m.throttledSend=function(){var G=this;if(!Po(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var b;return _.c(function(I){if(I.nextAddress==1)return I.yield(G.logsStore.getMostRecentByStatus("NEW",G.databaseToken),2);if(I.nextAddress!=3)return b=I.yieldResult,b?I.yield(G.immediateSend(b),3):(G.cancelThrottledSend(),I.return());G.intervalJob&&(G.intervalJob=0,G.throttledSend());_.ip(I)})},this.throttleTimeout))};
_.m.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.m.immediateSend=function(G){var b=this,I;return _.c(function(h){switch(h.nextAddress){case 1:if(!Po(b))throw Error("cd");if(G.id===void 0){h.jumpTo(2);break}return h.yield(b.logsStore.markAsQueued(G.id,b.databaseToken),3);case 3:(I=h.yieldResult)||b.handleWarning(Error("dd"));case 2:if(b.requestWithinAgeLimit(G,b.requestAgeLimitMs)){h.jumpTo(4);break}b.handleWarning(Error("ed"));if(G.id===void 0){h.jumpTo(5);break}return h.yield(b.logsStore.deleteRequest(G.id,b.databaseToken),5);case 5:return h.return();
case 4:G.skipRetry||(G=zAb(b,G));if(!G){h.jumpTo(0);break}if(!G.skipRetry||G.id===void 0){h.jumpTo(8);break}return h.yield(b.logsStore.deleteRequest(G.id,b.databaseToken),8);case 8:b.sendFn(G.url,G.options,!!G.skipRetry),_.ip(h)}})};
var zAb=function(G,b){if(!Po(G))throw Error("fd");var I=b.options.onError?b.options.onError:function(){};
b.options.onError=function(q,l){var V,D,k,L;return _.c(function(x){switch(x.nextAddress){case 1:V=U52(l);(D=s9O(l))&&G.getBooleanFlag&&G.getBooleanFlag("web_enable_error_204")&&G.handleError(Error("gd"),b.url,l);if(!(G.getBooleanFlag&&G.getBooleanFlag("nwl_consider_error_code")&&V||G.getBooleanFlag&&!G.getBooleanFlag("nwl_consider_error_code")&&G.potentialEsfErrorCounter<=G.potentialEsfErrorLimit)){x.jumpTo(2);break}if(!G.networkManager.sendNetworkCheckRequest){x.jumpTo(3);break}return x.yield(G.networkManager.sendNetworkCheckRequest(),
3);case 3:if(G.networkManager.isNetworkAvailable()){x.jumpTo(2);break}I(q,l);if(!G.getBooleanFlag||!G.getBooleanFlag("nwl_consider_error_code")||((k=b)==null?void 0:k.id)===void 0){x.jumpTo(6);break}return x.yield(G.logsStore.resetRequest(b.id,G.databaseToken,!1),6);case 6:return x.return();case 2:if(G.getBooleanFlag&&G.getBooleanFlag("nwl_consider_error_code")&&!V&&G.potentialEsfErrorCounter>G.potentialEsfErrorLimit)return x.return();G.potentialEsfErrorCounter++;if(((L=b)==null?void 0:L.id)===void 0){x.jumpTo(8);
break}return b.sendCount<G.retryMaxAttempts?x.yield(G.logsStore.resetRequest(b.id,G.databaseToken,!0,D?!1:void 0),12):x.yield(G.logsStore.deleteRequest(b.id,G.databaseToken),8);case 12:G.jobManager.addLowPriorityJob(function(){G.networkManager.isNetworkAvailable()&&G.throttledSend()},G.retryDelayMs);
case 8:I(q,l),_.ip(x)}})};
var h=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(q,l){var V;return _.c(function(D){if(D.nextAddress==1)return((V=b)==null?void 0:V.id)===void 0?D.jumpTo(2):D.yield(G.logsStore.deleteRequest(b.id,G.databaseToken),2);G.networkManager.networkStatusHint&&G.getBooleanFlag&&G.getBooleanFlag("vss_network_hint")&&G.networkManager.networkStatusHint(!0);h(q,l);_.ip(D)})};
return b};
dY.prototype.requestWithinAgeLimit=function(G,b){G=G.timestamp;return this.now()-G>=b?!1:!0};
dY.prototype.retryQueuedRequests=function(){var G=this;if(!Po(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(b){b&&!G.requestWithinAgeLimit(b,G.queuedRequestAgeLimitMs)?G.jobManager.addLowPriorityJob(function(){return _.c(function(I){if(I.nextAddress==1)return b.id===void 0?I.jumpTo(2):I.yield(G.logsStore.resetRequest(b.id,G.databaseToken),2);G.retryQueuedRequests();_.ip(I)})}):G.networkManager.isNetworkAvailable()&&G.throttledSend()})};
var tnz=function(G,b){G.writeError&&!G.networkManager.isNetworkAvailable()?G.writeError(b):G.handleError(b)},Po=function(G){return!!G.databaseToken||G.bypassDbTokenDependency};var gyr;var PkO={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,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};var oSJ={},yIX=vz("ServiceWorkerLogsDatabase",{objectStores:(oSJ.SWHealthLog={addedAtVersion:1},oSJ),shared:!0,upgrade:function(G,b){b(1)&&X5(Sy(G,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var CHO={},Yhr=0;var Rrd;var yG=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},hM=function(){if(!yG.instance){var G=_.Ge("yt.networkRequestMonitor.instance")||new yG;
_.cz("yt.networkRequestMonitor.instance",G);yG.instance=G}return yG.instance};
yG.prototype.requestComplete=function(G,b){b&&(this.anyRequestHasSucceeded=!0);G=this.removeParams(G);this.requestMap.get(G)||this.requestMap.set(G,b)};
yG.prototype.isEndpointCFR=function(G){G=this.removeParams(G);return(G=this.requestMap.get(G))?!1:G===!1&&this.anyRequestHasSucceeded?!0:null};
yG.prototype.removeParams=function(G){return G.split("?")[0]};
yG.prototype.removeParams=yG.prototype.removeParams;yG.prototype.isEndpointCFR=yG.prototype.isEndpointCFR;yG.prototype.requestComplete=yG.prototype.requestComplete;yG.getInstance=hM;var rY=function(G){_.Z$.call(this);var b=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=G!=null?G:{addLowPriorityJob:function(q,l){return setTimeout(q,l)},
cancelJob:function(q){clearTimeout(q)}};
var I,h;this.isOnline=(h=(I=window.navigator)==null?void 0:I.onLine)!=null?h:!0;this.onNavigatorChange=function(){return _.c(function(q){return q.yield(iwO(b),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||PmB(this)};
_.M(rY,_.Z$);rY.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete rY.instance};
rY.prototype.isNetworkAvailable=function(){return this.isOnline};
var PmB=function(G){G.pollingJob=G.jobManager.addLowPriorityJob(function(){var b;return _.c(function(I){if(I.nextAddress==1)return G.isOnline?((b=window.navigator)==null?0:b.onLine)?I.jumpTo(3):I.yield(iwO(G),3):I.yield(iwO(G),3);PmB(G);_.ip(I)})},3E4)},iwO=function(G,b){return G.networkRequestPromise?G.networkRequestPromise:G.networkRequestPromise=new Promise(function(I){var h,q,l,V;
return _.c(function(D){switch(D.nextAddress){case 1:return h=window.AbortController?new window.AbortController:void 0,l=(q=h)==null?void 0:q.signal,V=!1,_.gm(D,2,3),h&&(G.abortTimeoutKey=G.jobManager.addLowPriorityJob(function(){h.abort()},b||2E4)),D.yield(fetch("/generate_204",{method:"HEAD",
signal:l}),5);case 5:V=!0;case 3:_.Mz(D);G.networkRequestPromise=void 0;G.abortTimeoutKey&&(G.jobManager.cancelJob(G.abortTimeoutKey),G.abortTimeoutKey=0);V!==G.isOnline&&(G.isOnline=V,G.isOnline?G.dispatchEvent("networkstatus-online"):G.dispatchEvent("networkstatus-offline"));I(V);_.tj(D,0);break;case 2:_.zf(D),V=!1,D.jumpTo(3)}})})};var Fz=function(){_.Z$.call(this);var G=this;this.shouldFlushErrors=!1;rY.instance||(rY.instance=new rY(_.uu));this.sharedNetworkStatusManager=rY.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(G.shouldFlushErrors&&_.U("offline_error_handling")){var b=nyj().get("errors",!0);if(b){for(var I in b)if(b[I]){var h=new _.Wf(I,"sent via offline_errors");h.name=b[I].name;h.stack=b[I].stack;h.level=b[I].level;_.Xj(h)}nyj().set("errors",{},2592E3,!0)}}})};
_.M(Fz,_.Z$);var dOi=function(){if(!Fz.instance){var G=_.Ge("yt.networkStatusManager.instance")||new Fz;_.cz("yt.networkStatusManager.instance",G);Fz.instance=G}return Fz.instance};
_.m=Fz.prototype;_.m.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.m.networkStatusHint=function(G){this.sharedNetworkStatusManager.isOnline=G};
_.m.getWindowStatus=function(){var G=window.navigator.onLine;return G===void 0?!0:G};
_.m.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.m.listen=function(G,b){return this.sharedNetworkStatusManager.listen(G,b)};
_.m.sendNetworkCheckRequest=function(G){G=iwO(this.sharedNetworkStatusManager,G);G.then(function(b){_.U("use_cfr_monitor")&&hM().requestComplete("generate_204",b)});
return G};
Fz.prototype.sendNetworkCheckRequest=Fz.prototype.sendNetworkCheckRequest;Fz.prototype.listen=Fz.prototype.listen;Fz.prototype.enableErrorFlushing=Fz.prototype.enableErrorFlushing;Fz.prototype.getWindowStatus=Fz.prototype.getWindowStatus;Fz.prototype.networkStatusHint=Fz.prototype.networkStatusHint;Fz.prototype.isNetworkAvailable=Fz.prototype.isNetworkAvailable;Fz.getInstance=dOi;_.IB=function(G){G=G===void 0?{}:G;_.Z$.call(this);var b=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=dOi();var I=_.Ge("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);I&&(G.rateLimit?(this.rateLimit=G.rateLimit,I("networkstatus-online",function(){yQe(b,"publicytnetworkstatus-online")}),I("networkstatus-offline",function(){yQe(b,"publicytnetworkstatus-offline")})):(I("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),I("networkstatus-offline",
function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
_.M(_.IB,_.Z$);_.IB.prototype.isNetworkAvailable=function(){var G=_.Ge("yt.networkStatusManager.instance.isNetworkAvailable");return G?G.bind(this.nsmInstance)():!0};
_.IB.prototype.networkStatusHint=function(G){var b=_.Ge("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);b&&b(G)};
_.IB.prototype.sendNetworkCheckRequest=function(G){var b=this,I;return _.c(function(h){I=_.Ge("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.nsmInstance);return _.U("skip_network_check_if_cfr")&&hM().isEndpointCFR("generate_204")?h.return(new Promise(function(q){var l;b.networkStatusHint(((l=window.navigator)==null?void 0:l.onLine)||!0);q(b.isNetworkAvailable())})):I?h.return(I(G)):h.return(!0)})};
var yQe=function(G,b){G.rateLimit?G.lastJobTime?(_.uu.cancelJob(G.schedulerJob),G.schedulerJob=_.uu.addLowPriorityJob(function(){G.lastPublicSignalSent!==b&&(G.dispatchEvent(b),G.lastPublicSignalSent=b,G.lastJobTime=(0,_.Li)())},G.rateLimit-((0,_.Li)()-G.lastJobTime))):(G.dispatchEvent(b),G.lastPublicSignalSent=b,G.lastJobTime=(0,_.Li)()):G.dispatchEvent(b)};var Shv,Ho=function(){dY.call(this,{logsStore:{cleanLogsStore:PHu,deleteRequest:inj,getMostRecentByStatus:tHO,markAsQueued:zrO,resetRequest:oyO,set:Znr},networkManager:_.X5O(),handleError:function(G,b,I){var h,q=I==null?void 0:(h=I.error)==null?void 0:h.code;if(q===400||q===415){var l;G=new _.Wf(G.message,b,I==null?void 0:(l=I.error)==null?void 0:l.code);_.bB(G,void 0,void 0,void 0,!0)}else _.Xj(G)},
handleWarning:_.bB,sendFn:Eya,now:_.Li,writeError:OnO,jobManager:_.fW(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Te("potential_esf_error_limit",10),getBooleanFlag:_.U,disableYtIdbTransactions:!(_.Hf()&&_.$oO())});this.initializationPromise=new _.G9;_.U("networkless_immediately_drop_all_requests")&&d5j();soq("LogsDatabaseV2")};
_.M(Ho,dY);_.FsJ=function(){var G=_.Ge("yt.networklessRequestController.instance");G||(G=new Ho,_.cz("yt.networklessRequestController.instance",G),_.U("networkless_logging")&&_.k_().then(function(b){G.databaseToken=b;ZwA(G);G.initializationPromise.resolve();G.enableCleaning&&Math.random()<=G.cleaningRate&&G.databaseToken&&FNs(G.databaseToken);_.U("networkless_immediately_drop_sw_health_store")&&rQB(G)}));
return G};
Ho.prototype.writeThenSend=function(G,b){b||(b={});b=p5j(G,b);_.Hf()||(this.initialized=!1);dY.prototype.writeThenSend.call(this,G,b)};
Ho.prototype.sendThenWrite=function(G,b,I){b||(b={});b=p5j(G,b);_.Hf()||(this.initialized=!1);dY.prototype.sendThenWrite.call(this,G,b,I)};
Ho.prototype.sendAndWrite=function(G,b){b||(b={});b=p5j(G,b);_.Hf()||(this.initialized=!1);dY.prototype.sendAndWrite.call(this,G,b)};
Ho.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var rQB=function(G){var b;_.c(function(I){if(!G.databaseToken)throw b=SO("clearSWHealthLogsDb"),b;return I.return(HnX(G.databaseToken).catch(function(h){G.handleError(h)}))})};_.bGO=!1;_.G3O=_.hd.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.bGO};_.cz("ytNetworklessLoggingInitializationOptions",_.G3O);var Y2=function(G){var b=this;this.config_=null;G?this.config_=G:Pmv()&&(this.config_=_.x_());_.FQ(_.uu,function(){B8r(b)},5E3)};
Y2.prototype.isReady=function(){!this.config_&&Pmv()&&(this.config_=_.x_());return!!this.config_};
var T8O=function(G,b,I,h){!_.wy("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&_.bB(new _.Wf("Missing VISITOR_DATA when sending innertube request.",b,I,h));if(!G.isReady()){var q=new _.Wf("innertube xhrclient not ready",b,I,h);_.Xj(q);throw q;}var l={headers:h.headers||{},method:"POST",postParams:I,postBody:h.postBody,postBodyFormat:h.postBodyFormat||"JSON",onTimeout:function(){h.onTimeout()},
onFetchTimeout:h.onTimeout,onSuccess:function(f,T){if(h.onSuccess)h.onSuccess(T)},
onFetchSuccess:function(f){if(h.onSuccess)h.onSuccess(f)},
onProgress:function(f){if(h.onProgress)h.onProgress(f)},
onError:function(f,T){if(h.onError)h.onError(T)},
onFetchError:function(f){if(h.onError)h.onError(f)},
timeout:h.timeout,withCredentials:!0,compress:h.compress};l.headers["Content-Type"]||(l.headers["Content-Type"]="application/json");var V="";(q=G.config_.innertubeHostOverride)&&(V=q);var D=G.config_.innertubeUseThirdPartyAuth||!1,k=_.OwX(D,V,h);Object.assign(l.headers,k);l.headers.Authorization&&!V&&D&&(l.headers["x-origin"]=window.location.origin);var L=_.lB(V+("/youtubei/"+G.config_.innertubeApiVersion+"/"+b),{alt:"json"}),x=function(f){f=f===void 0?!1:f;var T;if(h.retry&&V!="www.youtube-nocookie.com"&&
(f||_.U("skip_ls_gel_retry")||l.headers["Content-Type"]!=="application/json"||(T=x5X(b,I,k,D)),T)){var B=l.onSuccess,A=l.onFetchSuccess;l.onSuccess=function(F,W){fdq(T);B(F,W)};
I.onFetchSuccess=function(F,W){fdq(T);A(F,W)}}try{if(f&&h.retry&&!h.networklessOptions.bypassNetworkless)l.method="POST",h.networklessOptions.writeThenSend?_.FsJ().writeThenSend(L,l):_.FsJ().sendAndWrite(L,l);
else if(h.compress){var t=!h.networklessOptions.writeThenSend;if(l.postBody){var y=l.postBody;typeof y!=="string"&&(y=JSON.stringify(l.postBody));ldq(L,y,l,_.ze,t)}else ldq(L,JSON.stringify(l.postParams),l,vPu,t)}else vPu(L,l)}catch(F){if(F.name==="InvalidAccessError")T&&(fdq(T),T=0),_.bB(Error("id"));else throw F;}T&&_.FQ(_.uu,function(){B8r(G)},5E3)};
_.Imr()?vSO().then(function(f){x(f)}):x(!1)};var Asv=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Asv,_.eo);var HwA=0,q0q=_.$Y?"webkit":_.XE?"moz":_.Sf?"ms":nai?"o":"";_.cz("ytDomDomGetNextId",_.Ge("ytDomDomGetNextId")||function(){return++HwA});var WsO={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},V9=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 b in G)b in WsO||(this[b]=G[b]);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 h=G.relatedTarget;if(h)try{h=h.nodeName?h:null}catch(q){h=null}else this.type=="mouseover"?h=G.fromElement:this.type=="mouseout"&&(h=G.toElement);this.relatedTarget=h;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(q){}},a0u=function(G){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;
G.pageX_=G.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);G.pageY_=G.clientY+b}};
V9.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
V9.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
V9.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var eG=_.hd.ytEventsEventsListeners||{};_.cz("ytEventsEventsListeners",eG);var Doa=_.hd.ytEventsEventsCounter||{count:0};_.cz("ytEventsEventsCounter",Doa);var cNq=_.gt(function(){var G=!1;try{var b=Object.defineProperty({},"capture",{get:function(){G=!0}});
window.addEventListener("test",null,b)}catch(I){}return G});_.OE(cA,_.FN);cA.prototype.onMouseMove_=function(G){G.pageX_===void 0&&a0u(G);var b=G.pageX_;G.pageY_===void 0&&a0u(G);this.position_=new _.ue(b,G.pageY_)};
cA.prototype.checkPosition_=function(){if(this.position_){var G=(0,_.Li)();if(this.previousTime_!=0){var b=this.previousPosition_,I=this.position_,h=b.x-I.x;b=b.y-I.y;h=Math.sqrt(h*h+b*b)/(G-this.previousTime_);this.cycles_[this.index_]=Math.abs((h-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(I=b=0;I<4;I++)b+=this.cycles_[I]||0;b>=3&&this.callback_();this.previousVelocity_=h}this.previousTime_=G;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
cA.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.k3X(this.mouseListenerKey_)};var fms={};var Zkq=new _.hu("rawColdConfigGroup");var MhO=new _.hu("rawHotConfigGroup");var N4J=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(N4J,_.eo);var gf2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(gf2,_.eo);var rH=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G,500)};
_.M(rH,_.eo);rH.prototype.getPayloadCase=function(){return _.kY(this,Ybb)};
rH.prototype.getContext=function(){return _.fi(this,gf2,33)};
var Ybb=[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 TRO=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(TRO,_.eo);var wvO=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(wvO,_.eo);wvO.prototype.setVideoId=function(G){return Z5(this,1,EQB,BL(G))};
wvO.prototype.getPlaylistId=function(){return _.zx(this,PA(this,EQB,2))};
var EQB=[1,2];var kBO=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(kBO,_.eo);kBO.prototype.getContext=function(){return _.fi(this,tM,1)};
kBO.prototype.getTier=function(){return _.gU(this,7)};var Cm8,Q9,x2;Cm8=_.hd.ytPubsubPubsubInstance||new _.iB;Q9=_.hd.ytPubsubPubsubSubscribedKeys||{};x2=_.hd.ytPubsubPubsubTopicToKeys||{};_.T5u=_.hd.ytPubsubPubsubIsSynchronous||{};_.iB.prototype.subscribe=_.iB.prototype.subscribe;_.iB.prototype.unsubscribeByKey=_.iB.prototype.unsubscribeByKey;_.iB.prototype.publish=_.iB.prototype.publish;_.iB.prototype.clear=_.iB.prototype.clear;_.cz("ytPubsubPubsubInstance",Cm8);_.cz("ytPubsubPubsubTopicToKeys",x2);_.cz("ytPubsubPubsubIsSynchronous",_.T5u);
_.cz("ytPubsubPubsubSubscribedKeys",Q9);var BA=window;var Wo=_.U("web_enable_lifecycle_monitoring")&&ANO()!==0,JQe=_.U("web_enable_lifecycle_monitoring");var KsA=function(G){var b=this;var I=I===void 0?0:I;var h=h===void 0?_.fW():h;this.JSC$10959_defaultPriority=I;this.scheduler=h;this.completedResolver=new _.G9;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(q){return function(){q.payload$jscomp$20.job();b.scheduledPayloads[q.i$jscomp$492].processed=!0;b.scheduledPayloads.every(function(l){return l.processed===
!0})&&b.completedResolver.resolve()}}(G),h=this.getPriority(G.payload$jscomp$20),h=this.scheduler.addJob(I,h),this.scheduledPayloads[G.i$jscomp$492]=Object.assign({},G.payload$jscomp$20,{job:I,
jobId:h})};
KsA.prototype.flushJobs=function(){var G=this,b=Array.from(this.scheduledPayloads.keys()).sort(function(h,q){return G.getPriority(G.scheduledPayloads[q])-G.getPriority(G.scheduledPayloads[h])});
b=_.e(b);for(var I=b.next();!I.done;I=b.next())I=this.scheduledPayloads[I.value],I.jobId===void 0||I.processed||(this.scheduler.cancelJob(I.jobId),this.scheduler.addJob(I.job,10))};
KsA.prototype.cancel=function(){for(var G=_.e(this.scheduledPayloads),b=G.next();!b.done;b=G.next())b=b.value,b.jobId===void 0||b.processed||this.scheduler.cancelJob(b.jobId),b.processed=!0;this.completedResolver.resolve()};
KsA.prototype.getPriority=function(G){var b;return(b=G.priority)!=null?b:this.JSC$10959_defaultPriority};var aw=function(G){this.state=G;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Wo&&MAB(this.state)};
aw.prototype.install=function(G){this.plugins.push(G);return this};
aw.prototype.uninstall=function(){var G=this;_.RI.apply(0,arguments).forEach(function(b){b=G.plugins.indexOf(b);b>-1&&G.plugins.splice(b,1)})};
aw.prototype.transition=function(G,b){var I=this;Wo&&ZG2(this.state);var h=this.transitions.find(function(l){return Array.isArray(l.from)?l.from.find(function(V){return V===I.state&&l.to===G}):l.from===I.state&&l.to===G});
if(h){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);uoX(this,G,b);this.state=G;Wo&&MAB(this.state);h=h.action.bind(this);var q=this.plugins.filter(function(l){return l[G]}).map(function(l){return l[G]});
h(RAO(this,q),b)}else throw Error("jd`"+this.state+"`"+G);};
var RAO=function(G,b){var I=b.filter(function(q){return nSz(G,q)===10}),h=b.filter(function(q){return nSz(G,q)!==10});
return G.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var q=_.RI.apply(0,arguments);return _.c(function(l){if(l.nextAddress==1)return l.yield(G.runImmediateJobsAsync.apply(G,[I].concat(_.Nz(q))),2);G.setJobSetWithScheduledJobs.apply(G,[h].concat(_.Nz(q)));_.ip(l)})}:function(){var q=_.RI.apply(0,arguments);
G.runImmediateJobsSync.apply(G,[I].concat(_.Nz(q)));G.setJobSetWithScheduledJobs.apply(G,[h].concat(_.Nz(q)))}};
aw.prototype.runImmediateJobsSync=function(G){var b=_.RI.apply(1,arguments);_.fW();for(var I=_.e(G),h=I.next(),q={};!h.done;q={lifecycle$jscomp$2:void 0},h=I.next())q.lifecycle$jscomp$2=h.value,nG(function(l){return function(){Owz(l.lifecycle$jscomp$2.name);zcB(function(){return l.lifecycle$jscomp$2.callback.apply(l.lifecycle$jscomp$2,_.Nz(b))});
N3(l.lifecycle$jscomp$2.name)}}(q))};
aw.prototype.runImmediateJobsAsync=function(G){var b=_.RI.apply(1,arguments),I,h,q,l;return _.c(function(V){V.nextAddress==1&&(_.fW(),I=_.e(G),h=I.next(),q={});if(V.nextAddress!=3){if(h.done)return V.jumpTo(0);q.lifecycle$jscomp$3=h.value;q.asyncJobCompletion=void 0;l=function(D){return function(){Owz(D.lifecycle$jscomp$3.name);var k=zcB(function(){return D.lifecycle$jscomp$3.callback.apply(D.lifecycle$jscomp$3,_.Nz(b))});
A5n(k)?D.asyncJobCompletion=_.U("web_lifecycle_error_handling_killswitch")?k.then(function(){N3(D.lifecycle$jscomp$3.name)}):k.then(function(){N3(D.lifecycle$jscomp$3.name)},function(L){tAO(L);
N3(D.lifecycle$jscomp$3.name)}):N3(D.lifecycle$jscomp$3.name)}}(q);
nG(l);return q.asyncJobCompletion?V.yield(q.asyncJobCompletion,3):V.jumpTo(3)}q={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};h=I.next();return V.jumpTo(2)})};
aw.prototype.setJobSetWithScheduledJobs=function(G){var b=_.RI.apply(1,arguments),I=this,h=G.map(function(q){return{job:function(){Owz(q.name);zcB(function(){return q.callback.apply(q,_.Nz(b))});
N3(q.name)},
priority:nSz(I,q)}});
h.length&&(this.jobSet=new KsA(h))};
var nSz=function(G,b){var I,h;return(h=(I=G.overridePriority)!=null?I:b.priority)!=null?h:0},Owz=function(G){Wo&&G&&MAB(G)},N3=function(G){Wo&&G&&ZG2(G)},uoX=function(G,b,I){JQe&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+G.constructor.name+"] '"+G.state+"' to '"+b+"'"),console.log("with message: ",I),console.groupEnd())};
_.kV.Object.defineProperties(aw.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var wjW=function(G){aw.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(){}}]},ESi;
_.M(wjW,aw);wjW.prototype.runApplicationNavigationBegin=function(G,b){var I=this;this.navigationTimer=_.FQ(_.uu,function(){I.currentState==="application_navigating"&&I.transition("none")},5E3);
G(b==null?void 0:b.event)};
wjW.prototype.runApplicationNavigationEnd=function(G,b){this.navigationTimer&&(_.uu.cancelJob(this.navigationTimer),this.navigationTimer=null);G(b==null?void 0:b.event)};
_.Aaa=function(){ESi||(ESi=new wjW);return ESi};var goO=[];_.cz("yt.logging.transport.getScrapedGelPayloads",function(){return goO});var UY=function(){var G=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return G.totalEntries}}};
UY.prototype.storePayload=function(G,b){G=oQa(G);this.store[G]?this.store[G].push(b):(this.memoizedKeySequences={},this.store[G]=[b]);this.totalEntries++;_.U("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return G};
UY.prototype.smartExtractMatchingEntries=function(G){if(!G.keys.length)return[];for(var b=pjX(this,G.keys.splice(0,1)[0]),I=[],h=0;h<b.length;h++)this.store[b[h]]&&G.sizeLimit&&(this.store[b[h]].length<=G.sizeLimit?(I.push.apply(I,_.Nz(this.store[b[h]])),delete this.store[b[h]]):I.push.apply(I,_.Nz(this.store[b[h]].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,_.Nz(this.smartExtractMatchingEntries(G))));
return I};
UY.prototype.extractMatchingEntries=function(G){G=pjX(this,G);for(var b=[],I=0;I<G.length;I++)this.store[G[I]]&&(b.push.apply(b,_.Nz(this.store[G[I]])),delete this.store[G[I]]);this.totalEntries-=b.length;return b};
UY.prototype.getSequenceCount=function(G){G=pjX(this,G);for(var b=0,I=0;I<G.length;I++){var h=void 0;b+=((h=this.store[G[I]])==null?void 0:h.length)||0}return b};
var pjX=function(G,b){var I=oQa(b);if(G.memoizedKeySequences[I])return G.memoizedKeySequences[I];var h=Object.keys(G.store)||[];if(h.length<=1&&oQa(b)===h[0])return h;for(var q=[],l=0;l<h.length;l++){var V=h[l].split("/");if(Sbe(b.auth,V[0])){var D=b.isJspb;Sbe(D===void 0?"undefined":D?"true":"false",V[1])&&Sbe(b.cttAuthInfo,V[2])&&(D=b.tier,D=D===void 0?"undefined":JSON.stringify(D),Sbe(D,V[3])&&q.push(h[l]))}}return G.memoizedKeySequences[I]=q},Sbe=function(G,b){return G===void 0||G==="undefined"?
!0:G===b};
UY.prototype.getSequenceCount=UY.prototype.getSequenceCount;UY.prototype.extractMatchingEntries=UY.prototype.extractMatchingEntries;UY.prototype.smartExtractMatchingEntries=UY.prototype.smartExtractMatchingEntries;UY.prototype.storePayload=UY.prototype.storePayload;var qdO,IGj,jra,AM,Xjn,ik2,oos,bkd,GBq,K6O,huj,UKs,S0j;qdO=_.Te("initial_gel_batch_timeout",2E3);IGj=_.Te("gel_queue_timeout_max_ms",6E4);jra=_.Te("gel_min_batch_size",5);AM=void 0;Xjn=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
ik2=new Xjn;oos=new Xjn;bkd=new Xjn;GBq=new Xjn;huj=!0;UKs=1;_.BRr=new Map;S0j=_.hd.ytLoggingTransportTokensToCttTargetIds_||{};_.cz("ytLoggingTransportTokensToCttTargetIds_",S0j);var pvr=_.hd.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.cz("ytLoggingTransportTokensToJspbCttTargetIds_",pvr);var gH={};var aB=_.hd.ytLoggingGelSequenceIdObj_||{};_.cz("ytLoggingGelSequenceIdObj_",aB);var yau=[];var RuO=new Set,aGr=0,wNa=0,Okv=0,Ydj=[],NRr=[],Eor=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var emp=function(){};
emp.prototype.getUrl=function(G,b){b=b===void 0?!1:b;return G.hasOwnProperty("shareEndpoint")?null:_.$tB(G,null,b)};
var M9q=function(G,b,I){G={endpoint:b,actions:[]};I=(I.path?I.path[0]:I.target).icon||"";b=I.indexOf(":");b>0&&(I=I.substr(b+1));I&&G.actions.push(I);return G};var jZu=/Command$/,q2O=/Endpoint$/,bMX=new Map;var $eB,G9u;$eB=1;_.I1=function(){this.actionRoutingMap=new Map};
_.I1.prototype.triggerAction=function(G){var b=new bb2(G,!1,_.RI.apply(1,arguments));this.handleAction(b);return b.returnValue};
_.I1.prototype.triggerOptionalAction=function(G){var b=new bb2(G,!0,_.RI.apply(1,arguments));this.handleAction(b);return b.returnValue};
_.Yl=function(G,b,I){b.forEach(function(h){var q=hmp(h);q&&G.triggerOptionalAction(q,h,I,void 0)})};
_.I1.prototype.handleAction=function(G){var b=this.actionRoutingMap.get(G.actionName);b&&G9u(G,b);G.optionalAction||G.returnValue.length!==0||(G=new _.Wf("Unhandled action",G.actionName),_.bB(G))};
G9u=function(G,b){b.forEach(function(I){var h=null;I?h=I.apply(null,G.args):(I=Error("kd"),I.params=G.actionName,_.Xj(I));G.returnValue.push(h)})};
_.je=function(G,b,I){I||(I=$eB++);for(var h=_.e(Object.keys(b)),q=h.next();!q.done;q=h.next()){q=q.value;var l=G.actionRoutingMap.get(q);l||(l=new Map,G.actionRoutingMap.set(q,l));G.registerActionHandler(I,q,b[q],l)}return I};
_.I1.prototype.registerActionHandler=function(G,b,I,h){h.set(G,_.$W(I))};
_.lx=function(G,b,I){b=_.e(Object.keys(b));for(var h=b.next();!h.done;h=b.next())(h=G.actionRoutingMap.get(h.value))&&h.delete(I)};
_.RA(_.I1);var cWu=function(G,b){var I=_.I1.getInstance();_.K3(function(){var h={},q=_.je(I,(h[G]=b,h));_.uI(function(){var l={};_.lx(I,(l[G]="",l),q)})})};var oAO=Symbol("md");QLd=EVq;var oUu=new Set(["For","If","Match","Watch"]),bXQ={},IL8=(bXQ[Xq.default]=function(){return eDq},bXQ.style=function(){return eDq},bXQ),hhA;
for(hhA in IL8)k8.attributes[hhA]=IL8[hhA](k8.attributes[hhA]);var vw=new _.q3("VISIBILITY_OBSERVER");var NQd={retrieve:function(G){return this.id.\u0275prov.token===G.\u0275prov.token?this.contextValue:this?_.VA(this,this.id):x9u}};var Iws=function(G,b,I){if(G!==xtB)return!1;G=gUX(document.createElement("div"),function(){var h=f3(!1);try{I[0]()}finally{f3(h)}});
G=Array.from(G.childNodes);G.length===1&&(G=G[0]);return G};var qob=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(G){}var j_B=typeof WeakRef==="function";var lLJ=function(G){this.value=G};
lLJ.prototype.deref=function(){return this.value};
var meB=j_B?WeakRef:lLJ,eh8=function(G){this.newKeyHandler=G;this.map=new WeakMap};
eh8.prototype.add=function(G,b){this.map.has(G)||(this.newKeyHandler(G),this.map.set(G,[]));this.map.get(G).push(new meB(b))};
eh8.prototype.get=function(G){var b=this;return function h(){var q,l,V,D,k,L,x,f,T,B,A;return _.$x(h,function(t){switch(t.nextAddress){case 1:_.ZJ(t,2);q=b.map.get(G);if(!q)return t.return();l=0;V=_.e(q);D=V.next();case 4:if(D.done){t.jumpTo(6);break}k=D.value;L=k.deref();if(!L){t.jumpTo(5);break}l++;x=_.GO;return t.yield(L,8);case 8:x(t.yieldResult);case 5:D=V.next();t.jumpTo(4);break;case 6:if(2*l<q.length){f=0;T=_.e(q);for(B=T.next();!B.done;B=T.next())A=B.value,A.deref()&&(q[f++]=A);q.length=
f}case 2:_.Mz(t),_.tj(t,0)}})}()};var VLW=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},nUj=new eh8(function(G){G.addEventListener("abort",wHO,{once:!0})}),Rmu=new WeakMap,DeA=function(G){G=G===void 0?C6:G;
this.signal=new G};
DeA.prototype.abort=function(G){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=G,G=new Event("abort"),this.signal.dispatchEvent(G))};
var C6=function(){this.target=VLW();this.aborted=!1;this.onabort=null};
C6.prototype.throwIfAborted=function(){umO.call(this)};
C6.prototype.addEventListener=function(G,b,I){this.target.addEventListener(G,b,I)};
C6.prototype.removeEventListener=function(G,b,I){this.target.removeEventListener(G,b,I)};
C6.prototype.dispatchEvent=function(G){if(this.onabort&&G.type==="abort")this.onabort(G);return this.target.dispatchEvent(G)};
C6.abort=KAr;C6.timeout=EUp;C6.any=OMu;var JWr=qob?AbortController:DeA,Ju=qob?AbortSignal:C6;typeof Ju.abort!=="function"&&(Ju.abort=KAr);typeof Ju.prototype.throwIfAborted!=="function"&&(Ju.prototype.throwIfAborted=umO);typeof Ju.any!=="function"&&(Ju.any=OMu);typeof Ju.timeout!=="function"&&(Ju.timeout=EUp);var QF=null,S2q=new Map;var cL8=function(G){G=G.clone();PxO(G);Zc(G,"dg",null);Zc(G,"d","0");teX(G,null);zxO(G,null);return G},k95=!0,vnW=function(G,b,I){var h=I===void 0?{}:I;
I=h.cssRowKey===void 0?void 0:h.cssRowKey;var q=h.combinedSignature===void 0?void 0:h.combinedSignature;var l=h.extraEdges===void 0?void 0:h.extraEdges;h=h.callback===void 0?void 0:h.callback;Zc(G,"m",b.join(","));l&&i8B(G,l);I&&(Zc(G,"ck",I),q?Zc(G,"rs",q):k95&&(k95=!1));if(h){if(h!=null&&!rUn.test(h))throw Error("Xa`"+h);Zc(G,"cb",h)}G=G.toString();_.jv(G,"/")&&(G=e8u(document.location.href)+G);return _.Pg(G)};var Q_e=function(G){return Lue(G).then(function(b){return JSON.parse(b.responseText)})},Lue=function(G){var b={},I=b.xmlHttpFactory?b.xmlHttpFactory.createInstance():w38.createInstance();
return(new _.MB(function(h,q){var l;try{I.open("GET",G,!0)}catch(k){q(new K6("Error opening XHR: "+k.message,G,I))}I.onreadystatechange=function(){if(I.readyState==4){_.hd.clearTimeout(l);var k;!(k=O3W(I.status))&&(k=I.status===0)&&(k=m28(G),k=!(k=="http"||k=="https"||k==""));k?h(I):q(new xez(I.status,G,I))}};
I.onerror=function(){q(new K6("Network error",G,I))};
if(b.headers)for(var V in b.headers){var D=b.headers[V];D!=null&&I.setRequestHeader(V,D)}b.withCredentials&&(I.withCredentials=b.withCredentials);b.responseType&&(I.responseType=b.responseType);b.mimeType&&I.overrideMimeType(b.mimeType);b.timeoutMs>0&&(l=_.hd.setTimeout(function(){I.onreadystatechange=function(){};
I.abort();q(new fLW(G,I))},b.timeoutMs));
try{I.send(null)}catch(k){I.onreadystatechange=function(){},_.hd.clearTimeout(l),q(new K6("Error sending XHR: "+k.message,G,I))}})).thenCatch(function(h){h instanceof _.zI&&I.abort();
throw h;})},K6=function(G,b,I){_.bs.call(this,G+", url="+b);
this.url=b;this.xhr=I};
_.OE(K6,_.bs);K6.prototype.name="XhrError";var xez=function(G,b,I){K6.call(this,"Request Failed, status="+G,b,I);this.status=G};
_.OE(xez,K6);xez.prototype.name="XhrHttpError";var fLW=function(G,b){K6.call(this,"Request timed out",G,b)};
_.OE(fLW,K6);fLW.prototype.name="XhrTimeoutError";uX=uX||{};var uO=function(){_.FN.call(this)};
_.OE(uO,_.FN);uO.prototype.initialize=function(){};var TqX=function(G,b){this.fn_=G;this.handler_=b};
TqX.prototype.execute=function(G){this.fn_&&(this.fn_.call(this.handler_||null,G),this.fn_=this.handler_=null)};
TqX.prototype.abort=function(){this.handler_=this.fn_=null};var Rw=function(G,b){_.FN.call(this);this.deps_=G;this.JSC$11114_id_=b;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.OE(Rw,_.FN);Rw.prototype.moduleConstructor_=uO;Rw.prototype.module_=null;Rw.prototype.getId=function(){return this.JSC$11114_id_};
Rw.prototype.registerCallback=function(G,b){return n6(this.onloadCallbacks_,G,b)};
var Bqz=function(G,b){n6(G.onErrorCallbacks_,b)},n6=function(G,b,I){b=new TqX(b,I);
G.push(b);return b};
Rw.prototype.isLoaded=function(){return!!this.module_};
Rw.prototype.onLoad=function(G){var b=new this.moduleConstructor_;b.initialize(G());this.module_=b;b=(b=Uei(this.earlyOnloadCallbacks_,G()))||Uei(this.onloadCallbacks_,G());b||(this.onErrorCallbacks_.length=0);return b};
Rw.prototype.onError=function(G){(G=Uei(this.onErrorCallbacks_,G))&&qr(Error("rd`"+G));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Uei=function(G,b){for(var I=[],h=0;h<G.length;h++)try{G[h].execute(b)}catch(q){qr(q),I.push(q)}G.length=0;return I.length?I:null};
Rw.prototype.disposeInternal=function(){Rw.superClass_.disposeInternal.call(this);_.VQ(this.module_)};var s_b,zh5,ZXJ,tLn,ALn,MLA,yLe,Pgn,den;
_.f8=function(G,b,I,h,q){h=h===void 0?!1:h;q=q===void 0?!1:q;var l=l===void 0?!0:l;this.scsReferenceUrl_=Nhr(_.yM(G).toString(),l);this.cssRowKey_=b;this.combinedSignature_=I;this.useNegativeLoading_=h;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(G=MR(this.scsReferenceUrl_,"excm"))?G.split(","):[];this.shouldScanForCss_=q;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;YAr();_.Oa(this,oGu(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
s_b=function(G,b){if(b.href||b.getAttribute("data-href"))if(b=b.href||b.getAttribute("data-href"),F0B(b)&&!Nhr(b).urlPrefix_.endsWith("_/js/")){b=oGu(Nhr(b));b=_.e(b);for(var I=b.next();!I.done;I=b.next())I=I.value,G.loadedCssModuleList_.includes(I)||G.loadedCssModuleList_.push(I)}};
_.f8.prototype.JSC$11119_loadModules=function(G,b,I){var h=I===void 0?{}:I;b=h.extraEdges;I=h.onError;var q=h.onSuccess;h=h.forceReload;if(!G)throw Error("sd");if(this.shouldScanForCss_){for(var l=_.e(document.getElementsByTagName("style")),V=l.next();!V.done;V=l.next())s_b(this,V.value);l=_.e(document.getElementsByTagName("link"));for(V=l.next();!V.done;V=l.next())s_b(this,V.value)}gnX(this,ALn(this,G),b,I,q,h)};
var gnX=function(G,b,I,h,q,l){h=h===void 0?function(){}:h;
q=q===void 0?function(){}:q;
l=l===void 0?!1:l;MLA(G,b,function(V,D,k){k=k===void 0?D:k;G.enableFallbackFetch&&l?G.loadWithFetch(V,D,h,q,k):G.load(V,D,h,q,k,I)},I)||h(-1)};
_.f8.prototype.loadWithFetch=function(){_.c(function(){throw Error("td");})};
_.f8.prototype.maybeSetAdditionalFields=function(){};
zh5=function(G,b,I){if(G.useNegativeLoading_){var h=G.scsReferenceUrl_;G={cssRowKey:G.cssRowKey_,combinedSignature:G.combinedSignature_,extraEdges:I,requestedModuleIds:ZXJ(G),requestedCssModuleIds:tLn(G)};var q=G===void 0?{}:G;G=q.requestedModuleIds===void 0?[]:q.requestedModuleIds;I=q.requestedCssModuleIds===void 0?[]:q.requestedCssModuleIds;var l=q.cssRowKey===void 0?void 0:q.cssRowKey;var V=q.combinedSignature===void 0?void 0:q.combinedSignature;var D=q.extraEdges===void 0?void 0:q.extraEdges;
q=q.callback===void 0?void 0:q.callback;h=cL8(h);Zc(h,"d","1");teX(h,G);zxO(h,I);b=vnW(h,b,{cssRowKey:l,combinedSignature:V,extraEdges:D,callback:q})}else h=G.scsReferenceUrl_,G={cssRowKey:G.cssRowKey_,combinedSignature:G.combinedSignature_,requestedModuleIds:ZXJ(G),requestedCssModuleIds:tLn(G)},D=G===void 0?{}:G,G=D.requestedCssModuleIds===void 0?[]:D.requestedCssModuleIds,I=D.cssRowKey===void 0?void 0:D.cssRowKey,l=D.combinedSignature===void 0?void 0:D.combinedSignature,V=D.extraEdges===void 0?
void 0:D.extraEdges,D=D.callback===void 0?void 0:D.callback,h=cL8(h),zxO(h,G),b=vnW(h,b,{cssRowKey:I,combinedSignature:l,extraEdges:V,callback:D});return b};
_.Oa=function(G,b){for(var I=!1,h=[],q=0;q<b.length;++q){var l=b[q];G.requestedModuleMap_[l]||(G.requestedModuleMap_[l]=!0,G.requestedModuleList_.push(l),I=!0,h.push(l))}I&&(G.requestedModuleListSorted_=!1)};
_.wY=function(G,b){for(var I=[],h=0;h<b.length;++h){var q=b[h];G.requestedModuleMap_[q]&&(delete G.requestedModuleMap_[q],_.CO(G.requestedModuleList_,q),I.push(q))}};
_.f8.prototype.load=function(G,b,I,h,q){q=q===void 0?b:q;_.yM(G);var l=this.useCors_,V=this.corsMode_,D=this.fetchPriority,k=_.ol("SCRIPT");_.mf(k,G);l&&(k.crossOrigin=V);k.async=!1;D&&k.setAttribute("fetchpriority",D);_.Oa(this,b);_.onz(this,G,k,b,I,h,q)};
_.onz=function(G,b,I,h,q,l,V){V=V===void 0?h:V;G.lastScript_=I;G.insertPos.insertBefore(I,G.insertPos.firstChild);_.iXO(I,h,function(){I.parentElement.removeChild(I);G.lastScript_==I&&(G.lastScript_=null);l()},function(D){I.parentElement.removeChild(I);
G.lastScript_==I&&(G.lastScript_=null);_.wY(G,D);G.pendingModuleGraphUpdate_?G.pendingModuleGraphUpdate_.then(function(){q(-1,b)}):q(-1,b)},V)};
_.iXO=function(G,b,I,h,q){q=q===void 0?b:q;var l=b.length,V=function(){l=0;G.onload=null;G.onerror=null;D=function(){}},D=function(){V();
var L=q.filter(function(x){return!J2().getModuleInfo(x).isLoaded()});
L.length!==0?h(L,"Response was successful but was missing module(s) "+L+"."):I()},k=function(){l--;
l==0&&D()};
b.forEach(function(L){L=J2().getModuleInfo(L);L.isLoaded()?k():(n6(L.earlyOnloadCallbacks_,k),Bqz(L,k))});
G.onload=function(){return D()};
G.onerror=function(){V();h(b)}};
ZXJ=function(G){G.requestedModuleListSorted_||(G.requestedModuleListSorted_=!0,G.requestedModuleList_.sort());return G.requestedModuleList_};
tLn=function(G){G=G.loadedCssModuleList_;G.sort();return G};
ALn=function(G,b){return b.filter(function(I){return!G.requestedModuleMap_[I]})};
MLA=function(G,b,I,h){if(G.pendingModuleGraphUpdate_)return G.pendingModuleGraphUpdate_.then(function(){MLA(G,b,I,h)}),!0;
if(!G.useNegativeLoading_){var q=[],l=Object.assign({},G.requestedModuleMap_);Pgn(G,b,function(x){q.push(x.getId())},h,function(x){return!x.isLoaded()},l);
b=q}for(l=0;l<b.length;){for(var V=b.length-l,D=l==0?b:b.slice(l,b.length),k=zh5(G,D,h),L=_.yM(k).toString();L.length>G.urlMaxLength;)if(V>1)V-=Math.ceil((L.length-G.urlMaxLength)/6),V=Math.max(V,1),D=b.slice(l,l+V),k=zh5(G,D,h),L=_.yM(k).toString();else return G.useNegativeLoading_?(G.useNegativeLoading_=!1,G.pendingModuleGraphUpdate_=den(G).then(function(x){yLe(G,x,h)}),MLA(G,b.slice(l),I,h)):!1;
l+=V;G.useNegativeLoading_?I(k,D):I(k,D,l===b.length?b:[])}return!0};
yLe=function(G,b,I){J2().setAllModuleInfoString((b||{}).moduleGraph);Pgn(G,ZXJ(G),function(h){_.Oa(G,[h.getId()])},I);
G.pendingModuleGraphUpdate_=null};
Pgn=function(G,b,I,h,q,l){l=l===void 0?{}:l;var V=J2();b=_.e(b);for(var D=b.next();!D.done;D=b.next()){D=D.value;var k=V.getModuleInfo(D);if(!(l[D]||q&&!q(k))){l[D]=!0;var L=k.deps_||[];if(h){var x=[];h[D]&&(x=Object.keys(h[D]));L=L.concat(x)}Pgn(G,L,I,h,q,l);I(k)}}};
den=function(G){G=G.scsReferenceUrl_.clone();PxO(G);Zc(G,"dg",null);Zc(G,"md","1");return Q_e(G.toString())};var $AO=new Uint8Array(123);var rLu=[];var FuW=function(){this.JSC$10127_loader_=null};
_.m=FuW.prototype;_.m.setBatchModeEnabled=function(){};
_.m.setAllModuleInfoString=function(){};
_.m.addExtraEdge=function(){throw Error("ud");};
_.m.removeExtraEdge=function(){throw Error("vd");};
_.m.getModuleContext=function(){return null};
_.m.isActive=function(){return!1};
_.m.isUserActive=function(){return!1};
_.m.registerInitializationCallback=function(){};
_.m.registerCallback=function(){};var Ea=function(G,b,I,h,q){var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.name="ModuleLoadFailure";this.type=G;this.status=b;this.requestedModuleIds=I;this.url=h;this.cause=q;this.message=this.toString()};
_.M(Ea,Error);Ea.prototype.toString=function(){return HXb(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var HXb=function(G){switch(G.type){case Ea.Type.UNAUTHORIZED:return"Unauthorized";case Ea.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Ea.Type.TIMEOUT:return"Timed out";case Ea.Type.OLD_CODE_GONE:return"Out of date module id";case Ea.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+G.type}};
uX.ModuleLoadFailure=Ea;uX.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var p6=function(){this.moduleIds_=this.JSC$10127_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11132_extraEdges_={};this.JSC$11132_callbackMap_={};this.JSC$11132_currentlyLoadingModule_=this.baseModuleInfo_=new Rw([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new p4;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.OE(p6,FuW);var WuX=function(G,b){_.bs.call(this,"Error loading "+G+": "+b)};
_.OE(WuX,_.bs);p6.prototype.setBatchModeEnabled=function(G){this.batchModeEnabled_=G};
p6.prototype.setAllModuleInfoString=function(G,b){if(!(this instanceof p6))this.setAllModuleInfoString(G,b);else if(typeof G==="string"){if(G.startsWith("d$")){G=G.substring(2);for(var I=[],h=0,q=G.indexOf("/"),l=0,V=!1,D=0;;){var k=V?G.substring(l):G.substring(l,q);if(k.length===0)h++,l="sy"+h.toString(36),k=[];else{var L=k.indexOf(":");if(L<0)l=k,k=[];else if(L===k.length-1)l=k.substring(0,L),k=Array(I[D-1]);else{l=k.substring(0,L);k=k.substring(L+1).split(",");L=D;for(var x=0;x<k.length;x++)L-=
k[x].length===0?1:Number(k[x]),k[x]=I[L]}L=0;if(l.length===0)L=1;else if(l.charAt(0)==="+"||l.charAt(0)==="-")L=Number(l);L!==0&&(h+=L,l="sy"+h.toString(36))}I.push(l);aLO(this,l,k);if(V)break;l=q+1;q=G.indexOf("/",l);q===-1&&(V=!0);D++}this.moduleIds_=I}else if(G.startsWith("p$"))Nqn(this,G);else{G=G.split("/");I=[];for(h=0;h<G.length;h++){D=G[h].split(":");q=D[0];V=[];if(D[1])for(V=D[1].split(","),D=0;D<V.length;D++)V[D]=I[parseInt(V[D],36)];I.push(q);aLO(this,q,V)}this.moduleIds_=I}b&&b.length?
(_.us(this.loadingModuleIds_,b),this.lastInitialModuleId_=_.rX(b)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11132_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11132_currentlyLoadingModule_=null,(b=this.baseModuleInfo_.onLoad((0,_.Hr)(this.getModuleContext,this)))&&b.length&&Yon(this,new uX.ModuleLoadFailure(uX.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,b[0])),S0(this))}};
var Nqn=function(G,b){var I=b.substring(2);for(b=0;b<64;b++)$AO["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(b)]=b;var h={buf:I,pos:0};xG(h);var q=xG(h),l=xG(h)+1;b=Array(q);var V=Array(q),D=Array(q);l=Array(l);var k=0,L=0,x=h.pos,f=h.buf.indexOf("|",h.pos);h.pos=f+1;for(f=0;f<q;f++){var T=xG(h),B=T&2,A=T&1;T>>>=2;A?(k+=T>>>1^-(T&1),T="sy"+k.toString(36)):(A=x,x+=T,T=I.substring(A,x));b[f]=T;B&&(l[L++]=T)}l[L]="";h.pos++;L=q&-2;I=q&1;for(k=0;k<L;k+=2)x=GIO(h),D[k]=
x&7,D[k+1]=x>>>3&7;I&&(I=GIO(h),D[L]=I&7);h.pos++;for(L=0;L<q;L++)D[L]===7&&(D[L]=xG(h));h.pos++;for(I=L=0;I<q;I++){k=D[I];x=k===0?rLu:Array(k);V[I]=x;f=L;for(B=0;B<k;B++)f-=xG(h),x[B]=l[f];l[L]===b[I]&&L++}for(h=0;h<b.length;h++)aLO(G,b[h],V[h]);G.moduleIds_=b};
_.m=p6.prototype;_.m.getModuleInfo=function(G){return this.moduleInfoMap[G]};
_.m.addExtraEdge=function(G,b){var I=this.getModuleInfo(G);I&&I.isLoaded()?this.load(b):(this.JSC$11132_extraEdges_[G]||(this.JSC$11132_extraEdges_[G]={}),this.JSC$11132_extraEdges_[G][b]=!0)};
_.m.removeExtraEdge=function(G,b){if(this.JSC$11132_extraEdges_[G]){delete this.JSC$11132_extraEdges_[G][b];for(var I in this.JSC$11132_extraEdges_[G])return;delete this.JSC$11132_extraEdges_[G]}};
_.m.isActive=function(){return this.loadingModuleIds_.length>0};
_.m.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var S0=function(G){var b=G.lastActive_,I=G.isActive();I!=b&&(G.executeCallbacks_(I?"active":"idle"),G.lastActive_=I);b=G.isUserActive();b!=G.userLastActive_&&(G.executeCallbacks_(b?"userActive":"userIdle"),G.userLastActive_=b)},aLO=function(G,b,I){G.moduleInfoMap[b]?(G=G.moduleInfoMap[b].deps_,G!=I&&G.splice.apply(G,[0,
G.length].concat(_.Nz(I)))):G.moduleInfoMap[b]=new Rw(I,b)},JLu=function(G,b,I){var h=[];
rdX(b,h);b=[];for(var q={},l=0;l<h.length;l++){var V=h[l],D=G.getModuleInfo(V);if(!D)throw Error("wd`"+V);var k=new p4;q[V]=k;D.isLoaded()?k.callback(null):(CgQ(G,V,D,!!I,k),G.isModuleLoading(V)||b.push(V))}b.length>0&&(G.loadingModuleIds_.length===0?G.loadModules_(b):(G.requestedModuleIdsQueue_.push(b),S0(G)));return q},CgQ=function(G,b,I,h,q){I.registerCallback(q.callback,q);
Bqz(I,function(l){q.errback(new WuX(b,l))});
G.isModuleLoading(b)?h&&(Kui(G,b),S0(G)):h&&Kui(G,b)};
p6.prototype.loadModules_=function(G,b,I){var h=this;b||(this.consecutiveFailures_=0);var q=uAQ(this,G);this.loadingModuleIds_=q;this.requestedLoadingModuleIds_=this.batchModeEnabled_?G:_.Jd(q);S0(this);if(q.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,q);G=this.JSC$10127_loader_;if(!G)throw Error("xd");if(Object.keys(this.JSC$11132_extraEdges_).length>0&&!G.supportsExtraEdges)throw Error("yd");I=(0,_.Hr)(G.JSC$11119_loadModules,G,_.Jd(q),this.moduleInfoMap,{extraEdges:this.JSC$11132_extraEdges_,
forceReload:!!I,onError:function(l,V){var D=h.requestedLoadingModuleIds_;l=l!=null?l:void 0;h.consecutiveFailures_++;var k=_.Jd(q);h.requestedLoadingModuleIds_=D;q.forEach(_.l9(_.CO,h.requestedModuleIds_),h);l==401?(Yon(h,new uX.ModuleLoadFailure(uX.ModuleLoadFailure.Type.UNAUTHORIZED,l)),h.requestedModuleIdsQueue_.length=0):l==410?(RhW(h,new uX.ModuleLoadFailure(uX.ModuleLoadFailure.Type.OLD_CODE_GONE,l)),nne(h)):h.consecutiveFailures_>=3?(RhW(h,new uX.ModuleLoadFailure(uX.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
l,k,V)),nne(h)):h.loadModules_(h.requestedLoadingModuleIds_,!0,l==8001||!1)},
onTimeout:(0,_.Hr)(this.handleLoadTimeout_,this)});(G=Math.pow(this.consecutiveFailures_,2)*5E3)?_.hd.setTimeout(I,G):I()}};
var uAQ=function(G,b){b=b.filter(function(q){return G.moduleInfoMap[q].isLoaded()?(_.hd.setTimeout(function(){return Error("zd`"+q)},0),!1):!0});
for(var I=[],h=0;h<b.length;h++)I=I.concat(OXb(G,b[h]));rdX(I);return!G.batchModeEnabled_&&I.length>1?(b=I.shift(),G.requestedModuleIdsQueue_=I.map(function(q){return[q]}).concat(G.requestedModuleIdsQueue_),[b]):I},OXb=function(G,b){var I=_.Cy.createSet(G.requestedModuleIds_),h=[];
I[b]||h.push(b);b=[b];for(var q=0;q<b.length;q++)for(var l=G.getModuleInfo(b[q]).deps_,V=l.length-1;V>=0;V--){var D=l[V];G.getModuleInfo(D).isLoaded()||I[D]||(h.push(D),b.push(D))}h.reverse();rdX(h);return h};
p6.prototype.JSC$11127_setLoaded=function(){if(this.JSC$11132_currentlyLoadingModule_){var G=this.JSC$11132_currentlyLoadingModule_.getId(),b=[];if(this.JSC$11132_extraEdges_[G]){for(var I=_.e(Object.keys(this.JSC$11132_extraEdges_[G])),h=I.next();!h.done;h=I.next()){h=h.value;var q=this.getModuleInfo(h);q&&!q.isLoaded()&&(this.removeExtraEdge(G,h),b.push(h))}this.loadMultiple(b)}this.isDisposed()||((b=this.moduleInfoMap[G].onLoad((0,_.Hr)(this.getModuleContext,this)))&&b.length&&Yon(this,new uX.ModuleLoadFailure(uX.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,b[0])),_.CO(this.userInitiatedLoadingModuleIds_,G),_.CO(this.loadingModuleIds_,G),this.loadingModuleIds_.length===0&&nne(this),this.lastInitialModuleId_&&G==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),S0(this),this.JSC$11132_currentlyLoadingModule_=null)}};
p6.prototype.isModuleLoading=function(G){if(_.Ya(this.loadingModuleIds_,G))return!0;for(var b=0;b<this.requestedModuleIdsQueue_.length;b++)if(_.Ya(this.requestedModuleIdsQueue_[b],G))return!0;return!1};
p6.prototype.load=function(G,b){return JLu(this,[G],b)[G]};
p6.prototype.loadMultiple=function(G){return JLu(this,G)};
var Kui=function(G,b){_.Ya(G.userInitiatedLoadingModuleIds_,b)||G.userInitiatedLoadingModuleIds_.push(b)};
p6.prototype.beforeLoadModuleCode=function(G){var b=this;this.JSC$11132_currentlyLoadingModule_&&this.JSC$11132_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11127_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[G]&&wyJ(this,this.moduleInfoMap[G].deps_||[],function(I){I.module_=new uO;_.CO(b.loadingModuleIds_,I.getId())},function(I){return!I.isLoaded()});
this.JSC$11132_currentlyLoadingModule_=this.getModuleInfo(G)};
p6.prototype.registerInitializationCallback=function(G){this.JSC$11132_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new Rw([],"synthetic_module_overhead"),this.JSC$11132_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);n6(this.JSC$11132_currentlyLoadingModule_.earlyOnloadCallbacks_,G)};
p6.prototype.handleLoadTimeout_=function(){RhW(this,new uX.ModuleLoadFailure(uX.ModuleLoadFailure.Type.TIMEOUT));nne(this)};
var RhW=function(G,b){G.requestedLoadingModuleIds_.length>1?G.requestedModuleIdsQueue_=G.requestedLoadingModuleIds_.map(function(I){return[I]}).concat(G.requestedModuleIdsQueue_):Yon(G,b)},Yon=function(G,b){var I=G.requestedLoadingModuleIds_;
G.loadingModuleIds_.length=0;for(var h=[],q=0;q<G.requestedModuleIdsQueue_.length;q++){var l=G.requestedModuleIdsQueue_[q].filter(function(k){var L=OXb(this,k);return qB(I,function(x){return _.Ya(L,x)})},G);
_.us(h,l)}for(q=0;q<I.length;q++)_.iOr(h,I[q]);for(q=0;q<h.length;q++){for(l=0;l<G.requestedModuleIdsQueue_.length;l++)_.CO(G.requestedModuleIdsQueue_[l],h[q]);_.CO(G.userInitiatedLoadingModuleIds_,h[q])}if(q=G.JSC$11132_callbackMap_.error)for(l=0;l<q.length;l++)for(var V=q[l],D=0;D<h.length;D++)V("error",h[D],b);for(h=0;h<I.length;h++)if(G.moduleInfoMap[I[h]])G.moduleInfoMap[I[h]].onError(b);G.requestedLoadingModuleIds_.length=0;S0(G)},nne=function(G){for(;G.requestedModuleIdsQueue_.length;){var b=
G.requestedModuleIdsQueue_.shift().filter(function(I){return!this.getModuleInfo(I).isLoaded()},G);
if(b.length>0){G.loadModules_(b);return}}S0(G)};
p6.prototype.registerCallback=function(G,b){Array.isArray(G)||(G=[G]);for(var I=0;I<G.length;I++){var h=G[I],q=b,l=this.JSC$11132_callbackMap_;l[h]||(l[h]=[]);l[h].push(q)}};
p6.prototype.executeCallbacks_=function(G){for(var b=this.JSC$11132_callbackMap_[G],I=0;b&&I<b.length;I++)b[I](G)};
var wyJ=function(G,b,I,h,q){h=h===void 0?function(){return!0}:h;
q=q===void 0?{}:q;b=_.e(b);for(var l=b.next();!l.done;l=b.next()){l=l.value;var V=G.getModuleInfo(l);!q[l]&&h(V)&&(q[l]=!0,wyJ(G,V.deps_||[],I,h,q),I(V))}};
p6.prototype.dispose=function(){_.DC(_.Cy.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11132_callbackMap_={};this.isDisposed_=!0};
p6.prototype.isDisposed=function(){return this.isDisposed_};
_.CT=function(){return new p6};var Enb=[5E3,2E4],Ngj=function(){this.JSC$10127_loader_=null;this.JSC$11140_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11140_queue_=[];this.JSC$11140_extraEdges_=Object.create(null);this.JSC$11140_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.M(Ngj,FuW);_.m=Ngj.prototype;_.m.setAllModuleInfoString=function(){this.JSC$11140_currentlyLoadingModule_&&this.JSC$11140_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11127_setLoaded()};
_.m.getModuleInfo=function(G){var b=this.JSC$11140_moduleInfoMap_[G];b||(b=new Rw([],G),this.JSC$11140_moduleInfoMap_[G]=b);return b};
_.m.addExtraEdge=function(G,b){this.getModuleInfo(G).isLoaded()?this.load(b):(this.JSC$11140_extraEdges_[G]||(this.JSC$11140_extraEdges_[G]={}),this.JSC$11140_extraEdges_[G][b]=!0)};
_.m.removeExtraEdge=function(G,b){if(this.JSC$11140_extraEdges_[G]){delete this.JSC$11140_extraEdges_[G][b];for(var I in this.JSC$11140_extraEdges_[G])return;delete this.JSC$11140_extraEdges_[G]}};
_.m.isModuleLoading=function(G){return!!this.loadingModules_[G]};
_.m.load=function(G){pyQ(this,[G]);return SoO(this,G)};
_.m.loadMultiple=function(G){var b=this,I=Object.create(null),h=[];G.forEach(function(q){I[q]||(I[q]=SoO(b,q),h.push(q))});
pyQ(this,h);return I};
_.m.beforeLoadModuleCode=function(G){var b;((b=this.JSC$11140_currentlyLoadingModule_)==null?void 0:b.getId())==="synthetic_module_overhead"&&this.JSC$11127_setLoaded();var I,h;XyB(this,(h=(I=this.JSC$11140_moduleInfoMap_[G])==null?void 0:I.deps_)!=null?h:[],function(q){q.module_=new uO},function(q){return!q.isLoaded()});
this.JSC$11140_currentlyLoadingModule_=this.getModuleInfo(G)};
_.m.JSC$11127_setLoaded=function(){if(this.JSC$11140_currentlyLoadingModule_){var G=this.JSC$11140_currentlyLoadingModule_.getId(),b=[];if(this.JSC$11140_extraEdges_[G]){for(var I=_.e(Object.keys(this.JSC$11140_extraEdges_[G])),h=I.next();!h.done;h=I.next())h=h.value,this.getModuleInfo(h).isLoaded()||(this.removeExtraEdge(G,h),b.push(h));this.loadMultiple(b)}this.JSC$11140_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11140_currentlyLoadingModule_=null;(!this.isModuleLoading(G)&&/^sy[0-9a-z]{0,4}$/.test(G)||G==="synthetic_module_overhead")&&delete this.JSC$11140_moduleInfoMap_[G];this.unsetModulesAsLoading(G)}};
_.m.registerInitializationCallback=function(G){this.JSC$11140_currentlyLoadingModule_||(this.JSC$11140_moduleInfoMap_.synthetic_module_overhead=new Rw([],"synthetic_module_overhead"),this.JSC$11140_currentlyLoadingModule_=this.JSC$11140_moduleInfoMap_.synthetic_module_overhead);n6(this.JSC$11140_currentlyLoadingModule_.earlyOnloadCallbacks_,G)};
_.m.setModulesAsLoading=function(){var G=this;_.RI.apply(0,arguments).forEach(function(b){G.loadingModules_[b]=!0})};
_.m.unsetModulesAsLoading=function(){var G=this;_.RI.apply(0,arguments).forEach(function(b){delete G.loadingModules_[b]})};
var SoO=function(G,b){return new _.MB(function(I,h){var q=G.getModuleInfo(b);q.isLoaded()?I(null):(q.registerCallback(function(){I(null)}),Bqz(q,function(l){var V="Error loading "+b+": "+l;
l instanceof uX.ModuleLoadFailure&&l.url&&(V=V+", requested url: "+l.url.toString());h(Error(V))}))})},pyQ=function(G,b){b=b.filter(function(I){return!G.isModuleLoading(I)&&!G.getModuleInfo(I).isLoaded()});
b.length>0&&(G.setModulesAsLoading.apply(G,_.Nz(b)),G.JSC$11140_queue_.push(b),$5z(G))},$5z=function(G){for(var b={};G.activeLoads_<Infinity&&G.JSC$11140_queue_.length>0;b={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})b.ids$jscomp$37=G.JSC$11140_queue_.shift().filter(function(I){return!G.getModuleInfo(I).isLoaded()}),b.ids$jscomp$37.length>0&&(G.activeLoads_++,b.finishLoad=function(I){return function(){G.activeLoads_--;
$5z(G);I.finishLoad=function(){}}}(b),_.oT(b.ids$jscomp$37.map(function(I){return SoO(G,I)})).then(function(I){return function(){(0,I.finishLoad)()}}(b)),b.attempt$jscomp$6=0,b.load$jscomp$1=function(I){return function(){if(Object.keys(G.JSC$11140_extraEdges_).length>0&&!G.JSC$10127_loader_.supportsExtraEdges)throw Error("yd");
G.JSC$10127_loader_.JSC$11119_loadModules(I.ids$jscomp$37,G.JSC$11140_moduleInfoMap_,{extraEdges:G.JSC$11140_extraEdges_,onError:function(h,q){var l=Enb[I.attempt$jscomp$6++];l!==void 0?setTimeout(function(){(0,I.load$jscomp$1)()},l):(G.unsetModulesAsLoading.apply(G,_.Nz(I.ids$jscomp$37)),(0,I.finishLoad)(),I.ids$jscomp$37.forEach(function(V){V=G.getModuleInfo(V);
if(!V.isLoaded())V.onError(new uX.ModuleLoadFailure(uX.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,h,I.ids$jscomp$37,q))}))}})}}(b),(0,b.load$jscomp$1)())},XyB=function(G,b,I,h,q){h=h===void 0?function(){return!0}:h;
q=q===void 0?{}:q;b=_.e(b);for(var l=b.next();!l.done;l=b.next()){l=l.value;var V=G.getModuleInfo(l);!q[l]&&h(V)&&(q[l]=!0,XyB(G,V.deps_||[],I,h,q),I(V))}};var G8J=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var q4X=Symbol("Bd");window.JSCompiler_renameProperty=function(G){return G};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var bnb=!G8J||HTMLElement.es5Shimmed||_.hd.Reflect===void 0||_.hd.customElements===void 0||_.hd.customElements.polyfillWrapFlushCallback||!1,Idb,CcO=function(){var G=HTMLElement;if(bnb)return G;if(Idb!==void 0)return Idb;var b=_.hd.Reflect,I=function(){return b.construct(G,[],this.constructor)};
I.prototype=G.prototype;I.prototype.constructor=I;I.es5Shimmed=!0;Object.setPrototypeOf(I,G);return Idb=I},hrb=!1;bnb||hrb||(hrb=!0,_.hd.HTMLElement=CcO());/*

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 VN2=/(url\()([^)]*)(\))/g,mAp=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,eQu,TX;var $V=!window.ShadyDOM||!window.ShadyDOM.inUse,qhO=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),j9n=!window.customElements.polyfillWrapFlushCallback,ldA;if(ldA=$V&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var m5i=new CSSStyleSheet;m5i.replaceSync("");var ere=document.createElement("div");ere.attachShadow({mode:"open"});ere.shadowRoot.adoptedStyleSheets=[m5i];ldA=ere.shadowRoot.adoptedStyleSheets[0]===m5i}catch(G){ldA=!1}
var VHn=ldA,D5B=window.Polymer&&window.Polymer.rootPath||cxB(document.baseURI||window.location.href),ra=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,BPp=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,hb=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,cIi=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Xp=window.Polymer&&window.Polymer.legacyOptimizations||!1,IL=window.Polymer&&window.Polymer.legacyWarnings||!1,k88=window.Polymer&&window.Polymer.syncInitialRender||
!1,Hw=window.Polymer&&window.Polymer.legacyUndefined||!1,vyW=window.Polymer&&window.Polymer.orderedComputed||!1,Xz=window.Polymer&&window.Polymer.removeNestedTemplates||!1,GS=window.Polymer&&window.Polymer.fastDomIf||!1,bY=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,LNn=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Q9A=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Iz={},x5z={},a1=function(){return HTMLElement.apply(this,arguments)||this};
_.M(a1,HTMLElement);a1.import=function(G,b){return G?(G=Iz[G]||x5z[G.toLowerCase()])&&b?G.querySelector(b):G:null};
a1.prototype.attributeChangedCallback=function(G,b,I){b!==I&&this.register()};
a1.prototype.register=function(G){if(G=G||this.id){if(hb&&(Iz[G]||x5z[G.toLowerCase()])!==void 0)throw Iz[G]=x5z[G.toLowerCase()]=null,Error("Cd`"+G);this.id=G;Iz[G]=x5z[G.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.kV.Object.defineProperties(a1.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var G=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;G=_.Bw(this.getAttribute("assetpath")||"",G.baseURI);this.__assetpath=cxB(G)}return this.__assetpath}}});
_.kV.Object.defineProperties(a1,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
a1["import"]=a1.import;a1.prototype.modules=Iz;customElements.define("dom-module",a1);var fdA=0,vgj=0,Uz=[],T8J=0,kIO=!1,B88=document.createTextNode(""),U5X,wa;(new window.MutationObserver(Las)).observe(B88,{characterData:!0});_.hw={after:function(G){return{run:function(b){return window.setTimeout(b,G)},
cancel:function(b){window.clearTimeout(b)}}},
run:function(G,b){return window.setTimeout(G,b)},
cancel:function(G){window.clearTimeout(G)}};
_.kQ={run:function(G){return window.requestAnimationFrame(G)},
cancel:function(G){window.cancelAnimationFrame(G)}};
U5X={run:function(G){return window.requestIdleCallback?window.requestIdleCallback(G):window.setTimeout(G,16)},
cancel:function(G){window.cancelIdleCallback?window.cancelIdleCallback(G):window.clearTimeout(G)}};
wa={run:function(G){kIO||(kIO=!0,B88.textContent=T8J++);Uz.push(G);return fdA++},
cancel:function(G){var b=G-vgj;if(b>=0){if(!Uz[b])throw Error("Dd`"+G);Uz[b]=null}}};var s9n=0,qH=function(G){var b=G.__mixinApplications;b||(b=new WeakMap,G.__mixinApplications=b);var I=s9n++;return function(h){var q=h.__mixinSet;if(q&&q[I])return h;var l=b,V=l.get(h);V||(V=G(h),l.set(h,V),h=Object.create(V.__mixinSet||q||null),h[I]=!0,V.__mixinSet=h);return V}};_.yF=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(G){return ShadyDOM.patch(G)}:function(G){return G};var gye=qH(function(G){var b=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};
_.M(b,G);b.createProperties=function(I){var h=this.prototype,q;for(q in I)q in h||h._createPropertyAccessor(q)};
b.attributeNameForProperty=function(I){return I.toLowerCase()};
b.typeForProperty=function(){};
b.prototype._createPropertyAccessor=function(I,h){this._addPropertyToAttributeMap(I);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[I]||(this.__dataHasAccessor[I]=!0,this._definePropertyAccessor(I,h))};
b.prototype._addPropertyToAttributeMap=function(I){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var h=this.__dataAttributes[I];h||(h=this.constructor.attributeNameForProperty(I),this.__dataAttributes[h]=I);return h};
b.prototype._definePropertyAccessor=function(I,h){Object.defineProperty(this,I,{get:function(){return this.__data[I]},
set:h?function(){}:function(q){this._setPendingProperty(I,q,!0)&&this._invalidateProperties()}})};
b.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
b.prototype._initializeProperties=function(){for(var I in this.__dataHasAccessor)this.hasOwnProperty(I)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[I]=this[I],delete this[I])};
b.prototype._initializeInstanceProperties=function(I){Object.assign(this,I)};
b.prototype._setProperty=function(I,h){this._setPendingProperty(I,h)&&this._invalidateProperties()};
b.prototype._getProperty=function(I){return this.__data[I]};
b.prototype._setPendingProperty=function(I,h){var q=this.__data[I],l=this._shouldPropertyChange(I,h,q);l&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||I in this.__dataOld||(this.__dataOld[I]=q),this.__data[I]=h,this.__dataPending[I]=h);return l};
b.prototype._isPropertyPending=function(I){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(I))};
b.prototype._invalidateProperties=function(){var I=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,wa.run(function(){I.__dataInvalid&&(I.__dataInvalid=!1,I._flushProperties())}))};
b.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
b.prototype._flushProperties=function(){this.__dataCounter++;var I=this.__data,h=this.__dataPending,q=this.__dataOld;this._shouldPropertiesChange(I,h,q)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(I,h,q));this.__dataCounter--};
b.prototype._shouldPropertiesChange=function(I,h){return!!h};
b.prototype._propertiesChanged=function(){};
b.prototype._shouldPropertyChange=function(I,h,q){return q!==h&&(q===q||h===h)};
b.prototype.attributeChangedCallback=function(I,h,q,l){h!==q&&this._attributeToProperty(I,q);G.prototype.attributeChangedCallback&&G.prototype.attributeChangedCallback.call(this,I,h,q,l)};
b.prototype._attributeToProperty=function(I,h,q){if(!this.__serializing){var l=this.__dataAttributes;I=l&&l[I]||I;this[I]=this._deserializeValue(h,q||this.constructor.typeForProperty(I))}};
b.prototype._propertyToAttribute=function(I,h,q){this.__serializing=!0;q=arguments.length<3?this[I]:q;this._valueToNodeAttribute(this,q,h||this.constructor.attributeNameForProperty(I));this.__serializing=!1};
b.prototype._valueToNodeAttribute=function(I,h,q){h=this._serializeValue(h);if(q==="class"||q==="name"||q==="slot")I=(0,_.yF)(I);h===void 0?I.removeAttribute(q):I.setAttribute(q,h===""&&window.trustedTypes?window.trustedTypes.emptyScript:h)};
b.prototype._serializeValue=function(I){switch(typeof I){case "boolean":return I?"":void 0;default:return I!=null?I.toString():void 0}};
b.prototype._deserializeValue=function(I,h){switch(h){case Boolean:return I!==null;case Number:return Number(I);default:return I}};
return b});var AIW=0,QG2=[];var MHX=qH(function(G){function b(l){l=Object.getPrototypeOf(l);return l.prototype instanceof q?l:null}
function I(l){if(!l.hasOwnProperty("__ownProperties")){var V=null;if(l.hasOwnProperty("properties")){var D=l.properties;if(D){V={};for(var k in D){var L=D[k];V[k]=typeof L==="function"?{type:L}:L}}}l.__ownProperties=V}return l.__ownProperties}
var h=gye(G),q=function(){return h.apply(this,arguments)||this};
_.M(q,h);q.finalize=function(){if(!this.hasOwnProperty("__finalized")){var l=b(this);l&&l.finalize();this.__finalized=!0;this._finalizeClass()}};
q._finalizeClass=function(){var l=I(this);l&&this.createProperties(l)};
q.typeForProperty=function(l){return(l=this._properties[l])&&l.type};
q.prototype._initializeProperties=function(){AIW++;this.constructor.finalize();h.prototype._initializeProperties.call(this)};
q.prototype.connectedCallback=function(){h.prototype.connectedCallback&&h.prototype.connectedCallback.call(this);this._enableProperties()};
q.prototype.disconnectedCallback=function(){h.prototype.disconnectedCallback&&h.prototype.disconnectedCallback.call(this)};
_.kV.Object.defineProperties(q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var l=this;if(!this.hasOwnProperty("__observedAttributes")){xAd(this.prototype);var V=this._properties;this.__observedAttributes=V?Object.keys(V).map(function(D){return l.prototype._addPropertyToAttributeMap(D)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var l=b(this);this.__properties=Object.assign({},l&&l._properties,I(this))}return this.__properties}}});
return q});var fAO={},Tcd=/-[a-z]/g,Bcr=/([A-Z])/g;for(var Zn8={},tHJ=HTMLElement.prototype;tHJ;){for(var zrJ=Object.getOwnPropertyNames(tHJ),oyJ=0;oyJ<zrJ.length;oyJ++)Zn8[zrJ[oyJ]]=!0;tHJ=Object.getPrototypeOf(tHJ)}var inu=window.trustedTypes?function(G){return trustedTypes.isHTML(G)||trustedTypes.isScript(G)||trustedTypes.isScriptURL(G)}:function(){return!1},PHi=qH(function(G){var b=gye(G);
G=function(){return b.apply(this,arguments)||this};
_.M(G,b);G.createPropertiesForAttributes=function(){for(var I=this.observedAttributes,h=0;h<I.length;h++)this.prototype._createPropertyAccessor(sz(I[h]))};
G.attributeNameForProperty=function(I){return AU(I)};
G.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);b.prototype._initializeProperties.call(this)};
G.prototype._initializeProtoProperties=function(I){for(var h in I)this._setProperty(h,I[h])};
G.prototype._ensureAttribute=function(I,h){this.hasAttribute(I)||this._valueToNodeAttribute(this,h,I)};
G.prototype._serializeValue=function(I){switch(typeof I){case "object":if(I instanceof Date)return I.toString();if(I){if(inu(I))return I;try{return JSON.stringify(I)}catch(h){return""}}default:return b.prototype._serializeValue.call(this,I)}};
G.prototype._deserializeValue=function(I,h){switch(h){case Object:try{var q=JSON.parse(I)}catch(l){q=I}break;case Array:try{q=JSON.parse(I)}catch(l){q=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+I)}break;case Date:q=isNaN(I)?String(I):Number(I);q=new Date(q);break;default:q=b.prototype._deserializeValue.call(this,I,h)}return q};
G.prototype._definePropertyAccessor=function(I,h){if(!Zn8[I]){var q=this[I];q!==void 0&&(this.__data?this._setPendingProperty(I,q):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[I]=q))}b.prototype._definePropertyAccessor.call(this,I,h)};
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 d5u={"dom-if":!0,"dom-repeat":!0},yIz=!1,rIe=!1,FNn=function(){var G=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(b){return b}});
return function(b,I,h){I=I.getAttribute(h);G&&h.startsWith("on-")?b.setAttribute(h,G.createScript(I,h)):b.setAttribute(h,I)}}(),Hnz=qH(function(G){var b=function(){return G.apply(this,arguments)||this};
_.M(b,G);b._parseTemplate=function(I,h){if(!I._templateInfo){var q=I._templateInfo={};q.nodeInfoList=[];q.nestedTemplate=!!h;q.stripWhiteSpace=h&&h.stripWhiteSpace||I.hasAttribute&&I.hasAttribute("strip-whitespace");this._parseTemplateContent(I,q,{parent:null})}return I._templateInfo};
b._parseTemplateContent=function(I,h,q){return this._parseTemplateNode(I.content,h,q)};
b._parseTemplateNode=function(I,h,q){var l=!1;I.localName!="template"||I.hasAttribute("preserve-content")?I.localName==="slot"&&(h.hasInsertionPoint=!0):l=this._parseTemplateNestedTemplate(I,h,q)||l;if(!yIz){yIz=!0;var V=document.createElement("textarea");V.placeholder="a";rIe=V.placeholder===V.textContent}rIe&&I.localName==="textarea"&&I.placeholder&&I.placeholder===I.textContent&&(I.textContent=null);I.firstChild&&this._parseTemplateChildNodes(I,h,q);I.hasAttributes&&I.hasAttributes()&&(l=this._parseTemplateNodeAttributes(I,
h,q)||l);return l||q.noted};
b._parseTemplateChildNodes=function(I,h,q){if(I.localName!=="script"&&I.localName!=="style")for(var l=I.firstChild,V=0,D;l;l=D){if(l.localName=="template"){var k=l.getAttribute("is");if(k&&d5u[k])for(D=l,D.removeAttribute("is"),l=D.ownerDocument.createElement(k),D.parentNode.replaceChild(l,D),l.appendChild(D);D.attributes.length;)k=D.attributes[0].name,FNn(l,D,k),D.removeAttribute(k)}D=l.nextSibling;if(l.nodeType===Node.TEXT_NODE){for(k=D;k&&k.nodeType===Node.TEXT_NODE;)l.textContent+=k.textContent,
D=k.nextSibling,I.removeChild(k),k=D;if(h.stripWhiteSpace&&!l.textContent.trim()){I.removeChild(l);continue}}k={parentIndex:V,parentInfo:q};this._parseTemplateNode(l,h,k)&&(k.infoIndex=h.nodeInfoList.push(k)-1);l.parentNode&&V++}};
b._parseTemplateNestedTemplate=function(I,h,q){h=this._parseTemplate(I,h);(h.content=I.content.ownerDocument.createDocumentFragment()).appendChild(I.content);q.templateInfo=h;return!0};
b._parseTemplateNodeAttributes=function(I,h,q){for(var l=!1,V=Array.from(I.attributes),D=V.length-1,k;k=V[D];D--)l=this._parseTemplateNodeAttribute(I,h,q,k.name,k.value)||l;return l};
b._parseTemplateNodeAttribute=function(I,h,q,l,V){return l.slice(0,3)==="on-"?(I.removeAttribute(l),q.events=q.events||[],q.events.push({name:l.slice(3),value:V}),!0):l==="id"?(q.id=V,!0):!1};
b._contentForTemplate=function(I){var h=I._templateInfo;return h&&h.content||I.content};
b.prototype._stampTemplate=function(I,h){I&&!I.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(I);h=h||this.constructor._parseTemplate(I);var q=h.nodeInfoList;I=document.importNode(h.content||I.content,!0);I.__noInsertionPoint=!h.hasInsertionPoint;var l=I.nodeList=Array(q.length);I.$={};for(var V=0,D=q.length,k=void 0;V<D&&(k=q[V]);V++){var L=l[V]=UAO(I,k);k.id&&(I.$[k.id]=L);var x=L,f=k,T=h;f.templateInfo&&(x._templateInfo=f.templateInfo,x._parentTemplateInfo=
T);if(k.events&&k.events.length)for(x=0,f=k.events,T=void 0;x<f.length&&(T=f[x]);x++)this._addMethodEventListenerToNode(L,T.name,T.value,this)}return I};
b.prototype._addMethodEventListenerToNode=function(I,h,q,l){q=sGd(l||I,q);this._addEventListenerToNode(I,h,q);return q};
b.prototype._addEventListenerToNode=function(I,h,q){I.addEventListener(h,q)};
b.prototype._removeEventListenerFromNode=function(I,h,q){I.removeEventListener(h,q)};
return b});var Pw=0,Fp=[],WNB={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ade=/[A-Z]/,N8X=function(G,b,I,h,q){var l=q?Z8(G):G;if(b=b[l])for(l=0;l<b.length;l++){var V=b[l];if(V.info.lastRun!==Pw&&(!q||zQp(G,V.trigger))){V.info.lastRun=Pw;V=V.info;for(var D=I,k=h,L=0,x=D.length-1,f=-1;L<=x;){var T=L+x>>1,B=k.get(D[T].methodInfo)-k.get(V.methodInfo);if(B<0)L=T+1;else if(B>0)x=T-1;else{f=T;break}}f<
0&&(f=x+1);D.splice(f,0,V)}}},Kaa=[],Yh8=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"),lY=qH(function(G){var b=Hnz(PHi(G));
G=function(){var I=b.call(this)||this;I.__isPropertyEffectsClient=!0;return I};
_.M(G,b);G.prototype._initializeProperties=function(){b.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(jM.length){var I=jM[jM.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 h=this.__readOnly,q;for(q in I)h&&h[q]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[q]=this.__dataPending[q]=I[q])};
G.prototype._addPropertyEffect=function(I,h,q){this._createPropertyAccessor(I,h=="__readOnly");var l=tNu(this,h,!0)[I];l||(l=this[h][I]=[]);l.push(q)};
G.prototype._removePropertyEffect=function(I,h,q){I=tNu(this,h,!0)[I];q=I.indexOf(q);q>=0&&I.splice(q,1)};
G.prototype._hasPropertyEffect=function(I,h){h=this[h];return!(!h||!h[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,h,q,l){if(l||Z8(Array.isArray(I)?I[0]:I)!==I){if(!l&&(l=ix(this,I),I=ZcX(this,I,h),!I||!b.prototype._shouldPropertyChange.call(this,I,h,l)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(I,h,q)){if(q=this.__dataLinkedPaths)for(var V in q)l=q[V],tU(V,I)?(l=zX(V,l,I),this._setPendingPropertyOrPath(l,h,!0,!0)):tU(l,I)&&(l=zX(l,V,I),this._setPendingPropertyOrPath(l,h,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[I])return this._setPendingProperty(I,
h,q);this[I]=h}return!1};
G.prototype._setUnmanagedPropertyToNode=function(I,h,q){if(q!==I[h]||typeof q=="object")h==="className"&&(I=(0,_.yF)(I)),I[h]=q};
G.prototype._setPendingProperty=function(I,h,q){var l=this.__dataHasPaths&&My(I);if(this._shouldPropertyChange(I,h,(l?this.__dataTemp:this.__data)[I])){this.__dataPending||(this.__dataPending={},this.__dataOld={});I in this.__dataOld||(this.__dataOld[I]=this.__data[I]);l?this.__dataTemp[I]=h:this.__data[I]=h;this.__dataPending[I]=h;if(l||this.__notifyEffects&&this.__notifyEffects[I])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[I]=q;return!0}return!1};
G.prototype._setProperty=function(I,h){this._setPendingProperty(I,h,!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 h=0;h<I.length;h++){var q=I[h];q.__dataEnabled?q.__dataPending&&q._flushProperties():q._enableProperties()}}};
G.prototype._readyClients=function(){this.__enableOrFlushClients()};
G.prototype.setProperties=function(I,h){for(var q in I)!h&&this.__readOnly&&this.__readOnly[q]||this._setPendingPropertyOrPath(q,I[q],!0);this._invalidateProperties()};
G.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
G.prototype._propertiesChanged=function(I,h,q){I=this.__dataHasPaths;this.__dataHasPaths=!1;var l;if(l=this.__computeEffects)if(vyW){Pw++;var V=rxa(this),D=[],k;for(k in h)N8X(k,l,D,V,I);for(;k=D.shift();)HcO(this,"",h,q,k)&&N8X(k.methodInfo,l,D,V,I);Object.assign(q,this.__dataOld);Object.assign(h,this.__dataPending);this.__dataPending=null}else for(V=h;da(this,l,V,q,I);)Object.assign(q,this.__dataOld),Object.assign(h,this.__dataPending),V=this.__dataPending,this.__dataPending=null;l=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(h,q,I);this._flushClients();da(this,this.__reflectEffects,h,q,I);da(this,this.__observeEffects,h,q,I);if(l){V=this.__notifyEffects;D=Pw++;for(var L in l)if(l[L]){if(k=V){var x=V;k=D;var f=L,T=h,B=q,A=I,t=!1,y=A?Z8(f):f;if(x=x[y]){y=0;for(var F=x.length,W=void 0;y<F&&(W=x[y]);y++)W.info&&W.info.lastRun===k||A&&!zQp(f,W.trigger)||(W.info&&(W.info.lastRun=k),W.fn(this,f,T,B,W.info,A,void 0),t=!0)}k=t}if(k)var O=!0;else{if(k=I)k=L,f=h,T=Z8(k),T!==
k?(T=AU(T)+"-changed",icX(this,T,f[k],k),k=!0):k=!1;k&&(O=!0)}}var K;O&&(K=this.__dataHost)&&K._invalidateProperties&&K._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
G.prototype._propagatePropertyChanges=function(I,h,q){this.__propagateEffects&&da(this,this.__propagateEffects,I,h,q);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,I,h,q)};
G.prototype._runEffectsForTemplate=function(I,h,q,l){var V=this,D=function(k,L){da(V,I.propertyEffects,k,q,L,I.nodeList);for(var x=I.firstChild;x;x=x.nextSibling)V._runEffectsForTemplate(x,k,q,L)};
I.runEffects?I.runEffects(D,h,l):D(h,l)};
G.prototype.linkPaths=function(I,h){I=o1(I);h=o1(h);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[I]=h};
G.prototype.unlinkPaths=function(I){I=o1(I);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[I]};
G.prototype.notifySplices=function(I,h){var q={path:""};I=ix(this,I,q);Ocq(this,I,q.path,h)};
G.prototype.get=function(I,h){return ix(h||this,I)};
G.prototype.set=function(I,h,q){q?ZcX(q,I,h):this.__readOnly&&this.__readOnly[I]||this._setPendingPropertyOrPath(I,h,!0)&&this._invalidateProperties()};
G.prototype.push=function(I){var h=_.RI.apply(1,arguments),q={path:""},l=ix(this,I,q),V=l.length,D=l.push.apply(l,_.Nz(h));h.length&&Ww(this,l,q.path,V,h.length,[]);return D};
G.prototype.pop=function(I){var h={path:""};I=ix(this,I,h);var q=!!I.length,l=I.pop();q&&Ww(this,I,h.path,I.length,0,[l]);return l};
G.prototype.splice=function(I,h,q){var l=_.RI.apply(3,arguments),V={path:""},D=ix(this,I,V);h<0?h=D.length-Math.floor(-h):h&&(h=Math.floor(h));var k=arguments.length===2?D.splice(h):D.splice.apply(D,[h,q].concat(_.Nz(l)));(l.length||k.length)&&Ww(this,D,V.path,h,l.length,k);return k};
G.prototype.shift=function(I){var h={path:""};I=ix(this,I,h);var q=!!I.length,l=I.shift();q&&Ww(this,I,h.path,0,0,[l]);return l};
G.prototype.unshift=function(I){var h=_.RI.apply(1,arguments),q={path:""},l=ix(this,I,q),V=l.unshift.apply(l,_.Nz(h));h.length&&Ww(this,l,q.path,0,h.length,[]);return V};
G.prototype.notifyPath=function(I,h){if(arguments.length==1){var q={path:""};h=ix(this,I,q);q=q.path}else q=Array.isArray(I)?o1(I):I;this._setPendingPropertyOrPath(q,h,!0,!0)&&this._invalidateProperties()};
G.prototype._createReadOnlyProperty=function(I,h){this._addPropertyEffect(I,"__readOnly");h&&(this["_set"+(I[0].toUpperCase()+I.substring(1))]=function(q){this._setProperty(I,q)})};
G.prototype._createPropertyObserver=function(I,h,q){var l={property:I,method:h,dynamicFn:!!q};this._addPropertyEffect(I,"__observeEffects",{fn:oga,info:l,trigger:{name:I}});q&&this._addPropertyEffect(h,"__observeEffects",{fn:oga,info:l,trigger:{name:h}})};
G.prototype._createMethodObserver=function(I,h){var q=RQv(I);if(!q)throw Error("Ed`"+I);CPj(this,q,"__observeEffects",FaB,null,h)};
G.prototype._createNotifyingProperty=function(I){this._addPropertyEffect(I,"__notifyEffects",{fn:PPr,info:{eventName:AU(I)+"-changed",property:I}})};
G.prototype._createReflectedProperty=function(I){var h=this.constructor.attributeNameForProperty(I);h[0]==="-"?console.warn("Property "+I+" cannot be reflected to attribute "+h+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(I,"__reflectEffects",{fn:dAO,info:{attrName:h}})};
G.prototype._createComputedProperty=function(I,h,q){var l=RQv(h);if(!l)throw Error("Fd`"+h);h=CPj(this,l,"__computeEffects",HcO,I,q);tNu(this,"__computeInfo")[I]=h};
G.prototype._marshalArgs=function(I,h,q){for(var l=this.__data,V=[],D=0,k=I.length;D<k;D++){var L=I[D],x=L.name,f=L.structured,T=L.wildcard,B=L.value;L.literal||(T?(L=tU(x,h),f=ngO(l,q,L?h:x),B={path:L?h:x,value:f,base:L?ix(l,x):f}):B=f?ngO(l,q,x):l[x]);if(Hw&&!this._overrideLegacyUndefined&&B===void 0&&I.length>1)return Fp;V[D]=B}return V};
G.addPropertyEffect=function(I,h,q){this.prototype._addPropertyEffect(I,h,q)};
G.createPropertyObserver=function(I,h,q){this.prototype._createPropertyObserver(I,h,q)};
G.createMethodObserver=function(I,h){this.prototype._createMethodObserver(I,h)};
G.createNotifyingProperty=function(I){this.prototype._createNotifyingProperty(I)};
G.createReadOnlyProperty=function(I,h){this.prototype._createReadOnlyProperty(I,h)};
G.createReflectedProperty=function(I){this.prototype._createReflectedProperty(I)};
G.createComputedProperty=function(I,h,q){this.prototype._createComputedProperty(I,h,q)};
G.bindTemplate=function(I){return this.prototype._bindTemplate(I)};
G.prototype._bindTemplate=function(I,h){var q=this.constructor._parseTemplate(I),l=this.__preBoundTemplateInfo==q;if(!l)for(var V in q.propertyEffects)this._createPropertyAccessor(V);h?(q=Object.create(q),q.wasPreBound=l,this.__templateInfo?(I=I._parentTemplateInfo||this.__templateInfo,h=I.lastChild,q.parent=I,I.lastChild=q,(q.previousSibling=h)?h.nextSibling=q:I.firstChild=q):this.__templateInfo=q):this.__preBoundTemplateInfo=q;return q};
G._addTemplatePropertyEffect=function(I,h,q){(I.hostProps=I.hostProps||{})[h]=!0;I=I.propertyEffects=I.propertyEffects||{};(I[h]=I[h]||[]).push(q)};
G.prototype._stampTemplate=function(I,h){h=h||this._bindTemplate(I,!0);jM.push(this);I=b.prototype._stampTemplate.call(this,I,h);jM.pop();h.nodeList=I.nodeList;if(!h.wasPreBound)for(var q=h.childNodes=[],l=I.firstChild;l;l=l.nextSibling)q.push(l);I.templateInfo=h;q=h.nodeList;l=h.nodeInfoList;if(l.length)for(var V=0;V<l.length;V++){var D=q[V],k=l[V].bindings;if(k)for(var L=0;L<k.length;L++){var x=k[L],f=D,T=x;if(T.isCompound){for(var B=f.__dataCompoundStorage||(f.__dataCompoundStorage={}),A=T.parts,
t=Array(A.length),y=0;y<A.length;y++)t[y]=A[y].literal;A=T.target;B[A]=t;T.literal&&T.kind=="property"&&(A==="className"&&(f=(0,_.yF)(f)),f[A]=T.literal)}Y4O(D,this,x)}D.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(h,this.__data,null,!1),this._flushClients());return I};
G.prototype._removeBoundDom=function(I){I=I.templateInfo;var h=I.previousSibling,q=I.nextSibling,l=I.parent;h?h.nextSibling=q:l&&(l.firstChild=q);q?q.previousSibling=h:l&&(l.lastChild=h);I.nextSibling=I.previousSibling=null;I=I.childNodes;for(h=0;h<I.length;h++)q=I[h],(0,_.yF)((0,_.yF)(q).parentNode).removeChild(q)};
G._parseTemplateNode=function(I,h,q){var l=b._parseTemplateNode.call(this,I,h,q);if(I.nodeType===Node.TEXT_NODE){var V=this._parseBindings(I.textContent,h);V&&(I.textContent=Jxq(V)||" ",NcB(this,h,q,"text","textContent",V),l=!0)}return l};
G._parseTemplateNodeAttribute=function(I,h,q,l,V){var D=this._parseBindings(V,h);if(D){V=l;var k="property";ade.test(l)?k="attribute":l[l.length-1]=="$"&&(l=l.slice(0,-1),k="attribute");var L=Jxq(D);L&&k=="attribute"&&(l=="class"&&I.hasAttribute("class")&&(L+=" "+I.getAttribute(l)),I.setAttribute(l,L));k=="attribute"&&V=="disable-upgrade$"&&I.setAttribute(l,"");I.localName==="input"&&V==="value"&&I.setAttribute(V,"");I.removeAttribute(V);k==="property"&&(l=sz(l));NcB(this,h,q,k,l,D,L);return!0}return b._parseTemplateNodeAttribute.call(this,
I,h,q,l,V)};
G._parseTemplateNestedTemplate=function(I,h,q){var l=b._parseTemplateNestedTemplate.call(this,I,h,q),V=I.parentNode,D=q.templateInfo,k=V.localName==="dom-if",L=V.localName==="dom-repeat";Xz&&(k||L)&&(V.removeChild(I),q=q.parentInfo,q.templateInfo=D,q.noted=!0,l=!1);I=D.hostProps;if(GS&&k)I&&(h.hostProps=Object.assign(h.hostProps||{},I),Xz||(q.parentInfo.noted=!0));else for(var x in I)NcB(this,h,q,"property","_host_"+x,[{mode:"{",source:x,dependencies:[x],hostProp:!0}]);return l};
G._parseBindings=function(I,h){for(var q=[],l=0,V;(V=Yh8.exec(I))!==null;){V.index>l&&q.push({literal:I.slice(l,V.index)});l=V[1][0];var D=!!V[2];V=V[3].trim();var k=!1,L="",x=-1;l=="{"&&(x=V.indexOf("::"))>0&&(L=V.substring(x+2),V=V.substring(0,x),k=!0);x=RQv(V);var f=[];if(x){var T=x,B=T.args;T=T.methodName;for(var A=0;A<B.length;A++){var t=B[A];t.literal||f.push(t)}if((B=h.dynamicFns)&&B[T]||x.static)f.push(T),x.dynamicFn=!0}else f.push(V);q.push({source:V,mode:l,negate:D,customEvent:k,signature:x,
dependencies:f,event:L});l=Yh8.lastIndex}l&&l<I.length&&(I=I.substring(l))&&q.push({literal:I});return q.length?q:null};
G._evaluateBinding=function(I,h,q,l,V,D){I=h.signature?FaB(I,q,l,V,h.signature):q!=h.source?ix(I,h.source):D&&My(q)?ix(I,q):I.__data[q];h.negate&&(I=!I);return I};
_.kV.Object.defineProperties(G.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return WNB}}});
return G}),jM=[];var CHJ=window.ShadyCSS&&window.ShadyCSS.cssBuild,m8=qH(function(G){function b(h,q,l,V){if(!CHJ){for(var D=q.content.querySelectorAll("style"),k=S4O(q),L=XRp(l),x=q.content.firstElementChild,f=0;f<L.length;f++){var T=L[f];T.textContent=h._processStyleText(T.textContent,V);q.content.insertBefore(T,x)}for(x=L=0;x<k.length;x++)f=k[x],T=D[L],T!==f?(f=f.cloneNode(!0),T.parentNode.insertBefore(f,T)):L++,f.textContent=h._processStyleText(f.textContent,V)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(q,
l);if(Q9A&&CHJ&&VHn&&(q=q.content.querySelectorAll("style"))){var B="";Array.from(q).forEach(function(A){B+=A.textContent;A.parentNode.removeChild(A)});
h._styleSheet=new CSSStyleSheet;h._styleSheet.replaceSync(B)}}
var I=MHX(lY(G));G=function(){return I.call(this)||this};
_.M(G,I);G._finalizeClass=function(){I._finalizeClass.call(this);var h;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(h=this.__ownObservers)&&this.createObservers(h,this._properties);this._prepareTemplate()};
G._prepareTemplate=function(){var h=this.template;h&&(typeof h==="string"?(console.error("template getter must return HTMLTemplateElement"),h=null):Xp||(h=h.cloneNode(!0)));this.prototype._template=h};
G.createProperties=function(h){for(var q in h){var l=this.prototype,V=q,D=h[q],k=h;D.computed&&(D.readOnly=!0);D.computed&&(l._hasReadOnlyEffect(V)?console.warn("Cannot redefine computed property '"+V+"'."):l._createComputedProperty(V,D.computed,k));D.readOnly&&!l._hasReadOnlyEffect(V)?l._createReadOnlyProperty(V,!D.computed):D.readOnly===!1&&l._hasReadOnlyEffect(V)&&console.warn("Cannot make readOnly property '"+V+"' non-readOnly.");D.reflectToAttribute&&!l._hasReflectEffect(V)?l._createReflectedProperty(V):
D.reflectToAttribute===!1&&l._hasReflectEffect(V)&&console.warn("Cannot make reflected property '"+V+"' non-reflected.");D.notify&&!l._hasNotifyEffect(V)?l._createNotifyingProperty(V):D.notify===!1&&l._hasNotifyEffect(V)&&console.warn("Cannot make notify property '"+V+"' non-notify.");D.observer&&l._createPropertyObserver(V,D.observer,k[D.observer]);l._addPropertyToAttributeMap(V)}};
G.createObservers=function(h,q){for(var l=this.prototype,V=0;V<h.length;V++)l._createMethodObserver(h[V],q)};
G.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);I.prototype._initializeProperties.call(this);this.rootPath=D5B;this.importPath=this.constructor.importPath;var h=this.constructor;if(!h.hasOwnProperty("__propertyDefaults")){h.__propertyDefaults=null;var q=h._properties,l;for(l in q){var V=q[l];"value"in V&&(h.__propertyDefaults=h.__propertyDefaults||{},h.__propertyDefaults[l]=V)}}if(h=h.__propertyDefaults)for(var D in h)q=h[D],
this._canApplyPropertyDefault(D)&&(q=typeof q.value=="function"?q.value.call(this):q.value,this._hasAccessor(D)?this._setPendingProperty(D,q,!0):this[D]=q)};
G.prototype._canApplyPropertyDefault=function(h){return!this.hasOwnProperty(h)};
G._processStyleText=function(h,q){return DAr(h,q)};
G._finalizeTemplate=function(h){var q=this.prototype._template;if(q&&!q.__polymerFinalized){q.__polymerFinalized=!0;var l=this.importPath;l=l?_.Bw(l):"";b(this,q,h,l);this.prototype._bindTemplate(q)}};
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(h){var q=(0,_.yF)(this);if(q.attachShadow)return h?(q.shadowRoot||(q.attachShadow({mode:"open",shadyUpgradeFragment:h}),q.shadowRoot.appendChild(h),this.constructor._styleSheet&&(q.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),k88&&window.ShadyDOM&&window.ShadyDOM.flushInitial(q.shadowRoot),q.shadowRoot):null;throw Error("Hd");};
G.prototype.updateStyles=function(h){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,h)};
G.prototype.resolveUrl=function(h,q){!q&&this.importPath&&(q=_.Bw(this.importPath));return _.Bw(h,q)};
G._parseTemplateContent=function(h,q,l){q.dynamicFns=q.dynamicFns||this._properties;return I._parseTemplateContent.call(this,h,q,l)};
G._addTemplatePropertyEffect=function(h,q,l){!IL||q in this._properties||l.info.part.signature&&l.info.part.signature.static||l.info.part.hostProp||h.nestedTemplate||console.warn("Property '"+q+"' used in template but not declared in 'properties'; attribute will not be observed.");return I._addTemplatePropertyEffect.call(this,h,q,l)};
_.kV.Object.defineProperties(G,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var h=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof h==="function"&&(h=h());if(h===void 0){if(h=this.hasOwnProperty("is")){h=this.is;var q=null;if(h&&(!hb||cIi)&&(q=a1.import(h,"template"),hb&&!q))throw Error("Gd`"+h);h=q}h=h||Object.getPrototypeOf(this.prototype).constructor.template}this._template=h}return this._template},
set:function(h){this._template=h}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var h=this.importMeta;h?this._importPath=cxB(h.url):this._importPath=(h=a1.import(this.is))&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return G});var JIA=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(G){return G}}),jAp=function(G,b){KNQ(G,b);
this.value=b.reduce(function(I,h,q){return I+l_2(h)+G[q+1]},G[0]).toString()},KNQ;
jAp.prototype.toString=function(){return this.value};
_.uvW=function(G){var b=_.RI.apply(1,arguments);KNQ(G,b);var I=document.createElement("template");b=b.reduce(function(h,q,l){if(q instanceof HTMLTemplateElement)q=q.innerHTML;else if(q instanceof jAp)q=l_2(q);else throw Error("Jd`"+q);return h+q+G[l+1]},G[0]);
JIA&&(b=JIA.createHTML(b));I.innerHTML=b;return I};
KNQ=function(G,b){if(!Array.isArray(G)||!Array.isArray(G.raw)||b.length!==G.length-1)throw new TypeError("Kd");};var eM=m8(HTMLElement);var Rr5=qH(function(G){var b=m8(G);G=function(){var I=b.call(this)||this;I.__lastItems=null;I.__lastMulti=null;I.__selectedMap=null;return I};
_.M(G,b);G.prototype.__updateSelection=function(I,h){var q=h.path;q=="items"?(h=h.base||[],q=this.__lastItems,I!==this.__lastMulti&&this.clearSelection(),q&&(q=qEs(h,q),this.__applySplices(q)),this.__lastItems=h,this.__lastMulti=I):h.path=="items.splices"?this.__applySplices(h.value.indexSplices):(I=q.slice(6),h=parseInt(I,10),I.indexOf(".")<0&&I==h&&this.__deselectChangedIdx(h))};
G.prototype.__applySplices=function(I){for(var h=this,q=this.__selectedMap,l={},V=0;V<I.length;l={s$jscomp$109:void 0},V++){l.s$jscomp$109=I[V];q.forEach(function(x){return function(f,T){f<x.s$jscomp$109.index||(f>=x.s$jscomp$109.index+x.s$jscomp$109.removed.length?q.set(T,f+x.s$jscomp$109.addedCount-x.s$jscomp$109.removed.length):q.set(T,-1))}}(l));
for(var D=0;D<l.s$jscomp$109.addedCount;D++){var k=l.s$jscomp$109.index+D;q.has(this.items[k])&&q.set(this.items[k],k)}}this.__updateLinks();var L=0;q.forEach(function(x,f){x<0?(h.multi?h.splice("selected",L,1):h.selected=h.selectedItem=null,q.delete(f)):L++})};
G.prototype.__updateLinks=function(){var I=this;this.__dataLinkedPaths={};if(this.multi){var h=0;this.__selectedMap.forEach(function(q){q>=0&&I.linkPaths("items."+q,"selected."+h++)})}else this.__selectedMap.forEach(function(q){I.linkPaths("selected","items."+q);
I.linkPaths("selectedItem","items."+q)})};
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 h=this,q=this.__selectedIndexForItemIndex(I);if(q>=0){var l=0;this.__selectedMap.forEach(function(V,D){q==l++&&h.deselect(D)})}};
G.prototype.__selectedIndexForItemIndex=function(I){if(I=this.__dataLinkedPaths["items."+I])return parseInt(I.slice(9),10)};
G.prototype.deselect=function(I){var h=this.__selectedMap.get(I);if(h>=0){this.__selectedMap.delete(I);var q;this.multi&&(q=this.__selectedIndexForItemIndex(h));this.__updateLinks();this.multi?this.splice("selected",q,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 h=this.items[I];this.isSelected(h)?this.toggle&&this.deselectIndex(I):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(h,I),this.__updateLinks(),this.multi?this.push("selected",h):this.selected=this.selectedItem=h)};
_.kV.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}),nyu=Rr5(eM),V2=function(){return nyu.apply(this,arguments)||this};
_.M(V2,nyu);_.kV.Object.defineProperties(V2,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(V2.is,V2);var OnQ=window.Polymer;window.Polymer=function(G){return window.Polymer._polymerFn(G)};
OnQ&&Object.assign(Polymer,OnQ);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:DAr,resolveUrl:_.Bw,pathFromUrl:cxB};Polymer.DomModule=a1;Polymer.Async={timeOut:_.hw,animationFrame:_.kQ,idlePeriod:U5X,microTask:wa};Polymer.dedupingMixin=qH;Polymer.wrap=_.yF;Polymer.PropertiesChanged=gye;Polymer.telemetry={instanceCount:AIW,incrementInstanceCount:function(){AIW++},
registrations:QG2,register:xAd,dumpRegistrations:function(){QG2.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=MHX;Polymer.CaseMap={dashToCamelCase:sz,camelToDashCase:AU};Polymer.PropertyAccessors=PHi;Polymer.TemplateStamp=Hnz;Polymer.Path={isPath:My,root:Z8,isAncestor:ggr,isDescendant:tU,translate:zX,matches:Axv,normalize:o1,split:MNr,get:ix,set:ZcX,isDeep:My};Polymer.Settings={useShadow:$V,useNativeCSSProperties:qhO,useNativeCustomElements:j9n,get rootPath(){return D5B},setRootPath:function(G){D5B=G},
get sanitizeDOMValue(){return ra},setSanitizeDOMValue:function(G){ra=G},
get passiveTouchGestures(){return BPp},setPassiveTouchGestures:function(G){BPp=G},
get strictTemplatePolicy(){return hb},setStrictTemplatePolicy:function(G){hb=G},
get allowTemplateFromDomModule(){return cIi},setAllowTemplateFromDomModule:function(G){cIi=G},
get legacyOptimizations(){return Xp},setLegacyOptimizations:function(G){Xp=G},
get syncInitialRender(){return k88},setSyncInitialRender:function(G){k88=G},
get legacyUndefined(){return Hw},setLegacyUndefined:function(G){Hw=G},
get legacyWarnings(){return IL},setLegacyWarnings:function(G){IL=G},
get orderedComputed(){return vyW},setOrderedComputed:function(G){vyW=G},
get fastDomIf(){return GS},setFastDomIf:function(G){GS=G},
get removeNestedTemplates(){return Xz},setRemoveNestedTemplates:function(G){Xz=G},
get suppressTemplateNotifications(){return bY},setSuppressTemplateNotifications:bY};Polymer.rootPath!==void 0&&(D5B=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(ra=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(BPp=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(hb=Polymer.strictTemplatePolicy);cIi=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Xp=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(k88=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Hw=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(IL=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(vyW=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(GS=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Xz=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(bY=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return ra},
set:function(G){ra=G}});Polymer.PropertyEffects=lY;Polymer.StyleGather={stylesFromModules:pRO,stylesFromModule:Egq,stylesFromTemplate:S4O,stylesFromModuleImports:XRp,cssFromModules:GOq,cssFromModule:$_B,cssFromTemplate:bW2,cssFromModuleImports:function(G){return(G=a1.import(G))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G):""}};Polymer.ElementMixin=m8;Polymer.updateStyles=function(G){window.ShadyCSS&&window.ShadyCSS.styleDocument(G)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:qEs};Polymer.html=_.uvW;Polymer.htmlLiteral=function(G){return new jAp(G,_.RI.apply(1,arguments))};Polymer.Element=eM;Polymer.ArraySelectorMixin=Rr5;Polymer.ArraySelector=V2;var w5O=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Eyb=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Y52=/@media\s(.*)/;var D_j=null,Vfd=window.HTMLImports&&window.HTMLImports.whenReady||null,cku;var p5u=null,DQ=null,cn=function(){this.customStyles=[];this.enqueued=!1;kOr(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},ShB=function(G){!G.enqueued&&DQ&&(G.enqueued=!0,kOr(DQ))};
cn.prototype.addCustomStyle=function(G){G.__seenByShadyCSS||(G.__seenByShadyCSS=!0,this.customStyles.push(G),ShB(this))};
cn.prototype.getStyleForCustomStyle=function(G){if(G.__shadyCSSCachedStyle)return G.__shadyCSSCachedStyle;var b;G.getStyle?b=G.getStyle():b=G;return b};
cn.prototype.processStyles=function(){for(var G=this.customStyles,b=0;b<G.length;b++){var I=G[b];if(!I.__shadyCSSCachedStyle){var h=this.getStyleForCustomStyle(I);h&&(h=h.__appliedElement||h,p5u&&p5u(h),I.__shadyCSSCachedStyle=h)}}return G};
cn.prototype.addCustomStyle=cn.prototype.addCustomStyle;cn.prototype.getStyleForCustomStyle=cn.prototype.getStyleForCustomStyle;cn.prototype.processStyles=cn.prototype.processStyles;Object.defineProperties(cn.prototype,{transformCallback:{get:function(){return p5u},
set:function(G){p5u=G}},
validateCallback:{get:function(){return DQ},
set:function(G){var b=!1;DQ||(b=!0);DQ=G;b&&ShB(this)}}});var Lbj=!(window.ShadyDOM&&window.ShadyDOM.inUse),vxs,ch;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(ch=window.ShadyCSS.cssBuild);var X5J=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?vxs=window.ShadyCSS.nativeCss:window.ShadyCSS?(QAv(window.ShadyCSS),window.ShadyCSS=void 0):QAv(window.WebComponents&&window.WebComponents.flags);var WIB=vxs;var $oQ=new cn;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(G,b){$oQ.processStyles();m_d(G,b)},
styleElement:function(){$oQ.processStyles()},
styleDocument:function(G){$oQ.processStyles();m_d(document.body,G)},
getComputedStyleValue:function(G,b){return ezj(G,b)},
flushCustomStyles:function(){},
nativeCss:WIB,nativeShadow:Lbj,cssBuild:ch,disableRuntime:X5J});window.ShadyCSS.CustomStyleInterface=$oQ;var G3n=window.ShadyCSS.CustomStyleInterface,kj=function(){var G=HTMLElement.call(this)||this;G._style=null;G3n.addCustomStyle(G);return G};
_.M(kj,HTMLElement);kj.prototype.getStyle=function(){if(this._style)return this._style;var G=this.querySelector("style");if(!G)return null;this._style=G;var b=G.getAttribute("include");b&&(G.removeAttribute("include"),G.textContent=GOq(b)+G.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
kj.prototype.getStyle=kj.prototype.getStyle;window.customElements.define("custom-style",kj);Polymer.CustomStyle=kj;var vn=function(){this._timer=this._callback=this._asyncModule=null},LF,Im8;
vn.prototype.setConfig=function(G,b){var I=this;this._asyncModule=G;this._callback=b;this._timer=this._asyncModule.run(function(){I._timer=null;LF.delete(I);I._callback()})};
vn.prototype.cancel=function(){this.isActive()&&(bGn(this),LF.delete(this))};
var bGn=function(G){G.isActive()&&(G._asyncModule.cancel(G._timer),G._timer=null)};
vn.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
vn.prototype.isActive=function(){return this._timer!=null};
_.Q2=function(G,b,I){G instanceof vn?bGn(G):G=new vn;G.setConfig(b,I);return G};
LF=new Set;_.xj=function(G){LF.add(G)};
Im8=function(){var G=!!LF.size;LF.forEach(function(b){try{b.flush()}catch(I){setTimeout(function(){throw I;})}});
return G};var f_s=typeof document.head.style.touchAction==="string",x_O=["mousedown","mousemove","mouseup","click"],tfr=[0,1,4,2],hcA;try{hcA=(new MouseEvent("test",{buttons:1})).buttons===1}catch(G){hcA=!1}var ZWp=hcA,TPv=!1;(function(){try{var G=Object.defineProperty({},"passive",{get:function(){TPv=!0}});
window.addEventListener("test",null,G);window.removeEventListener("test",null,G)}catch(b){}})();
var sAr=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),gxO=[],q0A={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},NPa={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},AkB=function(G){var b=G.sourceCapabilities;if(!b||b.firesTouchEvents)if(G.__polymerGesturesHandled={skip:!0},G.type==="click"){b=!1;for(var I=PXj(G),h=0;h<I.length;h++){if(I[h].nodeType===Node.ELEMENT_NODE)if(I[h].localName==="label")gxO.push(I[h]);
else if(q0A[I[h].localName]){var q=I[h];var l=Array.prototype.slice.call(q.labels||[]);if(!l.length){l=[];try{var V=q.getRootNode();if(q.id){var D=V.querySelectorAll("label[for = '"+q.id+"']");for(q=0;q<D.length;q++)l.push(D[q])}}catch(k){}}for(q=0;q<l.length;q++)b=b||gxO.indexOf(l[q])>-1}if(I[h]===jMJ)return}b||(G.preventDefault(),G.stopPropagation())}},jMJ=null,fF=null,ykX=0,rku=0,d_B=-1,Fbq=!1;
document.addEventListener("touchend",function(G){fF||Mfr(!0);jMJ=PXj(G)[0];fF=_.Q2(fF,_.hw.after(2500),function(){Mfr();fF=jMJ=null})},TPv?{passive:!0}:!1);
var PXj=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(G){return G.composedPath&&G.composedPath()||[]},ux={},JU=[];
HWO({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){C8(this.info)},
mousedown:function(G){if(YG(G)){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),I=this;oxO(this.info,function(h){YG(h)||(Ez("up",b,h),C8(I.info))},function(h){YG(h)&&Ez("up",b,h);
C8(I.info)});
Ez("down",b,G)}},
touchstart:function(G){Ez("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),G.changedTouches[0],G)},
touchend:function(G){Ez("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),G.changedTouches[0],G)}});
HWO({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;C8(this.info)},
mousedown:function(G){if(YG(G)){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),I=this,h=function(q){var l=q.clientX,V=q.clientY;WbB(I.info,l,V)&&(I.info.state=I.info.started?q.type==="mouseup"?"end":"track":"start",I.info.state==="start"&&K8("tap"),I.info.addMove({x:l,y:V}),YG(q)||(I.info.state="end",C8(I.info)),b&&a_u(I.info,b,q),I.info.started=!0)};
oxO(this.info,h,function(q){I.info.started&&h(q);C8(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 b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G=G.changedTouches[0];var I=G.clientX,h=G.clientY;WbB(this.info,I,h)&&(this.info.state==="start"&&K8("tap"),this.info.addMove({x:I,y:h}),a_u(this.info,b,G),this.info.state="track",this.info.started=!0)},
touchend:function(G){var b=_._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}),a_u(this.info,b,G))}});
HWO({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){YG(G)&&(this.info.x=G.clientX,this.info.y=G.clientY)},
click:function(G){YG(G)&&YEu(this.info,G)},
touchstart:function(G){G=G.changedTouches[0];this.info.x=G.clientX;this.info.y=G.clientY},
touchend:function(G){YEu(this.info,G.changedTouches[0],G)}});var lmB=qH(function(G){var b=function(){return G.apply(this,arguments)||this};
_.M(b,G);b.prototype._addEventListenerToNode=function(I,h,q){R1(I,h,q)||G.prototype._addEventListenerToNode.call(this,I,h,q)};
b.prototype._removeEventListenerFromNode=function(I,h,q){n8(I,h,q)||G.prototype._removeEventListenerFromNode.call(this,I,h,q)};
return b});var TS=qH(function(G){var b=function(){return G.apply(this,arguments)||this};
_.M(b,G);b.prototype._shouldPropertyChange=function(I,h,q){return CXO(this,I,h,q,!0)};
return b}),mon=qH(function(G){var b=function(){return G.apply(this,arguments)||this};
_.M(b,G);b.prototype._shouldPropertyChange=function(I,h,q){return CXO(this,I,h,q,this.mutableData)};
_.kV.Object.defineProperties(b,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return b});
TS._mutablePropertyChange=CXO;var JkO=!1;var eci=lmB(mon(lY(HTMLElement))),Bn=function(){var G=eci.call(this)||this;if(hb)throw Error("Md");G.root=null;G.$=null;G.__children=null;return G};
_.M(Bn,eci);_.m=Bn.prototype;_.m.attributeChangedCallback=function(){this.mutableData=!0};
_.m.connectedCallback=function(){Kbj()||(this.style.display="none");this.render()};
_.m.disconnectedCallback=function(){this.__removeChildren()};
_.m.__insertChildren=function(){(0,_.yF)((0,_.yF)(this).parentNode).insertBefore(this.root,this)};
_.m.__removeChildren=function(){if(this.__children)for(var G=0;G<this.__children.length;G++)this.root.appendChild(this.__children[G])};
_.m.render=function(){var G=this;if(!this.__children){var b=b||this.querySelector("template");if(!b){var I=new MutationObserver(function(){if(b=G.querySelector("template"))I.disconnect(),G.render();else throw Error("Nd");});
I.observe(this,{childList:!0});return}this.root=this._stampTemplate(b);this.$=this.root.$;this.__children=[];for(var h=this.root.firstChild;h;h=h.nextSibling)this.__children[this.__children.length]=h;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.kV.Object.defineProperties(Bn,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Bn);Polymer.Debouncer=vn;Polymer.Gestures={gestures:ux,recognizers:JU,deepTargetFind:iWp,addListener:R1,removeListener:n8,register:HWO,setTouchAction:_.Oz,prevent:K8,resetMouseCanceller:function(){fF&&fF.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:R1,remove:n8};Polymer.GestureEventListeners=lmB;Polymer.MutableData=TS;Polymer.OptionalMutableData=mon;Polymer.DomBind=Bn;_.Uc=function(){do{var G=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var b=Im8()}while(G||b)};var uEj=null;Rzj.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Rzj,writable:!0}});var $Cd=lY(Rzj),XPd=TS($Cd),VAO=lY(function(){}),Gb=function(G){var b=VAO.call(this)||this;
b._configureProperties(G);b.root=b._stampTemplate(b.__dataHost);var I=[];b.children=I;for(var h=b.root.firstChild;h;h=h.nextSibling)I.push(h),h.__templatizeInstance=b;b.__templatizeOwner&&b.__templatizeOwner.__hideTemplateChildren__&&b._showHideChildren(!0);I=b.__templatizeOptions;(G&&I.instanceProps||!I.instanceProps)&&b._enableProperties();return b};
_.M(Gb,VAO);_.m=Gb.prototype;_.m._configureProperties=function(G){if(this.__templatizeOptions.forwardHostProp)for(var b in this.__hostProps)this._setPendingProperty(b,this.__dataHost["_host_"+b]);for(var I in G)this._setPendingProperty(I,G[I])};
_.m.forwardHostProp=function(G,b){this._setPendingPropertyOrPath(G,b,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.m._addEventListenerToNode=function(G,b,I){var h=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(G,b,function(l){l.model=h;I(l)});
else{var q=this.__dataHost.__dataHost;q&&q._addEventListenerToNode(G,b,I)}};
_.m._showHideChildren=function(G){OWO(G,this.children)};
_.m._setUnmanagedPropertyToNode=function(G,b,I){G.__hideTemplateChildren__&&G.nodeType==Node.TEXT_NODE&&b=="textContent"?G.__polymerTextContent__=I:VAO.prototype._setUnmanagedPropertyToNode.call(this,G,b,I)};
_.m.dispatchEvent=function(){return!0};
_.kV.Object.defineProperties(Gb.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var G=this.__parentModel;if(!G){var b;G=this;do G=G.__dataHost.__dataHost;while((b=G.__templatizeOptions)&&!b.parentModel);this.__parentModel=G}return G}}});
var Exd=TS(Gb);var sc=function(){var G=eM.call(this)||this;G.__renderDebouncer=null;G._lastIf=!1;G.__hideTemplateChildren__=!1;return G};
_.M(sc,eM);_.m=sc.prototype;_.m.__debounceRender=function(){var G=this;this.__renderDebouncer=_.Q2(this.__renderDebouncer,wa,function(){return G.__render()});
_.xj(this.__renderDebouncer)};
_.m.disconnectedCallback=function(){eM.prototype.disconnectedCallback.call(this);var G=(0,_.yF)(this).parentNode;G&&(G.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.yF)(G).host)||this.__teardownInstance()};
_.m.connectedCallback=function(){eM.prototype.connectedCallback.call(this);Kbj()||(this.style.display="none");this.if&&this.__debounceRender()};
_.m.__ensureTemplate=function(){var G=this;if(!this.__template){var b=this._templateInfo?this:(0,_.yF)(this).querySelector("template");if(!b){var I=new MutationObserver(function(){if((0,_.yF)(G).querySelector("template"))I.disconnect(),G.__render();else throw Error("Qd");});
I.observe(this,{childList:!0});return!1}this.__template=b}return!0};
_.m.__ensureInstance=function(){var G=(0,_.yF)(this).parentNode;if(this.__hasInstance()){var b=this.__getInstanceNodes();if(b&&b.length&&(0,_.yF)(this).previousSibling!==b[b.length-1])for(var I=0,h=void 0;I<b.length&&(h=b[I]);I++)(0,_.yF)(G).insertBefore(h,this)}else{if(!G||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(G)}return!0};
_.m.render=function(){_.Uc()};
_.m.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();bY&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.m.__hasInstance=function(){};
_.m.__getInstanceNodes=function(){};
_.m.__createAndInsertInstance=function(){};
_.m.__teardownInstance=function(){};
_.m._showHideChildren=function(){};
_.kV.Object.defineProperties(sc,{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:sc.prototype.__debounceRender},restamp:{type:Boolean,observer:sc.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Dob=function(){var G=sc.call(this)||this;G.__instance=null;G.__syncInfo=null;return G};
_.M(Dob,sc);_.m=Dob.prototype;_.m.__hasInstance=function(){return!!this.__instance};
_.m.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.m.__createAndInsertInstance=function(G){var b=this,I=this.__dataHost||this;if(hb&&!this.__dataHost)throw Error("Od");var h=I._bindTemplate(this.__template,!0);h.runEffects=function(q,l,V){var D=b.__syncInfo;if(b.if)D&&(b.__syncInfo=null,b._showHideChildren(),l=Object.assign(D.changedProps,l)),q(l,V);else if(b.__instance)if(D||(D=b.__syncInfo={runEffects:q,changedProps:{}}),V)for(var k in l)q=Z8(k),D.changedProps[q]=b.__dataHost[q];else Object.assign(D.changedProps,l)};
this.__instance=I._stampTemplate(this.__template,h);(0,_.yF)(G).insertBefore(this.__instance,this)};
_.m.__syncHostProperties=function(){var G=this.__syncInfo;G&&(this.__syncInfo=null,G.runEffects(G.changedProps,!1))};
_.m.__teardownInstance=function(){var G=this.__dataHost||this;this.__instance&&(G._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.m._showHideChildren=function(){var G=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==G&&(this.__instance.__hidden=G,OWO(G,this.__instance.templateInfo.childNodes));G||this.__syncHostProperties()};
var cNA=function(){var G=sc.call(this)||this;G.__ctor=null;G.__instance=null;G.__invalidProps=null;return G};
_.M(cNA,sc);_.m=cNA.prototype;_.m.__hasInstance=function(){return!!this.__instance};
_.m.__getInstanceNodes=function(){return this.__instance.children};
_.m.__createAndInsertInstance=function(G){this.__ctor||(this.__ctor=b4(this.__template,this,{mutableData:!0,forwardHostProp:function(b,I){this.__instance&&(this.if?this.__instance.forwardHostProp(b,I):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Z8(b)]=!0))}}));
this.__instance=new this.__ctor;(0,_.yF)(G).insertBefore(this.__instance.root,this)};
_.m.__teardownInstance=function(){if(this.__instance){var G=this.__instance.children;if(G&&G.length){var b=(0,_.yF)(G[0]).parentNode;if(b){b=(0,_.yF)(b);for(var I=0,h=void 0;I<G.length&&(h=G[I]);I++)b.removeChild(h)}}this.__instance=this.__invalidProps=null}};
_.m.__syncHostProperties=function(){var G=this.__invalidProps;if(G){this.__invalidProps=null;for(var b in G)this.__instance._setPendingProperty(b,this.__dataHost[b]);this.__instance._flushProperties()}};
_.m._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()};
_.B5=GS?Dob:cNA;customElements.define(_.B5.is,_.B5);Polymer.enqueueDebouncer=_.xj;Polymer.flush=_.Uc;Polymer.Templatize={templatize:b4,modelForElement:jR2};Polymer.TemplateInstanceBase=Gb;Polymer.DomIf=_.B5;var k3z=mon(eM),T8=function(){var G=k3z.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};
_.M(T8,k3z);_.m=T8.prototype;_.m.disconnectedCallback=function(){k3z.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var G=0;G<this.__instances.length;G++)this.__detachInstance(G);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.m.connectedCallback=function(){k3z.prototype.connectedCallback.call(this);Kbj()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var G=(0,_.yF)((0,_.yF)(this).parentNode),b=0;b<this.__instances.length;b++)this.__attachInstance(b,G);this.__chunkingId&&this.__render()}};
_.m.__ensureTemplatized=function(){var G=this;if(!this.__ctor){var b=this.template=this._templateInfo?this:this.querySelector("template");if(!b){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 h={};h[this.as]=!0;h[this.indexAs]=!0;h[this.itemsIndexAs]=!0;this.__ctor=b4(b,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:h,forwardHostProp:function(q,l){for(var V=this.__instances,D=0,k=void 0;D<V.length&&(k=V[D]);D++)k.forwardHostProp(q,l)},
notifyInstanceProp:function(q,l,V){Axv(this.as,l)&&(q=q[this.itemsIndexAs],l==this.as&&(this.items[q]=V),l=zX(this.as,"items."+q,l),this.notifyPath(l,V))}})}return!0};
_.m.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.m.__functionFromPropertyValue=function(G){if(typeof G==="string"){var b=this.__getMethodHost();return function(){return b[G].apply(b,arguments)}}return G};
_.m.__sortChanged=function(G){this.__sortFn=this.__functionFromPropertyValue(G);this.items&&this.__debounceRender(this.__render)};
_.m.__filterChanged=function(G){this.__filterFn=this.__functionFromPropertyValue(G);this.items&&this.__debounceRender(this.__render)};
_.m.__computeFrameTime=function(G){return Math.ceil(1E3/G)};
_.m.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.m.__handleObservedPaths=function(G){if(this.__sortFn||this.__filterFn)if(!G)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var b=this.__observePaths,I=0;I<b.length;I++)G.indexOf(b[I])===0&&this.__debounceRender(this.__render,this.delay)};
_.m.__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))};
_.m.__debounceRender=function(G,b){b=b===void 0?0:b;this.__renderDebouncer=_.Q2(this.__renderDebouncer,b>0?_.hw.after(b):wa,G.bind(this));_.xj(this.__renderDebouncer)};
_.m.render=function(){this.__debounceRender(this.__render);_.Uc()};
_.m.__render=function(){var G=this;if(this.__ensureTemplatized()){var b=this.items||[],I=this.__sortAndFilterItems(b),h=this.__calculateLimit(I.length);this.__updateInstances(b,h,I);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){G.__chunkingId=null;G.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);bY&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.m.__sortAndFilterItems=function(G){for(var b=this,I=Array(G.length),h=0;h<G.length;h++)I[h]=h;this.__filterFn&&(I=I.filter(function(q,l,V){return b.__filterFn(G[q],l,V)}));
this.__sortFn&&I.sort(function(q,l){return b.__sortFn(G[q],G[l])});
return I};
_.m.__calculateLimit=function(G){var b=G,I=this.__instances.length;if(this.initialCount){var h;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(b=Math.min(G,this.initialCount),this.__chunkCount=(h=Math.max(b-I,0))||1):(h=Math.min(Math.max(G-I,0),this.__chunkCount),b=Math.min(I+h,G));this.__shouldMeasureChunk=h===this.__chunkCount;this.__shouldContinueChunking=b<G;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return b};
_.m.__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)};
_.m.__updateInstances=function(G,b,I){var h=this.__itemsIdxToInstIdx={},q;for(q=0;q<b;q++){var l=this.__instances[q],V=I[q],D=G[V];h[V]=q;l?(l._setPendingProperty(this.as,D),l._setPendingProperty(this.indexAs,q),l._setPendingProperty(this.itemsIndexAs,V),l._flushProperties()):this.__insertInstance(D,q,V)}for(G=this.__instances.length-1;G>=q;G--)this.__detachAndRemoveInstance(G)};
_.m.__detachInstance=function(G){G=this.__instances[G];for(var b=(0,_.yF)(G.root),I=0;I<G.children.length;I++)b.appendChild(G.children[I]);return G};
_.m.__attachInstance=function(G,b){b.insertBefore(this.__instances[G].root,this)};
_.m.__detachAndRemoveInstance=function(G){this.__detachInstance(G);this.__instances.splice(G,1)};
_.m.__stampInstance=function(G,b,I){var h={};h[this.as]=G;h[this.indexAs]=b;h[this.itemsIndexAs]=I;return new this.__ctor(h)};
_.m.__insertInstance=function(G,b,I){G=this.__stampInstance(G,b,I);I=(I=this.__instances[b+1])?I.children[0]:this;(0,_.yF)((0,_.yF)(this).parentNode).insertBefore(G.root,I);return this.__instances[b]=G};
_.m._showHideChildren=function(G){for(var b=0;b<this.__instances.length;b++)this.__instances[b]._showHideChildren(G)};
_.m.__handleItemPath=function(G,b){var I=G.slice(6),h=I.indexOf(".");G=h<0?I:I.substring(0,h);if(G==parseInt(G,10)){I=h<0?"":I.substring(h+1);this.__handleObservedPaths(I);if(G=this.__instances[this.__itemsIdxToInstIdx[G]])G._setPendingPropertyOrPath(this.as+(I?"."+I:""),b,!1,!0),G._flushProperties();return!0}};
_.m.itemForElement=function(G){return(G=this.modelForElement(G))&&G[this.as]};
_.m.indexForElement=function(G){return(G=this.modelForElement(G))&&G[this.indexAs]};
_.m.modelForElement=function(G){return jR2(this.template,G)};
_.kV.Object.defineProperties(T8,{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:T8.prototype.__sortChanged},filter:{type:Function,observer:T8.prototype.__filterChanged},observe:{type:String,observer:T8.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!bY,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.*)"]}}});
T8.prototype._setRenderedItemCount=function(){};
customElements.define(T8.is,T8);Polymer.DomRepeat=T8;var vQn=function(G,b){var I=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=G;this.callback=b;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){I._schedule()};
this.connect();this._schedule()},L6W=function(G){var b=(0,_.yF)(G);
if(qh(G))return b.assignedNodes({flatten:!0});G=[];for(var I=0;I<b.childNodes.length;I++){var h=b.childNodes[I];qh(h)?G.push.apply(G,_.Nz((0,_.yF)(h).assignedNodes({flatten:!0}))):G.push(h)}return G};
_.m=vQn.prototype;_.m.connect=function(){var G=this;qh(this._target)?this._listenSlots([this._target]):(0,_.yF)(this._target).children&&(this._listenSlots((0,_.yF)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(b){G._processMutations(b)}):(this._nativeChildrenObserver=new MutationObserver(function(b){G._processMutations(b)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.m.disconnect=function(){qh(this._target)?this._unlistenSlots([this._target]):(0,_.yF)(this._target).children&&(this._unlistenSlots((0,_.yF)(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};
_.m._schedule=function(){var G=this;this._scheduled||(this._scheduled=!0,wa.run(function(){return G.flush()}))};
_.m._processMutations=function(G){this._processSlotMutations(G);this.flush()};
_.m._processSlotMutations=function(G){if(G)for(var b=0;b<G.length;b++){var I=G[b];I.addedNodes&&this._listenSlots(I.addedNodes);I.removedNodes&&this._unlistenSlots(I.removedNodes)}};
_.m.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:[]},b=L6W(this._target),I=qEs(b,this._effectiveNodes),h=0,q=void 0;h<I.length&&(q=I[h]);h++)for(var l=0,V=void 0;l<q.removed.length&&(V=q.removed[l]);l++)G.removedNodes.push(V);
h=0;for(q=void 0;h<I.length&&(q=I[h]);h++)for(l=q.index;l<q.index+q.addedCount;l++)G.addedNodes.push(b[l]);this._effectiveNodes=b;b=!1;if(G.addedNodes.length||G.removedNodes.length)b=!0,this.callback.call(this._target,G);return b};
_.m._listenSlots=function(G){for(var b=0;b<G.length;b++){var I=G[b];qh(I)&&I.addEventListener("slotchange",this._boundSchedule)}};
_.m._unlistenSlots=function(G){for(var b=0;b<G.length;b++){var I=G[b];qh(I)&&I.removeEventListener("slotchange",this._boundSchedule)}};var gI=Element.prototype,QMB=gI.matches||gI.matchesSelector||gI.mozMatchesSelector||gI.msMatchesSelector||gI.oMatchesSelector||gI.webkitMatchesSelector,xoO=function(G,b){return QMB.call(G,b)},jW=function(G){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(G);
this.node=G},Uo8;
_.m=jW.prototype;_.m.observeNodes=function(G){return new vQn(this.node,G)};
_.m.unobserveNodes=function(G){G.disconnect()};
_.m.notifyObserver=function(){};
_.m.deepContains=function(G){if((0,_.yF)(this.node).contains(G))return!0;var b=G;for(G=G.ownerDocument;b&&b!==G&&b!==this.node;)b=(0,_.yF)(b).parentNode||(0,_.yF)(b).host;return b===this.node};
_.m.getOwnerRoot=function(){return(0,_.yF)(this.node).getRootNode()};
_.m.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.yF)(this.node).assignedNodes({flatten:!0}):[]};
_.m.getDestinationInsertionPoints=function(){for(var G=[],b=(0,_.yF)(this.node).assignedSlot;b;)G.push(b),b=(0,_.yF)(b).assignedSlot;return G};
_.m.importNode=function(G,b){return(0,_.yF)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(G,b)};
_.m.getEffectiveChildNodes=function(){return L6W(this.node)};
_.m.queryDistributedElements=function(G){for(var b=this.getEffectiveChildNodes(),I=[],h=0,q=b.length,l=void 0;h<q&&(l=b[h]);h++)l.nodeType===Node.ELEMENT_NODE&&xoO(l,G)&&I.push(l);return I};
_.kV.Object.defineProperties(jW.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var G=this.node;return G._activeElement!==void 0?G._activeElement:G.activeElement}}});
var Aw=function(G){this.event=G};
_.kV.Object.defineProperties(Aw.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 fmn=jW;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var T5i=window.ShadyDOM.Wrapper,B5O=function(){return T5i.apply(this,arguments)||this};
_.M(B5O,T5i);Object.getOwnPropertyNames(jW.prototype).forEach(function(G){G!="activeElement"&&G!="constructor"&&(B5O.prototype[G]=jW.prototype[G])});
mCr(B5O.prototype,["classList"]);fmn=B5O;Object.defineProperties(Aw.prototype,{localTarget:{get:function(){var G=this.event.currentTarget;G=G&&_.kc(G).getOwnerRoot();for(var b=this.path,I=0;I<b.length;I++){var h=b[I];if(_.kc(h).getOwnerRoot()===G)return h}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else lur(),mCr(jW.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),ebX();Uo8=fmn;_.kc=function(G){G=G||document;if(G instanceof fmn)return G;if(G instanceof Aw)return G;var b=G.__domApi;b||(G instanceof Event?b=new Aw(G):b=new fmn(G),G.__domApi=b);return b};var sMb=/:host\(:dir\((ltr|rtl)\)\)/g,gQu=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,ANn=/:dir\((?:ltr|rtl)\)/,MAW=!(!window.ShadyDOM||!window.ShadyDOM.inUse),mH=[],MH=null,l4="",ZGX=qH(function(G){MAW||MH||(l4=document.documentElement.getAttribute("dir"),MH=new MutationObserver(VRu),MH.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var b=PHi(G);G=function(){var I=b.call(this)||this;I.__autoDirOptOut=!1;return I};
_.M(G,b);G._processStyleText=function(I,h){I=b._processStyleText.call(this,I,h);!MAW&&ANn.test(I)&&(I=this._replaceDirInCssText(I),this.__activateDir=!0);return I};
G._replaceDirInCssText=function(I){I=I.replace(sMb,':host([dir="$1"])');return I=I.replace(gQu,':host([dir="$2"]) $1')};
G.prototype.ready=function(){b.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
G.prototype.connectedCallback=function(){b.prototype.connectedCallback&&b.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(MH&&MH.takeRecords().length&&VRu(),mH.push(this),this.__autoDirOptOut||this.setAttribute("dir",l4))};
G.prototype.disconnectedCallback=function(){b.prototype.disconnectedCallback&&b.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var I=mH.indexOf(this);I>-1&&mH.splice(I,1)}};
G.__activateDir=!1;return G});var tAn=function(G){for(;G;){var b=Object.getOwnPropertyDescriptor(G,"observedAttributes");if(b)return b.get;G=Object.getPrototypeOf(G.prototype).constructor}return function(){return[]}};
qH(function(G){var b=m8(G),I=tAn(b);G=function(){return b.call(this)||this};
_.M(G,b);G.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:b.prototype._initializeProperties.call(this)};
G.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)};
G.prototype._canApplyPropertyDefault=function(h){return b.prototype._canApplyPropertyDefault.call(this,h)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(h))};
G.prototype.attributeChangedCallback=function(h,q,l,V){h=="disable-upgrade"?this.__isUpgradeDisabled&&l==null&&(b.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.yF)(this).isConnected&&b.prototype.connectedCallback.call(this)):b.prototype.attributeChangedCallback.call(this,h,q,l,V)};
G.prototype.connectedCallback=function(){this.__isUpgradeDisabled||b.prototype.connectedCallback.call(this)};
G.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||b.prototype.disconnectedCallback.call(this)};
_.kV.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I.call(this).concat("disable-upgrade")}}});
return G});var eW=!1,cJ2=[],VR=[];var QRB=window.ShadyDOM,xCs=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",TUv):document.readyState==="interactive"||document.readyState==="complete"?TUv():window.addEventListener("DOMContentLoaded",TUv);var sRv=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=""},BUX=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,UCO=/@import[^;]*;/gim,zbX=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,oYB=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,ipX=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,P3r=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,ZpO=/^@[^\s]*keyframes/,
MRO=/\s+/g;var dCO={};var FIr=Promise.resolve();var zcW=new Set;var oQb=/;\s*/m,iGi=/^\s*(initial)|(inherit)\s*$/,P$n=/\s*!important/,doA=function(){this._map={}};
doA.prototype.set=function(G,b){G=G.trim();this._map[G]={properties:b,dependants:{}}};
doA.prototype.get=function(G){G=G.trim();return this._map[G]||null};
var yNB=null,ZQ=function(){this._measureElement=this._currentElement=null;this._map=new doA};
_.m=ZQ.prototype;_.m.detectMixin=function(G){G=Eyb.test(G)||w5O.test(G);Eyb.lastIndex=0;w5O.lastIndex=0;return G};
_.m.transformTemplate=function(G,b){if(G._gatheredStyle===void 0){var I=[];for(var h=G.content.querySelectorAll("style"),q=0;q<h.length;q++){var l=h[q];if(l.hasAttribute("shady-unscoped")){if(!Lbj){var V=l.textContent;if(!zcW.has(V)){zcW.add(V);var D=document.createElement("style");D.setAttribute("shady-unscoped","");D.textContent=V;document.head.appendChild(D)}l.parentNode.removeChild(l)}}else I.push(l.textContent),l.parentNode.removeChild(l)}(I=I.join("").trim())?(h=document.createElement("style"),
h.textContent=I,G.content.insertBefore(h,G.content.firstChild),I=h):I=null;G._gatheredStyle=I}return(G=G._gatheredStyle)?this.JSC$11340_transformStyle(G,b):null};
_.m.JSC$11340_transformStyle=function(G,b){b=b===void 0?"":b;var I=NUv(G);this.transformRules(I,b);G.textContent=auv(I);return I};
_.m.transformCustomStyle=function(G){var b=this,I=NUv(G);C3X(I,function(h){h.selector===":root"&&(h.selector="html");b.transformRule(h)});
G.textContent=auv(I);return I};
_.m.transformRules=function(G,b){var I=this;this._currentElement=b;C3X(G,function(h){I.transformRule(h)});
this._currentElement=null};
_.m.transformRule=function(G){G.cssText=rNn(this,G.parsedCssText,G);G.selector===":root"&&(G.selector=":host > *")};
var rNn=function(G,b,I){b=b.replace(w5O,function(h,q,l,V){return G._produceCssProperties(h,q,l,V,I)});
return G._consumeCssProperties(b,I)};
_.m=ZQ.prototype;_.m._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)};
_.m._fallbacksFromPreviousRules=function(G){for(var b=this,I=G;I.parent;)I=I.parent;var h={},q=!1;C3X(I,function(l){(q=q||l===G)||l.selector===G.selector&&Object.assign(h,b._cssTextToMap(l.parsedCssText))});
return h};
_.m._consumeCssProperties=function(G,b){for(var I;I=Eyb.exec(G);){var h=I[0],q=I[1];I=I.index;var l=I+h.indexOf("@apply"),V=I+h.length;h=G.slice(0,l);G=G.slice(V);l=b?this._fallbacksFromPreviousRules(b):{};Object.assign(l,this._cssTextToMap(h));q=this._atApplyToCssProperties(q,l);G=h+q+G;Eyb.lastIndex=I+q.length}return G};
_.m._atApplyToCssProperties=function(G,b){G=G.replace(oQb,"");var I=[],h=this._map.get(G);h||(this._map.set(G,{}),h=this._map.get(G));if(h){this._currentElement&&(h.dependants[this._currentElement]=!0);var q,l=h.properties;for(q in l){var V=b&&b[q];h=[q,": var(",G,"_-_",q];V&&h.push(",",V.replace(P$n,""));h.push(")");P$n.test(l[q])&&h.push(" !important");I.push(h.join(""))}}return I.join("; ")};
_.m._replaceInitialOrInherit=function(G,b){var I=iGi.exec(b);I&&(b=I[1]?this._getInitialValueForProperty(G):"apply-shim-inherit");return b};
_.m._cssTextToMap=function(G,b){b=b===void 0?!1:b;G=G.split(";");for(var I,h,q={},l=0;l<G.length;l++)if(I=G[l])h=I.split(":"),h.length>1&&(I=h[0].trim(),h=h.slice(1).join(":"),b&&(h=this._replaceInitialOrInherit(I,h)),q[I]=h);return q};
_.m._invalidateMixinEntry=function(G){if(yNB)for(var b in G.dependants)b!==this._currentElement&&yNB(b)};
_.m._produceCssProperties=function(G,b,I,h,q){var l=this;I&&JJr(I,function(A,t){t&&l._map.get(t)&&(h="@apply "+t+";")});
if(!h)return G;var V=this._consumeCssProperties(""+h,q);q=G.slice(0,G.indexOf("--"));var D=V=this._cssTextToMap(V,!0),k=this._map.get(b),L=k&&k.properties;L?D=Object.assign(Object.create(L),V):this._map.set(b,D);var x=[],f,T=!1;for(f in D){var B=V[f];B===void 0&&(B="initial");!L||f in L||(T=!0);x.push(b+"_-_"+f+": "+B)}T&&this._invalidateMixinEntry(k);k&&(k.properties=D);I&&(q=G+";"+q);return q+x.join("; ")+";"};
ZQ.prototype.detectMixin=ZQ.prototype.detectMixin;ZQ.prototype.transformStyle=ZQ.prototype.JSC$11340_transformStyle;ZQ.prototype.transformCustomStyle=ZQ.prototype.transformCustomStyle;ZQ.prototype.transformRules=ZQ.prototype.transformRules;ZQ.prototype.transformRule=ZQ.prototype.transformRule;ZQ.prototype.transformTemplate=ZQ.prototype.transformTemplate;ZQ.prototype._separator="_-_";Object.defineProperty(ZQ.prototype,"invalidCallback",{get:function(){return yNB},
set:function(G){yNB=G}});var tw=new ZQ,F6J=function(){this.customStyleInterface=null;tw.invalidCallback=yJp},zS=function(G){!G.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(G.customStyleInterface=window.ShadyCSS.CustomStyleInterface,G.customStyleInterface.transformCallback=function(b){tw.transformCustomStyle(b)},G.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){G.customStyleInterface.enqueued&&G.flushCustomStyles()})})};
_.m=F6J.prototype;_.m.prepareTemplate=function(G,b){zS(this);KIr(G)===""&&(dCO[b]=G,b=tw.transformTemplate(G,b),G._styleAst=b)};
_.m.flushCustomStyles=function(){zS(this);if(this.customStyleInterface){var G=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var b=0;b<G.length;b++){var I=this.customStyleInterface.getStyleForCustomStyle(G[b]);I&&tw.transformCustomStyle(I)}this.customStyleInterface.enqueued=!1}}};
_.m.styleSubtree=function(G,b){zS(this);b&&m_d(G,b);if(G.shadowRoot)for(this.styleElement(G),G=G.shadowRoot.children||G.shadowRoot.childNodes,b=0;b<G.length;b++)this.styleSubtree(G[b]);else for(G=G.children||G.childNodes,b=0;b<G.length;b++)this.styleSubtree(G[b])};
_.m.styleElement=function(G){zS(this);var b=G.localName,I;b?b.indexOf("-")>-1?I=b:I=G.getAttribute&&G.getAttribute("is")||"":I=G.is;b=dCO[I];if(!(b&&KIr(b)!==""||!b||rJq(b))){if(rJq(b)||b._applyShimValidatingVersion!==b._applyShimNextVersion)this.prepareTemplate(b,I),Hpd(b);if(G=G.shadowRoot)if(G=G.querySelector("style"))G.__cssRules=b._styleAst,G.textContent=auv(b._styleAst)}};
_.m.styleDocument=function(G){zS(this);this.styleSubtree(document.body,G)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var oz=new F6J,HGQ=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(G,b){oz.flushCustomStyles();oz.prepareTemplate(G,b)},
prepareTemplateStyles:function(G,b,I){window.ShadyCSS.prepareTemplate(G,b,I)},
prepareTemplateDom:function(){},
styleSubtree:function(G,b){oz.flushCustomStyles();oz.styleSubtree(G,b)},
styleElement:function(G){oz.flushCustomStyles();oz.styleElement(G)},
styleDocument:function(G){oz.flushCustomStyles();oz.styleDocument(G)},
getComputedStyleValue:function(G,b){return ezj(G,b)},
flushCustomStyles:function(){oz.flushCustomStyles()},
nativeCss:WIB,nativeShadow:Lbj,cssBuild:ch,disableRuntime:X5J};HGQ&&(window.ShadyCSS.CustomStyleInterface=HGQ)}window.ShadyCSS.ApplyShim=tw;var W6Q;W6Q=window.ShadyCSS;_.iY=qH(function(G){G=lmB(m8(G));var b=CHJ?G:ZGX(G),I=tAn(b),h={x:"pan-x",y:"pan-y",none:"none",all:"auto"};G=function(){return b.call(this)||this};
_.M(G,b);G.prototype.created=function(){};
G.prototype.__attributeReaction=function(q,l,V){(this.__dataAttributes&&this.__dataAttributes[q]||q==="disable-upgrade")&&this.attributeChangedCallback(q,l,V,null)};
G.prototype.setAttribute=function(q,l){if(LNn&&!this._legacyForceObservedAttributes){var V=this.getAttribute(q);b.prototype.setAttribute.call(this,q,l);this.__attributeReaction(q,V,String(l))}else b.prototype.setAttribute.call(this,q,l)};
G.prototype.removeAttribute=function(q){if(LNn&&!this._legacyForceObservedAttributes){var l=this.getAttribute(q);b.prototype.removeAttribute.call(this,q);this.__attributeReaction(q,l,null)}else b.prototype.removeAttribute.call(this,q)};
G.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)};
G.prototype._canApplyPropertyDefault=function(q){return b.prototype._canApplyPropertyDefault.call(this,q)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(q))};
G.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(b.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
G.prototype.attached=function(){};
G.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(b.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
G.prototype.detached=function(){};
G.prototype.attributeChangedCallback=function(q,l,V,D){l!==V&&(q=="disable-upgrade"?this.__isUpgradeDisabled&&V==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.yF)(this).isConnected&&this.connectedCallback()):(b.prototype.attributeChangedCallback.call(this,q,l,V,D),this.attributeChanged(q,l,V)))};
G.prototype.attributeChanged=function(){};
G.prototype._initializeProperties=function(){if(Xp&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var q=Object.getPrototypeOf(this);q.hasOwnProperty("__hasRegisterFinished")||(this._registered(),q.__hasRegisterFinished=!0);b.prototype._initializeProperties.call(this);this.root=this;this.created();LNn&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
G.prototype._takeAttributes=function(){for(var q=this.attributes,l=0,V=q.length;l<V;l++){var D=q[l];this.__attributeReaction(D.name,null,D.value)}};
G.prototype._registered=function(){};
G.prototype.ready=function(){this._ensureAttributes();b.prototype.ready.call(this)};
G.prototype._ensureAttributes=function(){};
G.prototype._applyListeners=function(){};
G.prototype.serialize=function(q){return this._serializeValue(q)};
G.prototype.deserialize=function(q,l){return this._deserializeValue(q,l)};
G.prototype.reflectPropertyToAttribute=function(q,l,V){this._propertyToAttribute(q,l,V)};
G.prototype.serializeValueToAttribute=function(q,l,V){this._valueToNodeAttribute(V||this,q,l)};
G.prototype.extend=function(q,l){if(!q||!l)return q||l;for(var V=Object.getOwnPropertyNames(l),D=0,k=void 0;D<V.length&&(k=V[D]);D++){var L=Object.getOwnPropertyDescriptor(l,k);L&&Object.defineProperty(q,k,L)}return q};
G.prototype.mixin=function(q,l){for(var V in l)q[V]=l[V];return q};
G.prototype.chainObject=function(q,l){q&&l&&q!==l&&(q.__proto__=l);return q};
G.prototype.instanceTemplate=function(q){q=this.constructor._contentForTemplate(q);return document.importNode(q,!0)};
G.prototype.fire=function(q,l,V){V=V||{};l=l===null||l===void 0?{}:l;q=new Event(q,{bubbles:V.bubbles===void 0?!0:V.bubbles,cancelable:!!V.cancelable,composed:V.composed===void 0?!0:V.composed});q.detail=l;(0,_.yF)(V.node||this).dispatchEvent(q);return q};
G.prototype.listen=function(q,l,V){q=q||this;var D=this.__boundListeners||(this.__boundListeners=new WeakMap),k=D.get(q);k||(k={},D.set(q,k));D=l+V;k[D]||(k[D]=this._addMethodEventListenerToNode(q,l,V,this))};
G.prototype.unlisten=function(q,l,V){q=q||this;var D=this.__boundListeners&&this.__boundListeners.get(q);V=l+V;var k=D&&D[V];k&&(this._removeEventListenerFromNode(q,l,k),D[V]=null)};
G.prototype.setScrollDirection=function(q,l){_.Oz(l||this,h[q]||"auto")};
G.prototype.$$=function(q){return this.root.querySelector(q)};
G.prototype.distributeContent=function(){var q=_.kc(this);window.ShadyDOM&&q.shadowRoot&&ShadyDOM.flush()};
G.prototype.getEffectiveChildNodes=function(){return _.kc(this).getEffectiveChildNodes()};
G.prototype.queryDistributedElements=function(q){return _.kc(this).queryDistributedElements(q)};
G.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(q){return q.nodeType===Node.ELEMENT_NODE})};
G.prototype.getEffectiveTextContent=function(){for(var q=this.getEffectiveChildNodes(),l=[],V=0,D;D=q[V];V++)D.nodeType!==Node.COMMENT_NODE&&l.push(D.textContent);return l.join("")};
G.prototype.queryEffectiveChildren=function(q){return(q=this.queryDistributedElements(q))&&q[0]};
G.prototype.queryAllEffectiveChildren=function(q){return this.queryDistributedElements(q)};
G.prototype.getContentChildNodes=function(q){return(q=this.root.querySelector(q||"slot"))?_.kc(q).getDistributedNodes():[]};
G.prototype.getContentChildren=function(q){return this.getContentChildNodes(q).filter(function(l){return l.nodeType===Node.ELEMENT_NODE})};
G.prototype.isLightDescendant=function(q){return this!==q&&(0,_.yF)(this).contains(q)&&(0,_.yF)(this).getRootNode()===(0,_.yF)(q).getRootNode()};
G.prototype.isLocalDescendant=function(q){return this.root===(0,_.yF)(q).getRootNode()};
G.prototype.scopeSubtree=function(q,l){return fua(q,l===void 0?!1:l)};
G.prototype.getComputedStyleValue=function(q){return W6Q.getComputedStyleValue(this,q)};
G.prototype.debounce=function(q,l,V){this._debouncers=this._debouncers||{};return this._debouncers[q]=_.Q2(this._debouncers[q],V>0?_.hw.after(V):wa,l.bind(this))};
G.prototype.isDebouncerActive=function(q){this._debouncers=this._debouncers||{};q=this._debouncers[q];return!(!q||!q.isActive())};
G.prototype.flushDebouncer=function(q){this._debouncers=this._debouncers||{};(q=this._debouncers[q])&&q.flush()};
G.prototype.cancelDebouncer=function(q){this._debouncers=this._debouncers||{};(q=this._debouncers[q])&&q.cancel()};
G.prototype.async=function(q,l){return l>0?_.hw.run(q.bind(this),l):~wa.run(q.bind(this))};
G.prototype.cancelAsync=function(q){q<0?wa.cancel(~q):_.hw.cancel(q)};
G.prototype.create=function(q,l){q=document.createElement(q);if(l)if(q.setProperties)q.setProperties(l);else for(var V in l)q[V]=l[V];return q};
G.prototype.elementMatches=function(q,l){return xoO(l||this,q)};
G.prototype.toggleAttribute=function(q,l){var V=this;arguments.length===3&&(V=arguments[2]);arguments.length==1&&(l=!V.hasAttribute(q));if(l)return(0,_.yF)(V).setAttribute(q,""),!0;(0,_.yF)(V).removeAttribute(q);return!1};
G.prototype.toggleClass=function(q,l,V){V=V||this;arguments.length==1&&(l=!V.classList.contains(q));l?V.classList.add(q):V.classList.remove(q)};
G.prototype.transform=function(q,l){l=l||this;l.style.webkitTransform=q;l.style.transform=q};
G.prototype.translate3d=function(q,l,V,D){this.transform("translate3d("+q+","+l+","+V+")",D||this)};
G.prototype.arrayDelete=function(q,l){if(Array.isArray(q)){if(l=q.indexOf(l),l>=0)return q.splice(l,1)}else if(l=ix(this,q).indexOf(l),l>=0)return this.splice(q,l,1);return null};
G.prototype._logger=function(q,l){Array.isArray(l)&&l.length===1&&Array.isArray(l[0])&&(l=l[0]);switch(q){case "log":case "warn":case "error":console[q].apply(console,_.Nz(l))}};
G.prototype._log=function(){this._logger("log",_.RI.apply(0,arguments))};
G.prototype._warn=function(){this._logger("warn",_.RI.apply(0,arguments))};
G.prototype._error=function(){this._logger("error",_.RI.apply(0,arguments))};
G.prototype._logf=function(q){return["[%s::%s]",this.is,q].concat(_.Nz(_.RI.apply(1,arguments)))};
_.kV.Object.defineProperties(G.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var q=(0,_.yF)(this).getRootNode();return q instanceof DocumentFragment?q.host:q}}});
_.kV.Object.defineProperties(G,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return LNn&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],xAd(this.prototype)),this.__observedAttributes):I.call(this).concat("disable-upgrade")}}});
G.prototype.is="";return G});Polymer.FlattenedNodesObserver=vQn;Polymer.DomApi=Uo8;Polymer.EventApi=Aw;Polymer.dom=_.kc;Polymer.dom.matchesSelector=xoO;Polymer.dom.flush=_.Uc;Polymer.dom.addDebouncer=_.xj;Polymer.DirMixin=ZGX;Polymer.RenderStatus={beforeNextRender:_.LIO,afterNextRender:_.D1,flush:function(){for(;cJ2.length||VR.length;)DCO(cJ2),DCO(VR);eW=!1}};Polymer.LegacyElementMixin=_.iY;var amz;amz=TS._mutablePropertyChange;var N5n={properties:{mutableData:Boolean},_shouldPropertyChange:function(G,b,I){return amz(this,G,b,I,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(G,b,I){return amz(this,G,b,I,!0)}};
Polymer.OptionalMutableDataBehavior=N5n;var ucO={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},EYr={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},w8O=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},EYr),Y0B=(0,_.iY)(HTMLElement),pWB=function(G,b){G||console.warn("Polymer.Class requires `info` argument");b=b?b(Y0B):Y0B;b=p8j(G,b,G.behaviors);b.is=b.prototype.is=
G.is;return b};Polymer.Class=pWB;Polymer.mixinBehaviors=function(G,b){return p8j({},(0,_.iY)(b),G)};
Polymer.GenerateClassFromInfo=p8j;_.fn=function(G){var b=typeof G==="function"?G:_.fn.Class(G);G._legacyForceObservedAttributes&&(b.prototype._legacyForceObservedAttributes=G._legacyForceObservedAttributes);customElements.define(b.is,b);return b};
_.fn.Class=pWB;Polymer._polymerFn=_.fn;var C$u=window.onLegacyPolymerFunctionDefinedCallback;C$u&&C$u();var XWu={templatize:function(G,b){this._templatizerTemplate=G;this.ctor=b4(G,this,{mutableData:!!b,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(G){return new this.ctor(G)},
modelForElement:function(G){return jR2(this._templatizerTemplate,G)}};Polymer.Templatizer=XWu;_.Pn=(0,_.iY)(HTMLElement).prototype;Polymer.Base=_.Pn;var X8a=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.vh=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.M(_.vh,PolymerFakeBaseClass);var LJ=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.M(LJ,PolymerFakeBaseClass);var $wu=Symbol("Sd"),mwX=[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 JNn=JNn||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},K6J;(function(G){function b(K,u,w){var $a=O.get(K);if(!$a){if(!w)return;$a=new F;O.set(K,$a)}K=$a.get(u);if(!K){if(!w)return;K=new F;$a.set(u,K)}return K}
function I(K,u,w){if(h(K,u,w))return!0;u=T(u);return u!==null?I(K,u,w):!1}
function h(K,u,w){u=b(u,w,!1);return u===void 0?!1:!!u.has(K)}
function q(K,u,w){if(h(K,u,w))return l(K,u,w);u=T(u);if(u!==null)return q(K,u,w)}
function l(K,u,w){u=b(u,w,!1);if(u!==void 0)return u.get(K)}
function V(K,u){var w=D(K,u);K=T(K);if(K===null)return w;var $a=V(K,u);if($a.length<=0)return w;if(w.length<=0)return $a;u=new W;K=[];w=_.e(w);for(var ev=w.next();!ev.done;ev=w.next())ev=ev.value,u.has(ev)||(u.add(ev),K.push(ev));w=_.e($a);for($a=w.next();!$a.done;$a=w.next())$a=$a.value,u.has($a)||(u.add($a),K.push($a));return K}
function D(K,u){K=b(K,u,!1);var w=[];K&&K.forEach(function($a,ev){return w.push(ev)});
return w}
function k(K){return K===void 0}
function L(K){return typeof K==="object"?K!==null:typeof K==="function"}
function x(K){return typeof K==="function"}
function f(K){return typeof K==="symbol"?K:String(K)}
function T(K){var u=Object.getPrototypeOf(K);if(typeof K!=="function"||K===y||u!==y)return u;var w=Object.getPrototypeOf(K.prototype);if(w==null||w===Object.prototype)return u;w=w.constructor;return typeof w!=="function"||w===K?u:w}
function B(){function K(){this._keys=[];this._values=[];this._cache=u}
var u={};K.prototype={get size(){return this._keys.length},has:function(w){return w===this._cache?!0:this._find(w)>=0?(this._cache=w,!0):!1},
get:function(w){var $a=this._find(w);if($a>=0)return this._cache=w,this._values[$a]},
set:function(w,$a){this.delete(w);this._keys.push(w);this._values.push($a);this._cache=w;return this},
delete:function(w){w=this._find(w);return w>=0?(this._keys.splice(w,1),this._values.splice(w,1),this._cache=u,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=u},
forEach:function(w){for(var $a=this.size,ev=0;ev<$a;++ev){var LO=this._keys[ev],td=this._values[ev];this._cache=LO;w.call(this,td,LO,this)}},
_find:function(w){for(var $a=this._keys,ev=$a.length,LO=0;LO<ev;++LO)if($a[LO]===w)return LO;return-1}};
return K}
function A(){function K(){this._map=new F}
K.prototype={get size(){return this._map.length},has:function(u){return this._map.has(u)},
add:function(u){this._map.set(u,u);return this},
delete:function(u){return this._map.delete(u)},
clear:function(){this._map.clear()},
forEach:function(u,w){this._map.forEach(u,w)}};
return K}
function t(){function K(){this._key=w()}
function u(Uj,W2){for(var is=0;is<W2;++is)Uj[is]=Math.random()*255|0}
function w(){do{if(ev)var Uj=ev.randomBytes(16);else typeof Uint8Array==="function"?(Uj=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Uj):u(Uj,16)):(Uj=Array(16),u(Uj,16));Uj[6]=Uj[6]&79|64;Uj[8]=Uj[8]&191|128;for(var W2="",is=0;is<16;++is){var su=Uj[is];if(is===4||is===6||is===8)W2+="-";su<16&&(W2+="0");W2+=su.toString(16).toLowerCase()}Uj="@@WeakMap@@"+W2}while(LO.call(td,Uj));td[Uj]=!0;return Uj}
function $a(Uj,W2){if(!LO.call(Uj,xa)){if(!W2)return;Object.defineProperty(Uj,xa,{value:Object.create(null)})}return Uj[xa]}
var ev=typeof global!=="undefined"&&typeof JNn==="object"&&typeof require==="function"&&require("crypto"),LO=Object.prototype.hasOwnProperty,td={},xa=w();K.prototype={has:function(Uj){return(Uj=$a(Uj,!1))?this._key in Uj:!1},
get:function(Uj){if(Uj=$a(Uj,!1))return Uj[this._key]},
set:function(Uj,W2){$a(Uj,!0)[this._key]=W2;return this},
delete:function(Uj){return(Uj=$a(Uj,!1))&&this._key in Uj?delete Uj[this._key]:!1},
clear:function(){this._key=w()}};
return K}
var y=Object.getPrototypeOf(Function),F=typeof Map==="function"?Map:B(),W=typeof Set==="function"?Set:A(),O=new (typeof WeakMap==="function"?WeakMap:t());G.decorate=function(K,u,w,$a){if(k($a)){if(k(w)){if(!Array.isArray(K))throw new TypeError;if(!x(u))throw new TypeError;for(w=K.length-1;w>=0;--w)if($a=(0,K[w])(u),!k($a)){if(!x($a))throw new TypeError;u=$a}return u}if(!Array.isArray(K))throw new TypeError;if(!L(u))throw new TypeError;w=f(w);for($a=K.length-1;$a>=0;--$a)(0,K[$a])(u,w)}else{if(Array.isArray(K))if(L(u)){if(k(w))throw new TypeError;
if(!L($a))throw new TypeError;}else throw new TypeError;else throw new TypeError;w=f(w);for(var ev=K.length-1;ev>=0;--ev){var LO=(0,K[ev])(u,w,$a);if(!k(LO)){if(!L(LO))throw new TypeError;$a=LO}}return $a}};
G.metadata=function(K,u){return function(w,$a){if(k($a)){if(!x(w))throw new TypeError;b(w,void 0,!0).set(K,u)}else{if(!L(w))throw new TypeError;$a=f($a);b(w,$a,!0).set(K,u)}}};
G.defineMetadata=function(K,u){var w;if(L(u))k(w)||(w=f(w));else throw new TypeError;b(u,w,!0).set("parameters",K)};
G.hasMetadata=function(K,u,w){if(L(u))k(w)||(w=f(w));else throw new TypeError;return I(K,u,w)};
G.hasOwnMetadata=function(K,u,w){if(L(u))k(w)||(w=f(w));else throw new TypeError;return h(K,u,w)};
G.getMetadata=function(K,u,w){if(L(u))k(w)||(w=f(w));else throw new TypeError;return q(K,u,w)};
G.getOwnMetadata=function(K,u,w){if(L(u))k(w)||(w=f(w));else throw new TypeError;return l(K,u,w)};
G.getMetadataKeys=function(K,u){if(L(K))k(u)||(u=f(u));else throw new TypeError;return V(K,u)};
G.getOwnMetadataKeys=function(K,u){if(L(K))k(u)||(u=f(u));else throw new TypeError;return D(K,u)};
G.deleteMetadata=function(K,u,w){if(L(u))k(w)||(w=f(w));else throw new TypeError;var $a=b(u,w,!1);if(!k($a)){if(!$a.delete(K))return!1;if($a.size>0)return!0;K=O.get(u);K.delete(w);if(K.size>0)return!0;O.delete(u);return!0}};
(function(K){if(typeof K.Reflect!=="undefined"){if(K.Reflect!==G)for(var u in G)K.Reflect[u]=G[u]}else K.Reflect=G})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(K6J||(K6J={}));var ZoO=self;var uuA=[0,_.JJ,_.RR,_.JJ];var Rc5=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Rc5,_.eo);var nQu=_.T7(Rc5,[0,_.pp,_.wU,uuA,_.RR,_.Xc]);var wvJ=[0,_.SR,-3,_.Xc,_.pp,_.JJ,_.UfX,_.SR,g3B,fYJ,W8,_.Kp,_.JJ,function(){return OGn},
_.RR],OGn=[0,_.wU,function(){return wvJ},
_.pp,14,_.SR];_.OE(_.QR,_.FN);_.m=_.QR.prototype;_.m.start=function(){this.stop();this.usingListeners_=!1;var G=EQW(this),b=pv8(this);G&&!b&&this.JSC$11383_win_.mozRequestAnimationFrame?(this.JSC$11383_id_=_.cv(this.JSC$11383_win_,"MozBeforePaint",this.callback_),this.JSC$11383_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11383_id_=G&&b?G.call(this.JSC$11383_win_,this.callback_):this.JSC$11383_win_.setTimeout(Jjb(this.callback_),20)};
_.m.stop=function(){if(this.isActive()){var G=EQW(this),b=pv8(this);G&&!b&&this.JSC$11383_win_.mozRequestAnimationFrame?eA(this.JSC$11383_id_):G&&b?b.call(this.JSC$11383_win_,this.JSC$11383_id_):this.JSC$11383_win_.clearTimeout(this.JSC$11383_id_)}this.JSC$11383_id_=null};
_.m.fire=function(){this.stop();this.JSC$11385_doAction_()};
_.m.isActive=function(){return this.JSC$11383_id_!=null};
_.m.JSC$11385_doAction_=function(){this.usingListeners_&&this.JSC$11383_id_&&eA(this.JSC$11383_id_);this.JSC$11383_id_=null;this.JSC$11383_listener_.call(this.handler_,_.nW())};
_.m.disposeInternal=function(){this.stop();_.QR.superClass_.disposeInternal.call(this)};
var EQW=function(G){G=G.JSC$11383_win_;return G.requestAnimationFrame||G.webkitRequestAnimationFrame||G.mozRequestAnimationFrame||G.oRequestAnimationFrame||G.msRequestAnimationFrame||null},pv8=function(G){G=G.JSC$11383_win_;
return G.cancelAnimationFrame||G.cancelRequestAnimationFrame||G.webkitCancelRequestAnimationFrame||G.mozCancelRequestAnimationFrame||G.oCancelRequestAnimationFrame||G.msCancelRequestAnimationFrame||null};_.GB=function(G,b,I){_.FN.call(this);this.JSC$11386_listener_=I!=null?G.bind(I):G;this.JSC$11386_interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11386_timer_=null};
_.M(_.GB,_.FN);_.m=_.GB.prototype;_.m.fire=function(G){this.args_=arguments;this.JSC$11386_timer_||this.pauseCount_?this.shouldFire_=!0:S0u(this)};
_.m.stop=function(){this.JSC$11386_timer_&&(_.hd.clearTimeout(this.JSC$11386_timer_),this.JSC$11386_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.m.pause=function(){this.pauseCount_++};
_.m.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11386_timer_||(this.shouldFire_=!1,S0u(this))};
_.m.disposeInternal=function(){_.FN.prototype.disposeInternal.call(this);this.stop()};
var S0u=function(G){G.JSC$11386_timer_=PZ(function(){G.JSC$11386_timer_=null;G.shouldFire_&&!G.pauseCount_&&(G.shouldFire_=!1,S0u(G))},G.JSC$11386_interval_);
var b=G.args_;G.args_=null;G.JSC$11386_listener_.apply(null,b)};var XvW=function(G,b){this.childIterator_=G[_.hd.Symbol.iterator]();this.mapFn_=b};
XvW.prototype[Symbol.iterator]=function(){return this};
XvW.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 $Kb=function(G,b){return new XvW(G,b)};var GBA={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 vBa=function(G){var b=bk5(G);if(!b)throw Error("Wd`"+G);return b},bk5=function(G){var b={};
G=String(G);var I=G.charAt(0)=="#"?G:"#"+G;if(IGu.test(I))return b.hex=jPO(I),b.type="hex",b;I=fTO(G);return I.length?(b.hex=K5v(I[0],I[1],I[2]),b.type="rgb",b):GBA&&(G=GBA[G.toLowerCase()])?(b.hex=G,b.type="named",b):null},huu=/#(.)(.)(.)/,jPO=function(G){if(!IGu.test(G))throw Error("Yd`"+G);
G.length==4&&(G=G.replace(huu,"#$1$1$2$2$3$3"));return G.toLowerCase()},LZq=function(G){G=jPO(G);
G=parseInt(G.slice(1),16);return[G>>16,G>>8&255,G&255]},K5v=function(G,b,I){G=Number(G);
b=Number(b);I=Number(I);if(G!=(G&255)||b!=(b&255)||I!=(I&255))throw Error("Zd`"+G+"`"+b+"`"+I);b=G<<16|b<<8|I;return G<16?"#"+(16777216|b).toString(16).slice(1):"#"+b.toString(16)},IGu=/^#(?:[0-9a-f]{3}){1,2}$/i,qdn=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,fTO=function(G){var b=G.match(qdn);
if(b){G=Number(b[1]);var I=Number(b[2]);b=Number(b[3]);if(G>=0&&G<=255&&I>=0&&I<=255&&b>=0&&b<=255)return[G,I,b]}return[]};var jrb={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},IG=jrb;IG=jrb;var InO,lGu,mKW;InO=function(G,b){switch(b){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};
lGu=function(G,b,I,h,q){G=new Date(G,b,I);q=q||0;return G.valueOf()+(((h!==void 0?h:3)-q+7)%7-((G.getDay()+6)%7-q+7)%7)*864E5};
_.dI=function(G,b,I){typeof G==="number"?(this.date=mKW(G,b||0,I||1),eub(this,I||1)):_.Oj(G)?(this.date=mKW(G.getFullYear(),G.getMonth(),G.getDate()),eub(this,G.getDate())):(this.date=new Date(_.nW()),G=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),eub(this,G))};
mKW=function(G,b,I){b=new Date(G,b,I);G>=0&&G<100&&b.setFullYear(b.getFullYear()-1900);return b};
_.m=_.dI.prototype;_.m.firstDayOfWeek_=IG.FIRSTDAYOFWEEK;_.m.firstWeekCutOffDay_=IG.FIRSTWEEKCUTOFFDAY;_.m.clone=function(){var G=new _.dI(this.date);G.firstDayOfWeek_=this.firstDayOfWeek_;G.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return G};
_.m.getFullYear=function(){return this.date.getFullYear()};
_.m.getYear=function(){return this.getFullYear()};
_.m.getMonth=function(){return this.date.getMonth()};
_.m.getDate=function(){return this.date.getDate()};
_.m.getTime=function(){return this.date.getTime()};
_.m.getDay=function(){return this.date.getDay()};
_.m.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.m.getUTCMonth=function(){return this.date.getUTCMonth()};
_.m.getUTCDate=function(){return this.date.getUTCDate()};
_.m.getUTCDay=function(){return this.date.getDay()};
_.m.getUTCHours=function(){return this.date.getUTCHours()};
_.m.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.m.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.m.set=function(G){this.date=new Date(G.getFullYear(),G.getMonth(),G.getDate())};
_.m.setFullYear=function(G){this.date.setFullYear(G)};
_.m.setYear=function(G){this.setFullYear(G)};
_.m.setMonth=function(G){this.date.setMonth(G)};
_.m.setDate=function(G){this.date.setDate(G)};
_.m.setTime=function(G){this.date.setTime(G)};
_.m.setUTCFullYear=function(G){this.date.setUTCFullYear(G)};
_.m.setUTCMonth=function(G){this.date.setUTCMonth(G)};
_.m.setUTCDate=function(G){this.date.setUTCDate(G)};
_.m.add=function(G){if(G.years||G.months){var b=this.getMonth()+G.months+G.years*12,I=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var h=Math.min(InO(I,b),this.getDate());this.setDate(1);this.setFullYear(I);this.setMonth(b);this.setDate(h)}G.days&&(I=this.getYear(),b=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()+b),this.setMonth(G.getMonth()),this.setDate(G.getDate()),eub(this,G.getDate()))};
_.m.JSC$11399_toIsoString=function(G){var b=this.getFullYear(),I=b<0?"-":b>=1E4?"+":"";return[I+_.jE(Math.abs(b),I?6:4),_.jE(this.getMonth()+1,2),_.jE(this.getDate(),2)].join(G?"-":"")};
_.m.equals=function(G){return!(!G||this.getYear()!=G.getYear()||this.getMonth()!=G.getMonth()||this.getDate()!=G.getDate())};
_.m.toString=function(){return this.JSC$11399_toIsoString()};
var eub=function(G,b){G.getDate()!=b&&G.date.setUTCHours(G.date.getUTCHours()+(G.getDate()<b?1:-1))};
_.dI.prototype.valueOf=function(){return this.date.valueOf()};var rI=function(G,b,I,h,q){this.reversed=!!b;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!I;G&&y2(this,G,h);this.depth=q!=void 0?q:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.OE(rI,DD);var y2=function(G,b,I,h){if(G.node=b)G.tagType=typeof I==="number"?I:G.node.nodeType!=1?0:G.reversed?-1:1;typeof h==="number"&&(G.depth=h)};
_.m=rI.prototype;_.m.JSC$11414_copyFrom=function(G){this.node=G.node;this.tagType=G.tagType;this.depth=G.depth;this.reversed=G.reversed;this.constrained=G.constrained};
_.m.clone=function(){return new rI(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.m.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return co;var G=this.node;var b=this.reversed?-1:1;if(this.tagType==b){var I=this.reversed?G.lastChild:G.firstChild;I?y2(this,I):y2(this,G,b*-1)}else(I=this.reversed?G.previousSibling:G.nextSibling)?y2(this,I):y2(this,G.parentNode,b*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(G=this.node)?kl(G):co};
_.m.equals=function(G){return G.node==this.node&&(!this.node||G.tagType==this.tagType)};
_.m.splice=function(G){var b=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;rI.prototype.next.call(this);this.reversed=!this.reversed;I=_.KO(arguments[0])?arguments[0]:arguments;for(var h=I.length-1;h>=0;h--)_.Fi(I[h],b);_.iG(b)};var VhB=function(){},FH=function(G){for(var b=[],I=G.getTextRangeCount(),h=0;h<I;h++)b.push(G.getTextRange(h));
return b};
VhB.prototype.isReversed=function(){return!1};
VhB.prototype.getWindow=function(){return Rk(_.ny(this.JSC$11416_getStartNode()))};
var DKi=function(G,b){rI.call(this,G,b,!0)};
_.OE(DKi,rI);var Hn=function(G,b,I,h,q){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!q;if(G){this.startNode_=G;this.startOffset_=b;this.endNode_=I;this.endOffset_=h;if(G.nodeType==1&&G.tagName!="BR")if(G=G.childNodes,b=G[b])this.startNode_=b,this.startOffset_=0;else{G.length&&(this.startNode_=_.rX(G));var l=!0}I.nodeType==1&&((this.endNode_=I.childNodes[h])?this.endOffset_=0:this.endNode_=I)}rI.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);l&&this.next()};
_.OE(Hn,DKi);_.m=Hn.prototype;_.m.JSC$11422_getStartNode=function(){return this.startNode_};
_.m.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)};
_.m.next=function(){return this.isLast()?co:Hn.superClass_.next.call(this)};
_.m.JSC$11414_copyFrom=function(G){this.startNode_=G.startNode_;this.endNode_=G.endNode_;this.startOffset_=G.startOffset_;this.endOffset_=G.endOffset_;this.isReversed_=G.isReversed_;Hn.superClass_.JSC$11414_copyFrom.call(this,G)};
_.m.clone=function(){var G=new Hn(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);G.JSC$11414_copyFrom(this);return G};var caQ=function(){};
caQ.prototype.__iterator__=function(){return new Hn(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Wn=function(G){this.range_=G};
_.OE(Wn,caQ);var kBJ=function(G){var b=_.ny(G).createRange();if(G.nodeType==3)b.setStart(G,0),b.setEnd(G,G.length);else if(dt(G)||G.nodeType==3){for(var I,h=G;(I=h.firstChild)&&(dt(I)||I.nodeType==3);)h=I;b.setStart(h,0);for(h=G;(I=h.lastChild)&&(dt(I)||I.nodeType==3);)h=I;b.setEnd(h,h.nodeType==1?h.childNodes.length:h.length)}else I=G.parentNode,G=Array.prototype.indexOf.call(I.childNodes,G),b.setStart(I,G),b.setEnd(I,G+1);return b},voi=function(G,b,I,h){var q=_.ny(G).createRange();
q.setStart(G,b);q.setEnd(I,h);return q};
_.m=Wn.prototype;_.m.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.m.getContainer=function(){return this.range_.commonAncestorContainer};
_.m.compareBrowserRangeEndpoints=function(G,b,I){return this.range_.compareBoundaryPoints(I==1?b==1?_.hd.Range.START_TO_START:_.hd.Range.START_TO_END:b==1?_.hd.Range.END_TO_START:_.hd.Range.END_TO_END,G)};
_.m.isCollapsed=function(){return this.range_.collapsed};
_.m.select=function(G){this.selectInternal(Rk(_.ny(this.range_.startContainer)).getSelection(),G)};
_.m.selectInternal=function(G){G.removeAllRanges();G.addRange(this.range_)};
_.m.insertNode=function(G,b){var I=this.range_.cloneRange();I.collapse(b);I.insertNode(G);I.detach();return G};
_.m.collapse=function(G){this.range_.collapse(G)};_.OE(xV,Wn);xV.prototype.selectInternal=function(G,b){!b||this.isCollapsed()?xV.superClass_.selectInternal.call(this,G,b):(G.collapse(this.range_.endContainer,this.range_.endOffset),G.extend(this.range_.startContainer,this.range_.startOffset))};_.OE(fJ,Wn);fJ.prototype.compareBrowserRangeEndpoints=function(G,b,I){return fJ.superClass_.compareBrowserRangeEndpoints.call(this,G,b,I)};
fJ.prototype.selectInternal=function(G,b){b?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 L2W=function(G){return _.$Y?new fJ(G):_.XE?new xV(G):new Wn(G)};var az=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},QrJ;
_.OE(az,VhB);QrJ=function(G,b){var I=new az;I.browserRangeWrapper_=G;I.isReversed_=!!b;return I};
_.xKe=function(G){G=_.$Y?new fJ(kBJ(G)):_.XE?new xV(kBJ(G)):new Wn(kBJ(G));return QrJ(G)};
_.NH=function(G,b,I,h){var q=new az;q.isReversed_=fGO(G,b,I,h);if(_.mG(G)&&!dt(G)){var l=G.parentNode;b=Array.prototype.indexOf.call(l.childNodes,G);G=l}_.mG(I)&&!dt(I)&&(l=I.parentNode,h=Array.prototype.indexOf.call(l.childNodes,I),I=l);q.isReversed_?(q.startNode_=I,q.startOffset_=h,q.endNode_=G,q.endOffset_=b):(q.startNode_=G,q.startOffset_=b,q.endNode_=I,q.endOffset_=h);return q};
_.m=az.prototype;_.m.clone=function(){var G=new az;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};
_.m.JSC$11416_getType=function(){return"text"};
_.m.getBrowserRangeObject=function(){return Yj(this).range_};
_.m.getTextRangeCount=function(){return 1};
_.m.getTextRange=function(){return this};
var Yj=function(G){var b;if(!(b=G.browserRangeWrapper_)){b=G.JSC$11416_getStartNode();var I=G.JSC$11416_getStartOffset(),h=G.JSC$11416_getEndNode(),q=G.JSC$11416_getEndOffset();b=_.$Y?new fJ(voi(b,I,h,q)):_.XE?new xV(voi(b,I,h,q)):new Wn(voi(b,I,h,q));b=G.browserRangeWrapper_=b}return b};
_.m=az.prototype;_.m.getContainer=function(){return Yj(this).getContainer()};
_.m.JSC$11416_getStartNode=function(){return this.startNode_||(this.startNode_=Yj(this).range_.startContainer)};
_.m.JSC$11416_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Yj(this).range_.startOffset};
_.m.JSC$11416_getEndNode=function(){return this.endNode_||(this.endNode_=Yj(this).range_.endContainer)};
_.m.JSC$11416_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Yj(this).range_.endOffset};
_.m.isReversed=function(){return this.isReversed_};
_.m.JSC$11416_containsRange=function(G,b){if(G.JSC$11416_getType()=="text"){var I=Yj(this);G=Yj(G);b=b&&!G.isCollapsed();G=G.range_;I=b?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};
_.m.isCollapsed=function(){return Yj(this).isCollapsed()};
_.m.JSC$11416_getText=function(){return Yj(this).range_.toString()};
_.m.__iterator__=function(){return new Hn(this.JSC$11416_getStartNode(),this.JSC$11416_getStartOffset(),this.JSC$11416_getEndNode(),this.JSC$11416_getEndOffset())};
_.m.select=function(){Yj(this).select(this.isReversed_)};
_.m.JSC$11416_removeContents=function(){var G=Yj(this).range_;G.extractContents();if(G.startContainer.hasChildNodes()&&(G=G.startContainer.childNodes[G.startOffset])){var b=G.previousSibling;azn(G)==""&&_.iG(G);b&&azn(b)==""&&_.iG(b)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.m.insertNode=function(G,b){G=Yj(this).insertNode(G,b);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return G};
_.m.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 TRQ=function(){};
_.OE(TRQ,VhB);TRQ.prototype.JSC$11416_containsRange=function(G,b){var I=FH(this);G=FH(G);return(b?qB:_.unv)(G,function(h){return qB(I,function(q){return q.JSC$11416_containsRange(h,b)})})};
TRQ.prototype.insertNode=function(G,b){b?_.rt(G,this.JSC$11416_getStartNode()):_.Fi(G,this.JSC$11416_getEndNode());return G};var BR8,UKn=rV().JSC$9399_document_.documentElement;BR8=UKn.requestFullscreen?"fullscreenchange":UKn.webkitRequestFullscreen?"webkitfullscreenchange":UKn.mozRequestFullScreen?"mozfullscreenchange":UKn.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var srb=function(){var G=rV().JSC$9399_document_;return!!(G.webkitIsFullScreen||G.mozFullScreen||G.msFullscreenElement||G.fullscreenElement)};var CF=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.OE(CF,TRQ);_.m=CF.prototype;_.m.clone=function(){var G=new CF;G.browserRanges_=_.Jd(this.browserRanges_);return G};
_.m.JSC$11416_getType=function(){return"mutli"};
_.m.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.m.getTextRangeCount=function(){return this.browserRanges_.length};
_.m.getTextRange=function(G){this.ranges_[G]||(this.ranges_[G]=QrJ(L2W(this.browserRanges_[G])));return this.ranges_[G]};
_.m.getContainer=function(){if(!this.container_){for(var G=[],b=this.getTextRangeCount(),I=0;I<b;I++)G.push(this.getTextRange(I).getContainer());this.container_=PeW.apply(null,G)}return this.container_};
var Jw=function(G){G.sortedRanges_||(G.sortedRanges_=FH(G),G.sortedRanges_.sort(function(b,I){var h=b.JSC$11416_getStartNode();b=b.JSC$11416_getStartOffset();var q=I.JSC$11416_getStartNode();I=I.JSC$11416_getStartOffset();return h==q&&b==I?0:fGO(h,b,q,I)?1:-1}));
return G.sortedRanges_};
_.m=CF.prototype;_.m.JSC$11416_getStartNode=function(){return Jw(this)[0].JSC$11416_getStartNode()};
_.m.JSC$11416_getStartOffset=function(){return Jw(this)[0].JSC$11416_getStartOffset()};
_.m.JSC$11416_getEndNode=function(){return _.rX(Jw(this)).JSC$11416_getEndNode()};
_.m.JSC$11416_getEndOffset=function(){return _.rX(Jw(this)).JSC$11416_getEndOffset()};
_.m.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.m.JSC$11416_getText=function(){return FH(this).map(function(G){return G.JSC$11416_getText()}).join("")};
_.m.__iterator__=function(){return new KF(this)};
_.m.select=function(){var G=this.getWindow().getSelection();G.removeAllRanges();for(var b=this.getTextRangeCount(),I=0;I<b;I++)G.addRange(this.getTextRange(I).getBrowserRangeObject())};
_.m.JSC$11416_removeContents=function(){FH(this).forEach(function(G){G.JSC$11416_removeContents()})};
_.m.collapse=function(G){if(!this.isCollapsed()){var b=G?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;b.collapse(G);this.ranges_=[b];this.sortedRanges_=[b];this.browserRanges_=[b.getBrowserRangeObject()]}};
var KF=function(G){this.iterators_=null;this.currentIdx_=0;G&&(this.iterators_=Jw(G).map(function(b){return _.rZJ(b)}));
rI.call(this,G?this.JSC$11422_getStartNode():null,!1,!0)};
_.OE(KF,DKi);_.m=KF.prototype;_.m.JSC$11422_getStartNode=function(){return this.iterators_[0].JSC$11422_getStartNode()};
_.m.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.m.next=function(){for(;this.currentIdx_<this.iterators_.length;){var G=this.iterators_[this.currentIdx_],b=G.next();if(b.done)this.currentIdx_++;else return y2(this,G.node,G.tagType,G.depth),b}return co};
_.m.JSC$11414_copyFrom=function(G){this.iterators_=_.Jd(G.iterators_);KF.superClass_.JSC$11414_copyFrom.call(this,G)};
_.m.clone=function(){var G=new KF(null);G.JSC$11414_copyFrom(this);return G};var goJ,fGO;_.SK=function(){var G=window.getSelection();return G&&goJ(G)};
goJ=function(G){var b=!1;if(G.createRange)try{var I=G.createRange()}catch(q){return null}else if(G.rangeCount){if(G.rangeCount>1){I=new CF;b=G.rangeCount;for(var h=0;h<b;h++)I.browserRanges_.push(G.getRangeAt(h));return I}I=G.getRangeAt(0);b=fGO(G.anchorNode,G.anchorOffset,G.focusNode,G.focusOffset)}else return null;return QrJ(L2W(I),b)};
_.uY=function(G,b){return _.NH(G,b,G,b)};
_.Rz=function(G,b,I,h){return _.NH(G,b,I,h)};
fGO=function(G,b,I,h){if(G==I)return h<b;var q;if(G.nodeType==1&&b)if(q=G.childNodes[b])G=q,b=0;else if(_.Sa(G,I))return!0;if(I.nodeType==1&&h)if(q=I.childNodes[h])I=q,h=0;else if(_.Sa(I,G))return!1;return(iy8(G,I)||b-h)>0};var nF=function(){_.Z$.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Hr)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Hr)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Hr)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Hr)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Hr)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Hr)(this.dispatchProgressEvent_,this)};
_.OE(nF,_.Z$);nF.prototype.abort=function(){try{this.reader_.abort()}catch(G){throw new aP5(G,"aborting read");}};
nF.prototype.getError=function(){return this.reader_.error&&new aP5(this.reader_.error,"reading file")};
nF.prototype.dispatchProgressEvent_=function(G){this.dispatchEvent(new NLQ(G,this))};
nF.prototype.disposeInternal=function(){nF.superClass_.disposeInternal.call(this);delete this.reader_};
var Mhn=function(G){var b=new nF,I=Aab(b);b.reader_.readAsArrayBuffer(G);return I},ZkA=function(G){var b=new nF,I=Aab(b);
b.reader_.readAsDataURL(G);return I},Aab=function(G){var b=new p4;
G.listen("loadend",_.l9(function(I,h){var q=h.reader_.result,l=h.getError();q==null||l?I.errback(l):I.callback(q);h.dispose()},b,G));
return b};var Oc=function(){_.Z$.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11456_eventHandler_=new _.Bh(this);this.JSC$11456_isInitialized_=!1};
_.OE(Oc,_.Z$);var thW=new _.BZ("d"),zun=new _.BZ("beforedragstart"),oon=new _.BZ("dragstart"),ikX=new _.BZ("beforedragmove"),Pkn=new _.BZ("dragmove"),dKA=new _.BZ("beforedragend"),yai=new _.BZ("dragend"),raB=new _.BZ("e");Oc.prototype.isDragging=function(){return!!this.JSC$11456_dragger_};
var F2X=function(G,b){b.dlgGrowthDirection_=0;b.dlgDragHoverClass_=void 0;b.dlgDragPermission=0;G.dragLists_.push(b)},Hkn=function(G,b){G.getHandleForDragItem_=b};
Oc.prototype.init=function(){if(!this.JSC$11456_isInitialized_){for(var G=this.dragLists_.length,b=0;b<G;b++)for(var I=_.Hm(this.dragLists_[b]),h=I.length,q=0;q<h;++q){var l=I[q],V=this.getHandleForDragItem_(l),D=_.Ej(V);this.dragItemForHandle_[D]=l;this.dragItemHoverClasses_&&(this.JSC$11456_eventHandler_.listen(l,"mouseover",this.handleDragItemMouseover_),this.JSC$11456_eventHandler_.listen(l,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11456_eventHandler_.listen(V,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11456_eventHandler_.listen(V,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(l);this.JSC$11456_eventHandler_.listen(V,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11456_isInitialized_=!0}};
Oc.prototype.disposeInternal=function(){this.JSC$11456_eventHandler_.dispose();for(var G=this.dragLists_.length,b=0;b<G;b++){var I=this.dragLists_[b];I.dlgGrowthDirection_=void 0;I.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;W2u(this);Oc.superClass_.disposeInternal.call(this)};
var aGe=function(G,b){for(var I=G.dragLists_.length,h=0;h<I;h++){var q=G.dragLists_[h];q.dlgBounds_=v4s(q)}I=G.dragItems_.length;for(h=0;h<I;h++)q=G.dragItems_[h],q!=b&&(q.dlgBounds_=v4s(q))};
_.m=Oc.prototype;
_.m.handlePotentialDragStart_=function(G){var b=_.Ej(G.currentTarget);b=this.dragItemForHandle_[b];if(b.parentElement.dlgDragPermission!=2){this.currDragItem_=b;a:{b=this.currDragItem_;for(var I=b.cloneNode(!0),h=Pr("TEXTAREA",b),q=Pr("TEXTAREA",I),l=0;l<h.length;l++)q[l].value=h[l].value;switch(b.tagName){case "TR":b=_.i0("TABLE",null,_.i0("TBODY",null,I));break a;case "TD":case "TH":b=_.i0("TABLE",null,_.i0("TBODY",null,_.i0("TR",null,I)));break a;case "TEXTAREA":I.value=b.value;default:b=I;break a}b=
void 0}this.draggerEl_=b;this.draggerElClasses_&&wp(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.ny(this.currDragItem_).body.appendChild(this.draggerEl_);I=_.Og(this.currDragItem_);b=this.draggerEl_;h=_.Og(b);if(I instanceof _.ue){var V=I.y;I=I.x}Cf(b,b.offsetLeft+(I-h.x),b.offsetTop+(Number(V)-h.y));this.JSC$11456_dragger_=new _.CE(this.draggerEl_);_.WHO(this.JSC$11456_dragger_,this.hysteresisDistance_);
_.cv(this.JSC$11456_dragger_,"start",this.handleDragStart_,!1,this);_.cv(this.JSC$11456_dragger_,"end",this.handleDragEnd_,!1,this);_.cv(this.JSC$11456_dragger_,"earlycancel",this.JSC$11458_cleanup_,!1,this);this.dispatchEvent(new wI(thW,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11456_dragger_));this.JSC$11456_dragger_.startDrag(G)}};
_.m.handleDragStart_=function(G){if(this.dispatchEvent(new wI(zun,this,G.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.tSb(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?wp(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var b=u0Q(this.draggerEl_);this.draggerEl_.halfWidth=b.width/2;this.draggerEl_.halfHeight=b.height/2;b=this.draggerEl_.getBoundingClientRect();
var I=G.clientY,h=a1B(this.JSC$11456_dragger_,G.clientX);if(h>b.right){var q=this.currDragItem_.getBoundingClientRect();this.JSC$11456_dragger_.deltaX=h-(h-q.left)/q.width*b.width}I=N2O(this.JSC$11456_dragger_,I);I>b.bottom&&(this.JSC$11456_dragger_.deltaY+=I-b.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";aGe(this,this.currDragItem_);this.currDragItem_.style.display="";_.cv(this.JSC$11456_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new wI(oon,
this,G.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11456_dragger_))}else G.preventDefault(),this.JSC$11458_cleanup_()};
_.m.handleDragMove_=function(G){var b=_.Og(this.draggerEl_);b=new _.ue(b.x+this.draggerEl_.halfWidth,b.y+this.draggerEl_.halfHeight);a:{var I=null;if(this.currDragItem_.style.display!="none"){I=this.currDragItem_.parentNode;var h=v4s(I);if(NRe(b,h))break a}h=this.dragLists_.length;for(var q=0;q<h;q++){var l=this.dragLists_[q];if(l!=I&&NRe(b,l.dlgBounds_)){I=l;break a}}I=null}if(I){if(I==null)throw Error("$d");h=0;q=!1;l=void 0;switch(I.dlgGrowthDirection_){case 0:h=b.y;var V=Ydu;var D=Ckn;break;case 4:q=
!0;case 2:h=b.x;V=Ja5;D=Ckn;break;case 5:q=!0;case 3:h=b.x,V=K2B,D=usO}for(var k=null,L,x=_.Hm(I),f=x.length,T=0;T<f;T++){var B=x[T];if(B!=this.currDragItem_){var A=V(B.dlgBounds_);if(q){var t=RuQ(B,b);l===void 0&&(l=t);D(h,A)&&(L==void 0||t<l||t==l&&(D(A,L)||A==L))&&(k=B,L=A);t<l&&(l=t)}else D(h,A)&&(L==void 0||D(A,L))&&(k=B,L=A)}}V=k!==null&&RuQ(k,b)>l?null:k}else V=null;if(!this.dispatchEvent(new wI(ikX,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11456_dragger_,b,I,V)))return!1;if(I&&I.dlgDragPermission!=
1)this.currDragItem_.parentNode==I&&_.tSb(this.currDragItem_)==V||I.insertBefore(this.currDragItem_,V),this.currDragItem_.style.display="",I.dlgDragHoverClass_&&_.Hv(I,I.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",D=this.dragLists_.length,L=0;L<D;L++)h=this.dragLists_[L],h.dlgDragHoverClass_&&_.r5(h,h.dlgDragHoverClass_);I!=this.currHoverList_&&(this.currHoverList_=I,aGe(this,this.currDragItem_));this.dispatchEvent(new wI(Pkn,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11456_dragger_,
b,I,V));return!1};
_.m.JSC$11458_cleanup_=function(){W2u(this);this.JSC$11456_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var G=this.dragLists_.length,b=0;b<G;b++)this.dragLists_[b].dlgBounds_=null;G=this.dragItems_.length;for(b=0;b<G;b++)this.dragItems_[b].dlgBounds_=null};
_.m.handleDragEnd_=function(G){if(!this.dispatchEvent(new wI(dKA,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11456_dragger_)))return!1;W2u(this);this.dispatchEvent(new wI(yai,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11456_dragger_));this.JSC$11458_cleanup_();return!0};
var W2u=function(G){_.VQ(G.JSC$11456_dragger_);var b=G.draggerEl_&&G.draggerEl_.parentElement;G.draggerEl_&&_.iG(G.draggerEl_);G.currDragItem_&&G.currDragItem_.style.display=="none"&&(G.origList_.insertBefore(G.currDragItem_,G.origNextItem_),G.currDragItem_.style.display="");G.currDragItemClasses_&&G.currDragItem_?F0W(G.currDragItem_,G.currDragItemClasses_||[]):G.currDragItem_&&(G.currDragItem_.style.visibility="");for(var I=G.dragLists_.length,h=0;h<I;h++){var q=G.dragLists_[h];q.dlgDragHoverClass_&&
_.r5(q,q.dlgDragHoverClass_)}b&&G.dispatchEvent(new wI(raB,G,null,G.currDragItem_,G.draggerEl_,G.JSC$11456_dragger_))};
_.m=Oc.prototype;_.m.getHandleForDragItem_=function(G){return G};
_.m.handleDragItemMouseover_=function(G){wp(G.currentTarget,this.dragItemHoverClasses_||[])};
_.m.handleDragItemMouseout_=function(G){F0W(G.currentTarget,this.dragItemHoverClasses_||[])};
_.m.handleDragItemHandleMouseover_=function(G){wp(G.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.m.handleDragItemHandleMouseout_=function(G){F0W(G.currentTarget,this.dragItemHandleHoverClasses_||[])};
var NRe=function(G,b){return G.x>b.left&&G.x<b.left+b.width&&G.y>b.top&&G.y<b.top+b.height},RuQ=function(G,b){G=G.dlgBounds_;
return Math.abs(b.y-(G.top+(G.height-1)/2))},Ydu=function(G){return G.top+G.height-1},Ja5=function(G){return G.left+G.width-1},K2B=function(G){return G.left||0},Ckn=function(G,b){return G<b},usO=function(G,b){return G>b},wI=function(G,b,I,h,q,l){_.Un.call(this,G);
this.event=I;this.currDragItem=h;this.draggerEl=q;this.JSC$11460_dragger=l};
_.OE(wI,_.Un);_.OE(Ui,_.FN);var noz=new _.ue(0,0);Ui.prototype.JSC$11464_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Ui.prototype.JSC$11464_onMouseMove=function(G){var b=this.containerIsActuallyContent_?noz:ya(rV(this.containerNode_)),I=this.horizontalScrolling_?this.calculateScrollDelta(G.clientX+b.x,this.scrollBounds_.left,this.scrollBounds_.width):0,h=this.calculateScrollDelta(G.clientY+b.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=I;this.scrollDelta_.y=h;!(I=!I&&!h)&&(I=this.constrainScroll_)&&(I=G.clientX+b.x,G=G.clientY+b.y,b=this.containerBounds_,I=!(b.left<=I&&b.left+b.width>=
I&&b.top<=G&&b.top+b.height>=G));I?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Ui.prototype.calculateScrollDelta=function(G,b,I){var h=0;G<b?h=-8:G>b+I&&(h=8);return h};
Ui.prototype.disposeInternal=function(){Ui.superClass_.disposeInternal.call(this);this.JSC$11462_eventHandler_.dispose();this.scrollTimer_.dispose()};var OkB={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"}}},Ec=OkB;Ec=OkB;var pF={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 wNb=function(){},Hj=function(G){if(typeof G=="number"){var b=new wNb;
b.standardOffset_=G;var I=G;if(I==0)I="Etc/GMT";else{var h=["Etc/GMT",I<0?"-":"+"];I=Math.abs(I);h.push(Math.floor(I/60)%100);I%=60;I!=0&&h.push(":",_.jE(I,2));I=h.join("")}b.timeZoneId_=I;I=G;I==0?I="UTC":(h=["UTC",I<0?"+":"-"],I=Math.abs(I),h.push(Math.floor(I/60)%100),I%=60,I!=0&&h.push(":",I),I=h.join(""));G=Eo8(G);b.tzNames_=[I,I];b.tzNamesExt_={STD_LONG_NAME_GMT:G,STD_GENERIC_LOCATION:G};b.transitions_=[];return b}b=new wNb;b.timeZoneId_=G.id;b.standardOffset_=-G.std_offset;b.tzNames_=G.names;
b.tzNamesExt_=G.names_ext;b.transitions_=G.transitions;return b},Eo8=function(G){var b=["GMT"];
b.push(G<=0?"+":"-");G=Math.abs(G);b.push(_.jE(Math.floor(G/60)%100,2),":",_.jE(G%60,2));return b.join("")},pNQ=function(G,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;
for(var I=0;I<G.transitions_.length&&b>=G.transitions_[I];)I+=2;return I==0?0:G.transitions_[I-1]},Sdz=function(G,b){G=G.standardOffset_-pNQ(G,b);
return G===-1440?0:G};var Wj=function(G,b){this.patternParts_=[];this.JSC$11475_dateTimeSymbols_=b||IG;typeof G=="number"?XN5(this,G):$tW(this,G)},GZn=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],SM=function(G){return G.getHours?G.getHours():0},$tW=function(G,b){for(gkB&&(b=b.replace(/\u200f/g,""));b;){for(var I=b,h=0;h<GZn.length;++h){var q=b.match(GZn[h]);
if(q){var l=q[0];b=b.substring(l.length);h==0&&(l=="''"?l="'":(l=l.substring(1,q[1]=="'"?l.length-1:l.length),l=l.replace(/''/g,"'")));G.patternParts_.push({text:l,type:h});break}}if(I===b)throw Error("ae`"+b);}};
Wj.prototype.format=function(G,b){if(!G)throw Error("be");var I=b?(G.getTimezoneOffset()-Sdz(b,G))*6E4:0,h=I?new Date(G.getTime()+I):G,q=h;b&&h.getTimezoneOffset()!=G.getTimezoneOffset()&&(h=new Date(h.getTime()+(h.getTimezoneOffset()-G.getTimezoneOffset())*6E4),q=new Date(G.getTime()+(I+(I>0?-864E5:864E5))));I=[];for(var l=0;l<this.patternParts_.length;++l){var V=this.patternParts_[l].text;1==this.patternParts_[l].type?I.push(bMz(this,V,G,h,q,b)):I.push(V)}return I.join("")};
var XN5=function(G,b){if(b<4)var I=G.JSC$11475_dateTimeSymbols_.DATEFORMATS[b];else if(b<8)I=G.JSC$11475_dateTimeSymbols_.TIMEFORMATS[b-4];else if(b<12)I=G.JSC$11475_dateTimeSymbols_.DATETIMEFORMATS[b-8],I=I.replace("{1}",G.JSC$11475_dateTimeSymbols_.DATEFORMATS[b-8]),I=I.replace("{0}",G.JSC$11475_dateTimeSymbols_.TIMEFORMATS[b-8]);else if(b===12)I=G.JSC$11475_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(b===13)I=G.JSC$11475_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{XN5(G,10);return}$tW(G,I)},XH=function(G,b){b=String(b);
G=G.JSC$11475_dateTimeSymbols_||IG;if(G.ZERODIGIT!==void 0&&!s4O){for(var I=[],h=0;h<b.length;h++){var q=b.charCodeAt(h);I.push(48<=q&&q<=57?String.fromCharCode(G.ZERODIGIT+q-48):b.charAt(h))}b=I.join("")}return b},s4O=!1,gkB=!1,hmO=function(G,b,I,h){I=I.getFullYear();
I<=0&&h&&(I=1-I);return XH(G,Iab(I,b))},Iab=function(G,b){b==2&&(G%=100);
G<0&&b++;return _.jE(G,b)},$6=function(G){if(!(G.getHours&&G.getSeconds&&G.getMinutes))throw Error("ce");
},q2n=function(G,b){$6(b);
b=SM(b);return G.JSC$11475_dateTimeSymbols_.AMPMS[b>=12&&b<24?1:0]},bMz=function(G,b,I,h,q,l){var V=b.length;
switch(b.charAt(0)){case "G":return I=h.getFullYear()>0?1:0,V>=4?G.JSC$11475_dateTimeSymbols_.ERANAMES[I]:G.JSC$11475_dateTimeSymbols_.ERAS[I];case "y":return hmO(G,V,h,!0);case "Y":return I=(new Date(lGu(h.getFullYear(),h.getMonth(),h.getDate(),G.JSC$11475_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,G.JSC$11475_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),V==2&&(I%=100),XH(G,Iab(I,V));case "u":return hmO(G,V,h,!1);case "M":a:switch(I=h.getMonth(),V){case 5:V=G.JSC$11475_dateTimeSymbols_.NARROWMONTHS[I];
break a;case 4:V=G.JSC$11475_dateTimeSymbols_.MONTHS[I];break a;case 3:V=G.JSC$11475_dateTimeSymbols_.SHORTMONTHS[I];break a;default:V=XH(G,_.jE(I+1,V))}return V;case "k":return $6(q),XH(G,_.jE(SM(q)||24,V));case "S":return XH(G,(q.getMilliseconds()/1E3).toFixed(Math.min(3,V)).slice(2)+(V>3?_.jE(0,V-3):""));case "E":return I=h.getDay(),V>=4?G.JSC$11475_dateTimeSymbols_.WEEKDAYS[I]:G.JSC$11475_dateTimeSymbols_.SHORTWEEKDAYS[I];case "a":return q2n(G,q);case "b":return q2n(G,q);case "B":return q2n(G,
q);case "h":return $6(q),XH(G,_.jE(SM(q)%12||12,V));case "K":return $6(q),XH(G,_.jE(SM(q)%12,V));case "H":return $6(q),XH(G,_.jE(SM(q),V));case "c":a:switch(I=h.getDay(),V){case 5:V=G.JSC$11475_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[I];break a;case 4:V=G.JSC$11475_dateTimeSymbols_.STANDALONEWEEKDAYS[I];break a;case 3:V=G.JSC$11475_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[I];break a;default:V=XH(G,_.jE(I,1))}return V;case "L":a:switch(I=h.getMonth(),V){case 5:V=G.JSC$11475_dateTimeSymbols_.STANDALONENARROWMONTHS[I];
break a;case 4:V=G.JSC$11475_dateTimeSymbols_.STANDALONEMONTHS[I];break a;case 3:V=G.JSC$11475_dateTimeSymbols_.STANDALONESHORTMONTHS[I];break a;default:V=XH(G,_.jE(I+1,V))}return V;case "Q":return I=Math.floor(h.getMonth()/3),V<4?G.JSC$11475_dateTimeSymbols_.SHORTQUARTERS[I]:G.JSC$11475_dateTimeSymbols_.QUARTERS[I];case "d":return XH(G,_.jE(h.getDate(),V));case "m":return $6(q),XH(G,_.jE(q.getMinutes?q.getMinutes():0,V));case "s":return $6(q),XH(G,_.jE(q.getSeconds(),V));case "v":return(l||Hj(I.getTimezoneOffset())).timeZoneId_;
case "V":return G=l||Hj(I.getTimezoneOffset()),V<=2?G.timeZoneId_:pNQ(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=lGu(q.getFullYear(),q.getMonth(),q.getDate(),G.JSC$11475_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,G.JSC$11475_dateTimeSymbols_.FIRSTDAYOFWEEK),XH(G,_.jE(Math.floor(Math.round((I-(new Date((new Date(I)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,V));case "z":return G=l||Hj(I.getTimezoneOffset()),V<4?G.tzNames_[pNQ(G,I)>0?2:0]:G.tzNames_[pNQ(G,I)>0?3:1];case "Z":return b=l||Hj(I.getTimezoneOffset()),V<4?(V=-Sdz(b,I),G=[V<0?"-":"+"],V=Math.abs(V),G.push(_.jE(Math.floor(V/60)%100,2),_.jE(V%60,2)),V=G.join("")):V=XH(G,Eo8(Sdz(b,I))),V;default:return""}};var jZi=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,laO=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,z5a=function(G){this.patternParts_=[];this.JSC$11484_dateTimeSymbols_=IG;if(typeof G=="number"){G>11&&(G=10);if(G<4)var b=this.JSC$11484_dateTimeSymbols_.DATEFORMATS[G];else G<8?b=this.JSC$11484_dateTimeSymbols_.TIMEFORMATS[G-4]:(b=this.JSC$11484_dateTimeSymbols_.DATETIMEFORMATS[G-8],b=b.replace("{1}",this.JSC$11484_dateTimeSymbols_.DATEFORMATS[G-8]),b=b.replace("{0}",this.JSC$11484_dateTimeSymbols_.TIMEFORMATS[G-
8]));mtn(this,b)}else mtn(this,G)},mtn=function(G,b){for(var I=!1,h="",q=0;q<b.length;q++){var l=b.charAt(q);
if(jZi.test(l))for(h.length>0&&(G.patternParts_.push({text:h,count:0,abutStart:!1,numeric:!1}),h=""),G.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});q<b.length-1&&b.charAt(q+1)==" ";)q++;else if(I)l=="'"?q+1<b.length&&b.charAt(q+1)=="'"?(h+="'",q++):I=!1:h+=l;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(l)>=0){h.length>0&&(G.patternParts_.push({text:h,count:0,abutStart:!1,numeric:!1}),h="");for(var V=b.charAt(q),D=q+1;D<b.length&&b.charAt(D)==V;)D++;V=D-q;V<=0?D=!1:(D="MydhHmsSDkK".indexOf(l),
D=D>0||D==0&&V<3);G.patternParts_.push({text:l,count:V,abutStart:!1,numeric:D});q+=V-1}else l=="'"?q+1<b.length&&b.charAt(q+1)=="'"?(h+="'",q++):I=!0:h+=l}h.length>0&&G.patternParts_.push({text:h,count:0,abutStart:!1,numeric:!1});b=!1;for(I=0;I<G.patternParts_.length;I++)G.patternParts_[I].numeric?!b&&I+1<G.patternParts_.length&&G.patternParts_[I+1].numeric&&(b=!0,G.patternParts_[I].abutStart=!0):b=!1};
z5a.prototype.parse=function(G,b,I){var h=!1,q=!1;I&&(h=I.predictive||!1,q=I.validate||!1);if(h)for(I=0;I<this.patternParts_.length;I++){var l=this.patternParts_[I];if(l.count>0&&("abBhHkKm".indexOf(l.text.charAt(0))<0||l.count>2||l.abutStart))throw Error("de`"+l.text.charAt(0));}l=new emO;I=[0];l.dayPeriodIndex=-1;for(var V=0;V<this.patternParts_.length&&!(h&&I[0]>=G.length);V++){if(this.patternParts_[V].count==0){a:{var D=G;var k=I,L=this.patternParts_[V],x=h;if(L.text.match(jZi)!=null){if(L=k[0],
VKz(D,k),k[0]>L){D=!0;break a}}else{if(D.indexOf(L.text,k[0])==k[0]){k[0]+=L.text.length;D=!0;break a}if(x&&L.text.indexOf(D.substring(k[0]))==0){k[0]+=D.length-k[0];D=!0;break a}}D=!1}if(D)continue;return 0}if(this.patternParts_[V].abutStart){a:{k=G;L=I;x=V;var f=L[0],T=0;for(D=x;D<this.patternParts_.length;D++){var B=this.patternParts_[D],A=B.count;if(A===0)break;if(D==x&&(A-=T,T++,A==0)){D=0;break a}var t=D>x&&B.numeric,y=L[0];if(!Dtn(this,k,L,B,A,l,!1)||t&&L[0]-y<A)D=x-1,L[0]=f}D-=x}if(D<=0)return 0;
V+=D-1}else if(!Dtn(this,G,I,this.patternParts_[V],0,l,h))return 0}a:{G=q;if(b==null)throw Error("ee");l.era!=void 0&&l.year!=void 0&&l.era==0&&l.year>0&&(l.year=-(l.year-1));l.year!=void 0&&b.setFullYear(l.year);h=b.getDate();b.setDate(1);l.month!=void 0&&b.setMonth(l.month);l.day!=void 0?b.setDate(l.day):(q=InO(b.getFullYear(),b.getMonth()),b.setDate(h>q?q:h));typeof b.setHours==="function"&&(l.hours==void 0&&(l.hours=b.getHours()),l.hours<12&&(l.ampm!=void 0&&l.ampm>0?l.hours+=12:l.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(l.dayPeriodName)||["night1","night2"].includes(l.dayPeriodName)&&l.hours>=6)&&(l.hours+=12)),b.setHours(l.hours));typeof b.setMinutes==="function"&&l.minutes!=void 0&&b.setMinutes(l.minutes);typeof b.setSeconds==="function"&&l.seconds!=void 0&&b.setSeconds(l.seconds);typeof b.setMilliseconds==="function"&&l.milliseconds!=void 0&&b.setMilliseconds(l.milliseconds);if(G&&(l.year&&l.year!=b.getFullYear()||l.month&&l.month!=
b.getMonth()||l.day&&l.day!=b.getDate()||l.hours&&l.hours>=24||l.minutes&&l.minutes>=60||l.seconds&&l.seconds>=60||l.milliseconds&&l.milliseconds>=1E3))b=!1;else{l.tzOffset!=void 0&&b.setTime(b.getTime()+(l.tzOffset-b.getTimezoneOffset())*60*1E3);l.ambiguousYear&&(G=new Date,G.setFullYear(G.getFullYear()-80),b.getTime()<G.getTime()&&b.setFullYear(G.getFullYear()+100));if(l.dayOfWeek!=void 0)if(l.day==void 0)l=(7+l.dayOfWeek-b.getDay())%7,l>3&&(l-=7),G=b.getMonth(),b.setDate(b.getDate()+l),b.getMonth()!=
G&&b.setDate(b.getDate()+(l>0?-7:7));else if(l.dayOfWeek!=b.getDay()){b=!1;break a}b=!0}}return b?I[0]:0};
var Dtn=function(G,b,I,h,q,l,V){VKz(b,I);if(h.numeric&&q>0&&I[0]+q>b.length)return!1;switch(h.text.charAt(0)){case "G":return GT(b,I,[G.JSC$11484_dateTimeSymbols_.ERAS],function(D){return l.era=D}),!0;
case "M":case "L":return cWi(G,b,I,q,h,l);case "E":return GT(b,I,[G.JSC$11484_dateTimeSymbols_.WEEKDAYS,G.JSC$11484_dateTimeSymbols_.SHORTWEEKDAYS],function(D){return l.dayOfWeek=D});
case "B":case "b":return q=[],G=[[].concat(G.JSC$11484_dateTimeSymbols_.AMPMS)],q.push("isAm"),q.push("isPm"),b=GT(b,I,G,function(D){return l.dayPeriodIndex=D},V),l.dayPeriodName=q[l.dayPeriodIndex],V?b:!0;
case "a":return b=GT(b,I,[G.JSC$11484_dateTimeSymbols_.AMPMS],function(D){return l.ampm=D},V),V?b:!0;
case "y":return kZi(G,b,I,h,q,l);case "Q":return GT(b,I,[G.JSC$11484_dateTimeSymbols_.QUARTERS,G.JSC$11484_dateTimeSymbols_.SHORTQUARTERS],function(D){l.month=D*3;l.day=1});
case "d":return bQ(G,b,I,h,q,function(D){l.day=D}),!0;
case "S":return vUe(G,b,I,q,l);case "h":case "K":case "H":case "k":return b=bQ(G,b,I,h,q,function(D){l.hours=h.text.charAt(0)==="h"&&D===12?0:D},V),V?b:!0;
case "m":return b=bQ(G,b,I,h,q,function(D){l.minutes=D},V),V?b:!0;
case "s":return bQ(G,b,I,h,q,function(D){l.seconds=D}),!0;
case "z":case "Z":case "v":return LAX(G,b,I,l);default:return!1}},kZi=function(G,b,I,h,q,l){var V=I[0];
q=Iu(G,b,I,q);q===null&&(q=Iu(G,b,I,0,!0));if(q===null)return!1;q>=0&&I[0]-V==2&&h.count==2?(G=q,b=(new Date).getFullYear()-80,I=b%100,l.ambiguousYear=G==I,G+=Math.floor(b/100)*100+(G<I?100:0),l.year=G):l.year=q;return!0},cWi=function(G,b,I,h,q,l){return q.numeric&&bQ(G,b,I,q,h,function(V){l.month=V-1})?!0:GT(b,I,[G.JSC$11484_dateTimeSymbols_.MONTHS,
G.JSC$11484_dateTimeSymbols_.STANDALONEMONTHS,G.JSC$11484_dateTimeSymbols_.SHORTMONTHS,G.JSC$11484_dateTimeSymbols_.STANDALONESHORTMONTHS],function(V){l.month=V})},vUe=function(G,b,I,h,q){var l=I[0];
G=Iu(G,b,I,h);if(G===null)return!1;I=I[0]-l;q.milliseconds=I<3?G*Math.pow(10,3-I):Math.round(G/Math.pow(10,I-3));return!0},LAX=function(G,b,I,h){b.indexOf("GMT",I[0])==I[0]&&(I[0]+=3);
if(I[0]>=b.length)return h.tzOffset=0,!0;var q=I[0],l=Iu(G,b,I,0,!0);if(l===null)return!1;if(I[0]<b.length&&b.charAt(I[0])==":"){var V=l*60;I[0]++;l=Iu(G,b,I,0);if(l===null)return!1;V+=l}else V=l,V=V<24&&I[0]-q<=3?V*60:V%100+V/100*60;h.tzOffset=-V;return!0},bQ=function(G,b,I,h,q,l,V){V=V||!1;
var D=I[0];G=Iu(G,b,I,q);if(G===null)return!1;if(V&&I[0]-D<h.count){if(I[0]<b.length)return!1;G*=Math.pow(10,h.count-(I[0]-D))}l(G);return!0},GT=function(G,b,I,h,q){q=q||!1;
for(var l,V=0;V<I.length;V++){l=b;for(var D=I[V],k=q,L=0,x=null,f=G.substring(l[0]).toLowerCase(),T=0;T<D.length;T++){var B=D[T].toLowerCase();if(k&&B.indexOf(f)==0){L=f.length;x=T;break}D[T].length>L&&f.indexOf(B)==0&&(L=D[T].length,x=T)}x!==null&&(l[0]+=L);l=x;if(l!==null)return h(l),!0}return!1},VKz=function(G,b){(G=G.substring(b[0]).match(laO))&&(b[0]+=G[0].length)},Iu=function(G,b,I,h,q){b=h>0?b.substring(0,I[0]+h):b;
q=q||!1;if(G.JSC$11484_dateTimeSymbols_.ZERODIGIT){h=[];for(var l=I[0];l<b.length;l++){var V=b.charCodeAt(l)-G.JSC$11484_dateTimeSymbols_.ZERODIGIT;h.push(0<=V&&V<=9?String.fromCharCode(V+48):b.charAt(l))}b=h.join("")}else b=b.substring(I[0]);G=b.match(new RegExp("^"+(q?"[+-]?":"")+"\\d+"));if(!G)return null;I[0]+=G[0].length;return parseInt(G[0],10)},emO=function(){};
emO.prototype.ambiguousYear=!1;var QZJ;
QZJ={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 xtW={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}"]};
xtW={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 fa5=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_=xtW;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]}};
fa5.prototype.format=function(G){return TQW(this,G)};
var TQW=function(G,b){var I=b.length;switch(I){case 0:return"";case 1:return String(b[0]);case 2:return G.listTwoPattern_.replace("{0}",String(b[0])).replace("{1}",String(b[1]))}for(var h=G.listStartPattern_.replace("{0}",String(b[0])).replace("{1}",String(b[1])),q=2;q<I-1;++q)h=G.listMiddlePattern_.replace("{0}",h).replace("{1}",String(b[q]));return G.listEndPattern_.replace("{0}",h).replace("{1}",String(b[I-1]))};var BQu={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"},UtW=BQu,sZn=BQu;sZn=UtW=BQu;var AWJ,hr,jb,kGO,qs,gUz;
_.yg=function(G,b,I,h){var q;if(q=b){a:if(b&&b.length===3){for(q=0;q<3;q++){var l=b[q];if(l<"A"||l>"Z"&&l<"a"||l>"z"){q=!1;break a}}q=!0}else q=!1;q=!q}if(q)throw new TypeError("fe");this.intlCurrencyCode_=b?b.toUpperCase():null;this.currencyStyle_=I||0;this.overrideNumberFormatSymbols_=h||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_=hr(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:qs(this,hr(this).DECIMAL_PATTERN);break;case 2:qs(this,hr(this).SCIENTIFIC_PATTERN);break;case 3:qs(this,hr(this).PERCENT_PATTERN);break;case 4:G=hr(this).CURRENCY_PATTERN;b=["0"];if(I=
pF[jb(this)]){I=I[0]&7;if(I>0)for(b.push("."),h=0;h<I;h++)b.push("0");G=G.replace(/0.00/g,b.join(""))}qs(this,G);break;case 5:gUz(this,1);break;case 6:gUz(this,2);break;default:throw Error("ie");}else qs(this,G)};
AWJ=!1;hr=function(G){return G.overrideNumberFormatSymbols_||(AWJ?sZn:UtW)};
jb=function(G){return G.intlCurrencyCode_||hr(G).DEF_CURRENCY_CODE};
kGO=function(G,b){if(b>308)throw Error("he`"+b);G.maximumFractionDigits_=b;return G};
qs=function(G,b){var I=[0];G.positivePrefix_=MKi(G,b,I);for(var h=I[0],q=-1,l=0,V=0,D=0,k=-1,L=b.length,x=!0;I[0]<L&&x;I[0]++)switch(b.charAt(I[0])){case "#":V>0?D++:l++;k>=0&&q<0&&k++;break;case "0":if(D>0)throw Error("oe`"+b);V++;k>=0&&q<0&&k++;break;case ",":k>0&&G.groupingArray_.push(k);k=0;break;case ".":if(q>=0)throw Error("pe`"+b);q=l+V+D;break;case "E":if(G.useExponentialNotation_)throw Error("qe`"+b);G.useExponentialNotation_=!0;G.minExponentDigits_=0;I[0]+1<L&&b.charAt(I[0]+1)=="+"&&(I[0]++,
G.useSignForPositiveExponent_=!0);for(;I[0]+1<L&&b.charAt(I[0]+1)=="0";)I[0]++,G.minExponentDigits_++;if(l+V<1||G.minExponentDigits_<1)throw Error("re`"+b);x=!1;break;default:I[0]--,x=!1}V==0&&l>0&&q>=0&&(V=q,V==0&&V++,D=l-V,l=V-1,V=1);if(q<0&&D>0||q>=0&&(q<l||q>l+V)||k==0)throw Error("se`"+b);D=l+V+D;G.maximumFractionDigits_=q>=0?D-q:0;q>=0&&(G.minimumFractionDigits_=l+V-q,G.minimumFractionDigits_<0&&(G.minimumFractionDigits_=0));G.minimumIntegerDigits_=(q>=0?q:D)-l;G.useExponentialNotation_&&(G.maximumIntegerDigits_=
l+G.minimumIntegerDigits_,G.maximumFractionDigits_==0&&G.minimumIntegerDigits_==0&&(G.minimumIntegerDigits_=1));G.groupingArray_.push(Math.max(0,k));G.decimalSeparatorAlwaysShown_=q==0||q==D;h=I[0]-h;G.positiveSuffix_=MKi(G,b,I);I[0]<b.length&&b.charAt(I[0])==";"?(I[0]++,G.multiplier_!=1&&(G.negativePercentSignExpected_=!0),G.negativePrefix_=MKi(G,b,I),I[0]+=h,G.negativeSuffix_=MKi(G,b,I)):(G.negativePrefix_+=G.positivePrefix_,G.negativeSuffix_+=G.positiveSuffix_)};
gUz=function(G,b){G.compactStyle_=b;qs(G,hr(G).DECIMAL_PATTERN);G.minimumFractionDigits_=0;kGO(G,2);if(G.minimumFractionDigits_>0)throw Error("ge");G.significantDigits_=2};
_.yg.prototype.parse=function(G,b){b=b||[0];if(this.compactStyle_!==0)throw Error("je");G=G.replace(/ |\u202f/g,"\u00a0");var I=G.indexOf(this.positivePrefix_,b[0])==b[0],h=G.indexOf(this.negativePrefix_,b[0])==b[0];I&&h&&(this.positivePrefix_.length>this.negativePrefix_.length?h=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(I=!1));I?b[0]+=this.positivePrefix_.length:h&&(b[0]+=this.negativePrefix_.length);if(G.indexOf(hr(this).INFINITY,b[0])==b[0]){b[0]+=hr(this).INFINITY.length;var q=
Infinity}else{q=G;var l=!1,V=!1,D=!1,k=-1,L=1,x=hr(this).DECIMAL_SEP,f=hr(this).GROUP_SEP,T=hr(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");f=f.replace(/\u202f/g,"\u00a0");for(var B="";b[0]<q.length;b[0]++){var A=q.charAt(b[0]),t=ZMi(this,A);if(t>=0&&t<=9)B+=t,D=!0;else if(A==x.charAt(0)){if(l||V)break;B+=".";l=!0}else if(A==f.charAt(0)&&("\u00a0"!=f.charAt(0)||b[0]+1<q.length&&ZMi(this,q.charAt(b[0]+1))>=0)){if(l||V)break}else if(A==T.charAt(0)){if(V)break;B+="E";V=!0;k=b[0]}else if(A==
"+"||A=="-"){if(D&&k!=b[0]-1)break;B+=A}else if(this.multiplier_==1&&A==hr(this).PERCENT.charAt(0)){if(L!=1)break;L=100;if(D){b[0]++;break}}else if(this.multiplier_==1&&A==hr(this).PERMILL.charAt(0)){if(L!=1)break;L=1E3;if(D){b[0]++;break}}else break}this.multiplier_!=1&&(L=this.multiplier_);q=parseFloat(B)/L}if(I){if(G.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(h){if(G.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return h?
-q:q};
_.yg.prototype.format=function(G){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(G))return hr(this).NAN;var b=[];var I=G;if(this.compactStyle_==0)I=lQ;else{I=Math.abs(I);var h=tKW(this,I<=1?0:zmz(I)).divisorBase;I=tKW(this,h+zmz(oUi(this,ml(I,-h)).intValue))}G=ml(G,-I.divisorBase);(h=G<0||G==0&&1/G<0)?I.negative_prefix?b.push(I.negative_prefix):(b.push(I.prefix),b.push(this.negativePrefix_)):(b.push(I.prefix),b.push(this.positivePrefix_));if(isFinite(G))if(G*=
h?-1:1,G*=this.multiplier_,this.useExponentialNotation_){var q=G;if(q==0)iMn(this,q,this.minimumIntegerDigits_,b),PAW(this,0,b);else{var l=Math.floor(Math.log(q)/Math.log(10)+2E-15);q=ml(q,-l);var V=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(V=l%this.maximumIntegerDigits_,V<0&&(V=this.maximumIntegerDigits_+V),q=ml(q,V),l-=V,V=1):this.minimumIntegerDigits_<1?(l++,q=ml(q,-1)):(l-=this.minimumIntegerDigits_-1,q=ml(q,this.minimumIntegerDigits_-
1));iMn(this,q,V,b);PAW(this,l,b)}}else iMn(this,G,this.minimumIntegerDigits_,b);else b.push(hr(this).INFINITY);h?I.negative_suffix?b.push(I.negative_suffix):(isFinite(G)&&b.push(I.suffix),b.push(this.negativeSuffix_)):(isFinite(G)&&b.push(I.suffix),b.push(this.positiveSuffix_));return b.join("")};
var oUi=function(G,b){var I=ml(b,G.maximumFractionDigits_);G.significantDigits_>0&&(I=dte(I,G.significantDigits_,G.maximumFractionDigits_));I=Math.round(I);if(isFinite(I)){var h=Math.floor(ml(I,-G.maximumFractionDigits_));I=Math.floor(I-ml(h,G.maximumFractionDigits_));if(I<0||I>=ml(1,G.maximumFractionDigits_))h=Math.round(b),I=0}else h=b,I=0;return{intValue:h,fracValue:I}},iMn=function(G,b,I,h){if(G.minimumFractionDigits_>G.maximumFractionDigits_)throw Error("le");
h||(h=[]);b=oUi(G,b);var q=b.intValue,l=b.fracValue,V=G.minimumFractionDigits_>0||l>0||!1;b=G.minimumFractionDigits_;V&&(b=G.minimumFractionDigits_);for(var D="",k=q;k>1E20;)D="0"+D,k=Math.round(ml(k,-1));D=k+D;var L=hr(G).DECIMAL_SEP;k=hr(G).ZERO_DIGIT.codePointAt(0);var x=D.length,f=0;if(q>0||I>0){for(q=x;q<I;q++)h.push(String.fromCodePoint(k));if(G.groupingArray_.length>=2)for(I=1;I<G.groupingArray_.length;I++)f+=G.groupingArray_[I];I=x-f;if(I>0){q=G.groupingArray_;f=x=0;for(var T,B=hr(G).GROUP_SEP,
A=D.length,t=0;t<A;t++)if(h.push(String.fromCodePoint(k+Number(D.charAt(t)))),A-t>1)if(T=q[f],t<I){var y=I-t;(T===1||T>0&&y%T===1)&&h.push(B)}else f<q.length&&(t===I?f+=1:T===t-I-x+1&&(h.push(B),x+=T,f+=1))}else{I=D;D=G.groupingArray_;q=hr(G).GROUP_SEP;T=I.length;B=[];for(x=D.length-1;x>=0&&T>0;x--){f=D[x];for(A=0;A<f&&T-A-1>=0;A++)B.push(String.fromCodePoint(k+Number(I.charAt(T-A-1))));T-=f;T>0&&B.push(q)}h.push.apply(h,B.reverse())}}else V||h.push(String.fromCodePoint(k));(G.decimalSeparatorAlwaysShown_||
V)&&h.push(L);l=String(l);V=l.split("e+");V.length==2&&(l=String(dte(parseFloat(V[0]),G.significantDigits_,1)),l=l.replace(".",""),l+=(0,_.cjn)("0",parseInt(V[1],10)-l.length+1));G.maximumFractionDigits_+1>l.length&&(l="1"+(0,_.cjn)("0",G.maximumFractionDigits_-l.length)+l);for(G=l.length;l.charAt(G-1)=="0"&&G>b+1;)G--;for(b=1;b<G;b++)h.push(String.fromCodePoint(k+Number(l.charAt(b))))},PAW=function(G,b,I){I.push(hr(G).EXP_SYMBOL);
b<0?(b=-b,I.push(hr(G).MINUS_SIGN)):G.useSignForPositiveExponent_&&I.push(hr(G).PLUS_SIGN);b=""+b;for(var h=hr(G).ZERO_DIGIT,q=b.length;q<G.minExponentDigits_;q++)I.push(h);G=h.codePointAt(0)-yWW;for(h=0;h<b.length;h++)I.push(String.fromCodePoint(G+b.codePointAt(h)))},ZMi=function(G,b){b=b.codePointAt(0);
if(48<=b&&b<58)return b-48;G=hr(G).ZERO_DIGIT.codePointAt(0);return G<=b&&b<G+10?b-G:-1},yWW="0".codePointAt(0),MKi=function(G,b,I){for(var h="",q=!1,l=b.length;I[0]<l;I[0]++){var V=b.charAt(I[0]);
if(V=="'")I[0]+1<l&&b.charAt(I[0]+1)=="'"?(I[0]++,h+="'"):q=!q;else if(q)h+=V;else switch(V){case "#":case "0":case ",":case ".":case ";":return h;case "\u00a4":if(I[0]+1<l&&b.charAt(I[0]+1)=="\u00a4")I[0]++,h+=jb(G);else switch(G.currencyStyle_){case 0:V=jb(G);h+=V in pF?pF[V][1]:V;break;case 2:V=jb(G);var D=pF[V];h+=D?V==D[1]?V:V+" "+D[1]:V;break;case 1:V=jb(G),h+=V in pF?pF[V][2]:V}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;h+=hr(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;h+=hr(G).PERMILL;break;default:h+=V}}return h},lQ={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},tKW=function(G,b){G=G.compactStyle_==1?Ec.COMPACT_DECIMAL_SHORT_PATTERN:Ec.COMPACT_DECIMAL_LONG_PATTERN;G==null&&(G=Ec.COMPACT_DECIMAL_SHORT_PATTERN);if(b<3)return lQ;b=Math.min(14,b);var I=G[ml(1,b)];for(--b;!I&&b>=3;)I=G[ml(1,b)],b--;if(!I)return lQ;I=I.other;var h=G="",q=I.indexOf(";");q>=0&&(I=I.substring(0,q),q=I.substring(q+1))&&(h=/([^0]*)(0+)(.*)/.exec(q),G=h[1],h=h[3]);return I&&I!="0"?(I=/([^0]*)(0+)(.*)/.exec(I))?{divisorBase:b+
1-(I[2].length-1),negative_prefix:G,negative_suffix:h,prefix:I[1],suffix:I[3]}:lQ:lQ},zmz=function(G){if(!isFinite(G))return G>0?G:0;
for(var b=0;(G/=10)>=1;)b++;return b},ml=function(G,b){if(!G||!isFinite(G)||b==0)return G;
G=String(G).split("e");return parseFloat(G[0]+"e"+(parseInt(G[1]||0,10)+b))},rWO=function(G,b){return G&&isFinite(G)?ml(Math.round(ml(G,b)),-b):G},dte=function(G,b,I){if(!G)return G;
b=b-zmz(G)-1;return b<-I?rWO(G,-I):rWO(G,b)};var FAu=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"},HMQ=FAu;
HMQ=FAu;var WAA=function(G,b){var I=G|0;if(void 0===b){b=Math;var h=b.min,q=G+"",l=q.indexOf(".");b=h.call(b,l===-1?0:q.length-l-1,3)}h=Math.pow(10,b);G={v:b,f:(G*h|0)%h};return I==1&&G.v==0?"one":"other"},d4=WAA;
d4=WAA;var CAA=function(G){this.JSC$11527_pattern_=G;this.parsedPattern_=this.literals_=this.initialLiterals_=null;G=UtW;var b=Ec;if(aan!==G||NQ5!==b)aan=G,NQ5=b,Y2O=new _.yg(1);this.numberFormatter_=Y2O},aan=null,NQ5=null,Y2O=null,JW8=RegExp("'([{}#].*?)'","g"),KA8=RegExp("''","g");
CAA.prototype.format=function(G){if(this.JSC$11527_pattern_){this.initialLiterals_=[];var b=umQ(this,this.JSC$11527_pattern_);this.parsedPattern_=Rmi(this,b);this.JSC$11527_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Jd(this.initialLiterals_),b=[],nUu(this,this.parsedPattern_,G,!1,b),G=b.join("");this.literals_.length>0;)G=G.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else G="";return G};
var nUu=function(G,b,I,h,q){for(var l=0;l<b.length;l++)switch(b[l].type){case 4:q.push(b[l].value);break;case 3:var V=b[l].value;var D=G,k=q,L=I[V];L===void 0?k.push("Undefined parameter - "+V):(D.literals_.push(L),k.push(D.buildPlaceholder_(D.literals_)));break;case 2:V=b[l].value;D=G;k=I;L=h;var x=q,f=V.argumentIndex;k[f]===void 0?x.push("Undefined parameter - "+f):(f=V[k[f]],f===void 0&&(f=V.other),nUu(D,f,k,L,x));break;case 0:V=b[l].value;OMi(G,V,I,d4,h,q);break;case 1:V=b[l].value,OMi(G,V,I,
HMQ,h,q)}},OMi=function(G,b,I,h,q,l){var V=b.argumentIndex,D=b.argumentOffset,k=+I[V];
isNaN(k)?l.push("Undefined or invalid parameter - "+V):(D=k-D,V=b[I[V]],V===void 0&&(h=h(Math.abs(D)),V=b[h],V===void 0&&(V=b.other)),b=[],nUu(G,V,I,q,b),I=b.join(""),q?l.push(I):(G=G.numberFormatter_.format(D),l.push(I.replace(/#/g,G))))},umQ=function(G,b){var I=G.initialLiterals_,h=G.buildPlaceholder_.bind(G);
b=b.replace(KA8,function(){I.push("'");return h(I)});
return b=b.replace(JW8,function(q,l){I.push(l);return h(I)})},wHn=function(G){var b=0,I=[],h=[],q=/[{}]/g;
q.lastIndex=0;for(var l;l=q.exec(G);){var V=l.index;l[0]=="}"?(I.pop(),I.length==0&&(l={type:1},l.value=G.substring(b,V),h.push(l),b=V+1)):(I.length==0&&(b=G.substring(b,V),b!=""&&h.push({type:0,value:b}),b=V+1),I.push("{"))}G=G.substring(b);G!=""&&h.push({type:0,value:G});return h},EUO=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,pHz=/^\s*(\w+)\s*,\s*selectordinal\s*,/,S2A=/^\s*(\w+)\s*,\s*select\s*,/,Rmi=function(G,b){var I=[];
b=wHn(b);for(var h=0;h<b.length;h++){var q={};if(0==b[h].type)q.type=4,q.value=b[h].value;else if(1==b[h].type){var l=b[h].value;switch(EUO.test(l)?0:pHz.test(l)?1:S2A.test(l)?2:/^\s*\w+\s*/.test(l)?3:5){case 2:q.type=2;q.value=XHu(G,b[h].value);break;case 0:q.type=0;q.value=$AQ(G,b[h].value);break;case 1:q.type=1;q.value=GIn(G,b[h].value);break;case 3:q.type=3,q.value=b[h].value}}I.push(q)}return I},XHu=function(G,b){var I="";
b=b.replace(S2A,function(D,k){I=k;return""});
var h={};h.argumentIndex=I;b=wHn(b);for(var q=0;q<b.length;){var l=b[q].value;q++;var V=void 0;1==b[q].type&&(V=Rmi(G,b[q].value));h[l.replace(/\s/g,"")]=V;q++}return h},$AQ=function(G,b){var I="",h=0;
b=b.replace(EUO,function(k,L,x){I=L;x&&(h=parseInt(x,10));return""});
var q={};q.argumentIndex=I;q.argumentOffset=h;b=wHn(b);for(var l=0;l<b.length;){var V=b[l].value;l++;var D=void 0;1==b[l].type&&(D=Rmi(G,b[l].value));q[V.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=D;l++}return q},GIn=function(G,b){var I="";
b=b.replace(pHz,function(D,k){I=k;return""});
var h={};h.argumentIndex=I;h.argumentOffset=0;b=wHn(b);for(var q=0;q<b.length;){var l=b[q].value;q++;var V=void 0;1==b[q].type&&(V=Rmi(G,b[q].value));h[l.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=V;q++}return h};
CAA.prototype.buildPlaceholder_=function(G){return"\ufddf_"+(G.length-1).toString(10)+"_"};var Vtr=function(){var G={style:1},b=bcO;this.style_=(G==null?void 0:G.style)||0;this.durationSymbols_=b||QZJ},IAJ=function(G,b){switch(b){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}},eb=function(G,b,I){a:{I=IAJ(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 CAA("{DURATION_VALUE,plural,"+G+"}")).format({DURATION_VALUE:b}):""};
Vtr.prototype.format=function(G){var b=[],I=G.years,h=G.months,q=G.weeks,l=G.days,V=G.hours,D=G.minutes;G=G.seconds;I!=null&&b.push(eb(this,I,"years"));h!=null&&b.push(eb(this,h,"months"));q!=null&&b.push(eb(this,q,"weeks"));l!=null&&b.push(eb(this,l,"days"));V!=null&&b.push(eb(this,V,"hours"));D!=null&&b.push(eb(this,D,"minutes"));G!=null&&b.push(eb(this,G,"seconds"));return(new fa5).format(b)};var hQn;
hQn={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 b9a=function(){this.rdtfSymbols_=q4z||hQn;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
b9a.prototype.format=function(G,b){a:{b=jGX(this,b);switch(this.style_){case 2:if(b.NARROW!=void 0){b=b.NARROW;break a}case 1:if(b.SHORT!=void 0){b=b.SHORT;break a}default:b=b.LONG;break a}b=void 0}if(!this.alwaysNumeric_&&b&&b.R&&b.R[""+G])G=b.R[""+G];else if(b){var I=Math.abs(G);G=(new CAA("{N,plural,"+(G>0||G==0&&1/G==Infinity?b.F:b.P)+"}")).format({N:I})}else G="";return G};
var jGX=function(G,b){switch(b){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 lAQ=function(G,b,I,h,q,l,V,D){this.x0=G;this.y0=b;this.x1=I;this.y1=h;this.x2=q;this.y2=l;this.x3=V;this.y3=D};
lAQ.prototype.clone=function(){return new lAQ(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
lAQ.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 mAO=function(G,b){if(b==0)return G.x0;if(b==1)return G.x3;var I=ZI(G.x0,G.x1,b),h=ZI(G.x1,G.x2,b);G=ZI(G.x2,G.x3,b);I=ZI(I,h,b);h=ZI(h,G,b);return ZI(I,h,b)},eQi=function(G,b){var I=(b-G.x0)/(G.x3-G.x0);
if(I<=0)return 0;if(I>=1)return 1;for(var h=0,q=1,l=0,V=0;V<8;V++){l=mAO(G,I);var D=(mAO(G,I+1E-6)-l)/1E-6;if(Math.abs(l-b)<1E-6)return I;if(Math.abs(D)<1E-6)break;else l<b?h=I:q=I,I-=(l-b)/D}for(V=0;Math.abs(l-b)>1E-6&&V<8;V++)l<b?(h=I,I=(I+q)/2):(q=I,I=(I+h)/2),l=mAO(G,I);return I};var Vl=function(){_.Z$.call(this);this.JSC$11548_name_="closure_frame"+VNX++;this.iframesForDisposal_=[];DAe[this.JSC$11548_name_]=this},Di;
_.OE(Vl,_.Z$);var DAe={},VNX=0,cxW=function(G,b){var I=rV(G);QBz(b,function(h,q){Array.isArray(h)||(h=[h]);_.hB(h,function(l){l=I.JSC$9401_createDom("INPUT",{type:"hidden",name:q,value:l});G.appendChild(l)})})};
_.m=Vl.prototype;_.m.JSC$11550_form_=null;_.m.JSC$11550_iframe_=null;_.m.iframeName_=null;_.m.nextIframeId_=0;_.m.JSC$11550_active_=!1;_.m.complete_=!1;_.m.success_=!1;_.m.lastContent_=null;_.m.JSC$11550_lastErrorCode_=0;_.m.iframeDisposalTimer_=null;
_.m.send=function(G,b,I,h){if(this.JSC$11550_active_)throw Error("te");G=new _.a3(G);b=b?b.toUpperCase():"GET";I&&_.km(G);Di||(Di=_.i0("FORM"),Di.acceptCharset="utf-8",I=Di.style,I.position="absolute",I.visibility="hidden",I.top=I.left="-10px",I.width=I.height="10px",I.overflow="hidden",document.body.appendChild(Di));this.JSC$11550_form_=Di;b=="GET"&&cxW(this.JSC$11550_form_,G.JSC$10105_queryData_);h&&cxW(this.JSC$11550_form_,h);I=G.toString();I=CBp(I);h=this.JSC$11550_form_;I=_.nA(Hg(I));I!==void 0&&
(h.action=I);this.JSC$11550_form_.method=b;kIQ(this);vgu(this)};
_.m.abort=function(G){if(this.JSC$11550_active_){var b=cO(this);if(b)if(gp(b))b.removeAllListeners(void 0);else if(b=AK(b)){var I=0,h;for(h in b.listeners)for(var q=b.listeners[h].concat(),l=0;l<q.length;++l)eA(q[l])&&++I}this.success_=this.JSC$11550_active_=this.complete_=!1;this.JSC$11550_lastErrorCode_=G||7;this.dispatchEvent("abort");Lan(this)}};
_.m.disposeInternal=function(){this.JSC$11550_active_&&this.abort();Vl.superClass_.disposeInternal.call(this);this.JSC$11550_iframe_&&QGX(this);vgu(this);this.JSC$11550_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11550_form_=null;this.JSC$11550_lastErrorCode_=0;delete DAe[this.JSC$11548_name_]};
_.m.isComplete=function(){return this.complete_};
_.m.isSuccess=function(){return this.success_};
_.m.isActive=function(){return this.JSC$11550_active_};
_.m.getResponseText=function(){return this.lastContent_};
_.m.getLastError=function(){return _.nzA(this.JSC$11550_lastErrorCode_)};
var kIQ=function(G){G.JSC$11550_active_=!0;G.complete_=!1;G.JSC$11550_lastErrorCode_=0;G.iframeName_=G.JSC$11548_name_+"_"+(G.nextIframeId_++).toString(36);G.JSC$11550_iframe_=rV(G.JSC$11550_form_).JSC$9401_createDom("IFRAME",{name:G.iframeName_,id:G.iframeName_});var b=G.JSC$11550_iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";_.$Y?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");rV(G.JSC$11550_form_).JSC$9399_document_.body.appendChild(G.JSC$11550_iframe_);
b=G.iframeName_+"_inner";var I=dbO(G.JSC$11550_iframe_);if(document.baseURI){var h=Sh(b);h='<head><base href="'+Sh(document.baseURI)+'"></head><body><iframe id="'+h+'" name="'+h+'"></iframe>';h=Ev(h)}else h=Sh(b),h=Ev('<body><iframe id="'+h+'" name="'+h+'"></iframe>');I.write(Xa(h));_.cv(I.getElementById(b),"load",G.onIframeLoaded_,!1,G);h=Pr("TEXTAREA",G.JSC$11550_form_);for(var q=0,l=h.length;q<l;q++){var V=h[q].value;azn(h[q])!=V&&(_.Wm(h[q],V),h[q].value=V)}h=I.importNode(G.JSC$11550_form_,!0);
h.target=b;h.action=G.JSC$11550_form_.action;I.body.appendChild(h);q=Pr("SELECT",G.JSC$11550_form_);l=Pr("SELECT",h);V=0;for(var D=q.length;V<D;V++)for(var k=Pr("OPTION",q[V]),L=Pr("OPTION",l[V]),x=0,f=k.length;x<f;x++)L[x].selected=k[x].selected;q=Pr("INPUT",G.JSC$11550_form_);l=Pr("INPUT",h);V=0;for(D=q.length;V<D;V++)if(q[V].type=="file"&&q[V].value!=l[V].value){G.JSC$11550_form_.target=b;h=G.JSC$11550_form_;break}try{G.errorHandled_=!1,h.submit(),I.close(),_.XE&&setTimeout(G.testForFirefoxSilentError_.bind(G),
250)}catch(T){_.ML(I.getElementById(b),"load",G.onIframeLoaded_,!1,G),I.close(),k6(G,2)}};
Vl.prototype.onIframeLoaded_=function(){_.ML(cO(this),"load",this.onIframeLoaded_,!1,this);try{var G=this.JSC$11550_iframe_?dbO(cO(this)):null;this.complete_=!0;this.JSC$11550_active_=!1;try{var b=G.body;this.lastContent_=b.textContent||b.innerText}catch(q){var I=1}var h;I||typeof this.errorChecker_!="function"||(h=this.errorChecker_(G))&&(I=4);I?k6(this,I):(this.success_=!0,this.JSC$11550_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Lan(this))}catch(q){k6(this,1)}};
var k6=function(G,b){G.errorHandled_||(G.success_=!1,G.JSC$11550_active_=!1,G.complete_=!0,G.JSC$11550_lastErrorCode_=b,G.dispatchEvent("complete"),G.dispatchEvent("error"),Lan(G),G.errorHandled_=!0)},Lan=function(G){QGX(G);
vgu(G);G.JSC$11550_form_=null;G.dispatchEvent("ready")},QGX=function(G){var b=G.JSC$11550_iframe_;
b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,G.iframesForDisposal_.push(b));G.iframeDisposalTimer_&&(clearTimeout(G.iframeDisposalTimer_),G.iframeDisposalTimer_=null);_.XE?G.iframeDisposalTimer_=setTimeout(G.disposeIframes_.bind(G),2E3):G.disposeIframes_();G.JSC$11550_iframe_=null;G.iframeName_=null};
Vl.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var G=this.iframesForDisposal_.pop();_.iG(G)}};
var vgu=function(G){G.JSC$11550_form_&&G.JSC$11550_form_==Di&&_.yN(G.JSC$11550_form_)},cO=function(G){return G.JSC$11550_iframe_?dbO(G.JSC$11550_iframe_).getElementById(G.iframeName_+"_inner"):null};
Vl.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11550_active_){var G=this.JSC$11550_iframe_?dbO(cO(this)):null;G&&!r4a(G,"documentUri")?(_.ML(cO(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?k6(this,3):k6(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.vO=function(G){return G=="\r"||G=="\n"||G==" "||G=="\t"};var xA5;_.LY=function(G){this.errorMessage_=null;this.result_=[];this.JSC$11552_buffer_="";this.stack_=[];this.JSC$11552_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!G||!G.deliverMessageAsRawString)};
xA5={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};_.LY.prototype.isInputValid=function(){return this.streamState_!=3};
_.LY.prototype.done=function(){return this.streamState_===2};
var Ql=function(G,b,I){G.streamState_=3;G.errorMessage_="The stream is broken @"+G.JSC$11552_pos_+"/"+I+". With input:\n"+b;throw Error(G.errorMessage_);};
_.LY.prototype.acceptsBinaryInput=function(){return!1};
_.LY.prototype.parse=function(G){function b(){for(;T<G.length;)if(_.vO(G[T]))T++,l.JSC$11552_pos_++;else break;return T<L}
function I(){for(var A;;){A=G[T++];if(!A)break;l.JSC$11552_pos_++;switch(l.state_){case k.INIT:A==="{"?l.state_=k.OBJECT_OPEN:A==="["?l.state_=k.ARRAY_OPEN:_.vO(A)||Ql(l,G,T);continue;case k.KEY_START:case k.OBJECT_OPEN:if(_.vO(A))continue;if(l.state_===k.KEY_START)V.push(k.KEY_END);else if(A==="}"){q("{}");l.state_=h();continue}else V.push(k.OBJECT_END);A==='"'?l.state_=k.STRING:Ql(l,G,T);continue;case k.KEY_END:case k.OBJECT_END:if(_.vO(A))continue;A===":"?(l.state_===k.OBJECT_END&&(V.push(k.OBJECT_END),
l.depth_++),l.state_=k.VALUE):A==="}"?(l.depth_--,q(),l.state_=h()):A===","?(l.state_===k.OBJECT_END&&V.push(k.OBJECT_END),l.state_=k.KEY_START):Ql(l,G,T);continue;case k.ARRAY_OPEN:case k.VALUE:if(_.vO(A))continue;if(l.state_===k.ARRAY_OPEN)if(l.depth_++,l.state_=k.VALUE,A==="]"){l.depth_--;if(l.depth_===0){l.state_=k.ARRAY_END;return}q("[]");l.state_=h();continue}else V.push(k.ARRAY_END);A==='"'?l.state_=k.STRING:A==="{"?l.state_=k.OBJECT_OPEN:A==="["?l.state_=k.ARRAY_OPEN:A==="t"?l.state_=k.TRUE1:
A==="f"?l.state_=k.FALSE1:A==="n"?l.state_=k.NULL1:A!=="-"&&("0123456789".indexOf(A)!==-1?l.state_=k.NUM_DIGIT:Ql(l,G,T));continue;case k.ARRAY_END:if(A===",")V.push(k.ARRAY_END),l.state_=k.VALUE,l.depth_===1&&(f=T);else if(A==="]"){l.depth_--;if(l.depth_===0)return;q();l.state_=h()}else if(_.vO(A))continue;else Ql(l,G,T);continue;case k.STRING:var t=T;a:for(;;){for(;l.unicodeCount_>0;)if(A=G[T++],l.unicodeCount_===4?l.unicodeCount_=0:l.unicodeCount_++,!A)break a;if(A==='"'&&!l.slashed_){l.state_=
h();break}if(A==="\\"&&!l.slashed_&&(l.slashed_=!0,A=G[T++],!A))break;if(l.slashed_)if(l.slashed_=!1,A==="u"&&(l.unicodeCount_=1),A=G[T++])continue;else break;D.lastIndex=T;A=D.exec(G);if(!A){T=G.length+1;break}T=A.index+1;A=G[A.index];if(!A)break}l.JSC$11552_pos_+=T-t;continue;case k.TRUE1:if(!A)continue;A==="r"?l.state_=k.TRUE2:Ql(l,G,T);continue;case k.TRUE2:if(!A)continue;A==="u"?l.state_=k.TRUE3:Ql(l,G,T);continue;case k.TRUE3:if(!A)continue;A==="e"?l.state_=h():Ql(l,G,T);continue;case k.FALSE1:if(!A)continue;
A==="a"?l.state_=k.FALSE2:Ql(l,G,T);continue;case k.FALSE2:if(!A)continue;A==="l"?l.state_=k.FALSE3:Ql(l,G,T);continue;case k.FALSE3:if(!A)continue;A==="s"?l.state_=k.FALSE4:Ql(l,G,T);continue;case k.FALSE4:if(!A)continue;A==="e"?l.state_=h():Ql(l,G,T);continue;case k.NULL1:if(!A)continue;A==="u"?l.state_=k.NULL2:Ql(l,G,T);continue;case k.NULL2:if(!A)continue;A==="l"?l.state_=k.NULL3:Ql(l,G,T);continue;case k.NULL3:if(!A)continue;A==="l"?l.state_=h():Ql(l,G,T);continue;case k.NUM_DECIMAL_POINT:A===
"."?l.state_=k.NUM_DIGIT:Ql(l,G,T);continue;case k.NUM_DIGIT:if("0123456789.eE+-".indexOf(A)!==-1)continue;else T--,l.JSC$11552_pos_--,l.state_=h();continue;default:Ql(l,G,T)}}}
function h(){var A=V.pop();return A!=null?A:k.VALUE}
function q(A){l.depth_>1||(A||(A=f===-1?l.JSC$11552_buffer_+G.substring(x,T):G.substring(f,T)),l.deliverMessageAsRawString_?l.result_.push(A):l.result_.push(JSON.parse(A)),f=T)}
for(var l=this,V=l.stack_,D=l.stringInputPattern_,k=xA5,L=G.length,x=0,f=-1,T=0;T<L;)switch(l.streamState_){case 3:return Ql(l,G,T),null;case 2:return b()&&Ql(l,G,T),null;case 0:if(b()){var B=G[T++];l.JSC$11552_pos_++;if(B==="["){l.streamState_=1;x=T;l.state_=k.ARRAY_OPEN;continue}else Ql(l,G,T)}return null;case 1:return I(),l.depth_===0&&l.state_==k.ARRAY_END?(l.streamState_=2,l.JSC$11552_buffer_=G.substring(T)):l.JSC$11552_buffer_=f===-1?l.JSC$11552_buffer_+G.substring(x):G.substring(f),l.result_.length>
0?(B=l.result_,l.result_=[],B):null}return null};_.OE(_.si,N1);g2.prototype.getValue=function(){return this.JSC$11560_value_};
g2.prototype.clone=function(){return new g2(this.JSC$11560_key_,this.JSC$11560_value_)};var x6=function(G){this.nodes_=[];if(G)a:{if(G instanceof x6){var b=G.getKeys();G=G.getValues();if(this.getCount()<=0){for(var I=this.nodes_,h=0;h<b.length;h++)I.push(new g2(b[h],G[h]));break a}}else b=_.Cy.getKeys(G),G=_.Cy.getValues(G);for(I=0;I<b.length;I++)this.insert(b[I],G[I])}};
_.m=x6.prototype;_.m.insert=function(G,b){var I=this.nodes_;I.push(new g2(G,b));G=I.length-1;b=this.nodes_;for(I=b[G];G>0;){var h=G-1>>1;if(b[h].JSC$11560_key_>I.JSC$11560_key_)b[G]=b[h],G=h;else break}b[G]=I};
_.m.remove=function(){var G=this.nodes_,b=G.length,I=G[0];if(!(b<=0)){if(b==1)G.length=0;else{G[0]=G.pop();G=0;b=this.nodes_;for(var h=b.length,q=b[G];G<h>>1;){var l=G*2+1,V=G*2+2;l=V<h&&b[V].JSC$11560_key_<b[l].JSC$11560_key_?V:l;if(b[l].JSC$11560_key_>q.JSC$11560_key_)break;b[G]=b[l];G=l}b[G]=q}return I.getValue()}};
_.m.peek=function(){var G=this.nodes_;if(G.length!=0)return G[0].getValue()};
_.m.getValues=function(){for(var G=this.nodes_,b=[],I=G.length,h=0;h<I;h++)b.push(G[h].getValue());return b};
_.m.getKeys=function(){for(var G=this.nodes_,b=[],I=G.length,h=0;h<I;h++)b.push(G[h].JSC$11560_key_);return b};
_.m.containsValue=function(G){return this.nodes_.some(function(b){return b.getValue()==G})};
_.m.containsKey=function(G){return this.nodes_.some(function(b){return b.JSC$11560_key_==G})};
_.m.clone=function(){return new x6(this)};
_.m.getCount=function(){return this.nodes_.length};
_.m.isEmpty=function(){return this.nodes_.length===0};
_.m.clear=function(){this.nodes_.length=0};_.fY=function(G,b){this.JSC$11566_map_={};this.JSC$11566_keys_=[];this.version_=this.size=0;var I=arguments.length;if(I>1){if(I%2)throw Error("ma");for(var h=0;h<I;h+=2)this.set(arguments[h],arguments[h+1])}else G&&this.addAll(G)};
_.m=_.fY.prototype;_.m.getCount=function(){return this.size};
_.m.getValues=function(){TT(this);for(var G=[],b=0;b<this.JSC$11566_keys_.length;b++)G.push(this.JSC$11566_map_[this.JSC$11566_keys_[b]]);return G};
_.m.getKeys=function(){TT(this);return this.JSC$11566_keys_.concat()};
_.m.containsKey=function(G){return this.has(G)};
_.m.has=function(G){return BO(this.JSC$11566_map_,G)};
_.m.containsValue=function(G){for(var b=0;b<this.JSC$11566_keys_.length;b++){var I=this.JSC$11566_keys_[b];if(BO(this.JSC$11566_map_,I)&&this.JSC$11566_map_[I]==G)return!0}return!1};
_.m.equals=function(G,b){if(this===G)return!0;if(this.size!=G.getCount())return!1;b=b||fAQ;TT(this);for(var I,h=0;I=this.JSC$11566_keys_[h];h++)if(!b(this.get(I),G.get(I)))return!1;return!0};
var fAQ=function(G,b){return G===b};
_.fY.prototype.isEmpty=function(){return this.size==0};
_.fY.prototype.clear=function(){this.JSC$11566_map_={};this.version_=this.size=this.JSC$11566_keys_.length=0};
_.fY.prototype.remove=function(G){return this.delete(G)};
_.fY.prototype.delete=function(G){return BO(this.JSC$11566_map_,G)?(delete this.JSC$11566_map_[G],--this.size,this.version_++,this.JSC$11566_keys_.length>2*this.size&&TT(this),!0):!1};
var TT=function(G){if(G.size!=G.JSC$11566_keys_.length){for(var b=0,I=0;b<G.JSC$11566_keys_.length;){var h=G.JSC$11566_keys_[b];BO(G.JSC$11566_map_,h)&&(G.JSC$11566_keys_[I++]=h);b++}G.JSC$11566_keys_.length=I}if(G.size!=G.JSC$11566_keys_.length){b={};for(h=I=0;I<G.JSC$11566_keys_.length;){var q=G.JSC$11566_keys_[I];BO(b,q)||(G.JSC$11566_keys_[h++]=q,b[q]=1);I++}G.JSC$11566_keys_.length=h}};
_.m=_.fY.prototype;_.m.get=function(G,b){return BO(this.JSC$11566_map_,G)?this.JSC$11566_map_[G]:b};
_.m.set=function(G,b){BO(this.JSC$11566_map_,G)||(this.size+=1,this.JSC$11566_keys_.push(G),this.version_++);this.JSC$11566_map_[G]=b};
_.m.addAll=function(G){if(G instanceof _.fY)for(var b=G.getKeys(),I=0;I<b.length;I++)this.set(b[I],G.get(b[I]));else for(b in G)this.set(b,G[b])};
_.m.forEach=function(G,b){for(var I=this.getKeys(),h=0;h<I.length;h++){var q=I[h],l=this.get(q);G.call(b,l,q,this)}};
_.m.clone=function(){return new _.fY(this)};
_.m.transpose=function(){for(var G=new _.fY,b=0;b<this.JSC$11566_keys_.length;b++){var I=this.JSC$11566_keys_[b];G.set(this.JSC$11566_map_[I],I)}return G};
_.m.keys=function(){return F$n(this.__iterator__(!0)).toEs6()};
_.m.values=function(){return F$n(this.__iterator__(!1)).toEs6()};
_.m.entries=function(){var G=this;return $Kb(this.keys(),function(b){return[b,G.get(b)]})};
_.m.__iterator__=function(G){TT(this);var b=0,I=this.version_,h=this,q=new DD;q.next=function(){if(I!=h.version_)throw Error("ue");if(b>=h.JSC$11566_keys_.length)return co;var l=h.JSC$11566_keys_[b++];return kl(G?l:h.JSC$11566_map_[l])};
return q};
var BO=function(G,b){return Object.prototype.hasOwnProperty.call(G,b)};var Bce=function(){this.JSC$11569_map_=new _.fY;this.JSC$11569_head_=new Tc5("");this.JSC$11569_head_.next=this.JSC$11569_head_.prev=this.JSC$11569_head_},UAJ=function(G,b){if(b=G.JSC$11569_map_.get(b))b.remove(),G.insert_(b);
return b};
_.m=Bce.prototype;_.m.get=function(G,b){return(G=UAJ(this,G))?G.value:b};
_.m.set=function(G,b){var I=UAJ(this,G);I?I.value=b:(I=new Tc5(G,b),this.JSC$11569_map_.set(G,I),this.insert_(I))};
_.m.peek=function(){return this.JSC$11569_head_.next.value};
_.m.shift=function(){return sG5(this,this.JSC$11569_head_.next)};
_.m.pop=function(){return sG5(this,this.JSC$11569_head_.prev)};
_.m.remove=function(G){return(G=this.JSC$11569_map_.get(G))?(this.removeNode(G),!0):!1};
_.m.removeNode=function(G){G.remove();this.JSC$11569_map_.remove(G.key)};
_.m.getCount=function(){return this.JSC$11569_map_.getCount()};
_.m.isEmpty=function(){return this.JSC$11569_map_.isEmpty()};
_.m.getKeys=function(){return this.map(function(G,b){return b})};
_.m.getValues=function(){return this.map(function(G){return G})};
_.m.contains=function(G){return this.some(function(b){return b==G})};
_.m.containsKey=function(G){return this.JSC$11569_map_.containsKey(G)};
_.m.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11569_head_.prev)};
_.m.forEach=function(G,b){for(var I=this.JSC$11569_head_.next;I!=this.JSC$11569_head_;I=I.next)G.call(b,I.value,I.key,this)};
_.m.map=function(G,b){for(var I=[],h=this.JSC$11569_head_.next;h!=this.JSC$11569_head_;h=h.next)I.push(G.call(b,h.value,h.key,this));return I};
_.m.some=function(G,b){for(var I=this.JSC$11569_head_.next;I!=this.JSC$11569_head_;I=I.next)if(G.call(b,I.value,I.key,this))return!0;return!1};
_.m.every=function(G,b){for(var I=this.JSC$11569_head_.next;I!=this.JSC$11569_head_;I=I.next)if(!G.call(b,I.value,I.key,this))return!1;return!0};
_.m.insert_=function(G){G.next=this.JSC$11569_head_.next;G.prev=this.JSC$11569_head_;this.JSC$11569_head_.next=G;for(G.next.prev=G;this.getCount()>100;)this.removeNode(this.JSC$11569_head_.prev)};
var sG5=function(G,b){G.JSC$11569_head_!=b&&G.removeNode(b);return b.value},Tc5=function(G,b){this.key=G;
this.value=b};
Tc5.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var gge=function(){x6.apply(this,arguments)};
_.M(gge,x6);gge.prototype.enqueue=function(G,b){this.insert(G,b)};var AxB=function(){var G=Error();G.name="SecurityError";throw G;},zfd=function(){return{get opener(){return null},
get closed(){return!0},get location(){AxB()},get document(){AxB()},postMessage:function(){},
close:function(){},
focus:function(){}}};var Lev={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 fIO={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 MN8={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(fIO).join("|");var Zcz=function(){function G(D){D.substr(-1)!==";"&&(D+=";");return V(D)}
for(var b=Object.keys(MN8).sort(xwa),I=Object.keys(fIO).sort(xwa),h=0,q=0;h<I.length;h++)b[q]===I[h]?(I[h]+=";?",q++):I[h]+=";";var l=new RegExp("&(?:"+I.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),V=Ttd();return function(D){return String(D).replace(l,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 tNi={};var zQO=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"),ogb=/[\\&]/,icz=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),PPe=RegExp('[&<>"]',"g"),dAJ=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),yxJ=function(G){return G.charCodeAt(0)===92?G.charAt(1):Zcz(G)},rxb=function(G){return ogb.test(G)?G.replace(icz,yxJ):G},FaW=function(G){try{var b,I="";
if(typeof q!=="string"){var h=q;var q=";/?:@&=+$,-_.!~*'()#"}typeof h==="undefined"&&(h=!0);var l,V=tNi[q];if(V)var D=V;else{V=tNi[q]=[];for(l=0;l<128;l++){var k=String.fromCharCode(l);/^[0-9a-z]$/i.test(k)?V.push(k):V.push("%"+("0"+l.toString(16).toUpperCase()).slice(-2))}for(l=0;l<q.length;l++)V[q.charCodeAt(l)]=q[l];D=V}var L=0;for(b=G.length;L<b;L++){var x=G.charCodeAt(L);if(h&&x===37&&L+2<b&&/^[0-9a-f]{2}$/i.test(G.slice(L+1,L+3)))I+=G.slice(L,L+3),L+=2;else if(x<128)I+=D[x];else if(x>=55296&&
x<=57343){if(x>=55296&&x<=56319&&L+1<b){var f=G.charCodeAt(L+1);if(f>=56320&&f<=57343){I+=encodeURIComponent(G[L]+G[L+1]);L++;continue}}I+="%EF%BF%BD"}else I+=encodeURIComponent(G[L])}return I}catch(T){return G}},HcQ=function(G){switch(G){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return G}},UK=function(G,b){return PPe.test(G)?b?G.replace(dAJ,HcQ):G.replace(PPe,HcQ):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 gr;if(String.fromCodePoint)gr=function(G){try{return String.fromCodePoint(G)}catch(b){if(b instanceof RangeError)return String.fromCharCode(65533);throw b;}};
else{var Wau=String.fromCharCode,aAu=Math.floor;gr=function(){var G=[],b=-1,I=arguments.length;if(!I)return"";for(var h="";++b<I;){var q=Number(arguments[b]);if(!isFinite(q)||q<0||q>1114111||aAu(q)!==q)return String.fromCharCode(65533);if(q<=65535)G.push(q);else{q-=65536;var l=(q>>10)+55296;q=q%1024+56320;G.push(l,q)}if(b+1===I||G.length>16384)h+=Wau.apply(null,G),G.length=0}return h}};var NcW=function(G){this.root=this.current=G;this.entering=!0};
NcW.prototype.next=function(){var G=this.current,b=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}b&&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:b,node:G}};
var tb=function(G,b){this._type=G;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=b;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};
tb.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};
tb.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 Y4n=function(G,b){b.unlink();b._next=G._next;b._next&&(b._next._prev=b);b._prev=G;G._next=b;b._parent=G._parent;b._next||(b._parent._lastChild=b)};
tb.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)};
_.kV.Object.defineProperties(tb.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 Btr=/[ \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,
Uwq={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 CPu=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]/),
JxA=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Kab=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),uen=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),RQB=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),ngJ=/`+/,OcA=/^`+/,wRW=/\.\.\./g,EgA=/--+/g,pRQ=/^<([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])?)*)>/,
S4n=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,XRO=/^ *(?:\n *)?/,$_W=/^[ \t\n\x0b\x0c\x0d]/,GOA=/[ \t\n\x0b\x0c\x0d]+/g,bWX=/^\s/,I_u=/ *$/,hzi=/^ */,qEn=/^ *(?:\n|$)/,jAO=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),l_X=/^[^\n`\[\]\\!<&*_'"]+/m,Ar=function(G){var b=new tb("text");b._literal=G;return b},Ms=function(G){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=G||{}};
Ms.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]};
Ms.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Zi=function(G){G.match(XRO);return!0},m_5=function(G,b,I){var h=0;
var q=G.pos;if(b===39||b===34)h++,G.pos++;else for(;G.peek()===b;)h++,G.pos++;if(h===0)h=null;else{var l=q===0?"\n":G.subject.charAt(q-1);var V=G.peek();V=V===-1?"\n":gr(V);var D=bWX.test(V);V=CPu.test(V);var k=bWX.test(l);var L=CPu.test(l);l=!D&&!(V&&!k&&!L);D=!k&&!(L&&!D&&!V);b===95?(k=l&&(!D||L),V=D&&(!l||V)):(k=b===39||b===34?l&&!D:l,V=D);G.pos=q;h={numdelims:h,can_open:k,can_close:V}}if(!h)return!1;q=h.numdelims;V=G.pos;G.pos+=q;V=b===39?"\u2019":b===34?"\u201c":G.subject.slice(V,G.pos);V=Ar(V);
I.appendChild(V);G.delimiters={cc:b,numdelims:q,origdelims:q,node:V,previous:G.delimiters,next:null,can_open:h.can_open,can_close:h.can_close};G.delimiters.previous!==null&&(G.delimiters.previous.next=G.delimiters);return!0},ezu=function(G,b){b.previous!==null&&(b.previous.next=b.next);
b.next===null?G.delimiters=b.previous:b.next.previous=b.previous},Vf5=function(G,b){var I,h,q=[],l=!1;
q[95]=b;q[42]=b;q[39]=b;q[34]=b;for(I=G.delimiters;I!==null&&I.previous!==b;)I=I.previous;for(;I!==null;){var V=I.cc;if(I.can_close){var D=I.previous;for(h=!1;D!==null&&D!==b&&D!==q[V];){l=(I.can_open||D.can_close)&&(D.origdelims+I.origdelims)%3===0;if(D.cc===I.cc&&D.can_open&&!l){h=!0;break}D=D.previous}var k=I;if(V===42||V===95)if(h){var L=I.numdelims>=2&&D.numdelims>=2?2:1;var x=D.node;var f=I.node;D.numdelims-=L;I.numdelims-=L;x._literal=x._literal.slice(0,x._literal.length-L);f._literal=f._literal.slice(0,
f._literal.length-L);var T=new tb(L===1?"emph":"strong");for(L=x._next;L&&L!==f;){var B=L._next;L.unlink();T.appendChild(L);L=B}Y4n(x,T);L=D;B=I;L.next!==B&&(L.next=B,B.previous=L);D.numdelims===0&&(x.unlink(),ezu(G,D));I.numdelims===0&&(f.unlink(),D=I.next,ezu(G,I),I=D)}else I=I.next;else V===39?(I.node._literal="\u2019",h&&(D.node._literal="\u2018"),I=I.next):V===34&&(I.node._literal="\u201d",h&&(D.node.literal="\u201c"),I=I.next);h||l||(q[V]=k.previous,k.can_open||ezu(G,k))}else I=I.next}for(;G.delimiters!==
null&&G.delimiters!==b;)ezu(G,G.delimiters)},D_u=function(G){G=G.match(JxA);
return G===null?null:rxb(G.substr(1,G.length-2))},cki=function(G){var b=G.match(Kab);
if(b===null){b=G.pos;for(var I=0,h;(h=G.peek())!==-1;)if(h===92)G.pos+=1,G.peek()!==-1&&(G.pos+=1);else if(h===40)G.pos+=1,I+=1;else if(h===41)if(I<1)break;else G.pos+=1,--I;else if($_W.exec(gr(h))!==null)break;else G.pos+=1;b=G.subject.substr(b,G.pos-b);return FaW(rxb(b))}return FaW(rxb(b.substr(1,b.length-2)))},kO8=function(G){G=G.match(jAO);
return G===null||G.length>1001?0:G.length},vxn=function(G,b,I,h){G.brackets!==null&&(G.brackets.bracketAfter=!0);
G.brackets={node:b,previous:G.brackets,previousDelimiter:G.delimiters,index:I,image:h,active:!0}},Lbu=function(G,b){var I;
return(I=G.match(l_X))?(G.options.smart?b.appendChild(Ar(I.replace(wRW,"\u2026").replace(EgA,function(h){var q=0,l=0;h.length%3===0?l=h.length/3:h.length%2===0?q=h.length/2:h.length%3===2?(q=1,l=(h.length-2)/3):(q=2,l=(h.length-4)/3);h="";var V;for(V=0;V<l;V++)h+="\u2014";for(V=0;V<q;V++)h+="\u2013";return h}))):b.appendChild(Ar(I)),!0):!1},QAB=function(G,b,I){G.subject=b;
G.pos=0;b=G.pos;var h=kO8(G);if(h===0)return 0;var q=G.subject.substr(0,h);if(G.peek()===58)G.pos++;else return G.pos=b,0;Zi(G);h=cki(G);if(h===null||h.length===0)return G.pos=b,0;var l=G.pos;Zi(G);var V=D_u(G);V===null&&(V="",G.pos=l);var D=!0;G.match(qEn)===null&&(V===""?D=!1:(V="",G.pos=l,D=G.match(qEn)!==null));if(!D)return G.pos=b,0;q=ser(q);if(q==="")return G.pos=b,0;I[q]||(I[q]={destination:h,title:V});return G.pos-b},x_n=function(G,b){var I,h=G.peek();
if(h===-1)return!1;switch(h){case 10:G.pos+=1;if((I=b._lastChild)&&I.type==="text"&&I._literal[I._literal.length-1]===" "){var q=I._literal[I._literal.length-2]===" ";I._literal=I._literal.replace(I_u,"");b.appendChild(new tb(q?"linebreak":"softbreak"))}else b.appendChild(new tb("softbreak"));G.match(hzi);I=!0;break;case 92:I=G.subject;G.pos+=1;G.peek()===10?(G.pos+=1,I=new tb("linebreak"),b.appendChild(I)):uen.test(I.charAt(G.pos))?(b.appendChild(Ar(I.charAt(G.pos))),G.pos+=1):b.appendChild(Ar("\\"));
I=!0;break;case 96:a:if(I=G.match(OcA),I===null)I=!1;else{q=G.pos;for(var l;(l=G.match(ngJ))!==null;)if(l===I){l=new tb("code");l._literal=G.subject.slice(q,G.pos-I.length).trim().replace(GOA," ");b.appendChild(l);I=!0;break a}G.pos=q;b.appendChild(Ar(I));I=!0}break;case 42:case 95:I=m_5(G,h,b);break;case 39:case 34:I=G.options.smart&&m_5(G,h,b);break;case 91:I=G.pos;G.pos+=1;q=Ar("[");b.appendChild(q);vxn(G,q,I,!1);I=!0;break;case 33:I=G.pos;G.pos+=1;G.peek()===91?(G.pos+=1,q=Ar("!["),b.appendChild(q),
vxn(G,q,I+1,!0)):b.appendChild(Ar("!"));I=!0;break;case 93:var V,D=!1,k;G.pos+=1;var L=G.pos;q=G.brackets;if(q===null)b.appendChild(Ar("]"));else if(q.active){I=q.image;var x=G.pos;G.peek()===40&&(G.pos++,Zi(G)&&(l=cki(G))!==null&&Zi(G)&&($_W.test(G.subject.charAt(G.pos-1))&&(V=D_u(G)),1)&&Zi(G)&&G.peek()===41?(G.pos+=1,D=!0):G.pos=x);if(!D){var f=G.pos,T=kO8(G);T>2?k=G.subject.slice(f,f+T):q.bracketAfter||(k=G.subject.slice(q.index,L));T===0&&(G.pos=x);k&&(k=G.refmap[ser(k)])&&(l=k.destination,V=
k.title,D=!0)}if(D){L=new tb(I?"image":"link");L._destination=l;L._title=V||"";for(l=q.node._next;l;)V=l._next,l.unlink(),L.appendChild(l),l=V;b.appendChild(L);Vf5(G,q.previousDelimiter);G.brackets=G.brackets.previous;q.node.unlink();if(!I)for(q=G.brackets;q!==null;)q.image||(q.active=!1),q=q.previous}else G.brackets=G.brackets.previous,G.pos=L,b.appendChild(Ar("]"))}else b.appendChild(Ar("]")),G.brackets=G.brackets.previous;I=!0;break;case 60:(I=G.match(pRQ))?(I=I.slice(1,I.length-1),q=new tb("link"),
q._destination=FaW("mailto:"+I),q._title="",q.appendChild(Ar(I)),b.appendChild(q),I=!0):(I=G.match(S4n))?(I=I.slice(1,I.length-1),q=new tb("link"),q._destination=FaW(I),q._title="",q.appendChild(Ar(I)),b.appendChild(q),I=!0):I=!1;I||(I=G.match(zQO),I===null?I=!1:(q=new tb("html_inline"),q._literal=I,b.appendChild(q),I=!0));break;case 38:(I=G.match(RQB))?(b.appendChild(Ar(Zcz(I))),I=!0):I=!1;break;default:I=Lbu(G,b)}I||(G.pos+=1,b.appendChild(Ar(gr(h))));return!0};
Ms.prototype.parseInlines=function(G){this.subject=G._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;x_n(this,G););G._string_content=null;Vf5(this,null)};
Ms.prototype.parse=Ms.prototype.parseInlines;var f_n=[/./,/^<(?: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")],TPB=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],BPO=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,U_n=/^[#`~*+_=<>0-9-\|]|\|/,sAe=/[^ \t\f\v\r\n]/,gxQ=/^[*+-]/,AkW=/^(\d{1,9})([.)])/,Mf8=/^#{1,6}(?:[ \t]+|$)/,ZWO=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,tf8=/^(?:`{3,}|~{3,})(?= *$)/,zz5=/^(?:=+|-+)[ \t]*$/,oxJ=/\r\n|\n|\r/,A8v=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,MEj=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,iWO={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(G){return G!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(G,b){for(G=b._firstChild;G;){if(g4u(G)&&G._next){b._listData.tight=!1;break}for(var I=G._firstChild;I;){if(g4u(I)&&(G._next||I._next)){b._listData.tight=!1;break}I=I._next}G=G._next}},
canContain:function(G){return G==="item"},
acceptsLines:!1},block_quote:{continue:function(G){var b=G.currentLine;if(G.indented||Mh(b,G.nextNonspace)!==62)return 1;tr(G);zT(G,1,!1);Ab(Mh(b,G.offset))&&zT(G,1,!0);return 0},
finalize:function(){},
canContain:function(G){return G!=="item"},
acceptsLines:!1},item:{continue:function(G,b){if(G.blank){if(b._firstChild==null)return 1;tr(G)}else if(G.indent>=b._listData.markerOffset+b._listData.padding)zT(G,b._listData.markerOffset+b._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(G){return G!=="item"&&!Zfj(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,b){var I=G.currentLine,h=G.indent;if(b._isFenced){if((h=h<=3&&I.charAt(G.nextNonspace)===b._fenceChar&&I.slice(G.nextNonspace).match(tf8))&&h[0].length>=b._fenceLength)return G.finalize(b,G.lineNumber),2;for(b=b._fenceOffset;b>0&&Ab(Mh(I,G.offset));)zT(G,1,!0),b--}else if(h>=4)zT(G,4,!0);else if(G.blank)tr(G);else return 1;return 0},
finalize:function(G,b){if(b._isFenced){var I=b._string_content,h=I.indexOf("\n");G=I.slice(0,h);I=I.slice(h+1);b.info=rxb(G.trim());b._literal=I}else b._literal=b._string_content.replace(/(\n *)+$/,"\n");b._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(G,b){return!G.blank||b._htmlBlockType!==6&&b._htmlBlockType!==7?0:1},
finalize:function(G,b){b._literal=b._string_content.replace(/(\n *)+$/,"");b._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(G){return G.blank?1:0},
finalize:function(G,b){for(var I,h=!1;Mh(b._string_content,0)===91&&(I=QAB(G.inlineParser,b._string_content,G.refmap));)b._string_content=b._string_content.slice(I),h=!0;h&&!sAe.test(b._string_content)&&b.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(G){return Z1(G.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(G){return G=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(G,b){if(!b._rowIsDelimiter){G=b._isHeader?"th":"td";for(var I=b._parent._tableColumns,h=b._string_content,q=0,l="",V,D=b._sourcepos[0][0];q<h.length;){switch(h[q]){case "|":V&&(V._string_content=l.trim(),l="",V=null,I--,I<=0&&(q=h.length));break;default:if(!V){V=new tb(G,[[D,q],[D,q]]);var k=b._parent._columnAlignment,L=b._parent._tableColumns-I;k&&L<=k.length&&L>=0&&(V._alignment=k[L]);b.appendChild(V)}l+=h[q];V._sourcepos[1][1]=q}q++}V&&(V._string_content=l.trim());b._string_content=
""}},
canContain:function(G){return G!=="row"},
acceptsLines:!1}},PXu=[function(G){if(G.indented||Mh(G.currentLine,G.nextNonspace)!==62)return 0;tr(G);zT(G,1,!1);Ab(Mh(G.currentLine,G.offset))&&zT(G,1,!0);ou(G);G.addChild("block_quote",G.nextNonspace);return 1},
function(G){var b;if(!G.indented&&(b=G.currentLine.slice(G.nextNonspace).match(Mf8))){tr(G);zT(G,b[0].length,!1);ou(G);var I=G.addChild("heading",G.nextNonspace);I.level=b[0].trim().length;I._string_content=G.currentLine.slice(G.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");zT(G,G.currentLine.length-G.offset);return 2}return 0},
function(G){var b;if(!G.indented&&(b=G.currentLine.slice(G.nextNonspace).match(ZWO))){var I=b[0].length;ou(G);var h=G.addChild("code_block",G.nextNonspace);h._isFenced=!0;h._fenceLength=I;h._fenceChar=b[0][0];h._fenceOffset=G.indent;tr(G);zT(G,I,!1);return 2}return 0},
function(G,b){if(!G.indented&&Mh(G.currentLine,G.nextNonspace)===60){var I=G.currentLine.slice(G.nextNonspace),h;for(h=1;h<=7;h++)if(f_n[h].test(I)&&(h<7||b.type!=="paragraph"))return ou(G),G.addChild("html_block",G.offset)._htmlBlockType=h,2}return 0},
function(G,b){var I;if(!G.indented&&b.type==="paragraph"&&(I=G.currentLine.slice(G.nextNonspace).match(zz5))){ou(G);var h=new tb("heading",b.sourcepos);h.level=I[0][0]==="="?1:2;h._string_content=b._string_content;Y4n(b,h);b.unlink();G.tip=h;zT(G,G.currentLine.length-G.offset,!1);return 2}return 0},
function(G){return!G.indented&&BPO.test(G.currentLine.slice(G.nextNonspace))?(ou(G),G.addChild("thematic_break",G.nextNonspace),zT(G,G.currentLine.length-G.offset,!1),2):0},
function(G,b){var I,h;if(!(h=G.indented&&b.type!=="list")){a:{var q=b,l=G.currentLine.slice(G.nextNonspace);h={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:G.indent};if(I=l.match(gxQ))h.type="bullet",h.bulletChar=I[0][0];else{if(!(I=l.match(AkW))||q.type==="paragraph"&&I[1]!=="1"){I=null;break a}h.type="ordered";h.start=parseInt(I[1],10);h.delimiter=I[2]}var V=Mh(G.currentLine,G.nextNonspace+I[0].length);if(V!==-1&&V!==9&&V!==32||q.type==="paragraph"&&!G.currentLine.slice(G.nextNonspace+
I[0].length).match(sAe))I=null;else{tr(G);zT(G,I[0].length,!0);q=G.column;l=G.offset;do zT(G,1,!0),V=Mh(G.currentLine,G.offset);while(G.column-q<5&&Ab(V));V=Mh(G.currentLine,G.offset)===-1;var D=G.column-q;D>=5||D<1||V?(h.padding=I[0].length+1,G.column=q,G.offset=l,Ab(Mh(G.currentLine,G.offset))&&zT(G,1,!0)):h.padding=I[0].length+D;I=h}}h=!I}if(h)return 0;ou(G);(h=G.tip.type!=="list")||(b=b._listData,h=!(b.type===I.type&&b.delimiter===I.delimiter&&b.bulletChar===I.bulletChar));h&&(b=G.addChild("list",
G.nextNonspace),b._listData=I);b=G.addChild("item",G.nextNonspace);b._listData=I;return 1},
function(G){var b;return((b=G.options.shouldParseIndentAsCodeBlock)!=null?b:1)&&G.indented&&G.tip.type!=="paragraph"&&!G.blank?(zT(G,4,!0),ou(G),G.addChild("code_block",G.offset),2):0},
function(G,b){var I=Z1(G.currentLine),h=Z1(G.lookahead);if(I!==0&&h<0&&Math.abs(I)==Math.abs(h)&&!Zfj(b.type)){ou(G);b=G.addChild("table",G.nextNonspace);b._tableRows=1;b._tableColumns=Math.abs(I);I=G.lookahead;if(MEj.test(I)){h=[];for(var q=0,l=!1,V=0,D=void 0;q<I.length;){var k=V>=3;switch(I[q]){case "-":V++;break;case "|":l&&(h.push(D),D=void 0,V=0);l=!0;break;case ":":D||k||(D="left"),!D&&k&&(D="right"),D==="left"&&k&&(D="center")}q++}I=h}else I=void 0;b._columnAlignment=I;b=G.addChild("row",
G.nextNonspace);b._isHeader=!0;zT(G,G.currentLine.length-G.offset,!1);b._string_content=G.currentLine;return 1}return 0},
function(G,b){if(b.type=="table"&&Z1(G.currentLine)!==0){ou(G);var I=b;b=G.addChild("row",G.nextNonspace);Z1(G.currentLine)<0?b._rowIsDelimiter=!0:I._tableRows+=1;zT(G,G.currentLine.length-G.offset,!1);b._string_content=G.currentLine;return 2}return 0}],ois=function(){var G={shouldParseIndentAsCodeBlock:!1};
G=G===void 0?{}:G;this.lastMatchedContainer=this.doc=tEs();this.refmap={};this.lastLineLength=0;this.inlineParser=new Ms(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=iWO;this.blockStarts=PXu},d_W=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"};
ois.prototype.addChild=function(G,b){for(;!this.blocks[this.tip.type].canContain(G);)this.finalize(this.tip,this.lineNumber-1);G=new tb(G,[[this.lineNumber,b+1],[0,0]]);G._string_content="";this.tip.appendChild(G);return this.tip=G};
var ou=function(G){if(!G.allClosed){for(;G.oldtip!==G.lastMatchedContainer;){var b=G.oldtip._parent;G.finalize(G.oldtip,G.lineNumber-1);G.oldtip=b}G.allClosed=!0}},zT=function(G,b,I){for(var h=G.currentLine,q,l;b>0&&(l=h[G.offset]);)l==="\t"?(q=4-G.column%4,I?(G.partiallyConsumedTab=q>b,q=q>b?b:q,G.column+=q,G.offset+=G.partiallyConsumedTab?0:1,b-=q):(G.partiallyConsumedTab=!1,G.column+=q,G.offset+=1,--b)):(G.partiallyConsumedTab=!1,G.offset+=1,G.column+=1,--b)},tr=function(G){G.offset=G.nextNonspace;
G.column=G.nextNonspaceColumn;G.partiallyConsumedTab=!1},ykz=function(G){for(var b=G.currentLine,I=G.offset,h=G.column,q;(q=b.charAt(I))!=="";)if(q===" ")I++,h++;
else if(q==="\t")I++,h+=4-h%4;else break;G.blank=q==="\n"||q==="\r"||q==="";G.nextNonspace=I;G.nextNonspaceColumn=h;G.indent=G.nextNonspaceColumn-G.column;G.indented=G.indent>=4};
ois.prototype.finalize=function(G,b){var I=G._parent;G._open=!1;G.sourcepos[1]=[b,this.lastLineLength];this.blocks[G.type].finalize(this,G);this.tip=I};
ois.prototype.parse=function(G){this.tip=this.doc=tEs();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 b=G.split(oxJ),I=b.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 h=void 0,q=b[G],l=b[G+1],V=!0,D=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;q.indexOf("\x00")!==-1&&(q=q.replace(/\0/g,"\ufffd"));this.currentLine=q;for(this.lookahead=l;(h=D._lastChild)&&h._open;){D=h;ykz(this);switch(this.blocks[D.type].continue(this,D)){case 0:break;case 1:V=!1;break;case 2:this.lastLineLength=q.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!V){D=D._parent;break}}this.allClosed=D===this.oldtip;this.lastMatchedContainer=
D;h=D.type!=="paragraph"&&iWO[D.type].acceptsLines;l=this.blockStarts;for(V=l.length;!h;){ykz(this);if(!this.indented&&!U_n.test(q.slice(this.nextNonspace))){tr(this);break}for(var k=0;k<V;){var L=l[k](this,D);if(L===1){D=this.tip;break}else if(L===2){D=this.tip;h=!0;break}else k++}if(k===V){tr(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){ou(this);this.blank&&D.lastChild&&(D.lastChild._lastLineBlank=!0);h=D.type;l=this.blank&&!(h==="block_quote"||h==="code_block"&&D._isFenced||
h==="item"&&!D._firstChild&&D.sourcepos[0][0]===this.lineNumber);for(V=D;V;)V._lastLineBlank=l,V=V._parent;this.blocks[h].acceptsLines?(d_W(this),h==="html_block"&&D._htmlBlockType>=1&&D._htmlBlockType<=5&&TPB[D._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(D,this.lineNumber)):this.offset<q.length&&!this.blank&&(this.addChild("paragraph",this.offset),tr(this),d_W(this))}else d_W(this);this.lastLineLength=q.length}for(;this.tip;)this.finalize(this.tip,I);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");q=new NcW(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;I=q.next();)b=I.node,G=b.type,I.entering||G!=="paragraph"&&G!=="heading"&&G!=="th"&&G!="td"||this.inlineParser.parse(b);this.options.time&&console.timeEnd("inline parsing");return this.doc};zwB.prototype.render=function(G){G=new NcW(G);var b;this.buffer="";for(this.lastOut="\n";b=G.next();){var I=b.node.type;if(this[I])this[I](b.node,b.entering)}return this.buffer};
zwB.prototype.out=function(G){iQ(this,G)};
var iQ=function(G,b){G.buffer+=b;G.lastOut=b};
zwB.prototype.cr=function(){this.lastOut!=="\n"&&iQ(this,"\n")};var rki=/^javascript:|vbscript:|file:|data:/i,FbA=/^data:image\/(?:png|gif|jpeg|webp)/i,HWQ=function(G){return rki.test(G)&&!FbA.test(G)};
zb.prototype=Object.create(zwB.prototype);_.m=zb.prototype;_.m.text=function(G){this.out(G.literal)};
_.m.html_inline=function(G){this.options.safe?iQ(this,"\x3c!-- raw HTML omitted --\x3e"):iQ(this,G.literal)};
_.m.html_block=function(G){this.cr();this.options.safe?iQ(this,"\x3c!-- raw HTML omitted --\x3e"):iQ(this,G.literal);this.cr()};
_.m.softbreak=function(){iQ(this,this.options.softbreak)};
_.m.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.m.link=function(G,b){var I=this.attrs(G);b?(this.options.safe&&HWQ(G.destination)||I.push(["href",UK(G.destination,!0)]),G.title&&I.push(["title",UK(G.title,!0)]),this.tag("a",I)):this.tag("/a")};
_.m.image=function(G,b){b?(this.disableTags===0&&(this.options.safe&&HWQ(G.destination)?iQ(this,'<img src="" alt="'):iQ(this,'<img src="'+UK(G.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(G.title&&iQ(this,'" title="'+UK(G.title,!0)),iQ(this,'" />')))};
_.m.emph=function(G,b){this.tag(b?"em":"/em")};
_.m.strong=function(G,b){this.tag(b?"strong":"/strong")};
_.m.paragraph=function(G,b){var I=G.parent.parent;G=this.attrs(G);I!==null&&I.type==="list"&&I.listTight||(b?(this.cr(),this.tag("p",G)):(this.tag("/p"),this.cr()))};
_.m.heading=function(G,b){var I="h"+G.level;G=this.attrs(G);b?(this.cr(),this.tag(I,G)):(this.tag("/"+I),this.cr())};
_.m.code=function(G){this.tag("code");this.out(G.literal);this.tag("/code")};
_.m.code_block=function(G){var b=G.info?G.info.split(/\s+/):[],I=this.attrs(G);b.length>0&&b[0].length>0&&I.push(["class","language-"+UK(b[0],!0)]);this.cr();this.tag("pre");this.tag("code",I);this.out(G.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.m.thematic_break=function(G){G=this.attrs(G);this.cr();this.tag("hr",G,!0);this.cr()};
_.m.block_quote=function(G,b){G=this.attrs(G);b?(this.cr(),this.tag("blockquote",G)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.m.list=function(G,b){var I=G.listType==="bullet"?"ul":"ol",h=this.attrs(G);b?(G=G.listStart,G!==null&&G!==1&&h.push(["start",G.toString()]),this.cr(),this.tag(I,h)):(this.cr(),this.tag("/"+I));this.cr()};
_.m.item=function(G,b){G=this.attrs(G);b?this.tag("li",G):(this.tag("/li"),this.cr())};
_.m.custom_inline=function(G,b){b&&G.onEnter?iQ(this,G.onEnter):!b&&G.onExit&&iQ(this,G.onExit)};
_.m.custom_block=function(G,b){this.cr();b&&G.onEnter?iQ(this,G.onEnter):!b&&G.onExit&&iQ(this,G.onExit);this.cr()};
_.m.table=function(G,b){G=this.attrs(G);b?(this.cr(),this.tag("table",G)):(this.tag("/table"),this.cr())};
_.m.row=function(G,b){G._rowIsDelimiter||(G=this.attrs(G),b?this.tag("tr",G):this.tag("/tr"))};
_.m.td=function(G,b){var I=this.attrs(G);G._alignment&&I.push(["align",G._alignment]);b?this.tag("td",I):this.tag("/td")};
_.m.th=function(G,b){var I=this.attrs(G);G._alignment&&I.push(["align",G._alignment]);b?this.tag("th",I):this.tag("/th")};
_.m.out=function(G){iQ(this,UK(G,!1))};
_.m.tag=function(G,b,I){if(!(this.disableTags>0)){this.buffer+="<"+G;if(b&&b.length>0){G=0;for(var h;(h=b[G])!==void 0;)this.buffer+=" "+h[0]+'="'+h[1]+'"',G++}I&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.m.attrs=function(G){var b=[];this.options.sourcepos&&(G=G.sourcepos)&&b.push(["data-sourcepos",String(G[0][0])+":"+String(G[0][1])+"-"+String(G[1][0])+":"+String(G[1][1])]);return b};
zb.prototype.text=zb.prototype.text;zb.prototype.html_inline=zb.prototype.html_inline;zb.prototype.html_block=zb.prototype.html_block;zb.prototype.softbreak=zb.prototype.softbreak;zb.prototype.linebreak=zb.prototype.linebreak;zb.prototype.link=zb.prototype.link;zb.prototype.image=zb.prototype.image;zb.prototype.emph=zb.prototype.emph;zb.prototype.strong=zb.prototype.strong;zb.prototype.paragraph=zb.prototype.paragraph;zb.prototype.heading=zb.prototype.heading;zb.prototype.code=zb.prototype.code;
zb.prototype.code_block=zb.prototype.code_block;zb.prototype.thematic_break=zb.prototype.thematic_break;zb.prototype.block_quote=zb.prototype.block_quote;zb.prototype.list=zb.prototype.list;zb.prototype.item=zb.prototype.item;zb.prototype.custom_inline=zb.prototype.custom_inline;zb.prototype.custom_block=zb.prototype.custom_block;zb.prototype.table=zb.prototype.table;zb.prototype.row=zb.prototype.row;zb.prototype.td=zb.prototype.td;zb.prototype.th=zb.prototype.th;zb.prototype.out=zb.prototype.out;
zb.prototype.tag=zb.prototype.tag;zb.prototype.attrs=zb.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 WbW,a_i,x$2;(function(){function G(r,d){return r<d?-1:r>d?1:r>=d?0:NaN}
function b(r){return function(d,Y){return G(r(d),Y)}}
function I(){for(var r=0,d=arguments.length,Y={},Gq;r<d;++r){if(!(Gq=arguments[r]+"")||Gq in Y)throw Error("we`"+Gq);Y[Gq]=[]}return new h(Y)}
function h(r){this._=r}
function q(r,d){return r.trim().split(/^|\s+/).map(function(Y){var Gq="",Vu=Y.indexOf(".");Vu>=0&&(Gq=Y.slice(Vu+1),Y=Y.slice(0,Vu));if(Y&&!d.hasOwnProperty(Y))throw Error("xe`"+Y);return{type:Y,name:Gq}})}
function l(r,d,Y){for(var Gq=0,Vu=r.length;Gq<Vu;++Gq)if(r[Gq].name===d){r[Gq]=wdY;r=r.slice(0,Gq).concat(r.slice(Gq+1));break}Y!=null&&r.push({name:d,value:Y});return r}
function V(r){var d=r,Y=d.indexOf(":");Y>=0&&(d=r.slice(0,Y))!=="xmlns"&&(r=r.slice(Y+1));return nc.hasOwnProperty(d)?{space:nc[d],local:r}:r}
function D(r){return function(){var d=this.ownerDocument,Y=this.namespaceURI;return Y==="http://www.w3.org/1999/xhtml"&&d.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?d.createElement(r):d.createElementNS(Y,r)}}
function k(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}
function L(r){r=V(r);return(r.local?k:D)(r)}
function x(){}
function f(r){return r==null?x:function(){return this.querySelector(r)}}
function T(r){return Array(r.length)}
function B(r,d){this.ownerDocument=r.ownerDocument;this.namespaceURI=r.namespaceURI;this._next=null;this._parent=r;this.__data__=d}
function A(r){return function(){return r}}
function t(r,d,Y,Gq,Vu,fO){for(var Ad=0,yu,jB=d.length,$b=fO.length;Ad<$b;++Ad)(yu=d[Ad])?(yu.__data__=fO[Ad],Gq[Ad]=yu):Y[Ad]=new B(r,fO[Ad]);for(;Ad<jB;++Ad)if(yu=d[Ad])Vu[Ad]=yu}
function y(r,d,Y,Gq,Vu,fO,Ad){var yu,jB,$b={},mO=d.length,LQ=fO.length,wz=Array(mO),FW;for(yu=0;yu<mO;++yu)if(jB=d[yu])wz[yu]=FW="$"+Ad.call(jB,jB.__data__,yu,d),FW in $b?Vu[yu]=jB:$b[FW]=jB;for(yu=0;yu<LQ;++yu)FW="$"+Ad.call(r,fO[yu],yu,fO),(jB=$b[FW])?(Gq[yu]=jB,jB.__data__=fO[yu],$b[FW]=null):Y[yu]=new B(r,fO[yu]);for(yu=0;yu<mO;++yu)(jB=d[yu])&&$b[wz[yu]]===jB&&(Vu[yu]=jB)}
function F(r,d){return r<d?-1:r>d?1:r>=d?0:NaN}
function W(r){return function(){this.removeAttribute(r)}}
function O(r){return function(){this.removeAttributeNS(r.space,r.local)}}
function K(r,d){return function(){this.setAttribute(r,d)}}
function u(r,d){return function(){this.setAttributeNS(r.space,r.local,d)}}
function w(r,d){return function(){var Y=d.apply(this,arguments);Y==null?this.removeAttribute(r):this.setAttribute(r,Y)}}
function $a(r,d){return function(){var Y=d.apply(this,arguments);Y==null?this.removeAttributeNS(r.space,r.local):this.setAttributeNS(r.space,r.local,Y)}}
function ev(r){return function(){this.style.removeProperty(r)}}
function LO(r,d,Y){return function(){this.style.setProperty(r,d,Y)}}
function td(r,d,Y){return function(){var Gq=d.apply(this,arguments);Gq==null?this.style.removeProperty(r):this.style.setProperty(r,Gq,Y)}}
function xa(r,d){return r.style.getPropertyValue(d)||(r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView).getComputedStyle(r,null).getPropertyValue(d)}
function Uj(r){return function(){delete this[r]}}
function W2(r,d){return function(){this[r]=d}}
function is(r,d){return function(){var Y=d.apply(this,arguments);Y==null?delete this[r]:this[r]=Y}}
function su(){this.textContent=""}
function an(r){return function(){this.textContent=r}}
function A5(r){return function(){var d=r.apply(this,arguments);this.textContent=d==null?"":d}}
function XO(){this.innerHTML=""}
function kb(r){return function(){this.innerHTML=r}}
function rz(r){return function(){var d=r.apply(this,arguments);this.innerHTML=d==null?"":d}}
function on(){return null}
function Ac(){var r=this.parentNode;r&&r.removeChild(this)}
function U1(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function mp(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function bn(r,d,Y){r=xb(r,d,Y);return function(Gq){var Vu=Gq.relatedTarget;Vu&&(Vu===this||Vu.compareDocumentPosition(this)&8)||r.call(this,Gq)}}
function xb(r,d,Y){return function(){r.call(this,this.__data__,d,Y)}}
function j8(r){return r.trim().split(/^|\s+/).map(function(d){var Y="",Gq=d.indexOf(".");Gq>=0&&(Y=d.slice(Gq+1),d=d.slice(0,Gq));return{type:d,name:Y}})}
function BX(r){return function(){var d=this.__on;if(d){for(var Y=0,Gq=-1,Vu=d.length,fO;Y<Vu;++Y)(fO=d[Y],r.type&&fO.type!==r.type||fO.name!==r.name)?d[++Gq]=fO:this.removeEventListener(fO.type,fO.listener,fO.capture);++Gq?d.length=Gq:delete this.__on}}}
function I5(r,d,Y){var Gq=$MA.hasOwnProperty(r.type)?bn:xb;return function(Vu,fO,Ad){Vu=this.__on;var yu;fO=Gq(d,fO,Ad);if(Vu){Ad=0;for(var jB=Vu.length;Ad<jB;++Ad)if((yu=Vu[Ad]).type===r.type&&yu.name===r.name){this.removeEventListener(yu.type,yu.listener,yu.capture);this.addEventListener(yu.type,yu.listener=fO,yu.capture=Y);yu.value=d;return}}this.addEventListener(r.type,fO,Y);yu={type:r.type,name:r.name,value:d,listener:fO,capture:Y};Vu?Vu.push(yu):this.__on=[yu]}}
function ys(r,d,Y){var Gq=r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView,Vu=Gq.CustomEvent;typeof Vu==="function"?Vu=new Vu(d,Y):(Vu=Gq.document.createEvent("Event"),Y?(Vu.initEvent(d,Y.bubbles,Y.cancelable),Vu.detail=Y.detail):Vu.initEvent(d,!1,!1));r.dispatchEvent(Vu)}
function nQ(r,d){return function(){return ys(this,r,d)}}
function vX(r,d){return function(){return ys(this,r,d.apply(this,arguments))}}
function cX(r,d){this._groups=r;this._parents=d}
function Ga(){return new cX([[document.documentElement]],EkD)}
function wX(){this._="@"+(++pd1).toString(36)}
function TA(r,d,Y){r.prototype=d.prototype=Y;Y.constructor=r}
function s1(r,d){r=Object.create(r.prototype);for(var Y in d)r[Y]=d[Y];return r}
function pA(){}
function yK(r){var d;r=(r+"").trim().toLowerCase();return(d=Sqe.exec(r))?(d=parseInt(d[1],16),new tc(d>>8&15|d>>4&240,d>>4&15|d&240,(d&15)<<4|d&15,1)):(d=Xd3.exec(r))?CN(parseInt(d[1],16)):(d=$Ma.exec(r))?new tc(d[1],d[2],d[3],1):(d=GJf.exec(r))?new tc(d[1]*255/100,d[2]*255/100,d[3]*255/100,1):(d=b93.exec(r))?SG(d[1],d[2],d[3],d[4]):(d=IF1.exec(r))?SG(d[1]*255/100,d[2]*255/100,d[3]*255/100,d[4]):(d=hoa.exec(r))?Wr(d[1],d[2]/100,d[3]/100,1):(d=qT9.exec(r))?Wr(d[1],d[2]/100,d[3]/100,d[4]):GJ8.hasOwnProperty(r)?
CN(GJ8[r]):r==="transparent"?new tc(NaN,NaN,NaN,0):null}
function CN(r){return new tc(r>>16&255,r>>8&255,r&255,1)}
function SG(r,d,Y,Gq){Gq<=0&&(r=d=Y=NaN);return new tc(r,d,Y,Gq)}
function Va(r){r instanceof pA||(r=yK(r));if(!r)return new tc;r=r.rgb();return new tc(r.r,r.g,r.b,r.opacity)}
function XJ(r,d,Y,Gq){return arguments.length===1?Va(r):new tc(r,d,Y,Gq==null?1:Gq)}
function tc(r,d,Y,Gq){this.r=+r;this.g=+d;this.b=+Y;this.opacity=+Gq}
function m9(r){r=Math.max(0,Math.min(255,Math.round(r)||0));return(r<16?"0":"")+r.toString(16)}
function Wr(r,d,Y,Gq){Gq<=0?r=d=Y=NaN:Y<=0||Y>=1?r=d=NaN:d<=0&&(r=NaN);return new f0(r,d,Y,Gq)}
function U8(r){if(r instanceof f0)return new f0(r.h,r.s,r.l,r.opacity);r instanceof pA||(r=yK(r));if(!r)return new f0;if(r instanceof f0)return r;r=r.rgb();var d=r.r/255,Y=r.g/255,Gq=r.b/255,Vu=Math.min(d,Y,Gq),fO=Math.max(d,Y,Gq),Ad=NaN,yu=fO-Vu,jB=(fO+Vu)/2;yu?(Ad=d===fO?(Y-Gq)/yu+(Y<Gq)*6:Y===fO?(Gq-d)/yu+2:(d-Y)/yu+4,yu/=jB<.5?fO+Vu:2-fO-Vu,Ad*=60):yu=jB>0&&jB<1?0:Ad;return new f0(Ad,yu,jB,r.opacity)}
function J4(r,d,Y,Gq){return arguments.length===1?U8(r):new f0(r,d,Y,Gq==null?1:Gq)}
function f0(r,d,Y,Gq){this.h=+r;this.s=+d;this.l=+Y;this.opacity=+Gq}
function Jj(r,d,Y){return(r<60?d+(Y-d)*r/60:r<180?Y:r<240?d+(Y-d)*(240-r)/60:d)*255}
function kS(r){if(r instanceof oO)return new oO(r.l,r.a,r.b,r.opacity);if(r instanceof t5){if(isNaN(r.h))return new oO(r.l,0,0,r.opacity);var d=r.h*b9b;return new oO(r.l,Math.cos(d)*r.c,Math.sin(d)*r.c,r.opacity)}r instanceof tc||(r=Va(r));var Y=gj(r.r),Gq=gj(r.g),Vu=gj(r.b);d=aO(.2225045*Y+.7168786*Gq+.0606169*Vu);if(Y===Gq&&Gq===Vu)var fO=Y=d;else fO=aO((.4360747*Y+.3850649*Gq+.1430804*Vu)/.96422),Y=aO((.0139322*Y+.0971045*Gq+.7141733*Vu)/.82521);return new oO(116*d-16,500*(fO-d),200*(d-Y),r.opacity)}
function oO(r,d,Y,Gq){this.l=+r;this.a=+d;this.b=+Y;this.opacity=+Gq}
function aO(r){return r>jFe?Math.pow(r,1/3):r/IFu+hoA}
function RO(r){return r>l5?r*r*r:IFu*(r-hoA)}
function gz(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}
function gj(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}
function dd(r){if(r instanceof t5)return new t5(r.h,r.c,r.l,r.opacity);r instanceof oO||(r=kS(r));if(r.a===0&&r.b===0)return new t5(NaN,0,r.l,r.opacity);var d=Math.atan2(r.b,r.a)*qTO;return new t5(d<0?d+360:d,Math.sqrt(r.a*r.a+r.b*r.b),r.l,r.opacity)}
function rj(r,d,Y,Gq){return arguments.length===1?dd(r):new t5(r,d,Y,Gq==null?1:Gq)}
function t5(r,d,Y,Gq){this.h=+r;this.c=+d;this.l=+Y;this.opacity=+Gq}
function M8(r,d,Y,Gq){if(arguments.length===1){var Vu=r;if(Vu instanceof CD)Vu=new CD(Vu.h,Vu.s,Vu.l,Vu.opacity);else{Vu instanceof tc||(Vu=Va(Vu));var fO=Vu.g/255,Ad=Vu.b/255,yu=(jFW*Ad+Vu.r/255*-1.7884503806-3.5172982438*fO)/(jFW+-1.7884503806-3.5172982438);Ad-=yu;var jB=(1.97294*(fO-yu)- -.29227*Ad)/-.90649;Ad=(fO=Math.sqrt(jB*jB+Ad*Ad)/(1.97294*yu*(1-yu)))?Math.atan2(jB,Ad)*qTO-120:NaN;Vu=new CD(Ad<0?Ad+360:Ad,fO,yu,Vu.opacity)}}else Vu=new CD(r,d,Y,Gq==null?1:Gq);return Vu}
function CD(r,d,Y,Gq){this.h=+r;this.s=+d;this.l=+Y;this.opacity=+Gq}
function Bg(r,d,Y,Gq,Vu){var fO=r*r,Ad=fO*r;return((1-3*r+3*fO-Ad)*d+(4-6*fO+3*Ad)*Y+(1+3*r+3*fO-3*Ad)*Gq+Ad*Vu)/6}
function fQ(r){return function(){return r}}
function ok(r,d){return function(Y){return r+Y*d}}
function Tt(r,d,Y){return r=Math.pow(r,Y),d=Math.pow(d,Y)-r,Y=1/Y,function(Gq){return Math.pow(r+Gq*d,Y)}}
function Jz(r,d){var Y=d-r;return Y?ok(r,Y>180||Y<-180?Y-360*Math.round(Y/360):Y):fQ(isNaN(r)?d:r)}
function EM(r){return(r=+r)===1?XQ:function(d,Y){return Y-d?Tt(d,Y,r):fQ(isNaN(d)?Y:d)}}
function XQ(r,d){var Y=d-r;return Y?ok(r,Y):fQ(isNaN(r)?d:r)}
function Fs(r){return function(d){var Y=d.length,Gq=Array(Y),Vu=Array(Y),fO=Array(Y),Ad;for(Ad=0;Ad<Y;++Ad){var yu=XJ(d[Ad]);Gq[Ad]=yu.r||0;Vu[Ad]=yu.g||0;fO[Ad]=yu.b||0}Gq=r(Gq);Vu=r(Vu);fO=r(fO);yu.opacity=1;return function(jB){yu.r=Gq(jB);yu.g=Vu(jB);yu.b=fO(jB);return yu+""}}}
function sg(r,d){return r=+r,d-=r,function(Y){return r+d*Y}}
function s5(r){return function(){return r}}
function lL(r){return function(d){return r(d)+""}}
function nO(r,d){var Y=Mtr.lastIndex=Z5O.lastIndex=0,Gq,Vu,fO,Ad=-1,yu=[],jB=[];r+="";for(d+="";(Gq=Mtr.exec(r))&&(Vu=Z5O.exec(d));)(fO=Vu.index)>Y&&(fO=d.slice(Y,fO),yu[Ad]?yu[Ad]+=fO:yu[++Ad]=fO),(Gq=Gq[0])===(Vu=Vu[0])?yu[Ad]?yu[Ad]+=Vu:yu[++Ad]=Vu:(yu[++Ad]=null,jB.push({i:Ad,x:sg(Gq,Vu)})),Y=Z5O.lastIndex;Y<d.length&&(fO=d.slice(Y),yu[Ad]?yu[Ad]+=fO:yu[++Ad]=fO);return yu.length<2?jB[0]?lL(jB[0].x):s5(d):(d=jB.length,function($b){for(var mO=0,LQ;mO<d;++mO)yu[(LQ=jB[mO]).i]=LQ.x($b);return yu.join("")})}
function za(r,d,Y,Gq,Vu,fO){var Ad,yu,jB;if(Ad=Math.sqrt(r*r+d*d))r/=Ad,d/=Ad;if(jB=r*Y+d*Gq)Y-=r*jB,Gq-=d*jB;if(yu=Math.sqrt(Y*Y+Gq*Gq))Y/=yu,Gq/=yu,jB/=yu;r*Gq<d*Y&&(r=-r,d=-d,jB=-jB,Ad=-Ad);return{translateX:Vu,translateY:fO,rotate:Math.atan2(d,r)*lFi,skewX:Math.atan(jB)*lFi,scaleX:Ad,scaleY:yu}}
function o5(r,d,Y,Gq){function Vu($b){return $b.length?$b.pop()+" ":""}
function fO($b,mO,LQ,wz,FW,gd){$b!==LQ||mO!==wz?(FW=FW.push("translate(",null,d,null,Y),gd.push({i:FW-4,x:sg($b,LQ)},{i:FW-2,x:sg(mO,wz)})):(LQ||wz)&&FW.push("translate("+LQ+d+wz+Y)}
function Ad($b,mO,LQ,wz){$b!==mO?($b-mO>180?mO+=360:mO-$b>180&&($b+=360),wz.push({i:LQ.push(Vu(LQ)+"rotate(",null,Gq)-2,x:sg($b,mO)})):mO&&LQ.push(Vu(LQ)+"rotate("+mO+Gq)}
function yu($b,mO,LQ,wz){$b!==mO?wz.push({i:LQ.push(Vu(LQ)+"skewX(",null,Gq)-2,x:sg($b,mO)}):mO&&LQ.push(Vu(LQ)+"skewX("+mO+Gq)}
function jB($b,mO,LQ,wz,FW,gd){$b!==LQ||mO!==wz?(FW=FW.push(Vu(FW)+"scale(",null,",",null,")"),gd.push({i:FW-4,x:sg($b,LQ)},{i:FW-2,x:sg(mO,wz)})):LQ===1&&wz===1||FW.push(Vu(FW)+"scale("+LQ+","+wz+")")}
return function($b,mO){var LQ=[],wz=[];$b=r($b);mO=r(mO);fO($b.translateX,$b.translateY,mO.translateX,mO.translateY,LQ,wz);Ad($b.rotate,mO.rotate,LQ,wz);yu($b.skewX,mO.skewX,LQ,wz);jB($b.scaleX,$b.scaleY,mO.scaleX,mO.scaleY,LQ,wz);$b=mO=null;return function(FW){for(var gd=-1,R$=wz.length,o$;++gd<R$;)LQ[(o$=wz[gd]).i]=o$.x(FW);return LQ.join("")}}}
function vL(r){return function(d,Y){var Gq=r((d=J4(d)).h,(Y=J4(Y)).h),Vu=XQ(d.s,Y.s),fO=XQ(d.l,Y.l),Ad=XQ(d.opacity,Y.opacity);return function(yu){d.h=Gq(yu);d.s=Vu(yu);d.l=fO(yu);d.opacity=Ad(yu);return d+""}}}
function Ly(r){return function(d,Y){var Gq=r((d=rj(d)).h,(Y=rj(Y)).h),Vu=XQ(d.c,Y.c),fO=XQ(d.l,Y.l),Ad=XQ(d.opacity,Y.opacity);return function(yu){d.h=Gq(yu);d.c=Vu(yu);d.l=fO(yu);d.opacity=Ad(yu);return d+""}}}
function py(r){return function Gq(Y){function Vu(fO,Ad){var yu=r((fO=M8(fO)).h,(Ad=M8(Ad)).h),jB=XQ(fO.s,Ad.s),$b=XQ(fO.l,Ad.l),mO=XQ(fO.opacity,Ad.opacity);return function(LQ){fO.h=yu(LQ);fO.s=jB(LQ);fO.l=$b(Math.pow(LQ,Y));fO.opacity=mO(LQ);return fO+""}}
Y=+Y;Vu.gamma=Gq;return Vu}(1)}
function O8(){return ij||(mM5(hN),ij=Sz.now()+P6p)}
function hN(){ij=0}
function HN(){this._call=this._time=this._next=null}
function u8(r,d,Y){var Gq=new HN;Gq.restart(r,d,Y);return Gq}
function Rf(){ij=(dBO=Sz.now())+P6p;mW=Xy=0;try{O8();++mW;for(var r=yMp,d;r;)(d=ij-r._time)>=0&&r._call.call(null,d),r=r._next;--mW}finally{mW=0;r=yMp;for(var Y=Infinity;r;)if(r._call){Y>r._time&&(Y=r._time);var Gq=r;r=r._next}else d=r._next,r._next=null,r=Gq?Gq._next=d:yMp=d;$w=Gq;na(Y);ij=0}}
function Qvd(){var r=Sz.now(),d=r-dBO;d>1E3&&(P6p-=d,dBO=r)}
function na(r){mW||(Xy&&(Xy=clearTimeout(Xy)),r-ij>24?(r<Infinity&&(Xy=setTimeout(Rf,r-Sz.now()-P6p)),Gu&&(Gu=clearInterval(Gu))):(Gu||(dBO=Sz.now(),Gu=setInterval(Qvd,1E3)),mW=1,mM5(Rf)))}
function eoe(r,d,Y){var Gq=new HN;d=d==null?0:+d;Gq.restart(function(Vu){Gq.stop();r(Vu+d)},d,Y);
return Gq}
function ttj(r,d,Y,Gq,Vu,fO){var Ad=r.__transition;if(!Ad)r.__transition={};else if(Y in Ad)return;lFK(r,Y,{name:d,index:Gq,group:Vu,on:mMc,tween:eoY,time:fO.time,delay:fO.delay,duration:fO.duration,ease:fO.ease,timer:null,state:0})}
function zPv(r,d){r=K4(r,d);if(r.state>0)throw Error("ye");return r}
function PV(r,d){r=K4(r,d);if(r.state>2)throw Error("ze");return r}
function K4(r,d){r=r.__transition;if(!r||!(r=r[d]))throw Error("Ae");return r}
function lFK(r,d,Y){function Gq(jB){var $b,mO;if(Y.state!==1)return fO();for(wz in Ad){var LQ=Ad[wz];if(LQ.name===Y.name){if(LQ.state===3)return eoe(Gq);LQ.state===4?(LQ.state=6,LQ.timer.stop(),LQ.on.call("interrupt",r,r.__data__,LQ.index,LQ.group),delete Ad[wz]):+wz<d&&(LQ.state=6,LQ.timer.stop(),delete Ad[wz])}}eoe(function(){Y.state===3&&(Y.state=4,Y.timer.restart(Vu,Y.delay,Y.time),Vu(jB))});
Y.state=2;Y.on.call("start",r,r.__data__,Y.index,Y.group);if(Y.state===2){Y.state=3;yu=Array(mO=Y.tween.length);var wz=0;for($b=-1;wz<mO;++wz)if(LQ=Y.tween[wz].value.call(r,r.__data__,Y.index,Y.group))yu[++$b]=LQ;yu.length=$b+1}}
function Vu(jB){jB=jB<Y.duration?Y.ease.call(null,jB/Y.duration):(Y.timer.restart(fO),Y.state=5,1);for(var $b=-1,mO=yu.length;++$b<mO;)yu[$b].call(null,jB);Y.state===5&&(Y.on.call("end",r,r.__data__,Y.index,Y.group),fO())}
function fO(){Y.state=6;Y.timer.stop();delete Ad[d];for(var jB in Ad)return;delete r.__transition}
var Ad=r.__transition,yu;Ad[d]=Y;Y.timer=u8(function(jB){Y.state=1;Y.timer.restart(Gq,Y.delay,Y.time);Y.delay<=jB&&Gq(jB-Y.delay)},0,Y.time)}
function VJf(r,d){var Y,Gq;return function(){var Vu=PV(this,r),fO=Vu.tween;if(fO!==Y){Gq=Y=fO;fO=0;for(var Ad=Gq.length;fO<Ad;++fO)if(Gq[fO].name===d){Gq=Gq.slice();Gq.splice(fO,1);break}}Vu.tween=Gq}}
function DMj(r,d,Y){var Gq,Vu;if(typeof Y!=="function")throw Error();return function(){var fO=PV(this,r),Ad=fO.tween;if(Ad!==Gq){Vu=(Gq=Ad).slice();Ad={name:d,value:Y};for(var yu=0,jB=Vu.length;yu<jB;++yu)if(Vu[yu].name===d){Vu[yu]=Ad;break}yu===jB&&Vu.push(Ad)}fO.tween=Vu}}
function oka(r,d,Y){var Gq=r._id;r.each(function(){var Vu=PV(this,Gq);(Vu.value||(Vu.value={}))[d]=Y.apply(this,arguments)});
return function(Vu){return K4(Vu,Gq).value[d]}}
function VJ8(r,d){var Y;return(typeof d==="number"?sg:d instanceof yK?DMz:(Y=yK(d))?(d=Y,DMz):nO)(r,d)}
function coL(r){return function(){this.removeAttribute(r)}}
function kJf(r){return function(){this.removeAttributeNS(r.space,r.local)}}
function vEW(r,d,Y){var Gq,Vu;return function(){var fO=this.getAttribute(r);return fO===Y?null:fO===Gq?Vu:Vu=d(Gq=fO,Y)}}
function Li8(r,d,Y){var Gq,Vu;return function(){var fO=this.getAttributeNS(r.space,r.local);return fO===Y?null:fO===Gq?Vu:Vu=d(Gq=fO,Y)}}
function QF1(r,d,Y){var Gq,Vu,fO;return function(){var Ad=Y(this);if(Ad==null)return void this.removeAttribute(r);var yu=this.getAttribute(r);return yu===Ad?null:yu===Gq&&Ad===Vu?fO:fO=d(Gq=yu,Vu=Ad)}}
function xM8(r,d,Y){var Gq,Vu,fO;return function(){var Ad=Y(this);if(Ad==null)return void this.removeAttributeNS(r.space,r.local);var yu=this.getAttributeNS(r.space,r.local);return yu===Ad?null:yu===Gq&&Ad===Vu?fO:fO=d(Gq=yu,Vu=Ad)}}
function fFf(r,d){function Y(){var Gq=this,Vu=d.apply(Gq,arguments);return Vu&&function(fO){Gq.setAttributeNS(r.space,r.local,Vu(fO))}}
Y._value=d;return Y}
function TFj(r,d){function Y(){var Gq=this,Vu=d.apply(Gq,arguments);return Vu&&function(fO){Gq.setAttribute(r,Vu(fO))}}
Y._value=d;return Y}
function BFD(r,d){return function(){zPv(this,r).delay=+d.apply(this,arguments)}}
function UM1(r,d){return d=+d,function(){zPv(this,r).delay=d}}
function sFe(r,d){return function(){PV(this,r).duration=+d.apply(this,arguments)}}
function gE1(r,d){return d=+d,function(){PV(this,r).duration=d}}
function AoD(r,d){if(typeof d!=="function")throw Error();return function(){PV(this,r).ease=d}}
function MJf(r){return(r+"").trim().split(/^|\s+/).every(function(d){var Y=d.indexOf(".");Y>=0&&(d=d.slice(0,Y));return!d||d==="start"})}
function Z99(r,d,Y){var Gq,Vu,fO=MJf(d)?zPv:PV;return function(){var Ad=fO(this,r),yu=Ad.on;if(yu!==Gq)(Vu=(Gq=yu).copy()).on(d,Y);Ad.on=Vu}}
function tJ9(r){return function(){var d=this.parentNode,Y;for(Y in this.__transition)if(+Y!==r)return;d&&d.removeChild(this)}}
function zo8(r,d){var Y,Gq,Vu;return function(){var fO=xa(this,r),Ad=(this.style.removeProperty(r),xa(this,r));return fO===Ad?null:fO===Y&&Ad===Gq?Vu:Vu=d(Y=fO,Gq=Ad)}}
function oEc(r){return function(){this.style.removeProperty(r)}}
function i9F(r,d,Y){var Gq,Vu;return function(){var fO=xa(this,r);return fO===Y?null:fO===Gq?Vu:Vu=d(Gq=fO,Y)}}
function P71(r,d,Y){var Gq,Vu,fO;return function(){var Ad=xa(this,r),yu=Y(this);yu==null&&(yu=(this.style.removeProperty(r),xa(this,r)));return Ad===yu?null:Ad===Gq&&yu===Vu?fO:fO=d(Gq=Ad,Vu=yu)}}
function dMD(r,d,Y){function Gq(){var Vu=this,fO=d.apply(Vu,arguments);return fO&&function(Ad){Vu.style.setProperty(r,fO(Ad),Y)}}
Gq._value=d;return Gq}
function yoD(r){return function(){this.textContent=r}}
function roj(r){return function(){var d=r(this);this.textContent=d==null?"":d}}
function B6(r,d,Y,Gq){this._groups=r;this._parents=d;this._name=Y;this._id=Gq}
function i5O(r){return{type:r}}
function Phu(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function rMr(){}
function coX(r,d){var Y=new rMr;if(r instanceof rMr)r.each(function(Ad,yu){Y.set(yu,Ad)});
else if(Array.isArray(r)){var Gq=-1,Vu=r.length,fO;if(d==null)for(;++Gq<Vu;)Y.set(Gq,r[Gq]);else for(;++Gq<Vu;)Y.set(d(fO=r[Gq],Gq,r),fO)}else if(r)for(Gq in r)Y.set(Gq,r[Gq]);return Y}
function FGs(){}
function kJ8(r){return function(d){for(var Y={},Gq=0;Gq<r.length;Gq++)Y[r[Gq]]=d[Gq]||"";return Y}}
function FiK(r,d){var Y=kJ8(r);return function(Gq,Vu){return d(Y(Gq),Vu,r)}}
function H95(r){var d=Object.create(null),Y=[];r.forEach(function(Gq){for(var Vu in Gq)Vu in d||Y.push(d[Vu]=Vu)});
return Y}
function vEJ(r){function d(Ad,yu){function jB(){if(gd)return dTs;if(R$)return R$=!1,LiB;var hU,$z=LQ,AZ;if(Ad.charCodeAt($z)===34){for(;LQ++<mO&&Ad.charCodeAt(LQ)!==34||Ad.charCodeAt(++LQ)===34;);(hU=LQ)>=mO?gd=!0:(AZ=Ad.charCodeAt(LQ++))===10?R$=!0:AZ===13&&(R$=!0,Ad.charCodeAt(LQ)===10&&++LQ);return Ad.slice($z+1,hU-1).replace(/""/g,'"')}for(;LQ<mO;){if((AZ=Ad.charCodeAt(hU=LQ++))===10)R$=!0;else if(AZ===13)R$=!0,Ad.charCodeAt(LQ)===10&&++LQ;else if(AZ!==fO)continue;return Ad.slice($z,hU)}return gd=
!0,Ad.slice($z,mO)}
var $b=[],mO=Ad.length,LQ=0,wz=0,FW,gd=mO<=0,R$=!1;Ad.charCodeAt(mO-1)===10&&--mO;for(Ad.charCodeAt(mO-1)===13&&--mO;(FW=jB())!==dTs;){for(var o$=[];FW!==LiB&&FW!==dTs;)o$.push(FW),FW=jB();yu&&(o$=yu(o$,wz++))==null||$b.push(o$)}return $b}
function Y(Ad){return Ad.map(Gq).join(r)}
function Gq(Ad){return Ad==null?"":Vu.test(Ad)?'"'+Ad.replace(/"/g,'""')+'"':Ad}
var Vu=new RegExp('["'+r+"\n\r]"),fO=r.charCodeAt(0);return{parse:function(Ad,yu){var jB,$b;Ad=d(Ad,function(mO,LQ){if(jB)return jB(mO,LQ-1);$b=mO;jB=yu?FiK(mO,yu):kJ8(mO)});
Ad.columns=$b||[];return Ad},
parseRows:d,format:function(Ad,yu){yu==null&&(yu=H95(Ad));return[yu.map(Gq).join(r)].concat(Ad.map(function(jB){return yu.map(function($b){return Gq(jB[$b])}).join(r)})).join("\n")},
formatRows:function(Ad){return Ad.map(Y).join("\n")}}}
function WiL(r){if(!r.ok)throw Error("Be`"+r.status+"`"+r.statusText);return r.text()}
function QFu(r){return function(d,Y,Gq){arguments.length===2&&typeof Y==="function"&&(Gq=Y,Y=void 0);return fetch(d,Y).then(WiL).then(function(Vu){return r(Vu,Gq)})}}
function xMB(r,d,Y,Gq){if(isNaN(d)||isNaN(Y))return r;var Vu,fO=r._root;Gq={data:Gq};var Ad=r._x0,yu=r._y0,jB=r._x1,$b=r._y1,mO,LQ,wz,FW,gd;if(!fO)return r._root=Gq,r;for(;fO.length;)if((wz=d>=(mO=(Ad+jB)/2))?Ad=mO:jB=mO,(FW=Y>=(LQ=(yu+$b)/2))?yu=LQ:$b=LQ,Vu=fO,!(fO=fO[gd=FW<<1|wz]))return Vu[gd]=Gq,r;var R$=+r._x.call(null,fO.data);var o$=+r._y.call(null,fO.data);if(d===R$&&Y===o$)return Gq.next=fO,Vu?Vu[gd]=Gq:r._root=Gq,r;do Vu=Vu?Vu[gd]=Array(4):r._root=Array(4),(wz=d>=(mO=(Ad+jB)/2))?Ad=mO:jB=
mO,(FW=Y>=(LQ=(yu+$b)/2))?yu=LQ:$b=LQ;while((gd=FW<<1|wz)===(wz=(o$>=LQ)<<1|R$>=mO));return Vu[wz]=fO,Vu[gd]=Gq,r}
function Oo(r,d,Y,Gq,Vu){this.node=r;this.x0=d;this.y0=Y;this.x1=Gq;this.y1=Vu}
function aFa(r){return r[0]}
function NF8(r){return r[1]}
function yys(r,d,Y,Gq,Vu,fO){this._x=r;this._y=d;this._x0=Y;this._y0=Gq;this._x1=Vu;this._y1=fO;this._root=void 0}
function fF8(r){for(var d={data:r.data},Y=d;r=r.next;)Y=Y.next={data:r.data};return d}
function H1O(r,d){if((d=(r=d?r.toExponential(d-1):r.toExponential()).indexOf("e"))<0)return null;var Y=r.slice(0,d);return[Y.length>1?Y[0]+Y.slice(2):Y,+r.slice(d+1)]}
function YT8(r){return r=H1O(Math.abs(r)),r?r[1]:NaN}
function C7e(r,d){return function(Y,Gq){for(var Vu=Y.length,fO=[],Ad=0,yu=r[0],jB=0;Vu>0&&yu>0;){jB+yu+1>Gq&&(yu=Math.max(1,Gq-jB));fO.push(Y.substring(Vu-=yu,Vu+yu));if((jB+=yu+1)>Gq)break;yu=r[Ad=(Ad+1)%r.length]}return fO.reverse().join(d)}}
function JoY(r){return function(d){return d.replace(/[0-9]/g,function(Y){return r[+Y]})}}
function ryO(r){return new FUu(r)}
function FUu(r){if(!(d=KiK.exec(r)))throw Error("Ce`"+r);var d;this.fill=d[1]||" ";this.align=d[2]||">";this.sign=d[3]||"-";this.symbol=d[4]||"";this.zero=!!d[5];this.width=d[6]&&+d[6];this.comma=!!d[7];this.precision=d[8]&&+d[8].slice(1);this.trim=!!d[9];this.type=d[10]||""}
function TFz(r,d){d=H1O(r,d);if(!d)return r+"";r=d[0];d=d[1];return d<0?"0."+Array(-d).join("0")+r:r.length>d+1?r.slice(0,d+1)+"."+r.slice(d+1):r+Array(d-r.length+2).join("0")}
function BFQ(r){return r}
function u1j(r){function d(yu){function jB(So){var Ts=AZ,wj=bA,sv,DK;if($z==="c")wj=GF(So)+wj,So="";else{So=+So;var a5=So<0;So=GF(Math.abs(So),o$);if(hU){var EB=So.length,p8=1,qy=-1;a:for(;p8<EB;++p8)switch(So[p8]){case ".":qy=sv=p8;break;case "0":qy===0&&(qy=p8);sv=p8;break;default:if(!+So[p8])break a;qy>0&&(qy=0)}So=qy>0?So.slice(0,qy)+So.slice(sv+1):So}a5&&+So===0&&(a5=!1);Ts=(a5?LQ==="("?LQ:"-":LQ==="-"||LQ==="("?"":LQ)+Ts;wj=($z==="s"?UMu[8+sFW/3]:"")+wj+(a5&&LQ==="("?")":"");if(gk)for(a5=-1,
sv=So.length;++a5<sv;)if(DK=So.charCodeAt(a5),48>DK||DK>57){wj=(DK===46?Vu+So.slice(a5+1):So.slice(a5))+wj;So=So.slice(0,a5);break}}R$&&!FW&&(So=Y(So,Infinity));DK=Ts.length+So.length+wj.length;a5=DK<gd?Array(gd-DK+1).join($b):"";R$&&FW&&(So=Y(a5+So,a5.length?gd-wj.length:Infinity),a5="");switch(mO){case "<":So=Ts+So+wj+a5;break;case "=":So=Ts+a5+So+wj;break;case "^":So=a5.slice(0,DK=a5.length>>1)+Ts+So+wj+a5.slice(DK);break;default:So=a5+Ts+So+wj}return fO(So)}
yu=ryO(yu);var $b=yu.fill,mO=yu.align,LQ=yu.sign,wz=yu.symbol,FW=yu.zero,gd=yu.width,R$=yu.comma,o$=yu.precision,hU=yu.trim,$z=yu.type;$z==="n"?(R$=!0,$z="g"):gEu[$z]||(o$==null&&(o$=12),hU=!0,$z="g");if(FW||$b==="0"&&mO==="=")FW=!0,$b="0",mO="=";var AZ=wz==="$"?Gq[0]:wz==="#"&&/[boxX]/.test($z)?"0"+$z.toLowerCase():"",bA=wz==="$"?Gq[1]:/[%p]/.test($z)?Ad:"",GF=gEu[$z],gk=/[defgprs%]/.test($z);o$=o$==null?6:/[gprs]/.test($z)?Math.max(1,Math.min(21,o$)):Math.max(0,Math.min(20,o$));jB.toString=function(){return yu+
""};
return jB}
var Y=r.grouping&&r.thousands?C7e(r.grouping,r.thousands):BFQ,Gq=r.currency,Vu=r.decimal,fO=r.numerals?JoY(r.numerals):BFQ,Ad=r.percent||"%";return{format:d,formatPrefix:function(yu,jB){var $b=d((yu=ryO(yu),yu.type="f",yu));yu=Math.max(-8,Math.min(8,Math.floor(YT8(jB)/3)))*3;var mO=Math.pow(10,-yu),LQ=UMu[8+yu/3];return function(wz){return $b(mO*wz)+LQ}}}}
function Cp(){this.reset()}
function AoQ(r,d,Y){var Gq=r.s=d+Y,Vu=Gq-d;r.t=d-(Gq-Vu)+(Y-Vu)}
function WGd(r){return r>1?O4:r<-1?-O4:Math.asin(r)}
function Ro9(){}
function MJ8(r){var d=r[0];r=r[1];var Y=wc(r);return[Y*wc(d),Y*oo(d),oo(r)]}
function Z9O(r,d){return[r[1]*d[2]-r[2]*d[1],r[2]*d[0]-r[0]*d[2],r[0]*d[1]-r[1]*d[0]]}
function tJO(r){var d=a5X(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);r[0]/=d;r[1]/=d;r[2]/=d}
function nE1(){var r=[],d;return{point:function(Y,Gq){d.push([Y,Gq])},
lineStart:function(){r.push(d=[])},
lineEnd:Ro9,rejoin:function(){r.length>1&&r.push(r.pop().concat(r.shift()))},
result:function(){var Y=r;r=[];d=null;return Y}}}
function NHO(r,d,Y,Gq){this.x=r;this.z=d;this.o=Y;this.e=Gq;this.v=!1;this.n=this.p=null}
function O9K(r,d,Y,Gq,Vu){var fO=[],Ad=[];r.forEach(function(LQ){if(!((wz=LQ.length-1)<=0)){var wz,FW=LQ[0],gd=LQ[wz],R$=FW;if(UQ(R$[0]-gd[0])<1E-6&&UQ(R$[1]-gd[1])<1E-6){Vu.lineStart();for(yu=0;yu<wz;++yu)Vu.point((FW=LQ[yu])[0],FW[1]);Vu.lineEnd()}else fO.push(wz=new NHO(FW,LQ,null,!0)),Ad.push(wz.o=new NHO(FW,null,wz,!1)),fO.push(wz=new NHO(gd,LQ,null,!1)),Ad.push(wz.o=new NHO(gd,null,wz,!0))}});
if(fO.length){Ad.sort(d);zoB(fO);zoB(Ad);var yu=0;for(r=Ad.length;yu<r;++yu)Ad[yu].e=Y=!Y;Y=fO[0];for(var jB;;){for(var $b=Y,mO=!0;$b.v;)if(($b=$b.n)===Y)return;d=$b.z;Vu.lineStart();do{$b.v=$b.o.v=!0;if($b.e){if(mO)for(yu=0,r=d.length;yu<r;++yu)Vu.point((jB=d[yu])[0],jB[1]);else Gq($b.x,$b.n.x,1,Vu);$b=$b.n}else{if(mO)for(d=$b.p.z,yu=d.length-1;yu>=0;--yu)Vu.point((jB=d[yu])[0],jB[1]);else Gq($b.x,$b.p.x,-1,Vu);$b=$b.p}$b=$b.o;d=$b.z;mO=!mO}while(!$b.v);Vu.lineEnd()}}}
function zoB(r){if(d=r.length){for(var d,Y=0,Gq=r[0],Vu;++Y<d;)Gq.n=Vu=r[Y],Vu.p=Gq,Gq=Vu;Gq.n=Vu=r[0];Vu.p=Gq}}
function wFL(r){return r.length>1}
function EEL(r,d){return((r=r.x)[0]<0?r[1]-O4-1E-6:O4-r[1])-((d=d.x)[0]<0?d[1]-O4-1E-6:O4-d[1])}
function H5s(){}
function oE5(r){return function(d,Y){var Gq=wc(d),Vu=wc(Y);Gq=r(Gq*Vu);return[Gq*Vu*oo(d),Gq*oo(Y)]}}
function bq(r){return function(d,Y){var Gq=a5X(d*d+Y*Y),Vu=r(Gq),fO=oo(Vu);Vu=wc(Vu);return[i9n(d*fO,Gq*Vu),WGd(Gq&&Y*fO/Gq)]}}
function pFc(r){var d=0,Y=r.children,Gq=Y&&Y.length;if(Gq)for(;--Gq>=0;)d+=Y[Gq].value;else d=1;r.value=d}
function P7u(r,d){var Y=new Ii(r);r=+r.value&&(Y.value=r.value);var Gq,Vu=[Y],fO,Ad,yu,jB;for(d==null&&(d=STj);Gq=Vu.pop();)if(r&&(Gq.value=+Gq.data.value),(Ad=d(Gq.data))&&(jB=Ad.length))for(Gq.children=Array(jB),yu=jB-1;yu>=0;--yu)Vu.push(fO=Gq.children[yu]=new Ii(Ad[yu])),fO.parent=Gq,fO.depth=Gq.depth+1;return Y.eachBefore(XFD)}
function STj(r){return r.children}
function $Jc(r){r.data=r.data.data}
function XFD(r){var d=0;do r.height=d;while((r=r.parent)&&r.height<++d)}
function Ii(r){this.data=r;this.depth=this.height=0;this.parent=null}
function Tg(r,d,Y,Gq){function Vu(fO){return r(fO=new Date(+fO)),fO}
Vu.floor=Vu;Vu.ceil=function(fO){return r(fO=new Date(fO-1)),d(fO,1),r(fO),fO};
Vu.round=function(fO){var Ad=Vu(fO),yu=Vu.ceil(fO);return fO-Ad<yu-fO?Ad:yu};
Vu.offset=function(fO,Ad){return d(fO=new Date(+fO),Ad==null?1:Math.floor(Ad)),fO};
Vu.range=function(fO,Ad,yu){var jB=[],$b;fO=Vu.ceil(fO);yu=yu==null?1:Math.floor(yu);if(!(fO<Ad&&yu>0))return jB;do jB.push($b=new Date(+fO)),d(fO,yu),r(fO);while($b<fO&&fO<Ad);return jB};
Vu.filter=function(fO){return Tg(function(Ad){if(Ad>=Ad)for(;r(Ad),!fO(Ad);)Ad.setTime(Ad-1)},function(Ad,yu){if(Ad>=Ad)if(yu<0)for(;++yu<=0;)for(;d(Ad,-1),!fO(Ad););
else for(;--yu>=0;)for(;d(Ad,1),!fO(Ad););})};
Y&&(Vu.count=function(fO,Ad){WU2.setTime(+fO);a9X.setTime(+Ad);r(WU2);r(a9X);return Math.floor(Y(WU2,a9X))},Vu.every=function(fO){fO=Math.floor(fO);
return isFinite(fO)&&fO>0?fO>1?Vu.filter(Gq?function(Ad){return Gq(Ad)%fO===0}:function(Ad){return Vu.count(0,Ad)%fO===0}):Vu:null});
return Vu}
function d$(r){return Tg(function(d){d.setDate(d.getDate()-(d.getDay()+7-r)%7);d.setHours(0,0,0,0)},function(d,Y){d.setDate(d.getDate()+Y*7)},function(d,Y){return(Y-d-(Y.getTimezoneOffset()-d.getTimezoneOffset())*6E4)/6048E5})}
function y6(r){return Tg(function(d){d.setUTCDate(d.getUTCDate()-(d.getUTCDay()+7-r)%7);d.setUTCHours(0,0,0,0)},function(d,Y){d.setUTCDate(d.getUTCDate()+Y*7)},function(d,Y){return(Y-d)/6048E5})}
function Gc5(r){if(0<=r.y&&r.y<100){var d=new Date(-1,r.m,r.d,r.H,r.M,r.S,r.L);d.setFullYear(r.y);return d}return new Date(r.y,r.m,r.d,r.H,r.M,r.S,r.L)}
function YYX(r){if(0<=r.y&&r.y<100){var d=new Date(Date.UTC(-1,r.m,r.d,r.H,r.M,r.S,r.L));d.setUTCFullYear(r.y);return d}return new Date(Date.UTC(r.y,r.m,r.d,r.H,r.M,r.S,r.L))}
function hR(r){return{y:r,m:0,d:1,H:0,M:0,S:0,L:0}}
function bq8(r){function d(wj,sv){return function(DK){var a5=[],EB=-1,p8=0,qy=wj.length,Bf,sK;for(DK instanceof Date||(DK=new Date(+DK));++EB<qy;)if(wj.charCodeAt(EB)===37){a5.push(wj.slice(p8,EB));(p8=dMQ[Bf=wj.charAt(++EB)])!=null?Bf=wj.charAt(++EB):p8=Bf==="e"?" ":"0";if(sK=sv[Bf])Bf=sK(DK,p8);a5.push(Bf);p8=EB+1}a5.push(wj.slice(p8,EB));return a5.join("")}}
function Y(wj,sv){return function(DK){var a5=hR(1900);if(Gq(a5,wj,DK,0)!=DK.length)return null;if("Q"in a5)return new Date(a5.Q);"p"in a5&&(a5.H=a5.H%12+a5.p*12);if("V"in a5){if(a5.V<1||a5.V>53)return null;"w"in a5||(a5.w=1);if("Z"in a5){DK=YYX(hR(a5.y));var EB=DK.getUTCDay();DK=EB>4||EB===0?NNj.ceil(DK):NNj(DK);DK=yoQ.offset(DK,(a5.V-1)*7);a5.y=DK.getUTCFullYear();a5.m=DK.getUTCMonth();a5.d=DK.getUTCDate()+(a5.w+6)%7}else DK=sv(hR(a5.y)),EB=DK.getDay(),DK=EB>4||EB===0?Yqu.ceil(DK):Yqu(DK),DK=roz.offset(DK,
(a5.V-1)*7),a5.y=DK.getFullYear(),a5.m=DK.getMonth(),a5.d=DK.getDate()+(a5.w+6)%7}else if("W"in a5||"U"in a5)"w"in a5||(a5.w="u"in a5?a5.u%7:"W"in a5?1:0),EB="Z"in a5?YYX(hR(a5.y)).getUTCDay():sv(hR(a5.y)).getDay(),a5.m=0,a5.d="W"in a5?(a5.w+6)%7+a5.W*7-(EB+5)%7:a5.w+a5.U*7-(EB+6)%7;return"Z"in a5?(a5.H+=a5.Z/100|0,a5.M+=a5.Z%100,YYX(a5)):sv(a5)}}
function Gq(wj,sv,DK,a5){for(var EB=0,p8=sv.length,qy=DK.length,Bf;EB<p8;){if(a5>=qy)return-1;Bf=sv.charCodeAt(EB++);if(Bf===37){if(Bf=sv.charAt(EB++),Bf=Ts[Bf in dMQ?sv.charAt(EB++):Bf],!Bf||(a5=Bf(wj,DK,a5))<0)return-1}else if(Bf!=DK.charCodeAt(a5++))return-1}return a5}
var Vu=r.dateTime,fO=r.date,Ad=r.time,yu=r.periods,jB=r.days,$b=r.shortDays,mO=r.months,LQ=r.shortMonths,wz=qX(yu),FW=jw(yu),gd=qX(jB),R$=jw(jB),o$=qX($b),hU=jw($b),$z=qX(mO),AZ=jw(mO),bA=qX(LQ),GF=jw(LQ),gk={a:function(wj){return $b[wj.getDay()]},
A:function(wj){return jB[wj.getDay()]},
b:function(wj){return LQ[wj.getMonth()]},
B:function(wj){return mO[wj.getMonth()]},
c:null,d:Fii,e:Fii,f:Isj,H:hE9,I:qmK,j:jmW,L:H9n,m:lsD,M:mJa,p:function(wj){return yu[+(wj.getHours()>=12)]},
Q:WiX,s:aFA,S:eEf,u:V$K,U:DJ1,V:cX5,w:kcW,W:v93,x:null,X:null,y:LrY,Y:Qme,Z:xJa,"%":NFB},So={a:function(wj){return $b[wj.getUTCDay()]},
A:function(wj){return jB[wj.getUTCDay()]},
b:function(wj){return LQ[wj.getUTCMonth()]},
B:function(wj){return mO[wj.getUTCMonth()]},
c:null,d:YTB,e:YTB,f:fs1,H:T1L,I:B13,j:UJf,L:C7W,m:smF,M:g9c,p:function(wj){return yu[+(wj.getUTCHours()>=12)]},
Q:WiX,s:aFA,S:AXF,u:M$L,U:Zq9,V:t$a,w:zEa,W:o9K,x:null,X:null,y:iqD,Y:PoW,Z:dJ8,"%":NFB},Ts={a:function(wj,sv,DK){return(sv=o$.exec(sv.slice(DK)))?(wj.w=hU[sv[0].toLowerCase()],DK+sv[0].length):-1},
A:function(wj,sv,DK){return(sv=gd.exec(sv.slice(DK)))?(wj.w=R$[sv[0].toLowerCase()],DK+sv[0].length):-1},
b:function(wj,sv,DK){return(sv=bA.exec(sv.slice(DK)))?(wj.m=GF[sv[0].toLowerCase()],DK+sv[0].length):-1},
B:function(wj,sv,DK){return(sv=$z.exec(sv.slice(DK)))?(wj.m=AZ[sv[0].toLowerCase()],DK+sv[0].length):-1},
c:function(wj,sv,DK){return Gq(wj,Vu,sv,DK)},
d:Joe,e:Joe,f:yXe,H:Kii,I:Kii,j:rX5,L:Fre,m:HqW,M:WrW,p:function(wj,sv,DK){return(sv=wz.exec(sv.slice(DK)))?(wj.p=FW[sv[0].toLowerCase()],DK+sv[0].length):-1},
Q:asL,s:N1a,S:Ym5,u:Coc,U:JX9,V:Kra,w:udL,W:REc,x:function(wj,sv,DK){return Gq(wj,fO,sv,DK)},
X:function(wj,sv,DK){return Gq(wj,Ad,sv,DK)},
y:n91,Y:OqF,Z:wc5,"%":E9a};gk.x=d(fO,gk);gk.X=d(Ad,gk);gk.c=d(Vu,gk);So.x=d(fO,So);So.X=d(Ad,So);So.c=d(Vu,So);return{format:function(wj){var sv=d(wj,gk);sv.toString=function(){return wj};
return sv},
parse:function(wj){var sv=Y(wj,Gc5);sv.toString=function(){return wj};
return sv},
utcFormat:function(wj){var sv=d(wj,So);sv.toString=function(){return wj};
return sv},
utcParse:function(wj){var sv=Y(wj,YYX);sv.toString=function(){return wj};
return sv}}}
function gy(r,d,Y){var Gq=r<0?"-":"";r=(Gq?-r:r)+"";var Vu=r.length;return Gq+(Vu<Y?Array(Y-Vu+1).join(d)+r:r)}
function pcj(r){return r.replace(Sme,"\\$&")}
function qX(r){return new RegExp("^(?:"+r.map(pcj).join("|")+")","i")}
function jw(r){for(var d={},Y=-1,Gq=r.length;++Y<Gq;)d[r[Y].toLowerCase()]=Y;return d}
function udL(r,d,Y){return(d=MP.exec(d.slice(Y,Y+1)))?(r.w=+d[0],Y+d[0].length):-1}
function Coc(r,d,Y){return(d=MP.exec(d.slice(Y,Y+1)))?(r.u=+d[0],Y+d[0].length):-1}
function JX9(r,d,Y){return(d=MP.exec(d.slice(Y,Y+2)))?(r.U=+d[0],Y+d[0].length):-1}
function Kra(r,d,Y){return(d=MP.exec(d.slice(Y,Y+2)))?(r.V=+d[0],Y+d[0].length):-1}
function REc(r,d,Y){return(d=MP.exec(d.slice(Y,Y+2)))?(r.W=+d[0],Y+d[0].length):-1}
function OqF(r,d,Y){return(d=MP.exec(d.slice(Y,Y+4)))?(r.y=+d[0],Y+d[0].length):-1}
function n91(r,d,Y){return(d=MP.exec(d.slice(Y,Y+2)))?(r.y=+d[0]+(+d[0]>68?1900:2E3),Y+d[0].length):-1}
function wc5(r,d,Y){return(d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(d.slice(Y,Y+6)))?(r.Z=d[1]?0:-(d[2]+(d[3]||"00")),Y+d[0].length):-1}
function HqW(r,d,Y){return(d=MP.exec(d.slice(Y,Y+2)))?(r.m=d[0]-1,Y+d[0].length):-1}
function Joe(r,d,Y){return(d=MP.exec(d.slice(Y,Y+2)))?(r.d=+d[0],Y+d[0].length):-1}
function rX5(r,d,Y){return(d=MP.exec(d.slice(Y,Y+3)))?(r.m=0,r.d=+d[0],Y+d[0].length):-1}
function Kii(r,d,Y){return(d=MP.exec(d.slice(Y,Y+2)))?(r.H=+d[0],Y+d[0].length):-1}
function WrW(r,d,Y){return(d=MP.exec(d.slice(Y,Y+2)))?(r.M=+d[0],Y+d[0].length):-1}
function Ym5(r,d,Y){return(d=MP.exec(d.slice(Y,Y+2)))?(r.S=+d[0],Y+d[0].length):-1}
function Fre(r,d,Y){return(d=MP.exec(d.slice(Y,Y+3)))?(r.L=+d[0],Y+d[0].length):-1}
function yXe(r,d,Y){return(d=MP.exec(d.slice(Y,Y+6)))?(r.L=Math.floor(d[0]/1E3),Y+d[0].length):-1}
function E9a(r,d,Y){return(r=Xce.exec(d.slice(Y,Y+1)))?Y+r[0].length:-1}
function asL(r,d,Y){return(d=MP.exec(d.slice(Y)))?(r.Q=+d[0],Y+d[0].length):-1}
function N1a(r,d,Y){return(d=MP.exec(d.slice(Y)))?(r.Q=+d[0]*1E3,Y+d[0].length):-1}
function Fii(r,d){return gy(r.getDate(),d,2)}
function hE9(r,d){return gy(r.getHours(),d,2)}
function qmK(r,d){return gy(r.getHours()%12||12,d,2)}
function jmW(r,d){return gy(1+roz.count(es(r),r),d,3)}
function H9n(r,d){return gy(r.getMilliseconds(),d,3)}
function Isj(r,d){return H9n(r,d)+"000"}
function lsD(r,d){return gy(r.getMonth()+1,d,2)}
function mJa(r,d){return gy(r.getMinutes(),d,2)}
function eEf(r,d){return gy(r.getSeconds(),d,2)}
function V$K(r){r=r.getDay();return r===0?7:r}
function DJ1(r,d){return gy($Ie.count(es(r),r),d,2)}
function cX5(r,d){var Y=r.getDay();r=Y>=4||Y===0?Chr(r):Chr.ceil(r);return gy(Chr.count(es(r),r)+(es(r).getDay()===4),d,2)}
function kcW(r){return r.getDay()}
function v93(r,d){return gy(Yqu.count(es(r),r),d,2)}
function LrY(r,d){return gy(r.getFullYear()%100,d,2)}
function Qme(r,d){return gy(r.getFullYear()%1E4,d,4)}
function xJa(r){r=r.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+gy(r/60|0,"0",2)+gy(r%60,"0",2)}
function YTB(r,d){return gy(r.getUTCDate(),d,2)}
function T1L(r,d){return gy(r.getUTCHours(),d,2)}
function B13(r,d){return gy(r.getUTCHours()%12||12,d,2)}
function UJf(r,d){return gy(1+yoQ.count(Vv(r),r),d,3)}
function C7W(r,d){return gy(r.getUTCMilliseconds(),d,3)}
function fs1(r,d){return C7W(r,d)+"000"}
function smF(r,d){return gy(r.getUTCMonth()+1,d,2)}
function g9c(r,d){return gy(r.getUTCMinutes(),d,2)}
function AXF(r,d){return gy(r.getUTCSeconds(),d,2)}
function M$L(r){r=r.getUTCDay();return r===0?7:r}
function Zq9(r,d){return gy(GC3.count(Vv(r),r),d,2)}
function t$a(r,d){var Y=r.getUTCDay();r=Y>=4||Y===0?Jyr(r):Jyr.ceil(r);return gy(Jyr.count(Vv(r),r)+(Vv(r).getUTCDay()===4),d,2)}
function zEa(r){return r.getUTCDay()}
function o9K(r,d){return gy(NNj.count(Vv(r),r),d,2)}
function iqD(r,d){return gy(r.getUTCFullYear()%100,d,2)}
function PoW(r,d){return gy(r.getUTCFullYear()%1E4,d,4)}
function dJ8(){return"+0000"}
function NFB(){return"%"}
function WiX(r){return+r}
function aFA(r){return Math.floor(+r/1E3)}
function xp(r){for(var d=r.length/6|0,Y=Array(d),Gq=0;Gq<d;)Y[Gq]="#"+r.slice(Gq*6,++Gq*6);return Y}
function p3(r){return boW(r[r.length-1])}
function C6v(r){var d=r.length;return function(Y){return r[Math.max(0,Math.min(d-1,Math.floor(Y*d)))]}}
function u1z(r){this._context=r}
function RoO(r){this._curve=r}
function nEu(r,d,Y){var Gq=r._x1-r._x0;d-=r._x1;var Vu=(r._y1-r._y0)/(Gq||d<0&&-0);r=(Y-r._y1)/(d||Gq<0&&-0);return((Vu<0?-1:1)+(r<0?-1:1))*Math.min(Math.abs(Vu),Math.abs(r),.5*Math.abs((Vu*d+r*Gq)/(Gq+d)))||0}
function O9i(r,d){var Y=r._x1-r._x0;return Y?(3*(r._y1-r._y0)/Y-d)/2:d}
function KUO(r,d,Y){var Gq=r._x0,Vu=r._x1,fO=r._y1,Ad=(Vu-Gq)/3;r._context.bezierCurveTo(Gq+Ad,r._y0+Ad*d,Vu-Ad,fO-Ad*Y,Vu,fO)}
function ulO(r){this._context=r}
function wFX(r){this._context=r}
function lq(r,d,Y){this.k=r;this.x=d;this.y=Y}
(function(r){r.length===1&&(r=b(r));return{left:function(d,Y,Gq,Vu){Gq==null&&(Gq=0);Vu==null&&(Vu=d.length);for(;Gq<Vu;){var fO=Gq+Vu>>>1;r(d[fO],Y)<0?Gq=fO+1:Vu=fO}return Gq},
right:function(d,Y,Gq,Vu){Gq==null&&(Gq=0);Vu==null&&(Vu=d.length);for(;Gq<Vu;){var fO=Gq+Vu>>>1;r(d[fO],Y)>0?Vu=fO:Gq=fO+1}return Gq}}})(G);
var wdY={value:function(){}};
h.prototype=I.prototype={constructor:h,on:function(r,d){var Y=this._,Gq=q(r+"",Y),Vu,fO=-1,Ad=Gq.length;if(arguments.length<2)for(;++fO<Ad;){var yu;if(yu=Vu=(r=Gq[fO]).type){a:{yu=Y[Vu];for(var jB=0,$b=yu.length;jB<$b;++jB)if((Vu=yu[jB]).name===r.name){Vu=Vu.value;break a}Vu=void 0}yu=Vu}if(yu)return Vu}else{if(d!=null&&typeof d!=="function")throw Error("De`"+d);for(;++fO<Ad;)if(Vu=(r=Gq[fO]).type)Y[Vu]=l(Y[Vu],r.name,d);else if(d==null)for(Vu in Y)Y[Vu]=l(Y[Vu],r.name,null);return this}},
copy:function(){var r={},d=this._,Y;for(Y in d)r[Y]=d[Y].slice();return new h(r)},
call:function(r,d){if((Vu=arguments.length-2)>0)for(var Y=Array(Vu),Gq=0,Vu,fO;Gq<Vu;++Gq)Y[Gq]=arguments[Gq+2];if(!this._.hasOwnProperty(r))throw Error("xe`"+r);fO=this._[r];Gq=0;for(Vu=fO.length;Gq<Vu;++Gq)fO[Gq].value.apply(d,Y)},
apply:function(r,d,Y){if(!this._.hasOwnProperty(r))throw Error("xe`"+r);r=this._[r];for(var Gq=0,Vu=r.length;Gq<Vu;++Gq)r[Gq].value.apply(d,Y)}};
var nc={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/"},EEX=function(r){return function(){return this.matches(r)}};
if(typeof document!=="undefined"){var mw=document.documentElement;if(!mw.matches){var IbD=mw.webkitMatchesSelector||mw.msMatchesSelector||mw.mozMatchesSelector||mw.oMatchesSelector;EEX=function(r){return function(){return IbD.call(this,r)}}}}var pF5=EEX;
B.prototype={constructor:B,appendChild:function(r){return this._parent.insertBefore(r,this._next)},
insertBefore:function(r,d){return this._parent.insertBefore(r,d)},
querySelector:function(r){return this._parent.querySelector(r)},
querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};
var $MA={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||($MA={mouseenter:"mouseover",mouseleave:"mouseout"}));var EkD=[null];cX.prototype=Ga.prototype={constructor:cX,select:function(r){typeof r!=="function"&&(r=f(r));for(var d=this._groups,Y=d.length,Gq=Array(Y),Vu=0;Vu<Y;++Vu)for(var fO=d[Vu],Ad=fO.length,yu=Gq[Vu]=Array(Ad),jB,$b,mO=0;mO<Ad;++mO)(jB=fO[mO])&&($b=r.call(jB,jB.__data__,mO,fO))&&("__data__"in jB&&($b.__data__=jB.__data__),yu[mO]=$b);return new cX(Gq,
this._parents)},
filter:function(r){typeof r!=="function"&&(r=pF5(r));for(var d=this._groups,Y=d.length,Gq=Array(Y),Vu=0;Vu<Y;++Vu)for(var fO=d[Vu],Ad=fO.length,yu=Gq[Vu]=[],jB,$b=0;$b<Ad;++$b)(jB=fO[$b])&&r.call(jB,jB.__data__,$b,fO)&&yu.push(jB);return new cX(Gq,this._parents)},
data:function(r,d){if(!r)return FW=Array(this.size()),$b=-1,this.each(function($z){FW[++$b]=$z}),FW;
var Y=d?y:t,Gq=this._parents,Vu=this._groups;typeof r!=="function"&&(r=A(r));for(var fO=Vu.length,Ad=Array(fO),yu=Array(fO),jB=Array(fO),$b=0;$b<fO;++$b){var mO=Gq[$b],LQ=Vu[$b],wz=LQ.length,FW=r.call(mO,mO&&mO.__data__,$b,Gq),gd=FW.length,R$=yu[$b]=Array(gd),o$=Ad[$b]=Array(gd);wz=jB[$b]=Array(wz);Y(mO,LQ,R$,o$,wz,FW,d);LQ=mO=0;for(var hU;mO<gd;++mO)if(wz=R$[mO]){for(mO>=LQ&&(LQ=mO+1);!(hU=o$[LQ])&&++LQ<gd;);wz._next=hU||null}}Ad=new cX(Ad,Gq);Ad._enter=yu;Ad._exit=jB;return Ad},
enter:function(){return new cX(this._enter||this._groups.map(T),this._parents)},
exit:function(){return new cX(this._exit||this._groups.map(T),this._parents)},
merge:function(r){var d=this._groups;r=r._groups;for(var Y=d.length,Gq=Math.min(Y,r.length),Vu=Array(Y),fO=0;fO<Gq;++fO)for(var Ad=d[fO],yu=r[fO],jB=Ad.length,$b=Vu[fO]=Array(jB),mO,LQ=0;LQ<jB;++LQ)if(mO=Ad[LQ]||yu[LQ])$b[LQ]=mO;for(;fO<Y;++fO)Vu[fO]=d[fO];return new cX(Vu,this._parents)},
order:function(){for(var r=this._groups,d=-1,Y=r.length;++d<Y;)for(var Gq=r[d],Vu=Gq.length-1,fO=Gq[Vu],Ad;--Vu>=0;)if(Ad=Gq[Vu])fO&&fO!==Ad.nextSibling&&fO.parentNode.insertBefore(Ad,fO),fO=Ad;return this},
sort:function(r){function d(LQ,wz){return LQ&&wz?r(LQ.__data__,wz.__data__):!LQ-!wz}
r||(r=F);for(var Y=this._groups,Gq=Y.length,Vu=Array(Gq),fO=0;fO<Gq;++fO){for(var Ad=Y[fO],yu=Ad.length,jB=Vu[fO]=Array(yu),$b,mO=0;mO<yu;++mO)if($b=Ad[mO])jB[mO]=$b;jB.sort(d)}return(new cX(Vu,this._parents)).order()},
call:function(){var r=arguments[0];arguments[0]=this;r.apply(null,arguments);return this},
nodes:function(){var r=Array(this.size()),d=-1;this.each(function(){r[++d]=this});
return r},
node:function(){for(var r=this._groups,d=0,Y=r.length;d<Y;++d)for(var Gq=r[d],Vu=0,fO=Gq.length;Vu<fO;++Vu){var Ad=Gq[Vu];if(Ad)return Ad}return null},
size:function(){var r=0;this.each(function(){++r});
return r},
empty:function(){return!this.node()},
each:function(r){for(var d=this._groups,Y=0,Gq=d.length;Y<Gq;++Y)for(var Vu=d[Y],fO=0,Ad=Vu.length,yu;fO<Ad;++fO)(yu=Vu[fO])&&r.call(yu,yu.__data__,fO,Vu);return this},
attr:function(r,d){var Y=V(r);if(arguments.length<2){var Gq=this.node();return Y.local?Gq.getAttributeNS(Y.space,Y.local):Gq.getAttribute(Y)}return this.each((d==null?Y.local?O:W:typeof d==="function"?Y.local?$a:w:Y.local?u:K)(Y,d))},
style:function(r,d,Y){return arguments.length>1?this.each((d==null?ev:typeof d==="function"?td:LO)(r,d,Y==null?"":Y)):xa(this.node(),r)},
property:function(r,d){return arguments.length>1?this.each((d==null?Uj:typeof d==="function"?is:W2)(r,d)):this.node()[r]},
text:function(r){return arguments.length?this.each(r==null?su:(typeof r==="function"?A5:an)(r)):this.node().textContent},
html:function(r){return arguments.length?this.each(r==null?XO:(typeof r==="function"?rz:kb)(r)):this.node().innerHTML},
append:function(r){var d=typeof r==="function"?r:L(r);return this.select(function(){return this.appendChild(d.apply(this,arguments))})},
insert:function(r,d){var Y=typeof r==="function"?r:L(r),Gq=d==null?on:typeof d==="function"?d:f(d);return this.select(function(){return this.insertBefore(Y.apply(this,arguments),Gq.apply(this,arguments)||null)})},
remove:function(){return this.each(Ac)},
clone:function(r){return this.select(r?mp:U1)},
datum:function(r){return arguments.length?this.property("__data__",r):this.node().__data__},
on:function(r,d,Y){var Gq=j8(r+""),Vu=Gq.length,fO;if(arguments.length<2){var Ad=this.node().__on;if(Ad)for(var yu=0,jB=Ad.length,$b;yu<jB;++yu){var mO=0;for($b=Ad[yu];mO<Vu;++mO)if((fO=Gq[mO]).type===$b.type&&fO.name===$b.name)return $b.value}}else{Ad=d?I5:BX;Y==null&&(Y=!1);for(mO=0;mO<Vu;++mO)this.each(Ad(Gq[mO],d,Y));return this}},
dispatch:function(r,d){return this.each((typeof d==="function"?vX:nQ)(r,d))}};
var pd1=0;wX.prototype=function(){return new wX}.prototype={constructor:wX,
get:function(r){for(var d=this._;!(d in r);)if(!(r=r.parentNode))return;return r[d]},
set:function(r,d){return r[this._]=d},
remove:function(r){return this._ in r&&delete r[this._]},
toString:function(){return this._}};
var Do=1/.7,Sqe=/^#([0-9a-f]{3})$/,Xd3=/^#([0-9a-f]{6})$/,$Ma=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),GJf=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),b93=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),IF1=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*\\)$"),
hoa=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),qT9=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*\\)$"),GJ8={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};
TA(pA,yK,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
TA(tc,XJ,s1(pA,{brighter:function(r){r=r==null?Do:Math.pow(Do,r);return new tc(this.r*r,this.g*r,this.b*r,this.opacity)},
darker:function(r){r=r==null?.7:Math.pow(.7,r);return new tc(this.r*r,this.g*r,this.b*r,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"#"+m9(this.r)+m9(this.g)+m9(this.b)},
toString:function(){var r=this.opacity;r=isNaN(r)?1:Math.max(0,Math.min(1,r));return(r===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))+(r===1?")":", "+r+")")}}));
TA(f0,J4,s1(pA,{brighter:function(r){r=r==null?Do:Math.pow(Do,r);return new f0(this.h,this.s,this.l*r,this.opacity)},
darker:function(r){r=r==null?.7:Math.pow(.7,r);return new f0(this.h,this.s,this.l*r,this.opacity)},
rgb:function(){var r=this.h%360+(this.h<0)*360,d=this.l,Y=d+(d<.5?d:1-d)*(isNaN(r)||isNaN(this.s)?0:this.s);d=2*d-Y;return new tc(Jj(r>=240?r-240:r+120,d,Y),Jj(r,d,Y),Jj(r<120?r+240:r-120,d,Y),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 b9b=Math.PI/180,qTO=180/Math.PI,hoA=4/29,l5=6/29,IFu=3*l5*l5,jFe=l5*l5*l5;TA(oO,function(r,d,Y,Gq){return arguments.length===1?kS(r):new oO(r,d,Y,Gq==null?1:Gq)},s1(pA,{brighter:function(r){return new oO(this.l+18*(r==null?1:r),this.a,this.b,this.opacity)},
darker:function(r){return new oO(this.l-18*(r==null?1:r),this.a,this.b,this.opacity)},
rgb:function(){var r=(this.l+16)/116,d=isNaN(this.a)?r:r+this.a/500,Y=isNaN(this.b)?r:r-this.b/200;d=.96422*RO(d);r=1*RO(r);Y=.82521*RO(Y);return new tc(gz(3.1338561*d-1.6168667*r-.4906146*Y),gz(-.9787684*d+1.9161415*r+.033454*Y),gz(.0719453*d-.2289914*r+1.4052427*Y),this.opacity)}}));
TA(t5,rj,s1(pA,{brighter:function(r){return new t5(this.h,this.c,this.l+18*(r==null?1:r),this.opacity)},
darker:function(r){return new t5(this.h,this.c,this.l-18*(r==null?1:r),this.opacity)},
rgb:function(){return kS(this).rgb()}}));
var jFW=1.78277*-.29227-.1347134789;TA(CD,M8,s1(pA,{brighter:function(r){r=r==null?Do:Math.pow(Do,r);return new CD(this.h,this.s,this.l*r,this.opacity)},
darker:function(r){r=r==null?.7:Math.pow(.7,r);return new CD(this.h,this.s,this.l*r,this.opacity)},
rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*b9b,d=+this.l,Y=isNaN(this.s)?0:this.s*d*(1-d),Gq=Math.cos(r);r=Math.sin(r);return new tc(255*(d+Y*(-.14861*Gq+1.78277*r)),255*(d+Y*(-.29227*Gq+-.90649*r)),255*(d+1.97294*Gq*Y),this.opacity)}}));
var DMz=function Y(d){function Gq(fO,Ad){var yu=Vu((fO=XJ(fO)).r,(Ad=XJ(Ad)).r),jB=Vu(fO.g,Ad.g),$b=Vu(fO.b,Ad.b),mO=XQ(fO.opacity,Ad.opacity);return function(LQ){fO.r=yu(LQ);fO.g=jB(LQ);fO.b=$b(LQ);fO.opacity=mO(LQ);return fO+""}}
var Vu=EM(d);Gq.gamma=Y;return Gq}(1),boW=Fs(function(d){var Y=d.length-1;
return function(Gq){var Vu=Gq<=0?Gq=0:Gq>=1?(Gq=1,Y-1):Math.floor(Gq*Y),fO=d[Vu],Ad=d[Vu+1];return Bg((Gq-Vu/Y)*Y,Vu>0?d[Vu-1]:2*fO-Ad,fO,Ad,Vu<Y-1?d[Vu+2]:2*Ad-fO)}});
Fs(function(d){var Y=d.length;return function(Gq){var Vu=Math.floor(((Gq%=1)<0?++Gq:Gq)*Y);return Bg((Gq-Vu/Y)*Y,d[(Vu+Y-1)%Y],d[Vu%Y],d[(Vu+1)%Y],d[(Vu+2)%Y])}});
var Mtr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Z5O=new RegExp(Mtr.source,"g"),lFi=180/Math.PI,RPd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},ew,nkX,STz,JMa,h6F=o5(function(d){if(d==="none")return RPd;ew||(ew=document.createElement("DIV"),nkX=document.documentElement,STz=document.defaultView);ew.style.transform=d;d=STz.getComputedStyle(nkX.appendChild(ew),null).getPropertyValue("transform");nkX.removeChild(ew);d=d.slice(7,-1).split(",");return za(+d[0],+d[1],+d[2],+d[3],
+d[4],+d[5])},"px, ","px)","deg)"),qRj=o5(function(d){if(d==null)return RPd;
JMa||(JMa=document.createElementNS("http://www.w3.org/2000/svg","g"));JMa.setAttribute("transform",d);if(!(d=JMa.transform.baseVal.consolidate()))return RPd;d=d.matrix;return za(d.a,d.b,d.c,d.d,d.e,d.f)},", ",")",")");
vL(Jz);vL(XQ);Ly(Jz);Ly(XQ);py(Jz);var O5O=py(XQ),mW=0,Xy=0,Gu=0,yMp,$w,dBO=0,ij=0,P6p=0,Sz=typeof performance==="object"&&performance.now?performance:Date,mM5=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(d){setTimeout(d,17)};
HN.prototype=u8.prototype={constructor:HN,restart:function(d,Y,Gq){if(typeof d!=="function")throw new TypeError("Ee");Gq=(Gq==null?O8():+Gq)+(Y==null?0:+Y);this._next||$w===this||($w?$w._next=this:yMp=this,$w=this);this._call=d;this._time=Gq;na()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,na())}};
var mMc=I("start","end","interrupt"),eoY=[],jsL=Ga.prototype.constructor,XFQ=0,ck=Ga.prototype;B6.prototype=function(d){return Ga().transition(d)}.prototype={constructor:B6,
select:function(d){var Y=this._name,Gq=this._id;typeof d!=="function"&&(d=f(d));for(var Vu=this._groups,fO=Vu.length,Ad=Array(fO),yu=0;yu<fO;++yu)for(var jB=Vu[yu],$b=jB.length,mO=Ad[yu]=Array($b),LQ,wz,FW=0;FW<$b;++FW)(LQ=jB[FW])&&(wz=d.call(LQ,LQ.__data__,FW,jB))&&("__data__"in LQ&&(wz.__data__=LQ.__data__),mO[FW]=wz,ttj(mO[FW],Y,Gq,FW,mO,K4(LQ,Gq)));return new B6(Ad,this._parents,Y,Gq)},
filter:function(d){typeof d!=="function"&&(d=pF5(d));for(var Y=this._groups,Gq=Y.length,Vu=Array(Gq),fO=0;fO<Gq;++fO)for(var Ad=Y[fO],yu=Ad.length,jB=Vu[fO]=[],$b,mO=0;mO<yu;++mO)($b=Ad[mO])&&d.call($b,$b.__data__,mO,Ad)&&jB.push($b);return new B6(Vu,this._parents,this._name,this._id)},
merge:function(d){if(d._id!==this._id)throw Error();var Y=this._groups;d=d._groups;for(var Gq=Y.length,Vu=Math.min(Gq,d.length),fO=Array(Gq),Ad=0;Ad<Vu;++Ad)for(var yu=Y[Ad],jB=d[Ad],$b=yu.length,mO=fO[Ad]=Array($b),LQ,wz=0;wz<$b;++wz)if(LQ=yu[wz]||jB[wz])mO[wz]=LQ;for(;Ad<Gq;++Ad)fO[Ad]=Y[Ad];return new B6(fO,this._parents,this._name,this._id)},
selection:function(){return new jsL(this._groups,this._parents)},
transition:function(){for(var d=this._name,Y=this._id,Gq=++XFQ,Vu=this._groups,fO=Vu.length,Ad=0;Ad<fO;++Ad)for(var yu=Vu[Ad],jB=yu.length,$b,mO=0;mO<jB;++mO)if($b=yu[mO]){var LQ=K4($b,Y);ttj($b,d,Gq,mO,yu,{time:LQ.time+LQ.delay+LQ.duration,delay:0,duration:LQ.duration,ease:LQ.ease})}return new B6(Vu,this._parents,d,Gq)},
call:ck.call,nodes:ck.nodes,node:ck.node,size:ck.size,empty:ck.empty,each:ck.each,on:function(d,Y){var Gq=this._id;return arguments.length<2?K4(this.node(),Gq).on.on(d):this.each(Z99(Gq,d,Y))},
attr:function(d,Y){var Gq=V(d),Vu=Gq==="transform"?qRj:VJ8;return this.attrTween(d,typeof Y==="function"?(Gq.local?xM8:QF1)(Gq,Vu,oka(this,"attr."+d,Y)):Y==null?(Gq.local?kJf:coL)(Gq):(Gq.local?Li8:vEW)(Gq,Vu,Y+""))},
attrTween:function(d,Y){var Gq="attr."+d;if(arguments.length<2)return(Gq=this.tween(Gq))&&Gq._value;if(Y==null)return this.tween(Gq,null);if(typeof Y!=="function")throw Error();var Vu=V(d);return this.tween(Gq,(Vu.local?fFf:TFj)(Vu,Y))},
style:function(d,Y,Gq){var Vu=d==="transform"?h6F:VJ8;return Y==null?this.styleTween(d,zo8(d,Vu)).on("end.style."+d,oEc(d)):this.styleTween(d,typeof Y==="function"?P71(d,Vu,oka(this,"style."+d,Y)):i9F(d,Vu,Y+""),Gq)},
styleTween:function(d,Y,Gq){var Vu="style."+d;if(arguments.length<2)return(Vu=this.tween(Vu))&&Vu._value;if(Y==null)return this.tween(Vu,null);if(typeof Y!=="function")throw Error();return this.tween(Vu,dMD(d,Y,Gq==null?"":Gq))},
text:function(d){return this.tween("text",typeof d==="function"?roj(oka(this,"text",d)):yoD(d==null?"":d+""))},
remove:function(){return this.on("end.remove",tJ9(this._id))},
tween:function(d,Y){var Gq=this._id;if(arguments.length<2){Gq=K4(this.node(),Gq).tween;for(var Vu=0,fO=Gq.length,Ad;Vu<fO;++Vu)if((Ad=Gq[Vu]).name===d)return Ad.value;return null}return this.each((Y==null?VJf:DMj)(Gq,d,Y))},
delay:function(d){var Y=this._id;return arguments.length?this.each((typeof d==="function"?BFD:UM1)(Y,d)):K4(this.node(),Y).delay},
duration:function(d){var Y=this._id;return arguments.length?this.each((typeof d==="function"?sFe:gE1)(Y,d)):K4(this.node(),Y).duration},
ease:function(d){var Y=this._id;return arguments.length?this.each(AoD(Y,d)):K4(this.node(),Y).ease}};
var wdr={time:null,delay:0,duration:250,ease:function(d){return((d*=2)<=1?d*d*d:(d-=2)*d*d+2)/2}};
Ga.prototype.transition=function(d){var Y;if(d instanceof B6){var Gq=d._id;d=d._name}else Gq=++XFQ,(Y=wdr).time=O8(),d=d==null?null:d+"";for(var Vu=this._groups,fO=Vu.length,Ad=0;Ad<fO;++Ad)for(var yu=Vu[Ad],jB=yu.length,$b,mO=0;mO<jB;++mO)if($b=yu[mO]){var LQ=$b,wz=d,FW=Gq,gd=mO,R$=yu,o$;if(!(o$=Y))a:{o$=void 0;for(var hU=Gq;!(o$=$b.__transition)||!(o$=o$[hU]);)if(!($b=$b.parentNode)){o$=(wdr.time=O8(),wdr);break a}}ttj(LQ,wz,FW,gd,R$,o$)}return new B6(Vu,this._parents,d,Gq)};
["e","w"].map(i5O);["n","s"].map(i5O);"n e s w nw ne se sw".split(" ").map(i5O);Phu.prototype=function(){return new Phu}.prototype={constructor:Phu,
moveTo:function(d,Y){this._+="M"+(this._x0=this._x1=+d)+","+(this._y0=this._y1=+Y)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(d,Y){this._+="L"+(this._x1=+d)+","+(this._y1=+Y)},
bezierCurveTo:function(d,Y,Gq,Vu,fO,Ad){this._+="C"+ +d+","+ +Y+","+ +Gq+","+ +Vu+","+(this._x1=+fO)+","+(this._y1=+Ad)},
rect:function(d,Y,Gq,Vu){this._+="M"+(this._x0=this._x1=+d)+","+(this._y0=this._y1=+Y)+"h"+ +Gq+"v"+ +Vu+"h"+-Gq+"Z"},
toString:function(){return this._}};
rMr.prototype=coX.prototype={constructor:rMr,has:function(d){return" "+d in this},
get:function(d){return this[" "+d]},
set:function(d,Y){this[" "+d]=Y;return this},
remove:function(d){d=" "+d;return d in this&&delete this[d]},
clear:function(){for(var d in this)d[0]===" "&&delete this[d]},
keys:function(){var d=[],Y;for(Y in this)Y[0]===" "&&d.push(Y.slice(1));return d},
values:function(){var d=[],Y;for(Y in this)Y[0]===" "&&d.push(this[Y]);return d},
entries:function(){var d=[],Y;for(Y in this)Y[0]===" "&&d.push({key:Y.slice(1),value:this[Y]});return d},
size:function(){var d=0,Y;for(Y in this)Y[0]===" "&&++d;return d},
empty:function(){for(var d in this)if(d[0]===" ")return!1;return!0},
each:function(d){for(var Y in this)Y[0]===" "&&d(this[Y],Y.slice(1),this)}};
var r$=coX.prototype;FGs.prototype=function(d,Y){var Gq=new FGs;if(d instanceof FGs)d.each(function(Ad){Gq.add(Ad)});
else if(d){var Vu=-1,fO=d.length;if(Y==null)for(;++Vu<fO;)Gq.add(d[Vu]);else for(;++Vu<fO;)Gq.add(Y(d[Vu],Vu,d))}return Gq}.prototype={constructor:FGs,
has:r$.has,add:function(d){this[" "+d]=d;return this},
remove:r$.remove,clear:r$.clear,values:r$.keys,size:r$.size,empty:r$.empty,each:r$.each};var LiB={},dTs={},lb9=vEJ(",").parse,mIa=vEJ("\t").parse;QFu(lb9);QFu(mIa);var wq=function(d,Y,Gq){Y=new yys(Y==null?aFa:Y,Gq==null?NF8:Gq,NaN,NaN,NaN,NaN);return d==null?Y:Y.addAll(d)}.prototype=yys.prototype;
wq.copy=function(){var d=new yys(this._x,this._y,this._x0,this._y0,this._x1,this._y1),Y=this._root,Gq,Vu;if(!Y)return d;if(!Y.length)return d._root=fF8(Y),d;for(Gq=[{source:Y,target:d._root=Array(4)}];Y=Gq.pop();)for(var fO=0;fO<4;++fO)if(Vu=Y.source[fO])Vu.length?Gq.push({source:Vu,target:Y.target[fO]=Array(4)}):Y.target[fO]=fF8(Vu);return d};
wq.add=function(d){var Y=+this._x.call(null,d),Gq=+this._y.call(null,d);return xMB(this.cover(Y,Gq),Y,Gq,d)};
wq.addAll=function(d){var Y,Gq,Vu=d.length,fO,Ad,yu=Array(Vu),jB=Array(Vu),$b=Infinity,mO=Infinity,LQ=-Infinity,wz=-Infinity;for(Gq=0;Gq<Vu;++Gq)isNaN(fO=+this._x.call(null,Y=d[Gq]))||isNaN(Ad=+this._y.call(null,Y))||(yu[Gq]=fO,jB[Gq]=Ad,fO<$b&&($b=fO),fO>LQ&&(LQ=fO),Ad<mO&&(mO=Ad),Ad>wz&&(wz=Ad));LQ<$b&&($b=this._x0,LQ=this._x1);wz<mO&&(mO=this._y0,wz=this._y1);this.cover($b,mO).cover(LQ,wz);for(Gq=0;Gq<Vu;++Gq)xMB(this,yu[Gq],jB[Gq],d[Gq]);return this};
wq.cover=function(d,Y){if(isNaN(d=+d)||isNaN(Y=+Y))return this;var Gq=this._x0,Vu=this._y0,fO=this._x1,Ad=this._y1;if(isNaN(Gq))fO=(Gq=Math.floor(d))+1,Ad=(Vu=Math.floor(Y))+1;else if(Gq>d||d>fO||Vu>Y||Y>Ad){var yu=fO-Gq,jB=this._root,$b;switch($b=(Y<(Vu+Ad)/2)<<1|d<(Gq+fO)/2){case 0:do{var mO=Array(4);mO[$b]=jB;jB=mO}while(yu*=2,fO=Gq+yu,Ad=Vu+yu,d>fO||Y>Ad);break;case 1:do mO=Array(4),mO[$b]=jB,jB=mO;while(yu*=2,Gq=fO-yu,Ad=Vu+yu,Gq>d||Y>Ad);break;case 2:do mO=Array(4),mO[$b]=jB,jB=mO;while(yu*=
2,fO=Gq+yu,Vu=Ad-yu,d>fO||Vu>Y);break;case 3:do mO=Array(4),mO[$b]=jB,jB=mO;while(yu*=2,Gq=fO-yu,Vu=Ad-yu,Gq>d||Vu>Y)}this._root&&this._root.length&&(this._root=jB)}else return this;this._x0=Gq;this._y0=Vu;this._x1=fO;this._y1=Ad;return this};
wq.data=function(){var d=[];this.visit(function(Y){if(!Y.length){do d.push(Y.data);while(Y=Y.next)}});
return d};
wq.extent=function(d){return arguments.length?this.cover(+d[0][0],+d[0][1]).cover(+d[1][0],+d[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
wq.find=function(d,Y,Gq){var Vu=this._x0,fO=this._y0,Ad,yu,jB,$b,mO=this._x1,LQ=this._y1,wz=[],FW=this._root,gd;FW&&wz.push(new Oo(FW,Vu,fO,mO,LQ));Gq==null?Gq=Infinity:(Vu=d-Gq,fO=Y-Gq,mO=d+Gq,LQ=Y+Gq,Gq*=Gq);for(;gd=wz.pop();)if(!(!(FW=gd.node)||(Ad=gd.x0)>mO||(yu=gd.y0)>LQ||(jB=gd.x1)<Vu||($b=gd.y1)<fO))if(FW.length){gd=(Ad+jB)/2;var R$=(yu+$b)/2;wz.push(new Oo(FW[3],gd,R$,jB,$b),new Oo(FW[2],Ad,R$,gd,$b),new Oo(FW[1],gd,yu,jB,R$),new Oo(FW[0],Ad,yu,gd,R$));if(FW=(Y>=R$)<<1|d>=gd)gd=wz[wz.length-
1],wz[wz.length-1]=wz[wz.length-1-FW],wz[wz.length-1-FW]=gd}else if(gd=d-+this._x.call(null,FW.data),R$=Y-+this._y.call(null,FW.data),gd=gd*gd+R$*R$,gd<Gq){var o$=Math.sqrt(Gq=gd);Vu=d-o$;fO=Y-o$;mO=d+o$;LQ=Y+o$;o$=FW.data}return o$};
wq.remove=function(d){if(isNaN($b=+this._x.call(null,d))||isNaN(mO=+this._y.call(null,d)))return this;var Y,Gq=this._root,Vu,fO=this._x0,Ad=this._y0,yu=this._x1,jB=this._y1,$b,mO,LQ,wz,FW,gd,R$;if(!Gq)return this;if(Gq.length)for(;;){(FW=$b>=(LQ=(fO+yu)/2))?fO=LQ:yu=LQ;(gd=mO>=(wz=(Ad+jB)/2))?Ad=wz:jB=wz;if(!(Y=Gq,Gq=Gq[R$=gd<<1|FW]))return this;if(!Gq.length)break;if(Y[R$+1&3]||Y[R$+2&3]||Y[R$+3&3]){var o$=Y;var hU=R$}}for(;Gq.data!==d;)if(!(Vu=Gq,Gq=Gq.next))return this;(d=Gq.next)&&delete Gq.next;
if(Vu)return d?Vu.next=d:delete Vu.next,this;if(!Y)return this._root=d,this;d?Y[R$]=d:delete Y[R$];(Gq=Y[0]||Y[1]||Y[2]||Y[3])&&Gq===(Y[3]||Y[2]||Y[1]||Y[0])&&!Gq.length&&(o$?o$[hU]=Gq:this._root=Gq);return this};
wq.removeAll=function(d){for(var Y=0,Gq=d.length;Y<Gq;++Y)this.remove(d[Y]);return this};
wq.root=function(){return this._root};
wq.size=function(){var d=0;this.visit(function(Y){if(!Y.length){do++d;while(Y=Y.next)}});
return d};
wq.visit=function(d){var Y=[],Gq,Vu=this._root,fO,Ad,yu,jB,$b;for(Vu&&Y.push(new Oo(Vu,this._x0,this._y0,this._x1,this._y1));Gq=Y.pop();)if(!d(Vu=Gq.node,Ad=Gq.x0,yu=Gq.y0,jB=Gq.x1,$b=Gq.y1)&&Vu.length){Gq=(Ad+jB)/2;var mO=(yu+$b)/2;(fO=Vu[3])&&Y.push(new Oo(fO,Gq,mO,jB,$b));(fO=Vu[2])&&Y.push(new Oo(fO,Ad,mO,Gq,$b));(fO=Vu[1])&&Y.push(new Oo(fO,Gq,yu,jB,mO));(fO=Vu[0])&&Y.push(new Oo(fO,Ad,yu,Gq,mO))}};
wq.visitAfter=function(d){var Y=[],Gq=[],Vu;for(this._root&&Y.push(new Oo(this._root,this._x0,this._y0,this._x1,this._y1));Vu=Y.pop();){var fO=Vu.node;if(fO.length){var Ad,yu=Vu.x0,jB=Vu.y0,$b=Vu.x1,mO=Vu.y1,LQ=(yu+$b)/2,wz=(jB+mO)/2;(Ad=fO[0])&&Y.push(new Oo(Ad,yu,jB,LQ,wz));(Ad=fO[1])&&Y.push(new Oo(Ad,LQ,jB,$b,wz));(Ad=fO[2])&&Y.push(new Oo(Ad,yu,wz,LQ,mO));(Ad=fO[3])&&Y.push(new Oo(Ad,LQ,wz,$b,mO))}Gq.push(Vu)}for(;Vu=Gq.pop();)d(Vu.node,Vu.x0,Vu.y0,Vu.x1,Vu.y1);return this};
wq.x=function(d){return arguments.length?(this._x=d,this):this._x};
wq.y=function(d){return arguments.length?(this._y=d,this):this._y};
var KiK=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;ryO.prototype=FUu.prototype;FUu.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 sFW,gEu={"%":function(d,Y){return(d*100).toFixed(Y)},
b:function(d){return Math.round(d).toString(2)},
c:function(d){return d+""},
d:function(d){return Math.round(d).toString(10)},
e:function(d,Y){return d.toExponential(Y)},
f:function(d,Y){return d.toFixed(Y)},
g:function(d,Y){return d.toPrecision(Y)},
o:function(d){return Math.round(d).toString(8)},
p:function(d,Y){return TFz(d*100,Y)},
r:TFz,s:function(d,Y){var Gq=H1O(d,Y);if(!Gq)return d+"";var Vu=Gq[0];Gq=Gq[1];Gq=Gq-(sFW=Math.max(-8,Math.min(8,Math.floor(Gq/3)))*3)+1;var fO=Vu.length;return Gq===fO?Vu:Gq>fO?Vu+Array(Gq-fO+1).join("0"):Gq>0?Vu.slice(0,Gq)+"."+Vu.slice(Gq):"0."+Array(1-Gq).join("0")+H1O(d,Math.max(0,Y+Gq-1))[0]},
X:function(d){return Math.round(d).toString(16).toUpperCase()},
x:function(d){return Math.round(d).toString(16)}},UMu="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),e6f;
(function(d){return e6f=u1j(d)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Cp.prototype={constructor:Cp,reset:function(){this.s=this.t=0},
add:function(d){AoQ(KGO,d,this.t);AoQ(this,KGO.s,this.s);this.s?this.t+=KGO.t:this.s=KGO.t},
valueOf:function(){return this.s}};
var KGO=new Cp,Se=Math.PI,O4=Se/2,$J5=Se/4,Vl8=Se*2,EkO=Se/180,UQ=Math.abs,pdj=Math.atan,i9n=Math.atan2,wc=Math.cos,oo=Math.sin,a5X=Math.sqrt;new Cp;new Cp;new Cp;var SqB=new Cp;(function(d,Y,Gq,Vu){return function(fO){function Ad(GF,gk){d(GF,gk)&&fO.point(GF,gk)}
function yu(GF,gk){FW.point(GF,gk)}
function jB(){bA.point=yu;FW.lineStart()}
function $b(){bA.point=Ad;FW.lineEnd()}
function mO(GF,gk){AZ.push([GF,gk]);R$.point(GF,gk)}
function LQ(){R$.lineStart();AZ=[]}
function wz(){mO(AZ[0][0],AZ[0][1]);R$.lineEnd();var GF=R$.clean(),gk=gd.result(),So=gk.length,Ts;AZ.pop();hU.push(AZ);AZ=null;if(So)if(GF&1){if(So=gk[0],(gk=So.length-1)>0){o$||(fO.polygonStart(),o$=!0);fO.lineStart();for(GF=0;GF<gk;++GF)fO.point((Ts=So[GF])[0],Ts[1]);fO.lineEnd()}}else So>1&&GF&2&&gk.push(gk.pop().concat(gk.shift())),$z.push(gk.filter(wFL))}
var FW=Y(fO),gd=nE1(),R$=Y(gd),o$=!1,hU,$z,AZ,bA={point:Ad,lineStart:jB,lineEnd:$b,polygonStart:function(){bA.point=mO;bA.lineStart=LQ;bA.lineEnd=wz;$z=[];hU=[]},
polygonEnd:function(){bA.point=Ad;bA.lineStart=jB;bA.lineEnd=$b;var GF=$z,gk=GF.length;var So=-1;for(var Ts=0,wj,sv;++So<gk;)Ts+=GF[So].length;for(wj=Array(Ts);--gk>=0;)for(sv=GF[gk],So=sv.length;--So>=0;)wj[--Ts]=sv[So];$z=wj;GF=hU;gk=Vu[0];Ts=Vu[1];var DK=oo(Ts);So=[oo(gk),-wc(gk),0];sv=wj=0;SqB.reset();DK===1?Ts=O4+1E-6:DK===-1&&(Ts=-O4-1E-6);DK=0;for(var a5=GF.length;DK<a5;++DK)if(p8=(EB=GF[DK]).length){var EB,p8,qy=EB[p8-1],Bf=qy[0],sK=qy[1]/2+$J5,uQO=oo(sK),Gcn=wc(sK);for(sK=0;sK<p8;++sK,Bf=
Xda,uQO=bqB,Gcn=VD,qy=R2j){var R2j=EB[sK],Xda=R2j[0];VD=R2j[1]/2+$J5;var bqB=oo(VD),VD=wc(VD),k0=Xda-Bf,$Mq=k0>=0?1:-1,GJr=$Mq*k0,n2j=GJr>Se;uQO*=bqB;SqB.add(i9n(uQO*$Mq*oo(GJr),Gcn*VD+uQO*wc(GJr)));wj+=n2j?k0+$Mq*Vl8:k0;n2j^Bf>=gk^Xda>=gk&&(qy=Z9O(MJ8(qy),MJ8(R2j)),tJO(qy),Bf=Z9O(So,qy),tJO(Bf),Bf=(n2j^k0>=0?-1:1)*WGd(Bf[2]),Ts>Bf||Ts===Bf&&(qy[0]||qy[1]))&&(sv+=n2j^k0>=0?1:-1)}}GF=(wj<-1E-6||wj<1E-6&&SqB<-1E-6)^sv&1;$z.length?(o$||(fO.polygonStart(),o$=!0),O9K($z,EEL,GF,Gq,fO)):GF&&(o$||(fO.polygonStart(),
o$=!0),fO.lineStart(),Gq(null,null,1,fO),fO.lineEnd());o$&&(fO.polygonEnd(),o$=!1);$z=hU=null},
sphere:function(){fO.polygonStart();fO.lineStart();Gq(null,null,1,fO);fO.lineEnd();fO.polygonEnd()}};
return bA}})(function(){return!0},function(d){var Y=NaN,Gq=NaN,Vu=NaN,fO;
return{lineStart:function(){d.lineStart();fO=1},
point:function(Ad,yu){var jB=Ad>0?Se:-Se,$b=UQ(Ad-Y);if(UQ($b-Se)<1E-6)d.point(Y,Gq=(Gq+yu)/2>0?O4:-O4),d.point(Vu,Gq),d.lineEnd(),d.lineStart(),d.point(jB,Gq),d.point(Ad,Gq),fO=0;else if(Vu!==jB&&$b>=Se){UQ(Y-Vu)<1E-6&&(Y-=Vu*1E-6);UQ(Ad-jB)<1E-6&&(Ad-=jB*1E-6);$b=Y;var mO=Gq,LQ=Ad,wz,FW,gd=oo($b-LQ);Gq=UQ(gd)>1E-6?pdj((oo(mO)*(FW=wc(yu))*oo(LQ)-oo(yu)*(wz=wc(mO))*oo($b))/(wz*FW*gd)):(mO+yu)/2;d.point(Vu,Gq);d.lineEnd();d.lineStart();d.point(jB,Gq);fO=0}d.point(Y=Ad,Gq=yu);Vu=jB},
lineEnd:function(){d.lineEnd();Y=Gq=NaN},
clean:function(){return 2-fO}}},function(d,Y,Gq,Vu){d==null?(Gq*=O4,Vu.point(-Se,Gq),Vu.point(0,Gq),Vu.point(Se,Gq),Vu.point(Se,0),Vu.point(Se,-Gq),Vu.point(0,-Gq),Vu.point(-Se,-Gq),Vu.point(-Se,0),Vu.point(-Se,Gq)):UQ(d[0]-Y[0])>1E-6?(d=d[0]<Y[0]?Se:-Se,Gq=Gq*d/2,Vu.point(-d,Gq),Vu.point(0,Gq),Vu.point(d,Gq)):Vu.point(Y[0],Y[1])},[-Se,
-O4]);new Cp;new Cp;new Cp;new Cp;H5s.prototype={constructor:H5s,point:function(d,Y){this.stream.point(d,Y)},
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()}};
wc(30*EkO);(function(d){return function(Y){var Gq=new H5s,Vu;for(Vu in d)Gq[Vu]=d[Vu];Gq.stream=Y;return Gq}})({point:function(d,Y){this.stream.point(d*EkO,Y*EkO)}});
oE5(function(d){return a5X(2/(1+d))}).invert=bq(function(d){return 2*WGd(d/2)});
oE5(function(d){return(d=d>1?0:d<-1?Se:Math.acos(d))&&d/oo(d)}).invert=bq(function(d){return d});
a5X(3);bq(pdj);bq(WGd);bq(function(d){return 2*pdj(d)});
Ii.prototype=P7u.prototype={constructor:Ii,count:function(){return this.eachAfter(pFc)},
each:function(d){var Y,Gq=[this],Vu;do{var fO=Gq.reverse();for(Gq=[];Y=fO.pop();)if(d(Y),Y=Y.children){var Ad=0;for(Vu=Y.length;Ad<Vu;++Ad)Gq.push(Y[Ad])}}while(Gq.length);return this},
eachAfter:function(d){for(var Y,Gq=[this],Vu=[],fO,Ad;Y=Gq.pop();)if(Vu.push(Y),Y=Y.children)for(fO=0,Ad=Y.length;fO<Ad;++fO)Gq.push(Y[fO]);for(;Y=Vu.pop();)d(Y);return this},
eachBefore:function(d){for(var Y,Gq=[this],Vu;Y=Gq.pop();)if(d(Y),Y=Y.children)for(Vu=Y.length-1;Vu>=0;--Vu)Gq.push(Y[Vu]);return this},
sum:function(d){return this.eachAfter(function(Y){for(var Gq=+d(Y.data)||0,Vu=Y.children,fO=Vu&&Vu.length;--fO>=0;)Gq+=Vu[fO].value;Y.value=Gq})},
sort:function(d){return this.eachBefore(function(Y){Y.children&&Y.children.sort(d)})},
path:function(d){var Y=this;var Gq=Y;var Vu=d;if(Gq!==Vu){var fO=Gq.ancestors(),Ad=Vu.ancestors(),yu=null;Gq=fO.pop();for(Vu=Ad.pop();Gq===Vu;)yu=Gq,Gq=fO.pop(),Vu=Ad.pop();Gq=yu}for(Vu=[Y];Y!==Gq;)Y=Y.parent,Vu.push(Y);for(Y=Vu.length;d!==Gq;)Vu.splice(Y,0,d),d=d.parent;return Vu},
ancestors:function(){for(var d=this,Y=[d];d=d.parent;)Y.push(d);return Y},
links:function(){var d=this,Y=[];d.each(function(Gq){Gq!==d&&Y.push({source:Gq.parent,target:Gq})});
return Y},
copy:function(){return P7u(this).eachBefore($Jc)}};
(function(d,Y){this._=d;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=Y}).prototype=Object.create(Ii.prototype);
var WU2=new Date,a9X=new Date,Isz=Tg(function(){},function(d,Y){d.setTime(+d+Y)},function(d,Y){return Y-d});
Isz.every=function(d){d=Math.floor(d);return isFinite(d)&&d>0?d>1?Tg(function(Y){Y.setTime(Math.floor(Y/d)*d)},function(Y,Gq){Y.setTime(+Y+Gq*d)},function(Y,Gq){return(Gq-Y)/d}):Isz:null};
Tg(function(d){d.setTime(Math.floor(d/1E3)*1E3)},function(d,Y){d.setTime(+d+Y*1E3)},function(d,Y){return(Y-d)/1E3},function(d){return d.getUTCSeconds()});
Tg(function(d){d.setTime(Math.floor(d/6E4)*6E4)},function(d,Y){d.setTime(+d+Y*6E4)},function(d,Y){return(Y-d)/6E4},function(d){return d.getMinutes()});
Tg(function(d){var Y=d.getTimezoneOffset()*6E4%36E5;Y<0&&(Y+=36E5);d.setTime(Math.floor((+d-Y)/36E5)*36E5+Y)},function(d,Y){d.setTime(+d+Y*36E5)},function(d,Y){return(Y-d)/36E5},function(d){return d.getHours()});
var roz=Tg(function(d){d.setHours(0,0,0,0)},function(d,Y){d.setDate(d.getDate()+Y)},function(d,Y){return(Y-d-(Y.getTimezoneOffset()-d.getTimezoneOffset())*6E4)/864E5},function(d){return d.getDate()-1}),$Ie=d$(0),Yqu=d$(1);
d$(2);d$(3);var Chr=d$(4);d$(5);d$(6);Tg(function(d){d.setDate(1);d.setHours(0,0,0,0)},function(d,Y){d.setMonth(d.getMonth()+Y)},function(d,Y){return Y.getMonth()-d.getMonth()+(Y.getFullYear()-d.getFullYear())*12},function(d){return d.getMonth()});
var es=Tg(function(d){d.setMonth(0,1);d.setHours(0,0,0,0)},function(d,Y){d.setFullYear(d.getFullYear()+Y)},function(d,Y){return Y.getFullYear()-d.getFullYear()},function(d){return d.getFullYear()});
es.every=function(d){return isFinite(d=Math.floor(d))&&d>0?Tg(function(Y){Y.setFullYear(Math.floor(Y.getFullYear()/d)*d);Y.setMonth(0,1);Y.setHours(0,0,0,0)},function(Y,Gq){Y.setFullYear(Y.getFullYear()+Gq*d)}):null};
Tg(function(d){d.setUTCSeconds(0,0)},function(d,Y){d.setTime(+d+Y*6E4)},function(d,Y){return(Y-d)/6E4},function(d){return d.getUTCMinutes()});
Tg(function(d){d.setUTCMinutes(0,0,0)},function(d,Y){d.setTime(+d+Y*36E5)},function(d,Y){return(Y-d)/36E5},function(d){return d.getUTCHours()});
var yoQ=Tg(function(d){d.setUTCHours(0,0,0,0)},function(d,Y){d.setUTCDate(d.getUTCDate()+Y)},function(d,Y){return(Y-d)/864E5},function(d){return d.getUTCDate()-1}),GC3=y6(0),NNj=y6(1);
y6(2);y6(3);var Jyr=y6(4);y6(5);y6(6);Tg(function(d){d.setUTCDate(1);d.setUTCHours(0,0,0,0)},function(d,Y){d.setUTCMonth(d.getUTCMonth()+Y)},function(d,Y){return Y.getUTCMonth()-d.getUTCMonth()+(Y.getUTCFullYear()-d.getUTCFullYear())*12},function(d){return d.getUTCMonth()});
var Vv=Tg(function(d){d.setUTCMonth(0,1);d.setUTCHours(0,0,0,0)},function(d,Y){d.setUTCFullYear(d.getUTCFullYear()+Y)},function(d,Y){return Y.getUTCFullYear()-d.getUTCFullYear()},function(d){return d.getUTCFullYear()});
Vv.every=function(d){return isFinite(d=Math.floor(d))&&d>0?Tg(function(Y){Y.setUTCFullYear(Math.floor(Y.getUTCFullYear()/d)*d);Y.setUTCMonth(0,1);Y.setUTCHours(0,0,0,0)},function(Y,Gq){Y.setUTCFullYear(Y.getUTCFullYear()+Gq*d)}):null};
var dMQ={"-":"",_:" ",0:"0"},MP=/^\s*\d+/,Xce=/^%/,Sme=/[\\^$*+?|[\]().{}]/g,O1d;(function(d){O1d=bq8(d);WbW=O1d.utcFormat;a_i=O1d.utcParse;return O1d})({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||WbW("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||a_i("%Y-%m-%dT%H:%M:%S.%LZ");xp("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
xp("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");xp("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");xp("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");xp("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");xp("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");xp("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
xp("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");xp("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");xp("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");xp("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");xp("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var DIY=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(xp);p3(DIY);var cEj=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(xp);p3(cEj);var kCF=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(xp);p3(kCF);var vr9=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(xp);
p3(vr9);var L59=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(xp);p3(L59);var Qs9=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(xp);p3(Qs9);var xIL=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(xp);p3(xIL);var fb1=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(xp);p3(fb1);var TBF=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(xp);p3(TBF);var BBD=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(xp);p3(BBD);var UIL=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(xp);p3(UIL);var ss5=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(xp);p3(ss5);var gr5=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(xp);p3(gr5);var AEf=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(xp);p3(AEf);var MlW=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(xp);p3(MlW);var ZoW=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(xp);p3(ZoW);var tlY=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(xp);p3(tlY);var z61=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(xp);p3(z61);var orj=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(xp);p3(orj);var ioe=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(xp);p3(ioe);var Prc=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(xp);p3(Prc);var dIF=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(xp);p3(dIF);var yE3=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(xp);p3(yE3);var rE9=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(xp);p3(rE9);var F5c=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(xp);p3(F5c);var Ho9=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(xp);p3(Ho9);var W5Y=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(xp);p3(W5Y);O5O(M8(300,.5,0),M8(-240,.5,1));O5O(M8(-100,.75,.35),M8(80,1.5,.8));O5O(M8(260,.75,.35),M8(80,1.5,.8));M8();XJ();C6v(xp("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
C6v(xp("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
C6v(xp("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
C6v(xp("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
u1z.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(d,Y){d=+d;Y=+Y;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(d,Y):this._context.moveTo(d,Y);break;case 1:this._point=2;default:this._context.lineTo(d,Y)}}};
(function(d){function Y(Gq){return new RoO(d(Gq))}
Y._curve=d;return Y})(function(d){return new u1z(d)});
RoO.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(d,Y){this._curve.point(Y*Math.sin(d),Y*-Math.cos(d))}};
ulO.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:KUO(this,this._t0,O9i(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(d,Y){var Gq=NaN;d=+d;Y=+Y;if(d!==this._x1||Y!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(d,Y):this._context.moveTo(d,Y);break;case 1:this._point=2;break;case 2:this._point=3;KUO(this,O9i(this,Gq=nEu(this,d,Y)),Gq);break;default:KUO(this,this._t0,Gq=nEu(this,d,Y))}this._x0=this._x1;this._x1=d;this._y0=this._y1;this._y1=Y;this._t0=Gq}}};
(function(d){this._context=new wFX(d)}.prototype=Object.create(ulO.prototype)).point=function(d,Y){ulO.prototype.point.call(this,Y,d)};
wFX.prototype={moveTo:function(d,Y){this._context.moveTo(Y,d)},
closePath:function(){this._context.closePath()},
lineTo:function(d,Y){this._context.lineTo(Y,d)},
bezierCurveTo:function(d,Y,Gq,Vu,fO,Ad){this._context.bezierCurveTo(Y,d,Vu,Gq,Ad,fO)}};
lq.prototype={constructor:lq,scale:function(d){return d===1?this:new lq(this.k*d,this.x,this.y)},
translate:function(d,Y){return d===0&Y===0?this:new lq(this.k,this.x+this.k*d,this.y+this.k*Y)},
apply:function(d){return[d[0]*this.k+this.x,d[1]*this.k+this.y]},
invert:function(d){return[(d[0]-this.x)/this.k,(d[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new lq(1,0,0);x$2=yK;nc.svg=nc.svg;nc.xhtml=nc.xhtml;nc.xlink=nc.xlink;nc.xml=nc.xml;nc.xmlns=nc.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 NPb="hammer_"+(Math.random()*1E6|0),YEi=function(){var G=document||document;if(!G[NPb]){var b=function(){(function(I,h,q,l){function V(oO,aO,RO){return setTimeout(T(oO,RO),aO)}
function D(oO,aO,RO){return Array.isArray(oO)?(k(oO,RO[aO],RO),!0):!1}
function k(oO,aO,RO){var gz;if(oO)if(oO.forEach)oO.forEach(aO,RO);else if(oO.length!==l){var gj=0;for(gz=oO.length;gj<gz;gj++)aO.call(RO,oO[gj],gj,oO)}else for(gj in oO)oO.hasOwnProperty(gj)&&aO.call(RO,oO[gj],gj,oO)}
function L(oO,aO,RO){for(var gz=Object.keys(aO),gj=0,dd=gz.length;gj<dd;gj++)if(!RO||RO&&oO[gz[gj]]===l)oO[gz[gj]]=aO[gz[gj]];return oO}
function x(oO,aO){return L(oO,aO,!0)}
function f(oO,aO,RO){aO=aO.prototype;var gz=oO.prototype=Object.create(aO);gz.constructor=oO;gz._super=aO;RO&&L(gz,RO)}
function T(oO,aO){return function(){return oO.apply(aO,arguments)}}
function B(oO,aO){return typeof oO=="function"?oO.apply(aO?aO[0]||l:l,aO):oO}
function A(oO,aO,RO){k(y(aO),function(gz){oO.addEventListener(gz,RO,!1)})}
function t(oO,aO,RO){k(y(aO),function(gz){oO.removeEventListener(gz,RO,!1)})}
function y(oO){return oO.trim().split(/\s+/g)}
function F(oO,aO,RO){if(oO.indexOf&&!RO)return oO.indexOf(aO);for(var gz=0,gj=oO.length;gz<gj;gz++)if(RO&&oO[gz][RO]==aO||!RO&&oO[gz]===aO)return gz;return-1}
function W(oO,aO,RO){for(var gz=[],gj=[],dd=0,rj=oO.length;dd<rj;dd++){var t5=aO?oO[dd][aO]:oO[dd];F(gj,t5)<0&&gz.push(oO[dd]);gj[dd]=t5}RO&&(gz=aO?gz.sort(function(M8,CD){return M8[aO]>CD[aO]}):gz.sort());
return gz}
function O(oO,aO){for(var RO,gz=aO[0].toUpperCase()+aO.slice(1),gj=0,dd=vX.length;gj<dd;gj++)if(RO=(RO=vX[gj])?RO+gz:aO,RO in oO)return RO;return l}
function K(oO,aO){var RO=this;this.manager=oO;this.callback=aO;this.element=oO.element;this.target=oO.options.inputTarget;this.domHandler=function(gz){B(oO.options.enable,[oO])&&RO.handler(gz)};
this.evEl&&A(this.element,this.evEl,this.domHandler);this.evTarget&&A(this.target,this.evTarget,this.domHandler);this.evWin&&A(I,this.evWin,this.domHandler)}
function u(oO){var aO;CN?aO=W2:SG?aO=is:yK?aO=su:aO=Uj;return new aO(oO,w)}
function w(oO,aO,RO){var gz=RO.pointers.length,gj=RO.changedPointers.length,dd=aO&1&&gz-gj===0;RO.isFirst=!!dd;RO.isFinal=!!(aO&12&&gz-gj===0);dd&&(oO.session={});RO.eventType=aO;aO=oO.session;gz=RO.pointers;gj=gz.length;aO.firstInput||(aO.firstInput=$a(RO));gj>1&&!aO.firstMultiple?aO.firstMultiple=$a(RO):gj===1&&(aO.firstMultiple=!1);dd=aO.firstInput;var rj=(gj=aO.firstMultiple)?gj.center:dd.center,t5=RO.center=ev(gz);RO.timeStamp=TA();RO.deltaTime=RO.timeStamp-dd.timeStamp;RO.angle=xa(rj,t5);RO.distance=
td(rj,t5);dd=RO.center;rj=aO.offsetDelta||{};t5=aO.prevDelta||{};var M8=aO.prevInput||{};if(RO.eventType===1||M8.eventType===4)t5=aO.prevDelta={x:M8.deltaX||0,y:M8.deltaY||0},rj=aO.offsetDelta={x:dd.x,y:dd.y};RO.deltaX=t5.x+(dd.x-rj.x);RO.deltaY=t5.y+(dd.y-rj.y);RO.offsetDirection=LO(RO.deltaX,RO.deltaY);gj?(dd=gj.pointers,dd=td(gz[0],gz[1],XJ)/td(dd[0],dd[1],XJ)):dd=1;RO.scale=dd;gj?(gj=gj.pointers,gz=xa(gz[1],gz[0],XJ)-xa(gj[1],gj[0],XJ)):gz=0;RO.rotation=gz;rj=aO.lastInterval||RO;gz=RO.timeStamp-
rj.timeStamp;RO.eventType!=8&&(gz>25||rj.velocity===l)?(dd=rj.deltaX-RO.deltaX,rj=rj.deltaY-RO.deltaY,t5=dd/gz||0,M8=rj/gz||0,gz=t5,gj=M8,t5=wX(t5)>wX(M8)?t5:M8,dd=LO(dd,rj),aO.lastInterval=RO):(t5=rj.velocity,gz=rj.velocityX,gj=rj.velocityY,dd=rj.direction);RO.velocity=t5;RO.velocityX=gz;RO.velocityY=gj;RO.direction=dd;aO=oO.element;a:{for(gz=RO.srcEvent.target;gz;){if(gz==aO){gz=!0;break a}gz=gz.parentNode}gz=!1}gz&&(aO=RO.srcEvent.target);RO.target=aO;oO.emit("hammer.input",RO);oO.recognize(RO);
oO.session.prevInput=RO}
function $a(oO){for(var aO=[],RO=0;RO<oO.pointers.length;RO++)aO[RO]={clientX:Ga(oO.pointers[RO].clientX),clientY:Ga(oO.pointers[RO].clientY)};return{timeStamp:TA(),pointers:aO,center:ev(aO),deltaX:oO.deltaX,deltaY:oO.deltaY}}
function ev(oO){var aO=oO.length;if(aO===1)return{x:Ga(oO[0].clientX),y:Ga(oO[0].clientY)};for(var RO=0,gz=0,gj=0;gj<aO;gj++)RO+=oO[gj].clientX,gz+=oO[gj].clientY;return{x:Ga(RO/aO),y:Ga(gz/aO)}}
function LO(oO,aO){return oO===aO?1:wX(oO)>=wX(aO)?oO>0?2:4:aO>0?8:16}
function td(oO,aO,RO){RO||(RO=Va);var gz=aO[RO[0]]-oO[RO[0]];oO=aO[RO[1]]-oO[RO[1]];return Math.sqrt(gz*gz+oO*oO)}
function xa(oO,aO,RO){RO||(RO=Va);return Math.atan2(aO[RO[1]]-oO[RO[1]],aO[RO[0]]-oO[RO[0]])*180/Math.PI}
function Uj(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;K.apply(this,arguments)}
function W2(){this.evEl=U8;this.evWin=J4;K.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function is(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};K.apply(this,arguments)}
function su(){K.apply(this,arguments);var oO=T(this.handler,this);this.touch=new is(this.manager,oO);this.mouse=new Uj(this.manager,oO)}
function an(oO,aO){this.manager=oO;this.set(aO)}
function A5(oO){if(oO.indexOf("none")>-1)return"none";var aO=oO.indexOf("pan-x")>-1,RO=oO.indexOf("pan-y")>-1;return aO&&RO?"pan-x pan-y":aO||RO?aO?"pan-x":"pan-y":oO.indexOf("manipulation")>-1?"manipulation":"auto"}
function XO(oO){this.id=s1++;this.manager=null;this.options=x(oO||{},this.defaults);oO=this.options.enable;this.options.enable=oO===l?!0:oO;this.state=1;this.simultaneous={};this.requireFail=[]}
function kb(oO){return oO==16?"down":oO==8?"up":oO==2?"left":oO==4?"right":""}
function rz(oO,aO){return(aO=aO.manager)?aO.get(oO):oO}
function on(){XO.apply(this,arguments)}
function Ac(){on.apply(this,arguments);this.pY=this.pX=null}
function U1(){on.apply(this,arguments)}
function mp(){XO.apply(this,arguments);this._input=this._timer=null}
function bn(){on.apply(this,arguments)}
function xb(){on.apply(this,arguments)}
function j8(){XO.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function BX(oO,aO){aO=aO||{};var RO=aO.recognizers;aO.recognizers=RO===l?BX.defaults.preset:RO;return new I5(oO,aO)}
function I5(oO,aO){aO=aO||{};this.options=x(aO,BX.defaults);this.options.inputTarget=this.options.inputTarget||oO;this.handlers={};this.session={};this.recognizers=[];this.element=oO;this.input=u(this);this.touchAction=new an(this,this.options.touchAction);ys(this,!0);k(aO.recognizers,function(RO){var gz=this.add(new RO[0](RO[1]));RO[2]&&gz.recognizeWith(RO[2]);RO[3]&&gz.requireFailure(RO[2])},this)}
function ys(oO,aO){var RO=oO.element;k(oO.options.cssProps,function(gz,gj){RO.style[O(RO.style,gj)]=aO?gz:""})}
function nQ(oO,aO){var RO=h.createEvent("Event");RO.initEvent(oO,!0,!0);RO.gesture=aO;aO.target.dispatchEvent(RO)}
var vX=" webkit moz MS ms o".split(" "),cX=h.createElement("div"),Ga=Math.round,wX=Math.abs,TA=Date.now,s1=1,pA=/mobile|tablet|ip(ad|hone|od)|android/i,yK="ontouchstart"in I,CN=O(I,"PointerEvent")!==l,SG=yK&&pA.test(navigator.userAgent),Va=["x","y"],XJ=["clientX","clientY"];K.prototype={handler:function(){},
destroy:function(){this.evEl&&t(this.element,this.evEl,this.domHandler);this.evTarget&&t(this.target,this.evTarget,this.domHandler);this.evWin&&t(I,this.evWin,this.domHandler)}};
var tc={mousedown:1,mousemove:2,mouseup:4};f(Uj,K,{handler:function(oO){var aO=tc[oO.type];aO&1&&oO.button===0&&(this.pressed=!0);aO&2&&oO.which!==1&&(aO=4);this.pressed&&this.allow&&(aO&4&&(this.pressed=!1),this.callback(this.manager,aO,{pointers:[oO],changedPointers:[oO],pointerType:"mouse",srcEvent:oO}))}});
var m9={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Wr={2:"touch",3:"pen",4:"mouse",5:"kinect"},U8="pointerdown",J4="pointermove pointerup pointercancel";I.MSPointerEvent&&(U8="MSPointerDown",J4="MSPointerMove MSPointerUp MSPointerCancel");f(W2,K,{handler:function(oO){var aO=this.store,RO=!1,gz=oO.type.toLowerCase().replace("ms","");gz=m9[gz];var gj=Wr[oO.pointerType]||oO.pointerType;gz&1&&(oO.button===0||gj=="touch")?aO.push(oO):gz&12&&(RO=!0);var dd=F(aO,oO.pointerId,"pointerId");
dd<0||(aO[dd]=oO,this.callback(this.manager,gz,{pointers:aO,changedPointers:[oO],pointerType:gj,srcEvent:oO}),RO&&aO.splice(dd,1))}});
var f0={touchstart:1,touchmove:2,touchend:4,touchcancel:8};f(is,K,{handler:function(oO){var aO=f0[oO.type];var RO=Array.prototype.slice.call(oO.touches,0);var gz=this.targetIds;if(aO&3&&RO.length===1)gz[RO[0].identifier]=!0,gz=[RO,RO];else{var gj,dd=Array.prototype.slice.call(oO.targetTouches,0),rj=Array.prototype.slice.call(oO.changedTouches,0),t5=[];if(aO===1)for(RO=0,gj=dd.length;RO<gj;RO++)gz[dd[RO].identifier]=!0;RO=0;for(gj=rj.length;RO<gj;RO++)gz[rj[RO].identifier]&&t5.push(rj[RO]),aO&12&&
delete gz[rj[RO].identifier];gz=t5.length?[W(dd.concat(t5),"identifier",!0),t5]:void 0}gz&&this.callback(this.manager,aO,{pointers:gz[0],changedPointers:gz[1],pointerType:"touch",srcEvent:oO})}});
f(su,K,{handler:function(oO,aO,RO){var gz=RO.pointerType=="mouse";if(RO.pointerType=="touch")this.mouse.allow=!1;else if(gz&&!this.mouse.allow)return;aO&12&&(this.mouse.allow=!0);this.callback(oO,aO,RO)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Jj=O(cX.style,"touchAction"),kS=Jj!==l;an.prototype={set:function(oO){oO=="compute"&&(oO=this.compute());kS&&(this.manager.element.style[Jj]=oO);this.actions=oO.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var oO=[];k(this.manager.recognizers,function(aO){B(aO.options.enable,[aO])&&(oO=oO.concat(aO.getTouchAction()))});
return A5(oO.join(" "))},
preventDefaults:function(oO){if(!kS){var aO=oO.srcEvent;oO=oO.offsetDirection;if(this.manager.session.prevented)aO.preventDefault();else{var RO=this.actions,gz=RO.indexOf("none")>-1,gj=RO.indexOf("pan-y")>-1;RO=RO.indexOf("pan-x")>-1;if(gz||gj&&RO||gj&&oO&6||RO&&oO&24)return this.preventSrc(aO)}}},
preventSrc:function(oO){this.manager.session.prevented=!0;oO.preventDefault()}};
XO.prototype={defaults:{},set:function(oO){L(this.options,oO);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(oO){if(D(oO,"recognizeWith",this))return this;var aO=this.simultaneous;oO=rz(oO,this);aO[oO.id]||(aO[oO.id]=oO,oO.recognizeWith(this));return this},
dropRecognizeWith:function(oO){if(D(oO,"dropRecognizeWith",this))return this;oO=rz(oO,this);delete this.simultaneous[oO.id];return this},
requireFailure:function(oO){if(D(oO,"requireFailure",this))return this;var aO=this.requireFail;oO=rz(oO,this);F(aO,oO)===-1&&(aO.push(oO),oO.requireFailure(this));return this},
dropRequireFailure:function(oO){if(D(oO,"dropRequireFailure",this))return this;oO=rz(oO,this);oO=F(this.requireFail,oO);oO>-1&&this.requireFail.splice(oO,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(oO){return!!this.simultaneous[oO.id]},
emit:function(oO){function aO(gj){RO.manager.emit(RO.options.event+(gj?gz&16?"cancel":gz&8?"end":gz&4?"move":gz&2?"start":"":""),oO)}
var RO=this,gz=this.state;gz<8&&aO(!0);aO();gz>=8&&aO(!0)},
tryEmit:function(oO){if(this.canEmit())return this.emit(oO);this.state=32},
canEmit:function(){for(var oO=0;oO<this.requireFail.length;oO++)if(!(this.requireFail[oO].state&33))return!1;return!0},
recognize:function(oO){oO=L({},oO);B(this.options.enable,[this,oO])?(this.state&56&&(this.state=1),this.state=this.process(oO),this.state&30&&this.tryEmit(oO)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
f(on,XO,{defaults:{pointers:1},attrTest:function(oO){var aO=this.options.pointers;return aO===0||oO.pointers.length===aO},
process:function(oO){var aO=this.state,RO=oO.eventType,gz=aO&6;oO=this.attrTest(oO);return gz&&(RO&8||!oO)?aO|16:gz||oO?RO&4?aO|8:aO&2?aO|4:2:32}});
f(Ac,on,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var oO=this.options.direction;if(oO===30)return["none"];var aO=[];oO&6&&aO.push("pan-y");oO&24&&aO.push("pan-x");return aO},
directionTest:function(oO){var aO=this.options,RO=!0,gz=oO.distance,gj=oO.direction,dd=oO.deltaX,rj=oO.deltaY;gj&aO.direction||(aO.direction&6?(gj=dd===0?1:dd<0?2:4,RO=dd!=this.pX,gz=Math.abs(oO.deltaX)):(gj=rj===0?1:rj<0?8:16,RO=rj!=this.pY,gz=Math.abs(oO.deltaY)));oO.direction=gj;return RO&&gz>aO.threshold&&gj&aO.direction},
attrTest:function(oO){return on.prototype.attrTest.call(this,oO)&&(this.state&2||!(this.state&2)&&this.directionTest(oO))},
emit:function(oO){this.pX=oO.deltaX;this.pY=oO.deltaY;var aO=kb(oO.direction);aO&&this.manager.emit(this.options.event+aO,oO);this._super.emit.call(this,oO)}});
f(U1,on,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(oO){return this._super.attrTest.call(this,oO)&&(Math.abs(oO.scale-1)>this.options.threshold||this.state&2)},
emit:function(oO){this._super.emit.call(this,oO);oO.scale!==1&&this.manager.emit(this.options.event+(oO.scale<1?"in":"out"),oO)}});
f(mp,XO,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(oO){var aO=this.options,RO=oO.pointers.length===aO.pointers,gz=oO.distance<aO.threshold,gj=oO.deltaTime>aO.time;this._input=oO;if(!gz||!RO||oO.eventType&12&&!gj)this.reset();else if(oO.eventType&1)this.reset(),this._timer=V(function(){this.state=8;this.tryEmit()},aO.time,this);
else if(oO.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(oO){this.state===8&&(oO&&oO.eventType&4?this.manager.emit(this.options.event+"up",oO):(this._input.timeStamp=TA(),this.manager.emit(this.options.event,this._input)))}});
f(bn,on,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(oO){return this._super.attrTest.call(this,oO)&&(Math.abs(oO.rotation)>this.options.threshold||this.state&2)}});
f(xb,on,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Ac.prototype.getTouchAction.call(this)},
attrTest:function(oO){var aO=this.options.direction;if(aO&30)var RO=oO.velocity;else aO&6?RO=oO.velocityX:aO&24&&(RO=oO.velocityY);return this._super.attrTest.call(this,oO)&&aO&oO.direction&&wX(RO)>this.options.velocity&&oO.eventType&4},
emit:function(oO){var aO=kb(oO.direction);aO&&this.manager.emit(this.options.event+aO,oO);this.manager.emit(this.options.event,oO)}});
f(j8,XO,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(oO){var aO=this.options,RO=oO.pointers.length===aO.pointers,gz=oO.distance<aO.threshold,gj=oO.deltaTime<aO.time;this.reset();if(oO.eventType&1&&this.count===0)return this.failTimeout();if(gz&&gj&&RO){if(oO.eventType!=4)return this.failTimeout();RO=this.pTime?oO.timeStamp-this.pTime<aO.interval:!0;gz=!this.pCenter||td(this.pCenter,oO.center)<aO.posThreshold;this.pTime=oO.timeStamp;this.pCenter=oO.center;gz&&RO?this.count+=1:this.count=1;this._input=oO;if(this.count%aO.taps===0)return this.hasRequireFailures()?
(this._timer=V(function(){this.state=8;this.tryEmit()},aO.interval,this),2):8}return 32},
failTimeout:function(){this._timer=V(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))}});
BX.VERSION="2.0.2";BX.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[bn,{enable:!1}],[U1,{enable:!1},["rotate"]],[xb,{direction:6}],[Ac,{direction:6},["swipe"]],[j8],[j8,{event:"doubletap",taps:2},["tap"]],[mp]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};I5.prototype={set:function(oO){L(this.options,oO);return this},
stop:function(oO){this.session.stopped=oO?2:1},
recognize:function(oO){var aO=this.session;if(!aO.stopped){this.touchAction.preventDefaults(oO);var RO=this.recognizers,gz=aO.curRecognizer;if(!gz||gz&&gz.state&8)gz=aO.curRecognizer=null;for(var gj=0,dd=RO.length;gj<dd;gj++){var rj=RO[gj];aO.stopped===2||gz&&rj!=gz&&!rj.canRecognizeWith(gz)?rj.reset():rj.recognize(oO);!gz&&rj.state&14&&(gz=aO.curRecognizer=rj)}}},
get:function(oO){if(oO instanceof XO)return oO;for(var aO=this.recognizers,RO=0;RO<aO.length;RO++)if(aO[RO].options.event==oO)return aO[RO];return null},
add:function(oO){if(D(oO,"add",this))return this;var aO=this.get(oO.options.event);aO&&this.remove(aO);this.recognizers.push(oO);oO.manager=this;this.touchAction.update();return oO},
remove:function(oO){if(D(oO,"remove",this))return this;var aO=this.recognizers;oO=this.get(oO);aO.splice(F(aO,oO),1);this.touchAction.update();return this},
on:function(oO,aO){var RO=this.handlers;k(y(oO),function(gz){RO[gz]=RO[gz]||[];RO[gz].push(aO)});
return this},
off:function(oO,aO){var RO=this.handlers;k(y(oO),function(gz){aO?RO[gz].splice(F(RO[gz],aO),1):delete RO[gz]});
return this},
emit:function(oO,aO){this.options.domEvents&&nQ(oO,aO);var RO=this.handlers[oO]&&this.handlers[oO].slice();if(RO&&RO.length){aO.type=oO;aO.preventDefault=function(){aO.srcEvent.preventDefault()};
oO=0;for(var gz=RO.length;oO<gz;oO++)RO[oO](aO)}},
destroy:function(){this.element&&ys(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
L(BX,{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:I5,Input:K,TouchAction:an,Recognizer:XO,AttrRecognizer:on,Tap:j8,Pan:Ac,Swipe:xb,Pinch:U1,Rotate:bn,Press:mp,on:A,off:t,each:k,merge:x,extend:L,inherit:f,bindFn:T,prefixed:O});
I[q]=BX})(window,document,"Hammer");
return window.Hammer}.call({});
b.DOCUMENT=G;G[NPb]=b}return G[NPb]};/*

 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 CXJ=function(G,b){if(G.length!==b.length)return!1;for(var I=0;I<G.length;++I)if(G[I]!==b[I])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var Jkn=_.e(["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"]),Kbu=Jkn.next();!Kbu.done;Kbu=Jkn.next()){var uEu=Kbu.value,Rzu=document.createElement("link");Rzu.rel="stylesheet";Rzu.href=uEu;document.head.appendChild(Rzu)};var r8O,Hfs,aI2,P0O,Fes,dwO,o4p,ifO;r8O={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};Hfs={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:"*"};aI2={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};P0O=/[a-z0-9*]/;Fes=/U\+/;dwO=/^arrow/;o4p=/^space(bar)?/;ifO=/^escape$/;_.PO={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,b){this._imperativeKeyBindings[G]=b;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(G,b){b=Ypj(b);for(var I=0;I<b.length;++I)if(Wer(b[I],G))return!0;return!1},
_collectKeyBindings:function(){var G=this.behaviors.map(function(b){return b.keyBindings});
G.indexOf(this.keyBindings)===-1&&G.push(this.keyBindings);return G},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(I){for(var h in I)this._addKeyBinding(h,I[h])},this);
for(var G in this._imperativeKeyBindings)this._addKeyBinding(G,this._imperativeKeyBindings[G]);for(var b in this._keyBindings)this._keyBindings[b].sort(function(I,h){I=I[0].hasModifiers;return I===h[0].hasModifiers?0:I?-1:1})},
_addKeyBinding:function(G,b){Ypj(G).forEach(function(I){this._keyBindings[I.event]=this._keyBindings[I.event]||[];this._keyBindings[I.event].push([I,b])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(G){var b=this._onKeyBindingEvent.bind(this,this._keyBindings[G]);this._boundKeyHandlers.push([this.keyEventTarget,G,b]);this.keyEventTarget.addEventListener(G,b)},this)},
_unlistenKeyEventListeners:function(){for(var G,b,I;this._boundKeyHandlers.length;)G=this._boundKeyHandlers.pop(),b=G[0],I=G[1],G=G[2],b.removeEventListener(I,G)},
_onKeyBindingEvent:function(G,b){this.stopKeyboardEventPropagation&&b.stopPropagation();if(!b.defaultPrevented)for(var I=0;I<G.length;I++){var h=G[I][0],q=G[I][1];if(Wer(h,b)&&(this._triggerKeyHandler(h,q,b),b.defaultPrevented))break}},
_triggerKeyHandler:function(G,b,I){var h=Object.create(G);h.keyboardEvent=I;G=new CustomEvent(G.event,{detail:h,cancelable:!0});this[b].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
*/
_.fn({is:"iron-a11y-keys",_template:null,behaviors:[_.PO],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,{})}});_.dr={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 yl={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 b=_.kc(G).localTarget;this.isLightDescendant(b)||(G.preventDefault(),G.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(G){G=_.kc(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,b){b&&b!=G&&this.hasAttribute(b)&&this.removeAttribute(b)},
_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()}},nx8=[_.PO,
yl];_.rr={IronButtonState:nx8,IronButtonStateImpl:yl};_.FZ={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.HO=function(G){_.HO[" "](G);this.type=G&&G.type||"default";this.key=G&&G.key;G&&"value"in G&&(this.value=G.value)};
_.HO.prototype.byKey=function(G){this.key=G;return this.value};
_.kV.Object.defineProperties(_.HO.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var G=this.type,b=this.key;if(G&&b)return WO[G]&&WO[G][b]},
set:function(G){var b=this.type,I=this.key;b&&I&&(b=WO[b]=WO[b]||{},G==null?delete b[I]:b[I]=G)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var G=WO[this.type];return G?Object.keys(G).map(function(b){return WO[this.type][b]},this):[]}}});
_.HO[" "]=function(){};
var WO={};_.fn({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,b,I){G=new _.HO({type:G,key:b});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 _.HO({type:this.type,key:G})).value}});var OWQ;OWQ=null;_.au={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){OWQ=new _.HO({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return OWQ&&OWQ.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 wPe={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"}},Ex5=[_.FZ,
_.au,wPe];_.fn({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 _.HO({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,b){this.removeIcon(G);if(b=this._cloneIcon(b,this.rtlMirroring&&this._targetIsRTL(G))){var I=_.kc(G.root||G);I.insertBefore(b,I.childNodes[0]);return G._svgIcon=b}return null},
removeIcon:function(G){G._svgIcon&&(_.kc(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);_.kc(this).querySelectorAll("[id]").forEach(function(b){G[b.id]=b});
return G},
_cloneIcon:function(G,b){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[G],this.size,b)},
_prepareSvgClone:function(G,b,I){if(G){G=G.cloneNode(!0);var h=document.createElementNS("http://www.w3.org/2000/svg","svg");b=G.getAttribute("viewBox")||"0 0 "+b+" "+b;var q="pointer-events: none; display: block; width: 100%; height: 100%;";I&&G.hasAttribute("mirror-in-rtl")&&(q+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");h.setAttribute("viewBox",b);h.setAttribute("preserveAspectRatio","xMidYMid meet");h.setAttribute("focusable","false");h.style&&(h.style.cssText=
q);h.appendChild(G).removeAttribute("id");return h}return null}});var pPi=function(G){this.multi=!1;this.selection=[];this.selectCallback=G};
_.m=pPi.prototype;_.m.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.m.clear=function(G){this.selection.slice().forEach(function(b){(!G||G.indexOf(b)<0)&&this.setItemSelected(b,!1)},this)};
_.m.isSelected=function(G){return this.selection.indexOf(G)>=0};
_.m.setItemSelected=function(G,b){if(G!=null&&b!==this.isSelected(G)){if(b)this.selection.push(G);else{var I=this.selection.indexOf(G);I>=0&&this.selection.splice(I,1)}this.selectCallback&&this.selectCallback(G,b)}};
_.m.select=function(G){this.multi?this.toggle(G):this.get()!==G&&(this.setItemSelected(this.get(),!1),this.setItemSelected(G,!0))};
_.m.toggle=function(G){this.setItemSelected(G,!this.isSelected(G))};_.yx={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 pPi(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.kc(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,b=G-1;this.selected!==void 0&&(b=(Number(this._valueToIndex(this.selected))-1+G)%G);this.selected=this._indexToValue(b)},
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,b){this._removeListener(b);this._addListener(G)},
_updateItems:function(){var G=_.kc(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 b=0,I;I=this.items[b];b++){if(this._valueForItem(I)==G)return b}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 b=G[sz(this.attrForSelected)];return b!=void 0?b:G.getAttribute(this.attrForSelected)},
_applySelection:function(G,b){this.selectedClass&&this.toggleClass(this.selectedClass,b,G);this.selectedAttribute&&this.toggleAttribute.call(G,this.selectedAttribute,b);this._selectionChange();this.fire("iron-"+(b?"select":"deselect"),{item:G})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(G){return _.kc(G).observeNodes(function(b){this._updateItems();this._updateSelected();this.fire("iron-items-changed",b,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(G){G=G.target;for(var b=this.items;G&&G!=this;){var I=b.indexOf(G);if(I>=0){b=this._indexToValue(I);this._itemActivate(b,G);break}G=G.parentNode}},
_itemActivate:function(G,b){this.fire("iron-activate",{selected:G,item:b},{cancelable:!0}).defaultPrevented||this.select(G)}};var SEu={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)):_.yx._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 b=0;b<G.length;b++)this._selection.setItemSelected(G[b],!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 b=this.selectedValues.indexOf(G);b<0?this.push("selectedValues",G):this.splice("selectedValues",b,1)},
_valuesToItems:function(G){return G==null?null:G.map(function(b){return this._valueToItem(b)},this)}},XP5=[_.yx,
SEu];var $C5;
_.Ns={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 b=this._valueToItem(G);b&&b.hasAttribute("disabled")||(this._setFocusedItem(b),SEu.select.apply(this,arguments))},
_resetTabindices:function(){var G=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(b){b.setAttribute("tabindex",b===G?"0":"-1");b.setAttribute("aria-selected",this._selection.isSelected(b))},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 b=this._searchText||"";b+=(G.key&&G.key.length==1?G.key:String.fromCharCode(G.keyCode)).toLocaleLowerCase();G=b.length;for(var I=0,h;h=this.items[I];I++)if(!h.hasAttribute("disabled")){var q=this.attrForItemTitle||"textContent";q=(h[q]||h.getAttribute(q)||"").trim();if(!(q.length<G)&&q.slice(0,G).toLocaleLowerCase()==b){this._setFocusedItem(h);break}}this._searchText=b;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var G=this.items.length,b=Number(this.indexOf(this.focusedItem)),I=1;I<G+1;I++){var h=this.items[(b-I+G)%G];if(!h.hasAttribute("disabled")){var q=_.kc(h).getOwnerRoot()||document;this._setFocusedItem(h);if(_.kc(q).activeElement==h)break}}},
_focusNext:function(){for(var G=this.items.length,b=Number(this.indexOf(this.focusedItem)),I=1;I<G+1;I++){var h=this.items[(b+I)%G];if(!h.hasAttribute("disabled")){var q=_.kc(h).getOwnerRoot()||document;this._setFocusedItem(h);if(_.kc(q).activeElement==h)break}}},
_applySelection:function(G,b){b?G.setAttribute("aria-selected","true"):G.setAttribute("aria-selected","false");_.yx._applySelection.apply(this,arguments)},
_focusedItemChanged:function(G,b){b&&b.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");_.Ns._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",G);_.Ns._shiftTabPressed=!1},1)},
_onFocus:function(G){!_.Ns._shiftTabPressed&&(G=_.kc(G).rootTarget,G===this||typeof G.tabIndex==="undefined"||this.isLightDescendant(G))&&(this._defaultFocusAsync=this.async(function(){var b=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);b?this._setFocusedItem(b):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){_.yx._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};$C5=[XP5,_.PO,_.Ns];_.GdX={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)}};
_.bpW=[$C5,_.GdX];var Iun;Iun=new Set;_.Y6={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):(Iun.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 b=this._interestedResizables.indexOf(G);b>-1&&(this._interestedResizables.splice(b,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():$V||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(G){var b=_.kc(G).rootTarget;b!==this&&(b.assignParentResizable(this),this._notifyDescendant(b),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(b){b!==this&&b._findParent()},this):(Iun.forEach(function(b){b!==this&&b._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?Iun.delete(this):Iun.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
*/
_.hbi={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(G,b){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);b&&(G==="document"?this.scrollTarget=this._doc:typeof G==="string"?this.scrollTarget=(b=this.domHost)&&b.$?b.$[G]:_.kc(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,b){if(typeof G==="object"){var I=G.left;b=G.top}else I=G;I=I||0;b=b||0;this.scrollTarget===this._doc?window.scrollTo(I,b):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=I,this.scrollTarget.scrollTop=b)},
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,b){b=b===this._doc?window:b;G?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),b.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(b.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(G){this._shouldHaveListener=G;this._toggleScrollListener(G,this.scrollTarget)}};_.fn({is:"iron-selector",_template:null,behaviors:[XP5]});var CY={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 b in G.timing)this.animationTiming[b]=G.timing[b];return this.animationTiming},
setPrefixedProperty:function(G,b,I){for(var h={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[b],q,l=0;q=h[l];l++)G.style[q]=I;G.style[b]=I},
complete:function(){}};_.fn({is:"fade-in-animation",_template:null,behaviors:[CY],configure:function(G){return this._effect=new KeyframeEffect(G.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(G))}});_.fn({is:"fade-out-animation",_template:null,behaviors:[CY],configure:function(G){return this._effect=new KeyframeEffect(G.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(G))}});var q5e=[{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,b){for(var I in b)G[I]=b[I]},
_cloneConfig:function(G){var b={isClone:!0};this._copyProperties(b,G);return b},
_getAnimationConfigRecursive:function(G,b,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 h=G?this.animationConfig[G]:this.animationConfig;Array.isArray(h)||(h=[h]);if(h)for(var q,l=0;q=h[l];l++)if(q.animatable)q.animatable._getAnimationConfigRecursive(q.type||G,b,I);else if(q.id){var V=b[q.id];
V?(V.isClone||(b[q.id]=this._cloneConfig(V),V=b[q.id]),this._copyProperties(V,q)):b[q.id]=q}else I.push(q)}},
getAnimationConfig:function(G){var b={},I=[];this._getAnimationConfigRecursive(G,b,I);for(var h in b)I.push(b[h]);return I}},
{_configureAnimations:function(G){var b=[],I=[];if(G.length>0)for(var h,q=0;h=G[q];q++){var l=document.createElement(h.name);if(l.isNeonAnimation){var V=null;l.configure||(l.configure=function(){return null});
V=l.configure(h);I.push({result:V,config:h})}else console.warn(this.is+":",h.name,"not found!")}for(G=0;G<I.length;G++){V=I[G].result;h=I[G].config;try{typeof V.cancel!="function"&&(V=document.timeline.play(V))}catch(D){V=null,console.warn("Couldnt play","(",h.name,").",D)}V&&b.push({neonAnimation:l,config:h,animation:V})}return b},
_shouldComplete:function(G){for(var b=!0,I=0;I<G.length;I++)if(G[I].animation.playState!="finished"){b=!1;break}return b},
_complete:function(G){for(var b=0;b<G.length;b++)G[b].neonAnimation.complete(G[b].config);for(b=0;b<G.length;b++)G[b].animation.cancel()},
playAnimation:function(G,b){var I=this.getAnimationConfig(G);if(I){this._active=this._active||{};this._active[G]&&(this._complete(this._active[G]),delete this._active[G]);var h=this._configureAnimations(I);if(h.length==0)this.fire("neon-animation-finish",b,{bubbles:!1});else for(this._active[G]=h,I=0;I<h.length;I++)h[I].animation.onfinish=function(){this._shouldComplete(h)&&(this._complete(h),delete this._active[G],this.fire("neon-animation-finish",b,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var G in this._active){var b=this._active[G],I;for(I in b)b[I].animation&&b[I].animation.cancel&&b[I].animation.cancel()}this._active={}}}];var oL=function(G,b){G=Error.call(this,G);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.arg=b;this.name=this.constructor.name;this.constructor=oL;this.__proto__=oL.prototype};
_.M(oL,Error);var jRX=qH(function(G){var b=function(){return G.apply(this,arguments)||this};
_.M(b,G);b.prototype._marshalArgs=function(I,h,q){h=G.prototype._marshalArgs.call(this,I,h,q);if(this._legacyUndefinedCheck&&h.length>1)for(q=0;q<h.length;q++)if(h[q]===void 0||I[q].wildcard&&h[q].base===void 0)throw I=I[q].name,new oL("Argument '"+I+"' is undefined.",I);return h};
b.prototype._addPropertyEffect=function(I,h,q){return G.prototype._addPropertyEffect.call(this,I,h,C0s(q,q&&q.info&&q.info.methodName))};
b._addTemplatePropertyEffect=function(I,h,q){return G._addTemplatePropertyEffect.call(this,I,h,C0s(q))};
return b}),lue=_.fn.Class;
_.fn.Class=function(G,b){return lue(G,function(I){return b?b(jRX(I)):jRX(I)})};
var mC8=qH(function(G){var b=jRX(G);G=function(){return b.apply(this,arguments)||this};
_.M(G,b);_.kV.Object.defineProperties(G.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return G}),ebz=b4.mixin;
b4.mixin=ebz?function(G){return mC8(ebz(G))}:mC8;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.Jr=_.rr.IronButtonState;var SOa=Xp;_.J8u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var OfO=function(){return Math.random().toString(36).substring(7).split("").join(".")},n4O="@@redux/INIT"+OfO(),pmO="@@redux/REPLACE"+OfO();var Spu=typeof Symbol==="function"&&Symbol.observable||"@@observable";var VRi=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var DCJ="top right bottom left width height size weight".split(" "),cJX=typeof MutationObserver!=="undefined",kdB=VRi&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,vYi=function(){this.mutationEventsAdded_=this.JSC$11825_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=XmO(this.refresh.bind(this))},LIn=function(G,
b){var I=G.observers_;
b=I.indexOf(b);~b&&I.splice(b,1);!I.length&&G.JSC$11825_connected_&&VRi&&G.JSC$11825_connected_&&(document.removeEventListener("transitionend",G.onTransitionEnd_),window.removeEventListener("resize",G.refresh),G.mutationsObserver_&&(G.mutationsObserver_.disconnect(),kdB&&(HTMLElement.prototype.attachShadow=kdB)),G.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",G.refresh),G.mutationsObserver_=null,G.mutationEventsAdded_=!1,G.JSC$11825_connected_=!1)};
vYi.prototype.refresh=function(){QRW(this)&&this.refresh()};
var QRW=function(G){G=G.observers_.filter(function(b){return xCn(b),b.activeObservations_.length>0});
G.forEach(function(b){return fub(b)});
return G.length>0},TUB=function(G){if(VRi&&!G.JSC$11825_connected_){document.addEventListener("transitionend",G.onTransitionEnd_);
window.addEventListener("resize",G.refresh);if(cJX){G.mutationsObserver_=new MutationObserver(G.refresh);var b={attributes:!0,childList:!0,characterData:!0,subtree:!0};G.mutationsObserver_.observe(document,b);kdB&&(function q(h){var l=h.shadowRoot;l&&(G.mutationsObserver_.observe(l,b),q(l));for(h=h.firstElementChild;h;)q(h),h=h.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var h=kdB.apply(this,_.RI.apply(0,arguments));
G.mutationsObserver_.observe(h,b);return h})}else document.addEventListener("DOMSubtreeModified",G.refresh),G.mutationEventsAdded_=!0;
G.JSC$11825_connected_=!0}};
vYi.prototype.onTransitionEnd_=function(G){var b=G.propertyName===void 0?"":G.propertyName;DCJ.some(function(I){return!!~b.indexOf(I)})&&this.refresh()};
var BUz=null;var UCQ=function(G,b){for(var I=_.e(Object.keys(b)),h=I.next();!h.done;h=I.next())h=h.value,Object.defineProperty(G,h,{value:b[h],enumerable:!1,writable:!1,configurable:!0})};var KY=function(G){var b;return(G==null?void 0:(b=G.ownerDocument)==null?void 0:b.defaultView)||globalThis};var sRB={x:0,y:0,width:0,height:0},gYX=typeof SVGGraphicsElement!=="undefined"?function(G){return G instanceof KY(G).SVGGraphicsElement}:function(G){return G instanceof KY(G).SVGElement&&typeof G.getBBox==="function"};var AJ5=function(G){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=G};
AJ5.prototype.isActive=function(){var G=this.target;if(VRi)if(gYX(G)){var b=G.getBBox();b={x:0,y:0,width:b.width,height:b.height}}else{var I=G.clientWidth,h=G.clientHeight;if(I||h){var q=KY(G).getComputedStyle(G);b=Ph(q["padding-top"]);var l=Ph(q["padding-left"]),V=l+Ph(q["padding-right"]),D=b+Ph(q["padding-bottom"]),k=Ph(q.width),L=Ph(q.height);q.boxSizing==="border-box"&&(Math.round(k+V)!==I&&(k-=$LO(q,"left","right")+V),Math.round(L+D)!==h&&(L-=$LO(q,"top","bottom")+D));G!==KY(G).document.documentElement&&
(G=Math.round(k+V)-I,h=Math.round(L+D)-h,Math.abs(G)!==1&&(k-=G),Math.abs(h)!==1&&(L-=h));b={x:l,y:b,width:k,height:L}}else b=sRB}else b=sRB;this.contentRect_=b;return b.width!==this.broadcastWidth||b.height!==this.broadcastHeight};var MRQ=function(G,b){var I=b.x;var h=b.y;var q=b.width;b=b.height;var l=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);UCQ(l,{x:I,y:h,width:q,height:b,top:h,right:I+q,bottom:b+h,left:I});UCQ(this,{target:G,contentRect:l})};var ZpQ=function(G,b){var I=BUz;this.activeObservations_=[];this.observations_=new Map;if(typeof G!=="function")throw new TypeError("Ve");this.callback_=G;this.controller_=I;this.callbackCtx_=b};
ZpQ.prototype.observe=function(G){if(G===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(G instanceof KY(G).Element))throw new TypeError("Xe");var b=this.observations_;b.has(G)||(b.set(G,new AJ5(G)),G=this.controller_,~G.observers_.indexOf(this)||G.observers_.push(this),G.JSC$11825_connected_||TUB(G),this.controller_.refresh())}};
ZpQ.prototype.unobserve=function(G){if(G===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(G instanceof KY(G).Element))throw new TypeError("Xe");var b=this.observations_;b.has(G)&&(b.delete(G),b.size||LIn(this.controller_,this))}};
ZpQ.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();LIn(this.controller_,this)};
var xCn=function(G){G.activeObservations_.splice(0);G.observations_.forEach(function(b){b.isActive()&&G.activeObservations_.push(b)})},fub=function(G){if(G.activeObservations_.length>0){var b=G.callbackCtx_,I=G.activeObservations_.map(function(h){var q=h.target,l=h.contentRect_;
h.broadcastWidth=l.width;h.broadcastHeight=l.height;return new MRQ(q,l)});
G.callback_.call(b,I,b);G.activeObservations_.splice(0)}};var uQ=function(G){if(!(this instanceof uQ))throw new TypeError("Ye");if(!arguments.length)throw new TypeError("We");BUz||(BUz=new vYi);this.observer_=new ZpQ(G,this)};
uQ.prototype.observe=function(G){this.observer_.observe(G)};
uQ.prototype.unobserve=function(G){this.observer_.unobserve(G)};
uQ.prototype.disconnect=function(){this.observer_.disconnect()};var i2O=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:uQ;var SW={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"},Gg={"2D":0,WebGL:1,WebGL2:2};Gg[Gg["2D"]]="2D";Gg[1]="WebGL";Gg[2]="WebGL2";var b4O={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},I$j={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},GyO={},qnd={},jTp={},Nh=function(G){return d2("Node",G,"childNodes")},aL=function(G){return d2("Node",G,"parentNode")},YV=function(G){return d2("Node",G,"parentElement")},YnB=function(G){return d2("Node",G,
"textContent")},Grr=function(G){return l$v(G,"getRootNode")()},r2=function(G){return G&&"host"in G?d2("ShadowRoot",G,"host"):null},FI=function(G){return G&&"shadowRoot"in G?d2("Element",G,"shadowRoot"):null};var u4=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
u4.prototype.getId=function(G){if(!G)return-1;var b,I;return(I=(b=this.nodeMetaMap.get(G)||null)==null?void 0:b.id)!=null?I:-1};
u4.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var tRA=function(G,b){var I=G.getId(b);G.idNodeMap.delete(I);b.childNodes&&b.childNodes.forEach(function(h){return tRA(G,h)})};
u4.prototype.has=function(G){return this.idNodeMap.has(G)};
u4.prototype.add=function(G,b){this.idNodeMap.set(b.id,G);this.nodeMetaMap.set(G,b)};
u4.prototype.replace=function(G,b){var I=this.idNodeMap.get(G)||null;I&&(I=this.nodeMetaMap.get(I))&&this.nodeMetaMap.set(b,I);this.idNodeMap.set(G,b)};
u4.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var QTO=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,xLO=/^(?:[a-z+]+:)?\/\//i,f$X=/^www\..*/i,Tpq=/^(data:)([^,]*),(.*)/i;var sTq=1,AKX=RegExp("[^a-z0-9-_:]"),CJ,JKu,tgO=/^[^ \t\n\r\u000c]+/,Z4s=/^[, \t\n\r\u000c]+/,P1s=new WeakMap;var bU,pJ=function(G){return bU?function(){var b=_.RI.apply(0,arguments);try{return G.apply(null,_.Nz(b))}catch(I){if(!bU||bU(I)!==!0)throw I;}}:G};var Ru=function(G){this.generateIdFn=G;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
Ru.prototype.getId=function(G,b,I,h){I=I||zbz(this,G);G=h||oYW(this,G);h=I.get(b);h||(h=this.generateIdFn(),I.set(b,h),G.set(h,b));return h};
Ru.prototype.getIds=function(G,b){var I=this,h=zbz(this,G),q=oYW(this,G);return b.map(function(l){return I.getId(G,l,h,q)})};
Ru.prototype.reset=function(G){G?(this.iframeIdToRemoteIdMap.delete(G),this.iframeRemoteIdToIdMap.delete(G)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var zbz=function(G,b){var I=G.iframeIdToRemoteIdMap.get(b);I||(I=new Map,G.iframeIdToRemoteIdMap.set(b,I));return I},oYW=function(G,b){var I=G.iframeRemoteIdToIdMap.get(b);
I||(I=new Map,G.iframeRemoteIdToIdMap.set(b,I));return I};var u4q=function(G){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new Ru(g1r);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=G.mutationCb;this.wrappedEmit=G.wrappedEmit;this.stylesheetManager=G.stylesheetManager;this.recordCrossOriginIframes=G.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new Ru(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=G.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$11889_handleMessage.bind(this))},Ems=function(G,b){G.iframes.set(b,!0);
b.contentWindow&&G.crossOriginIframeMap.set(b.contentWindow,b)},b62=function(G,b){G.loadListener=b},X0O=function(G,b,I){G.mutationCb({adds:[{parentId:G.mirror.getId(b),
nextId:null,node:I}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(G.recordCrossOriginIframes){var h;(h=b.contentWindow)==null||h.addEventListener("message",G.JSC$11889_handleMessage.bind(G))}var q;(q=G.loadListener)==null||q.call(G,b);b.contentDocument&&b.contentDocument.adoptedStyleSheets&&b.contentDocument.adoptedStyleSheets.length>0&&A$r(G.stylesheetManager,b.contentDocument.adoptedStyleSheets,G.mirror.getId(b.contentDocument))};
u4q.prototype.JSC$11889_handleMessage=function(G){if(G.data.type==="rrweb"&&G.origin===G.data.origin&&G.source){var b=this.crossOriginIframeMap.get(G.source);b&&(b=ipz(this,b,G.data.event))&&this.wrappedEmit(b,G.data.isCheckout)}};
var ipz=function(G,b,I){switch(I.type){case 2:G.crossOriginIframeMirror.reset(b);G.crossOriginIframeStyleMirror.reset(b);P3e(G,I.data.node,b);var h=I.data.node.id;G.crossOriginIframeRootIdMap.set(b,h);dCn(G,I.data.node,h);return{timestamp:I.timestamp,type:3,data:{source:0,adds:[{parentId:G.mirror.getId(b),nextId:null,node:I.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return I;case 5:return nY(G,I.data.payload,b,["id","parentId","previousId","nextId"]),I;case 3:switch(I.data.source){case 0:return I.data.adds.forEach(function(q){nY(G,
q,b,["parentId","nextId","previousId"]);P3e(G,q.node,b);var l=G.crossOriginIframeRootIdMap.get(b);l&&dCn(G,q.node,l)}),I.data.removes.forEach(function(q){nY(G,q,b,["parentId",
"id"])}),I.data.attributes.forEach(function(q){nY(G,q,b,["id"])}),I.data.texts.forEach(function(q){nY(G,q,b,["id"])}),I;
case 12:case 6:case 1:return I.data.positions.forEach(function(q){nY(G,q,b,["id"])}),I;
case 7:case 2:case 3:case 9:case 5:return nY(G,I.data,b,["id"]),I;case 8:case 13:return nY(G,I.data,b,["id"]),yJO(G,I.data,b,["styleId"]),I;case 10:return I;case 14:return I.data.ranges.forEach(function(q){nY(G,q,b,["start","end"])}),I;
case 15:return nY(G,I.data,b,["id"]),yJO(G,I.data,b,["styleIds"]),(h=I.data.styles)==null||h.forEach(function(q){yJO(G,q,b,["styleId"])}),I}}return!1};
u4q.prototype.replace=function(G,b,I,h){h=_.e(h);for(var q=h.next();!q.done;q=h.next())if(q=q.value,Array.isArray(b[q])||typeof b[q]==="number")Array.isArray(b[q])?b[q]=G.getIds(I,b[q]):b[q]=G.getId(I,b[q]);return b};
var nY=function(G,b,I,h){G.replace(G.crossOriginIframeMirror,b,I,h)},yJO=function(G,b,I,h){G.replace(G.crossOriginIframeStyleMirror,b,I,h)},P3e=function(G,b,I){nY(G,b,I,["id",
"rootId"]);"childNodes"in b&&b.childNodes.forEach(function(h){P3e(G,h,I)})},dCn=function(G,b,I){b.type===0||b.rootId||(b.rootId=I);
"childNodes"in b&&b.childNodes.forEach(function(h){dCn(G,h,I)})};var DR2=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},rJA=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.m=rJA.prototype;_.m.getId=function(G){var b;return(b=this.styleIDMap.get(G))!=null?b:-1};
_.m.has=function(G){return this.styleIDMap.has(G)};
_.m.add=function(G,b){if(this.has(G))return this.getId(G);b=b===void 0?this.id++:b;this.styleIDMap.set(G,b);this.idStyleMap.set(b,G);return b};
_.m.getStyle=function(G){return this.idStyleMap.get(G)||null};
_.m.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.m.generateId=function(){return this.id++};var FIe=function(){this.length=0;this.tail=this.head=null};
FIe.prototype.get=function(G){if(G>=this.length)throw Error("Ze");for(var b=this.head,I=0;I<G;I++){var h=void 0;b=((h=b)==null?void 0:h.next)||null}return b};
var Hp5=function(G,b){var I={value:b,previous:null,next:null};b.__ln=I;if(b.previousSibling&&"__ln"in b.previousSibling){var h=b.previousSibling.__ln.next;I.next=h;I.previous=b.previousSibling.__ln;b.previousSibling.__ln.next=I;h&&(h.previous=I)}else b.nextSibling&&"__ln"in b.nextSibling&&b.nextSibling.__ln.previous?(h=b.nextSibling.__ln.previous,I.previous=h,I.next=b.nextSibling.__ln,b.nextSibling.__ln.previous=I,h&&(h.next=I)):(G.head&&(G.head.previous=I),I.next=G.head,G.head=I);I.next===null&&
(G.tail=I);G.length++};
FIe.prototype.removeNode=function(G){var b=G.__ln;this.head&&(b.previous?(b.previous.next=b.next)?b.next.previous=b.previous:this.tail=b.previous:(this.head=b.next)?this.head.previous=null:this.tail=null,G.__ln&&delete G.__ln,this.length--)};
var WIW=function(G,b){return G+"@"+b},egr=function(){var G=this;
this.locked=this.JSC$11920_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(b){b.forEach(G.JSC$11920_processMutation);G.emit()};
this.emit=function(){if(!G.JSC$11920_frozen&&!G.locked){for(var b=[],I=new Set,h=new FIe,q=function(f){for(var T=-2;T===-2;)T=(f=f&&f.nextSibling)&&G.mirror.getId(f);return T},l=function(f){var T=aL(f);
if(T&&Icd(f)){var B=!1;if(f.nodeType===Node.TEXT_NODE){var A=T.tagName;if(A==="TEXTAREA")return;A==="STYLE"&&G.addedSet.has(T)&&(B=!0)}T=Hh(T)?G.mirror.getId(bEr(f)):G.mirror.getId(T);A=q(f);if(T===-1||A===-1)return Hp5(h,f);if(B=KJ(f,{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(t){t.nodeName==="IFRAME"&&G.mirror.nodeMetaMap.get(t)&&Ems(G.iframeManager,t);$Rd(t,G.mirror)&&p0q(G.stylesheetManager,t);f&&FI(f)&&S$O(G.shadowDomManager,FI(f),G.doc)},
onIframeLoad:function(t,y){X0O(G.iframeManager,t,y);t.contentWindow&&t.contentDocument&&$3s(G.shadowDomManager,t.contentWindow.Element,t.contentDocument)},
onStylesheetLoad:function(t,y){Gkr(G.stylesheetManager,t,y)},
cssCaptured:B}))b.push({parentId:T,nextId:A,node:B}),I.add(B.id)}};G.mapRemoves.length;)tRA(G.mirror,G.mapRemoves.shift());
for(var V=_.e(G.movedSet),D=V.next();!D.done;D=V.next())D=D.value,jvB(G.removesSubTreeCache,D)&&!G.movedSet.has(aL(D))||l(D);V=_.e(G.addedSet);for(D=V.next();!D.done;D=V.next())D=D.value,mRX(G.droppedSet,D)||jvB(G.removesSubTreeCache,D)?mRX(G.movedSet,D)?l(D):G.droppedSet.add(D):l(D);for(D=null;h.length;){V=null;if(D){var k=G.mirror.getId(aL(D.value)),L=q(D.value);k!==-1&&L!==-1&&(V=D)}if(!V)for(D=h.tail;D;){var x=D;D=D.previous;if(x&&(k=G.mirror.getId(aL(x.value)),q(x.value)!==-1))if(k!==-1){V=x;
break}else if((k=aL(x.value))&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(k=r2(k),G.mirror.getId(k)!==-1)){V=x;break}}if(!V){for(;h.head;)h.removeNode(h.head.value);break}D=V.previous;h.removeNode(V.value);l(V.value)}l={texts:G.texts.map(function(f){var T=f.node,B=aL(T);B&&B.tagName==="TEXTAREA"&&G.genTextAreaValueMutation(B);return{id:G.mirror.getId(T),value:f.value}}).filter(function(f){return!I.has(f.id)}).filter(function(f){return G.mirror.has(f.id)}),
attributes:G.attributes.map(function(f){var T=f.attributes;if(typeof T.style==="string"){var B=JSON.stringify(f.styleDiff),A=JSON.stringify(f._unchangedStyles);B.length<T.style.length&&(B+A).split("var(").length===T.style.split("var(").length&&(T.style=f.styleDiff)}return{id:G.mirror.getId(f.node),attributes:T}}).filter(function(f){return!I.has(f.id)}).filter(function(f){return G.mirror.has(f.id)}),
removes:G.removes,adds:b};if(l.texts.length||l.attributes.length||l.removes.length||l.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(l)}};
this.genTextAreaValueMutation=function(b){var I=G.attributeMap.get(b);I||(I={node:b,attributes:{},styleDiff:{},_unchangedStyles:{}},G.attributes.push(I),G.attributeMap.set(b,I));var h=Array.from(Nh(b),function(q){return YnB(q)||""}).join("");
I.attributes.value=cKB({element:b,maskInputOptions:G.maskInputOptions,tagName:b.tagName,type:v1p(b),value:h,maskInputFn:G.maskInputFn})};
this.JSC$11920_processMutation=function(b){if(!pZj(b.target,G.mirror,G.slimDOMOptions))switch(b.type){case "characterData":var I=YnB(b.target);Oi(b.target,G.blockClass,G.blockSelector,!1)||I===b.oldValue||G.texts.push({value:H4O(b.target,G.maskTextClass,G.maskTextSelector,!0)&&I?G.maskTextFn?G.maskTextFn(I,E1u(b.target)):I.replace(/[\S]/g,"*"):I,node:b.target});break;case "attributes":I=b.target;var h=b.attributeName,q=b.target.getAttribute(h);if(h==="value"){var l=v1p(I);q=cKB({element:I,maskInputOptions:G.maskInputOptions,
tagName:I.tagName,type:l,value:q,maskInputFn:G.maskInputFn})}if(Oi(b.target,G.blockClass,G.blockSelector,!1)||q===b.oldValue)break;l=G.attributeMap.get(b.target);if(I.tagName==="IFRAME"&&h==="src"&&!G.keepIframeSrcFn(q))if(I.contentDocument)break;else h="rr_src";l||(l={node:b.target,attributes:{},styleDiff:{},_unchangedStyles:{}},G.attributes.push(l),G.attributeMap.set(b.target,l));h==="type"&&I.tagName==="INPUT"&&(b.oldValue||"").toLowerCase()==="password"&&I.setAttribute("data-rr-is-password","true");
if(!yKO(I.tagName,h))if(l.attributes[h]=dLd(G.doc,I.tagName.toLowerCase(),h.toLowerCase(),q),h==="style"){if(!G.unattachedDoc)try{G.unattachedDoc=document.implementation.createHTMLDocument()}catch(L){G.unattachedDoc=G.doc}h=G.unattachedDoc.createElement("span");b.oldValue&&h.setAttribute("style",b.oldValue);q=_.e(Array.from(I.style));for(var V=q.next();!V.done;V=q.next()){V=V.value;var D=I.style.getPropertyValue(V),k=I.style.getPropertyPriority(V);D!==h.style.getPropertyValue(V)||k!==h.style.getPropertyPriority(V)?
l.styleDiff[V]=k===""?D:[D,k]:l._unchangedStyles[V]=[D,k]}h=_.e(Array.from(h.style));for(q=h.next();!q.done;q=h.next())q=q.value,I.style.getPropertyValue(q)===""&&(l.styleDiff[q]=!1)}else h==="open"&&I.tagName==="DIALOG"&&(I.matches("dialog:modal")?l.attributes.rr_open_mode="modal":l.attributes.rr_open_mode="non-modal");break;case "childList":Oi(b.target,G.blockClass,G.blockSelector,!0)||(b.target.tagName==="TEXTAREA"?G.genTextAreaValueMutation(b.target):(b.addedNodes.forEach(function(L){return G.genAdds(L,
b.target)}),b.removedNodes.forEach(function(L){var x=G.mirror.getId(L),f=Hh(b.target)?G.mirror.getId(r2(b.target)):G.mirror.getId(b.target);
Oi(b.target,G.blockClass,G.blockSelector,!1)||pZj(L,G.mirror,G.slimDOMOptions)||G.mirror.getId(L)===-1||(G.addedSet.has(L)?(hgp(G.addedSet,L),G.droppedSet.add(L)):G.addedSet.has(b.target)&&x===-1||Snu(b.target,G.mirror)||(G.movedSet.has(L)&&G.movedMap[x+"@"+f]?hgp(G.movedSet,L):(G.removes.push({parentId:f,id:x,isShadow:Hh(b.target)&&Wh(b.target)?!0:void 0}),q$a(L,G.removesSubTreeCache))),G.mapRemoves.push(L))})))}};
this.genAdds=function(b,I){if(!auB(G.processedNodeManager,b,G)&&!G.addedSet.has(b)&&!G.movedSet.has(b)){if(G.mirror.nodeMetaMap.has(b)){if(pZj(b,G.mirror,G.slimDOMOptions))return;G.movedSet.add(b);var h=null;I&&G.mirror.nodeMetaMap.has(I)&&(h=G.mirror.getId(I));h&&h!==-1&&(G.movedMap[WIW(G.mirror.getId(b),h)]=!0)}else G.addedSet.add(b),G.droppedSet.delete(b);Oi(b,G.blockClass,G.blockSelector,!1)||(Nh(b).forEach(function(q){return G.genAdds(q)}),b&&FI(b)&&Nh(FI(b)).forEach(function(q){G.processedNodeManager.add(q,
G);
G.genAdds(q,b)}))}}};
_.m=egr.prototype;_.m.init=function(G){var b=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){b[I]=G[I]})};
_.m.freeze=function(){this.JSC$11920_frozen=!0;this.canvasManager.freeze()};
_.m.unfreeze=function(){this.JSC$11920_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.m.isFrozen=function(){return this.JSC$11920_frozen};
_.m.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.m.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.m.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var Ei=[],$c=window.Proxy,xRp=["INPUT","TEXTAREA","SELECT"],fcO=new WeakMap;var NUB=new Map,HEu=function(G,b,I){if(G&&(FQq(G,b)||typeof G==="object")){b=G.constructor.name;var h=NUB.get(I);h||(h=new Map,NUB.set(I,h));h.has(b)||h.set(b,[]);I=h.get(b);b=I.indexOf(G);b===-1&&(b=I.length,I.push(G));return b}},WQr=function(G,b,I){return G.map(function(h){return r$s(h,b,I)})},FQq=function(G,b){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(I){return typeof b[I]===
"function"}).find(function(I){return G instanceof b[I]})};var Y5X=HP(["\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"]),
KnO=_.qz(Y5X.join(""));var OEX=function(G){var b=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$11962_frozen=!1;this.JSC$11962_processMutation=function(k,L){if(b.rafStamps.invokeId&&b.rafStamps.latestId!==b.rafStamps.invokeId||!b.rafStamps.invokeId)b.rafStamps.invokeId=b.rafStamps.latestId;b.pendingCanvasMutations.has(k)||b.pendingCanvasMutations.set(k,[]);b.pendingCanvasMutations.get(k).push(L)};
var I=G.sampling===void 0?"all":G.sampling,h=G.win,q=G.blockClass,l=G.blockSelector,V=G.recordCanvas,D=G.dataURLOptions;this.mutationCb=G.mutationCb;this.mirror=G.mirror;V&&I==="all"&&C3z(this,h,q,l);V&&typeof I==="number"&&JJe(this,I,h,q,l,{dataURLOptions:D})};
_.m=OEX.prototype;_.m.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.m.freeze=function(){this.JSC$11962_frozen=!0};
_.m.unfreeze=function(){this.JSC$11962_frozen=!1};
_.m.lock=function(){this.locked=!0};
_.m.unlock=function(){this.locked=!1};
var JJe=function(G,b,I,h,q,l){var V=NuO(I,h,q,!0),D=new Map,k=fJv(u0O());k.onmessage=function(A){var t=A.data.id;D.set(t,!1);"base64"in A.data&&(A=A.data,G.mutationCb({id:t,type:Gg["2D"],commands:[{property:"clearRect",args:[0,0,A.width,A.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:A.base64}],type:A.type}]},0,0]}]}))};
var L=1E3/b,x=0,f=function(){var A=[];I.document.querySelectorAll("canvas").forEach(function(t){Oi(t,h,q,!0)||A.push(t)});
return A},T=function(A){x&&A-x<L||(x=A,f().forEach(function(t){var y,F,W,O,K;
return _.c(function(u){if(u.nextAddress==1){y=G.mirror.getId(t);if(D.get(y)||t.width===0||t.height===0)return u.return();D.set(y,!0);["webgl","webgl2"].includes(t.__context)&&(F=t.getContext(t.__context),((W=F)==null?void 0:(O=W.getContextAttributes())==null?void 0:O.preserveDrawingBuffer)===!1&&F.clear(F.COLOR_BUFFER_BIT));return u.yield(createImageBitmap(t),2)}K=u.yieldResult;k.postMessage({id:y,bitmap:K,width:t.width,height:t.height,dataURLOptions:l.dataURLOptions},[K]);_.ip(u)})}));
B=requestAnimationFrame(T)};
var B=requestAnimationFrame(T);G.resetObservers=function(){V();cancelAnimationFrame(B)}},C3z=function(G,b,I,h){KIe(G);
ucn(G);var q=NuO(b,I,h,!1),l=acO(G.JSC$11962_processMutation.bind(G),b,I,h),V=CWd(G.JSC$11962_processMutation.bind(G),b,I,h);G.resetObservers=function(){q();l();V()}},ucn=function(G){requestAnimationFrame(function(){return Rbn(G)})},KIe=function(G){var b=function(I){G.rafStamps.latestId=I;
requestAnimationFrame(b)};
requestAnimationFrame(b)},Rbn=function(G){G.pendingCanvasMutations.forEach(function(b,I){var h=G.mirror.getId(I);
nYn(G,I,h)});
requestAnimationFrame(function(){return Rbn(G)})},nYn=function(G,b,I){if(!G.JSC$11962_frozen&&!G.locked){var h=G.pendingCanvasMutations.get(b);
if(h&&I!==-1){var q=h.map(function(l){l=Object.assign({},l);return delete l.type,l});
G.mutationCb({id:I,type:h[0].type,commands:q});G.pendingCanvasMutations.delete(b)}}};var Rgv=function(){this.nodeMap=new WeakMap;this.active=!1},auB=function(G,b,I){return(G=G.nodeMap.get(b))&&Array.from(G).some(function(h){return h!==I})};
Rgv.prototype.add=function(G,b){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(b))};
Rgv.prototype.destroy=function(){};var w0q=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()};
w0q.prototype.init=function(){this.reset();$3s(this,Element,document)};
var S$O=function(G,b,I){if(Wh(b)&&!G.shadowDoms.has(b)){G.shadowDoms.add(b);var h=VPv(Object.assign({},G.bypassOptions,{doc:I,mutationCb:G.mutationCb,mirror:G.mirror,shadowDomManager:G}),b);G.restoreHandlers.push(function(){return h.disconnect()});
G.restoreHandlers.push(vmd(Object.assign({},G.bypassOptions,{scrollCb:G.scrollCb,doc:b,mirror:G.mirror})));setTimeout(function(){b.adoptedStyleSheets&&b.adoptedStyleSheets.length>0&&A$r(G.bypassOptions.stylesheetManager,b.adoptedStyleSheets,G.mirror.getId(r2(b)));G.restoreHandlers.push(MPj({mirror:G.mirror,stylesheetManager:G.bypassOptions.stylesheetManager},b))},0)}},$3s=function(G,b,I){G.restoreHandlers.push(yR(b.prototype,"attachShadow",function(h){return function(q){q=h.call(this,q);
var l=FI(this);l&&Icd(this)&&S$O(G,l,I);return q}}))};
w0q.prototype.reset=function(){this.restoreHandlers.forEach(function(G){try{G()}catch(b){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var KQa=function(G){this.trackedLinkElements=new WeakSet;this.styleMirror=new rJA;this.mutationCb=G.mutationCb;this.adoptedStyleSheetCb=G.adoptedStyleSheetCb},Gkr=function(G,b,I){"_cssText"in I.attributes&&G.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:I.id,attributes:I.attributes}]});p0q(G,b)},p0q=function(G,b){G.trackedLinkElements.has(b)||G.trackedLinkElements.add(b)},A$r=function(G,b,I){if(b.length!==0){I={id:I,
styleIds:[]};var h=[];b=_.e(b);for(var q=b.next(),l={};!q.done;l={sheet$jscomp$3:void 0},q=b.next())l.sheet$jscomp$3=q.value,q=void 0,G.styleMirror.has(l.sheet$jscomp$3)?q=G.styleMirror.getId(l.sheet$jscomp$3):(q=G.styleMirror.add(l.sheet$jscomp$3),h.push({styleId:q,rules:Array.from(l.sheet$jscomp$3.rules||CSSRule,function(V){return function(D,k){return{rule:eR2(D,V.sheet$jscomp$3.href),index:k}}}(l))})),I.styleIds.push(q);
h.length>0&&(I.styles=h);G.adoptedStyleSheetCb(I)}};
KQa.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var h_,J$v,nmO;try{if(Array.from([1],function(G){return G*2})[0]!==2){var Op8=document.createElement("iframe");
document.body.appendChild(Op8);var w8n;Array.from=((w8n=Op8.contentWindow)==null?void 0:w8n.Array.from)||Array.from;document.body.removeChild(Op8)}}catch(G){console.debug("Unable to override Array.from",G)}var I3=new u4;var D3r="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(" "),V0v={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},elu=null,hld=null;var cus={},kkj=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 BYr={text:1},Qwr={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var EYe=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,p8u={CONSTANT:{isUnwrappable:function(G){return G instanceof OY},
unwrap:vpi},JAVASCRIPT:{isUnwrappable:function(G){return G instanceof _.hj},
unwrap:jc},HTML:{isUnwrappable:function(G){return G instanceof wd},
unwrap:function(G){return Xa(G)}},
RESOURCE_URL:{isUnwrappable:function(G){return G instanceof il},
unwrap:_.yM},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 Wg(G)},
unwrap:_.aI}},S5b={CONSTANT:U3O,JAVASCRIPT:U3O,HTML:function(G){G=G instanceof wd?G:Ev(String(G).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Xa(G)},
RESOURCE_URL:U3O,STRING:String,STYLE:U3O,URL:function(G,b){G=EYe.test(G)?G:void 0;return G===void 0?b:G}};var d3u=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,swr=/[\t\n\f\r ]+/,Aup=/[\t\n\f\r ,]+/g,Z6u=function(G,b,I){return I},mL={},X8b=function(){var G=function(){var h={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",h):h}(),b=G.createHTML(""),I=G.createScript("");
G=G.createScriptURL("");return{INNOCUOUS_STRING:b,INNOCUOUS_SCRIPT:I,INNOCUOUS_URL:G}}(),lU=X8b.INNOCUOUS_STRING,POO=X8b.INNOCUOUS_SCRIPT,i6O=X8b.INNOCUOUS_URL;var $wi=function(G){var b=yud(G);return function(I,h,q,l){return l?b(l,h,q,I):lU}}({reportHandler:function(G,b){if(G)try{throw Error(b);
}catch(I){_.K1(I)}},
safeTypesBridge:function(G,b,I){var h=p8u[b];return h.isUnwrappable(G)&&(h=h.unwrap(G,I),h!==I)?h:(0,S5b[b])(String(G),I)},
allowedIdentifierPrefixes:[""]});if(ra!==void 0)throw Error("af");ra=$wi;if(ra!==$wi)throw Error("bf");eu("Injectable",[]);var jz2=eu("Inject",[["token",void 0]]),mHr=eu("Optional",[]);eu("Injectable",[]);var eav=eu("Self",[]),VMs=eu("SkipSelf",[]);eu("Host",[]);var GwB={},bfn=function(){};
bfn.prototype.resolve=function(){throw Error("df");};
bfn.prototype.addProvider=function(){throw Error("df");};var haj=Function;var IIA=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,hwu=function(){this._reflect=window.Reflect};
_.m=hwu.prototype;_.m.factory=function(G){return function(){return new (Function.prototype.bind.apply(G,[null].concat(_.Nz(_.RI.apply(0,arguments)))))}};
_.m._zipTypesAndAnnotations=function(G,b){var I=typeof G==="undefined"?Array(b.length):Array(G.length);for(var h=0;h<I.length;h++)I[h]=typeof G==="undefined"?[]:G[h]!=Object?[G[h]]:[],b&&FMj(b[h])&&(I[h]=I[h].concat(b[h]));return I};
_.m._ownParameters=function(G,b){if(IIA.exec(G.toString()))return null;if(G.parameters&&G.parameters!==b.parameters)return G.parameters;var I=G.ctorParameters;return I&&I!==b.ctorParameters?(b=typeof I==="function"?I():I,G=b.map(function(h){return h&&h.type}),b=b.map(function(h){return h&&WM2(h.decorators)}),this._zipTypesAndAnnotations(G,b)):FMj(this._reflect)&&FMj(this._reflect.getOwnMetadata)&&(b=this._reflect.getOwnMetadata("parameters",G),(I=this._reflect.getOwnMetadata("design:paramtypes",G))||
b)?this._zipTypesAndAnnotations(I,b):Array(G.length).fill(void 0)};
_.m.parameters=function(G){if(!G.prototype)return[];var b=Object.getPrototypeOf(G.prototype).constructor;(G=this._ownParameters(G,b))||b===Object||(G=this.parameters(b));return G||[]};
_.m._ownAnnotations=function(G,b){if(G.annotations&&G.annotations!==b.annotations)return G=G.annotations,typeof G==="function"&&G.annotations&&(G=G.annotations),G;if(G.decorators&&G.decorators!==b.decorators)return WM2(G.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",G)};
_.m.annotations=function(G){var b=Object.getPrototypeOf(G.prototype).constructor;G=this._ownAnnotations(G,b)||[];return(b!==Object?this.annotations(b):[]).concat(G)};
_.m._ownPropMetadata=function(G,b){if(G.propMetadata&&G.propMetadata!==b.propMetadata)return G=G.propMetadata,typeof G==="function"&&G.propMetadata&&(G=G.propMetadata),G;if(G.propDecorators&&G.propDecorators!==b.propDecorators){var I=G.propDecorators,h={};Object.keys(I).forEach(function(q){h[q]=WM2(I[q])});
return h}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",G)};
_.m.propMetadata=function(G){var b=Object.getPrototypeOf(G.prototype).constructor,I={};if(b!==Object){var h=this.propMetadata(b);Object.keys(h).forEach(function(l){I[l]=h[l]})}var q=this._ownPropMetadata(G,b);
q&&Object.keys(q).forEach(function(l){var V=[];I.hasOwnProperty(l)&&V.push.apply(V,_.Nz(I[l]));V.push.apply(V,_.Nz(q[l]));I[l]=V});
return I};
_.m.getter=function(G){return function(b){return b[G]}};
_.m.setter=function(G){return function(b,I){return b[G]=I}};
_.m.method=function(G){return function(b,I){if(!b[G])throw Error("ef`"+G);return b[G].apply(b,I)}};var qpn=function(){};var jen=function(G){this.reflectionCapabilities=G};
_.M(jen,qpn);_.m=jen.prototype;_.m.factory=function(G){return this.reflectionCapabilities.factory(G)};
_.m.parameters=function(G){return this.reflectionCapabilities.parameters(G)};
_.m.annotations=function(G){return this.reflectionCapabilities.annotations(G)};
_.m.propMetadata=function(G){return this.reflectionCapabilities.propMetadata(G)};
_.m.getter=function(G){return this.reflectionCapabilities.getter(G)};
_.m.setter=function(G){return this.reflectionCapabilities.setter(G)};
_.m.method=function(G){return this.reflectionCapabilities.method(G)};var nlr=new jen(new hwu);var OK=function(G,b){this.token=G;this.id=b;if(G===void 0||G===null)throw Error("kf");};
_.kV.Object.defineProperties(OK.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return Vf(this.token)}}});
_.kV.Object.defineProperties(OK,{JSC$12018_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return cq.JSC$12022_numberOfKeys}}});
var lIA=function(){this._allKeys=new Map};
lIA.prototype.get=function(G){if(G instanceof OK)return G;if(this._allKeys.has(G))return this._allKeys.get(G);var b=new OK(G,OK.JSC$12018_numberOfKeys);this._allKeys.set(G,b);return b};
_.kV.Object.defineProperties(lIA.prototype,{JSC$12022_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var cq=new lIA;var DHO=function(G,b,I){this.key=G;this.optional=b;this.visibility=I},woX=function(G){return new DHO(G,!1,null)},por=[],$HO=function(G,b,I){this.key=G;
this.resolvedFactories=b;this.multiProvider=I},SaB=function(G,b,I,h){this.factory=G;
this.dependencies=b;this.providerClass=I;this.providerValue=h};var wr={},EK=function(G,b){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=b===void 0?null:b;G=_.e(G);for(b=G.next();!b.done;b=G.next())this.addProvider(b.value)};
_.m=EK.prototype;_.m.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(wr)};
_.m.resolve=function(G,b){b=b===void 0?GwB:b;return this._getByKey(cq.get(DP(G)),null,b)};
_.m._new=function(G){if(this.constructedKeyIds[G.key.id])throw KMj(this,G.key);this.constructedKeyIds[G.key.id]=!0;return this._instantiateProvider(G)};
_.m._instantiateProvider=function(G){if(G.multiProvider){for(var b=Array(G.resolvedFactories.length),I=0;I<G.resolvedFactories.length;++I)b[I]=this._instantiate(G,G.resolvedFactories[I]);return b}return this._instantiate(G,G.resolvedFactories[0])};
_.m._instantiate=function(G,b){var I=this,h=b.factory;try{var q=b.dependencies.map(function(V){return I._getByReflectiveDependency(V)})}catch(V){throw V.addKey&&V.addKey(this,G.key),V;
}try{var l=h.apply(null,_.Nz(q))}catch(V){throw uzs(this,V,G.key);}return l};
_.m._getByReflectiveDependency=function(G){return this._getByKey(G.key,G.visibility,G.optional?null:GwB)};
_.m._getByKey=function(G,b,I){return G===mwz?this:b instanceof eav?this._getByKeySelf(G,I):this._getByKeyDefault(G,I,b)};
_.m._getObjByKeyId=function(G){for(var b=0;b<this.keyIds.length;b++)if(this.keyIds[b]===G)return this.objs[b]===wr&&(this.objs[b]=this._new(this.providers[b])),this.objs[b];return wr};
_.m._throwOrNull=function(G,b){if(b!==GwB)return b;throw Jus(this,G);};
_.m._getByKeySelf=function(G,b){var I=this._getObjByKeyId(G.id);return I!==wr?I:this._throwOrNull(G,b)};
_.m._getByKeyDefault=function(G,b,I){for(var h=I=I instanceof VMs?this.parent:this;I instanceof EK;){var q=I._getObjByKeyId(G.id);if(q!==wr)return q;I=I.parent}q=void 0;if(I!==null)try{var l=I.resolve(G.token,b);if(l!==wr)return l}catch(V){q=V}if(!(h instanceof EK&&kSu(G.token))){if(q)throw q;return this._throwOrNull(G,b)}for(l=h;l.parent instanceof EK;)l=l.parent;l.addProvider(GSj({provide:G.token,useClass:G.token}));return l.resolve(G.token,b)};
_.m.toString=function(){return this.displayName};
_.kV.Object.defineProperties(EK.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+cw2(this,function(G){return' "'+G.key.displayName+'" '}).join(", ")+"])"}}});
var mwz=cq.get(DP(bfn));(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 ewQ=globalThis.XRegExp;var VEb=-1,DwB=function(G){addEventListener("pageshow",function(b){b.persisted&&(VEb=b.timeStamp,G(b))},!0)};var kwu=function(G,b,I){var h=c8O,q,l;return function(V){if(b.value>=0&&(V||I)){var D;if((l=b.value-((D=q)!=null?D:0))||q===void 0)q=b.value,b.delta=l,V=b.value,b.rating=V>h[1]?"poor":V>h[0]?"needs-improvement":"good",G(b)}}};var v4n=function(G){requestAnimationFrame(function(){return requestAnimationFrame(function(){return G()})})};var LeB=function(){var G=performance.getEntriesByType("navigation")[0];if(G&&G.responseStart>0&&G.responseStart<performance.now())return G};var Qe8=function(){var G,b;return(b=(G=LeB())==null?void 0:G.activationStart)!=null?b:0};var pY=-1,xwb=new Set,fIQ=function(G){if(document.visibilityState==="hidden"){if(G.type==="visibilitychange")for(var b=_.e(xwb),I=b.next();!I.done;I=b.next())I=I.value,I();isFinite(pY)||(pY=G.type==="visibilitychange"?G.timeStamp:0,removeEventListener("prerenderingchange",fIQ,!0))}},Tt5=function(){if(pY<0){var G=Qe8(),b,I;
pY=(I=document.prerendering?void 0:(b=globalThis.performance.getEntriesByType("visibility-state").filter(function(h){return h.name==="hidden"&&h.startTime>G})[0])==null?void 0:b.startTime)!=null?I:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",fIQ,!0);addEventListener("prerenderingchange",fIQ,!0);DwB(function(){setTimeout(function(){pY=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return pY},
onHidden:function(h){xwb.add(h)}}};var Bt8=function(){var G=G===void 0?-1:G;var b=LeB(),I="navigate";VEb>=0?I="back-forward-cache":b&&(document.prerendering||Qe8()>0?I="prerender":document.wasDiscarded?I="restore":b.type&&(I=b.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 L8a=new WeakMap;var UwA=function(G){var b=b===void 0?{}:b;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var I=new PerformanceObserver(function(h){Promise.resolve().then(function(){G(h.getEntries())})});
I.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},b));return I}}catch(h){}};var see=function(G){var b=!1;return function(){b||(G(),b=!0)}};var g4i=function(G){document.prerendering?addEventListener("prerenderingchange",function(){return G()},!0):G()};var A8B=function(G){var b=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?G():(G=see(G),addEventListener("visibilitychange",G,{once:!0,capture:!0}),b(function(){G();removeEventListener("visibilitychange",G,{capture:!0})}))};var vjj=function(){};
vjj.prototype._processEntry=function(G){var b;(b=this._onBeforeProcessingEntry)==null||b.call(this,G)};var c8O=[2500,4E3],L_r=function(G){var b=b===void 0?{}:b;g4i(function(){var I=Tt5(),h=Bt8(),q=Qzr(b),l=function(T){b.reportAllChanges||(T=T.slice(-1));T=_.e(T);for(var B=T.next();!B.done;B=T.next())B=B.value,q._processEntry(B),B.startTime<I.firstHiddenTime&&(h.value=Math.max(B.startTime-Qe8(),0),h.entries=[B],D())},V=UwA(l);
if(V){var D=kwu(G,h,b.reportAllChanges);for(var k=see(function(){l(V.takeRecords());V.disconnect();D(!0)}),L=function(T){T.isTrusted&&(A8B(k),removeEventListener(T.type,L,{capture:!0}))},x=_.e(["keydown",
"click","visibilitychange"]),f=x.next();!f.done;f=x.next())addEventListener(f.value,L,{capture:!0});DwB(function(T){h=Bt8();D=kwu(G,h,b.reportAllChanges);v4n(function(){h.value=performance.now()-T.timeStamp;D(!0)})})}})};var MEu;var Zfu;_.E=function(){return Zfu!==void 0?Zfu:Zfu=document.createElement("template")};
document.head.appendChild(_.E().content);var tEn;_.fn({_template:function(){if(tEn!==void 0)return tEn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-toolbar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_toolbar.tp.yt.app.toolbar.css.js--\x3e<slot class="style-scope tp-yt-app-toolbar"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var b=G.content,I=b.insertBefore;MEu===void 0&&(MEu=document.createElement("template"));var h=MEu;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return tEn=G},
is:"tp-yt-app-toolbar"});var zwW;var o4O;_.Sb=function(){};
_.Sb=_.fn({_template:function(){if(o4O!==void 0)return o4O;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-a11y-announcer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_a11y_announcer.tp.yt.iron.a11y.announcer.css.js--\x3e<div aria-live$="[[mode]]" class="style-scope tp-yt-iron-a11y-announcer">[[_text]]</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;zwW===void 0&&(zwW=document.createElement("template"));var h=zwW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return o4O=G},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Sb.instance||(_.Sb.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)}});
_.Sb.instance=null;_.Sb.requestAvailability=function(){_.Sb.instance||(_.Sb.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Sb.instance):document.addEventListener("load",function(){document.body.appendChild(_.Sb.instance)})};var ifn;var P0Q;/*

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
*/
_.fn({_template:function(){if(P0Q!==void 0)return P0Q;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;ifn===void 0&&(ifn=document.createElement("template"));var h=ifn;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return P0Q=G},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.au,_.dr],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=_.au.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 b=this.textarea;b&&(b.value!==G&&(b.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 b=_.kc(G).path;this.value=b?b[0].value:G.target.value},
_constrain:function(G){var b;G=G||[""];for(b=this.maxRows>0&&G.length>this.maxRows?G.slice(0,this.maxRows):G.slice(0);this.rows>0&&b.length<this.rows;)b.push("");return b.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 dwQ;var y8u;_.fn({_template:function(){if(y8u!==void 0)return y8u;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var b=G.content,I=b.insertBefore;dwQ===void 0&&(dwQ=document.createElement("template"));var h=dwQ;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return y8u=G},
is:"tp-yt-iron-collapse",behaviors:[_.Y6],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,b){G=G==="auto"?"":G;b=b&&!this.noAnimation&&this.isAttached&&this._desiredSize!==G;this._desiredSize=G;this._updateTransition(!1);b&&(b=this._calcSize(),G===""&&(this.style[this._dimensionMax]="",G=this._calcSize()),this.style[this._dimensionMax]=b,this.scrollTop=this.scrollTop,this._updateTransition(!0),b=G!==b);this.style[this._dimensionMax]=G;b||this._transitionEnd()},
enableTransition:function(G){_.Pn._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){_.kc(G).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var r8Q;var Fen;var Hfn=void 0,Wee={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}},get _defaultPositionTarget(){var G,b=_.kc((G=this.hostElement)!=null?G:
this).parentNode;b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b=b.host);return b},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,b=window.getComputedStyle((G=this.hostElement)!=null?G:this);G=window.getComputedStyle(this.sizingTarget);var I,h,q;this._fitInfo={inlineStyle:{top:((I=this.hostElement)!=null?I:this).style.top||"",left:((h=this.hostElement)!=null?h:this).style.left||"",position:((q=this.hostElement)!=null?q:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:b.top!=="auto"?"top":b.bottom!=="auto"?"bottom":null,horizontally:b.left!=="auto"?"left":b.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(b.marginTop,10)||0,right:parseInt(b.marginRight,10)||0,bottom:parseInt(b.marginBottom,10)||0,left:parseInt(b.marginLeft,10)||0}}}},
resetFit:function(){var G=this._fitInfo||{},b;for(b in G.sizerInlineStyle)this.sizingTarget.style[b]=G.sizerInlineStyle[b];for(b in G.inlineStyle){var I=void 0;((I=this.hostElement)!=null?I:this).style[b]=G.inlineStyle[b]}this._fitInfo=null},
refit:function(){var G=this.sizingTarget.scrollLeft,b=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=G;this.sizingTarget.scrollTop=b},
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 b;((b=this.hostElement)!=null?b:this).style.left="0px";var I;((I=this.hostElement)!=null?I:this).style.top="0px";var h,q=((h=this.hostElement)!=null?h:this).getBoundingClientRect();b=this.__getNormalizedRect(this.positionTarget);h=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(h={left:h.left+24,right:h.right-24,top:h.top+24,bottom:h.bottom-24});if(this.expandSizingTargetForScrollbars){var l=this.sizingTarget.offsetWidth;var V=this.sizingTarget.offsetHeight;var D=this.sizingTarget.clientWidth;var k=this.sizingTarget.clientHeight}G=this._fitInfo.margin;b=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:q.width+G.left+G.right,height:q.height+G.top+G.bottom},q,b,h);var L=b.left+G.left,x=b.top+G.top;I=Math.min(h.right-G.right,L+q.width);var f=Math.min(h.bottom-
G.bottom,x+q.height);L=Math.max(h.left+G.left,Math.min(L,I-this._fitInfo.sizedBy.minWidth));x=Math.max(h.top+G.top,Math.min(x,f-this._fitInfo.sizedBy.minHeight));I=Math.max(I-L,this._fitInfo.sizedBy.minWidth);f=Math.max(f-x,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=I+"px";this.sizingTarget.style.maxHeight=f+"px";L-=q.left;q=x-q.top;var T;((T=this.hostElement)!=null?T:this).style.left=L+"px";var B;((B=this.hostElement)!=null?B:this).style.top=q+"px";if(this.expandSizingTargetForScrollbars){T=
this.sizingTarget.offsetHeight;V=T-this.sizingTarget.clientHeight-(V-k);if(V>0){this.sizingTarget.style.maxHeight=Math.min(h.height-G.top-G.bottom,f+V)+"px";V=this.sizingTarget.offsetHeight;k=V-T;var A;b.verticalAlign==="top"?A=q:b.verticalAlign==="middle"?A=q-k/2:b.verticalAlign==="bottom"&&(A=q-k);A=Math.max(h.top+G.top,Math.min(A,h.bottom-G.bottom-V));var t;((t=this.hostElement)!=null?t:this).style.top=A+"px"}A=this.sizingTarget.offsetWidth;l=A-this.sizingTarget.clientWidth-(l-D);if(l>0){Hfn!==
void 0?D=Hfn:(D=document.createElement("div"),Object.assign(D.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),t=document.createElement("div"),t.style.width="200px",t.style.height="200px",D.appendChild(t),document.body.appendChild(D),Hfn=Math.abs(D.offsetWidth-100)>1?D.offsetWidth-D.clientWidth:0,document.body.removeChild(D),D=Hfn);this.sizingTarget.style.maxWidth=Math.min(h.width-G.left-G.right,I+l-D)+"px";l=this.sizingTarget.offsetWidth+D;D=l-A;var y;
b.horizontalAlign==="left"?y=L:b.horizontalAlign==="center"?y=L-D/2:b.horizontalAlign==="right"&&(y=L-D);y=Math.max(h.left+G.left,Math.min(y,h.right-G.right-l));var F;((F=this.hostElement)!=null?F:this).style.left=y+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var G=this._fitInfo;if(!G.positionedBy.vertically){var b;((b=this.hostElement)!=null?b:this).style.position="fixed";var I;((I=this.hostElement)!=null?I:this).style.top="0px"}if(!G.positionedBy.horizontally){var h;((h=this.hostElement)!=null?h:this).style.position="fixed";var q;((q=this.hostElement)!=null?q:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var l;b=((l=this.hostElement)!=null?l:this).getBoundingClientRect();
G.sizedBy.height||this.__sizeDimension(b,G.positionedBy.vertically,"top","bottom","Height");G.sizedBy.width||this.__sizeDimension(b,G.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(G,b,I,h,q){this.__sizeDimension(G,b,I,h,q)},
__sizeDimension:function(G,b,I,h,q){var l=this._fitInfo,V=this.__getNormalizedRect(this.fitInto);V=q==="Width"?V.width:V.height;G=(b=b===h)?V-G[h]:G[I];I=l.margin[b?I:h];h="offset"+q;var D;l=((D=this.hostElement)!=null?D:this)[h]-this.sizingTarget[h];this.sizingTarget.style["max"+q]=V-I-G-l+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var G=this._fitInfo.positionedBy;if(!G.vertically||!G.horizontally){var b;((b=this.hostElement)!=null?b:this).style.position="fixed";if(!G.vertically){var I;((I=this.hostElement)!=null?I:this).style.top="0px"}if(!G.horizontally){var h;((h=this.hostElement)!=null?h:this).style.left="0px"}var q;b=((q=this.hostElement)!=null?q:this).getBoundingClientRect();q=this.__getNormalizedRect(this.fitInto);if(!G.vertically){I=q.top-b.top+(q.height-
b.height)/2;var l;((l=this.hostElement)!=null?l:this).style.top=I+"px"}if(!G.horizontally){G=q.left-b.left+(q.width-b.width)/2;var V;((V=this.hostElement)!=null?V: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,b,I){return Math.abs(Math.min(0,G.top)+Math.min(0,I.bottom-(G.top+b.height)))*b.width+Math.abs(Math.min(0,G.left)+Math.min(0,I.right-(G.left+b.width)))*b.height},
__getPosition:function(G,b,I,h,q,l){var V=[{verticalAlign:"top",horizontalAlign:"left",top:q.top+this.verticalOffset,left:q.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:q.top+this.verticalOffset,left:q.right-I.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:q.bottom-I.height-this.verticalOffset,left:q.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:q.bottom-I.height-this.verticalOffset,left:q.right-I.width-
this.horizontalOffset}];if(this.noOverlap){for(var D=0,k=V.length;D<k;D++){var L={},x;for(x in V[D])L[x]=V[D][x];V.push(L)}V[0].top=V[1].top+=q.height;V[2].top=V[3].top-=q.height;V[4].left=V[6].left+=q.width;V[5].left=V[7].left-=q.width}b=b==="auto"?null:b;G=G==="auto"?null:G;G&&G!=="center"||(V.push({verticalAlign:"top",horizontalAlign:"center",top:q.top+this.verticalOffset+(this.noOverlap?q.height:0),left:q.left-h.width/2+q.width/2+this.horizontalOffset}),V.push({verticalAlign:"bottom",horizontalAlign:"center",
top:q.bottom-I.height-this.verticalOffset-(this.noOverlap?q.height:0),left:q.left-h.width/2+q.width/2+this.horizontalOffset}));b&&b!=="middle"||(V.push({verticalAlign:"middle",horizontalAlign:"left",top:q.top-h.height/2+q.height/2+this.verticalOffset,left:q.left+this.horizontalOffset+(this.noOverlap?q.width:0)}),V.push({verticalAlign:"middle",horizontalAlign:"right",top:q.top-h.height/2+q.height/2+this.verticalOffset,left:q.right-I.width-this.horizontalOffset-(this.noOverlap?q.width:0)}));b==="middle"&&
G==="center"&&V.push({verticalAlign:"middle",horizontalAlign:"center",top:q.top-h.height/2+q.height/2+this.verticalOffset,left:q.left-h.width/2+q.width/2+this.horizontalOffset});for(D=0;D<V.length;D++){h=V[D];q=h.verticalAlign===b;k=h.horizontalAlign===G;if(!this.dynamicAlign&&!this.noOverlap&&q&&k){var f=h;break}L=(!b||q)&&(!G||k);if(this.dynamicAlign||L){h.offscreenArea=this.__getOffscreenArea(h,I,l);if(h.offscreenArea===0&&L){f=h;break}h.alignsOk=q+k;f=f||h;q=h.offscreenArea-f.offscreenArea;if(q<
0||q===0&&h.alignsOk>f.alignsOk)f=h}}return f}};/*

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 XZ,aIX,NtW;XZ=Element.prototype;aIX=XZ.matches||XZ.matchesSelector||XZ.mozMatchesSelector||XZ.msMatchesSelector||XZ.oMatchesSelector||XZ.webkitMatchesSelector;NtW=function(){};
_.C0n=function(G){var b=Ypu,I=[];return b._collectTabbableNodes(G,I)?b._sortByTabIndex(I):I};
_.m=NtW.prototype;_.m.isFocusable=function(G){return aIX.call(G,"input, select, textarea, button, object")?aIX.call(G,":not([disabled])"):aIX.call(G,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.m._normalizedTabIndex=function(G){return this.isFocusable(G)?(G=G.getAttribute("tabindex")||0,Number(G)):-1};
_.m._collectTabbableNodes=function(G,b){if(G.nodeType!==Node.ELEMENT_NODE||!this._isVisible(G))return!1;var I=this._normalizedTabIndex(G),h=I>0;I>=0&&b.push(G);if(G.localName==="content"||G.localName==="slot")I=_.kc(G).getDistributedNodes();else{var q;I=((q=_.kc(G).shadowRoot)!=null?q:_.kc(G.root||G)).children}for(G=0;G<I.length;G++)h=this._collectTabbableNodes(I[G],b)||h;return h};
_.m._isVisible=function(G){var b=G.style;return b.visibility!=="hidden"&&b.display!=="none"?(b=window.getComputedStyle(G),b.visibility!=="hidden"&&b.display!=="none"):!1};
_.m._sortByTabIndex=function(G){var b=G.length;if(b<2)return G;var I=Math.ceil(b/2);b=this._sortByTabIndex(G.slice(0,I));G=this._sortByTabIndex(G.slice(I));return this._mergeSortByTabIndex(b,G)};
_.m._mergeSortByTabIndex=function(G,b){for(var I=[];G.length>0&&b.length>0;)this._hasLowerTabOrder(G[0],b[0])?I.push(b.shift()):I.push(G.shift());return I.concat(G,b)};
_.m._hasLowerTabOrder=function(G,b){G=Math.max(G.tabIndex,0);b=Math.max(b.tabIndex,0);return G===0||b===0?b>G:G>b};
var Ypu=new NtW;var J8i;var Ken;_.fn({_template:function(){if(Ken!==void 0)return Ken;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;J8i===void 0&&(J8i=document.createElement("template"));var h=J8i;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return Ken=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&&_.kc(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.kc(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 $f=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;R1(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)};
$f.prototype._bringOverlayAtIndexToFront=function(G){var b=this._overlays[G];if(b){var I=this._overlays.length-1,h=this._overlays[I];h&&this._shouldBeBehindOverlay(b,h)&&I--;if(!(G>=I)){h=Math.max(this._getZ(_.uii(this)),this._minimumZ);for(this._getZ(b)<=h&&this._applyOverlayZ(b,h);G<I;)this._overlays[G]=this._overlays[G+1],G++;this._overlays[I]=b}}};
$f.prototype.addOverlay=function(G){var b=this._overlays.indexOf(G);if(b>=0)this._bringOverlayAtIndexToFront(b);else{b=this._overlays.length;var I=this._overlays[b-1],h=Math.max(this._getZ(I),this._minimumZ),q=this._getZ(G);I&&this._shouldBeBehindOverlay(G,I)&&(this._applyOverlayZ(I,h),b--,h=Math.max(this._getZ(this._overlays[b-1]),this._minimumZ));q<=h&&this._applyOverlayZ(G,h);this._overlays.splice(b,0,G)}this.trackBackdrop()};
$f.prototype.removeOverlay=function(G){G=this._overlays.indexOf(G);G!==-1&&(this._overlays.splice(G,1),this.trackBackdrop())};
_.uii=function(G){return G._overlays[G._overlays.length-1]};
_.m=$f.prototype;_.m.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()};
_.m._overlayWithBackdrop=function(){for(var G=this._overlays.length-1;G>=0;G--)if(this._overlays[G].withBackdrop)return this._overlays[G]};
_.m._getZ=function(G){var b=this._minimumZ;if(G){var I,h,q=Number(((I=G.hostElement)!=null?I:G).style.zIndex||window.getComputedStyle((h=G.hostElement)!=null?h:G).zIndex);q===q&&(b=q)}return b};
_.m._setZ=function(G,b){var I;((I=G.hostElement)!=null?I:G).style.zIndex=b};
_.m._applyOverlayZ=function(G,b){this._setZ(G,b+2)};
_.m._overlayInPath=function(G){G=G||[];for(var b=0;b<G.length;b++){var I=void 0;if(((I=G[b].polymerController)!=null?I:G[b])._manager===this)return G[b]}};
_.m._onCaptureClick=function(G){var b=this._overlays.length-1;if(b!==-1)for(var I=_.kc(G).path,h,q;(h=this._overlays[b])&&this._overlayInPath(I)!==((q=h.hostElement)!=null?q:h);)if(h._onCaptureClick(G),h.allowClickThrough)b--;else break};
_.m._onCaptureFocus=function(G){var b=_.uii(this);b&&b._onCaptureFocus(G)};
_.m._onCaptureKeyDown=function(G){var b=_.uii(this);b&&(_.PO.keyboardEventMatchesKeys(G,"esc")?b._onCaptureEsc(G):_.PO.keyboardEventMatchesKeys(G,"tab")&&b._onCaptureTab(G))};
_.m._shouldBeBehindOverlay=function(G,b){return!G.alwaysOnTop&&b.alwaysOnTop&&!b.contains(G)};
_.kV.Object.defineProperties($f.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&&_.kc(G.root).activeElement;)G=_.kc(G.root).activeElement;return G}}});
_.GQ=new $f;var xHB=0,fQO=0,TIO=null,BIu=[],vq=["wheel","mousewheel","DOMMouseScroll"],UHB;_.U("web_no_lock_on_touchstart_killswitch")&&(vq.push("touchstart"),vq.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;_.bC={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:_.GQ},_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||_.kc((G=this.hostElement)!=null?G:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var G;return _.C0n((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=_.kc((G=this.hostElement)!=null?G:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var G;_.kc((G=this.hostElement)!=null?G:this).unobserveNodes(this._observer)}this._observer=null;for(var b in this.__rafs)this.__rafs[b]!==null&&cancelAnimationFrame(this.__rafs[b]);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 b;((b=this.hostElement)!=null?b:this).style.display="none"}},
_openedChanged:function(G){if(G){var b;((b=this.hostElement)!=null?b: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 b;((b=this.hostElement)!=null?b: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 b;((b=this.hostElement)!=null?b:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var G,b;((G=this.hostElement)!=null?G:this).style.transition=((b=this.hostElement)!=null?b:this).style.webkitTransition="none";var I,h;((I=this.hostElement)!=null?I:this).style.transform=((h=this.hostElement)!=null?h:this).style.webkitTransform="none";var q;((q=this.hostElement)!=null?q:this).style.display=""},
_finishPositioning:function(){var G;((G=this.hostElement)!=null?G:this).style.display="none";this.scrollTop=this.scrollTop;var b,I;((b=this.hostElement)!=null?b:this).style.transition=((I=this.hostElement)!=null?I:this).style.webkitTransition="";var h,q;((h=this.hostElement)!=null?h:this).style.transform=((q=this.hostElement)!=null?q:this).style.webkitTransform="";var l;((l=this.hostElement)!=null?l: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,b;if(!(b=G===document.body))a:{for(;G;G=G.assignedSlot||G.parentNode||G.host)if(G===this){b=!0;break a}b=!1}b&&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 b=_.kc(G).path;b.indexOf(this)===-1?(G.stopPropagation(),this._applyFocus()):this._focusedChild=b[0]}},
_onCaptureEsc:function(G){this.noCancelOnEscKey||this.cancel(G)},
_onCaptureTab:function(G){if(this.withBackdrop){this.__ensureFirstLastFocusables();var b=G.shiftKey,I=b?this.__firstFocusableNode:this.__lastFocusableNode;b=b?this.__lastFocusableNode:this.__firstFocusableNode;if(I===b)I=!0;else{var h=this._manager.deepActiveElement;I=h===I||h===this}I&&(G.preventDefault(),this._focusedChild=b,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,b){var I=this.__rafs;I[G]!==null&&cancelAnimationFrame(I[G]);I[G]=requestAnimationFrame(function(){I[G]=null;b.call(this)}.bind(this))},
__updateScrollObservers:function(G,b,I){G&&b&&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),UHB=_._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),UHB=_._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($V)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(b){b.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||_.kc(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)}};
_.IV=[Wee,_.Y6,_.bC];_.fn({_template:function(){if(Fen!==void 0)return Fen;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;r8Q===void 0&&(r8Q=document.createElement("template"));var h=r8Q;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return Fen=G},
is:"tp-yt-iron-dropdown",behaviors:[_.dr,_.PO,_.IV,q5e],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=_.kc(this.$.content).getDistributedNodes(),b=0,I=G.length;b<I;b++)if(G[b].nodeType===Node.ELEMENT_NODE)return G[b]},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(),_.bC._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.bC._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.bC._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var G=this.containedElement,b=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),I=0;I<b.length;I++)b[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():_.bC._applyFocus.apply(this,arguments)}});var Rw8;var n4Q;/*

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 OfQ=new _.HO({type:"iconset"});
_.fn({_template:function(){if(n4Q!==void 0)return n4Q;var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;Rw8===void 0&&(Rw8=document.createElement("template"));
var h=Rw8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return n4Q=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&&_.kc(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=OfQ.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,_.kc(this.root).appendChild(this._img)}});var wmz;var E4A;_.fn({_template:function(){if(E4A!==void 0)return E4A;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var b=G.content,I=b.insertBefore;wmz===void 0&&(wmz=document.createElement("template"));var h=wmz;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return E4A=G},
is:"tp-yt-iron-input",behaviors:[_.au],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(){_.Sb.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.kc(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.kc(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,b){b&&(G===void 0?b.value=null:G!==b.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 b=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&&b)},
_onKeypress:function(G){if(this.allowedPattern||this.inputElement.type==="number"){var b=this._patternRegExp;if(b&&!(G.metaKey||G.ctrlKey||G.altKey)){this._patternAlreadyChecked=!0;var I=String.fromCharCode(G.charCode);this._isPrintable(G)&&!b.test(I)&&(G.preventDefault(),this._announceInvalidCharacter("Invalid character "+I+" not entered."))}}},
_checkPatternValidity:function(){var G=this._patternRegExp;if(!G)return!0;for(var b=0;b<this.inputElement.value.length;b++)if(!G.test(this.inputElement.value[b]))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=_.au.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 pmJ;var Spi;var XmQ=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),$Ln=XmQ&&XmQ[1]>=8;
_.fn({_template:function(){if(Spi!==void 0)return Spi;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;pmJ===void 0&&(pmJ=document.createElement("template"));var h=pmJ;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return Spi=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}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[XWu,_.Y6,_.hbi,N5n],_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 _.kc(_.kc(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 b=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
G=this._iterateItems(function(I,h){b+=this._getPhysicalSizeIncrement(I);if(b>this._scrollPosition)return this.grid?h-h%this._itemsPerRow:h;if(this.grid&&this._virtualCount-1===h)return h-h%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 b=this._physicalTop+this._scrollOffset;this._iterateItems(function(I,h){b<this._scrollBottom&&(G=h);b+=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,_.kQ);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,_.kQ)},
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)),b=G-this._scrollPosition,I=b>=0;this._scrollPosition=G;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(b)>this._physicalSize&&this._physicalSize>0?(b-=this._scrollOffset,I=Math.round(b/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),wa))},
_getReusables:function(G){var b=[],I=this._hiddenContentSize*this._ratio,h=this._virtualStart,q=this._virtualEnd,l=this._physicalCount,V=this._physicalTop+this._scrollOffset;var D=this._physicalBottom+this._scrollOffset;var k=this._scrollPosition,L=this._scrollBottom;if(G){var x=this._physicalStart;D=k-V}else x=this._physicalEnd,D-=L;for(;;){var f=this._getPhysicalSizeIncrement(x);D-=f;if(b.length>=l||D<=I)break;if(G){if(q+b.length+1>=this._virtualCount)break;if(V+f>=k-this._scrollOffset)break;b.push(x);
V+=f;x=(x+1)%l}else{if(h-b.length<=0)break;if(V+this._physicalSize-f<=L)break;b.push(x);V-=f;x=x===0?l-1:x-1}}return{indexes:b,physicalTop:V-this._scrollOffset}},
_update:function(G,b){if(!(G&&G.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(G);this._updateMetrics(G);if(b)for(;b.length;)G=b.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(G);this._positionItems();this._updateScrollerSize()}},
_createPool:function(G){this._ensureTemplatized();var b,I=Array(G);for(b=0;b<G;b++){var h=this.stamp(null);I[b]=h.root.querySelector("*");this._itemsParent.appendChild(h.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 b=G%this._itemsPerRow;b&&G-b<=this._physicalCount&&(G+=this._itemsPerRow);G-=b}G-=this._physicalCount;b=Math.round(this._physicalCount*.5);if(!(G<0)){if(G>0){b=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()-b)/G;b=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||b===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,b)),U5X):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,b),wa))}},
_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,b){typeof b!=="undefined"&&(this.notifyResize(),_.Uc(),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,
_.kQ);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 b=this._getActiveElement();
this.contains(b)&&b.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,_.kQ)}else G.path!=="items.length"&&this._forwardItemPath(G.path,G.value)},
_forwardItemPath:function(G,b){G=G.slice(6);var I=G.indexOf(".");I===-1&&(I=G.length);var h,q=this.modelForElement(this._offscreenFocusedItem),l=parseInt(G.substring(0,I),10);if(h=this._isIndexRendered(l)){var V=this._getPhysicalIndex(l);var D=this.modelForElement(this._physicalItems[V])}else q&&(D=q);D&&D[this.indexAs]===l&&(G=G.substring(I+1),G=this.as+(G?"."+G:""),D._setPendingPropertyOrPath(G,b,!1,!0),D._flushProperties&&D._flushProperties(),h&&(this._updateMetrics([V]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(G){G.forEach(function(b){b.removed.forEach(this._removeItem,this);b.index<this._virtualStart&&(b=Math.max(b.addedCount-b.removed.length,b.index-this._virtualStart),this._virtualStart+=b,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=b))},this)},
_removeItem:function(G){this.$.selector.deselect(G);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===G&&this._removeFocusedItem()},
_iterateItems:function(G,b){var I,h;if(arguments.length===2&&b)for(h=0;h<b.length;h++){var q=b[h];var l=this._computeVidx(q);if((I=G.call(this,q,l))!=null)return I}else{q=this._physicalStart;for(l=this._virtualStart;q<this._physicalCount;q++,l++)if((I=G.call(this,q,l))!=null)return I;for(q=0;q<this._physicalStart;q++,l++)if((I=G.call(this,q,l))!=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(b,I){var h=this._physicalItems[b],q=this.items&&this.items[I];if(q!=null){var l=this.modelForElement(h);l.__key__=null;this._forwardProperty(l,this.as,q);this._forwardProperty(l,this.selectedAs,this.$.selector.isSelected(q));this._forwardProperty(l,this.indexAs,I);this._forwardProperty(l,"tabIndex",this._focusedVirtualIndex===I?0:-1);this._physicalIndexForKey[l.__key__]=b;l._flushProperties&&l._flushProperties(!0);h.removeAttribute("hidden")}else h.setAttribute("hidden",
"")},G)},
_updateMetrics:function(G){_.Uc();var b=0,I=0,h=this._physicalAverageCount,q=this._physicalAverage;this._iterateItems(function(l){I+=this._physicalSizes[l];this._physicalSizes[l]=this._physicalItems[l].offsetHeight;b+=this._physicalSizes[l];this._physicalAverageCount+=this._physicalSizes[l]?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+b-I,this._itemsPerRow=1);this._physicalAverageCount!==h&&(this._physicalAverage=Math.round((q*h+b)/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 b=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(I,h){var q=Math.floor(h%this._itemsPerRow*this._itemWidth+b);this._isRTL&&(q*=-1);this.translate3d(q+"px",G+"px",0,this._physicalItems[I]);this._shouldRenderNextRow(h)&&(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 b=this._scrollPosition;!$Ln&&b>0&&this._resetScrollPosition(b-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)&&(_.Uc(),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 b=this._physicalStart,I=this._virtualStart,h=0,q=this._hiddenContentSize;I<G&&
h<=q;)h+=this._getPhysicalSizeIncrement(b),b=(b+1)%this._physicalCount,I++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+h);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)},_.kQ)},
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 b=this.modelForElement(this._physicalItems[this._getPhysicalIndex(G)]);b&&(b[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 b=this.modelForElement(G.target);if(b){var I=_.kc(G).path[0];G=this._getActiveElement();var h=this._physicalItems[this._getPhysicalIndex(b[this.indexAs])];if(I.localName!=="input"&&I.localName!=="button"&&I.localName!=="select"){I=b.tabIndex;b.tabIndex=-100;var q=G?G.tabIndex:-1;b.tabIndex=I;G&&h!==G&&h.contains(G)&&q!==-100||this.toggleSelectionForItem(b[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 b=this._physicalItems[this._getPhysicalIndex(G)],I=this.modelForElement(b),h;I.tabIndex=-100;b.tabIndex===-100&&(h=b);h||(h=_.kc(b).querySelector('[tabindex="-100"]'));I.tabIndex=0;this._focusedVirtualIndex=G;h&&h.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 b=this.stamp(null);this._focusBackfillItem=b.root.querySelector("*");this._itemsParent.appendChild(b.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),b=this._physicalItems[G];if(b){var I=this.modelForElement(b),h=this.modelForElement(this._offscreenFocusedItem);I[this.as]===h[this.as]?(this._focusBackfillItem=b,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 b=this.modelForElement(this._focusedItem),I=this._offscreenFocusedItem!==null,h=this._focusedVirtualIndex;G&&(b===G?this._isIndexVisible(h)||this.scrollToIndex(h):(this._restoreFocusedItem(),b&&(b.tabIndex=-1),G.tabIndex=0,this._focusedVirtualIndex=h=G[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(h),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,b,I){return Math.min(I,Math.max(b,G))},
_debounce:function(G,b,I){this._debouncers=this._debouncers||{};this._debouncers[G]=_.Q2(this._debouncers[G],I,b.bind(this));_.xj(this._debouncers[G])},
_forwardProperty:function(G,b,I){G._setPendingProperty(b,I)},
_forwardHostPropV2:function(G,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).forwardHostProp(G,b)},this)},
_notifyInstancePropV2:function(G,b,I){Axv(this.as,b)&&(G=G[this.indexAs],b==this.as&&(this.items[G]=I),this.notifyPath(zX(this.as,"items."+G,b),I))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(G,b,I){b.indexOf(this.as+".")===0&&this.notifyPath("items."+G.__key__+"."+b.slice(this.as.length+1),I)},
_forwardParentPath:function(G,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).notifyPath(G,b)},this)},
_forwardParentProp:function(G,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&(this.modelForElement(I)[G]=b)},this)},
_getActiveElement:function(){var G=this._itemsParent.node.domHost;return _.kc(G?G.root:document).activeElement},
_scrollTargetChanged:function(G,b){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(b)if(G==="document")this.scrollTarget=this._doc;else if(typeof G==="string"){var I,h;this.scrollTarget=(b=(h=(I=this.domHost)==null?void 0:I.polymerController)!=null?h:this.domHost)&&b.$?b.$[G]:_.kc(this.ownerDocument).querySelector("#"+G)}else this._isValidScrollTarget()&&(this._oldScrollTarget=G,this._toggleScrollListener(this._shouldHaveListener,G))}});var GyQ;var b4Q;var I$u=function(G,b,I,h){G-=I;b-=h;return Math.sqrt(G*G+b*b)},hRi=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
szp.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var gjr=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 szp(G.element)};
Awv.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var G=hRi()-this.mouseDownStart;this.mouseUpStart&&(G-=this.mouseUpElapsed);return G},get mouseUpElapsed(){return this.mouseUpStart?hRi()-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 b=this.xNow-this.containerMetrics.width/2;var I=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+b+"px, "+I+"px)";this.waveContainer.style.transform="translate3d("+b+"px, "+I+"px, 0)";this.wave.style.webkitTransform="scale("+G+","+G+")";this.wave.style.transform="scale3d("+G+","+G+",1)"},
downAction:function(G){var b=this.containerMetrics.width/2,I=this.containerMetrics.height/2;gjr(this);this.mouseDownStart=hRi();this.center?(this.xStart=b,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=b,this.yEnd=I);G=this.containerMetrics;b=this.xStart;I=this.yStart;this.maxRadius=Math.max(I$u(b,I,0,0),I$u(b,I,
G.width,0),I$u(b,I,0,G.height),I$u(b,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=hRi())},
remove:function(){_.kc(_.kc(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.fn({_template:function(){if(b4Q!==void 0)return b4Q;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;GyQ===void 0&&(GyQ=document.createElement("template"));var h=GyQ;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return b4Q=G},
is:"tp-yt-paper-ripple",behaviors:[_.PO],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(){_.kc(this).parentNode.nodeType==11?this.keyEventTarget=_.kc(this).getOwnerRoot().host:this.keyEventTarget=_.kc(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(b){b.upAction(G)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var G=0;G<this.ripples.length;++G){var b=this.ripples[G];b.isOpacityFullyDecayed&&!b.isRestingAtMaxRadius&&this.removeRipple(b)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var G=new Awv(this);_.kc(this.$.waves).appendChild(G.waveContainer);this.$.background.style.backgroundColor=G.color;this.ripples.push(G);this._setAnimating(!0);return G},
removeRipple:function(G){var b=this.ripples.indexOf(G);b<0||(this.ripples.splice(b,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 b=this.ripples[G];b.draw();this.$.background.style.opacity=b.outerOpacity;b.isOpacityFullyDecayed&&!b.isRestingAtMaxRadius&&this.removeRipple(b)}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,b){b!==void 0&&(G?this.downAction():this.upAction())}});var hs={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(G){yl._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 b=this._rippleContainer||this.root;b&&_.kc(b).appendChild(this._ripple);if(G){b=_.kc(this._rippleContainer||this);var I=_.kc(G).rootTarget;b.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 qn5={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){yl._spaceKeyDownHandler.call(this,G);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(G){yl._spaceKeyUpHandler.call(this,G);this.hasRipple()&&this._ripple.uiUpAction()}},jTO=[nx8,
_.dr,hs,qn5];_.l$B={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(G){G&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=G)},
_createRipple:function(){var G=hs._createRipple();G.id="ink";G.setAttribute("center","");G.classList.add("circle");return G}};
_.mLb=[nx8,_.dr,hs,_.l$B];_.eRX=[_.mLb,Ex5,{_checkedChanged:function(){wPe._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){hs._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Vg8;var DLA;var cKW=function(){};
_.m=cKW.prototype;_.m.registered=function(){};
_.m.addOwnKeyBinding=function(){};
_.m.removeOwnKeyBindings=function(){};
_.m.keyboardEventMatchesKeys=function(){};
_.m._collectKeyBindings=function(){};
_.m._prepKeyBindings=function(){};
_.m._addKeyBinding=function(){};
_.m._resetKeyEventListeners=function(){};
_.m._listenKeyEventListeners=function(){};
_.m._unlistenKeyEventListeners=function(){};
_.m._onKeyBindingEvent=function(){};
_.m._triggerKeyHandler=function(){};
_.m._tapHandler=function(){};
_.m._focusChanged=function(){};
_.m._detectKeyboardFocus=function(){};
_.m._userActivate=function(){};
_.m._upHandler=function(){};
_.m._asyncClick=function(){};
_.m._pressedChanged=function(){};
_.m._ariaActiveAttributeChanged=function(){};
_.m._activeChanged=function(){};
_.m._controlStateChanged=function(){};
_.m._changedButtonState=function(){};
_.m._focusBlurHandler=function(){};
_.m._disabledChanged=function(){};
_.m._changedControlState=function(){};
_.m._buttonStateChanged=function(){};
_.m._downHandler=function(){};
_.m.ensureRipple=function(){};
_.m.getRipple=function(){};
_.m.hasRipple=function(){};
_.m._createRipple=function(){};
_.m._noinkChanged=function(){};
_.m._computeKeyboardClass=function(){};
_.m._spaceKeyDownHandler=function(){};
_.m._spaceKeyUpHandler=function(){};
_.m._setPressed=function(){};
_.m._setPointerDown=function(){};
_.m._setReceivedFocusFromKeyboard=function(){};
_.m._setFocused=function(){};
_.m._setElevation=function(){};
cKW=_.fn({_template:function(){if(DLA!==void 0)return DLA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var b=G.content,I=b.insertBefore;Vg8===void 0&&(Vg8=document.createElement("template"));var h=Vg8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return DLA=G},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[jTO],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?qn5._calculateElevation.apply(this):this._setElevation(0)}});var kyB;var v1O;var LXz={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){_.U("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(G)},
_onDialogClickWrapped:function(G){_.U("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,b){b&&(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 b;((b=this.hostElement)!=null?b: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 b=_.kc(G).path,I=0,h,q=b.indexOf((h=this.hostElement)!=null?h:this);I<q;I++)if(h=b[I],h.hasAttribute&&(h.hasAttribute("dialog-dismiss")||h.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(h.hasAttribute("dialog-confirm"));this.close();G.stopPropagation();break}}},QTJ=[_.IV,
LXz];var xLQ=document.createElement("template");_.Z(xLQ,'<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(xLQ.content);var f$z=document.createElement("template");_.Z(f$z,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(f$z.content);_.fn({_template:function(){if(v1O!==void 0)return v1O;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var b=G.content,I=b.insertBefore;kyB===void 0&&(kyB=document.createElement("template"));var h=kyB;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return v1O=G},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[QTJ,q5e],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 TpA;var BpQ;_.fn({_template:function(){if(BpQ!==void 0)return BpQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;TpA===void 0&&(TpA=document.createElement("template"));var h=TpA;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return BpQ=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,b,I;if(((G=window.ShadyDOM)==null?void 0:G.noPatch)!==!0&&((b=window.ShadyDOM)==null?void 0:b.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(LXz)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var ULb=_.WP(['<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>']),sTA=_.uvW(ULb);sTA.setAttribute("style","display: none;");document.head.appendChild(sTA.content);var g1e;var AKz;var MgW;var Z4n;_.fn({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[CY],configure:function(G){var b=G.node,I=b.getBoundingClientRect().height;return this._effect=new KeyframeEffect(b,[{height:I/2+"px"},{height:I+"px"}],this.timingFromConfig(G))}});
_.fn({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[CY],configure:function(G){var b=G.node,I=b.getBoundingClientRect().width;return this._effect=new KeyframeEffect(b,[{width:I/2+"px"},{width:I+"px"}],this.timingFromConfig(G))}});
_.fn({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[CY],configure:function(G){var b=G.node,I=b.getBoundingClientRect().width;return this._effect=new KeyframeEffect(b,[{width:I+"px"},{width:I-I/20+"px"}],this.timingFromConfig(G))}});
_.fn({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[CY],configure:function(G){var b=G.node,I=b.getBoundingClientRect().height;this.setPrefixedProperty(b,"transformOrigin","0 0");return this._effect=new KeyframeEffect(b,[{height:I+"px",transform:"translateY(0)"},{height:I/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(G))}});var qZ={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},tgJ=function(){};
_.m=tgJ.prototype;_.m.registered=function(){};
_.m.addOwnKeyBinding=function(){};
_.m.removeOwnKeyBindings=function(){};
_.m.keyboardEventMatchesKeys=function(){};
_.m._collectKeyBindings=function(){};
_.m._prepKeyBindings=function(){};
_.m._addKeyBinding=function(){};
_.m._resetKeyEventListeners=function(){};
_.m._listenKeyEventListeners=function(){};
_.m._unlistenKeyEventListeners=function(){};
_.m._onKeyBindingEvent=function(){};
_.m._triggerKeyHandler=function(){};
_.m._focusBlurHandler=function(){};
_.m._changedControlState=function(){};
_.m._setFocused=function(){};
tgJ=_.fn({_template:function(){if(Z4n!==void 0)return Z4n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;MgW===void 0&&(MgW=document.createElement("template"));var h=MgW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return Z4n=G},
is:"tp-yt-paper-menu-button",behaviors:[_.PO,_.dr],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:qZ.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:qZ.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:qZ.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=_.kc(this.$.content).getDistributedNodes(),b=0,I=G.length;b<I;b++)if(G[b].nodeType===Node.ELEMENT_NODE)return G[b]},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,b){G?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):b!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(G){_.dr._disabledChanged.apply(this,arguments);G&&this.opened&&this.close()},
__onIronOverlayCanceled:function(G){var b=this.$.trigger;_.kc(G.detail).path.indexOf(b)>-1&&G.preventDefault()}});
Object.keys(qZ).forEach(function(G){tgJ[G]=qZ[G]});var zRb=_.rr.IronButtonState,o1i=(0,_.iY)(HTMLElement);
_.fn({_template:function(){if(AKz!==void 0)return AKz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;g1e===void 0&&(g1e=document.createElement("template"));var h=g1e;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return AKz=G},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[zRb,_.dr,hs,_.FZ,_.au],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 b=(0,_.yF)(this);b.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:G});b.shadowRoot.appendChild(G);return o1i.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=_.kc(this.$.content).getDistributedNodes(),b=0,I=G.length;b<I;b++)if(G[b].nodeType===Node.ELEMENT_NODE)return G[b]},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 b="";G?b=G.label||G.getAttribute("label")||G.textContent.trim():b="";this.value=b;this._setSelectedItemLabel(b)},
_computeMenuVerticalOffset:function(G,b){return b?b:G?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var G=this.opened?"true":"false",b=this.contentElement;b&&b.setAttribute("aria-expanded",G)},
_computeLabelClass:function(G,b,I){var h="label";if(G)I&&(h+=" label-is-hidden");else if(I||b)h+=" label-is-floating";return h},
_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 i4B;var P1n;_.fn({is:"tp-yt-paper-icon-button",_template:function(){if(P1n!==void 0)return P1n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;i4B===void 0&&(i4B=document.createElement("template"));var h=i4B;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return P1n=G},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.mLb],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(G,b){var I=this.getAttribute("aria-label");I&&b!=I||this.setAttribute("aria-label",G)}});var dL5;var yKn;_.jI=[nx8,_.dr,{hostAttributes:{role:"option",tabindex:"0"}}];_.fn({_template:function(){if(yKn!==void 0)return yKn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;dL5===void 0&&(dL5=document.createElement("template"));var h=dL5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return yKn=G},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.jI]});var rKz;var FXb;var H4Q={attached:function(){this.fire("addon-attached")},
update:function(){}};var WXJ=1,a$8=1,Npi=1,YnW=[_.dr,_.PO,{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();!eM&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(G,b){G?G=G+" "+b:G=b;return G},
_onAddonAttached:function(G){G=_.kc(G).rootTarget;if(G.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,G.id);else{var b="paper-input-add-on-"+a$8++;G.id=b;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,b)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(G){_.dr._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 b=this.inputElement.selectionStart;this.value=G;this.inputElement.selectionStart=b;this.inputElement.selectionEnd=b}catch(I){this.value=G}},
_computeAlwaysFloatLabel:function(G,b){return b||G},
_updateAriaLabelledBy:function(){var G=_.kc(this.root).querySelector("label");if(G){if(G.id)var b=G.id;else b="paper-input-label-"+WXJ++,G.id=b;this._ariaLabelledBy=b}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Npi++)},
_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 C1X;var JKi;_.fn({_template:function(){if(JKi!==void 0)return JKi;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;C1X===void 0&&(C1X=document.createElement("template"));var h=C1X;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return JKi=G},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[H4Q],properties:{_charCounterStr:{type:String,value:"0"}},update:function(G){if(G.inputElement){G.value=G.value||"";var b=G.value.toString().length.toString();G.inputElement.hasAttribute("maxlength")&&(b+="/"+G.inputElement.getAttribute("maxlength"));this._charCounterStr=b}}});var KXX;var u7Q;_.fn({_template:function(){if(u7Q!==void 0)return u7Q;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;KXX===void 0&&(KXX=document.createElement("template"));var h=KXX;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return u7Q=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 sz(this.attrForValue)},get _inputElement(){return _.kc(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 b=G.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,b.value===void 0||b.value===""))return;this._handleValueAndAutoValidate(G.target)},
_handleValue:function(G){var b=this._inputElementValue;b||b===0||G.type==="number"&&!G.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:G,value:b,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 b,I=0;b=this._addons[I];I++)b.update(G)},
_computeInputContentClass:function(G,b,I,h,q){var l="input-content";G?(q&&(l+=" label-is-hidden"),h&&!this.noUnfloatedLabelError&&(l+=" is-invalid")):(G=this.querySelector("label"),b||q?(l+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",h?l+=" is-invalid":I&&(l+=" label-is-highlighted")):(G&&(this.$.labelAndInputContainer.style.position="relative"),h&&!this.noUnfloatedLabelError&&(l+=" is-invalid")));I&&(l+=" focused");return l},
_computeUnderlineClass:function(G,b){var I="underline";b?I+=" is-invalid":G&&(I+=" is-highlighted");return I},
_computeAddOnContentClass:function(G,b){var I="add-on-content";b?I+=" is-invalid":G&&(I+=" is-highlighted");return I}});var RRz;var n1X;_.fn({_template:function(){if(n1X!==void 0)return n1X;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;RRz===void 0&&(RRz=document.createElement("template"));var h=RRz;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return n1X=G},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[H4Q],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(G){this._setInvalid(G.invalid)}});_.fn({is:"tp-yt-paper-input",_template:function(){if(FXb!==void 0)return FXb;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;rKz===void 0&&(rKz=document.createElement("template"));var h=rKz;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return FXb=G},
behaviors:[YnW,_.FZ],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 O4n;var wZn;_.fn({_template:function(){if(wZn!==void 0)return wZn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=
G.content,I=b.insertBefore;O4n===void 0&&(O4n=document.createElement("template"));var h=O4n;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return wZn=G},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.jI]});var E1i;var pZu;_.fn({_template:function(){if(pZu!==void 0)return pZu;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var b=G.content,I=b.insertBefore;E1i===void 0&&(E1i=document.createElement("template"));var h=E1i;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return pZu=G},
is:"tp-yt-paper-item-body"});var Sni;var XZn;var $R5=function(){};
_.m=$R5.prototype;_.m.indexOf=function(){};
_.m.selectPrevious=function(){};
_.m.selectNext=function(){};
_.m.selectIndex=function(){};
_.m.forceSynchronousItemUpdate=function(){};
_.m._checkFallback=function(){};
_.m._addListener=function(){};
_.m._removeListener=function(){};
_.m._activateEventChanged=function(){};
_.m._updateItems=function(){};
_.m._selectSelected=function(){};
_.m._filterItem=function(){};
_.m._valueToItem=function(){};
_.m._valueToIndex=function(){};
_.m._indexToValue=function(){};
_.m._valueForItem=function(){};
_.m._observeItems=function(){};
_.m._itemActivate=function(){};
_.m.multiChanged=function(){};
_.m._updateAttrForSelected=function(){};
_.m._updateSelected=function(){};
_.m._selectMulti=function(){};
_.m._selectionChange=function(){};
_.m._toggleSelected=function(){};
_.m._valuesToItems=function(){};
_.m.registered=function(){};
_.m.addOwnKeyBinding=function(){};
_.m.removeOwnKeyBindings=function(){};
_.m.keyboardEventMatchesKeys=function(){};
_.m._collectKeyBindings=function(){};
_.m._prepKeyBindings=function(){};
_.m._addKeyBinding=function(){};
_.m._resetKeyEventListeners=function(){};
_.m._listenKeyEventListeners=function(){};
_.m._unlistenKeyEventListeners=function(){};
_.m._onKeyBindingEvent=function(){};
_.m._triggerKeyHandler=function(){};
_.m.select=function(){};
_.m._resetTabindices=function(){};
_.m._updateMultiselectable=function(){};
_.m._focusWithKeyboardEvent=function(){};
_.m._clearSearchText=function(){};
_.m._focusPrevious=function(){};
_.m._focusNext=function(){};
_.m._applySelection=function(){};
_.m._focusedItemChanged=function(){};
_.m._onIronItemsChanged=function(){};
_.m._onShiftTabDown=function(){};
_.m._onFocus=function(){};
_.m._onUpKey=function(){};
_.m._onDownKey=function(){};
_.m._onEscKey=function(){};
_.m._onKeydown=function(){};
_.m._activateHandler=function(){};
_.m._disabledChanged=function(){};
_.m._setSelectedItem=function(){};
_.m._setItems=function(){};
_.m._setSelectedItems=function(){};
_.m._setFocusedItem=function(){};
$R5=_.fn({_template:function(){if(XZn!==void 0)return XZn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var b=G.content,I=b.insertBefore;Sni===void 0&&(Sni=document.createElement("template"));var h=Sni;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return XZn=G},
is:"tp-yt-paper-listbox",behaviors:[$C5],hostAttributes:{role:"listbox"}});var Gre;var bEe;var Ic5={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,b){return[G||b?"active":"",b?"cooldown":""].join(" ")},
__activeChanged:function(G,b){this.__setAriaHidden(!G);this.__coolingDown=!G&&b},
__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}};_.fn({_template:function(){if(bEe!==void 0)return bEe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;Gre===void 0&&(Gre=document.createElement("template"));var h=Gre;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return bEe=G},
is:"tp-yt-paper-spinner",behaviors:[Ic5]});var hgO;var q$b;_.fn({_template:function(){if(q$b!==void 0)return q$b;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;hgO===void 0&&(hgO=document.createElement("template"));var h=hgO;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return q$b=G},
is:"tp-yt-paper-spinner-lite",behaviors:[Ic5]});var jvW;var lcz;_.fn({_template:function(){if(lcz!==void 0)return lcz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;jvW===void 0&&(jvW=document.createElement("template"));var h=jvW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return lcz=G},
is:"tp-yt-paper-tab",behaviors:[_.dr,_.rr.IronButtonState,hs],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=_.kc(this).parentNode;return!!G&&!!G.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(G){if(this.link){var b=this.queryEffectiveChildren("a");b&&G.target!==b&&b.click()}}});var mRz;var ege;var VPB=_.WP(['<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>']),DRX=_.uvW(VPB);document.head.appendChild(DRX.content);_.fn({_template:function(){if(ege!==void 0)return ege;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;mRz===void 0&&(mRz=document.createElement("template"));var h=mRz;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return ege=G},
is:"tp-yt-paper-tabs",behaviors:[_.Y6,_.bpW],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){_.kc(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,b,I,h){return!b||I?"hidden":G?h?"hidden":"not-visible":""},
_computeTabsContentClass:function(G,b){var I="tabs-content";G&&(I+=" scrollable");if(!G||b)I+=" fit-container";return I},
_computeSelectionBarClass:function(G,b){var I="selection-bar";G?I+=" hidden":b&&(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();_.Ns._activateHandler.apply(this,arguments)},
_scheduleActivation:function(G,b){this._pendingActivationItem=G;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,b)},
_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,b){this.scrollable&&this._affectScroll(b&&-b.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,b){if(G){var I=this.$.tabsContent.getBoundingClientRect(),h=I.width,q=G.getBoundingClientRect();I=q.left-I.left;this._pos={width:this._calcPercent(q.width,h),left:this._calcPercent(I,h)};if(this.noSlide||b==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var l=b.getBoundingClientRect();b=this.items.indexOf(b);G=this.items.indexOf(G);this.$.selectionBar.classList.add("expand");
G=b<G;this._isRTL&&(G=!G);G?this._positionBar(this._calcPercent(q.left+q.width-l.left,h)-5,this._left):this._positionBar(this._calcPercent(l.left+l.width-q.left,h)-5,this._calcPercent(I,h)+5);this.scrollable&&this._scrollToSelectedIfNeeded(q.width,I)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(G,b){b-=this.$.tabsContainer.scrollLeft;b<0?this.$.tabsContainer.scrollLeft+=b:(b+=G-this.$.tabsContainer.offsetWidth,b>0&&(this.$.tabsContainer.scrollLeft+=b))},
_calcPercent:function(G,b){return 100*G/b},
_positionBar:function(G,b){G=G||0;b=b||0;this._width=G;this._left=b;this.transform("translateX("+b+"%) 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 c$Q;var krX;_.fn({_template:function(){if(krX!==void 0)return krX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;c$Q===void 0&&(c$Q=document.createElement("template"));var h=c$Q;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return krX=G},
is:"tp-yt-paper-textarea",behaviors:[YnW,_.FZ],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 vm5;var LQb;/*

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 Qv5=function(){};
_.m=Qv5.prototype;_.m.addOwnKeyBinding=function(){};
_.m.removeOwnKeyBindings=function(){};
_.m.keyboardEventMatchesKeys=function(){};
_.m._collectKeyBindings=function(){};
_.m._prepKeyBindings=function(){};
_.m._addKeyBinding=function(){};
_.m._resetKeyEventListeners=function(){};
_.m._listenKeyEventListeners=function(){};
_.m._unlistenKeyEventListeners=function(){};
_.m._onKeyBindingEvent=function(){};
_.m._triggerKeyHandler=function(){};
_.m._tapHandler=function(){};
_.m._focusChanged=function(){};
_.m._detectKeyboardFocus=function(){};
_.m._userActivate=function(){};
_.m._upHandler=function(){};
_.m._spaceKeyDownHandler=function(){};
_.m._spaceKeyUpHandler=function(){};
_.m._asyncClick=function(){};
_.m._pressedChanged=function(){};
_.m._ariaActiveAttributeChanged=function(){};
_.m._activeChanged=function(){};
_.m._controlStateChanged=function(){};
_.m._changedButtonState=function(){};
_.m._focusBlurHandler=function(){};
_.m._disabledChanged=function(){};
_.m._changedControlState=function(){};
_.m._downHandler=function(){};
_.m.ensureRipple=function(){};
_.m.getRipple=function(){};
_.m.hasRipple=function(){};
_.m._noinkChanged=function(){};
_.m._focusedChanged=function(){};
_.m.registered=function(){};
_.m._invalidChanged=function(){};
_.m.hasValidator=function(){};
_.m.validate=function(){};
_.m._getValidity=function(){};
_.m._requiredChanged=function(){};
_.m._valueChanged=function(){};
_.m._checkedChanged=function(){};
_.m._buttonStateChanged=function(){};
_.m._setPressed=function(){};
_.m._setPointerDown=function(){};
_.m._setReceivedFocusFromKeyboard=function(){};
_.m._setFocused=function(){};
Qv5=_.fn({is:"tp-yt-paper-toggle-button",_template:function(){if(LQb!==void 0)return LQb;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;vm5===void 0&&(vm5=document.createElement("template"));var h=vm5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return LQb=G},
behaviors:[_.eRX],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");_.D1(this,function(){_.Oz(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=hs._createRipple();G.id="ink";G.setAttribute("recenters","");G.classList.add("circle","toggle-ink");return G}});var xRO;var fcQ;_.fn({_template:function(){if(fcQ!==void 0)return fcQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;xRO===void 0&&(xRO=document.createElement("template"));var h=xRO;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return fcQ=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=_.kc(this).parentNode,b=_.kc(this).getOwnerRoot(),I;this.for?I=_.kc(b).querySelector("#"+this.for):I=G.nodeType==Node.DOCUMENT_FRAGMENT_NODE?b.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&&_.kc(this).textContent.trim()===""){for(var G=!0,b=_.kc(this).getEffectiveChildNodes(),I=0;I<b.length;I++)if(b[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 b=this.offsetParent.getBoundingClientRect(),I=this._target.getBoundingClientRect(),h=this.getBoundingClientRect(),q=(I.width-h.width)/2,l=(I.height-h.height)/2,V=I.left-b.left,D=I.top-b.top;switch(this.position){case "top":var k=V+q;var L=D-h.height-G;break;case "bottom":k=V+q;L=D+I.height+G;break;case "left":k=V-h.width-G;L=D+l;break;case "right":k=V+I.width+
G,L=D+l}this.fitToVisibleBounds?(b.left+k+h.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,k)+"px",this.style.right="auto"),b.top+L+h.height>window.innerHeight?(this.style.bottom=b.height+"px",this.style.top="auto"):(this.style.top=Math.max(-b.top,L)+"px",this.style.bottom="auto")):(this.style.left=k+"px",this.style.top=L+"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 b=this.animationConfig[G][0].timing.delay;G==="entry"?this.updateStyles({"--paper-tooltip-delay-in":b+"ms"}):G==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":b+
"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 Tue=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Tue,_.eo);var Bui=_.T7(Tue,[0,_.Xc]);var lC=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(lC,_.eo);var URX=[3,4],svb=[5,6];var gmb=[0,URX,svb,_.IT,-1,_.E5,_.hK,-1,PFJ,dfb];var A$8=_.T7(lC,gmb),MPu=_.Uv(gmb);var ZEe=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(ZEe,_.eo);var tPB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(tPB,_.eo);var zgb=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(zgb,_.eo);var omW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(omW,_.eo);var iEn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(iEn,_.eo);var m4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(m4,_.eo);m4.prototype.getSource=function(){return _.gU(this,1)};
m4.prototype.getMessage=function(){return _.U5(this,4)};
m4.prototype.getData=function(){return _.fi(this,iEn,8)};var PWe=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(PWe,_.eo);var eI=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(eI,_.eo);var V$=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(V$,_.eo);var Df=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Df,_.eo);Df.prototype.getUrl=function(){return _.U5(this,1)};
Df.prototype.setUrl=function(G){return _.F0(this,1,G)};
Df.prototype.hasUrl=function(){return _.Mf(_.mI(this,1))!=null};var dRi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(dRi,_.eo);var y$i=[3];var r$n=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(r$n,_.eo);var cB=function(G){var b=new r$n;return _.Tv(b,2,G)};
r$n.prototype.getLanguage=function(){return MC(this,4,kf)};
var FQA=function(G){var b=cB(1);return _.tz(b,6,kf,G)},kf=[3,
4,5,6];var HEi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(HEi,_.eo);var vB=function(G){var b=new HEi;return _.Tv(b,1,G)},Lb=function(G,b){return _.tz(G,2,WQe,b)},WQe=[2,
3,4,5];var acn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(acn,_.eo);var Q$=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Q$,_.eo);var Nun=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Nun,_.eo);var Y$n=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Y$n,_.eo);var CW5=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(CW5,_.eo);var J$B=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(J$B,_.eo);var KQb=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(KQb,_.eo);var xf=function(G){return _.fi(G,V$,5)};var u4A=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(u4A,_.eo);u4A.prototype.getValue=function(){return Td(this,1)};var RgB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(RgB,_.eo);var fb=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(fb,_.eo);fb.prototype.getMetadata=function(){return _.Zu(this,CW5,7,TQ)};
fb.prototype.hasMetadata=function(){return _.Vt(this,CW5,7,TQ)};
var nmJ=_.nIv(fb),TQ=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var BB=function(G){this.JSC$12242_name_=G;this.files_=[];this.directories_=[];this.directoryMap_={}};
BB.prototype.getName=function(){return this.JSC$12242_name_};var sU=function(G,b){this.callback_=b;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new BB("");OEz(this,G,this.rootDirectory_);UU(this)},OEz=function(G,b,I){for(var h=0;h<b.length;h++){var q=b[h];
q.isFile?(G.fileOps_++,q.file((0,_.Hr)(G.handleFileSuccess_,G,I),(0,_.Hr)(G.handleFileError_,G))):G.unscannedDirectories_.push(new w0A(q,I))}},UU=function(G){if(G.unscannedDirectories_.length>0&&G.directoryOps_<5&&!G.hasError_){G.directoryOps_++;
var b=G.unscannedDirectories_.shift(),I=b.entry,h=new BB(I.name);b=b.parent;b.directoryMap_[h.getName()]=h;b.directories_.push(h);I=I.createReader();I.readEntries((0,_.Hr)(G.handleDirectorySuccess_,G,I,h),(0,_.Hr)(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_)};
sU.prototype.handleDirectorySuccess_=function(G,b,I){OEz(this,I,b);I.length==0?(this.directoryOps_--,UU(this)):G.readEntries((0,_.Hr)(this.handleDirectorySuccess_,this,G,b),(0,_.Hr)(this.handleDirectoryError_,this))};
sU.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;UU(this)};
sU.prototype.handleFileSuccess_=function(G,b){G.files_.push(b);this.fileOps_--;UU(this)};
sU.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;UU(this)};
var w0A=function(G,b){this.entry=G;this.parent=b};var g0=function(G){_.Z$.call(this);_.cv(G,"drop",this.onObjectsDropped_,!1,this);_.cv(G,"dragenter",this.onFilesDragged_,!1,this);_.cv(G,"dragover",this.onFilesDragged_,!1,this);_.cv(G,"dragleave",this.onDragLeave_,!1,this);_.cv(G,"dragend",this.onDragLeave_,!1,this)};
_.OE(g0,_.Z$);var Emn=function(G,b){_.Un.call(this,"f");this.files=G;this.directories=b};
_.OE(Emn,_.Un);var p0A=function(){_.Un.call(this,"h")};
_.OE(p0A,_.Un);var S$J=function(){_.Un.call(this,"i")};
_.OE(S$J,_.Un);var X0Q=function(){_.Un.call(this,"g")};
_.OE(X0Q,_.Un);g0.prototype.onObjectsDropped_=function(G){var b=this;G.preventDefault();var I=G.event_.dataTransfer;if((G=I&&I.items)&&G.length>0&&G[0].webkitGetAsEntry){I=[];for(var h=[],q=0;q<G.length;q++){var l=G[q].webkitGetAsEntry();l?I.push(l):h.push(G[q])}new sU(I,function(V,D,k){k?b.dispatchEvent(new X0Q("Error occurred while reading from the file system.")):b.dispatchEvent(new Emn(V,D,h))})}else(G=I&&I.files)&&this.dispatchEvent(new Emn(Array.from(G),[]))};
g0.prototype.onFilesDragged_=function(G){G.type==="dragenter"&&this.dispatchEvent(new p0A);G.preventDefault()};
g0.prototype.onDragLeave_=function(){this.dispatchEvent(new S$J)};var $3n=function(G,b){this.JSC$12265_name_=G;this.inputElement_=b};
$3n.prototype.getName=function(){return this.JSC$12265_name_};
$3n.prototype.getInputElement=function(){return this.inputElement_};var As=function(G,b,I){b=b===void 0?"single_file":b;I=I===void 0?[]:I;_.Z$.call(this);this.overlayTarget_=G;this.parentOverlay_=G!=null?G.parentNode:_.ol("scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=I;this.overlay_=Gk8(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.M(As,_.Z$);
var Gk8=function(G,b,I,h){var q=document.createElement("input");q.setAttribute("type","file");q.setAttribute("name","Filedata");_.cv(q,"change",G.onFilesSelected_,!1,G);I==="multiple_file"&&(q.multiple="true");I==="single_directory"&&(q.webkitdirectory="true");h.length>0&&q.setAttribute("accept",h.join(","));q.style.position="absolute";q.style.overflow="hidden";q.style.height="0px";q.style.width="0px";q.style.opacity="0";q.setAttribute("aria-hidden","true");q.setAttribute("tabIndex",-1);if(G.overlayTarget_!=
null)return q.style.height=b.offsetHeight+"px",q.style.width=b.offsetWidth+"px",G.parentOverlay_&&(G.parentOverlay_.style.position="relative"),_.Fi(q,b),Cf(q,new _.ue(b.offsetLeft,b.offsetTop)),q;G.parentOverlay_.appendChild(q);return q};
As.prototype.click=function(){this.overlay_.click()};
As.prototype.onFilesSelected_=function(G){a:{try{var b=(new XMLHttpRequest).upload!==void 0;break a}catch(L){}b=!1}if(b){var I;G=Array.from((I=G.target.files)!=null?I:[]);I=[];if(this.selectorType_==="single_directory"&&(_.$Y||Vz||_.XE)){I=new BB("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;b<G.length;b++)for(var h=G[b],q=h.webkitRelativePath.split("/"),l=I,V=0;V<q.length;V++){var D=q[V];if(V==q.length-1){D!="."&&l.files_.push(h);break}var k=l.directoryMap_[D];k==void 0&&(D=
k=new BB(D),l.directoryMap_[D.getName()]=D,l.directories_.push(D));l=k}I=I.directories_}this.dispatchEvent(new b6X(G,I,null))}else G=G.target.value,G.match(/^c:\\fakepath\\/i)&&(G=G.substring(12)),this.dispatchEvent(new b6X([],[],new $3n(G,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=Gk8(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var b6X=function(G,b){_.Un.call(this,"j");this.files=G;this.directories=b};
_.M(b6X,_.Un);var IDJ=function(G){this.uploadUrl_=G};var hl5=function(){_.Z$.call(this)};
_.OE(hl5,_.Z$);var MZ=function(G){_.Un.call(this,G)};
_.OE(MZ,_.Un);var Zf=function(G){_.Un.call(this,G)};
_.OE(Zf,_.Un);var qaB=function(G,b,I,h,q){_.Z$.call(this);I=document.createElement("form");I.setAttribute("method",b);I.setAttribute("enctype","multipart/form-data");I.setAttribute("encoding","multipart/form-data");b=document.createElement("input");b.setAttribute("type","hidden");b.setAttribute("name","metadata");b.setAttribute("value",q);I.appendChild(b);I.appendChild(h);this.JSC$12282_form_=I;G=new _.a3(G);_.IJ(G,"upload_protocol","multipart");this.JSC$12282_url_=G.toString();this.JSC$12282_request_=new Vl;this.state_=
"Ready";this.JSC$12282_errorDescription_=null;this.JSC$12282_eventHandler_=new _.Bh(this);_.M2(this,this.JSC$12282_eventHandler_);this.JSC$12282_eventHandler_.listen(this.JSC$12282_request_,"success",this.onTransferSuccess_);this.JSC$12282_eventHandler_.listen(this.JSC$12282_request_,"error",this.onTransferError_)};
_.M(qaB,hl5);_.m=qaB.prototype;_.m.run=function(){this.state_="Transferring";var G=this.JSC$12282_request_,b=this.JSC$12282_form_;if(G.JSC$11550_active_)throw Error("te");var I=new _.a3(this.JSC$12282_url_||b.action);G.JSC$11550_form_=b;b=G.JSC$11550_form_;I=_.nA(I.toString());I!==void 0&&(b.action=I);kIQ(G)};
_.m.getResponseCode=function(){return null};
_.m.getResponseText=function(){return this.JSC$12282_request_&&this.JSC$12282_request_.getResponseText()||null};
_.m.JSC$29908_getErrorDescription=function(){return this.JSC$12282_errorDescription_};
_.m.cancel=function(){this.JSC$12282_request_&&this.JSC$12282_request_.abort();this.state_="Cancelled";this.dispatchEvent(new MZ("o"))};
_.m.pause=function(){};
_.m.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new MZ("l"))};
_.m.onTransferError_=function(){this.JSC$12282_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new MZ("n"))};var ts=function(){_.rp.call(this)};
_.M(ts,_.rp);ts.prototype.createXhr=function(){var G=_.rp.prototype.createXhr.call(this);G.upload&&(G.upload.onprogress=(0,_.Hr)(this.onProgress_,this));return G};
ts.prototype.onProgress_=function(G){this.dispatchEvent(G)};var jwi=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},m3u=function(G,b){var I=G.attempt_+1;
if(G.maxAttempts_>0&&I>G.maxAttempts_)return!1;I==0?b():G.delayCallId_=PZ(function(){G.delayCallId_=null;b()},lDn(G),G);
G.attempt_=I;return!0};
jwi.prototype.reset=function(){this.delayCallId_&&_.hd.clearTimeout(this.delayCallId_);this.attempt_=-1};
var lDn=function(G){var b=250*Math.pow(2,G.attempt_);G.maxDelayMs_>=0&&(b=Math.min(b,G.maxDelayMs_));return b};var ZFO=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var zQ=function(){_.Z$.call(this);this.JSC$12292_request_=this.state_=null;this.JSC$12292_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12292_bytesTransferred_=0;this.retryIterator_=new jwi;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12292_errorDescription_=null;this.JSC$12292_eventHandler_=new _.Bh(this);_.M2(this,this.JSC$12292_eventHandler_);this.JSC$12292_url_=this.blob_=null;this.JSC$12292_method_=void 0;this.chunkSize_=this.JSC$12292_metadata_=
this.JSC$12292_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12292_responseText_=this.JSC$12292_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.OE(zQ,hl5);_.m=zQ.prototype;_.m.run=function(){oV(this)};
_.m.getResponseCode=function(){return this.JSC$12292_responseCode_};
_.m.getResponseText=function(){return this.JSC$12292_responseText_};
_.m.JSC$29908_getErrorDescription=function(){return this.JSC$12292_errorDescription_};
_.m.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12292_eventHandler_.removeAll();this.JSC$12292_request_&&this.JSC$12292_request_.abort();this.retryIterator_.reset();var G=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(G==="Upload"||G==="Query")G=new ts,G.JSC$9869_withCredentials_=this.JSC$12292_withCredentials_,G.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12292_bytesTransferred_=
0;this.dispatchEvent(new MZ("o"))}};
_.m.pause=function(){this.pauseRequested_=!0};
var oV=function(G){var b=G.state_;G.pauseRequested_?(G.pauseRequested_=!1,G.stateAfterUnpausing_=b,G.state_="Paused"):m3u(G.retryIterator_,function(){switch(G.state_){case "Start":G.JSC$12292_request_=new ts;var I=_.Cy.clone(G.JSC$12292_headers_);G.blob_.size!=null&&(I["Content-Length"]=G.blob_.size);I=tMO(I);I["X-Goog-Upload-Protocol"]="resumable";I["X-Goog-Upload-Command"]="start";G.JSC$12292_eventHandler_.removeAll();G.JSC$12292_eventHandler_.listen(G.JSC$12292_request_,"complete",G.onStartComplete_);
G.JSC$12292_request_.JSC$9869_withCredentials_=G.JSC$12292_withCredentials_;G.JSC$12292_request_.send(G.JSC$12292_url_,G.JSC$12292_method_,G.JSC$12292_metadata_,I);G.lastCommandResponseCode_=null;G.dispatchEvent(new Zf("q"));break;case "Upload":I=G.transferHandle_.uploadUrl_;var h=G.blob_.size;if(CUb()){var q=G.chunkSize_;var l=G.offset_+q>=h;h=Y3n(G.blob_,G.offset_,l?h:G.offset_+q)}else G.offset_=0,h=G.blob_,l=!0;G.JSC$12292_request_=new ts;G.JSC$12292_request_.JSC$9869_withCredentials_=G.JSC$12292_withCredentials_;
G.JSC$12292_eventHandler_.removeAll();G.JSC$12292_eventHandler_.listen(G.JSC$12292_request_,"progress",G.onUploadProgress_);q=(0,_.Hr)(G.JSC$12294_onUploadComplete_,G,G.offset_+h.size,l);G.JSC$12292_eventHandler_.listen(G.JSC$12292_request_,"complete",q);G.lastCommandResponseCode_=null;G.dispatchEvent(new Zf("q"));l=Object.assign({},G.JSC$12292_headers_||{},{"X-Goog-Upload-Command":"upload"+(l?", finalize":""),"X-Goog-Upload-Offset":G.offset_});G.JSC$12292_request_.send(I,"POST",h,l);break;case "Query":G.JSC$12292_request_=
new ts;G.JSC$12292_eventHandler_.removeAll();G.JSC$12292_eventHandler_.listen(G.JSC$12292_request_,"complete",G.onQueryComplete_);I=Object.assign({},G.JSC$12292_headers_||{},{"X-Goog-Upload-Command":"query"});G.JSC$12292_request_.send(G.transferHandle_.uploadUrl_,"POST","",I);G.lastCommandResponseCode_=null;G.dispatchEvent(new Zf("q"));break;default:throw Error("lf");}})||iC(G,"Transfer encountered too many consecutive failures.")},iC=function(G,b){G.state_="Error";
G.JSC$12292_errorDescription_=b;G.dispatchEvent(new MZ("n"))};
zQ.prototype.onStartComplete_=function(G){var b=G.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new Zf("r"));if(eli(b))V0B(this,b);else if(D3e(b)){G=lI(G.target.getAllResponseHeaders());for(var I in G)_.jv(I.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new MZ("m"));I=Lv(G,"X-Goog-Upload-URL");G=(G=Lv(G,"X-Goog-Upload-Chunk-Granularity"))?parseInt(G,10):1;I===void 0||isNaN(G)||G<=0?iC(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
G)*G,this.transferHandle_=new IDJ(I),this.dispatchEvent(new MZ("p")),this.state_="Upload",this.retryIterator_.reset(),oV(this))}else oV(this)};
zQ.prototype.onUploadProgress_=function(G){this.JSC$12292_bytesTransferred_=this.offset_+G.loaded;this.dispatchEvent(new MZ("k"))};
zQ.prototype.JSC$12294_onUploadComplete_=function(G,b,I){var h=this,q,l;return _.c(function(V){switch(V.nextAddress){case 1:q=I.target;h.lastCommandResponseCode_=q.getStatus();h.dispatchEvent(new Zf("r"));if(cun(q)||q.getStatus()==404)return h.JSC$12292_bytesTransferred_=G,V0B(h,q),V.return();if(D3e(q)){V.jumpTo(2);break}if(!(l=h.detectCorruptedBlobEnabled_)){V.jumpTo(3);break}return V.yield(kku(h),4);case 4:l=V.yieldResult;case 3:if(l)return iC(h,"Blob has been modified or corrupted."),V.return();
h.requireUploadRequestModification_=q.getStatus()==400;h.state_="Query";oV(h);return V.return();case 2:if(b)return iC(h,"Got a non-final success response after issuing a finalize command."),V.return();h.JSC$12292_bytesTransferred_=G;h.offset_=G;h.retryIterator_.reset();oV(h);return V.return()}})};
zQ.prototype.onQueryComplete_=function(G){var b=G.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new Zf("r"));eli(b)?(b.getStatus()===200&&(this.JSC$12292_bytesTransferred_=this.blob_.size),V0B(this,b)):D3e(b)?(G=lI(G.target.getAllResponseHeaders()),G=parseInt(Lv(G,"X-Goog-Upload-Size-Received"),10),isNaN(G)?iC(this,"Server did not respond with current offset."):G<this.offset_?iC(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
G+"."):this.requireUploadRequestModification_&&this.offset_===G?iC(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$12292_bytesTransferred_=G,this.state_="Upload",oV(this))):oV(this)};
var V0B=function(G,b){G.JSC$12292_responseCode_=b.getStatus();var I=lI(b.getAllResponseHeaders());zad(I);G.JSC$12292_responseText_=b.getResponseText();G.state_="Response received";G.dispatchEvent(new MZ("l"))},D3e=function(G){var b=G.getStatus();
G=lI(G.getAllResponseHeaders());G=Lv(G,"X-Goog-Upload-Status");return b===200&&G==="active"},cun=function(G){G=lI(G.getAllResponseHeaders());
return Lv(G,"X-Goog-Upload-Status")==="final"},eli=function(G){if(cun(G))return!0;
G=G.getStatus();return G>=400&&G<500},kku=function(G){var b;
return _.c(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);_.gm(I,2);if(b=Y3n(G.blob_,0,1)){var h=I.yield,q=new nF,l=Aab(q);q.reader_.readAsBinaryString(b);I=h.call(I,l,4)}else I=I.return(!0);return I}if(I.nextAddress!=2)return I.return(G.blob_.size!==G.originalBlobSize_);_.zf(I);return I.return(!0)})};var vlz=function(G,b,I,h,q,l){_.Z$.call(this);this.payload_=h;this.JSC$12295_url_=G;this.JSC$12295_method_=b;this.JSC$12295_headers_=I;this.JSC$12295_metadata_=q;this.encoding_=l||"binary";G=new _.dI;this.boundary_="uploader-"+$8()+"-"+G.JSC$11399_toIsoString();this.JSC$12295_responseText_=this.JSC$12295_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12295_errorDescription_=null;this.JSC$12295_eventHandler_=new _.Bh(this);_.M2(this,this.JSC$12295_eventHandler_)};
_.M(vlz,hl5);_.m=vlz.prototype;
_.m.run=function(){var G=_.Cy.clone(this.JSC$12295_headers_);this.payload_.length!=null&&(G["Content-Length"]=this.payload_.length);G=tMO(G);G["X-Goog-Upload-Protocol"]="multipart";G["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new ts;this.JSC$12295_eventHandler_.removeAll();this.JSC$12295_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12295_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12295_url_,this.JSC$12295_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12295_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)};
_.m.getResponseCode=function(){return this.JSC$12295_responseCode_};
_.m.getResponseText=function(){return this.JSC$12295_responseText_};
_.m.JSC$29908_getErrorDescription=function(){return this.JSC$12295_errorDescription_};
_.m.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12295_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new MZ("o")))};
_.m.pause=function(){};
_.m.onTransferProgress_=function(){this.dispatchEvent(new MZ("k"))};
_.m.onTransferComplete_=function(G){var b=G.target.getStatus();b===void 0||b===-1?(this.JSC$12295_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new MZ("n"))):(this.JSC$12295_responseCode_=b,G=G.target,b=lI(G.getAllResponseHeaders()),zad(b),this.JSC$12295_responseText_=G.getResponseText(),this.state_="Complete",this.dispatchEvent(new MZ("l")))};_.LMu=function(G,b,I,h){h=h===void 0?!1:h;if(I instanceof $3n)return new qaB(G,"POST",b,I.getInputElement(),"");if(typeof I==="string"||I instanceof String)return new vlz(G,"POST",b,I,"");var q=new zQ(void 0);q.JSC$12292_url_=G;q.JSC$12292_method_="POST";q.JSC$12292_headers_=b;q.blob_=I;q.originalBlobSize_=I.size;q.JSC$12292_metadata_="";h&&(q.JSC$12292_withCredentials_=h);q.state_="Start";return q};var PB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(PB,_.eo);_.m=PB.prototype;_.m.getEnableSsEngine=function(){return _.fp(this,2)};
_.m.getEnableAwr=function(){return _.fp(this,3)};
_.m.getAlohaAutoGaRollout=function(){return _.fp(this,5)};
_.m.getEnableConfigurator=function(){return _.fp(this,6)};
_.m.getEnableMweb=function(){return _.fp(this,7)};
var x3A=function(){var G=Qw8();return _.fv(G,7,!0)};
PB.prototype.getEnableCtlConsentCheckbox=function(){return _.fp(this,8)};
PB.prototype.getEnableIframe=function(){return _.fp(this,9)};
var Qw8=function(){var G=new PB;G=_.fv(G,5,!0);G=_.fv(G,2,!0);G=_.fv(G,4,!1);G=_.fv(G,8,!0);return _.fv(G,9,!0)};
PB.prototype.getEnableScreenshotNudge=function(){return _.fp(this,10)};
var fDu=function(){var G=x3A();return _.fv(G,10,!0)};
PB.prototype.getEnableWebStartupConfigEndpoint=function(){return _.fp(this,11)};
PB.prototype.getEnableJunkNudge=function(){return _.fp(this,12)};
var OFO=function(){var G=fDu();return _.fv(G,12,!0)};
_.m=PB.prototype;_.m.getEnableConfiguratorLocale=function(){return _.fp(this,13)};
_.m.getEnableTinyNoPointer=function(){return _.fp(this,14)};
_.m.getEnableSupportSessionLogging=function(){return _.fp(this,15)};
_.m.getEnableFileUploadForScreenshot=function(){return _.fp(this,16)};
_.m.getEnableDirectDeflectionForSingleCategory=function(){return _.fp(this,17)};
_.m.getEnableImageSanitization=function(){return _.fp(this,18)};
_.m.getEnableAlohaBinarySplit=function(){return _.fp(this,19)};
_.m.getEnableDbFeedbackIntents=function(){return _.fp(this,20)};
_.m.getEnableMarkMandatoryFieldsWithRequired=function(){return _.fp(this,21)};
_.m.getEnableFeedbackCategoryCustomUi=function(){return _.fp(this,22)};
_.m.getEnableRealtimeCtl=function(){return _.fp(this,23)};var njr=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(njr,_.eo);var ojj=[/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 PYv="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 dHu=_.WP(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),ywp=_.WP(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Qf=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"};
_.M(Qf,Error);var F8v,aQp,HF2,NIu;var d0,TY5;
d0=function(G,b,I){G.timeOfStartCall=(new Date).getTime();var h=I||_.hd,q=h.document,l=G.nonce||_.I$(h.document);l&&!G.nonce&&(G.nonce=l);if(G.flow=="help"){var V=_.Ge("document.location.href",h);!G.helpCenterContext&&V&&(G.helpCenterContext=V.substring(0,1200));V=!0;if(b&&JSON&&JSON.stringify){var D=JSON.stringify(b);(V=D.length<=1200)&&(G.psdJson=D)}V||(b={invalidPsd:!0})}b=[G,b,I];h.GOOGLE_FEEDBACK_START_ARGUMENTS=b;I=G.feedbackServerUri||"//www.google.com/tools/feedback";if(V=h.GOOGLE_FEEDBACK_START)V.apply(h,b);
else{h=I+"/load.js?";for(var k in G)b=G[k],b==null||_.Oj(b)||(h+=encodeURIComponent(k)+"="+encodeURIComponent(b)+"&");G=rV(q).createElement("SCRIPT");l&&G.setAttribute("nonce",l);_.mf(G,_.Pg(h));q.body.appendChild(G)}};
TY5=function(G,b,I,h){var q,l;return _.c(function(V){q=I||_.hd;var D=G.serverEnvironment==="DEV",k=I||_.hd;k=G.nonce||_.I$(k.document);D={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:D,nonce:k,useNightlyRelease:D,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}};b&&(k=new Map(Object.entries(b)),D.extraData.productSpecificData=k);l=D;return V.yield(K8j(l,h,q),0)})};
_.BY8=function(G,b,I){try{if(G.flow==="help"){var h=G.helpCenterPath.replace(/^\//,"");_.bp(I||window,"https://support.google.com/"+h)}else G.flow==="submit"?d0(G,b,I):wna(G.productId,G.feedbackServerUri).then(function(q){q=_.fi(q,PB,1);var l=!w2b||(q==null?void 0:q.getEnableMweb()),V=!G.tinyNoPointer||(q==null?void 0:q.getEnableTinyNoPointer());!q||q.getAlohaAutoGaRollout()&&l&&V?TY5(G,b,I,q).catch(function(D){!D||D instanceof Qf||d0(G,b,I)}):d0(G,b,I)},function(q){!q||q instanceof Qf||d0(G,b,I)})}catch(q){TY5(G,
b,I,null).catch(function(l){!l||l instanceof Qf||d0(G,b,I)})}};
_.cz("userfeedback.api.startFeedback",_.BY8);var Ej2=/https?:\/\/\S+\.\S+/,pns=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],ScO=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Jq2=function(G){var b=G.split(""),I=[-263237435,15,b,function(h,q,l){var V=q.length;l.forEach(function(D,k,L){this.push(L[k]=q[(q.indexOf(D)-q.indexOf(this[k])+k+V--)%q.length])},h.split(""))},
function(h,q){h=(h%q.length+q.length)%q.length;q.splice(-h).reverse().forEach(function(l){q.unshift(l)})},
"response",function(){for(var h=64,q=[];++h-q.length-32;){switch(h){case 58:h-=14;case 91:case 92:case 93:continue;case 123:h=47;case 94:case 95:case 96:continue;case 46:h=95}q.push(String.fromCharCode(h))}return q},
null,12,1540023973,65941107,null,b,function(h,q){for(h=(h%q.length+q.length)%q.length;h--;)q.unshift(q.pop())},
695603893,function(h){for(var q=h.length;q;)h.push(h.splice(--q,1)[0])},
"'[;'[(",function(h,q){h.push(q)},
null,function(h,q,l,V,D){return q(l,V,D)},
"continuation",b,function(h,q){if(h.length!=0){q=(q%h.length+h.length)%h.length;var l=h[0];h[0]=h[q];h[q]=l}},
function(){for(var h=64,q=[];++h-q.length-32;){switch(h){case 91:h=44;continue;case 123:h=65;break;case 65:h-=18;continue;case 58:h=96;continue;case 46:h=95}q.push(String.fromCharCode(h))}return q},
'"),/]];'];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(h){return"aTlOUOubTO4AP____8P_"+G}return b.join("")};_.U3Q=new _.hu("runAttestationCommand");var sw8=new _.hu("verifyCommand");_.DA=new _.hu("accessibilityContext");var glJ=new _.hu("accessibilityData");var AuO=new _.hu("profileCardCommand");var dGO=new _.hu("signInEndpoint");var PJB=new _.hu("signOutEndpoint");var Z6i;_.M0e=new _.hu("accountItemSectionRenderer");Z6i=new _.hu("accountItemRenderer");_.t0O=new _.hu("saveCommandToSessionStorageAction");var zlz=new _.hu("crossAccountChannelTransferEndpoint");var AmO=new _.hu("getAccountMenuEndpoint");_.MpO=new _.hu("getAccountSwitcherEndpoint");var gCd=new _.hu("getAccountsListEndpoint");var olu=new _.hu("getAccountsListInnertubeEndpoint");_.i6J=new _.hu("addToToastAction");var POQ=new _.hu("hideEnclosingAction");_.y$=new _.hu("replaceEnclosingAction");var d3i=new _.hu("buttonRefreshAction");var yu5=new _.hu("adsControlFlowOpportunityReceivedCommand");var ru8=new _.hu("openAdAllowlistInstructionCommand");var FMu=new _.hu("videoMastheadAdPrimaryVideoRenderer");var H6Q=new _.hu("displayAdRenderer");_.WMX=new _.hu("inFeedAdLayoutRenderer");var aDB=new _.hu("sequenceItemInPlayerAdLayoutRenderer");_.NYb=new _.hu("adSlotRenderer");var YaB=new _.hu("adAvatarViewModel");var COi=new _.hu("adBadgeViewModel");var Jun=new _.hu("adButtonViewModel");var KMu=new _.hu("adImageViewModel");var wEB=new _.hu("reelsAdCardButtonedViewModel");var uzn=new _.hu("reelsPlayerOverlayLayoutViewModel");var Rl5=new _.hu("formDataDecoratorCommand");var nle=new _.hu("updateConversationIdCommand");var O6n=new _.hu("showSchedulingPanelCommand");var woz=new _.hu("backstageCommentsRenderer");var El5=new _.hu("backstageImageRenderer");var po8=new _.hu("backstagePostRenderer");var SaW=new _.hu("backstageZeroStateRenderer");var XoA=new _.hu("postRenderer");var $HQ=new _.hu("sharedPostRenderer");var GSu=new _.hu("createBackstagePostEndpoint");var bFi=new _.hu("getPostVideoPreviewEndpoint");var IQe=new _.hu("updateBackstagePostEndpoint");var hau=new _.hu("filterChipTransformCommand");var qcB=new _.hu("insertRichSectionCommand");var TMO=new _.hu("talkToRecsDeselectCommand");var jzX=new _.hu("talkToRecsNextCommand");var fwu=new _.hu("talkToRecsSelectCommand");var wGr=new _.hu("talkToRecsUpdateTextCommand");_.jL=new _.hu("browseEndpoint");_.lQJ=new _.hu("confirmDialogEndpoint");var mHe=new _.hu("expandOnHoverCardRenderer");var eaB=new _.hu("lumiereShelfDetailsRenderer");var VMn=new _.hu("revealBusinessEmailCommand");var DHQ=new _.hu("validateChannelHandleCommand");var cwX=new _.hu("channelCreationFormEndpoint");var kSi=new _.hu("aboutChannelViewModel");var vju=new _.hu("channelThumbnailWithLinkRenderer");var L8b=new _.hu("channelCreationServiceEndpoint");var Qze=new _.hu("updateChannelPageSettingsEndpoint");var r0=function(G){this.delegate=G},F_=function(){r0.apply(this,arguments)};
_.M(F_,r0);_.kV.Object.defineProperties(F_.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(G){this.delegate.entityMetadata=G}}});var xHW=function(){F_.apply(this,arguments)};
_.M(xHW,F_);xHW.prototype.getAssociations=function(){return[]};
xHW.prototype.getTypeName=function(){return"channelHandle"};var tip=new _.hu("webThumbnailDetailsExtensionData");_.gQ=new _.hu("commandContext");var fQJ=new _.hu("addVideoLinkAction");var TIJ=new _.hu("banAuthorAction");var BIi=new _.hu("createCommentAction");var UHW=new _.hu("createCommentReplyAction");var szO=new _.hu("createPollAction");var gje=new _.hu("hideIdentityChipAction");var AwB=new _.hu("openUpdateCommentDialogAction");var MMz=new _.hu("pinCommentAction");var ZFQ=new _.hu("removeCommentAction");var tMJ=new _.hu("unpinCommentAction");var HB=new _.hu("updateBackstagePollAction");var za5=new _.hu("updateCommentVoteAction");var oju=new _.hu("commentThreadRenderer");var iFB=function(){F_.apply(this,arguments)};
_.M(iFB,F_);iFB.prototype.getAssociations=function(){return[]};
iFB.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var PYB=function(){F_.apply(this,arguments)};
_.M(PYB,F_);PYB.prototype.getAssociations=function(){return[]};
PYB.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.dHi=new _.hu("commentDialogRenderer");var ywO=new _.hu("reloadCommentsCommand");var rwn=new _.hu("updateCommentsSettingsEndpoint");var F8B=new _.hu("commentViewModel");var HFX=new _.hu("triStateButtonViewModel");var W8z=new _.hu("voiceReplyContainerViewModel");_.$P=new _.hu("commandExecutorCommand");var T3=new _.hu("emoji");var aQO=new _.hu("updateCreatorChannelInnertubeCommand");_.NIi=new _.hu("appendContinuationItemsAction");_.Yce=new _.hu("changeEngagementPanelVisibilityAction");_.Aa=new _.hu("continuationCommand");var CY5=new _.hu("hideReportedCommentAction");var Jw8=new _.hu("listMutationCommand");_.WB=new _.hu("openPopupAction");var K8u=new _.hu("persistSubscriptionsDisplayPreferencesCommand");var ScQ;_.uHW=new _.hu("playlistRemoveVideosAction");_.RaO=new _.hu("updatePlaylistAction");_.nje=new _.hu("addToPlaylistCommand");_.OFn=new _.hu("endPlaylistCommand");_.wnb=new _.hu("recoverPlaylistCommand");_.EjX=new _.hu("refreshPlaylistCommand");_.pnn=new _.hu("refreshFormCommand");ScQ=new _.hu("openOnePickAddVideoModalCommand");_.dNO=new _.hu("reloadContinuationItemsCommand");_.Xnn=new _.hu("scrollToEngagementPanelCommand");var $sn=new _.hu("selectCountryCommand");var GTO=new _.hu("showReloadUiCommand");var bYz=new _.hu("undoFeedbackAction");var IiA=new _.hu("updateButtonAction");var hqJ=new _.hu("updateSubscribeButtonAction");var qKu=new _.hu("updateToggleAction");var juO=new _.hu("webNativeShareCommand");_.IW=new _.hu("webCommandMetadata");_.aV=new _.hu("webHandleServiceEndpointExtension");var geO=new _.hu("webNavigationEndpointData");var liX=new _.hu("backgroundAudioPlaybackCommand");var msX=new _.hu("copyLinkCommand");var eqe=new _.hu("playlistVotingRefreshPopupCommand");var VbJ=new _.hu("selectChipCommand");var Dsi=new _.hu("setCookieCommand");var crJ=new _.hu("setLocalStorageCommand");var kTA=new _.hu("setPrefStorageEntryCommand");var xsJ;_.v6O=new _.hu("settingsUpdateCheckboxCommand");_.Llb=new _.hu("settingsUpdateTextCommand");_.Qui=new _.hu("settingsUpdateOptionsCommand");xsJ=new _.hu("settingsUpdateSwitchCommand");_.fin=new _.hu("settingsUpdateConnectedAppRendererCommand");var Tru=new _.hu("showCreatorChatbotEngagementPanelCommand");var BrJ=new _.hu("updateTextInputFormFieldRendererCommand");var UsO=new _.hu("updateToggleButtonStateCommand");var g6B=new _.hu("updateUrlParamCommand");var ArA=new _.hu("webSubmitFormCommand");var MbB=new _.hu("channelSwitcherPageRenderer"),ZYn=new _.hu("updateChannelSwitcherPageAction");_.Yg=new _.hu("continuationItemRenderer");_.NZ=new _.hu("richItemRenderer");var tbX=new _.hu("richSectionRenderer");_.zqu=new _.hu("richShelfRenderer");_.o6u=new _.hu("metadataBadgeRenderer");_.iYX=new _.hu("multiPageMenuNotificationSectionRenderer");_.PQz=new _.hu("playlistLoopButtonStateRenderer");var dsi=new _.hu("claimLegacyYoutubeChannelEndpoint");var yrJ=new _.hu("getNotificationMenuEndpoint");var rrX=new _.hu("getSearchInVideoCommand");_.Fln=new _.hu("getTranscriptEndpoint");_.b9=new _.hu("signalServiceEndpoint");var HYn=new _.hu("verifyAgeEndpoint");var R_B=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(R_B,_.eo);R_B.prototype.getPath=function(){return _.U5(this,1)};
R_B.prototype.getValue=function(){return _.U5(this,2)};var WlQ=[0,_.RR,-1];var aiW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(aiW,_.eo);var uyr=_.T7(aiW,[0,_.wU,WlQ]);var NrJ=new _.hu("dismissalEndpoint");var YKi=new _.hu("elementsCommand");_.U0=new _.hu("innertubeCommand");var CQn=new _.hu("multipleInlinePlaybackCommand");var llX=new _.hu("loggingDirectives");var Jru=new _.hu("acknowledgeChannelTouStrikeCommand");var Kl5=function(){F_.apply(this,arguments)};
_.M(Kl5,F_);Kl5.prototype.getAssociations=function(){return[]};
Kl5.prototype.getTypeName=function(){return"booleanEntity"};var uZA=function(){F_.apply(this,arguments)};
_.M(uZA,F_);uZA.prototype.getAssociations=function(){return[]};
uZA.prototype.getTypeName=function(){return"stringEntity"};var rR=new _.hu("entityBatchUpdate");_.Rqb=new _.hu("entityUpdateCommand");var n6J=function(){F_.apply(this,arguments)};
_.M(n6J,F_);n6J.prototype.getAssociations=function(){var G=[];this.delegate.alternateChannel&&G.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&G.push.apply(G,_.Nz(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&G.push(this.delegate.oneofChannelEntity);return[].concat(_.Nz(new Set(G)))};
n6J.prototype.getTypeName=function(){return"fakeChannel"};var OYi=function(){F_.apply(this,arguments)};
_.M(OYi,F_);OYi.prototype.getAssociations=function(){var G=[];this.delegate.entryCollection&&G.push(this.delegate.entryCollection);return[].concat(_.Nz(new Set(G)))};
OYi.prototype.getTypeName=function(){return"fakePlaylist"};
var wOX=function(){F_.apply(this,arguments)};
_.M(wOX,F_);wOX.prototype.getAssociations=function(){var G=[];this.delegate.parentPlaylist&&G.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var b=_.e(this.delegate.entries),I=b.next();!I.done;I=b.next())G.push.apply(G,_.Nz((new E65(I.value)).getAssociations()));return[].concat(_.Nz(new Set(G)))};
wOX.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var E65=function(){r0.apply(this,arguments)};
_.M(E65,r0);E65.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);return[].concat(_.Nz(new Set(G)))};var pO8=function(){F_.apply(this,arguments)};
_.M(pO8,F_);pO8.prototype.getAssociations=function(){var G=[];this.delegate.descriptionEntity&&G.push(this.delegate.descriptionEntity);this.delegate.creators&&G.push.apply(G,_.Nz(this.delegate.creators));this.delegate.theBiggestFan&&G.push(this.delegate.theBiggestFan);return[].concat(_.Nz(new Set(G)))};
pO8.prototype.getTypeName=function(){return"fakeVideo"};
var SKn=function(){F_.apply(this,arguments)};
_.M(SKn,F_);SKn.prototype.getAssociations=function(){return[]};
SKn.prototype.getTypeName=function(){return"fakeVideoDescription"};var XOA=new _.hu("fantasyRosterViewModel");var $ZW=new _.hu("addFollowUpSurveyCommand");var GQA=new _.hu("getSurveyCommand");var bbX=new _.hu("ratingSurveyOptionRenderer");_.sE=new _.hu("feedbackEndpoint");var IfB=new _.hu("reportHistoryTableCellRenderer"),hGu=new _.hu("reportHistoryTableTextCellRenderer"),qUn=new _.hu("reportHistoryTableReasonCellRenderer");_.jVe=new _.hu("flagEndpoint");_.lfb=new _.hu("flowNextStepCommand");_.mZA=new _.hu("flowPrevStepCommand");var eGn=new _.hu("getFlowCommand");var VIi=new _.hu("submitFormWithValidationFlowCommand");_.DZn=new _.hu("updateFlowCommand");var csz=function(){F_.apply(this,arguments)};
_.M(csz,F_);csz.prototype.getAssociations=function(){return[]};
csz.prototype.getTypeName=function(){return"flowStateEntity"};var kQu=new _.hu("flowFormState");_.Yf=new _.hu("flowStepRenderer");var vfQ=new _.hu("gameCardRenderer");var L4X=new _.hu("accountLinkingStateChangedCommand");var QVJ=function(){F_.apply(this,arguments)};
_.M(QVJ,F_);QVJ.prototype.getAssociations=function(){return[]};
QVJ.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var xZi=new _.hu("changeMiniAppPlayStateCommand");var ffB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(ffB,_.eo);var Cb=[1,2,3];var T0B=[0,Cb,zen,_.O5,BjB];var B0i=_.T7(ffB,T0B),UZn=_.Uv(T0B);var sVX=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(sVX,_.eo);var gfX=[0,_.aR,_.RR];var AsB=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(AsB,_.eo);var MIn=[0,_.RR,_.aR,-1];var Js=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Js,_.eo);var ZbJ=_.Uv([0,1,gfX,_.Xc,MIn]);var tIQ=new _.hu("miniAppScoreChallengeViewModel");var zGX=new _.hu("miniGameCardViewModel");var ofO=new _.hu("teaserCardViewModel");var ibB=function(){F_.apply(this,arguments)};
_.M(ibB,F_);ibB.prototype.getAssociations=function(){return[]};
ibB.prototype.getTypeName=function(){return"logoEntity"};var PCb=new _.hu("feedbackItemRenderer");var dZe=function(){F_.apply(this,arguments)};
_.M(dZe,F_);dZe.prototype.getAssociations=function(){return[]};
dZe.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.ysn=new _.hu("playerInterstitialRenderer");var rsu=new _.hu("getKidsBlocklistPickerCommand");_.F4A=new _.hu("updateKidsBlacklistEndpoint");_.tx=new _.hu("likeEndpoint");var HbO,W4B,afQ;HbO=new _.hu("addChatItemAction");W4B=new _.hu("removeChatItemAction");afQ=new _.hu("markChatItemAsDeletedAction");_.N0O=new _.hu("setLiveChatCollapsedStateAction");var YUi=function(){F_.apply(this,arguments)};
_.M(YUi,F_);YUi.prototype.getAssociations=function(){return[]};
YUi.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var CCW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(CCW,_.eo);CCW.prototype.getPayloadCase=function(){return _.kY(this,Jsi)};
var Jsi=[3,4];var K45=[0,_.wU,[0,[1,2],_.O5,_.E5,[0,_.np,1,_.np]]];var u_Q=[0,_.RR,-1];var RGB=[0,[1],_.O5];var Kb=[0,[1,2],_.O5,_.E5,[0,_.Xc]];var uC=[0,_.RR];var nfn=[0,[0,_.Kp,_.JJ,[0,_.np,_.$4,_.np]],1,[0,_.Kp]];var Obe=[0,NC];var wBn=[0,NC];var Efu=[0,wBn,Obe];var pBn=[0,_.wU,[0,[1,2],_.O5,-1],_.Kp];var SUn=[0,[2],1,_.E5,[0,_.np,-1,pBn]];var XBu=[0,[1],_.E5,[0,_.np,_.RR,_.$4,1,pBn]];var $jX=[0,_.JJ,-1,Tjn,_.Xc];var GWA=[0,[0,W8,-3],-4];var RV=[0,_.Kp,-3,_.RR,_.Kp,_.IT,_.Kp,K45,_.Kp,-2];var nb=[0,_.wU,[0,[1,2],_.O5,-1],_.Kp,_.RR];var bmJ=[0,[3],Kb,[0,[2,3,4],ycb,_.O5,-2],_.E5,[0,_.RR],_.aR];var IRe=[0,[3,5],_.RR,_.YY,_.E5,[0,1,_.aR,_.Xc],_.Xc,_.E5,[0,_.Xc,_.aR]];var hXu=[0,2,_.YY,_.RR,-1];var qLu=[0,ZDW];var jae=[0,[3,4],2,s5B,_.O5,_.RR];var lRn=[0,_.Xc,-2,1,_.RR];var mjQ=[0,_.RR,-1,_.Xc];var eXX=[0,uC,function(){return OU},
uC,_.RR],V6z=[0,_.Xc,uC,Kb,function(){return OU},
_.RR],OU=[-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],uC,_.YY,[0,_.Kp,1,_.Kp,1,_.Kp,1,_.Xc,-1,uC],[0,1,_.Kp,2,_.Kp,_.Xc,_.Kp],1,_.YY,-1,_.RR,_.YY,2,W8,[0,W8,_.YY],_.RR,1,nfn,1,Kb,_.IT,1,[0,[0,_.wU,[0,_.RR,_.Kp,_.Xc]]],[0,_.Kp,[0,_.aR,[0,_.$4]],_.aR,1,[0,AcX,-1]],_.RR,[0,1,_.RR],76,_.E5,[0,Kb,nb,nfn,1,[0,_.wU,nb]],1,_.E5,[0,Kb,_.RR,_.Kp],
_.E5,[0,Kb,RGB],_.E5,[0,Kb,RGB,_.YY],_.E5,[0,Kb,RGB],_.E5,[0,Kb,_.wU,uC,Kb,o3A],_.E5,[0,Kb,uC,_.RR],_.E5,[0,Kb,_.Kp,RV,-1,_.Kp],4,_.E5,[0,Kb,_.Kp,_.YY,RV,_.Kp],_.E5,[0,[4,9],Kb,_.Xc,_.YY,_.O5,nb,1,nfn,_.RR,_.O5,lRn],_.E5,[0,Kb,uC,Kb,_.Xc,_.RR],_.E5,[0,_.Kp,Kb,RV,_.Kp,_.RR],_.E5,[0,Kb,uC,Kb,_.Xc,_.RR],1,_.E5,[0,Kb,_.Xc,_.RR,RV],_.E5,[0,Kb,_.Xc,[0,_.RR,_.YY],_.RR,_.YY,_.RR,_.SR,-2,3,mjQ,_.wU,mjQ,mjQ,lRn],_.E5,[0,Kb,_.Xc,XBu,_.wU,[0,wBn,SUn],uC,_.wU,Efu,_.RR,1,_.Xc,$jX,GWA,fYJ,-1],_.E5,[0,Kb,[0,_.$4,
-1,XBu,_.wU,[0,wBn,SUn,Obe],[0,_.hK],1,_.np],uC,_.RR],_.E5,[0,Kb,nb,_.RR,[0,_.JJ]],_.E5,function(){return V6z},
_.E5,[0,Kb,_.YY,_.RR,-1,_.Kp],_.E5,[0,[6,7],Kb,_.wU,hXu,_.Xc,nb,1,_.E5,jae,_.E5,qLu],_.E5,[0,_.wU,hXu,_.Xc,_.Kp],_.E5,[0,_.RR,zje,-1],_.E5,[0,uC,_.wU,Efu,_.RR],_.E5,[0,Kb,uC,_.RR],_.E5,[0,_.SR,_.RR],_.E5,[0,u_Q],_.E5,[0,u_Q],_.E5,[0,nb],_.E5,[0,uC,nb],_.E5,function(){return eXX},
_.E5,[0,uC,_.RR],_.E5,[0,uC,_.RR],1,_.E5,[0,_.Kp,Kb,RV,_.Kp,RV],_.E5,[0,_.hK],1,_.E5,[0],1,_.E5,[0,uC,_.Xc,Kb,_.Xc],_.E5,[0,[1,2],_.E5,jae,_.E5,qLu,_.YY],_.E5,[0,_.hK,nb,IRe,_.RR,_.YY],_.E5,[0,IRe,_.RR,_.YY],_.E5,[0,$jX,nb,_.Kp,GWA],_.E5,bmJ,_.E5,[0],_.E5,[0,_.RR,-1,_.aR],_.E5,[0,uC,_.RR],_.E5,[0,bmJ,_.aR,_.RR],_.E5,[0,Kb,RV,_.Kp],_.E5,[0,Kb,RV,_.Kp],_.E5,[0,$jX,GWA,nb,_.IT,_.Kp,fYJ,-1],_.E5,[0,Kb,RV,_.Kp]];var Djb=[0,_.wU,OU];var ceA=_.T7(CCW,[0,Jsi,1,_.aR,_.E5,[0,[18,22,24],Djb,3,[0,Djb],1,_.aR,[0,_.wU,[0,_.YY,W8],_.YY],1,OU,-1,[0,_.u3,-2,_.IT,_.u3,-1,_.IT,_.u3,K45,_.u3,-2],Q5z,[!0,_.RR,[0,RGB,2,_.RR,_.YY,_.Kp,2,_.RR,_.SR]],[0,[1,2,3],[5,6],_.E5,[0,_.np],_.E5,[0,_.np,-1],_.E5,[0,_.np],1,_.E5,u_Q,_.E5,[0,_.RR]],[0,OU,-1],_.hK,OU,_.E5,OU,[0,Djb],_.aR,OU,_.E5,OU,_.RR,_.E5,OU],_.E5,OGn,_.aR]);var kWe=new _.hu("liveChatEndpoint");var vFW=new _.hu("liveChatItemContextMenuEndpoint");var LSe=new _.hu("liveChatReplayEndpoint");_.Qan=new _.hu("emojiPickerRenderer");var xji=new _.hu("liveChatAuthorBadgeViewModel");var fRb=new _.hu("deleteLiveChatMessageCommand");var TSu=new _.hu("liveChatActionEndpoint");var BSe=new _.hu("createLiveChatPollEndpoint");var Uju=new _.hu("manageLiveChatUserEndpoint");var sa5=new _.hu("moderateLiveChatEndpoint");_.gFe=new _.hu("sendLiveChatMessageEndpoint");var AeQ=new _.hu("sendLiveChatVoteEndpoint");var M6B=new _.hu("clearLocationCommand");var ZmJ=new _.hu("resolveLocationCommand");var t6n=new _.hu("interactionLoggingCommandMetadata");var zXJ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(zXJ,_.eo);var oFX=function(G,b){return _.Tx(G,1,b)};var imz=[0,_.Kp];var PzO=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(PzO,_.eo);var djz=function(G,b){return oB(G,1,zXJ,b)};PzO.prototype.JSC$12391_serializeBinary=RKj([0,_.wU,imz]);var BrO={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 ye5={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"},
reO={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 GAp={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"};_.OlB=new _.hu("logFlowLoggingEventCommand");_.jA=new _.hu("loggingContext");var FSb=new _.hu("audioTrackSelectActionCommand");var HmO=new _.hu("captionLanguageSelectActionCommand");var WSn=new _.hu("showAudioTrackPickerActionCommand");var aRO=new _.hu("showCaptionLanguageSelectActionCommand");var NSW=new _.hu("dismissDialogEndpoint");var YLi=new _.hu("dismissPlayerOverlayCommand");var CzX=new _.hu("hideItemSectionVideosByIdCommand");var Jee=new _.hu("showMiniplayerCommand");var KSe=function(){F_.apply(this,arguments)};
_.M(KSe,F_);KSe.prototype.getAssociations=function(){return[]};
KSe.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var ugW=function(){F_.apply(this,arguments)};
_.M(ugW,F_);ugW.prototype.getAssociations=function(){return[]};
ugW.prototype.getTypeName=function(){return"downloadStatusEntity"};var RXz=function(){F_.apply(this,arguments)};
_.M(RXz,F_);RXz.prototype.getAssociations=function(){return[]};
RXz.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var nFO=function(){F_.apply(this,arguments)};
_.M(nFO,F_);nFO.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(_.Nz(new Set(G)))};
nFO.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var Omb=function(){F_.apply(this,arguments)};
_.M(Omb,F_);Omb.prototype.getAssociations=function(){var G=[];this.delegate.refresh&&G.push(this.delegate.refresh);if(this.delegate.downloads)for(var b=_.e(this.delegate.downloads),I=b.next();!I.done;I=b.next())G.push.apply(G,_.Nz((new ws5(I.value)).getAssociations()));return[].concat(_.Nz(new Set(G)))};
Omb.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var ws5=function(){r0.apply(this,arguments)};
_.M(ws5,r0);ws5.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(_.Nz(new Set(G)))};var EFA=function(){F_.apply(this,arguments)};
_.M(EFA,F_);EFA.prototype.getAssociations=function(){var G=[];this.delegate.localImageEntities&&G.push.apply(G,_.Nz(this.delegate.localImageEntities));return[].concat(_.Nz(new Set(G)))};
EFA.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var psz=function(){F_.apply(this,arguments)};
_.M(psz,F_);psz.prototype.getAssociations=function(){var G=[];this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.localImageEntities&&G.push.apply(G,_.Nz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Nz(new Set(G)))};
psz.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var SLi=function(){F_.apply(this,arguments)};
_.M(SLi,F_);SLi.prototype.getAssociations=function(){return[]};
SLi.prototype.getTypeName=function(){return"offlineabilityEntity"};var Xs8=function(){F_.apply(this,arguments)};
_.M(Xs8,F_);Xs8.prototype.getAssociations=function(){var G=[];this.delegate.fakeChildren&&G.push.apply(G,_.Nz(this.delegate.fakeChildren));return[].concat(_.Nz(new Set(G)))};
Xs8.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var $Sn=function(){F_.apply(this,arguments)};
_.M($Sn,F_);$Sn.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(_.Nz(new Set(G)))};
$Sn.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var GUe=function(){F_.apply(this,arguments)};
_.M(GUe,F_);GUe.prototype.getAssociations=function(){return[]};
GUe.prototype.getTypeName=function(){return"continuationTokenEntity"};var bRu=function(){F_.apply(this,arguments)};
_.M(bRu,F_);bRu.prototype.getAssociations=function(){var G=[];this.delegate.channelOwner&&G.push(this.delegate.channelOwner);this.delegate.videos&&G.push.apply(G,_.Nz(this.delegate.videos));this.delegate.collaboratorChannels&&G.push.apply(G,_.Nz(this.delegate.collaboratorChannels));this.delegate.downloadState&&G.push(this.delegate.downloadState);this.delegate.refresh&&G.push(this.delegate.refresh);return[].concat(_.Nz(new Set(G)))};
bRu.prototype.getTypeName=function(){return"mainPlaylistEntity"};var Ige=function(){F_.apply(this,arguments)};
_.M(Ige,F_);Ige.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.channelContributor&&G.push(this.delegate.channelContributor);return[].concat(_.Nz(new Set(G)))};
Ige.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var h4i=function(){r0.apply(this,arguments)};
_.M(h4i,r0);h4i.prototype.getAssociations=function(){var G=[];this.delegate.recommendedVideoMetadata&&G.push.apply(G,_.Nz((new qNX(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Nz(new Set(G)))};
var qNX=function(){r0.apply(this,arguments)};
_.M(qNX,r0);qNX.prototype.getAssociations=function(){var G=[];this.delegate.localImageEntities&&G.push.apply(G,_.Nz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Nz(new Set(G)))};var jCJ=function(){r0.apply(this,arguments)};
_.M(jCJ,r0);jCJ.prototype.getAssociations=function(){var G=[];this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);return[].concat(_.Nz(new Set(G)))};var lgA=function(){F_.apply(this,arguments)};
_.M(lgA,F_);lgA.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,_.Nz((new jCJ(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&G.push.apply(G,_.Nz((new h4i(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Nz(new Set(G)))};
lgA.prototype.getTypeName=function(){return"mainVideoEntity"};var mS8=function(){F_.apply(this,arguments)};
_.M(mS8,F_);mS8.prototype.getAssociations=function(){var G=[];this.delegate.userChannelDetails&&G.push(this.delegate.userChannelDetails);return[].concat(_.Nz(new Set(G)))};
mS8.prototype.getTypeName=function(){return"ytMainChannelEntity"};var e4u=function(){F_.apply(this,arguments)};
_.M(e4u,F_);e4u.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,_.Nz(this.delegate.localImageEntities));this.delegate.downloadStatus&&G.push(this.delegate.downloadStatus);return[].concat(_.Nz(new Set(G)))};
e4u.prototype.getTypeName=function(){return"ytMainVideoEntity"};var BsO=new _.hu("downloadsPageSmartDownloadsOptInBannerParams");var AVq=new _.hu("downloadsPageUpsellBannerParams");var VmQ=function(){F_.apply(this,arguments)};
_.M(VmQ,F_);VmQ.prototype.getAssociations=function(){return[]};
VmQ.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var DS8=function(){F_.apply(this,arguments)};
_.M(DS8,F_);DS8.prototype.getAssociations=function(){return[]};
DS8.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var cnb=function(){F_.apply(this,arguments)};
_.M(cnb,F_);cnb.prototype.getAssociations=function(){return[]};
cnb.prototype.getTypeName=function(){return"macroMarkerEntity"};var kU5=function(){F_.apply(this,arguments)};
_.M(kU5,F_);kU5.prototype.getAssociations=function(){return[]};
kU5.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var vqQ=function(){F_.apply(this,arguments)};
_.M(vqQ,F_);vqQ.prototype.getAssociations=function(){return[]};
vqQ.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var Lqn=function(){F_.apply(this,arguments)};
_.M(Lqn,F_);Lqn.prototype.getAssociations=function(){return[]};
Lqn.prototype.getTypeName=function(){return"playerStateEntity"};var QC8=function(){F_.apply(this,arguments)};
_.M(QC8,F_);QC8.prototype.getAssociations=function(){return[]};
QC8.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var xSB=function(){F_.apply(this,arguments)};
_.M(xSB,F_);xSB.prototype.getAssociations=function(){return[]};
xSB.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var fgX=function(){F_.apply(this,arguments)};
_.M(fgX,F_);fgX.prototype.getAssociations=function(){return[]};
fgX.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.w0=new _.hu("dislikeButtonViewModel");_.EU=new _.hu("likeButtonViewModel");var TZi=new _.hu("videoSummaryContentViewModel");var BZJ=new _.hu("videoSummaryParagraphViewModel");var USJ=new _.hu("changeTimelyActionVisibilityCommand");var sCJ=new _.hu("hideEngagementPanelEndpoint");var gqX=new _.hu("refreshPanelEndpoint");var Ani=new _.hu("scrollToSectionEndpoint");var Mmn=new _.hu("seekToVideoTimestampCommand");_.UE=new _.hu("showEngagementPanelEndpoint");var ZRn=new _.hu("showTransientPlayerScrimOverlayCommand");var tmW=new _.hu("toggleEngagementPanelCommand");_.z4u=new _.hu("createBroadcastCommand");var oqe=new _.hu("metadataUpdateCommand");var iRX=function(){F_.apply(this,arguments)};
_.M(iRX,F_);iRX.prototype.getAssociations=function(){return[]};
iRX.prototype.getTypeName=function(){return"featuredProductsEntity"};var PdX=function(){F_.apply(this,arguments)};
_.M(PdX,F_);PdX.prototype.getAssociations=function(){return[]};
PdX.prototype.getTypeName=function(){return"pinnedProductEntity"};var dSQ=function(){F_.apply(this,arguments)};
_.M(dSQ,F_);dSQ.prototype.getAssociations=function(){return[]};
dSQ.prototype.getTypeName=function(){return"trendingOfferEntity"};_.ynz=new _.hu("merchandiseShelfRenderer");var rnu=new _.hu("shoppingContentLineItemViewModel");var FqW=new _.hu("gridMovieRenderer");_.HRz=new _.hu("movieRenderer");var Wqn=function(){F_.apply(this,arguments)};
_.M(Wqn,F_);Wqn.prototype.getAssociations=function(){return[]};
Wqn.prototype.getTypeName=function(){return"compositeSourceEntity"};var agb=function(){F_.apply(this,arguments)};
_.M(agb,F_);agb.prototype.getAssociations=function(){var G=[];this.delegate.compositeSourceKeys&&G.push.apply(G,_.Nz(this.delegate.compositeSourceKeys));return[].concat(_.Nz(new Set(G)))};
agb.prototype.getTypeName=function(){return"multiviewStagingEntity"};var NZ5=function(){F_.apply(this,arguments)};
_.M(NZ5,F_);NZ5.prototype.getAssociations=function(){var G=[];this.delegate.trackDownloadMetadatas&&G.push.apply(G,_.Nz(this.delegate.trackDownloadMetadatas));return[].concat(_.Nz(new Set(G)))};
NZ5.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var YNX=function(){F_.apply(this,arguments)};
_.M(YNX,F_);
YNX.prototype.getAssociations=function(){var G=[];this.delegate.downloadedTracks&&G.push.apply(G,_.Nz(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&G.push.apply(G,_.Nz(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&G.push.apply(G,_.Nz(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&G.push.apply(G,_.Nz(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&G.push.apply(G,_.Nz(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
G.push.apply(G,_.Nz(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&G.push.apply(G,_.Nz(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&G.push.apply(G,_.Nz(this.delegate.metadataOnlyTracks));return[].concat(_.Nz(new Set(G)))};
YNX.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var Cdi=function(){F_.apply(this,arguments)};
_.M(Cdi,F_);Cdi.prototype.getAssociations=function(){var G=[];this.delegate.trackDownloadMetadatas&&G.push.apply(G,_.Nz(this.delegate.trackDownloadMetadatas));return[].concat(_.Nz(new Set(G)))};
Cdi.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var JnO=function(){F_.apply(this,arguments)};
_.M(JnO,F_);JnO.prototype.getAssociations=function(){var G=[];this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.localImageEntities&&G.push.apply(G,_.Nz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Nz(new Set(G)))};
JnO.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var Kqz=function(){F_.apply(this,arguments)};
_.M(Kqz,F_);
Kqz.prototype.getAssociations=function(){var G=[];this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&G.push.apply(G,_.Nz(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,_.Nz(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(_.Nz(new Set(G)))};
Kqz.prototype.getTypeName=function(){return"musicAlbumRelease"};
var u6O=function(){F_.apply(this,arguments)};
_.M(u6O,F_);u6O.prototype.getAssociations=function(){var G=[];this.delegate.albumRelease&&G.push(this.delegate.albumRelease);this.delegate.tracks&&G.push.apply(G,_.Nz(this.delegate.tracks));return[].concat(_.Nz(new Set(G)))};
u6O.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var R48=function(){F_.apply(this,arguments)};
_.M(R48,F_);R48.prototype.getAssociations=function(){var G=[];this.delegate.albumRelease&&G.push(this.delegate.albumRelease);return[].concat(_.Nz(new Set(G)))};
R48.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var nqW=function(){F_.apply(this,arguments)};
_.M(nqW,F_);nqW.prototype.getAssociations=function(){var G=[];this.delegate.details&&G.push(this.delegate.details);this.delegate.userDetails&&G.push(this.delegate.userDetails);return[].concat(_.Nz(new Set(G)))};
nqW.prototype.getTypeName=function(){return"musicArtist"};
var ORB=function(){F_.apply(this,arguments)};
_.M(ORB,F_);ORB.prototype.getAssociations=function(){var G=[];this.delegate.parentArtist&&G.push(this.delegate.parentArtist);return[].concat(_.Nz(new Set(G)))};
ORB.prototype.getTypeName=function(){return"musicArtistDetail"};
var wQz=function(){F_.apply(this,arguments)};
_.M(wQz,F_);wQz.prototype.getAssociations=function(){var G=[];this.delegate.parentArtist&&G.push(this.delegate.parentArtist);return[].concat(_.Nz(new Set(G)))};
wQz.prototype.getTypeName=function(){return"musicArtistUserDetail"};var EqJ=function(){F_.apply(this,arguments)};
_.M(EqJ,F_);EqJ.prototype.getAssociations=function(){return[]};
EqJ.prototype.getTypeName=function(){return"musicLibraryEdit"};var pQi=function(){F_.apply(this,arguments)};
_.M(pQi,F_);pQi.prototype.getAssociations=function(){return[]};
pQi.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var SNn=function(){F_.apply(this,arguments)};
_.M(SNn,F_);
SNn.prototype.getAssociations=function(){var G=[];this.delegate.tracks&&G.push.apply(G,_.Nz(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,_.Nz((new XQn(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Nz(new Set(G)))};
SNn.prototype.getTypeName=function(){return"musicPlaylist"};
var XQn=function(){r0.apply(this,arguments)};
_.M(XQn,r0);XQn.prototype.getAssociations=function(){var G=[];this.delegate.creatorEntity&&G.push(this.delegate.creatorEntity);return[].concat(_.Nz(new Set(G)))};var $De=function(){F_.apply(this,arguments)};
_.M($De,F_);$De.prototype.getAssociations=function(){return[]};
$De.prototype.getTypeName=function(){return"musicShare"};var GV8=function(){F_.apply(this,arguments)};
_.M(GV8,F_);
GV8.prototype.getAssociations=function(){var G=[];this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&G.push.apply(G,_.Nz(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(_.Nz(new Set(G)))};
GV8.prototype.getTypeName=function(){return"musicTrack"};
var bPO=function(){F_.apply(this,arguments)};
_.M(bPO,F_);bPO.prototype.getAssociations=function(){var G=[];this.delegate.parentTrack&&G.push(this.delegate.parentTrack);return[].concat(_.Nz(new Set(G)))};
bPO.prototype.getTypeName=function(){return"musicTrackDetail"};
var INO=function(){F_.apply(this,arguments)};
_.M(INO,F_);INO.prototype.getAssociations=function(){var G=[];this.delegate.parentTrack&&G.push(this.delegate.parentTrack);return[].concat(_.Nz(new Set(G)))};
INO.prototype.getTypeName=function(){return"musicTrackUserDetail"};var WR=new _.hu("musicResponsiveListItemRenderer");var FRr=new _.hu("addToPlaylistEndpoint");var hde=new _.hu("captionPickerEndpoint");var qQi=new _.hu("suggestStats");var jSX=new _.hu("backstageImageUploadEndpoint");var lNn=new _.hu("createBackstagePostDialogEndpoint");_.mDJ=new _.hu("createCommentReplyDialogEndpoint");_.edO=new _.hu("updateCommentDialogEndpoint");_.VdQ=new _.hu("updateCommentReplyDialogEndpoint");var DDX=new _.hu("menuEndpoint");var BWu=new _.hu("modalEndpoint");var cVz=new _.hu("playlistEditorEndpoint");var kVJ=new _.hu("copyTextEndpoint");var vKA,Lkn;vKA=new _.hu("shareEndpoint");Lkn=new _.hu("shareEntityEndpoint");_.QSn=new _.hu("shareEntityServiceEndpoint");_.Zxu=new _.hu("userFeedbackEndpoint");_.Wq=new _.hu("watchEndpoint");var e6r=new _.hu("watchPlaylistEndpoint");var xDX=new _.hu("addUpcomingEventReminderEndpoint");_.pb=new _.hu("getCommentsFromInboxCommand");var fNb=new _.hu("notificationOptOutEndpoint");var TsQ=new _.hu("recordNotificationInteractionsEndpoint");var BsQ=new _.hu("removeUpcomingEventReminderEndpoint");_.ar=new _.hu("getDownloadActionCommand");_.UDb=new _.hu("offlineOrchestrationActionCommand");var sSu=function(){F_.apply(this,arguments)};
_.M(sSu,F_);sSu.prototype.getAssociations=function(){return[]};
sSu.prototype.getTypeName=function(){return"captionTrack"};var gKQ=function(){F_.apply(this,arguments)};
_.M(gKQ,F_);gKQ.prototype.getAssociations=function(){return[]};
gKQ.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var AVA=function(){F_.apply(this,arguments)};
_.M(AVA,F_);AVA.prototype.getAssociations=function(){return[]};
AVA.prototype.getTypeName=function(){return"offlineVideoPolicy"};var Mdi=function(){F_.apply(this,arguments)};
_.M(Mdi,F_);Mdi.prototype.getAssociations=function(){return[]};
Mdi.prototype.getTypeName=function(){return"offlineVideoStreams"};var ZPi=function(){F_.apply(this,arguments)};
_.M(ZPi,F_);ZPi.prototype.getAssociations=function(){var G=[];this.delegate.transfer&&G.push(this.delegate.transfer);this.delegate.adsPlaybackData&&G.push.apply(G,_.Nz(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(_.Nz(new Set(G)))};
ZPi.prototype.getTypeName=function(){return"playbackData"};var tdi=function(){F_.apply(this,arguments)};
_.M(tdi,F_);tdi.prototype.getAssociations=function(){return[]};
tdi.prototype.getTypeName=function(){return"refresh"};var zdB=function(){F_.apply(this,arguments)};
_.M(zdB,F_);zdB.prototype.getAssociations=function(){var G=[];this.delegate.offlineVideoStreams&&G.push.apply(G,_.Nz(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&G.push.apply(G,_.Nz(this.delegate.captionTrack));return[].concat(_.Nz(new Set(G)))};
zdB.prototype.getTypeName=function(){return"transfer"};var oK8=function(){F_.apply(this,arguments)};
_.M(oK8,F_);oK8.prototype.getAssociations=function(){return[]};
oK8.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var iPO=new _.hu("showMoreDrawerCommand");var PD8=new _.hu("updateEngagementPanelContentCommand");var dDA=new _.hu("getPdgBuyFlowCommand");var yVQ=new _.hu("liveChatPurchaseMessageEndpoint");var rVu=new _.hu("openSuperStickerBuyFlowCommand");var Fki=new _.hu("updatePdgFeatureEnablementCommand");var HPA=function(){F_.apply(this,arguments)};
_.M(HPA,F_);HPA.prototype.getAssociations=function(){return[]};
HPA.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var WkQ=function(){F_.apply(this,arguments)};
_.M(WkQ,F_);WkQ.prototype.getAssociations=function(){return[]};
WkQ.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.aNX=new _.hu("pdgCommentChipRenderer");_.NsA=new _.hu("permissionRoleBottomBarRenderer");_.YQi=new _.hu("updatePermissionRoleCommand");var CDz=new _.hu("prefetchWatchCommand");var JVu=new _.hu("updatePlayerErrorMessageCommand");var ZBu=new _.hu("toggleCaptionsVisibilityCommand");_.Kk5=new _.hu("quickActionsViewModel");var uGA=new _.hu("playerResponse");var RdA=new _.hu("playlistRenderer");_.nK8=new _.hu("playlistVideoListRenderer");_.SI=new _.hu("playlistEditEndpoint");var OPb=new _.hu("createImagePollCommand");var w6Q=new _.hu("createQuizCommand");var EKn=new _.hu("quizRenderer");var p6W=new _.hu("uploadedVideoRenderer");var SQW=new _.hu("decorateMessageEndpoint");var X6W=new _.hu("lpOfferCardOptionViewModel");var $TA=new _.hu("sfvAudioItemPlaybackCommand");var GNJ=function(){F_.apply(this,arguments)};
_.M(GNJ,F_);GNJ.prototype.getAssociations=function(){return[]};
GNJ.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.X_=new _.hu("reelNonVideoContentEndpoint");_.V4=new _.hu("reelWatchEndpoint");_.$F=new _.hu("reelItemRenderer");var b5Q=new _.hu("reelMetapanelViewModel");_.GW=new _.hu("reelNonVideoContentRenderer");_.I9b=new _.hu("reelPlayerOverlayRenderer");var hPi=new _.hu("shortsLockupViewModel");var qqX=new _.hu("sponsorButtonViewModel");var j4X=new _.hu("reelItemWatchResponse");var l98=new _.hu("textBadgeRenderer");_.bz=new _.hu("buttonRenderer");_.Ia=new _.hu("toggleButtonRenderer");var Ykp=new _.hu("switchButtonViewModel");_.mTn=new _.hu("confirmDialogRenderer");var eP8;eP8=new _.hu("menuRenderer");_.Vt8=new _.hu("menuFlexibleItemRenderer");var DTb=new _.hu("pollRenderer");_.cyX=new _.hu("backgroundPromoRenderer");var vku;_.kNi=new _.hu("chipCloudRenderer");vku=new _.hu("chipCloudChipRenderer");var LUz=new _.hu("dropdownRenderer");var Q4z=new _.hu("gridVideoRenderer");_.xTz=new _.hu("itemSectionRenderer");_.f95=new _.hu("messageRenderer");var TNn=new _.hu("sortFilterHeaderRenderer");_.he=new _.hu("videoRenderer");var BNA=new _.hu("resolveUrlCommandMetadata");var UTu=function(){F_.apply(this,arguments)};
_.M(UTu,F_);UTu.prototype.getAssociations=function(){return[]};
UTu.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.s4Q=new _.hu("getAnswerCommand");_.lg=new _.hu("searchEndpoint");var gkW=new _.hu("genAiRichTextViewModel");var ymr=new _.hu("overviewAnswerViewModel");var AyX=new _.hu("videoOverviewViewModel");var Mte=new _.hu("addToPlaylistServiceEndpoint");var Z5n=new _.hu("clearSearchHistoryEndpoint");var ttu=new _.hu("clearWatchHistoryEndpoint");var zPB=new _.hu("webSerializedServiceEndpointExtension");_.okb=new _.hu("createCommentEndpoint");var i5J=new _.hu("createCommentReplyEndpoint");var Phi=new _.hu("performCommentActionEndpoint");var dTn=new _.hu("updateCommentEndpoint");var yyn=new _.hu("updateCommentReplyEndpoint");_.qj=new _.hu("createPlaylistServiceEndpoint");var ryn=new _.hu("deletePlaylistEndpoint");var FUi=new _.hu("deleteVideoEndpoint");var rmB=new _.hu("getReportFormEndpoint");var H5n=new _.hu("modifyChannelNotificationPreferenceEndpoint");var RfO;_.jK=new _.hu("offlinePlaylistEndpoint");RfO={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 n5u;_.qt=new _.hu("offlineVideoEndpoint");n5u={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 WUX=new _.hu("pingingEndpoint");_.a9z=new _.hu("selectActiveIdentityEndpoint");var NNu=new _.hu("setSettingEndpoint");var BM2=new _.hu("undoFeedbackEndpoint");var Yqi=new _.hu("unsubscribeEndpoint");_.Che=new _.hu("updatedMetadataEndpoint");var Jy8=function(){F_.apply(this,arguments)};
_.M(Jy8,F_);Jy8.prototype.getAssociations=function(){return[]};
Jy8.prototype.getTypeName=function(){return"settingEntity"};_.KUn=new _.hu("updateLocalAppSettingCommand");var uln=new _.hu("saveImageToDeviceEndpoint");var RP5=new _.hu("shareImageCommand");var nkz=new _.hu("sharingProviderDataCommand");var O5Q=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(O5Q,_.eo);var wde=[0,_.RR,-1];O5Q.prototype.JSC$12598_serializeBinary=RKj(wde);var EkQ=_.Uv(wde);var pdu=new _.hu("userMentionSuggestionRenderer");var SqW=new _.hu("liveChatTunnelCommand");var Xdb=new _.hu("showSponsorshipsGiftOfferDialogCommand");var hEO=new _.hu("sponsorshipsScrollableShelfViewModel");var qmi=new _.hu("updateUpcomingEventReminderButtonStateCommand");var jmJ=new _.hu("upcomingEventReminderButtonStateRenderer");var lsQ=new _.hu("subscribeEndpoint");var mJA=new _.hu("registerTasksCommand");var eE8=new _.hu("hideSheetCommand");var V$i=new _.hu("hideSnackbarCommand");var DJu=new _.hu("showDialogCommand");_.cH=new _.hu("showSheetCommand");var cXn=new _.hu("showSnackbarCommand");var kcJ=function(){F_.apply(this,arguments)};
_.M(kcJ,F_);kcJ.prototype.getAssociations=function(){return[]};
kcJ.prototype.getTypeName=function(){return"chipEntity"};var v9b=function(){F_.apply(this,arguments)};
_.M(v9b,F_);v9b.prototype.getAssociations=function(){return[]};
v9b.prototype.getTypeName=function(){return"dismissState"};_.AW=new _.hu("avatarViewModel");var Lre=new _.hu("badgeViewModel");_.j6=new _.hu("buttonViewModel");_.lz=new _.hu("chipViewModel");var viX=new _.hu("collectionThumbnailViewModel");var QmW=new _.hu("contentPreviewImageViewModel");var xJA=new _.hu("decoratedAvatarViewModel");_.lxu=new _.hu("engagementBarViewModel");_.fsu=new _.hu("imageBannerViewModel");var T1X=new _.hu("lockupContentMetadataRowExtension");_.B1b=new _.hu("lockupMetadataViewModel");_.UJ8=new _.hu("lockupViewModel");var smn=new _.hu("avatarStackViewModel");_.g95=new _.hu("contentMetadataViewModel");var AXn=function(){F_.apply(this,arguments)};
_.M(AXn,F_);AXn.prototype.getAssociations=function(){return[]};
AXn.prototype.getTypeName=function(){return"pageHeaderEntity"};_.M$X=new _.hu("pageHeaderViewModel");var ZqO=new _.hu("snackbarViewModel");var t$A=new _.hu("thumbnailHoverOverlayToggleActionsViewModel");_.mS=new _.hu("toggleButtonViewModel");var zEA=function(){F_.apply(this,arguments)};
_.M(zEA,F_);zEA.prototype.getAssociations=function(){return[]};
zEA.prototype.getTypeName=function(){return"votingEntity"};_.mXq=new _.hu("votingViewModel");var o9i=new _.hu("sectionHeaderViewModel");var iqQ=new _.hu("notifyDropdownOptionSelectedCommand");var koX=new _.hu("listViewModel");_.kU=new _.hu("listItemViewModel");var kzd=new _.hu("toggleableListItemViewModel");var PoJ=new _.hu("dialogHeaderViewModel");var dJB=function(){F_.apply(this,arguments)};
_.M(dJB,F_);dJB.prototype.getAssociations=function(){return[]};
dJB.prototype.getTypeName=function(){return"dataFreshnessEntity"};var s6a=new _.hu("suspenseViewModel");var yXW=new _.hu("tooltipViewModel");var rXn=function(){F_.apply(this,arguments)};
_.M(rXn,F_);rXn.prototype.getAssociations=function(){return[]};
rXn.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var FrW=function(){F_.apply(this,arguments)};
_.M(FrW,F_);FrW.prototype.getAssociations=function(){return[]};
FrW.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var HqJ=function(){F_.apply(this,arguments)};
_.M(HqJ,F_);HqJ.prototype.getAssociations=function(){return[]};
HqJ.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.WrJ=new _.hu("transcriptSubmitCaptionCorrectionCommand");var asX=function(){F_.apply(this,arguments)};
_.M(asX,F_);asX.prototype.getAssociations=function(){return[]};
asX.prototype.getTypeName=function(){return"buttonEntity"};var mWu=new _.hu("unpluggedStringRunImage");var N1A=new _.hu("tabViewModel");var Ymn=new _.hu("tabbedViewModel");var Co5=function(){F_.apply(this,arguments)};
_.M(Co5,F_);Co5.prototype.getAssociations=function(){return[]};
Co5.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.JXO=new _.hu("updateDescriptionAction");var KrA=new _.hu("updateToggleButtonTextAction");var udX=new _.hu("showFullscreenPlayerControlsCommand");var RE5=new _.hu("updateVideoMetadataCommand");_.n9u=new _.hu("autoplaySwitchButtonRenderer");var M_;_.Oqn=new _.hu("multiMarkersPlayerBarRenderer");M_=new _.hu("chapterRenderer");var wcn=new _.hu("heatMarkerRenderer");var Pas=new _.hu("heatmapRenderer");var E9A=new _.hu("smartSkipPlayerScrimOverlayRenderer");var pcz=new _.hu("timedMarkerDecorationRenderer");var Ojd=new _.hu("postWebToNativeMessageCommand");var s4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(s4,_.eo);s4.prototype.getMethodName=function(){return _.U5(this,1)};var SmW=[0,_.RR,-2];s4.prototype.JSC$12620_serializeBinary=RKj(SmW);var XcW=_.T7(s4,SmW);var $IW=new _.hu("whitelistEditEndpoint");var GCb=new _.hu("clearUrlParamCommand");var boJ=new _.hu("commerceActionCommand");_.IbQ=new _.hu("getPaymentInstrumentsParamsCommand");var h6n=new _.hu("getPaymentsClientTokenCommand");var qRz=new _.hu("googlePaymentBillingCommand");var jsX=new _.hu("googlePaymentPurchaseManagerCommand");_.lbO=new _.hu("logGtmCommand");var mIA=new _.hu("updateCardItemOnClickCommand");_.e68=new _.hu("ypcPauseSubscriptionCommand");_.VlB=new _.hu("ypcResumeSubscriptionCommand");var DIe=function(){F_.apply(this,arguments)};
_.M(DIe,F_);DIe.prototype.getAssociations=function(){return[]};
DIe.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var cEz=function(){F_.apply(this,arguments)};
_.M(cEz,F_);cEz.prototype.getAssociations=function(){return[]};
cEz.prototype.getTypeName=function(){return"commerceCartListEntity"};var kCn=function(){F_.apply(this,arguments)};
_.M(kCn,F_);kCn.prototype.getAssociations=function(){return[]};
kCn.prototype.getTypeName=function(){return"iconBadgeEntity"};var vrO=function(){F_.apply(this,arguments)};
_.M(vrO,F_);vrO.prototype.getAssociations=function(){return[]};
vrO.prototype.getTypeName=function(){return"pdpStateEntity"};var L5O=function(){F_.apply(this,arguments)};
_.M(L5O,F_);L5O.prototype.getAssociations=function(){return[]};
L5O.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var U4s=new _.hu("ypcOffersEndpoint");var QsO=new _.hu("cardItemRenderer"),xIX=new _.hu("cardItemTextRenderer");var fbu=new _.hu("commerceCartItemQuantityPickerRenderer");var TBn=new _.hu("linkCardRenderer");var YIr=new _.hu("quantityIncrementerButtonViewModel");var BBQ=new _.hu("quantityIncrementerViewModel");var UIX=new _.hu("themedImageViewModel");_.ssn=new _.hu("ypcCancelRecurrenceEndpoint");var grn=new _.hu("ypcCompleteTransactionEndpoint");_.AE8=new _.hu("ypcGetCartEndpoint");_.HH=new _.hu("ypcGetOffersEndpoint");_.e6=new _.hu("ypcHandleTransactionEndpoint");var MlJ=new _.hu("ypcLogWalletAnalyticDataEndpoint");_.ZoJ=new _.hu("ypcRedeemCodeEndpoint");var tle=new _.hu("ypcUpdateFopEndpoint");Lb(vB(1),cB(4));mEu((new MessageChannel).port2);var z6u=function(){this.register=new Map},suO=function(G,b,I){G=G+"_"+b;
Vw.register.has(G)?I=Vw.register.get(G):(I=I(),Vw.register.set(G,I));return I},orz=function(G){G=_.e(G.register.values());
for(var b=G.next();!b.done;b=G.next())_.IA(b.value,"ABORTED")};
z6u.prototype.clear=function(){orz(this);this.register.clear()};
var Vw=new z6u;var bYX=Date.now().toString();var qKj=hqO();var kTq={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 ioW,U3;ioW=1;U3=function(G){this.veData=G};
_.VB=function(G){return new U3({trackingParams:G})};
_.Xs=function(G,b,I,h,q,l){var V=ioW++;return new U3({veType:G,veCounter:V,elementIndex:I,dataElement:b,youtubeData:h,jspbYoutubeData:q,loggingDirectives:l})};
_.m=U3.prototype;
_.m.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};
_.m.getAsJspb=function(){var G=new AZX;this.veData.trackingParams!==void 0?G.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.tJ(G,2,this.veData.veType),this.veData.veCounter!==void 0&&_.tJ(G,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.tJ(G,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Tx(G,5,!0));if(this.veData.dataElement!==void 0){var b=this.veData.dataElement.getAsJspb();_.ZK(G,7,b)}this.veData.youtubeData!==void 0&&_.ZK(G,8,this.veData.jspbYoutubeData);
return G};
_.m.toString=function(){return JSON.stringify(this.getAsJson())};
_.m.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.m.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.cz("yt_logging_screen.getRootVeType",VbO);_.cz("yt_logging_screen.getCurrentCsn",_.gL);_.cz("yt_logging_screen.getCttAuthInfo",A_);_.cz("yt_logging_screen.setCurrentScreen",_.Mi);var Pr5=function(){this.events=new Map},dIn=function(G){var b=[];
G=_.e(G.events.values());for(var I=G.next();!I.done;I=G.next())b.push(I.value);return b};
Pr5.prototype.clear=function(){this.events.clear()};var rEO=function(){this.logTransport=new yEb;this.loggedEventRegister=new Pr5;this.unloggedEventRegister=new Pr5;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12657_flushTimer=new _.Tb(this.flushInterval);this.JSC$12657_flushTimer.listen("tick",this.flush,!1,this)};
rEO.prototype.flush=function(){if(this.eventsCount){var G={loggedEvents:dIn(this.loggedEventRegister),unloggedEvents:dIn(this.unloggedEventRegister)};if(_.U("export_player_version_to_ytconfig")){var b;(b=_.wy("PLAYER_CLIENT_VERSION"))?(b=b.split("-")[0].replace(/\./g,""),b=isNaN(Number(b))?"0":b):b="";var I=_.wy("PLAYER_CLIENT_VERSION");if(I){I=I.split("-");var h="";I.length>1&&(h=I[I.length-1]);I=GTp(h.startsWith("canary_experiment")?"canary":h.startsWith("canary_control")?"control":"none")}else I=
"CLIENT_CANARY_STATE_UNKNOWN";G.dimensions={playerClientVersion:b,playerCanaryState:I}}this.logTransport.flush(G);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12657_flushTimer.enabled&&this.JSC$12657_flushTimer.stop()}};
var F55=function(G){DR==null&&(DR=new rEO);var b=DR;var I=b.loggedEventRegister;G.dimensions=G.dimensions||{};G.dimensions.csn=_.gL()||"";var h=Quu(G.dimensions).join(";");if(G.records!=null)if(I.events.has(h)){var q;(q=I.events.get(h).records)==null||q.push.apply(q,_.Nz(G.records))}else I.events.set(h,G);b.JSC$12657_flushTimer.enabled||b.JSC$12657_flushTimer.start();b.eventsCount++;b.eventsCount>=100&&b.flush()};var yEb=function(){};
yEb.prototype.flush=function(G,b){_.U("enable_client_sli_logging")&&_.C1("sliEventBatch",G,{sendIsolatedPayload:!!b})};var DR;var W5e;W5e=function(G){var b=HoO;G=G===void 0?{}:G;b=b.name;var I=Usp("SUCCESS");F55({dimensions:G,records:[{name:b,state:"SLI_STATE_END",status:I}]})};
_.g6v=function(G,b,I,h){this.name=G;this.sliId=b;this.timeoutMs=I;this.statusOnTimeout=h;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.g6v.prototype.getId=function(){return this.sliId};
_.bX=function(G,b){b=b===void 0?{}:b;G.ongoing||(G.ongoing=!0,G.dimensions=b,G.logSliId=KeO(),F55({dimensions:G.dimensions,records:[{name:G.name,state:"SLI_STATE_START",sliId:G.logSliId}]}),G.timeoutMs>0&&(G.timeoutHandle=setTimeout(function(){_.IA(G,G.statusOnTimeout)},G.timeoutMs)))};
_.IA=function(G,b){G.ongoing&&(G.timeoutMs>0&&clearTimeout(G.timeoutHandle),G.ongoing=!1,b={dimensions:G.dimensions,records:[{name:G.name,status:Usp(b),state:"SLI_STATE_END",sliId:G.logSliId}]},Vw.register.delete(G.name+"_"+G.sliId),F55(b))};var HoO=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var abO=function(){F_.apply(this,arguments)};
_.M(abO,F_);abO.prototype.getAssociations=function(){return[]};
abO.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var uSO=new _.hu("highlightTextDecoratorColorMapExtension");var JHX=new _.hu("styleRunColorMapExtension");var iY2=_.WP(["data-"]),yrO={};var Fls={};var cs=function(G){this.wrappedPromise_=G===void 0?null:G;this.state_=0;this.JSC$12688_value_=null};
cs.prototype.then=function(G,b,I){return this.wrappedPromise_?this.wrappedPromise_.then(G,b,I):this.state_===1&&G?(G=G.call(I,this.JSC$12688_value_))&&typeof G.then==="function"?G:_.kF(G):this.state_===2&&b?(G=b.call(I,this.JSC$12688_value_))&&typeof G.then==="function"?G:_.NBJ(G):this};
cs.prototype.getValue=function(){return this.JSC$12688_value_};
cs.prototype.isRejected=function(){return this.state_==2};
Uc5(cs);_.NBJ=function(G){var b=new cs;G=G===void 0?null:G;b.state_=2;b.JSC$12688_value_=G===void 0?null:G;return b};
_.kF=function(G){var b=new cs;G=G===void 0?null:G;b.state_=1;b.JSC$12688_value_=G===void 0?null:G;return b};var pOr="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var YRu=["load","abort","error"],vs=function(G,b,I){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12708_maxAspectRatio_=G;this.disableAnimation_=b===void 0?!1:b;this.disableExifRotation_=I===void 0?!1:I;this.JSC$12708_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12708_reject_=this.resolve_=null};
vs.prototype.transform=function(G){var b=this;this.mime_=G.type;X7(ZkA(G),this.dataUrlRead_,this.readError_,this);X7(Mhn(G.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(I,h){b.resolve_=I;b.JSC$12708_reject_=h})};
vs.prototype.dataUrlRead_=function(G){this.dataUrl_=G;this.angle_!=null&&CrA(this)};
vs.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 b=2,I=G.byteLength;b<I;){var h=G.getUint16(b),q=G.getUint16(b+2);if(h===65505){b+=4;h=G.getUint32(b);q=G.getUint16(b+4);if(h!==1165519206||q!==0)break;b+=6;h=G.getUint16(b)===18761;b+=G.getUint32(b+4,h);q=G.getUint16(b,h);b+=2;for(var l=0;l<q;l++){if(G.getUint16(b,h)===274){b+=8;G=G.getUint16(b,h);break a}b+=12}}else if(h>>8!==255)break;
else b+=q+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&&CrA(this)};
vs.prototype.readError_=function(){this.JSC$12708_reject_()};
var CrA=function(G){m6(G.JSC$12708_image_,YRu,G.completeTransform_,!1,G);G.JSC$12708_image_.src=_.KA(G.dataUrl_).toString();G.JSC$12708_image_.src!=CA.toString()&&G.JSC$12708_image_.src.substr(0,11)==="data:image/"||G.JSC$12708_reject_()};
vs.prototype.completeTransform_=function(){if(this.JSC$12708_image_.src!=CA.toString()){var G=_.KA(this.dataUrl_),b=this.JSC$12708_image_.naturalHeight?this.JSC$12708_image_.naturalWidth/this.JSC$12708_image_.naturalHeight:null;this.invalidAspectRatio=b>this.JSC$12708_maxAspectRatio_||b<1/this.JSC$12708_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var I=this.JSC$12708_image_.naturalWidth,h=this.JSC$12708_image_.naturalHeight,q=b=0,l=this.JSC$12708_image_.naturalHeight?this.JSC$12708_image_.naturalWidth/
this.JSC$12708_image_.naturalHeight:null;l>this.JSC$12708_maxAspectRatio_?(I=this.JSC$12708_maxAspectRatio_*h,b=(I-this.JSC$12708_image_.naturalWidth)/2,this.cropped=!0):l<1/this.JSC$12708_maxAspectRatio_?(h=this.JSC$12708_maxAspectRatio_*I,q=(h-this.JSC$12708_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)l=I,I=h,h=l,l=b,b=q,q=l;switch(this.angle_){case 90:q-=I;break;case 180:b-=I;q-=h;break;case 270:b-=
h}this.cropped||this.angle_%360!==0?(G=document.createElement("canvas"),G.width=I||1,G.height=h||1,this.JSC$12708_image_.naturalWidth&&this.JSC$12708_image_.naturalHeight&&(I=G.getContext("2d"),I.rotate(Math.PI/180*this.angle_),I.drawImage(this.JSC$12708_image_,b,q,this.JSC$12708_image_.naturalWidth,this.JSC$12708_image_.naturalHeight)),this.transformedData=_.KA(G.toDataURL(this.mime_))):this.transformedData=G}else this.transformedData=G;this.resolve_(this)}};var Lm=function(G,b){_.Un.call(this,G);this.value=b};
_.M(Lm,_.Un);
var Qw=function(G,b,I,h,q,l,V){V=V===void 0?!1:V;_.Z$.call(this);var D=this;this.JSC$12713_url_=G;this.channelId_=b;this.maxFileSizeMb_=I;this.JSC$12713_maxAspectRatio_=h;this.dropZoneEl_=q;this.rejectInvalidAspectRatio_=V;this.selectButtonEl_=l;this.JSC$12713_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new g0(this.dropZoneEl_);this.selectOverlay_=new As(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12713_image_=this.transfer_=null;this.handler_=new _.Bh(this);_.M2(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(l,"click",function(){D.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.M(Qw,_.Z$);Qw.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();_.Z$.prototype.disposeInternal.call(this)};
Qw.prototype.uploadPromise=function(){if(this.JSC$12713_image_==null)return null;this.uploadPromise_||JEA(this);return this.uploadPromise_};
Qw.prototype.cancel=function(){K5B(this);this.JSC$12713_image_=null};
var K5B=function(G){G.transfer_&&G.transfer_.cancel();G.transfer_=null;G.uploadPromise_=null;G.resolve_=null;G.JSC$12713_reject_=null},JEA=function(G){K5B(G);
G.transfer_=_.LMu(G.JSC$12713_url_,{"X-YouTube-ChannelId":G.channelId_},G.JSC$12713_image_);G.handler_.listenOnce(G.transfer_,"l",G.JSC$12715_onUploadComplete_);G.handler_.listenOnce(G.transfer_,"n",G.onUploadError_);G.transfer_.run();G.uploadPromise_=new Promise(function(b,I){G.resolve_=b;G.JSC$12713_reject_=I})};
_.m=Qw.prototype;_.m.onChange_=function(G){G.files.length&&(this.JSC$12713_image_=G.files[0],this.JSC$12713_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12713_image_=null,this.dispatchEvent(new Lm("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(JEA(this),(new vs(this.JSC$12713_maxAspectRatio_)).transform(this.JSC$12713_image_).then((0,_.Hr)(this.onPreview_,this),(0,_.Hr)(this.onPreviewError_,this))))};
_.m.onPreview_=function(G){if(G.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12713_image_=null),this.dispatchEvent(new Lm("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;G.cropped&&this.dispatchEvent(new Lm("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Lm("yt.comments.ImageUploadOverlay.CHANGE_EVENT",G.transformedData))};
_.m.onPreviewError_=function(){this.JSC$12713_image_=null;this.dispatchEvent(new Lm("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.m.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 Lm("yt.comments.ImageUploadOverlay.HOVER_EVENT",G))};
_.m.JSC$12715_onUploadComplete_=function(){var G=(0,_.RTJ)(this.transfer_.getResponseText());this.resolve_(G.encryptedBlobId)};
_.m.onUploadError_=function(){this.JSC$12713_reject_();K5B(this)};var unB=function(G){G=G||{};var b={},I={};this.url=G.url||"";this.args=G.args||_.Cy.clone(b);this.assets=G.assets||{};this.attrs=G.attrs||_.Cy.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||{}};
unB.prototype.clone=function(){var G=new unB,b;for(b in this)if(this.hasOwnProperty(b)){var I=this[b];_.$3(I)=="object"?G[b]=_.Cy.clone(I):G[b]=I}return G};var R6n,nrn,Oon,HR,Er5,p_z,SRQ,X_O,$VW,G5J,b$n,IXe,h9b,qCz,jEQ,lXz,mVO,e9Q,VCb,DV8,cAB,k5X,vXi,LDX,QEu,xV5,fXb,T$A,B$n,Ixa,UVn,sEX,gXB,AAO,MCA,Z$5,tCJ,z9J,oXJ,i$O,bIv,PjB,dVO,yAe,rAA,FDA,H$J,WDn,aXn,N$u,YCu,Cjb,JAu,KDe,uFb,R9Q,xF,nXn,O$8,wVX,EXJ,pVW,SCB,XVe,$ve,GPW,b_n,I4O,hkb,qO8,jH5,l4i,mvi,ekQ,VFO,Dv5,$Xr,cPA,kPz,v7B,L1A,QHJ,xvB,f4b,To5,BoQ,Uvb,sHJ,g7n,APb,MFn,Z_n,tFn,zkB,o7J,i_A,P_5,dv8,yPi,rPJ,F1u,H_B;R6n=["account/accounts_list"];nrn=["acknowledge_channel_tou_strike"];Oon=["notification/add_upcoming_event_reminder"];
_.w_W=["att/get"];HR=["browse","music/browse","streaming_browse","unplugged/browse"];Er5=["channel/claim_legacy_youtube_channel"];p_z=["history/clear_search_history"];SRQ=["history/clear_watch_history"];X_O=["comment/perform_comment_action"];$VW=["comment/get_comment_replies"];G5J=["ypc/commerce_action"];b$n=["backstage/create_post"];IXe=["live/create_broadcast"];h9b=["channel/create_channel"];qCz=["comment/create_comment_reply"];jEQ=["comment/create_comment"];lXz=["live_chat/create_poll"];mVO=["playlist/create"];
e9Q=["decorate_message"];VCb=["live_chat/delete_message"];DV8=["playlist/delete"];cAB=["video/delete"];k5X=["like/dislike"];vXi=["dismissal/dismiss"];LDX=["flag/flag"];QEu=["flow"];xV5=["account/account_menu"];fXb=["playlist/get_add_to_playlist"];T$A=["get_answer"];B$n=["channel/get_channel_creation_form"];Ixa=["offline/get_download_action"];UVn=["kids/get_kids_blocklist_picker"];sEX=["live_chat/get_item_context_menu"];gXB=["live_chat/get_live_chat_message_buy_flow"];AAO=["live_chat/get_live_chat_replay"];
MCA=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Z$5=["live_chat/get_live_chat_super_sticker_buy_flow"];tCJ=["notification/get_notification_menu"];z9J=["playlist/get_settings_editor"];oXJ=["backstage/get_post_video_preview"];i$O=["account/get_profile_card"];bIv=["share/get_share_panel"];PjB=["share/get_sharing_provider_data"];dVO=["get_survey"];yAe=["notification/get_unseen_count"];rAA=["get_user_mention_suggestions"];FDA=["get_watch"];H$J=["guide"];
WDn=["feedback"];aXn=["kids/update_blacklist"];N$u=["like/like"];YCu=["live_chat/live_chat_action"];Cjb=["live_chat/manage_user"];JAu=["video_manager/metadata_update"];KDe=["live_chat/moderate"];uFb=["notification/modify_channel_preference"];R9Q=["notification/opt_out"];xF=["get_panel","get_posts_by_host_panel"];nXn=["player"];O$8=["browse/edit_playlist"];wVX=["notification/record_interactions"];EXJ=["reel/reel_item_watch"];pVW=["reel/reel_watch_sequence"];SCB=["like/removelike"];XVe=["notification/remove_upcoming_event_reminder"];
$ve=["flag/get_form"];GPW=["miniapp/report_value"];b_n=["navigation/resolve_url"];I4O=["channel/reveal_business_email"];hkb=["in_video/search"];qO8=["search","sfv/search","unplugged/search"];jH5=["live_chat/send_message"];l4i=["live_chat/send_live_chat_vote"];mvi=["account/set_setting"];ekQ=["submit_caption_correction"];VFO=["submit_form"];Dv5=["subscription/subscribe"];$Xr=["get_transcript"];cPA=["resolve_location","unplugged/resolve_location"];kPz=["subscription/unsubscribe"];v7B=["backstage/update_post"];
L1A=["channel_edit/update_channel_page_settings"];QHJ=["comment/update_comment_reply"];xvB=["comment/update_comment"];f4b=["comment/update_comments_settings"];To5=["creator/update_creator_channel"];BoQ=["pdg/update_enablement"];Uvb=["updated_metadata"];sHJ=["channel_edit/validate_channel_handle"];g7n=["verify_age"];APb=["next","unplugged/watch_next"];MFn=["whitelist/edit"];Z_n=["ypc/cancel_recurrence"];tFn=["ypc/complete_transaction"];zkB=["ypc/get_cart"];o7J=["ypc/get_fix_instrument_params"];
i_A=["ypc/get_offers"];P_5=["ypc/get_payment_instruments_params"];dv8=["ypc/handle_transaction"];yPi=["ypc/log_payment_server_analytics"];rPJ=["ypc/pause_subscription"];F1u=["ypc/redeem_code"];H_B=["ypc/resume_subscription"];var W15=[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,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,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,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,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,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,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,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,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,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 hZ=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.cz("yt.msgs_",hZ);var fm=new _.q3("ACTION_ROUTER_TOKEN");_.TW=function(){this.autonavState_=_.U("kevlar_is_pupi_enabled")?2:eGs()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.TW.prototype.getState=function(){return this.autonavState_};
_.TW.prototype.pause=function(G){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=G):this.autonavState_==1&&(this.disabledAutonavPauseReason_=G)};
_.TW.prototype.setState=function(G,b,I){b&&(this.autoplayChangedByUser=!0);b=this.autonavState_===3||G===3;this.autonavState_!=G&&(this.autonavState_=G,G!=3&&_.VIu(G==2),G=_.U("kevlar_is_pupi_enabled")?I||b:!0,_.I1.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,G,I))};
_.TW.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.RA(_.TW);var Bs=function(){this.hasRun=!1};var UL={},UZO=(UL.auto_search="LATENCY_ACTION_AUTO_SEARCH",UL.ad_to_ad="LATENCY_ACTION_AD_TO_AD",UL.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",UL.app_startup="LATENCY_ACTION_APP_STARTUP",UL.browse="LATENCY_ACTION_BROWSE",UL.cast_splash="LATENCY_ACTION_CAST_SPLASH",UL.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",UL.channels="LATENCY_ACTION_CHANNELS",UL.chips="LATENCY_ACTION_CHIPS",UL.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",UL.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
UL.editor="LATENCY_ACTION_EDITOR",UL.embed="LATENCY_ACTION_EMBED",UL.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",UL.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",UL.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",UL.explore="LATENCY_ACTION_EXPLORE",UL.favorites="LATENCY_ACTION_FAVORITES",UL.home="LATENCY_ACTION_HOME",UL.inboarding="LATENCY_ACTION_INBOARDING",UL.landing="LATENCY_ACTION_LANDING",UL.learning="LATENCY_ACTION_LEARNING",
UL.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",UL.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",UL.library="LATENCY_ACTION_LIBRARY",UL.live="LATENCY_ACTION_LIVE",UL.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",UL.management="LATENCY_ACTION_MANAGEMENT",UL.mini_app="LATENCY_ACTION_MINI_APP_PLAY",UL.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",UL.onboarding="LATENCY_ACTION_ONBOARDING",UL.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
UL.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",UL.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",UL.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",UL.prebuffer="LATENCY_ACTION_PREBUFFER",UL.prefetch="LATENCY_ACTION_PREFETCH",UL.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",UL.profile_switcher="LATENCY_ACTION_LOGIN",UL.projects="LATENCY_ACTION_PROJECTS",UL.reel_watch="LATENCY_ACTION_REEL_WATCH",UL.results="LATENCY_ACTION_RESULTS",UL.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
UL.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",UL.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",UL.review="LATENCY_ACTION_REVIEW",UL.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",UL.search_ui="LATENCY_ACTION_SEARCH_UI",UL.search_suggest="LATENCY_ACTION_SUGGEST",UL.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",UL.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",UL.seek="LATENCY_ACTION_PLAYER_SEEK",UL.settings="LATENCY_ACTION_SETTINGS",UL.store="LATENCY_ACTION_STORE",
UL.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",UL.tenx="LATENCY_ACTION_TENX",UL.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",UL.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",UL.watch="LATENCY_ACTION_WATCH",UL.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",UL["watch,watch7"]="LATENCY_ACTION_WATCH",UL["watch,watch7_html5"]="LATENCY_ACTION_WATCH",UL["watch,watch7ad"]="LATENCY_ACTION_WATCH",UL["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",UL.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
UL.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",UL.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",UL.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",UL.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",UL.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",UL.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",UL.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",UL),Hbp=0;var Jsu=function(G,b){iO.call(this,1,arguments);this.timer=b};
_.M(Jsu,iO);var CCB=new FuB("aft-recorded",Jsu);var MIs=_.hd.ytLoggingGelSequenceIdObj_||{};_.cz("ytLoggingGelSequenceIdObj_",MIs);var sL=_.hd.ytLoggingLatencyUsageStats_||{};_.cz("ytLoggingLatencyUsageStats_",sL);var gS=function(){this.cleanupJob=0},zG2=function(){gS.instance||(gS.instance=new gS);
return gS.instance};
_.m=gS.prototype;_.m.baseline=function(G,b,I){Ae(this,"baseline_"+G)||_.C1("latencyActionBaselined",{clientActionNonce:G},{timestamp:b,cttAuthInfo:I})};
_.m.tick=function(G,b,I,h){Ae(this,"tick_"+G+"_"+b)||_.C1("latencyActionTicked",{tickName:G,clientActionNonce:b},{timestamp:I,cttAuthInfo:h})};
_.m.info=function(G,b,I){var h=Object.keys(G).join("");Ae(this,"info_"+h+"_"+b)||(G=Object.assign({},G),G.clientActionNonce=b,_.C1("latencyActionInfo",G,{cttAuthInfo:I}))};
_.m.jspbInfo=function(G,b,I){for(var h="",q=0;q<Nf(G).length;q++)Nf(G)[q]!==void 0&&(h=q===0?h.concat(""+q):h.concat("_"+q));Ae(this,"info_"+h+"_"+b)||(_.F0(G,2,b),b={cttAuthInfo:I},I=_.U("jspb_sparse_encoded_pivot")?new rH([{}]):new rH,_.tz(I,7,Ybb,G),ZbO("latencyActionInfo",I,b))};
_.m.span=function(G,b,I){var h=Object.keys(G).join("");Ae(this,"span_"+h+"_"+b)||(G.clientActionNonce=b,_.C1("latencyActionSpan",G,{cttAuthInfo:I}))};
var Ae=function(G,b){sL[b]=sL[b]||{count:0};var I=sL[b];I.count++;I.time=(0,_.Li)();G.cleanupJob||(G.cleanupJob=_.FQ(_.uu,function(){var h=(0,_.Li)(),q;for(q in sL)sL[q]&&h-sL[q].time>6E4&&delete sL[q];G&&(G.cleanupJob=0)},5E3));
return I.count>5?(I.count===6&&Math.random()*1E5<1&&(I=new _.Wf("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||_.RB(I)),!0):!1};var a4i,Non;a4i=window;Non=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.kP=a4i.performance||a4i.mozPerformance||a4i.msPerformance||a4i.webkitPerformance||new Non;var YUu=!1,ibv=!1,K4d=(0,_.Hr)(_.kP.clearResourceTimings||_.kP.webkitClearResourceTimings||_.kP.mozClearResourceTimings||_.kP.msClearResourceTimings||_.kP.oClearResourceTimings||_.sp,_.kP);var YOn=window;YOn.ytcsi&&(YOn.ytcsi.infoGel=_.Tm,YOn.ytcsi.tick=_.sS);var GWq=function(G){iO.call(this,1,arguments);this.csn=G};
_.M(GWq,iO);var YoO=new FuB("screen-created",GWq),xju=[],$j2=Qas,fRa=0,oW=new Map,bmO=new Map,IRr=new Map;var Ss2=Symbol("Cf"),YP=new WeakMap;var Mj=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},l$=function(){Mj.instance||(Mj.instance=new Mj);
return Mj.instance};
_.m=Mj.prototype;_.m.setClient=function(G){this.client=G};
_.m.JSC$12794_newScreen=function(){this.clear();this.csn=_.gL()};
_.m.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.m.reportShown=function(G,b,I){var h=this.JSC$12794_getTrackingParams(G),q=G.visualElement?G.visualElement:h;b=this.shownElements.has(q);var l=this.visibleState.get(q);this.shownElements.add(q);this.visibleState.set(q,!0);G.impressionLog&&!b&&G.impressionLog();if(h||G.visualElement)if(I=C_e(this,G,I))if(q=JPW(this,G),ZR(this,G)||q){h=G.visualElement?G.visualElement:_.VB(h);var V=G.interactionLoggingClientData;q||b?ZR(this,G)&4?l||Dja(this.client,I,h,V):ZR(this,G)&1&&!b&&mjO(this.client,I,h,V):mjO(this.client,
I,h,V)}};
_.m.reportHidden=function(G,b,I){var h=this.JSC$12794_getTrackingParams(G),q=G.visualElement?G.visualElement:h;b=this.hiddenElements.has(q);var l=this.visibleState.get(q);this.hiddenElements.add(q);this.visibleState.set(q,!1);if(l===!1)return!0;if(!h&&!G.visualElement)return!1;I=C_e(this,G,I);if(!I||!ZR(this,G)&&JPW(this,G))return!1;h=G.visualElement?G.visualElement:_.VB(h);ZR(this,G)&8?ceq(this.client,I,h):ZR(this,G)&2&&!b&&(G=this.client,b=zm({cttAuthInfo:A_(I)||void 0},I),h={csn:I,ve:h.getAsJson(),
eventType:2},I==="UNDEFINED_CSN"?PT("visualElementHidden",b,h):G?NB("visualElementHidden",h,G,b):_.C1("visualElementHidden",h,b));return!0};
_.m.JSC$12794_getTrackingParams=function(G){var b=this.getData(G),I,h;if(_.U("il_use_view_model_logging_context")&&(b==null?0:(I=b.context)==null?0:(h=I.loggingContext)==null?0:h.loggingDirectives))return b.context.loggingContext.loggingDirectives.trackingParams||"";var q,l;if(b==null?0:(q=b.rendererContext)==null?0:(l=q.loggingContext)==null?0:l.loggingDirectives)return b.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(b==null?0:b.loggingDirectives)return b.loggingDirectives.trackingParams||
"";var V;return((V=G.veContainer)==null?0:V.trackingParams)?G.veContainer.trackingParams:(b==null?void 0:b.trackingParams)||""};
_.m.JSC$12794_elementShouldLogGesture=function(G,b){G=this.getData(G);return!!((Math.floor(Number(G&&G.loggingDirectives&&G.loggingDirectives.gestures&&G.loggingDirectives.gestures.types||""))||0)&b)};
_.m.JSC$12794_getNearestParentVe=function(G){var b=this.JSC$12794_getTrackingParams(G);return G.visualElement?G.visualElement:b?_.VB(b):G.parentElement?this.JSC$12794_getNearestParentVe(G.parentElement):null};
var C_e=function(G,b,I){var h=_.gL(I);return G.csn===null||h===G.csn||I?h:(G=new _.Wf("VisibilityLogger called before newScreen",{caller:b.tagName,previous_csn:G.csn,current_csn:h}),_.RB(G),null)};
Mj.prototype.getData=function(G){var b,I=G.data||((b=G.props)==null?void 0:b.data);if(!I||G.isWebComponentWrapper){var h;I=(h=YP.get(G))==null?void 0:h[Ss2]}return I};
var JPW=function(G,b){var I;return!((I=G.getData(b))==null||!I.loggingDirectives)},ZR=function(G,b){G=G.getData(b);
return Math.floor(Number(G&&G.loggingDirectives&&G.loggingDirectives.visibility&&G.loggingDirectives.visibility.types||""))||1};var te;te=function(){};
_.b$=function(){te.instance||(te.instance=new te);return te.instance};
te.prototype.setClient=function(G){_.$W(l$().setClient).bind(l$())(G)};
_.K1B=function(){_.b$();_.$W(l$().JSC$12794_newScreen).bind(l$())()};
te.prototype.clear=function(){_.$W(l$().clear).bind(l$())()};
te.prototype.reportShown=function(G,b,I){_.$W(l$().reportShown).bind(l$())(G,b,I)};
te.prototype.reportHidden=function(G,b,I){return _.$W(l$().reportHidden).bind(l$())(G,b,I)};
var KZj=function(G,b){return _.$W(l$().JSC$12794_getTrackingParams).bind(l$())(b)},X7p=function(G,b){return _.$W(l$().JSC$12794_getNearestParentVe).bind(l$())(b)};var zW,uwW;zW=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};
_.qo=function(){zW.instance||(zW.instance=new zW);return zW.instance};
zW.prototype.setClient=function(G){this.client=G};
uwW=function(G,b,I){I=I===void 0?{}:I;_.$W(function(){var h,q,l,V=((h=_.g(b==null?void 0:b.commandMetadata,_.IW))==null?void 0:h.rootVe)||((q=_.g(b==null?void 0:b.commandMetadata,t6n))==null?void 0:(l=q.screenVisualElement)==null?void 0:l.uiType);if(V){h=_.g(b==null?void 0:b.commandMetadata,BNA);if(h==null?0:h.parentTrackingParams){var D=_.VB(h.parentTrackingParams);if(h.parentCsn)var k=h.parentCsn}else I.clickedVisualElement?D=I.clickedVisualElement:b.clickTrackingParams&&(D=_.VB(b.clickTrackingParams));
a:{h=_.g(b,_.Wq);q=_.g(b,e6r);if(h){if(q=DZO(h,"VIDEO")){h={token:q,videoId:h.videoId};break a}}else if(q&&(h=DZO(q,"PLAYLIST"))){h={token:h,playlistId:q.playlistId};break a}h=void 0}I=Object.assign({},{cttAuthInfo:h,parentCsn:k},I);if(_.U("expectation_logging")){var L;I.loggingExpectations=((L=_.g(b==null?void 0:b.commandMetadata,t6n))==null?void 0:L.loggingExpectations)||void 0}_.oa(G,V,D,I)}else _.RB(new _.Wf("Error: Trying to create a new screen without a rootVeType",b))})()};
_.oa=function(G,b,I,h){h=h===void 0?{}:h;_.$W(function(){W15.includes(b)||(_.RB(new _.Wf("createClientScreen() called with a non-page VE",b)),b=83769);h.isHistoryNavigation||(G.forwardHistoryStack=[],G.backHistoryStack.push({rootVe:b,key:h.key||""}));G.graftQueue=[];G.stateChangedQueue=[];h.dataPromises?RkX(G,b,I,h):n7O(G,b,I,h)})()};
_.O_z=function(G,b,I){I=I===void 0?0:I;_.$W(function(){b.then(function(h){G.pendingScreenCreation.has(I)&&G.pendingScreenFn&&G.pendingScreenFn();var q=_.gL(I),l=_.s3(I);if(q&&l){var V={automatedLogEventSource:3},D;(h==null?0:(D=h.response)==null?0:D.trackingParams)&&i9(G.client,q,l,_.VB(h.response.trackingParams),!1,V);var k;(h==null?0:(k=h.playerResponse)==null?0:k.trackingParams)&&i9(G.client,q,l,_.VB(h.playerResponse.trackingParams),!1,V)}})})()};
zW.prototype.graftServerVe=function(G,b,I){var h=this;return _.$W(function(){var q=_.VB(G);_.iz(h,q,b,I);return q})()};
_.$6O=function(G,b,I,h){return _.U("enable_client_ve_spec")&&b.clientVeSpec?(b=_.Xs(b.clientVeSpec.uiType,void 0,b.clientVeSpec.elementIndex,b.clientVeSpec.clientYoutubeData,void 0,b),_.iz(G,b,I,h)?b:null):b.trackingParams?G.graftServerVe(b.trackingParams,I,h):null};
_.IM=function(G,b,I,h){return _.$W(function(){if(!b.veType)return _.u6(new _.Wf("Error: Trying to graft a client VE without a veType.")),null;if(b.visibilityTypes){var q=b.visibilityTypes.reduce(function(l,V){return l|V});
q={visibility:{types:String(q)}}}q=_.Xs(b.veType,b.visualElement,b.elementIndex,b.clientYouTubeData,void 0,q);return _.iz(G,q,I,h)?q:null})()};
_.iz=function(G,b,I,h){h=h===void 0?0:h;return _.$W(function(){if(G.pendingScreenCreation.has(h))return G.graftQueue.push([b,I]),!0;var q=_.gL(h),l=I||_.s3(h);if(q&&l){if(_.U("combine_ve_grafts")){var V=G.cachedVisualElements.get(l.toString());V?V.push(b):(G.cachedRootVisualElements.set(l.toString(),l),G.cachedVisualElements.set(l.toString(),[b]));G.attachTimeout||(G.attachTimeout=_.FQ(_.uu,function(){wWi(G,q)},1200))}else i9(G.client,q,l,b);
return!0}return!1})()};
_.Ps=function(G,b,I){I=I===void 0?0:I;var h=G.recurringGrafts.get(I)||new Map;if(_.U("smarter_ve_dedupping"))for(var q=Array.from(h.keys()),l=0;l<q.length;l++){var V=void 0,D=void 0;var k=b;var L=q[l];L.isClientVe()&&k.isClientVe()?(V=k.getAsJson(),D=L.getAsJson(),k=V.veType!==D.veType||V.elementIndex!==D.elementIndex||V.dataElement!==D.dataElement||k.getLoggingDirectives()!==L.getLoggingDirectives()?!1:!0):k=L.veData.trackingParams!==void 0&&k.veData.trackingParams!==void 0?((D=k.veData)==null?void 0:
D.trackingParams)===((V=L.veData)==null?void 0:V.trackingParams):!1;if(k)return}else if(h.has(b))return;h.set(b,void 0);G.recurringGrafts.set(I,h);_.gL(I)==="UNDEFINED_CSN"||G.pendingScreenCreation.has(I)||_.iz(G,b,void 0,I)};
_.dS=function(G,b,I,h){h=_.gL(h===void 0?0:h);if(!h)return!1;vFB(G.client,h,b,I);return!0};
_.yw=function(G,b,I,h){if(!b)return!1;h=_.gL(h===void 0?0:h);if(!h)return!1;vFB(G.client,h,_.VB(b),I);return!0};
_.or=function(G,b){var I=b.getScreenLayer&&b.getScreenLayer();if(b.visualElement)return _.dS(G,b.visualElement,void 0,I);b=KZj(_.b$(),b);return _.yw(G,b,void 0,I)};
zW.prototype.clickCommand=function(G,b,I){return _.yw(this,G.clickTrackingParams,b,I===void 0?0:I)};
zW.prototype.stateChanged=function(G,b,I){this.visualElementStateChanged(_.VB(G),b,I===void 0?0:I)};
zW.prototype.visualElementStateChanged=function(G,b,I){I=I===void 0?0:I;I===0&&this.pendingScreenCreation.has(I)?this.stateChangedQueue.push([G,b]):this.logStateChanged(G,b,I)};
zW.prototype.logStateChanged=function(G,b,I){I=I===void 0?0:I;var h=_.gL(I);G=G||_.s3(I);return h&&G?(LSr(this.client,h,G,b),!0):!1};
var RkX=function(G,b,I,h){h=h===void 0?{}:h;G.pendingScreenCreation.add(h.layer||0);G.pendingScreenFn=function(){n7O(G,b,I,h);var V=_.s3(h.layer);if(V){for(var D=_.e(G.graftQueue),k=D.next();!k.done;k=D.next())k=k.value,_.iz(G,k[0],k[1]||V,h.layer);V=_.e(G.stateChangedQueue);for(D=V.next();!D.done;D=V.next())D=D.value,G.logStateChanged(D[0],D[1])}};
I||_.gL(h.layer)||G.pendingScreenFn();if(h.dataPromises)for(var q=_.e(h.dataPromises),l=q.next();!l.done;l=q.next())_.O_z(G,l.value,h.layer);else _.K1(Error("Df"))},n7O=function(G,b,I,h){h=h===void 0?{}:h;
var q=void 0;h.layer||(h.layer=0);q=h.parentLayer!==void 0?h.parentLayer:h.layer;var l=_.gL(q);q=_.s3(q);var V=I||q,D;V&&(h.parentCsn!==void 0?D={clientScreenNonce:h.parentCsn,visualElement:V}:l&&l!=="UNDEFINED_CSN"&&(D={clientScreenNonce:l,visualElement:V}));var k,L=_.wy("EVENT_ID");l==="UNDEFINED_CSN"&&L&&(k={servletData:{serializedServletEventId:L}});_.U("combine_ve_grafts")&&l&&wWi(G,l);_.U("no_client_ve_attach_unless_shown")&&V&&l&&lRO(V,l);try{var x=_.hXj(G.client,b,D,h.csnToClone,h.cttAuthInfo,
k,h.implicitGestureType,void 0,h.loggingExpectations)}catch(B){_.n1(B,{rootVeType:b,rootVe:q,parentVisualElement:I,currentCsn:l,parentEl:D,csnToClone:h.csnToClone});_.K1(B);return}_.Mi(x,b,h.layer,h.cttAuthInfo);l&&l!=="UNDEFINED_CSN"&&q&&!v6p(l)&&ceq(G.client,l,q,!0);G.backHistoryStack[G.backHistoryStack.length-1]&&!G.backHistoryStack[G.backHistoryStack.length-1].csn&&(G.backHistoryStack[G.backHistoryStack.length-1].csn=x||"");_.Tm({clientScreenNonce:x});_.K1B();var f=_.s3(h.layer);l&&l!=="UNDEFINED_CSN"&&
f&&(_.U("web_mark_root_visible")||_.U("music_web_mark_root_visible"))&&_.rK(x,f);G.pendingScreenCreation.delete(h.layer||0);G.pendingScreenFn=void 0;var T;(T=G.recurringGrafts.get(h.layer))==null||T.forEach(function(B,A){B?_.iz(G,A,B,h.layer):f&&_.iz(G,A,f,h.layer)});
E7n(G)},E7n=function(G){for(var b=0;b<G.afterNewScreenOneOffJobs.length;b++){var I=G.afterNewScreenOneOffJobs[b];
try{I()}catch(h){_.K1(h)}}for(b=G.afterNewScreenOneOffJobs.length=0;b<G.afterNewScreenRecurringJobs.length;b++){I=G.afterNewScreenRecurringJobs[b];try{I()}catch(h){_.K1(h)}}},wWi=function(G,b){if(b===void 0)for(var I=crO(),h=0;h<I.length;h++)I[h]!==void 0&&wWi(G,I[h]);
else G.cachedVisualElements.forEach(function(q,l){(l=G.cachedRootVisualElements.get(l))&&qLj(G.client,b,l,q)}),G.cachedVisualElements.clear(),G.cachedRootVisualElements.clear(),G.attachTimeout=void 0};var rS=function(G){G=G===void 0?{layer:0}:G;this.hasRun=!1;this.createScreenConfig=G;G={};this.efu=(G.response=!1,G.playerResponse=!1,G)};
_.M(rS,Bs);rS.prototype.validate=function(G){return!(!G.data||!G.data.response&&!G.data.playerResponse)};
rS.prototype.handle=function(G){var b=_.qo(),I=this.createScreenConfig.layer;G.data.response&&G.data.response.trackingParams&&!this.efu.response&&(b.graftServerVe(G.data.response.trackingParams,void 0,I),this.efu.response=!0);G.data.playerResponse&&G.data.playerResponse.trackingParams&&!this.efu.playerResponse&&(b.graftServerVe(G.data.playerResponse.trackingParams,void 0,I),this.efu.playerResponse=!0)};var Fg=function(){this.cg=_.yO();this.uc=[];this.hmz=0};
Fg.prototype.processChunk=function(G){if(G){for(var b=_.e(this.uc),I=b.next();!I.done;I=b.next())I=I.value,I.validate(G)&&(I.handle(G),I.hasRun=!0);_.sS("np"+this.hmz);this.hmz++}};var AeO=function(G,b,I){I=I===void 0?{}:I;this.name=G;this.id=CU.nextSpanId++;this.sessionId=CU.sessionId;this.attributes=b;this.status=0;var h;this.startTime=(h=I.startTime)!=null?h:(0,_.Li)();this.isActiveSpan=I.active;if(G=CU.stack[CU.stack.length-1])this.parentId=G.id,G.children||(G.children=[]),G.children.push(this);G=_.e(CU.processors);for(b=G.next();!b.done;b=G.next()){b=b.value;try{var q=h=void 0;(q=(h=b).onSpanStart)==null||q.call(h,this)}catch(l){_.RB(l)}}I.endTime!=null&&(this.isActiveSpan=
!1,this.end(1,I.endTime))};
AeO.prototype.end=function(G,b){G=G===void 0?1:G;this.endTime=b=b===void 0?(0,_.Li)():b;this.duration=this.endTime-this.startTime;this.status=G;this.isActiveSpan!==!1&&(CU.stack[CU.stack.length-1]===this?CU.stack.pop():_.RB(Error("Ef`"+String(this.name))));G=_.e(CU.processors);for(b=G.next();!b.done;b=G.next()){b=b.value;try{var I=void 0,h=void 0;(h=(I=b).onSpanEnd)==null||h.call(I,this)}catch(q){_.RB(q)}}};
AeO.prototype.addAttributes=function(G){Object.assign(this.attributes,G)};
var M6v={end:function(){},
addAttributes:function(){}},CU={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},gFr={rootSpan:function(){return CU.stack[0]}};var zXO={};var m7O=function(G){this.observers=[];this.value=G};
_.m=m7O.prototype;_.m.subscribe=function(G){var b=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=b.observers[b.observers.length-1];b.observers[G.idx]=I;I.idx=G.idx;b.observers.pop()}};
_.m.update=function(G){this.value=G(this.value);this.notify()};
_.m.mutate=function(G){G(this.value);this.notify()};
_.m.set=function(G){this.value=G;this.notify()};
_.m.notify=function(){for(var G=_.e(this.observers),b=G.next();!b.done;b=G.next()){b=b.value;try{b(this.value)}catch(I){}}};var U6O,pWW,$li;_.Xv=function(G,b,I,h,q,l,V,D){V=V===void 0?[]:V;D=D===void 0?[]:D;this.buildCommandPayload=G;this.navigate=b;this.handleServiceRequest=I;this.sendAction=h;this.JSC$12844_screenManager=q;this.commandResolverMap=l;this.autoLogResolverAllowlist=V;this.metaCommandClickLoggingDenylist=D;this.pendingCommands=new Set;this.isTracingEnabled=!1;pWW(this)};
U6O=function(G,b,I){var h=[_.Rqb,jzX],q=lw2,l=m6j,V=_.qo(),D=SOb;I=I===void 0?[]:I;h=h===void 0?[]:h;_.Xv.instance=new _.Xv(G,b,q,l,V,D,I,h)};
pWW=function(G){if(!G.isTracingEnabled&&sad("command")){var b=G.resolveCommand;G.resolveCommand=function(I,h){a:{for(q in I)if(Object.prototype.hasOwnProperty.call(I,q)){var q={commandType:q};break a}q={}}return t6O("command",q,b.bind(this,I,h))};
G.isTracingEnabled=!0}};
$li=function(G,b,I){if(!G.commandResolverMap)return!1;var h=rep(b,G.commandResolverMap);return h?((G.autoLogResolverAllowlist.some(function(q){return!!_.g(b,q)})||(I==null?0:I.forceClickLogging))&&XWi(G,b,I),h instanceof Promise?h.then(function(q){q.resolve(b,I)}):h.resolve(b,I),!0):!1};
_.Xv.prototype.resolveCommand=function(G,b){var I=this,h=GLQ(G);if($li(this,G,b))return!0;if(h)return bzQ(this,G,b);if(!this.buildCommandPayload)return Pzp(G,"Unhandled command by buildCommandPayload"),!1;var q=this.buildCommandPayload(G,b);if(b==null?0:b.commandController)q.commandController=b.commandController;if(q.type===0){if(!this.navigate)return djX(G,"navigate"),!1;if(!IvJ(q.command))return Pzp(G,"Page requests need to specify a url"),!1;_.U("logging_avoid_blocking_during_navigation")&&_.Aaa().transition("application_navigating");
G=this.navigate(q)||[];zTi(G).then(function(){I.pendingCommands.delete(q.command)});
return!0}if(q.type===1){if(!this.handleServiceRequest)return djX(G,"handleServiceRequest"),!1;(b==null?0:b.forceClickLogging)&&XWi(this,q.command,b);G=this.handleServiceRequest(q);zTi(G).then(function(){I.pendingCommands.delete(q.command)});
return!0}if(q.type===2){if(!this.sendAction)return djX(G,"sendAction"),!1;XWi(this,q.command,b);this.sendAction(q);return!0}return!1};
var XWi=function(G,b,I){if((I==null||!I.disableClickTracking)&&G.JSC$12844_screenManager)if(b.clickTrackingParams&&_.U("log_click_with_layer_from_element_in_command_handler")){var h;I=I==null?void 0:(h=I.form)==null?void 0:h.element;G.JSC$12844_screenManager.clickCommand(b,null,I&&I.getScreenLayer&&I.getScreenLayer())}else b.clickTrackingParams?G.JSC$12844_screenManager.clickCommand(b):!_.U("disable_clicked_visual_element_in_command_handler")&&(I==null?0:I.clickedVisualElement)&&_.dS(G.JSC$12844_screenManager,
I.clickedVisualElement)},GLQ=function(G){var b=!!_.g(G,_.$P),I;
G=((I=_.g(G,_.b9))==null?void 0:I.signal)==="CLIENT_SIGNAL";return b||G},bzQ=function(G,b,I){var h=_.g(b,_.$P);
if(h)var q=(h==null?void 0:h.commands)||[];else{var l;if(((l=_.g(b,_.b9))==null?void 0:l.signal)==="CLIENT_SIGNAL"){var V;q=((V=_.g(b,_.b9))==null?void 0:V.actions)||[]}}if(q){(h=hOQ(G,q))&&XWi(G,b,I);b=_.e(q);for(q=b.next();!q.done;q=b.next()){q=q.value;try{var D=Object.assign({},I);h&&(D.disableClickTracking=!0);G.resolveCommand(q,D)}catch(k){k instanceof Error&&_.K1(k)}}return!0}Pzp(b,"Could not handle the meta command");return!1},hOQ=function(G,b){return b.every(function(I){return G.metaCommandClickLoggingDenylist.some(function(h){return!!_.g(I,
h)})})},IvJ=function(G){var b;
return!((b=_.g(G==null?void 0:G.commandMetadata,_.IW))==null||!b.url)};var Hs=function(){Bs.apply(this,arguments)};
_.M(Hs,Bs);Hs.prototype.validate=function(G){var b,I;return!this.hasRun&&!!((b=G.data.response)==null?0:(I=b.onResponseReceivedEndpoints)==null?0:I.length)};
Hs.prototype.handle=function(G){var b=_.Xv.instance;G=_.e(G.data.response.onResponseReceivedEndpoints);for(var I=G.next();!I.done;I=G.next())b.resolveCommand(I.value)};var qxJ,j8b,lvu;
qxJ=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=_.X8();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.Ws=function(){j8b||(j8b=new qxJ);return j8b};
lvu=function(){var G=_.Ws();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};
_.ml8=function(){var G=_.Ws(),b=G.mediaSessionPipActivation,I=G.watchPipActivation,h=G.watchWhileActivation,q=G.playlistWatchPageActivation,l=G.lockupActivation,V=G.showMiniplayerCommandActivation,D=G.navigatingAwayFromWatchDeletedVideo,k=G.shortsPipActivation,L=G.playlistSuggestionsShelfActivation,x=G.productDetailsPageActivation,f=G.miniAppPageActivation,T=G.playablesDestPageActivation,B=G.companionCanvasActivation;return!G.miniplayerButtonActivation&&!q&&!L&&!x&&!f&&!T&&!l&&!V&&!b&&!I&&!h&&!k&&
!B||D};var pGr;_.aa=_.KU("FEwhat_to_watch","/",3854);_.Ser=_.KU("FEdownloads","/feed/downloads",42352);pGr=_.KU("FEmusic_offline","browse/FEmusic_offline",42352);var YS=function(G,b){b=b===void 0?[]:b;var I=I===void 0?[]:I;b=uiu.apply(null,[Rwr.apply(null,_.Nz(b))].concat(_.Nz(I)));this.store=E4q(G,void 0,b)};
YS.prototype.getState=function(){return this.store.getState()};
YS.prototype.dispatch=function(G){return this.store.dispatch(G)};
YS.prototype.subscribe=function(G){return this.store.subscribe(G)};
YS.prototype.replaceReducer=function(G){return this.store.replaceReducer(G)};
YS.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Nj=function(G,b,I){var h=b(G.getState());return G.subscribe(function(){var q=b(G.getState());if(q!==h){var l=h;h=q;I(q,l)}})};var MmO;_.Da=function(G,b,I){return _.wK({type:"REPLACE_ENTITY",payload:{entityPayload:I,entityType:G,key:b}})};
MmO=function(G){return _.wK({type:"REPLACE_ENTITIES",payload:G})};
_.BR=function(G,b,I,h){return _.wK({type:"UPDATE_ENTITY",payload:{entityPayload:I,entityType:G,key:b,mergeOption:h}})};var Oma=function(G){var b=this;G=G===void 0?[]:G;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;G.forEach(function(I){b.append(I)})};
_.m=Oma.prototype;_.m.getLength=function(){return this.totalLength};
_.m.append=function(G){var b=this.arrays.length===0?!1:(b=this.arrays[this.arrays.length-1])&&b.buffer===G.buffer&&b.byteOffset+b.length===G.byteOffset;b?(b=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+G.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(G);this.totalLength+=G.length};
_.m.split=function(G){for(var b=new Oma,I=new Oma,h=_.e(this.arrays),q=h.next();!q.done;q=h.next())q=q.value,G>=q.length?(b.append(q),G-=q.length):G?(b.append(new Uint8Array(q.buffer,q.byteOffset,G)),I.append(new Uint8Array(q.buffer,q.byteOffset+G,q.length-G)),G=0):I.append(q);return{headView:b,tailView:I}};
_.m.isFocused=function(G){return G>=this.arrayPos&&G<this.arrayPos+this.arrays[this.arrayIdx].length};
_.m.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 eOz=function(G,b){G.focus(b);return G.arrays[G.arrayIdx][b-G.arrayPos]};(function(){var G=function(h){return new Uint8Array(h)},b=function(h){for(var q=new Uint8Array(h.length),l=0;l<h.length;l++)q[l]=h[l];
return q},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?G:b})();
var Cz2=Array(1024),YLu=window.TextDecoder?new TextDecoder:void 0,KSr=window.TextEncoder?new TextEncoder:void 0;var nFp=function(G){this.arrayView=G;this.pos=0;this.pendingTagAndType=-1},ES=function(G){var b=eOz(G.arrayView,G.pos);
++G.pos;if(b<128)return b;for(var I=b&127,h=1;b>=128;)b=eOz(G.arrayView,G.pos),++G.pos,h*=128,I+=(b&127)*h;return I},wsd=function(G,b){var I=G.pendingTagAndType;
for(G.pendingTagAndType=-1;G.pos+1<=G.arrayView.totalLength;){I<0&&(I=ES(G));var h=I>>3,q=I&7;if(h===b)return!0;if(h>b){G.pendingTagAndType=I;break}I=-1;switch(q){case 0:ES(G);break;case 1:G.pos+=8;break;case 2:h=ES(G);G.pos+=h;break;case 5:G.pos+=4}}return!1};var psX=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=RXX(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},XT=function(G,b){b=G.pos+b;
if(!(G.buf.length>=b)){for(var I=G.buf.length*2;I<b;)I*=2;G.buf=RXX(I,G.wasm,G.buf.subarray(0,G.pos));G.view=new DataView(G.buf.buffer,G.buf.byteOffset,G.buf.byteLength)}},SX=function(G,b){if(b>268435455){XT(G,4);
for(var I=b&1073741823,h=0;h<4;h++)G.view.setUint8(G.pos,I&127|128),I>>=7,G.pos+=1;b=Math.floor(b/268435456)}for(XT(G,4);b>127;)G.view.setUint8(G.pos,b&127|128),b>>=7,G.pos+=1;G.view.setUint8(G.pos,b);G.pos+=1};for(var SLu={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},EFq={},VUO=_.e(Object.entries(SLu)),DlB=VUO.next();!DlB.done;DlB=VUO.next()){var cOu=_.e(DlB.value),kLn=cOu.next().value,vOb=cOu.next().value,Lgu=kLn,Q8n=vOb;Q8n&&(EFq[Q8n]=Lgu)};var $SO=function(G,b){G=G===void 0?{}:G;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(h,q){var l,V=(l=q.options)==null?void 0:l.persistenceOption;if(V&&V!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&V!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return h;if(!q.entityKey)return _.K1(Error("If")),h;if(q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!q.payload)return q=new _.Wf("REPLACE entity mutation is missing a payload",{entityKey:q.entityKey}),_.K1(q),h;var D=(0,_.Cy.getAnyKey)(q.payload);
return bRj(h,D,q.entityKey,q.payload[D])}if(q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{q=q.entityKey;try{var k=_.pU(q).entityType;D=bRj(h,k,q);break a}catch(f){if(f instanceof Error){q=new _.Wf("Failed to deserialize entity key",{entityKey:q,originalMessage:f.message});_.K1(q);D=h;break a}throw f;}D=void 0}return D}if(q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!q.payload)return q=new _.Wf("UPDATE entity mutation is missing a payload",{entityKey:q.entityKey}),_.K1(q),h;D=(0,_.Cy.getAnyKey)(q.payload);
var L,x;return Igr(h,D,q.entityKey,q.payload[D],(L=q.fieldMask)==null?void 0:(x=L.mergeOptions)==null?void 0:x.repeatedFieldsMergeOption)}return h},G);
case "REPLACE_ENTITY":var I=b.payload;return bRj(G,I.entityType,I.key,I.entityPayload);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(h,q){var l=b.payload[q];return Object.keys(l).reduce(function(V,D){return bRj(V,q,D,l[D])},h)},G);
case "UPDATE_ENTITY":return I=b.payload,Igr(G,I.entityType,I.key,I.entityPayload,I.mergeOption);default:return G}};var h4u;var xlW=!1,YF,Cm,Je,Km,uz,fv5=function(G){_.FN.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!xlW){var b,I=new Uint8Array(256),h=new Uint8Array(256);var q=1;for(b=0;b<256;b++)I[q]=b,h[b]=q,q^=q<<1^(q>>7&&283);YF=new Uint8Array(256);Cm=bm(256);Je=bm(256);Km=bm(256);uz=bm(256);for(var l=0;l<256;l++){q=l?h[255^I[l]]:0;q^=q<<1^q<<2^q<<3^q<<4;q=q&255^q>>>8^99;YF[l]=q;b=q<<1^(q>>7&&283);var V=b^q;Cm[l]=b<<24|q<<16|q<<8|V;Je[l]=V<<24|Cm[l]>>>8;Km[l]=q<<24|Je[l]>>>
8;uz[l]=q<<24|Km[l]>>>8}xlW=!0}q=bm(44);for(I=0;I<4;I++)q[I]=G[4*I]<<24|G[4*I+1]<<16|G[4*I+2]<<8|G[4*I+3];for(h=1;I<44;I++)G=q[I-1],I%4||(G=(YF[G>>16&255]^h)<<24|YF[G>>8&255]<<16|YF[G&255]<<8|YF[G>>>24],h=h<<1^(h>>7&&283)),q[I]=q[I-4]^G;this.key=q};
_.M(fv5,_.FN);
fv5.prototype.encrypt=function(G){var b=G.length;G=new Uint8Array(G.buffer.slice(G.byteOffset,G.byteOffset+b));for(var I=this.cipherBlock,h=0;h<b&&this.blockOffset<16;)G[h++]^=I[this.blockOffset++];for(var q=b-(b-h)%16;h<q;)TeA(this),G[h++]^=I[0],G[h++]^=I[1],G[h++]^=I[2],G[h++]^=I[3],G[h++]^=I[4],G[h++]^=I[5],G[h++]^=I[6],G[h++]^=I[7],G[h++]^=I[8],G[h++]^=I[9],G[h++]^=I[10],G[h++]^=I[11],G[h++]^=I[12],G[h++]^=I[13],G[h++]^=I[14],G[h++]^=I[15];if(h<b)for(TeA(this),this.blockOffset=0;h<b;)G[h++]^=
I[this.blockOffset++];return G};
var TeA=function(G){for(var b=G.key,I=G.counter[0]^b[0],h=G.counter[1]^b[1],q=G.counter[2]^b[2],l=G.counter[3]^b[3],V=3;V>=0&&!(G.counter[V]=-~G.counter[V]);V--);for(var D,k,L=4;L<40;)V=Cm[I>>>24]^Je[h>>16&255]^Km[q>>8&255]^uz[l&255]^b[L++],D=Cm[h>>>24]^Je[q>>16&255]^Km[l>>8&255]^uz[I&255]^b[L++],k=Cm[q>>>24]^Je[l>>16&255]^Km[I>>8&255]^uz[h&255]^b[L++],l=Cm[l>>>24]^Je[I>>16&255]^Km[h>>8&255]^uz[q&255]^b[L++],I=V,h=D,q=k;G=G.cipherBlock;V=b[40];G[0]=YF[I>>>24]^V>>>24;G[1]=YF[h>>16&255]^V>>16&255;G[2]=
YF[q>>8&255]^V>>8&255;G[3]=YF[l&255]^V&255;V=b[41];G[4]=YF[h>>>24]^V>>>24;G[5]=YF[q>>16&255]^V>>16&255;G[6]=YF[l>>8&255]^V>>8&255;G[7]=YF[I&255]^V&255;V=b[42];G[8]=YF[q>>>24]^V>>>24;G[9]=YF[l>>16&255]^V>>16&255;G[10]=YF[I>>8&255]^V>>8&255;G[11]=YF[h&255]^V&255;V=b[43];G[12]=YF[l>>>24]^V>>>24;G[13]=YF[I>>16&255]^V>>16&255;G[14]=YF[h>>8&255]^V>>8&255;G[15]=YF[q&255]^V&255};var BeO=!1;(function(){var G=function(h){return new Uint8Array(h)},b=function(h){for(var q=new Uint8Array(h.length),l=0;l<h.length;l++)q[l]=h[l];
return q},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?G:b})();
var Ra;var gOn=function(G){a:{if(!BeO&&!Vz){if(Ra){var b=Ra;break a}Ra=(b=window.crypto)==null?void 0:b.subtle;var I,h,q;if(((I=Ra)==null?0:I.importKey)&&((h=Ra)==null?0:h.sign)&&((q=Ra)==null?0:q.encrypt)){b=Ra;break a}Ra=void 0}b=void 0}b&&(this.nativeEncryptor=new Uln(G,b));this.encryptorPolyfill=new s8z(G)};
gOn.prototype.encrypt=function(G,b){var I=this,h;return _.c(function(q){switch(q.nextAddress){case 1:if(!I.nativeEncryptor){q.jumpTo(2);break}_.gm(q,3);return q.yield(I.nativeEncryptor.encrypt(G,b),5);case 5:return q.return(q.yieldResult);case 3:h=_.zf(q),_.RB(h),BeO=!0,I.nativeEncryptor=void 0;case 2:return q.return(I.encryptorPolyfill.encrypt(G,b))}})};
gOn.prototype.decrypt=function(G,b){return this.encrypt(G,b)};
var Uln=function(G,b){this.JSC$12917_aesKey=G;this.subtleCrypto=b};
Uln.prototype.encrypt=function(G,b){var I=this,h;return _.c(function(q){if(q.nextAddress==1)return _.gm(q,2),q.yield(AOW(I,G,b),4);if(q.nextAddress!=2)return q.return(q.yieldResult);h=_.zf(q);_.RB(h);BeO=!0;throw h;})};
var AOW=function(G,b,I){var h,q;return _.c(function(l){switch(l.nextAddress){case 1:if(G.cryptoKey){l.jumpTo(2);break}return l.yield(G.subtleCrypto.importKey("raw",G.JSC$12917_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:G.cryptoKey=l.yieldResult;case 2:return h={name:"AES-CTR",counter:I,length:128},l.yield(G.subtleCrypto.encrypt(h,G.cryptoKey,b),4);case 4:return q=l.yieldResult,l.return(new Uint8Array(q))}})},s8z=function(G){this.JSC$12920_aesKey=G};
s8z.prototype.encrypt=function(G,b){this.encryptor||(this.encryptor=new fv5(this.JSC$12920_aesKey));for(var I=this.encryptor,h=0;h<4;h++)I.counter[h]=b[h*4]<<24|b[h*4+1]<<16|b[h*4+2]<<8|b[h*4+3];I.blockOffset=16;return this.encryptor.encrypt(G)};
s8z.prototype.decrypt=function(G,b){return this.encrypt(G,b)};var MU8={},lgq=vz("yt-idb-pref-storage",{objectStores:(MU8.prefs={addedAtVersion:1},MU8),shared:!1,upgrade:function(G,b){b(1)&&X5(Sy(G,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.nm=function(G){this.token=G};
_.nm.getInstance=function(){return _.c(function(G){return G.return(new Promise(function(b){_.k_().then(function(I){I?(_.nm.instance||(_.nm.instance=new _.nm(I)),b(_.nm.instance)):b(void 0)})}))})};
_.nm.prototype.get=function(G){var b=this,I,h,q;return _.c(function(l){if(l.nextAddress==1)return l.yield(mSr(b.token),2);if(l.nextAddress!=3)return I=l.yieldResult,l.yield(I.get("prefs",G),3);h=l.yieldResult;if(!h)return l.return();q=(0,_.Li)();return h.expirationTimestampMs<=q?l.return():l.return(h.value)})};
_.nm.prototype.set=function(G,b,I){I=I===void 0?31536E3:I;var h=this,q,l,V;return _.c(function(D){if(D.nextAddress==1)return q=(0,_.Li)(),l={key:G,value:b,expirationTimestampMs:q+I*1E3},D.yield(mSr(h.token),2);V=D.yieldResult;return D.yield(V.put("prefs",l),0)})};
_.nm.prototype.remove=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(mSr(b.token),2);I=h.yieldResult;return h.yield(I.delete("prefs",G),0)})};var OL={},Zz8=(OL.INVALID_ENCODER_VERSION="Invalid encoder version",OL.KEY_CREATION_FAILED="Failed to create encoder key",OL.UNKNOWN_DECODE_ERROR="Failed to decode PES data",OL.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",OL.WRONG_DATA_TYPE="Encoder cannot process the data type",OL),Io=function(G,b){b=b===void 0?{}:b;_.Wf.call(this,Zz8[G],Object.assign({},{name:"PESEncoderError",type:G},b));this.type=G;this.level="WARNING";Object.setPrototypeOf(this,Io.prototype)};
_.M(Io,_.Wf);var wS=function(){};
wS.prototype.encode=function(G,b){try{return this.encodeImpl(G,b)}catch(I){cna(I,VmO)}};
wS.prototype.decode=function(G,b){try{return this.decodeImpl(G,b)}catch(I){cna(I,DSr)}};
var tUJ=function(G,b,I){var h;return _.c(function(q){if(q.nextAddress==1)return _.gm(q,2),q.yield(G.decodeAsyncImpl(b,I),4);if(q.nextAddress!=2)return q.return(q.yieldResult);h=_.zf(q);cna(h,DSr);_.ip(q)})};
wS.prototype.decodeAsyncImpl=function(G,b){return Promise.resolve(this.decodeImpl(G,b))};var EL=function(G,b){this.aesEncryptor=G;this.aesEncryptorAsync=b};
_.M(EL,wS);EL.prototype.encodeImpl=function(G,b){b=kUd(b);G=(new TextEncoder).encode(JSON.stringify(G));return this.aesEncryptor.encrypt(G,b)};
EL.prototype.decodeImpl=function(G,b){if(!(G instanceof Uint8Array))throw e4j(1);var I=new TextDecoder;b=kUd(b);G=this.aesEncryptor.decrypt(G,b);return JSON.parse(I.decode(G))};
EL.prototype.decodeAsyncImpl=function(G,b){var I=this,h,q,l;return _.c(function(V){if(V.nextAddress==1){if(!(G instanceof Uint8Array))throw e4j(1);h=new TextDecoder;q=kUd(b);return V.yield(I.aesEncryptorAsync.decrypt(G,q),2)}l=V.yieldResult;return V.return(JSON.parse(h.decode(l)))})};var vqO={accountLinkStatusEntity:QVJ,booleanEntity:Kl5,buttonEntity:asX,captionTrack:sSu,channelHandle:xHW,chipEntity:kcJ,commerceAcquisitionClientPayloadEntity:DIe,commerceCartListEntity:cEz,compositeSourceEntity:Wqn,multiviewStagingEntity:agb,contextNoteFeedEntityPayload:iFB,contextNoteUserRatingEntityPayload:PYB,continuationTokenEntity:GUe,downloadQualityPickerEntity:KSe,downloadsPageRefreshTokenEntity:RXz,downloadsPageViewConfigurationEntity:VmQ,downloadStatusEntity:ugW,dismissState:v9b,sfvAudioItemCurrentlyPlayingEntity:GNJ,
emojiFountainDataEntity:FrW,emojiCustomizationSetEntity:rXn,fakeChannel:n6J,fakePlaylist:OYi,fakePlaylistEntryCollection:wOX,fakeVideo:pO8,fakeVideoDescription:SKn,featuredProductsEntity:iRX,flowStateEntity:csz,iconBadgeEntity:kCn,interstitialInteractionStateEntity:dZe,likeButtonAnimationEntity:DS8,liveChatPollStateEntity:YUi,dataFreshnessEntity:dJB,liveViewerLeaderboardChatEntryPointStateEntity:HPA,liveViewerLeaderboardPointsEntity:WkQ,liveReactionsDataEntity:HqJ,logoEntity:ibB,macroMarkerEntity:cnb,
mainDownloadsLibraryEntity:nFO,mainDownloadsListEntity:Omb,mainPlaylistDownloadStateEntity:EFA,mainPlaylistEntity:bRu,mainPlaylistVideoEntity:Ige,mainVideoDownloadStateEntity:psz,mainVideoEntity:lgA,markersEngagementPanelSyncEntity:kU5,markersVisibilityOverrideEntity:vqQ,musicAlbumReleaseDetail:u6O,musicAlbumReleaseDownloadMetadataEntity:NZ5,musicAlbumRelease:Kqz,musicAlbumReleaseUserDetail:R48,musicArtistDetail:ORB,musicArtist:nqW,musicArtistUserDetail:wQz,musicDownloadsLibraryEntity:YNX,musicLibraryEdit:EqJ,
musicLibraryStatusEntity:pQi,musicPlaylist:SNn,musicPlaylistDownloadMetadataEntity:Cdi,musicShare:$De,musicTrackDetail:bPO,musicTrackDownloadMetadataEntity:JnO,musicTrack:GV8,musicTrackUserDetail:INO,offlineOrchestrationActionWrapperEntity:gKQ,offlineVideoPolicy:AVA,offlineVideoStreams:Mdi,offlineabilityEntity:SLi,orchestrationWebSamplingEntity:Xs8,pageHeaderEntity:AXn,pdpStateEntity:vrO,pinnedProductEntity:PdX,playbackData:ZPi,playerStateEntity:Lqn,quantityIncrementerEntity:L5O,refresh:tdi,saveToPlaylistListEntity:UTu,
selectedChipIndexEntityPayload:QC8,settingEntity:Jy8,stringEntity:uZA,suggestedFeedbackChipStateEntity:xSB,transfer:zdB,trendingOfferEntity:dSQ,videoDownloadContextEntity:oK8,videoOverviewAsyncDataEntity:abO,videoPlaybackPositionEntity:Co5,votingEntity:zEA,ytMainChannelEntity:mS8,youchatPendingResponseEntity:fgX,ytMainDownloadedVideoEntity:$Sn,ytMainVideoEntity:e4u};var zOu,izO,ms,sCO,gq2,yOX,FgA,rOJ,dlX;zOu=function(G,b){this.JSC$12939_wrapped=G;this.JSC$12939_encoderRegistry=b;this.changedKeys={}};
izO=function(G,b){return oOn(G.JSC$12939_encoderRegistry,b.version).decode(b.data,b.key)};
_.PRA=function(G,b,I){return G.JSC$12939_wrapped.objectStore("EntityStore").get(b).then(function(h){if(h){if(I&&h.entityType!==I)throw Error("Jf");return izO(G,h)}})};
ms=function(G,b,I){return I?(I=I.map(function(h){return _.PRA(G,h,b)}),XU.all(I)):G.JSC$12939_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(b)).then(function(h){return h.map(function(q){return izO(G,q)})})};
_.USO=function(G,b,I){var h=Xsr(b),q=oOn(G.JSC$12939_encoderRegistry,1),l=Object.assign({},b);return G.JSC$12939_wrapped.objectStore("EntityStore").get(h).then(function(V){if(V){if(V.entityType!==I)throw Error("Jf");l.entityMetadata||(V=izO(G,V),l.entityMetadata=V.entityMetadata)}}).then(function(){var V={key:h,
entityType:I,data:q.encode(l,h),version:1};return XU.all([G.JSC$12939_wrapped.objectStore("EntityStore").put(V),dlX(G,l,I)])}).then(function(){yOX(G,h,I);
return h})};
sCO=function(G,b){var I=_.pU(b).entityType;return XU.all([G.JSC$12939_wrapped.objectStore("EntityStore").delete(b),rOJ(G,b)]).then(function(){yOX(G,b,I)})};
gq2=function(G,b,I,h){var q=oOn(G.JSC$12939_encoderRegistry,1);return _.PRA(G,b,h).then(function(l){if(l){l=NSB(l,I);var V={key:b,entityType:h,data:q.encode(l,b),version:1};return XU.all([G.JSC$12939_wrapped.objectStore("EntityStore").put(V),dlX(G,l,h)])}}).then(function(){yOX(G,b,h);
return b})};
yOX=function(G,b,I){var h=G.changedKeys[I];h||(h=new Set,G.changedKeys[I]=h);h.add(b)};
FgA=function(G,b,I){var h=Xsr(b);I=LqO(I);if(!I)return XU.resolve([]);I=new I(b);G=G.JSC$12939_wrapped.objectStore("EntityAssociationStore");b=[];I=_.e(I.getAssociations());for(var q=I.next();!q.done;q=I.next())b.push(G.put({parentEntityKey:h,childEntityKey:q.value}));return XU.all(b).then(function(l){return l.map(function(V){return V[1]})})};
rOJ=function(G,b){return G.JSC$12939_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))};
dlX=function(G,b,I){var h=Xsr(b);return rOJ(G,h).then(function(){return FgA(G,b,I)})};var Hz5=function(){};
_.M(Hz5,wS);Hz5.prototype.encodeImpl=function(G){return G};
Hz5.prototype.decodeImpl=function(G){if(G instanceof Uint8Array)throw e4j(0);return G};var fg2=function(){this.cacheMap={};this.cacheMap[0]=new Hz5;if(!_.U("aes_pes_encoder_killswitch")){var G=this.cacheMap;try{var b=_.FU();var I=kUd(b);var h=new EL(new s8z(I),new gOn(I))}catch(q){throw G=q instanceof Error?new Io("KEY_CREATION_FAILED",{originalMessage:q.message}):new Io("KEY_CREATION_FAILED"),_.K1(G),G;}G[1]=h}},oOn=function(G,b){b=b===void 0?0:b;
G=G.cacheMap[b];if(!G)throw b=new Io("INVALID_ENCODER_VERSION",{encoderVersion:b}),_.K1(b),b;return G};var qO=function(G,b){_.FN.call(this);this.token=G;this.JSC$12953_encoderRegistry=b;this.observers=[];G=new _.hd.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.FU());G.onmessage=this.JSC$12953_handleMessage.bind(this);this.channel=G};
_.M(qO,_.FN);_.lm=function(G,b,I){var h,q,l,V;return _.c(function(D){if(D.nextAddress==1)return D.yield(jCO(G.token),2);if(D.nextAddress!=3)return h=D.yieldResult,D.yield(_.lu(h,["EntityStore","EntityAssociationStore"],b,function(k){q=new zOu(k,G.JSC$12953_encoderRegistry);return I(q)}),3);
l=D.yieldResult;q&&(V=q.changedKeys,Object.keys(V).length>0&&(G.channel.postMessage(V),Wgb(G,V)));return D.return(l)})};
qO.prototype.observe=function(G){var b=this;this.observers.push(G);return function(){var I=b.observers.indexOf(G);I>=0&&b.observers.splice(I,1)}};
var sdd=function(G){var b;return _.c(function(I){if(I.nextAddress==1)return I.yield(_.lm(G,{mode:"readonly",enableRetries:!0},function(h){return h.JSC$12939_wrapped.objectStore("EntityStore").getAll()}),2);
b=I.yieldResult;return I.return(Promise.all(b.filter(function(h){return!!h}).map(function(h){var q,l;
return _.c(function(V){if(V.nextAddress==1){q=h.key;l=h.entityType;var D=V.yield;var k=tUJ(oOn(G.JSC$12953_encoderRegistry,h.version),h.data,h.key);return D.call(V,k,2)}return V.return({key:q,entityType:l,data:V.yieldResult})})})))})};
qO.prototype.JSC$12953_handleMessage=function(G){Wgb(this,G.data)};
var Wgb=function(G,b){G=_.e(G.observers);for(var I=G.next();!I.done;I=G.next())I=I.value,I(b)};
qO.prototype.disposeInternal=function(){this.channel.close()};
var QCr;var pm,Neb,Jnp;pm={};_.avX=(pm.mainVideoEntity="mainVideoEntityActionMetadata",pm.mainPlaylistEntity="mainPlaylistEntityActionMetadata",pm.musicTrack="musicTrackEntityActionMetadata",pm.musicPlaylist="musicPlaylistEntityActionMetadata",pm);Neb=new _.q3("DOWNLOADS_ENTITY_TYPE_MAP");_.xS=_.$S("","downloadsPageViewConfigurationEntity");Jnp=_.$S("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.sSj=_.$S("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.$S("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.$S("SMART_DOWNLOADS_ENABLED","settingEntity");_.$S("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var z4j=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var FqB=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var Yxz={isLeaderTab:!0};var VdO={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var S6=window,Pj=S6.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",ePr=S6.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||d4,vkj=S6.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||IG,q4z=S6.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||hQn,bcO=S6.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||QZJ,vtO=S6.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||sZn;var mTO;Hj({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 hoq=LUX(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(G){return G}}}),dxr=LUX(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(G){return G}}}),TNO=new Map;var jFB=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],Ay2;var CR5=function(G){return _.wK({type:"SET_EPHEMERAL_ACTION",payload:G})};var JOu={ephemeralAction:null};var Kgn=i4({ephemeralAction:function(G,b){G=G===void 0?JOu.ephemeralAction:G;switch(b.type){case "SET_EPHEMERAL_ACTION":return b.payload;default:return G}}});var u$z=function(G){return _.wK({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:G})};var ROe={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var nOW={sharedUi:ROe,a11y:JOu,entities:{}},P7j={sharedUi:function(G,b){G=G===void 0?ROe:G;switch(b.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},G,{animatedThumbnailEnabled:b.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},G,{inlinePreviewEnabled:b.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},G,{currentPageType:b.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},G,{currentPageSubType:b.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},G,{persistentPanelVisible:b.payload});default:return G}},
a11y:Kgn,entities:GUr};var co2={playlistId:"",inviteLinkURL:""};var Oz5={continuationCommand:{}};var gEj=i4({continuationCommand:function(G,b){G=G===void 0?Oz5.continuationCommand:G;switch(b.type){case "SET_CONTINUATION_COMMAND":return b.payload.continuationCommand;default:return G}}});var vEO={currentFormId:"",commandsMap:{}};var AoO=i4({isLeaderTab:function(G,b){G=G===void 0?Yxz.isLeaderTab:G;switch(b.type){case "SET_IS_LEADER_TAB":var I,h;return(h=b==null?void 0:(I=b.payload)==null?void 0:I.isLeaderTab)!=null?h:G;default:return G}}});var EOJ;_.wIe=function(G){return _.wK({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:G}})};
EOJ=function(G){return _.wK({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:G}})};var Xg={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var i9s=i4({isDesktopSmallWidth:function(G,b){G=G===void 0?Xg.isDesktopSmallWidth:G;switch(b.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return b.payload.isDesktopSmallWidth;default:return G}},
isShortsActive:function(G,b){G=G===void 0?Xg.isShortsActive:G;switch(b.type){case "SET_IS_SHORTS_ACTIVE":return b.payload.isShortsActive;default:return G}},
isWatchWhileMode:function(G,b){G=G===void 0?Xg.isWatchWhileMode:G;switch(b.type){case "SET_IS_WATCH_WHILE_MODE":return b.payload.isWatchWhileMode;default:return G}},
playerState:function(G,b){G=G===void 0?Xg.playerState:G;switch(b.type){case "SET_PLAYER_STATE":return b.payload.playerState;default:return G}},
isFullscreen:function(G,b){G=G===void 0?Xg.isFullscreen:G;switch(b.type){case "SET_IS_FULLSCREEN":return b.payload.isFullscreen;default:return G}},
isSmallScreenSqueezeback:function(G,b){G=G===void 0?Xg.isSmallScreenSqueezeback:G;switch(b.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return b.payload.isSmallScreenSqueezeback;default:return G}},
isShortsPipActive:function(G,b){G=G===void 0?Xg.isShortsPipActive:G;switch(b.type){case "SET_IS_SHORTS_PIP_ACTIVE":return b.payload.isShortsPipActive;default:return G}},
isPlaybackStarted:function(G,b){G=G===void 0?Xg.isPlaybackStarted:G;switch(b.type){case "SET_IS_PLAYBACK_STARTED":return b.payload.isPlaybackStarted;default:return G}}});var QFj={currentMode:"canvas-hidden"};var yoO=function(){return function(G){return function(b){var I=G(b);_.wL(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[b],!0);return I}}};var pIb,Wdd;pIb=new _.G9;_.wR=new _.q3("WATCH_PLAYER_PROMISE_TOKEN");_.Sx8=new _.G9;_.XIX=new _.q3("SHORTS_PLAYER_PROMISE_TOKEN");Wdd=new _.q3("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var roX=function(){return function(G){return function(b){b.type==="ENTITY_LOADED"&&_.LL().resolve(_.wR).then(function(I){var h;(h=I.dispatchReduxAction)==null||h.call(I,b)});
return G(b)}}};var $db={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var MJr=i4({additionalContext:function(G,b){G=G===void 0?$db.additionalContext:G;switch(b.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var I;return(I=b.payload)!=null?I:"";default:return G}},
impersonatedChannelUrl:function(G,b){G=G===void 0?$db.impersonatedChannelUrl:G;switch(b.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var I;return(I=b.payload)!=null?I:"";default:return G}},
selectedVideoIds:function(G,b){G=G===void 0?$db.selectedVideoIds:G;switch(b.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var I={};return Object.assign({},G,(I[b.payload]=!0,I));case "VIDEO_UNSELECTED":return b=b.payload,G=Object.assign({},G),delete G[b],G;default:return G}}});var GpA={parentClickTrackingParams:""};var Z9p=i4({parentClickTrackingParams:function(G,b){G=G===void 0?GpA.parentClickTrackingParams:G;switch(b.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return b.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return G}}});var bSO=function(G){return _.wK({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:G})},IMb=function(G){return _.wK({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:G})};var hNQ={stepStates:{}};var tJp=i4({stepStates:function(G,b){G=G===void 0?hNQ.stepStates:G;switch(b.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var I=G,h=b.payload,q,l,V;G={};b={selectionStates:Object.assign({},(V=(q=I[h.stepId])==null?void 0:q.selectionStates)!=null?V:{},(G[h.token]={isSelected:h.isSelected},G)),userQuery:(l=I[h.stepId])==null?void 0:l.userQuery};q={};return Object.assign({},I,(q[h.stepId]=b,q));case "TALK_TO_RECS_UPDATE_USER_QUERY":return q=G,l=b.payload,V=
{selectionStates:Object.assign({},(h=(I=q[l.stepId])==null?void 0:I.selectionStates)!=null?h:{}),userQuery:{userQuery:l.userQuery,token:l.userQueryToken}},I={},Object.assign({},q,(I[l.stepId]=V,I));default:return G}}});var qyi,jXn,mdu;qyi=function(G){return _.wK({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:G})};
jXn=function(G){return _.wK({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:G})};
_.TO=function(G){return _.wK({type:"SET_CURRENT_PAGE_TYPE",payload:G})};
_.lMB=function(G){return _.wK({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:G})};
mdu=function(G){return _.wK({type:"SET_CHIP_BAR_IS_STICKY",payload:G})};var fFr={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"};_.eNQ=function(G){return _.wK({type:"SET_PLAYER_STATE",payload:{playerState:G}})};var $q={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:BFO(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var zov=i4({isTheaterMode:function(G,b){G=G===void 0?BFO():G;switch(b.type){case "SET_IS_THEATER_MODE":return b.payload.isTheaterMode;default:return G}},
isWatchActive:function(G,b){G=G===void 0?$q.isWatchActive:G;switch(b.type){case "SET_IS_WATCH_ACTIVE":return b.payload.isWatchActive;default:return G}},
isLearningJourneyActive:function(G,b){G=G===void 0?$q.isLearningJourneyActive:G;switch(b.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return b.payload.isLearningJourneyActive;default:return G}},
isWatchFullscreen:function(G,b){G=G===void 0?$q.isWatchFullscreen:G;switch(b.type){case "SET_IS_WATCH_FULLSCREEN":return b.payload.isWatchFullscreen;default:return G}},
isWatchNarrowWidth:function(G,b){G=G===void 0?$q.isWatchNarrowWidth:G;switch(b.type){case "SET_IS_WATCH_NARROW_WIDTH":return b.payload.isWatchNarrowWidth;default:return G}},
isSwatcherooActive:function(G,b){G=G===void 0?$q.isSwatcherooActive:G;switch(b.type){case "SET_IS_SWATCHEROO_ACTIVE":return b.payload.isSwatcherooActive;default:return G}},
isWatchRetroMode:function(G,b){G=G===void 0?$q.isWatchRetroMode:G;switch(b.type){case "SET_IS_WATCH_RETRO_MODE":return b.payload.isWatchRetroMode;default:return G}},
isLiveChatCollapsed:function(G,b){G=G===void 0?$q.isLiveChatCollapsed:G;switch(b.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return b.payload.isLiveChatCollapsed;default:return G}},
openEngagementPanels:function(G,b){G=G===void 0?$q.openEngagementPanels:G;var I=[].concat(_.Nz(G));switch(b.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return I.push(b.payload.panelToAdd),I;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return I.splice(I.indexOf(b.payload.panelToRemove),1),I;default:return G}},
playerState:function(G,b){G=G===void 0?$q.playerState:G;switch(b.type){case "SET_PLAYER_STATE":return b.payload.playerState;default:return G}},
watchScrollTop:function(G,b){G=G===void 0?$q.watchScrollTop:G;switch(b.type){case "SET_WATCH_SCROLL_TOP":return b.payload.watchScrollTop;default:return G}},
watchWindowSize:function(G,b){G=G===void 0?$q.watchWindowSize:G;switch(b.type){case "SET_WATCH_WINDOW_SIZE":return b.payload.watchWindowSize;default:return G}}});var VjQ={surveyFeedbackData:{feedbackTokens:[]}};var oEd=i4({surveyFeedbackData:function(G,b){G=G===void 0?VjQ.surveyFeedbackData:G;switch(b.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return b.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},G,b.payload);default:return G}}});var UMj={};var H9O=void 0;_.U("web_enable_redux_store_on_demand")||(H9O=Fiu());var DdO=function(G,b,I){var h=this;this.listId=G;this.JSC$13097_updateCallback=b;this.isOfflineVideoCallback=I;_.Cw().subscribe(function(){h.handleUpdate()})};
DdO.prototype.getPlaylistData=function(){var G=_.Cw().getState().entities;if(this.listId&&this.listId!=="PPSV"){var b=XQs(G,this.listId,!0),I=_.$S(this.listId,"mainPlaylistEntity"),h,q;G=G==null?void 0:(h=G.mainPlaylistEntity)==null?void 0:(q=h[I])==null?void 0:q.title;return Wi2(b,G,this.listId)}b=_.HRX(zdv(G));G=_.HRX(_.fw(G));G=b.concat(G);return Wi2(G)};
DdO.prototype.getPlaylistId=function(){return this.listId};
DdO.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13097_updateCallback(this.listId,this.getPlaylistData(),{})};var GU=function(G,b,I,h){h=h===void 0?[]:h;this.JSC$13100_playlistNetworkManager=G;this.listId=b;this.JSC$13100_updateCallback=I;this.videoIds=h;this.pendingUpdates=[];this.currentIndex=0};
GU.prototype.JSC$13100_setCurrentIndex=function(G){this.currentIndex=G};
GU.prototype.setListId=function(G){this.listId=G};
var c1n=function(G,b){G.currentCreateRequest&&G.currentCreateRequest.cancel(b);G.currentUpdateRequest&&G.currentUpdateRequest.cancel(b);G.currentRefreshRequest&&G.currentRefreshRequest.cancel(b)};
GU.prototype.delete=function(){c1n(this,"PROXY DELETED")};
GU.prototype.addVideos=function(G,b,I){var h=this;I!==void 0?this.videoIds.splice.apply(this.videoIds,[I,0].concat(_.Nz(G))):this.videoIds.push.apply(this.videoIds,_.Nz(G));this.listId||this.currentCreateRequest?(G.forEach(function(q,l){q={addedVideoId:q,action:"ACTION_ADD_VIDEO"};I&&(q.addedVideoPosition=I+l);h.pendingUpdates.push(q)}),bd(this)):kp8(this,b.onCreateListCommand)};
var vMO=function(G,b,I,h,q){ars(G.videoIds,b,I);b>G.currentIndex&&I<=G.currentIndex?G.JSC$13100_setCurrentIndex(G.currentIndex+1):b===G.currentIndex?G.JSC$13100_setCurrentIndex(I):b<G.currentIndex&&I>=G.currentIndex&&G.JSC$13100_setCurrentIndex(G.currentIndex-1);G.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:h,movedSetVideoIdPredecessor:q});bd(G)},kp8=function(G,b){c1n(G,"OBSOLETE");
G.currentCreateRequest=LBB(G.JSC$13100_playlistNetworkManager,b,G.videoIds);_.i1(G.currentCreateRequest,function(){G.currentCreateRequest=void 0}).then(function(I){G.setListId(I.playlistId);
G.pendingUpdates.length>0?bd(G):QXO(G)})},bd=function(G){if(G.pendingUpdates.length!==0&&(G.currentRefreshRequest&&G.currentRefreshRequest.cancel("OBSOLETE"),!G.currentUpdateRequest&&!G.currentCreateRequest)){var b=G.pendingUpdates.splice(0,G.pendingUpdates.length);
G.currentUpdateRequest=G.JSC$13100_playlistNetworkManager.updatePlaylist(G.listId,b);_.i1(G.currentUpdateRequest,function(){G.currentUpdateRequest=void 0}).then(function(){G.pendingUpdates.length>0?bd(G):QXO(G)}).thenCatch(function(){G.pendingUpdates.unshift.apply(G.pendingUpdates,_.Nz(b))})}},QXO=function(G){G.currentRefreshRequest=_.xdJ(G.JSC$13100_playlistNetworkManager,G.listId,G.currentIndex,G.videoIds[G.currentIndex]);
_.i1(G.currentRefreshRequest,function(){G.currentRefreshRequest=void 0}).then(function(b){G.JSC$13100_updateCallback(b.playlistId,b.playlistPanelRenderer,b.autoplayRenderer)})};
GU.prototype.size=function(){return this.videoIds.length};var fMe=function(G,b,I,h){h=h===void 0?[]:h;GU.call(this,G,b,I,h);this.JSC$13100_playlistNetworkManager=G;this.listId=b;this.JSC$13100_updateCallback=I;this.videoIds=h};
_.M(fMe,GU);_.IC=function(G,b,I,h,q,l,V){q=q===void 0?[]:q;V=V===void 0?VP:V;GU.call(this,G,b,I,q);this.JSC$13100_playlistNetworkManager=G;this.listId=b;this.JSC$13100_updateCallback=I;this.onAuthChange=h;this.videoIds=q;this.storage=l;this.cookieReader=V;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.O0(_.uu,this.checkLoggedInStatusChange.bind(this),1E3)};
_.M(_.IC,GU);_.m=_.IC.prototype;_.m.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.O0(_.uu,this.checkLoggedInStatusChange.bind(this),1E3)};
_.m.JSC$13100_setCurrentIndex=function(G){GU.prototype.JSC$13100_setCurrentIndex.call(this,G);this.store()};
_.m.delete=function(){_.uu.cancelJob(this.queueSapisIdJob);GU.prototype.delete.call(this)};
_.m.setListId=function(G){GU.prototype.setListId.call(this,G);this.store()};
_.m.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var Tn8=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Bnb=["playerResponse","videoDetails"],Udn=["response","currentVideoEndpoint","watchEndpoint","videoId"],sXu=["response","currentVideoEndpoint","watchEndpoint","playlistId"],gMn=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],A1e=["response","contents","twoColumnWatchNextResults","playlist","playlist"],MjX=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
ZSA=["response","contents","twoColumnWatchNextResults"];var hn={},Jor=(hn.WEB_UNPLUGGED="^unplugged/",hn.WEB_UNPLUGGED_ONBOARDING="^unplugged/",hn.WEB_UNPLUGGED_OPS="^unplugged/",hn.WEB_UNPLUGGED_PUBLIC="^unplugged/",hn.WEB_CREATOR="^creator/",hn.WEB_KIDS="^kids/",hn.WEB_EXPERIMENTS="^experiments/",hn.WEB_MUSIC="^music/",hn.WEB_REMIX="^music/",hn.WEB_MUSIC_EMBEDDED_PLAYER="^music/",hn.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",hn);var vrp,LBB;vrp=function(G,b){this.networkManager=G;this.innertubeTransportService=b};
LBB=function(G,b,I){if(!_.g(b,_.qj))return _.vv(Error("Nf"));_.g(b,_.qj).videoIds=I;I={create_playlist_title:_.qP("QUEUE",void 0,"Queue")};return YTv(_.dR(G.innertubeTransportService,b,I),aFq)};
_.xdJ=function(G,b,I,h){b={videoId:h,playlistId:b,playlistIndex:I};I=_.JQ(APb);return YTv(_.qS(G.innertubeTransportService,b,I),C7B)};
vrp.prototype.updatePlaylist=function(G,b){return YTv(_.dR(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:G,actions:b}}),NFv)};var tjB=function(G){this.storage=G},zNA;
tjB.prototype.store=function(G,b){b=b===void 0?0:b;if(this.storage&&G.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",G),this.storage.set("TLPQindex",String(b)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(I){}};
tjB.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
tjB.prototype.getPlaylistId=function(){if(!this.storage)return null;var G=null;try{G=this.storage.get("TLPQplaylist")}catch(b){}return G};var nEj=["navigationEndpoint","watchEndpoint","videoId"],Rop=["nextButtonVideo","watchEndpoint","videoId"];_.cy=new _.q3("NETWORK_TOKEN");_.Ck=new _.q3("PAGE_TOKEN");_.jm=new _.q3("PLAYLIST_TOKEN");var oMJ;oMJ=new _.q3("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.kn=new _.q3("INNERTUBE_TRANSPORT_TOKEN");var iS5,ld,ddO,y1J,FBB,HSn;iS5=new Set(["ci","cr","carml"]);ld=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13147_parkedJobs=new Map;this.parkedProcessors=new Map};
_.mq=function(){ld.instance||(ld.instance=new ld);return ld.instance};
ld.prototype.onAny=function(G){return _.PNB(this,G,2)};
ld.prototype.parkOrScheduleJob=function(G,b,I,h,q){_.em(this,I)?_.fW().addJob(G,b,h):(q&&(G=ddO(G),y1J(this,G,b,I,q)),q=this.JSC$13147_parkedJobs.get(I),q||(this.JSC$13147_parkedJobs.set(I,[]),q=this.JSC$13147_parkedJobs.get(I)),q.push({job:G,priority:b,delay:h}))};
ld.prototype.addListener=function(G,b,I){I&&(b=ddO(b),y1J(this,b,0,G,I));I=this.parkedProcessors.get(G);I||(this.parkedProcessors.set(G,[]),I=this.parkedProcessors.get(G));I.push(b)};
ld.prototype.processSignal=function(G){if(!_.em(this,G)){this.inProgressSignals.add(G);var b=this.JSC$13147_parkedJobs.get(G);if(b){b=_.e(b);for(var I=b.next();!I.done;I=b.next())I=I.value,_.fW().addJob(I.job,I.priority,I.delay);this.JSC$13147_parkedJobs.delete(G)}if(b=this.parkedProcessors.get(G)){b=_.e(b);for(I=b.next();!I.done;I=b.next())I=I.value,I();this.parkedProcessors.delete(G)}this.signals.push(G);this.inProgressSignals.delete(G)}};
_.em=function(G,b){return iS5.has(b)||_.Sk("IS_HOMEPAGE_COLD")||_.Sk("IS_RESULTS_PAGE_COLD")||_.Sk("IS_WATCH_PAGE_COLD")?G.signals.indexOf(b)>=0:!0};
ddO=function(G){var b=!1;return function(){b||(b=!0,G())}};
y1J=function(G,b,I,h,q){if(r1z.has(h))_.fW().addJob(b,I,q);else{var l=G.compoundSignals.get(h);l&&_.fW().addJob(function(){_.em(G,h)||(l.isTimeoutConditionSatisfied?_.fW().addJob(b,I):l.timeoutConditionObservers.push(function(){_.fW().addJob(b,I)}))},I,q)}};
_.PNB=function(G,b,I){if(b.length>1){var h=[],q=Object.create(null);b=_.e(b);for(var l=b.next();!l.done;l=b.next())l=l.value,q[l]||(h.push(l),q[l]=!0);b=h}if(b.length===1)return b[0];l=b;h="";q=I===2?"|":"&";l.sort();l=_.e(l);for(var V=l.next();!V.done;V=l.next())h+=V.value+q;if(!G.compoundSignals.get(h)){q=0;l=[];V=_.e(b);for(var D=V.next();!D.done;D=V.next())D=D.value,q++,_.em(G,D)||l.push(D);(I=I===2)&&q>l.length||!I&&!l.length?G.signals.push(h):FBB(G,h,I,b,l)}return h};
FBB=function(G,b,I,h,q){var l=q.length,V=function(){I||--l===0?G.processSignal(b):HSn(G,b)};
q=_.e(q);for(var D=q.next();!D.done;D=q.next())G.addListener(D.value,V);G.compoundSignals.set(b,{signals:h,isOnAny:I,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});HSn(G,b)};
HSn=function(G,b){if(!_.em(G,b)){var I=G.compoundSignals.get(b);if(I&&!I.isTimeoutConditionSatisfied){for(var h=!1,q=0,l=0,V=_.e(I.signals),D=V.next();!D.done;D=V.next()){var k=D.value;D=!_.em(G,k);r1z.has(k)?h=!0:(k=G.compoundSignals.get(k))?D&&!k.isTimeoutConditionSatisfied&&(l++,I.isInitialized||k.timeoutConditionObservers.push(function(){HSn(G,b)})):D&&q++}I.isInitialized=!0;
I.isOnAny?h&&(I.isTimeoutConditionSatisfied=!0):q===0&&l===0&&(I.isTimeoutConditionSatisfied=!0);if(I.isTimeoutConditionSatisfied)for(I=_.e(I.timeoutConditionObservers),h=I.next();!h.done;h=I.next())h=h.value,h()}}};
ld.prototype.processSignal=ld.prototype.processSignal;ld.prototype.parkOrScheduleJob=ld.prototype.parkOrScheduleJob;ld.prototype.onAny=ld.prototype.onAny;_.cz("ytsignals.getInstance",_.mq);ld.prototype.onAny=ld.prototype.onAny;ld.prototype.parkOrScheduleJob=ld.prototype.parkOrScheduleJob;ld.prototype.processSignal=ld.prototype.processSignal;var r1z=new Set(["eop","eocs","dl","pcl"]);_.zO=new _.q3("MINIPLAYER_SERVICE");var V8,WBi,aMB;V8=function(G,b,I){var h=_.I1.getInstance();if(!zNA){var q=new YSq;var l=void 0,V=_.wy("ID_TOKEN");V&&q.isAvailable()&&(l=new CL(q,"yt-queue"+V));zNA=new tjB(l)}q=zNA;l=_.mq();this.JSC$13154_actionRouter=h;this.JSC$13154_pageManager=G;this.playlistManager=b;this.JSC$13154_playlistNetworkManager=I;this.storage=q;this.signals=l;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Dg=function(){if(!WBi){var G=_.LL(),b=G.resolve(_.vf(_.Ck)),I=G.resolve(_.vf(_.cy)),h=G.resolve(_.vf(_.jm));G=G.resolve(_.kn);WBi=new V8(b,h,new vrp(I,G))}return WBi};
aMB=function(G,b,I){if(I){var h;if(((h=G.responsePlaylistData)==null?void 0:h.playlistId)!==I)return}G.responsePlaylistData&&(I=XFO(b,G.responsePlaylistData),G.responsePlaylistData=(0,_.Cy.unsafeClone)(G.responsePlaylistData),GcO(G.responsePlaylistData,I));I=G.temporaryItems.findIndex(function(q){return q.videoId===b});
I>-1&&G.temporaryItems.splice(I,1);_.cQ(G,_.kq(G,G.response?G.response.autoplayRenderer:void 0))};
_.Nn5=function(G,b){if(G.responsePlaylistData){var I=$Jd(b,G.responsePlaylistData);GcO(G.responsePlaylistData,I);if(G.queueProxy){var h=G.queueProxy;I<0||(h.videoIds.splice(I,1),I<h.currentIndex&&h.JSC$13100_setCurrentIndex(h.currentIndex-1),h.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:b}),bd(h))}}_.cQ(G,_.kq(G,G.response?G.response.autoplayRenderer:void 0))};
V8.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.cQ(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
V8.prototype.setPlaylistData=function(G,b,I){this.temporaryItems=[];this.listId=G;this.responsePlaylistData=b;_.cQ(this,_.kq(this,I))};
var Yy8=function(G){return(G==null?0:G.playlistId)?G.playlistId:"PPSV"},CNn=function(G){return G&&G.playlistId?G.playlistId==="PPSV"?!0:pQu(_.Cw().getState().entities,G.playlistId):!1};
V8.prototype.isPlayingOfflineVideo=function(){return this.response?CNn(this.response):!1};
V8.prototype.closeMiniplayer=function(G){var b=this.queueProxy&&this.queueProxy.size()<=1,I=_.LL().resolve(_.zO);if(!this.queueProxy||b)this.queueProxy&&this.clearQueue(),I.close(!0);else{I.pipController.getWindow()&&window.focus();b=this.responsePlaylistData;var h=this.temporaryItems.length+(b&&b.contents?b.contents.length:0);b=_.qP("QUEUE_CLEARED_UNPLURALIZED")||_.jX("QUEUE_CLEARED",h);b=_.um(b);I=_.qP("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");h=_.qP("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.jX("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",h);var q=_.qP("MINIPLAYER_CLOSE",void 0,"Close"),l=_.qP("CANCEL",void 0,"Cancel");_.Yl(this.JSC$13154_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.ao(I),dialogMessages:[_.ao(h)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ao(q),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
b]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ao(l)}}}}}}],G)}};
_.kq=function(G,b){var I={},h=G.response;I.autoplayRenderer=b;if(!G.responsePlaylistData&&!G.temporaryItems.length)return!h||!h.hasRelatedVideoData&&_.U("kevlar_prefetch_data_augments_network_data")||(I.playerData={rvs:h.relatedVideoArgs,endScreenRenderer:h.endScreenRenderer}),I;I.playerData={};if(G.index===void 0)return _.K1(Error("Pf")),I;I.panel=G.responsePlaylistData?(0,_.Cy.unsafeClone)(G.responsePlaylistData):{titleText:_.ao(_.qP("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
b=I.panel;if(b.contents)for(var q=_.e(G.temporaryItems),l=q.next();!l.done;l=q.next())b.contents.push({playlistPanelVideoRenderer:l.value});G.queueProxy&&h&&h.playingVideo&&h.playingVideoId&&!STX(h.playingVideoId,I.panel)&&(b=h.playingVideo,q=I.panel,l=G.index,q.contents&&q.contents.splice(l===void 0?0:l,0,{playlistPanelVideoRenderer:b}));h&&h.playingVideoId&&(b=G.index,q=I.panel,b=!q.contents||b>=q.contents.length?void 0:q.contents[b].playlistPanelVideoRenderer,b&&b.videoId===h.playingVideoId||(b=
XFO(h.playingVideoId,I.panel),G.index=b!==-1?b:G.index?G.index-1:0));b=pFd(G.index+1,I.panel);q=void 0;G.index>0&&(q=pFd(G.index-1,I.panel));if(q||b)I.autoplayRenderer=O9u(b,q,I.autoplayRenderer);!b&&(h==null?0:h.relatedVideoArgs)&&(I.playerData.rvs=h.relatedVideoArgs);h=h?h.playlistIndexOffset:0;G.queueProxy?hEp(I.panel,G.index,h,EE2,!0,!0,!0):hEp(I.panel,G.index,h);I.playerData.playlistPanelRenderer=I.panel;return I};
V8.prototype.openToast=function(G){_.LL().resolve(_.zO).openToast(G,_.qP("ADDED_TO_QUEUE",void 0,"Added to queue"))};
V8.prototype.isMiniplayerActive=function(){return _.LL().resolve(_.zO).isMiniplayerActive()};
_.cQ=function(G,b){G.playlistManager.setAutoplayRenderer(b.autoplayRenderer||null);G.playlistManager.setPlaylistData(b.panel||null);b.playerData&&G.playlistManager.setPlayerPlaybackControlData(b.playerData)};var jmO="#";var J1X={},KBW={},uri={},RNA={},nMu={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:(J1X.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",J1X),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:(KBW.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",KBW),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:(uri.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",uri),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:(RNA.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",RNA),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 JXp=[{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:nMu},{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:nMu}}];var dJv;_.$n=[[["aW5kIzFlc280MWIxZjNhMWs=","I2RwYTBkcndmb2cwcHZhbHVl"],"QUNFTUVOVF9LSU5EX1NUQVJUI3luOWRmZXduNXpqY0FEX1BM"]];
dJv=[[["Z21xZGxtdnByaW1hcnkjZ2R4bWQ=",null,null],[null,["cmVyIzQ2bGxzM3poMm53b3l0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRl","LXNjb3BlI21uaXRqZTNxMm5wZ3N0eWxl"],null],["ZWFkLWFkI2ZvcGNhb3R1MGwxNW1hc3Ro",["LXJpY2gtZ3JpZC1yZW5kZXJlciNnNGMxcDZ3emx1aDd5dGQ="],null],[null,["LXJpY2gtZ3JpZC1yZW5kZXJlciNuZDVvYzl3bm93aDd5dGQ=","LXNjb3BlI3UxaGdiNzFiNHdzZnN0eWxl"],null],[null,["ci1wcm9tby1yZW5kZXJlciN5N3dnMzM2cHFpdmd5dGQtYmFubmU=","LXNjb3BlI29sM25lbm95b2l5ZnN0eWxl"],null],[null,["eDVleXRkLWFkLXNsb3QtcmVuZGVyZXIjZWRieW5oNmg="],
null]],[["YXllci1hZHMjbGpnZHZjdGZieWYycGw=",null,null]]];_.Xo=["OXlsamQxbGI3ZmVnbG9iYWxDYWxsYmFja3MjZg==","bkFibm9ybWFsaXR5RGV0ZWN0ZWQjY2JzajF4eW11Z2R6bw==","Z3VjZm9uQWRTa2lwI3JzYTk3bGZ5","azBmcmF3X3BsYXllcl9yZXNwb25zZSNxeXgyeTl2a2g=","OW4zcm15MmFkU2xvdHMjazR0NnE="];_.vQ="OXlsamQxbGI3ZmVnbG9iYWxDYWxsYmFja3MjZg== bkFibm9ybWFsaXR5RGV0ZWN0ZWQjY2JzajF4eW11Z2R6bw== Z3VjZm9uQWRTa2lwI3JzYTk3bGZ5 azBmcmF3X3BsYXllcl9yZXNwb25zZSNxeXgyeTl2a2g= cHNfa3MjZXBwcjBqb2xkaXAxd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraQ== cmRkYzZ3NmFiX3NhX2VmI2o4eGc= OW4zcm15MmFkU2xvdHMjazR0NnE=".split(" ");var LR;LR=function(G,b,I){this.p6M=G;this.kwt=b;this.m0p=I};
_.GCa=[new LR("b.f_",!1,0),new LR("j.s_",!1,2),new LR("r.s_",!1,4),new LR("e.h_",!1,6),new LR("i.s_",!0,8),new LR("s.t_",!1,10),new LR("p.h_",!1,12),new LR("s.i_",!1,14),new LR("f.i_",!1,16),new LR("a.b_",!1,18),new LR("a.o_",!1),new LR("g.o_",!1,22),new LR("p.i_",!1,24),new LR("p.m_",!1),new LR("n.k_",!0,20),new LR("i.f_",!1),new LR("a.s_",!0),new LR("m.c_",!1),new LR("n.h_",!1,26),new LR("o.p_",!1),new LR("m.p_",!0,28),new LR("o.a_",!1),new LR("d.p_",!1),new LR("e.i_",!1)].reduce(function(G,b){G[b.p6M]=
b;return G},{});var OSu=function(){};
OSu.prototype.flush=function(G,b){G=G===void 0?[]:G;b=b===void 0?!1:b;if(_.U("enable_client_streamz_web")){G=_.e(G);for(var I=G.next();!I.done;I=G.next())I=fZA(I.value),this.rootSpec&&_.ZK(I,2,this.rootSpec),I={serializedIncrementBatch:_.WL(I.JSC$9680_serializeBinary())},_.C1("streamzIncremented",I,{sendIsolatedPayload:b})}};
var DJj=function(){};
_.M(DJj,OSu);var weB=function(G){var b=new DQW;var I=new mQO;I=_.F0(I,1,"botguard");G=_.F0(I,2,G);this.rootSpec=_.tz(b,1,cfn,G)};
_.M(weB,OSu);var Eb,EMW=new Map;var HqO,kcO,sms,QmB,T12,iqO,as2,zEq;HqO=2;kcO=2;sms=2;QmB=2;T12=2;iqO=2;as2=2;zEq=new cFX;var Syz,Xei;Syz=function(){this.ongoingFlowNonces=new Map};
_.I_=function(){Xei||(Xei=new Syz);return Xei};
_.bg=function(G,b,I){return{eventType:{flowEventNamespace:G,flowEventType:b},metadata:I,statusCode:void 0,csn:void 0,can:void 0}};
_.IbO=function(G,b){var I=_.I_(),h=$Fb(I,b,!0);I.logFlowEvent(G,b,h,void 0)};
Syz.prototype.logFlowEvent=function(G,b,I,h){b={flowNonce:I||$Fb(this,b),flowType:b,flowEventType:G.eventType};G.metadata&&(b.flowMetadata=G.metadata);G.statusCode!==void 0&&(b.flowEventStatus=G.statusCode);G.csn&&(b.csn=G.csn);G.can&&(b.can=G.can);_.C1("flowEvent",b,h)};
var $Fb=function(G,b,I){I=I===void 0?!1:I;var h=G.ongoingFlowNonces.get(b);if(!h||I)h=Bq(16),G.ongoingFlowNonces.set(b,h);return h};_.G2e=new D9u;var mIq={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 Q8=function(G,b,I,h,q,l,V){I=I===void 0?!1:I;h=h===void 0?!1:h;l=l===void 0?_.Dg():l;this.hasRun=!1;this.eNv=G;this.gB8=b;this.cOt=I;this.fromHistory=h;this.previousVideoId=q;this.uTT=l;this.tempData=V;this.yOx=new _.kvW};
_.M(Q8,Bs);Q8.prototype.validate=function(G){return!(!G.data.playerResponse||G.data.page!=="watch"&&G.data.page!=="learning_journey_watch"&&G.data.page!=="shorts"||this.hasRun)};
Q8.prototype.handle=function(G){var b=this,I=_.g(G.endpoint,_.Wq),h=_.g(G.endpoint,_.V4);if(_.U("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.eNv.resolve();else{var q={};I?q.watch_endpoint=I:h&&(q.watch_endpoint=h,h.endTimeSeconds&&(q.end=h.endTimeSeconds));G.data.page==="watch"?(G.data.filler||this.cOt||(_.gK("cfg"),_.I1.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(q,b78(this,G.endpoint)),_.U("enable_masthead_quartile_ping_fix")&&Object.assign(q,IWe(this)),Object.assign(q,void 0),G.data.forceExternalPlaylist&&(q.external_list=!0)):G.data.page==="shorts"?_.I1.getInstance().triggerAction("yt-start-loading-shorts"):G.data.page==="learning_journey_watch"&&_.I1.getInstance().triggerAction("yt-start-loading-learning-journey");if(I=this.gB8()){try{I.loadVideoWithPlayerResponse(G.data.playerResponse,q),I.getPlayerPromise().then(this.eNv.resolve)}catch(l){_.K1(l),
this.eNv.resolve()}this.hasRun=!0;I.getPlayerPromise().then(function(l){l.addEventListener("onAbnormalityDetected",function(){var V=G.data.playerResponse,D=l.getVideoData().cpn;as2=0;_.peB=D;if(D=$IB(V))b.yOx.increment("IN_PLAYER"),_.hL(5),_.U("ab_st_vid_ks")?l.pauseVideo(!0):l.stopVideo(),V.playabilityStatus=Object.assign({},V.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:D}}),V.videoDetails=void 0,_.I1.getInstance().triggerOptionalAction("yt-updated-playability-status",
V.playabilityStatus)})})}else _.RB(Error("Sf"))}};
var b78=function(G,b){var I=_.g(b,_.Wq);if(b&&I&&I.playlistId&&I.videoId&&(G=G.uTT,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}},IWe=function(G){var b;
if((b=G.tempData)==null?0:b.adpings)return{adpings:G.tempData.adpings}};var xq=function(G,b,I){this.hasRun=!1;this.owz=G;this.f0R=b;this.sJD=I};
_.M(xq,Bs);xq.prototype.validate=function(G){return!!_.Cy.getValueByKeys.apply(null,[G.data].concat(_.Nz(ZSA)))};
xq.prototype.handle=function(G){var b=this;this.owz.promise.then(function(){var I=G.data;var h=_.Cy.getValueByKeys.apply(null,[I].concat(_.Nz(Tn8))),q=_.Cy.getValueByKeys.apply(null,[I].concat(_.Nz(A1e))),l=_.Cy.getValueByKeys.apply(null,[I].concat(_.Nz(Udn)));var V=(V=_.Cy.getValueByKeys.apply(null,[I].concat(_.Nz(Bnb))))?{videoId:V.videoId,thumbnail:V.thumbnail,title:V.title?_.ao(V.title):void 0,shortBylineText:V.author?_.ao(V.author):void 0}:void 0;var D=void 0;_.U("web_get_playlist_id_from_current_endpoint_ks")||
(D=_.Cy.getValueByKeys.apply(null,[I].concat(_.Nz(sXu))));var k=_.Cy.getValueByKeys.apply(null,[I].concat(_.Nz(MjX))),L=_.Cy.getValueByKeys.apply(null,[I].concat(_.Nz(gMn))),x=!!k||!!L&&!!L.results&&L.results.length>0,f=0;q&&q.currentIndex&&q.localCurrentIndex&&(f=q.currentIndex-q.localCurrentIndex);q&&q.playlistId&&(D=q.playlistId);I={rawResponse:I,autoplayRenderer:h,hasRelatedVideoData:x,playingVideo:V,playingVideoId:l,playlistPanelRenderer:q,playlistId:D,playlistIndex:q&&q.currentIndex,relatedVideoArgs:k,
endScreenRenderer:L,playlistIndexOffset:f};a:{h=b.sJD;q=b.f0R;h.response=I;if(CNn(I))h.downloadPlaylistProxy&&h.downloadPlaylistProxy.getPlaylistId()===Yy8(I)||(h.downloadPlaylistProxy=new DdO(Yy8(I),h.setPlaylistData.bind(h),h.isPlayingOfflineVideo.bind(h))),h.responsePlaylistData=h.downloadPlaylistProxy.getPlaylistData(),h.listId=Yy8(I),h.index=0;else if(I.playlistPanelRenderer&&I.playlistId&&I.autoplayRenderer)I.playlistId.startsWith("TLPQ")?h.queueProxy?h.listId===I.playlistId?(h.index=I.playlistIndex,
h.responsePlaylistData=I.playlistPanelRenderer,h.queueProxy.JSC$13100_setCurrentIndex(h.index)):I.playingVideoId&&h.index!==void 0&&q.clientParams.autoSaveToQueue&&(h.index+=1,h.queueProxy.JSC$13100_setCurrentIndex(h.index),h.queueProxy.addVideos([I.playingVideoId],{},h.index)):(h.queueProxy=new _.IC(h.JSC$13154_playlistNetworkManager,I.playlistId,h.setPlaylistData.bind(h),h.clearQueue.bind(h),_.bqv(I.playlistPanelRenderer),h.storage),h.responsePlaylistData=I.playlistPanelRenderer,h.listId=I.playlistId,
h.index=I.playlistIndex):(h.index=I.playlistIndex,h.listId!==I.playlistId&&h.clearQueue(),h.responsePlaylistData=I.playlistPanelRenderer,h.listId=I.playlistId,h.playlistProxy=new fMe(h.JSC$13154_playlistNetworkManager,I.playlistId,h.setPlaylistData.bind(h),_.bqv(I.playlistPanelRenderer)));else if(!h.queueProxy)h.responsePlaylistData=void 0;else if(I.playingVideoId&&q.clientParams.autoSaveToQueue){if(h.index===void 0){_.K1(Error("Of"));h.clearQueue();break a}h.queueProxy.videoIds.includes(I.playingVideoId)||
(h.index+=1,h.queueProxy.JSC$13100_setCurrentIndex(h.index),h.queueProxy.addVideos([I.playingVideoId],{},h.index))}_.cQ(h,_.kq(h,h.response.autoplayRenderer))}})};var ht5=function(G,b){b=b===void 0?_.Dg():b;Fg.call(this);this.uc.push(new xq(this.cg,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},b));this.uc.push(new Q8(this.cg,G,!1,!1));_.U("web_response_commands_chunk_processor")&&this.uc.push(new Hs)};
_.M(ht5,Fg);ht5.prototype.processChunk=function(G){G&&G.data.player===void 0&&this.cg.resolve();Fg.prototype.processChunk.call(this,G)};var fR=function(G,b){G=G===void 0?{layer:0}:G;this.hasRun=!1;this.createScreenConfig=G;this.r6t=b};
_.M(fR,Bs);fR.prototype.validate=function(G){return!(this.hasRun||!G.endpoint)};
fR.prototype.handle=function(G){var b=_.qo(),I,h,q=(h=_.g((I=G.endpoint)==null?void 0:I.commandMetadata,_.IW))==null?void 0:h.rootVe;this.r6t&&q?_.oa(b,q,this.r6t,this.createScreenConfig):uwW(b,G.endpoint,this.createScreenConfig);this.hasRun=!0};var TU=function(G,b){this.hasRun=!1;this.nkP=G;this.previousVideoId=b};
_.M(TU,Bs);TU.prototype.validate=function(G){return _.U("kevlar_continue_playback_without_player_response")&&(G=_.g(G.endpoint,_.Wq),(G==null?0:G.videoId)&&this.previousVideoId&&(G==null?void 0:G.videoId)===this.previousVideoId&&(G==null?0:G.continuePlayback))?!1:this.nkP.hmz===0};
TU.prototype.handle=function(G){_.I1.getInstance().triggerAction("yt-stop-old-player",G.data,!0)};var qfO=function(G){G=G===void 0?{layer:0}:G;Fg.call(this);this.uc.push(new TU(this));this.uc.push(new fR(G));this.uc.push(new rS(G))};
_.M(qfO,Fg);var BQ=function(){Bs.apply(this,arguments)};
_.M(BQ,Bs);BQ.prototype.validate=function(G){return!!G.data.preconnect};
BQ.prototype.handle=function(G){_.sS("bc");G=_.e(G.data.preconnect);for(var b=G.next();!b.done;b=G.next())b=b.value,(new Image).src=b};var jYe=function(G,b,I,h,q,l,V){I=I===void 0?{layer:0}:I;l=l===void 0?_.Dg():l;Fg.call(this);if(h)if(q){q=l;this.uc.push(new xq(this.cg,b,q));this.uc.push(new BQ);var D,k;this.uc.push(new Q8(this.cg,G,!1,!((D=b.clientParams)==null||!D.fromHistory),(k=b.clientParams)==null?void 0:k.previousVideoId,q,b.tempData));var L;this.uc.push(new TU(this,(L=b.clientParams)==null?void 0:L.previousVideoId));var x;(x=b.clientParams)!=null&&x.fromHistory||(I.layer||(I=Object.assign({},I,{layer:0})),this.uc.push(new fR(I,
V)),this.uc.push(new rS(I)))}else this.uc.push(new xq(this.cg,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},l)),this.uc.push(new Q8(this.cg,G,!1,!1));else this.uc.push(new TU(this)),this.uc.push(new fR(I)),this.uc.push(new rS(I));_.U("web_response_commands_chunk_processor")&&h&&this.uc.push(new Hs)};
_.M(jYe,Fg);jYe.prototype.processChunk=function(G){G&&G.data.player===void 0&&this.cg.resolve();Fg.prototype.processChunk.call(this,G)};var lWQ=function(){this.hasRun=this.hasRun=!1};
_.M(lWQ,Bs);lWQ.prototype.validate=function(G){return!this.hasRun&&!(!G.data.csn||!G.data.rootVe)};
lWQ.prototype.handle=function(G){this.hasRun=!0;_.Mi(G.data.csn,G.data.rootVe,3)};var mFz=function(G,b,I){I=I===void 0?{layer:0}:I;Fg.call(this);this.uc.push(new Q8(this.cg,G));this.uc.push(new fR(I));this.uc.push(new rS(I))};
_.M(mFz,Fg);var etb=function(G,b,I,h,q){I=I===void 0?{layer:0}:I;h=h===void 0?_.Dg():h;Fg.call(this);var l=!!b&&!!b.clientParams&&!!b.clientParams.miniplayer;l&&this.uc.push(new lWQ);this.uc.push(new xq(this.cg,b,h));this.uc.push(new BQ);var V,D;this.uc.push(new Q8(this.cg,G,l,!((V=b.clientParams)==null||!V.fromHistory),(D=b.clientParams)==null?void 0:D.previousVideoId,h,b.tempData));var k;this.uc.push(new TU(this,(k=b.clientParams)==null?void 0:k.previousVideoId));var L;(L=b.clientParams)!=null&&L.fromHistory||
(I.layer||(I=Object.assign({},I,{layer:l?3:0})),this.uc.push(new fR(I,q)),this.uc.push(new rS(I)));_.U("web_response_commands_chunk_processor")&&this.uc.push(new Hs)};
_.M(etb,Fg);var UN,c7z;UN={};
_.V1B=(UN["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},UN["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},UN["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},UN["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},UN["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},UN["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},UN["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},UN);_.sN=new _.EA("yt-edu");_.DFn=function(){this.JSC$13252_eduDisplayedThisLoad_={}};
c7z=function(G){var b=_.DFn.getInstance();var I=_.Te("kevlar_tooltip_impression_cap");b=I&&parseInt(_.sN.get(G+"-impression")||0,10)>=I||_.sN.get(G+"-dismissed")?!1:(I=_.V1B[G])&&!b.JSC$13252_eduDisplayedThisLoad_[I.setKey||G]&&(I.titleText&&_.qP(I.titleText)||I.bodyText&&_.qP(I.bodyText))?!0:!1;if(!b)return null;b=_.V1B[G];if(!b)return null;I=b.bodyText?_.qP(b.bodyText):void 0;var h=b.titleText?_.qP(b.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:b.position,popup:{bubbleHintRenderer:{text:h?
_.ao(h):void 0,detailsText:I?_.ao(I):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ao(_.qP("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:G}}]}}}}}}}},{eduImpressionAction:{key:G}}]};
_.RA(_.DFn);var h6s=!1;for(var k2u="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),vhA=[],gZ=6;gZ>=1;gZ--)vhA.push({columnCount:gZ,query:gZ==1?0:gZ*2*107-4+32,className:"grid-"+gZ+"-columns",width:gZ*2*107+"px"});_.An=function(G){this.actionRouter_=G=G===void 0?_.I1.getInstance():G;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.Lz8(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.Lz8=function(G){var b=G.documentWidth_-(G.miniGuideVisible_?72:0)-(G.guidePersistentAndVisible_?240:0)-(G.persistentPanelVisible_?400:0);return vhA.find(function(I){return b>I.query})};
_.RA(_.An);var QYW=function(){var G=this;this.JSC$13264_keyboardInUse=!1;document.addEventListener("keydown",function(){G.onKeydown()});
document.addEventListener("mousedown",function(){G.JSC$13264_keyboardInUse=!1})},xFn;
QYW.prototype.isKeyBoardInUse=function(){return this.JSC$13264_keyboardInUse};
QYW.prototype.onKeydown=function(){this.JSC$13264_keyboardInUse=!0};var fWW,tn;_.MS=new _.EA("yt-mentions");_.Zg=function(){};
fWW=function(G,b){return tn(b,"drag-to-reorder-edu-displayed")};
tn=function(G,b,I,h,q,l){I=I===void 0?"OPEN_POPUP_POSITION_TOP":I;if(b){if(_.MS.get(b))return;_.MS.set(b,!0,h)}if(q&&l!==void 0){b=Number(_.MS.get(q)||0);if(b>=l)return;_.MS.set(q,b+1)}return[{openPopupAction:{popupType:"HINT",position:I,popup:{bubbleHintRenderer:{detailsText:G,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.RA(_.Zg);var TTz,BTQ,UFJ;TTz=function(G,b,I,h){this.JSC$13274_taskManager_=G;this.onFulfilled_=typeof b==="function"?b:null;this.onRejected_=typeof I==="function"?I:null;this.JSC$13274_context_=h};
BTQ=function(G,b){G.onFulfilled_&&_.vH(G.JSC$13274_taskManager_,function(){G.onFulfilled_.call(G.JSC$13274_context_,b)})};
UFJ=function(G,b){G.onRejected_&&_.vH(G.JSC$13274_taskManager_,function(){G.onRejected_.call(G.JSC$13274_context_,b)})};
_.zU=function(G){this.JSC$13277_taskManager_=G;this.callbacks_=[]};
_.zU.prototype.then=function(G,b,I){this.callbacks_.push(new TTz(this.JSC$13277_taskManager_,G,b,I));return this};
_.zU.prototype.onSuccess=function(G){this.callbacks_.forEach(function(b){BTQ(b,G)})};
_.zU.prototype.onFailure=function(G){this.callbacks_.forEach(function(b){UFJ(b,G)})};
_.zU.prototype.cancel=function(){this.callbacks_.length=0};
Uc5(_.zU);_.Vlv=null;_.VO=new _.q3("ACTIVITY_TOKEN");var sYB;_.LW=new _.q3("PAGE_REQUEST_TOKEN");sYB=new _.q3("FETCH_PBJ_TOKEN");_.ghX=function(G){if(G.validatedFragments_.length==0)return null;if(!G.mergedPrefetchedData_){for(var b=[],I=_.e(G.validatedFragments_),h=I.next();!h.done;h=I.next()){h=_.e(G.fragmentConfiguration_[h.value].graftedKeys);for(var q=h.next();!q.done;q=h.next())(q=G.prefetchedData_[q.value].trackingParams)&&b.push(q)}G.mergedPrefetchedData_={};Object.assign(G.mergedPrefetchedData_,G.prefetchedData_,{clientSideGrafts:b})}return G.mergedPrefetchedData_};var A7n;_.oC=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
A7n=function(G,b,I){if(_.DIr(b))return G.prefetchCache_.get(_.cEX(b,I))};_.id=new _.q3("NAVIGATION_TOKEN");var M1A=function(G){var b=this;var I=I===void 0?L5p():I;var h=h===void 0?_.LL().resolve(_.id):h;this.onePickCommand=G;this.JSC$13349_playlistNetworkManager=I;this.navigationManager=h;this.videoPickerBuilder=_.kCs("yt-addtoplaylist");_.CxW(r_i(FLB(y_z(this.videoPickerBuilder.setTitle(G.modalTitle).setSize(1E3).addView(Wtz()).addView(H8z())).addView("youtube"),G.selectButtonLabel)),function(q){b.handleAction(q)})};
M1A.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
M1A.prototype.handleAction=function(G){var b=this;if(G&&this.onePickCommand.listId&&G.action==="picked"&&G.docs){var I=[];G.docs.forEach(function(h){I.push({addedVideoId:h.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13349_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,I).then(function(){_.U("playlist_add_video_hard_reload_killswitch")?b.navigationManager.reload():Z7B(b.navigationManager)})}};var t1B=function(){if(this.constructor===t1B)throw new TypeError("Uf");};
_.m=t1B.prototype;_.m.dispose=function(){};
_.m.disconnect=function(){};
_.m.reconnect=function(){};
_.m.observe=function(G,b,I){return{element:G,option:I}};
_.m.unobserveByKey=function(){};var Qsp=function(G,b){b=b===void 0?0:b;t1B.call(this);this.viewroot=G;this.defaultPrescanHeight=b;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};
_.M(Qsp,t1B);_.m=Qsp.prototype;_.m.dispose=function(){this.disconnect();this.handlers.clear()};
_.m.disconnect=function(G){this.isConnected=!1;this.pauseObservingUntilReconnect=G===void 0?!1:G;this.observer.disconnect();G=_.e(this.prescanObservers.values());for(var b=G.next();!b.done;b=G.next())b.value.disconnect()};
_.m.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var G=_.e(this.handlers),b=G.next();!b.done;b=G.next()){var I=_.e(b.value);b=I.next().value;var h=I.next().value;I=!1;h=_.e(h.keys());for(var q=h.next();!q.done;q=h.next())if((q=q.value)&&q.state==="prescan"){I=!0;break}I&&ztn(this,b).observe(b);this.observer.observe(b)}}};
_.m.handleObserveEvent=function(G){G=_.e(G);for(var b=G.next();!b.done;b=G.next()){b=b.value;var I=this.handlers.get(b.target);if(I){var h=b.isIntersecting;I=_.e(I);for(var q=I.next();!q.done;q=I.next()){var l=_.e(q.value);q=l.next().value;l=l.next().value;q&&(q.state==="visible"&&h||q.state==="hidden"&&!h)&&(l(b.target,q.state),q.calledOnce&&this.unobserveByKey({element:b.target,option:q}))}}}};
_.m.handlePrescanEvent=function(G){G=_.e(G);for(var b=G.next();!b.done;b=G.next()){b=b.value;var I=this.handlers.get(b.target);if(I&&b.isIntersecting){I=_.e(I);for(var h=I.next();!h.done;h=I.next()){var q=_.e(h.value);h=q.next().value;q=q.next().value;h&&h.state==="prescan"&&(q(b.target,h.state),h.calledOnce&&this.unobserveByKey({element:b.target,option:h}))}}}};
_.m.observe=function(G,b,I){var h=(h=this.handlers.get(G))&&h.has(I)?{element:G,option:I}:void 0;if(h)return h;h={element:G,option:I};this.handlers.has(G)||this.handlers.set(G,new Map);var q=this.handlers.get(G);q&&!q.has(I)&&q.set(I,b);this.pauseObservingUntilReconnect||(I.state==="prescan"&&ztn(this,G).observe(G),this.observer.observe(G));return h};
_.m.unobserveByKey=function(G){var b=this.handlers.get(G.element);if(b&&b.has(G.option)){b.delete(G.option);if(G&&G.option.state==="prescan")for(var I=_.e(this.prescanObservers.values()),h=I.next();!h.done;h=I.next())h.value.unobserve(G.element);b.size===0&&(this.handlers.delete(G.element),this.observer.unobserve(G.element))}};
var ztn=function(G,b){var I=G.defaultPrescanHeight;b.hasAttribute("prescan-height")&&(b=Number(b.getAttribute("prescan-height")),isNaN(b)||(I=b));if(G.prescanObservers.has(I))return G.prescanObservers.get(I);b="-0.1px -0.1px "+I+"px -0.1px";b=new IntersectionObserver(G.handlePrescanEvent.bind(G),G.viewroot?{root:G.viewroot,rootMargin:b}:{rootMargin:b});G.prescanObservers.set(I,b);return b};var ohA=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],i7n=function(){var G,b=this;this.JSC$13366_actionRouter=G=G===void 0?_.I1.getInstance():G;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return b.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return b.visibilityObservedElementHandlerKeys}}},PbB,y75,H7i;
i7n.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.U("kevlar_use_vimio_behavior")&&_.wy("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=xI2())};
i7n.prototype.dispose=function(){this.visibilityMonitor&&_.ML(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
i7n.prototype.handleVisibilityRefreshed=function(){for(var G=_.e(this.targetMap.entries()),b=G.next();!b.done;b=G.next()){var I=_.e(b.value);b=I.next().value;I=I.next().value;_.dFi(this,b,I)}};
_.Fzz=function(G,b,I){y75(G,I);var h=_.r7J(G,b);h.element=I;G.targetedElements.set(I,b);_.dFi(G,b,h)};
y75=function(G,b){var I=G.targetedElements.get(b);if(I){var h=G.targetMap.get(I);h&&(delete h.element,G.targetMap.set(I,h));G.targetedElements.delete(b);G.visibilityObserver&&G.visibilityObservedElementHandlerKeys&&(I=G.visibilityObservedElementHandlerKeys.get(b))&&(G.visibilityObserver.unobserveByKey(I),G.visibilityObservedElementHandlerKeys.delete(b))}};
_.dFi=function(G,b,I){var h=I.action,q=I.element;q&&h&&(ohA.includes(b)||_.wy("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||G.visibilityMonitor&&G.visibilityMonitor.isNodeVisible(q)?H7i(G,b,I):G.visibilityObserver&&(G.visibilityObservedElementHandlerKeys||(G.visibilityObservedElementHandlerKeys=new WeakMap),h=G.visibilityObserver.observe(q,function(){H7i(G,b,I);G.visibilityObservedElementHandlerKeys.delete(q)},{calledOnce:!0,
state:"visible"}),G.visibilityObservedElementHandlerKeys.set(q,h)))};
H7i=function(G,b,I){var h=I.action;(I=I.element)&&h&&(_.Yl(G.JSC$13366_actionRouter,[h],I),G.targetMap.delete(b),G.targetedElements.delete(I),G.triggeredTargets.add(b))};
_.r7J=function(G,b){var I=G.targetMap.get(b);I||(I={},G.targetMap.set(b,I));return I};
_.PQ=function(){PbB||(PbB=new i7n);return PbB};var WzA=document.createElement("div");WzA.style.touchAction="pan-down";var fbj=WzA.style.touchAction==="pan-down";var aWz,NTQ;aWz=function(){this.hammerFn=YEi();this.JSC$13374_screenManager=_.qo();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Xs(83615);_.Ps(this.JSC$13374_screenManager,this.ve);TBs()};
_.dZ=function(){NTQ||(NTQ=new aWz);return NTQ};
aWz.prototype.registerTouchEvents=function(G,b,I){var h=_.RI.apply(3,arguments),q=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&&q.set({touchAction:I});this.nodeManagerMapping.set(G,q);var l=
BBO(b);h=_.e(h);for(var V=h.next();!V.done;V=h.next()){V=V.value;if(V.includes("swipe")||V.includes("pinch")||V.includes("pan"))V.includes("swipe")?q.get("swipe").set({enable:!0,direction:l,velocity:.2}):V.includes("pinch")?q.get("pinch").set({enable:!0}):V.includes("pan")&&(q.get("pan").set({enable:!0,direction:l}),q.get("swipe").set({enable:!0,direction:l,velocity:.2}),q.get("swipe").recognizeWith("pan"));Yf5(this,G,q,V)}};
var Yf5=function(G,b,I,h){I.on(h,function(q){if(h.includes("pinch"))G.lastPinchTime=Date.now();else if(h.includes("swipe")&&Date.now()-G.lastPinchTime<400)return;q.pointerType!=="mouse"&&(q=h==="doubletap"?{coordinates:q.center}:h.includes("pan")?q:h.includes("swipe")?{target:q.target}:{},b.dispatchEvent(new CustomEvent(h,{bubbles:!0,composed:!0,detail:q})))})};
aWz.prototype.unregisterTouchEvents=function(G){var b=_.RI.apply(1,arguments),I=this.nodeManagerMapping.get(G);if(I){b=_.e(b);for(var h=b.next();!h.done;h=b.next())I.off(h.value);this.nodeManagerMapping.delete(G);G.style.touchAction="unset"}};var CbQ=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var UI2=null;_.vy={getLocalStorage:_.gt(function(){try{var G=new NKs;var b=G.isAvailable()?G:null}catch(I){return null}return b?new _.si(b):null}),
getSessionStorage:_.gt(function(){var G=new YSq;return G.isAvailable()?new _.si(G):null})};var J78=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},NBO=function(){J78.instance||(J78.instance=new J78);
return J78.instance},YRj=function(G){var b=G.networkEvents;
G.networkEvents=[];return _.U("enable_network_monitoring")?b:[]};var Kzn;Kzn={};_.uYn=vz("yt-serviceworker-metadata",{objectStores:(Kzn.auth={addedAtVersion:1},Kzn["resource-manifest-assets"]={addedAtVersion:2},Kzn),shared:!0,upgrade:function(G,b){b(1)&&Sy(G,"resource-manifest-assets");b(2)&&Sy(G,"auth")},
version:2});var tlr=self.location.origin+"/";z6j([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);z6j([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);z6j([/\.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\//]);z6j([/purge_shell=1/]);var RtJ=void 0;RtJ=RtJ===void 0?[]:RtJ;
for(var nhB=[],O7e=_.e(fEO),wD8=O7e.next();!wD8.done;wD8=O7e.next())nhB.push({key:wD8.value});for(var EhW=_.e(RtJ),pDi=EhW.next();!pDi.done;pDi=EhW.next())nhB.push(pDi.value);var Sfi,fX=_.hd==null?void 0:(Sfi=_.hd.performance)==null?void 0:Sfi.memory,Prd=!1,Crq={},rEp={},T9={},By=navigator;var y8=function(G){this.JSC$13419_expiringStorage=new N1(G)};
y8.prototype.set=function(G,b,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$13419_expiringStorage.set(G,b,I)};
y8.prototype.get=function(G){return this.JSC$13419_expiringStorage.get(G)};
y8.prototype.remove=function(G){this.JSC$13419_expiringStorage.remove(G)};var Erd=_.WP(["https://www.youtube.com/",""]),p_X=_.WP(["https://studio.youtube.com/",""]),b$O="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",X_p=null,lXX;var XD8=_.WP(["https://www.youtube.com/iframe_api"]),rZ=function(){this.playerResolver_=_.yO();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.sp;this.playbackDurationSeconds_=0},$$b=function(G){var b=function(){return window.YT&&typeof window.YT.ready==="function"};
if(b())return _.X8(window.YT);var I=_.yO(),h=_.ol("SCRIPT");h.onload=h.onreadystatechange=function(){h.readyState&&h.readyState!="loaded"&&h.readyState!="complete"||(h.onload=_.sp,h.onreadystatechange=_.sp,h.onerror=_.sp,b()?I.resolve(window.YT):I.reject(new _.Wf("Failed to load the iframe player library","script.onload",h.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
h.onerror=function(q){h.onload=_.sp;h.onreadystatechange=_.sp;h.onerror=_.sp;I.reject(new _.Wf("Failed to load the iframe player library","script.onerror",q&&q.target&&q.target.src))};
_.mf(h,_.Ba(XD8));G.insertBefore(h,G.firstChild);return I.promise},GEb=function(G,b,I){var h,q;
_.c(function(l){switch(l.nextAddress){case 1:return G.playbackEndedCallback_=I,_.gm(l,2),l.yield($$b(b.parentElement||null),4);case 4:h=l.yieldResult;_.hF(l,3);break;case 2:return q=_.zf(l),q instanceof _.Wf&&q.args&&q.args[0]=="script.onerror"?_.RB(q):_.K1(q),l.return();case 3:h.ready(function(){return new h.Player(b,{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)}})}),_.ip(l)}})};
_.m=rZ.prototype;_.m.getPlayerPromise=function(){return this.playerPromise_};
_.m.onPlayerReady_=function(G){this.playerResolver_.resolve(G.target)};
_.m.onPlayerStateChange_=function(G){if(G.data==YT.PlayerState.PLAYING){G=G.target;var b=G.getCurrentTime();G.addCueRange("playback",b,b+this.playbackDurationSeconds_)}};
_.m.onCueRangeExit_=function(G){G.data=="playback"&&(G.target.stopVideo(),this.playbackEndedCallback_())};
_.m.stopVideo=function(){this.playerPromise_.then(function(G){G.stopVideo()})};
var blX=function(G){G.playerVars_&&G.playerPromise_.then(function(b){typeof b.cueVideoByPlayerVars!="function"?_.RB(new _.Wf("vmh: player API not ready","cueVideoByPlayerVars",typeof b.cueVideoByPlayerVars)):b.cueVideoByPlayerVars(G.playerVars_)})};
rZ.prototype.playVideo=function(){var G=this;this.playerVars_&&this.playerPromise_.then(function(b){typeof b.loadVideoByPlayerVars!="function"?(b=new _.Wf("vmh: player API not ready","loadVideoByPlayerVars",typeof b.loadVideoByPlayerVars),_.K1(b)):b.loadVideoByPlayerVars(G.playerVars_)})};
var ITQ=function(G,b,I,h,q){b&&(I===void 0&&(I=0),h===void 0&&(h=0),G.playbackDurationSeconds_=h/1E3,G.playerVars_={adformat:"17_8",videoId:b,suggestedQuality:"hd720",startSeconds:I/1E3,player_params:q})};
rZ.prototype.mute=function(){this.playerPromise_.then(function(G){G.mute()})};
rZ.prototype.unMute=function(){this.playerPromise_.then(function(G){G.unMute()})};var vXu=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var F6;F6=function(){this.tokenJars={};if(this.cookiesEnabled=_.ri()){var G=_.di.get("CONSISTENCY",void 0);G&&hIn(this,{encryptedTokenJarContents:G})}};
_.QEj=function(){F6.instance||(F6.instance=new F6);return F6.instance};
F6.prototype.handleResponse=function(G,b){if(!b)throw Error("Zf");var I,h;b=((I=b.innerTubeRequest.context)==null?void 0:(h=I.request)==null?void 0:h.consistencyTokenJars)||[];var q;(G=(q=G.responseContext)==null?void 0:q.consistencyTokenJar)&&this.replace(b,G)};
F6.prototype.replace=function(G,b){G=_.e(G);for(var I=G.next();!I.done;I=G.next())delete this.tokenJars[I.value.encryptedTokenJarContents];hIn(this,b)};
var hIn=function(G,b){if(b.encryptedTokenJarContents&&(G.tokenJars[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var I=Number(b.expirationSeconds);setTimeout(function(){delete G.tokenJars[b.encryptedTokenJarContents]},I*1E3);
G.cookiesEnabled&&_.yE("CONSISTENCY",b.encryptedTokenJarContents,I,void 0,!0)}};var q9e,HQ;q9e=window.location.hostname.split(".").slice(-2).join(".");_.dq=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var G=_.wy("LOCATION_PLAYABILITY_TOKEN");_.wy("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=jQA(this))&&(G=this.localStorage.get("yt-location-playability-token"));G&&(this.locationPlayabilityToken=G,this.mostRecentPosition=void 0)};
_.dq.getInstance=function(){HQ=_.Ge("yt.clientLocationService.instance");HQ||(HQ=new _.dq,_.cz("yt.clientLocationService.instance",HQ));return HQ};
_.dq.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};
_.dq.prototype.handleResponse=function(G){var b;G=(b=G.responseContext)==null?void 0:b.locationPlayabilityToken;G!==void 0&&(this.locationPlayabilityToken=G,this.mostRecentPosition=void 0,_.wy("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=jQA(this))&&this.localStorage.set("yt-location-playability-token",G,15552E3):_.yE("YT_CL",JSON.stringify({loctok:G}),15552E3,q9e,!0))};
var jQA=function(G){return G.localStorage===void 0?new _.EA("yt-client-location"):G.localStorage};
_.dq.prototype.clearLocationPlayabilityToken=function(G){G==="TVHTML5"?(this.localStorage=jQA(this))&&this.localStorage.remove("yt-location-playability-token"):_.dPs("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.dq.prototype.getCurrentPositionFromGeolocation=function(){var G=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var b=!1,I=1E4;_.wy("INNERTUBE_CLIENT_NAME")==="MWEB"&&(b=!0,I=15E3);return new Promise(function(h,q){navigator.geolocation.getCurrentPosition(function(l){G.mostRecentPosition=l;h(l)},function(l){q(l)},{enableHighAccuracy:b,
maximumAge:0,timeout:I})})};
_.dq.prototype.createUnpluggedLocationInfo=function(G){var b={};G=G.coords;if(G==null?0:G.latitude)b.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)b.longitudeE7=Math.floor(G.longitude*1E7);if(G==null?0:G.accuracy)b.locationRadiusMeters=Math.round(G.accuracy);return b};
_.dq.prototype.createLocationInfo=function(G){var b={};G=G.coords;if(G==null?0:G.latitude)b.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)b.longitudeE7=Math.floor(G.longitude*1E7);return b};var lTi=function(G,b){var I=o3();G||(G="unknown");b||(b="unknown");G="MAIN_APP_WEB_PAGE_TYPE_"+G.toUpperCase();G in ye5||(G="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");b="MAIN_APP_WEB_REQUEST_TYPE_"+b.toUpperCase();b in reO||(b="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.bX(I,{mainAppWeb:{pageType:G,requestType:b,isShellLoad:_.Sk("IS_SHELL_LOAD",!1)}})},m$O={start:function(){_.bX(Mbv(),{mainAppWeb:_.y4()})},
success:function(){_.IA(Mbv(),"SUCCESS")},
failure:function(){_.IA(Mbv(),"FAILURE")},
cancelled:function(){_.IA(Mbv(),"CANCELLED")}};var eIQ,VqW,UVO;eIQ=_.WP(["/sw.js"]);VqW=_.WP(["/sw.js?0"]);_.D$z=_.Ba(eIQ);UVO=_.Ba(VqW);var ch5=function(){var G=Error.apply(this,arguments);this.message=G.message;"stack"in G&&(this.stack=G.stack)};
_.M(ch5,Error);_.Hy.prototype.load=function(G){this.megabloxUrl_=_.wy("YPC_MB_URL");_.iU(this.megabloxUrl_,(0,_.Hr)(function(){G&&G()},this))};
_.R12=function(G,b,I,h,q,l,V,D,k,L,x){_.gXv(k);G.load((0,_.Hr)(function(){try{var f=l?l:_.wy("HL"),T=_.wy("SESSION_INDEX");_.hGj("client",function(){Myn("59",{helpCenterPath:"/youtube",locale:f,window:window}).JSC$10048_loadChatSupport({authuser:String(T)})})}catch(B){throw rq(10,x,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),q&&q(B),_.K1(B),B;
}kE5(this,b,I,h,q,l,V,D,k,L,x)},G))};
_.Hy.prototype.openFixFlowDialog=function(G,b,I,h){this.load((0,_.Hr)(function(){try{vBb(this,_.Ge("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(G).withIntegratorCallback(b).load(I,h)}catch(q){throw _.K1(q),q;}},this))};
var vBb=function(G,b,I,h){var q=b.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.U("enable_window_constrained_buy_flow_dialog")&&(q=q.usingPopupStyle(_.Ge("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));h&&(q=q.usingCloseCallback(h));b.bootstrap.fromPaymentsUrl(G.megabloxUrl_);G=b.bootstrap.asMashupMode(q);I=I?I:_.wy("HL");G.usingGaiaIndex(_.wy("SESSION_INDEX")).usingLocale(I).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.U("enable_google_payments_buyflow_material2_style_web")?
G.usingStyle(":m2;pc=#444;ac=#065fd4"):G.usingStyle(":md;pc=#444;ac=#065fd4");return G},kE5=function(G,b,I,h,q,l,V,D,k,L,x){try{var f=_.Ge("payments.business.integration");
if(!f)throw new ch5("payments.business.integration is undefined");var T=f.standaloneContextAuthId.forUserId(),B=vBb(G,f,l,function(){MCq(!1);D&&D()});
V&&B.usingServerAnalyticsEventHandler(V);var A=B.inStandaloneContext(T).buyFlow(function(t){if(t&&(!t.integratorData||t.integratorData===""||t.error))if(t.error!=null)if(String(t.error)==="-1")_.AAp(k);else{var y=String(t.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";rq(10,x,y,t.debugCode);_.FA(y,k,t.debugCode);y=new _.Wf("PAYMENT_ERROR_MESSAGE::"+t.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+t.internalErrorDetails);
_.K1(y)}else rq(10,x,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.FA("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",k,"EMPTY_INTEGRATOR_DATA"),_.K1(Error("bg"));I&&(MCq(!1),I(t))}).withEncryptedParameters(b);
L&&A.withClientParameters(tv5(_.Kvs(L)));A.load(function(){rq(24,x);_.ZE("ttc",void 0,"commerce_transaction");BT("commerce_transaction");h&&(h(),MCq(!0))},function(t){if(t==null?0:t.debugCode)var y=t==null?void 0:t.debugCode;
else if(!t||(t==null?0:t.debugCode))y="EMPTY_LOAD_FAILURE_ERROR",_.K1(Error(y));else{y="EMPTY_LOAD_FAILURE_DEBUG_CODE";var F=new _.Wf("LOAD_FAILURE:"+t.message," DEBUG_CODE:"+y);_.K1(F)}rq(10,x,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",y);_.FA("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",k,y);_.K1(t);q&&q(t)})}catch(t){throw t instanceof ch5&&(rq(10,x,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),q&&q(t)),_.K1(t),t;
}};var LZA;LZA=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.JRr=function(G,b){b=b===void 0?!1:b;G=LZA.test(G)?_.Pg(G):null;!b&&window.payments||!G?(G=_.yO(),b=G.promise,G.resolve()):b=_.cbX(G,{attributes:{"data-payments-main":"",id:"payment-lib"}});return b};var QQ5;QQ5=_.WP(["//www.googletagmanager.com/gtm.js?id=",""]);_.WQ=function(G,b){_.Rr(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:b}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.wy("GL")}),b=_.ol("SCRIPT"),b.async=!0,_.mf(b,_.Ba(QQ5,G)),b.id="gtm",G=document.getElementsByTagName("script"),G.length==0?document.head.appendChild(b):(G=G[0],G.parentNode.insertBefore(b,G)))};
_.aC=function(G){if(G=JSON.parse(G))window.dataLayer=window.dataLayer||[],window.dataLayer.push(G)};var x$X,fTQ;x$X=_.WP(["https://clients2.google.com/gr/gr_sync.js"]);_.YPB=function(){};
_.YPB.prototype.init=function(){if(fTQ()){var G=_.yO();G.resolve();return G.promise}return _.cbX(_.Ba(x$X)).then(function(){if(!fTQ())throw Error("cg");},function(){throw Error("dg");
})};
_.CqO=function(){if(!fTQ())return"";var G=window.google.gr;G.init({async:{schedule:"sync"},merchantId:"youtube"});G.start();G=G.finish();return G==null?"":G};
fTQ=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.a=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.M(_.a,PolymerFakeBaseClassWithoutHtml);_.eH=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.M(_.eH,PolymerFakeBaseClassWithoutHtml);var Z$d=window.ShadyDOM;var VFp,mvu,cPq,kPX,L1q,QHO,NS,nX;VFp=_.U("enable_shadydom_free_scoped_query_methods");mvu=_.U("enable_shadydom_free_scoped_node_methods");cPq=_.U("enable_shadydom_free_scoped_readonly_properties_batch_one");kPX=_.U("enable_shadydom_free_parent_node");L1q=_.U("enable_shadydom_free_children");QHO=_.U("enable_shadydom_free_last_child");NS=window.ShadyDOM;_.$y=NS&&NS.noPatch&&NS.wrap?NS.wrap:NS?function(G){return NS.patch(G)}:function(G){return G};
nX=function(G){if(G instanceof ShadowRoot)this.host=(0,_.$y)(G.host),this.root=G;else if(G.$$){this.host=(0,_.$y)(G);var b;this.root=(b=G.root)!=null?b:this.host}else if(G.polymerController){this.host=(0,_.$y)(G);var I;this.root=(I=this.host.shadowRoot)!=null?I:this.host}else this.root=this.host=(0,_.$y)(G)};
ekO();Dvd();xvv();f4a();v7v();var TOu={querySelector:function(G,b){b=N$j(b,CX(G));return _.U("sunnydom_native_scoped_query_selectors")?z9O(G,b):z9O(_.JL(G),b)},
querySelectorAll:function(G,b){b=N$j(b,CX(G));return _.U("sunnydom_native_scoped_query_selectors")?Array.from(oXO(G,b)):oXO(_.JL(G),b)}},BOz={appendChild:function(G,b){var I=CX(G),h=_.Yn(b);
return _.jHd(_.JL(G),I?_.ug(b,I,h):b)},
cloneNode:function(G,b){var I=_.Yn(G);G=_.JL(G);b=Ne(G).prototype.cloneNode.call(G,b);return I?R_(b,I):b},
contains:function(G,b){var I=CX(G),h=_.Yn(b);return I!==h?!1:l4u(G,b)},
insertBefore:function(G,b,I){var h=CX(G),q=_.Yn(b);G=_.JL(G);b=h?_.ug(b,h,q):b;return Ne(G).prototype.insertBefore.call(G,b,I)},
removeChild:function(G,b){var I=CX(G);G=_.JL(G);b=I?R_(b,I):b;return Ne(G).prototype.removeChild.call(G,b)},
replaceChild:function(G,b,I){var h=CX(G),q=_.Yn(b);b=h?_.ug(b,h,q):q?R_(b,q):b;I=h?R_(I,h):I;G=_.JL(G);return Ne(G).prototype.replaceChild.call(G,b,I)},
getRootNode:function(G,b){b=b===void 0?{composed:!0}:b;var I;if(((I=b)!=null?I:{}).composed)G=qOr(G);else{b=G;for(G=Pjv(G);G;)b=G,G=Cja(G);G=b}return G}},BoO=cPq?{firstChild:XVr,
nextSibling:EXO,previousSibling:SCv,firstElementChild:$vr,lastElementChild:b_O,nextElementSibling:wV2,previousElementSibling:pVB,childNodes:I4p}:{};kPX&&(BoO.parentNode=O$r);L1q&&(BoO.children=hka);QHO&&(BoO.lastChild=GPB);VFp&&Tod(TOu);mvu&&Tod(BOz);Uva();var sHO=function(G){this.node=G instanceof ShadowRoot?G.host:G};
g7s();APa();var tFs=new WeakMap;var o7O=Symbol("Bd");var rPO=new Set(["tap","track","down","up"]),F1j=_.U("pbcm_fi_query_decorators");var Yq=function(){return _.eH.apply(this,arguments)||this};
_.M(Yq,_.eH);_.m=Yq.prototype;_.m.getState=function(){return this.store.getState()};
_.m.dispatch=function(G){this.store.dispatch(G)};
_.m.beforeRegister=function(){if(this&&typeof this==="object"){var G;var b=!!this.useSignals||!((G=this.polymerController)==null||!G.useSignals)}else b=!1;if(!b&&this.properties)for(b=_.e(Object.keys(this.properties)),G=b.next();!G.done;G=b.next()){var I=G.value;G=this.properties[I];if(G.selector){if(G.computed)throw Error("kg");I=["reduxPropertiesRecomputeTrigger",'"'+I+'"'].concat(_.Nz(G.selectorArgs||[])).join(",");G.computed="recomputeReduxSelector("+I+")"}}};
_.m.attached=function(){var G=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){G.reduxPropertiesRecomputeTrigger++}));
_.U("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.m.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.m.recomputeReduxSelector=function(G,b){var I=_.RI.apply(2,arguments),h=this.properties[b].selector;if(!h)throw Error("ig`"+b);return h.apply(null,[this.store.getState()].concat(_.Nz(I)))};
_.m.select=function(G){var b=_.RI.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return G.apply(null,[this.store.getState()].concat(_.Nz(b)))};
_.kV.Object.defineProperties(Yq.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
Yq.prototype.recomputeReduxSelector=Yq.prototype.recomputeReduxSelector;_.R([_.H(),_.n("design:type",Number)],Yq.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.R([_.Vx()],Yq);var CR=[],NoO={},sh=function(){return LJ.apply(this,arguments)||this};
_.M(sh,LJ);sh.prototype._addPropertyEffect=function(G,b,I){if(b==="__observeEffects"&&I){var h,q=(h=I.info.method)!=null?h:I.info.methodName;if(q){var l=this[q];this[q]=function(){CR.push(q);try{l==null||l.apply(this,arguments)}finally{CR.pop()}}}}_.Pn._addPropertyEffect.apply(this,[G,
b,I])};
sh.prototype._setPendingProperty=function(G,b,I){if(CR.length){var h=CR[CR.length-1],q;(q=NoO[this.is])!=null&&q.has(h)||(YOs(this.is,h),_.C1("polymerPropertyChangedInObserver",{componentName:this.is,observerName:h}))}return _.Pn._setPendingProperty.apply(this,[G,b,I])};
_.R([bfs()],sh);var C_r=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),K1v,ky={};_.U("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=ky);var Qx=function(){return _.eH.apply(this,arguments)||this};
_.M(Qx,_.eH);Qx.prototype._setUnmanagedPropertyToNode=function(G,b,I){G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!0);if(I!==G[b]||typeof I==="object")G[b]=I;G.is&&G.polymerController&&G.polymerController!==G&&v5(G.is,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!1)};
_.R([_.Vx()],Qx);JPB()&&(Gb.prototype._setUnmanagedPropertyToNode=(new Qx)._setUnmanagedPropertyToNode);_.hOO={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(G){},set polymerController(G){}}]};var Uh=function(){var G=LJ.apply(this,arguments)||this;G.json=function(){};
return G};
_.M(Uh,LJ);Uh.prototype.equals=function(G,b){return G===b};
Uh.prototype.isEmpty=function(G){var b;(b=!G)||(b=_.KO(G)&&G.length===0);return b};
_.R([bfs()],Uh);var U$B=function(G){G=IQr(G);EK.call(this,G)};
_.M(U$B,EK);U$B.prototype.addProvider=function(G){G=G.key?G:IQr([G])[0];var b=this.keyIdToIndex.get(G.key.id);if(b){if(wWu(G,this.providers[b]))throw Error("lg`"+G.key.displayName);}else EK.prototype.addProvider.call(this,G)};
var sQW=new U$B([]);var gBz=!1;var GLO={};gBz||($lu(),gBz=!0);
GLO.InjectBehavior={initializeInjection:function(){var G=this.provide;try{if((G=G!=null?G:[])&&G.length>0)for(var b=IQr(G),I=_.e(b),h=I.next();!h.done;h=I.next())sQW.addProvider(h.value);var q=new Set;E7O(this.behaviors||[],q);b={};for(var l=_.e(q),V=l.next();!V.done;V=l.next()){var D=V.value;D.inject&&Object.assign(b,D.inject)}this.inject&&Object.assign(b,this.inject);for(var k=_.e(Object.keys(b)),L=k.next();!L.done;L=k.next()){var x=L.value,f=b[x];try{this[x]=sQW.resolve(f)}catch(T){throw T;}}}catch(T){throw Error(T.message);
}}};var IvO;var qxO=/\bclass\b/.test(function(){}.toString()),mlr=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Ahi=function(G){this.wasDefined=!0;Array.isArray(G)||G instanceof Array?(this.JSC$13577_getImpl=G[0],this.JSC$13577_setImpl=G[1]):this.JSC$13577_getImpl=G};
_.m=Ahi.prototype;_.m.getWithPath=function(G){return Dlv(this.JSC$13577_getImpl(),G)};
_.m.setWithPath=function(G,b){var I=this;if(G.length)throw Error("mg");if(!this.JSC$13577_setImpl)throw Error("ng");dv(function(){I.JSC$13577_setImpl(b)})};
_.m.notifyPath=function(){throw Error("og");};
_.m.notifySplices=function(){throw Error("pg");};
_.m.getChangeRecordSignal=function(G,b){var I=this;if(G.length)throw Error("qg");return function(){var h=I.getWithPath(G);return{path:b!=null?b:"",base:h,value:h}}};
_.m.getSplicesSignal=function(){throw Error("rg");};
_.m.getPathMutationSignal=function(){throw Error("sg");};
_.m.pop=function(){throw Error("tg");};
_.m.push=function(){throw Error("ug");};
_.m.splice=function(){throw Error("vg");};
_.m.unshift=function(){throw Error("wg");};var Jn=function(G){var b=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(G)||G instanceof Array?(this.JSC$13582_getImpl=G[0],this.JSC$13582_setImpl=G[1]):this.JSC$13582_getImpl=G;this.wasDefined=!1;_.MQ(function(){b.wasDefined=b.JSC$13582_getImpl()!==void 0})};
Jn.prototype.getWithPath=function(G){return Dlv(this.JSC$13582_getImpl(),G)};
Jn.prototype.setWithPath=function(G,b){var I=this;if(G[G.length-1]!=="*"&&G[G.length-1]!=="splices"){var h=_.MQ(function(){return I.getWithPath([])});
if(G.length===0){if(!this.JSC$13582_setImpl)throw Error("xg");if(h===b)return;this.wasDefined||(this.wasDefined=b!==void 0);dv(function(){I.JSC$13582_setImpl(b)})}else{for(var q=0;q<G.length-1;q++){if(!h)return;
h=h[G[q]]}q=G[G.length-1];h&&(h[q]=b);this.wasDefined||(this.wasDefined=G.length>1||b!==void 0)}MqW(this,G,{pathComponents:G,value:b})}};
Jn.prototype.notifyPath=function(G,b){G.length===0?b&&this.setWithPath(G,b.value):MqW(this,G,{pathComponents:G,value:b==null?void 0:b.value,fallbackWhenUndefined:b==null?void 0:b.value})};
var MqW=function(G,b,I,h){if(G.setMutationSignal){var q=++G.mutationIndex,l=[G.observedPath],V=G.observedPath,D;b.length===0&&(D=V);for(var k=0;k<b.length;k++){var L=V.subPaths[b[k]];if(!L)break;l.push(L);V=L;k===b.length-1&&(D=L)}for(b=!1;l.length;)V=l.shift(),V.data={index:q,mutation:I,spliceMutationIndex:h},b||(b=V===D),b&&l.push.apply(l,_.Nz(Object.values(V.subPaths)));dv(function(){G.setMutationSignal(q)})}};
Jn.prototype.notifySplices=function(G,b){var I=this,h=_.MQ(function(){return I.getWithPath(G)}),q=[].concat(_.Nz(G),["splices"]);
MqW(this,q,{pathComponents:q,value:{indexSplices:b}});if(h==null?0:h.length)b=this.mutationIndex,q=[].concat(_.Nz(G),["length"]),MqW(this,q,{pathComponents:q,value:h.length},b)};
var Zl5=function(G,b,I,h,q,l){G.notifySplices(I,[{index:h,addedCount:q,removed:l,object:b,type:"splice"}])},tqQ=function(G,b){G=G.observedPath;
for(var I=0;I<b.length;I++){var h=b[I],q=G.subPaths[h];q||(q={pathComponents:b.slice(0,I+1),subPaths:{}},G.subPaths[h]=q);G=q}},oBz=function(G,b,I){tqQ(G,b);
if(!G.getMutationSignal){var h=_.e(_.ZZ(G.mutationIndex,void 0,"sNBMCd"));G.getMutationSignal=h.next().value;G.setMutationSignal=h.next().value}var q=G.getMutationSignal;return _.P$(function(){q();return I(zI8(G,b))},void 0,"zvsXEd")};
Jn.prototype.getChangeRecordSignal=function(G,b){var I=this,h=this.mutationIndex,q;return oBz(this,G,function(l){if(l&&l.index>h){var V=l.mutation;h=l.index;q=void 0}l=_.MQ(function(){return I.getWithPath(G)});
if(V){var D=V.pathComponents[V.pathComponents.length-1],k=[].concat(_.Nz(V.pathComponents));if(D==="splices"||D==="length")return{base:l,path:(b?[b].concat(_.Nz(k)):k).join("."),value:V.value};var L=G.length>k.length?G:k,x;return{base:l!=null?l:V.fallbackWhenUndefined,path:(b?[b].concat(_.Nz(L)):L).join("."),value:(x=_.MQ(function(){return I.getWithPath(L)}))!=null?x:V.fallbackWhenUndefined}}q||(q={base:l,
path:(b?[b].concat(_.Nz(G)):G).join("."),value:l});return q})};
Jn.prototype.getSplicesSignal=function(G){var b=this.mutationIndex,I;return oBz(this,G,function(h){if(h&&h.index>b&&h.spliceMutationIndex!==b){var q=h.mutation;b=h.index;I=void 0}return q&&q.pathComponents[q.pathComponents.length-1]==="splices"?I=h=q.value:I})};
Jn.prototype.getPathMutationSignal=function(G){var b=this;tqQ(this,G);if(!this.getMutationSignal){var I=_.e(_.ZZ(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=I.next().value;this.setMutationSignal=I.next().value}var h=this.getMutationSignal,q=this.mutationIndex,l;return _.P$(function(){h();var V=zI8(b,G);if(V&&V.index>q&&V.mutation&&cOj(V.mutation.pathComponents,G)){var D=V.mutation;q=V.index}if(!l||q!==l.index){var k,L;V=(L=_.MQ(function(){return b.getWithPath(G)}))!=null?L:(k=D)==null?
void 0:k.fallbackWhenUndefined;
l={index:q,value:V}}return l},void 0,"RXYC9b")};
var zI8=function(G,b){G=G.observedPath;b=_.e(b);for(var I=b.next();!I.done;I=b.next())G=G.subPaths[I.value];return G.data};
Jn.prototype.pop=function(G){var b=this,I=_.MQ(function(){return b.getWithPath(G)});
if(!(I instanceof Array))throw Error("yg");var h=I.length>0,q=I.pop();h&&Zl5(this,I,G,I.length,0,[q]);return q};
Jn.prototype.push=function(G){var b=_.RI.apply(1,arguments),I=this,h=_.MQ(function(){return I.getWithPath(G)});
if(!(h instanceof Array))throw Error("zg");var q=h.length,l=h.push.apply(h,_.Nz(b));b.length&&Zl5(this,h,G,q,b.length,[]);return l};
Jn.prototype.splice=function(G,b,I){var h=_.RI.apply(3,arguments),q=this,l=_.MQ(function(){return q.getWithPath(G)});
if(!(l instanceof Array))throw Error("Ag");b<0?b=l.length-Math.floor(-b):b&&(b=Math.floor(b));var V=l.splice.apply(l,[b,I].concat(_.Nz(h)));(h.length||V.length)&&Zl5(this,l,G,b,h.length,V);return V};
Jn.prototype.unshift=function(G){var b=_.RI.apply(1,arguments),I=this,h=_.MQ(function(){return I.getWithPath(G)});
if(!(h instanceof Array))throw Error("Bg");var q=h.unshift.apply(h,_.Nz(b));b.length&&Zl5(this,h,G,0,b.length,[]);return q};var KR=function(G,b,I){this.model=G;this.unknownSignalResolver=b;this.options=I;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];b=_.e(UlO());G=b.next().value;b=b.next().value;this.owner=G;this.disposeImpl=b};
KR.prototype.dispose=function(){if(!this.isDisposed){for(var G=_.e(this.childSignalProxies),b=G.next();!b.done;b=G.next())b.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var il5=function(G,b){G=_.eT(G.owner);try{b()}finally{_.eT(G)}};
KR.prototype.effect=function(G){il5(this,function(){_.Jf(G,"h")})};
var P2Q=function(G,b){G.options!=null||(G.options={});var I;(I=G.options).immutableProps!=null||(I.immutableProps=new Set);G.options.immutableProps.add(b)},nOB=function(G,b){b=""+b;
d$O(G,b);var I,h;if((I=G.options)==null?0:(h=I.immutableProps)==null?0:h.has(b))return!0;var q;if((q=G.model.__signalCache)==null?0:q.has(b))I=G.model.__signalCache.get(b),Array.isArray(I)&&P2Q(G,b);var l,V,D;return(D=(l=G.options)==null?void 0:(V=l.immutableProps)==null?void 0:V.has(b))!=null?D:!1},yh5=function(G,b){var I;
G.unknownSignalResolver&&(I=G.unknownSignalResolver(b));var h,q;((h=G.options)==null?0:(q=h.immutableProps)==null?0:q.has(b))?I!=null||(I=new Ahi(_.ZZ(G.model[b],void 0,"By5iP"))):I!=null||(I=new Jn(_.ZZ(G.model[b],void 0,"CXghNc")));var l=G.model.hostElement;Object.defineProperty(G.model,b,{get:function(){Rk2(l,b);return I.getWithPath([])},
set:function(V){Ln(l,b);G.setWithPath([b],V)},
configurable:!0});return I},d$O=function(G,b){var I,h,q;
((I=G.model.__signalCache)==null||!I.has(b))&&((h=G.options)==null?0:(q=h.externalSignalProps)==null?0:q.has(b))&&G.model[b]},Zd=function(G,b){b=""+b;
var I=G.signalCache[b];if(I!==void 0)return I;I=!1;d$O(G,b);var h;if((h=G.model.__signalCache)==null?0:h.has(b))if(I=G.model.__signalCache.get(b),Array.isArray(I))I=!0,P2Q(G,b);else return G.signalCache[b]=G.model.__signalCache.get(b).signal,G.signalCache[b];var q,l;h=(l=(q=G.options)==null?void 0:q.reactivityMode)!=null?l:0;var V,D;if(!((V=G.options)==null?0:(D=V.reactiveProps)==null?0:D.has(b))&&!I&&h===1)throw Error("Cg`"+b);q=I?rhW(G,b):yh5(G,b);return G.signalCache[b]=q},rhW=function(G,b){var I=
Object.getOwnPropertyDescriptor(G.model.constructor.prototype,b),h=function(){return G.model[b]};
return new Ahi(I&&I.get&&!I.set?h:[h,function(q){G.model[b]=q}])};
KR.prototype.getWithPath=function(G){var b=_.e(G);G=b.next().value;b=jT(b);Rk2(this.model.hostElement,""+G);return Zd(this,G).getWithPath(b)};
KR.prototype.setWithPath=function(G,b){if(G.length){Ln(this.model.hostElement,G.join("."));var I=_.e(G);G=I.next().value;I=jT(I);Zd(this,G).setWithPath(I,b)}};
KR.prototype.getPathMutationSignal=function(G){var b=_.e(G);G=b.next().value;b=jT(b);return Zd(this,G).getPathMutationSignal(b)};
KR.prototype.notifyPath=function(G,b){var I=_.e(G);G=I.next().value;I=jT(I);Zd(this,G).notifyPath(I,b)};
var FZe=function(G,b){if(b.type==="literal")return function(){return{rootWasDefined:!0,value:b.value}};
var I=AI(b.path),h=_.e(I),q=h.next().value;h=jT(h);var l,V;if(b.type==="path"&&(I.length===1||((l=G.options)==null?0:(V=l.immutableProps)==null?0:V.has(q))))return function(){var f=G.getWithPath(I.slice(0,1));f=Dlv(f,I.slice(1));return{rootWasDefined:Zd(G,I[0]).wasDefined,value:f}};
var D=Zd(G,q);if(b.type==="path"){var k=D.getPathMutationSignal(h);return function(){var f,T=(f=k())==null?void 0:f.value;return{rootWasDefined:D.wasDefined,value:T}}}if(b.type==="splices"){var L=D.getSplicesSignal(h);
return function(){var f=L();return{rootWasDefined:D.wasDefined,value:f}}}var x=D.getChangeRecordSignal(h,""+q);
return function(){var f=x();return{rootWasDefined:D.wasDefined,value:f}}},fvd=function(G,b,I){var h=I.map(function(D){return FZe(G,D)}),q=I.length===0,l=[],V=I.length!==1||I[0].type!=="path"?!1:!0;
G.effect(function(){for(var D=h.length,k=[],L=!!l.length,x=0;x<D;x++){var f=h[x](),T=f.rootWasDefined;f=f.value;q||(q=T);k[x]=f;V&&(k[x+D]=L?l[x]:k[x],l[x]=f)}q&&OM(G.owner,function(){return void b.apply(null,_.Nz(k))})})},kLO=function(G,b,I,h,q){var l=Zd(G,b);
q!==void 0&&l.setWithPath([],q);fvd(G,function(){var V=_.RI.apply(0,arguments);Ln(G.model.hostElement,b,!0);l.setWithPath([],I.apply(null,_.Nz(V)))},h)};
KR.prototype.arrayPush=function(G){var b=_.RI.apply(1,arguments),I=_.e(G),h=I.next().value;I=jT(I);h=Zd(this,h);return h.push.apply(h,[I].concat(_.Nz(b)))};
KR.prototype.arraySplice=function(G,b,I){var h=_.RI.apply(3,arguments),q=_.e(G),l=q.next().value;q=jT(q);l=Zd(this,l);return l.splice.apply(l,[q,b,I].concat(_.Nz(h)))};
KR.prototype.arrayUnshift=function(G){var b=_.RI.apply(1,arguments),I=_.e(G),h=I.next().value;I=jT(I);h=Zd(this,h);return h.unshift.apply(h,[I].concat(_.Nz(b)))};
KR.prototype.notifySplices=function(G,b){var I=_.e(G);G=I.next().value;I=jT(I);Zd(this,G).notifySplices(I,b)};var Hln=!0,WZW=!1,OSj=!1,aTb=!1,NOb=0;aTb=!1;NOb=0;Hln=!0;WZW=OSj=!1;var tUO=/([^\s]+?)\(([\s\S]*)\)/,AOB=/\.([^.]+)$/,oOs=/\\,/g,s8X=/&comma;/g,gOO=/\\(.)/g,zOj=[],MUr={"*":"wildcard",splices:"splices"};var Nea=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"),Fgq=/[A-Z]/,Y9O=["class","hidden","id","on-dom-change"],CRd=new Set([].concat(_.Nz(Y9O),
["if","notify-dom-change","restamp"])),JOj=new Set([].concat(_.Nz(Y9O),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),Kgs=new Set(["restamp"]);var CbO=new Set(["className","id"]);var wIr=Symbol(),bSp=window;var VjO=window;var xdO=0,kpr=0,tI=[],QXp=0,c1O=!1,LBv=document.createTextNode("");(new window.MutationObserver(vMp)).observe(LBv,{characterData:!0});var o9=new Map,z8=0,C2e=function(G){this.mappedHandleId=G},Tnr=function(G,b,I,h){this.mappedHandleId=G;
var q=this;this.mappedHandleId=G;this.callback=b;this.waitTime=I;this.schedulerPriority=h;this.handleId=_.uu.addJob(function(){q.callback();o9.delete(q.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.M(Tnr,C2e);Tnr.prototype.cancel=function(){_.uu.cancelJob(this.handleId);o9.delete(this.mappedHandleId)};
var Bna=function(G,b){this.mappedHandleId=G;var I=this;this.mappedHandleId=G;this.callback=b;this.handleId=fMr(function(){I.callback();o9.delete(I.mappedHandleId)})};
_.M(Bna,C2e);Bna.prototype.cancel=function(){var G=this.handleId-kpr;G<0||tI.length<=G||(tI[G]=null);o9.delete(this.mappedHandleId)};var A1r=function(){};
A1r.prototype.cancel=function(){this.jobHandle!==void 0&&(UdO(this.jobHandle),this.jobHandle=void 0)};
A1r.prototype.run=function(G,b,I){var h=this;this.cancel();this.callback=G;this.jobHandle=_.iH(function(){G();h.callback=void 0},b,I)};
A1r.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var sXj=new WeakMap;var Jhz=qH(function(G){for(var b=G,I=0;I<3;I++)b=Object.getPrototypeOf(b);delete b.prototype.connectedCallback;var h=function(){return G.apply(this,arguments)||this};
_.M(h,G);h.prototype._attachDom=function(q){if(!q)return null;var l=(0,_.$y)(this.hostElement);l.attachShadow({mode:"open",shadyUpgradeFragment:q});l.shadowRoot.appendChild(q);return l.shadowRoot};
h.prototype._takeAttributes=function(){for(var q=this.hostElement.attributes,l=0;l<q.length;l++){var V=q[l],D=void 0,k=void 0;(k=(D=this).__attributeReaction)==null||k.call(D,V.name,null,V.value)}};
h.prototype._readyClients=function(){G.prototype._readyClients.call(this);this.root=this};
h.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);G.prototype.connectedCallback.call(this)};
_.kV.Object.defineProperties(h,{template:{configurable:!0,enumerable:!0,get:function(){return h.prototype._template}}});
return h}),KZu=qH(function(G){var b=function(){return G.apply(this,arguments)||this};
_.M(b,G);b.prototype.created=function(){if(this.__notifyEffects)for(var I=_.e(Object.values(this.__notifyEffects)),h=I.next();!h.done;h=I.next()){h=_.e(h.value);for(var q=h.next();!q.done;q=h.next())q.value.fn=zNq}if(this.__reflectEffects)for(I=_.e(Object.values(this.__reflectEffects)),h=I.next();!h.done;h=I.next())for(h=_.e(h.value),q=h.next();!q.done;q=h.next())q.value.fn=oMO};
b.prototype._addEventListenerToNode=function(I,h,q){I=d8(I);R1(I,h,q)||G.prototype._addEventListenerToNode.call(this,I,h,q)};
b.prototype._removeEventListenerFromNode=function(I,h,q){I=d8(I);n8(I,h,q)||G.prototype._removeEventListenerFromNode.call(this,I,h,q)};
b.prototype._propertiesChanged=function(I,h,q){if(this.__dataToNotify&&this.__notifyEffects)for(var l=_.e(Object.keys(this.__dataToNotify)),V=l.next();!V.done;V=l.next()){V=V.value;var D=tjv(V);this.__notifyEffects[D]||delete this.__dataToNotify[V]}else this.__dataToNotify=null;G.prototype._propertiesChanged.call(this,I,h,q)};
b.prototype.fire=function(I,h,q){h=h===void 0?{}:h;var l;return _.O3(d8((l=q==null?void 0:q.node)!=null?l:this),I,h,q)};
b.prototype._ensureAttribute=function(I,h){var q=d8(this);q.hasAttribute(I)||M5(q,h,I)};
b.prototype.isLightDescendant=function(I){var h=d8(this);return d8(h)!==I&&_.Eo(h).contains(I)&&_.Eo(h).getRootNode()===_.Eo(I).getRootNode()};
return b});
_.dr.ready=function(){var G;((G=this.hostElement)!=null?G:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var b;((b=this.hostElement)!=null?b:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Y6._subscribeIronResize=function(G){var b;((b=G.hostElement)!=null?b:G).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Y6._unsubscribeIronResize=function(G){var b;((b=G.hostElement)!=null?b:G).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var ddp=[Array,Boolean,Date,Number,Object,String],r8=function(G,b,I,h){this.polySiInfo=G;this.polySiParams=b;this.polySiContext=I;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;h||this instanceof HTMLElement&&(h=this);if(!h)throw Error("Jg");this.allowedProps=b.allowedProps;this.hostElement=h;this.is=G.is;this.upgradeDisabled=!!b.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");G=new Set(b.reactiveSchemas.filter(function(q){return q.type!==
"observe"}).map(function(q){return q.propertyKey}));
this.signalProxy=new KR(this,void 0,{reactiveProps:G,reactivityMode:b.reactivityMode});this.__dataHasAccessor={};b=_.e(b.reactiveSchemas);for(G=b.next();!G.done;G=b.next())G=G.value,G.type==="signal"&&(this.__dataHasAccessor[G.propertyKey]=!0);this.upgradeDisabled||u9B(this)};
r8.prototype.getExtraMethodsToForward=function(){return[]};
var u9B=function(G){G.polySiContext.didRegister||(G.registered(),G.polySiContext.didRegister=!0);G.polySiContext.finalizedTemplate||(G.polySiContext.finalizedTemplate={},G.polySiParams.templateGetter&&(G.polySiContext.finalizedTemplate.processedTemplate=Ddp(G.polySiParams.templateGetter,G.polySiParams.is)));RIW(G);var b=G.hostElement;b.loggingStatus!=null||(b.loggingStatus={});b.loggingStatus.isInitializing=!0;_.MQ(function(){return void G.created()});
b.loggingStatus.isInitializing=!1;G.isPolySiElementConnected&&nBn(G)},nBn=function(G){G.didCallReady||(_.MQ(function(){return void G.ready()}),G.didCallReady=!0);
G.isAttached=!0;G.attached()};
_.m=r8.prototype;_.m.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||nBn(this)};
_.m.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.m.attributeChangedCallback=function(G,b,I){if(this.upgradeDisabled)G==="disable-upgrade"&&I===null&&(this.upgradeDisabled=!1,u9B(this));else if(b!==I){var h=_.ju(G),q=this.polySiContext.typesForSignals[h];if(q&&(!this.reflecting||_.U("polysi_attribute_changed_serializing_killswitch"))){switch(q){case Object:try{var l=JSON.parse(I)}catch(D){l=I}break;case Array:try{l=JSON.parse(I)}catch(D){l=null}break;case Date:l=isNaN(I)?String(I):Number(I);l=new Date(l);break;case Boolean:l=I!==null;break;case Number:l=
Number(I);break;default:l=I}this[h]=l}h=_.e(this.polySiParams.behaviors);for(q=h.next();!q.done;q=h.next())l=void 0,(l=q.value.attributeChanged)==null||l.call(this,G,b,I);var V;(V=this.attributeChanged)==null||V.call(this,G,b,I)}};
_.m.attributeChangedCallbackWrapper=function(G,b,I){this.attributeChangedCallback(G,b,I)};
_.m.setPropertiesFromInitialAttributeValues=function(){for(var G=0;G<this.hostElement.attributes.length;G++){var b=this.hostElement.attributes[G];(b.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(b.name))&&this.attributeChangedCallback(b.name,null,b.value)}};
_.m.created=function(){this.provide=this.polySiParams.provide;var G;(G=this.initializeInjection)==null||G.call(this);G=_.e(this.polySiParams.reactiveSchemas);for(var b=G.next();!b.done;b=G.next())b=b.value,b.type==="signal"&&(this.mutablePropNames.add(b.propertyKey),Zd(this.signalProxy,b.propertyKey));PNv(this,this.polySiInfo,this.polySiParams.behaviors);G=_.e(this.polySiParams.reactiveSchemas);for(b=G.next();!b.done;b=G.next())b=b.value,b.type==="signal"&&b.value!==void 0&&(this.signalProxy.model[b.propertyKey]=
typeof b.value==="function"?b.value.call(this):b.value);if(this.polySiParams.signalProperties)for(G=_.e(this.polySiParams.signalProperties),b=G.next();!b.done;b=G.next()){b=b.value;var I=void 0;((I=this.__signalCache)==null?0:I.has(b))||(this.signalProxy.model[b]=void 0)}aTb||OlW(this);iSd(this);G=_.e(this.polySiParams.behaviors);for(b=G.next();!b.done;b=G.next())I=void 0,(I=b.value.created)==null||I.call(this);var h;(h=this.polySiInfo.created)==null||h.call(this)};
_.m.registered=function(){var G=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var b=Object.getPrototypeOf(this);b.addReactiveSchema=function(D){G.polySiParams.reactiveSchemas.push(D)};
for(var I=_.e(this.polySiParams.behaviors),h=I.next();!h.done;h=I.next()){var q=void 0;(q=h.value.beforeRegister)==null||q.call(b)}var l;(l=this.polySiInfo.beforeRegister)==null||l.call(b);b.addReactiveSchema=r1X;I=_.e(this.polySiParams.behaviors);for(h=I.next();!h.done;h=I.next())q=void 0,(q=h.value.registered)==null||q.call(b);var V;(V=this.polySiInfo.registered)==null||V.call(b)};
_.m.ready=function(){var G;(G=this.beforeReady)==null||G.call(this);aTb&&OlW(this);var b;if(G=(b=this.polySiContext.finalizedTemplate)==null?void 0:b.processedTemplate){G=eNO(G.template,G.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:G.hasInsertionPoint,thisCtx:this});b=G.nodesById;G=G.root;var I=this.hostElement;var h=h===void 0?!1:h;I=(0,_.$y)(I);if(!I.attachShadow)throw Error("Hd");if(!I.shadowRoot||h)I.attachShadow({mode:"open",shadyUpgradeFragment:G}),I.shadowRoot.appendChild(G);
this.root=I.shadowRoot;this.$=b}wun(this);h=_.e(this.polySiParams.behaviors);for(b=h.next();!b.done;b=h.next())G=void 0,(G=b.value.ready)==null||G.call(this);var q;(q=this.polySiInfo.ready)==null||q.call(this)};
_.m.attached=function(){for(var G=_.e(this.polySiParams.behaviors),b=G.next();!b.done;b=G.next()){var I=void 0;(I=b.value.attached)==null||I.call(this)}var h;(h=this.polySiInfo.attached)==null||h.call(this)};
_.m.detached=function(){for(var G=_.e(this.polySiParams.behaviors),b=G.next();!b.done;b=G.next()){var I=void 0;(I=b.value.detached)==null||I.call(this)}var h;(h=this.polySiInfo.detached)==null||h.call(this)};
var RIW=function(G){for(var b=_.e(G.polySiParams.behaviors),I=b.next();!I.done;I=b.next())if(I=I.value,I.listeners)for(var h in I.listeners)mdj(G,G.hostElement,h,I.listeners[h]);if(G.polySiInfo.listeners)for(var q in G.polySiInfo.listeners)mdj(G,G.hostElement,q,G.polySiInfo.listeners[q])},mdj=function(G,b,I,h,q){G=VUp(G,h,q);
R1(b,I,G)||b.addEventListener(I,G);return G},OlW=function(G){for(var b=_.e(G.polySiParams.reactiveSchemas),I=b.next();!I.done;I=b.next())I=I.value,I.type==="compute"||I.type==="computeWithMethod"?vOa(G.signalProxy,I,G):I.type==="redux"?xlB(G.signalProxy,I,G.store):I.type==="signal"&&I.readOnly&&Q8s(G.signalProxy,I)},wun=function(G){for(var b=_.e(G.polySiParams.reactiveSchemas),I=b.next(),h={};!I.done;h={schema$jscomp$12:void 0},I=b.next())h.schema$jscomp$12=I.value,h.schema$jscomp$12.type==="notify"?
Teq(G.signalProxy,h.schema$jscomp$12,G.hostElement):h.schema$jscomp$12.type==="observe"?Bep(G.signalProxy,h.schema$jscomp$12,G):h.schema$jscomp$12.type==="reflect"&&G.signalProxy.effect(function(l){return function(){var V=G.signalProxy.getWithPath([l.schema$jscomp$12.propertyKey]);
G.reflecting=!0;PRq(G.hostElement,l.schema$jscomp$12.propertyKey,V,!0);G.reflecting=!1}}(h));
if(G.reflectedAttributes)for(b=_.e(Object.entries(G.reflectedAttributes)),h=b.next(),I={};!h.done;I={key$jscomp$938:void 0,value$jscomp$10160:void 0},h=b.next()){var q=_.e(h.value);h=q.next().value;q=q.next().value;I.key$jscomp$938=h;I.value$jscomp$10160=q;G.signalProxy.effect(function(l){return function(){G.reflecting=!0;PRq(G.hostElement,l.key$jscomp$938,(0,l.value$jscomp$10160)(),!0);G.reflecting=!1}}(I))}};
_.m=r8.prototype;_.m._setPendingProperty=function(G,b){this.set(G,b);return!1};
_.m._enableProperties=function(){};
_.m._setPendingPropertyOrPath=function(G,b){this.notifyPath(G,b);return!1};
_.m._addPropertyEffect=function(){};
_.m._stampTemplate=function(){throw Error("Kg");};
_.m.fire=function(G,b,I){b=b===void 0?{}:b;I=I===void 0?{}:I;var h,q,l={bubbles:(h=I.bubbles)!=null?h:!0,cancelable:!!I.cancelable,composed:(q=I.composed)!=null?q:!0},V;return _.O3(FBv((V=I.node)!=null?V:this.hostElement),G,b,l)};
_.m.get=function(G,b){var I=AI(G);return b?Dlv(b,I):G==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(I)};
_.m.linkPaths=function(){};
_.m.listen=function(G,b,I){G=FBv(G);this.boundListeners!=null||(this.boundListeners=new WeakMap);var h=this.boundListeners.get(G);h||(h={},this.boundListeners.set(G,h));var q=b+I;h[q]||(h[q]=mdj(this,G,b,I))};
_.m.notifyPath=function(G,b){this.signalProxy.notifyPath(AI(G),arguments.length===2?{value:b}:void 0)};
_.m.canNotifyPath=function(G){return this.mutablePropNames.has(G)&&!nOB(this.signalProxy,G)};
_.m.notifySplices=function(G,b){this.signalProxy.notifySplices(AI(G),b)};
_.m.pop=function(G){var b=this.signalProxy;G=AI(G);var I=_.e(G);G=I.next().value;I=jT(I);return Zd(b,G).pop(I)};
_.m.push=function(G){var b=_.RI.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[AI(G)].concat(_.Nz(b)))};
_.m.set=function(G,b,I){if(I)throw Error("Lg");G==="hidden"?this.hostElement.hidden=!!b:this.signalProxy.setWithPath(AI(G),b)};
_.m.setProperties=function(G){G=_.e(Object.entries(G));for(var b=G.next();!b.done;b=G.next()){var I=_.e(b.value);b=I.next().value;I=I.next().value;this[b]=I}};
_.m.splice=function(G,b,I){var h=_.RI.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[AI(G),b,I].concat(_.Nz(h)))};
_.m.unlinkPaths=function(){};
_.m.unlisten=function(G,b,I){G=FBv(G);if(this.boundListeners){var h=this.boundListeners.get(G);if(h){I=b+I;var q=h[I];q&&(n8(G,b,q)||G.removeEventListener(b,q),delete h[I])}}};
_.m.unshift=function(G){var b=_.RI.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[AI(G)].concat(_.Nz(b)))};
_.kV.Object.defineProperties(r8.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 nMj=[Array,Boolean,Date,Number,Object,String];var EMB=!1;var ud=function(){var G=HTMLElement.apply(this,arguments)||this;G.restamp=!1;G.notifyDomChange=!1;G.JSC$13690_didCallConnected=!1;G.JSC$13690_renderDebouncer=null;G.disableTemplateUpdateSignalImpl=Fv()?void 0:_.ZZ(!1,void 0,"Ofhkwb");var b;G.getDisableTemplateUpdate=(b=G.disableTemplateUpdateSignalImpl)==null?void 0:b[0];var I;G.setDisableTemplateUpdate=(I=G.disableTemplateUpdateSignalImpl)==null?void 0:I[1];return G};
_.M(ud,HTMLElement);var EBn=function(G){G.conditionSignalImpl!=null||(G.conditionSignalImpl=new Jn(_.ZZ(!1,void 0,"gE52Fb")));return G.conditionSignalImpl};
_.m=ud.prototype;_.m.showHideChildren=function(G){pui(this,G,this.if)};
_.m.attributeChangedCallback=function(G,b,I){if(this.JSC$13690_didCallConnected)throw Error("Pg`"+G);G==="notify-dom-change"?this.notifyDomChange=I!==null:G==="restamp"&&(this.restamp=I!==null)};
_.m.debounceRender=function(){this.JSC$13690_renderDebouncer=_.Q2(this.JSC$13690_renderDebouncer,wa,this.JSC$13690_renderImpl.bind(this));_.xj(this.JSC$13690_renderDebouncer)};
_.m.disconnectedCallback=function(){var G=(0,_.$y)(this).parentNode;(!G||G.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in G&&!G.host)&&S9A(this)};
_.m.connectedCallback=function(){var G=this;this.JSC$13690_didCallConnected=!0;Hln?pev():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.U("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){EBn(G).getWithPath([]);G.debounceRender()})};
_.m.render=function(){_.Uc()};
_.m.JSC$13690_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var G=this.if,b=!1;if(G){this.hasInstance()||(Xui(this),b=!0);a:{var I=(0,_.$y)(this).parentNode;if(this.hasInstance()){var h=this.instance.children;if((h==null?0:h.length)&&(0,_.$y)(this).previousSibling!==h[h.length-1])for(var q=0;q<h.length;q++)(0,_.$y)(I).insertBefore(h[q],this)}else{if(!I){I=!1;break a}$We(this,I)}I=!0}if(!I)return}else this.restamp&&S9A(this);pui(this,!1,G);G&&!b&&Xui(this);WZW&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.m.hasInstance=function(){return!!this.instance};
var $We=function(G,b){var I=G.parentSignalProxy;if(Fv()){var h=_.e(_.ZZ(!0,void 0,"dkzufd"));var q=h.next().value;h=h.next().value;I=G.parentSignalProxy}else{var l;var V=new KR((l=G$i(G))!=null?l:{},function(k){var L=Zd(G.parentSignalProxy,k).getChangeRecordSignal([]);k=_.ZZ(void 0,void 0,"iG8Uwe");var x=new Jn(k);V.effect(function(){if(G.getDisableTemplateUpdate&&!G.getDisableTemplateUpdate()){var f=L();x.notifyPath(AI(f.path),{value:f.value})}});
return x});
G.parentSignalProxy.childSignalProxies.push(V);var D=I=V}I=eNO(G.templateInfo,G.templateInfo.nodeInfoList,I,{eventListenerHost:G.eventListenerHost,hasInsertionPoint:G.templateInfo.hasInsertionPoint,thisCtx:G.eventListenerHost,enabledSignal:Fv()?q:void 0,getModel:function(){return G$i(G)}}).root;
G.instance={root:I,children:[],hidden:!1,signalProxy:D,getTemplateUpdatesEnabled:q,setTemplateUpdatesEnabled:h};D=_.e(I.childNodes);for(q=D.next();!q.done;q=D.next())G.instance.children.push(q.value);(0,_.$y)(b).insertBefore(G.instance.root,G)},G$i=function(G){if((G=G.parentSignalProxy.model)&&!G.hostElement){var b={},I;
for(I in G)G.hasOwnProperty(I)&&(b[I]=G[I]);return b}},S9A=function(G){if(G.instance){var b=G.instance.children;
if(b.length){var I=(0,_.$y)(b[0]).parentNode;if(I){I=(0,_.$y)(I);for(var h=0;h<b.length;h++)I.removeChild(b[h])}}Fv()?G.instance.setTemplateUpdatesEnabled(!1):G.instance.signalProxy.dispose();G.instance=void 0}},pui=function(G,b,I){b=b||!I;
G.instance&&G.instance.hidden!==b&&(G.instance.hidden=b,wev(b,G.instance.children))},Xui=function(G){if(Fv()){var b=G.instance;
b&&OM(G.parentSignalProxy.owner,function(){return!b.getTemplateUpdatesEnabled()})&&b.setTemplateUpdatesEnabled(!0)}else G.setDisableTemplateUpdate(!1)};
_.kV.Object.defineProperties(ud.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var G=this;return OM(this.parentSignalProxy.owner,function(){return EBn(G).getWithPath([])})},
set:function(G){G||(Fv()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));EBn(this).setWithPath([],!!G)}}});
_.kV.Object.defineProperties(ud,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",ud);var bsQ=[],RC=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$13697_renderDebouncer=null;G.instances=[];G.chunkingId=null;G.chunkCount=null;G.shouldMeasureChunk=!1;G.shouldContinueChunking=!1;G.renderStartTime=null;G.JSC$13697_didCallConnected=!1;return G};
_.M(RC,HTMLElement);var Ili=function(G){G.itemSignalImpl!=null||(G.itemSignalImpl=new Jn(_.ZZ(bsQ,void 0,"YBrqgf")));return G.itemSignalImpl},hVn=function(G,b){Array.isArray(b)||(b=bsQ);
Ili(G).setWithPath([],b)};
_.m=RC.prototype;_.m.showHideChildren=function(G){for(var b=_.e(this.instances),I=b.next();!I.done;I=b.next())wev(G,I.value.children)};
_.m.notifyPath=function(G,b){G=AI(G);G[0]==="items"&&(G.length===1?hVn(this,b):Ili(this).setWithPath(G.slice(1),b))};
_.m.canNotifyPath=function(G){return G==="items"};
_.m.attributeChangedCallback=function(G,b,I){if(this.JSC$13697_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))};
_.m.disconnectedCallback=function(){this.isDetached=!0;for(var G=0;G<this.instances.length;G++)qru(this,G);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.m.connectedCallback=function(){var G=this,b=Ili(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var q=b(),l=AI(q.path);if(l[0]===void 0||l[0]==="splices"||l[0]==="length")G.debounceRender();else{var V=l[0];if(V=G.instances[typeof V==="string"?Math.floor(Number(V)):V])l=[G.as].concat(_.Nz(l.slice(1))),V.signalProxy.notifyPath(l,q)}});
this.JSC$13697_didCallConnected=!0;Hln?pev():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var I=(0,_.$y)((0,_.$y)(this).parentNode),h=0;h<this.instances.length;h++)I.insertBefore(this.instances[h].root,this);this.chunkingId&&this.render()}};
_.m.debounceRender=function(){this.JSC$13697_renderDebouncer=_.Q2(this.JSC$13697_renderDebouncer,wa,this.JSC$13697_renderImpl.bind(this));_.xj(this.JSC$13697_renderDebouncer)};
_.m.render=function(){this.debounceRender();_.Uc()};
_.m.JSC$13697_renderImpl=function(){var G=this;if(!this.parentSignalProxy.isDisposed){var b=this.items,I=jPn(this,b.length);llz(this,b,I);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){G.chunkingId=null;if(G.shouldMeasureChunk){var h=performance.now()-G.renderStartTime;G.chunkCount=Math.round(Math.ceil(1E3/G.targetFramerate)/h*G.chunkCount)||1}G.shouldContinueChunking&&G.debounceRender()}));
WZW&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var jPn=function(G,b){var I=b,h=G.instances.length;if(G.initialCount){if(G.chunkCount){var q=Math.min(Math.max(b-h,0),G.chunkCount);I=Math.min(h+q,b)}else I=Math.min(b,G.initialCount),q=Math.max(I-h,0),G.chunkCount=q||1;G.shouldMeasureChunk=q===G.chunkCount;G.shouldContinueChunking=I<b;G.renderStartTime=performance.now()}return I},llz=function(G,b,I){for(var h=0;h<I;h++){var q=G.instances[h],l=b[h];
q?(q.signalProxy.setWithPath([G.as],l),q.signalProxy.setWithPath([G.indexAs],h)):mWi(G,l,h)}for(b=G.instances.length-1;b>=h;b--)I=G,q=b,qru(I,q),_.e(I.instances.splice(q,1)).next().value.signalProxy.dispose()},qru=function(G,b){G=G.instances[b];
b=(0,_.$y)(G.root);for(var I=0;I<G.children.length;I++)b.appendChild(G.children[I])},mWi=function(G,b,I){var h={};
b=Object.assign({},eVB(G),(h[G.as]=b,h[G.indexAs]=I,h[G.itemsIndexAs]=I,h));var q=new KR(b,function(V){if(V!==G.as&&V!==G.indexAs){if(V===G.itemsIndexAs)return Zd(q,G.indexAs);var D=Zd(G.parentSignalProxy,V).getChangeRecordSignal([]);V=_.ZZ(void 0,void 0,"T21Pqc");var k=new Jn(V);q.effect(function(){var L=D();k.notifyPath(AI(L.path),{value:L.value})});
return k}});
G.parentSignalProxy.childSignalProxies.push(q);h=eNO(G.templateInfo,G.templateInfo.nodeInfoList,q,{eventListenerHost:G.eventListenerHost,getModel:function(){var V={};return Object.assign({},eVB(G),(V[G.as]=q.model[G.as],V[G.indexAs]=q.model[G.indexAs],V[G.itemsIndexAs]=q.model[G.indexAs],V))},
hasInsertionPoint:G.templateInfo.hasInsertionPoint,thisCtx:G.eventListenerHost,methodInvocationRequirement:NOb,enabledSignal:G.stampingEnabled}).root;b={root:h,children:[],signalProxy:q};h=_.e(h.childNodes);for(var l=h.next();!l.done;l=h.next())b.children.push(l.value);h=(h=G.instances[I+1])?h.children[0]:G;(0,_.$y)((0,_.$y)(G).parentNode).insertBefore(b.root,h);G.instances[I]=b},eVB=function(G){if((G=G.parentSignalProxy.model)&&!G.hostElement){var b={},I;
for(I in G)G.hasOwnProperty(I)&&(b[I]=G[I]);return b}};
RC.prototype.itemForElement=function(G){var b=this,I=this.instances.find(function(h){return h.children.includes(G)});
if(I)return OM(this.parentSignalProxy.owner,function(){return I.signalProxy.getWithPath([b.as])})};
RC.prototype.indexForElement=function(G){var b=this.instances.findIndex(function(I){return I.children.includes(G)});
return b>=0?b:void 0};
_.kV.Object.defineProperties(RC.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var G=this;return OM(this.parentSignalProxy.owner,function(){return Ili(G).getWithPath([])})},
set:function(G){hVn(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}}});
_.kV.Object.defineProperties(RC,{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",RC);var VxA,DWA;_.nR=new _.q3("STATE_STORE_TOKEN");VxA=new _.q3("SELECT_TOKEN");DWA=new _.q3("DISPATCH_TOKEN");var IWr={getSelectFn:function(){var G;return(G=_.LL().resolve(_.vf(VxA)))!=null?G:SyX},
getDispatchFn:function(){var G;return(G=_.LL().resolve(_.vf(DWA)))!=null?G:_.H5().dispatch.bind(_.H5())},
getAppStore:function(){return _.LL().resolve(_.nR)}},Xeu,b7r=!1;var V1v=function(){};var lWO=void 0;var cHi=function(){};
cHi.prototype.hasAttribute=function(G){if(G==="dir")return!1;if(G==="disable-upgrade"){var b,I;return(I=(b=this.hostElement)==null?void 0:b.hasAttribute("disable-upgrade"))!=null?I:!1}throw Error("Rg`"+G);};
cHi.prototype.attributeChangedCallbackWrapper=function(G,b,I){if(G==="disable-upgrade"&&this.__isUpgradeDisabled&&I===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var h;((h=this.hostElement)!=null?h:this).isConnected&&this.connectedCallback()}else b===I||this.__isReflecting||this.attributeChangedCallback(G,b,I)};
cHi.prototype.getExtraMethodsToForward=function(){for(var G=this,b=[],I=_.e(k$A),h=I.next(),q={};!h.done;q={tagName$jscomp$67:void 0,name$jscomp$629:void 0},h=I.next())q.name$jscomp$629=h.value,h=void 0,q.name$jscomp$629==="_setPendingProperty"?(q.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),h=function(l){return function(V,D,k){v5(l.tagName$jscomp$67,V,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return G._setPendingProperty(V,D,k)}}(q)):h=function(l){return function(){return G[l.name$jscomp$629].apply(G,
_.Nz(_.RI.apply(0,arguments)))}}(q),b.push([q.name$jscomp$629,
h]);return b};
for(var k2j=KZu(Jhz((0,_.iY)(cHi))),xFs=["disabled","disable-upgrade"],ve8=(0,_.iY)(function(){}),LCu=new Set(Object.getOwnPropertyNames(ve8.prototype)),sYv=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Nz(LCu))),TTX=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),k$A=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),QPO=new Set([].concat(_.Nz(TTX),_.Nz(k$A),_.Nz(LCu))),xW8=_.e(QPO),fli=xW8.next();!fli.done;fli=xW8.next())C_r.add(fli.value);var UFO={created:function(){iSd(this);this.initializeInjection()}};var Pbv=!1,Kn=window.ShadyDOM,NTO=["appendChild","insertBefore","removeChild","replaceChild"],aWX=[Node];Kn&&aWX.push(Kn.Wrapper);var nhv,O7r,pDu={};var uH,bl2=new WeakMap,XDr=new Set;var lTu=new Set("context didCallReady is info params signalProxy".split(" ")),eIO="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),VqB="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var TWb=i4({entities:GUr}),BWi=new YS(TWb);var UWJ=function(){return _.eH.apply(this,arguments)||this};
_.M(UWJ,_.eH);_.kV.Object.defineProperties(UWJ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return BWi}}});
_.R([_.Vx()],UWJ);_.ON=[Yq.prototype,UWJ.prototype];_.wZ={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var G=this,b={};setTimeout(function(){var I;return _.O3((I=G.hostElement)!=null?I:G,"yt-live-chat-add-tooltip-target",b)},0);
this.handler_=b.handler},
detached:function(){if(this.handler_){var G;this.handler_.removeElementFromSupportingTooltips((G=this.hostElement)!=null?G:this)}this.handler_=null}}};_.SH=new _.q3("ICON_MANAGER_TOKEN");var sPb=[48,20,18,16,15,13,12],ild=new Map,Zld=new Set,gBX=new Set,MqB=new Set,sQB=new Set,Ahu=new Set,zIr=new Promise(function(G){var b=!1,I=!1,h=!1,q=[],l=function(V){if("detail"in V)if(V=V.detail,V.name==="yt-icons")tqO(V),b=!0;else if(V.name==="yt-sys-icons")tqO(V),I=!0;else{var D;((D=V.name)==null?0:D.includes("yt-sys-icons"))&&V.size!==24&&(tqO(V,!0),q.push(V.size),q.length===sPb.length&&(h=!0))}b&&I&&h&&(window.removeEventListener("iron-iconset-added",l),G())};
window.addEventListener("iron-iconset-added",l)}),geJ=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"]]);_.EN={};_.EN.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.NO,computeHref_:function(G,b){b=b===void 0?!1:b;if(!G||G.commandExecutorCommand)return null;var I=VKX(G,b);return b||I!==null?I?_.U("enable_polymer_resin")?_.KA(I).toString():I:null:(_.RB(new _.Wf("computeHref was null",this.is,G)),null)},
computeOptionalHref_:function(G){return this.computeHref_(G,!0)},
computeNofollow_:function(G){return G?GZs(G)?"nofollow":null:null},
computeIcon_:function(G){return G&&G.iconType?_.pn(G.iconType):""},
resolveCommand:function(G,b,I){b=b===void 0?{}:b;return _.$Q(G,this.hostElement,b,I===void 0?!1:I)}};var MxO,pR;_.AHO={};MxO=null;
pR={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_=xI2(this.viewroot));_.iH(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var G=this;this.unobserve_();if(_.U("kevlar_vimio_use_shared_monitor"))FZr(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 b=[];this.visibilityOptionVisible_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=b}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){P2O(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=_.wV(this.parentNode,function(I){var h,q=(h=I.polymerController)!=null?h:I;return!!q.getVisibilityObserverForChild&&q.getVisibilityObserverForChild()},!0);
if(G){var b;this.localVisibilityObserver_=((b=G.polymerController)!=null?b:G).getVisibilityObserverForChild()}else MxO||(MxO=xI2()),this.localVisibilityObserver_=MxO;return this.localVisibilityObserver_},visibilityCallback:function(G){G?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.U("kevlar_use_vimio_behavior")||(pR={});pR&&!_.U("kevlar_use_vimio_behavior")&&(delete pR.attached,delete pR.detached);_.AHO.YtVisibilityObserverBehavior=[pR];var Zsz={};Zsz.YtVisualElementBehavior=[_.AHO.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.U("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.U("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var G=this.getScreenLayer&&this.getScreenLayer(),b=this.getVisibilityLogger();b&&b.reportShown(this,void 0,G)}},
onHidden:function(){if(_.U("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.U("kevlar_vimio_use_shared_monitor")){var G=this.getScreenLayer&&this.getScreenLayer(),b=this.getVisibilityLogger();b&&b.reportHidden(this,void 0,G)}},
getVisibilityLogger:function(){return _.U("kevlar_use_vimio_behavior")?_.b$():null},
shouldSkipLogging:function(){if(_.wy("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var G=this.getParentRenderer&&this.getParentRenderer();if(!G)return!1;var b,I=(b=G.polymerController)!=null?b:G;if(!I.data)return!1;G=this.data.trackingParams;G=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:G;var h;b=(h=I.data)==null?void 0:h.trackingParams;var q,l;b=((q=I.data)==null?0:q.loggingDirectives)?(l=I.data)==null?void 0:l.loggingDirectives.trackingParams:b;return G&&b&&G===
b}}];var aTa=new Map,Dm;var p7a=function(G){this.layer=G},hk=function(G){return G.layer!==void 0?G.layer:G.parent?hk(G.parent):G.layer=0};var u9v;_.p={};u9v=0;_.p.YtRendererBehavior=[_.EN.YtComponentBehavior,Zsz.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_:_.U("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var G,b;(b=(G=this.monitorScrollElement)!=null?G:this.hostElement)==null||b.removeEventListener("scroll",_.I9(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();HlO(this.hostElement);y75(_.PQ(),this.hostElement);YP.delete(this.hostElement)},
registerRenderer:function(G){var b;((b=G.polymerController)!=null?b: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,b=this.getParentRenderer();if(b){var I,h,q;(h=(I=(q=b.polymerController)!=null?q:b).registerRenderer)==null||h.call(I,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var l,V;(V=(l=this.monitorScrollElement)!=null?l:this.hostElement)==null||V.addEventListener("scroll",_.I9(this,this.onScroll))}_.uu.addJob(function(){NOa(G.hostElement)},8);
I=new p7a(this.screenLayer||void 0);(b=YP.get(b))&&b.layerNode&&(I.parent=b.layerNode);b={};TSj(this.hostElement,(b.isRenderer=!0,b.layerNode=I,b[Ss2]=this.data,b))},
getParentRenderer:function(){for(var G=this.hostElement.parentNode,b,I;G&&((b=YP.get(G))==null||!b.isRenderer)&&!((I=G.polymerController)!=null?I:G).isRenderer_;)G=G.parentNode||G.host;return G},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.U("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Sk("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.U("debug_web_ve_data")&&this.data.trackingParams){var G="";try{G=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(I){_.K1(I)}if(G){var b=zZu(G,1);b!==void 0&&(this.hostElement.dataset.veIndex=String(b));G=zZu(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,_.U("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.VB(this.data.loggingDirectives.trackingParams)),this.visualElement=_.IM(_.qo(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var G=this.data.targetId;_.Fzz(_.PQ(),G,this.hostElement)}else y75(_.PQ(),this.hostElement)},
onScroll:function(){var G=Date.now();G-this.lastHandledScroll_<50||(this.lastHandledScroll_=G,this.markDirty())},
markDirty:function(){_.U("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():RIB(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var G=this.getParentRenderer();if(G&&(G=YP.get(G))&&G.layerNode)return hk(G.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Nz(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 b,I;(G==null?0:(b=G.commandMetadata)==null?0:(I=b.webCommandMetadata)==null?0:I.sendPost)?_.pv(this.hostElement,[G,{impression:!0}]):_.Su(this.hostElement,[G],this.hostElement)},
logExplicitClick:function(G){var b=_.gL(this.getScreenLayer());if(b){var I,h=(I=G.polymerController)!=null?I:G;G=h.visualElement;h=h.trackingParams||h.clickTrackingParams;!G&&h&&(G=_.VB(h));G&&_.WT(b,G)}}}];var txi={},Sm=function(){return _.eH.apply(this,arguments)||this};
_.M(Sm,_.eH);Sm.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Sm.prototype.onPdgItemBehaviorClick=Sm.prototype.onPdgItemBehaviorClick;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Sm.prototype,"data",void 0);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Sm.prototype,"onPdgItemBehaviorClick",null);_.R([_.Vx()],Sm);txi.YtPdgLiveChatItemBehavior=[Sm.prototype,_.p.YtRendererBehavior];var zV8;var oeQ;_.X6={};_.X6.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var $K=function(){var G=LJ.apply(this,arguments)||this;G.switchTemplateAtRegistration=!1;return G};
_.M($K,LJ);$K.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||EBO(this),_.Mj2(this,"doRender"),this.doRender())};
$K.prototype.debounceRender=function(){this.templatingFn&&_.P5(this,"doRender",this.doRender)};
$K.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.K1(Error("ah"))};
$K.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.R([bfs()],$K);var isX=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,GV={},$Wr=(GV[1]={filterString:null,isUnwrappable:null,unwrap:null},GV[2]={filterString:function(G,b,I){return Sh(I)},
isUnwrappable:function(G){return G instanceof wd},
unwrap:function(G){return Xa(G)}},GV[3]={filterString:function(G,b,I){return isX.test(I)?I:CA.toString()},
isUnwrappable:function(G){return Wg(G)},
unwrap:function(G){return _.aI(G)}},GV[4]={filterString:function(){return CA.toString()},
isUnwrappable:function(G){return G instanceof il},
unwrap:function(G){return _.yM(G).toString()}},GV[5]={filterString:function(G,b,I){return I},
isUnwrappable:function(G){return typeof G==="string"},
unwrap:function(G){return G.toString()}},GV[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(G){return G instanceof _.hj},
unwrap:function(G){return jc(G)}},GV[8]={filterString:function(G,b,I){I=String(I).toLowerCase();
return zxp(G,b,I)?I:"zClosurez"},
isUnwrappable:null,unwrap:null},GV[10]={filterString:null,isUnwrappable:null,unwrap:null},GV);cw[Xq["default"]]=bsO;var Ilu=[];(function(){var G=Dp;Dp=function(b){G==null||G(b);LG(function(){for(var I=0;I<b.length;I++)hVO(b[I])})}})();var PLz=function(){var G=_.eH.apply(this,arguments)||this;G.hasUnmounted=!1;return G};
_.M(PLz,_.eH);_.m=PLz.prototype;_.m.beforeRegister=function(){var G=this.doIdomRender;this.templatingFn?_.K1(Error("$g")):(this.templatingFn=G,this.switchTemplateAtRegistration=!0,Xuu(this))};
_.m.attached=function(){};
_.m.detached=function(){hVO(this.hostElement)};
_.m.renderIdom=function(){throw Error("ch");};
_.m.doIdomRender=function(){var G=this;gUX(this.hostElement,function(){G.renderIdom()})};
_.R([_.Vx()],PLz);var dWW=[$K.prototype,PLz.prototype];var yHz,rH5=function(){return yHz!==void 0?yHz:yHz=document.createElement("template")};
document.head.appendChild(rH5().content);var FC8;var HsJ,WCe=function(){return HsJ!==void 0?HsJ:HsJ=document.createElement("template")};
document.head.appendChild(WCe().content);var aln;var NWJ=document.head,Yrz=NWJ.appendChild,CL8;if(aln===void 0){var JHz=document.createElement("template");_.Z(JHz,"\x3c!--css-build:shady--\x3e");JHz.content.insertBefore(WCe().content.cloneNode(!0),JHz.content.firstChild);aln=JHz}CL8=aln;Yrz.call(NWJ,CL8.content);var KCe,uSQ=function(){return KCe!==void 0?KCe:KCe=document.createElement("template")};
document.head.appendChild(uSQ().content);var RVO;var neO=document.head,Os5=neO.appendChild,wib;if(RVO===void 0){var Ee5=document.createElement("template");_.Z(Ee5,"\x3c!--css-build:shady--\x3e");Ee5.content.insertBefore(uSQ().content.cloneNode(!0),Ee5.content.firstChild);RVO=Ee5}wib=RVO;Os5.call(neO,wib.content);var piX=document.head,SrO=piX.appendChild,Xi5;if(FC8===void 0){var $UW=document.createElement("template");_.Z($UW,"\x3c!--css-build:shady--\x3e");$UW.content.insertBefore(rH5().content.cloneNode(!0),$UW.content.firstChild);FC8=$UW}Xi5=FC8;SrO.call(piX,Xi5.content);var GDA,bC8=function(){return GDA!==void 0?GDA:GDA=document.createElement("template")};
document.head.appendChild(bC8().content);var IVu;_.Pv=new _.q3("DARK_THEME_TOKEN");var nep=new _.hu("accessibilityProperties");var RVp=new _.hu("layoutProperties");var Osd=new _.hu("imageType");var hFi={};if("ytAttributedStringLinkHoverColor"in hFi)throw Error("fh`ytAttributedStringLinkHoverColor");(function(G,b){hFi[G]="value"in b&&"unit"in b?Vxq(G,b):function(I){try{return b(I)}catch(h){throw Error("dh`"+G+"`"+h.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var qHe=function(G){var b=this;this.holdTime=G===void 0?500:G;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(I){var h=new CustomEvent("LONG_PRESS"),q;(q=I.changedTouches[0].target)==null||q.dispatchEvent(h)};
this.ontouchstart=function(I){b.longPressTimeout=_.q_(_.uu,function(){b.onlongpress(I);b.longPressOccurred=!0},b.holdTime)};
this.ontouchmove=function(){_.uu.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!0};
this.ontouchend=function(I){if(b.longPressTimeout&&!b.longPressOccurred&&!b.moveOccurred){var h;(h=I.changedTouches[0].target)==null||h.dispatchEvent(new Event("click"))}_.uu.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!1}};var zVr=function(G,b){qHe.call(this,b);var I=this;this.callback=G;this.onlongpress=function(h){var q;(q=I.callback)==null||q.call(I,h)}};
_.M(zVr,qHe);var oeO=function(G,b){var I=Object.assign({},b);G=_.e(new Map([["ontouchstart",G.ontouchstart],["ontouchend",G.ontouchend],["ontouchmove",G.ontouchmove]]));for(var h=G.next(),q={};!h.done;q={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},h=G.next()){var l=_.e(h.value);h=l.next().value;l=l.next().value;q.eventName$jscomp$103=h;q.eventHandler$jscomp$2=l;b[q.eventName$jscomp$103]=function(V){return function(D){var k;(k=I[V.eventName$jscomp$103])==null||k.call(I,D);(0,V.eventHandler$jscomp$2)(D)}}(q)}};_.xW=new _.q3("COMMAND_HANDLER_TOKEN");var cHu=new _.hu("parallelCommand");var LCj=new _.hu("performOnceCommand");var ver=new _.hu("serialCommand");var QPp=void 0;var j0n=function(){this.data=[];this.consumer=null};
j0n.prototype.push=function(G){this.consumer?this.consumer(G):this.data.push(G)};var Fm={};_.ZZ(Fm,void 0,"sgPmTd");_.ZZ(null,void 0,"jypsq");_.ZZ(null,void 0,"mWiOof");var uRX=new j0n;var AHp=[pgn,SvX,XgJ,GfB,$zb,EIu,bNB,IJB];var KCr=new _.hu("bracketTextDecorator");var oM=new _.hu("highlightTextDecorator");_.yB=new _.q3("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var als=function(){},lVu;
(lVu=window.requestIdleCallback)==null||lVu.bind(window);var YrX={calledOnce:!1,state:"visible"},NWO={calledOnce:!1,state:"hidden"};var mUu=new _.q3("ICON_WIZ_COMPONENT_TOKEN");_.ha=_.C(function(G){var b=G.icon;var I=G.active;var h=G.className;var q=G.style;var l=G.dataSelected;var V=G.dataDisabled;var D=G.role;var k=G.animateIcon;var L=G.themeOverride;var x=G.ariaHidden;var f=G.ariaExpanded;var T=G.ariaLabel;var B=G.tabindex;var A=G.id;var t=G.size;var y=G.iconFilter;var F=G.gradientColor;var W=G.onKeydown;var O=G.title;return _.v(_.Q,{cond:b,then:function(){var K=_.LL().resolve(mUu);return _.v(K,{icon:b,dataSelected:l,dataDisabled:V,animateIcon:k,themeOverride:L,ariaExpanded:f,
tabindex:B,id:A,active:I,size:t,role:D,className:h,ariaHidden:x,ariaLabel:T,style:function(){return q!=null&&q()||t==null||!t()?q==null?void 0:q():"width: "+(t==null?void 0:t())+"px;height: "+((t==null?void 0:t())+"px;")},
title:O,iconFilter:y,gradientColor:F,onKeydown:W})}})},"l");
_.ha.idomCompat={callbacks:{onKeydown:!0}};var Viq=window.devicePixelRatio||1;var vAu=new Map([["yt_outline_bag_black_24","bag"]]);var bD=function(G){var b=this;this.margin=.1;this.whenInViewportWithMargin=G;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){b.requestScan()});
window.addEventListener("touchend",function(){b.requestScan()});
window.addEventListener("updateui",function(){b.requestScan()});
var I=new _.GB((0,_.Hr)(this.requestScan,this),100);window.addEventListener("scroll",function(){I.fire()},!0);
window.addEventListener("resize",(0,_.Hr)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){b.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Hr)(this.requestScan,this))};
bD.prototype.observe=function(G){this.observationTargets.includes(G)||this.observationTargets.push(G)};
bD.prototype.unobserve=function(G){this.observationTargets=this.observationTargets.filter(function(b){return b!==G})};
bD.prototype.requestScan=function(){var G=this;this.scanRequested||(LG(function(){eFB(G)}),this.scanRequested=!0)};
var eFB=function(G){var b=(1+G.margin)*(document.documentElement.clientHeight||window.innerHeight);G.observationTargets=G.observationTargets.filter(function(I){var h=I.getBoundingClientRect();(h=b>h.top&&!!h.height)&&G.whenInViewportWithMargin(I);return!h&&I.parentNode});
G.scanRequested=!1};
bD.prototype.disconnect=function(){this.observationTargets=[]};var ViA,ctX;ViA=_.e(_.ZZ(T7q(),void 0,"O3X2wd"));_.DU5=ViA.next().value;ctX=ViA.next().value;window.addEventListener("resize",function(){ctX(T7q())});var kD8={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},vAi=void 0,LoO=window.innerWidth,Q0O=window.innerHeight;window.addEventListener("resize",function(){vAi=void 0});var xUi;if("IntersectionObserver"in window)xUi=s0X();else{if(vAi===void 0){var fVW;fVW="matchMedia"in window?window.matchMedia(kD8.landscape+","+kD8.portrait).matches:void 0;vAi=fVW!==void 0?fVW:LoO>=930&&Q0O>=550||LoO>=550&&Q0O>=930}xUi=vAi?{observe:function(G){LG(function(){var b;(b=G.onViewportEntered)==null||b.call(G)})},
unobserve:function(){}}:new bD(function(G){LG(function(){var b;
(b=G.onViewportEntered)==null||b.call(G)})})}var B7q=xUi;var T7A=_.C(function(G){var b=!1,I=_.ee("img",function(h){_.uI(function(){b=!0;h.onload=null})});
_.K0(function(){var h,q=(h=G.data)==null?void 0:h.call(G),l,V=(l=G.getSrc)==null?void 0:l.call(G).cb,D;h=(D=G.config)==null?void 0:D.call(G);if(D=I.value)if(l=function(L,x){if(!b)return V?V(L,x):L},Mir(D,h),_.U("web_image_dont_reload_same_src")&&AtB(D,q,l))_.U("web_image_dont_reload_same_src_simulate_load")&&D.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var k;gAr(D,q||null,l,h,(k=G.lazy)==null?void 0:k.call(G))}},"zS0jKb");
return _.v("img",{el:I})},"n");
T7A.idomCompat=!0;_.Fu=_.C(function(G){var b=function(){var I,h=G.data(),q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u,w,$a,ev,LO,td,xa,Uj,W2,is,su,an;var A5={contentMode:(q=G.contentMode)==null?void 0:q.call(G),loadedClass:(l=G.loadedClass)==null?void 0:l.call(G),isPreloaded:(V=G.isPreloaded)==null?void 0:V.call(G),notifyOnLoaded:(D=G.notifyOnLoaded)==null?void 0:D.call(G),notifyOnUnloaded:(k=G.notifyOnUnloaded)==null?void 0:k.call(G),preferredThumbnail:(L=G.preferredThumbnail)==null?void 0:L.call(G),preserveHeight:(x=G.preserveHeight)==
null?void 0:x.call(G),preserveWidth:(f=G.preserveWidth)==null?void 0:f.call(G),objectPosition:(T=G.objectPosition)==null?void 0:T.call(G),targetWidth:(B=G.targetWidth)==null?void 0:B.call(G),targetHeight:(A=G.targetHeight)==null?void 0:A.call(G),shouldShowPlaceholder:(t=G.shouldShowPlaceholder)==null?void 0:t.call(G),useWidth:(y=G.useWidth)==null?void 0:y.call(G),isToggled:(F=G.isToggled)==null?void 0:F.call(G),alt:(W=G.alt)==null?void 0:W.call(G),className:(O=G.className)==null?void 0:O.call(G),
onerror:G.onerror,onload:G.onload,style$:((K=G.style$)==null?void 0:K.call(G))||((u=G.style)==null?void 0:u.call(G)),color:(w=G.color)==null?void 0:w.call(G),width:($a=G.width)==null?void 0:$a.call(G),height:(ev=G.height)==null?void 0:ev.call(G),"aria-hidden$":(su=(LO=G["aria-hidden$"])==null?void 0:LO.call(G))!=null?su:(td=G.ariaHidden)==null?void 0:td.call(G),draggable:(xa=G.draggable)==null?void 0:xa.call(G),"data-disabled$":(an=(Uj=G["data-disabled$"])==null?void 0:Uj.call(G))!=null?an:(W2=G.dataDisabled)==
null?void 0:W2.call(G),size:(is=G.size)==null?void 0:is.call(G)};return zFd(h,A5,(I=G.hideOn404)==null?void 0:I.call(G))};
return _.v(_.Nc,null,_.v(_.H3,{when:function(){var I;return((I=b())==null?void 0:I.type)==="image"}},function(){return _.v(T7A,{data:function(){return b().image},
getSrc:{cb:function(I,h){var q=b().image.sources,l=b().config.isPreloaded,V=b().config.useWidth,D=b().config.targetWidth,k=b().config.targetHeight,L=b().config.preferredThumbnail;return _.DUd(h,q,l,V,D,k,L)||""}},
config:function(){var I=b().config,h;for(h in I)I[h]===void 0&&delete I[h];return I},
lazy:G.renderLazy})}),_.v(_.H3,{when:function(){var I;
return((I=b())==null?void 0:I.type)==="icon"}},function(){return _.v(_.ha,{icon:function(){return b().iconName},
role:function(){return b().config.role},
className:function(){return b().config.className},
style:function(){return b().config.style$+";width: "+(b().config.width+"px;height: ")+(b().config.height+"px;color: ")+(b().config.color+";")},
ariaLabel:function(){return b().config["aria-label$"]},
ariaHidden:function(){return b().config["aria-hidden$"]},
dataDisabled:function(){return b().config["data-disabled$"]},
active:function(){return b().config.isToggled},
size:function(){return b().config.size}})}))},"o");
_.Fu.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var B7A=function(G){return function(b){return _.v(Y2p,null,function(){var I=b.data(),h=_.n0(b.config);return _.v(xtB,null,function(){return void G(I,h)})})}}(ytO),PcX=_.C(function(G){var b=function(q){var l,V=_.Wv(function(B){l=RJ(function(){for(var A=_.e(f()),t=A.next();!t.done;t=A.next()){t=rtv(t.value);
t=typeof t==="string"?document.createTextNode(t):t;if(!(t instanceof Node)){A=new _.Wf("Part is not a node",t,typeof t);_.K1(A);break}B.appendChild(t)}})});
var D=_.U("web_wiz_attributed_string_skip_empty")?q:aM(function(){return Eed(q())},{isEqual:iCX});
var k=_.a9(G.config),L=function(){var B,A=D();return!((B=k())==null||!B.ariaLabel)||!(A.commandRuns&&A.commandRuns.length!==0||A.paragraphStyleRuns&&A.paragraphStyleRuns.length!==0)},x=aM(k,{isEqual:HCa}),f=function(){var B=wia(D(),x());
Srp(B,x());return D().content?hFu(D().content,B).parts:[]},T=!0;
_.K0(function(){D();x();if(T)T=!1;else{var B=f();Promise.resolve().then(function(){var A=V.value;if(A){A.innerText="";var t;(t=l)==null||t();l=_.C3(A,function(){return _.v(Fos,{parts:B})},"p")}})}},"crjTgd");
return _.v("span",{el:V,class:function(){return D()&&rHd(D(),k())},
dir:function(){var B;return((B=k())==null?0:B.userInput)?"auto":void 0},
"aria-label":function(){var B;return L()?(B=k())==null?void 0:B.ariaLabel:void 0},
role:function(){return L()?"text":void 0}})},I=_.U("web_wiz_attributed_string_skip_empty")?aM(function(){var q,l=(q=G.text)==null?void 0:q.call(G);
if(l)return q=Eed(l),(q==null?0:q.content)?q:void 0},{isEqual:iCX}):G.text,h;
return((h=G.config)==null?0:h.renderedFromFormattedString)?b(I):_.v(_.Q,{cond:I,then:b})},"r");
PcX.idomCompat=!0;_.IS=_.C(function(G){var b=_.a9(G.text),I=WoO(G);G.renderedFromFormattedString!==void 0&&(I.renderedFromFormattedString=!0);return _.U("attr_string_reactive")?_.v(PcX,{text:b,config:I}):_.v(_.Q,{cond:function(){var h;return b()&&((h=Eed(b()))==null?void 0:h.content)},
then:function(){return _.v(B7A,{data:G.text,config:I})},
debugInstance:"Apcuac"})},"s");
_.IS.idomCompat=!0;var aVB=function(G,b,I){b=b===void 0?"unknown":b;I=I===void 0?{}:I;_.Wf.call(this,G+" ("+b+")",Object.assign({},{name:"YtWcwError",tagName:b},I));Object.setPrototypeOf(this,this.constructor.prototype)};
_.M(aVB,_.Wf);_.CG=new WeakMap;_.YQ=!1;var Kov,u3s,Jtu;_.hV=Symbol("hh");_.No=Symbol("ih");Kov=Symbol("jh");u3s=new Set(Object.getOwnPropertyNames(Element.prototype));Jtu=Symbol("kh");var UUA=_.C(function(G){return _.v("yt-attributed-string",{"aria-label":G.ariaLabel,hidden:G.hidden,id:G.id,class:G.className,"force-default-style":G.forceDefaultStyle},_.v(_.IS,{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}))},"t");
_.U("web_wiz_attributed_string")&&_.JN(UUA,"yt-attributed-string",{props:{ariaHidden:_.hV,ariaLabel:_.hV,className:_.hV,ellipsisTruncate:_.hV,isOverlay:_.hV,linkInheritColor:_.hV,noEndpoints:_.hV,noStyleRuns:_.hV,noLinkColor:_.hV,noPreWrap:_.hV,noWrap:_.hV,skipOnClick:_.hV,userInput:_.hV,headerRuns:_.hV,isHeadline:_.hV,id:_.hV,data:_.hV,hidden:_.hV,forceDefaultStyle:_.hV,text:_.No,disableUpgrade:_.No,disable:_.No,slot:_.No}});var qD=function(){return _.a.apply(this,arguments)||this};
_.M(qD,_.a);qD.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},ytO(this.data,this.config))};
_.R([_.z(dWW),_.n("design:type",Object)],qD.prototype,"ytIdomTemplatingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],qD.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],qD.prototype,"ariaLabel",void 0);_.R([_.H(),_.n("design:type",Boolean)],qD.prototype,"disable",void 0);_.R([_.H(),_.n("design:type",Boolean)],qD.prototype,"ellipsisTruncate",void 0);_.R([_.H(),_.n("design:type",Boolean)],qD.prototype,"isOverlay",void 0);
_.R([_.H(),_.n("design:type",Boolean)],qD.prototype,"linkInheritColor",void 0);_.R([_.H(),_.n("design:type",Boolean)],qD.prototype,"noPreWrap",void 0);_.R([_.H(),_.n("design:type",Boolean)],qD.prototype,"noWrap",void 0);_.R([_.H(),_.n("design:type",Boolean)],qD.prototype,"userInput",void 0);_.R([_.H(),_.n("design:type",Boolean)],qD.prototype,"noEndpoints",void 0);_.R([_.H(),_.n("design:type",Array)],qD.prototype,"headerRuns",void 0);
_.R([_.g8({is:"yt-attributed-string",disableElementRegistration:!0})],qD);
_.U("web_wiz_attributed_string")||_.J(qD,"yt-attributed-string",function(){if(IVu===void 0){var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
G.content.insertBefore(bC8().content.cloneNode(!0),G.content.firstChild);IVu=G}G=IVu;return G},{mode:2});var s0z,gA8,SHr;s0z=function(){this.firstThumbnailLoaded=!1};
_.AtW=function(){gA8||(gA8=new s0z);return gA8};
SHr=function(G){var b=_.AtW();b.firstThumbnailLoaded||(b.firstThumbnailLoaded=!0,_.sS("ftl",G))};
s0z.prototype.reset=function(){this.firstThumbnailLoaded=!1};var nAs=0,pUu=new WeakMap,wUB=0,RM=new Set;var Mi8,ZCu=function(){return Mi8!==void 0?Mi8:Mi8=document.createElement("template")};
document.head.appendChild(ZCu().content);var tiO;var bVr,hY2,jd;_.w5=_.hd.caches;jd=function(){};
jd.prototype.open=function(G){return _.w5.open(zF5(G))};
jd.prototype.has=function(G){return _.w5.has(zF5(G))};
jd.prototype.delete=function(G){return _.w5.delete(zF5(G))};
jd.prototype.match=function(G,b){var I=this,h,q,l,V,D,k;return _.c(function(L){switch(L.nextAddress){case 1:return L.yield(I.keys(),2);case 2:h=L.yieldResult,q=_.e(h),l=q.next();case 3:if(l.done){L.jumpTo(5);break}V=l.value;return L.yield(I.open(V),6);case 6:return D=L.yieldResult,L.yield(D.match(G,b),7);case 7:if(k=L.yieldResult)return L.return(k);l=q.next();L.jumpTo(3);break;case 5:return L.return()}})};
var qlO=function(){};
_.M(qlO,jd);var zF5=function(G){if(G.includes(":"))throw Error("nh`"+G);return G+":"+_.FU("CacheStorage get")};
qlO.prototype.keys=function(){var G,b,I,h,q,l,V,D,k;return _.c(function(L){if(L.nextAddress==1)return G=[],b=_.FU("CacheStorage keys"),L.yield(_.w5.keys(),2);I=L.yieldResult;h=_.e(I);for(q=h.next();!q.done;q=h.next())l=q.value,V=_.GHO(l),D=V.originalName,k=V.datasyncId,k===b&&G.push(D);return L.return(G)})};var lD=function(){var G=_.a.apply(this,arguments)||this;G.objectURL=null;G.loadTime=Infinity;return G};
_.M(lD,_.a);_.m=lD.prototype;_.m.renderIdom=function(){$nq(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&ZCj(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.m.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"}};
_.m.logThumbnailFailureVe=function(){var G=_.Xs(197497);_.iz(_.qo(),G);var b=_.gL();b&&G&&b&&_.FT(b,[G])};
_.m.loadImageFromCacheIfExists=function(G){var b=this,I=G.target;(I==null?0:I.src)&&lou(I.src).then(function(h){b.objectURL=_.ul(h).toString();b.setSrc(I,b.objectURL)}).catch(function(){})};
_.m.onError=function(G){var b=this;if(_.U("web_use_cache_for_image_fallback")){var I=G.target;I&&lou(I.src).then(function(h){b.objectURL=_.ul(h).toString();b.setSrc(I,b.objectURL)}).catch(function(){_.U("kevlar_woffle_log_thumbnail_failure_ve")&&b.logThumbnailFailureVe();
_.U("kevlar_woffle_fallback_image")&&b.setSrc(I,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.m.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.m.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(b){G.loadImageFromCacheIfExists(b);G.revokeObjectURL();XUp(G.hostElement)},
onerror:function(b){G.onError(b)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.U("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.m.setSrc=function(G,b){b&&(G.src=b)};
_.R([_.z(dWW),_.n("design:type",Object)],lD.prototype,"ytIdomTemplatingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lD.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],lD.prototype,"alt",void 0);_.R([_.H(),_.n("design:type",Boolean)],lD.prototype,"ftlEligible",void 0);_.R([_.H(),_.n("design:type",Number)],lD.prototype,"height",void 0);_.R([_.H(),_.n("design:type",Boolean)],lD.prototype,"notifyOnLoaded",void 0);
_.R([_.H(),_.n("design:type",Boolean)],lD.prototype,"notifyOnUnloaded",void 0);_.R([_.H(),_.n("design:type",String)],lD.prototype,"objectFit",void 0);_.R([_.H(),_.n("design:type",String)],lD.prototype,"objectPosition",void 0);_.R([_.H(),_.n("design:type",String)],lD.prototype,"preferredThumbnail",void 0);_.R([_.H(),_.n("design:type",Boolean)],lD.prototype,"preserveHeight",void 0);_.R([_.H(),_.n("design:type",Boolean)],lD.prototype,"preserveWidth",void 0);
_.R([_.H({value:!0}),_.n("design:type",Boolean)],lD.prototype,"useWidth",void 0);_.R([_.H({value:function(){return!_.Sk("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.n("design:type",Boolean)],lD.prototype,"shouldRenderLazy",void 0);_.R([_.H(),_.n("design:type",Number)],lD.prototype,"width",void 0);_.R([_.g8({is:"yt-image",disableElementRegistration:!0})],lD);
_.J(lD,"yt-image",function(){if(tiO===void 0){var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);G.content.insertBefore(ZCu().content.cloneNode(!0),G.content.firstChild);
tiO=G}G=tiO;return G},{mode:2});var mk=function(){return _.a.apply(this,arguments)||this};
_.M(mk,_.a);mk.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var G=_.s0(this.data.onVisibleCommand);G&&this.ytComponentBehavior.resolveCommand(G)}};
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],mk.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.X6.YtVisibilityBehavior),_.n("design:type",Object)],mk.prototype,"ytVisibilityBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],mk.prototype,"data",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],mk);
_.J(mk,"yt-bumper-user-edu-content-view-model",function(){if(oeQ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;zV8===void 0&&(zV8=document.createElement("template"));var h=zV8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);oeQ=G}G=oeQ;return G},{mode:0});var oAQ;var iCz,Pcz=function(){if(iCz!==void 0)return iCz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-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(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;oAQ===void 0&&(oAQ=document.createElement("template"));var h=oAQ;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return iCz=G};var dUz;_.ed={};dUz=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"]);_.ed.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var G=this.getContext_();return G?G.getTaskManager():_.uu},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var G=_.O3(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 dUz.has(this.hostElement.localName)},
getNetworkManager:function(){var G=this.getContext_();if(G)return G.getNetworkManager()}};var kHX,ytJ,Fon,rtB;_.Vy=function(G){var b=ytJ.get(G);if(b&&(b=b.pop()))return rtB++,b;Fon++;try{var I=document.createElement(G)}catch(h){throw new _.Wf("ElementPool failed to create element",G,h.message);}return I};
kHX=function(G){var b=G.is;if(b){var I=ytJ.get(b);I||(I=[],ytJ.set(b,I));var h=_.wy("ELEMENT_POOL_CONFIG")||{};I.length>=(h[b]!==void 0?h[b]:_.wy("ELEMENT_POOL_DEFAULT_CAP",0))||I.push(G)}else _.RB(new _.Wf("Element pool should only handle custom elements:",G.nodeName))};
ytJ=new Map;Fon=0;rtB=0;var E0=new WeakMap,cvO=new WeakMap;var WoJ;_.DN=function(G,b,I){I=I===void 0?_.fW():I;this.JSC$13961_defaultPriority=G;this.signal=b;this.scheduler=I;this.nextJobDescriptor=0;this.JSC$13961_parkedJobs=[];this.scheduledJobs=new Map};
_.c6=function(G,b){if(b){var I=_.mq();G.signal&&!_.em(I,G.signal)?(I.addListener(G.signal,function(){G.processSignal()}),G.JSC$13961_parkedJobs.push({job:b,
priority:void 0})):HCb(G,b)}};
WoJ=function(G,b){if(b!==G.JSC$13961_defaultPriority){G.JSC$13961_defaultPriority=b;for(var I=_.e(G.scheduledJobs.values()),h=I.next();!h.done;h=I.next())h=h.value,G.scheduler.cancelJob(h.jobId),h.jobId=G.scheduler.addJob(h.jobWrapper,b)}};
_.DN.prototype.flushJobs=function(){WoJ(this,10);this.processSignal()};
_.DN.prototype.cancel=function(){for(var G=_.e(this.scheduledJobs),b=G.next();!b.done;b=G.next()){var I=_.e(b.value);b=I.next().value;I=I.next().value;this.scheduler.cancelJob(I.jobId);this.scheduledJobs.delete(b)}this.JSC$13961_parkedJobs=[]};
_.DN.prototype.processSignal=function(){for(var G=_.e(this.JSC$13961_parkedJobs),b=G.next();!b.done;b=G.next())b=b.value,HCb(this,b.job,b.priority);this.JSC$13961_parkedJobs=[]};
var HCb=function(G,b,I){I=I||G.JSC$13961_defaultPriority;if(I===10)nG(b);else{var h=G.nextJobDescriptor++,q=function(){b();G.scheduledJobs.delete(h)},l=G.scheduler.addJob(q,I);
G.scheduledJobs.set(h,{jobWrapper:q,jobId:l,priority:I})}};var aVW;_.kK={};aVW={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.kK.YtRendererstamperBehavior=[_.ed.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 b=this.stampDom[G];b&&b.id&&this.addReactiveSchema({type:"observe",method:{methodName:eYr(b.id),args:[{type:"wildcard",path:G}]}})}else{(G=(this.constructor.generatedFrom||this).observers)||(G=[]);for(b in this.stampDom){var I=this.stampDom[b];I&&I.id&&G.push(eYr(I.id)+"("+b+".*)")}this.constructor.generatedFrom.observers=G}},
addStampDomObserverFns_:function(){for(var G in this.stampDom){var b=this.stampDom[G];b.id?(this[eYr(b.id)]=this.rendererStamperObserver_.bind(this,G,b.id),this.hasDataPath_[G]=!1):(b=new _.Wf("Bad rendererstamper config",this.is+":"+G),_.K1(b))}},
rendererStamperObserver_:function(G,b,I){if(I.path==G){if(I.value===void 0&&!this.hasDataPath_[G])return;this.hasDataPath_[G]=I.value!==void 0}this.rendererStamperApplyChangeRecord_(G,b,I)},
rendererStamperApplyChangeRecord_:function(G,b,I){var h=this.renderJobsMap_[b],q=null;G==I.path?(I=I.value,_.KO(I)||(I=I===void 0||I===null?[]:[I]),G=this.stampDom[G],G.mapping&&(q=this.stampDomArray_.bind(this,I,b,G.mapping,G.reuseComponents,G.events,G.stamperStableList)),h&&h.cancel(),I=G.usePageScheduler?this.getTaskManager():void 0,h||G.initialRenderPriority==void 0)?G.renderPriority==void 0||h||(h=new _.DN(G.renderPriority,G.waitForSignal,I),this.renderJobsMap_[b]=h):(h=new _.DN(G.initialRenderPriority,
G.waitForSignal,I),this.renderJobsMap_[b]=h,q=function(l,V){l();WoJ(V,10)}.bind(this,q,h)):q=G+".splices"==I.path?this.stampDomArraySplices_.bind(this,G,b,I.value):this.forwardRendererStamperChanges_.bind(this,G,b,I);
h?_.c6(h,q):q()},
forwardRendererStamperChanges_:function(G,b,I){var h=I.path.slice(G.length+1),q=this.getStampContainer_(b),l=h.indexOf("."),V=h.substring(0,l),D=!1,k=0,L=parseInt(V,0);if(V[0]=="#"){D=parseInt(V.substring(1),0);L=this.get(G);var x=this.get([G,V]);L[D]==x?k=D:k=L.indexOf(x);D=!0}else isNaN(L)||(k=L,D=!0);D&&(h=h.substring(V.length+1),l=h.indexOf("."));V=this.polymerDom(q).children[k];var f;if(q=(f=V==null?void 0:V.polymerController)!=null?f:V)h="data"+h.slice(l),typeof q.notifyPath!=="function"?_.RB(new _.Wf("notifyPath missing",
this.is+": "+G+", "+b)):I.value?q.notifyPath(h,I.value):q.notifyPath(h)},
stampDomArraySplices_:function(G,b,I){if(I&&I.indexSplices){var h=this.getStampContainer_(b);if(h){for(var q=this.polymerDom(h),l=DnB(this.stampDom[G].reuseComponents),V=I.indexSplices.length,D=0;D<V;D++){for(var k=I.indexSplices[D],L=q.children[k.index],x=k.removed.length;x>0;x--)L&&L.parentElement&&(this.polymerDom(L.parentElement).removeChild(L),l&&kHX(L),L=q.children[k.index]);x=this.stampDom[G].mapping;for(var f=k.index+k.addedCount,T=document.createDocumentFragment(),B=l,A=k.index;A<f;A++){var t=
k.object[A],y=mnO(x,t);if(y){var F=x[y];t=t[y];y=this.getComponentName_(F,t);var W=L?E0.has(L):!1;B&&L&&L.is==y&&W?(y=L,this.telemetry_.reuse++,L=L.nextElementSibling):B&&L&&W?(y=this.createComponent_(F,t,l),W=this.polymerDom(L).nextElementSibling,q.insertBefore(y,W),LWa(this.is,q,L,l),L=W):(B=!1,y=this.createComponent_(F,t,l),T.appendChild(y));this.deferRenderStamperBinding_(y,F,t)}else F=new _.Wf("Unimplemented type",G,b,h.tagName,Object.keys(t)[0]),_.K1(F)}q.insertBefore(T,L)}this.flushRenderStamperComponentBindings_();
this.stampDom[G].events&&_.O3(this.hostElement,"yt-rendererstamper-finished",{container:h})}else G=new _.Wf("Container object not found",b,this.hostElement?this.hostElement.is:""),_.K1(G)}},
stampDomArray_:function(G,b,I,h,q,l){var V=this.getStampContainer_(b);if(V)if(b=this.polymerDom(V),h=DnB(h),G){var D=0,k=0,L;if(l=l===void 0?_.Sk("STAMPER_STABLE_LIST",!1):l||!1)for(L=b.firstElementChild;L&&!E0.has(L)&&G.length>k;){l=G[k];var x=mnO(I,l);if(x){if(this.getComponentName_(I[x],l[x])!=L.is){var f=this.createComponent_(I[x],l[x],h),T=_.kc(L).nextElementSibling;T?b.insertBefore(f,T):b.appendChild(f);LWa(this.is,b,L,h);L=f}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(L,I[x],
l[x]);D++;k++;L=this.polymerDom(L).nextElementSibling}else k++}QqB(this.is,b,D,h);D=L;if(G.length>k){l=document.createDocumentFragment();for(x=G.length;k<x;k++)if(f=G[k],T=mnO(I,f))L=this.createComponent_(I[T],f[T],h),this.deferRenderStamperBinding_(L,I[T],f[T]),l.appendChild(L);if(D&&this.polymerDom(D).parentNode&&L&&!E0.has(L))b.insertBefore(l,D);else try{b.appendChild(l)}catch(B){_.RB(new _.Wf("Error in RendererStamperBehavior: appendChild failed.",{componentName:this.hostElement.is}))}}this.flushRenderStamperComponentBindings_();
this.markDirty&&this.markDirty();q&&_.O3(this.hostElement,"yt-rendererstamper-finished",{container:V})}else QqB(this.is,b,0,h);else G=new _.Wf("Container object not found",b,this.hostElement?this.hostElement.is:""),_.K1(G)},
polymerDom:function(G){return this.minimizePipBreakages?G:_.kc(G)},
getStampContainer_:function(G){return this.$&&this.$[G]||_.Eo(this.hostElement).querySelector("#"+G)},
getComponentName_:function(G,b){return typeof G==="string"?G:G.matcher?G.matcher.call(this,b):G.component},
createComponent_:function(G,b,I){G=this.getComponentName_(G,b);try{var h=XDr.has(G);if(I&&!h){var q=_.Vy(G);try{_.G8(q)}catch(l){I="Failed to clear styles for "+G+".",l.message&&(I+=" Original error: "+l.message),_.RB(new _.Wf(I))}}else q=document.createElement(G)}catch(l){return q="YtRendererStamperBehavior failed to create "+G+".",l.message&&(q+=" Original description: "+l.message),l.message="YtRendererStamperBehavior failed to create element",_.n1(l,q),aVW.hasOwnProperty(G)?_.RB(l):_.K1(l),document.createElement("SPAN")}this.telemetry_.create++;
return q},
deferRenderStamperBinding_:function(G,b,I){this.deferredBindingTasks_.push({component:G,typeOrConfig:b,data:I})},
flushRenderStamperComponentBindings_:function(){for(var G=0,b=this.deferredBindingTasks_.length;G<b;G++){var I=this.deferredBindingTasks_[G];if(!I)break;var h=void 0,q=void 0,l=void 0,V=void 0,D=I.component,k=I.typeOrConfig;I=I.data;var L=(V=D.polymerController)!=null?V:D;V=D.loggingStatus;try{V&&(V.isRendererStamper=!0);if(typeof k!=="string"){for(l in k.attributes)k.attributes[l]===!0?D.setAttribute(l,""):k.attributes[l]===!1?D.removeAttribute(l):D.setAttribute(l,k.attributes[l]);for(q in k.params)L[q]=
k.params[q],D!==L&&v5(D.localName,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(h in k.properties){var x=k.properties[h];if(x){var f=VsO(x);L[h]=this.get(f);D!==L&&v5(D.localName,h,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(h==="on-tap"||h==="on-click"){var T=this.get(f);D.addEventListener("click",T);cvO.set(D,{property:h,listener:{type:"element",eventName:"click",handler:T}})}}else{var B=new _.Wf("Undefined property binding",h);_.K1(B)}}}if(k.classListBinding){var A=VsO(k.classListBinding),
t=A?this[A]:null;if(t)for(h=0;h<t.length;h++)_.SL(D,t[h],!0)}L.data=I}finally{V&&(V.isRendererStamper=!1)}if(h=E0.get(D))D.hidden=!1,E0.delete(D),_.uu.cancelJob(h)}this.deferredBindingTasks_.length=0}}];_.JN(_.C(function(G){function b(){I().seconds&&l(qq2({seconds:Number(I().seconds)-Date.now()/1E3}))}
var I=G.targetTimestamp;G=G.className;var h=_.e(_.ZZ("",void 0,"U1Q8Ae")),q=h.next().value,l=h.next().value;_.JC(function(){b();var V=setInterval(function(){b()},1E3);
_.uI(function(){clearInterval(V)})});
return _.v("yt-countdown",{class:_.pG("ytCountDownHost",G)},_.v("div",null,q))},"v"),"yt-countdown",{props:{targetTimestamp:_.hV,
className:_.No}});_.v6=new _.q3("KEY_MANAGER_TOKEN");var Avu={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"};_.LP=_.C(function(G){var b=_.ee("a",G.ref),I=G.aTagConfig?G.aTagConfig:_.P$(function(){var h,q,l,V,D;var k=(D=_.s0((l=G.command)==null?void 0:l.call(G)))!=null?D:(V=G.command)==null?void 0:V.call(G);return _.AN({innertubeCommand:k,skipOnClick:(h=G.skipOnClick)==null?void 0:h.call(G),defaultTarget:(q=G.target)==null?void 0:q.call(G)})||{}},void 0,"TAvz0");
_.K0(function(){_.U("mweb_get_endpoint_from_atag_command")||(b.value._data=I()._data,b.value.params=I().params)},"dcjvAe");
return _.v("a",{el:b,href:function(){return I().href$},
rel:function(){return I().rel$},
class:function(){var h,q;return(q=I().className)!=null?q:(h=G.className)==null?void 0:h.call(G)},
style:function(){var h;if((h=G.style)==null?0:h.call(G))return G.style();var q;return((q=G.disabled)==null?0:q.call(G))?"pointer-events:none":""},
"aria-haspopup":function(){return!!I()["aria-haspopup$"]},
"force-new-state":$o(function(){return I()["force-new-state$"]}),
title:$o(function(){var h,q;return(q=I().title$)!=null?q:(h=G.title)==null?void 0:h.call(G)}),
role:$o(function(){var h;return((h=G.role)==null?void 0:h.call(G))||I().role$}),
target:$o(function(){return I().target$}),
dir:$o(function(){var h;return((h=G.dir)==null?void 0:h.call(G))||I().dir}),
tabindex:function(){var h;return I().tabindex$?Number(I().tabindex$):(h=G.tabIndex)==null?void 0:h.call(G)},
"aria-hidden":function(){var h,q;return(q=I()["aria-hidden$"])!=null?q:(h=G.ariaHidden)==null?void 0:h.call(G)},
"aria-label":function(){var h,q;return(q=I()["aria-label$"])!=null?q:(h=G.ariaLabel)==null?void 0:h.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":_.Xu(function(h){var q,l;return void((l=(q=I()).onpointerdown)==null?void 0:l.call(q,h))}),
"on:click":_.Xu(function(h){var q,l;(l=(q=I()).onclick)==null||l.call(q,h);var V;(V=G.onClick)==null||V.call(G,h)}),
"on:focusin":_.Xu(function(h){var q;(q=G.onFocusin)==null||q.call(G,h)}),
"on:focusout":_.Xu(function(h){var q;(q=G.onFocusout)==null||q.call(G,h)})},G.children)},"x");var dnp={duration:1E3,easing:"ease",fill:"forwards"};P5s.componentType=rv;var FW2={duration:1E3,easing:"ease",fill:"forwards"},CcJ=_.C(function(G){var b=_.ee("animated-rolling-character"),I=void 0,h=function(){var D,k;return Ni((D=G.character)==null?void 0:D.call(G))||Ni((k=G.previousCharacter)==null?void 0:k.call(G))},q=_.e(_.ZZ(0,void 0,"CYT8Ob")),l=q.next().value,V=q.next().value;
_.JC(function(){if(window.ResizeObserver&&_.U("web_fix_rolling_numbers_zoom_safari")){var D=new _.GB(function(){var L,x,f=Math.round(((x=(L=b.value.querySelector("div"))==null?void 0:L.getBoundingClientRect().height)!=null?x:0)*100)/100;f&&V(f)},500),k=new ResizeObserver(function(){D.fire()});
k.observe(b.value);_.uI(function(){k.disconnect();D.dispose()})}});
_.K0(function(){var D=_.U("web_fix_rolling_numbers_zoom_safari")?l:G.marginMultiplier;if(D()){var k;(k=I)==null||k.cancel();if(h()){var L;k=((L=G.previousCharacter)==null?0:L.call(G))?Number(G.previousCharacter())+10:G.rollUp()?0:30;var x;if((x=G.shouldAnimate)==null||!x.call(G)){var f,T;k-=rvO((f=G.character)==null?void 0:f.call(G),(T=G.previousCharacter)==null?void 0:T.call(G),G.rollUp(),k)}}else{k=G.rollUp()?0:2;var B;(B=G.shouldAnimate)!=null&&B.call(G)||(L=k,x=G.rollUp()?-1:1,k=L-x)}b.value.style.marginTop=
"-"+k*D()+"px";var A;if((A=G.shouldAnimate)==null?0:A.call(G)){var t,y;I=HVs(b.value,(t=G.character)==null?void 0:t.call(G),(y=G.previousCharacter)==null?void 0:y.call(G),G.rollUp(),k,h(),D())}else{var F;b.value.style.display=((F=G.character)==null?0:F.call(G))?"":"none"}}},"CA6Pmf");
return _.v("animated-rolling-character",{el:b,class:"animatedRollingCharacterHost"},_.v(_.Q,{cond:h,then:function(){return _.v(N7O,null)},
else:function(){return _.v(YH8,{character:G.character})}}))},"A");
CcJ.idomCompat=!0;var WWX=_.U("web_enable_sink_animated_rolling_character_and_number")?CcJ:P5s,Jti=_.U("web_enable_sink_animated_rolling_character_and_number")?CcJ:yvp(P5s),N7O=_.C(function(){for(var G=[],b=1;b<30;b++)G.push(_.v("div",null,b%10));return _.v(_.xz,null,_.v("div",null,"\u00a0"),G,_.v("div",null,"\u00a0"))},"B"),YH8=_.C(function(G){var b=G.character;
return _.v(_.xz,null,_.v("div",null,"\u00a0"),_.v(_.Q,{cond:function(){return!(b==null?0:b())||_.Dr(b==null?void 0:b())},
then:function(){return _.v("div",null,"\u00a0")},
else:function(){return _.v("div",null,b)}}),_.v("div",null,"\u00a0"))},"C");aov.componentType=rv;var KoB=_.C(function(G){var b=void 0,I=void 0,h=function(){var l;return((l=G.fontSizeMultiplier)==null?0:l.call(G))?G.heightPx()*G.fontSizeMultiplier():G.heightPx()},q=_.P$(function(){if(!G.numberText())return[];
var l,V,D=((l=G.forceRollUp)==null?void 0:l.call(G))||!I||!((V=G.numberValue)==null?0:V.call(G))||I<G.numberValue(),k,L=G.numberText();l=h();V=!((k=G.shouldAnimate)==null||!k.call(G));k=[];var x=0,f=0,T=(b?b.replace(/\D/g,"").length:0)-(L?L.replace(/\D/g,"").length:0),B=b?b.split(/(\d)/).filter(Boolean):[];for(L=L.split(/(\d)/).filter(Boolean);T<0;){var A=L[f];k.push({character:A,rollUp:D,marginMultiplier:l,shouldAnimate:V});f++;Ni(A)&&T++}for(;x<T;)A=B[x],k.push({previousCharacter:A,rollUp:D,marginMultiplier:l,
shouldAnimate:V}),x++,Ni(A)||T++;for(;f<L.length;)T=L[f],A=B[x],Ni(T)===Ni(A)?(f++,x++):Ni(T)?(x++,T=void 0):Ni(A)&&(f++,A=void 0),k.push({character:T,previousCharacter:A,rollUp:D,marginMultiplier:l,shouldAnimate:V});b=G.numberText();var t;I=(t=G.numberValue)==null?void 0:t.call(G);return k},void 0,"kWiBv");
return _.v("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return G.numberText()?["height: "+h()+"px;","line-height: "+G.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.v(_.aj,{each:q,keyBy:"INDEX"},function(l){return _.v(Jti,{character:function(){return l().character},
previousCharacter:function(){return l().previousCharacter},
marginMultiplier:function(){return l().marginMultiplier},
rollUp:function(){return l().rollUp},
shouldAnimate:function(){return l().shouldAnimate}})}))},"D");
KoB.idomCompat=!0;_.u3n=_.U("web_enable_sink_animated_rolling_character_and_number")?KoB:yvp(aov);var RFW=function(G,b){this.fillAnimation=new Animation(Jv2(G),document.timeline);this.strokeAnimation=new Animation(KWv(b),document.timeline)};
RFW.prototype.play=function(){var G,b;(b=(G=this.fillAnimation).play)==null||b.call(G);var I,h;(h=(I=this.strokeAnimation).play)==null||h.call(I)};
RFW.prototype.cancel=function(){var G,b;(b=(G=this.fillAnimation).cancel)==null||b.call(G);var I,h;(h=(I=this.strokeAnimation).cancel)==null||h.call(I)};_.Qy=_.C(function(G){var b=G.model;var I=G.pointerDownEvent;var h=G.pointerUpEvent;var q=G.pointerLeaveEvent;var l=G.hovered;G=_.ee("yt-touch-feedback-shape");var V=_.ee("div"),D=_.ee("div"),k=_.e(_.bk(function(){return(h==null?0:h())||(q==null?0:q())?!1:!(I==null||!I())||!1})),L=k.next().value,x=k.next().value,f=void 0,T=function(){!f&&D.value&&V.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(f=new RFW(D.value,V.value));
var W;(W=f)==null||W.play()},B=function(){var W;
(W=f)==null||W.cancel()},A=function(){var W;
(W=f)==null||W.cancel()};
_.K0(function(){(h==null?0:h())&&T()},"bg756c");
_.K0(function(){(I==null?0:I())&&B()},"QAes8c");
_.K0(function(){(q==null?0:q())&&A()},"YaFbrc");
k=_.Xu(function(){T();x(!1)});
var t=_.Xu(function(){B();x(!0)}),y=_.Xu(function(){A();
x(!1)});
_.uI(function(){if(f){var W;(W=f)==null||W.cancel();f=void 0}});
var F={};L=_.pG("yt-spec-touch-feedback-shape",function(){return uBd(b().color)},function(){return RYj(b().thumbnailSize,!!b().isExtended)},(F["yt-spec-touch-feedback-shape--focused"]=function(){return!!b().focused&&!b().disabled},F["yt-spec-touch-feedback-shape--circular"]=function(){return!!b().circular},F["yt-spec-touch-feedback-shape--down"]=L,F["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!b().triggerEvents},F["yt-spec-touch-feedback-shape--hovered"]=function(){return l==
null?void 0:l()},F));
return _.v("yt-touch-feedback-shape",{el:G,class:L,style:_.Ir({"margin-top":function(){return b().customTopExtend?"-"+b().customTopExtend+"px":void 0}}),
"on:mousedown":t,"on:mouseup":k,"on:pointerleave":y,"on:touchstart":t,"on:touchend":k,"aria-hidden":!0},_.v(_.Q,{cond:function(){return!!b().hoverEffect},
then:function(){return _.v("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.Ir({"border-radius":function(){return b().borderRadius},
background:function(){var W;if(W=b().hoverEffect){for(var O=[],K=_.e((W==null?void 0:W.lightingTechniques)||[]),u=K.next();!u.done;u=K.next())switch(u.value){case 2:var w=u=void 0,$a=void 0,ev=void 0;O.push("linear-gradient(180deg, "+((u=W)==null?void 0:(w=u.palette)==null?void 0:w.keyLight)+", "+(($a=W)==null?void 0:(ev=$a.palette)==null?void 0:ev.background)+")")}var LO,td;O.push((LO=b().hoverEffect)==null?void 0:(td=LO.palette)==null?void 0:td.background);W=O.join(", ")}else W=void 0;return W}})})}}),
_.v("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.Ir({"border-radius":function(){return b().borderRadius},
"border-color":function(){var W,O;return(W=b().touchEffect)==null?void 0:(O=W.palette)==null?void 0:O.background}}),
el:V}),_.v("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.Ir({"border-radius":function(){return b().borderRadius},
"background-color":function(){var W,O;return(W=b().touchEffect)==null?void 0:(O=W.palette)==null?void 0:O.background}}),
el:D}))},"J");
_.Qy.idomCompat=!0;var nAn={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1};var xK=_.Tq();xK=xK.toLowerCase();if(_.c2(xK,"android")){var OCW=xK.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);OCW&&parseFloat(OCW[1])<100||xK.match("("+Object.keys(nAn).join("|")+")")};var wUW=_.C(function(G){return _.v(_.Q,{cond:G.aTagConfig,then:function(b){return _.v(_.LP,{aTagConfig:b,disabled:G.disabled,className:G.className,style:G.style,title:G.title,ariaLabel:G.ariaLabel,ariaCurrent:function(){var I,h;return((I=G.toggleable)==null?void 0:I.call(G))&&((h=G.toggled)==null?void 0:h.call(G))},
ref:G.ref},G.children)},
else:function(){return _.v("button",{el:_.Wv(G.ref),"on:click":_.Xu(function(b){var I;return(I=G.onClick)==null?void 0:I.call(G,b)}),
class:G.className,title:G.title,style:G.style,disabled:G.disabled,"aria-pressed":function(){var b,I;return((b=G.toggleable)==null?0:b.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"),pUi=_.C(function(G){var b=G.data;
var I=G.hasIconLeading;var h=G.hasIconLeadingTrailing;var q=G.hasIconTrailing;var l=G.iconButton;var V=G.iconClassName;var D=G.secondaryIconClassName;var k=G.icon;var L=G.secondaryIcon;var x=G.textContentClassName;return _.v(fP,{className:"",style:"display: inherit; justify-content: center"},_.v(_.Q,{debugInstance:"V4z1Uc",cond:function(){return k&&(I()||h()||(l==null?void 0:l()))},
then:function(){return _.v(fP,null,_.v("div",{class:V,"aria-hidden":"true"},k==null?void 0:k()))}}),_.v(_.Q,{debugInstance:"ok3btb",
cond:function(){return(b().buttonText||b().animatedTextProps||b().formattedButtonText)&&!(l==null?0:l())},
then:function(){return _.v(fP,null,_.v(EAn,{className:x,iconPosition:function(){return b().iconPosition},
text:function(){return b().buttonText},
oneOffCustomTextWrap:function(){return b().oneOffCustomTextWrap},
formattedButtonText:function(){return b().formattedButtonText},
animatedTextProps:function(){return b().animatedTextProps}}))}}),_.v(_.Q,{debugInstance:"DO5Rz",
cond:q,then:function(){return _.v(fP,null,_.v("div",{class:V},k==null?void 0:k()))}}),_.v(_.Q,{debugInstance:"bnojSc",
cond:h,then:function(){return _.v(fP,null,_.v("div",{class:D},L==null?void 0:L()))}}),_.v(_.Q,{debugInstance:"HN3kad",
cond:function(){return!b().disabled&&!0},
then:function(){return _.v(_.Qy,{model:function(){var f=b();return{color:f.style==="overlay-dark"?4:f.style==="overlay"?f.type==="filled"?4:3:f.type==="filled"||f.style==="call-to-action-inverse"||f.style==="mono-inverse"?2:1}}})}}))},"L"),EAn=_.C(function(G){var b=function(){var I,h;
return((I=G.iconPosition)==null?void 0:I.call(G))==="icon-with-label"||((h=G.oneOffCustomTextWrap)==null?void 0:h.call(G))};
return _.v("div",{class:G.className,"aria-hidden":function(){var I,h,q;return((I=G.ariaHidden)==null?void 0:I.call(G))&&(!((h=G.animatedTextProps)==null||!h.call(G))||!((q=G.formattedButtonText)==null||!q.call(G)))}},_.v(_.Nc,null,_.v(_.H3,{when:function(){var I;
return(I=G.animatedTextProps)==null?void 0:I.call(G)}},function(){return _.v(_.u3n,{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}})}),_.v(_.H3,{when:function(){var I;
return(I=G.formattedButtonText)==null?void 0:I.call(G)}},function(){return _.v(_.IS,{text:function(){return Object.assign({},G.formattedButtonText(),{lineBreakMode:b()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":G.formattedButtonText().lineBreakMode,
alignment:b()?"TEXT_ALIGNMENT_CENTER":G.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!b()}})}),_.v(_.H3,{when:function(){var I,h;
return((I=G.iconPosition)==null?void 0:I.call(G))==="icon-with-label"&&((h=G.text)==null?void 0:h.call(G))}},function(){return _.v(_.IS,{text:function(){return{content:G.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.v(_.W3,null,function(){return G.text})))},"M"),SH8=_.C(function(G){return _.v(_.Q,{debugInstance:"kM7Sgc",
cond:G.hasLabel,then:function(){var b;return _.v("label",{class:G.className},G.children,(b=G.textContent)==null?void 0:b.call(G))},
else:function(){return G.children}})},"N"),fP=_.C(function(G){return G.children},"O");var XUO=_.C(function(G){function b(){l(void 0);D(void 0);L(void 0)}
var I=_.Wv(),h=_.e(_.ZZ(void 0,void 0,"Ug77pc")),q=h.next().value,l=h.next().value;h=_.e(_.ZZ(void 0,void 0,"XGf7Zb"));var V=h.next().value,D=h.next().value,k=_.e(_.ZZ(void 0,void 0,"w55oqd"));h=k.next().value;var L=k.next().value;k=_.e(_.ZZ(0,void 0,"rBgpzc"));var x=k.next().value,f=k.next().value;k=_.Xu(function(){switch(x()){case 1:f(2);break;case 3:var B,A;(A=(B=I.value).hidePopover)==null||A.call(B);f(0);b()}});
_.K0(function(){if(G.show()){var B;l((B=G.children)==null?void 0:B.call(G));var A;D((A=G.location)==null?void 0:A.call(G));var t;L((t=G.classNames)==null?void 0:t.call(G));switch(x()){case 0:var y,F;(F=(y=I.value).showPopover)==null||F.call(y);f(1);break;case 3:f(1);var W,O;(O=(W=I.value).hidePopover)==null||O.call(W);var K,u;(u=(K=I.value).showPopover)==null||u.call(K)}}else switch(x()){case 2:f(3);break;case 1:var w,$a;($a=(w=I.value).hidePopover)==null||$a.call(w);b();f(0)}},"Z8V4Qb");
_.K3(function(){});
var T={};return _.v("yt-popover",{popover:"manual",el:I,style:_.Ir({left:function(){var B;return(B=V())==null?void 0:B.left},
top:function(){var B;return(B=V())==null?void 0:B.top},
bottom:function(){var B;return(B=V())==null?void 0:B.bottom},
right:function(){var B;return(B=V())==null?void 0:B.right}}),
class:_.pG("ytPopoverComponentHost",h,(T.ytPopoverComponentHostClosing=function(){return x()===3},T.ytPopoverComponentHostSeeThrough=function(){var B;
return((B=G.seeThrough)==null?void 0:B.call(G))===!0},T)),
"on:animationend":k},q)},"Q");var $nA={left:"0px",right:"auto",top:"0px",bottom:"auto"},GHQ=function(){var G=this;this.registerTooltipElement=function(I){var h;G.tooltipElement=(h=I.querySelector("yt-popover"))!=null?h:void 0};
var b=_.e(_.ZZ(void 0,void 0,"EIh5sc"));this.state=b.next().value;this.setState=b.next().value;b=_.e(_.ZZ(void 0,void 0,"PC1M0b"));this.schedulerJobID=b.next().value;this.setSchedulerJobID=b.next().value},GYr=function(G,b){var I=jh,h=_.uu.addJob(function(){var q=bV8(I,G,b);
I.currentConfig=b;I.setState({text:b.text,location:_.U("web_tooltip_location_fix")?void 0:q,anchor:G,offset:b.offset,style:b.style})},4,b.delay);
I.setSchedulerJobID(h)},bxp=function(){var G=jh,b=G.schedulerJobID();
b&&(_.uu.cancelJob(b),G.setSchedulerJobID(void 0));G.setState(void 0);G.currentConfig=void 0};
GHQ.prototype.notify=function(G,b){var I;((I=this.state())==null?void 0:I.anchor)===G&&(I=bV8(this,G,b),this.currentConfig=b,this.setState({text:b.text,location:_.U("web_tooltip_location_fix")?void 0:I,anchor:G,offset:b.offset,style:b.style}))};
var bV8=function(G,b,I){var h=b.getBoundingClientRect();b=window.innerWidth;var q=window.innerHeight,l=I.location,V=I.offset;I=I.text;if(G=G.tooltipElement){var D=getComputedStyle(G);G=D.font;var k=qK(D.lineHeight),L=qK(D.paddingLeft),x=qK(D.paddingRight),f=qK(D.paddingTop);D=qK(D.paddingBottom);var T=document.createElement("canvas").getContext("2d");T.font=G;I={width:T.measureText(I).width+L+x,height:k+f+D}}else I=void 0;G=I;if(!G)return $nA;I=G.width;G=G.height;L=V+G;f=V+I;k=h.top>=L;L=q-h.bottom>=
L;x=h.left>=f;f=b-h.right>=f;D=l;switch(l){case "top":!k&&L&&(D="bottom");break;case "bottom":!L&&k&&(D="top");break;case "left":!x&&f&&(D="right");break;case "right":!f&&x&&(D="left")}switch(D){case "top":l=h.left+h.width/2-I/2;h=h.top-G-V;break;case "bottom":l=h.left+h.width/2-I/2;h=h.bottom+V;break;case "left":l=h.left-I-V;h=h.top+h.height/2-G/2;break;case "right":l=h.right+V;h=h.top+h.height/2-G/2;break;default:l=h.left+h.width/2-I/2,h=h.bottom+V}V=Object.assign({},$nA);l+I>b?(V.right="0px",V.left=
"auto"):(V.left=Math.round(Math.max(0,l)+window.scrollX)+"px",V.right="auto");h+G>q?(V.bottom="0px",V.top="auto"):(V.top=Math.round(Math.max(0,h)+window.scrollY)+"px",V.bottom="auto");return V};var jh;jh=new GHQ;_.IoA=_.C(function(){var G=_.P$(function(){var q;return(q=jh.state())==null?void 0:q.anchor},void 0,"tiGUn"),b=_.P$(function(){var q;
return(q=jh.state())==null?void 0:q.text},void 0,"TA2GQe"),I=_.P$(function(){var q;
return(q=jh.state())==null?void 0:q.style},void 0,"ucvFsf"),h=_.U("web_tooltip_location_fix")?_.P$(function(){var q=G();
var l=jh.currentConfig;if(q&&l)return bV8(jh,q,l)},void 0,"EpDz6"):_.P$(function(){var q;
return(q=jh.state())==null?void 0:q.location},void 0,"aRJtfd");
return _.v("yt-tooltip",{class:"ytTooltipContainerHost",el:_.Wv(jh.registerTooltipElement),"aria-hidden":"true"},_.v(XUO,{classNames:function(){switch(I()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:h,show:function(){return!!b()&&!!h()},
seeThrough:!0},b))},"R");var FAj=DZ("stamper-context");_.TV=_.C(function(G){var b=G.data;var I=G.icon;var h=G.iconName;var q=G.animateIcon;var l=G.secondaryIcon;var V=G.secondaryIconName;var D=G.focusedOverride;var k=G.clientOnlyWizTooltipsEnabled;hvX();var L=n0s(b),x=L.size,f=L.style;G=L.disabled;var T=L.onTap,B=L.alignByText,A=L.aTagConfig,t=L.customColors,y=L.segmentedPosition,F=L.toggled,W=L.toggleable,O=L.accessibilityLabel,K=L.onToggle,u=L.iconPosition,w=L.oneOffCustomTextWrap,$a=L.disableTextEllipsis,ev=L.disableBackdropFilter,LO=L.tooltipText,
td=L.ariaHidden,xa=L.tabIndex,Uj=L.buttonText,W2=L.formattedButtonText,is=L.animatedTextProps,su=L.onClickRateLimitMs,an=pkO(b,I,l,h,V,D,q),A5=an.type;I=an.shouldFocus;h=an.hasIconLeading;q=an.hasIconTrailing;var XO=an.hasIconLeadingTrailing,kb=an.hasIconOnly;l=an.hasIconOnly40;var rz=an.hasIconWithLabel;V=an.iconButton;var on=an.visiblyDisabled;D=an.overrideSmallSizeIcon;var Ac=an.iconToRender;an=an.secondaryIconToRender;var U1=_.e(Iyj(LO,L.tooltipShape)).next().value,mp=function(BX){T==null||T(BX);
W()&&(K==null||K(BX))},bn=_.P$(function(){return su==null?void 0:su()},void 0,"siKywb"),xb=_.P$(function(){return bn()?KfW(mp,bn()):mp},void 0,"wDTcN");
L={};var j8={};return _.v(SH8,{className:_.pG("yt-spec-button-shape-with-label",(L["yt-spec-button-shape-with-label--is-overlay"]=function(){return f()==="overlay"||f()==="overlay-dark"},L)),
hasLabel:rz,textContent:function(){return _.v(EAn,{text:Uj,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:w,iconPosition:u,formattedButtonText:W2,animatedTextProps:is})}},_.v(wUW,{aTagConfig:A,
className:_.pG("yt-spec-button-shape-next",function(){return SlB(A5())},function(){return on()?void 0:Xkq(f())},function(){return $gO(x())},(j8["yt-spec-button-shape-next--disabled"]=on,j8["yt-spec-button-shape-next--focused"]=I,j8["yt-spec-button-shape-next--icon-trailing"]=q,j8["yt-spec-button-shape-next--icon-leading"]=h,j8["yt-spec-button-shape-next--icon-leading-trailing"]=XO,j8["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return XO()&&!(Uj()||W2())},j8["yt-spec-button-shape-next--icon-button"]=
function(){return kb()||rz()},j8["yt-spec-button-shape-next--icon-only-default"]=l,j8["yt-spec-button-shape-next--align-by-text"]=B,j8["yt-spec-button-shape-next--segmented-start"]=function(){return y()==="start"},j8["yt-spec-button-shape-next--segmented-end"]=function(){return y()==="end"},j8["yt-spec-button-shape-next--override-small-size-icon"]=D,j8["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=w,j8["yt-spec-button-shape-next--disable-text-ellipsis"]=$a,j8["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!ev()&&!_.U("web_disable_backdrop_filter")},j8)),
style:function(){var BX=t();if(BX){var I5=BX.color;var ys=BX.backgroundColor;BX=BX.borderColor;var nQ="";I5&&(nQ+="color: "+I5+";");ys&&(nQ+="background-color: "+ys+";");BX&&(nQ+="border-color: "+BX+";");I5={style:nQ}}else I5={};return I5.style},
onClick:function(BX){xb()(BX)},
disabled:G,ariaLabel:O,toggleable:W,toggled:F,title:function(){return(k==null?0:k())||!LO()?"":LO()},
visiblyDisabled:on,ariaHidden:td,tabIndex:xa,ref:function(BX){(k==null?0:k())&&U1(BX)}},_.v(pUi,{data:b,
hasIconLeading:h,hasIconLeadingTrailing:XO,hasIconTrailing:q,iconButton:V,icon:Ac,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:an})))},"T");
_.TV.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.sQ=_.C(function(G){var b=G.data;var I=G.className;var h=G.style;var q=G.useOutlinedIcon;var l=G.buttonOverrides;var V=G.animatedTextProps;var D=G.onClick;var k=G.target;var L=_.ee("button-view-model",function(K){K.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var u=b().targetId;u&&_.Fzz(_.PQ(),u,K);return function(){y75(_.PQ(),K)}}),x=function(){return b().iconName},f=_.m2(function(K){a:{var u=b().entityKey,w=b().buttonEntitySelectorType;
if(w&&u)switch(w){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":K=(K=_.SA(K,u))?{isHidden:K.adsState==="ADS_STATE_NONE"||K.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:K={isHidden:!1};break a}K=void 0}return K}),T,B=(T=_.LL().resolve(_.vf(_.Pv)))==null?void 0:T(),A=function(){var K=b();
var u=l==null?void 0:l(),w=V==null?void 0:V(),$a=k==null?void 0:k();if(K){var ev=c62(K.type);var LO=!!K.title||!!K.titleFormatted;var td=!(!K.iconName&&!K.iconImage);LO=td&&!LO?"icon-only":td?K.iconTrailing||K.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;LO==="icon-only-40"&&(ev="text");var xa;td=(xa=u==null?void 0:u.state)!=null?xa:kYu(K.state);var Uj,W2=(Uj=u==null?void 0:u.disabled)!=null?Uj:K.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||K.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.U("web_button_vm_refactor_disabled")){var is;W2=(is=u==null?void 0:u.disabled)!=null?is:td==="disabled"}w=w&&w.numberText&&!isNaN(Number(w.numberValue))?w:void 0;Uj=Object;is=Uj.assign;xa=K.title;var su=K.titleFormatted,an=K.accessibilityText,A5=DgO(K.style),XO=vsu(K.buttonSize);$a=V9d(K,L,W2,D,$a);W2=W2&&!K.onDisabledTap;var kb=mgO(K,L),rz=K.customFontColor,on=K.customBackgroundColor;var Ac=K.customBorderColor;var U1=K.customDarkThemeFontColor,mp=K.customDarkThemeBackgroundColor,bn=K.customDarkThemeBorderColor;
rz=B&&U1?U1:rz;on=B&&mp?mp:on;Ac=B&&bn?bn:Ac;Ac={color:rz?_.so(rz):void 0,backgroundColor:on?_.so(on):void 0,borderColor:Ac?_.so(Ac):void 0};if(bn=_.g(K.tooltipData,yXW)){var xb;on={text:(xb=bn.tooltipText)!=null?xb:"",location:jDa(bn.placement),style:bn.style}}else on=void 0;K=is.call(Uj,{},{buttonText:xa,formattedButtonText:su,animatedTextProps:w,accessibilityLabel:an,style:A5,type:ev,state:td,size:XO,iconPosition:LO,onTap:$a,disabled:W2,aTagConfig:kb,customColors:Ac,tooltipText:K.tooltip,tooltipShape:on},
u)}else K={style:"mono",type:"text",state:"active",size:"M"};K.focused=F();return K},t=function(){return wkO(A(),!!b().iconName)};
G=_.e(_.ZZ(!1,void 0,"yZ8hab"));T=G.next().value;var y=G.next().value,F=T;G=_.Xu(function(){var K=_.LL().resolve(_.vf(_.v6));K&&y(K.isKeyBoardInUse());return!1});
T=_.Xu(function(){y(!1);return!1});
_.K0(function(){var K,u=_.g(b==null?void 0:(K=b())==null?void 0:K.onVisible,_.U0);u&&_.g5(u,{disableClickTracking:!0})},"G9MlKd");
var W=function(){var K;return(b==null?0:(K=b())==null?0:K.iconImage)?{sources:[b().iconImage]}:void 0},O=_.U("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.v("button-view-model",{el:L,class:_.pG("ytSpecButtonViewModelHost",I),"on:focusin":G,"on:focusout":T},_.v(_.Q,{cond:function(){var K,u;return!((u=b().entityKey&&b().buttonEntitySelectorType&&((K=f())==null?void 0:K.isHidden))!=null&&u)},
then:function(){return _.v(_.Q,{cond:W,then:function(K){return _.v(_.TV,{data:A,icon:function(){return _.v(_.Fu,{data:K,alt:"",targetWidth:t,targetHeight:t,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:O})},
else:function(){return _.v(_.TV,{data:A,icon:function(){return _.v(_.ha,{icon:x,active:function(){return(q==null?0:q())?!1:A().toggled},
animateIcon:function(){var K;return!!(h==null?0:(K=h())==null?0:K.animateIcon)},
size:t})},
clientOnlyWizTooltipsEnabled:O})}})}}))},"V");
_.sQ.idomCompat={callbacks:{onClick:!0}};_.JN(_.C(function(G){return _.v("yt-button-view-model",{id:G.id,class:_.pG(G.scopingClassName,G.classes),icon:function(){var b;return(b=G.icon)==null?void 0:b.call(G)},
"dialog-dismiss":function(){var b;return((b=G.dialogDismiss)==null?0:b.call(G))?"":void 0}},_.v(_.sQ,{data:function(){var b;
return(b=G.data)==null?void 0:b.call(G)},
className:function(){var b;return(b=G.className)==null?void 0:b.call(G)},
style:function(){var b;return(b=G.style)==null?void 0:b.call(G)},
useOutlinedIcon:function(){var b;return(b=G.useOutlinedIcon)==null?void 0:b.call(G)},
buttonOverrides:function(){var b;return(b=G.buttonOverrides)==null?void 0:b.call(G)},
animatedTextProps:function(){var b;return(b=G.animatedTextProps)==null?void 0:b.call(G)},
onClick:function(b){var I;return(I=G.onClick)==null?void 0:I.call(G,b)}}))},"W"),"yt-button-view-model",{props:{data:_.hV,
className:_.hV,style:_.hV,useOutlinedIcon:_.hV,buttonOverrides:_.hV,animatedTextProps:_.hV,onClick:_.No,scopingClassName:_.hV,id:_.hV,icon:_.hV,dialogDismiss:_.hV,classes:_.hV,target:_.No}});_.JN(_.C(function(G){var b=G.data;var I=G.id;var h=G.className;var q=G.iconName;var l=G.animateIcon;var V=G.secondaryIconName;G=_.e(_.ZZ(!1,void 0,"TtJl8"));var D=G.next().value,k=G.next().value,L=function(){var f=_.LL().resolve(_.vf(_.v6));f&&k(f.isKeyBoardInUse())},x=function(){k(!1)};
G=_.ee("yt-button-shape",function(f){if(_.LL().resolve(_.vf(_.v6)))return f.addEventListener("focusin",L),f.addEventListener("focusout",x),function(){f.removeEventListener("focusin",L);f.removeEventListener("focusout",x)}});
return _.v("yt-button-shape",{el:G,id:I,class:h},_.v(_.Q,{cond:b,then:function(){return _.v(_.TV,{data:b,iconName:q,secondaryIconName:V,focusedOverride:D,animateIcon:l})}}))},"X"),"yt-button-shape",{props:{data:_.hV,
id:_.hV,className:_.hV,iconName:_.hV,animateIcon:_.hV,secondaryIconName:_.hV,clientOnlyWizTooltipsEnabled:_.hV,disableUpgrade:_.hV},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var gs=function(){var G=_.a.apply(this,arguments)||this;G.isGoalActive=!0;return G};
_.M(gs,_.a);gs.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
gs.prototype.progressBarChanged=function(){var G=_.Eo(this.hostElement).querySelector("#progress-bar-progress"),b,I,h,q=(h=Number((b=this.creatorGoalState)==null?void 0:b.currentGoalCount)/Number((I=this.creatorGoalState)==null?void 0:I.totalGoalCount)*100)!=null?h:0,l;G.style.width=((l=Math.min(q,100))!=null?l:0)+"%"};
gs.prototype.goalStateChanged=function(){var G;this.isGoalActive=((G=this.creatorGoalState)==null?void 0:G.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var b;G={"--yt-progress-bar-color":nBO((b=this.creatorGoalState)==null?void 0:b.progressBarColor)};_.G8(this.hostElement,G)};
gs.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.kV.Object.defineProperties(gs.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 b;G=Number((b=this.creatorGoalState)==null?void 0:b.endTimestampMs)/1E3;return{seconds:String(G)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.creatorGoalState)==null?0:G.themedTargetImage){var b;G=_.g((b=this.creatorGoalState)==null?void 0:b.themedTargetImage,UIX);return this.isAppDarkTheme()?G==null?void 0:G.imageDark:G==null?void 0:G.imageLight}}}});
_.kV.Object.defineProperties(gs,{template:{configurable:!0,enumerable:!0,get:function(){return Pcz()}}});
gs.prototype.goalStateChanged=gs.prototype.goalStateChanged;gs.prototype.progressBarChanged=gs.prototype.progressBarChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.ON),_.n("design:type",Object)],gs.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);
_.R([_.H({selectorArgs:["data.creatorGoalEntityKey"],selector:function(G,b){return _.Gi(G.entities,"creatorGoalEntity",b)}}),
_.n("design:type",Object)],gs.prototype,"creatorGoalState",void 0);_.R([_.H(),_.n("design:type",Object)],gs.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],gs.prototype,"isGoalActive",void 0);_.R([_.P("creatorGoalState","isGoalActive"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],gs.prototype,"shouldShowCountdown",null);_.R([_.P("creatorGoalState"),_.n("design:type",Object),_.n("design:paramtypes",[])],gs.prototype,"endTimestamp",null);
_.R([_.P("creatorGoalState"),_.n("design:type",Object),_.n("design:paramtypes",[])],gs.prototype,"targetIconThemedImage",null);_.R([_.q5("creatorGoalState.currentGoalCount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gs.prototype,"progressBarChanged",null);_.R([_.q5("creatorGoalState.creatorGoalState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gs.prototype,"goalStateChanged",null);
_.R([_.g8({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],gs);_.J(gs,"yt-creator-goal-progress-flow-view-model",function(){return Pcz()},{mode:0});var hYX;var qlJ;var AV=function(){return _.a.apply(this,arguments)||this};
_.M(AV,_.a);AV.prototype.attached=function(){var G,b,I;if(this==null?0:(G=this.data)==null?0:(b=G.pdgPurchasedBumperLoggingDirectives)==null?0:(I=b.loggingDirectives)==null?0:I.trackingParams){var h,q,l;xg2(this==null?void 0:(h=this.data)==null?void 0:(q=h.pdgPurchasedBumperLoggingDirectives)==null?void 0:(l=q.loggingDirectives)==null?void 0:l.trackingParams)}};
AV.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],AV.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],AV.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],AV.prototype,"data",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],AV);
_.J(AV,"yt-live-chat-item-bumper-view-model",function(){if(qlJ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;hYX===void 0&&(hYX=document.createElement("template"));var h=hYX;I.call(b,h.content.cloneNode(!0),G.content.firstChild);qlJ=G}G=qlJ;return G},{mode:0});var jqX;var loi;_.WN=function(G,b){this.data=G;this.actions=b;this.data=G;this.actions=b};
_.zB=function(){};_.MD={};_.MD.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(G,b){fyv(this.hostElement,G,b)},
getNavigationEndpointPopupAction:function(G){return T3O(G,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(G,b){B3s(this.hostElement,G,b,this.openPopupConfig)}};var ixX=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.ZN={};
_.ZN.YtEndpointBehavior=[_.MD.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.wy("openPopupConfig");(this.useClickHandler=_.Sk("useClickHandler",!1))?this.hostElement.addEventListener("click",bH(this,this.onEndpointClick_)):(R1(this.hostElement,"tap",bH(this,this.onEndpointTap_)),R1(this.hostElement,"touchend",bH(this,this.onEndpointTouchEnd_)));R1(this.hostElement,"touchstart",bH(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
bH(this,this.onEndpointTapStart_))},
onEndpointClick_:function(G){gsp(this.hostElement,G,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(G){var b=this.hostElement,I=this.openPopupConfig,h=this.disableCommandHandlerOverride;h=h===void 0?!1:h;var q=Uga(G);if(q){q.href&&ZL(q.href);var l=G.detail;var V=l.sourceEvent;l=l.preventer;V=V.button!==void 0?V.button===0&&!eh(V):l?!eh(l):!0;q.data&&V&&sDd(b,q,G,I,h)}},
onEndpointTouchEnd_:function(G){eh(G)||Uga(G)&&G.preventDefault()},
onEndpointTapStart_:function(G){zva(G)}}];_.tV={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(G){for(var b=_.I1.getInstance(),I=_.e(Object.keys(G)),h=I.next();!h.done;h=I.next()){var q=h.value;h=G[q];if(this&&this[h]){var l=b.actionRoutingMap.get(q);l||(l=new Map,b.actionRoutingMap.set(q,l));b.registerActionHandler(this,q,this[h].bind(this),l)}else q=Error("ld"),q.params=h,_.Xj(q)}},
unregisterActionMap:function(G){_.lx(_.I1.getInstance(),G,this)}}]};var cN=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_"+(_.U("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.U("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.U("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:_.U("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:_.U("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:_.U("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var DG;var ko=new Map;var HxX=window.matchMedia("(forced-colors: active)").matches;var mnJ;var eY8;var Vsn=new _.q3("LOTTIE_LOADER_TOKEN");_.zV=_.C(function(G){var b=G.data;var I=G.className;var h=G.animationName;var q=G.animationRef;var l=G.elRefForInterop;var V=_.VF("lottie-component"),D;_.uI(function(){var L;return void((L=D)==null?void 0:L.destroy())});
var k;_.K0(function(){var L=_.n0(h);if(L!==k){k=L;var x=Object.assign({},{animationName:L,animationRef:_.n0(q)},_.n0(b));try{_.LL().resolve(Vsn)().then(function(B){var A;(A=D)==null||A.destroy();var t,y;A=(y=l==null?void 0:(t=l())==null?void 0:t.value)!=null?y:V.value;t=x.animationRef;y=x.listeners;B=B.loadAnimation(Object.assign({},{container:A},x.animationConfig));t&&(t.lottieEl=B);if(y)for(A=_.e(Object.entries(y)),t=A.next();!t.done;t=A.next())y=_.e(t.value),t=y.next().value,(y=y.next().value)&&
B.addEventListener(t,y);D=B})}catch(B){L=B;
var f="LottieComponent error.";L.message&&(f+=" Original description: "+L.message);_.n1(L,f);_.RB(L);var T;((T=x.listeners)==null?0:T.error)&&x.listeners.error(L)}}},"nrJISd");
return _.v(mir,{cond:function(){return!(l==null?0:l())},
then:function(){return _.v("lottie-component",{class:_.pG("ytLottieComponentHost",I),el:V})}})},"Z");_.JN(_.C(function(G){return _.v("ytd-lottie-player",{id:G.id,hidden:G.hidden,class:G.className,"aria-label":G.ariaLabel,style:"display: block;"},_.v(_.zV,{data:G.data,animationName:function(){var b;return((b=G.data().animationConfig)==null?void 0:b.name)||""},
animationRef:function(){return G.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.hV,
id:_.hV,hidden:_.hV,className:_.hV,ariaLabel:_.hV}});var oS=function(){var G=_.a.apply(this,arguments)||this;G.animationRef={};G.delhiIconsEnabled=_.U("enable_web_delhi_icons");return G};
_.M(oS,_.a);_.m=oS.prototype;
_.m.handlePropertyChange=function(){var G=this.animatedIcon,b=this.active,I=this.isDarkTheme;if(G){var h=this.previousActive!==b;this.previousActive=b;this.animationRef.lottieEl?h&&this.toggleAnimation(b,G.totalFrames):b?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)}};
_.m.computeLottiePlayerProps=function(G,b){var I=this.deepCloneLottiePlayerProps(G);b?(b=G.nameDarkTheme,G=G.pathDarkTheme):(b=G.name,G=G.path);I.animationConfig.name=b;(b=ko.get(G))?I.animationConfig.animationData=b:I.animationConfig.path=G;return I};
_.m.initializeAnimationAsToggled=function(G,b){G.animationConfig.initialSegment=[b-1,b]};
_.m.initializeAnimationAsUntoggled=function(G){G.animationConfig.initialSegment=void 0};
_.m.toggleAnimation=function(G,b){if(G){var I;(I=this.animationRef.lottieEl)==null||I.playSegments([0,b],!0)}else{var h;(h=this.animationRef.lottieEl)==null||h.playSegments([0,1],!0)}};
_.m.deepCloneLottiePlayerProps=function(G){var b=Object.assign({},G.lottiePlayerProps.animationConfig);G=Object.assign({},G.lottiePlayerProps);G.animationConfig=b;return G};
oS.prototype.handlePropertyChange=oS.prototype.handlePropertyChange;_.R([_.H(),_.n("design:type",Object)],oS.prototype,"animatedIcon",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],oS.prototype,"active",void 0);_.R([_.H(),_.n("design:type",Boolean)],oS.prototype,"isDarkTheme",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],oS.prototype,"animatedIconType",void 0);_.R([_.H(),_.n("design:type",Boolean)],oS.prototype,"previousActive",void 0);
_.R([_.H(),_.n("design:type",Object)],oS.prototype,"lottiePlayerProps",void 0);_.R([_.H(),_.n("design:type",Object)],oS.prototype,"animationRef",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],oS.prototype,"delhiIconsEnabled",void 0);_.R([_.q5("animatedIcon","active","isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oS.prototype,"handlePropertyChange",null);_.R([_.g8({is:"yt-animated-icon",disableElementRegistration:!0})],oS);
_.J(oS,"yt-animated-icon",function(){if(eY8===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;mnJ===void 0&&(mnJ=document.createElement("template"));var h=mnJ;I.call(b,h.content.cloneNode(!0),G.content.firstChild);eY8=G}G=eY8;return G},{mode:2});var DnW;var cvJ;var J6X=_.C(function(G){var b=_.VF("span"),I=uM(function(){return{value:null,cancelled:!1}});
_.uI(function(){I.cancelled=!0});
var h=_.P$(G.data,{equals:function(q,l){return q.iconName===l.iconName&&q.iconStyle===l.iconStyle&&q.iconSize===l.iconSize&&q.iconSetName===l.iconSetName&&q.iconSelected===l.iconSelected}},"AoOoyf");
_.K0(function(){var q,l=(q=G.options)==null?void 0:q.call(G);CKv(b,I,h(),l)},"Tie9e");
return _.v("span",{class:"yt-icon-shape",el:b})},"ba");
J6X.idomCompat=!0;var DXa=["youtube_fill","youtube_outline"];var kHz=new _.HO({type:"iconset",value:void 0}),iD=function(){var G=_.a.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=_.ZZ(void 0,void 0,"TaEgXd");G.renderingOptionsSignal=_.ZZ({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};
_.M(iD,_.a);iD.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
iD.prototype.handlePropertyChange=function(){var G=this,b,I,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F;return _.c(function(W){switch(W.nextAddress){case 1:if(b=!G.icon&&!G.iconName||!G.isAttached)return W.return();I=G;h=I.icon;q=I.size;l=I.defaultToFilled;V=I.active;D=I.targetContainer;G.toggleContainerClass(D);_.U("kevlar_use_wil_icons")&&h&&(k=U$v(h),G.iconType=k.length?k[1]:null);if(h){W.jumpTo(2);break}G.iconsetName="";G.iconName="";return W.yield(G.renderIcon(D,h),3);case 3:return W.return();case 2:L=v0e(h);
x=U$v(L);x.length&&(G.iconsetName=x[0],G.iconName=x[1]);if(!_.U("kevlar_use_wil_icons")){W.jumpTo(4);break}f=iD;T=LWb;B=G.iconType;A=G.active;t=G.defaultToFilled;y=G.size;F=G.iconsetName;return W.yield(QqW(),6);case 6:return W.yield(T.call(f,B,A,t,y,F,W.yieldResult),5);case 5:G.iconShapeData=W.yieldResult;case 4:if(G.shouldRenderIconShape(D)){W.jumpTo(7);break}return W.yield(G.determineIconSet(L,V,l,q,D),7);case 7:return W.yield(G.renderIcon(D,h),0)}})};
iD.prototype.toggleContainerClass=function(G){G?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var v0e=function(G){return!_.U("default_to_innertube_icon")||G.indexOf(":")>0?G:_.pn(G)};
_.m=iD.prototype;_.m.determineIconSet=function(G,b,I,h){var q=this;return _.c(function(l){return l.nextAddress==1?_.U("kevlar_system_icons")||_.wy("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.wy("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?l.yield(q.switchToYtSysIconset(G,b,I,h),3):l.jumpTo(2):l.nextAddress!=2?l.return():l.yield(q.useYtSysIconsetForMissingIcons(G,b,I,h),0)})};
_.m.switchToYtSysIconset=function(G,b,I,h){var q=this,l,V,D,k,L,x,f;return _.c(function(T){switch(T.nextAddress){case 1:if(!G||q.iconsetName!=="yt-icons"&&q.iconsetName!=="yt-sys-icons"){T.jumpTo(0);break}l=U$v(G);V=l[1];var B=V;if(oBX(B))V=B;else{var A=B=B.toLowerCase();(B=geJ.get(B))&&(A=B);V=A}_.U("enable_polymer_icons_replace_underscores_dash")&&V.includes("_filled")&&(V=V.replace(/_filled/g,"-filled"));return T.yield(Eh(V,!0),3);case 3:return D=T.yieldResult,T.yield(Eh(V,!1),4);case 4:if((k=
T.yieldResult)||b&&D)q.iconsetName="yt-sys-icons";q.iconName=q.getIconName(V,b,I,k,D);if(h===24){T.jumpTo(0);break}L="yt-sys-icons"+h+":"+q.iconName;return T.yield(Eh(L,!1,!0),6);case 6:return x=T.yieldResult,T.yield(Eh(L,!0,!0),7);case 7:f=T.yieldResult;q.iconName=q.getIconName(V,b,I,x,f);if(!b&&x||b&&f)q.iconsetName="yt-sys-icons"+h;_.ip(T)}})};
_.m.getIconName=function(G,b,I,h,q){G.includes("-filled")&&(G=G.replace("-filled",""));return q&&(b||I)?G+"-filled":G};
_.m.useYtSysIconsetForMissingIcons=function(G,b,I,h){var q=this,l,V;return _.c(function(D){if(D.nextAddress==1)return q.iconsetName!=="yt-icons"?D.jumpTo(0):D.yield(Eh(q.iconName,!1,!1,!0),3);if(D.nextAddress!=4)return l=D.yieldResult,D.yield(Eh(q.iconName,!1),4);V=D.yieldResult;if(l||!V)return D.jumpTo(0);q.iconsetName="yt-sys-icons";return D.yield(q.switchToYtSysIconset(G,b,I,h),0)})};
_.m.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var QqW=function(){return _.c(function(G){try{return G.return(_.LL().resolve(_.SH))}catch(b){return G.return(new Promise(function(I){_.mq().parkOrScheduleJob(function(){I(_.LL().resolve(_.SH))},2,"ci")}))}})},LWb=function(G,b,I,h,q,l){h=h===void 0?24:h;
if(G){G=G.toLowerCase();var V=G.endsWith("_filled")||G.endsWith("-filled");b={iconName:G,iconStyle:(b===void 0?0:b)||(I===void 0?0:I)||V?"youtube_fill":"youtube_outline",iconSize:h,iconSetName:q===void 0?"yt-icons":q};I=!!l.resolveIcon(b);I||(b.iconSize=void 0,I=!!l.resolveIcon(b));!I&&V&&(b.iconName=G.substring(0,G.length-7),b.iconSize=h,I=!!l.resolveIcon(b),I||(b.iconSize=void 0,I=!!l.resolveIcon(b)));I||(b.iconStyle=void 0,I=!!l.resolveIcon(b));I||_.RB(new _.Wf("Icon not supported",{iconName:b.iconName,
iconStyle:b.iconStyle,iconSize:b.iconSize,iconType:G}));return I?b:void 0}};
_.m=iD.prototype;_.m.shouldRenderIconShape=function(G){if(!_.U("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;G=this.getContainer(G);return!WVX(G,this.icon)};
_.m.renderIcon=function(G,b){var I=this,h,q,l,V,D,k,L,x;return _.c(function(f){switch(f.nextAddress){case 1:if(b&&I.icon!==b)return f.return();h=I.getContainer(G);q=WVX(h,I.icon);if(I.shouldRenderIconShape(G)&&I.iconType)return I.applyIconShape(q,h),f.return();I.removeIconShape();if(!h)return f.return();I.iconName===""&&I.iconset&&h&&(I.removeStaticIcon(I.iconset,h),q&&I.removeAnimatedIcon(h));if(I.iconName===""&&I.iconset||!I.iconsetName||!kHz)return f.return();I.iconset=kHz.byKey(I.iconsetName);
if(!I.iconset)return I.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.I9(I,I.onIconsetAdded)),f.return();I.missingIconSet&&(I.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.I9(I,I.onIconsetAdded)));V=(l=q||I.isAnimatedIcon?r6j(I.icon):void 0)&&!l.lazyLoad;k=l&&((D=l)==null?void 0:D.lazyLoad)&&(l.lottiePlayerProps.animationConfig.animationData?!0:ko.get(I.isDarkTheme?l.pathDarkTheme:l.path)?!0:!1);if(V||k)return I.applyAnimatedIcon(h,l,I.iconset),f.return();if(k||
(L=l)==null||!L.lazyLoad){f.jumpTo(2);break}x=N3O(l,I.isDarkTheme);I.applyStaticIcon(I.iconset,h,I.iconName,G,q);return f.yield(x,3);case 3:return f.yield(I.renderIcon(I.targetContainer,I.icon),4);case 4:return f.return();case 2:I.applyStaticIcon(I.iconset,h,I.iconName,G,q),_.ip(f)}})};
_.m.getContainer=function(G){var b,I=(b=qOr(this.hostElement))==null?void 0:b.host;b=!!I&&!!I.polymerController;if(!G||b)return G?this.getTargetContainer(G,I):this.hostElement};
_.m.getTargetContainer=function(G,b){var I=_.Eo(b).querySelector("#"+G);I||(G=new _.Wf("yt-icon container missing",b.is,G),_.K1(G));return I};
_.m.applyStaticIcon=function(G,b,I,h,q){q&&this.removeAnimatedIcon(b);this.removeIconShape();q=q&&!!this.iconType&&!!this.iconShapeData&&_.U("kevlar_use_wil_icons");try{q?this.applyIconShape(!1,b):G.applyIcon(b,I)}catch(l){this.handleError(l,h,b)}};
_.m.applyIconShape=function(G,b){this.iconset&&b&&(this.removeStaticIcon(this.iconset,b),G&&this.removeAnimatedIcon(b));G={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var I=_.e(this.iconShapeDataSignal);b=I.next().value;I=I.next().value;var h=_.e(this.renderingOptionsSignal),q=h.next().value;h=h.next().value;I(this.iconShapeData);h(G);if(!this.wizHasRendered)for(this.wizHasRendered=!0,G=_.e(KVu(b,q)).next().value;G.firstChild;)_.Eo(this.hostElement).appendChild(G.firstChild)};
_.m.removeIconShape=function(){if(_.U("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.m.removeStaticIcon=function(G,b){G.removeIcon(b)};
_.m.applyAnimatedIcon=function(G,b,I){this.removeStaticIcon(I,G);this.removeIconShape();var h;I=this.animatedIconElement&&((h=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:h.type)===b.type;if(this.animatedIconElement&&I){this.animatedIconElement.polymerController.animatedIcon=b;var q;((q=this.animatedIconElement)==null?void 0:q.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=b,this.animatedIconElement.polymerController.active=this.active,_.U("delhi_modern_web_player_icons")?(b=FVv(G,this.icon)&&G.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=b?b.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.U("kevlar_use_wil_icons")?
G.insertBefore(this.animatedIconElement,G.childNodes[0]):(G=_.Eo(G),G.insertBefore(this.animatedIconElement,G.childNodes[0]))};
_.m.removeAnimatedIcon=function(G){_.U("kevlar_use_wil_icons")?this.animatedIconElement&&G.contains(this.animatedIconElement)&&G.removeChild(this.animatedIconElement):(G=_.Eo(G),this.animatedIconElement&&G.contains(this.animatedIconElement)&&G.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.m.handleError=function(G,b,I){_.n1(G,this.iconName,b,I);b=WVX(I,this.icon);var h=!1;window.location.href.includes("JpymaW6Lh2w")?h=!0:I._svgIcon&&(I=(I=I._svgIcon.parentNode)?I.tagName:"unknown",_.n1(G,I),I==="YT-ICON"&&G.name==="NotFoundError"?h=!0:G.name==="NotFoundError"&&b&&(h=!0));h?_.RB(G):_.K1(G)};
_.kV.Object.defineProperties(iD,{template:{configurable:!0,enumerable:!0,get:function(){if(cvJ===void 0){var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;
DnW===void 0&&(DnW=document.createElement("template"));var h=DnW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);cvJ=G}G=cvJ;return G}}});
iD.prototype.handlePropertyChange=iD.prototype.handlePropertyChange;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],iD.prototype,"actionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",String)],iD.prototype,"icon",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],iD.prototype,"active",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],iD.prototype,"defaultToFilled",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],iD.prototype,"isAnimatedIcon",void 0);
_.R([_.H({value:24}),_.n("design:type",Number)],iD.prototype,"size",void 0);_.R([_.H({value:""}),_.n("design:type",String)],iD.prototype,"targetContainer",void 0);_.R([_.H(),_.n("design:type",Object)],iD.prototype,"animatedIconElement",void 0);_.R([_.H(),_.n("design:type",Object)],iD.prototype,"isDarkTheme",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],iD.prototype,"ariaHidden",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],iD.prototype,"ariaLabel",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],iD.prototype,"role",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],iD.prototype,"tabindex",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],iD.prototype,"title",void 0);_.R([_.H(),_.n("design:type",String)],iD.prototype,"style",void 0);_.R([_.H(),_.n("design:type",String)],iD.prototype,"iconFilter",void 0);_.R([_.H(),_.n("design:type",String)],iD.prototype,"gradientColor",void 0);
_.R([_.q5("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],iD.prototype,"handlePropertyChange",null);_.R([_.g8({is:"yt-icon",noInjection:!0})],iD);var ufB="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),nsq=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var xni={};xni.YtPlaintextBehavior=[_.PO,{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){_.IR&&(G=G.detail.keyboardEvent,G.stopImmediatePropagation(),G.preventDefault())}}];var fo5;var Tb8;var P6=function(){var G=_.a.apply(this,arguments)||this;G.ignoreShadyDom=!1;G.hasChange_=!1;G.hasSetTitle_=!1;G.useIOObserverForVisibilityLogging_=_.U("kevlar_use_vimio_behavior")&&_.wy("INNERTUBE_CLIENT_NAME")==="WEB";G.ytFormattedStringObserverHandlerKeys_=void 0;return G};
_.M(P6,_.a);_.m=P6.prototype;_.m.created=function(){this.useIOObserverForVisibilityLogging_=_.U("kevlar_use_vimio_behavior")&&_.wy("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.m.ready=function(){_.wy("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_()};
_.m.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.m.detached=function(){this.unobserveIOObservers_()};
_.m.clearContents_=function(){for(var G=this.getRoot(),b=G.lastChild;b&&b.tagName!=="STYLE";){try{G.removeChild(b)}catch(I){break}b=G.lastChild}};
_.m.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var G=_.e(this.ytFormattedStringObserverHandlerKeys_),b=G.next();!b.done;b=G.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(b.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.m.resetForAttributedString=function(){var G=this.getRoot();!G.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),G.appendChild(this.ytAttributedStringElementRef))};
_.m.resetForFormattedString=function(){var G=this.getRoot(),b=G.querySelector("yt-attributed-string");b&&(this.ytAttributedStringElementRef=G.removeChild(b))};
_.m.textChanged=function(){this.textChanged_(this.text)};
_.m.textChanged_=function(G){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!G||!G.runs&&!G.simpleText;if(_.U("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var b=this.hostElement.firstChild;b&&b.nodeName==="FONT";){var I=b;b=b.nextSibling;this.hostElement.removeChild(I)}b=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
I=G.simpleText;var h;!I&&((h=G.runs)==null?void 0:h.length)===1&&this.isSimpleString_(G.runs[0])&&(I=G.runs[0].text);I!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.wy("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(I!==void 0){try{b.textContent=I}catch(q){}b.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),
b.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.m.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)};
_.m.computeAriaLabel_=function(G){return G};
_.m.computeEllipsisTruncateStyling=function(G,b){return G&&!b};
_.m.computeUseAttributedString=function(G){return _.U("web_replace_formatted_with_attributed_string")&&eVv(G)&&!this.disableAttributedString&&!this.enableContentEditable};
_.m.setNodeStyle_=function(G,b){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.U("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?b.removeAttribute("dir"):b.setAttribute("dir","auto");b.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");b.style.color="";var I=null;this.noStyles||(G.bold&&(b.classList.add("bold"),I="bold"),G.deemphasize&&(b.classList.add("deemphasize"),I="deemphasize"),G.italics&&b.classList.add("italic"),
G.strikethrough&&b.classList.add("strikethrough"),G.errorUnderline&&(b.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),G.bracket&&b.classList.add("bracket"),G.textColor&&(b.style.color=_.Uo(G.textColor)));I!==b.getAttribute("style-target")&&(I?b.setAttribute("style-target",I):b.removeAttribute("style-target"))};
_.m.setUpVisibilityLogging_=function(G,b){var I=this;this.setNodeTrackingParams_(G,b);var h;((h=b.data)==null?0:h.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(G=this.ytRendererBehavior.visibilityObserver.observe(b,function(q){var l=I.ytRendererBehavior.getVisibilityLogger();l&&l.reportShown(q)},this.ytRendererBehavior.visibilityOptionVisible_),b=this.ytRendererBehavior.visibilityObserver.observe(b,function(q){var l=I.ytRendererBehavior.getVisibilityLogger();
l&&l.reportHidden(q)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(G),this.ytFormattedStringObserverHandlerKeys_.push(b))};
_.m.setNodeTrackingParams_=function(G,b){b.data||(b.data={});if((G=G.loggingDirectives?G.loggingDirectives.trackingParams:null)||b.data.trackingParams)b.data.trackingParams=G};
_.m.computeHasLinkOnly_=function(G){return!(!G||G.length!==1||this.noEndpoints||!G[0].navigationEndpoint)};
_.m.getRoot=function(){var G=this.buildScopeDomOptions();return this.enableContentEditable?_.Eo(_.Eo(this.hostElement,G).querySelector("[contenteditable]")):_.Eo(this.hostElement,G)};
_.m.fixContenteditableScope=function(){var G=function(b){b&&(b.nodeType===1&&b.classList&&(b.classList.add("style-scope"),b.classList.add("yt-formatted-string")),b.childNodes&&b.childNodes.forEach(function(I){G(I)}))};
G(this.getRoot())};
_.m.updateText_=function(G){for(var b=G.length,I=this.getRoot(),h=I.firstChild;h&&h.nodeName==="STYLE";)h=h.nextSibling;for(var q=0;q<b&&h;){var l=G[q],V=_.U("remove_cr_char")&&l.text?l.text.replace("\r",""):l.text;if(this.isSimpleString_(l)&&!this.useMixedDirectionFormattedStrings)if(h.nodeName==="#text"){h.textContent!=V&&(h.textContent=V);q++;h=h.nextSibling;continue}else break;if(_.g(l,T3))break;else if(!this.noEndpoints&&l.navigationEndpoint){if(h.nodeName!=="A")break;this.setDataOnAnchor_(h,
l.navigationEndpoint)}else if(h.nodeName!=="SPAN")break;this.setNodeStyle_(l,h);this.setUpVisibilityLogging_(l,h);h.textContent!=V&&(h.textContent=V);q++;h=h.nextSibling}if(h)for(l=I.lastChild,h=q?h.previousSibling:null;l&&l!=h;){try{I.removeChild(l)}catch(D){break}l=I.lastChild}q!==b&&this.addTextNodes_(G,q)};
_.m.addTextNodes_=function(G,b){for(var I=document.createDocumentFragment(),h=G.length;b<h;b++){var q=G[b],l=_.U("remove_cr_char")&&q.text?q.text.replace("\r",""):q.text;if(this.isSimpleString_(q)&&!this.useMixedDirectionFormattedStrings)I.appendChild(document.createTextNode(l));else{var V=_.g(q,T3);if(V){if(V.image){var D=document.createElement("img");V.isCustomEmoji||D.classList.add("small-emoji");D.classList.add("emoji");V.isCustomEmoji&&(D.dataset.emojiId=V.emojiId);D.src=_.KG(V.image.thumbnails,
this.emojiSize);(q=this.get("image.accessibility.accessibilityData.label",V))?D.alt=q:V.shortcuts&&V.shortcuts.length>0?D.alt=V.shortcuts[0]:V.emojiId&&(D.alt=V.emojiId);I.appendChild(D);this.hasEmoji=!0}}else!this.noEndpoints&&q.navigationEndpoint?(D=document.createElement("a"),D.classList.add("yt-simple-endpoint"),D.setAttribute("spellcheck","false"),this.setDataOnAnchor_(D,q.navigationEndpoint)):D=document.createElement("span"),this.setNodeStyle_(q,D),this.setUpVisibilityLogging_(q,D),D.appendChild(document.createTextNode(l)),
I.appendChild(D)}}this.getRoot().appendChild(I)};
_.m.isSimpleString_=function(G){return(this.noEndpoints||!G.navigationEndpoint)&&!_.g(G,T3)&&(this.noStyles||!(G.bold||G.deemphasize||G.italics||G.strikethrough||G.errorUnderline||G.bracket||G.textColor))&&!G.loggingDirectives};
_.m.getRawText=function(){return _.NO(this.text)};
_.m.getFirstRunText=function(){var G;if(((G=this.text)==null?0:G.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.m.setFirstRunText=function(G){var b;((b=this.text)==null?0:b.runs)&&this.text.runs[0]&&(this.text.runs[0].text=G,this.textChanged_(this.text))};
_.m.setDataOnAnchor_=function(G,b){var I=this;!_.U("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(b)||this.isSignalServiceEndpoint_(b)?(G.onclick=this.serviceEndpointHandler_(b),Ov(G,"#")):XNd({text:this.text,command:b},function(){DtO(G,b,I.target)})};
_.m.isServiceEndpoint_=function(G){var b;return!((b=_.g(G==null?void 0:G.commandMetadata,_.IW))==null||!b.sendPost)};
_.m.isSignalServiceEndpoint_=function(G){return!!_.g(G,_.b9)};
_.m.serviceEndpointHandler_=function(G){var b=this;return function(I){_.pv(b.hostElement,[G]);I.preventDefault()}};
_.m.overrideAriaLabelChanged_=function(){var G=this.getRoot();this.enableContentEditable&&G&&G.setAttribute("aria-label",this.overrideAriaLabel)};
_.m.enableContentEditableChanged_=function(){var G=this,b=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),b=_.Eo(this.hostElement,b),!b.lastChild||b.lastChild instanceof HTMLElement&&b.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}))};
b.appendChild(I);this.overrideAriaLabel&&I.setAttribute("aria-label",this.overrideAriaLabel)}}else I=_.pX(this.hostElement).firstChild,I instanceof HTMLElement&&I.id==="contenteditable-root"&&_.Eo(this.hostElement,b).removeChild(I)};
_.m.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.m.getNodesForVisibilityLogging_=function(){return _.EE(this.getRoot().childNodes,function(G){var b;return!((b=G.data)==null||!b.trackingParams)})};
_.m.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.m.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var G=this.ytRendererBehavior.getVisibilityLogger();G&&this.getNodesForVisibilityLogging_().forEach(function(b){G.reportShown(b)})}};
_.m.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var G=this.ytRendererBehavior.getVisibilityLogger();G&&this.getNodesForVisibilityLogging_().forEach(function(b){G.reportHidden(b)})}};
_.kV.Object.defineProperties(P6.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.U("enable_mixed_direction_formatted_strings")}}});
P6.prototype.enableContentEditableChanged_=P6.prototype.enableContentEditableChanged_;P6.prototype.overrideAriaLabelChanged_=P6.prototype.overrideAriaLabelChanged_;P6.prototype.ellipsisTruncateChanged_=P6.prototype.ellipsisTruncateChanged_;P6.prototype.textChanged=P6.prototype.textChanged;_.R([_.z(xni.YtPlaintextBehavior),_.n("design:type",Object)],P6.prototype,"ytPlaintextBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],P6.prototype,"ytComponentBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],P6.prototype,"text",void 0);_.R([_.H(),_.n("design:type",Boolean)],P6.prototype,"noEndpoints",void 0);_.R([_.H(),_.n("design:type",Boolean)],P6.prototype,"noStyles",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],P6.prototype,"isDarkTheme",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],P6.prototype,"splitLines",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],P6.prototype,"forceDefaultStyle",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],P6.prototype,"ellipsisTruncate",void 0);_.R([_.H(),_.n("design:type",Object)],P6.prototype,"ignoreShadyDom",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.n("design:type",Boolean)],P6.prototype,"ellipsisTruncateStyling",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.n("design:type",String)],P6.prototype,"ariaLabel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],P6.prototype,"isEmpty",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.n("design:type",Boolean)],P6.prototype,"hasLinkOnly_",void 0);_.R([_.H(),_.n("design:type",Boolean)],P6.prototype,"hasEmoji",void 0);_.R([_.H(),_.n("design:type",Boolean)],P6.prototype,"disableAttributedString",void 0);_.R([_.H(),_.n("design:type",Boolean)],P6.prototype,"isOverlay",void 0);_.R([_.H(),_.n("design:type",Boolean)],P6.prototype,"linkInheritColor",void 0);
_.R([_.H(),_.n("design:type",Boolean)],P6.prototype,"noPreWrap",void 0);_.R([_.H(),_.n("design:type",Boolean)],P6.prototype,"userInput",void 0);_.R([_.H({value:16}),_.n("design:type",Number)],P6.prototype,"emojiSize",void 0);_.R([_.H(),_.n("design:type",String)],P6.prototype,"target",void 0);_.R([_.H(),_.n("design:type",Boolean)],P6.prototype,"enableContentEditable",void 0);_.R([_.H(),_.n("design:type",String)],P6.prototype,"overrideAriaLabel",void 0);
_.R([_.H(),_.n("design:type",Boolean)],P6.prototype,"respectHtmlDir",void 0);_.R([_.H(),_.n("design:type",Boolean)],P6.prototype,"respectLangDir",void 0);_.R([_.P("plaintextOnly"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],P6.prototype,"useMixedDirectionFormattedStrings",null);_.R([_.H({computed:"computeUseAttributedString(text)"}),_.n("design:type",Boolean)],P6.prototype,"useYtAttributedString",void 0);
_.R([_.q5("text"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],P6.prototype,"textChanged",null);_.R([_.q5("ellipsisTruncate"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],P6.prototype,"ellipsisTruncateChanged_",null);_.R([_.q5("overrideAriaLabel"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],P6.prototype,"overrideAriaLabelChanged_",null);
_.R([_.q5("enableContentEditable"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],P6.prototype,"enableContentEditableChanged_",null);_.R([_.g8({is:"yt-formatted-string",disableElementRegistration:!0})],P6);
_.J(P6,"yt-formatted-string",function(){if(Tb8===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden$="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;fo5===void 0&&(fo5=document.createElement("template"));var h=fo5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Tb8=G}G=Tb8;return G});var BbJ;var UnJ;var sqB;var g0J;var ds=function(){var G=_.a.apply(this,arguments)||this;G.focused=!1;G.disabled=!1;G.isOverlay=!1;return G};
_.M(ds,_.a);ds.prototype.triggerDown=function(){if(!this.disabled){_.SL(this.hostElement,"down",!0);var G;(G=this.currentAnimation)==null||G.cancel()}};
ds.prototype.triggerUp=function(){if(!this.disabled){_.SL(this.hostElement,"down",!1);var G=this.fillElement;var b=this.strokeElement;typeof GroupEffect==="function"?(G=new GroupEffect([Jv2(G),KWv(b)]),G=new Animation(G,document.timeline)):G=new RFW(G,b);this.currentAnimation=G;var I;(I=this.currentAnimation)==null||I.play()}};
_.R([_.lH(".stroke"),_.n("design:type",HTMLElement)],ds.prototype,"strokeElement",void 0);_.R([_.lH(".fill"),_.n("design:type",HTMLElement)],ds.prototype,"fillElement",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ds.prototype,"focused",void 0);_.R([_.H(),_.n("design:type",Object)],ds.prototype,"disabled",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ds.prototype,"isOverlay",void 0);_.R([_.g8({is:"yt-interaction",disableElementRegistration:!0})],ds);
_.J(ds,"yt-interaction",function(){if(g0J===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;sqB===void 0&&(sqB=document.createElement("template"));var h=sqB;I.call(b,h.content.cloneNode(!0),G.content.firstChild);g0J=G}G=g0J;return G},{mode:2});var yy=function(){return _.a.apply(this,arguments)||this};
_.M(yy,_.a);_.m=yy.prototype;_.m.ready=function(){var G=this,b=_.Eo(this.hostElement).querySelector("#button");b.addEventListener("focus",function(){xFn||(xFn=new QYW);G.keyboardFocused=xFn.isKeyBoardInUse()});
b.addEventListener("blur",function(){G.keyboardFocused=!1;G.rippleUp_()})};
_.m.computeTabIndex_=function(G){return G?-1:0};
_.m.computeButtonAriaPressed_=function(G){if(this.toggleable)return G?"true":"false"};
_.m.rippleDown_=function(){_.Eo(this.hostElement).querySelector("#interaction").triggerDown()};
_.m.rippleUp_=function(){_.Eo(this.hostElement).querySelector("#interaction").triggerUp()};
_.m.onPressedChanged_=function(){var G=_.pX(_.Eo(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.pX(_.Eo(this.hostElement).querySelector("#button")).children[0];G&&(G.active=this.pressed)};
yy.prototype.onPressedChanged_=yy.prototype.onPressedChanged_;yy.prototype.rippleUp_=yy.prototype.rippleUp_;yy.prototype.rippleDown_=yy.prototype.rippleDown_;_.R([_.H(),_.n("design:type",String)],yy.prototype,"label",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],yy.prototype,"disabled",void 0);_.R([_.H(),_.n("design:type",Boolean)],yy.prototype,"pressed",void 0);_.R([_.H(),_.n("design:type",Object)],yy.prototype,"toggleable",void 0);
_.R([_.H(),_.n("design:type",Boolean)],yy.prototype,"untabbable",void 0);_.R([_.H(),_.n("design:type",Boolean)],yy.prototype,"keyboardFocused",void 0);_.R([_.hI("down"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yy.prototype,"rippleDown_",null);_.R([_.hI("up"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yy.prototype,"rippleUp_",null);
_.R([_.q5("pressed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yy.prototype,"onPressedChanged_",null);_.R([_.g8({is:"yt-icon-button",disableElementRegistration:!0})],yy);
_.J(yy,"yt-icon-button",function(){if(UnJ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;BbJ===void 0&&(BbJ=document.createElement("template"));var h=BbJ;I.call(b,h.content.cloneNode(!0),G.content.firstChild);UnJ=G}G=UnJ;return G},{mode:2});var Avi;var Msn=function(){var G=document.body,b=G.appendChild;if(Avi===void 0){var I=document.createElement("template");_.Z(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>');
Avi=I}I=Avi;b.call(G,I.content)};
document.body?Msn():window.addEventListener("DOMContentLoaded",Msn);var ZV5=_.WP(["aria-"]),rs={};rs.YtRenderButtonBehavior=[_.p.YtRendererBehavior,_.ZN.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!!_.LL().resolve(_.vf(_.v6))&&_.U("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?Ov(this.elements_.endpoint,G):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){G=this.buttonClass.split(" ");G=_.e(G);for(var b=G.next();!b.done;b=G.next())b=b.value,_.SL(this.hostElement,b,!0),this.elements_.button&&_.SL(this.elements_.button,b,!0),this.elements_.text&&_.SL(this.elements_.text,b,!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?_.Vs([_.fy(ZV5)],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=_.LL().resolve(_.vf(_.v6));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_()?_.Vy("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,_.kc(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.kc(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(G,b){if(b)for(G=b.split(" "),G=_.e(G),b=G.next();!b.done;b=G.next())b=b.value,_.SL(this.hostElement,b,!1),this.elements_.button&&_.SL(this.elements_.button,b,!1),this.elements_.text&&_.SL(this.elements_.text,b,!1)},
buttonIconChanged_:function(G){this.elements_.icon?G?(this.elements_.icon.icon=G,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.kc(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.XA(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"&&_.kc(this.elements_.button).appendChild(this.elements_.icon):_.kc(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.XA(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 b=!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":b=!0;_.SL(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();G=_.kc(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;_.kc(this.elements_.endpoint).appendChild(this.elements_.button);_.kc(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Vy("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;_.kc(this.elements_.button).appendChild(this.elements_.text);_.kc(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":b=!0,this.elements_.button=this.getYtIconButton_(),G=_.kc(this.elements_.button).firstElementChild,this.elements_.icon=G,this.setIconActive_(this.elements_.icon),
_.kc(this.elements_.endpoint).appendChild(this.elements_.button)}_.XA(this.hostElement,"is-icon-button",b);_.XA(this.hostElement,"is-paper-button",!b);_.XA(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;_.Eo((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&&_.kc(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){_.U("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){_.vN(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&&_.pv(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)_.U("handle_service_request_actions")||_.pv(this.hostElement,[this.serviceEndpoint]),
_.O3(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.U("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&&_.Su(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?_.pv(this.hostElement,[G]):_.Su(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,b=_.Eo((G=this.container.hostElement)!=null?G:this.container);b.lastChild&&b.lastChild.tagName!="STYLE";)try{b.removeChild(b.lastChild)}catch(I){break}},
getYtIconButton_:function(){var G=this.reuseEnabled_()?_.Vy("yt-icon-button"):document.createElement("yt-icon-button"),b=_.kc(G).firstElementChild;if(b&&b.is!="yt-icon"){for(b=_.kc(G);b.lastChild;)b.removeChild(b.lastChild);b=null}b||(b=this.getIcon_(),this.setIconActive_(b),_.kc(G).appendChild(b));return G},
reuseEnabled_:function(){return _.U("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Vy("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Vy("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.tsW={};
_.tsW.YtButtonBehavior=[rs.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 b;if((b=this.elements_)==null?0:b.button)this.elements_.button.pressed=!!G},
computeIconPositionType_:function(G){return G&&G.iconPosition||null},
computeEndpoint_:function(G){var b=G&&G.navigationEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.url"),h=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:G&&G.command&&G.command.modalEndpoint?G.command:I&&!h&&G.command?G.command:null},
computeServiceEndpoint_:function(G){var b=G&&G.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:I&&G.command?G.command:null},
computeCommand_:function(G){return G&&G.command||null},
computeButtonIcon_:function(G){return G&&G.icon&&G.icon.iconType?_.pn(G.icon.iconType):null},
computeButtonText_:function(G,b){return!b&&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 b=G&&G.style?G.style.toLowerCase().replace(/_/g,"-")+" ":"";b+=G&&G.size?G.size.toLowerCase().replace(/_/g,"-")+" ":"";G.colorData&&G.colorData.basicColorPaletteData&&G.colorData.basicColorPaletteData.borderColor&&(b+="palette-with-border");return b.trim()}}];var Lk={};var zY5;var o05;var iVb,P5n=function(){return iVb!==void 0?iVb:iVb=document.createElement("template")};
document.head.appendChild(P5n().content);var dnO;var yvO,rvJ=function(){return yvO!==void 0?yvO:yvO=document.createElement("template")};
document.head.appendChild(rvJ().content);var FWX;var HVn,WWz=function(){return HVn!==void 0?HVn:HVn=document.createElement("template")};
document.head.appendChild(WWz().content);var aoB;var NbA=document.head,Ylu=NbA.appendChild,C5z;if(aoB===void 0){var JvX=document.createElement("template");_.Z(JvX,"\x3c!--css-build:shady--\x3e");JvX.content.insertBefore(WWz().content.cloneNode(!0),JvX.content.firstChild);aoB=JvX}C5z=aoB;Ylu.call(NbA,C5z.content);var KWB=document.head,uB5=KWB.appendChild,RYu;if(FWX===void 0){var n0n=document.createElement("template");_.Z(n0n,"\x3c!--css-build:shady--\x3e");n0n.content.insertBefore(rvJ().content.cloneNode(!0),n0n.content.firstChild);FWX=n0n}RYu=FWX;uB5.call(KWB,RYu.content);var OVn=document.head,wkQ=OVn.appendChild,E0J;if(dnO===void 0){var pkJ=document.createElement("template");_.Z(pkJ,"\x3c!--css-build:shady--\x3e");pkJ.content.insertBefore(P5n().content.cloneNode(!0),pkJ.content.firstChild);dnO=pkJ}E0J=dnO;wkQ.call(OVn,E0J.content);var SlW;_.QO("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");SlW=_.U("web_button_rework")&&_.Sk("BUTTON_REWORK")||_.U("web_button_rework_with_live");_.FG=function(){return _.a.apply(this,arguments)||this};
_.M(_.FG,_.a);_.FG.prototype.created=function(){this.openPopupConfig=_.wy("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.FG.prototype.onYtNavigate_=function(G){var b=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);b&&(this.ytOpenPopupBehavior.openPopup(b),G.stopPropagation(),G.preventDefault())};
_.kV.Object.defineProperties(_.FG,{template:{configurable:!0,enumerable:!0,get:function(){if(o05===void 0){var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var b=G.content,I=b.insertBefore;zY5===void 0&&(zY5=document.createElement("template"));var h=zY5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);o05=G}G=o05;return G}}});
_.FG.prototype.onYtNavigate_=_.FG.prototype.onYtNavigate_;_.R([_.z(_.MD.YtOpenPopupBehavior),_.n("design:type",Object)],_.FG.prototype,"ytOpenPopupBehavior",void 0);_.R([_.z(_.tsW.YtButtonBehavior),_.n("design:type",Object)],_.FG.prototype,"ytButtonBehavior",void 0);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],_.FG.prototype,"onYtNavigate_",null);
_.R([_.g8({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:SlW})],_.FG);var XkA;var $gn=_.U("web_button_rework")&&_.Sk("BUTTON_REWORK")||_.U("web_button_rework_with_live"),H6=function(){var G=_.a.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(b){_.O3(G.hostElement,"yt-service-request-sent-button-renderer",b)};
return G};
_.M(H6,_.a);_.m=H6.prototype;_.m.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.m.onClick=function(G){var b,I=this.disabled||((b=this.data)==null?void 0:b.isDisabled);b=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");I&&b&&G.stopPropagation()};
_.m.computeIcon=function(){var G,b,I=(G=this.data)==null?void 0:(b=G.icon)==null?void 0:b.iconType;if(I)return _.pn(I)};
_.m.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.m.handleUpdateButtonAction=function(G){G=_.g(G,IiA);var b=_.g(G==null?void 0:G.updatedButton,_.bz);if(this.data&&G&&b){var I=this.data;I.targetId&&G.targetId&&I.targetId===G.targetId&&(this.data=b)}};
_.kV.Object.defineProperties(H6.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var G=this;if(this.data){var b=XKa({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.O3(G.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.O3(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});b.alignByText=this.alignByText;return b}}}});
_.kV.Object.defineProperties(H6,{template:{configurable:!0,enumerable:!0,get:function(){if(XkA===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');XkA=G}G=XkA;return G}}});
H6.prototype.onClick=H6.prototype.onClick;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],H6.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],H6.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],H6.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],H6.prototype,"isPressed",void 0);
_.R([_.H(),_.n("design:type",Object)],H6.prototype,"forceIconButton",void 0);_.R([_.H(),_.n("design:type",Object)],H6.prototype,"forceIconOnly",void 0);_.R([_.H(),_.n("design:type",Object)],H6.prototype,"forceModernIconButton",void 0);_.R([_.H(),_.n("design:type",Object)],H6.prototype,"skipCommandHandling",void 0);_.R([_.H(),_.n("design:type",Object)],H6.prototype,"alignByText",void 0);_.R([_.H(),_.n("design:type",Object)],H6.prototype,"buttonTooltipPosition",void 0);
_.R([_.H(),_.n("design:type",Object)],H6.prototype,"fitToVisibleBounds",void 0);_.R([_.H({computed:"computeTooltip(data)"}),_.n("design:type",Object)],H6.prototype,"tooltip",void 0);_.R([_.H(),_.n("design:type",Object)],H6.prototype,"overrides",void 0);_.R([_.H(),_.n("design:type",Boolean)],H6.prototype,"disabled",void 0);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],H6.prototype,"onClick",null);
_.R([_.P("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.n("design:type",Object),_.n("design:paramtypes",[])],H6.prototype,"computedButtonShape",null);_.R([_.g8({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!$gn,cssBuildOptOut:!0}),_.g8({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!$gn,cssBuildOptOut:!0})],H6);var GYe;var bxO;var W6=function(){var G=_.a.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};
_.M(W6,_.a);_.m=W6.prototype;_.m.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.m.ready=function(){var G=this.shouldShowPlaceholder_();_.SL(this.hostElement,"no-transition",!0);G&&this.hostElement.classList.add("with-placeholder")};
_.m.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.m.isThumbPreloaded_=function(G){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",G)};
_.m.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||Iyu};
_.m.computeThumbnailSrc_=function(G){return G&&G.thumbnails?_.KG(G.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.m.computeAlt_=function(){var G=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&G||""};
_.m.thumbnailChanged_=function(){var G=_.e([this.thumbnail,this.oldThumbnail_]),b=G.next().value;G=G.next().value;this.oldThumbnail_=b;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(G=this.computeThumbnailSrc_(G),this.computeThumbnailSrc_(b)===G))return;_.U("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(b)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):b&&_.Sk("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.D1(this,this.onReload_):_.D1(this,this.onShow_):this.resetImage_();b&&(this.hostElement.style.opacity=""+b.opacity)}};
_.m.delayedSrcChanged_=function(){var G=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===G||this.resetImage_()};
_.m.setSrc_=function(G){G?(_.Eo(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Eo(this.hostElement).querySelector("#img").src=G):(_.Eo(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.m.resetImage_=function(){$nq(this.hostElement);this.empty_=!0;this.setSrc_(Iyu);this.ytRendererBehavior.invalidate(!1)};
_.m.observePlaceholderColor_=function(){var G=this.thumbnail&&this.thumbnail.placeholderColor;G?this.hostElement.style.backgroundColor=_.Uo(G):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.m.onLoad_=function(){_.Eo(this.hostElement).querySelector("#img").src&&_.Eo(this.hostElement).querySelector("#img").src!==Iyu&&(XUp(this.hostElement),this.notifyOnLoaded&&_.O3(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.m.onError_=function(){var G=this;if(_.U("web_use_cache_for_image_fallback"))lou(_.Eo(this.hostElement).querySelector("#img").src).then(function(b){G.objectURL_=_.ul(b).toString();G.setSrc_(G.objectURL_)}).catch(function(){_.U("kevlar_woffle_fallback_image")&&G.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.m.onPrescanVisible=function(){this.onShow_()};
_.m.onVisible=function(){if(_.U("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.m.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var G=this.computeSrc_();G!==_.Eo(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(G))}};
_.m.onReload_=function(){this.empty_=!1;var G=this.computeSrc_();G!==_.Eo(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(G))};
_.m.shouldShowPlaceholder_=function(){return _.U("kevlar_thumbnail_bg")};
W6.prototype.observePlaceholderColor_=W6.prototype.observePlaceholderColor_;W6.prototype.delayedSrcChanged_=W6.prototype.delayedSrcChanged_;W6.prototype.thumbnailChanged_=W6.prototype.thumbnailChanged_;_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],W6.prototype,"alt",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],W6.prototype,"ariaHidden",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],W6.prototype,"ariaLabel",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],W6.prototype,"hidden",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],W6.prototype,"id",void 0);_.R([_.z(_.X6.YtVisibilityBehavior),_.n("design:type",Object)],W6.prototype,"ytVisibilityBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",String)],W6.prototype,"delayedSrc",void 0);
_.R([_.H(),_.n("design:type",Object)],W6.prototype,"thumbnail",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],W6.prototype,"loaded",void 0);_.R([_.H(),_.n("design:type",Boolean)],W6.prototype,"notifyOnLoaded",void 0);_.R([_.H(),_.n("design:type",Number)],W6.prototype,"height",void 0);_.R([_.H(),_.n("design:type",Number)],W6.prototype,"width",void 0);_.R([_.H({value:function(){return"width"}}),
_.n("design:type",String)],W6.prototype,"dimension",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],W6.prototype,"fit",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],W6.prototype,"fitHeight",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],W6.prototype,"fitWidth",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],W6.prototype,"objectFit",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],W6.prototype,"objectPosition",void 0);_.R([_.H(),_.n("design:type",String)],W6.prototype,"preferredThumbnail",void 0);_.R([_.H({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.n("design:type",String)],W6.prototype,"alt_",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],W6.prototype,"sharedTooltipText",void 0);
_.R([_.H(),_.n("design:type",Boolean)],W6.prototype,"ftlEligible",void 0);_.R([_.H({value:void 0}),_.n("design:type",String)],W6.prototype,"observeHiddenOption",void 0);_.R([_.H({value:"observe_once"}),_.n("design:type",String)],W6.prototype,"observePrescanOption",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],W6.prototype,"roundedContainer",void 0);
_.R([_.Dd("thumbnail"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W6.prototype,"thumbnailChanged_",null);_.R([_.Dd("delayedSrc"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W6.prototype,"delayedSrcChanged_",null);_.R([_.q5("thumbnail.placeholderColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W6.prototype,"observePlaceholderColor_",null);
_.R([_.g8({is:"yt-img-shadow",disableElementRegistration:!0})],W6);var Iyu=_.Sk("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.R9()(W6,"yt-img-shadow",function(){if(bxO===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;GYe===void 0&&(GYe=document.createElement("template"));var h=GYe;I.call(b,h.content.cloneNode(!0),G.content.firstChild);bxO=G}G=bxO;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 k1d;_.aS=new _.q3("SCREEN_MANAGER_TOKEN");k1d=new _.q3("LOG_INITIAL_SCREEN_TOKEN");var hvz=fk({entities:{}});_.ND=TB(hvz)(hvz.entities,{selectSfvAudioItemPlaybackState:function(G,b){var I,h;G=(h=_.Gi(G,"sfvAudioItemCurrentlyPlayingEntity",b))!=null?h:void 0;return(I=G==null?void 0:G.sfvAudioItemPlaybackState)!=null?I:void 0},
playlistLoopStateEntitySelector:bBs,toggleMenuServiceItemEntitySelector:IBr});_.YK=_.C(function(G){function b($a){return _.g($a,_.j6)}
function I(){var $a=h().isTogglingDisabled||t()&&h().toggledIsTogglingDisabled,ev=$a||T()?t():!t();y(ev);W(!1);if(!$a){var LO;(LO=V)==null||LO(!!ev)}var td;((td=l)==null?0:td())||_.yw(_.LL().resolve(_.aS),h().trackingParams);var xa;if(!ev||!b(h().defaultButtonViewModel)||(xa=l)!=null&&xa()){var Uj;!b(h().toggledButtonViewModel)||((Uj=l)==null?0:Uj())||_.yw(_.LL().resolve(_.aS),b(h().toggledButtonViewModel).trackingParams)}else _.yw(_.LL().resolve(_.aS),b(h().defaultButtonViewModel).trackingParams)}
var h=G.data,q=G.buttonShapeOverrides,l=G.disableExplicitClickLogging,V=G.onToggle,D=G.style,k=G.useOutlinedIcon,L=G.className,x=function(){var $a,ev;return t()?($a=G.animatedTextPropsToggled)==null?void 0:$a.call(G):(ev=G.animatedTextPropsDefault)==null?void 0:ev.call(G)},f=_.P$(function(){return x()?Object.assign({},x(),{shouldAnimate:F()}):void 0},void 0,"Zp4uoe"),T=function(){var $a;
return(($a=u())==null?void 0:$a.isToggled)!==void 0},B=_.e(_.bk(function(){var $a,ev,LO;
return T()?($a=u())==null?void 0:$a.isToggled:(LO=q==null?void 0:(ev=q())==null?void 0:ev.toggled)!=null?LO:h().isToggled})),A=B.next().value;
B=B.next().value;var t=A,y=B;B=_.e(_.bk(function(){var $a,ev;return($a=G.animatedTextPropsToggled)==null?void 0:(ev=$a.call(G))==null?void 0:ev.shouldAnimate}));
A=B.next().value;B=B.next().value;var F=A,W=B;A=_.e(_.ZZ(!1,void 0,"mq3Zfe"));var O=A.next().value,K=A.next().value,u=_.m2(function($a){a:{var ev=h().entityKey,LO=h().toggledStateEntitySelectorType;if(LO)switch(LO){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!ev)break;$a=_.ND.selectSfvAudioItemPlaybackState($a,ev);if($a==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){$a={isToggled:!0};break a}if($a){$a={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":$a=
{isToggled:_.jtr($a).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":$a={isToggled:_.jtr($a).includes("engagement-panel-live-chat-item-section")};break a;default:_.RB(new _.Wf("Error: entitySelectorType defined but not matched in selector.",$a,LO))}$a=void 0}return $a}),w=function(){return Object.assign({},q==null?void 0:q(),{onToggle:I,
toggleable:!0,toggled:t(),focused:O()})};
return _.v("toggle-button-view-model",{"on:focusin":_.Xu(function(){var $a=_.LL().resolve(_.vf(_.v6));$a&&K($a.isKeyBoardInUse());return!1}),
"on:focusout":_.Xu(function(){K(!1);return!1})},_.v(_.Q,{cond:function(){return t()?b(h().toggledButtonViewModel):b(h().defaultButtonViewModel)},
then:function($a){return _.v(_.sQ,{data:$a,className:L,style:D,useOutlinedIcon:k,buttonOverrides:w,animatedTextProps:f})}}))},"da");
_.YK.idomCompat={callbacks:{onToggle:!0}};_.JN(_.C(function(G){return _.v("yt-toggle-button-view-model",{class:function(){var b;return(b=G.scopingClassName)==null?void 0:b.call(G)}},_.v(_.YK,{data:function(){var b;
return(b=G.data)==null?void 0:b.call(G)},
buttonShapeOverrides:function(){var b;return(b=G.overrides)==null?void 0:b.call(G)},
animatedTextPropsDefault:function(){var b;return(b=G.animatedTextPropsDefault)==null?void 0:b.call(G)},
animatedTextPropsToggled:function(){var b;return(b=G.animatedTextPropsToggled)==null?void 0:b.call(G)},
disableExplicitClickLogging:function(){var b;return(b=G.disableExplicitClickLogging)==null?void 0:b.call(G)},
onToggle:function(b){var I;return(I=G.onToggle)==null?void 0:I.call(G,b)},
style:function(){var b;return(b=G.style)==null?void 0:b.call(G)},
useOutlinedIcon:function(){var b;return(b=G.useOutlinedIcon)==null?void 0:b.call(G)},
className:function(){var b;return(b=G.className)==null?void 0:b.call(G)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.hV,
buttonShapeOverrides:_.hV,overrides:_.hV,animatedTextPropsDefault:_.hV,animatedTextPropsToggled:_.hV,disableExplicitClickLogging:_.hV,onToggle:_.No,style:_.hV,useOutlinedIcon:_.hV,className:_.hV,scopingClassName:_.hV}});var CP=function(){return _.a.apply(this,arguments)||this};
_.M(CP,_.a);CP.prototype.onTap=function(G){G.stopPropagation();G=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.BR("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:G})):this.ytLiveChatReduxBehavior.dispatch(_.Da("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:G}))};
_.kV.Object.defineProperties(CP.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=_.g(this.data.toggleButton,_.mS),b;if(Number(((b=this.likeCountState)==null?void 0:b.likeCountIfIndifferentNumber)||"0")===0){var I;b=((I=this.data.likeCountPlaceholder)==null?void 0:I.content)||""}else{var h,q,l;b=((h=this.likeCountState)==null?void 0:(q=h.likeCountIfIndifferent)==null?void 0:q.content)||((l=this.data.likeCountPlaceholder)==null?void 0:l.content)||""}var V,D;I=((V=this.likeCountState)==null?void 0:(D=
V.likeCountIfLiked)==null?void 0:D.content)||"1";V=_.g(G.toggledButtonViewModel,_.j6);return Object.assign({},G,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.g(G.defaultButtonViewModel,_.j6),{title:b})},toggledButtonViewModel:{buttonViewModel:Object.assign({},V,{title:I})}})}}}});
CP.prototype.onTap=CP.prototype.onTap;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],CP.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ON),_.n("design:type",Object)],CP.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],CP.prototype,"data",void 0);
_.R([_.H({selectorArgs:["data.likeCountEntityKey"],selector:lBX}),_.n("design:type",Object)],CP.prototype,"likeCountState",void 0);_.R([_.H({selectorArgs:["data.engagementStateKey"],selector:LVO}),_.n("design:type",Object)],CP.prototype,"engagementState",void 0);_.R([_.P("data","engagementState"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],CP.prototype,"isLiked",null);
_.R([_.P("data","likeCountState","isLiked"),_.n("design:type",Object),_.n("design:paramtypes",[])],CP.prototype,"toggleButton",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],CP.prototype,"onTap",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],CP);
_.J(CP,"yt-live-chat-like-button-view-model",function(){if(loi===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;jqX===void 0&&(jqX=document.createElement("template"));var h=jqX;I.call(b,h.content.cloneNode(!0),G.content.firstChild);loi=G}G=loi;return G},{mode:0});var q6n;var jDb;var JV=function(){return _.a.apply(this,arguments)||this};
_.M(JV,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],JV.prototype,"data",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],JV);
_.J(JV,"yt-live-chat-paid-message-footer-renderer",function(){if(jDb===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;q6n===void 0&&(q6n=document.createElement("template"));var h=q6n;I.call(b,h.content.cloneNode(!0),G.content.firstChild);jDb=G}G=jDb;return G},{mode:0});var lyb;var mgJ;var evQ;var V95,Dgn=function(){if(V95!==void 0)return V95;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;evQ===void 0&&(evQ=document.createElement("template"));var h=evQ;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return V95=G};var KP=function(){return _.a.apply(this,arguments)||this};
_.M(KP,_.a);KP.prototype.onTap=function(G){G.stopPropagation()};
_.kV.Object.defineProperties(KP.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=_.g(this.data.replyButton,_.j6),b,I,h,q,l,V,D,k=Number(((b=this.replyCountState)==null?void 0:b.replyCountNumber)||"0")===0?(I=this.data)==null?void 0:(h=I.replyCountPlaceholder)==null?void 0:h.content:((q=this.replyCountState)==null?void 0:(l=q.replyCount)==null?void 0:l.content)||((V=this.data)==null?void 0:(D=V.replyCountPlaceholder)==null?void 0:D.content)||"",L;return Object.assign({},
G,{title:k,accessibilityText:(L=this.replyCountState)==null?void 0:L.replyButtonAccessibilityText})}}}});
_.kV.Object.defineProperties(KP,{template:{configurable:!0,enumerable:!0,get:function(){return Dgn()}}});
KP.prototype.onTap=KP.prototype.onTap;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],KP.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ON),_.n("design:type",Object)],KP.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],KP.prototype,"data",void 0);
_.R([_.H({selectorArgs:["data.replyCountEntityKey"],selector:function(G,b){return _.Gi(G.entities,"replyCountEntity",b)}}),
_.n("design:type",Object)],KP.prototype,"replyCountState",void 0);_.R([_.P("data","replyCountState"),_.n("design:type",Object),_.n("design:paramtypes",[])],KP.prototype,"buttonViewModel",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],KP.prototype,"onTap",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],KP);_.J(KP,"yt-live-chat-reply-button-view-model",function(){return Dgn()},{mode:0});var c6X;var kYi;var uD=function(){var G=_.a.apply(this,arguments)||this;G.ariaLabel="";return G};
_.M(uD,_.a);
uD.prototype.dataChanged=function(){for(var G=(0,_.$y)(_.Eo(this.hostElement).querySelector("#image"));G.firstChild;)G.removeChild(G.firstChild);if(this.data)if(this.data.icon){var b=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(b.polymerController.icon="yt-sys-icons:shield-filled",b.polymerController.defaultToFilled=!0):b.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();G.appendChild(b)}else if(this.data.customThumbnail){b=document.createElement("img");
var I=_.RFB(this.data.customThumbnail.thumbnails,16);I?(b.src=I,G.appendChild(b),b.setAttribute("alt",this.hostElement.ariaLabel||"")):_.RB(new _.Wf("Could not compute URL for thumbnail",this.data.customThumbnail))}};
uD.prototype.identity=function(G){return G};
uD.prototype.computeType=function(G){return Oh(G||void 0)};
uD.prototype.dataChanged=uD.prototype.dataChanged;_.R([_.H(),_.n("design:type",Object)],uD.prototype,"data",void 0);_.R([_.H({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.n("design:type",Object)],uD.prototype,"ariaLabel",void 0);_.R([_.H({computed:"computeType(data)",reflectToAttribute:!0}),_.n("design:type",String)],uD.prototype,"type",void 0);
_.R([_.H({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.n("design:type",String)],uD.prototype,"sharedTooltipText",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("live_chat_enable_new_moderator_badge")}}),
_.n("design:type",Boolean)],uD.prototype,"enableNewModeratorBadge",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uD.prototype,"dataChanged",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],uD);
_.J(uD,"yt-live-chat-author-badge-renderer",function(){if(kYi===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;c6X===void 0&&(c6X=document.createElement("template"));var h=c6X;I.call(b,h.content.cloneNode(!0),G.content.firstChild);kYi=G}G=kYi;return G},{mode:0});var vsi;var LVJ;var RS=function(){return _.a.apply(this,arguments)||this};
_.M(RS,_.a);_.m=RS.prototype;_.m.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"}}}}};
_.m.computeBadgesInsideChip=function(G){return G?G.filter(function(b){return Oh(b.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.m.computeBadgesOutsideChip=function(G){return this.prependChatBadges||!G?[]:G.filter(function(b){b=Oh(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"})};
_.m.computeBadgesBeforeChip=function(G){return this.prependChatBadges&&G?G.filter(function(b){b=Oh(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"}):[]};
_.m.computeIsHighlighted=function(G,b){var I=!!kEd(G,"owner"),h=!!kEd(G,"verified");G=!!kEd(G,"moderator");return(I||h&&!G)&&!b};
_.m.computeAuthorType=function(G){return chd(G)};
_.m.computeAuthorClass=function(G,b){return b?(G?G+" ":"")+"single-line":G};
_.m.onSeedColorChanged=function(){_.U("live_chat_author_name_color_usernames")||_.U("live_chat_seed_color_usernames")||_.U("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):_.U("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
RS.prototype.onSeedColorChanged=RS.prototype.onSeedColorChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],RS.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],RS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],RS.prototype,"authorName",void 0);_.R([_.H(),_.n("design:type",Array)],RS.prototype,"authorBadges",void 0);
_.R([_.H({computed:"computeAuthorType(authorBadges)"}),_.n("design:type",String)],RS.prototype,"authorType",void 0);_.R([_.H({computed:"computeAuthorClass(authorType, singleLine)"}),_.n("design:type",String)],RS.prototype,"authorClass",void 0);_.R([_.H({computed:"computeBadgesInsideChip(authorBadges)"}),_.n("design:type",Array)],RS.prototype,"badgesInsideChip",void 0);_.R([_.H({computed:"computeBadgesOutsideChip(authorBadges)"}),_.n("design:type",Array)],RS.prototype,"badgesOutsideChip",void 0);
_.R([_.H({computed:"computeBadgesBeforeChip(authorBadges)"}),_.n("design:type",Array)],RS.prototype,"badgesBeforeChip",void 0);_.R([_.H({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.n("design:type",Boolean)],RS.prototype,"isHighlighted",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],RS.prototype,"singleLine",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],RS.prototype,"disableHighlighting",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],RS.prototype,"dashboardMoneyFeed",void 0);_.R([_.H({value:_.U("live_chat_prepend_badges"),reflectToAttribute:!0}),_.n("design:type",Boolean)],RS.prototype,"prependChatBadges",void 0);_.R([_.H(),_.n("design:type",String)],RS.prototype,"authorNameColor",void 0);_.R([_.lH("#author-name"),_.n("design:type",HTMLDivElement)],RS.prototype,"username",void 0);
_.R([_.q5("authorNameColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RS.prototype,"onSeedColorChanged",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],RS);
_.J(RS,"yt-live-chat-author-chip",function(){if(LVJ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;vsi===void 0&&(vsi=document.createElement("template"));var h=vsi;I.call(b,h.content.cloneNode(!0),G.content.firstChild);LVJ=G}G=LVJ;return G},{mode:0});var QDO;var xgX;var nP=function(){var G=_.a.apply(this,arguments)||this;G.debounceCommand=_.A8(function(b){G.ytComponentBehavior.resolveCommand(b)},1500);
return G};
_.M(nP,_.a);nP.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",b,I,h=this.isHearted?(b=this.data)==null?void 0:b.unheartCommand:(I=this.data)==null?void 0:I.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.BR("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:G}));(G=_.s0(h))&&this.debounceCommand(G)}};
_.kV.Object.defineProperties(nP.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var G,b;if(!((G=this.data)==null?0:(b=G.creatorThumbnail)==null?0:b.sources))return{};G={thumbnails:[]};b={};b.url=this.data.creatorThumbnail.sources[0].url;G.thumbnails.push(b);return G}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.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,b,I;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.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}}});
nP.prototype.onTap=nP.prototype.onTap;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],nP.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ON),_.n("design:type",Object)],nP.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],nP.prototype,"data",void 0);
_.R([_.H({selectorArgs:["data.engagementStateKey"],selector:LVO}),_.n("design:type",Object)],nP.prototype,"engagementState",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],nP.prototype,"thumbnailDetails",null);_.R([_.P("data","engagementState"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nP.prototype,"isHearted",null);_.R([_.P("data","engagementState"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nP.prototype,"isEditable",null);
_.R([_.P("data","engagementState"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nP.prototype,"showCreatorView",null);_.R([_.P("data","engagementState"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nP.prototype,"showButton",null);_.R([_.P("data","isHearted"),_.n("design:type",String),_.n("design:paramtypes",[])],nP.prototype,"label",null);_.R([_.P("data","isHearted"),_.n("design:type",Object),_.n("design:paramtypes",[])],nP.prototype,"heartHoverText",null);
_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nP.prototype,"onTap",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],nP);
_.J(nP,"yt-live-chat-creator-heart-view-model",function(){if(xgX===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;QDO===void 0&&(QDO=document.createElement("template"));var h=QDO;I.call(b,h.content.cloneNode(!0),G.content.firstChild);xgX=G}G=xgX;return G},{mode:0});var OQ=function(G,b){this.serviceId=new UyA(G,b)};
OQ.prototype.toString=function(){return this.serviceId.toString()};var fyB=function(){this.internalMap={}};
_.m=fyB.prototype;_.m.contains=function(G){return Object.prototype.hasOwnProperty.call(this.internalMap,G)};
_.m.get=function(G){if(this.contains(G))return this.internalMap[G]};
_.m.set=function(G,b){this.internalMap[G]=b};
_.m.getKeys=function(){return Object.keys(this.internalMap)};
_.m.remove=function(G){delete this.internalMap[G]};var ws=function(){this.mappings=new fyB;this.errorCallbacks=new Set};
ws.prototype.getModuleId=function(G){return G.serviceId.getModuleId()};
ws.prototype.get=function(G){var b=this.mappings.get(G.toString());return T3J(this,b,G)};
ws.prototype.getMultipleAsync=function(){var G=_.RI.apply(0,arguments),b=this,I=G.map(function(k){return b.getModuleId(k)}),h=G.map(function(k){return b.mappings.get(k.toString())}).filter(function(k){return k});
if(h.length===G.length)return _.X8(h.map(function(k,L){return T3J(b,k,G[L])}));
var q=J2().loadMultiple(I);h=_.oT(I.map(function(k){return q[k]}));
var l=document.hidden,V=-1,D=_.Te("get_async_timeout_ms",-1);D>-1&&(V=setTimeout(function(){_.RB(new _.Wf("Module timeout.",I,l,document.hidden))},D));
return _.i1(h.then(function(){return G.map(function(k){return T3J(b,b.mappings.get(k.toString()),k)})}).thenCatch(function(k){for(var L=_.e(b.errorCallbacks),x=L.next();!x.done;x=L.next())x=x.value,x(k);
throw k;}),function(){clearTimeout(V)})};
ws.prototype.registerService=function(G,b){this.mappings.set(G.toString(),{type:"mapping",value:b});return G};
var T3J=function(G,b,I){switch(b.type){case "mapping":return b.value;case "factory":return b=b.value(),G.mappings.set(I.toString(),{type:"mapping",value:b}),b;default:return _.Eu(b)}};
ws.prototype.onLoadError=function(G){var b=this;this.errorCallbacks.add(G);return function(){b.errorCallbacks.delete(G)}};
_.EQ=new ws;var B3n=function(){};
_.m=B3n.prototype;
_.m.JSC$14237_getRequest=function(G,b,I){b=b===void 0?{}:b;I=I===void 0?MXO:I;var h=b;if(this.isNavigationCommand()){var q,l=(q=_.g(G==null?void 0:G.commandMetadata,_.IW))==null?void 0:q.url;h=_.xVd(G.clickTrackingParams,!0,!1,l,this.JSC$14237_getClientScreen(h))}else h=_.xVd(G.clickTrackingParams,!1,this.includeCsn);h={context:h};if(q=this.getExtension(G))return this.JSC$14237_buildRequest(h,q,b),q=this.getApiUrl(G),l=Object.assign({},{command:G},this.getRequestConfig(G,b)),h={input:q,requestShell:F8(q),
innerTubeRequest:h,config:l},h.config.authStrategy?h.config.authStrategy.identity=I:h.config.authStrategy={identity:I},(G=this.JSC$14237_getRequestKey(G,b))&&!h.config.requestKey&&(h.config.requestKey=G),h;G=new _.Wf("Error: Failed to create Request from Command.",G);_.K1(G)};
_.m.getApiUrl=function(G){var b=_.JQ(this.getApiPaths(G)),I;(G=(I=_.g(G.commandMetadata,_.IW))==null?void 0:I.apiUrl)&&(b=G);return YKu(NrO(b))};
_.m.isNavigationCommand=function(){return!1};
_.m.JSC$14237_getClientScreen=function(){};
_.m.JSC$14237_getRequestKey=function(){};
_.m.getRequestConfig=function(){};
_.kV.Object.defineProperties(B3n.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var pP=function(){};
_.M(pP,B3n);pP.prototype.JSC$14244_getStoreKey=function(){};
pP.prototype.JSC$14237_getRequestKey=function(G,b){b=b===void 0?{}:b;return this.JSC$14244_getStoreKey(G,b)};var Sd=function(){};
_.M(Sd,pP);Sd.prototype.JSC$14237_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:F8("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Sd.prototype.getApiPaths=function(){return[]};
Sd.prototype.getExtension=function(){};
Sd.prototype.JSC$14237_buildRequest=function(){};var Ugb={},sD5=(Ugb.GET_DATASYNC_IDS=MK(Sd),Ugb);var gsO,A6i,M9A,PKb,XG,os5,Zxi,zvb,t9J;gsO="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");A6i=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.ik=function(G,b,I,h,q,l,V,D,k){this.endpointMap=G;this.networkManager=b;this.authService=I;this.responseProcessorMap=h;this.innertubeResponseStore=q;this.contextProcessors=l;this.asyncContextProcessors=V;this.localInnertubeRouter=D;this.requestSequencer=k;this.inflightRequests=new Map;G.signalEndpointMap||(G.signalEndpointMap={});G.signalEndpointMap=Object.assign({},sD5,G.signalEndpointMap)};
M9A=function(G,b,I,h,q,l,V,D,k){if(_.ik.instance!==void 0){if(h=_.ik.instance,G=[G!==h.endpointMap,b!==h.networkManager,I!==h.authService,q!==h.innertubeResponseStore,l!==h.contextProcessors,V!==h.asyncContextProcessors,D!==h.localInnertubeRouter],G.some(function(L){return L}))throw new _.Wf("InnerTubeTransportService is already initialized",G);
}else _.ik.instance=new _.ik(G,b,I,h,q,l,V,D,k)};
_.dR=function(G,b,I){var h=h===void 0?MXO:h;var q=Zxi(G,b);return q?new _.MB(function(l,V){var D,k,L,x,f;return _.c(function(T){switch(T.nextAddress){case 1:return T.yield(q,2);case 2:D=T.yieldResult;k=D.JSC$14237_getRequest(b,I,h);if(!k){V(new _.Wf("Error: Failed to build request for command.",b));T.jumpTo(0);break}ZL(k.input);x=((L=k.requestShell)==null?void 0:L.mode)==="cors"?"cors":void 0;if(G.authService.syncHeaders){f=t9J(k.config,x);T.jumpTo(4);break}return T.yield(zvb(k.config,x),5);case 5:f=
T.yieldResult;case 4:l(os5(G,k,f)),_.ip(T)}})}):_.vv(new _.Wf("Error: No request builder found for command.",b))};
PKb=function(G,b,I,h){var q=q===void 0?MXO:q;var l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u,w;return _.c(function($a){switch($a.nextAddress){case 1:l=DNr(b,G.endpointMap);if(!l)throw new _.Wf("Error: No streaming request builder found for command",b);V=l.JSC$14237_getRequest(b,I,q);if(!V)throw new _.Wf("Failed to build YtRequest for streaming Command",b);if((D=G.localInnertubeRouter)==null||!D.shouldPreferLocalResponse(V.input,V.innerTubeRequest)){$a.jumpTo(2);break}return $a.yield(G.localInnertubeRouter.localInnertubeResponse(V.input,
V.innerTubeRequest),3);case 3:return k=$a.yieldResult,L={},k.playerResponse&&(XG(G,k.playerResponse,V),L.player=k.playerResponse,(x=h)==null||x(L,k)),k.watchNextResponse&&(XG(G,k.watchNextResponse,V),L.content=k.watchNextResponse,(f=h)==null||f(L,k)),$a.return(L);case 2:B=((T=V.requestShell)==null?void 0:T.mode)==="cors"?"cors":void 0;if(G.authService.syncHeaders){A=t9J(V.config,B);$a.jumpTo(4);break}return $a.yield(zvb(V.config,B),5);case 5:A=$a.yieldResult;case 4:return F=(y=(t=V.requestShell)==
null?void 0:t.headers)!=null?y:{},V.requestShell=Object.assign({},V.requestShell,{headers:Object.assign({},F,A)}),W=Object.assign({},V.requestShell),O=JSON.stringify(V.innerTubeRequest),V.requestShell.method==="POST"&&(W=Object.assign({},W,{body:O})),K=function(ev,LO){XG(G,LO.playerResponse||LO.watchNextResponse||LO.reelItemWatchResponse||LO.reelWatchSequenceResponse,V);h==null||h(ev,LO);_.U("web_watch_stop_scheduler_on_player_response")&&LO.playerResponse&&iUQ()},u={},$a.yield(ixz(G.networkManager,
V.input,W,K),6);
case 6:return u=$a.yieldResult,((w=V.config)==null?0:w.responseTick)&&_.sS(V.config.responseTick),$a.return(u)}})};
_.qS=function(G,b,I,h,q){q=q===void 0?{authStrategy:{identity:MXO}}:q;var l=l===void 0?!0:l;var V=function(){};
V=XBj(pBs(I));b.context||(b.context=_.xVd(h,l));return new _.MB(function(D){var k,L,x,f,T;return _.c(function(B){if(B.nextAddress==1)return k=NrO(I),L=_.rL(k),G.authService.syncHeaders?(x=t9J(q,L),B.jumpTo(2)):B.yield(zvb(q,L),3);B.nextAddress!=2&&(x=B.yieldResult);f=YKu(NrO(I));T={input:f,requestShell:F8(f),innerTubeRequest:b,config:q};D(os5(G,T,x,V));_.ip(B)})})};
XG=function(G,b,I){var h;if(b&&!(b==null?0:(h=b.sequenceMetaData)==null?0:h.skipProcessing)&&G.responseProcessorMap){h=_.e(gsO);for(var q=h.next();!q.done;q=h.next())q=q.value,G.responseProcessorMap[q]&&G.responseProcessorMap[q].handleResponse(b,I)}};
os5=function(G,b,I,h){h=h===void 0?function(){}:h;
var q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u,w,$a,ev,LO,td,xa,Uj,W2,is,su,an,A5,XO,kb,rz,on,Ac,U1,mp,bn,xb,j8;return _.c(function(BX){switch(BX.nextAddress){case 1:V=(q=b.config)==null?void 0:(l=q.storeStrategy)==null?void 0:l.storeKey;if(!(V&&G.innertubeResponseStore&&G.innertubeResponseStore.has(V))||((D=b.config)==null?0:(k=D.storeStrategy)==null?0:k.disableCache)){BX.jumpTo(2);break}return BX.yield(G.innertubeResponseStore.get(V),3);case 3:if((L=BX.yieldResult)&&!L.isExpired())return BX.return(Promise.resolve(_.uP(L)));
case 2:if(!((x=b)==null?0:(f=x.innerTubeRequest)==null?0:f.context)){BX.jumpTo(4);break}T=b.innerTubeRequest.context;if(!(G.asyncContextProcessors&&G.asyncContextProcessors.length>0)){BX.jumpTo(5);break}B=[];A=_.e(G.asyncContextProcessors);for(t=A.next();!t.done;t=A.next())y=t.value,F=y.processContext(b),F.wrappedPromise_&&B.push(F.wrappedPromise_);if(!(B.length>0)){BX.jumpTo(5);break}return BX.yield(Promise.all(B),5);case 5:W=_.e(G.contextProcessors||[]),O=W.next();case 8:if(O.done){BX.jumpTo(4);
break}K=O.value;return BX.yield(K.processContext(T),9);case 9:O=W.next();BX.jumpTo(8);break;case 4:if((u=G.localInnertubeRouter)==null||!u.shouldPreferLocalResponse(b.input,b.innerTubeRequest)){BX.jumpTo(12);break}return BX.yield(G.localInnertubeRouter.localInnertubeResponse(b.input,b.innerTubeRequest),13);case 13:return w=BX.yieldResult,XG(G,w,b),BX.return(w);case 12:return(LO=(ev=b.config)==null?void 0:ev.requestKey)&&G.inflightRequests.has(LO)?$a=G.inflightRequests.get(LO):(td=JSON.stringify(b.innerTubeRequest),
W2=(Uj=(xa=b.requestShell)==null?void 0:xa.headers)!=null?Uj:{},b.requestShell=Object.assign({},b.requestShell,{headers:Object.assign({},W2,I)}),is=Object.assign({},b.requestShell),b.requestShell.method==="POST"&&(is=Object.assign({},is,{body:td})),((su=b.config)==null?0:su.requestTick)&&_.sS(b.config.requestTick),an=function(){return G.networkManager.fetch(b.input,is,b.config)},$a=G.requestSequencer?dgu(G.requestSequencer,b,an):an(),LO&&G.inflightRequests.set(LO,$a)),BX.yield($a,14);
case 14:(A5=BX.yieldResult)&&_.U("web_streaming_player")&&Array.isArray(A5)&&(A5=A5[0].playerResponse);if(A5&&"error"in A5&&((XO=A5)==null?0:(kb=XO.error)==null?0:kb.details))for(rz=A5.error.details,on=_.e(rz),Ac=on.next();!Ac.done;Ac=on.next())U1=Ac.value,(mp=U1["@type"])&&A6i.indexOf(mp)>-1&&(delete U1["@type"],A5=U1);LO&&G.inflightRequests.has(LO)&&G.inflightRequests.delete(LO);((bn=b.config)==null?0:bn.responseTick)&&_.sS(b.config.responseTick);if(A5||(xb=G.localInnertubeRouter)==null||!xb.canProvideFallbackResponse(b.input,
b.innerTubeRequest)){BX.jumpTo(15);break}return BX.yield(G.localInnertubeRouter.localFallbackInnertubeResponse(b.input,b.innerTubeRequest),16);case 16:A5=BX.yieldResult;case 15:return XG(G,A5,b),((j8=b.config)==null?0:j8.processorTick)&&_.sS(b.config.processorTick),h(),BX.return(A5||void 0)}})};
_.PN=function(G,b){return VpO(b,G.endpointMap)};
Zxi=function(G,b){G=cmq(b,G.endpointMap);if(G!==void 0)return Promise.resolve(G)};
zvb=function(G,b){var I,h,q,l;return _.c(function(V){if(V.nextAddress==1){q=(I=G)==null?void 0:(h=I.authStrategy)==null?void 0:h.sessionIndex;var D=V.yield;var k=_.X8(nSX({sessionIndex:q}));return D.call(V,k,2)}l=V.yieldResult;return V.return(Promise.resolve(Object.assign({},k_d(b),l)))})};
t9J=function(G,b){var I;G=G==null?void 0:(I=G.authStrategy)==null?void 0:I.sessionIndex;I=nSX({sessionIndex:G});return Object.assign({},k_d(b),I)};var y6X,r6u,FVB,Hxz,WVz,ayX,CKB,J6z,bh,KVi,ufW,Y6b,RvX;y6X=0;r6u=/tone[1-5]/;FVB=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Hxz="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
WVz=Number.MAX_SAFE_INTEGER;ayX=RegExp("\ufe0f","g");_.$k=function(G){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;G&&_.N3n(this,G)};
_.N3n=function(G,b){try{_.ze(b,{context:G,onSuccess:function(h,q){Array.isArray(q)?G.load(q):(h=new _.Wf("Emoji manager JSON response was not an array!",{response:q}),_.K1(h))},
onError:function(h){h=new _.Wf("Failed to retrieve emoji manager initial JSON data!",{url:b,statusCode:_.gi(h).toString()});_.RB(h)}})}catch(h){var I=new _.Wf("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:b});
_.RB(I)}};
_.$k.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.$k.prototype.load=function(G,b){if(b)if(G.length)G=G.concat(b.emojis);else{this.emojis=b.emojis;this.emojiMap=b.emojiMap;this.emojiShortcutMap=b.emojiShortcutMap;this.emojiShortcutCharMap=Y6b(b);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=b.emojiRegex;return}this.emojis=[].concat(_.Nz(new Set(this.emojis.concat(G))));this.hasInitializedShortcutCharMap=!1;G=Array(this.emojis.length);for(b=0;b<this.emojis.length;b++){var I=this.emojis[b];if(I.emojiId){this.emojiMap[I.emojiId]=I;this.emojiMap[I.emojiId].index=
b;for(var h=0;I.shortcuts&&h<I.shortcuts.length;h++)this.emojiShortcutMap[I.shortcuts[h].toLocaleLowerCase()]=I;G[b]=I.isCustomEmoji&&I.shortcuts?I.shortcuts[0]:I.emojiId}}G.sort(function(q,l){return l.length-q.length});
if(G.length)try{this.emojiRegex=new RegExp(G.join("|").replace("*","\\*"),"gi")}catch(q){this.emojiRegex=/$./}else this.emojiRegex=/$./};
CKB=function(G,b){b=_.e(b);for(var I=b.next();!I.done;I=b.next()){var h=I.value;if(h.emojiId&&G.emojiMap[h.emojiId]){I=Object.assign({},G.emojiMap[h.emojiId],h);G.emojiMap[h.emojiId]=I;var q=void 0;I.index&&((q=G.emojis[I.index])==null?void 0:q.emojiId)===h.emojiId&&(G.emojis[I.index]=I);h=void 0;if((h=I.shortcuts)==null?0:h.length)for(G.hasInitializedShortcutCharMap=!1,h=_.e(I.shortcuts),q=h.next();!q.done;q=h.next())G.emojiShortcutMap[q.value.toLocaleLowerCase()]=I}}};
J6z=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return h.yield(_.nm.getInstance(),2);if(h.nextAddress!=3)return(b=h.yieldResult)?h.yield(b.get("ytlc-emoji-pref"),3):h.return();(I=h.yieldResult)&&CKB(G,Object.keys(I).map(function(q){return{emojiId:q,stickyPrefId:I[q]}}).filter(function(q){return!!q.emojiId&&!!q.stickyPrefId}));
_.ip(h)})};
_.GN=function(G,b,I){return(G=G.emojiMap[b])&&(!G.isLocked||I!==void 0&&I)?G:void 0};
bh=function(G,b,I){I=_.GN(G,b,I===void 0?!1:I);var h=b.match("\u200d");I&&G.skinTone!==0&&(G=(h==null?void 0:h.length)===1?_.GN(G,b.replace("\u200d",FVB[G.skinTone]+"\u200d")):_.GN(G,b+FVB[G.skinTone]))&&(I=G);return I};
KVi=function(G,b){var I=G.emojiMap[b];return(I==null?0:I.stickyPrefId)?G.emojiMap[I.stickyPrefId]:bh(G,b)};
_.E2=function(G,b){G=G.emojiShortcutMap[b.toLocaleLowerCase()];return!G||G.isLocked?null:G};
ufW=function(G,b,I){return Y6b(G,I===void 0?!1:I)[b]||{}};
Y6b=function(G,b){b=b===void 0?!1:b;if(!G.hasInitializedShortcutCharMap){G.hasInitializedShortcutCharMap=!0;for(var I=0;I<G.emojis.length;I++){var h=G.emojis[I];if(!(h.isLocked||b&&h.isCustomEmoji&&h.emojiId&&!G.pickerCustomEmojiIds.includes(h.emojiId)))for(var q=0;h.shortcuts&&q<h.shortcuts.length;q++){var l=h.shortcuts[q];l.startsWith(":_")&&h.isCustomEmoji&&(G.emojiShortcutCharMap[":_"]==null&&(G.emojiShortcutCharMap[":_"]=Object.create(null)),G.emojiShortcutCharMap[":_"][l]=h);if(!(l.length<3||
!h.isCustomEmoji&&r6u.test(l))){var V=l.substr(0,3).toLocaleLowerCase();G.emojiShortcutCharMap[V]==null&&(G.emojiShortcutCharMap[V]=Object.create(null));G.emojiShortcutCharMap[V][l]=h}}}}return G.emojiShortcutCharMap};
_.$k.prototype.createEmoji=function(G,b){b=b===void 0?!0:b;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?_.KG(G.image.thumbnails,this.emojiSize)||"":"";var h=void 0;G.image&&G.image.accessibility&&G.image.accessibility.accessibilityData&&(h=G.image.accessibility.accessibilityData.label);I.alt=h?h:(G.isCustomEmoji&&G.shortcuts?G.shortcuts[0]:G.emojiId)||"";G.isCustomEmoji&&(I.dataset.emojiId=
G.emojiId);_.Sf&&(I.setAttribute("contenteditable","false"),I.setAttribute("unselectable","on"));b&&(G.shortcuts&&G.shortcuts.length&&I.setAttribute("shared-tooltip-text",G.shortcuts[0]),I.id="emoji-"+y6X++);return I};
_.$k.prototype.createDocumentFragment=function(G,b,I,h){b=b===void 0?!1:b;I=I===void 0?!0:I;h=h===void 0?!1:h;G=G.replace(ayX,"");for(var q=document.createDocumentFragment(),l=0,V,D=0;(V=this.emojiRegex.exec(G))!=null;){var k=_.GN(this,V[0])||_.E2(this,V[0]);!k||k.isCustomEmoji&&!b||(k=this.createEmoji(k,I),l!==V.index&&q.appendChild(document.createTextNode(G.substring(l,V.index))),q.appendChild(k),l=V.index+V[0].length,D++)}if(!h||D)return q.appendChild(document.createTextNode(G.substr(l))),q};
RvX=function(G,b,I){var h,q,l,V,D,k,L,x,f;return _.c(function(T){if(T.nextAddress==1){if(!b.emojiId||!G.emojiMap[b.emojiId])return T.return();h=Object.assign({},G.emojiMap[b.emojiId],{stickyPrefId:I});G.emojiMap[b.emojiId]=h;b.index&&((q=G.emojis[b.index])==null?void 0:q.emojiId)===b.emojiId&&(G.emojis[b.index]=h);if((l=b.shortcuts)==null?0:l.length)for(G.hasInitializedShortcutCharMap=!1,V=_.e(b.shortcuts),D=V.next();!D.done;D=V.next())k=D.value,G.emojiShortcutMap[k.toLocaleLowerCase()]=h;return T.yield(_.nm.getInstance(),
2)}if(T.nextAddress!=4)return(L=T.yieldResult)?T.yield(L.get("ytlc-emoji-pref"),4):T.jumpTo(0);f=(x=T.yieldResult)!=null?x:{};f[b.emojiId]=I;return T.yield(L.set("ytlc-emoji-pref",f,WVz),0)})};
_.I4=new _.$k;var wKi;_.hy={};
wKi={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.U("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:_.U("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 Wj(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=_.Eo(this.hostElement||this).querySelector("#inline-action-button-container");G&&G.setAttribute("aria-hidden","true");this.menuButton=_.Eo(this.hostElement).querySelector("#menu-button")},
attached:function(){var G=this.menuButton;G&&(G.addEventListener("focusin",_.I9(this,this.onMenuButtonFocus_)),G.addEventListener("focusout",_.I9(this,this.onMenuButtonBlur_)))},
detached:function(){var G=this.menuButton;G&&(G.removeEventListener("focusin",_.I9(this,this.onMenuButtonFocus_)),G.removeEventListener("focusout",_.I9(this,this.onMenuButtonBlur_)))},
identity:_.H2,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,b){return G||b},
computeHasInlineActionButtons:function(G){if(!G)return!1;var b,I;return!((b=G.inlineActionButtons)==null||!b.length)||!((I=G.additionalInlineActionButtons)==null||!I.length)},
createDocumentFragmentFromString:function(G){var b=_.I4.createDocumentFragment.bind(_.I4),I;if((I=this.participantsManager)==null||!I.viewerRegex)return b(G);I=document.createDocumentFragment();for(var h=0,q;(q=this.participantsManager.viewerRegex.exec(G))!=null;){if(q.index>0){var l=":"+q[0]+":";if((_.GN(_.I4,l)||_.E2(_.I4,l))&&G.indexOf(l)===q.index-1)continue}I.appendChild(b(G.substring(h,q.index)));h=document.createElement("span");h.appendChild(b(q[0]));h.classList.add("mention");I.appendChild(h);
h=q.index+q[0].length}I.appendChild(b(G.substring(h)));return I},
createDocumentFragment:function(G){var b=document.createDocumentFragment();if(G.simpleText)return b.appendChild(this.createDocumentFragmentFromString(G.simpleText)),b;if(!G.runs)return b;for(var I=0;I<G.runs.length;I++){var h=G.runs[I];if(h.emoji)b.appendChild(_.I4.createEmoji(h.emoji));else if(h.text)if(h.navigationEndpoint){var q=document.createElement("a");q.classList.add("yt-simple-endpoint");DtO(q,h.navigationEndpoint);_.Eo(q).appendChild(this.createDocumentFragmentFromString(h.text));b.appendChild(q)}else b.appendChild(this.createDocumentFragmentFromString(h.text))}return b},
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(b){return(b=b instanceof Element?b:null)?b.tagName&&(b.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||b.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.U("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(G)},
colorFromDecimal:function(G){return nBO(G)},
markAsDeleted:function(G,b){this.set("data.deletedStateMessage",G);this.set("data.showOriginalContentMessage",b)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(G){if(this.data.contextMenuEndpoint){var b=_.LL().resolve(_.cy),I=this.data.contextMenuEndpoint,h;(h=_.ik.instance)&&_.PN(h,I)?(b=nsA(b,I),h=_.qS(h,{},b)):h=_.OxA(b,I);h.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);G&&G.stopPropagation()}},
handleGetContextMenuResponse_:function(G){var b=_.ik.instance;b&&_.PN(b,{liveChatEndpoint:{}})||(G=G.response);G.liveChatItemContextMenuSupportedRenderers&&G.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(G.liveChatItemContextMenuSupportedRenderers.menuRenderer);G.actions&&_.wL(this.hostElement,"yt-live-chat-actions",[G.actions])},
handleGetContextMenuError:function(G){if(G instanceof Error||G instanceof Object||G instanceof String)var b=G;_.K1(new _.Wf("Error encountered calling GetLiveChatItemContextMenu",b))},
showContextMenu_:function(G){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:G}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.O3(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.O3(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.hy.YtLiveChatItemBehavior=[wKi,_.EN.YtComponentBehavior,_.MD.YtOpenPopupBehavior];_.qT=function(){};var EsX;var pKz;var S6B;var XKb;var jt=function(){var G=_.a.apply(this,arguments)||this;G.active=!1;G.identity=_.H2;return G};
_.M(jt,_.a);jt.prototype.dataChanged=function(){this.active=!1};
jt.prototype.onClick=function(){_.O3(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
jt.prototype.dataChanged=jt.prototype.dataChanged;_.R([_.H(),_.n("design:type",Object)],jt.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],jt.prototype,"active",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jt.prototype,"dataChanged",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],jt);
_.J(jt,"yt-live-chat-text-input-field-suggestion",function(){if(XKb===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;S6B===void 0&&(S6B=document.createElement("template"));var h=S6B;I.call(b,h.content.cloneNode(!0),G.content.firstChild);XKb=G}G=XKb;return G},{mode:0});_.lh=function(G,b,I){return CustomEvent.call(this,G,{detail:{value:b,path:I}})||this};
_.M(_.lh,CustomEvent);_.mU=function(){var G=_.a.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};
_.M(_.mU,_.a);_.m=_.mU.prototype;_.m.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.m.addParticipant=function(G){var b=_.HOX(this.participants,G,function(h,q){h=h[Object.keys(h)[0]];q=q[Object.keys(q)[0]];h=String(_.NO(h.authorName)).toLowerCase();q=String(_.NO(q.authorName)).toLowerCase();return h<q?-1:h==q?0:1}.bind(this));
if(b>=0){var I=this.participants[b];I[Object.keys(I)[0]].timestampUsec&&this.splice("participants",b,1,G)}else this.splice("participants",-b-1,0,G);G=G[Object.keys(G)[0]];b=_.NO(G.authorName).toLocaleLowerCase();I=b.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(I)||(this.allParticipantsCharMap_[I]={});this.allParticipantsCharMap_[I][b]=G};
_.m.getAuthorsFromPrefix=function(G){return this.allParticipantsCharMap_.hasOwnProperty(G)?this.allParticipantsCharMap_[G]:null};
_.m.computeViewerRegex_=function(G){if(!G)return null;G=G.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var b=G.indexOf("@")===0&&_.U("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(b+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")};
_.m.checkForStaleParticipants_=function(){var G=this;this.trimOldParticipants_();this.asyncHandle_&&UdO(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.iH(function(){G.checkForStaleParticipants_()},3E4))};
_.m.onChatMessage_=function(G){var b=this,I=Date.now()*1E3;G.forEach(function(h){if(h=_.g(h,HbO)){h=h.item;var q=Object.keys(h)[0];b.SUPPORTED_ITEM_TYPES_.indexOf(q)!=-1&&h[q].timestampUsec>=I-b.PARTICIPANT_TIME_USEC_&&b.addParticipant(h)}},this);
this.checkForStaleParticipants_()};
_.m.trimOldParticipants_=function(){for(var G=Date.now()*1E3,b=this.participants.length-1;b>=0;b--){var I=this.participants[b];I=I[Object.keys(I)[0]];I.timestampUsec&&I.timestampUsec<G-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",b,1)}};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],_.mU.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],_.mU.prototype,"viewerName",void 0);_.R([_.H({computed:"computeViewerRegex_(viewerName)"}),_.n("design:type",Object)],_.mU.prototype,"viewerRegex",void 0);_.R([_.H({value:function(){return[]},
notify:!0}),_.n("design:type",Array)],_.mU.prototype,"participants",void 0);_.R([_.g8({is:"yt-live-chat-participants-manager",noInjection:!0})],_.mU);var $Ni=/.*([:@#].*?)$/,et=/\u00a0/g,G_z=String.fromCharCode(160),bBn={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"},Vj=function(){var G=_.a.apply(this,arguments)||this;G.disabled=!1;G.liveChatRichMessageInput=null;G.messageInput=null;G.isValidWithNoInputText=!1;G.suggestions=[];G.emojiManager=_.I4;G.inputMethodEditorActive=
!1;G.suggestionIndex=-1;G.JSC$14295_lastSuggestionRange=null;return G};
_.M(Vj,_.a);_.m=Vj.prototype;_.m.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.m.attached=function(){_.XE&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.m.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.m.dataChanged=function(){if(!this.ignoreColorMapping){var G=!1,b={},I;for(I in bBn)this.data&&this.data.hasOwnProperty(I)&&(b[bBn[I]]=this.colorFromDecimal(this.data[I]),G=!0);G&&_.G8(this.hostElement,b)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.m.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.m.colorFromDecimal=function(G){G=Math.floor(Number(G));return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
_.m.preventDrag=function(G){G.dataTransfer&&(G.dataTransfer.dropEffect="none");G.preventDefault()};
_.m.preventResize=function(G){G.returnValue=!1};
_.m.onInputChange=function(){var G=this.characterCount,b=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&b&&b.remove();if(!b&&this.characterCount>this.maxCharacterLimit){var I=window.getSelection();if(I){var h=I.getRangeAt(0);I.removeAllRanges();I.addRange(h)}}if(I=this.getCurrentRange())h=this.calculateTextBeforeRange(I),this.completeEmojisInRange(I,h,!0)||this.updateSuggestions(I,h);h=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(h);
_.O3(this.hostElement,"yt-live-chat-message-input-change",h);b&&this.characterCount===0&&b.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()};
_.m.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.m.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var G=this.getCurrentRange();G&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.m.mergeOverflowText=function(G){if(G){var b=document.createRange();b.selectNodeContents(G);b=b.extractContents();this.input.insertBefore(b,G)}};
_.m.checkRangeAtEndOfInput=function(){var G=this.getCurrentRange();if(G){var b=_.Eo(this.hostElement).querySelector("#overflow-text"),I=document.createRange();b&&b.previousSibling?b.previousSibling instanceof HTMLImageElement?I.selectNode(b.previousSibling):I.selectNodeContents(b.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};
_.m.handleOverflowText=function(G){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var b=_.Eo(this.hostElement).querySelector("#overflow-text"),I=this.getCurrentRange();this.input.normalize();G=this.checkRangeAtEndOfInput()&&G;this.mergeOverflowText(b);for(var h,q=0,l=0,V,D=this.input.childNodes,k=0;k<D.length;k++){var L=D[k];L instanceof Text?(l+=L.textContent.length,l>this.maxCharacterLimit&&(h=L,q=this.maxCharacterLimit+L.textContent.length-l)):L instanceof HTMLImageElement&&
(h=void 0,l=L.dataset.emojiId&&((h=this.data)==null?0:h.emojiCharacterCount)?l+this.data.emojiCharacterCount:l+L.alt.length,h=this.input,q=k);if(l>this.maxCharacterLimit&&h){V=document.createRange();V.collapse(!1);b?(l=this.input.lastChild.previousSibling,l instanceof Text?V.setEnd(this.input.lastChild.previousSibling,l.textContent.length):l instanceof HTMLImageElement&&V.setEnd(this.input,this.input.childNodes.length-1)):V.selectNodeContents(this.input);V.setStart(h,q);break}}V&&(h=!1,I&&(G=V.isPointInRange(I.startContainer,
I.startOffset-1)),b||(b=document.createElement("span"),b.id="overflow-text",b.textContent="",b.setAttribute("contenteditable","true"),_.Eo(_.Eo(this.hostElement).querySelector("#input")).appendChild(b),h=!0),b&&(I=V.extractContents(),b.insertBefore(I,b.firstChild),G&&b.firstChild&&(I=document.createRange(),h?I.setStartAfter(b.lastChild):I.setStartAfter(b.firstChild),I.collapse(!0),b=window.getSelection(),b.removeAllRanges(),b.addRange(I))))}};
_.m.checkForDuplicateSpans=function(){for(var G=0;G<this.input.childNodes.length;G++){var b=this.input.childNodes[G];if(b.nodeName==="SPAN"){var I=document.createRange();I.selectNodeContents(b);I=I.extractContents();this.input.insertBefore(I,b);b.remove()}}this.handleOverflowText(!0)};
_.m.getCurrentRange=function(){var G=window.getSelection();return G&&G.rangeCount?G.getRangeAt(0).cloneRange():null};
_.m.getInputRange=function(){var G=this.getCurrentRange();if(G){for(var b=G.commonAncestorContainer,I=!1,h=_.Eo(this.hostElement).querySelector("#input");b;){if(b===h){I=!0;break}b=b.parentNode}I||(G=null)}G||(G=this.getRangeAtEnd());return G};
_.m.getRangeAtEnd=function(){var G=document.createRange(),b=_.Eo(this.hostElement).querySelector("#input").lastChild;!b||b.nodeName!=="#text"&&b.nodeName!=="SPAN"?(G.selectNodeContents(_.Eo(this.hostElement).querySelector("#input")),G.collapse(!1)):b.nodeName==="#text"?G.setStart(b,b.textContent.length):G.setStart(b,b.childNodes.length);return G};
_.m.getChatParticipantSuggestions=function(G,b,I,h){var q=_.U("live_chat_enable_handles_web_text_input_update");if(b)for(var l in b)if(l.indexOf(G)===0||q&&l.indexOf(I+G)===0){var V=b[l],D=_.NO(V.authorName);h.push({suggestion:{author:!0,authorType:I,image:V.authorPhoto,alt:D,text:D}});if(h.length>=64)break}};
_.m.getSuggestions=function(G){var b=[],I=G.substring(0,3),h=ufW(_.I4,I,!0);if(h)for(var q in h)if(q.toLocaleLowerCase().indexOf(G)===0){var l=h[q];if(l&&l.emojiId){if(l=KVi(_.I4,l.emojiId)){var V=void 0,D=void 0,k=void 0,L=void 0,x=((V=l.image)==null?0:(D=V.accessibility)==null?0:(k=D.accessibilityData)==null?0:k.label)||l.isCustomEmoji?(L=l.shortcuts)==null?void 0:L[0]:l.emojiId;b.push({suggestion:{emoji:!0,image:l.image,alt:x,text:q,textToInsertWhenSelected:l.isCustomEmoji?q:x}})}if(b.length>=
64)break}}if(!this.participantsManager)return null;if(I.indexOf("@")===0||I.indexOf("#")===0)h=I.charAt(0),G=G.substring(1),q=_.U("live_chat_enable_handles_web_text_input_update"),I.indexOf("@")===0&&q&&(q=this.participantsManager.getAuthorsFromPrefix(I.substring(0,2)),this.getChatParticipantSuggestions(G,q,h,b)),I=I.substring(1),I=this.participantsManager.getAuthorsFromPrefix(I),this.getChatParticipantSuggestions(G,I,h,b);return b?b.sort(function(f,T){return T.suggestion.text<f.suggestion.text?-1:
T.suggestion.text===f.suggestion.text?0:1}):null};
_.m.insertSuggestion=function(G){var b=_.U("live_chat_enable_handles_web_text_input_update"),I=G.authorType;b=G.text.indexOf(I)===0&&b?G.text+G_z:I+G.text+G_z;G.emoji?this.insertTextAtRange(this.JSC$14295_lastSuggestionRange,G.textToInsertWhenSelected||""):G.author&&this.insertTextAtRange(this.JSC$14295_lastSuggestionRange,b)};
_.m.updateSuggestionsAtCaret=function(){var G=this.getCurrentRange();G&&this.updateSuggestions(G,this.calculateTextBeforeRange(G))};
_.m.offsetStartOfRangeBy=function(G,b){for(;b>0;)if(G.startOffset-b>=0){G.setStart(G.startContainer,G.startOffset-b);break}else{b=G.startContainer instanceof HTMLImageElement?b-G.startContainer.alt.length:b-G.startOffset;var I=G.startContainer.previousSibling;if(!I){G.setStart(G.startContainer,0);break}if(_.U("live_chat_require_space_for_autocomplete_emoji")){var h=void 0,q=void 0;G.setStart(I,((h=I)==null?void 0:(q=h.textContent)==null?void 0:q.length)||0)}else G.setStart(I,I.childNodes.length||
0)}};
_.m.updateSuggestions=function(G,b){var I=this;this.JSC$14295_lastSuggestionRange&&(this.JSC$14295_lastSuggestionRange.detach(),this.JSC$14295_lastSuggestionRange=null);if((b=$Ni.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2&&(this.offsetStartOfRangeBy(G,b.length),this.JSC$14295_lastSuggestionRange=G,(G=this.getSuggestions(b))&&G.length))){this.suggestions=G;_.D1(this,function(){_.Eo(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};
_.m.completeEmojisInRange=function(G,b,I){var h=b.replace(/[\s\xa0]+$/,"");b=b.length-h.length;h=h.split(" ");h=h[h.length-1].trim().toLocaleLowerCase();var q=h.lastIndexOf(":");if(I&&!b&&q!==h.length-1)return!1;q!==-1&&(I=h.lastIndexOf(":",q-1),I!==-1&&(h=h.substring(I)));if((I=_.E2(_.I4,h))&&I.emojiId){I=KVi(_.I4,I.emojiId)||null;this.offsetStartOfRangeBy(G,h.length+b);var l,V,D,k;h=(((l=I)==null?0:l.isCustomEmoji)?(V=I)==null?void 0:(D=V.shortcuts)==null?void 0:D[0]:(k=I)==null?void 0:k.emojiId)||
"";b&&(h+=G_z);this.insertTextAtRange(G,h);this.dropdown.opened=!1;return!0}return!1};
_.m.onSuggestion=function(G){this.insertSuggestion(G.detail);this.dropdown.opened=!1};
_.m.onKeyPress=function(G){G.keyCode===13&&(G.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.O3(this.hostElement,"yt-live-chat-send-message"))};
_.m.completeEmojis=function(){var G=document.createRange(),b=_.Eo(this.hostElement).querySelector("#input").lastChild;b?G.setStart(b,b.childNodes.length):(G.selectNodeContents(_.Eo(this.hostElement).querySelector("#input")),G.collapse(!1));this.completeEmojisInRange(G,this.calculateTextBeforeRange(G),_.U("live_chat_require_space_for_autocomplete_emoji"))};
_.m.maybePreventTextFormatting=function(G){!_.IR||!G.ctrlKey&&!G.metaKey||G.keyCode!==66&&G.keyCode!==73||(G.stopImmediatePropagation(),G.preventDefault())};
_.m.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()}};
_.m.onKeyUp=function(G){switch(G.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Sf)this.onInputChange()};
_.m.changeSuggestionIndex=function(G){if(this.dropdown.opened){var b=_.Eo(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<b.children.length&&(b.children[this.suggestionIndex].active=!1);var I=this.suggestions.length;this.suggestionIndex=(G+I)%I;G=b.children[this.suggestionIndex];G.active=!0;b.scrollTop=G.offsetTop}};
_.m.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)};
_.m.onFocus=function(){this._setFocused(!0)};
_.m.onBlur=function(){this._setFocused(!1)};
_.m.insertText=function(G){this.insertTextAtRange(this.getInputRange(),G)};
_.m.insertTextAtRange=function(G,b){if(G&&(G.collapsed||G.deleteContents(),b=_.I4.createDocumentFragment(b,!0,!1))){for(var I=_.e((b==null?void 0:b.childNodes)||[]),h=I.next();!h.done;h=I.next()){h=h.value;var q=void 0,l=void 0,V=void 0,D=void 0,k=void 0;(V=(q=window)==null?void 0:(l=q.ShadyCSS)==null?void 0:l.ScopingShim)==null||(k=(D=V).scopeNode)==null||k.call(D,h,this.hostElement.localName)}I=b.lastChild;G.insertNode(b);this.focused||this.input.focus();if(this.focused){G=G.cloneRange();G.selectNodeContents(I);
G.collapse(!1);if(b=window.getSelection())b.removeAllRanges(),b.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);_.O3(this.hostElement,"yt-live-chat-message-input-change",G)}};
_.m.setLiveChatRichMessageInput=function(G){_.Eo(_.Eo(this.hostElement).querySelector("#input")).textContent="";if(G&&G.textSegments){for(var b=0;b<G.textSegments.length;b++){var I=G.textSegments[b];I.text?_.Eo(_.Eo(this.hostElement).querySelector("#input")).appendChild(_.I4.createDocumentFragment(I.text,!0,!1)):I.emojiId&&(I=_.GN(_.I4,I.emojiId))&&_.Eo(_.Eo(this.hostElement).querySelector("#input")).appendChild(_.I4.createEmoji(I,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.m.setText=function(G){this.setLiveChatRichMessageInput(G?{textSegments:[{text:G}]}:null)};
_.m.calculateTextBeforeRange=function(G){var b="",I=G.startContainer;if(I&&I instanceof Text){var h;b=((h=I.textContent)==null?void 0:h.substring(0,G.startOffset))||"";I=I.previousSibling}for(;I&&I instanceof Text;)b=I.textContent+b,I=I.previousSibling;return b.replace(et," ")};
_.m.calculateLiveChatRichMessageInput=function(){for(var G=[],b="",I=_.Eo(_.Eo(this.hostElement).querySelector("#input")).childNodes,h=0;h<I.length;h++){var q=I[h];q instanceof Text?b+=q.textContent:q instanceof HTMLImageElement&&(q.dataset.emojiId?(b&&(G.push({text:b.replace(et," ")}),b=""),G.push({emojiId:q.dataset.emojiId})):b+=q.alt)}b&&G.push({text:b.replace(et," ")});if(I=_.Eo(this.hostElement).querySelector("#overflow-text")){b="";I=I.childNodes;for(h=0;h<I.length;h++)q=I[h],q instanceof Text?
b+=q.textContent:q instanceof HTMLImageElement&&(q.dataset.emojiId?(b&&(G.push({text:b.replace(et," ")}),b=""),G.push({emojiId:q.dataset.emojiId})):b+=q.alt);b&&G.push({text:b.replace(et," ")})}return{textSegments:G}};
_.m.computeCharacterCount=function(G){if(!G||!G.textSegments)return 0;for(var b=0,I=0;I<G.textSegments.length;I++){var h=G.textSegments[I];if(h.text)b+=h.text.length;else if(h.emojiId){var q=void 0;if((q=this.data)==null?0:q.emojiCharacterCount)b+=this.data.emojiCharacterCount;else{var l=q=void 0,V=void 0;b+=((l=_.GN(_.I4,(q=h)==null?void 0:q.emojiId))==null?void 0:(V=l.shortcuts)==null?void 0:V[0].length)||0}}}return b};
_.m.characterCountChanged=function(){_.O3(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.m.focusedChanged=function(){this.hostElement.dispatchEvent(new _.lh("focused-changed",this.focused))};
_.m.focus=function(){this.setFocus(!1)};
_.m.focusAtEnd=function(){this.setFocus(!0)};
_.m.setFocus=function(G){G=G?this.getRangeAtEnd():this.getInputRange();_.Eo(this.hostElement).querySelector("#input").focus();var b=window.getSelection();b&&(b.removeAllRanges(),b.addRange(G))};
_.m.insertEmoji=function(G){var b,I=((G==null?0:G.isCustomEmoji)?(b=G.shortcuts)==null?void 0:b[0]:G==null?void 0:G.emojiId)||"";this.insertText(I)};
_.m.computeText=function(G){if(!G||!G.textSegments)return"";for(var b="",I=0;I<G.textSegments.length;I++){var h=G.textSegments[I];if(h.text)b+=h.text;else if(h.emojiId){var q=void 0,l=void 0,V=void 0;b+=((l=_.GN(_.I4,(q=h)==null?void 0:q.emojiId))==null?void 0:(V=l.shortcuts)==null?void 0:V[0])||""}}return b};
_.m.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.kV.Object.defineProperties(Vj.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}}});
Vj.prototype.focusedChanged=Vj.prototype.focusedChanged;Vj.prototype.characterCountChanged=Vj.prototype.characterCountChanged;Vj.prototype.onSuggestion=Vj.prototype.onSuggestion;Vj.prototype.onMessageSet=Vj.prototype.onMessageSet;Vj.prototype.dataChanged=Vj.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],Vj.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Vj.prototype,"disabled",void 0);_.R([_.P("disabled"),_.n("design:type",Number),_.n("design:paramtypes",[])],Vj.prototype,"inputTabIndex",null);_.R([_.P("data.maxCharacterLimit"),_.H({readOnly:!0,notify:!0}),_.n("design:type",Number),_.n("design:paramtypes",[])],Vj.prototype,"maxCharacterLimit",null);
_.R([_.P("liveChatRichMessageInput"),_.H({readOnly:!0,notify:!0}),_.n("design:type",Number),_.n("design:paramtypes",[])],Vj.prototype,"characterCount",null);_.R([_.P("maxCharacterLimit, characterCount"),_.H({readOnly:!0,notify:!0}),_.n("design:type",Number),_.n("design:paramtypes",[])],Vj.prototype,"remainingCharacterCount",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Vj.prototype,"isChatMessageInput",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Vj.prototype,"inputExpanded",void 0);_.R([_.H({readOnly:!0,notify:!0}),_.n("design:type",Object)],Vj.prototype,"liveChatRichMessageInput",void 0);_.R([_.H(),_.n("design:type",Object)],Vj.prototype,"messageInput",void 0);_.R([_.H(),_.n("design:type",Boolean)],Vj.prototype,"ignoreColorMapping",void 0);_.R([_.P("characterCount"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Vj.prototype,"hasText",null);
_.R([_.H(),_.n("design:type",Object)],Vj.prototype,"isValidWithNoInputText",void 0);_.R([_.P("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.H(),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Vj.prototype,"isInputValid",null);_.R([_.H({readOnly:!0,value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Vj.prototype,"focused",void 0);_.R([_.H(),_.n("design:type",Array)],Vj.prototype,"suggestions",void 0);
_.R([_.H(),_.n("design:type",_.$k)],Vj.prototype,"emojiManager",void 0);_.R([_.H(),_.n("design:type",_.mU)],Vj.prototype,"participantsManager",void 0);_.R([_.H(),_.n("design:type",Boolean)],Vj.prototype,"noUnderline",void 0);_.R([_.H(),_.n("design:type",Object)],Vj.prototype,"inputMethodEditorActive",void 0);_.R([_.lH("#dropdown"),_.n("design:type",Object)],Vj.prototype,"dropdown",void 0);_.R([_.lH("#input"),_.n("design:type",HTMLElement)],Vj.prototype,"input",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Vj.prototype,"dataChanged",null);_.R([_.q5("messageInput"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Vj.prototype,"onMessageSet",null);_.R([_.hI("yt-live-chat-select-suggestion"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Vj.prototype,"onSuggestion",null);
_.R([_.q5("characterCount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Vj.prototype,"characterCountChanged",null);_.R([_.q5("focused"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Vj.prototype,"focusedChanged",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Vj);
_.IB8=_.J(Vj,"yt-live-chat-text-input-field-renderer",function(){if(pKz===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;EsX===void 0&&(EsX=document.createElement("template"));var h=EsX;I.call(b,h.content.cloneNode(!0),G.content.firstChild);pKz=G}G=pKz;return G},{mode:0});var D9=function(){var G=_.a.apply(this,arguments)||this;G.buttonOverrides={style:"overlay",type:"filled"};G.allowAnimations=!1;G.modern=_.U("web_button_rework_with_live");G.noPadding=!1;return G};
_.M(D9,_.a);_.m=D9.prototype;_.m.shouldSupportInlineActionButtons=function(){return!0};
_.m.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"}}}}};
_.m.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.m.attached=function(){this.allowAnimations=!1};
_.m.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)};_.G8(this.hostElement,G);this.allowAnimations=!0}};
_.m.messageChanged=function(){var G,b=(G=this.data)==null?void 0:G.message;G=_.Eo(_.Eo(this.hostElement).querySelector("#message"));G.textContent="";b&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(b))};
_.m.computeShowOnlyHeader=function(G,b){return!G||G.pdgLikeButton||G.replyButton||G.buyFlowButton?!1:this.isEmpty(G,b)&&!G.footer};
_.m.computeShowFooterDivider=function(G,b,I){return G?!!G.footer&&!this.isEmpty(G,b)&&!I:!1};
_.m.computeIsUserEditable=function(G){return!!G.inputField};
_.m.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"};
_.m.computeNoveltyImage=function(G){if(G.headerOverlayImage&&G.headerOverlayImage.thumbnails.length){var b=G.headerOverlayImage.thumbnails[0],I,h;if((I=G.pdgPurchasedNoveltyLoggingDirectives)==null?0:(h=I.loggingDirectives)==null?0:h.trackingParams){var q,l;xg2((q=G.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(l=q.loggingDirectives)==null?void 0:l.trackingParams)}return b.width||0}return 0};
_.m.computeAuthorPhotoSize=function(G){return(G==null?0:G.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.m.inputFocus=function(){var G=_.Eo(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");G&&G.focus()};
_.m.inputInsertEmoji=function(G){var b=_.Eo(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");b&&b.insertEmoji(G)};
_.m.inputMessage=function(){var G=_.Eo(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),b;return G&&((b=this.data)==null?0:b.inputField)?(G.completeEmojis(),_.ta(G.liveChatRichMessageInput)):null};
_.m.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.m.isEmpty=function(G,b){return G?G.empty||!(G.message||G.inputField||b):!0};
_.m.onLowerBuyButtonClick=function(){var G,b=_.g((G=this.data)==null?void 0:G.buyButton,_.bz);b&&b.trackingParams&&!wus(b.command)&&(G=_.VB(b.trackingParams))&&(b=_.gL())&&_.WT(b,G)};
_.m.shouldSupportWholeItemClick=function(){return!0};
_.kV.Object.defineProperties(D9.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
D9.prototype.isDeletedChanged=D9.prototype.isDeletedChanged;D9.prototype.messageChanged=D9.prototype.messageChanged;D9.prototype.dataChanged=D9.prototype.dataChanged;_.R([_.z(txi.YtPdgLiveChatItemBehavior),_.n("design:type",Object)],D9.prototype,"ytPdgLiveChatItemBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ON),_.n("design:type",Object)],D9.prototype,"ytLiveChatReduxBehavior",void 0);
_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],D9.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],D9.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],D9.prototype,"data",void 0);_.R([_.H({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:LVO}),_.n("design:type",Object)],D9.prototype,"engagementState",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.n("design:type",Boolean)],D9.prototype,"isUserEditable",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.n("design:type",Boolean)],D9.prototype,"hasHeartButton",void 0);_.R([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.n("design:type",Boolean)],D9.prototype,"showOnlyHeader",void 0);
_.R([_.H({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.n("design:type",Boolean)],D9.prototype,"showFooterDivider",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Object)],D9.prototype,"allowAnimations",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],D9.prototype,"dashboardMoneyFeed",void 0);_.R([_.H({computed:"computeNoveltyImage(data)"}),_.n("design:type",Number)],D9.prototype,"noveltyWidth",void 0);
_.R([_.H({computed:"computeAuthorPhotoSize(data)"}),_.n("design:type",Number)],D9.prototype,"authorPhotoSize",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],D9.prototype,"modern",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],D9.prototype,"noPadding",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],D9.prototype,"dataChanged",null);
_.R([_.q5("data.message"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],D9.prototype,"messageChanged",null);_.R([_.P("data","dashboardMoneyFeed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],D9.prototype,"hideLowerBumper",null);_.R([_.q5("isDeleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],D9.prototype,"isDeletedChanged",null);
_.R([_.N({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],D9);
_.J(D9,"yt-live-chat-paid-message-renderer",function(){if(mgJ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;lyb===void 0&&(lyb=document.createElement("template"));var h=lyb;I.call(b,h.content.cloneNode(!0),G.content.firstChild);mgJ=G}G=mgJ;return G},{mode:0});var h7b;var q7A;var cd=function(){var G=_.eH.apply(this,arguments)||this;G._noAccessors=!0;return G};
_.M(cd,_.eH);cd.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.wy("openPopupConfig")};
_.R([_.z(_.MD.YtOpenPopupBehavior),_.n("design:type",Object)],cd.prototype,"ytOpenPopupBehavior",void 0);_.R([_.Vx()],cd);_.kk=[_.MD.YtOpenPopupBehavior,cd.prototype];var jt8;var iBp=[_.jL,cwX,_.SI,_.lg,_.Wq,_.Fln,_.V4,_.s4Q,_.sE,_.ar,_.Che];_.U("web_continuation_response_processing")&&iBp.push(_.Aa);var HHq=new _.q3("RESPONSE_RECEIVED_COMMANDS"),oCa=new _.q3("RESPONSE_RECEIVED_COMMANDS");var sts="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),UNO=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],Bfa=["GET_UNSEEN_NOTIFICATION_COUNT"];var vd=function(){var G=_.eH.apply(this,arguments)||this;G._noAccessors=!0;G.serviceEndpointHandlers=[];return G};
_.M(vd,_.eH);vd.prototype.created=function(){var G=this;this.endpointHandlerActionMap={"yt-service-request":function(b,I,h,q){var l;return TfO(G.hostElement,b,I,h,q,G.serviceEndpointHandlers,(l=G.onEntitiesUpdated)==null?void 0:l.bind(G))}}};
vd.prototype.attached=function(){_.je(_.I1.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
vd.prototype.detached=function(){_.lx(_.I1.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.R([_.Vx()],vd);_.lBz=[vd.prototype];var mNz,e7A=function(){return mNz!==void 0?mNz:mNz=document.createElement("template")};
document.head.appendChild(e7A().content);var Vpn;var DNe=document.head,cmA=DNe.appendChild,k_5;if(Vpn===void 0){var vCO=document.createElement("template");_.Z(vCO,"\x3c!--css-build:shady--\x3e");vCO.content.insertBefore(e7A().content.cloneNode(!0),vCO.content.firstChild);Vpn=vCO}k_5=Vpn;cmA.call(DNe,k_5.content);var LRb,QtA=function(){return LRb!==void 0?LRb:LRb=document.createElement("template")};
document.head.appendChild(QtA().content);var xNQ;var fBB=document.head,Tfn=fBB.appendChild,Bfb;if(xNQ===void 0){var UNJ=document.createElement("template");_.Z(UNJ,"\x3c!--css-build:shady--\x3e");UNJ.content.insertBefore(QtA().content.cloneNode(!0),UNJ.content.firstChild);xNQ=UNJ}Bfb=xNQ;Tfn.call(fBB,Bfb.content);var stn;_.QO("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.QO("sharingRendererButtons","buttonRenderer","ytd-button-renderer");stn=_.U("web_button_rework")&&_.Sk("BUTTON_REWORK")||_.U("web_button_rework_with_live");_.L5=function(){var G=_.a.apply(this,arguments)||this;G.isPressed=!1;G.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return G};
_.M(_.L5,_.a);_.m=_.L5.prototype;_.m.created=function(){this.showTooltips=!0};
_.m.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.m.onHintIdChanged=function(){var G=this,b,I,h=(b=this.ytButtonBehavior.data)==null?void 0:(I=b.hint)==null?void 0:I.hintRenderer;if(h&&h.hintId){b=_.E3(this.hostElement,"yt-get-opened-popups-action");b=(b&&b.length===1?b[0]:[]).length>0;var q=null;h.hintId!=="sponsor-pre-purchase"||b?h.hintId.startsWith("sponsor-post-purchase")&&!b?q=c7z("membership-manage"):h.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!b&&(q=c7z("membership-freebie-join")):q=c7z("membership-join");q&&_.uu.addLowPriorityJob(function(){for(var l=
_.e(q),V=l.next();!V.done;V=l.next())G.ytComponentBehavior.resolveCommand(V.value)})}};
_.m.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.m.onYtNavigate=function(G){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);b&&(G.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))};
_.m.onYtServiceRequestSent=function(G,b){this.handleServiceRequestActions(b);_.O3(this.hostElement,"yt-service-request-sent-button-renderer")};
_.m.onServiceRequestCompleted=function(G,b){this.handleServiceRequestActions(b);_.O3(this.hostElement,"yt-service-request-completed-button-renderer")};
_.m.updateButton=function(G){var b;if(G=(b=_.g(G,IiA))==null?void 0:b.updatedButton)this.ytButtonBehavior.data=_.g(G,_.bz)};
_.m.handleUpdateButtonAction=function(G){var b=this.ytButtonBehavior.data;b.targetId&&G.updateButtonAction.targetId&&b.targetId===G.updateButtonAction.targetId&&this.updateButton(G)};
_.m.handleServiceRequestActions=function(G){if(G=G.actions)for(var b=0;b<G.length;b++)this.updateButton(G[b])};
_.kV.Object.defineProperties(_.L5,{template:{configurable:!0,enumerable:!0,get:function(){if(jt8===void 0){var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);jt8=G}G=jt8;return G}}});
_.L5.prototype.onServiceRequestCompleted=_.L5.prototype.onServiceRequestCompleted;_.L5.prototype.onYtServiceRequestSent=_.L5.prototype.onYtServiceRequestSent;_.L5.prototype.onYtNavigate=_.L5.prototype.onYtNavigate;_.L5.prototype.onPressedStateChanged=_.L5.prototype.onPressedStateChanged;_.L5.prototype.onHintIdChanged=_.L5.prototype.onHintIdChanged;_.R([_.H(),_.n("design:type",Object)],_.L5.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],_.L5.prototype,"isPressed",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],_.L5.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.tsW.YtButtonBehavior),_.n("design:type",Object)],_.L5.prototype,"ytButtonBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],_.L5.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],_.L5.prototype,"ytComponentBehavior",void 0);
_.R([_.z(rs.YtRenderButtonBehavior),_.n("design:type",Object)],_.L5.prototype,"ytRenderButtonBehavior",void 0);_.R([_.q5("data.hint.hintRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],_.L5.prototype,"onHintIdChanged",null);_.R([_.q5("isPressed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],_.L5.prototype,"onPressedStateChanged",null);
_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],_.L5.prototype,"onYtNavigate",null);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],_.L5.prototype,"onYtServiceRequestSent",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],_.L5.prototype,"onServiceRequestCompleted",null);_.R([_.N({is:"ytd-button-renderer",disableElementRegistration:stn})],_.L5);var Qj=function(){var G=_.a.apply(this,arguments)||this;G.modern=_.U("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.M(Qj,_.a);_.m=Qj.prototype;_.m.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"}}}}};
_.m.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.m.dataChanged=function(){if(this.data&&this.data.sticker){var G=_.KG(this.data.sticker.thumbnails,this.stickerWidth);G||_.HBj(G).thenCatch(function(){_.RB(new _.Wf("Failed to load Super Sticker with url",G))})}};
_.m.computeAuthorPhotoSize=function(G){return(G==null?0:G.isV2Style)?32:40};
_.m.computeIsV2Style=function(G){return(G==null?0:G.isV2Style)?!0:!1};
_.m.onStickerLoaded=function(G){var b,I,h;(b=_.a_(G))==null||(I=b.parentNode)==null||(h=I.classList)==null||h.add("sticker-loaded")};
_.m.computeNoveltyImageWidth=function(G){var b,I;if(G==null?0:(b=G.headerOverlayImage)==null?0:(I=b.thumbnails)==null?0:I.length){b=G.headerOverlayImage.thumbnails[0];var h,q;if((h=G.pdgPurchasedNoveltyLoggingDirectives)==null?0:(q=h.loggingDirectives)==null?0:q.trackingParams){var l,V;xg2((l=G.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(V=l.loggingDirectives)==null?void 0:V.trackingParams)}return b.width||0}return 0};
_.m.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.m.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)},
_.G8(this.hostElement,G))};
_.m.onBuyButtonClick=function(){var G,b=_.g((G=this.data)==null?void 0:G.buyButton,_.bz);b&&!wus(b.command)&&this.ytRendererBehavior.logExplicitClick(b)};
_.m.shouldSupportWholeItemClick=function(){return!0};
_.kV.Object.defineProperties(Qj.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}}});
Qj.prototype.updateStickerStyles=Qj.prototype.updateStickerStyles;Qj.prototype.isDeletedChanged=Qj.prototype.isDeletedChanged;Qj.prototype.onStickerLoaded=Qj.prototype.onStickerLoaded;Qj.prototype.dataChanged=Qj.prototype.dataChanged;_.R([_.z(txi.YtPdgLiveChatItemBehavior),_.n("design:type",Object)],Qj.prototype,"ytPdgLiveChatItemBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Qj.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],Qj.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Qj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Qj.prototype,"data",void 0);
_.R([_.H({computed:"computeAuthorPhotoSize(data)"}),_.n("design:type",Number)],Qj.prototype,"authorPhotoSize",void 0);_.R([_.H(),_.n("design:type",Boolean)],Qj.prototype,"isDeleted",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Qj.prototype,"dashboardMoneyFeed",void 0);_.R([_.H({computed:"computeNoveltyImageWidth(data)"}),_.n("design:type",Number)],Qj.prototype,"noveltyWidth",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Qj.prototype,"modern",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.n("design:type",Boolean)],Qj.prototype,"isV2Style",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Qj.prototype,"dataChanged",null);_.R([_.hI("yt-img-shadow-loaded"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Qj.prototype,"onStickerLoaded",null);
_.R([_.P("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],Qj.prototype,"stickerWidth",null);_.R([_.P("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],Qj.prototype,"stickerHeight",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Qj.prototype,"hasHeartButton",null);_.R([_.P("data","dashboardMoneyFeed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Qj.prototype,"hideLowerBumper",null);
_.R([_.q5("isDeleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Qj.prototype,"isDeletedChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Qj.prototype,"updateStickerStyles",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Qj);
_.J(Qj,"yt-live-chat-paid-sticker-renderer",function(){if(q7A===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;h7b===void 0&&(h7b=document.createElement("template"));var h=h7b;I.call(b,h.content.cloneNode(!0),G.content.firstChild);q7A=G}G=q7A;return G},{mode:0});var gC5;var AmQ;var Mpn,ZBi=function(){return Mpn!==void 0?Mpn:Mpn=document.createElement("template")};
document.head.appendChild(ZBi().content);var tpA,z7B=function(){return tpA!==void 0?tpA:tpA=document.createElement("template")};
document.head.appendChild(z7B().content);var oCb;var iBO,Pwn=function(){return iBO!==void 0?iBO:iBO=document.createElement("template")};
document.head.appendChild(Pwn().content);var dNJ;var ym8=document.head,rmW=ym8.appendChild,FR8;if(dNJ===void 0){var HBu=document.createElement("template");_.Z(HBu,"\x3c!--css-build:shady--\x3e");HBu.content.insertBefore(Pwn().content.cloneNode(!0),HBu.content.firstChild);dNJ=HBu}FR8=dNJ;rmW.call(ym8,FR8.content);var WRn=document.head,aBO=WRn.appendChild,Nf5;if(oCb===void 0){var xk=document.createElement("template");_.Z(xk,"\x3c!--css-build:shady--\x3e");xk.content.insertBefore(z7B().content.cloneNode(!0),xk.content.firstChild);xk.content.insertBefore(ZBi().content.cloneNode(!0),xk.content.firstChild);oCb=xk}Nf5=oCb;aBO.call(WRn,Nf5.content);var f5=function(){var G=_.eH.apply(this,arguments)||this;G.focusedIndex=0;G.verticalOffset=0;G.verticalAlign="top";G.dynamicAlign=!0;return G};
_.M(f5,_.eH);f5.prototype.emojiUrl=function(G){G=_.GN(this.emojiManager,G);if(!G)return"";var b;G=(b=G.image)==null?void 0:b.thumbnails;return _.KG(G,24)||""};
var Y78=function(G){var b;G.emojiVariants&&(b=G.data)!=null&&b.target&&_.D1(G,function(){G.set("verticalOffset",-1*G.hostElement.clientHeight);var I=_.Eo(G.hostElement).querySelector("img");I&&I.focus()})};
_.m=f5.prototype;_.m.onKeyboardEnter=function(){};
_.m.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.m.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.m.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()}};
_.m.onYtEmojiSelect=function(G){var b=this,I,h,q,l,V,D,k,L;return _.c(function(x){if(x.nextAddress==1)return h=(I=b.data)==null?void 0:I.emoji,V=((q=h)==null?void 0:q.stickyPrefId)||((l=h)==null?void 0:l.emojiId),k=(D=G.detail)==null?void 0:D.emojiId,V&&k&&V!==k?x.yield((L=b.emojiManager)==null?void 0:RvX(L,h,k),2):x.return();_.wL(b.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[h,k]);_.ip(x)})};
_.m.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=_.Eo(this.hostElement).querySelector("#variants"))&&G.children[this.focusedIndex].focus())};
_.kV.Object.defineProperties(f5.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}}});
f5.prototype.onYtEmojiSelect=f5.prototype.onYtEmojiSelect;f5.prototype.onKeyDown=f5.prototype.onKeyDown;f5.prototype.onEmojiVariantsChanged=f5.prototype.onEmojiVariantsChanged;f5.prototype.onVerticalOffsetOrPositionTargetChanged=f5.prototype.onVerticalOffsetOrPositionTargetChanged;_.R([_.z(_.IV),_.n("design:type",Object)],f5.prototype,"ironOverlayBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],f5.prototype,"data",void 0);_.R([_.H(),_.n("design:type",_.$k)],f5.prototype,"emojiManager",void 0);
_.R([_.H(),_.n("design:type",Object)],f5.prototype,"emojiVariants",void 0);_.R([_.H(),_.n("design:type",Object)],f5.prototype,"focusedIndex",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],f5.prototype,"positionTarget",null);_.R([_.H({reflectToAttribute:!0}),_.P("verticalOffset","data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],f5.prototype,"isPositioned",null);_.R([_.H(),_.n("design:type",Object)],f5.prototype,"verticalOffset",void 0);
_.R([_.H(),_.n("design:type",Object)],f5.prototype,"verticalAlign",void 0);_.R([_.H(),_.n("design:type",Object)],f5.prototype,"dynamicAlign",void 0);_.R([_.q5("verticalOffset","positionTarget"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f5.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.R([_.q5("emojiVariants"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f5.prototype,"onEmojiVariantsChanged",null);
_.R([_.hI("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],f5.prototype,"onKeyDown",null);_.R([_.hI("yt-emoji-select"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype",Promise)],f5.prototype,"onYtEmojiSelect",null);_.R([_.Vx()],f5);var CwB=[f5.prototype];var Jmn;var KRn;var uLb=/medium-light|medium-dark|light|medium|dark/,R7B=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,nCu=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),TN=function(){var G=_.a.apply(this,arguments)||this;G.userSelection={left:null,right:null};G.scrollAction="lock";G.isEmojiDraftInProgress=!1;return G};
_.M(TN,_.a);_.m=TN.prototype;_.m.onClick=function(G){G=_.a_(G);G instanceof HTMLImageElement&&this.selectOrUpdateEmoji(G)};
_.m.selectOrUpdateEmoji=function(G){var b=G.getAttribute("selection");b&&(b==="default"?_.O3(this.hostElement,"yt-emoji-select",_.GN(this.emojiManager,G.id)):b==="left"?this.userSelection=Object.assign({},this.userSelection,{left:G.src}):b==="right"?this.userSelection=Object.assign({},this.userSelection,{right:G.src}):b==="user"&&this.userSelection.left&&this.userSelection.right&&_.O3(this.hostElement,"yt-emoji-select",_.GN(this.emojiManager,G.id)))};
_.m.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.m.onMultiSelectorThumbnailRowChanged=function(){var G,b,I;((G=this.data)==null?0:(b=G.emoji)==null?0:(I=b.multiSelectorThumbnailRow)==null?0:I.length)&&this.openSelector()};
_.m.getThumbnailFromEmojiRow=function(G){var b,I;return(G==null?void 0:(b=G.thumbnails)==null?void 0:(I=b[0])==null?void 0:I.url)||""};
_.m.getEmojiAltTextForPartialSelector=function(G){var b;return((b=this.getThumbnailFromEmojiRow(G).match(R7B))==null?void 0:b[0])||""};
_.m.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.m.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.m.getRowSelection=function(G){return["left","right"][G]};
_.m.getIdFromComposedEmoji=function(G){return(G==null?void 0:G.emojiId)||""};
_.m.getEmojiFromPartialSelections=function(G,b){if(!G&&!b)return null;var I,h,q=(I=this.data)==null?void 0:(h=I.emoji)==null?void 0:h.variantIds;if(!q||!q.length)return null;var l;G=(l=G.match(uLb))==null?void 0:l[0];var V;b=(V=b.match(uLb))==null?void 0:V[0];if(!G||!b)return null;var D=nCu.get(G);V=nCu.get(b);if(D===V){V=Array.from(nCu.values()).filter(function(L){return L!==D}).join("|");
var k=new RegExp("^((?!("+V+")).)*"+D+"$")}else k=new RegExp(D+".*"+V);return(q=q.find(function(L){return k.test(L)}))&&_.GN(this.emojiManager,q)||null};
_.m.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var G,b=this.ytEmojiSelectorBehavior.emojiUrl(((G=this.data.emoji)==null?void 0:G.emojiId)||"");_.Eo(this.hostElement).querySelector('[selection="user"]').src.includes(b)||(this.isEmojiDraftInProgress=!0)}};
_.m.onDomChange=function(){Y78(this.ytEmojiSelectorBehavior)};
_.m.getFocusableElements=function(){return _.Eo(this.hostElement).querySelectorAll("img").filter(function(G){return G.getAttribute("role")==="option"})};
_.m.changeFocus=function(G){var b=this.getFocusableElements();b!=null&&b.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+G+b.length)%b.length,this.ytEmojiSelectorBehavior.focusedIndex<b.length&&(G=b[this.ytEmojiSelectorBehavior.focusedIndex])&&G.focus())};
_.m.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))};
_.kV.Object.defineProperties(TN.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var G=this,b,I,h;return this.emojiManager&&((b=this.data)==null?0:(I=b.emoji)==null?0:(h=I.variantIds)==null?0:h.length)?this.data.emoji.variantIds.map(function(q){return!!q&&_.GN(G.emojiManager,q)}).filter(function(q){return!!q}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var G,b=(G=this.userSelection)==null?void 0:G.left,I;G=(I=this.userSelection)==null?void 0:I.right;return b&&G?this.getEmojiFromPartialSelections(b,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 b;G=(b=this.userSelection)==null?void 0:b.left;var I;b=(I=this.userSelection)==null?void 0:I.right;if(!G&&!b){var h;return this.ytEmojiSelectorBehavior.emojiUrl(((h=this.data.emoji)==null?void 0:h.emojiId)||"")}return G&&!b?G:!G&&b?b:""}}});
TN.prototype.onMultiSelectorThumbnailRowChanged=TN.prototype.onMultiSelectorThumbnailRowChanged;TN.prototype.onClick=TN.prototype.onClick;_.R([_.z(_.IV),_.n("design:type",Object)],TN.prototype,"ironOverlayBehavior",void 0);_.R([_.z(CwB),_.n("design:type",Object)],TN.prototype,"ytEmojiSelectorBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],TN.prototype,"data",void 0);_.R([_.H(),_.n("design:type",_.$k)],TN.prototype,"emojiManager",void 0);
_.R([_.H(),_.n("design:type",Object)],TN.prototype,"userSelection",void 0);_.R([_.H(),_.n("design:type",Object)],TN.prototype,"scrollAction",void 0);_.R([_.H(),_.n("design:type",Object)],TN.prototype,"isEmojiDraftInProgress",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],TN.prototype,"emojiVariants",null);_.R([_.P("data","userSelection"),_.n("design:type",Object),_.n("design:paramtypes",[])],TN.prototype,"composedEmojiSelection",null);
_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[MouseEvent]),_.n("design:returntype")],TN.prototype,"onClick",null);_.R([_.q5("data.emoji.multiSelectorThumbnailRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TN.prototype,"onMultiSelectorThumbnailRowChanged",null);_.R([_.P("data","userSelection","composedEmojiSelection"),_.n("design:type",String),_.n("design:paramtypes",[])],TN.prototype,"draftEmojiUrl",null);
_.R([_.g8({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],TN);
_.J(TN,"yt-emoji-multi-person-selector",function(){if(KRn===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Jmn===void 0&&(Jmn=document.createElement("template"));var h=Jmn;I.call(b,h.content.cloneNode(!0),G.content.firstChild);KRn=G}G=KRn;return G},{mode:2});var OBW;var w9i;var Bd=function(){var G=_.a.apply(this,arguments)||this;G.tooltip_=null;return G};
_.M(Bd,_.a);_.m=Bd.prototype;_.m.dataChanged_=function(){var G;if((G=this.data)==null?0:G.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Eo(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.$y)(this.tooltip_).textContent=this.data.tooltip};
_.m.computeTargetId=function(){var G;return((G=this.data)==null?void 0:G.targetId)||""};
_.m.computeId_=function(G){return G};
_.m.computeIcon_=function(G){return _.pn(G)};
_.m.onTap_=function(){this.active=!this.active;_.O3(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.m.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("active-changed",this.active))};
_.kV.Object.defineProperties(Bd.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var G,b;if((G=this.data)==null?0:(b=G.icon)==null?0:b.iconType)return this.data.icon.iconType==="SUPER_STICKER";var I,h;return((I=this.data)==null?void 0:(h=I.icon)==null?void 0:h.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Bd.prototype.activeChangedForBinding=Bd.prototype.activeChangedForBinding;Bd.prototype.dataChanged_=Bd.prototype.dataChanged_;_.R([_.z(_.wZ.YtLiveChatTooltipTargetingBehavior),_.n("design:type",Object)],Bd.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Bd.prototype,"data",void 0);_.R([_.H({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.n("design:type",String)],Bd.prototype,"id",void 0);
_.R([_.H({computed:"computeTargetId(data.targetId)"}),_.n("design:type",String)],Bd.prototype,"targetId",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Bd.prototype,"active",void 0);_.R([_.H({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.n("design:type",String)],Bd.prototype,"icon",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bd.prototype,"dataChanged_",null);
_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Bd.prototype,"iconFilled",null);_.R([_.q5("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bd.prototype,"activeChangedForBinding",null);_.R([_.g8({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Bd);
_.J(Bd,"yt-emoji-picker-category-button-renderer",function(){if(w9i===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;OBW===void 0&&(OBW=document.createElement("template"));var h=OBW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);w9i=G}G=w9i;return G},{mode:2});var ECn;var p9n;var Uq=function(){var G=_.a.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$14360_ignoreNextFocus_=!1;G.longPressTimeoutId=-1;return G};
_.M(Uq,_.a);_.m=Uq.prototype;_.m.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.m.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.m.emojiChanged_=function(){this.changeFocus_(0,!1);for(var G=_.qo(),b=0;b<this.emoji.length;b++){var I={veType:88013,elementIndex:b},h=this.emoji[b];h.isCustomEmoji&&(h=document.querySelector(("#"+h.emojiId).replace("/","\\/")))&&(I=_.IM(G,I))&&(h.visualElement=I)}};
_.m.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.m.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.m.emojiSkinToneChanged_=function(G){this.skinTone=G};
_.m.dataChanged=function(){this.data&&this.data.emojiData&&CKB(this.emojiManager,this.data.emojiData)};
_.m.emojiUrl=function(G){G=this.getEmoji(G);if(!G)return"";var b;G=(b=G.image)==null?void 0:b.thumbnails;return _.KG(G,24)||""};
_.m.emojiAlt=function(G){var b=this.get("image.accessibility.accessibilityData.label",G);return b?b:G.isCustomEmoji?G.shortcuts[0]:G.emojiId};
_.m.emojiAriaLabel=function(G){return G.shortcuts?G.shortcuts[0]:""};
_.m.emojiAriaSelected=function(G,b,I){return G&&I==b?"true":"false"};
_.m.getEmoji=function(G){if(this.emojiManager)return this.shouldUseStickyPreferences?KVi(this.emojiManager,G):bh(this.emojiManager,G)};
_.m.computeId_=function(G){return G.categoryId||""};
_.m.computeEmoji=function(G){var b=this;return this.emojiManager?G.emojiIds?G.emojiIds.map(function(I){return I?_.GN(b.emojiManager,I):null}).filter(WRs):G.emojiData?G.emojiData.map(function(I){var h=!!I.emojiId&&_.GN(b.emojiManager,I.emojiId);
return h?Object.assign({},h,I):null}).filter(WRs):[]:[]};
_.m.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.m.computeAriaLabel_=function(G){return _.NO(G)};
_.m.computeAriaActivedescendant_=function(G,b){return G&&G[b]?G[b].emojiId||"":""};
_.m.handleLongPressEmojiWithVariants=function(G,b){this.changeFocusToEmoji(G.emojiId,!1);this.openVariantSelector(G,b)};
_.m.onMouseDown=function(G){var b=this;this.hostElement!==document.activeElement&&(this.JSC$14360_ignoreNextFocus_=!0);if(G.button===0){var I=_.a_(G);if(I instanceof HTMLImageElement){var h=_.Eo(this.hostElement).querySelector("#repeat").itemForElement(I);this.emojiContainsVariants(h)&&(this.longPressTimeoutId=setTimeout(function(){b.handleLongPressEmojiWithVariants(h,I)},500))}}};
_.m.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.m.onFocus=function(){this.JSC$14360_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14360_ignoreNextFocus_=!1};
_.m.onBlur_=function(){this.showFocus=!1};
_.m.emojiContainsVariants=function(G){return!!(G&&G.variantIds&&G.variantIds.length)};
_.m.onClick=function(G){clearTimeout(this.longPressTimeoutId);G=_.a_(G);if(G instanceof HTMLImageElement){var b=G.id;this.changeFocusToEmoji(b,!1);var I=this.getEmoji(b),h;if(h=this.shouldUseStickyPreferences&&this.emojiContainsVariants(I)){var q;h=!((q=this.emojiManager.emojiMap[b])!=null&&q.stickyPrefId)}h?(q=_.Eo(this.hostElement).querySelector("#repeat").itemForElement(G),this.openVariantSelector(q,G)):_.O3(this.hostElement,"yt-emoji-select",I)}};
_.m.isActiveEmojiWithVariants=function(G,b){return G&&b?b.stickyPrefId?G===b.stickyPrefId:G===b.emojiId:!1};
_.m.onCloseEmojiVariantSelector=function(G){this.activeEmojiWithVariantsId===G&&(this.activeEmojiWithVariantsId="")};
_.m.onMouseOver_=function(G){G=_.a_(G);G instanceof HTMLImageElement&&_.O3(this.hostElement,"yt-emoji-hover",_.GN(this.emojiManager,G.id))};
_.m.changeFocus_=function(G,b){this.focusedIndex=(this.focusedIndex+G+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(G=this.emoji[this.focusedIndex],b&&(this.showFocus=!0,_.Eo(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.O3(this.hostElement,"yt-emoji-hover",G)))};
_.m.changeFocusToEmoji=function(G,b){if(G){var I=this.emoji.findIndex(function(h){return h.emojiId===G});
I!==-1&&this.changeFocus_(I-this.focusedIndex,b)}};
_.m.onKeyDown_=function(G){switch(G.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var b=this.emoji[this.focusedIndex];if(b&&b.emojiId){if(this.emojiContainsVariants(b)){var I=_.Eo(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(b,I)}else _.O3(this.hostElement,"yt-emoji-select",bh(this.emojiManager,b.emojiId)),this.hostElement.focus();G.preventDefault()}}break;case 40:this.changeFocus_(1,!0);G.preventDefault();break;case 38:this.changeFocus_(-1,!0),
G.preventDefault()}};
_.m.onEmojiStickyPreferenceChanged=function(G,b){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&G.emojiId&&G.variantIds&&G.variantIds.includes(b)&&this.activeEmojiWithVariantsId!==b&&this.setStickyEmojiPreference(G.emojiId,b)};
_.m.openVariantSelector=function(G,b){this.activeEmojiWithVariantsId=G.stickyPrefId||G.emojiId||"";_.O3(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:G,target:b})};
_.m.setStickyEmojiPreference=function(G,b){if(this.data){var I=this.emoji.findIndex(function(q){return q.emojiId===G});
if(I!==-1){var h=this.emoji[I];h.stickyPrefId=b;this.set("emoji."+I,Object.assign({},h));this.activeEmojiWithVariantsId=b}}};
Uq.prototype.onKeyDown_=Uq.prototype.onKeyDown_;Uq.prototype.onMouseOver_=Uq.prototype.onMouseOver_;Uq.prototype.onClick=Uq.prototype.onClick;Uq.prototype.onBlur_=Uq.prototype.onBlur_;Uq.prototype.onFocus=Uq.prototype.onFocus;Uq.prototype.onMouseUp=Uq.prototype.onMouseUp;Uq.prototype.onMouseDown=Uq.prototype.onMouseDown;Uq.prototype.dataChanged=Uq.prototype.dataChanged;Uq.prototype.disableIncrementalLoadingChanged_=Uq.prototype.disableIncrementalLoadingChanged_;Uq.prototype.emojiManagerChanged_=Uq.prototype.emojiManagerChanged_;
Uq.prototype.emojiChanged_=Uq.prototype.emojiChanged_;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Uq.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Uq.prototype,"data",void 0);_.R([_.H({computed:"computeId_(data)"}),_.n("design:type",String)],Uq.prototype,"id",void 0);_.R([_.H({computed:"computeEmoji(data)"}),_.n("design:type",Array)],Uq.prototype,"emoji",void 0);_.R([_.H(),_.n("design:type",Number)],Uq.prototype,"skinTone",void 0);
_.R([_.H(),_.n("design:type",_.$k)],Uq.prototype,"emojiManager",void 0);_.R([_.H(),_.n("design:type",Boolean)],Uq.prototype,"disableIncrementalLoading",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],Uq.prototype,"focusedIndex",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Uq.prototype,"showFocus",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.n("design:type",Object)],Uq.prototype,"ariaLabel",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.n("design:type",Object)],Uq.prototype,"ariaActivedescendant",void 0);_.R([_.H({value:60}),_.n("design:type",Number)],Uq.prototype,"domRepeatTargetFramerate",void 0);_.R([_.H({value:1}),_.n("design:type",Number)],Uq.prototype,"domRepeatInitialCount",void 0);_.R([_.H({value:""}),_.n("design:type",String)],Uq.prototype,"activeEmojiWithVariantsId",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],Uq.prototype,"shouldUseStickyPreferences",void 0);_.R([_.q5("emoji"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uq.prototype,"emojiChanged_",null);_.R([_.q5("emojiManager"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uq.prototype,"emojiManagerChanged_",null);
_.R([_.q5("disableIncrementalLoading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uq.prototype,"disableIncrementalLoadingChanged_",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uq.prototype,"dataChanged",null);_.R([_.hI("mousedown"),_.n("design:type",Function),_.n("design:paramtypes",[Object]),_.n("design:returntype")],Uq.prototype,"onMouseDown",null);
_.R([_.hI("mouseup"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uq.prototype,"onMouseUp",null);_.R([_.hI("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uq.prototype,"onFocus",null);_.R([_.hI("blur"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uq.prototype,"onBlur_",null);
_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Uq.prototype,"onClick",null);_.R([_.hI("mouseover"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Uq.prototype,"onMouseOver_",null);_.R([_.hI("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Uq.prototype,"onKeyDown_",null);
_.R([_.g8({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Uq);
_.J(Uq,"yt-emoji-picker-category-renderer",function(){if(p9n===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;ECn===void 0&&(ECn=document.createElement("template"));var h=ECn;I.call(b,h.content.cloneNode(!0),G.content.firstChild);p9n=G}G=p9n;return G},{mode:2});var S7i;var X9B;var $Ge;var G6b;var sq=function(){var G=_.a.apply(this,arguments)||this;G.ariaLabel=null;G.ariaActivedescendant=null;G.getFormattedStringRawText=_.NO;G.JSC$14366_ignoreNextFocus_=!1;return G};
_.M(sq,_.a);_.m=sq.prototype;_.m.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")};
_.m.emojiUrl=function(G){var b,I;G=(b=bh(this.emojiManager,G,!0))==null?void 0:(I=b.image)==null?void 0:I.thumbnails;return _.KG(G,24)||""};
_.m.emojiAlt=function(G){var b=this.get("image.accessibility.accessibilityData.label",G);return b?b:G.isCustomEmoji?G.shortcuts[0]:G.emojiId};
_.m.emojiId=function(G){return"emoji"+G};
_.m.computeId_=function(G){return G.categoryId||""};
_.m.computeAriaActivedescendant_=function(G){return this.emoji&&G<this.emoji.length?this.emojiId(G):""};
_.m.emojiChanged_=function(){this.changeFocus_(0,!1);for(var G=_.qo(),b=0;b<this.emoji.length;b++){var I={veType:88013,elementIndex:b},h=this.emoji[b];h.isCustomEmoji&&(h=document.querySelector(("#"+h.emojiId).replace("/","\\/")))&&(I=_.IM(G,I))&&(h.visualElement=I)}};
_.m.computeEmoji_=function(G){var b=this;return this.emojiManager?G.emojiIds.map(function(I){return _.GN(b.emojiManager,I,!0)}).filter(aBp):[]};
_.m.titleOffsetChanged_=function(){var G=this.hostElement.getBoundingClientRect(),b=_.Eo(this.hostElement).querySelector("#title").getBoundingClientRect();G=Math.max(0,Math.min(this.titleOffset,G.height-b.height));_.Eo(this.hostElement).querySelector("#title").style.top=G+"px"};
_.m.onEmojiMouseOver_=function(G){_.O3(this.hostElement,"yt-emoji-hover",G.model.item)};
_.m.onEmojiTap_=function(G){this.data.command&&(G=M9q(_.LL().resolve(_.vf(GX)),this.data.command,G),_.O3(this.hostElement,"yt-navigate",G))};
_.m.emojiAriaLabel=function(G){return G.shortcuts[0]};
_.m.emojiAriaSelected=function(G,b,I){return G&&I==b?"true":"false"};
_.m.changeFocus_=function(G,b){var I=this.emoji.length;this.focusedIndex=(this.focusedIndex+G+I)%I;G=this.emoji[this.focusedIndex];if(b){var h;(h=_.Eo(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||h.scrollIntoView(!1);_.O3(this.hostElement,"yt-emoji-hover",G)}};
_.m.onMouseDown_=function(){this.JSC$14366_ignoreNextFocus_=!0};
_.m.onFocus_=function(){this.JSC$14366_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14366_ignoreNextFocus_=!1};
_.m.onBlur_=function(){this.showFocus=!1};
_.m.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()}};
sq.prototype.onKeyDown_=sq.prototype.onKeyDown_;sq.prototype.onBlur_=sq.prototype.onBlur_;sq.prototype.onFocus_=sq.prototype.onFocus_;sq.prototype.onMouseDown_=sq.prototype.onMouseDown_;sq.prototype.onEmojiTap_=sq.prototype.onEmojiTap_;sq.prototype.titleOffsetChanged_=sq.prototype.titleOffsetChanged_;sq.prototype.emojiChanged_=sq.prototype.emojiChanged_;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],sq.prototype,"ytComponentBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],sq.prototype,"data",void 0);_.R([_.H({computed:"computeId_(data)"}),_.n("design:type",String)],sq.prototype,"id",void 0);_.R([_.H({computed:"computeEmoji_(data)"}),_.n("design:type",Array)],sq.prototype,"emoji",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],sq.prototype,"titleOffset",void 0);_.R([_.H({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.n("design:type",Object)],sq.prototype,"ariaLabel",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.n("design:type",Object)],sq.prototype,"ariaActivedescendant",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],sq.prototype,"showFocus",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],sq.prototype,"focusedIndex",void 0);_.R([_.H(),_.n("design:type",_.$k)],sq.prototype,"emojiManager",void 0);
_.R([_.q5("emoji"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sq.prototype,"emojiChanged_",null);_.R([_.q5("titleOffset"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sq.prototype,"titleOffsetChanged_",null);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],sq.prototype,"onEmojiTap_",null);
_.R([_.hI("mousedown"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sq.prototype,"onMouseDown_",null);_.R([_.hI("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sq.prototype,"onFocus_",null);_.R([_.hI("blur"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sq.prototype,"onBlur_",null);
_.R([_.hI("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],sq.prototype,"onKeyDown_",null);_.R([_.g8({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],sq);
_.J(sq,"yt-emoji-picker-upsell-category-renderer",function(){if(G6b===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;$Ge===void 0&&($Ge=document.createElement("template"));var h=$Ge;I.call(b,h.content.cloneNode(!0),G.content.firstChild);G6b=G}G=G6b;return G},{mode:2});var bZu;var Iqi;var gN=function(){var G=_.a.apply(this,arguments)||this;G.scrollAction="lock";G.verticalAlign="top";return G};
_.M(gN,_.a);_.m=gN.prototype;_.m.onClick=function(G){G=_.a_(G);G instanceof HTMLImageElement&&_.O3(this.hostElement,"yt-emoji-select",_.GN(this.emojiManager,G.id))};
_.m.openSelector=function(){this.ironOverlayBehavior.open()};
_.m.onDomChange=function(){Y78(this.ytEmojiSelectorBehavior)};
_.m.computeIsFamilySelector=function(G){var b;return(G==null?void 0:(b=G.emoji)==null?void 0:b.emojiId)==="\ud83d\udc6a"};
_.m.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var G=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];G&&G.emojiId&&(_.O3(this.hostElement,"yt-emoji-select",_.GN(this.emojiManager,G.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.kV.Object.defineProperties(gN.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var G=this,b,I,h;return this.emojiManager&&((b=this.data)==null?0:(I=b.emoji)==null?0:(h=I.variantIds)==null?0:h.length)?this.data.emoji.variantIds.map(function(q){return!!q&&_.GN(G.emojiManager,q)}).filter(function(q){return!!q}):[]}}});
gN.prototype.onClick=gN.prototype.onClick;_.R([_.z(_.IV),_.n("design:type",Object)],gN.prototype,"ironOverlayBehavior",void 0);_.R([_.z(CwB),_.n("design:type",Object)],gN.prototype,"ytEmojiSelectorBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],gN.prototype,"data",void 0);_.R([_.H(),_.n("design:type",_.$k)],gN.prototype,"emojiManager",void 0);_.R([_.H(),_.n("design:type",Object)],gN.prototype,"scrollAction",void 0);_.R([_.H(),_.n("design:type",Object)],gN.prototype,"verticalAlign",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.n("design:type",Boolean)],gN.prototype,"isFamilySelector",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],gN.prototype,"emojiVariants",null);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[MouseEvent]),_.n("design:returntype")],gN.prototype,"onClick",null);_.R([_.g8({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],gN);
_.J(gN,"yt-emoji-variant-selector",function(){if(Iqi===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;bZu===void 0&&(bZu=document.createElement("template"));var h=bZu;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Iqi=G}G=Iqi;return G},{mode:2});var hfn=/:/g,q_b=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],Ay=function(){var G=_.a.apply(this,arguments)||this;G.emojiVariantSelector=null;G.emojiMultiPersonSelector=null;G.identity=_.H2;G.lastAnimationTime_=0;G.animationStart_=null;G.animationEnd_=null;return G};
_.M(Ay,_.a);_.m=Ay.prototype;
_.m.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}}};
_.m.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.I4)};
_.m.attached=function(){_.Sf&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&J6z(this.emojiManager)};
_.m.dataChanged=function(){var G;if((G=this.data)==null?0:G.categories){G=this.emojiManager;var b=this.getCustomEmojiIds();G.pickerCustomEmojiIds=[].concat(_.Nz(Hxz),_.Nz(b))}};
_.m.getCustomEmojiIds=function(){var G,b=(G=this.data.categories)==null?void 0:G.find(function(l){var V;return((V=l.emojiPickerCategoryRenderer)==null?void 0:V.categoryId)&&q_b.includes(l.emojiPickerCategoryRenderer.categoryId)}),I;
G=(I=this.data.categories)==null?void 0:I.find(function(l){return l.emojiPickerUpsellCategoryRenderer});
var h,q;return[b==null?void 0:(h=b.emojiPickerCategoryRenderer)==null?void 0:h.emojiIds,G==null?void 0:(q=G.emojiPickerUpsellCategoryRenderer)==null?void 0:q.emojiIds].flat().filter(function(l){return!!l})};
_.m.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.m.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.m.updateCategoriesAndPlaceholderInternal=function(G,b){var I=this;G&&b&&(this.categories=G.categories||[],this.categoryButtons=G.categoryButtons||[],this.resetPlaceholder(),this.search="",_.iH(function(){I.updateButtons_()}))};
_.m.computeId_=function(G){return G.id||""};
_.m.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(G){return G.emojiPickerCategoryRenderer&&G.emojiPickerCategoryRenderer.emojiData}):!1};
_.m.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.m.onShowEmojiVariantSelector=function(G){var b=G.detail.emojiData;b.variantIds&&b.variantIds.length&&(b.multiSelectorThumbnailRow&&b.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:b,target:G.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:b,target:G.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.m.onIronOverlayClosed=function(G){var b=KVi(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");b&&G.composedPath&&(G.composedPath().includes(_.Eo(this.hostElement).querySelector("#emoji-variant-selector"))||G.composedPath().includes(_.Eo(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.wL(this.hostElement,"yt-close-emoji-variant-selector",[b.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.m.onEmojiVariantSelectorMouseup=function(G){var b=G.target.firstChild;this.variantSelectorOpened&&b&&_.iH(function(){b.noCancelOnOutsideClick=!1},100)};
_.m.onEmojiVariantSelectorMousedown=function(G){G=G.target.firstChild;this.variantSelectorOpened&&G&&(G.noCancelOnOutsideClick=!1)};
_.m.onSelectCategory_=function(G){var b=this.search!="";this.search="";for(var I=_.Eo(this.hostElement).querySelector("#categories").children,h=0;h<I.length;h++){var q=I[h];if(q.id==G.detail.categoryId){b?(_.Eo(this.hostElement).querySelector("#categories").scrollTop=q.offsetTop,this.updateButtons_()):(this.animationStart_=_.Eo(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=q.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.m.onEmojiHover_=function(G){this.placeholder=G.detail.shortcuts?G.detail.shortcuts[0]:""};
_.m.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.m.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.m.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.m.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.m.computeSearchCategory_=function(G){G=G.replace(hfn,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();G=G.split(" ");for(var b=[],I=this.emojiManager.emojis,h=0;h<I.length;h++){var q=I[h];if(q.searchTerms)for(var l=0;l<q.searchTerms.length;l++){for(var V=q.searchTerms[l].toLocaleLowerCase(),D=!1,k=0;k<G.length;k++)if(V.indexOf(G[k])!=-1){D=!0;break}if(D&&(!q.isCustomEmoji||!q.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(q.emojiId))){b.push(q.emojiId);
break}}}return{categoryId:-1,emojiIds:b}};
_.m.computeSearchEmptyMessage_=function(G,b){return G&&b&&b.emojiIds&&b.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.m.computeSearching_=function(G){return this.emojiManager&&G.replace(hfn,"").length>1};
_.m.computeSkinToneHidden=function(){var G;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((G=this.data)==null||!G.hideSkinTonePicker)};
_.m.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.m.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.m.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.m.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.m.selectSkinTone_=function(G){G=Number(G.target.getAttribute("tone"));this.set("emojiManager.skinTone",G);_.wL(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[G]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.m.skinToneChanged_=function(){_.Eo(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var G=_.Eo(this.hostElement).querySelector("#dropdown-content").children,b=0;b<G.length;b++)b===this.skinTone?G[b].setAttribute("selected",""):G[b].removeAttribute("selected")};
_.m.animateScroll_=function(G){this.lastAnimationTime_||(this.lastAnimationTime_=G);G-=this.lastAnimationTime_;G<200?(_.Eo(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*G/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Eo(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.m.searchChanged_=function(){this.updateButtons_()};
_.m.updateButtons_=function(){var G=null;if(!this.search)for(var b=_.Eo(this.hostElement).querySelector("#categories").scrollTop,I=_.Eo(this.hostElement).querySelector("#categories").children,h=0;h<I.length;h++){var q=I[h];q.offsetTop<=b&&(G=q.id)}b=_.Eo(this.hostElement).querySelector("#category-buttons").children;for(I=0;I<b.length;I++)h=b[I],h.active=h.id===G};
Ay.prototype.searchChanged_=Ay.prototype.searchChanged_;Ay.prototype.skinToneChanged_=Ay.prototype.skinToneChanged_;Ay.prototype.onEmojiHover_=Ay.prototype.onEmojiHover_;Ay.prototype.onSelectCategory_=Ay.prototype.onSelectCategory_;Ay.prototype.onShowEmojiVariantSelector=Ay.prototype.onShowEmojiVariantSelector;Ay.prototype.updateCategoriesAndPlaceholder_=Ay.prototype.updateCategoriesAndPlaceholder_;Ay.prototype.dataChanged=Ay.prototype.dataChanged;
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ay.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ay.prototype,"data",void 0);_.R([_.H({value:function(){return[]}}),
_.n("design:type",Array)],Ay.prototype,"categories",void 0);_.R([_.H({value:function(){return[]}}),
_.n("design:type",Array)],Ay.prototype,"categoryButtons",void 0);_.R([_.H({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Ay.prototype,"disableScroll",void 0);_.R([_.H({computed:"computeId_(data)",reflectToAttribute:!0}),_.n("design:type",String)],Ay.prototype,"id",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Ay.prototype,"selected",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],Ay.prototype,"disableIncrementalLoading",void 0);_.R([_.H(),_.n("design:type",String)],Ay.prototype,"placeholder",void 0);_.R([_.H({value:""}),_.n("design:type",String)],Ay.prototype,"search",void 0);_.R([_.H({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Ay.prototype,"searching",void 0);_.R([_.H({computed:"computeSearchCategory_(search)"}),_.n("design:type",Object)],Ay.prototype,"searchCategory",void 0);
_.R([_.H({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.n("design:type",Object)],Ay.prototype,"searchEmptyMessage",void 0);_.R([_.H({computed:"identity(emojiManager.skinTone)"}),_.n("design:type",Number)],Ay.prototype,"skinTone",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Ay.prototype,"skinToneOpened",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Ay.prototype,"variantSelectorOpened",void 0);
_.R([_.H({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.n("design:type",Boolean)],Ay.prototype,"skinToneHidden",void 0);_.R([_.H(),_.n("design:type",_.$k)],Ay.prototype,"emojiManager",void 0);_.R([_.H(),_.n("design:type",Object)],Ay.prototype,"emojiVariantSelector",void 0);_.R([_.H(),_.n("design:type",Object)],Ay.prototype,"emojiMultiPersonSelector",void 0);
_.R([_.H({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.n("design:type",Boolean)],Ay.prototype,"shouldUseStickyPreferences",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ay.prototype,"dataChanged",null);_.R([_.q5("data","selected"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ay.prototype,"updateCategoriesAndPlaceholder_",null);
_.R([_.hI("yt-show-emoji-variant-selector"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Ay.prototype,"onShowEmojiVariantSelector",null);_.R([_.hI("yt-emoji-picker-select-category"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Ay.prototype,"onSelectCategory_",null);_.R([_.hI("yt-emoji-hover"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Ay.prototype,"onEmojiHover_",null);
_.R([_.q5("skinTone"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ay.prototype,"skinToneChanged_",null);_.R([_.q5("search"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ay.prototype,"searchChanged_",null);_.R([_.g8({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],Ay);
_.J(Ay,"yt-emoji-picker-renderer",function(){if(X9B===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;S7i===void 0&&(S7i=document.createElement("template"));var h=S7i;I.call(b,h.content.cloneNode(!0),G.content.firstChild);X9B=G}G=X9B;return G},{mode:2});var MT=function(){var G=_.a.apply(this,arguments)||this;G.emojiManager=_.I4;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.selectedIndex=1;G.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return G};
_.M(MT,_.a);_.m=MT.prototype;_.m.handleEmojiCustomizationVisible=function(G){this.emojiPickerRenderer.selected=G;this.selectedIndex=1;G?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.m.emojiCustomizationSetChanged=function(){var G;(G=this.data)!=null&&G.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.pO(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.m.updateSaveButtonState=function(G){var b;(b=this.data)!=null&&b.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Da("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:G}))};
_.m.emojiUrl=function(G){G=_.GN(this.emojiManager,G);if(!G)return"";var b;G=(b=G.image)==null?void 0:b.thumbnails;return _.KG(G,24)||""};
_.m.emojiAlt=function(G){var b=_.GN(this.emojiManager,G);if(!b)return G;var I,h,q,l=(b==null?void 0:(I=b.image)==null?void 0:(h=I.accessibility)==null?void 0:(q=h.accessibilityData)==null?void 0:q.label)||"";return l?l:b.isCustomEmoji?b.shortcuts[0]:b.emojiId||G};
_.m.emojiAriaLabel=function(G){var b,I;return((b=_.GN(this.emojiManager,G))==null?void 0:(I=b.shortcuts)==null?void 0:I[0])||G};
_.m.onEmojiClick=function(G){G.model.index!==0&&(this.selectedIndex=G.model.index)};
_.m.onEmojiSelect=function(G){G=G.detail;var b,I;((b=this.data)==null?0:b.emojiCustomizationSetEntityKey)&&((I=this.emojiCustomizationSet)==null?0:I.emojiId)&&G.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,G.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Da("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,G.emojiId,this.selectedIndex)}))};
_.m.canEditEmoji=function(G,b,I){G=G.indexOf(b);return G===I||G===0||I===0?!1:!0};
_.m.getUpdatedEmojiIdList=function(G,b,I){var h=G.indexOf(b);G=[].concat(_.Nz(G));h>=0&&(G[h]=G[I]);G[I]=b;return G};
_.kV.Object.defineProperties(MT,{template:{configurable:!0,enumerable:!0,get:function(){if(AmQ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;gC5===void 0&&(gC5=document.createElement("template"));var h=gC5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);AmQ=G}G=AmQ;return G}}});
MT.prototype.onEmojiSelect=MT.prototype.onEmojiSelect;_.R([_.z(_.ON),_.n("design:type",Object)],MT.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],MT.prototype,"ytActionHandlerBehavior",void 0);_.R([_.lH("yt-emoji-picker-renderer"),_.n("design:type",Object)],MT.prototype,"emojiPickerRenderer",void 0);
_.R([_.H({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(G,b){return _.Gi(G.entities,"emojiCustomizationSetEntity",b)},
observer:"emojiCustomizationSetChanged"}),_.n("design:type",Object)],MT.prototype,"emojiCustomizationSet",void 0);_.R([_.H(),_.n("design:type",Object)],MT.prototype,"originalEmojiSet",void 0);_.R([_.H(),_.n("design:type",_.$k)],MT.prototype,"emojiManager",void 0);_.R([_.H(),_.n("design:type",Object)],MT.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],MT.prototype,"isDarkTheme",void 0);_.R([_.H(),_.n("design:type",Object)],MT.prototype,"selectedIndex",void 0);
_.R([_.hI("yt-emoji-select"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],MT.prototype,"onEmojiSelect",null);_.R([_.g8({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],MT);var jhW;var lqQ;var mGX;var ef5;var Z9=function(){var G=_.a.apply(this,arguments)||this;G.authorBadges=[];return G};
_.M(Z9,_.a);_.m=Z9.prototype;_.m.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.m.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]]"}}}}}};
_.m.dataChanged=function(){var G=chd(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",G)};
_.m.updateMessage=function(){var G=this.data.message,b=_.Eo(_.Eo(this.hostElement).querySelector("#message"));b.textContent="";G&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.m.shouldSupportWholeItemClick=function(){return!0};
_.m.onShowOriginalClick=function(G){G.preventDefault();this.showOriginal=!0};
_.m.computeShowBar=function(G,b,I){return G&&b||I};
_.m.computeAuthorBadges=function(G){return G.authorBadges||[]};
_.m.computeAuthorIsOwner=function(G){return!!kEd(G.authorBadges,"owner")};
_.m.computeAuthorNameColor=function(G){var b;if(_.U("live_chat_author_name_color_usernames")&&(G==null?0:(b=G.authorName)==null?0:b.simpleText))return _.TOj(_.BOX(G.authorName.simpleText));if(_.U("live_chat_seed_color_usernames")&&(G==null?0:G.authorSeedColorArgb))return _.TOj(_.w8(G.authorSeedColorArgb));if(_.U("live_chat_colored_usernames"))return"#cc0000";var I;return _.U("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")?_.w8(G.authorUsernameColorDark):_.w8(G.authorUsernameColorLight):""};
Z9.prototype.updateMessage=Z9.prototype.updateMessage;Z9.prototype.dataChanged=Z9.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],Z9.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Z9.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Z9.prototype,"data",void 0);
_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Z9.prototype,"showOriginal",void 0);_.R([_.H({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Z9.prototype,"isDimmed",void 0);_.R([_.H({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Z9.prototype,"showBar",void 0);
_.R([_.H({computed:"computeAuthorBadges(data)"}),_.n("design:type",Array)],Z9.prototype,"authorBadges",void 0);_.R([_.H({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Z9.prototype,"authorIsOwner",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Z9.prototype,"inCollapsedBanner",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Z9.prototype,"inBanner",void 0);
_.R([_.H({value:_.U("live_chat_hide_avatars"),reflectToAttribute:!0}),_.n("design:type",Boolean)],Z9.prototype,"avatarHidden",void 0);_.R([_.H({computed:"computeAuthorNameColor(data)"}),_.n("design:type",String)],Z9.prototype,"authorNameColor",void 0);_.R([_.H(),_.n("design:type",_.mU)],Z9.prototype,"participantsManager",void 0);_.R([_.H({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.n("design:type",Object)],Z9.prototype,"filledButtonOverrides",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Z9.prototype,"dataChanged",null);_.R([_.q5("data.message"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Z9.prototype,"updateMessage",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Z9);
_.J(Z9,"yt-live-chat-text-message-renderer",function(){if(ef5===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;mGX===void 0&&(mGX=document.createElement("template"));var h=mGX;I.call(b,h.content.cloneNode(!0),G.content.firstChild);ef5=G}G=ef5;return G},{mode:0});var ty=function(){var G=_.a.apply(this,arguments)||this;G.tonalButtonOverrides={type:"tonal",style:"overlay"};return G};
_.M(ty,_.a);
ty.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]]"}}}}}};
ty.prototype.shouldSupportInlineActionButtons=function(){return!0};
ty.prototype.shouldSupportWholeItemClick=function(){return!0};
_.kV.Object.defineProperties(ty.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],ty.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ty.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ty.prototype,"data",void 0);_.R([_.H(),_.n("design:type",_.mU)],ty.prototype,"participantsManager",void 0);
_.R([_.H(),_.n("design:type",Object)],ty.prototype,"tonalButtonOverrides",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.infoDialogButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],ty.prototype,"hasInfoDialogButton",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],ty);
_.J(ty,"yt-live-chat-auto-mod-message-renderer",function(){if(lqQ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;jhW===void 0&&(jhW=document.createElement("template"));var h=jhW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);lqQ=G}G=lqQ;return G},{mode:0});var VrO;var DGO;var cDu;var k6u=function(){return _.a.apply(this,arguments)||this};
_.M(k6u,_.a);_.R([_.H(),_.n("design:type",Object)],k6u.prototype,"data",void 0);_.R([_.N({is:"ytd-factoid-renderer",disableElementRegistration:!0})],k6u);
_.J(k6u,"ytd-factoid-renderer",function(){if(cDu!==void 0)return cDu;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return cDu=G},{mode:1});var zN=function(){return _.a.apply(this,arguments)||this};
_.M(zN,_.a);zN.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.R([_.H(),_.n("design:type",Object)],zN.prototype,"data",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],zN);
_.J(zN,"yt-live-chat-channel-activity-reputation-renderer",function(){if(DGO===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;VrO===void 0&&(VrO=document.createElement("template"));var h=VrO;I.call(b,h.content.cloneNode(!0),G.content.firstChild);DGO=G}G=DGO;return G},{mode:0});var v58;var Ldn;var o4=function(){return _.a.apply(this,arguments)||this};
_.M(o4,_.a);o4.prototype.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Boolean)],o4.prototype,"menuFocused",void 0);_.R([_.H(),_.n("design:type",Object)],o4.prototype,"data",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],o4.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],o4);
_.J(o4,"yt-live-chat-donation-announcement-renderer",function(){if(Ldn===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;v58===void 0&&(v58=document.createElement("template"));var h=v58;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Ldn=G}G=Ldn;return G},{mode:0});var Qhu;var xGi,fqu=function(){if(xGi!==void 0)return xGi;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;Qhu===void 0&&(Qhu=document.createElement("template"));var h=Qhu;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return xGi=G};var ih=function(){return _.a.apply(this,arguments)||this};
_.M(ih,_.a);_.kV.Object.defineProperties(ih,{template:{configurable:!0,enumerable:!0,get:function(){return fqu()}}});
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ih.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ih.prototype,"data",void 0);_.R([_.g8({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],ih);_.J(ih,"yt-live-chat-empty-feed-view-model",function(){return fqu()},{mode:0});var Tw8;var Bwn;var Pd=function(){return _.a.apply(this,arguments)||this};
_.M(Pd,_.a);Pd.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"}}}}}};
_.kV.Object.defineProperties(Pd.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var G,b;return{runs:[{text:(G=this.data)==null?void 0:(b=G.channelName)==null?void 0:b.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var G=[],b;if((b=this.data)==null||!b.channelBadges)return G;var I;b=_.e((I=this.data)==null?void 0:I.channelBadges);for(I=b.next();!I.done;I=b.next()){I=_.g(I.value,xji);var h=void 0,q=void 0;if((h=I)==null?0:(q=h.badgeImage)==null?0:q.sources)h=void 0,q={liveChatAuthorBadgeRenderer:{tooltip:I.tooltip,accessibility:{accessibilityData:{label:(h=_.g(I.rendererContext,_.DA))==null?void 0:h.label}}}},I.badgeImage.sources[0].clientResource?q.liveChatAuthorBadgeRenderer.icon=
{iconType:I.badgeImage.sources[0].clientResource.imageName}:q.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:I.badgeImage.sources},G.push(q)}return G}}});
_.R([_.H(),_.n("design:type",Object)],Pd.prototype,"data",void 0);_.R([_.P("data.channelName"),_.n("design:type",Object),_.n("design:paramtypes",[])],Pd.prototype,"channelName",null);_.R([_.P("data.channelBadges"),_.n("design:type",Array),_.n("design:paramtypes",[])],Pd.prototype,"channelBadges",null);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Pd);
_.J(Pd,"yt-live-chat-identity-view-model",function(){if(Bwn===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Tw8===void 0&&(Tw8=document.createElement("template"));var h=Tw8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Bwn=G}G=Bwn;return G},{mode:0});var UGn;var shX;var g5J;var ADn;var dN=function(){var G=_.a.apply(this,arguments)||this;G.hidden=!1;G.supportsInlineActionButtons=!0;return G};
_.M(dN,_.a);dN.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","")};
dN.prototype.dataChanged=function(G){var b=(0,_.$y)(_.Eo(this.hostElement).querySelector("#detail-text"));b.textContent="";(G==null?0:G.detailText)&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G.detailText))};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],dN.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H({observer:"dataChanged"}),_.n("design:type",Object)],dN.prototype,"data",void 0);
_.R([_.H({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.n("design:type",Object)],dN.prototype,"hidden",void 0);_.R([_.N({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],dN);
_.J(dN,"yt-live-chat-legacy-paid-message-renderer",function(){if(ADn===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;g5J===void 0&&(g5J=document.createElement("template"));var h=g5J;I.call(b,h.content.cloneNode(!0),G.content.firstChild);ADn=G}G=ADn;return G},{mode:0});var Mr8;var ZZz;var trn={},yj=function(){return _.eH.apply(this,arguments)||this};
_.M(yj,_.eH);yj.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
yj.prototype.onLiveChatMembershipItemBehaviorClick=yj.prototype.onLiveChatMembershipItemBehaviorClick;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],yj.prototype,"data",void 0);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],yj.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.R([_.Vx()],yj);
trn.YtLiveChatMembershipItemBehavior=[yj.prototype,_.p.YtRendererBehavior];var rN=function(){var G=_.a.apply(this,arguments)||this;G.supportsInlineActionButtons=!0;G.hasPrimaryHeaderText=!1;G.showOnlyHeader=!1;G.authorBadges=[];G.modern=_.U("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.M(rN,_.a);_.m=rN.prototype;_.m.shouldSupportInlineActionButtons=function(){return!0};
_.m.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.m.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.m.messageChanged=function(){var G=this.data.message,b=(0,_.$y)(_.Eo(this.hostElement).querySelector("#message"));b.textContent="";G&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.m.computeHasPrimaryHeaderText=function(G){return!(!G||!G.headerPrimaryText)};
_.m.computeShowOnlyHeader=function(G,b){return this.isMessageEmpty(G,b)};
_.m.computeAuthorBadges=function(G){return G.authorBadges||[]};
_.m.isMessageEmpty=function(G,b){return!G||G.empty?!0:!G.message&&!G.inputField&&!b};
_.m.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.m.getInputElement=function(){return _.Eo(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.m.inputFocus=function(){var G=this.getInputElement();G&&G.focus()};
_.m.inputInsertEmoji=function(G){var b=this.getInputElement();b&&b.insertEmoji(G)};
_.m.inputMessage=function(){var G=this.getInputElement();return G&&this.data.inputField?(G.completeEmojis(),_.ta(G.liveChatRichMessageInput)):null};
_.m.onFooterButtonClick=function(){this.data.footerButton&&_.O3(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.m.shouldSupportWholeItemClick=function(){return!0};
rN.prototype.isDeletedChanged=rN.prototype.isDeletedChanged;rN.prototype.messageChanged=rN.prototype.messageChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],rN.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.z(trn.YtLiveChatMembershipItemBehavior),_.n("design:type",Object)],rN.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],rN.prototype,"data",void 0);_.R([_.H({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.n("design:type",Object)],rN.prototype,"hasPrimaryHeaderText",void 0);_.R([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.n("design:type",Object)],rN.prototype,"showOnlyHeader",void 0);
_.R([_.H({computed:"computeAuthorBadges(data)"}),_.n("design:type",Array)],rN.prototype,"authorBadges",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],rN.prototype,"modern",void 0);_.R([_.q5("data.message"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rN.prototype,"messageChanged",null);_.R([_.q5("isDeleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rN.prototype,"isDeletedChanged",null);
_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],rN);
_.J(rN,"yt-live-chat-membership-item-renderer",function(){if(ZZz===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Mr8===void 0&&(Mr8=document.createElement("template"));var h=Mr8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);ZZz=G}G=ZZz;return G},{mode:0});var zf5;var o5u;var Fl=function(){return _.a.apply(this,arguments)||this};
_.M(Fl,_.a);Fl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Fl.prototype,"data",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Fl);
_.J(Fl,"yt-live-chat-mode-change-message-renderer",function(){if(o5u===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;zf5===void 0&&(zf5=document.createElement("template"));var h=zf5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);o5u=G}G=o5u;return G},{mode:0});var iZn;var PJW;var Hd=function(){return _.a.apply(this,arguments)||this};
_.M(Hd,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],Hd.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Hd.prototype,"data",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Hd);
_.J(Hd,"yt-live-chat-moderation-message-renderer",function(){if(PJW===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;iZn===void 0&&(iZn=document.createElement("template"));var h=iZn;I.call(b,h.content.cloneNode(!0),G.content.firstChild);PJW=G}G=PJW;return G},{mode:0});var dGQ;var yDQ;var Wd=function(){return _.a.apply(this,arguments)||this};
_.M(Wd,_.a);Wd.prototype.onClick=function(){var G;if((G=this.data)!=null&&G.onClickCommand){var b;_.Xv.instance.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ON),_.n("design:type",Object)],Wd.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],Wd.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Wd.prototype,"data",void 0);
_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Wd);
_.J(Wd,"yt-live-chat-offer-click-count-message-renderer",function(){if(yDQ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;dGQ===void 0&&(dGQ=document.createElement("template"));var h=dGQ;I.call(b,h.content.cloneNode(!0),G.content.firstChild);yDQ=G}G=yDQ;return G},{mode:0});var rDX;var FdX=function(){return _.a.apply(this,arguments)||this};
_.M(FdX,_.a);_.R([_.H(),_.n("design:type",Object)],FdX.prototype,"data",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],FdX);
_.J(FdX,"yt-live-chat-placeholder-item-renderer",function(){if(rDX===void 0){var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);rDX=G}G=rDX;return G},{mode:0});var HZJ;var Wd5;var aqb=new Wj(7),a4=function(){var G=_.a.apply(this,arguments)||this;G.data={};return G};
_.M(a4,_.a);a4.prototype.dataChanged=function(){var G;((G=this.data)==null?0:G.class)&&_.SL(this.hostElement,this.data.class,!0);var b;((b=this.oldData)==null?0:b.class)&&_.SL(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
a4.prototype.computeTimestampString=function(G){return aqb.format(new Date(G/1E3))};
a4.prototype.dataChanged=a4.prototype.dataChanged;_.R([_.H(),_.n("design:type",Object)],a4.prototype,"data",void 0);_.R([_.H({computed:"computeTimestampString(data.timestampUsec)"}),_.n("design:type",String)],a4.prototype,"timestampString",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],a4.prototype,"dataChanged",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],a4);
_.J(a4,"yt-live-chat-server-error-message",function(){if(Wd5===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;HZJ===void 0&&(HZJ=document.createElement("template"));var h=HZJ;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Wd5=G}G=Wd5;return G},{mode:0});var Nwi;var Y_z;var NT=function(){var G=_.a.apply(this,arguments)||this;G.defaultToFilledIcon=!1;return G};
_.M(NT,_.a);NT.prototype.computeHasPrimaryColorIcon=function(G){return G==="SPARK"||G==="SPONSORSHIP_STAR"};
NT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],NT.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],NT.prototype,"defaultToFilledIcon",void 0);_.R([_.H(),_.n("design:type",Object)],NT.prototype,"data",void 0);
_.R([_.H({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.n("design:type",Boolean)],NT.prototype,"hasPrimaryColorIcon",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],NT);
_.J(NT,"yt-live-chat-viewer-engagement-message-renderer",function(){if(Y_z===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Nwi===void 0&&(Nwi=document.createElement("template"));var h=Nwi;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Y_z=G}G=Y_z;return G},{mode:0});var CJ5;var Yk=function(){var G=_.a.apply(this,arguments)||this;G.modernUpdate=!1;G.buttonStyle="overlay";G.buttonType="filled";return G};
_.M(Yk,_.a);Yk.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Yk.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Yk.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Yk.prototype,"modernUpdate",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],Yk.prototype,"buttonStyle",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],Yk.prototype,"buttonType",void 0);
_.R([_.N({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Yk);
_.J(Yk,"ytd-ad-hover-text-button-renderer",function(){if(CJ5!==void 0)return CJ5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return CJ5=G},{mode:1});var JDB;var C5=function(){var G=_.a.apply(this,arguments)||this;G.buttonOverrides={size:"XS"};return G};
_.M(C5,_.a);C5.prototype.onHelpTap=function(G){this.data&&this.data.informationDialog&&(_.O3(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),G.preventDefault(),G.stopPropagation())};
_.R([_.H(),_.n("design:type",Object)],C5.prototype,"buttonOverrides",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],C5.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],C5);
_.J(C5,"ytd-live-chat-purchased-product-message-renderer",function(){if(JDB!==void 0)return JDB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return JDB=G},{mode:1});var Kdb;var uCO;var Jy=function(){var G=_.a.apply(this,arguments)||this;G.isContainerDeleted=!1;return G};
_.M(Jy,_.a);Jy.prototype.onContextMenuClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
Jy.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))};
Jy.prototype.isContainerDeletedChanged=Jy.prototype.isContainerDeletedChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],Jy.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Jy.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Jy.prototype,"isContainerDeleted",void 0);
_.R([_.H(),_.n("design:type",String)],Jy.prototype,"deletedStateMessage",void 0);_.R([_.q5("isContainerDeleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Jy.prototype,"isContainerDeletedChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Jy);
_.J(Jy,"ytd-sponsorships-live-chat-header-renderer",function(){if(uCO!==void 0)return uCO;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return uCO=G},{mode:1});var K5=function(){var G=_.a.apply(this,arguments)||this;G.modern=_.U("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.M(K5,_.a);K5.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]]"}}}}}};
K5.prototype.onCtaButtonClick=function(){var G,b=_.g((G=this.data)==null?void 0:G.optInPrompt,_.bz);if(G=this.maybeGetButtonCommand(b)){var I;(I=_.qo())==null||I.clickCommand(G)}};
K5.prototype.maybeGetButtonCommand=function(G){return!G||!G.command||_.g(G.command,Xdb)===void 0&&_.g(G.command,SqW)===void 0?null:G.command};
K5.prototype.shouldHideOptinPrompt=function(G,b){return!G||b};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],K5.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],K5.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],K5.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],K5.prototype,"modern",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],K5);
_.J(K5,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Kdb!==void 0)return Kdb;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Kdb=G},{mode:1});var Rfn;var uh=function(){return _.a.apply(this,arguments)||this};
_.M(uh,_.a);uh.prototype.onContextMenuClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
uh.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))};
uh.prototype.isDeletedChanged=uh.prototype.isDeletedChanged;_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],uh.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],uh.prototype,"data",void 0);_.R([_.q5("isDeleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uh.prototype,"isDeletedChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],uh);
_.J(uh,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Rfn!==void 0)return Rfn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="star_circle_ribbon" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Rfn=G},{mode:1});var R4=function(){var G=_.a.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};
_.M(R4,_.a);_.m=R4.prototype;
_.m.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"}}}};
_.m.handleLiveChatAction=function(G){_.g(G,afQ)?this.handleMarkChatItemAsDeletedAction(_.g(G,afQ)):_.g(G,W4B)&&this.handleRemoveChatItemAction(_.g(G,W4B))};
_.m.handleLiveChatActions=function(G){G.forEach(this.handleLiveChatAction,this)};
_.m.handleMarkChatItemAsDeletedAction=function(G){var b=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(h,q){var l=Object.keys(h)[0];Object.values(h)[0].id===G.targetItemId&&b.markAsDeleted("data.items",q,l,G.deletedStateMessage,G.showOriginalContentMessage)})};
_.m.handleRemoveChatItemAction=function(G){var b=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(h,q){Object.values(h)[0].id===G.targetItemId&&b.splice("data.items",q,1)})};
_.m.markAsDeleted=function(G,b,I,h,q){G=[G,b,I].join(".");this.set(G+".deletedStateMessage",h);this.set(G+".showOriginalContentMessage",q)};
_.R([_.H(),_.n("design:type",Object)],R4.prototype,"data",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],R4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],R4.prototype,"ytActionHandlerBehavior",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],R4);
_.J(R4,"yt-live-chat-item-display-list-renderer",function(){if(shX===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;UGn===void 0&&(UGn=document.createElement("template"));var h=UGn;I.call(b,h.content.cloneNode(!0),G.content.firstChild);shX=G}G=shX;return G},{mode:0});var n5i;var OZi,wlW=function(){if(OZi!==void 0)return OZi;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;n5i===void 0&&(n5i=document.createElement("template"));var h=n5i;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return OZi=G};var n5=function(){var G=_.a.apply(this,arguments)||this;G.isHeader=!1;return G};
_.M(n5,_.a);n5.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.kV.Object.defineProperties(n5,{template:{configurable:!0,enumerable:!0,get:function(){return wlW()}}});
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],n5.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],n5.prototype,"isHeader",void 0);_.R([_.g8({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],n5);_.J(n5,"yt-live-chat-item-display-renderer",function(){return wlW()},{mode:0});var E5B,pl8,btO,Gje;
E5B={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}};pl8={home:"eohps",search:"eosps",watch:"eowps"};_.S_X=["watch","search","home"];
_.Oq=function(){this.JSC$14477_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14477_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.wy("PRECONSTRUCTION_DELAY",0);this.signals_=_.mq();this.targetPage_=""};
_.Oq.prototype.init=function(G,b){G=G===void 0?"":G;b=b===void 0?null:b;if(this.JSC$14477_isInitialized_)this.abort();else if(this.JSC$14477_isInitialized_=!0,G&&_.Xlu(this,G),b){var I=_.em(this.signals_,"pcl")?0:10,h=function(){for(var q=0,l;l=_.S_X[q++];)l!=G&&l!=b&&this.pendingPages_.push(l);_.$uJ(this)}.bind(this);
this.signals_.parkOrScheduleJob(h,I,"pcl")}};
_.Oq.prototype.abort=function(){this.fragmentJobId_&&(_.uu.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Gje(this)};
_.Xlu=function(G,b){G.JSC$14477_isInitialized_&&!G.targetPage_&&(G.targetPage_=b,btO(G,b),G.isInitialPass_=!1,btO(G,b),G.signals_.processSignal(pl8[G.targetPage_]),Gje(G),_.$uJ(G))};
_.$uJ=function(G){G.pendingPages_.length&&!G.pagePreparerJobId_&&(G.pagePreparerJobId_=_.FQ(_.uu,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.Xlu(this,this.pendingPages_.shift())}.bind(G),G.DEFAULT_DELAY_))};
btO=function(G,b){if(b=E5B[b])for(var I in b){var h=!1,q=I;I.charAt(0)=="~"&&(h=!0,q=I.substring(1));var l=b[I];l=typeof l=="object"?l:{count:l};b[I]=l;l.componentName=q;l.count>0&&(G.isInitialPass_?h||G.isSeenDuringInitialPass_[q]||(G.JSC$14477_queue_.push({componentName:q,count:1,signals:l.signals}),G.isSeenDuringInitialPass_[q]=!0,l.count--):G.JSC$14477_queue_.push(l))}};
Gje=function(G){G.JSC$14477_queue_.length=0;G.targetPage_="";G.isInitialPass_=!0;G.signals_.processSignal("eop")};
_.Oq.getInstance=function(){return _.Jx(_.Oq)};var I6X=function(){this.signals=_.mq();this.init()};
I6X.prototype.startPreconstruction=function(){_.Oq.getInstance().init(_.Sk("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
I6X.prototype.init=function(){h$O(this);window.Polymer&&VXb&&qRX();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var G=_.hd.ytcsi;if(G&&G.gt&&(G=G.gt())&&G.tick&&(G.tick.aft>0||G.tick.pbs>0)&&(_.Sk("IS_HOMEPAGE_COLD")||_.Sk("IS_RESULTS_PAGE_COLD")||_.Sk("IS_WATCH_PAGE_COLD"))){qVX(this);break a}aLp(CCB,this.onNotifications,this)}};
var h$O=function(G){var b=function(){G.signals.processSignal("dl")};
document.readyState==="complete"?(_.bB(Error("th"),"WARNING"),b()):_.vQO(window,"load",b)};
I6X.prototype.onNotifications=function(G){G.timer||(_.Sk("IS_HOMEPAGE_COLD")||_.Sk("IS_RESULTS_PAGE_COLD")||_.Sk("IS_WATCH_PAGE_COLD"))&&qVX(this)};
var qVX=function(G){G.signals.parkOrScheduleJob(function(){G.signals.processSignal("eocs")},10,"eor")};
new I6X;var jyA=function(){return _.eH.apply(this,arguments)||this};
_.M(jyA,_.eH);_.kV.Object.defineProperties(jyA.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_entity_store_from_dependency_injection")?_.H5():_.Cw()}}});
_.R([_.Vx()],jyA);_.wN=[Yq.prototype,jyA.prototype];var l6n=["ytd-rich-shelf-renderer"],Eq=function(){var G=_.eH.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};
_.M(Eq,_.eH);_.m=Eq.prototype;_.m.dismissibleItemIsDismissedChanged_=function(G){_.U("kevlar_fluid_dismiss")&&(G?_.O3(this.hostElement,"yt-dismissible-item-dismissed"):_.O3(this.hostElement,"yt-dismissible-item-undismissed"))};
_.m.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.m.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 _.MB(function(b,I){G.followUpDialogPromiseResolve=b;G.followUpDialogPromiseReject=I});
_.O3(this.hostElement,"yt-enable-lockup-interaction")};
_.m.dismissibleItemOnYtServiceRequestSent_=function(G,b){b.actions&&this.dismissibleItemProcessActions(b.actions,G)};
_.m.dismissibleItemOnRequestSent=function(G){for(var b=_.e(G.detail),I=b.next();!I.done;I=b.next()){var h=void 0;(I=(h=_.g(I.value,_.b9))==null?void 0:h.actions)&&this.dismissibleItemProcessActions(I,G)}};
_.m.dismissibleItemOnCommandSent=function(G,b){b&&this.dismissibleItemProcessActions(b,G)};
_.m.setAndGetDismissedContentId=function(G){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+G};
_.m.replayDismissAction=function(G){this.dismissibleItemProcessActions([G])};
_.m.dismissibleItemProcessActions=function(G,b){for(var I=0;I<G.length;I++){var h=G[I],q=void 0;((q=_.g(h,_.$P))==null?0:q.commands)&&this.dismissibleItemProcessActions(_.g(h,_.$P).commands,b);if(_.g(h,_.y$)){if(q=_.g(h,_.y$),!q.replaceParentSection||l6n.includes(this.hostElement.nodeName.toLowerCase()))q.groupDismissal&&Nfd(this,q.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(q),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Da("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:h})),h=void 0,(h=b)==null||h.stopPropagation()}else if(_.g(h,POQ))this.dismissibleItemHandleHideEnclosingAction_(),h=void 0,(h=b)==null||h.stopPropagation();else if(_.g(h,bYz))h=_.g(h,bYz),q=void 0,((q=h)==null?0:q.targetGroupId)&&Nfd(this,{targetGroupId:h.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Da("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
h=void 0,(h=b)==null||h.stopPropagation();else if(_.g(h,_.b9))(h=_.g(h,_.b9).actions)&&_.Su(this.hostElement,h,this.hostElement),h=void 0,(h=b)==null||h.stopPropagation();else{var l=q=void 0;((q=_.g(h,_.$G))==null?void 0:q.signal)!=="TELL_US_WHY"||((l=_.g(h,_.$G))==null?0:l.targetId)&&_.U("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),h=void 0,(h=b)==null||h.stopPropagation())}}};
_.m.dismissibleItemOnYtServiceRequestCompleted_=function(G,b){var I=this.get("feedbackResponses.0.followUpDialog",b.data);I?this.followUpDialogPromiseResolve(I):b.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(b.actions,G)};
_.m.dismissibleItemHandleReplaceEnclosingAction_=function(G){this.dismissedRenderer=G.item;this.isDismissed=!0;var b=null;(b=_.Eo(this.hostElement).querySelector("#dismissed"))&&_.D1(this,function(){_.l6(b)});
_.O3(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.m.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.m.dismissibleItemHandleUndoFeedbackAction_=function(){_.O3(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.m.dismissibleItemHandleTellUsWhySignalAction_=function(){var G=this;this.followUpDialogPromise.then(function(b){G.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:b}})})};
Eq.prototype.dismissibleItemOnYtServiceRequestCompleted_=Eq.prototype.dismissibleItemOnYtServiceRequestCompleted_;Eq.prototype.dismissibleItemOnCommandSent=Eq.prototype.dismissibleItemOnCommandSent;Eq.prototype.dismissibleItemOnRequestSent=Eq.prototype.dismissibleItemOnRequestSent;Eq.prototype.dismissibleItemOnYtServiceRequestSent_=Eq.prototype.dismissibleItemOnYtServiceRequestSent_;Eq.prototype.dismissibleItemDataChanged_=Eq.prototype.dismissibleItemDataChanged_;
Eq.prototype.dismissibleItemIsDismissedChanged_=Eq.prototype.dismissibleItemIsDismissedChanged_;_.R([_.z(_.kk),_.n("design:type",Object)],Eq.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Eq.prototype,"ytdReduxBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Eq.prototype,"isDismissed",void 0);_.R([_.H(),_.n("design:type",Object)],Eq.prototype,"dismissedRenderer",void 0);
_.R([_.q5("isDismissed"),_.n("design:type",Function),_.n("design:paramtypes",[Boolean]),_.n("design:returntype")],Eq.prototype,"dismissibleItemIsDismissedChanged_",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Eq.prototype,"dismissibleItemDataChanged_",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],Eq.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.R([_.hI("yt-service-request-sent-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Eq.prototype,"dismissibleItemOnRequestSent",null);
_.R([_.hI("yt-dismissible-item-action"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Array]),_.n("design:returntype")],Eq.prototype,"dismissibleItemOnCommandSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],Eq.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.R([_.Vx()],Eq);_.p5=[_.kk,_.wN,Eq.prototype];var St=function(){var G=_.eH.apply(this,arguments)||this;G.disableGridStateAware=!1;G.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};G.currentGridClass="";return G};
_.M(St,_.eH);St.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.D1(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var G=this.gridStateAwareGetElement();_.SL(G,"grid",!0)}};
St.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
St.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Eo(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
St.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var G="grid-disabled";else{G=_.An.getInstance();var b=this.get("pageSubtype");G=b&&k2u.includes(b)?"grid-disabled":G.currentSnapState_?G.currentSnapState_.className:null}(b=this.gridStateAwareGetElement())&&G!==this.currentGridClass&&(G&&_.SL(b,G,!0),this.currentGridClass&&_.SL(b,this.currentGridClass,!1),this.currentGridClass=G)};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],St.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",String)],St.prototype,"gridStateAwareSizingElementSelector",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],St.prototype,"disableGridStateAware",void 0);_.R([_.Vx()],St);_.Xl=[St.prototype,_.tV.YtActionHandlerBehavior];_.$E=new _.q3("GUIDE_TOKEN");var b7;_.GJ={};b7=function(){var G=_.eH.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};
_.M(b7,_.eH);_.m=b7.prototype;_.m.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.m.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var G=_.LL().resolve(_.vf(_.$E));G&&(this.guidePersistentAndVisible=G.getGuidePersistentAndVisible(),this.activeEndpoint=G.getActiveEndpoint(),this.guideOpened=G.getGuideOpened(),this.miniGuideVisible=G.getMiniGuideVisible())};
_.m.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.m.handleGuideStateAction=function(G){this.guidePersistentAndVisible=G};
_.m.handleMiniGuideStateAction=function(G){this.miniGuideVisible=G};
_.m.handleGuideOpenedAction=function(G){this.guideOpened=G};
_.m.handleActiveEndpointAction=function(G){this.activeEndpoint=G};
b7.prototype.onActiveEndpointChange=b7.prototype.onActiveEndpointChange;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],b7.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],b7.prototype,"guidePersistentAndVisible",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],b7.prototype,"miniGuideVisible",void 0);_.R([_.H(),_.n("design:type",Object)],b7.prototype,"activeEndpoint",void 0);
_.R([_.q5("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],b7.prototype,"onActiveEndpointChange",null);_.R([_.H(),_.n("design:type",Boolean)],b7.prototype,"guideOpened",void 0);_.R([_.Vx()],b7);_.GJ.YtdGuideStateAwareBehavior=[];_.GJ.YtdGuideStateAwareBehavior.push(b7.prototype,_.tV.YtActionHandlerBehavior);var mun=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],IF=function(){var G=_.eH.apply(this,arguments)||this;G.hoverJobId=0;G.JSC$14504_touched=!1;return G};
_.M(IF,_.eH);_.m=IF.prototype;_.m.created=function(){this.useExpandableTooltip=!mun.includes(this.is)};
_.m.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.m.detached=function(){this.useExpandableTooltip=!1};
_.m.lockupOnDown=function(G){this.interactionElement&&!_.NK(_.Wy(G),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.m.lockupOnUp=function(G){this.interactionElement&&!_.NK(_.Wy(G),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.m.onTouchStart=function(){this.JSC$14504_touched=!0};
_.m.lockupOnMouseEnter=function(){var G=this,b=_.Te("kevlar_lockup_hover_delay",-1);this.JSC$14504_touched&&b>=0?(_.uu.cancelJob(this.hoverJobId),this.hoverJobId=_.uu.addJob(function(){G.lockupIsHovered=!0},8,b),this.JSC$14504_touched=!1):this.lockupIsHovered=!0};
_.m.lockupOnMouseLeave=function(){this.hoverJobId&&(_.uu.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.m.lockupOnPopupClosed=function(G,b){var I;((I=b.popupRenderer)==null?void 0:I.is)==="ytd-menu-popup-renderer"&&(G=b.popupRenderer.veData,b=_.gL(),G&&b&&_.HT(b,[G]))};
_.m.lockupOnLockupRequested=function(G){var b=G.detail.videoIds[0],I;G.detail&&b===((I=this.data)==null?void 0:I.videoId)&&(G.detail.returnValue=[this.data])};
_.m.lockupOnYtServiceRequestSent=function(G,b){if(G=b.actions)for(var I=0;I<G.length;I++){var h=G[I];if(h.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&b.ajaxPromise){var q=void 0,l=(q=_.g(b.endpoint,_.SI))==null?void 0:q.playlistId;q=void 0;h=(q=h.removedVideoId)!=null?q:"";aMB(_.Dg(),h,l)}else h.action==="ACTION_REMOVE_VIDEO"&&b.ajaxPromise&&(l=void 0,h=(l=h.setVideoId)!=null?l:"",_.Nn5(_.Dg(),h))}};
_.m.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.m.lockupOnLockupEnabled=function(){if(!this.$){var G=_.LL().resolve(_.Ck).getCurrentPage(),b=this.getParentRenderer?this.getParentRenderer():void 0;_.RB(new _.Wf("component not ready",this.is,this.isAttached,G==null?void 0:G.is,b==null?void 0:b.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
IF.prototype.lockupOnLockupEnabled=IF.prototype.lockupOnLockupEnabled;IF.prototype.lockupOnLockupDisabled=IF.prototype.lockupOnLockupDisabled;IF.prototype.lockupOnYtServiceRequestSent=IF.prototype.lockupOnYtServiceRequestSent;IF.prototype.lockupOnLockupRequested=IF.prototype.lockupOnLockupRequested;IF.prototype.lockupOnPopupClosed=IF.prototype.lockupOnPopupClosed;IF.prototype.lockupOnMouseLeave=IF.prototype.lockupOnMouseLeave;IF.prototype.lockupOnMouseEnter=IF.prototype.lockupOnMouseEnter;
IF.prototype.onTouchStart=IF.prototype.onTouchStart;IF.prototype.lockupOnUp=IF.prototype.lockupOnUp;IF.prototype.lockupOnDown=IF.prototype.lockupOnDown;_.R([_.H(),_.n("design:type",Object)],IF.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],IF.prototype,"lockupIsHovered",void 0);_.R([_.H(),_.n("design:type",Boolean)],IF.prototype,"lockupTouchTriggered",void 0);_.R([_.H(),_.n("design:type",Boolean)],IF.prototype,"useExpandableTooltip",void 0);
_.R([_.lH("#interaction"),_.n("design:type",Object)],IF.prototype,"interactionElement",void 0);_.R([_.hI("down"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],IF.prototype,"lockupOnDown",null);_.R([_.hI("up"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],IF.prototype,"lockupOnUp",null);
_.R([_.hI("touchstart"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IF.prototype,"onTouchStart",null);_.R([_.hI("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IF.prototype,"lockupOnMouseEnter",null);_.R([_.hI("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IF.prototype,"lockupOnMouseLeave",null);
_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],IF.prototype,"lockupOnPopupClosed",null);_.R([_.hI("yt-lockup-requested"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],IF.prototype,"lockupOnLockupRequested",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],IF.prototype,"lockupOnYtServiceRequestSent",null);_.R([_.hI("yt-disable-lockup-interaction"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IF.prototype,"lockupOnLockupDisabled",null);
_.R([_.hI("yt-enable-lockup-interaction"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IF.prototype,"lockupOnLockupEnabled",null);_.R([_.Vx()],IF);_.ho=[IF.prototype];_.e$n={YtdReduxBehavior:[]};_.e$n.YtdReduxBehavior.push.apply(_.e$n.YtdReduxBehavior,_.wN);var qM=function(){var G=_.eH.apply(this,arguments)||this;G._noAccessors=!0;G.disableNowPlaying=!1;G.disableTooltips=!1;G.useHoveredProperty=!1;G.hovered=!1;G.isThumbnailHovered_=!1;G.addBackground=_.U("kevlar_thumbnail_bg");G.nowPlaying=!1;G.disableRounding=!1;G.size="small";return G};
_.M(qM,_.eH);_.m=qM.prototype;_.m.computeThumbnailOverlaySidePanelWidth_=function(G,b){return G-b};
_.m.computeSize=function(G,b){if(!this.disableRounding){if(!G&&!b)return"small";G=Math.max(G||0,b||0);return G>=256?"large":G>=96?"medium":"small"}};
_.m.computeFinalHoveredState_=function(G,b,I){return this.nowPlaying?!1:_.U("kevlar_thumbnail_fluid")&&G?b:I};
_.m.computeHoverOverlays_=function(G,b){return G&&b?b:void 0};
_.m.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.m.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.m.checkMiniplayer_=function(){var G;if(((G=this.data)==null?0:G.playlistSetVideoId)&&_.U("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{G=_.Ws();var b=G.currentEndpoint;!this.disableNowPlaying&&b&&_.g(b,_.Wq)&&this.data?(b=_.g(b,_.Wq),this.nowPlaying=this.data.playlistId?b.playlistId===this.data.playlistId:b.videoId===this.data.videoId,this.isVideoPlaying=G==null?void 0:G.isVideoPlaying):this.nowPlaying=!1}};
qM.prototype.checkMiniplayer_=qM.prototype.checkMiniplayer_;qM.prototype.onMouseLeave_=qM.prototype.onMouseLeave_;qM.prototype.onMouseEnter_=qM.prototype.onMouseEnter_;qM.prototype.computeHoverOverlays_=qM.prototype.computeHoverOverlays_;qM.prototype.computeFinalHoveredState_=qM.prototype.computeFinalHoveredState_;qM.prototype.computeSize=qM.prototype.computeSize;qM.prototype.computeThumbnailOverlaySidePanelWidth_=qM.prototype.computeThumbnailOverlaySidePanelWidth_;
_.R([_.z(_.wN),_.n("design:type",Object)],qM.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],qM.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Number)],qM.prototype,"height",void 0);_.R([_.H(),_.n("design:type",Boolean)],qM.prototype,"bottomSidePanel",void 0);_.R([_.H(),_.n("design:type",Number)],qM.prototype,"width",void 0);_.R([_.H(),_.n("design:type",Object)],qM.prototype,"disableNowPlaying",void 0);
_.R([_.H({selector:_.g4}),_.n("design:type",Boolean)],qM.prototype,"miniplayerIsActive",void 0);_.R([_.H(),_.n("design:type",Object)],qM.prototype,"disableTooltips",void 0);_.R([_.H(),_.n("design:type",Object)],qM.prototype,"useHoveredProperty",void 0);_.R([_.H(),_.n("design:type",Object)],qM.prototype,"hovered",void 0);_.R([_.H(),_.n("design:type",Object)],qM.prototype,"isThumbnailHovered_",void 0);
_.R([_.H({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.n("design:type",Boolean)],qM.prototype,"finalHoveredState_",void 0);_.R([_.H({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.n("design:type",Number)],qM.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],qM.prototype,"addBackground",void 0);
_.R([_.H({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.n("design:type",Object)],qM.prototype,"hoverOverlays_",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],qM.prototype,"nowPlaying",void 0);_.R([_.H(),_.n("design:type",Boolean)],qM.prototype,"isVideoPlaying",void 0);_.R([_.H(),_.n("design:type",Object)],qM.prototype,"disableRounding",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.n("design:type",Object)],qM.prototype,"size",void 0);_.R([_.hI("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qM.prototype,"onMouseEnter_",null);_.R([_.hI("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qM.prototype,"onMouseLeave_",null);
_.R([_.q5("data","disableNowPlaying","miniplayerIsActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qM.prototype,"checkMiniplayer_",null);_.R([_.Vx()],qM);var V48=[qM.prototype];_.jJ={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(G,b){return G+":"+_.Ej(b)},
getPlayerListener_:function(G,b,I){G=this.getPlayerListenerKey_(G,b);b=this.playerListeners_.get(G);I&&this.playerListeners_.delete(G);return b},
savePlayerListener_:function(G,b){var I=b.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(G,b),I);return I},
listenToPlayerEvent:function(G,b,I){I=this.savePlayerListener_(b,I);G.addEventListener(b,I)},
listenToPlayerEvents:function(G,b){b.forEach(function(I,h){this.listenToPlayerEvent(G,h,I)}.bind(this))},
unlistenFromPlayerEvent:function(G,b,I){I=this.getPlayerListener_(b,I,!0);G.removeEventListener(b,I)},
unlistenFromPlayerEvents:function(G,b){b.forEach(function(I,h){this.unlistenFromPlayerEvent(G,h,I)}.bind(this))}}};
_.l7=function(){};_.DuJ=new _.q3("PLAYER_API_TOKEN");var KRO=!1,OBB,R7v=!1,ECs;var nk=function(G,b,I,h,q){_.FN.call(this);var l=this;this.playerId=b;this.webPlayerContextConfig=h;this.v9Q=q;this.r2W=!1;this.api={};this.aZI=this.wxu=null;this.yvz=new _.iB;this.qQ={};this.dKb=this.w2V=this.elementId=this.e2W=this.config=null;this.vSv=!1;this.vd=this.g2J=null;this.o9J={};this.wFx=["onReady"];this.lastError=null;this.s6Q=NaN;this.bPz={};this.v5s=0;this.aG=this.targetElement=G;_.M2(this,this.yvz);cTb(this);I?this.v5s=setTimeout(function(){l.loadNewVideoConfig(I)},0):h&&(kjW(this),
v$J(this))};
_.M(nk,_.FN);nk.prototype.getId=function(){return this.playerId};
nk.prototype.loadNewVideoConfig=function(G){if(!this.isDisposed()){this.v5s&&(clearTimeout(this.v5s),this.v5s=0);var b=G||{};b instanceof unB||(b=new unB(b));this.config=b;this.setConfig(G);v$J(this);this.isReady()&&LmW(this)}};
var kjW=function(G){var b;G.webPlayerContextConfig?b=G.webPlayerContextConfig.rootElementId:b=G.config.attrs.id;G.elementId=b||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.aG)==null?void 0:I.id)===G.elementId&&(G.elementId+="-player",G.webPlayerContextConfig?G.webPlayerContextConfig.rootElementId=G.elementId:G.config.attrs.id=G.elementId)};
nk.prototype.setConfig=function(G){this.e2W=G;this.config=QyB(G);kjW(this);if(!this.w2V){var b;this.w2V=xu8(this,((b=this.config.args)==null?void 0:b.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,(b=G.width)&&this.aG&&(this.aG.style.width=Y4(Number(b)||b,!0)),(G=G.height)&&this.aG&&(this.aG.style.height=Y4(Number(G)||G,!0))};
nk.prototype.getConfig=function(){return this.e2W};
var LmW=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 b;G.api.loadVideoByPlayerVars((b=G.config.args)!=null?b:null)}else G.api.cueVideoByPlayerVars(G.config.args)},T6e=function(G){var b=!0,I=G.getPlayerElement();
I&&G.config&&(b=I.dataset.version===f6J(G));return b&&!!_.Ge("yt.player.Application.create")},v$J=function(G){if(!G.isDisposed()&&!G.vSv){var b=T6e(G);
if(b&&(G.getPlayerElement()?"html5":null)==="html5")G.dKb="html5",G.isReady()||B6J(G);else if(UuJ(G),G.dKb="html5",b&&G.vd&&G.targetElement)G.targetElement.appendChild(G.vd),B6J(G);else{G.config&&(G.config.loaded=!0);var I=!1;G.g2J=function(){I=!0;var h=syz(G,"player_bootstrap_method")?_.Ge("yt.player.Application.createAlternate")||_.Ge("yt.player.Application.create"):_.Ge("yt.player.Application.create");var q=G.config?QyB(G.config):void 0;h&&h(G.targetElement,q,G.webPlayerContextConfig,G.v9Q);B6J(G)};
G.vSv=!0;b?G.g2J():(_.iU(f6J(G),G.g2J),(b=g$O(G))&&mZq(b||""),ATX(G)&&!I&&_.cz("yt.player.Application.create",null))}}};
nk.prototype.getPlayerElement=function(){var G=_.Rr(document,this.elementId);!G&&this.aG&&this.aG.querySelector&&(G=this.aG.querySelector("#"+this.elementId));return G};
var B6J=function(G){if(!G.isDisposed()){var b=G.getPlayerElement(),I=!1;b&&b.getApiInterface&&b.getApiInterface()&&(I=!0);if(I){G.vSv=!1;if(!syz(G,"html5_remove_not_servable_check_killswitch")){var h;if((b==null?0:b.isNotServable)&&G.config&&(b==null?0:b.isNotServable((h=G.config.args)==null?void 0:h.video_id)))return}M4O(G)}else G.s6Q=setTimeout(function(){B6J(G)},50)}},M4O=function(G){cTb(G);
G.r2W=!0;var b=G.getPlayerElement();if(b){G.wxu=ZtX(G,b,"addEventListener");G.aZI=ZtX(G,b,"removeEventListener");var I=b.getApiInterface();I=I.concat(b.getInternalApiInterface());for(var h=G.api,q=0;q<I.length;q++){var l=I[q];h[l]||(h[l]=ZtX(G,b,l))}}for(var V in G.qQ)G.qQ.hasOwnProperty(V)&&G.wxu&&G.wxu(V,G.qQ[V]);LmW(G);G.w2V&&G.w2V(G.api);G.yvz.publish("onReady",G.api)},ZtX=function(G,b,I){var h=b[I];
return function(){var q=_.RI.apply(0,arguments);try{return G.lastError=null,h.apply(b,q)}catch(l){if(I!=="sendAbandonmentPing")throw l.params=I,G.lastError=l,q=new _.Wf("PlayerProxy error in method call",{error:l,method:I,playerId:G.playerId}),q.level="WARNING",q;}}},cTb=function(G){G.r2W=!1;
if(G.aZI)for(var b in G.qQ)G.qQ.hasOwnProperty(b)&&G.aZI(b,G.qQ[b]);for(var I in G.bPz)G.bPz.hasOwnProperty(I)&&clearTimeout(Number(I));G.bPz={};G.wxu=null;G.aZI=null;b=G.api;for(var h in b)b.hasOwnProperty(h)&&(b[h]=null);b.addEventListener=function(q,l){G.addEventListener(q,l)};
b.removeEventListener=function(q,l){G.removeEventListener(q,l)};
b.destroy=function(){G.dispose()};
b.getLastError=function(){return G.getLastError()};
b.getPlayerType=function(){return G.getPlayerType()};
b.getCurrentVideoConfig=function(){return G.getConfig()};
b.loadNewVideoConfig=function(q){G.loadNewVideoConfig(q)};
b.isReady=function(){return G.isReady()}};
nk.prototype.isReady=function(){return this.r2W};
nk.prototype.addEventListener=function(G,b){var I=this;this.isDisposed();var h=xu8(this,b);h&&(_.Ya(this.wFx,G)||this.qQ[G]||(b=t4W(this,G),this.wxu&&this.wxu(G,b)),this.yvz.subscribe(G,h),G==="onReady"&&this.isReady()&&setTimeout(function(){h(I.api)},0))};
nk.prototype.removeEventListener=function(G,b){this.isDisposed()||(b=xu8(this,b))&&this.yvz.unsubscribe(G,b)};
var xu8=function(G,b){var I=b;if(typeof b==="string"){if(G.o9J[b])return G.o9J[b];I=function(){var h=_.RI.apply(0,arguments),q=_.Ge(b);if(q)try{q.apply(_.hd,h)}catch(l){throw h=new _.Wf("PlayerProxy error when executing callback",{error:l}),h.level="ERROR",h;}};
G.o9J[b]=I}return I?I:null},t4W=function(G,b){var I=function(h){var q=function(){G.isDisposed();
if(!G.isDisposed())try{G.yvz.publish(b,h!=null?h:void 0)}catch(D){var V=new _.Wf("PlayerProxy error when creating global callback",{error:D.message,event:b,playerId:G.playerId,data:h,originalStack:D.stack,componentStack:D.componentStack});V.level="WARNING";throw V;}};
if(syz(G,"web_player_publish_events_immediately"))q();else{var l=setTimeout(function(){q();_.Cy.remove(G.bPz,String(l))},0);
_.Cy.add(G.bPz,String(l),!0)}};
return G.qQ[b]=I};
nk.prototype.getPlayerType=function(){return this.dKb||(this.getPlayerElement()?"html5":null)};
nk.prototype.getLastError=function(){return this.lastError};
var UuJ=function(G){G.cancel();cTb(G);G.dKb=null;G.config&&(G.config.loaded=!1);var b=G.getPlayerElement();b&&(T6e(G)||!ATX(G)?G.vd=b:(b&&b.destroy&&b.destroy(),G.vd=null));G.targetElement&&_.yN(G.targetElement)};
nk.prototype.cancel=function(){this.g2J&&_.HYs(f6J(this),this.g2J);clearTimeout(this.s6Q);this.vSv=!1};
nk.prototype.disposeInternal=function(){UuJ(this);if(this.vd&&this.config&&this.vd.destroy)try{this.vd.destroy()}catch(b){var G=new _.Wf("PlayerProxy error during disposal",{error:b});G.level="ERROR";throw G;}this.o9J=null;for(G in this.qQ)this.qQ.hasOwnProperty(G)&&delete this.qQ[G];this.e2W=this.config=this.api=null;delete this.targetElement;delete this.aG;_.FN.prototype.disposeInternal.call(this)};
var ATX=function(G){var b,I;G=(b=G.config)==null?void 0:(I=b.args)==null?void 0:I.fflags;return!!G&&G.indexOf("player_destroy_old_version=true")!==-1},f6J=function(G){return G.webPlayerContextConfig?G.webPlayerContextConfig.jsUrl:(G=G.config.assets)?G.js:""},g$O=function(G){return G.webPlayerContextConfig?G.webPlayerContextConfig.cssUrl:(G=G.config.assets)?G.css:""},syz=function(G,b){if(G.webPlayerContextConfig)var I=G.webPlayerContextConfig.serializedExperimentFlags;
else{var h;if((h=G.config)==null?0:h.args)I=G.config.args.fflags}return(I||"").split("&").includes(b+"=true")},QyB=function(G){for(var b={},I=_.e(Object.keys(G)),h=I.next();!h.done;h=I.next()){h=h.value;
var q=G[h];b[h]=typeof q==="object"?_.Cy.clone(q):q}return b};var G6a={},$Gr="player_uid_"+(Math.random()*1E9>>>0);var mi=function(G,b,I,h,q,l){b=b===void 0?document.createElement("div"):b;this.webPlayerContextConfig=G;this.container=b;this.commandResolver=I;this.apiResolver=hfO();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.G9;h||l?z$O(this):o$B(this);this.pendingPlayerResponse=h;this.pendingWatchNextResponse=q;this.pendingPlayerVars=l;itn(this)};
mi.prototype.loadVideoWithPlayerResponse=function(G,b,I){this.loadVideo(G,b,I)};
mi.prototype.loadVideoWithPlayerVars=function(G){return this.loadVideo(void 0,void 0,G)};
mi.prototype.destroy=function(G){if(G=_.Rr(document,G))G=$Gr+"_"+_.Ej(G),(G=G6a[G])&&G.dispose()};
var dun=function(G,b){var I;_.c(function(h){if(h.nextAddress==1)return G.pendingWatchNextResponse=b,G.synchronousApi?(I=G.synchronousApi,h.jumpTo(2)):h.yield(G.api,3);h.nextAddress!=2&&(I=h.yieldResult);if(!Pyn(G,I))return h.return();G.pendingWatchNextResponse&&(I.updateVideoData({raw_watch_next_response:G.pendingWatchNextResponse}),G.pendingWatchNextResponse=void 0);_.ip(h)})},Pyn=function(G,b){var I;
if(!(b==null?0:(I=b.isReady)==null?0:I.call(b))){var h;_.RB(new _.Wf("playerApi is falsey",{synchronousApi:G.synchronousApi,apiResolved:G.apiResolver.resolved,playerApiUndefined:b===void 0,playerApiNull:b===null,playerApiReady:(b==null?void 0:(h=b.isReady)==null?void 0:h.call(b))===!0,playerApiMethods:b?Object.keys(b):[]}));return!1}return!0},yTb=function(G,b){if(typeof G[b]==="function")return G[b]()},rTi=function(G){var b=window,I,h=(I=b.ytplayer)==null?void 0:I.bootstrapPlayerContainer;
if((I=h==null?void 0:h.firstElementChild)&&_.On(I,"html5-video-player")){var q,l,V=(q=b.ytplayer)==null?void 0:(l=q.bootstrapWebPlayerContextConfig)==null?void 0:l.contextId;q=G.webPlayerContextConfig.contextId;if(V&&V===q){h!==G.container&&(h=!1,yTb(I,"getPlayerState")===2&&(h=!0),G.container.appendChild(I),h||yTb(I,"playVideo"));var D;if((D=b.ytplayer)==null?0:D.bootstrapPlayerResponse)G.bootstrapPlayerResponse=b.ytplayer.bootstrapPlayerResponse}}},itn=function(G){var b,I,h,q,l;
_.c(function(V){if(V.nextAddress==1)return G.pageReadyOrDataAvailable?V.jumpTo(2):V.yield(G.pageReadyOrDataAvailableResolver.promise,2);if(V.nextAddress!=4)return!_.U("kevlar_player_unified_player_loading")||uLa()&&nCj()?V.jumpTo(4):V.yield(S7u(),4);rTi(G);if(G.pendingPlayerResponse||G.pendingPlayerVars)b=X9v(G.pendingPlayerResponse,G.pendingWatchNextResponse,G.pendingPlayerVars),G.pendingPlayerResponse&&G.pendingPlayerResponse===G.bootstrapPlayerResponse&&(b.loaded=!0),G.bootstrapPlayerResponse=
void 0;I=Iqu(G.container,b,G.webPlayerContextConfig);((h=b)==null?0:h.loaded)&&G.pendingWatchNextResponse?(dun(G,G.pendingWatchNextResponse),G.pendingPlayerResponse=void 0,G.pendingPlayerVars=void 0):FmO(G);q=function(D){I.removeEventListener("onReady",q);G.synchronousApi=D;G.apiResolver.resolve(D)};
I.addEventListener("onReady",q);G.commandResolver!==void 0&&(l=G.commandResolver,I.addEventListener("innertubeCommand",function(D){l(D)}));
_.ip(V)})};
mi.prototype.loadVideo=function(G,b,I){var h=this,q,l,V,D,k,L,x,f,T;return _.c(function(B){if(B.nextAddress==1)return h.pendingPlayerResponse=G,h.pendingWatchNextResponse=b,h.pendingPlayerVars=I,z$O(h),h.synchronousApi?(q=h.synchronousApi,B.jumpTo(2)):B.yield(h.api,3);B.nextAddress!=2&&(q=B.yieldResult);if(!Pyn(h,q))return B.return(new Promise(function(){}));
V=new Promise(function(A){l=A});
D=function(){var A=q.getPlayerResponse();A&&(q.removeEventListener("onVideoDataChange",D),l(A))};
q.addEventListener("onVideoDataChange",D);if(h.pendingPlayerResponse||h.pendingPlayerVars)h.pendingPlayerResponse&&h.pendingPlayerResponse===h.bootstrapPlayerResponse?(l(h.pendingPlayerResponse),h.pendingWatchNextResponse&&dun(h,h.pendingWatchNextResponse)):(k=X9v(h.pendingPlayerResponse,h.pendingWatchNextResponse,h.pendingPlayerVars),(T=(L=h.pendingPlayerResponse)==null?void 0:(x=L.playerConfig)==null?void 0:(f=x.playbackStartConfig)==null?void 0:f.startPaused)?q.cueVideoByPlayerVars(k.args):q.loadVideoByPlayerVars(k.args)),
FmO(h),h.bootstrapPlayerResponse=void 0;return B.return(V)})};
var o$B=function(G){if(document.readyState==="complete"||document.readyState==="interactive")z$O(G);else{var b=function(){document.removeEventListener("DOMContentLoaded",b);z$O(G)};
document.addEventListener("DOMContentLoaded",b)}},z$O=function(G){G.pageReadyOrDataAvailable=!0;
G.pageReadyOrDataAvailableResolver.resolve()},FmO=function(G){G.pendingPlayerResponse=void 0;
G.pendingWatchNextResponse=void 0;G.pendingPlayerVars=void 0};
_.kV.Object.defineProperties(mi.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var eJ=function(G){aw.call(this,G===void 0?"document_active":G);var b=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(I){b.transition("document_disposed",{event:I})});
window.addEventListener("beforeunload",function(I){b.transition("document_disposed_preventable",{event:I})});
window.addEventListener("unload",function(I){b.transition("document_disposed",{event:I});b.hasRun=new Map})};
_.M(eJ,aw);
eJ.prototype.runPreventableDispose=function(G,b){if(!this.hasRun.get("document_disposed_preventable")){G(b==null?void 0:b.event);var I,h;if((b==null?0:(I=b.event)==null?0:I.defaultPrevented)||(b==null?0:(h=b.event)==null?0:h.returnValue)){b.event.returnValue||(b.event.returnValue=!0);b.event.defaultPrevented||b.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
eJ.prototype.runDispose=function(G,b){this.hasRun.get("document_disposed")?this.transition("document_active"):(G(b==null?void 0:b.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
eJ.prototype.runFlush=function(G,b){G(b==null?void 0:b.event);this.transition("document_active")};
eJ.prototype.runActive=function(){};var Vk=function(G){aw.call(this,G===void 0?"document_visibility_unknown":G);var b=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"?b.transition("document_visible",{event:I}):b.transition("document_hidden",
{event:I})});
_.U("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(I){b.transition("document_backgrounded",{event:I})}),window.addEventListener("focus",function(I){b.transition("document_foregrounded",{event:I})}))};
_.M(Vk,aw);Vk.prototype.runVisible=function(G,b){G(b==null?void 0:b.event);_.U("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Vk.prototype.runHidden=function(G,b){G(b==null?void 0:b.event);_.U("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Vk.prototype.runBackgrounded=function(G,b){G(b==null?void 0:b.event)};
Vk.prototype.runForegrounded=function(G,b){G(b==null?void 0:b.event)};var DF=function(){this.teardownLifecycle=new eJ;this.visibilityLifecycle=new Vk};
DF.prototype.install=function(){var G=_.RI.apply(0,arguments),b=this;G.forEach(function(I){b.teardownLifecycle.install(I)});
G.forEach(function(I){b.visibilityLifecycle.install(I)})};var cF=function(){DF.call(this);var G={};this.install((G.document_disposed={callback:this.abortSlisAndFlush},G));_.U("combine_ve_grafts")&&(G={},this.install((G.document_disposed={callback:this.flushInteractionLoggingAttachVes},G)));G={};this.install((G.flush_logs={callback:this.logFinalPayload},G));_.U("web_log_cfg_cee_ks")||_.FQ(_.uu,HtB)};
_.M(cF,DF);var q_a=function(){cF.loggingInstance||(cF.loggingInstance=new cF);return cF.loggingInstance};
cF.prototype.logFinalPayload=function(){if(_.U("web_fp_via_jspb")){var G=new N4J,b=_.gL();b&&_.F0(G,1,b);b=_.U("jspb_sparse_encoded_pivot")?new rH([{}]):new rH;_.tz(b,380,Ybb,G);ZbO("finalPayload",b);_.U("web_fp_via_jspb_and_json")&&_.C1("finalPayload",{csn:_.gL()})}else _.C1("finalPayload",{csn:_.gL()})};
cF.prototype.abortSlisAndFlush=function(){orz(Vw);DR!=null&&DR.flush()};
cF.prototype.flushInteractionLoggingAttachVes=function(){wWi(_.qo())};
var HtB=function(){var G=_.wy("CLIENT_EXPERIMENT_EVENTS");if(G){var b=bQr();G=_.e(G);for(var I=G.next();!I.done;I=G.next())I=I.value,b(I)&&_.C1("genericClientExperimentEvent",{eventType:I});delete _.n3.CLIENT_EXPERIMENT_EVENTS}};var WmO={};
WmO.YtPlayerBehavior=[_.jJ.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 _.G9;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;jhB(function(){G.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Oz(this,"pan-down"),_.U("kevlar_pinch_fullscreen")&&_.dZ().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.U("kevlar_pinch_fullscreen")&&_.dZ().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(G,b,I){var h=this;Od(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Od(!1,"MainAppPlayer already created.");else{var q=_.U("kevlar_player_container_query_killswitch")?this.$.container:_.Eo(this.hostElement).querySelector("#container");this.mainAppPlayer_=new mi(this.getWebPlayerContextConfig_(),q,function(l){return _.$Q(l,h.hostElement)},G,b,I);
this.mainAppPlayer_.api.then(function(l){h.player_=l;h.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&pIb.resolve(l)})}},
loadVideoWithPlayerResponse:function(G,b){var I=this;if(this.useUnifiedPlayer_()){var h=this.watchNextData,q,l=(q=G.videoDetails)==null?void 0:q.videoId,V,D,k;(q=(V=this.watchNextData)==null?void 0:(D=V.currentVideoEndpoint)==null?void 0:(k=D.watchEndpoint)==null?void 0:k.videoId)&&l!=q&&(h=void 0,_.U("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(G,h,b):this.createMainAppPlayer_(G,h,b);this.mainAppPlayer_.api.then(function(){_.O3(I.hostElement,
"yt-player-updated")})}else this.update(Y7r(G,b))},
loadVideoWithPlayerVars:function(G){var b=this;this.useUnifiedPlayer_()?(_.U("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(){_.O3(b.hostElement,"yt-player-updated")})):this.update({args:G})},
update:function(G){var b=this;if(this.useUnifiedPlayer_())Od(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(G);var I=Rqa(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(h){_.O3(b.hostElement,"yt-player-updated",_.U("kevlar_player_updated_obsolete_player_killswitch")?
h:void 0)})}_.u6(new _.Wf("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(b.getPlayerPromise(),2);I=h.yieldResult;if(!I)throw Error("vh");G&&b.updatePlayerPlaylist_(G);_.ip(h)})},
acquireApi_:function(G){var b=this;if(this.useUnifiedPlayer_())Od(!1,"Invalid method call in kevlar_unified_player.");else return _.uu.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Od(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(I){b.shouldAutoplay_(G)?I.loadVideoByPlayerVars(G.args):I.cueVideoByPlayerVars(G.args)})):this.initPlayerPromise_=this.initPlayerContainer_(G),this.initPlayerPromise_},
initPlayerContainer_:function(G){var b=this;if(this.useUnifiedPlayer_())Od(!1,"Invalid method call in kevlar_unified_player.");else return Od(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.RB(Error("wh")),Od(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.U("kevlar_player_container_query_killswitch")?this.$.container:_.Eo(this.hostElement).querySelector("#container"),S7u().then(function(){var I=b.initPlayer_(G);b.playerResolver_.resolve(I);
return I})},
onPlayerReady_:function(G,b){this.useUnifiedPlayer_()?Od(!1,"Invalid method call in kevlar_unified_player."):(G.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&pIb.resolve(G),b(G))},
maybeCallApiMethodOnElement_:function(G,b){if(typeof G[b]==="function")return G[b]()},
maybeAdoptBootstrapPlayer_:function(){var G=window,b,I=(b=G.ytplayer)==null?void 0:b.bootstrapPlayerContainer;if((b=I==null?void 0:I.firstElementChild)&&b.classList.contains("html5-video-player")){var h,q,l=(h=G.ytplayer)==null?void 0:(q=h.bootstrapWebPlayerContextConfig)==null?void 0:q.contextId;h=this.getWebPlayerContextConfig_().contextId;if(l&&l===h){I!==this.playerContainer_&&(I=!1,this.maybeCallApiMethodOnElement_(b,"getPlayerState")===2&&(I=!0),this.playerContainer_.appendChild(b),I||this.maybeCallApiMethodOnElement_(b,
"playVideo"));var V;if((V=G.ytplayer)==null?0:V.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=G.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(G){var b=this;if(this.useUnifiedPlayer_())Od(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(I){b.maybeAdoptBootstrapPlayer_();var h=G?Cwv(G):void 0;h&&h==b.bootstrapPlayerResponse_&&(G.loaded=!0);h=b.playerContainer_;var q=b.getWebPlayerContextConfig_();h=Iqu(h,G,q);b.player_=h;b.onPlayerReadyEvent_=b.onPlayerReady_.bind(b,b.player_,I);b.player_.addEventListener("onReady",b.onPlayerReadyEvent_);b.player_.addEventListener("innertubeCommand",
b.onPlayerInnerTubeCommand_.bind(b))})},
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=_.LL().resolve(_.Ck).getCurrentPage();G&&G.getScrollTop()<=0?_.Oz(this,"pan-down"):_.Oz(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 b=this,I,h,q;return _.c(function(l){if(l.nextAddress==1)return I=_.LL().resolve(_.vf(_.jm)),h=!!(I&&I.playlistComponent&&I.playlistComponent.loopOn),l.yield(b.getPlayerPromise(),2);var V=q=l.yieldResult,D=V.updatePlaylist,k=[];if(_.U("kevlar_player_playlist_use_local_index")){var L,x;var f=(x=(L=G.localCurrentIndex)!=null?L:G.currentIndex)!=null?x:0}else{var T;f=(T=G.currentIndex)!=null?T:0}if(G.contents)for(L=0;L<G.contents.length;L++)if((x=G.contents[L])&&x.playlistPanelVideoRenderer)if(wF2(x)){x=
x.playlistPanelVideoRenderer;T="";x.shortBylineText&&(T=_.NO(x.shortBylineText));var B="";x.title?B=_.NO(x.title):x.unplayableText&&(B=_.NO(x.unplayableText));k.push({author:T,title:B,encrypted_id:x.videoId})}else L<f&&--f;D.call(V,{index:f,list:G.playlistId?G.playlistId:"",loop:h,playlist_title:G.title,playlist_length:k.length,video:k,fetch:0,external_list:"1",title:G.title?G.title:"",playlist_author:G.ownerName?_.NO(G.ownerName):void 0});_.ip(l)})},
focusOnPlayer:function(){_.D1(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var G=this.playerContainer_.querySelector(".html5-video-player");G&&(_.kE(_.LL().resolve(_.VO)),G.focus())}})},
preparePlayer:function(){var G=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(b){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")b();else{var I=function(){document.removeEventListener("DOMContentLoaded",I);b()};
document.addEventListener("DOMContentLoaded",I)}})).then(function(){return S7u()}).then(function(){G.initPlayerPromise_||G.preparePlayerJobId_||(G.preparePlayerJobId_=_.FQ(_.uu,function(){G.initPlayerPromise_||(G.initPlayerPromise_=G.initPlayerContainer_())}))}):_.u6(new _.Wf("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(G){this.useUnifiedPlayer_()?Od(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(G)||(G.args.autoplay="0")},
shouldAutoplay_:function(G){if(this.useUnifiedPlayer_())Od(!1,"Invalid method call in kevlar_unified_player.");else{var b=this.get("args.el",G);return b&&b!="detailpage"&&this.isMiniplayerActive_()||b&&(b=="sponsorshipsoffer"||b=="handlesclaiming")&&this.get("args.autoplay",G)=="0"?!1:(G=Cwv(G))&&this.get("playerConfig.playbackStartConfig.startPaused",G)?!1:!0}},
isMiniplayerActive_:function(){return _.LL().resolve(_.zO).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var G=this.getPlayer();if(G){var b=G.getPlayerState();_.U("kevlar_player_check_ad_state_on_stop")&&(b=G.getPlayerState(G.getPresentingPlayerType()));b!=5&&G.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(G,b,I){I=I===void 0?!1:I;var h=this,q,l,V,D;return _.c(function(k){if(k.nextAddress==1)return b||(b=h.hostElement),q=h.useUnifiedPlayer_()?!!h.mainAppPlayer_:!!h.initPlayerPromise_,q?k.yield(h.getPlayerPromise(),2):(I?G.insertBefore(b,G.firstChild):G.appendChild(b),k.return());l=k.yieldResult;V=l.getPlayerState(l.getPresentingPlayerType());D=!1;if(V==-1||V==1||V==3)D=!0;I?G.insertBefore(b,G.firstChild):G.appendChild(b);D&&l.playVideo();l.setSize(NaN,NaN);_.ip(k)})},
watchNextDataChanged_:function(G){var b=this;G&&(this.useUnifiedPlayer_()&&_.U("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&dun(this.mainAppPlayer_,G):this.getPlayerPromise().then(function(I){I.updateVideoData(b.computeWatchNextPlayerVars_(G))}))},
computeWatchNextPlayerVars_:function(G){if(this.useUnifiedPlayer_()&&_.U("kevlar_unified_player_update_watch_next_killswitch"))Od(!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=_.wy("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(G=Object.assign({},G),G.rootElementId=this.playerId);G.serializedExperimentIds&&G.serializedExperimentFlags||_.RB(Error("xh"));return G},
hasWebPlayerContextConfig_:function(){return!!_.wy("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(G){this.useUnifiedPlayer_()?Od(!1,"Invalid method call in kevlar_unified_player."):_.$Q(G,this.hostElement)},
useUnifiedPlayer_:function(){var G=_.U("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.U("kevlar_unified_player")||G}}];var a6u={};a6u.YtPlaylistPanelBehavior=[_.p.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 b=G.playlistButtons.menuRenderer.topLevelButtons,I=b.length,h=0;h<I;h++)if(b[h].toggleButtonRenderer){var q=b[h].toggleButtonRenderer;q.defaultIcon.iconType=="LOOP"&&this.loopOn?q.isToggled=this.loopOn:q.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(q.isToggled=this.shuffleOn)}return G.playlistButtons}}];_.vF={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(G,b,I){var h=this.getClickTarget_(b);if(h&&this.isClickAllowed_(h)){b.preventDefault();G=(0,_.Cy.unsafeClone)(G);var q=this.getContainerBoundingRect();b=this.getRelativeClickXy_(b,q);this.expandEndpointUrlMacros_(G,{NX:b[0],NY:b[1],NB:h.code});I&&this.truncateWebCommendMetadataUrl_(G);_.O3(this.hostElement,"yt-navigate",{endpoint:G})}},
getClickTarget_:function(G){if(!this.clickTargetMap)return null;G=_.Wy(G)||[];G=_.e(G);for(var b=G.next();!b.done;b=G.next()){b=b.value;if(b===_.Eo(this.hostElement).querySelector("#menu"))break;if(b=this.clickTargetMap.get(b.id))return b}return null},
getRelativeClickXy_:function(G,b){var I=Math.round(G.detail.x-b.left);G=Math.round(G.detail.y-b.top);return I<0||G<0?[null,null]:[I,G]},
getContainerBoundingRect:function(){return _.Eo(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(G,b){for(var I=_.e(G.loggingUrls||[]),h=I.next();!h.done;h=I.next())h=h.value,h.baseUrl&&(h.baseUrl=DQB(h.baseUrl,b));G.urlEndpoint&&G.urlEndpoint.url&&(G.urlEndpoint.url=DQB(G.urlEndpoint.url,b));G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url&&(G.commandMetadata.webCommandMetadata.url=DQB(G.commandMetadata.webCommandMetadata.url,b))},
truncateWebCommendMetadataUrl_:function(G){if(G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url){var b=G.commandMetadata.webCommandMetadata.url,I=b.indexOf("&pp=");if(I>0){var h=b.indexOf("&",I+1);G.commandMetadata.webCommandMetadata.url=h>I&&h<b.length?b.slice(0,I)+b.slice(h):b.slice(0,I)}}},
configureClickTargets:function(G,b,I){this.containerId=G;this.clickTargetMap=new Map;G=_.e(b);for(b=G.next();!b.done;b=G.next())if(b=b.value,b.location){var h=I.get(b.location);h&&(_.SL(_.Eo(this.hostElement).querySelector("#"+h),"yt-simple-endpoint",this.isClickAllowed_(b)),this.clickTargetMap.set(h,b))}},
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"}}};_.L9={};
_.L9.YtLazyListBehavior=[_.ed.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&&(WoJ(G,4),G.processSignal())},
deepLazyListObserver_:function(G){var b=this;if(G){var I=G.value||[];if(this.itemsPath==G.path){var h=this.nonDeferredItemCount;G=0;h>-1&&I.length>h&&(G=_.wy("REMAINING_DOVA_DEFERRED_CHUNKS",-1));G>0?(h>0&&(h=I.slice(0,h),this.setInitialItemsOnDataChanged(h)),(h=this.renderElementsOutsideVisibleArea_)?h.cancel():(h=this.renderElementsOutsideVisibleArea_=new _.DN(2,"eocs"),_.vQO(window,"scroll",function(){return b.renderDeferredElements()})),_.c6(h,function(){b.setInitialItemsOnDataChanged(I)}),_.OB("REMAINING_DOVA_DEFERRED_CHUNKS",
G-1)):this.setInitialItemsOnDataChanged(I)}else if(this.itemsPath+".splices"==G.path)this.onItemsUpdated_(I);
else h="shownItems"+G.path.substr(this.itemsPath.length),this.useSignals&&h==="shownItems.length"||this.notifyPath(h,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 b=0,I=G.length;b<I;b++){var h=G[b];if(h.index<this.shownCount&&(h.removed&&this.splice("shownItems",h.index,h.removed.length),h.addedCount)){var q=h.object.slice(h.index,h.index+h.addedCount);h=["shownItems",h.index,0];h.push.apply(h,q);this.splice.apply(this,h)}}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&&(_.Sk("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.D1(this,this.tryRenderChunk_)))},
fillRange_:function(G,b){this.canShowMore&&this.items_&&(G=this.items_.slice(G,b),G.unshift("shownItems"),this.push.apply(this,G),this.shownCount=b,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var G=this;this.canShowMore&&_.P5(this,"renderChunk",function(){G.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Sk("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.vH(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?(_.Mj2(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):G&&this.partiallyRenderedItems_.has(this.items_)&&(_.U("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var f9;_.Qk={};
f9=function(){var G=_.eH.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$14566_onWheelScroll=function(b){if(G.isSearch&&
!G.disableWheelScroll&&_.U("desktop_enable_dmpanel_wheel_scroll")){var I=b.shiftKey?Math.abs(b.deltaY)>Math.abs(b.deltaX)?b.deltaY:b.deltaX:b.deltaX;I!==0&&(b.preventDefault(),G.ytLazyListBehavior.fillRemainingListItems(),G.offset+=I,xE(G),G.reposition_())}};
G.onPointerDown=function(b){N6u(G)&&(G.dragMouseStart=b.clientX,G.dragOffsetStart=G.offset,G.dragging=!0)};
G.onPointerMove=function(b){N6u(G)&&G.dragging&&(G.ytLazyListBehavior.fillRemainingListItems(),G.offset=G.dragOffsetStart-(b.clientX-G.dragMouseStart),xE(G),G.reposition_())};
G.onPointerUp=function(){N6u(G)&&(G.dragging=!1)};
return G};
_.M(f9,_.eH);var YVO=function(G){var b=_.Eo(G.hostElement).querySelector("#items").children;if(!b)return 0;var I=0;G=_.e(G.fullyVisibleItemsIndices);for(var h=G.next();!h.done;h=G.next())I+=b[h.value].clientWidth;return I},N6u=function(G){return G.isSearch&&_.U("desktop_enable_dmpanel_click_drag_scroll")};
f9.prototype.created=function(){this.cachedViewportWidth=_.wy("initialInnerWidth")||window.innerWidth;this.JSC$14566_cachedViewportHeight=_.wy("initialInnerHeight")||window.innerHeight;_.wy("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.OB("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
f9.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.U("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();CyX(this)};
f9.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.U("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var G;(G=this.itemsVisibilityObserver)==null||G.disconnect();this.itemsVisibilityObserver=null;var b;(b=this.itemsObserver)==null||b.disconnect()};
var CyX=function(G){var b=_.Eo(G.hostElement).querySelector("#scroll-container");if(b){if(!G.itemsVisibilityObserver){var I=window.getComputedStyle(b).marginRight;G.itemsVisibilityObserver=new IntersectionObserver(function(h){JTn(G,h)},{root:b,
rootMargin:I,threshold:.98})}if(b=_.Eo(G.hostElement).querySelector("#items"))G.itemsObserver=new vQn(b,function(h){Kme(G,h)})}},Kme=function(G,b){u2X(G)&&(Array.from(b.addedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){G.itemsVisibilityObserver&&G.itemsVisibilityObserver.observe(I)}),Array.from(b.removedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){G.itemsVisibilityObserver&&G.itemsVisibilityObserver.unobserve(I)}))},
JTn=function(G,b){var I=new Set(G.fullyVisibleItemsIndices);
b=_.e(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;var q=h.target.parentElement;q?(q=Array.from(q.children).indexOf(h.target),h.isIntersecting?I.add(q):I.has(q)&&I.delete(q)):_.RB(new _.Wf("Parent element not found",h.target.nodeName))}G.fullyVisibleItemsIndices=Array.from(I).sort(function(l,V){return l-V});
I.size===0?_.RB(new _.Wf("No visible entries in horizontal list")):(G.startIndex=G.fullyVisibleItemsIndices[0],G.endIndex=G.fullyVisibleItemsIndices[G.fullyVisibleItemsIndices.length-1])},u2X=function(G){G.data?G=(G=G.data)&&G.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===G.itemSizeConstraint:!1:G=!1;
return G};
_.m=f9.prototype;_.m.addScrollEventListeners=function(){var G=_.Eo(this.hostElement).querySelector("#scroll-container");G.style.touchAction="pan-y";G.addEventListener("wheel",this.JSC$14566_onWheelScroll);G.addEventListener("pointerdown",this.onPointerDown);G.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.m.removeScrollEventListeners=function(){var G=_.Eo(this.hostElement).querySelector("#scroll-container");G.removeEventListener("wheel",this.JSC$14566_onWheelScroll);G.removeEventListener("pointerdown",this.onPointerDown);G.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.m.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.D1(this,this.setStartIndex,[this.initialStartIndex])};
_.m.reposition_=function(){var G=_.wy("HTML_DIR")=="rtl"?"":"-",b=_.Eo(this.hostElement).querySelector("#items");b&&(b.style.transform="translateX("+G+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.m.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.D1(this,this.setButtonsState_))};
_.m.setButtonsState_=function(){this.setButtonsStateRequested=!1;var G=_.Eo(this.hostElement).querySelector("#items").firstElementChild;if(G){this.minComponentWidth||(this.minComponentWidth=R$n(this,G));G=_.Eo(this.hostElement).querySelector("#scroll-container").clientWidth;var b=_.Eo(this.hostElement).querySelector("#items");b=_.U("kevlar_horizontal_list_scroll_width_killswitch")?b.clientWidth:b.scrollWidth;var I=this.get(this.ytLazyListBehavior.itemsPath,this);if(I){var h=Math.round(G/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+h,I.length)-1)}this.ytLazyListBehavior.canShowMore?b+this.minComponentWidth>=this.offset+G&&(this.atEnd=!1):this.atEnd=this.offset+G>=b-20?!0:!1;this.atStart=this.offset<=20}};
_.m.setStartIndex=function(G){if(!this.minComponentWidth){var b=_.Eo(this.hostElement).querySelector("#items").firstElementChild;if(!b)return;this.minComponentWidth=R$n(this,b)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*G;xE(this);this.reposition_()};
_.m.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Uc();var G=_.Eo(this.hostElement).querySelector("#scroll-container").clientWidth;_.U("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=R$n(this,_.Eo(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&&n$W(this);this.offset+=u2X(this)?
YVO(this):G*this.minComponentWidth;xE(this);this.reposition_();this.scrollCount++};
_.m.prevClick_=function(){var G=_.Eo(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=u2X(this)?YVO(this):this.minComponentWidth*this.scrollCount-1):this.offset-=u2X(this)?YVO(this):G*this.minComponentWidth;this.centerListItems&&n$W(this);xE(this);this.reposition_()};
_.m.onIronResize_=function(){this.resizeSupportEnabled&&_.D1(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.m.onItemsTransitionEnd_=function(G){_.a_(G)===_.Eo(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.m.onChildElementFocus_=function(G){G=G.target.closest("#items > *");var b=_.Eo(this.hostElement).querySelector("#scroll-container");if(b.contains(G)){if(_.U("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+b.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Uc(),this.offset=G.offsetLeft+G.clientWidth-b.clientWidth;else return;else{var I=_.Eo(this.hostElement).querySelector("#items"),
h=_.wy("HTML_DIR")==="rtl",q=h?I.clientWidth-G.offsetLeft:G.offsetLeft;I=h?I.clientWidth-(G.offsetLeft+G.clientWidth):G.offsetLeft+G.clientWidth;var l=h?q>this.offset+b.clientWidth:q<this.offset,V=h?I<this.offset:I>this.offset+b.clientWidth,D=h?l:V;if(h?V:l)b=h?I:q,this.offset=Math.abs(b)<G.clientWidth?0:b;else if(D)this.ytLazyListBehavior.fillRemainingListItems(),_.Uc(),this.offset=(h?q:I)-b.clientWidth;else return}xE(this);this.reposition_()}};
_.m.observeShownItems_=function(){this.reset()};
_.m.checkComponentWidthResize=function(){var G=_.Eo(this.hostElement).querySelector("#items").firstElementChild;G&&(G=R$n(this,G),this.centerListItems||G!==this.minComponentWidth)&&(this.minComponentWidth=G,this.offset=G*this.scrollCount,this.centerListItems&&n$W(this),xE(this),this.reposition_())};
var R$n=function(G,b){var I=window.getComputedStyle(b).marginRight;I=Math.floor(Number(I.replace("px","")));var h=window.getComputedStyle(b).marginLeft;h=Math.floor(Number(h.replace("px","")));G.centerListItems&&!G.marginWidthRight&&(G.marginWidthRight=I,G.marginWidthLeft=h);return G.resizeSupportEnabled?b.getBoundingClientRect().width+I:b.offsetWidth+I},xE=function(G){var b=_.Eo(G.hostElement).querySelector("#scroll-container").clientWidth,I=_.Eo(G.hostElement).querySelector("#items").clientWidth;
G.offset<0?G.offset=0:G.offset+b>=I&&(G.offset=I-b)},n$W=function(G){G.offset-=(_.Eo(G.hostElement).querySelector("#scroll-container").clientWidth+G.marginWidthRight-G.minComponentWidth)/2-G.marginWidthLeft};
_.kV.Object.defineProperties(f9.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var G=_.wy("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(G==-1)G=this.JSC$14566_cachedViewportHeight,G=G>1320?5:G>1020?4:G>730?3:G>430?2:1;else if(G==0)return 0;_.OB("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",G-1);G=_.wy("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;_.OB("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
G);return G},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.U("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
f9.prototype.observeShownItems_=f9.prototype.observeShownItems_;f9.prototype.onChildElementFocus_=f9.prototype.onChildElementFocus_;f9.prototype.onItemsTransitionEnd_=f9.prototype.onItemsTransitionEnd_;f9.prototype.onIronResize_=f9.prototype.onIronResize_;f9.prototype.prevClick_=f9.prototype.prevClick_;f9.prototype.nextClick_=f9.prototype.nextClick_;f9.prototype.setButtonsState_=f9.prototype.setButtonsState_;f9.prototype.requestButtonsStateUpdate_=f9.prototype.requestButtonsStateUpdate_;
f9.prototype.reposition_=f9.prototype.reposition_;f9.prototype.reset=f9.prototype.reset;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.L9.YtLazyListBehavior),_.n("design:type",Object)],f9.prototype,"ytLazyListBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],f9.prototype,"atStart",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],f9.prototype,"atEnd",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"startIndex",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"endIndex",void 0);_.R([_.H({value:6}),_.n("design:type",Number)],f9.prototype,"initialCount",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"scrollCount",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"initialStartIndex",void 0);
_.R([_.H(),_.n("design:type",Object)],f9.prototype,"disableScrollEventListener",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"supportComponentResize",void 0);_.R([_.H({value:function(){var G=this;return function(){return G.prevClick_()}}}),
_.n("design:type",Function)],f9.prototype,"boundPrevClick",void 0);_.R([_.H({value:function(){var G=this;return function(){return G.nextClick_()}}}),
_.n("design:type",Function)],f9.prototype,"boundNextClick",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"useFloorScrolling",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"isSearch",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"dragging",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"dragMouseStart",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"dragOffsetStart",void 0);
_.R([_.H(),_.n("design:type",Object)],f9.prototype,"disableWheelScroll",void 0);_.R([_.H(),_.n("design:type",Object)],f9.prototype,"centerListItems",void 0);_.R([_.hI("iron-resize"),_.q5("guideOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f9.prototype,"onIronResize_",null);_.R([_.hI("transitionend"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],f9.prototype,"onItemsTransitionEnd_",null);
_.R([_.hI("focusin"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],f9.prototype,"onChildElementFocus_",null);_.R([_.q5("shownItems"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f9.prototype,"observeShownItems_",null);_.R([_.Vx()],f9);_.Qk.YtdHorizontalListBehavior=[];_.Qk.YtdHorizontalListBehavior.push(_.Y6,_.p.YtRendererBehavior,_.L9.YtLazyListBehavior,_.GJ.YtdGuideStateAwareBehavior,f9.prototype);var mG2=["APP_STATE","PI"];var TJ,BF=function(G){this.hostElement=G},UT=function(G,b){if(b&&(cDj(b.viewableCommands)||cDj(b.endOfSessionCommands))){var I=v5r(b.viewableCommands);
b=v5r(b.endOfSessionCommands);if(!TJ){var h=_.Te("custom_active_view_tos_timeout_ms");TJ=h>0&&h!==36E5?new Wyu(k6j(),h):new Wyu(k6j())}NJd(TJ,G.hostElement);YWO(TJ,G.hostElement,I,b)}},sT=function(G){TJ&&NJd(TJ,G.hostElement)};var Ot8=_.WP(["about:blank"]),wMO={pushState:window.history.pushState,replaceState:window.history.replaceState};var gF=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)};
gF.prototype.init=function(){this.initialized=!0};
gF.prototype.pushState=function(G,b){this.initialized||this.init();this.internalPushState&&this.internalPushState(G,"",b)};
gF.prototype.replaceState=function(G,b){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(G,"",b)};
gF.prototype.getState=function(){return this.history&&this.history.state};var E$W=function(G){var b=function(){var I=G.apply(this,arguments)||this;I.boundHistoryPushState=!1;I.boundHistoryReplaceState=!1;I.debugInfo={};return I};
_.M(b,G);b.prototype.init=function(){var I=_.ol("IFRAME");_.$T(I,_.Ba(Ot8));I.sandbox="allow-same-origin";I.style.display="none";this.iframe=I;document.body.appendChild(I);this.bindHistoryStateFunctions();G.prototype.init.call(this)};
b.prototype.bindHistoryStateFunctions=function(){var I=this,h=[],q;this.iframe&&((q=this.iframe.contentWindow)==null?0:q.history)&&(q=this.iframe.contentWindow.history)&&(h.push(q),Object.getPrototypeOf(q)&&h.push(Object.getPrototypeOf(q)));window.history&&h.push(window.history);q=window.history;Object.getPrototypeOf(q)&&h.push(Object.getPrototypeOf(q));h.push(wMO);q=function(V){for(var D=null,k=0;k<h.length;k++){var L=h[k][V];if(typeof L==="function"){D=L.bind(window.history);I.debugInfo[V]=k;break}}return D};
if(!this.boundHistoryReplaceState){var l=q("replaceState");l&&(this.internalReplaceState=l,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(q=q("pushState"))&&(this.internalPushState=q,this.boundHistoryPushState=!0)};
return b}(gF),pMn=function(){return E$W.call(this,window.history)||this};
_.M(pMn,E$W);pMn.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Ao=function(G){this.browserHistory=G;this.initialized=!1};
Ao.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Ao.prototype.pushState=function(G,b){this.initialized||this.init();this.browserHistory.pushState(G,b)};
Ao.prototype.replaceState=function(G,b){this.initialized||this.init();this.browserHistory.replaceState(G,b)};
Ao.prototype.handlePopstate=function(G){return G.state};_.SVe=function(G,b,I,h,q){this.endpoint=G;this.forward=b;this.historyEntry=I;this.JSC$30601_savedComponentState=h;this.legacyBorder=q===void 0?!1:q};var XM5=function(G,b){this.rootData=G;this.scrollTop=b};_.MM=new _.q3("EPHEMERAL_STORE_TOKEN");_.ZF=function(G){this.data=Object.assign({},G);var b;(b=this.data.innertubeResponse)==null||delete b.frameworkUpdates};
_.ZF.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Li)()};
_.uP=function(G){return Object.assign({},G.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var $xJ=function(){this.maxSize=100;this.timeToDataCache=new Map};
$xJ.prototype.get=function(G){var b=this.timeToDataCache.get(G);b&&(this.timeToDataCache.delete(G),this.timeToDataCache.set(G,b));if(b&&b.rootData&&(_.U("web_use_response_store_for_history_cache")||_.U("mweb_use_new_history_manager"))){var I=_.LL().resolve(_.MM),h=GoW(b),q=!!h;if(h){if(h.content){var l=to(I,h.content);q&&l?b.rootData.response=_.uP(l):q=!1}h.player&&(l=to(I,h.player),q&&l?b.rootData.playerResponse=_.uP(l):q=!1);h.reelSequence&&(I=to(I,h.reelSequence),q&&I?b.rootData.reelWatchSequenceResponse=
_.uP(I):q=!1)}q||(this.timeToDataCache.delete(G),b=void 0)}return b};
$xJ.prototype.set=function(G,b){if(b.rootData&&(_.U("web_use_response_store_for_history_cache")||_.U("mweb_use_new_history_manager"))){var I=GoW(b),h=Object.assign({},b.rootData);I&&(I.content&&b.rootData.response&&(brW(this,I.content,b.rootData.response),h.response=null),I.player&&b.rootData.playerResponse&&(brW(this,I.player,b.rootData.playerResponse),h.playerResponse=null),I.reelSequence&&b.rootData.reelWatchSequenceResponse&&(brW(this,I.reelSequence,b.rootData.reelWatchSequenceResponse),h.reelWatchSequenceResponse=
null));b=new XM5(h,b.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,b)};
$xJ.prototype.clear=function(){this.timeToDataCache.clear()};
var GoW=function(G){var b=_.LL().resolve(_.vf(_.LW)),I;if((I=G.rootData)==null?0:I.endpoint)return b==null?void 0:iHd(b,G.rootData.endpoint);var h;_.RB(new _.Wf("History snapshot response data does not contain endpoint",(h=G.rootData)==null?void 0:h.url));return null},brW=function(G,b,I){if(G.maxSize>0){var h;
(G=(h=I.responseContext)==null?void 0:h.maxAgeSeconds)&&Number(G)>0&&(h=_.LL().resolve(_.MM),I=pk(I,G),h.put(b,new _.ZF(I)))}};var I3z=function(G,b,I){this.endpoint=b;this.JSC$30607_savedComponentState=I===void 0?null:I;this.entryTime=G};var xGu=1;var zJ=function(G){var b=function(){var I=G.apply(this,[].concat(_.Nz(_.RI.apply(0,arguments))))||this;I.historyEntryTime=0;I.historySnapshotCache=I.createHistoryCache();return I};
_.M(b,G);b.prototype.createHistoryCache=function(){return new $xJ};
b.prototype.saveAndReplace=function(I,h,q){var l=window.location.href;var V=V===void 0?{}:V;var D=(D=this.browserHistory.getState())&&D.entryTime?D.entryTime:fqj();I=this.createNewHistoryEntry(I,V,D);this.saveSnapshot(D,h,q);this.replaceState(I,l||window.location.href)};
b.prototype.saveAndPush=function(I,h,q,l,V){V=V===void 0?{}:V;this.saveSnapshot(this.historyEntryTime,q,l);q=this.historySnapshotCache;l=this.historyEntryTime;var D=q.timeToDataCache.keys();D=_.e(D);for(var k=D.next();!k.done;k=D.next())k=k.value,k>l&&q.timeToDataCache.delete(k);h=this.createNewHistoryEntry(h,V);this.pushState(h,I)};
b.prototype.saveSnapshot=function(I,h,q){this.historySnapshotCache.set(I,new XM5(h,q))};
b.prototype.createNewHistoryEntry=function(I,h,q){q=q===void 0?fqj():q;return new I3z(q,I,h)};
b.prototype.handlePopstate=function(I){var h=G.prototype.handlePopstate.call(this,I),q=null,l=null,V=!1,D=null;h&&h.entryTime&&(D=this.historySnapshotCache.get(h.entryTime)||null,V=h.entryTime>this.historyEntryTime,this.historyEntryTime=h.entryTime,q=h.endpoint,l=h.JSC$30607_savedComponentState);this.handleHistoryCacheLoad(new _.SVe(q,V,D,l),I);return h};
b.prototype.pushState=function(I,h){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);G.prototype.pushState.call(this,I,h)};
b.prototype.replaceState=function(I,h){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);G.prototype.replaceState.call(this,I,h)};
b.prototype.handleHistoryCacheLoad=function(){};
return b}(Ao),hiz=function(){var G=zJ.call(this,new pMn)||this;
G.dispatchElement=null;G.entryIndex=0;return G};
_.M(hiz,zJ);_.m=hiz.prototype;_.m.init=function(G){G=G===void 0?!0:G;zJ.prototype.init.call(this);this.initialized||(G||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.m.handlePopstate=function(G){var b=null;G.state||(b="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return zJ.prototype.handlePopstate.call(this,G);var I=new CustomEvent("yt-history-pop",{cancelable:!0});_.wL(this.dispatchElement,"yt-history-pop",[I,{errorMsg:b}]);_.E3(this.dispatchElement,"yt-close-all-popups-action");if(!I.defaultPrevented){I=_.LL().resolve(_.Ck);b=I.getCurrentData();var h=I.getCurrentPage();I=0;h?(h=_.wL(this.dispatchElement,"yt-get-page-offset",
[h]),h.length>0&&(I=h[0])):_.RB(new _.Wf("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:b?b.page:"undefined"}));b&&(b.csn=_.gL());this.saveSnapshot(this.historyEntryTime,b,I)}return zJ.prototype.handlePopstate.call(this,G)};
_.m.handleHistoryCacheLoad=function(G,b){G.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.e(_.E3(this.dispatchElement,"yt-history-will-navigate",[b])).next().value||_.wL(this.dispatchElement,"yt-history-load",[b,G]))};
_.m.pushState=function(G,b){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var I=new _.Wf("history.pushState is not a function",this.getDebugString());_.K1(I)}zJ.prototype.pushState.call(this,G,b)};
_.m.replaceState=function(G,b){if(!this.browserHistory.boundHistoryReplaceState){var I=new _.Wf("history.replaceState is not a function",this.getDebugString());_.K1(I)}zJ.prototype.replaceState.call(this,G,b)};
_.m.saveAndPush=function(G,b,I,h,q){q=q===void 0?{}:q;I&&(I.csn=_.gL());zJ.prototype.saveAndPush.call(this,G,b,I,h,q)};
_.m.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(",")};
_.oF=function(G,b){G.init(!0);var I=G.browserHistory.getState();G.replaceState(I,Ed(b))};
hiz.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.i7=new _.q3("DESKTOP_HISTORY_MANAGER_TOKEN");var qtA=[10,20,30,40,50,60],PF=function(){this.currentPartitionIndex=0},j2X=function(G){W5e({mainAppWeb:_.y4(),
survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},l3b=function(G){W5e({mainAppWeb:_.y4(),
survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},mxi=function(G){return G.currentPartitionIndex>=0&&G.currentPartitionIndex<qtA.length?qtA[G.currentPartitionIndex]:-1},eiQ=function(G){return G.currentPartitionIndex>0&&G.currentPartitionIndex-1<qtA.length?qtA[G.currentPartitionIndex-1]:-1};
PF.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var G=eiQ(this);G>0&&l3b(G);G=mxi(this);G>0&&j2X(G);V5J(this)}};
var V5J=function(G){var b=mxi(G);if(b>0){var I=eiQ(G);I<0&&(I=0);G.intervalId=_.uu.addJob(function(){var h=eiQ(G);h>0&&l3b(h);h=mxi(G);h>0&&j2X(h);V5J(G)},3,(b-I)*6E4);
G.currentPartitionIndex+=1}else G.currentPartitionIndex=-1};var DxO=function(G){Ui.call(this,G,132);this.isDocument=G===document.documentElement};
_.M(DxO,Ui);DxO.prototype.calculateScrollDelta=function(G,b,I){var h=0;G<b?h=G<b-100?-48:-8:G>b+I&&(h=G>b+I+100?48:8);return h};
DxO.prototype.JSC$11464_onMouseMove=function(G){this.isDocument||(G.clientX=G.event_.pageX,G.clientY=G.event_.pageY);Ui.prototype.JSC$11464_onMouseMove.call(this,G)};_.c0A=function(G,b){var I=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14620_dragListGroup=null;this.onDraggerCreated=function(h){var q=h.JSC$11460_dragger;q.scrollTarget_=I.scrollElement;h=h.draggerEl;q&&h.menuOpened&&q.setEnabled(!1)};
this.onDragStart=function(h){var q=h.draggerEl;h=h.currDragItem;var l=Object.assign({},h==null?void 0:h.data);l.trackingParams=void 0;q.data=l;q.style.position="absolute";q.style.width=(h==null?void 0:h.clientWidth)+"px";q.style.zIndex="2030";q.onDrag&&q.onDrag();h=_.ny(q);(l=h.querySelector("ytd-app"))?_.Eo(l).appendChild(q):h.body.appendChild(q);I.dragScrollSupport=new DxO(I.scrollElement);I.dragScrollSupport.horizontalScrolling_=!1;q=I.dragScrollSupport;q.constrainScroll_=!!q.margin_&&!1};
this.onDrop=function(h){I.handleDrop(h);I.dragScrollSupport&&(_.VQ(I.dragScrollSupport),I.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(I.JSC$14620_dragListGroup){var h=I.JSC$14620_dragListGroup;aGe(h,h.currDragItem_)}};
this.handleDrop=b};
_.dF=function(G){G.JSC$14620_dragListGroup&&(_.ML(G.JSC$14620_dragListGroup,oon,G.onDragStart),_.ML(G.JSC$14620_dragListGroup,yai,G.onDragStart),G.JSC$14620_dragListGroup.dispose(),G.JSC$14620_dragListGroup=null);G.dragScrollSupport&&(_.VQ(G.dragScrollSupport),G.dragScrollSupport=null);G.scrollElement.removeEventListener("scroll",G.onReorderableScroll)};
_.koz=function(G,b,I,h){h=h===void 0?"":h;_.dF(G);I&&(G.scrollElement=I);G.JSC$14620_dragListGroup=new Oc;G.JSC$14620_dragListGroup.hysteresisDistance_=2;F2X(G.JSC$14620_dragListGroup,b);G.JSC$14620_dragListGroup.draggerElClasses_=v2("dragging").split(" ");h&&Hkn(G.JSC$14620_dragListGroup,function(q){var l=q||document,V=null;l.getElementsByClassName?V=l.getElementsByClassName(h)[0]:V=Ln8("*",h,q);return V||q});
_.cv(G.JSC$14620_dragListGroup,thW,G.onDraggerCreated);_.cv(G.JSC$14620_dragListGroup,oon,G.onDragStart);_.cv(G.JSC$14620_dragListGroup,yai,G.onDrop);G.JSC$14620_dragListGroup.init();G.scrollElement.addEventListener("scroll",G.onReorderableScroll,{passive:!0})};
_.kV.Object.defineProperties(_.c0A.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var vHA=function(){this.skipNextNavigation=!1},LJW=function(G,b,I){if(!b)return!1;
if(G.skipNextNavigation)return G.skipNextNavigation=!1;if(_.g(I,_.bx))return!1;var h,q,l;if((h=_.g(I,_.jL))==null?0:(q=h.browseEndpointContextSupportedConfigs)==null?0:(l=q.browseEndpointContextMainConfig)==null?0:l.skipConfirmation)return!1;var V;return((V=_.g(b.commandMetadata,_.IW))==null?void 0:V.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
vHA.prototype.showConfirmationDialog=function(G,b){this.navigateParams=b;this.customConfirmationCommand?_.LL().resolve(_.xW).resolveCommand(this.customConfirmationCommand):(b={openPopupAction:{popup:{confirmDialogRenderer:{title:_.ao(_.qP("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.ao(_.qP("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.ao(_.qP("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.ao(_.qP("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.I1.getInstance().triggerAction("yt-open-popup-action",b,G))};
vHA.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 Q25=function(){},f3u=function(G,b,I,h,q,l,V){I=I===void 0?{}:I;
V=V===void 0?{}:V;var D=_.LL().resolve(_.LW),k,L=(k=_.g(b,_.bx))==null?void 0:k.url;return L?D6s(D,L,I,window.location.href,function(x,f){xxi(G,x,f,!1,!0,I,l,h)},function(){return!1}):PP(D,b,I,window.location.href,mu(b),function(x,f){xxi(G,x,f,!1,!0,I,l,h)},q,V)},xxi=function(G,b,I,h,q,l,V,D){if(!G.JSC$14635_chunkHandler)if(I.page==="learning_journey_watch"&&_.U("web_enable_canvas_on_learning_journey")){var k=!_.g(D,_.jL);
q=q||h;if(k)if(q){if(_.U("kevlar_continue_playback_without_player_response")){var L;var x=(L=_.g(D,_.Wq))==null?void 0:L.videoId}h={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:h,previousVideoId:x},tempData:l}}else h={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else h={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};G.JSC$14635_chunkHandler=new jYe(_.Kk,h,V,k,q)}else if(I.page==="watch"||I.page==="learning_journey_watch")if(q||h){if(_.U("kevlar_continue_playback_without_player_response")){var f;
k=(f=_.g(D,_.Wq))==null?void 0:f.videoId}G.JSC$14635_chunkHandler=new etb(_.Kk,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:h,previousVideoId:k},tempData:l},V)}else G.JSC$14635_chunkHandler=new ht5(_.Kk);else I.page==="shorts"&&q&&!h?G.JSC$14635_chunkHandler=new mFz(_.Kk,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:l},V):G.JSC$14635_chunkHandler=new qfO(V);G.JSC$14635_chunkHandler.processChunk({endpoint:b,data:I});return G.JSC$14635_chunkHandler.cg.promise},
TAe=function(G,b,I,h,q){(I=_.ghX(I))&&xxi(G,b,I,!1,!0,h,void 0,q)};_.BAB=new _.q3("NAVIGATION_SERVICE_TOKEN");var Uxi=function(){this.pendingNavigationPromise=null};
_.m=Uxi.prototype;_.m.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.m.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.m.addEventListener=function(){throw Error("yh");};
_.m.dispatchEvent=function(){throw Error("yh");};
_.m.removeEventListener=function(){throw Error("yh");};var s2u=new _.q3("APP_ROOT");var BwO=null;var gHQ=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],yk=function(){_.Z$.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];A0i(this)};
_.M(yk,_.Z$);yk.prototype.verifyUser=function(){var G=A0i(this),b=G.logout;if(!G.sessionChange)return!0;this.dispatchEvent("ytsessionchange");b&&this.dispatchEvent("ytuserinvalid");return!1};
var A0i=function(G){var b=gHQ.map(function(q){var l;return(l=_.di.get(q))!=null?l:""}),I=b.some(function(q,l){return G.sessionCookies&&G.sessionCookies[l]!==""&&q===""}),h=b.some(function(q,l){return G.sessionCookies&&G.sessionCookies[l]!==q});
G.sessionCookies=b;return{logout:I,sessionChange:h}};
yk.prototype.clearTimeout=function(){this.scheduledJobId&&(_.uu.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var ZZX=new _.q3("POSTMESSAGE_TUNNEL_TOKEN");var g5O=["/parent_tools","/file_download","/artist_roster"],o5j=[pgn,SvX,XgJ,GfB,$zb,EIu,bNB,IJB];var rF=new _.q3("NAVIGATION_CONFIRMATION_SERVICE");var M58="/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(" "),ZrO=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],F1=function(G,b){this.pendingNavigationPromise=null;this.JSC$14658_clientRoot=G;this.historyManager=b;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 Q25;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};_.je(_.I1.getInstance(),G,this.JSC$14658_clientRoot)},Pfb,dx8,y0J,r0b,irB;
_.M(F1,Uxi);F1.prototype.reload=function(){_.tL(window.location.href)};
var Z7B=function(G){G.currentEndpoint&&_.g(G.currentEndpoint,_.V4)?G.reload():G.currentEndpoint&&G.navigate(G.currentEndpoint,!0,void 0,{disableCache:!0})};
F1.prototype.navigate=function(G,b,I,h,q,l,V,D){b=b===void 0?!1:b;I=I===void 0?{}:I;h=h===void 0?{}:h;var k=_.LL().resolve(rF),L;if(!V&&LJW(k,(L=this.currentEndpoint)!=null?L:void 0,G))return k.showConfirmationDialog(this.JSC$14658_clientRoot.parentElement,{endpoint:G,reload:b,params:I,tempData:h,requestType:q,createScreenConfig:l}),!1;var x=_.mq();_.em(x,"eocs")||x.parkOrScheduleJob(function(){x.processSignal("eocs")},10,"eor");
UGO();V=mu(G);k=h.autonav==="1";L=_.gL();yk.instance||(yk.instance=new yk);var f=yk.instance.verifyUser(),T;if(_.U("enable_dark_theme_only_on_shorts")){var B=document.documentElement.hasAttribute("dark"),A=_.o_(!0)==="USER_INTERFACE_THEME_DARK";if(V==="shorts"){if(!B)if(_.U("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var t;_.tL((t=_.g(G==null?void 0:G.commandMetadata,_.IW))==null?void 0:t.url,void 0,void 0,window.top)}}else{var y;_.tL(_.lB((y=_.g(G==
null?void 0:G.commandMetadata,_.IW))==null?void 0:y.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.U("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!B){var F;_.tL(_.lB((F=_.g(G==null?void 0:G.commandMetadata,_.IW))==null?void 0:F.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(A!==B){var W;_.tL(_.lB((W=_.g(G==null?void 0:G.commandMetadata,_.IW))==null?void 0:W.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(V==="watch"){if(t58(_.LL().resolve(_.zO),
G)&&(f||_.U("fix_miniplayer_navigation_killswitch")))return!1;_.U("block_all_player_prefetch_requests")||(T=A7n(_.Jx(_.oC),G,k))}else{var O,K=(O=_.g(this.currentEndpoint,_.Wq))==null?void 0:O.videoId;K&&_.nm.getInstance().then(function(W2){W2&&W2.set("yt-miniplayer-shown-video-id",K)})}T&&(I.frags=T.missingFragments_.join(","));
t=null;var u;y=(u=_.g(G==null?void 0:G.commandMetadata,_.IW))==null?void 0:u.ignoreNavigation;if(!y)if(_.U("kevlar_command_url")){var w;t=(w=_.g(G==null?void 0:G.commandMetadata,_.IW))==null?void 0:w.url}else t=_.$tB(G,I);if(t&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&t==this.lastNavigationUrl)return _.Tm({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.IA(o3(),"CANCELLED")}t&&(this.lastNavigationUrl=t);boO();_.OB("IS_HOMEPAGE_COLD",
!1);_.OB("IS_RESULTS_PAGE_COLD",!1);_.OB("IS_WATCH_PAGE_COLD",!1);G.loggingUrls&&G.loggingUrls.forEach(function(W2){W2.baseUrl&&_.Gs(W2.baseUrl)});
_.yDO(G,l?l.layer:0)&&_.U("kevlar_flush_logs_on_away_navigation")&&_.JM();if(iZs(G))return!1;lTi(V,q);if(!t)return y||_.RB(new _.Wf("Can't construct url for endpoint",G)),_.IA(o3(),"FAILURE"),!1;_.sh2();u=G&&_.g(G,_.jL)&&_.g(G,_.jL).browseId.startsWith("UC");I=(w=_.U("enable_dark_theme_only_on_shorts")&&V==="shorts"?!1:_.ig()&&document.documentElement.hasAttribute("dark")!==_.z9())?{themeRefresh:1}:{};w&&!_.ri()&&_.o_()==="USER_INTERFACE_THEME_DARK"&&(I.theme="dark");u=w||zin(t)&&!u&&!_.U("kevlar_disable_url_allowlist");
f||(u=!0);if(u||_.wy("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var $a;var ev=($a=window.top)==null?void 0:$a.location.href}catch(W2){var LO;ev=(LO=W2)==null?void 0:LO.message}_.RB(new _.Wf("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:ev}))}G=_.U("kevlar_redirect_on_window_killswitch")?window.top:window;ZL(t);_.tL(_.lB(t,I),void 0,void 0,G);_.IA(o3(),"ABORTED");return!1}_.U("kevlar_early_popup_close")&&_.wL(this.JSC$14658_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14635_chunkHandler=void 0;var td;ev=mu((td=this.currentEndpoint)!=null?td:void 0);(td=V==="shorts"&&ev==="shorts")||_.RGv();_.$W(PCa)("nr",void 0);k&&_.Tm({webInfo:{navigationReason:"an"}});G.clickTrackingParams&&(h.itct=G.clickTrackingParams,h.csn=L);G5O(h);h.endpoint=JSON.stringify(G);_.U("enable_unknown_lact_fix_on_html5")&&(_.LL().resolve(_.VO),h.lact=_.vA());_.Cy.isEmpty(h)||_.Cv(t,h);!_.U("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(l=Object.assign({},{layer:0},l,{parentLayer:3}));this.pendingNavigationPromise=l=f3u(this.pageFetcher,G,h,this.currentEndpoint,this.JSC$14658_isNetworkPromiseStale.bind(this),l,D);l=l.then(this.handleNavigateSuccess.bind(this,l,G,T,h),this.handleNavigateFail.bind(this,l,G));_.Ws().navigationFinishPromise=l;b={endpoint:G,pageType:V,url:Ed(t),reload:!!b,noProgressBar:td};q&&(b.type=q);var xa;q=_.qe((xa=this.currentEndpoint)!=null?xa:null);xa=_.qe(G!=null?G:null);this.fireEvent("yt-navigate-start",
b);var Uj;(Uj=_.LL().resolve(_.vf(_.BAB)))==null||Uj.publish("navigation-start",{sourcePageSubtype:q,destinationPageSubtype:xa});T&&TAe(this.pageFetcher,G,T,h,this.currentEndpoint);return!0};
F1.prototype.JSC$14658_isNetworkPromiseStale=function(G){return G!=this.pendingNavigationPromise};
var oHX=function(G,b,I,h,q){var l=mu(b);b={endpoint:b,pageType:l};q&&(b.errorMessage=q);_.RB(I);b.navigationDoneMs=_.sS("nd");b.navigationErrorReason=h;G.fireEvent("yt-navigate-error",b)};
F1.prototype.handleNavigateFail=function(G,b,I){var h=void 0;I instanceof _.zI&&(h=I,SdX(I));if(this.JSC$14658_isNetworkPromiseStale(G))return _.vv(h);_.IA(o3(),"FAILURE");oHX(this,b,I,"101");return _.vv(I)};
F1.prototype.handleNavigateSuccess=function(G,b,I,h,q){if(this.JSC$14658_isNetworkPromiseStale(G))return _.X8();this.pendingNavigationPromise=null;if(!q)return b=new _.Wf("Missing data in response for navigation endpoint",b),_.vv(b);if(q.reload)return window.location.reload(!0),_.X8();I&&(G={},_.Cy.extend(G,_.ghX(I),q),q=G);var l,V;I=(l=q)==null?void 0:(V=l.timing)==null?void 0:V.responseStart;I!=null&&_.sS("srt",I);_.sS("pdc");var D,k;l=(D=q)==null?void 0:(k=D.timing)==null?void 0:k.info;l!=null&&
(D=_.$W(_.F4q)(l),_.Tm(D));_.IA(o3(),"SUCCESS");irB(this,b,q,1,h);return _.X8()};
var zin=function(G){var b=G;_.U("kevlar_no_redirect_to_classic_2_ks")||(b=(new _.a3(G)).getPath());if(b==="/"||b==="/red")return!1;var I=!0;M58.forEach(function(h){G.indexOf(h)===0&&(I=!1)});
ZrO.forEach(function(h){var q=h.url;_.U(h.expFlag)&&G.indexOf(q)===0&&(I=!1)});
return I};
F1.prototype.publishPageData=function(G){this.fireEvent("yt-page-data-fetched",{pageData:G})};
Pfb=function(G,b,I,h,q,l){var V=null;b.page!=="watch"&&b.page!=="learning_journey_watch"||h?b.filler||_.wL(G.JSC$14658_clientRoot,"yt-stop-old-player",[b]):V=xxi(G.pageFetcher,q,b,I,!1,l,void 0,G.currentEndpoint);if(V)return V.then(G.publishPageData.bind(G,b));G.publishPageData(b);return _.X8()};
dx8=function(G,b,I){var h=null;if(!I)return h=new _.Wf("Empty data",G.debugString,b);var q=I.response;if(!q)return h;var l={endpointType:mu(b)||"unknown"};q.responseContext?(q=q.responseContext.errors)&&(h=new _.Wf("Errors in response context",G.debugString,b,q,l)):h=q.error||q.errorMetadata?new _.Wf("Errors in response",G.debugString,b,q.error,q.errorMetadata,l):new _.Wf("responseContext missing",G.debugString,b,Object.keys(q).sort().join(","),l);var V,D,k,L;if(G=I==null?void 0:(V=I.response)==null?
void 0:(D=V.responseContext)==null?void 0:(k=D.webResponseContextExtensionData)==null?void 0:(L=k.webResponseContextDebugData)==null?void 0:L.debugErrorMessages)for(V=0;V<G.length;V++);return h};
y0J=function(G){var b,I,h,q;return G==null?void 0:(b=G.response)==null?void 0:(I=b.responseContext)==null?void 0:(h=I.errors)==null?void 0:(q=h.error)==null?void 0:q["0"]};
r0b=function(G,b){var I;if(I=b.url&&!b.url.startsWith("/clip"))I=b.url,I=!_.U("webfe_parse_debug_param_in_resolveurl_service")&&G.searchDebugUrlMatcher.test(I)||lEq(I)?!0:!1;if(I)lEq(b.url)&&_.jO(window.location.href).themeRefresh?(b=_.J_(b.url,"themeRefresh"),_.oF(G.historyManager,b)):b.url&&!Lds(b.url)&&_.oF(G.historyManager,b.url);else if(b.endpoint){var h,q,l;(I=(h=b.endpoint)==null?void 0:(q=h.commandMetadata)==null?void 0:(l=q.webCommandMetadata)==null?void 0:l.url)&&!Lds(I)&&_.oF(G.historyManager,
I);I&&b.url&&I!=b.url&&!b.url.match("playnext=1")&&new _.Wf("Response url mismatch in response data",G.debugString,I,b.url)}};
_.FJu=function(G,b,I,h,q,l,V,D){l=l===void 0?!1:l;var k=_.LL().resolve(rF),L;if(!D&&LJW(k,(L=G.currentEndpoint)!=null?L:void 0,b))return k.showConfirmationDialog(G.JSC$14658_clientRoot.parentElement,{endpoint:b,data:I,navigationType:h,tempData:q,isMiniplayer:l,isForwardHistoryNavigation:V==null?void 0:V.forward}),_.X8();G.pageFetcher.JSC$14635_chunkHandler=void 0;return irB(G,b,I,h,q,l)};
irB=function(G,b,I,h,q,l){l=l===void 0?!1:l;G.isMiniplayerExpansion=l;var V=h===2;G.currentEndpoint=b;G.numNavigations++;G.numNavigations&&(Crq.navigationCount=G.numNavigations);_.OB("NUM_NAV",G.numNavigations);var D=dx8(G,b,I);if(D)return oHX(G,b,D,"102",y0J(I)),_.vv(D);var k,L,x,f;D=I.rootVe||(I==null?void 0:(k=I.response)==null?void 0:(L=k.responseContext)==null?void 0:(x=L.webResponseContextExtensionData)==null?void 0:(f=x.ytConfigData)==null?void 0:f.rootVisualElementType);!V&&I&&r0b(G,I);var T,
B;k=I==null?void 0:(T=I.response)==null?void 0:(B=T.responseContext)==null?void 0:B.maxAgeSeconds;if(!V&&!isNaN(k)){var A;_.U("kevlar_use_response_ttl_to_invalidate_cache")?A=(0,_.Li)()+1E3*k:_.U("kevlar_always_invalidate_cache")&&(A=0);isNaN(A)||(I.expirationTime=A)}_.Jx(_.oC).prefetchCache_.clear();V||I.page!=="watch"||I.type!=="reduced"&&h!==1?h=Pfb(G,I,V,!!l,b,q):(G.publishPageData(I),h=_.X8());q=h.then(function(){var t=mu(b);t={endpoint:b,pageType:t,fromHistory:V,response:I};t.navigationDoneMs=
_.sS("nd");G.fireEvent("yt-navigate-finish",t);var y;(y=_.LL().resolve(_.vf(_.BAB)))==null||y.publish("navigation-end")});
I.csn&&D&&I.clientSideGrafts&&h.then(G.attachClientSideGrafts.bind(G,I,_.s3()));return q};
_.m=F1.prototype;_.m.attachClientSideGrafts=function(G,b){G.clientSideGrafts&&b&&G.clientSideGrafts.forEach(function(I){if(b&&I){var h=_.VB(I);_.U("combine_ve_grafts")?_.qo().graftServerVe(I,b):_.dK(G.csn,b,h)}})};
_.m.handleSignalActionHistoryBack=function(){window.history.back()};
_.m.handleSignalActionCloseWindow=function(){window.close()};
_.m.handleSignalActionReloadPage=function(){this.reload()};
_.m.handleSignalActionSoftReloadPage=function(){Z7B(this)};
_.m.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.m.fireEvent=function(G,b){G=new CustomEvent(G,{bubbles:!0,cancelable:!1,composed:!0,detail:b});this.dispatchEvent(G)};
_.m.addEventListener=function(G,b){this.JSC$14658_clientRoot.addEventListener(G,b)};
_.m.dispatchEvent=function(G){return this.JSC$14658_clientRoot.dispatchEvent(G)};
_.m.removeEventListener=function(G,b){this.JSC$14658_clientRoot.removeEventListener(G,b)};
F1[QE]=[s2u,_.i7];_.Lxr=new OQ("browse","h8y2qb");_.Qgr=new OQ("search","JzFVk");_.xad=new OQ("shorts","xwEKAe");_.fh2=new OQ("watchFixie","nmfa2d");_.Tgd=new OQ("watchFlexy","CF909");_.BgX=new OQ("watchGrid","Tm0L3c");_.UaO=new OQ("watchLearningJourney","L3n37");var Hri;var WJO=function(){return _.a.apply(this,arguments)||this};
_.M(WJO,_.a);_.kV.Object.defineProperties(WJO,{template:{configurable:!0,enumerable:!0,get:function(){if(Hri===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);Hri=G}G=Hri;return G}}});
_.R([_.z(WmO.YtPlayerBehavior),_.n("design:type",Object)],WJO.prototype,"ytPlayerBehavior",void 0);_.R([_.N({is:"ytd-player"})],WJO);var a3u;var NAb;var Ytz;var HF=function(){var G=_.a.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};
_.M(HF,_.a);HF.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]]"}}}}}};
HF.prototype.handleAccountLinkingStateChangedCommand=function(G){if(G=_.g(G,L4X)){var b,I=(b=this.data)==null?void 0:b.providerKey;b=G.providerKey;I&&b&&I.id===b.id&&I.subject===b.subject&&(G=G.linked,G!==void 0&&(this.set("data.linked",G),this.notifyPath("data.linked"),_.U("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(G)))}};
HF.prototype.setPlayerAccountLinkState=function(G){var b=new PzO;djz(b,oFX(new zXJ,G));var I=_.Kk();I&&I.getPlayerPromise().then(function(h){h.setAccountLinkState(_.WL(b.JSC$12391_serializeBinary(),4));h.updateAccountLinkingConfig(G)})};
HF.prototype.handleShowAccountLinkDialog=function(){var G=this.get("button.buttonRenderer.command");G&&_.Gm([G],this.hostElement)};
_.kV.Object.defineProperties(HF.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.R([_.z([_.tV.YtActionHandlerBehavior]),_.n("design:type",Object)],HF.prototype,"actionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],HF.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],HF.prototype,"overrides",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],HF.prototype,"forceModernIconButton",void 0);_.R([_.H({value:"bottom"}),_.n("design:type",String)],HF.prototype,"buttonTooltipPosition",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],HF.prototype,"forceIconButton",void 0);_.R([_.H(),_.n("design:type",Boolean)],HF.prototype,"disableTextTransform",void 0);
_.R([_.P("data","data.linked","data.isWarning"),_.n("design:type",Object),_.n("design:paramtypes",[])],HF.prototype,"button",null);_.R([_.N({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],HF);
_.J(HF,"ytd-account-link-button-renderer",function(){if(Ytz!==void 0)return Ytz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Ytz=G},{mode:1});var Cfe;var J0n=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],WF=function(){return _.a.apply(this,arguments)||this};
_.M(WF,_.a);WF.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
WF.prototype.updateButtonActiveState=function(){var G=this,b=!!J0n.find(function(I){return G.currentState===I});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.U("enable_web_delhi_icons")&&(b=!1);this.button&&(this.button.isPressed=b)};
_.kV.Object.defineProperties(WF.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.playlistLoopStateEntity)==null?void 0:G.state)||((b=this.data)==null?void 0:b.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var G=void 0,b;if(this.currentState&&((b=this.data)==null?0:b.states)){b=_.e(this.data.states);for(var I=b.next();!I.done;I=b.next()){I=_.g(I.value,_.PQz);var h=void 0;if(((h=I)==null?void 0:h.state)===this.currentState){G=I;break}}}return G}}});
WF.prototype.updateButtonActiveState=WF.prototype.updateButtonActiveState;_.R([_.z(_.wN),_.n("design:type",Object)],WF.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.ND.playlistLoopStateEntitySelector}),_.n("design:type",Object)],WF.prototype,"playlistLoopStateEntity",void 0);_.R([_.H(),_.n("design:type",Object)],WF.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],WF.prototype,"forceIconOnly",void 0);_.R([_.lH("ytd-button-renderer"),_.n("design:type",_.L5)],WF.prototype,"button",void 0);
_.R([_.P("data","playlistLoopStateEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],WF.prototype,"currentState",null);_.R([_.q5("currentButtonStateRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],WF.prototype,"updateButtonActiveState",null);_.R([_.P("currentState"),_.n("design:type",Object),_.n("design:paramtypes",[])],WF.prototype,"currentButtonStateRenderer",null);
_.R([_.N({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],WF);
_.J(WF,"ytd-playlist-loop-button-renderer",function(){if(Cfe!==void 0)return Cfe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Cfe=G},
{mode:1});var KJn;var ub5=_.qP("DOWNLOAD",{},"Download"),RiB=_.qP("DOWNLOADING",{},"Downloading"),nHn=_.qP("DOWNLOADED",{},"Downloaded"),Orn=_.qP("RETRY",{},"Retry"),aF=function(){var G=_.a.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};
_.M(aF,_.a);_.m=aF.prototype;_.m.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.m.dataChanged=function(){var G;(G=this.data)!=null&&G.text||(G=_.Z0(_.Cw().getState(),this.videoId),this.updateButtonState(G))};
_.m.computeVideoId=function(G){return G};
_.m.computePlayerStateEntityKey=function(G){return G};
_.m.showHideButton=function(){this.updateButtonVisibility()};
_.m.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};
_.m.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.m.updateButtonState=function(G){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==RiB||!_.Vg(G))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(G){case "TRANSFER_STATE_UNKNOWN":G=ub5;var b="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":G=Orn;b="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":G=nHn;b="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":G=
RiB;b="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":G=Orn;b="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;default:G=ub5,b="OFFLINE_DOWNLOAD",I="ACTION_ADD"}this.isVideoDeletedByUser&&(G=ub5,b="OFFLINE_DOWNLOAD",I="ACTION_ADD");var h=Object.assign({},this.data);h.text=_.ao(G);h.tooltip=G;h.icon={iconType:b};h.size="SIZE_DEFAULT";h.style="STYLE_DEFAULT";_.g(h.command,_.qt)&&(_.g(h.command,_.qt).action=I);this.set("data",h)}};
_.m.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 b;G!==((b=this.data.icon)==null?void 0:b.iconType)&&(b=Object.assign({},this.data),b.text=_.ao(RiB),b.tooltip=RiB,b.icon={iconType:G},_.g(b.command,_.qt)&&(_.g(b.command,_.qt).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",b))}};
aF.prototype.updateProgress=aF.prototype.updateProgress;aF.prototype.onTransferStateChanged=aF.prototype.onTransferStateChanged;aF.prototype.showHideButton=aF.prototype.showHideButton;aF.prototype.dataChanged=aF.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],aF.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],aF.prototype,"forceIconButton",void 0);
_.R([_.H(),_.n("design:type",Object)],aF.prototype,"forceIconOnly",void 0);_.R([_.H(),_.n("design:type",Object)],aF.prototype,"overrides",void 0);_.R([_.H(),_.n("design:type",Object)],aF.prototype,"buttonTooltipPosition",void 0);_.R([_.H(),_.n("design:type",Object)],aF.prototype,"styleActionButton",void 0);_.R([_.H(),_.n("design:type",Object)],aF.prototype,"disableTextTransform",void 0);
_.R([_.H({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.n("design:type",String)],aF.prototype,"videoId",void 0);_.R([_.H({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.n("design:type",String)],aF.prototype,"playerStateEntityKey",void 0);_.R([_.H(),_.n("design:type",Object)],aF.prototype,"data",void 0);_.R([_.H({selector:zi,selectorArgs:["videoId"]}),_.n("design:type",Object)],aF.prototype,"downloadProgress",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],aF.prototype,"isDownloadComplete",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],aF.prototype,"isHidden",void 0);_.R([_.H({selector:_.Z0,selectorArgs:["videoId"]}),_.n("design:type",String)],aF.prototype,"transferState",void 0);_.R([_.H({selector:_.$Tq,selectorArgs:["videoId"]}),_.n("design:type",Object)],aF.prototype,"isVideoDeletedByUser",void 0);
_.R([_.H({selector:OPa,selectorArgs:["videoId"]}),_.n("design:type",Object)],aF.prototype,"offlineabilityState",void 0);_.R([_.H({selector:_.SA,selectorArgs:["playerStateEntityKey"]}),_.n("design:type",Object)],aF.prototype,"playerStateEntity",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],aF.prototype,"showTooltips",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],aF.prototype,"sendCommandWhenDisabled",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],aF.prototype,"disabled",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aF.prototype,"dataChanged",null);_.R([_.Dd("offlineabilityState","playerStateEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aF.prototype,"showHideButton",null);
_.R([_.Dd("transferState","isVideoDeletedByUser"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aF.prototype,"onTransferStateChanged",null);_.R([_.Dd("downloadProgress"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aF.prototype,"updateProgress",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],aF);
_.J(aF,"ytd-download-button-renderer",function(){if(KJn!==void 0)return KJn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return KJn=G},{mode:2});var wtA;var EHJ,ptb=function(){if(EHJ!==void 0)return EHJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return EHJ=G};var StW=_.U("web_button_rework")&&_.Sk("BUTTON_REWORK")||_.U("web_button_rework_with_live"),XtB=_.Te("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,NM=function(){var G=_.a.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$14696_browserSupportsAnimation=_.U("web_supports_animations_api");G.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};G.onTap=function(){var b;if((b=G.data)==null||!b.defaultNavigationEndpoint){var I;b=!((I=G.data)==null?0:I.isToggled);var h;if((h=G.data)==null||!h.preventAutoToggle){G.shouldAnimate=!1;G.disableTextUpdateJobId&&_.uu.cancelJob(G.disableTextUpdateJobId);G.disableTextUpdateJobId=_.uu.addLowPriorityJob(function(){G.disableTextUpdateJobId=void 0},XtB);
var q;G.set("data.isToggled",!((q=G.data)==null?0:q.isToggled));I=G.getInnertubeIcon();h={toggled:b,actions:{}};I&&(h.actions[I.toLowerCase()]=b);_.O3(G.hostElement,"yt-toggle-button",h)}}};
return G};
_.M(NM,_.a);_.m=NM.prototype;_.m.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.uu.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.m.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.m.toggle=function(G){var b;this.set("data.isToggled",G!==void 0?G:!((b=this.data)==null?0:b.isToggled))};
_.m.handleUpdateToggleButtonStateCommand=function(G){if(this.data){G=_.g(G,UsO);var b,I,h,q=(b=this.data)==null?void 0:(I=b.toggleButtonSupportedData)==null?void 0:(h=I.toggleButtonIdData)==null?void 0:h.id;q&&G&&q===(G==null?void 0:G.buttonId)&&this.set("data.isToggled",G.toggled)}};
_.m.handleUpdateToggleButtonTextAction=function(G){if(this.data){G=_.g(G,KrA);var b,I,h,q=(b=this.data)==null?void 0:(I=b.toggleButtonSupportedData)==null?void 0:(h=I.toggleButtonIdData)==null?void 0:h.id;q&&G&&q===(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)}};
_.m.getInnertubeIcon=function(){var G=this.data;if(G){var b,I,h=((b=G.defaultIcon)==null?0:b.iconType)?(I=G.defaultIcon)==null?void 0:I.iconType:null,q,l;b=((q=G.toggledIcon)==null?0:q.iconType)?(l=G.toggledIcon)==null?void 0:l.iconType:h;return G.isToggled?b:h}};
_.m.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.kV.Object.defineProperties(NM.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$14696_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var b=G.renderer;var I=G.element;var h=G.toggled;var q=G.onTapCallback;var l=G.commandClientArgs;var V=G.overrides;var D=G.forceIcon;var k=G.forceModernIconButton;var L=G.forceDisabled;var x=G.useAnimatedText;var f=G.animatedTextProps;G=HZO(b,h);D=!b.defaultIcon||!D&&b.defaultText?b.defaultIcon?"leading":void 0:k?"icon-only":"icon-only-40";D==="icon-only-40"&&(G.type="text");var T;k=Object;var B=k.assign,A;a:switch((A=
b.style)==null?void 0:A.styleType){case "STYLE_COMPACT_GRAY":A={size:"S"};break a;default:A={size:"M"}}var t=!!h;var y=(y=h&&b.toggledText||b.defaultText)?_.fG(y):void 0;x?(x=_.NO(h&&b.toggledText||b.defaultText))&&f&&!isNaN(Number(f.numberValue))?(f.numberText=x,h&&(f.numberValue+=1),x=f):x=void 0:x=void 0;var F,W,O,K;var u=(f=((W=h?b.toggledAccessibilityData||((u=b.toggledText)==null?void 0:u.accessibility):b.accessibilityData||((F=b.defaultText)==null?void 0:F.accessibility))==null?void 0:(O=W.accessibilityData)==
null?void 0:O.label)||((K=b.accessibility)==null?void 0:K.label))?f:_.NO(h&&b.toggledText||b.defaultText);L=L===void 0?b.isDisabled:L;I=Fd2(b,h,q,I,l);h=rD2(b,h);h!=null&&h.length?(h=_.AN({innertubeCommand:sPa(h),forceNewState:!0}),h=Mo(h)?h:void 0):h=void 0;b=B.call(k,{},G,A,{iconPosition:D},V,{focused:!1,toggled:t,toggleable:!0,formattedButtonText:y,animatedTextProps:x,accessibilityLabel:u,disabled:L,onTap:I,aTagConfig:h},Oxq((T=b.colorData)==null?void 0:T.basicColorPaletteData));b.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(b.type="filled");return b}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var G=this.getInnertubeIcon();if(G)return _.pn(G)}}});
NM.prototype.resetAnimation=NM.prototype.resetAnimation;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],NM.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],NM.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],NM.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],NM.prototype,"isPressed",void 0);_.R([_.H(),_.n("design:type",Object)],NM.prototype,"forceIconButton",void 0);_.R([_.H(),_.n("design:type",Object)],NM.prototype,"forceIconOnly",void 0);_.R([_.H(),_.n("design:type",Object)],NM.prototype,"forceModernIconButton",void 0);_.R([_.H(),_.n("design:type",Object)],NM.prototype,"alignByText",void 0);_.R([_.H(),_.n("design:type",Object)],NM.prototype,"overrides",void 0);
_.R([_.H(),_.n("design:type",Boolean)],NM.prototype,"disabled",void 0);_.R([_.H(),_.n("design:type",Object)],NM.prototype,"isShorts",void 0);_.R([_.H(),_.n("design:type",Object)],NM.prototype,"buttonTooltipPosition",void 0);_.R([_.H(),_.n("design:type",Object)],NM.prototype,"animatedText",void 0);_.R([_.H(),_.n("design:type",String)],NM.prototype,"textNumberValue",void 0);_.R([_.H({computed:"computeTooltip(data, data.isToggled)"}),_.n("design:type",Object)],NM.prototype,"tooltip",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NM.prototype,"resetAnimation",null);_.R([_.P("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.n("design:type",Object),_.n("design:paramtypes",[])],NM.prototype,"computedButtonShape",null);_.R([_.P("data.*"),_.n("design:type",Object),_.n("design:paramtypes",[])],NM.prototype,"computedIcon",null);
_.R([_.N({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],NM);StW&&_.J(NM,"ytd-toggle-button-renderer",ptb,{mode:_.nn("kevlar_poly_si_batch_j081")?1:2});var $me=_.C(function(G){function b(L){var x;return _.c(function(f){if(f.nextAddress==1)return(x=!aqa(L,D())||!D().enabled)?f.jumpTo(2):f.yield(Kda(),3);f.nextAddress!=2&&(x=f.yieldResult);if(x)return f.return();I();setTimeout(function(){V(!1)},1500);
_.ip(f)})}
function I(){setTimeout(function(){V(!0);var L;(L=h.lottieEl)==null||L.goToAndPlay(0)},150)}
var h=_.IZ(),q=_.e(_.ZZ(!1,void 0,"UfUosc")),l=q.next().value,V=q.next().value,D=_.a9(G.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.K3(function(){var L,x;((L=G.settings)==null?void 0:(x=L.call(G))==null?void 0:x.uniqueId)==="this is not intended behavior"&&_.RB(new _.Wf("Smartimation Settings is undefined"))});
_.K0(function(){D().experimentEnabled&&(D().enabled?Nwu(b):(V(!1),Y_X(b)),_.uI(function(){Y_X(b)}))},"IHhVmc");
_.K0(function(){D().timings.join("");D().experimentEnabled&&(CJd(D()),_.uI(function(){JDv(D())}))},"fsfhOe");
var k=_.P$(function(){var L=h,x=D().uniqueId+"-border",f,T;var B="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((T=(f=_.LL().resolve(_.vf(_.Pv)))==null?void 0:f())!=null&&T?"dark":"light")+"_v2.json";return{animationRef:L,animationConfig:{name:x,autoplay:!1,loop:!1,path:B}}},void 0,"UWvUGe");
q={};return _.v("yt-smartimation",{class:_.pG(G.className,"smartimation",(q["smartimation--experiment-enabled"]=function(){return D().experimentEnabled},q["smartimation--active-border"]=l,q["smartimation--enable-masking"]=uCp(),q))},_.v(_.Q,{cond:function(){return D().experimentEnabled},
then:function(){return _.v("div",{class:"smartimation__border"},_.v(_.zV,{className:"smartimation__border-gradient",data:k,animationName:function(){return k().animationConfig.name}}))}}),_.v("div",{class:"smartimation__content"},G.children))},"ha");
$me.idomCompat=!0;_.JN($me,"yt-smartimation",{props:{className:_.hV,settings:_.hV}});var YE=function(){var G=_.a.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};
_.M(YE,_.a);YE.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
YE.prototype.onDataChanged=function(){var G,b;this.shouldEnableSmartimation=(((G=this.data)==null?void 0:(b=G.timedAnimationData)==null?void 0:b.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
YE.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var G=_.g(this.data.likeButton,_.Ia),b=_.g(this.data.dislikeButton,_.Ia);return!!((G==null?0:G.isToggled)||(b==null?0:b.isToggled))};
YE.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]]"}}}}}};
_.kV.Object.defineProperties(YE.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var G,b,I=((G=this.data)==null?void 0:(b=G.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"like-dislike",timings:I,enabled:this.shouldEnableSmartimation,experimentEnabled:I.length>0}}}});
YE.prototype.onDataChanged=YE.prototype.onDataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],YE.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],YE.prototype,"likeButtonOverride",void 0);_.R([_.H(),_.n("design:type",Object)],YE.prototype,"dislikeButtonOverride",void 0);
_.R([_.P("shouldEnableSmartimation"),_.n("design:type",Object),_.n("design:paramtypes",[])],YE.prototype,"smartimationSettings",null);_.R([_.q5("data"),_.hI("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YE.prototype,"onDataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],YE);
_.J(YE,"ytd-segmented-like-dislike-button-renderer",function(){if(wtA!==void 0)return wtA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-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(_.E().content.cloneNode(!0),G.content.firstChild);return wtA=G},{mode:1});var GMQ;var bg8;(bg8=document.body)==null||bg8.setAttribute("rounded-container","");var It8={};It8.YtToggleButtonBehavior=[_.tV.YtActionHandlerBehavior,rs.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 b={toggled:this.data.isToggled,actions:{}};b.actions[this.buttonIcon]=this.data.isToggled;_.O3(this.hostElement,"yt-toggle-button",b)}b=this.data.defaultServiceEndpoint||null;var I=this.data.toggledServiceEndpoint||null;if(b&&I||b&&this.data.preventAutoToggle)G=G?I:b,b=this.disableCommandHandlerOverride,_.U("killswitch_toggle_button_behavior_resolve_command")||b?_.pv(this.hostElement,
[G]):_.$Q(G,this.hostElement),_.O3(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:G})}},
stateChanged_:function(){var G=this.data;if(G){var b=G.isToggled;this._setEndpoint(this.computeEndpoint_(G));this._setServiceEndpoint(this.computeServiceEndpoint_(G));this._setButtonIcon(this.computeButtonIcon_(G,b));this._setButtonText(this.computeButtonText_(G,b));this._setButtonAccessibility(this.computeAccessibility_(G,b));this._setButtonTooltip(this.computeTooltip_(G,b));this._setButtonClass(this.computeButtonClass_(G,b));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=b):this.elements_.button.setAttribute("aria-pressed",b));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=b)}},
shouldSetIconActiveState_:function(){return _.U("kevlar_system_icons")},
toggle:function(G){this.set("data.isToggled",G!==void 0?G:!this.data.isToggled);_.U("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(G){if(G){var b,I;return!!((b=this.data)==null?0:(I=b.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,b){var I=G&&G.defaultIcon?_.pn(G.defaultIcon.iconType):null;G=G&&G.toggledIcon?_.pn(G.toggledIcon.iconType):I;return b?G:I},
handleUpdateToggleButtonStateCommand_:function(G){G=G.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==G.buttonId&&this.toggle(G.toggled)},
computeButtonText_:function(G,b){return G?b&&G.toggledText||G.defaultText||null:null},
computeAccessibility_:function(G,b){return G?(b?this.get("toggledAccessibilityData.accessibilityData",G):this.get("accessibilityData.accessibilityData",G))||G.accessibility||null:null},
computeTooltip_:function(G,b){return G?b&&G.toggledTooltip||G.defaultTooltip||null:null},
computeButtonClass_:function(G,b){if(!G)return"";var I="",h=G.toggledStyle||G.style;if(b=b?h:G.style){b.styleType&&(b=b.styleType);try{I+=b.toLowerCase().replace(/_/g,"-")+" "}catch(q){_.n1(q,b,typeof b),_.RB(q)}}if(G=G.size){G.sizeType&&(G=G.sizeType);try{I+=G.toLowerCase().replace(/_/g,"-")+" "}catch(q){_.n1(q,G,typeof G),_.RB(q)}}return I.trim()},
computeIconPositionType_:function(G){return G&&G.iconPosition||null},
computeServiceEndpoint_:function(G){var b=G&&G.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b: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"))}}];_.QO("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var hy5=_.U("web_button_rework")&&_.Sk("BUTTON_REWORK")||_.U("web_button_rework_with_live"),C9=function(){var G=_.a.apply(this,arguments)||this;G.systemIcons=_.U("kevlar_system_icons");G.roundedContainer=!0;return G};
_.M(C9,_.a);C9.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
C9.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var G=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var b={toggled:!!this.data.isToggled,actions:{}};b.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var I,h;b.actions.playlistId=(I=this.data.defaultServiceEndpoint)==null?void 0:(h=I.playlistEditEndpoint)==null?void 0:h.playlistId;_.O3(this.hostElement,"yt-toggle-button",b)}(G=G?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(G)}};
C9.prototype.onYtNavigate=function(G){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);b&&(G.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))};
_.kV.Object.defineProperties(C9,{template:{configurable:!0,enumerable:!0,get:function(){if(GMQ===void 0){var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);GMQ=G}G=GMQ;return G}}});
C9.prototype.onYtNavigate=C9.prototype.onYtNavigate;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],C9.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],C9.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(It8.YtToggleButtonBehavior),_.n("design:type",Object)],C9.prototype,"ytToggleButtonBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],C9.prototype,"data",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],C9.prototype,"showTooltips",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],C9.prototype,"systemIcons",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],C9.prototype,"roundedContainer",void 0);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],C9.prototype,"onYtNavigate",null);
_.R([_.N({is:"ytd-toggle-button-renderer",disableElementRegistration:hy5})],C9);var qwQ,jp5;_.Jo=new _.q3("PANEL_CONTROLLER_TOKEN");_.K9=new _.q3("SHEET_CONTROLLER_TOKEN");_.u7=new _.q3("DIALOG_CONTROLLER_TOKEN");qwQ=new _.q3("DIALOG_CONTAINER_TOKEN");jp5=new _.q3("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.RF=new _.q3("PERSISTENT_PANEL_CONTROLLER_TOKEN");var $uO=_.qP("DOWNLOAD",{},"Download"),Gjr=_.qP("DOWNLOADING",{},"Downloading"),btp=_.qP("DOWNLOADED",{},"Downloaded"),I62=_.qP("RETRY",{},"Retry");var ltA=_.C(function(G){var b=muO,I=function(){return""},h=h$p(G.data),q=qV2(G.data),l=jyq(G.data),V=l6O(G.data);
b=function(){var D=G.data(),k=S_2(D,h(),q(),l(),V()),L=!!D.videoId,x=k.text;return{title:L?x:void 0,tooltip:L?void 0:x,accessibilityText:x,onTap:k.onTap,iconName:k.iconType,style:D.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:k.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:D.buttonSize}};
I={};I=_.pG("ytDownloadButtonViewModelHost",(I.ytDownloadButtonViewModelIsHidden=function(){var D=G.data(),k=V();return D.playlistId||k()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||k()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},I));
return _.v("download-button-view-model",{class:I},_.v(_.sQ,{data:b}))},"ia");
ltA.idomCompat=!0;var xur=new _.q3("SUBMIT_API_SERVICE_TOKEN");var v$O,LmB,f6O={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var Fmp=new _.q3("RENDERER_LOGGER_TOKEN");var PyO=new _.q3("RENDERER_STAMPER_OPTIONS_TOKEN");var B6O;_.eK=new Bce;B6O=new Map;var dus="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),rTu=["notificationTextRenderer","notificationMultiActionRenderer"],
yTa="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),its=UuO(function(G){return _.n0(G==null?void 0:G.targetId)}).useUpdatableData;var o$v=0;_.VX.debugName="EjJbCe";var mmB=_.C(function(G){var b=G.data;G=G.className;_.JC(function(){b().formId||_.K1(Error("Ch"))});
var I=_.kjB(function(){return b().formId},function(){return b().beforeSubmitCommand},function(){return b().afterSubmitCommand}),h=I.submitForm,q=I.isValid,l=I.isSubmitting,V=function(){return{state:b().isDisabled||!q()||l()?"disabled":"active"}};
return _.v("yt-submit-button-view-model",{class:_.pG("ytSubmitButtonViewModelHost",G)},_.v(_.VX,{data:function(){return b().button}},{buttonViewModel:function(D){return _.v(_.sQ,{data:D.data,
buttonOverrides:V,onClick:h})}}))},"la");var V_b=_.C(function(G){var b=G.backgroundLottieRef;var I=G.foregroundLottieRef;var h=G.children;var q=G.wrapperClass;var l=G.disableAnimation;G=function(){return(_.U("web_animated_actions")||_.U("web_animated_actions_v2"))&&!(l==null?0:l())};
return _.v("yt-animated-action",{class:_.pG("ytAnimatedActionHost",q)},_.v("div",{class:"ytAnimatedActionContentWithBackground"},_.v(_.Q,{cond:G,then:function(){return _.v(eyi,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:b==null?void 0:b(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(Htv()?"dark":"light")+"_v5.json"}}}})}}),h),_.v(_.Q,{cond:G,
then:function(){return _.v(eyi,{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_"+(Htv()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
V_b.idomCompat=!0;var eyi=_.C(function(G){var b=G.wrapperClass;var I=G.lottieClass;var h=G.lottiePlayerProps;return _.v("div",{class:_.pG("ytAnimatedActionLottie",b),"aria-hidden":"true"},_.v(_.zV,{className:I,data:h,animationName:function(){return h().animationConfig.name}}))},"na");var Wmp={isOpen:!1};var N6j={isAllowed:!1};var Cy2={errorMessage:"",title:"",privacy:"",isDisabled:!0};var Kmr={isOpen:!1};var R$O={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var Dmn={response:void 0};var Otr=function(G,b){G=G===void 0?Dmn:G;switch(b.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},G,{response:b.payload});default:return G}};var cgJ={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var wMp=function(G,b){G=G===void 0?cgJ:G;switch(b.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},G,{nextDisabled:b.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},G,{nextCommand:b.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},G,{footerSubmissionData:b.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},G,{isImpersonationValid:b.payload});default:return G}};var kMW={reportFormData:void 0,reportDetailsFormData:void 0};var E$B=function(G,b){G=G===void 0?kMW:G;switch(b.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},G,{reportFormData:b.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},G,{reportDetailsFormData:b.payload});default:return G}};var vDe=void 0;_.U("mweb_enable_redux_store_on_demand")||(vDe=new YS(pMs()));var n9=_.U("enable_web_delhi_icons");var LjB=_.C(function(G){G=_.N5(G,{themeOverride:void 0,animationRef:{}});var b=G.animatedIconType,I=G.active,h=G.themeOverride,q=G.animationRef;G=G.staticIconFn;var l=_.e(_.ZZ(void 0,void 0,"l48agc")),V=l.next().value,D=l.next().value,k=function(){a:{var y=b();var F=h==null?void 0:h();var W;F=(F==null?void 0:F.useDarkTheme)||((W=_.LL().resolve(_.vf(_.Pv)))==null?void 0:W());switch(y){case "LIKE":vDe||(vDe=new YS(pMs()));y=(y=g0O(vDe.getState()))&&y.animationLightUrl&&y.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:F?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:F?y.animationDarkUrl:y.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(y){F=y;break a}F="animated_like_icon_"+(F?"dark":"light")+"_"+(n9?"v5":"v4");F={lottiePlayerProps:{animationConfig:{name:F,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+F+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(n9?" animated-like-icon-delhi":"")}}},totalFrames:n9?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":F={lottiePlayerProps:{animationConfig:{name:F?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(F?"dark":"light")+(n9?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(n9?" animated-subscribe-icon-delhi":"")}}},totalFrames:n9?120:79,lazyLoad:!1};break a}F=
void 0}return F},L=function(){var y,F;
return(F=(y=k())==null?void 0:y.lottiePlayerProps.animationConfig.name)!=null?F:""},x=function(){if(k()){var y=k().lottiePlayerProps.animationConfig.path;
return ko.get(y)||V()}};
l=_.e(_.ZZ(!1,void 0,"sDrGId"));var f=l.next().value;l=l.next().value;var T=XMd(l),B=function(){var y=k(),F,W,O;return(O=y==null?void 0:(F=y.lottiePlayerProps.animationConfig)==null?void 0:(W=F.rendererSettings)==null?void 0:W.className)!=null?O:""},A=void 0,t=void 0;
_.K0(function(){var y=k(),F=L(),W=x(),O=f(),K=I();if(y&&(t!==F&&(t=F,A=K,F=q(),T.animationConfig=y.lottiePlayerProps.animationConfig,T.animationRef=F,W&&(T.animationConfig.animationData=W,T.animationConfig.path=void 0),F=y.lottiePlayerProps.animationConfig.path,!ko.get(F)&&y.lazyLoad&&F&&SVr(F,D)),!(O||y.lazyLoad&&!W))){if(W=!q().lottieEl)K?(O=y.totalFrames,T.animationConfig.initialSegment=[O-1,O]):T.animationConfig.initialSegment=void 0;if(A!==K&&!W)if(W=q(),K){var u;(u=W.lottieEl)==null||u.playSegments([0,
y.totalFrames],!0)}else{var w;(w=W.lottieEl)==null||w.playSegments([0,1],!0)}A=K}},"RQVZ1d");
return _.v("animated-icon",{class:"ytAnimatedIconHost"},_.v(_.Q,{cond:function(){var y,F;return!((y=k())==null||!y.lottiePlayerProps.animationConfig.path||((F=k())==null?0:F.lazyLoad)&&!x()||f())},
then:function(){return _.v(_.zV,{data:T,animationName:L,className:B,animationRef:q})},
else:G}))},"pa");_.OT=_.C(function(G){var b=_.ee("yt-subscribe-button-view-model"),I=_.ee("div"),h=_.ee("div"),q=_.IZ(),l=_.IZ(),V=_.IZ(),D=_.lA(I3X,function(){return G.data().stateEntityStoreKey}),k=_.lA(hiX,function(){var XO,kb;
return(kb=(XO=G.data().notificationStateEntityStoreKeys)==null?void 0:XO.subsNotificationStateKey)!=null?kb:""}),L=function(){return!G.data().enableSubscribeButtonPostClickAnimation},x=_.e(_.ZZ(0,void 0,"YtsSKb")),f=x.next().value,T=x.next().value;
x=_.e(_.ZZ(0,void 0,"V6JxRe"));var B=x.next().value,A=x.next().value;x=_.e(_.ZZ(!1,void 0,"JUCSZ"));var t=x.next().value,y=x.next().value;x=_.e(_.ZZ(!1,void 0,"oV6jwf"));var F=x.next().value,W=x.next().value;x=_.e(_.ZZ(!1,void 0,"hK1Whe"));var O=x.next().value,K=x.next().value,u;x=_.e(_.ZZ(!1,void 0,"Asaolf"));var w=x.next().value,$a=x.next().value,ev=function(){W(!0);_.vH(_.uu,function(){W(!1)},1500)};
_.K0(function(){var XO=F();_.MQ(function(){XO&&!L()&&D()&&xxu(q,l,V)})},"Qq6Hsf");
_.K0(function(){var XO=D();_.MQ(function(){if(!L()&&XO){var kb;((kb=G.animateWidth)==null?0:kb.call(G))&&Q2d(b.value,!!XO.subscribed,f(),B());var rz,on;((rz=u)==null?0:rz.subscribed)||!XO.subscribed||XO.key!==((on=u)==null?void 0:on.key)||ev();u=XO}})},"hog8te");
x=_.P$(function(){var XO,kb,rz,on=G.data(),Ac=!((XO=D())==null||!XO.subscribed);XO=!((kb=G.isOverlay)==null||!kb.call(G));kb=t()?b:void 0;var U1=(rz=k())==null?void 0:rz.state;rz=w();LJB(on,U1);return brB({model:on,subscribed:Ac,isOverlay:XO,element:kb,notificationState:U1,disableTextEllipsis:!0,focused:rz})},void 0,"hc1PRd");
var LO=function(){var XO;if(!L()&&((XO=G.animateWidth)==null?0:XO.call(G))&&(I==null?0:I.value)&&(h==null?0:h.value)&&!O()){XO=D();var kb=_.e((XO==null?0:XO.subscribed)?[I,h]:[h,I]),rz=kb.next().value;kb=kb.next().value;rz=Math.ceil(rz.value.getBoundingClientRect().width);kb=Math.ceil(kb.value.getBoundingClientRect().width);T(rz);A(kb);Q2d(b.value,!(XO==null||!XO.subscribed),rz,kb);K(!0)}},td=_.Xu(function(XO){LO();
var kb=D();kb&&(XO.detail.endpoint.subscribeEndpoint||XO.detail.endpoint.unsubscribeEndpoint)&&c0q(b.value,!kb.subscribed,kb)}),xa=function(){var XO=_.LL().resolve(_.vf(_.v6));
XO&&$a(XO.isKeyBoardInUse())},Uj=function(){$a(!1)};
_.mt("yt-player-subscribe",function(XO){var kb=D();kb&&XO===G.data().channelId&&c0q(b.value,!0,kb)});
_.mt("yt-player-unsubscribe",function(XO){var kb=D();kb&&XO===G.data().channelId&&c0q(b.value,!1,kb)});
_.mt("yt-update-subscribe-button-action",function(XO){XO=_.g(XO,hqJ);var kb=D();kb&&XO&&XO.channelId===G.data().channelId&&c0q(b.value,!!XO.subscribed,kb)});
_.K3(function(){b.value&&(b.value.addEventListener("focusin",xa),b.value.addEventListener("focusout",Uj));var XO=_.FQ(_.uu,function(){LO()});
y(!0);_.uI(function(){_.uu.cancelJob(XO);b.value&&(b.value.removeEventListener("focusin",xa),b.value.removeEventListener("focusout",Uj))})});
var W2=function(){var XO,kb,rz;if(rz=!((XO=D())==null||!XO.subscribed))XO=!!G.data().disableNotificationBell,rz=(kb=k())==null?void 0:kb.state,rz=!XO&&!!rz;return rz},is=function(){var XO;
return!((XO=D())==null?0:XO.subscribed)},su=function(){var XO,kb;
if(kb=is()){kb=!!G.data().disableNotificationBell;var rz=(XO=k())==null?void 0:XO.state;kb=!kb&&!!rz}return kb},an={},A5={};
return _.v("yt-subscribe-button-view-model",{class:_.pG(G.className,"ytSubscribeButtonViewModelHost",(an.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var XO,kb;return!((XO=D())==null||!XO.subscribed)&&((kb=G.animateWidth)==null?void 0:kb.call(G))&&F()},an.ytSubscribeButtonViewModelHostHidden=function(){var XO;
return!((XO=D())==null?0:XO.subscribed)&&G.data().hideWhenUnsubscribed},an)),
el:b,"on:yt-service-request-sent":td},_.v(V_b,{backgroundLottieRef:q,foregroundLottieRef:l,wrapperClass:_.pG("ytSubscribeButtonViewModelAnimatedActionWrapper",(A5.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var XO;return((XO=G.animateWidth)==null?void 0:XO.call(G))&&F()},A5.ytSubscribeButtonViewModelStaticWidth=function(){var XO;
return!((XO=G.animateWidth)==null?0:XO.call(G))},A5)),
disableAnimation:L},_.v("div",{el:I,class:"ytSubscribeButtonViewModelContainer"},_.v(_.TV,{data:x,icon:function(){return _.v(_.Q,{cond:W2,then:function(){var XO=function(){var kb;return Dxp((kb=k())==null?void 0:kb.state)};
return _.v(_.Q,{cond:function(){return L()||XO()!=="NOTIFICATIONS_NONE"},
then:function(){return _.v(_.ha,{icon:XO})},
else:function(){return _.v(LjB,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:V})}})}})},
secondaryIconName:function(){return W2()?"EXPAND":void 0}}))),_.v("div",{el:h,
class:"ytSubscribeButtonViewModelInvisible"},_.v(_.Q,{cond:function(){var XO;return((XO=G.animateWidth)==null?void 0:XO.call(G))&&!L()&&!O()},
then:function(){return _.v(_.TV,{data:_.P$(function(){var XO;return brB({model:G.data(),subscribed:is(),isOverlay:!((XO=G.isOverlay)==null||!XO.call(G)),element:b,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var XO;return su()?Dxp((XO=k())==null?void 0:XO.state):void 0},
secondaryIconName:function(){return su()?"EXPAND":void 0}})}})))},"sa");
_.OT.idomCompat=!0;var QpB=_.C(function(G){var b=G.data;var I=_.lA(I3X,function(){return b().subscriptionStateEntityKey});
return _.v(_.Q,{cond:function(){var h=b(),q=I();return!h.hideWhenUnsubscribed||(q==null?0:q.subscribed)?_.g(b().button,_.j6):void 0},
then:function(h){return _.v("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.v(_.sQ,{data:h,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
QpB.idomCompat=!0;var xmb,wF;xmb=_.C(function(G){return _.v(_.VX,{data:function(){return G.actionRow().actions}},{buttonViewModel:function(b){var I=b.data;
return _.v(wF,{isRow:G.isRow,isIconOnlyButton:function(){return f3j(I())},
useIntrinsicWidth:G.useIntrinsicWidth},_.v(_.sQ,{data:I}))},
subscribeButtonViewModel:function(b){return _.v(wF,{isRow:G.isRow},_.v(_.OT,{data:b.data,isOverlay:!1,animateWidth:function(){return!G.isRow()}}))},
downloadButtonViewModel:function(b){var I=b.data;return _.v(wF,{isRow:G.isRow,isIconOnlyButton:function(){return!!I().playlistId}},_.v(ltA,{data:I}))},
submitButtonViewModel:function(b){var I=b.data;return _.v(wF,{isRow:G.isRow,isIconOnlyButton:function(){var h=I();return f3j(_.g(h==null?void 0:h.button,_.j6))}},_.v(mmB,{data:I}))},
toggleButtonViewModel:function(b){var I=b.data;return _.v(wF,{isRow:G.isRow,isIconOnlyButton:function(){var h=I();return f3j(_.g(h.isToggled?h.toggledButtonViewModel:h.defaultButtonViewModel,_.j6))}},_.v(_.YK,{data:I}))},
subscribePlusButtonViewModel:function(b){return _.v(wF,{isRow:G.isRow},_.v(QpB,{data:b.data}))}})},"ua");
wF=_.C(function(G){var b={};return _.v("div",{class:_.pG("ytFlexibleActionsViewModelAction",(b.ytFlexibleActionsViewModelActionRowAction=G.isRow,b.ytFlexibleActionsViewModelActionIntrinsicWidth=G.useIntrinsicWidth,b.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,b.ytFlexibleActionsViewModelActionIconOnlyButton=G.isIconOnlyButton,b))},G.children)},"va");
_.ET=_.C(function(G){var b=function(){var h;return((h=G.layout)==null?void 0:h.call(G))===1},I={};
return _.v("yt-flexible-actions-view-model",{class:_.pG("ytFlexibleActionsViewModelHost",G.className,(I.ytFlexibleActionsViewModelInline=function(){return!b()},I.ytFlexibleActionsViewModelScrollable=function(){return G.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},I))},_.v(_.aj,{each:function(){return G.data().actionsRows||[]}},function(h){return _.v(_.Q,{cond:b,
then:function(){return _.v("div",{class:"ytFlexibleActionsViewModelActionRow"},_.v(xmb,{actionRow:h,isRow:b,useIntrinsicWidth:function(){return!!G.data().respectActionIntrinsicWidth}}))},
else:function(){return _.v(xmb,{actionRow:h,isRow:b})}})}))},"wa");_.JN(_.ET,"yt-flexible-actions-view-model",{props:{data:_.hV,layout:_.hV,justifyContentOverride:_.hV,className:_.hV}});_.p9=_.C(function(G){var b=_.lA(gR,function(){var q;return(q=G.data().dislikeEntityKey)!=null?q:""}),I=_.P$(function(){var q=b();
return q?q.likeStatus==="DISLIKE":_.g(G.data().toggleButtonViewModel,_.mS).isToggled},void 0,"fNr9he"),h=_.P$(function(){return Object.assign({},_.g(G.data().toggleButtonViewModel,_.mS),{isToggled:I()})},void 0,"AezoCc");
return _.v("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.v(_.YK,{data:h,buttonShapeOverrides:G.buttonShapeOverrideables,onToggle:function(q){var l=b();l&&q!==(l.likeStatus==="DISLIKE")&&l.key&&_.W5(_.BR("likeStatusEntity",l.key,{likeStatus:q?"DISLIKE":"INDIFFERENT",hadUserInteraction:q}))}}))},"xa");
_.p9.idomCompat=!0;_.SJ=_.C(function(G){var b=_.U("web_supports_animations_api"),I=aM(function(T){var B=L();if(!T){var A,t;return{numberText:(t=B==null?void 0:(A=B.likeCountIfIndifferent)==null?void 0:A.content)!=null?t:"",numberValue:Number(B==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var y;A=(B==null?void 0:(y=B.likeCountIfIndifferent)==null?void 0:y.content)!==T.numberText;if(D()||!A)return T;var F;return{numberText:(B==null?void 0:(F=B.likeCountIfIndifferent)==null?void 0:F.content)||
"",numberValue:Number(B==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!B}}),h=aM(function(T){var B=L();
if(!T){var A,t;return{numberText:(t=B==null?void 0:(A=B.likeCountIfLiked)==null?void 0:A.content)!=null?t:"",numberValue:Number(B==null?void 0:B.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var y;A=(B==null?void 0:(y=B.likeCountIfIndifferent)==null?void 0:y.content)!==T.numberText;if(D()||!A)return T;var F;return{numberText:(B==null?void 0:(F=B.likeCountIfLiked)==null?void 0:F.content)||"",numberValue:Number(B==null?void 0:B.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!B}}),q=_.e(_.ZZ(void 0,
void 0,"xYSlUe")),l=q.next().value,V=q.next().value,D=l,k=_.lA(gR,function(){var T,B;
return(B=(T=G.data())==null?void 0:T.likeStatusEntityKey)!=null?B:""}),L=_.lA(lBX,function(){var T,B;
return((T=G.likeCountEntity)==null?void 0:(B=T.call(G))==null?void 0:B.key)||""}),x=_.P$(function(){var T;
return((T=k())==null?void 0:T.likeStatus)==="LIKE"},void 0,"DG5Osd"),f=function(){var T;
return b&&!((T=G.likeCountEntity)==null||!T.call(G))};
return _.v("like-button-view-model",{class:_.pG("ytLikeButtonViewModelHost",G.className)},_.v(_.YK,{data:function(){var T=Object,B=T.assign,A;var t=_.g((A=G.data())==null?void 0:A.toggleButtonViewModel,_.mS);return B.call(T,{},t||{},{isToggled:x()})},
buttonShapeOverrides:G.buttonShapeOverrideables,animatedTextPropsDefault:function(){return f()?I():void 0},
animatedTextPropsToggled:function(){return f()?h():void 0},
onToggle:function(T){TAr(T,k(),D(),V)},
style:function(){var T;return((T=G.disableIconAnimation)==null?0:T.call(G))?void 0:{animateIcon:"true"}}}))},"ya");
_.SJ.idomCompat=!0;var ftX=_.C(function(G){var b=function(){return _.g(G.data().likeButtonViewModel,_.EU)},I=function(){var q;
return((q=b())==null?void 0:q.likeStatusEntityKey)||""},h=_.P$(function(){var q,l;
var V=(l=_.lA(gR,I)())!=null?l:(q=b())==null?void 0:q.likeStatusEntity;q=G.data();var D;q=(q==null?void 0:(D=q.timedAnimationData)==null?void 0:D.animationTiming)||[];return{uniqueId:"like-dislike",timings:q,enabled:(V==null?void 0:V.likeStatus)==="INDIFFERENT"&&q.length>0,experimentEnabled:q.length>0}},void 0,"zZ3GQb");
return _.v("segmented-like-dislike-button-view-model",{class:_.pG("ytSegmentedLikeDislikeButtonViewModelHost",G.className),"button-renderer":!0},_.v($me,{settings:h},_.v("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.v(_.Q,{cond:b,then:function(q){return _.v(_.SJ,{data:q,likeCountEntity:function(){return G.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.U("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.v(_.Q,{cond:function(){return _.g(G.data().dislikeButtonViewModel,_.w0)},
then:function(q){return _.v(_.p9,{data:q,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
ftX.idomCompat=!0;_.JN(ftX,"segmented-like-dislike-button-view-model",{props:{data:_.hV,className:_.hV}});var T_n=_.C(function(G){var b=G.data;var I=G.className;var h=G.setMinWidth;var q=G.forceIconOnly;var l=_.ee("account-link-button-view-model"),V=_.lA(_.BAv,function(){var T;return(T=b().accountLinkStatusEntityKey)!=null?T:""}),D=_.lA(_.BAv,function(){var T;
return(T=b().accountLinkStatusSecondaryEntityKey)!=null?T:""}),k=function(){if(!_.U("web_account_link_secondary_killswitch")){var T,B;
return((T=V())==null?void 0:T.linked)||((B=D())==null?void 0:B.linked)}var A;return(A=V())==null?void 0:A.linked};
_.K0(function(){var T=V();if(T){var B=djz(new PzO,oFX(new zXJ,!!T.linked));_.$U().then(function(A){A&&(A.setAccountLinkState(_.WL(B.JSC$12391_serializeBinary(),4)),A.updateAccountLinkingConfig(!!T.linked))})}},"IvZF7");
var L=function(){return _.g(b().toggleButtonViewModel,_.mS)};
_.mt("yt-signal-action-show-account-link-dialog",function(){if(L()){var T=k()?L().toggledButtonViewModel:L().defaultButtonViewModel;T=_.g(T,_.j6);var B;if((B=V())==null?0:B.isWarning){B=_.g(b().warningButtonViewModel,_.j6);if(!B){_.bB(Error("Dh"));return}T=B}var A;(B=_.s0((A=T)==null?void 0:A.onTap))&&_.Gm([B],l.value)}else _.bB(Error("Eh"))});
var x=function(){var T=L();return Object.assign({},T,{isToggled:k()})},f=function(){return(q==null?0:q())?{iconPosition:"icon-only"}:{}};
return _.v("account-link-button-view-model",{class:_.pG("ytwAccountLinkButtonViewModelHost",I,function(){return(h==null?0:h())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:l,"button-renderer":!0},_.v("div",null,_.v(_.Q,{cond:function(){var T;if((T=V())==null?0:T.isWarning)return(T=_.g(b().warningButtonViewModel,_.j6))||_.bB(Error("Dh")),T},
then:function(T){return _.v(_.sQ,{data:T,buttonOverrides:f})},
else:function(){return _.v(_.YK,{data:x,buttonShapeOverrides:f})}})))},"Ba");_.JN(T_n,"account-link-button-view-model",{props:{data:_.hV,className:_.No,setMinWidth:_.No,forceIconOnly:_.No}});_.QO("menuRenderer","menuRenderer","ytd-menu-renderer");
var B_n={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"}},
Umn=_.U("web_fix_missing_action_buttons")?100:200,X1=function(){var G=_.a.apply(this,arguments)||this;G.safeArea=!_.U("kevlar_flex_menu_safe_area_killswitch");G.tonalOverride=!1;G.threeDotSize="M";G.isOverlay=!1;G.useOverlayDark=!1;G.topLevelIconsOnly=!1;G.JSC$14829_lastWidth=0;G.maybeUpdateFlexibleMenu=function(){_.U("web_fix_missing_action_buttons")?requestAnimationFrame(G.maybeUpdateFlexibleMenuImpl):G.maybeUpdateFlexibleMenuImpl()};
G.maybeUpdateFlexibleMenuImpl=function(){var b;if((b=G.data)!=null&&b.flexibleItems){G.maybeFlushDebouncer();b=G.hostElement.clientWidth;var I=b>G.JSC$14829_lastWidth,h,q=((h=G.topLevelButtonsContainer)==null?void 0:h.scrollHeight)||0,l;h=((l=G.flexibleItemButtonsContainer)==null?void 0:l.scrollHeight)||0;l=G.hostElement.scrollHeight>Math.max(q,h)+8;I?(G.resetFlexibleItems(),G.JSC$14829_lastWidth=G.hostElement.clientWidth,G.maybeUpdateFlexibleMenu()):l&&(G.shrinkFlexibleMenu(),G.JSC$14829_lastWidth=
b)}};
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)_.LL().resolve(_.xW).resolveCommand(G.data.fetchMenuCommand,{form:{element:G.hostElement}});else if(G.data.isDisabled&&G.data.disabledCommand)_.$Q(G.data.disabledCommand,G.hostElement);else{var b=G.createMenuRendererVe(),I={items:G.items};G.data.menuPopupAccessibility&&(I.menuPopupAccessibility=G.data.menuPopupAccessibility);G.data.footer&&(I.footer=G.data.footer);b={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:I},veData:b}};
_.LL().resolve(_.K9).openSheet({openPopupActionCommand:b},G.hostElement)}};
return G};
_.M(X1,_.a);_.m=X1.prototype;_.m.updateButtonOverrides=function(){if(!_.U("menu_renderer_label_update_upkillswitch")){var G=_.Eo(this.hostElement).querySelector("yt-button-view-model");G&&(G.buttonOverrides=this.buttonOverrides)}};
_.m.computeHasItems=function(){var G;return((G=this.topLevelButtonData)==null?void 0:G.length)||this.hasFlexibleItems};
_.m.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.m.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.G8(this.hostElement,{"--ytd-menu-renderer-button-color":_.Uo(this.data.iconColor)}))};
_.m.onStamperFinished=function(){this.JSC$14829_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.m.setupFlexibleMenu=function(){var G=this,b;(b=this.data)!=null&&b.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.GB(this.maybeUpdateFlexibleMenu,Umn,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))};
_.m.maybeFlushDebouncer=function(){if(_.U("web_replace_formatted_with_attributed_string")){var G;(G=this.topLevelButtons)==null||G.forEach(function(I){var h;(I=(h=I.getElementsByTagName("yt-attributed-string"))==null?void 0:h[0])&&ZSq(I)});
var b;(b=this.flexibleItemButtons)==null||b.forEach(function(I){var h;(I=(h=I.getElementsByTagName("yt-attributed-string"))==null?void 0:h[0])&&ZSq(I)})}};
_.m.resetFlexibleItems=function(){var G;if((G=this.data)!=null&&G.flexibleItems){_.U("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var b;this.flexAsTopLevelButtons=(b=this.data.flexibleItems)==null?void 0:b.map(function(I){return _.g(I,_.Vt8).topLevelButton});
_.U("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.m.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.m.shrinkFlexibleMenu=function(){var G;(G=this.flexAsTopLevelButtons)!=null&&G.length&&(this.flexAsTopLevelButtons=[].concat(_.Nz(this.flexAsTopLevelButtons.slice(0,-1))))};
_.m.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:B_n,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:B_n,events:!0}}};
_.m.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.m.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.m.detached=function(){this.icon="MORE_VERT"};
_.m.computeTopLevelButtonData=function(G){if(!G)return[];var b;G=(b=G==null?void 0:G.topLevelButtons)!=null?b:[];return _.Cy.unsafeClone([].concat(_.Nz(G)))};
_.m.computeItems=function(G,b){if(!G)return[];var I=[];if(b){var h=(G.flexibleItems||[]).map(function(V){return _.g(V,_.Vt8)});
h=_.e(h);for(var q=h.next();!q.done;q=h.next())q=q.value,b.includes(q.topLevelButton)||(q=q.menuItem)&&I.push(q)}var l;G=(l=G==null?void 0:G.items)!=null?l:[];return[].concat(_.Nz(I),_.Nz(G))};
_.m.computeMenuActive=function(G,b){return G||b};
_.m.onPopupOpened=function(){this.overlayOpen=!0;_.O3(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.m.onPopupClosed=function(){this.overlayOpen=!1;_.O3(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.m.onPopupCanceled=function(){this.overlayOpen=!1;_.O3(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.m.computeAccessibilityLabel=function(G){return this.get("accessibility.accessibilityData.label",G)};
_.m.isHidden=function(G,b){return this.tonalOverride||!G?!0:G.fetchMenuCommand||G.isDisabled&&G.disabledCommand?!1:!(b==null?0:b.length)};
_.m.isModernOverflowHidden=function(G,b){return this.tonalOverride&&G?G.fetchMenuCommand?!1:!(b==null?0:b.length):!0};
_.m.createMenuRendererVe=function(){var G=this.data.trackingParams,b=_.gL(),I=_.s3();return G&&b&&I?(G=_.VB(G),I=_.Xs(7591),_.U("combine_ve_grafts")?_.iz(_.qo(),I,G):_.dK(b,G,I),I):null};
_.kV.Object.defineProperties(X1.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"}}}});
X1.prototype.onPopupCanceled=X1.prototype.onPopupCanceled;X1.prototype.onPopupClosed=X1.prototype.onPopupClosed;X1.prototype.onPopupOpened=X1.prototype.onPopupOpened;X1.prototype.tonalOverrideChanged=X1.prototype.tonalOverrideChanged;X1.prototype.resetFlexibleItems=X1.prototype.resetFlexibleItems;X1.prototype.setupFlexibleMenu=X1.prototype.setupFlexibleMenu;X1.prototype.iconButtonColorChanged=X1.prototype.iconButtonColorChanged;X1.prototype.updateButtonOverrides=X1.prototype.updateButtonOverrides;
_.R([_.z(_.kk),_.n("design:type",Object)],X1.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.lH("#button-shape"),_.n("design:type",HTMLElement)],X1.prototype,"buttonShape",void 0);_.R([_.lH("#button"),_.n("design:type",Object)],X1.prototype,"button",void 0);
_.R([_.H(),_.n("design:type",Object)],X1.prototype,"data",void 0);_.R([_.H({computed:"computeTopLevelButtonData(data)"}),_.n("design:type",Array)],X1.prototype,"topLevelButtonData",void 0);_.R([_.H(),_.n("design:type",Array)],X1.prototype,"flexAsTopLevelButtons",void 0);_.R([_.H({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.n("design:type",Array)],X1.prototype,"items",void 0);_.R([_.H({value:"MORE_VERT"}),_.n("design:type",String)],X1.prototype,"icon",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X1.prototype,"safeArea",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.n("design:type",Boolean)],X1.prototype,"menuActive",void 0);_.R([_.H(),_.n("design:type",Boolean)],X1.prototype,"menuFocused",void 0);_.R([_.H({value:"bottom"}),_.n("design:type",String)],X1.prototype,"buttonTooltipPosition",void 0);_.R([_.H(),_.n("design:type",Boolean)],X1.prototype,"overlayOpen",void 0);
_.R([_.H({value:!0}),_.n("design:type",Boolean)],X1.prototype,"forceIconButton",void 0);_.R([_.H(),_.n("design:type",Boolean)],X1.prototype,"styleActionButton",void 0);_.R([_.H(),_.n("design:type",Boolean)],X1.prototype,"disableTextTransformOnButtons",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X1.prototype,"tonalOverride",void 0);_.R([_.H(),_.n("design:type",Object)],X1.prototype,"threeDotSize",void 0);
_.R([_.H(),_.n("design:type",Object)],X1.prototype,"threeDotButtonOverride",void 0);_.R([_.H(),_.n("design:type",Object)],X1.prototype,"isOverlay",void 0);_.R([_.H(),_.n("design:type",Object)],X1.prototype,"useOverlayDark",void 0);_.R([_.H({computed:"computeButtonOverride(tonalOverride)"}),_.n("design:type",Object)],X1.prototype,"buttonOverride",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],X1.prototype,"hasCustomIconColor",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("flexAsTopLevelButtons"),_.n("design:type",Object),_.n("design:paramtypes",[])],X1.prototype,"hasFlexibleItems",null);_.R([_.H({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.n("design:type",Boolean)],X1.prototype,"hasItems",void 0);_.R([_.H(),_.n("design:type",Object)],X1.prototype,"topLevelIconsOnly",void 0);
_.R([_.q5("topLevelIconsOnly"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X1.prototype,"updateButtonOverrides",null);_.R([_.P("topLevelIconsOnly"),_.n("design:type",Object),_.n("design:paramtypes",[])],X1.prototype,"buttonOverrides",null);_.R([_.lH("#top-level-buttons-computed"),_.n("design:type",HTMLElement)],X1.prototype,"topLevelButtonsContainer",void 0);_.R([_.mN(".top-level-buttons > *"),_.n("design:type",Array)],X1.prototype,"topLevelButtons",void 0);
_.R([_.lH("#flexible-item-buttons"),_.n("design:type",HTMLElement)],X1.prototype,"flexibleItemButtonsContainer",void 0);_.R([_.mN("#flexible-item-buttons > *"),_.n("design:type",Array)],X1.prototype,"flexibleItemButtons",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X1.prototype,"iconButtonColorChanged",null);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X1.prototype,"setupFlexibleMenu",null);_.R([_.Dd("topLevelIconsOnly"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X1.prototype,"resetFlexibleItems",null);_.R([_.q5("tonalOverride"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X1.prototype,"tonalOverrideChanged",null);
_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X1.prototype,"onPopupOpened",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X1.prototype,"onPopupClosed",null);_.R([_.hI("yt-popup-canceled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X1.prototype,"onPopupCanceled",null);
_.J(X1,"ytd-menu-renderer",function(){if(NAb===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);NAb=G}G=NAb;return G},{mode:2});var spB;var gDn;_.$9=_.C(function(G){var b=G.data;var I=function(){if(b().icon)a:{var q={iconName:b().icon};for(var l=_.LL().resolve(_.SH),V=_.e([12,24]),D=V.next();!D.done;D=V.next()){var k=D.value;D=Object.assign({},q,{iconStyle:"youtube_fill",iconSize:k});k=Object.assign({},q,{iconStyle:"youtube_outline",iconSize:k});if(l.resolveIcon(D)){q=D;break a}if(l.resolveIcon(k)){q=k;break a}}q=void 0}else q=void 0;return q};
G={};var h={};return _.v("badge-shape",{class:_.pG("yt-badge-shape",function(){return Zrp(b().type)},(G["yt-badge-shape--overlay"]=function(){return b().isOverlay},G["yt-badge-shape--ads-include-dot"]=function(){return b().adsIncludeDot},G["yt-badge-shape--thumbnail-badge"]=function(){a:switch(b().type){case 17:case 18:case 19:var q=!0;
break a;default:q=!1}return q},G["yt-badge-shape--status-badge"]=function(){a:switch(b().type){case 12:case 13:case 14:case 15:case 16:var q=!0;
break a;default:q=!1}return q},G["yt-badge-shape--no-text"]=function(){return!b().text},G["yt-badge-shape--modern"]=function(){return b().modern||_.U("web_modern_badge_shape")},G)),
style:_.Ir({"background-color":function(){var q;return(q=b().customColors)==null?void 0:q.backgroundColor}}),
role:function(){return b().accessibilityText?"img":void 0},
"aria-label":function(){return b().accessibilityText}},_.v(_.Q,{cond:function(){return b().animation},
then:function(q){return _.v(_.zV,{className:"yt-badge-shape__icon",data:q,animationName:function(){return q().animationConfig.name||""}})}}),_.v(_.Q,{cond:function(){var q;
return I()&&!((q=b())==null?0:q.animation)},
then:function(){return _.v("div",{class:"yt-badge-shape__icon"},_.v(J6X,{data:function(){return I()}}))}}),_.v("div",{class:_.pG("yt-badge-shape__text",(h["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(b().numBadgesInRow||0)>1},h))},function(){var q;
return(q=b())==null?void 0:q.text}))},"Ca");
_.$9.idomCompat=!0;_.JN(_.$9,"badge-shape",{props:{data:_.hV}});var Gc=function(){var G=_.a.apply(this,arguments)||this;G.systemIcons=_.U("kevlar_system_icons");G.animated=_.U("animated_live_badge_icon");G.useBadgeShape=_.U("web_badge_shape_defrag");return G};
_.M(Gc,_.a);_.m=Gc.prototype;_.m.addTooltips=function(){for(var G=_.Eo(this.hostElement).querySelectorAll(".badge"),b=0,I;I=G[b++];){var h=this.repeatElement.itemForElement(I);I=_.Eo(I);I.lastChild&&I.lastChild.is==="tp-yt-paper-tooltip"&&I.removeChild(I.lastChild);if(h=h.metadataBadgeRenderer&&h.metadataBadgeRenderer.tooltip){var q=_.Vy("tp-yt-paper-tooltip");(0,_.$y)(q).textContent=h;q.setAttribute("position","top");q.setAttribute("aria-hidden","true");I.appendChild(q)}}};
_.m.badgesChanged=function(){var G=this;_.mq().parkOrScheduleJob(function(){G.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.m.standaloneRoundedBadgeChanged=function(){var G=this.useRoundedBadge?this.useRoundedBadge:void 0;G&&(this.useRoundedBadge=G)};
_.m.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.m.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.m.computeStyle=function(G){_.U("enable_html5_teal_ad_badge")&&G==="BADGE_STYLE_TYPE_AD"&&(G="badge-style-type-ad-alternate");_.U("kevlar_ytb_live_badges")&&G==="BADGE_STYLE_TYPE_LIVE_NOW"&&(G="badge-style-type-live-now-alternate");return G?G.toLowerCase().replace(/_/g,"-"):""};
_.m.computeRole=function(G){return this.computeAriaLabel(G)?"img":"status"};
_.m.computeAriaLabel=function(G){var b;return(G==null?void 0:(b=G.accessibilityData)==null?void 0:b.label)||(G==null?void 0:G.label)};
_.m.computeBadgeShape=function(G){if(G){var b,I;var h=A0u(G.style);var q=M5r(G.style),l=G.label,V=((b=G.accessibilityData)==null?void 0:b.label)||G.label;a:switch(G.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":b=!0;break a;default:b=!1}var D=(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}h={type:h,brNzRatingBadgeType:q,text:l,accessibilityText:V,
isOverlay:b,icon:D!=="PREMIUM"?D:void 0,modern:_.U("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:G}}else h={};return h};
_.m.updateComputedBadges=function(G,b,I){var h=this;(b=b?[b]:I?[I]:void 0)?this.computedBadges=b:this.computedBadges=G==null?void 0:G.filter(function(q){var l;if((l=q.metadataBadgeRenderer)==null?0:l.groups){l=!1;q=_.e(q.metadataBadgeRenderer.groups);for(var V=q.next();!V.done;V=q.next()){V=V.value;var D=void 0;l=l||((D=h.hiddenBadgeGroups)==null?void 0:D.includes(V))}return!l}return!0})};
_.m.useFilledIcons=function(G){return _.U("kevlar_system_icons")&&(G==="AUDIO_BADGE"||G==="CHECK_CIRCLE_THICK"||G==="OFFICIAL_ARTIST_BADGE"||G==="SPONSORSHIP_STAR"||G==="PERSON_RADAR_FILLED"||G==="PERSON_RADAR")};
_.m.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":"":""};
_.m.computeIcon=function(G){var b,I;G=G==null?void 0:(b=G.metadataBadgeRenderer)==null?void 0:(I=b.icon)==null?void 0:I.iconType;if(G!=="PREMIUM"&&G)return _.pn(G)};
_.m.computeStandaloneBadge=function(G){var b;G=G==null?void 0:(b=G.icon)==null?void 0:b.iconType;return G==="PREMIUM_STANDALONE"||G==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Gc.prototype.hiddenBadgeGroupsChanged=Gc.prototype.hiddenBadgeGroupsChanged;Gc.prototype.standaloneBadgeChanged=Gc.prototype.standaloneBadgeChanged;Gc.prototype.standaloneRoundedBadgeChanged=Gc.prototype.standaloneRoundedBadgeChanged;Gc.prototype.badgesChanged=Gc.prototype.badgesChanged;_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gc.prototype,"hidden",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Gc.prototype,"componentBehavior",void 0);
_.R([_.H(),_.n("design:type",Array)],Gc.prototype,"badges",void 0);_.R([_.H(),_.n("design:type",Object)],Gc.prototype,"topStandaloneBadge",void 0);_.R([_.H(),_.n("design:type",Object)],Gc.prototype,"bottomStandaloneBadge",void 0);_.R([_.H(),_.n("design:type",Object)],Gc.prototype,"computedBadges",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gc.prototype,"mediumFontAdBadge",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gc.prototype,"useRoundedBadge",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gc.prototype,"largeFontAdBadge",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gc.prototype,"overlayAd",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gc.prototype,"overlayPremium",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gc.prototype,"noDotAdBadge",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gc.prototype,"collectionTruncate",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gc.prototype,"isThumbnailBadge",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gc.prototype,"wrapBadges",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Number)],Gc.prototype,"numBadgesInRow",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Gc.prototype,"systemIcons",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Gc.prototype,"animated",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Gc.prototype,"useBadgeShape",void 0);_.R([_.H({value:[]}),_.n("design:type",Array)],Gc.prototype,"hiddenBadgeGroups",void 0);_.R([_.lH("#repeat"),_.n("design:type",T8)],Gc.prototype,"repeatElement",void 0);_.R([_.Dd("badges"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gc.prototype,"badgesChanged",null);
_.R([_.Dd("useRoundedBadge"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gc.prototype,"standaloneRoundedBadgeChanged",null);_.R([_.Dd("topStandaloneBadge","bottomStandaloneBadge"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gc.prototype,"standaloneBadgeChanged",null);_.R([_.Dd("hiddenBadgeGroups"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gc.prototype,"hiddenBadgeGroupsChanged",null);
_.R([_.N({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Gc);
var Agn=_.R9()(Gc,"ytd-badge-supported-renderer",function(){if(gDn===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);gDn=G}G=gDn;return G},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.nn("kevlar_poly_si_batch_j053")?1:2});var bo=function(){var G=_.a.apply(this,arguments)||this;G.iconType="STAR";G.standardizeIconSize=_.U("kevlar_system_icons");G.mediaHoverOverlayInitialVisibility=_.U("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};
_.M(bo,_.a);_.m=bo.prototype;_.m.created=function(){this.activeView=new BF(this.hostElement)};
_.m.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"}}}};
_.m.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",bo.JSC$14841_DEFAULT_CLICK_LOCATION_BEHAVIOR,bo.JSC$14841_CLICK_LOCATION_ID_MAP))};
_.m.onTap=function(G){this.onTapOrClick(G)};
_.m.onTapOrClick=function(G){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,G,!1)};
_.m.updateMediaBackgroundImage=function(){var G=this.get("data.image.thumbnail.thumbnails");G&&(G=_.KG(G,0))&&_.G8(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+G+")"})};
_.m.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 b=this.data.impressionEndpoints[G];b.clickTrackingParams&&delete b.clickTrackingParams;_.LL().resolve(_.xW).resolveCommand(b,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var I;((I=this.data)==null?0:I.activeView)&&UT(this.activeView,this.data.activeView)}};
_.m.handleMuteAd=function(){};
_.m.attached=function(){var G=this;_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sT(G.activeView)})};
_.m.detached=function(){_.U("stop_av_measurement_on_detach")&&sT(this.activeView)};
_.kV.Object.defineProperties(bo.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.titleText)return"";var b;return _.qP("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((b=this.data)==null?void 0:b.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"}}});
bo.prototype.onTap=bo.prototype.onTap;bo.prototype.dataChanged=bo.prototype.dataChanged;
bo.JSC$14841_CLICK_LOCATION_ID_MAP=_.U("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"]]);
bo.JSC$14841_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.U("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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],bo.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.p5),_.n("design:type",Object)],bo.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],bo.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.vF.YtSparklesClickLocationBehavior),_.n("design:type",Object)],bo.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.z([_.tV.YtActionHandlerBehavior]),_.n("design:type",Object)],bo.prototype,"actionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],bo.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],bo.prototype,"clickCommand",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],bo.prototype,"miniMode",void 0);_.R([_.H(),_.n("design:type",String)],bo.prototype,"iconType",void 0);_.R([_.P("data.titleText"),_.n("design:type",String),_.n("design:paramtypes",[])],bo.prototype,"titleAriaLabel",null);_.R([_.P("data.rating"),_.n("design:type",Object),_.n("design:paramtypes",[])],bo.prototype,"getRating",null);
_.R([_.P("data.price"),_.n("design:type",Object),_.n("design:paramtypes",[])],bo.prototype,"getPrice",null);_.R([_.P("data.thirdLine"),_.n("design:type",Object),_.n("design:paramtypes",[])],bo.prototype,"getThirdLine",null);_.R([_.P("data.fourthLine"),_.n("design:type",Object),_.n("design:paramtypes",[])],bo.prototype,"getFourthLine",null);_.R([_.P("data.fifthLine"),_.n("design:type",Object),_.n("design:paramtypes",[])],bo.prototype,"getFifthLine",null);
_.R([_.P("getRating"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bo.prototype,"computeRatingHidden",null);_.R([_.P("getPrice"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bo.prototype,"computePriceHidden",null);_.R([_.P("getThirdLine"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bo.prototype,"computeThirdLineHidden",null);_.R([_.P("getFourthLine"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bo.prototype,"computeFourthLineHidden",null);
_.R([_.P("getFifthLine"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bo.prototype,"computeFifthLineHidden",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.energyIcon"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bo.prototype,"hasEnergyIcon",null);_.R([_.P("computePriceHidden","computeRatingHidden"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bo.prototype,"computeSecondaryTextHidden",null);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bo.prototype,"standardizeIconSize",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bo.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bo.prototype,"noBottomMargin",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.layout"),_.n("design:type",String),_.n("design:paramtypes",[])],bo.prototype,"layout",null);
_.R([_.P("data.layout"),_.n("design:type",Object),_.n("design:paramtypes",[])],bo.prototype,"mediaThumbnailWidth",null);_.R([_.P("layout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bo.prototype,"useRoundedBadge",null);_.R([_.H(),_.n("design:type",String)],bo.prototype,"thumbnailObjectFit",void 0);_.R([_.H(),_.n("design:type",Object)],bo.prototype,"thumbnailFitHeight",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bo.prototype,"dataChanged",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],bo.prototype,"onTap",null);_.R([_.N({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],bo);
_.J(bo,"ytd-display-ad-renderer",function(){if(spB!==void 0)return spB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return spB=G},{mode:1});var M_u;var ZgW;var t_J;var t5r=new Map;var zye=!1;var Im=function(){var G=_.a.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};
_.M(Im,_.a);_.m=Im.prototype;_.m.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.m.attached=function(){var G=this;this.observer=new MutationObserver(function(b,I){G.handleResized();I.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.m.detached=function(){this.observer&&this.observer.disconnect()};
_.m.logTooltipEvent=function(){_.U("kevlar_wiz_tooltip_event_killswitch")||zye||(_.ziO("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),zye=!0)};
_.m.handleWindowResized=function(){this.handleResized()};
_.m.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")))};
_.m.onHeightChanged=function(){if(this.verified){var G=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.wy("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=G:this.textContainerEl.style.marginRight=G}};
_.m.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.wy("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.m.handleResized=function(){var G=this;this.verified&&_.uu.addLowPriorityJob(function(){G.fitBackgroundToText();var b=getComputedStyle(G.hostElement).lineHeight;b&&(b=b.match(/\d+/))&&b.length&&(G.lineHeight=Number(b[0]));G.height=G.lineHeight&&!G.wrapText?G.lineHeight:G.textEl.offsetHeight})};
_.m.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var G=document.createRange(),b=_.Eo(this.textEl).children;b.length>0?G.selectNodeContents(b[0]):G.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(G.getBoundingClientRect().width)+"px"}};
_.m.computeChannelBadgeStyle=function(G){var b;if((G==null?0:(b=G.runs)==null?0:b.length)&&G.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Uo(G.runs[0].textColor)+";"};
_.kV.Object.defineProperties(Im.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"?_.ao(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 _.NO(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Im.prototype.onLineHeightChanged=Im.prototype.onLineHeightChanged;Im.prototype.onHeightChanged=Im.prototype.onHeightChanged;Im.prototype.onChannelNameChanged=Im.prototype.onChannelNameChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Im.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Im.prototype,"badges",void 0);_.R([_.H(),_.n("design:type",Object)],Im.prototype,"channelName",void 0);
_.R([_.H(),_.n("design:type",Object)],Im.prototype,"noEndpoints",void 0);_.R([_.H(),_.n("design:type",Object)],Im.prototype,"wrapText",void 0);_.R([_.H(),_.n("design:type",Object)],Im.prototype,"forceVerified",void 0);_.R([_.H(),_.n("design:type",Object)],Im.prototype,"tooltipPosition",void 0);_.R([_.H(),_.n("design:type",String)],Im.prototype,"tooltip",void 0);_.R([_.H(),_.n("design:type",Boolean)],Im.prototype,"hasChannelArt",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Im.prototype,"compactStyle",void 0);_.R([_.lH("#text-container"),_.n("design:type",HTMLElement)],Im.prototype,"textContainerEl",void 0);_.R([_.lH("#text"),_.n("design:type",Object)],Im.prototype,"textEl",void 0);_.R([_.lH("#verified-tooltip"),_.n("design:type",HTMLElement)],Im.prototype,"verifiedTooltip",void 0);_.R([_.H(),_.n("design:type",Object)],Im.prototype,"height",void 0);
_.R([_.H(),_.n("design:type",Object)],Im.prototype,"lineHeight",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("badges","forceVerified"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Im.prototype,"verified",null);_.R([_.P("badges","verified"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Im.prototype,"hideBadges",null);_.R([_.P("channelName"),_.n("design:type",Object),_.n("design:paramtypes",[])],Im.prototype,"formattedName",null);
_.R([_.P("badges","verified","formattedName"),_.n("design:type",String),_.n("design:paramtypes",[])],Im.prototype,"tooltipText",null);_.R([_.P("hasChannelArt"),_.n("design:type",String),_.n("design:paramtypes",[])],Im.prototype,"tooltipOffset",null);_.R([_.q5("channelName"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Im.prototype,"onChannelNameChanged",null);
_.R([_.q5("height"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Im.prototype,"onHeightChanged",null);_.R([_.q5("lineHeight","height"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Im.prototype,"onLineHeightChanged",null);_.R([_.N({is:"ytd-channel-name",disableElementRegistration:!0})],Im);
_.J(Im,"ytd-channel-name",function(){if(t_J!==void 0)return t_J;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return t_J=G},{mode:_.nn("kevlar_poly_si_batch_j036")?1:2});var hX=function(){var G=_.a.apply(this,arguments)||this;G.standardizeIconSize=_.U("kevlar_system_icons");return G};
_.M(hX,_.a);hX.prototype.basicPaletteChanged=function(){var G;(G=this.data.color)!=null&&G.basicColorPaletteData&&_.vN(this.hostElement,this.data.color.basicColorPaletteData)};
hX.prototype.useFilledIcons=function(G){return _.U("kevlar_system_icons")&&(G==="CHECK_CIRCLE_THICK"||G==="OFFICIAL_ARTIST_BADGE")};
_.kV.Object.defineProperties(hX.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return this.data.authorCreator||((G=this.data)==null?void 0:(b=G.color)==null?void 0:(I=b.basicColorPaletteData)==null?void 0:I.backgroundColor)}}});
hX.prototype.basicPaletteChanged=hX.prototype.basicPaletteChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],hX.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],hX.prototype,"standardizeIconSize",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.authorUnifiedVerified"),_.n("design:type",Object),_.n("design:paramtypes",[])],hX.prototype,"verified",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],hX.prototype,"creator",null);_.R([_.q5("data.color.basicColorPaletteData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],hX.prototype,"basicPaletteChanged",null);_.R([_.N({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],hX);
_.J(hX,"ytd-author-comment-badge-renderer",function(){if(ZgW!==void 0)return ZgW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ZgW=G},{mode:1});var oDA;var qJ=function(){return _.a.apply(this,arguments)||this};
_.M(qJ,_.a);qJ.prototype.computeThumbnailWidth=function(G){if(G==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],qJ.prototype,"data",void 0);_.R([_.H({computed:"computeIcon_(data.icon)"}),_.n("design:type",String)],qJ.prototype,"icon",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],qJ.prototype,"surface",void 0);
_.R([_.H({reflectToAttribute:!0,value:_.U("enable_shrink_image_size_on_web_posts_singleton")}),_.n("design:type",Boolean)],qJ.prototype,"searchSxsUx",void 0);_.R([_.H({reflectToAttribute:!0,value:_.U("enable_community_page_on_desktop")}),_.n("design:type",Boolean)],qJ.prototype,"useSmallerPostImageAttachments",void 0);_.R([_.N({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],qJ);
_.J(qJ,"ytd-backstage-image-renderer",function(){if(oDA!==void 0)return oDA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return oDA=G},{mode:1});var igQ;var j$=function(){var G=_.a.apply(this,arguments)||this;G.isLoading=!1;G.selectedItemIndex=-1;return G};
_.M(j$,_.a);_.m=j$.prototype;_.m.computeIsChannelOwner=function(G){if(!G)return!0;G=G[0];return!(G&&(G.signinEndpoint||G.selectServiceEndpoint))};
_.m.computeIsImagePoll=function(G){return(G==null?void 0:G.type)==="POLL_TYPE_IMAGE"};
_.m.computeIsTotalVotesDisabled=function(G){return!(G==null?0:G.totalVotes)};
_.m.thumbnailSrc=function(G){var b,I,h,q;return(G==null?0:(b=G.thumbnails)==null?0:(I=b[0])==null?0:I.url)?_.KA((h=G.thumbnails)==null?void 0:(q=h[0])==null?void 0:q.url):void 0};
_.m.progressWidth=function(G){return"width:"+(G?G*100:0)+"%;"};
_.m.textAreaWidth=function(G){return this.isImagePoll?null:"width:"+(G?G*100:0)+"%;"};
_.m.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.m.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var G=this.data.choices,b=0;b<G.length;b++)if(G[b].selected){this.selectedItemIndex=b;break}};
_.m.onPopupClosed=function(G,b){G=Number(this.pollVotes.selected);b.confirmed&&(this.selectChoice(G,!1),_.wL(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.m.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.m.onYtCommentPollRevert=function(G,b){b&&(this.selectChoice(b.selectedChoiceIndex,!0),this.set("data.totalVotes",b.totalVotes))};
_.m.onYtServiceRequestSent=function(G,b){if(b.actions)for(G=0;G<b.actions.length;G++){var I=b.actions[G];_.g(I,HB)&&this.set("data.totalVotes",_.g(I,HB).totalVotes)}};
_.m.onYtServiceRequestCompleted=function(G){var b=this.get("detail.data.actionResults.0.feedback",G);G=this.get("detail.data.actionResults.0.status",G);if(b==="FEEDBACK_DESELECT"||b==="FEEDBACK_SELECT")this.isLoading=!1,G==="STATUS_FAILED"?_.O3(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.m.getEndpoint=function(G,b){return b===G?this.data.choices[b].deselectServiceEndpoint||null:this.data.choices[G].selectServiceEndpoint||null};
_.m.selectChoice=function(G,b){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var I=0;I<this.data.choices.length;I++){var h;if(G===this.selectedItemIndex){var q=!1;var l=h=null}else h=(q=I===G)?this.data.choices[I].voteRatioIfSelected:this.data.choices[I].voteRatioIfNotSelected,l=q?this.data.choices[I].votePercentageIfSelected:this.data.choices[I].votePercentageIfNotSelected;this.set("data.choices."+I+".voteRatio",h);
this.set("data.choices."+I+".votePercentage",l);this.set("data.choices."+I+".selected",q)}b||(this.isLoading=!0,(b=this.getEndpoint(G,this.selectedItemIndex))&&_.LL().resolve(_.xW).resolveCommand(b,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===G?-1:G};
_.kV.Object.defineProperties(j$.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
j$.prototype.onYtServiceRequestCompleted=j$.prototype.onYtServiceRequestCompleted;j$.prototype.onYtServiceRequestSent=j$.prototype.onYtServiceRequestSent;j$.prototype.onYtCommentPollRevert=j$.prototype.onYtCommentPollRevert;j$.prototype.onPopupClosed=j$.prototype.onPopupClosed;j$.prototype.dataChanged=j$.prototype.dataChanged;_.R([_.z(_.jI),_.n("design:type",Object)],j$.prototype,"paperItemBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],j$.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],j$.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],j$.prototype,"isLoading",void 0);_.R([_.H({computed:"computeIsChannelOwner(data.choices)"}),_.n("design:type",Boolean)],j$.prototype,"isChannelOwner",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.n("design:type",Boolean)],j$.prototype,"isImagePoll",void 0);_.R([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.n("design:type",Boolean)],j$.prototype,"isTotalVotesDisabled",void 0);_.R([_.H(),_.n("design:type",Object)],j$.prototype,"previousPollInfo",void 0);_.R([_.H(),_.n("design:type",Object)],j$.prototype,"selectedItemIndex",void 0);_.R([_.lH("#poll-votes"),_.n("design:type",Object)],j$.prototype,"pollVotes",void 0);
_.R([_.P("isChannelOwner"),_.n("design:type",Object),_.n("design:paramtypes",[])],j$.prototype,"endpointStyle",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],j$.prototype,"dataChanged",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],j$.prototype,"onPopupClosed",null);
_.R([_.hI("yt-comment-poll-revert"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],j$.prototype,"onYtCommentPollRevert",null);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],j$.prototype,"onYtServiceRequestSent",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],j$.prototype,"onYtServiceRequestCompleted",null);_.R([_.N({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],j$);
_.J(j$,"ytd-backstage-poll-renderer",function(){if(igQ!==void 0)return igQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return igQ=G},{mode:2});var PTn;var dmJ={autoplay:!1,loop:!1},ygu={simpleText:""},lo=function(){var G=_.a.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"},dmJ,{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"},dmJ,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});G.correctnessAnimationProps=[];G.correctnessAnimationRefs=[];return G};
_.M(lo,_.a);_.m=lo.prototype;_.m.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.m.computeIsChannelOwner=function(G){if(!G)return!0;G=G[0];return!(G&&(G.signinEndpoint||G.selectServiceEndpoint))};
_.m.computeIsTotalVotesDisabled=function(G){return!(G==null?0:G.totalVotes)};
_.m.computeIsImageQuiz=function(G){return(G==null?void 0:G.type)==="POLL_TYPE_IMAGE"};
_.m.onExplanationChanged=function(){this.expander.reset()};
_.m.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var G=this.data.choices;if(G){this.maybeInitializeQuizLotties(G);for(var b=0;b<G.length;b++)if(G[b].isSelected||this.isChannelOwner&&G[b].isCorrect){this.selectedItemIndex=b;return}this.selectedItemIndex=-1}}};
_.m.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var G=this.selectedItemIndex,b=Number(this.quizVotes.selected);this.selectChoice(b);this.sendVoteAction(b,G);this.quizVotes.selected=-1;var I;G=!((I=this.data)==null?0:I.enableAnimation);this.maybePlayAnswerAnimations(G)}};
_.m.onYtCommentPollRevert=function(G,b){b&&(this.selectChoice(b.selectedChoiceIndex),this.set("data.totalVotes",b.totalVotes))};
_.m.onYtServiceRequestSent=function(G,b){if(b.actions)for(G=_.e(b.actions),b=G.next();!b.done;b=G.next())(b=_.g(b.value,HB))&&this.set("data.totalVotes",b.totalVotes)};
_.m.onYtServiceRequestCompleted=function(G){var b=this.get("detail.data.actionResults.0.feedback",G);G=this.get("detail.data.actionResults.0.status",G);if(b==="FEEDBACK_DESELECT"||b==="FEEDBACK_SELECT")this.isLoading=!1,G==="STATUS_FAILED"?_.O3(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.m.getAnimationPropsForChoiceIndex=function(G,b){return b[G]};
_.m.maybePlayAnswerAnimations=function(G){G=G===void 0?!1:G;var b;if((b=this.data)!=null&&b.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){b=_.e(this.correctnessAnimationRefs);for(var I=b.next();!I.done;I=b.next()){var h=void 0,q=void 0;(h=I.value)==null||(q=h.lottieEl)==null||q.stop()}if(!(this.selectedItemIndex<0)){b=0;G&&(b=this.isCorrect?37:25);var l,V;(l=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(V=l.lottieEl)==null||V.goToAndPlay(G?b:0,!0);if(!(this.isCorrect||
(l=this.data.choices.findIndex(function(x){return x.isCorrect}),l<0))){var D,k;
(k=(D=this.correctnessAnimationRefs[l])==null?void 0:D.lottieEl)==null||k.goToAndPlay(37,!0);var L;D=(L=this.fadeContainers)==null?void 0:L.item(l);!G&&D&&this.fadeIn(D)}}}};
_.m.thumbnailSrc=function(G){var b,I,h,q;return(G==null?0:(b=G.thumbnails)==null?0:(I=b[0])==null?0:I.url)?_.KA((h=G.thumbnails)==null?void 0:(q=h[0])==null?void 0:q.url):void 0};
_.m.a11yVotedText=function(G,b){var I,h,q=((I=this.data)==null?void 0:(h=I.correctVotedText)==null?void 0:h.simpleText)||"",l,V;I=((l=this.data)==null?void 0:(V=l.votedText)==null?void 0:V.simpleText)||"";if(!b)return"";var D,k;if((D=this.data)==null?0:(k=D.choices)==null?0:k[G].isCorrect)return q;var L,x;return((L=this.data)==null?0:(x=L.choices)==null?0:x[G].isSelected)?I:""};
_.m.getEndpoint=function(G,b){return b===G?this.data.choices[G].deselectServiceEndpoint||null:this.data.choices[G].selectServiceEndpoint||null};
_.m.sendVoteAction=function(G,b){if(G=this.getEndpoint(G,b))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(G)};
_.m.selectChoice=function(G){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var b=0;b<this.data.choices.length;b++)this.set("data.choices."+b+".isSelected",G===this.selectedItemIndex?!1:b===G);this.selectedItemIndex=this.selectedItemIndex===G?-1:G};
_.m.maybeInitializeQuizLotties=function(G){var b=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?b.baseCorrectLottiePlayerAnimationConfig:b.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){b.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(I){return I.animationRef||{}})};
_.m.fadeIn=function(G){G.classList.add("fade-in");_.O0(_.uu,function(){G.classList.remove("fade-in")},900)};
_.kV.Object.defineProperties(lo.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.NO(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,b;return((G=this.data)==null?void 0:(b=G.choices)==null?void 0:b.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?ygu:this.data.choices[this.selectedItemIndex].explanation||ygu}},
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}}});
lo.prototype.onYtServiceRequestCompleted=lo.prototype.onYtServiceRequestCompleted;lo.prototype.onYtServiceRequestSent=lo.prototype.onYtServiceRequestSent;lo.prototype.onYtCommentPollRevert=lo.prototype.onYtCommentPollRevert;lo.prototype.dataChanged=lo.prototype.dataChanged;lo.prototype.onExplanationChanged=lo.prototype.onExplanationChanged;_.R([_.z(_.jI),_.n("design:type",Object)],lo.prototype,"paperItemBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],lo.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.ed.YtTaskEmitterBehavior),_.n("design:type",Object)],lo.prototype,"ytTaskEmitterBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],lo.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lo.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],lo.prototype,"isLoading",void 0);_.R([_.H(),_.n("design:type",Object)],lo.prototype,"usesPanelLockup",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.n("design:type",Boolean)],lo.prototype,"isChannelOwner",void 0);_.R([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.n("design:type",Boolean)],lo.prototype,"isTotalVotesDisabled",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.n("design:type",Boolean)],lo.prototype,"isImageQuiz",void 0);_.R([_.H(),_.n("design:type",Object)],lo.prototype,"previousQuizInfo",void 0);_.R([_.H(),_.n("design:type",Object)],lo.prototype,"selectedItemIndex",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data","usesPanelLockup"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],lo.prototype,"shouldUseModernUi",null);
_.R([_.mN(".fade-container"),_.n("design:type",Object)],lo.prototype,"fadeContainers",void 0);_.R([_.H(),_.n("design:type",Array)],lo.prototype,"correctnessAnimationProps",void 0);_.R([_.P("explanation","showCorrectAnswer"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],lo.prototype,"showExplanation",null);_.R([_.P("isChannelOwner","isAttempted"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],lo.prototype,"showCorrectAnswer",null);
_.R([_.P("isChannelOwner","isAttempted","data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],lo.prototype,"isQuizAnsweringDisabled",null);_.R([_.P("isQuizAnsweringDisabled"),_.n("design:type",Object),_.n("design:paramtypes",[])],lo.prototype,"endpointStyle",null);_.R([_.P("data","selectedItemIndex"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],lo.prototype,"isAttempted",null);
_.R([_.P("data","selectedItemIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],lo.prototype,"explanation",null);_.R([_.P("data","selectedItemIndex"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],lo.prototype,"isCorrect",null);_.R([_.lH("ytd-expander"),_.n("design:type",Object)],lo.prototype,"expander",void 0);_.R([_.lH("#quiz-votes"),_.n("design:type",Object)],lo.prototype,"quizVotes",void 0);
_.R([_.q5("explanation"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lo.prototype,"onExplanationChanged",null);_.R([_.q5("data","isChannelOwner"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lo.prototype,"dataChanged",null);_.R([_.hI("yt-comment-quiz-revert"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],lo.prototype,"onYtCommentPollRevert",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],lo.prototype,"onYtServiceRequestSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],lo.prototype,"onYtServiceRequestCompleted",null);_.R([_.N({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],lo);
_.J(lo,"ytd-backstage-quiz-renderer",function(){if(PTn!==void 0)return PTn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-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(_.E().content.cloneNode(!0),G.content.firstChild);return PTn=G},{mode:1});var rgB;var mr=function(){return _.a.apply(this,arguments)||this};
_.M(mr,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],mr.prototype,"data",void 0);_.R([_.N({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],mr);
_.J(mr,"ytd-post-uploaded-video-renderer",function(){if(rgB!==void 0)return rgB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rgB=G},{mode:1});var Fji;var e$=function(){return _.a.apply(this,arguments)||this};
_.M(e$,_.a);e$.prototype.useFilledIcons=function(G){return G==="SPONSORSHIP_STAR"};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],e$.prototype,"data",void 0);_.R([_.N({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],e$);
var HgX=_.R9()(e$,"ytd-sponsors-only-badge-renderer",function(){if(Fji===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);Fji=G}G=Fji;return G},{allowedProps:["data"],
mode:1});var WjX;var VV=function(){return _.a.apply(this,arguments)||this};
_.M(VV,_.a);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],VV.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],VV.prototype,"data",void 0);_.R([_.N({is:"ytd-child-video-renderer",disableElementRegistration:!0})],VV);
_.J(VV,"ytd-child-video-renderer",function(){if(WjX!==void 0)return WjX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return WjX=G},{mode:1});var atQ;var N_J;var Ds=function(){var G=_.a.apply(this,arguments)||this;G.size=0;G.fallbackImageSize={height:void 0,width:9999};G.webModernCollections=!1;return G};
_.M(Ds,_.a);_.m=Ds.prototype;_.m.computeBlurredImageSize=function(G){return G?{height:G*2,width:G*2}:this.fallbackImageSize};
_.m.computeImageSize=function(G){return G?{height:G,width:G}:this.fallbackImageSize};
_.m.computeObjectFit=function(G){return G?"FILL":"CONTAIN"};
_.m.computePreserve=function(G){return G?!0:!1};
_.m.setBackground=function(){var G,b;if((G=this.data)==null?0:(b=G.thumbnail)==null?0:b.sampledThumbnailColor)G=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+G.red+","+G.green+","+G.blue+",1)"};
Ds.prototype.setBackground=Ds.prototype.setBackground;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Ds.prototype,"watchFeedThumbnail",void 0);_.R([_.H(),_.n("design:type",Object)],Ds.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Ds.prototype,"size",void 0);
_.R([_.H({computed:"computeBlurredImageSize(size)"}),_.n("design:type",Object)],Ds.prototype,"blurredImageSize",void 0);_.R([_.H({computed:"computeImageSize(size)"}),_.n("design:type",Object)],Ds.prototype,"imageSize",void 0);_.R([_.H({computed:"computePreserve(size)"}),_.n("design:type",String)],Ds.prototype,"preserve",void 0);_.R([_.H({computed:"computeObjectFit(size)"}),_.n("design:type",String)],Ds.prototype,"objectFit",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ds.prototype,"webModernCollections",void 0);_.R([_.q5("data.thumbnail.sampledThumbnailColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ds.prototype,"setBackground",null);_.R([_.N({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Ds);
_.J(Ds,"ytd-playlist-custom-thumbnail-renderer",function(){if(N_J!==void 0)return N_J;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return N_J=G},{mode:1});var Yw8;var cc=function(){return _.a.apply(this,arguments)||this};
_.M(cc,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],cc.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Number)],cc.prototype,"width",void 0);_.R([_.N({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],cc);
_.J(cc,"ytd-playlist-video-thumbnail-renderer",function(){if(Yw8!==void 0)return Yw8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Yw8=G},{mode:1});var CTu;var k9=function(){return _.a.apply(this,arguments)||this};
_.M(k9,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],k9.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Number)],k9.prototype,"width",void 0);_.R([_.N({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],k9);
_.J(k9,"ytd-show-custom-thumbnail-renderer",function(){if(CTu!==void 0)return CTu;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return CTu=G},{mode:1});var Jgu;var vc=function(){return _.a.apply(this,arguments)||this};
_.M(vc,_.a);vc.prototype.useFilledIcons=function(G){return G==="MUSIC"||G==="COURSE"};
vc.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=gq(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)"}};
_.kV.Object.defineProperties(vc.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)}}});
vc.prototype.overlayColorChanged=vc.prototype.overlayColorChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],vc.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],vc.prototype,"overlayColor",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.icon","data.text"),_.n("design:type",Object),_.n("design:paramtypes",[])],vc.prototype,"overlayStyle",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data.icon","data.text"),_.n("design:type",Object),_.n("design:paramtypes",[])],vc.prototype,"overlayTextStyle",null);_.R([_.q5("overlayColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vc.prototype,"overlayColorChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],vc);
_.J(vc,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Jgu!==void 0)return Jgu;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Jgu=G},{mode:1});var Kj8;var Lq=function(){var G=_.a.apply(this,arguments)||this;G.active=!1;return G};
_.M(Lq,_.a);Lq.prototype.computeIsSpinnerHidden=function(G){return(G==null?void 0:G.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Lq.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Lq.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Lq.prototype,"active",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Lq);
_.J(Lq,"ytd-thumbnail-overlay-downloading-renderer",function(){if(Kj8!==void 0)return Kj8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Kj8=G},{mode:1});var uhJ;var QV=function(){return _.a.apply(this,arguments)||this};
_.M(QV,_.a);_.kV.Object.defineProperties(QV.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],QV.prototype,"data",void 0);_.R([_.P("data.text"),_.n("design:type",Object),_.n("design:paramtypes",[])],QV.prototype,"text",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],QV);
_.J(QV,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(uhJ!==void 0)return uhJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return uhJ=G},{mode:1});var Ry5,nDi=function(){if(Ry5!==void 0)return Ry5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Ry5=G};var x9=function(){return _.a.apply(this,arguments)||this};
_.M(x9,_.a);_.kV.Object.defineProperties(x9,{template:{configurable:!0,enumerable:!0,get:function(){return nDi()}}});
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],x9.prototype,"animateEqualizer",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],x9);_.R9()(x9,"ytd-thumbnail-overlay-equalizer",function(){return nDi()},{allowedProps:["animateEqualizer"],
mode:1});var Ogb;var fq=function(){var G=_.a.apply(this,arguments)||this;G.nowPlayingBadge=_.U("web_now_playing_badge");G.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return G};
_.M(fq,_.a);fq.prototype.activeChanged=function(){var G=this;_.U("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.D1(this,function(){_.O3(G.hostElement,"yt-playlist-lockup-now-playing-active",G)})};
fq.prototype.onMiniplayerPlayStateChanged=function(G){var b,I=(b=_.g(_.Ws().currentEndpoint,_.Wq))==null?void 0:b.videoId;this.isVideoPlaying=G&&(_.U("web_limit_now_playing_animation_killswitch")||this.videoId===I)};
fq.prototype.activeChanged=fq.prototype.activeChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],fq.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fq.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],fq.prototype,"isVideoPlaying",void 0);_.R([_.H(),_.n("design:type",String)],fq.prototype,"videoId",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],fq.prototype,"equalizerOnly",void 0);_.R([_.H(),_.n("design:type",Boolean)],fq.prototype,"isActive",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],fq.prototype,"nowPlayingBadge",void 0);_.R([_.q5("isActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fq.prototype,"activeChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],fq);
_.J(fq,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Ogb!==void 0)return Ogb;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Ogb=G},{mode:1});var wC5;var Tc=function(){return _.a.apply(this,arguments)||this};
_.M(Tc,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Tc.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Tc);
_.J(Tc,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(wC5!==void 0)return wC5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return wC5=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var EDi;var Bc=function(){return _.a.apply(this,arguments)||this};
_.M(Bc,_.a);Bc.prototype.onDurationChanged=function(){var G,b;_.Eo(this.hostElement).querySelector("#progress").style.width=((b=(G=this.data)==null?void 0:G.percentDurationWatched)!=null?b:0)+"%"};
Bc.prototype.onDurationChanged=Bc.prototype.onDurationChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Bc.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Bc.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Bc.prototype,"isLive",void 0);_.R([_.q5("data.percentDurationWatched"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bc.prototype,"onDurationChanged",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Bc);
_.J(Bc,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(EDi!==void 0)return EDi;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return EDi=G},{mode:1});var pCA;var Um=function(){var G=_.a.apply(this,arguments)||this;G.bottomPanel=!1;G.richGridOverlay=!1;G.watchFeedOverlay=!1;G.isCompact=!1;return G};
_.M(Um,_.a);Um.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.kV.Object.defineProperties(Um.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?void 0:(b=G.icon)==null?void 0:b.iconType)==="PLAY_ALL"&&_.U("kevlar_system_icons")}}});
Um.prototype.widthChanged=Um.prototype.widthChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Um.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Number)],Um.prototype,"width",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Um.prototype,"bottomPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Um.prototype,"richGridOverlay",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Um.prototype,"watchFeedOverlay",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Um.prototype,"isCompact",void 0);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Um.prototype,"isIconFilled",null);_.R([_.q5("width","watchFeedOverlay"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Um.prototype,"widthChanged",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Um);
_.J(Um,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(pCA!==void 0)return pCA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return pCA=G},{mode:1});var SwJ;var XCO=["CLIP","SHORTS"],sm=function(){var G=_.a.apply(this,arguments)||this;G.animated=_.U("animated_live_badge_icon");G.hasIcon=!1;G.updateTimerIntervalId=0;G.timeSinceLive=0;return G};
_.M(sm,_.a);_.m=sm.prototype;_.m.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.m.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.m.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.m.hasIconOrText=function(){var G,b;return!!(((G=this.data)==null?0:G.icon)||((b=this.data)==null?0:b.text))};
_.m.initializeLiveBadgeTimer=function(){var G=this,b,I=(b=this.liveBadgeData)==null?void 0:b.startTimestampSec;if(I&&this.canShowLiveBadgeTimer()){var h;b=Number((h=this.liveBadgeData)==null?void 0:h.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(I);this.updateTimerIntervalId=_.M1(function(){G.canShowLiveBadgeTimer()?G.timeSinceLive++:(G.timeSinceLive=0,window.clearInterval(G.updateTimerIntervalId))},b)}else this.timeSinceLive=0};
_.m.canShowLiveBadgeTimer=function(){var G=Date.now(),b,I;return G<(Number((b=this.liveBadgeData)==null?void 0:b.endTimestampSec)-1)*1E3&&G>Number((I=this.liveBadgeData)==null?void 0:I.startTimestampSec)*1E3};
_.kV.Object.defineProperties(sm.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.oH2(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 XCO.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
sm.prototype.initializeLiveBadgeTimer=sm.prototype.initializeLiveBadgeTimer;sm.prototype.dataChanged=sm.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],sm.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],sm.prototype,"data",void 0);_.R([_.H({computed:"computeIcon_(data.icon)"}),_.n("design:type",String)],sm.prototype,"icon",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],sm.prototype,"animated",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.n("design:type",Boolean)],sm.prototype,"hideTimeStatus",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],sm.prototype,"hasIcon",void 0);_.R([_.H(),_.n("design:type",Object)],sm.prototype,"timeSinceLive",void 0);_.R([_.P("data","timeSinceLive"),_.n("design:type",Object),_.n("design:paramtypes",[])],sm.prototype,"badgeShapeData",null);
_.R([_.P("data","overlayType"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],sm.prototype,"hideBadgeShape",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sm.prototype,"dataChanged",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.style"),_.n("design:type",Object),_.n("design:paramtypes",[])],sm.prototype,"overlayStyle",null);
_.R([_.P("data.liveBadgeData"),_.n("design:type",Object),_.n("design:paramtypes",[])],sm.prototype,"liveBadgeData",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.type"),_.n("design:type",Object),_.n("design:paramtypes",[])],sm.prototype,"overlayType",null);_.R([_.P("overlayType","overlayStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],sm.prototype,"useFilledIcon",null);
_.R([_.Dd("liveBadgeData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sm.prototype,"initializeLiveBadgeTimer",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],sm);
_.J(sm,"ytd-thumbnail-overlay-time-status-renderer",function(){if(SwJ!==void 0)return SwJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return SwJ=G},{mode:_.nn("kevlar_poly_si_batch_j035")?1:2});var $48;var g1=function(){return _.a.apply(this,arguments)||this};
_.M(g1,_.a);g1.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"}}}}};
g1.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(G){if(this.hasPlaybackProgressBar)return{percentDurationWatched:G.percentDurationWatched}};
g1.prototype.computeHasPlaybackProgressBar=function(G){return!!G.percentDurationWatched&&G.percentDurationWatched>0};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],g1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],g1.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.n("design:type",Boolean)],g1.prototype,"hasPlaybackProgressBar",void 0);
_.R([_.N({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],g1);
_.J(g1,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if($48!==void 0)return $48;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $48=G},{mode:1});var G0i;var bhe=_.C(function(G){var b=G.data;var I=G.children;var h=function(){return!!b().doubleStack},q=function(){return!!b().includeStackHeight};
return _.v("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!b().experimentEnabled}},_.v(_.Q,{cond:b,
then:function(){var l={};return _.v(_.xz,null,_.v(_.Q,{cond:q,then:function(){var V={};return _.v("div",{class:_.pG("ytCollectionsStackSpacer",(V.ytCollectionsStackSpacerDoubleStack=h,V))})}}),_.v("div",{class:_.pG((l.ytCollectionsStackRelativeStack=q,l))},_.v(_.Q,{cond:h,
then:function(){var V={};return _.v("div",{class:_.pG("ytCollectionsStackCollectionStack2",function(){return b().customClassName2ndStack},(V.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return b().enableResponsiveMode},V)),
style:_.Ir({"background-color":function(){return Pfa(b())}})})}}),_.v("div",{class:_.pG("ytCollectionsStackCollectionStack1",function(){return b().customClassName1stStack},function(){return irv(b().thumbnailSize?b().thumbnailSize:"medium")}),
style:_.Ir({"background-color":function(){return Pfa(b())}})}),I))}}))},"Da");_.JN(bhe,"yt-collections-stack",{props:{data:_.hV}});var AX=function(){var G=_.a.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};
_.M(AX,_.a);_.m=AX.prototype;
_.m.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]]"}}}}}};
_.m.getThumbnailDetails=function(G){if(G!=null&&G.thumbnailRenderer){var b=G.thumbnailRenderer,I;if((I=b.playlistVideoThumbnailRenderer)==null?0:I.thumbnail)return b.playlistVideoThumbnailRenderer.thumbnail;var h;if((h=b.playlistCustomThumbnailRenderer)==null?0:h.thumbnail)return b.playlistCustomThumbnailRenderer.thumbnail;G=G.thumbnailRenderer;var q;if((q=G.showCustomThumbnailRenderer)==null?0:q.thumbnail)return G.showCustomThumbnailRenderer.thumbnail}};
_.m.computeOverlayColor=function(G){var b,I;if((b=this.getThumbnailDetails(G))==null?0:(I=b.darkColorPalette)==null?0:I.section2Color)return this.getThumbnailDetails(G).darkColorPalette.section2Color;var h;return(h=this.getThumbnailDetails(G))==null?void 0:h.sampledThumbnailColor};
_.m.computeWebModernCollections=function(G){if(G==null||!G.thumbnailOverlays)return!1;G=_.e(G.thumbnailOverlays);for(var b=G.next();!b.done;b=G.next()){var I=void 0;if((I=b.value)==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.m.computeNavigationEndpoint=function(G){return WSO(G==null?void 0:G.navigationEndpoint)};
_.kV.Object.defineProperties(AX.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([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],AX.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(V48),_.n("design:type",Object)],AX.prototype,"ytdThumbnailBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],AX.prototype,"componentBehavior",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],AX.prototype,"watchFeedThumbnail",void 0);_.R([_.H(),_.n("design:type",Number)],AX.prototype,"customThumbnailSize",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],AX.prototype,"hideAria",void 0);_.R([_.H(),_.n("design:type",Object)],AX.prototype,"data",void 0);_.R([_.H({computed:"computeOverlayColor(data)"}),_.n("design:type",Object)],AX.prototype,"overlayColor",void 0);
_.R([_.H({computed:"computeWebModernCollections(data)"}),_.n("design:type",Object)],AX.prototype,"webModernCollections",void 0);_.R([_.H({computed:"computeNavigationEndpoint(data)"}),_.n("design:type",Object)],AX.prototype,"computedNavigationEndpoint",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],AX.prototype,"isSearch",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],AX.prototype,"isDoubleStack",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],AX.prototype,"thumbnailSize",void 0);_.R([_.P("data","isDoubleStack","thumbnailSize"),_.n("design:type",Object),_.n("design:paramtypes",[])],AX.prototype,"collectionStack",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],AX);
_.J(AX,"ytd-playlist-thumbnail",function(){if(G0i!==void 0)return G0i;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return G0i=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var I2X;_.JN(_.C(function(G){return _.v("yt-text-view-model",{class:_.pG("ytTextViewModelHost")},_.v(_.IS,{text:function(){return G.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.hV}});var MJ=function(){var G=_.a.apply(this,arguments)||this;G.noEndpoints=!1;G.amsterdamPostMvp=_.U("web_amsterdam_post_mvp_playlists");G.badges=[];G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.M(MJ,_.a);_.m=MJ.prototype;_.m.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.m.getMetadata=function(G){if(!G)return[];var b=[],I=G.shortViewCountText||G.viewCountText;I&&b.push(_.NO(I));G.publishedTimeText&&b.push(_.NO(G.publishedTimeText));G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&b.push(_.LM(_.NO(G.upcomingEventData.upcomingEventText),Number(G.upcomingEventData.startTime)));return b};
_.m.observeDataForBylineSeparator=function(){this.data&&_.SL(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.m.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Uo(this.metadataColor)};
_.m.getSimpleString=function(G){return _.NO(G)};
_.m.isBylineHidden=function(G){return this.noByline||!((G==null?0:G.longBylineText)||(G==null?0:G.shortBylineText))};
_.m.isMetadataHidden=function(G){var b;return((b=this.getMetadata(G))==null?void 0:b.length)===0};
_.m.isBylineMetadataSeparatorHidden=function(G){return this.isMetadataHidden(G)||!this.shouldShowVideoInfo};
_.m.isLongByline=function(G,b){return b&&!(G==null||!G.longBylineText)};
_.kV.Object.defineProperties(MJ.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 _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
MJ.prototype.metadataColorChanged=MJ.prototype.metadataColorChanged;MJ.prototype.observeDataForBylineSeparator=MJ.prototype.observeDataForBylineSeparator;_.R([_.z(_.wN),_.n("design:type",Object)],MJ.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],MJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],MJ.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],MJ.prototype,"noEndpoints",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],MJ.prototype,"isSlimShort",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],MJ.prototype,"radioMeta",void 0);_.R([_.H({selector:_.sd}),_.n("design:type",Object)],MJ.prototype,"isGridViewEnabled",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],MJ.prototype,"richMeta",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],MJ.prototype,"amsterdamPostMvp",void 0);
_.R([_.H(),_.n("design:type",Boolean)],MJ.prototype,"noByline",void 0);_.R([_.H({computed:"isLongByline(data, radioMeta)"}),_.n("design:type",Boolean)],MJ.prototype,"longByline",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],MJ.prototype,"truncateMetadataLine",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],MJ.prototype,"miniMode",void 0);_.R([_.H(),_.n("design:type",Number)],MJ.prototype,"metadataColor",void 0);
_.R([_.H(),_.n("design:type",Array)],MJ.prototype,"badges",void 0);_.R([_.H({selector:_.Z0,selectorArgs:["data.videoId"]}),_.n("design:type",String)],MJ.prototype,"transferState",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],MJ.prototype,"isDownloading",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],MJ.prototype,"typographyBump",void 0);_.R([_.lH("#metadata-line"),_.n("design:type",HTMLElement)],MJ.prototype,"metadataLine",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],MJ.prototype,"observeDataForBylineSeparator",null);_.R([_.q5("metadataColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],MJ.prototype,"metadataColorChanged",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],MJ.prototype,"shouldShowVideoInfo",null);
_.R([_.P("badges"),_.n("design:type",String),_.n("design:paramtypes",[])],MJ.prototype,"inlineBadgeClass",null);_.R([_.P("longByline"),_.n("design:type",String),_.n("design:paramtypes",[])],MJ.prototype,"longBylineClass",null);_.R([_.P("data","longByline"),_.n("design:type",Object),_.n("design:paramtypes",[])],MJ.prototype,"bylineText",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],MJ.prototype,"hasAttributedBylineText",null);
_.R([_.P("isGridViewEnabled","data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],MJ.prototype,"watchFeedBigThumbs",null);_.R([_.N({is:"ytd-video-meta-block",disableElementRegistration:!0})],MJ);
_.J(MJ,"ytd-video-meta-block",function(){if(I2X!==void 0)return I2X;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return I2X=G},{mode:_.nn("kevlar_poly_si_batch_j080")?1:2});_.QO("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Zs=function(){var G=_.a.apply(this,arguments)||this;G.displayItemCount=2;G.isBackstagePlaylist=!1;G.isPostCompactPlaylist=!1;G.shouldShowChannelThumbnail=!1;return G};
_.M(Zs,_.a);_.m=Zs.prototype;_.m.computeFirstVideos=function(G,b){return G===void 0||b===void 0?[]:G.slice(0,b)};
_.m.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)}};
_.m.computeThumbnailHeight=function(G,b,I,h,q){return h?q==="BIG"?280:q==="MASSIVE"?337:234:I?240:b?72:G?118:138};
_.m.computeThumbnailWidth=function(G,b,I,h,q){return h?q==="MEDIUM"?450:q==="BIG"?500:q==="MASSIVE"?600:420:I?360:b?128:G?210:246};
_.m.computeUseBiggerThumbs=function(G){return G&&_.U("enable_desktop_search_bigger_thumbs")};
_.m.computeShouldShowChannelThumbnail=function(G,b){return G&&!(b==null||!b.channelThumbnail)};
_.kV.Object.defineProperties(Zs.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Zs.prototype.dataChanged=Zs.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],Zs.prototype,"ytdLockupBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Zs.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Zs.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Zs.prototype,"displayItemCount",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zs.prototype,"isBackstagePlaylist",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zs.prototype,"isPostCompactPlaylist",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Zs.prototype,"isSearch",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.n("design:type",Boolean)],Zs.prototype,"useBiggerThumbs",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.UG("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],Zs.prototype,"biggerThumbsStyle",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Zs.prototype,"isDownloads",void 0);_.R([_.H({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.n("design:type",Object)],Zs.prototype,"shouldShowChannelThumbnail",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zs.prototype,"dataChanged",null);
_.R([_.P("isSearch"),_.n("design:type",String),_.n("design:paramtypes",[])],Zs.prototype,"stackThumbnailSize",null);_.R([_.N({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Zs);
_.J(Zs,"ytd-playlist-renderer",function(){if(atQ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);atQ=G}G=atQ;return G},{mode:1});var hsu;var qWB;var tX=function(){var G=_.a.apply(this,arguments)||this;G.startX=0;return G};
_.M(tX,_.a);tX.prototype.onEndpointMouseDown=function(G){this.startX=G.clientX};
tX.prototype.onEndpointClick=function(G){this.startX!==G.clientX&&(G.preventDefault(),G.stopPropagation())};
tX.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"};
tX.prototype.computeCardStyle=function(G){return G?G.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.kV.Object.defineProperties(tX.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?void 0:(b=G.searchRefinementCardRendererStyle)==null?void 0:b.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],tX.prototype,"data",void 0);_.R([_.H({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.n("design:type",Number)],tX.prototype,"objectFit",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.n("design:type",String)],tX.prototype,"cardStyle",void 0);
_.R([_.H({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],tX.prototype,"roundContainer",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],tX.prototype,"isAlbumCard",null);_.R([_.P("data","isAlbumCard"),_.n("design:type",Object),_.n("design:paramtypes",[])],tX.prototype,"collectionStack",null);_.R([_.N({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],tX);
_.J(tX,"ytd-search-refinement-card-renderer",function(){if(qWB!==void 0)return qWB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return qWB=G},{mode:1});var j6n;var zc=function(){var G=_.a.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.M(zc,_.a);_.R([_.H(),_.n("design:type",Object)],zc.prototype,"data",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],zc.prototype,"componentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],zc.prototype,"ytdReduxBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zc.prototype,"isRichGrid",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],zc.prototype,"miniMode",void 0);
_.R([_.N({is:"ytd-game-details-renderer",disableElementRegistration:!0})],zc);
_.J(zc,"ytd-game-details-renderer",function(){if(j6n!==void 0)return j6n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return j6n=G},{mode:1});var l2i;var m4X;var om=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return G};
_.M(om,_.a);_.m=om.prototype;_.m.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.m.currentStateData=function(G){var b=G||this.data;return b&&b.states&&b.currentStateId!=null?b.states.find(function(I){return I.stateId===b.currentStateId})||null:null};
_.m.currentStateRendererData=function(G){return(G=this.currentStateData(G))&&G.state&&G.state.buttonRenderer?G.state.buttonRenderer:null};
_.m.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())};
_.m.computeButtonIcon=function(G){G=this.currentStateRendererData(G);var b;return(G==null?0:(b=G.icon)==null?0:b.iconType)?G.icon.iconType.toLowerCase():null};
_.m.computeAccessibility=function(G){return(G=this.currentStateRendererData(G))&&G.accessibilityData?G.accessibilityData.accessibilityData||null:null};
_.m.computeButtonClass=function(G){var b=this.currentStateRendererData(G);if(!b)return"";G="";var I=b.style;I&&(G+=I.toLowerCase().replace(/_/g,"-")+" ");(b=b.size)&&(G+=b.toLowerCase().replace(/_/g,"-")+" ");return G.trim()};
_.m.computeServiceEndpoint=function(G){if(!G)return null;var b=G&&G.serviceEndpoint,I=this.get("command.commandMetadata.webCommandMetadata.sendPost",G);return b?b:I&&G.command?G.command:null};
_.m.computeBellMenuItemParams=function(G){var b;G=(b=_.g(G==null?void 0:G.command,_.$P))==null?void 0:b.commands;if(!G||G.length===0)return null;b=_.g(G[0],_.WB);var I,h;return(b==null?0:(I=b.popup)==null?0:(h=I.menuPopupRenderer)==null?0:h.items)?b.popup.menuPopupRenderer.items.map(function(q){return q.menuServiceItemRenderer.trackingParams}):null};
_.m.handleBellMenuOpenSelectedAction=function(G){var b=G.trackingParams,I=this.computeBellMenuItemParams(this.data);this.data&&b&&I&&I.includes(b)&&this.ytRenderButtonBehavior._setButtonIcon(G.icon.iconType.toLowerCase())};
_.m.onYtServiceRequestCompleted=function(G,b){(G=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))&&this.set("data",G)};
_.m.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.m.resetState=function(){this.set("data.currentStateId",3)};
_.m.onYtButtonTapHandler=function(){if(this.data){var G=this.currentStateRendererData(this.data);G&&this.ytRendererBehavior.logExplicitClick(G)}};
om.prototype.onYtServiceRequestError=om.prototype.onYtServiceRequestError;om.prototype.onYtServiceRequestCompleted=om.prototype.onYtServiceRequestCompleted;om.prototype.stateChanged=om.prototype.stateChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],om.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(rs.YtRenderButtonBehavior),_.n("design:type",Object)],om.prototype,"ytRenderButtonBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],om.prototype,"data",void 0);_.R([_.Dd("data","data.currentStateId"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],om.prototype,"stateChanged",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],om.prototype,"onYtServiceRequestCompleted",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],om.prototype,"onYtServiceRequestError",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],om);
_.J(om,"ytd-subscription-notification-toggle-button-renderer",function(){if(m4X!==void 0)return m4X;var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return m4X=G},{mode:1});var esi;var io=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};G.tapHandler=function(){if(G.data){var b=G.currentStateRendererData();b&&G.ytRendererBehavior.logExplicitClick(b)}};
return G};
_.M(io,_.a);_.m=io.prototype;_.m.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.m.currentStateData=function(){var G=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(b){return b.stateId===G.data.currentStateId})||null:null};
_.m.currentStateRendererData=function(){var G=this.currentStateData();return G&&G.state&&G.state.buttonRenderer?G.state.buttonRenderer:null};
_.m.computeAccessibilityLabel=function(){var G,b,I;return(G=this.currentStateRendererData())==null?void 0:(b=G.accessibilityData)==null?void 0:(I=b.accessibilityData)==null?void 0:I.label};
_.m.computeBellMenuItemParams=function(){var G,b,I=(b=_.g((G=this.data)==null?void 0:G.command,_.$P))==null?void 0:b.commands;if(!I||I.length===0)return null;G=_.g(I[0],_.WB);var h,q;return(G==null?0:(h=G.popup)==null?0:(q=h.menuPopupRenderer)==null?0:q.items)?G.popup.menuPopupRenderer.items.map(function(l){return l.menuServiceItemRenderer.trackingParams}):null};
_.m.handleBellMenuOpenSelectedAction=function(G){var b=G.trackingParams,I=this.computeBellMenuItemParams();if(this.data&&b&&I&&I.includes(b)&&(G==null||!G.isDisabled)){var h;((h=_.g(G.serviceEndpoint,_.b9))==null?void 0:h.signal)!=="CLIENT_SIGNAL"&&(this.icon=G.icon.iconType)}};
_.m.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.m.onYtServiceRequestCompleted=function(G,b){if(G=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))this.icon=void 0,this.set("data",G)};
_.m.onYtServiceRequestError=function(){this.icon=void 0};
_.kV.Object.defineProperties(io.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=this.data,b=this.textLabel,I=this.hostElement,h=this.computeAccessibilityLabel(),q=this.tapHandler,l=this.isOverlay?"overlay":"mono",V=(G==null?0:G.disableButton)?"disabled":"active";b=b?_.fG(b):void 0;return{style:l,type:"tonal",state:V,size:"M",focused:!1,formattedButtonText:b,iconPosition:"leading-trailing",onTap:y0O(G,q,I),accessibilityLabel:h}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var G=this.currentStateRendererData(),b,I,h=(I=this.icon)!=null?I:G==null?void 0:(b=G.icon)==null?void 0:b.iconType;if(h)return _.pn(h)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var G,b,I=(G=this.data)==null?void 0:(b=G.secondaryIcon)==null?void 0:b.iconType;if(I)return _.pn(I)}}});
io.prototype.onYtServiceRequestError=io.prototype.onYtServiceRequestError;io.prototype.onYtServiceRequestCompleted=io.prototype.onYtServiceRequestCompleted;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],io.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],io.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],io.prototype,"textLabel",void 0);
_.R([_.H(),_.n("design:type",String)],io.prototype,"icon",void 0);_.R([_.H(),_.n("design:type",Boolean)],io.prototype,"isOverlay",void 0);_.R([_.P("data.*","textLabel"),_.n("design:type",Object),_.n("design:paramtypes",[])],io.prototype,"computedButtonShape",null);_.R([_.P("data.*","icon"),_.n("design:type",Object),_.n("design:paramtypes",[])],io.prototype,"computedIcon",null);_.R([_.P("computedIcon"),_.n("design:type",Object),_.n("design:paramtypes",[])],io.prototype,"computedAnimateIcon",null);
_.R([_.P("data.*"),_.n("design:type",Object),_.n("design:paramtypes",[])],io.prototype,"computedSecondaryIcon",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],io.prototype,"onYtServiceRequestCompleted",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],io.prototype,"onYtServiceRequestError",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],io);
_.J(io,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(esi!==void 0)return esi;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return esi=G},{mode:_.nn("kevlar_poly_si_batch_j081")?1:2});var VZ5;_.JN(V_b,"yt-animated-action",{props:{backgroundLottieRef:_.hV,foregroundLottieRef:_.hV,wrapperClass:_.hV,disableAnimation:_.hV},unsafeExternallySettableAttributes:new Set(["key"])});var Pc=function(){var G=_.a.apply(this,arguments)||this;G.animatedActionEnabled=_.U("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};
_.M(Pc,_.a);_.m=Pc.prototype;_.m.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.m.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]]"}}}}}};
_.m.attached=function(){this.keyboardFocused=!1};
_.m.onYtServiceRequestSent=function(G,b){(this.get("endpoint.subscribeEndpoint",b)||this.get("endpoint.unsubscribeEndpoint",b))&&this.updateSubscriptionState(!this.subscribed)};
_.m.onYtServiceRequestCompleted=function(G,b){(G=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",b.data))&&this.bellButton&&(this.bellButton.data=G)};
_.m.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.G8(this.hostElement)};
_.m.onPlayerSubscribe=function(G){this.isCompactRed()||G!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.m.onPlayerUnsubscribe=function(G){this.isCompactRed()||G!==this.data.channelId||this.updateSubscriptionState(!1)};
_.m.handleUpdateSubscribeButtonAction=function(G){G=_.g(G,hqJ);var b;G&&G.channelId===((b=this.data)==null?void 0:b.channelId)&&this.updateSubscriptionState(!!G.subscribed)};
_.m.computeButtonStyle=function(G){return this.get("style.styleType",G)||null};
_.m.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.m.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.m.updateSubscriptionState=function(G){if(G!==this.subscribed){this.set("data.subscribed",G);var b,I=(b=this.data)==null?void 0:b.subscribedEntityKey;I&&this.ytdReduxBehavior.dispatch(_.Da("subscriptionStateEntity",I,{key:I,subscribed:G}));this.isCompactRed()||_.O3(this.hostElement,"yt-subscription-changed",G);G||(_.wL(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!G),G&&this.hasBellButton&&this.startAnimation())}};
_.m.startAnimation=function(){var G=this;if(!this.isAnimating){var b=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var I;(I=this.backgroundLottieRef.lottieEl)==null||I.goToAndPlay(0);var h;(h=this.foregroundLottieRef.lottieEl)==null||h.goToAndPlay(0);_.uu.addJob(function(){G.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.uu.addJob(function(){G.updateContainerToFitContent(!!G.subscribed,!0)},2,1500);
_.uu.addJob(function(){G.isAnimating=!1},2,b)}};
_.m.maybeAnimateBellIcon=function(){var G=_.pX(this.hostElement).querySelector("yt-animated-icon");if(G){var b;(b=G.animationRef.lottieEl)==null||b.goToAndPlay(0)}};
_.m.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.m.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.m.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var G;this.unsubscribedWidth=(G=this.subscribeButtonShape)==null?void 0:G.getBoundingClientRect().width}var b;this.subscribedWidth=(b=this.bellButton)==null?void 0:b.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.m.updateContainerToFitContent=function(G,b){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(G?(G=this.subscribedWidth,b=this.isAnimating&&!b,this.subscribedIconOnlyWidth===void 0||b||(G=this.subscribedIconOnlyWidth),this.hostElement.style.width=G+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.m.clearContainerSize=function(){this.hostElement.style.width=""};
_.m.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.m.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 b;G.subscribedIconOnlyWidth=(b=G.bellButton)==null?void 0:b.getBoundingClientRect().width;requestAnimationFrame(function(){if(G.bellButton){var I;G.bellButton.textLabel=
(I=G.data)==null?void 0:I.subscribedButtonText}})})))};
_.kV.Object.defineProperties(Pc.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 b;return this.forceIconOnly?void 0:(b=this.data)==null?void 0:b.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var G,b,I=((G=this.data)==null?void 0:(b=G.timedAnimationData)==null?void 0:b.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 b=G.renderer;var I=G.element;var h=G.subscribed;var q=G.commandController;var l=G.isOverlay;G=G.stopPropagation;var V=WJp(b,h);l&&(V.style="overlay");l=Object;var D=l.assign,k;a:switch((k=b.style)==null?void 0:k.styleType){case "COMPACT_GRAY":case "COMPACT_RED":k={size:"S"};break a;default:k={size:"M"}}var L=Hru(b,
h);var x=(x=h?b.subscribedButtonText:b.unsubscribedButtonText)?_.fG(x):void 0;return D.call(l,{},V,k,{focused:!1,toggled:h,accessibilityLabel:L,formattedButtonText:x,onTap:FJj(b,h,I,q,G)})}}}});
Pc.prototype.onMouseDown=Pc.prototype.onMouseDown;Pc.prototype.onDataChanged=Pc.prototype.onDataChanged;Pc.prototype.observedSubscribed=Pc.prototype.observedSubscribed;Pc.prototype.onYtServiceRequestCompleted=Pc.prototype.onYtServiceRequestCompleted;Pc.prototype.onYtServiceRequestSent=Pc.prototype.onYtServiceRequestSent;Pc.prototype.maybeUpdateBellButtonText=Pc.prototype.maybeUpdateBellButtonText;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Pc.prototype,"ytComponentBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Pc.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Pc.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Pc.prototype,"data",void 0);
_.R([_.H({selectorArgs:["data.subscribedEntityKey"],selector:I3X}),_.n("design:type",Object)],Pc.prototype,"subscriptionStateEntity",void 0);_.R([_.H({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Pc.prototype,"subscribed",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Pc.prototype,"branded",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Pc.prototype,"animatedActionEnabled",void 0);
_.R([_.H(),_.n("design:type",Object)],Pc.prototype,"foregroundLottieRef",void 0);_.R([_.H(),_.n("design:type",Object)],Pc.prototype,"backgroundLottieRef",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Pc.prototype,"overlayButton",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.n("design:type",Object)],Pc.prototype,"buttonStyle",void 0);_.R([_.H(),_.n("design:type",Object)],Pc.prototype,"forceIconOnly",void 0);
_.R([_.H(),_.n("design:type",Object)],Pc.prototype,"showTextWhileAnimating",void 0);_.R([_.H({value:function(){return!!_.LL().resolve(_.vf(_.v6))&&_.U("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.n("design:type",Boolean)],Pc.prototype,"useKeyboardFocused",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Pc.prototype,"keyboardFocused",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Pc.prototype,"isAnimating",void 0);_.R([_.P("data.notificationPreferenceButton.*"),_.n("design:type",Object),_.n("design:paramtypes",[])],Pc.prototype,"hasBellButton",null);
_.R([_.q5("subscribedButtonText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Pc.prototype,"maybeUpdateBellButtonText",null);_.R([_.P("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.n("design:type",Object),_.n("design:paramtypes",[])],Pc.prototype,"subscribedButtonText",null);_.R([_.P("data.timedAnimationData.animationTiming","subscribed"),_.n("design:type",Object),_.n("design:paramtypes",[])],Pc.prototype,"smartimationSettings",null);
_.R([_.H({reflectToAttribute:!0}),_.P("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.n("design:type",Object),_.n("design:paramtypes",[])],Pc.prototype,"subscribeButtonHidden",null);_.R([_.H({reflectToAttribute:!0}),_.P("subscribed","hasBellButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],Pc.prototype,"subscribeButtonInvisible",null);
_.R([_.H({reflectToAttribute:!0}),_.P("subscribed"),_.n("design:type",Object),_.n("design:paramtypes",[])],Pc.prototype,"unsubscribeButtonHidden",null);_.R([_.lH("ytd-subscription-notification-toggle-button-renderer-next"),_.n("design:type",Object)],Pc.prototype,"bellButton",void 0);_.R([_.lH("#subscribe-button-shape"),_.n("design:type",HTMLElement)],Pc.prototype,"subscribeButtonShape",void 0);
_.R([_.P("overlayButton","subscribed","data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Pc.prototype,"buttonShape",null);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],Pc.prototype,"onYtServiceRequestSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],Pc.prototype,"onYtServiceRequestCompleted",null);
_.R([_.q5("subscribed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Pc.prototype,"observedSubscribed",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Pc.prototype,"onDataChanged",null);_.R([_.hI("mousedown"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Pc.prototype,"onMouseDown",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Pc);
_.J(Pc,"ytd-subscribe-button-renderer",function(){if(VZ5!==void 0)return VZ5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden$="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VZ5=G},{mode:1});var d1=function(){var G=_.a.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.M(d1,_.a);d1.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],d1.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],d1.prototype,"isRichGrid",void 0);_.R([_.N({is:"ytd-game-card-renderer",disableElementRegistration:!0})],d1);
_.J(d1,"ytd-game-card-renderer",function(){if(l2i!==void 0)return l2i;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return l2i=G},{mode:1});var yV={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.U("defer_menus")&&!CbQ?0:void 0,waitForSignal:"eocs"};var D45;var cSb;var r1=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return G};
_.M(r1,_.a);_.m=r1.prototype;_.m.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.m.onSeriesReminderStateEntityChange=function(){var G,b,I;((G=this.eventReminderStateEntity)==null?0:G.key)&&((b=this.seriesReminderStateEntity)==null?void 0:b.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((I=this.eventReminderStateEntity)==null?void 0:I.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Da("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.m.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.m.onYtServiceRequestError=function(){var G;this.updateReminderStateEntitiesFromButtonState((G=this.data)==null?void 0:G.currentState)};
_.m.handleUpdateUpcomingEventReminderButtonStateCommand=function(G){if(G=_.g(G,qmi)){var b,I=(b=this.data)==null?void 0:b.targetId;I&&G.targetId===I&&_.iH(this.updateReminderStateEntitiesFromButtonState.bind(this,G.state))}};
_.m.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 b;if(((b=this.eventReminderStateEntity)==null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var I,h;if(((I=this.seriesReminderStateEntity)==null?void 0:I.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((h=this.eventReminderStateEntity)==
null?void 0:h.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var q;return(q=this.data)==null?void 0:q.currentState};
_.m.updateReminderStateEntitiesFromButtonState=function(G){if(G){switch(G){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":G="UPCOMING_EVENT_REMINDER_STATE_NONE";var b="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":G="UPCOMING_EVENT_REMINDER_STATE_SINGLE";b="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":G="UPCOMING_EVENT_REMINDER_STATE_NONE";b="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var I;
((I=this.eventReminderStateEntity)==null?0:I.key)&&this.ytdReduxBehavior.dispatch(_.Da("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:G})));var h;((h=this.seriesReminderStateEntity)==null?0:h.key)&&this.ytdReduxBehavior.dispatch(_.Da("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:b})))}};
_.kV.Object.defineProperties(r1.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var G=this.getButtonStateFromReminderState(),b,I;if(G&&((b=this.data)==null?0:(I=b.states)==null?0:I.length))for(b=_.e(this.data.states),I=b.next();!I.done;I=b.next()){I=I.value;var h=void 0;if(((h=_.g(I,jmJ))==null?void 0:h.state)===G)return _.g(I,jmJ)}}}});
r1.prototype.onYtServiceRequestError=r1.prototype.onYtServiceRequestError;r1.prototype.onYtServiceRequestCompleted=r1.prototype.onYtServiceRequestCompleted;r1.prototype.onSeriesReminderStateEntityChange=r1.prototype.onSeriesReminderStateEntityChange;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],r1.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],r1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],r1.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],r1.prototype,"data",void 0);_.R([_.H({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:qtq}),_.n("design:type",Object)],r1.prototype,"eventReminderStateEntity",void 0);
_.R([_.H({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(G,b){return _.Gi(G.entities,"sportsSeriesReminderStateEntity",b)}}),
_.n("design:type",Object)],r1.prototype,"seriesReminderStateEntity",void 0);_.R([_.P("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],r1.prototype,"currentButtonStateRenderer",null);_.R([_.q5("seriesReminderStateEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],r1.prototype,"onSeriesReminderStateEntityChange",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],r1.prototype,"onYtServiceRequestCompleted",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],r1.prototype,"onYtServiceRequestError",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],r1);
_.J(r1,"ytd-upcoming-event-reminder-button-renderer",function(){if(cSb!==void 0)return cSb;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return cSb=G},{mode:1});var k0i;var Fd=function(){return _.a.apply(this,arguments)||this};
_.M(Fd,_.a);Fd.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.kV.Object.defineProperties(Fd.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(_.U("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Fd.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Fd.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Fd.prototype,"shelfDismissal",void 0);_.R([_.P("data.responseText"),_.n("design:type",Object),_.n("design:paramtypes",[])],Fd.prototype,"text",null);
_.R([_.P("data.responseText"),_.n("design:type",Object),_.n("design:paramtypes",[])],Fd.prototype,"textAriaLabel",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Fd);
_.J(Fd,"ytd-notification-multi-action-renderer",function(){if(k0i!==void 0)return k0i;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return k0i=G},{mode:1});var vRu;var Hc=function(){return _.a.apply(this,arguments)||this};
_.M(Hc,_.a);Hc.prototype.ready=function(){var G=this;_.Eo(this.hostElement).querySelector("#undo").addEventListener("tap",function(){G.onUndoTap()})};
Hc.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.LL().resolve(_.xW).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Hc.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Hc);
_.J(Hc,"ytd-notification-text-renderer",function(){if(vRu!==void 0)return vRu;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vRu=G},{mode:1});var Ly5;var Wc=function(){var G=_.a.apply(this,arguments)||this;G.mouseOverDelayJobId=0;G.fadeInImageDelayJobId=0;G.startTimeMs=-1;G.loadingStartTimeMs=-1;G.loadingEndTimeMs=-1;G.hasVideoPreview=!1;return G};
_.M(Wc,_.a);_.m=Wc.prototype;_.m.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.m.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.m.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.m.showThumbnail=function(){var G=this;this.csn=_.gL();_.gK("fmth");_.uu.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.O0(_.uu,function(){G.loadingStartTimeMs=(0,_.Li)();var b=_.Eo(G.hostElement).querySelector("#thumbnail");b.complete?G.displayMouseOverImage():b.addEventListener("load",_.I9(G,G.displayMouseOverImage))},150):_.SL(_.Eo(this.hostElement).querySelector("#play"),"show",!0)};
_.m.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.m.onTap=function(){this.removeVideoPreview()};
_.m.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var G=this.videoId,b=this.csn,I=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,h=this.startTimeMs,q=this.hasVideoPreview,l=_.VB(this.trackingParams),V={isMovingThumbnail:q};q&&h>0&&(I>0&&(V.movingThumbnailLoadingDurationMs=Math.round(I)),V.durationHoveredMs=Math.round((0,_.Li)()-h));G&&(V.videoId=G);_.aW(b,l,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:V});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.m.removeVideoPreview=function(){_.uu.cancelJob(this.mouseOverDelayJobId);_.uu.cancelJob(this.fadeInImageDelayJobId);var G=_.Eo(this.hostElement).querySelector("#thumbnail");_.SL(G,"fade-in",!1);G.removeEventListener("load",_.I9(this,this.displayMouseOverImage));G=_.Eo(this.hostElement).querySelector("#play");_.SL(G,"fade-in",!1);_.SL(G,"show",!1)};
_.m.displayMouseOverImage=function(){var G=_.Eo(this.hostElement).querySelector("#thumbnail"),b=_.Eo(this.hostElement).querySelector("#play");this.isImageAvailable(G)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Li)(),this.startTimeMs=(0,_.Li)(),this.fadeInImageDelayJobId=_.O0(_.uu,function(){_.SL(G,"fade-in",!0)},50)):_.SL(b,"fade-in",!0)};
_.m.computeThumbnail=function(G,b){var I;G&&G.movingThumbnailDetails&&G.movingThumbnailDetails.thumbnails&&b?I=_.KG(G.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):I=b?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(I)return _.KA(I)};
_.m.isImageAvailable=function(G){return!(!G.src||G.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||G.naturalWidth===120)};
Wc.prototype.onTap=Wc.prototype.onTap;Wc.prototype.dataChanged=Wc.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Wc.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Wc.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Wc.prototype,"csn",void 0);_.R([_.H(),_.n("design:type",Object)],Wc.prototype,"trackingParams",void 0);
_.R([_.H(),_.n("design:type",String)],Wc.prototype,"videoId",void 0);_.R([_.H(),_.n("design:type",Boolean)],Wc.prototype,"isAttachedAndDataSet",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Wc.prototype,"dataChanged",null);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Wc.prototype,"onTap",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Wc);
_.J(Wc,"ytd-moving-thumbnail-renderer",function(){if(Ly5!==void 0)return Ly5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Ly5=G},{mode:1});var Q6O;_.Xe=function(G){this.hostElement=G;this.eventSink=null;this.eventList=[]};
_.Xe.prototype.shouldForward=function(){var G,b;return(b=(G=this.eventSink)==null?void 0:G.isConnected)!=null?b:document.body.contains(this.eventSink)};
_.Xe.prototype.start=function(G,b){this.eventSink&&this.stop();for(var I=0;I<G.length;I++)this.hostElement.addEventListener(G[I],_.I9(this,this.forwardEvent));var h;this.eventSink=(h=b.hostElement)!=null?h:b;this.eventList=G};
_.Xe.prototype.stop=function(){for(var G=0;G<this.eventList.length;G++)this.hostElement.removeEventListener(this.eventList[G],_.I9(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Xe.prototype.forwardEvent=function(G,b){this.shouldForward()&&(G.stopPropagation(),this.eventSink instanceof Element?_.O3(this.eventSink,G.type,b):_.RB(new _.Wf("eventSink is not an element")))};_.am={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Xe(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(G,b){this.forwarder_.start(G,b)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var NJ=function(){return _.a.apply(this,arguments)||this};
_.M(NJ,_.a);_.m=NJ.prototype;_.m.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=_.wy("HTML_DIR")==="rtl"?"right":"left"};
_.m.dataChanged=function(){this.popupOpen=!1};
_.m.computeAriaLabel=function(G){return _.g(G,glJ).label};
_.m.onTap=function(G){G.stopPropagation();G.preventDefault();this.data.command&&_.LL().resolve(_.xW).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.m.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.m.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
NJ.prototype.onPopupClosed=NJ.prototype.onPopupClosed;NJ.prototype.onPopupOpened=NJ.prototype.onPopupOpened;NJ.prototype.onTap=NJ.prototype.onTap;NJ.prototype.dataChanged=NJ.prototype.dataChanged;_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],NJ.prototype,"eventForwardingBehavior",void 0);_.R([_.z(_.Jr),_.n("design:type",Object)],NJ.prototype,"ironButtonState",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],NJ.prototype,"componentBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],NJ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:-1}),_.n("design:type",Number)],NJ.prototype,"tabindex",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.n("design:type",Object)],NJ.prototype,"ariaLabel",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],NJ.prototype,"disableTooltips",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],NJ.prototype,"popupOpen",void 0);
_.R([_.H(),_.n("design:type",Element)],NJ.prototype,"eventSink",void 0);_.R([_.lH("#tooltip"),_.n("design:type",Object)],NJ.prototype,"tooltip",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NJ.prototype,"dataChanged",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],NJ.prototype,"onTap",null);
_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NJ.prototype,"onPopupOpened",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NJ.prototype,"onPopupClosed",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],NJ);
_.J(NJ,"ytd-thumbnail-overlay-button-renderer",function(){if(Q6O!==void 0)return Q6O;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Q6O=G},{mode:1});var x4i;var Y9=function(){return _.a.apply(this,arguments)||this};
_.M(Y9,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Y9.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Y9.prototype,"disableAnimation",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Y9.prototype,"rounded",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Y9.prototype,"transparentBackground",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Y9.prototype,"noPadding",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Y9);
_.J(Y9,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(x4i!==void 0)return x4i;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return x4i=G},{mode:1});var f2i;var Cq=function(){return _.a.apply(this,arguments)||this};
_.M(Cq,_.a);Cq.prototype.computeIconPosition=function(G){return this.get("iconPosition",G)||null};
Cq.prototype.computeIconStyle=function(G){return this.get("iconStyle",G)||null};
Cq.prototype.computeIsIconStyleFilled=function(G){if(!G)return!1;var b;return G.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((b=G.icon)==null?void 0:b.iconType)==="ERROR_BLACK"};
_.R([_.H(),_.n("design:type",Object)],Cq.prototype,"data",void 0);_.R([_.H({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.n("design:type",Object)],Cq.prototype,"iconPosition",void 0);_.R([_.H({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.n("design:type",Object)],Cq.prototype,"iconStyle",void 0);_.R([_.H({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Cq.prototype,"iconStyleFilled",void 0);
_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Cq);
_.J(Cq,"ytd-thumbnail-overlay-icon-renderer",function(){if(f2i!==void 0)return f2i;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return f2i=G},{mode:1});var TJA;var JX=function(){return _.a.apply(this,arguments)||this};
_.M(JX,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],JX.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],JX);
_.J(JX,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(TJA!==void 0)return TJA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return TJA=G},{mode:1});var BJQ;var Kq=function(){var G=_.a.apply(this,arguments)||this;G.isPreviewLoading=!1;return G};
_.M(Kq,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Kq.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Kq.prototype,"isPreviewLoading",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Kq);
_.J(Kq,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(BJQ!==void 0)return BJQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return BJQ=G},{mode:1});var U4n;var uo=function(){return _.a.apply(this,arguments)||this};
_.M(uo,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],uo.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],uo);
_.J(uo,"ytd-thumbnail-overlay-pinking-renderer",function(){if(U4n!==void 0)return U4n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return U4n=G},{mode:1});var s6b;var Rm=function(){var G=_.a.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};
_.M(Rm,_.a);_.m=Rm.prototype;_.m.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");_.Eo(this.hostElement).querySelector("#tooltip").position=_.wy("HTML_DIR")==="rtl"?"right":"left"};
_.m.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.uu.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.uu.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.uu.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.m.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.uu.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.uu.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.uu.cancelJob(this.expandAnimationDelayJobId)};
_.m.computeIcon=function(G,b,I){return(G=I?b:G)&&G.iconType?_.pn(G.iconType):void 0};
_.m.computeAriaLabel=function(G,b,I){return _.g(I?b:G,glJ).label};
_.m.computeTooltip=function(G,b,I){return I?b:G};
_.m.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.m.computeIconOnHover=function(G,b){if((G==null?0:G.iconType)&&!b)return _.pn(G.iconType)};
_.m.onTap=function(G){var b=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=_.O0(_.uu,function(){b.hovered=!1;b.data&&!b.data.toggledServiceEndpoint&&(b.expandAnimationDelayJobId=_.O0(_.uu,function(){b.set("data.isToggled",
!1)},200))},2E3))};
_.m.onMouseenter=function(){var G=this;this.mouseoverDelayJobId=_.O0(_.uu,function(){G.hovered=!0},300)};
_.m.onMouseleave=function(){_.uu.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.m.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.m.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.m.onServiceRequestCompleted=function(G,b){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(b)||this.set("data.isToggled",!this.data.isToggled)};
_.m.serviceRequestWasSuccessful=function(G){return _.g(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.SI)?G.data.status==="STATUS_SUCCEEDED":!0};
Rm.prototype.onServiceRequestCompleted=Rm.prototype.onServiceRequestCompleted;Rm.prototype.onPopupClosed=Rm.prototype.onPopupClosed;Rm.prototype.onPopupOpened=Rm.prototype.onPopupOpened;Rm.prototype.onMouseleave=Rm.prototype.onMouseleave;Rm.prototype.dataChanged=Rm.prototype.dataChanged;_.R([_.z(_.Jr),_.n("design:type",Object)],Rm.prototype,"ironButtonState",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Rm.prototype,"ytComponentBehavior",void 0);
_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],Rm.prototype,"ytEventForwardingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Rm.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.n("design:type",Object)],Rm.prototype,"ariaLabel",void 0);_.R([_.H(),_.n("design:type",Object)],Rm.prototype,"disableTooltips",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Rm.prototype,"popupOpen",void 0);_.R([_.H(),_.n("design:type",Object)],Rm.prototype,"isLoading",void 0);_.R([_.H(),_.n("design:type",Element)],Rm.prototype,"eventSink",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Rm.prototype,"useExpandableTooltip",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.n("design:type",Object)],Rm.prototype,"toggled",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Rm.prototype,"hovered",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.n("design:type",Object)],Rm.prototype,"iconOnHover",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rm.prototype,"dataChanged",null);
_.R([_.hI("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rm.prototype,"onMouseleave",null);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rm.prototype,"onPopupOpened",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rm.prototype,"onPopupClosed",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],Rm.prototype,"onServiceRequestCompleted",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Rm);
_.J(Rm,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(s6b!==void 0)return s6b;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return s6b=G},{mode:_.nn("kevlar_poly_si_batch_j053")?1:2});var gRA;var ASn=_.C(function(G){var b=G.data;var I=G.thumbnailSize;var h=function(){return b().enableSegmentView};
return _.v("yt-thumbnail-overlay-progress-bar-view-model",{class:_.pG("ytThumbnailOverlayProgressBarHost",function(){return a3j(I==null?void 0:I())})},_.v(_.Q,{cond:h,
then:function(){return _.v("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.v("div",{class:_.xU("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+b().startPercent+"%"}}),_.v("div",{class:_.xU("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+b().segmentDurationPercent+"%"}},_.v("div",{class:_.xU("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.v("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.v("div",null," ",function(){return b().segmentLabel})),_.v("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.v("div",{class:_.xU("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.v(_.Q,{cond:function(){return!h()&&b().startPercent},
then:function(){var q={};return _.v("div",{class:_.xU("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(q.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.U("web_enable_modern_progress_bar_overlay"),q))},_.v("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+b().startPercent+"%"}}))}}))},"Fa");
ASn.idomCompat=!0;var MZe=_.C(function(G){var b=_.IZ(),I=_.m2(function(q){var l,V,D;a:{var k=(l=G.data())==null?void 0:l.animationActivationTargetId;l=((V=G.data())==null?void 0:V.animationActivationEntityKey)||"";V=(D=G.data())==null?void 0:D.animationActivationEntitySelectorType;if(l&&k)switch(V){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":q=_.SA(q,l);D=_.LL().resolve(_.vf(_.zO));k=!!(q&&q.videoId===k&&(D==null?0:D.isMiniplayerActive()));k={activated:k,playAnimation:k&&q.playerState==="PLAYER_STATE_PLAYING"};
break a}k=void 0}return k});
_.K0(function(){var q;if((q=I())==null?0:q.activated){var l;if((l=I())==null?0:l.playAnimation){var V;(V=b.lottieEl)==null||V.goToAndPlay(0)}else{var D;(D=b.lottieEl)==null||D.goToAndStop(0)}}},"DbQiXd");
var h=function(){var q,l=!((q=I())==null||!q.activated);if(G.data()){q=G.data();var V=void 0;q.icon&&(V=_.mUj(q.icon),V=Lop(V));var D=void 0,k;if((k=q.backgroundColor)==null?0:k.lightTheme){var L;D={backgroundColor:gq((L=q.backgroundColor)==null?void 0:L.lightTheme,"0.8")}}if(q.text||V||l){if(l&&q.lottieData&&b){L=q.lottieData;var x,f,T;k={animationConfig:{name:L.url,path:L.url,autoplay:(x=L.settings)==null?void 0:x.autoplay,loop:(T=(f=L.settings)==null?void 0:f.loop)!=null?T:!0},animationRef:b}}else k=
void 0;if(l)x=17;else b:switch(q.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":x=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":x=19;break b;default:x=17}l={type:x,text:l&&q.animatedText?q.animatedText:q.text,icon:V,customColors:D,animation:k}}else l=void 0}else l=void 0;return l};
return _.v("yt-thumbnail-badge-view-model",{class:_.pG("ytThumbnailBadgeViewModelHost",G.class)},_.v(_.Q,{cond:h,then:function(){return _.v(_.$9,{data:function(){return h()}})}}))},"Ha");var ZhQ=_.C(function(G){var b={},I={};return _.v("yt-thumbnail-bottom-overlay-view-model",{class:_.pG("ytThumbnailBottomOverlayViewModelHost",(b.ytThumbnailBottomOverlayViewModelHostBackground=function(){return G.data().enableGradientBackground},b))},_.v(_.VX,{data:function(){return G.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(h){return _.v(ASn,{data:h.data,
thumbnailSize:G.thumbnailSize})}}),_.v("div",{class:_.pG("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var h;
return NAa((h=G.thumbnailSize)==null?void 0:h.call(G))},(I.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var h;
return(h=G.isClip)==null?void 0:h.call(G)},I.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var h;
return!_.U("web_enable_modern_progress_bar_overlay")&&((h=G.thumbnailSize)==null?void 0:h.call(G))==="small"},I))},_.v(_.VX,{data:function(){return G.data().badge}},{thumbnailBadgeViewModel:function(h){return _.v(MZe,{data:h.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.v(_.VX,{data:function(){return G.data().badges}},{thumbnailBadgeViewModel:function(h){return _.v(MZe,{data:h.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
ZhQ.idomCompat=!0;_.JN(ZhQ,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.No,thumbnailSize:_.No,isClip:_.No}});var EHO={calledOnce:!1,state:"visible"},pta={calledOnce:!1,state:"hidden"};var nq=_.C(function(G){var b=G.data;var I=G.className;G=G.alwaysShow;var h=_.J0O(),q={};return _.v("thumbnail-hover-overlay-view-model",{el:_.Wv(_.s2(function(){return b().rendererContext})),
class:_.pG("ytThumbnailHoverOverlayViewModelHost",I,(q.ytThumbnailHoverOverlayViewModelHostForceHover=G,q)),"aria-label":function(){var l;return(l=_.g(b().rendererContext,_.DA))==null?void 0:l.label},
role:function(){return _.BH(b().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.BH(b().rendererContext)!==void 0?0:void 0},
"on:keypress":h},_.v("div",{class:_.pG("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(b().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var l="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:l="ytThumbnailHoverOverlayViewModelStyleCover"}return l})},_.v(_.Q,{cond:function(){return b().icon},
then:function(l){return _.v(_.Fu,{data:l,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.v(_.Q,{cond:function(){return b().text},
then:function(l){return _.v(_.IS,{text:l,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
nq.idomCompat=!0;var tZW=_.C(function(G){var b=G.data;return _.v(_.VX,{data:function(){return b==null?void 0:b().overlays}},{thumbnailHoverOverlayViewModel:nq})},"La");
tZW.idomCompat=!0;var zse={};var oRQ=_.C(function(G){var b=G.data;var I=G.image;var h=G.state;var q=G.iconType;var l=G.overlays;var V=G.isOverlay;var D=_.VF("div");G=_.e(_.ZZ(!0,void 0,"AA4e7b"));var k=G.next().value,L=G.next().value,x=function(){return!!b().onTap},f=_.a9(q,"LIVE");
_.K0(function(){var B=b();requestAnimationFrame(function(){if(D.value===null)var A=!0;else{var t=D.value;A=B.badgeText;var y=Xtv(B.size);A in zse?t=zse[A]:(t=t.clientWidth,zse[A]=t);(A=t>y)?D.value.style.display="none":D.value.style.visibility="visible"}L(A)})},"vNdN8b");
var T=function(){var B={};return B["yt-spec-avatar-shape__image"]=!0,B["yt-spec-avatar-shape__image--ads-app"]=b().type===1,B["yt-spec-avatar-shape__image--inscribed-square"]=b().type===2,B};
return _.v("yt-avatar-shape",null,_.v("div",{el:_.Wv(GMO(x,{keydown:function(B){if(B.key==="Enter"){var A;(A=B.currentTarget)==null||A.click()}},
click:function(B){var A,t;return void((t=(A=b()).onTap)==null?void 0:t.call(A,B))}})),
class:function(){var B={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},A=b();B=(B[A.clusterLayoutConfig?hyd(A.clusterLayoutConfig):qwO(A.size)]=!0,B["yt-spec-avatar-shape__button--tappable"]=x(),B);(A=b().avatarButtonCustomClassName)&&(B[A]=!0);return _.xU(B)},
"aria-label":function(){return x()?b().accessibilityText:""},
role:function(){return x()?"button":void 0},
tabindex:function(){return x()?0:void 0}},_.v("div",{class:function(){var B,A=b(),t=h==null?void 0:h(),y=V==null?void 0:V(),F=!((B=A.decorations)==null||!B.includes(2)||A.size!=="medium"&&A.size!=="large"),W=A.size==="tiny"||A.size==="extra-small",O,K,u,w,$a={};
B=($a["yt-spec-avatar-shape--live-ring"]=!!(((O=A.decorations)==null?0:O.includes(0))&&ltq(A.size)),$a["yt-spec-avatar-shape--stories-watched"]=F&&!(t==null||!t.storiesWatched),$a["yt-spec-avatar-shape--stories-unwatched"]=F&&!(t==null?0:t.storiesWatched),$a["yt-spec-avatar-shape--background-border"]=mmv(A.decorations)&&!W,$a["yt-spec-avatar-shape--background-border-thin"]=mmv(A.decorations)&&W,$a["yt-spec-avatar-shape__on-select-border"]=!((K=A.decorations)==null||!K.includes(4)),$a["yt-spec-avatar-shape__white-border"]=
!((u=A.decorations)==null||!u.includes(5)),$a["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((w=A.decorations)==null?0:w.includes(5))&&W),$a["yt-spec-avatar-shape--is-overlay"]=!!y,$a);return _.xU(B)},
style:function(){a:{var B=b().clusterLayoutConfig;if(B){b:{var A=B.numAvatarsInCluster;var t=B.avatarIndex;if(t!==A-1){switch(B.clusterSize){case "small":B="32";break;case "medium":B="36";break;case "40":B="40";break;default:A=void 0;break b}A="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+B+"x"+B+"_avatars_"+A+"_index_"+t+".svg"}else A=void 0}if(A){A=_.Ir({"-webkit-mask-image":"url("+A+")","mask-image":"url("+A+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}A=void 0}return A}},_.v("div",{class:function(){var B={};
var A=b();B=(B[A.clusterLayoutConfig?bgr(A.clusterLayoutConfig):Itr(A.size)]=!0,B["yt-spec-avatar-shape--no-margin"]=mmv(b().decorations),B["yt-spec-avatar-shape--square"]=b().type===2,B);return _.xU(B)}},_.v(_.Fu,{data:I,
alt:function(){return!x()&&b().accessibilityText?b().accessibilityText:""},
targetWidth:function(){return jpd(b().size)},
targetHeight:function(){return jpd(b().size)},
className:function(){return _.xU(T())}}),_.v(_.Q,{cond:function(){var B;
return((B=b().decorations)==null?void 0:B.includes(0))&&ltq(b().size)},
then:function(){return _.v("div",{class:function(){var B={};B=(B["yt-spec-avatar-shape__live-badge"]=!0,B["yt-spec-avatar-shape__live-badge--badge-small"]=b().size==="small",B["yt-spec-avatar-shape__live-badge--badge-medium"]=b().size==="medium"||b().size==="48",B["yt-spec-avatar-shape__live-badge--badge-large"]=b().size==="large",B["yt-spec-avatar-shape__live-badge--badge-extra-large"]=b().size==="extra-large"||b().size==="extra-extra-large"||b().size==="giant",B);return _.xU(B)}},_.v(_.Q,{cond:function(){return b().badgeText},
then:function(B){return _.v("div",{class:"yt-spec-avatar-shape__badge-text",el:D},B)}}),_.v(_.Q,{cond:k,
then:function(){return _.v("div",{class:"yt-spec-avatar-shape__badge-icon"},_.v(_.ha,{icon:f,size:function(){a:switch(b().size){case "extra-large":var B=16;break a;default:B=13}return B}}))}}))}}),_.v(_.Q,{cond:function(){var B,A;
return((B=b().decorations)==null?void 0:B.includes(1))||((A=b().decorations)==null?void 0:A.includes(0))&&!ltq(b().size)},
then:function(){return _.v("div",{class:function(){var B=b(),A,t,y={};var F=(y["yt-spec-avatar-shape__live-dot"]=!((A=B.decorations)==null||!A.includes(0)||ltq(B.size)),y["yt-spec-avatar-shape__new-content"]=!((t=B.decorations)==null||!t.includes(1)),y);return _.xU(F)}})}}),_.v(_.Q,{cond:function(){return!!l},
then:function(){return _.v("div",{class:function(){var B={};B=Object.assign((B["yt-spec-avatar-shape__image-overlays"]=!0,B),T());return _.xU(B)}},l==null?void 0:l())}})))))},"Oa");
oRQ.idomCompat={callbacks:{overlays:!0}};_.Om=_.C(function(G){function b(){I().endpoint&&_.Zm(I().endpoint)}
var I=G.data;var h=G.decorations;var q=G.avatarButtonCustomClassName;var l=G.isOverlay;var V=G.clusterLayoutConfig;return _.v("avatar-view-model",null,_.v(_.Q,{cond:function(){return I().image},
then:function(D){return _.v(oRQ,{data:function(){return V_a({data:I(),onTap:I().endpoint?b:void 0,decorations:h==null?void 0:h(),badgeText:void 0,accessibilityText:I().accessibilityText,avatarButtonCustomClassName:q==null?void 0:q(),clusterLayoutConfig:V==null?void 0:V()})},
image:D,iconType:"RADAR_LIVE",overlays:function(){return _.v(tZW,{data:I})},
isOverlay:l})}}))},"Pa");
_.Om.idomCompat=!0;_.w1=_.C(function(G){var b=G.data;G=G.className;var I=_.VF("yt-decorated-avatar-view-model"),h=function(){return _.g(b().avatar,_.AW)},q=_.P$(function(){var l,V=b(),D=h(),k=_.BH(b().rendererContext),L=(l=I.value)!=null?l:void 0,x;
if(D){L={data:V,avatar:D,onTap:k,element:L};l=L.data;V=L.avatar;D=L.onTap;k=L.element;L=L.commandController;D=D?vDr(D,k,L):void 0;k=[];l.liveData&&k.push(0);var f;L=(f=l.liveData)==null?void 0:f.liveBadgeText;f=(x=_.g(l.rendererContext,_.DA))==null?void 0:x.label;x=V_a({data:V,onTap:D,decorations:k,badgeText:L,accessibilityText:f?f:l.a11yLabel})}else x={size:"medium"};return x},void 0,"c00kWd");
return _.v("yt-decorated-avatar-view-model",{class:_.pG("ytDecoratedAvatarViewModelHost",G),el:I},_.v(_.Q,{cond:function(){var l;return(l=h())==null?void 0:l.image},
then:function(l){return _.v(oRQ,{data:q,image:l,iconType:"RADAR_LIVE",overlays:function(){return _.v(tZW,{data:h})}})}}))},"Qa");
_.w1.idomCompat=!0;_.Em=_.C(function(G){var b=function(){var D;return Object.assign({},G.data(),(D=G.overrides)==null?void 0:D.call(G))},I=function(){return _.U2(b().rendererContext)},h=function(){var D=b().avatars,k,L;
return(L=(k=(D==null?0:D[0])?_.g(D[0],_.AW):void 0)==null?void 0:k.avatarImageSize)!=null?L:"AVATAR_SIZE_UNKNOWN"},q=function(){return kMB(b())},l=function(){if(b().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var D=void 0;
else if((D=G.decorations)==null?0:D.call(G))D=G.decorations();else{D=b();var k=0;D.avatars&&(k+=D.avatars.length);D.decoratedText&&(k+=1);D=k>1?[3]:[]}return D},V={};
return _.v("yt-avatar-stack-view-model",{el:_.Wv(_.s2(function(){return b().rendererContext})),
class:_.pG("yt-avatar-stack-view-model",G.className,(V["yt-avatar-stack-view-model--tappable"]=I,V["yt-avatar-stack-view-model--is-overlay"]=G.isOverlay,V["yt-avatar-stack-view-model--medium-text"]=G.useMediumText,V)),tabindex:function(){return I()?0:void 0},
role:function(){return I()?"link":void 0},
"aria-label":function(){var D,k;return(k=(D=_.g(b().rendererContext,_.DA))==null?void 0:D.label)!=null?k:""}},_.v(_.Q,{cond:function(){var D;
return b().avatars&&!((D=G.hideAvatar)==null?0:D.call(G))},
then:function(){return _.v("div",{class:"yt-avatar-stack-view-model__avatars"},_.v(_.Q,{cond:function(){return b().decoratedText},
then:function(D){var k={};return _.v("div",{class:_.pG("yt-avatar-stack-view-model__text-container",(k["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return h()==="AVATAR_SIZE_XXS"||h()==="AVATAR_SIZE_XS"},k["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var L;
return((L=G.isOverlay)==null?void 0:L.call(G))&&(h()==="AVATAR_SIZE_XXS"||h()==="AVATAR_SIZE_XS")},k)),
style:_.Ir({width:function(){return q().avatarSizeInPx+"px"},
height:function(){return q().avatarSizeInPx+"px"}})},_.v(_.IS,{text:D,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.v("div",{style:function(){return _.Ir(q().avatarStackStyle)()},
class:function(){return q().avatarStackClass}},_.v(_.VX,{data:function(){return q().avatars.reverse()}},{avatarViewModel:function(D,k){return _.v("div",{style:function(){var L,x;
return _.Ir((x=(L=q()).avatarStyle)==null?void 0:x.call(L,k()))()},
class:function(){return q().avatarClass}},_.v(_.Om,{data:D.data,
decorations:l,avatarButtonCustomClassName:function(){return q().avatarButtonCustomClassName},
isOverlay:G.isOverlay,clusterLayoutConfig:function(){var L,x;return(x=(L=q()).clusterLayoutConfig)==null?void 0:x.call(L,k())}}))},
decoratedAvatarViewModel:function(D,k){return _.v("div",{style:function(){var L,x;return _.Ir((x=(L=q()).avatarStyle)==null?void 0:x.call(L,k()))()},
class:function(){return q().avatarClass}},_.v(_.w1,{data:D.data}))}})))}}),_.v(_.Q,{cond:function(){return b().text},
then:function(D){return _.v(_.IS,{text:D,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.Em.idomCompat=!0;_.JN(_.C(function(G){var b=G.data;var I=G.thumbnailSize;return _.v("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.v("div",{class:_.pG("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Ljv(I==null?void 0:I())})},_.v(_.VX,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(h){return _.v(_.Em,{data:h.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.hV,
thumbnailSize:_.hV}});var ihn=_.C(function(G){G=_.N5(G,{hidden:!1});var b=G.data;G=G.hidden;return _.v("yt-thumbnail-overlay-title-view-model",{class:_.pG("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(b().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var I="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:I="ytThumbnailOverlayTitleViewModelPositionTop"}return I}),
hidden:G},_.v(_.Q,{cond:function(){return b().leadingContent},
then:function(I){return _.v("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.v(_.VX,{data:I},{decoratedAvatarViewModel:_.w1}))}}),_.v("div",null,_.v(_.IS,{text:function(){return b().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.v(_.Q,{cond:function(){return b().subtitle},
then:function(){return _.v(_.IS,{text:function(){return b().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
ihn.idomCompat=!0;_.JN(ihn,"yt-thumbnail-overlay-title-view-model",{props:{data:_.hV,hidden:_.hV}});_.PVu=_.C(function(G){G=_.N5(G,{isClip:!1});var b=G.data,I=G.thumbnailSize,h={};return _.v("yt-thumbnail-overlay-badge-view-model",{class:_.pG("yt-thumbnail-overlay-badge-view-model",function(){a:switch(b().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var q="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:q="yt-thumbnail-overlay-badge-view-model--bottom-end"}return q},function(){return Qpv(I==null?void 0:I())},(h["yt-thumbnail-overlay-badge-view-model--clip"]=G.isClip,
h))},_.v(_.VX,{data:function(){return b().thumbnailBadges}},{thumbnailBadgeViewModel:function(q){return _.v(MZe,{data:q.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.PVu.idomCompat=!0;_.JN(_.PVu,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.hV,thumbnailSize:_.hV,isClip:_.hV}});var d4J=_.C(function(G){var b=G.data;G=G.hidden;var I=_.P$(function(){return b().indicatorCount||0},void 0,"AbKnMc"),h={};
return _.v("yt-page-indicator-view-model",{class:_.pG("ytPageIndicatorViewModelHost",(h.ytPageIndicatorViewModelIndicatorHidden=function(){return!b().indicatorCount},h)),
hidden:G},_.v(_.aj,{each:function(){return Array(I())}},function(q,l){var V={};
return _.v("div",{class:_.pG("ytPageIndicatorViewModelIndicator",(V.ytPageIndicatorViewModelIndicatorSelected=function(){return b().selectedIndex===l()},V))})}))},"Va");
d4J.idomCompat=!0;_.JN(d4J,"yt-page-indicator-view-model",{props:{data:_.hV,hidden:_.hV}});var pq=function(){var G=_.a.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};
_.M(pq,_.a);_.m=pq.prototype;
_.m.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:_.U("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"}}};
_.m.onImageLoaded=function(){this.loaded=!0};
_.m.onImageUnloaded=function(){this.loaded=!1};
_.m.computeRichThumbnail=function(G,b,I,h){if(G&&b&&!h&&!_.U("disable_moving_thumbs_handling")&&!I)return b};
_.m.computeImageWidth=function(G,b){return b||9999};
_.m.computeIsOriginalAspectRatio=function(G){return G};
_.m.computeIsLive=function(G){if(G==null?0:G.badges)for(var b=0;b<G.badges.length;b++){var I=G.badges[b];if(I.metadataBadgeRenderer&&I.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(G==null?0:G.thumbnailOverlays)for(b=0;b<G.thumbnailOverlays.length;b++)if(I=G.thumbnailOverlays[b],I.thumbnailOverlayTimeStatusRenderer&&I.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.m.computeObjectFit=function(G,b){return b||(G?"CONTAIN":"")};
_.m.computeNavigationEndpoint=function(G,b,I){return G?b:I};
_.m.computeHasClip=function(G){G=_.e(G||[]);for(var b=G.next();!b.done;b=G.next())if(b.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.m.computeOverlayColor=function(G){var b;return(G==null?0:(b=G.darkColorPalette)==null?0:b.section2Color)?G.darkColorPalette.section2Color:G==null?void 0:G.sampledThumbnailColor};
_.kV.Object.defineProperties(pq.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Ylj(this.width)}}});
pq.prototype.onImageUnloaded=pq.prototype.onImageUnloaded;pq.prototype.onImageLoaded=pq.prototype.onImageLoaded;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],pq.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(V48),_.n("design:type",Object)],pq.prototype,"ytdThumbnailBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],pq.prototype,"componentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],pq.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],pq.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],pq.prototype,"circular",void 0);
_.R([_.H({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.n("design:type",Object)],pq.prototype,"richThumbnail",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.n("design:type",Boolean)],pq.prototype,"hasClip",void 0);_.R([_.H(),_.n("design:type",Object)],pq.prototype,"eventSink",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],pq.prototype,"queued",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],pq.prototype,"richGridThumbnail",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],pq.prototype,"useExpandableTooltip",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],pq.prototype,"useUntranslatedNavigationEndpoint",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],pq.prototype,"disableInteraction",void 0);
_.R([_.H({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.n("design:type",Object)],pq.prototype,"computedNavigationEndpoint",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],pq.prototype,"nowPlayingEqualizerOnly",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],pq.prototype,"hidePlaybackStatus",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],pq.prototype,"objectFit",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],pq.prototype,"noRoundedCorners",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],pq.prototype,"watchFeedThumbnail",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],pq.prototype,"isPreviewLoading",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.n("design:type",Object)],pq.prototype,"isOriginalAspectRatio",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.n("design:type",Object)],pq.prototype,"computedObjectFit",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.n("design:type",Boolean)],pq.prototype,"isLiveVideo",void 0);
_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],pq.prototype,"loaded",void 0);_.R([_.H({computed:"computeOverlayColor(data.thumbnail)"}),_.n("design:type",Object)],pq.prototype,"overlayColor",void 0);_.R([_.H(),_.n("design:type",Boolean)],pq.prototype,"minimizePipBreakages",void 0);_.R([_.H({selector:_.HPq}),_.n("design:type",Boolean)],pq.prototype,"inlinePreviewIsEnabled",void 0);_.R([_.H(),_.n("design:type",Number)],pq.prototype,"width",void 0);
_.R([_.P("inlinePreviewIsEnabled"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],pq.prototype,"isPreviewDisabled",null);_.R([_.P("width"),_.n("design:type",String),_.n("design:paramtypes",[])],pq.prototype,"thumbnailSize",null);_.R([_.hI("image-loaded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pq.prototype,"onImageLoaded",null);
_.R([_.hI("image-unloaded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pq.prototype,"onImageUnloaded",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-thumbnail"})],pq);
var ySJ=_.R9()(pq,"ytd-thumbnail",function(){if(gRA===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);gRA=G}G=gRA;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 T_O=function(G){var b=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15101_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15101_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(I){rSJ(b,I)};
this.onLockupMouseLeaveFn=function(I){I=I.relatedTarget;var h,q;((h=document.getElementsByTagName("ytd-video-preview"))==null?0:(q=h.item(0))==null?0:q.contains(I))||(b.terminateVideoPreview(),S$(b))};
this.onThumbnailMouseDownFn=function(){b.terminateVideoPreview();S$(b)};
this.onTouchStart=function(){b.JSC$15101_touched=!0};
this.mediaRenderer=G.mediaRenderer;this.thumbnailElement=G.thumbnailElement;this.lockupElement=G.lockupElement;this.videoPreviewOptsInput=G.videoPreviewOpts;FyJ(this);Xd(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)):
_.RB(Error("Fh")):_.RB(Error("Gh")):Hhu(this)},NA=function(G){Hhu(G);
var b;(b=G.lockupElement)==null||b.removeEventListener("mouseenter",G.onMouseMoveFn);var I;(I=G.lockupElement)==null||I.removeEventListener("mouseleave",G.onLockupMouseLeaveFn);var h;(h=G.lockupElement)==null||h.removeEventListener("touchstart",G.onTouchStart);var q;(q=G.thumbnailElement)==null||q.removeEventListener("mousedown",G.onThumbnailMouseDownFn);S$(G)},FyJ=function(G){G.inlinePreviewIsEnabledForUser=_.Cw().getState().ui.inlinePreviewIsEnabled;
G.unsubscribeFromInlinePreviewIsEnabled=_.Nj(_.Cw(),_.HPq,function(b){(G.inlinePreviewIsEnabledForUser=b)||S$(G)});
G.JSC$15101_unsubscribeFromInlinePreviewIsActive=_.Nj(_.Cw(),_.Fku,function(b){(G.inlinePreviewIsActive=b)||S$(G)})},Hhu=function(G){G.unsubscribeFromInlinePreviewIsEnabled();
G.unsubscribeFromInlinePreviewIsEnabled=function(){};
G.JSC$15101_unsubscribeFromInlinePreviewIsActive();G.JSC$15101_unsubscribeFromInlinePreviewIsActive=function(){}},rSJ=function(G,b){b.buttons>0||(b=_.Te("kevlar_lockup_hover_delay",-1),G.JSC$15101_touched&&b>=0?(_.uu.cancelJob(G.videoPreviewJobId),G.videoPreviewJobId=_.O0(_.uu,function(){Wyi(G)},b),G.JSC$15101_touched=!1):Wyi(G))},fxO=function(G){G.videoPreviewJobId=_.O0(_.uu,function(){return _.c(function(b){return b.yield(a2b(G,{isAutoplay:!0}),0)})})},Wyi=function(G){!G.previewTriggered&&Xd(G)&&
(G.inlinePreviewIsActive&&G.terminateVideoPreview(),G.previewTriggered=!0,G.mediaRenderer.isInlinePreviewTriggered=!0,_.uu.cancelJob(G.videoPreviewJobId),G.videoPreviewJobId=_.O0(_.uu,function(){return _.c(function(b){return b.yield(a2b(G),0)})}))},a2b=function(G,b){b=b===void 0?{}:b;
var I=b.isAutoplay===void 0?!1:b.isAutoplay;var h,q,l,V;return _.c(function(D){if(D.nextAddress==1){if(!Xd(G))return D.return();h=G.getVideoPreviewOpts();if(!h)return D.return();I&&(h.isAutoplay=!0);return(l=(q=_.E3(G.mediaRenderer.hostElement,"yt-open-video-preview-action",[h]))&&q[0])?D.yield(q[0],3):D.jumpTo(2)}D.nextAddress!=2&&(l=D.yieldResult===1);if(l){var k=(V=G.mediaRenderer)==null?void 0:V.data;k&&(ft2(k)?delete k.inlinePlayerData:"inlinePlaybackEndpoint"in k&&delete k.inlinePlaybackEndpoint)}_.ip(D)})};
T_O.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var G,b;if((b=(G=this.videoPreviewOptsInput)==null?void 0:G.videoPreviewData)!=null)G=b;else if(G=this.mediaRenderer.data)if(ft2(G))G={inlinePlaybackEndpoint:_.s0(G.inlinePlayerData.onVisible),navigationEndpoint:_.s0(G.onTap),thumbnail:"image"in G?G.image:G.thumbnail,thumbnailOverlays:void 0,accessibilityText:xma(G)};else if("multipleInlinePlaybackEndpoint"in G){var I=_.g(_.g(G.multipleInlinePlaybackEndpoint,YKi),CQn);if(I!=
null&&I.playerDescriptors){b=[];I=_.e(I.playerDescriptors);for(var h=I.next();!h.done;h=I.next())h=h.value,b.push({inlinePlaybackEndpoint:h.inlinePlaybackEndpoint,navigationEndpoint:h.navigationEndpoint,thumbnail:h.thumbnail,thumbnailOverlays:h.thumbnailOverlays,accessibilityText:xma(G)});G=b}else G=void 0}else G={inlinePlaybackEndpoint:G.inlinePlaybackEndpoint,navigationEndpoint:G.navigationEndpoint,thumbnail:G.thumbnail,thumbnailOverlays:G.thumbnailOverlays,accessibilityText:xma(G)};else G=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:G,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Xd=function(G){var b;if(b=G.inlinePreviewIsEnabledForUser)b=(G=G.mediaRenderer.data)?"inlinePlaybackEndpoint"in G&&G.inlinePlaybackEndpoint||ft2(G)&&G.inlinePlayerData||"multipleInlinePlaybackEndpoint"in G&&G.multipleInlinePlaybackEndpoint?!0:!1:!1;return b};
T_O.prototype.terminateVideoPreview=function(){_.wL(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var S$=function(G){_.uu.cancelJob(G.videoPreviewJobId);G.inlinePreviewIsActive=!1;G.previewTriggered=!1;G.mediaRenderer.isInlinePreviewTriggered=!1};var NJ5=_.WP(["#"]),$r=function(){var G=_.a.apply(this,arguments)||this;G.isDisabled=!1;return G};
_.M($r,_.a);_.m=$r.prototype;
_.m.configureRendererStamper=function(){return{"data.menu":yV,"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"}}}};
_.m.attached=function(){this.updateInlinePreviewHoverListeners()};
_.m.detached=function(){this.clearInlinePreviewHoverListeners()};
_.m.getMetadata=function(G){var b=[];if(G.metadataText&&Object.keys(G.metadataText).length>0){var I=this.ytRendererBehavior.getSimpleString(G.metadataText);G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&(I=_.LM(I,Number(G.upcomingEventData.startTime)));b.push(I)}else G.shortViewCountText&&b.push(this.ytRendererBehavior.getSimpleString(G.shortViewCountText)),G.publishedTimeText&&b.push(this.ytRendererBehavior.getSimpleString(G.publishedTimeText)),G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&
(I=this.ytRendererBehavior.getSimpleString(G.upcomingEventData.upcomingEventText),b.push(_.LM(I,Number(G.upcomingEventData.startTime))));return b};
_.m.calculateBylineText=function(G){return G.shortBylineText?G.shortBylineText:G.bylineText?G.bylineText:null};
_.m.calculateIsDisabled=function(G){return!!G.isDisabled};
_.m.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G)||_.lJa(NJ5)};
_.m.onDetailsTap=function(G){var b=this.data&&this.data.navigationEndpoint;b&&!_.NK(_.Wy(G)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.U("kevlar_grid_video_renderer_killswitch")?_.O3(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b))};
_.m.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.m.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15108_inlinePreviewHoverListener=Mt({mediaRenderer:this,lockupElement:_.Eo(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Eo(this.hostElement).querySelector("ytd-thumbnail")})};
_.m.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15108_inlinePreviewHoverListener)==null||NA(G)};
_.m.computeThumbnailWidth=function(G,b){return b&&b>0?b:G?360:210};
_.m.computeNumBadgesInRow=function(G){var b;return((b=G.badges)==null?void 0:b.length)||0};
_.m.computeShowChannelThumbnail=function(G,b){var I;return b&&!!(G==null?0:(I=G.channelThumbnailSupportedRenderers)==null?0:I.channelThumbnailWithLinkRenderer)};
_.kV.Object.defineProperties($r.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15108_inlinePreviewHoverListener)==null?0:Xd(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}}});
$r.prototype.dataChanged=$r.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],$r.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],$r.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.z(_.ho),_.n("design:type",Object)],$r.prototype,"ytdLockupBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],$r.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],$r.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],$r.prototype,"noEndpoints",void 0);_.R([_.H({computed:"calculateBylineText(data)"}),_.n("design:type",Object)],$r.prototype,"bylineText",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],$r.prototype,"isSearch",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],$r.prototype,"isDownloading",void 0);_.R([_.H({reflectToAttribute:!0,value:0}),_.n("design:type",Number)],$r.prototype,"width",void 0);_.R([_.H({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.n("design:type",Object)],$r.prototype,"isDisabled",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$r.prototype,"dataChanged",null);_.R([_.P("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$r.prototype,"isHovered",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$r.prototype,"hasAttributedBylineText",null);
_.R([_.P("bylineText","hasAttributedBylineText"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$r.prototype,"showBylineText",null);_.R([_.N({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],$r);
_.J($r,"ytd-grid-video-renderer",function(){if(D45!==void 0)return D45;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return D45=G},{mode:_.nn("kevlar_poly_si_batch_j047")?1:2});var YWn;var GC=function(){var G=_.a.apply(this,arguments)||this;G.roundedContainer=!0;G.skipRoundingTop=!1;G.disableTopPadding=!1;G.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");G.extractOverlay=!1;return G};
_.M(GC,_.a);GC.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
GC.prototype.onClick=function(G){var b,I=(b=this.data)==null?void 0:b.sourceEndpoint;!_.NK(_.Wy(G),this.hostElement,["A".toString()])&&I&&_.O3(this.hostElement,"yt-navigate",{endpoint:I})};
_.kV.Object.defineProperties(GC.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,b;return(b=(G=this.data)==null?void 0:G.paragraphMaxLines)!=null?b:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],GC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],GC.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],GC.prototype,"showVerticalDividers",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],GC.prototype,"roundedContainer",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],GC.prototype,"skipRoundingTop",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],GC.prototype,"disableTopPadding",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],GC.prototype,"amsterdamEnabled",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],GC.prototype,"extractOverlay",void 0);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],GC.prototype,"showMetadataAtTop",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],GC.prototype,"showMetadataBelowTitle",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.menu"),_.n("design:type",Object),_.n("design:paramtypes",[])],GC.prototype,"hasMenu",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data.truncateParagraphs"),_.n("design:type",Object),_.n("design:paramtypes",[])],GC.prototype,"truncateParagraphs",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.paragraphMaxLines"),_.n("design:type",Number),_.n("design:paramtypes",[])],GC.prototype,"paragraphMaxLines",null);
_.R([_.H({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.P("data.background"),_.n("design:type",Object),_.n("design:paramtypes",[])],GC.prototype,"background",null);_.R([_.N({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],GC);
_.J(GC,"ytd-info-panel-content-renderer",function(){if(YWn!==void 0)return YWn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YWn=G},{mode:_.nn("kevlar_poly_si_batch_j076")?1:2});var CVX;var JSz;var Kyz;var ukJ;var br=function(){return _.a.apply(this,arguments)||this};
_.M(br,_.a);br.prototype.computeStyle=function(G){return G};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],br.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],br.prototype,"style_",void 0);_.R([_.g8({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],br);
_.J(br,"yt-channel-thumbnail-with-link-renderer",function(){if(ukJ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;Kyz===void 0&&(Kyz=document.createElement("template"));var h=Kyz;I.call(b,h.content.cloneNode(!0),G.content.firstChild);ukJ=G}G=ukJ;return G},{mode:2});var Is=function(){return _.a.apply(this,arguments)||this};
_.M(Is,_.a);Is.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"}}}};
Is.prototype.computeTitleStyle=function(G){return G||null};
Is.prototype.computeAvatarStyle=function(G){return G||null};
Is.prototype.computeShowNavigationButton=function(G,b){return!(G==null||!G.navigationButton||b)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Is.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Is.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Is.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.n("design:type",String)],Is.prototype,"titleStyle",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.n("design:type",String)],Is.prototype,"avatarStyle",void 0);_.R([_.H(),_.n("design:type",Boolean)],Is.prototype,"hideNavigationButton",void 0);_.R([_.N({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Is);
_.J(Is,"ytd-rich-list-header-renderer",function(){if(JSz!==void 0)return JSz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return JSz=G},{mode:_.nn("kevlar_poly_si_batch_j058")?1:2});var hE=function(){return _.a.apply(this,arguments)||this};
_.M(hE,_.a);hE.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],hE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],hE.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],hE.prototype,"isSearch",void 0);_.R([_.N({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],hE);
_.J(hE,"ytd-preview-card-renderer",function(){if(CVX!==void 0)return CVX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return CVX=G},{mode:1});var Rsn;var qI=function(){return _.a.apply(this,arguments)||this};
_.M(qI,_.a);qI.prototype.configureRendererStamper=function(){return{"data.menu":yV}};
qI.prototype.dataChanged=function(){var G=this.get("colorExtractionPalette.section1Color",this.data);G=_.Uo(G);_.G8(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":G})};
qI.prototype.computeCardStyle=function(G){return this.get("style.value",G)||null};
qI.prototype.dataChanged=qI.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],qI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],qI.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],qI.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.n("design:type",String)],qI.prototype,"cardStyle",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qI.prototype,"dataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],qI);
_.J(qI,"ytd-compact-channel-recommendation-card-renderer",function(){if(Rsn!==void 0)return Rsn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Rsn=G},{mode:1});var nRQ;var Ohz;var jl=function(){var G=_.a.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};
_.M(jl,_.a);_.m=jl.prototype;_.m.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.m.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.m.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var G=_.Eo(this.hostElement),b=G.childNodes,I=document.createDocumentFragment(),h=G.childNodes.length-1;h>=0;h--)_.Eo(I).appendChild(b[h]);_.U("enable_shadydom_free_scoped_node_methods")?_.pX(this.hostElement).appendChild(I):G.appendChild(I)}};
_.m.ready=function(){var G=this;_.iH(function(){G.initChildrenObserver()},1)};
_.m.attached=function(){var G;(G=this.resizeObserver)==null||G.observe(this.content)};
_.m.detached=function(){this.detachObserver()};
_.m.toggle=function(G,b){this.canToggle&&(this.isToggled=b,_.O3(this.hostElement,"yt-refit"),G&&G.stopPropagation())};
_.m.reset=function(){this.childrenChanged()};
_.m.onIronResize=function(){this.recomputeOnResize&&!_.U("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.m.computeIsMoreVisible=function(G,b){return G&&!b};
_.m.computeShouldUseNumberOfLines=function(G){try{return!!G&&window.CSS.supports("-webkit-line-clamp","1")}catch(b){}return!1};
_.m.computeIsLessVisible=function(G,b){return G&&b};
_.m.observeCollapsedHeightAndMaxLines=function(){var G=this.collapsedHeight,b=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.G8(this.hostElement,{"--ytd-expander-max-lines":""+b,"--ytd-expander-collapsed-height":""}):_.G8(this.hostElement,{"--ytd-expander-collapsed-height":G+"px","--ytd-expander-max-lines":""})};
_.m.handleMoreTap=function(G){this.disableToggle||(_.O3(this.hostElement,"yt-expander-more-tapped"),this.toggle(G,!0))};
_.m.handleLessTap=function(G){_.O3(this.hostElement,"yt-expander-less-tapped");this.toggle(G,!1)};
_.m.initChildrenObserver=function(){var G=this;this.observer=new MutationObserver(function(){G.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.U("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.GB(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var b;(b=G.resizeThrottle)==null||b.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.m.childrenChanged=function(){var G=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){nG(function(){G.canToggleJobId=0;G.calculateCanCollapse()})}))};
_.m.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};
_.m.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.m.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("collapsed-changed",this.collapsed))};
_.m.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("is-toggled-changed",this.isToggled))};
_.m.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("can-toggle-changed",this.canToggle))};
_.kV.Object.defineProperties(jl.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
jl.prototype.canToggleChangedForBinding=jl.prototype.canToggleChangedForBinding;jl.prototype.isToggledChangedForBinding=jl.prototype.isToggledChangedForBinding;jl.prototype.collapsedChangedForBinding=jl.prototype.collapsedChangedForBinding;jl.prototype.observeCollapsedHeightAndMaxLines=jl.prototype.observeCollapsedHeightAndMaxLines;jl.prototype.onIronResize=jl.prototype.onIronResize;jl.prototype.reversedChanged=jl.prototype.reversedChanged;jl.prototype.toggledChanged=jl.prototype.toggledChanged;
jl.prototype.alwaysToggleableChanged=jl.prototype.alwaysToggleableChanged;_.R([_.z(_.Y6),_.n("design:type",Object)],jl.prototype,"ironResizableBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],jl.prototype,"alignAuto",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],jl.prototype,"collapsed",void 0);_.R([_.H(),_.n("design:type",Object)],jl.prototype,"isToggled",void 0);_.R([_.H(),_.n("design:type",Object)],jl.prototype,"alwaysCollapsed",void 0);
_.R([_.H(),_.n("design:type",Object)],jl.prototype,"canToggle",void 0);_.R([_.H(),_.n("design:type",Object)],jl.prototype,"collapsedHeight",void 0);_.R([_.H(),_.n("design:type",Object)],jl.prototype,"disableToggle",void 0);_.R([_.H(),_.n("design:type",Object)],jl.prototype,"alwaysToggleable",void 0);_.R([_.H(),_.n("design:type",Object)],jl.prototype,"reversed",void 0);_.R([_.H(),_.n("design:type",Number)],jl.prototype,"maxNumberOfLines",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.n("design:type",Object)],jl.prototype,"shouldUseNumberOfLines",void 0);_.R([_.H(),_.n("design:type",Object)],jl.prototype,"recomputeOnResize",void 0);_.R([_.lH("#content"),_.n("design:type",HTMLDivElement)],jl.prototype,"content",void 0);_.R([_.Dd("alwaysToggleable"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jl.prototype,"alwaysToggleableChanged",null);
_.R([_.Dd("isToggled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jl.prototype,"toggledChanged",null);_.R([_.P("canToggleJobId"),_.n("design:type",Object),_.n("design:paramtypes",[])],jl.prototype,"isResetting",null);_.R([_.q5("reversed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jl.prototype,"reversedChanged",null);
_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jl.prototype,"onIronResize",null);_.R([_.q5("maxNumberOfLines","collapsedHeight"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jl.prototype,"observeCollapsedHeightAndMaxLines",null);_.R([_.q5("collapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jl.prototype,"collapsedChangedForBinding",null);
_.R([_.q5("isToggled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jl.prototype,"isToggledChangedForBinding",null);_.R([_.q5("canToggle"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jl.prototype,"canToggleChangedForBinding",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-expander"})],jl);
_.J(jl,"ytd-expander",function(){if(Ohz!==void 0)return Ohz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ohz=G},{mode:1});var lr=function(){return _.a.apply(this,arguments)||this};
_.M(lr,_.a);lr.prototype.computeIsCarousel=function(G){return!!G.isCarousel};
lr.prototype.observeLightsourcePalette=function(){var G,b=(G=this.data)==null?void 0:G.vibrantsourceColorPaletteData;b&&_.vN(this.hostElement,b)};
lr.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
lr.prototype.observeLightsourcePalette=lr.prototype.observeLightsourcePalette;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],lr.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lr.prototype,"data",void 0);_.R([_.H({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],lr.prototype,"isCarousel",void 0);
_.R([_.q5("data.vibrantsourceColorPaletteData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lr.prototype,"observeLightsourcePalette",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],lr);
_.J(lr,"ytd-media-upsell-renderer",function(){if(nRQ!==void 0)return nRQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return nRQ=G},{mode:2});var wEW;var m5=function(){var G=_.a.apply(this,arguments)||this;G.JSC$15135_playerEvents=new Map;G.listeningToPlayer=!1;G.startX=0;G.active=!1;G.shouldShowButtons=_.U("web_buttons_hidden_killswitch");G.isHighlighted=!1;G.useHighlightStyling=_.U("web_enable_deeper_metadata_highlight_styling");G.enableProblemWalkthrough=_.U("problem_walkthrough_sd");return G};
_.M(m5,_.a);_.m=m5.prototype;
_.m.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}}}}}};
_.m.created=function(){this.JSC$15135_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.m.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.I9(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.I9(this,this.onActiveUpdate))};
_.m.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.I9(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.I9(this,this.onActiveUpdate))};
_.m.onDataChanged=function(){this.removePlayerListeners()};
_.m.onColorPaletteChange=function(){var G={},b;if(_.o_()==="USER_INTERFACE_THEME_DARK"&&((b=this.data)==null?0:b.darkColorPalette)){var I=this.data.darkColorPalette;G["--ytd-macro-markers-list-item-background-color"]=_.so(this.get("section2Color",I))}else{var h;_.o_()==="USER_INTERFACE_THEME_LIGHT"&&((h=this.data)==null?0:h.lightColorPalette)&&(I=this.data.lightColorPalette,G["--ytd-macro-markers-list-item-background-color"]=_.so(this.get("section3Color",I)))}I?(G["--ytd-macro-markers-list-item-title-color"]=
_.so(this.get("primaryTitleColor",I)),G["--ytd-macro-markers-list-item-secondary-color"]=_.so(this.get("secondaryTitleColor",I)),G["--ytd-macro-markers-list-item-timestamp-background-color"]=_.so(this.get("section1Color",I)),this.customButtonProperties={customColors:{color:_.so(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);_.G8(this.hostElement,G)};
_.m.onEndpointMouseDown=function(G){this.startX=G.clientX};
_.m.onEndpointClick=function(G){var b=this,I,h,q;return _.c(function(l){if(l.nextAddress==1){if(b.startX!==G.clientX)return G.preventDefault(),l.return();b.data&&b.ytRendererBehavior.logExplicitClick(b.data);if(!b.seekWithAnimationOnClick)return l.jumpTo(0);if(G.button!==0||G.shiftKey||G.altKey||G.metaKey||G.ctrlKey||_.NK(_.Wy(G),b.hostElement,["BUTTON".toString()]))return l.return();G.stopPropagation();G.preventDefault();return b.data?l.yield(_.uk().getPlayerPromise(),3):l.return()}I=l.yieldResult;
q=(h=_.g(b.data.onTap,_.Wq))==null?void 0:h.startTimeSeconds;q!==void 0&&I.seekToTimeWithAnimation(q*1E3,_.NO(b.data.title));_.ip(l)})};
_.m.computeLayout=function(G){return G};
_.m.computeIsHighlighted=function(G){return!!G};
_.m.computeCarouselType=function(G){return G};
_.m.hideCarousel=function(G){return this.hideThumbnail(G)};
_.m.hideThumbnail=function(G){return this.enableProblemWalkthrough&&G!==null&&G==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.m.onRepeatButtonToggle=function(G){var b=this;G.detail.toggled&&_.uk().getPlayerPromise().then(function(I){b.ytPlayerListenerBehavior.listenToPlayerEvents(I,b.JSC$15135_playerEvents);b.listeningToPlayer=!0})};
_.m.onLoopRangeChange=function(G){var b=_.Eo(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(b){var I=b.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",b.polymerController.data);if(I){var h=Number(I.endTimeMs);if(Number(I.startTimeMs)!==(G==null?void 0:G.startTimeMs)||h!==(G==null?void 0:G.endTimeMs))b.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.m.removePlayerListeners=function(){var G=this;this.listeningToPlayer&&_.uk().getPlayerPromise().then(function(b){G.ytPlayerListenerBehavior.unlistenFromPlayerEvents(b,G.JSC$15135_playerEvents);G.listeningToPlayer=!1})};
_.m.onActiveUpdate=function(G){this.active=G.detail.active};
m5.prototype.onColorPaletteChange=m5.prototype.onColorPaletteChange;m5.prototype.onDataChanged=m5.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],m5.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],m5.prototype,"ytPlayerListenerBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],m5.prototype,"data",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],m5.prototype,"useCustomColors",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],m5.prototype,"active",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],m5.prototype,"shouldShowButtons",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.n("design:type",String)],m5.prototype,"layout",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.n("design:type",Object)],m5.prototype,"isHighlighted",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],m5.prototype,"useHighlightStyling",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],m5.prototype,"enableProblemWalkthrough",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.n("design:type",String)],m5.prototype,"carouselType",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],m5.prototype,"useColorSampling",void 0);_.R([_.H(),_.n("design:type",Boolean)],m5.prototype,"seekWithAnimationOnClick",void 0);_.R([_.H(),_.n("design:type",Object)],m5.prototype,"customButtonProperties",void 0);
_.R([_.lH("#repeat-button"),_.n("design:type",HTMLElement)],m5.prototype,"repeatButton",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],m5.prototype,"onDataChanged",null);_.R([_.q5("data.lightColorPalette","data.darkColorPalette"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],m5.prototype,"onColorPaletteChange",null);_.R([_.N({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],m5);
_.J(m5,"ytd-macro-markers-list-item-renderer",function(){if(wEW!==void 0)return wEW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return wEW=G},{mode:1});var ERO;var pEn;var el=function(){return _.a.apply(this,arguments)||this};
_.M(el,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],el.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],el.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],el);
_.J(el,"ytd-title-and-button-list-header-renderer",function(){if(pEn!==void 0)return pEn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return pEn=G},{mode:1});var SWJ;var XEA=new _.q3("BUTTON_RENDERER_TOKEN");_.Vo=_.C(function(G){var b=_.LL().resolve(XEA);return _.v(b,Object.assign({},G,{overrides:G.buttonOverrides}))},"Wa");var $Yi=_.C(function(G){var b=G.data,I=_.a9(G.useSquareAspectRatio,!1);return _.v("dismissed-mini-game-card-view-model",null,_.v(_.Q,{cond:function(){var h,q;return(h=b().responseText)==null?void 0:(q=h.runs)==null?void 0:q.length},
then:function(){var h={};return _.v("div",{class:_.pG("yt-mini-game-card-view-model__dismissed-card",(h["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!I()},h["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.U("web_game_card_force_2_by_3")},h["yt-mini-game-card-view-model--dismissed-square-card"]=I,h))},_.v("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.v(_.Q,{cond:function(){return b().responseText.runs[0].text},
then:function(q){return _.v("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:q},q)}}),_.v(_.VX,{data:function(){return b().buttons}},{buttonRenderer:_.Vo,
buttonViewModel:_.sQ})))}}))},"Xa");var G4O=_.C(function(G){var b=G.data;return _.v("br-nz-badge-shape",{class:_.pG(function(){return B_O(b().brNzRatingBadgeType)}),
role:function(){return b().accessibilityText?"img":void 0},
"aria-label":function(){return b().accessibilityText}},function(){var I;
return(I=b())==null?void 0:I.text})},"Ya");_.Db=_.C(function(G){var b=function(){var I=G.data(),h,q,l;if(I){var V=!((h=G.workaroundShortsIsThumbnailBadge)==null||!h.call(G));h=(q=G.modern)==null?void 0:q.call(G);q=(l=G.numBadgesInRow)==null?void 0:l.call(G);var D;a:switch(I.badgeStyle){case "BADGE_OVERLAY":l=!0;break a;default:l=!1}I={type:V?17:Ums(I.badgeStyle),brNzRatingBadgeType:spv(I.badgeStyle),text:I.badgeText,icon:I.iconName,isOverlay:l,modern:h||_.U("web_modern_badge_view_model"),accessibilityText:I.accessibilityLabel||((D=_.g(I.rendererContext,
_.DA))==null?void 0:D.label),numBadgesInRow:q}}else I=void 0;return I};
return _.v("yt-badge-view-model",{class:_.pG("ytBadgeViewModelHost",G.class)},_.v(_.Nc,null,_.v(_.H3,{when:function(){var I;return!((I=b())==null||!I.brNzRatingBadgeType)}},function(){return _.v(G4O,{data:function(){return b()}})}),_.v(_.H3,{when:function(){return!!b()&&!b().brNzRatingBadgeType}},function(){return _.v(_.$9,{data:function(){return b()}})})))},"Za");
_.Db.idomCompat=!0;var e5n=_.C(function(G){G=_.N5(G,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var b=G.data,I=G.useFullWidth,h=G.isDesktopWeb,q=G.addSearchResultTopMargin,l=function(){return b().layout},V=function(){return b().title},D=function(){return b().metadataText?b().metadataText:b().genre},k=function(){return b().channelName},L=function(){return b().image},x=function(){return b().colorPalette},f=function(){return b().actionButton},T=function(){return b().overflowButton},
B=function(){return b().avatar},A=function(){return b().ageRating},t=function(){var O={};
O=_.pG("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(O["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return h()},O));
return _.v("div",{class:O},_.v(baO,{imageData:L,colorPalette:x}),_.v(Inn,{onTap:function(){return b().onTap},
imageData:L,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:h}),_.v(_.Q,{cond:function(){return!h()},
then:function(){return _.v(_.xz,null,_.v(h5i,{layout:l,colorPalette:x,isDesktopWeb:h,overflowButton:T,avatar:B,onTap:function(){return b().onTap},
genre:D,title:V,channelName:k}),_.v(qe8,{actionButton:f}))}}))},y=function(){var O={};
O=_.pG((O["yt-mini-game-card-view-model--search-result-desktop"]=function(){return h()},O["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!h()},O["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return q()},O));
return _.v("div",{class:O},t(),_.v(jfu,{description:function(){return b().description},
isDesktopWeb:h,title:V,genre:D,onTap:function(){return b().onTap},
actionButton:f,overflowButton:T,avatar:B,channelName:k}))},F=function(){var O={};
O=_.pG("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(O["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return h()},O["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return h()&&b().width===135},O["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return h()},O["yt-mini-game-card-view-model--big-metadata-font"]=function(){return b().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},O["yt-mini-game-card-view-model--use-full-width"]=
function(){return I()},O["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.U("web_game_card_force_2_by_3")},O));
return _.v("div",{class:O},_.v(lnQ,{colorPalette:x,isDesktopWeb:h,onTap:function(){return b().onTap},
accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
actionButton:f,imageData:L}),_.v(h5i,{layout:l,colorPalette:x,isDesktopWeb:h,overflowButton:T,avatar:B,onTap:function(){return b().onTap},
genre:D,title:V,channelName:k}),_.v(_.Q,{cond:A,then:function(K){return _.v(mYu,{ageRating:K})}}))},W=function(){var O={};
O=_.pG("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(O["yt-mini-game-card-view-model--square-card-desktop"]=function(){return h()},O["yt-mini-game-card-view-model--use-full-width"]=function(){return I()},O));
return _.v("div",{class:O},_.v(Inn,{onTap:function(){return b().onTap},
imageData:L,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:h}),_.v(h5i,{layout:l,colorPalette:x,isDesktopWeb:h,overflowButton:T,avatar:B,onTap:function(){return b().onTap},
genre:D,title:V,channelName:k}),_.v(_.Q,{cond:A,then:function(K){return _.v(mYu,{ageRating:K})}}))};
return _.v("mini-game-card-view-model",{class:G.className},_.v(_.Nc,null,_.v(_.H3,{when:function(){return l()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return F()}),_.v(_.H3,{when:function(){return l()==="MINI_APP_LAYOUT_SQUARE"}},function(){return W()}),_.v(_.H3,{when:function(){return l()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return y()})))},"$a");
e5n.idomCompat=!0;var qe8=_.C(function(G){var b=_.a9(G.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.v(_.VX,{data:G.actionButton},{buttonViewModel:function(I){return _.v("div",{class:b},_.v(_.sQ,{data:I.data}))}})},"ab"),Inn=_.C(function(G){var b=G.onTap;
var I=G.imageData;var h=G.accessibilityText;var q=G.overlayBadgeText;var l=G.iconName;var V=G.unplayableInlinePlaybackIconName;G=G.isDesktopWeb;return _.v(_.LP,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:b},_.v(_.Fu,{data:I,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(h==null?void 0:h())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.v(V7O,{overlayBadgeText:q,iconName:l,unplayableInlinePlaybackIconName:V,isDesktopWeb:G}))},"bb"),V7O=_.C(function(G){var b=G.overlayBadgeText;
var I=G.iconName;var h=G.unplayableInlinePlaybackIconName;var q=G.isDesktopWeb;return _.v("div",{class:"yt-mini-game-card-view-model__badge-container"},_.v(_.Q,{cond:I,then:function(l){return _.v("div",{class:"yt-mini-game-card-view-model__badge"},_.v("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.v(_.ha,{icon:l,className:"yt-mini-game-card-view-model__icon",size:12}),_.v("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},b)))}}),_.v(_.Q,{cond:function(){return!I()&&
b()},
then:function(){return _.v("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},b)}}),_.v(_.Q,{cond:function(){return h()&&q()},
then:function(){return _.v("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.v(_.ha,{icon:h,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),baO=_.C(function(G){var b=G.colorPalette;
var I=G.imageData;var h=function(){return b().vibrantColorPalette?b().vibrantColorPalette.section2Color:b().sectionTwoColor};
return _.v(_.xz,null,_.v("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Ir({"background-color":function(){return gq(h(),"1")}})}),_.v("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Ir({"background-image":function(){return"url("+I().sources[0].url+")"}})}),_.v("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Ir({background:function(){return"linear-gradient(180deg,\n    "+gq(h(),".8")+" 0%,\n    "+gq(h(),".4")+" 25%,\n    "+gq(b().vibrantColorPalette?b().vibrantColorPalette.section4Color:b().sectionFourColor,".8")+" 100%)"}})}))},"db"),h5i=_.C(function(G){var b=G.layout;
var I=G.colorPalette;var h=G.overflowButton;var q=G.avatar;var l=G.onTap;var V=G.title;var D=G.channelName;var k=G.genre;var L=function(){var x;return b()!=="MINI_APP_LAYOUT_SQUARE"&&((x=I())==null?0:x.textPrimaryColor)?"color: "+gq(I().textPrimaryColor,".7"):""};
return _.v("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.v(_.Q,{cond:q,then:function(){return _.v("div",{class:"yt-mini-game-card-view-model__avatar"},_.v(_.VX,{data:q},{avatarViewModel:_.Om}))}}),_.v(_.LP,{command:l,
className:"yt-mini-game-card-view-model__metadata-details"},_.v("h3",{class:"yt-mini-game-card-view-model__title",title:V},V),_.v(_.Q,{cond:q,then:function(){return _.v("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.v("span",{class:"yt-mini-game-card-view-model__genre",title:D,style:L},D),_.v("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:L},k))},
else:function(){return _.v("span",{class:"yt-mini-game-card-view-model__genre",title:k},k)}})),_.v("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.v(_.VX,{data:h},{buttonViewModel:function(x){var f=x.data;
return _.v(_.sQ,{data:function(){return Object.assign({},f(),{customFontColor:b()==="MINI_APP_LAYOUT_SINGLETON"?f().customFontColor:void 0})}})}})))},"eb"),lnQ=_.C(function(G){var b=G.colorPalette;
var I=G.isDesktopWeb;var h=G.onTap;var q=G.accessibilityText;var l=G.overlayBadgeText;var V=G.iconName;var D=G.unplayableInlinePlaybackIconName;var k=G.actionButton;G=G.imageData;return _.v("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.v(baO,{imageData:G,colorPalette:b}),_.v(Inn,{onTap:h,imageData:G,accessibilityText:q,overlayBadgeText:l,iconName:V,unplayableInlinePlaybackIconName:D,isDesktopWeb:I}),_.v(_.Q,{cond:function(){return k==null?void 0:k()},
then:function(){return _.v(qe8,{actionButton:k})}}))},"fb"),jfu=_.C(function(G){var b=G.description;
var I=G.isDesktopWeb;var h=G.title;var q=G.genre;var l=G.onTap;var V=G.actionButton;var D=G.overflowButton;var k=G.avatar;G=G.channelName;var L={};L=_.pG("yt-mini-game-card-view-model--search-result-metadata-wrapper",(L["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=I,L["yt-mini-game-card-view-model--show-unplayable-on-hover"]=I,L["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!I()},L));
var x={};x=_.pG("yt-mini-game-card-view-model__search-result-info-row",(x["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!I()},x));
return _.v("div",{class:L},_.v("div",{class:x},_.v(_.LP,{command:l,className:"yt-mini-game-card-view-model__metadata-details"},_.v("h3",{class:"yt-mini-game-card-view-model__title",title:h},h),_.v("span",{class:"yt-mini-game-card-view-model__genre",title:q},q)),_.v(qe8,{actionButton:V,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.v("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.v(_.VX,{data:D},{buttonViewModel:_.sQ}))),_.v("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.v("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.v("div",{class:"yt-mini-game-card-view-model__avatar"},_.v(_.VX,{data:k},{avatarViewModel:function(f){var T=f.data;return _.v(_.Om,{data:function(){return Object.assign({},T(),{avatarImageSize:I()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.v(_.LP,{command:l,
className:"yt-mini-game-card-view-model__description"},_.v("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},G)),_.v(_.LP,{command:l,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.v("div",null)))),_.v(_.Q,{cond:I,then:function(){return _.v(_.LP,{command:l,className:"yt-mini-game-card-view-model__description"},b)}}))},"gb"),mYu=_.C(function(G){var b=G.ageRating;
return _.v("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.v(_.Fu,{data:function(){return{sources:[{url:b().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.v(_.Db,{data:function(){return{badgeText:b().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0}))},"hb");_.JN(e5n,"mini-game-card-view-model",{props:{data:_.hV,className:_.hV,useFullWidth:_.hV,isDesktopWeb:_.hV,addSearchResultTopMargin:_.hV}});_.JN($Yi,"dismissed-mini-game-card-view-model",{props:{data:_.hV,useSquareAspectRatio:_.hV}});var c_=function(){var G=_.a.apply(this,arguments)||this;G.isSearch=!1;G.isRichGrid=!1;return G};
_.M(c_,_.a);_.m=c_.prototype;_.m.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.m.dismissibleItemOnYtServiceRequestSent=function(G,b){b.actions&&this.dismissibleItemProcessActions(G,b.actions)};
_.m.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.m.dataChanged=function(){this.dismissibleItemReset()};
_.m.dismissibleItemProcessActions=function(G,b){for(var I=0;I<b.length;I++){var h=b[I];_.g(h,_.y$)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.g(h,_.y$)),G.stopPropagation())}};
_.m.dismissibleItemHandleReplaceEnclosingAction=function(G){this.dismissedRenderer=G.item;this.isDismissed=!0};
_.kV.Object.defineProperties(c_.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)}}});
c_.prototype.dataChanged=c_.prototype.dataChanged;c_.prototype.dismissibleItemOnRequestSent=c_.prototype.dismissibleItemOnRequestSent;c_.prototype.dismissibleItemOnYtServiceRequestSent=c_.prototype.dismissibleItemOnYtServiceRequestSent;_.R([_.H(),_.n("design:type",Object)],c_.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],c_.prototype,"isSearch",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],c_.prototype,"isDismissed",void 0);
_.R([_.H(),_.n("design:type",Object)],c_.prototype,"dismissedRenderer",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],c_.prototype,"isRichGrid",void 0);_.R([_.P("data.layout"),_.n("design:type",Object),_.n("design:paramtypes",[])],c_.prototype,"useSquareAspectRatio",null);_.R([_.P("data","dismissedRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],c_.prototype,"showCard",null);
_.R([_.P("data","dismissedRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],c_.prototype,"showDismissed",null);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],c_.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.R([_.hI("yt-service-request-sent-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],c_.prototype,"dismissibleItemOnRequestSent",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c_.prototype,"dataChanged",null);_.R([_.g8({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],c_);
_.J(c_,"ytd-mini-game-card-view-model",function(){if(SWJ!==void 0)return SWJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return SWJ=G},{mode:_.nn("kevlar_poly_si_batch_j081")?1:2});var DYz;var cli;var kr=function(){return _.vh.apply(this,arguments)||this};
_.M(kr,_.vh);kr.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
kr.prototype.getContinuationUrl=function(G){var b={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(b.itct=this.data.clickTrackingParams);return _.mE(G,b)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],kr.prototype,"data",void 0);_.R([_.g8({is:"yt-reload-continuation",noInjection:!0})],kr);var k4b;var vNQ;var v_=function(){var G=_.a.apply(this,arguments)||this;G.notificationData={};return G};
_.M(v_,_.a);_.m=v_.prototype;_.m.isMenuExpanded=function(G){return G&&G.length<=1?"undefined":"false"};
_.m.dataChanged_=function(){this.selected=void 0;var G=this.computeSelectedIndex_(this.data);G>=0&&(this.selected=G);G=this.data&&this.data.length>1;_.SL(this.hostElement,"has-items",G);_.Eo(this.hostElement).querySelector("#label").tabIndex=G?0:-1};
_.m.onDropdownOpen=function(){var G=_.gL();if(this.parentTrackingParams&&this.data){var b=_.VB(this.parentTrackingParams);this.data.forEach(function(I){G&&b&&I.trackingParams&&(I=_.VB(I.trackingParams),_.dK(G,b,I),_.FT(G,[I]))})}else this.parentTrackingParams||_.RB(new _.Wf("No parent tracking params passed in for yt-dropdown-menu."))};
_.m.hasNotification=function(G){var b;if(G.targetId&&((b=this.notificationData)==null?0:b.targetId)){var I;return G.targetId===((I=this.notificationData)==null?void 0:I.targetId)}};
_.m.computeSelectedIndex_=function(G){if(G)for(var b=0,I=G.length;b<I;b++)if(G[b].selected)return b;return-1};
_.m.computeLabel_=function(G){return this.data&&G!=void 0?this.data[G].title:""};
_.m.computeShowIcon_=function(G,b){return!b&&!!G};
_.m.computeVerticalOffset_=function(G){return G?36:0};
_.m.computeEndpoint_=function(G){return G.endpoint||G.navigationEndpoint};
_.m.onLabelClick_=function(G){this.data&&this.data.length<=1?G.stopPropagation():this.menuExpanded="true"};
_.m.onIronActivate_=function(G){G=G.detail.item;var b=_.Eo(this.hostElement).querySelector("#repeat").itemForElement(G);if(b&&b.trackingParams){var I=_.gL(),h=_.VB(b.trackingParams);I&&_.WT(I,h)}if(b&&b.serviceEndpoint)_.U("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(b.serviceEndpoint):_.pv(this.hostElement,[b.serviceEndpoint]),_.O3(this.hostElement,"yt-playlist-reloading");else a:{if((b=G.querySelector("yt-supported-renderers"))&&
(b=b.rendererElement)&&b.is=="yt-reload-continuation"){b.trigger();break a}(G=G.querySelector("yt-reload-continuation"))&&G.trigger()}};
_.m.onTap_=function(G){G.preventDefault()};
_.m.onItemTap_=function(G){this.ytEndpointBehavior.onEndpointTap_(G)};
_.m.onLinkFocus_=function(G){try{var b=G.target}catch(h){}if(b){var I=b.querySelector("tp-yt-paper-item");I&&_.P5(this,"focus",function(){I.focus()})}};
_.m.onMenuClose_=function(){this.menuExpanded="false"};
_.m.isLabelIconActive_=function(G){return G==="true"};
_.m.computeHasSubtitle_=function(G){return!!G};
_.m.computeHrefForItem_=function(G){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(G))};
_.m.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
_.kV.Object.defineProperties(v_.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
v_.prototype.onMenuClose_=v_.prototype.onMenuClose_;v_.prototype.onTap_=v_.prototype.onTap_;v_.prototype.onIronActivate_=v_.prototype.onIronActivate_;v_.prototype.onDropdownOpen=v_.prototype.onDropdownOpen;v_.prototype.dataChanged_=v_.prototype.dataChanged_;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],v_.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.ZN.YtEndpointBehavior),_.n("design:type",Object)],v_.prototype,"ytEndpointBehavior",void 0);
_.R([_.H(),_.n("design:type",Array)],v_.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],v_.prototype,"parentTrackingParams",void 0);_.R([_.H(),_.n("design:type",Object)],v_.prototype,"selected",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],v_.prototype,"useLabel",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],v_.prototype,"useComputedAriaLabel",void 0);_.R([_.H(),_.n("design:type",String)],v_.prototype,"icon",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],v_.prototype,"iconLabel",void 0);_.R([_.H(),_.n("design:type",String)],v_.prototype,"ariaLabel",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],v_.prototype,"disabled",void 0);_.R([_.H({computed:"isMenuExpanded(data)"}),_.n("design:type",String)],v_.prototype,"menuExpanded",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],v_.prototype,"closeOnActivate",void 0);
_.R([_.H({reflectToAttribute:!0,value:_.U("web_modern_buttons")}),_.n("design:type",Boolean)],v_.prototype,"modernButtons",void 0);_.R([_.H(),_.n("design:type",Object)],v_.prototype,"notificationData",void 0);_.R([_.P("ariaLabel, selected"),_.H(),_.n("design:type",String),_.n("design:paramtypes",[])],v_.prototype,"computedAriaLabel",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],v_.prototype,"dataChanged_",null);
_.R([_.hI("paper-dropdown-open"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],v_.prototype,"onDropdownOpen",null);_.R([_.hI("iron-activate"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],v_.prototype,"onIronActivate_",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],v_.prototype,"onTap_",null);
_.R([_.hI("iron-overlay-closed"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],v_.prototype,"onMenuClose_",null);_.R([_.g8({is:"yt-dropdown-menu",disableElementRegistration:!0})],v_);
_.J(v_,"yt-dropdown-menu",function(){if(vNQ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;k4b===void 0&&(k4b=document.createElement("template"));var h=k4b;I.call(b,h.content.cloneNode(!0),G.content.firstChild);vNQ=G}G=vNQ;return G},{mode:2});var Lo=function(){var G=_.a.apply(this,arguments)||this;G.hasNotification=!1;return G};
_.M(Lo,_.a);Lo.prototype.computeId=function(G){return G};
Lo.prototype.computeHorizontalAlign=function(G){return G?"right":"left"};
Lo.prototype.computeAccessibilityLabel=function(G){var b,I;return((b=G.accessibility)==null?void 0:(I=b.accessibilityData)==null?void 0:I.label)||null};
Lo.prototype.notificationDataChanged=function(){var G;this.hasNotification=!!this.notificationData&&!((G=this.data)==null?0:G.icon)};
Lo.prototype.notificationDataChanged=Lo.prototype.notificationDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wZ.YtLiveChatTooltipTargetingBehavior),_.n("design:type",Object)],Lo.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Lo.prototype,"data",void 0);_.R([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.n("design:type",String)],Lo.prototype,"id",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],Lo.prototype,"isRightAligned",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Lo.prototype,"disabled",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Lo.prototype,"closeOnActivate",void 0);_.R([_.H(),_.n("design:type",Object)],Lo.prototype,"notificationData",void 0);_.R([_.H(),_.n("design:type",Object)],Lo.prototype,"hasNotification",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],Lo.prototype,"useComputedAriaLabel",void 0);_.R([_.q5("notificationData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Lo.prototype,"notificationDataChanged",null);_.R([_.g8({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Lo);
_.J(Lo,"yt-sort-filter-sub-menu-renderer",function(){if(cli===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;DYz===void 0&&(DYz=document.createElement("template"));var h=DYz;I.call(b,h.content.cloneNode(!0),G.content.firstChild);cli=G}G=cli;return G},{mode:2});var LcQ=_.C(function(G){var b=G.data;var I=_.Xu(function(){var l=b().onTap;(l=_.g(l,_.U0))&&_.LL().resolve(_.xW).resolveCommand(l);return!1}),h=function(){return{sources:[{url:b().thumbnailUrl,
width:120,height:90}]}},q=function(){return b().rating&&b().ratingA11yLabel&&b().reviewsCount&&b().reviewsCountA11yLabel};
return _.v("place-data-view-model",null,_.v(_.Q,{cond:function(){return b().placeName&&b().placeCategory},
then:function(){return _.v("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":I},_.v(_.Fu,{data:h,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.v(_.LP,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return b().onTap}},_.v("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return b().placeName}},function(){return b().placeName})),_.v("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.v(_.Q,{cond:q,
then:function(){return _.v("div",{class:_.pG("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.v("span",{class:"score",title:function(){return b().ratingA11yLabel}},function(){return b().rating}),_.v("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.v(_.ha,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.v("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return b().reviewsCountA11yLabel}},function(){return b().reviewsCount}))},
else:function(){return _.v("div",{class:_.pG("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.v("div",{class:_.pG("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.v("span",{class:"category",
title:function(){return b().placeCategory}},function(){return b().placeCategory}))))}}))},"ib");
LcQ.idomCompat=!0;_.JN(LcQ,"place-data-view-model",{props:{data:_.hV}});var Qfe=new _.q3("INLINE_PLAYBACK_HOOK_TOKEN");var xYA=fk({sharedUi:ROe});_.PH=TB(xYA)(xYA.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 fni=function(G){this.setActiveSlideIndex=G;this.jobIds=[];this.isSlideshowPlaying=!1},UYJ=function(G,b){G.isSlideshowPlaying||(G.isSlideshowPlaying=!0,TxQ(G),BxB(G,b,0))},TxQ=function(G){_.O0(_.uu,function(){G.setActiveSlideIndex(0)},1)},BxB=function(G,b,I){G.jobIds.push(_.O0(_.uu,function(){var h=I<b-1?I+1:0;
G.setActiveSlideIndex(h);BxB(G,b,h)},1800))};var sfb=new _.q3("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN"),gNz=new _.q3("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");var AlX=new _.q3("IMAGE_ON_LOAD_HANDLER_TOKEN");var M7Q=_.C(function(G){return _.v("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.v(_.Q,{cond:function(){var b;return(b=G.data())==null?void 0:b.thumbnail},
then:function(b){return _.v(_.Fu,{data:b,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.Zaz=_.C(function(G){var b=G.data;var I=G.lockupExperiments;G={};return _.v("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.v("div",{class:_.pG("ytThumbnailOverlayButtonViewModelButton",(G.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var h;return I&&((h=I())==null?void 0:h.useLegacySizedIconButton)},G))},_.v(_.VX,{data:function(){return b().overlayButton}},{buttonViewModel:function(h){return _.v(_.sQ,{data:h.data,
buttonOverrides:function(){var q;return I&&((q=I())==null?0:q.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.Zaz.idomCompat=!0;var t7O=_.C(function(G){return _.v("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Xu(function(b){b.preventDefault();return!1})},_.v(_.VX,{data:function(){return G.data().buttons}},{toggleButtonViewModel:function(b){return _.v("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.v(_.YK,{data:b.data}))}}))},"lb");
t7O.idomCompat=!0;var z5b=_.C(function(G){var b=function(){var I;return((I=_.g(G.data().rendererContext,_.DA))==null?void 0:I.label)||""};
return _.v("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.v(_.Q,{cond:function(){return G.data().image},
then:function(){return _.v("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.v(_.Fu,{data:function(){return G.data().image},
alt:b}))}}),_.v(_.Q,{cond:function(){return G.data().text},
then:function(){return _.v("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return G.data().text})}}))},"mb");var oN8;oN8=_.PH.animatedThumbnailEnabledSelector;_.Qo=_.C(function(G){var b=[],I=function(){var T,B;return _.Ylj((T=G.width)==null?void 0:T.call(G),(B=G.height)==null?void 0:B.call(G))},h=_.LL().resolve(_.vf(AlX)),q=_.ee("yt-thumbnail-view-model",function(){b.push("elRef.value set");
var T;(T=G.playbackRef)==null||T.call(G,{thumbnailElRef:q,thumbnail:G.data().image,thumbnailOverlays:G.data().overlays,thumbnailSize:I()})});
_.K3(function(){b.push("onInit");_.uI(function(){b.push("onCleanup")})});
var l=_.m2(oN8),V=function(){var T,B;return(B=(T=G.aspectRatio)==null?void 0:T.call(G))!=null?B:0},D=function(){return(G.data().image?_.lVj(G.data().image):V())<=1&&V()===0},k=function(){return D()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},L=function(){q.value||_.RB(new _.Wf("Thumbnail elRef.value is null",b.join("\n")));
h&&q.value&&h(q.value)},x=function(){var T,B;
return((T=G.hovered)==null?void 0:T.call(G))&&I()!=="large"&&((B=G.data().overlays)==null?void 0:B.some(function(A){return _.g(A,t$A)}))},f={};
return _.v("yt-thumbnail-view-model",{class:_.pG("ytThumbnailViewModelHost",G.className,function(){return AgO(V())},function(){var T,B;
a:{var A=I(),t=(T=G.disableRounding)==null?void 0:T.call(G);T=(B=G.isClip)==null?void 0:B.call(G);if(!t&&!T)switch(A){case "large":B="ytThumbnailViewModelLarge";break a;case "small":B="ytThumbnailViewModelSmall";break a;default:B="ytThumbnailViewModelMedium";break a}B=void 0}return B},(f.ytThumbnailViewModelCinematic=D,f)),
style:_.Ir({"background-color":function(){var T,B=D()?(T=G.data().backgroundColor)==null?void 0:T.lightTheme:void 0;return B?gq(B,"1"):void 0}}),
el:q},_.v(_.Q,{cond:D,then:function(){return _.v("div",{class:"ytThumbnailViewModelBlurredImage"},_.v(_.Fu,{data:function(){return G.data().image},
alt:"",contentMode:k,targetWidth:G.width,onload:L}))}}),_.v("div",{class:"ytThumbnailViewModelImage"},_.v(_.Fu,{data:function(){return G.data().image},
alt:"",contentMode:k,targetWidth:G.width,onload:L}),null),_.v(_.VX,{data:function(){return x()?void 0:G.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:ihn,thumbnailOverlayBadgeViewModel:function(T){return _.v(_.PVu,{data:T.data,thumbnailSize:I,isClip:G.isClip})},
thumbnailBottomOverlayViewModel:function(T){return _.v(ZhQ,{data:T.data,thumbnailSize:I,isClip:G.isClip})},
thumbnailOverlayFullViewModel:z5b,thumbnailOverlayButtonViewModel:function(T){return _.v(_.Zaz,{data:T.data,lockupExperiments:G.lockupExperiments})},
channelDisclosureViewModel:function(T){T=T.data;var B;return _.v("div",null,(B=_.LL().resolve(_.vf(sfb)))==null?void 0:B({data:T}))}}),_.v(_.VX,{data:function(){var T;
return((T=G.hovered)==null?0:T.call(G))?G.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(T){return _.v(nq,{data:T.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:t7O}),_.v(_.VX,{data:function(){var T;return((T=G.hovered)==null?0:T.call(G))&&l()?G.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:M7Q}),_.v(_.Q,{cond:G.isClip,then:function(){return _.v("div",{class:"ytPinkingNsHost"},_.v("svg",{class:"ytPinkingNsPinkingLeft"},_.v("defs",null,_.v("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.v("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.v("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.v("svg",{class:"ytPinkingNsPinkingRight"},_.v("defs",null,_.v("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.v("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.v("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.Qo.idomCompat={callbacks:{playbackRef:!0}};var iaz=_.C(function(G){var b=_.e(_.ZZ(-1,void 0,"RW2Ole")),I=b.next().value,h=b.next().value;_.K3(function(){var q=new fni(h);UYJ(q,G.data().thumbnails.length);_.uI(function(){if(q.isSlideshowPlaying){q.isSlideshowPlaying=!1;for(var l=q.jobIds,V=0,D=l.length;V<D;V++)_.uu.cancelJob(l[V]);q.jobIds.length=0}})});
return _.v("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.v(_.VX,{data:function(){return G.data().thumbnails}},{thumbnailViewModel:function(q,l){return _.v("div",{class:function(){var V=!G.data().primaryThumbnail,D=l(),k=I(),L=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
V&&D===0&&L.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");D<=k&&L.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return L.join(" ")}},_.v(_.Qo,{data:q.data,
disableRounding:G.disableRounding}))}}))},"ob");
iaz.idomCompat=!0;var M_j=new _.q3("DWELL_DETECTOR_REGISTRY_TOKEN");var dYW=_.C(function(G){var b=ZgB(G.triggeringElement),I=function(){return!!G.data().primaryThumbnail},h=function(){var l,V=(l=G.data())==null?void 0:l.maxHeight,D;
l=(D=G.maxHeight)==null?void 0:D.call(G);return V!=null&&l!=null?Math.min(V,l):l!=null?l:V},q=function(){var l=h();
if(l){var V;if(I()&&(V=G.includeStackHeight)!=null&&V.call(G)){var D;V=((D=G.doubleStack)==null?0:D.call(G))?8:4}else V=0;l=l-V-1;if(!(l<0)){D=Math;V=D.ceil;var k,L;var x=Nbq((L=(k=G.aspectRatio)==null?void 0:k.call(G))!=null?L:0);return V.call(D,l*x)}}};
return _.v("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.Ir({height:function(){return h()?h()+"px":void 0},
width:function(){return q()?q()+"px":void 0}})},_.v(P8u,{stackEnabled:I,
thumbnailSize:function(){var l,V;return _.Ylj((l=G.width)==null?void 0:l.call(G),(V=G.height)==null?void 0:V.call(G))},
doubleStack:G.doubleStack,stackColor:function(){return G.data().stackColor},
includeStackHeight:G.includeStackHeight},_.v(_.VX,{data:function(){return G.data().primaryThumbnail}},{thumbnailViewModel:function(l){var V={};
return _.v(_.Qo,{data:l.data,width:G.width,height:G.height,aspectRatio:G.aspectRatio,disableRounding:G.disableRounding,className:_.pG((V.ytCollectionThumbnailViewModelHostHasStacks=I,V)),hovered:G.hovered,playbackRef:G.playbackRef})}}),_.v(_.Q,{cond:function(){var l;
return b()&&((l=G.data().thumbnails)==null?void 0:l.length)},
then:function(){return _.v("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.v(iaz,{data:G.data,disableRounding:function(){return!I()}}))}})))},"pb");
dYW.idomCompat={callbacks:{playbackRef:!0}};
var P8u=_.C(function(G){var b=G.children;var I=G.stackEnabled;var h=G.thumbnailSize;var q=G.doubleStack;var l=G.stackColor;var V=G.includeStackHeight;var D,k=(D=_.LL().resolve(_.vf(_.Pv)))==null?void 0:D();return _.v(_.Q,{cond:I,then:function(){return _.v(bhe,{data:function(){var L,x;return{experimentEnabled:!0,thumbnailSize:h(),doubleStack:q==null?void 0:q(),color:k?l==null?void 0:(L=l())==null?void 0:L.darkTheme:l==null?void 0:(x=l())==null?void 0:x.lightTheme,enableResponsiveMode:!1,includeStackHeight:V==
null?void 0:V()}}},b)},
else:function(){return b}})},"qb");var yl5=new _.q3("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var fo;_.xr={calledOnce:!0,state:"visible"};fo={calledOnce:!0,state:"hidden"};_.TC=_.C(function(G){var b=G.data;var I=G.customCommandResolver;var h=G.className;var q=G.delayedClassName;var l=G.animationEntityKey;var V=G.isCompactWidth;var D=G.isContentWidth;G=_.e(_.ZZ(!1,void 0,"pC3tUb"));var k=G.next().value,L=G.next().value,x=_.a9(l,""),f=_.lA(UnO,x),T=function(){var xa,Uj;return(Uj=(xa=f())==null?void 0:xa.value)!=null?Uj:!1},B=function(){_.W5(_.Da("booleanEntity",x(),{key:x(),
value:!0}));u=void 0};
l=_.e(_.bk(T));var A=l.next().value,t=l.next().value;l=_.e(_.bk(T));var y=l.next().value,F=l.next().value;l=_.e(_.bk(function(){var xa;return T()?(xa=b().styleTransitionConfig)==null?void 0:xa.destinationStyle:void 0}));
var W=l.next().value,O=l.next().value,K=function(){var xa=Object.assign({},b(),W()&&{style:W()});var Uj,W2,is=xa.label,su=(Uj=xa.interaction)==null?void 0:(W2=Uj.accessibility)==null?void 0:W2.label;Uj=xa.iconImage?xa.label&&xa.label.content?xa.iconLeading?"leading":"trailing":"icon-only":void 0;xa={formattedButtonText:is,accessibilityLabel:su,style:igO(xa.style),type:PTs(xa.style),state:"active",size:oDq(xa.size),iconPosition:Uj,disabled:!1,aTagConfig:zyr(xa,I)};_.U("enable_desktop_vdcbg_components")&&
(xa.focused=k());return xa},u;
l=_.L8({visibilityCallback:function(xa){var Uj,W2=(Uj=b().interaction)==null?void 0:Uj.onFirstVisible;xa&&W2&&_.Zm(W2)},
showOption:_.xr});var w=function(){return wkO(K(),!!b().iconImage)};
G={};var $a={};h=_.pG(function(){return"ytwAdButtonViewModelHost"},function(){return b().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var xa=!!b().delayedAppearanceConfig,Uj=A();
return xa?Uj?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var xa=!!b().delayedAppearanceConfig,Uj=y();
return xa?Uj?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!b().delayedAppearanceConfig||A()?q==null?void 0:q():""},(G.ytwAdButtonViewModelHostCompactWidth=function(){return V==null?void 0:V()},G),($a.ytwAdButtonViewModelHostContentWidth=function(){return D==null?void 0:D()},$a),h!=null?h:"");
var ev=function(){var xa,Uj=(xa=b().delayedAppearanceConfig)==null?void 0:xa.delayedInvisibleSeconds;Uj&&(u=_.vH(_.uu,function(){t(!0);LO()},Uj*1E3))},LO=function(){var xa,Uj=(xa=b().delayedAppearanceConfig)==null?void 0:xa.delayedVisibleSeconds;
Uj&&(u=_.vH(_.uu,function(){F(!0);td()},Uj*1E3))},td=function(){var xa,Uj=(xa=b().styleTransitionConfig)==null?void 0:xa.styleTransitionSeconds,W2,is=(W2=b().styleTransitionConfig)==null?void 0:W2.destinationStyle;
Uj&&is?u=_.vH(_.uu,function(){O(is);B()},Uj*1E3):B()};
_.K3(function(){ev()});
_.uI(function(){u&&_.uu.cancelJob(u)});
return _.v("ad-button-view-model",{"on:focusin":_.Xu(_.U("enable_desktop_vdcbg_components")?function(){var xa=_.LL().resolve(_.vf(_.v6));xa&&L(xa.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Xu(_.U("enable_desktop_vdcbg_components")?function(){L(!1);return!1}:void 0),
class:h,el:_.Wv(l),style:_.Ir({"transition-duration":"0.3s"})},_.v(_.Q,{cond:K,then:function(){return _.v(_.TV,{data:K,icon:function(){return _.v(_.Q,{cond:function(){return b().iconImage},
then:function(xa){return _.v(_.Fu,{data:xa,alt:"",targetWidth:w,targetHeight:w,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var rlb=_.C(function(G){var b=G.data;G=function(){return b().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var I=_.L8({visibilityCallback:function(l){var V,D=(V=b().interaction)==null?void 0:V.onFirstVisible;l&&D&&_.Zm(D)},
showOption:_.xr}),h={},q={};return _.v("ad-button-group-view-model",{class:_.pG("ytwAdButtonGroupViewModelHost",(h.ytwAdButtonGroupViewModelHostCompactWidth=G,h)),el:_.Wv(I)},_.v("div",{class:_.pG("ytwAdButtonGroupViewModelHostSecondaryButton",(q.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=G,q))},_.v(_.VX,{data:function(){return b().secondaryAdButton}},{adButtonViewModel:function(l){return _.v(_.TC,{data:l.data})}})),_.v("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.v(_.VX,
{data:function(){return b().primaryAdButton}},{adButtonViewModel:function(l){return _.v(_.TC,{data:l.data})}})))},"tb");var FcA=_.C(function(G){var b=function(){var I;return((I=G.data())==null?void 0:I.answers)||[]};
return _.v("yt-survey-icons",{class:"ytSurveyIconsHost"},_.v("div",{class:"ytSurveyIconsHeader"},_.v("div",{class:"ytSurveyIconsTitle"},function(){var I;return(I=G.data())==null?void 0:I.text}),_.v("div",null,_.v(_.TV,{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"}))),_.v("div",null,_.v("div",{class:"ytSurveyIconsAnswers"},_.v(_.aj,{each:function(){return b()},
keyBy:"INDEX"},function(I,h){return _.v("div",null,_.v(_.TV,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var q;(q=G.onSelect)==null||q.call(G,I(),h)}}},
icon:function(){return _.v(_.ha,{icon:function(){var q,l;return(q=I())==null?void 0:(l=q.icon)==null?void 0:l.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.v("div",{class:"ytSurveyIconsAnswersText"},_.v("div",null,function(){return b().length?b()[0].text:""}),_.v("div",null,function(){return b().length?b()[b().length-1].text:""}))))},"ub");var Han=_.C(function(G){var b=_.Wv(_.s2(function(){var k;return(k=G.data())==null?void 0:k.rendererContext},void 0,void 0,void 0,!0)),I=_.e(_.ZZ(!1,void 0,"GW0yjf")),h=I.next().value,q=I.next().value,l=_.lA(Uxu,function(){var k;
return(k=G.data().keys)==null?void 0:k.surveyEntityKey}),V=_.lA(s2j,function(){var k;
return(k=G.data().keys)==null?void 0:k.surveyStateEntityKey});
_.mt("ytd-slimline-survey-show-action",function(){q(!1)});
var D=function(){var k,L;var x=(k=V())==null?void 0:(L=k.questionStack)==null?void 0:L[0];if(x!==void 0){var f,T;return(f=l())==null?void 0:(T=f.questions)==null?void 0:T[x]}};
I={};return _.v("yt-slimline-survey-view-model",{el:b,class:_.pG("ytSlimlineSurveyViewModelHost",(I.ytSlimlineSurveyViewModelCollapsed=function(){return h()},I))},_.v("div",{class:"ytSlimlineSurveyViewModelContainer"},_.v(_.Q,{cond:function(){var k;
return((k=D())==null?void 0:k.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.v(FcA,{data:function(){return D()},
onSelect:function(k,L){var x,f;return _.c(function(T){q(!0);if(f=(x=G.data())==null?void 0:x.onSelectRating)_.Zm(f),_.W5(qyi(L));_.ip(T)})},
onDismiss:function(){q(!0);var k;var L=(k=l())==null?void 0:k.dismissalFeedbackToken;k=L?{feedbackEndpoint:{feedbackToken:L}}:void 0;k&&_.g5(k,{form:{element:b.value}})}})}})))},"vb");var Wcz=_.C(function(G){return _.v("yt-table-view-model",{class:_.pG("ytTableViewModelHost",G.className)},_.v(_.aj,{each:function(){return G.data().rows||[]}},function(b){var I={};
return _.v("div",{class:_.pG("ytTableViewModelRow",(I.ytTableViewModelRowBottomBorder=function(){return G.data().showSeparators},I))},_.v(_.aj,{each:function(){return(b==null?void 0:b.cells)||[]}},function(h,q){var l,V={};
return _.v("span",{class:_.pG((V.ytTableViewModelRowLabel=function(){return q()===0&&G.data().showHorizontalHeaders},V.ytTableViewModelCell=function(){return!G.data().showHorizontalHeaders||q()>0},V))},(l=h.text)==null?void 0:l.content)}))}))},"wb");var an8=_.C(function(G){return _.v("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.v(_.VX,{data:function(){var b;return(b=G.data())==null?void 0:b.attachments}},{flexibleActionsViewModel:function(b){return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.v(_.ET,{data:b.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(b){return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.v(Han,{data:b.data}))},
expandableMetadataViewModel:function(b){b=b.data;var I;return _.v("div",{class:_.pG("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(I=_.LL().resolve(_.vf(yl5)))==null?void 0:I({data:b}))},
adButtonGroupViewModel:function(b){return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.v(rlb,{data:b.data}))},
adButtonViewModel:function(b){return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.v(_.TC,{data:b.data,isCompactWidth:!0}))},
tableViewModel:function(b){return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.v(Wcz,{data:b.data}))},
aiCompanionAttachmentViewModel:function(b){b=b.data;var I;return _.v("div",{class:"ytLockupAttachmentsViewModelAttachment"},(I=_.LL().resolve(_.vf(gNz)))==null?void 0:I({data:b}))}}))},"xb");var Wj2=_.Te("rich_grid_min_item_width",310),Fju=_.Te("rich_grid_max_item_width",500);var nDu,Ryd;nDu=16/9;Ryd=2/3;_.B_=_.C(function(G){var b=G.data;var I=G.className;var h=G.imageSizeConfig;var q=G.notifyOnLoaded;var l=function(){return b().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},V=function(){var T;
return _.U2((T=b())==null?void 0:T.rendererContext)};
G={};G=(G.ytContentPreviewImageViewModelHost=!0,G.ytContentPreviewImageViewModelCircleImage=function(){return l()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},G.ytContentPreviewImageViewModelTappable=function(){return V()},G);
var D=function(){var T,B;return(B=(T=_.g(b().rendererContext,_.DA))==null?void 0:T.label)!=null?B:""},k=function(){return wCd(b())},L=function(){var T=Oga(l(),b().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",h==null?void 0:h(),EDu(k()),b().layoutWidth,b().layoutHeight),B=Object.assign({},T);
T.width&&(B.width=Math.round(T.width));T.height&&(B.height=Math.round(T.height));T.maxWidth&&(B.maxWidth=Math.round(T.maxWidth));T.maxHeight&&(B.maxHeight=Math.round(T.maxHeight));return B},x=_.P$(function(){return L().height},void 0,"CxFlJb"),f=_.P$(function(){return L().width},void 0,"lb8Jhd");
return _.v("yt-content-preview-image-view-model",{el:_.Wv(_.s2(function(){var T;return(T=b())==null?void 0:T.rendererContext})),
role:function(){return V()?"link":void 0},
tabindex:function(){return V()?0:void 0},
class:_.pG(I,G,function(){var T=l();var B=h==null?void 0:h();T=T==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||T==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||T==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||T==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(B==null?void 0:B.size)!=null&&B.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(B==null?void 0:B.size)!=null&&B.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return T}),
style:function(){var T=L(),B=[];T.width&&B.push("width: "+T.width+"px");T.height&&B.push("height: "+T.height+"px");T.maxWidth&&B.push("max-width: "+T.maxWidth+"px");T.maxHeight&&B.push("max-height: "+T.maxHeight+"px");T.fullWidth&&B.push("width: 100%");return B.join(";")}},_.v(_.Q,{cond:k,
then:function(T){return _.v(_.Fu,{data:T,alt:D,"data-disabled$":function(){return!D()},
notifyOnLoaded:q,targetWidth:f,targetHeight:x,preserveWidth:function(){return!!f()},
preserveHeight:function(){return!!x()}})}}),_.v(_.VX,{data:function(){var T;
return(T=b())==null?void 0:T.overlays}},{thumbnailHoverOverlayViewModel:nq,
thumbnailOverlayButtonViewModel:_.Zaz}))},"yb");
_.B_.idomCompat=!0;var UR=_.C(function(G){var b=G.data;var I=G.className;var h=G.useSmallLayout;var q=G.useMediumText;G=G.useHeavyText;var l={};return _.v("yt-attribution-view-model",{el:_.Wv(_.s2(function(){var V;return(V=b())==null?void 0:V.rendererContext})),
class:_.pG(I,(l.ytAttributionViewModelHost=!0,l.ytAttributionViewModelMediumText=q,l.ytAttributionViewModelHeavyText=G,l))},_.v(_.Q,{cond:function(){return _.U2(b().rendererContext)},
then:function(){return _.v("button",{class:"ytAttributionViewModelTappable"},_.v(Nxn,{data:b,useSmallLayout:h}))},
else:function(){return _.v(Nxn,{data:b,useSmallLayout:h})}}))},"zb"),Nxn=_.C(function(G){var b=G.data;
var I=G.useSmallLayout;var h=function(){return{size:(I==null?0:I())?16:24}};
return _.v(_.xz,null,_.v(_.VX,{data:function(){return b().contentPreviewImage}},{contentPreviewImageViewModel:function(q){return _.v(_.B_,{data:q.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:h})}}),_.v(_.VX,{data:function(){return b().badge}},{badgeViewModel:function(q){return _.v(_.Db,{data:q.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.v(_.Q,{cond:function(){return b().text},
then:function(){return _.v(_.IS,{text:function(){return b().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.v(_.Q,{cond:function(){return b().suffix},
then:function(){return _.v(_.IS,{text:function(){return b().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
UR.idomCompat=!0;var Ye5,C8A,Jln,KcJ,uVz;Ye5=_.C(function(G){var b=G.delimiter;var I=G.max;var h=G.index;var q=G.isStandalone;return _.v(_.Q,{cond:function(){return I()-1>h()},
then:function(){var l={};return _.v("span",{class:_.pG("yt-content-metadata-view-model__delimiter",(l["yt-content-metadata-view-model__delimiter--standalone"]=q,l)),"aria-hidden":!0},b)}})},"Bb");
C8A=_.C(function(G){var b=G.metadataPart;var I=G.maxLines;return _.v(_.IS,{text:function(){return b().text},
linkInheritColor:!0,className:function(){return pCq(I())},
userInput:!0})},"Cb");
Jln=_.C(function(G){var b=G.metadataPart;var I=G.maxLines;return _.v(_.Q,{cond:function(){return b().tooltip},
then:function(h){return _.v("span",{title:h,role:"tooltip"},_.v(C8A,{metadataPart:b,maxLines:I}))},
else:function(){return _.v(C8A,{metadataPart:b,maxLines:I})}})},"Db");
KcJ=_.C(function(G){var b=G.metadataPart;var I=G.isOverlay;var h=G.useMediumText;var q=G.hideAvatar;var l=function(){return b().maxLines!==void 0?b().maxLines:1};
return _.v(_.xz,null,_.v(_.VX,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(V){return _.v(_.Em,{data:V.data,
isOverlay:I,useMediumText:h,hideAvatar:q})},
badgeViewModel:_.Db}),_.v(_.Q,{cond:function(){return b().leadingIcon},
then:function(V){return _.v(_.ha,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return V().name},
size:function(){return V().width}})}}),_.v(_.Q,{cond:function(){return b().text},
then:function(){return _.v(Jln,{metadataPart:b,maxLines:l})}}),_.v(_.Q,{cond:function(){return b().icon},
then:function(V){return _.v(_.ha,{className:"yt-content-metadata-view-model__icon",icon:function(){return V().name},
size:function(){return V().width}})}}))},"Eb");
uVz=_.C(function(G){var b=G.metadataRow;var I=G.isInline;var h=G.delimiter;var q=G.isOverlay;var l=G.useMediumText;var V=G.extensions;var D=function(){var L,x=V==null?void 0:(L=V())==null?void 0:L.lockupMetadata;L=b();var f,T;return!!((x==null?0:(f=x.byline)==null?0:f.hideAvatar)&&((T=_.g(L,T1X))==null?void 0:T.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},k=function(){return b().metadataParts||[]};
G={};return _.v("div",{class:_.pG("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 L,x=V==null?void 0:(L=V())==null?void 0:L.lockupMetadata;L=b();var f,T;return!!((x==null?0:(f=x.byline)==null?0:f.addPadding)&&((T=_.g(L,T1X))==null?void 0:T.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},G["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var L;
return!!(V==null?0:(L=V())==null?0:L.lockupMetadata)&&b().badges&&!b().metadataParts},G))},_.v(_.VX,{data:function(){return b().badges}},{badgeViewModel:function(L){return _.v("div",{class:"yt-content-metadata-view-model__badge"},_.v(_.Db,{data:L.data,
numBadgesInRow:function(){var x,f;return((x=b())==null?void 0:(f=x.badges)==null?void 0:f.length)||0}}))}}),_.v(_.aj,{each:k},function(L,x){return _.v(_.xz,null,_.v(KcJ,{metadataPart:L,
isOverlay:q,useMediumText:l,hideAvatar:D}),_.v(Ye5,{delimiter:h,max:function(){return k().length},
index:x,isStandalone:!1}))}),_.v(_.Q,{cond:function(){return b().isSpacerRow&&!I()},
then:function(){return _.v("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.sR=_.C(function(G){G=_.N5(G,{layout:0,isOverlay:!1});var b=G.data,I=G.layout,h=G.isOverlay,q=G.useMediumText,l=G.extensions,V=function(){return I()===0},D=function(){var L;
return((L=b().metadataRows)==null?void 0:L.filter(function(x){var f,T=l==null?void 0:(f=l())==null?void 0:f.lockupMetadata,B,A;f=!!((T==null?0:(B=T.description)==null?0:B.hideDescription)&&((A=_.g(x,T1X))==null?void 0:A.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var t,y;return!((T==null?0:(t=T.spacer)==null?0:t.hideSpacer)&&((y=_.g(x,T1X))==null?void 0:y.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||f)}))||[]},k={};
return _.v("yt-content-metadata-view-model",{class:_.pG(G.className,"yt-content-metadata-view-model",(k["yt-content-metadata-view-model--inline"]=V,k["yt-content-metadata-view-model--tappable"]=function(){return _.U2(b().rendererContext)},k["yt-content-metadata-view-model--medium-text"]=q,k)),
el:_.Wv(_.s2(function(){return b().rendererContext}))},_.v(_.aj,{each:D},function(L,x){return _.v(_.xz,null,_.v(uVz,{metadataRow:L,
isInline:V,delimiter:function(){return b().delimiter},
isOverlay:h,useMediumText:q,extensions:l}),_.v(_.Q,{cond:function(){return V()&&!L.isSpacerRow},
then:function(){return _.v(Ye5,{delimiter:function(){return b().delimiter},
max:function(){return D().length},
index:x,isStandalone:!0})}}))}))},"Gb");
_.sR.idomCompat=!0;var R5i=_.C(function(G){var b=_.LL().resolve(_.vf(_.Pv)),I={};return _.v("yt-lockup-metadata-view-model",{class:_.pG("yt-lockup-metadata-view-model",function(){a:{var h=G.lockupStyle();if(h==null?0:h.isOverlay)h="yt-lockup-metadata-view-model--overlay";else switch(h==null?void 0:h.arrangement){case 1:h="yt-lockup-metadata-view-model--horizontal";break a;default:h="yt-lockup-metadata-view-model--vertical"}}return h},function(){a:{var h=G.lockupStyle();
switch(h==null?void 0:h.titleMaxLines){case 1:h="yt-lockup-metadata-view-model--title-max-lines-1";break a}h=void 0}return h},function(){a:{var h=G.lockupStyle();
if(h==null?0:h.isTiny)h="yt-lockup-metadata-view-model--tiny";else switch(h==null?void 0:h.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":h="yt-lockup-metadata-view-model--compact";break a;default:h="yt-lockup-metadata-view-model--standard"}}return h},(I["yt-lockup-metadata-view-model--overlay"]=function(){var h;
return(h=G.lockupStyle())==null?void 0:h.isOverlay},I["yt-lockup-metadata-view-model--card"]=function(){var h;
return(h=G.lockupStyle())==null?void 0:h.isCard},I["yt-lockup-metadata-view-model--centered"]=function(){var h;
return(h=G.lockupStyle())==null?void 0:h.isCentered},I["yt-lockup-metadata-view-model--typography-bump"]=function(){var h;
return(h=G.lockupStyle())==null?void 0:h.typographyBump},I["yt-lockup-metadata-view-model--legacy-typography"]=function(){var h;
return(h=G.lockupStyle())==null?void 0:h.useLegacyTypography},I["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var h;
return(h=G.lockupStyle())==null?void 0:h.useRichGridLegacyTypography},I))},_.v(_.VX,{data:function(){return G.data().image}},{avatarStackViewModel:function(h){return _.v("div",{class:"yt-lockup-metadata-view-model__avatar"},_.v(_.Em,{data:h.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(h){return _.v("div",{class:"yt-lockup-metadata-view-model__avatar"},_.v(_.Om,{data:h.data}))},
decoratedAvatarViewModel:function(h){return _.v("div",{class:"yt-lockup-metadata-view-model__avatar"},_.v(_.w1,{data:h.data}))}}),_.v("div",{class:"yt-lockup-metadata-view-model__text-container"},_.v("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var h;return(h=G.data().title)==null?void 0:h.content}},_.v(_.Q,{cond:function(){return G.data().title},
then:function(h){return _.v(_.LP,{command:G.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.Ir({color:function(){var q;a:{var l=G.lockupStyle();var V=(q=G.hovered)==null?void 0:q.call(G);q=!(b==null||!b());var D;if((l==null?0:(D=l.onFocusEffect)==null?0:D.textPrimaryColor)&&V&&(l=q?l.onFocusEffect.textPrimaryColor.darkTheme:l.onFocusEffect.textPrimaryColor.lightTheme)){l=AL(l);break a}l=void 0}return l}}),
ariaLabel:G.lockupAccessibilityLabel},_.v(_.IS,{text:h,userInput:!0}))}})),_.v("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.Ir({color:function(){var h;a:{var q=G.lockupStyle();var l=(h=G.hovered)==null?void 0:h.call(G);h=!(b==null||!b());var V;if((q==null?0:(V=q.onFocusEffect)==null?0:V.textSecondaryColor)&&l&&(q=h?q.onFocusEffect.textSecondaryColor.darkTheme:q.onFocusEffect.textSecondaryColor.lightTheme)){q=AL(q);break a}q=void 0}return q}})},_.v(_.VX,{data:function(){return G.data().metadata}},{contentMetadataViewModel:function(h){return _.v(_.sR,{data:h.data,
layout:function(){var q,l;return(l=(q=G.layout)==null?void 0:q.call(G))!=null?l:1},
useMediumText:function(){var q,l;return((q=G.lockupStyle())==null?void 0:q.typographyBump)||((l=G.lockupStyle())==null?void 0:l.useRichGridLegacyTypography)},
extensions:function(){var q,l,V,D;return{lockupMetadata:{byline:{hideAvatar:((q=G.lockupStyle())==null?void 0:q.arrangement)===0,addPadding:((l=G.lockupStyle())==null?void 0:l.arrangement)===1},description:{hideDescription:!((V=G.lockupStyle())==null||!V.compactMetadata)},spacer:{hideSpacer:!((D=G.lockupStyle())==null||!D.compactMetadata)}}}}})}})),_.v(_.VX,{data:function(){return G.data().attribution}},{attributionViewModel:function(h){return _.v("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.v(UR,{data:h.data,
useSmallLayout:!0}))}})),_.v("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.v(_.VX,{data:function(){return G.data().menuButton}},{buttonViewModel:function(h){return _.v(_.sQ,{data:h.data,
buttonOverrides:function(){var q;return((q=G.lockupStyle())==null?0:q.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
R5i.idomCompat=!0;var nNb=_.C(function(G){var b=_.ee("notification-multi-action-renderer");_.JC(function(){requestAnimationFrame(function(){_.l6(b.value)})});
var I={},h={},q={};return _.v("notification-multi-action-renderer",{class:_.pG("ytNotificationMultiActionRendererHost",(I.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var l;return(l=G.useLegacyShelfStyle)==null?void 0:l.call(G)},I)),
el:b},_.v("span",{"aria-live":"polite",class:_.pG("ytNotificationMultiActionRendererTextContainer",(h.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var l;return(l=G.useLegacyShelfStyle)==null?void 0:l.call(G)},h))},_.v(_.IS,{text:function(){return G.data().responseText}})),_.v("div",{class:_.pG("ytNotificationMultiActionRendererButtonContainer",(q.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var l;
return(l=G.useLegacyShelfStyle)==null?void 0:l.call(G)},q))},_.v(_.VX,{data:function(){var l;
return(l=G.data().buttons)==null?void 0:l.map(function(V){if(V=V.buttonRenderer){var D,k=Object,L=k.assign,x=(D=V.icon)==null?void 0:D.iconType;D=(D=V.command||V.serviceEndpoint||V.navigationEndpoint)?{innertubeCommand:D}:void 0;V={buttonViewModel:L.call(k,{},{iconName:x,onTap:D,trackingParams:V.trackingParams,titleFormatted:V.text?_.fG(V.text):void 0},XCp(V))}}else V=void 0;return V}).filter(function(V){return!!V})}},{buttonViewModel:function(l,V){return _.v("div",null,_.v(_.sQ,{data:l.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var D;return((D=G.useModernStyles)==null?0:D.call(G))?{type:V()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var OaQ=_.C(function(G){var b=_.ee("notification-text-renderer");_.JC(function(){requestAnimationFrame(function(){_.l6(b.value)})});
return _.v("notification-text-renderer",{el:b,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.v(_.IS,{text:function(){return G.data().successResponseText}}))},"Lb");_.gB=_.C(function(G){var b=_.lA(V5O,function(){var h;return $4r((h=G.contentId)==null?void 0:h.call(G))}),I=function(){var h;
return _.g((h=b())==null?void 0:h.command,_.y$)};
return _.v(_.Q,{cond:function(){var h;if(!(h=I())){var q;h=_.g((q=b())==null?void 0:q.command,POQ)}return h},
then:function(){return _.v(_.Q,{cond:I,then:function(){var h={};return _.v("div",{class:_.pG("ytDismissibleItemReplacedContent",function(){var q;return G0u((q=G.aspectRatio)==null?void 0:q.call(G))})},_.v("div",{class:_.pG((h.ytDismissibleItemAspectRatioContainer=function(){var q;
return((q=G.aspectRatio)==null?void 0:q.call(G))!==void 0},h))},_.v(_.VX,{data:function(){var q;
return(q=I())==null?void 0:q.item}},{notificationMultiActionRenderer:function(q){return _.v(nNb,{data:q.data,
useModernStyles:G.useModernStyle,useLegacyShelfStyle:G.useLegacyShelfStyle})},
notificationTextRenderer:OaQ})))}})},
else:G.children})},"Mb");_.wGe=_.C(function(G){var b=G.data;var I=G.customCommandResolver;G=_.Wv(_.L8({visibilityCallback:function(l){var V,D=(V=b().interaction)==null?void 0:V.onFirstVisible;l&&D&&_.Zm(D)},
showOption:_.xr}));var h=function(){var l;return((l=b().interaction)==null?0:l.onTap)?function(V){var D;t_O(V,(D=b().interaction)==null?void 0:D.onTap,I)}:void 0},q=function(){var l,V=b(),D=h(),k=(l=_.g(b().rendererContext,_.DA))==null?void 0:l.label;
a:switch(V.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":l=1;break a;default:l=0}return{size:hsj(V.size),type:l,onTap:D,accessibilityText:k}};
return _.v("ad-avatar-view-model",{class:function(){var l;return((l=b().interaction)==null?0:l.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:G},_.v(_.Q,{cond:function(){return b().image},
then:function(l){return _.v(oRQ,{data:q,image:l})}}))},"Nb");_.AE=_.C(function(G){var b=_.N5(G,{hasDot:!1,usedInMasthead:!1}),I=Object.assign({},b),h=b.data,q=b.hasDot;G=b.customCommandResolver;var l=b.usedInMasthead,V=(delete I.data,delete I.hasDot,delete I.customCommandResolver,delete I.usedInMasthead,I);b=function(){return h().style};
b!==void 0&&b!==null||_.bB(Error("Hh"));G=_.tW(function(){return h().interaction},G);
return _.v("ad-badge-view-model",{class:_.pG(function(){var D;return((D=h().interaction)==null?0:D.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var D=V.adRenderingContextType(),k=l();
h();return D!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||k?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.Wv(G)},_.v(_.$9,{data:function(){var D;h();return{type:2,text:(D=h().label)==null?void 0:D.content,adsIncludeDot:q(),isOverlay:h().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var ENn;_.MI=_.C(function(G){var b=G.data;var I=G.customCommandResolver;var h=G.adRenderingContextType;return _.v("ad-details-line-view-model",{class:function(){var q;return((q=b().interaction)==null?0:q.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.Wv(_.L8({visibilityCallback:function(q){var l,V=(l=b().interaction)==null?void 0:l.onFirstVisible;q&&V&&_.Zm(V)},
showOption:_.xr}),_.tW(function(){return b().interaction},I))},_.v(_.Q,{cond:function(){return b().style},
then:function(q){return _.v(_.aj,{each:function(){var l;return((l=b())==null?void 0:l.attributes)||[]},
keyBy:"INDEX"},function(l){return _.v(ENn,{attribute:l,style:q,adRenderingContextType:function(){return h()}})})}}))},"Pb");
ENn=_.C(function(G){var b=G.attribute;var I=G.style;var h=G.adRenderingContextType;return _.v(_.Q,{cond:function(){return b().text},
then:function(q){return _.v(_.IS,{text:q,className:function(){var l=h();I();return l==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var pGe=_.C(function(G){var b=G.data;var I=G.typographyBump;var h=function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
G={};return _.v(_.xz,null,_.v("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.v(_.IS,{text:function(){return b().headline},
className:_.pG("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return h==null?void 0:h()},G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(I==null?void 0:I())&&!(h==null?0:h())},G)),
linkInheritColor:!0}),_.v(_.Q,{cond:function(){return b().description},
then:function(q){var l={};return _.v(_.IS,{text:q,className:_.pG("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(l.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return h==null?void 0:h()},l.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(I==null?void 0:I())&&!(h==null?0:h())},l)),
linkInheritColor:!0})}}),_.v(_.Q,{cond:function(){return b().secondaryDescription},
then:function(q){var l={};return _.v(_.IS,{text:q,className:_.pG("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(l.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return I==null?void 0:I()},l)),
linkInheritColor:!0})}}),_.v("div",{class:function(){return h()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.v(_.Q,{cond:function(){return b().adAvatar},
then:function(){return _.v("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.v(_.VX,{data:function(){return b().adAvatar}},{adAvatarViewModel:_.wGe}))}}),_.v(_.VX,{data:function(){return b().adBadge}},{adBadgeViewModel:function(q){return _.v(_.AE,{data:q.data,
hasDot:function(){return!!b().adDetailsLine},
adRenderingContextType:function(){return b().adRenderingContextType}})}}),_.v(_.VX,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(q){return _.v(_.MI,{data:q.data,
adRenderingContextType:function(){return b().adRenderingContextType}})}}))),_.v("div",{class:function(){return h()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.v(_.VX,{data:function(){return b().menu}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
buttonOverrides:function(){a:switch(b().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var l="S";break a;default:l="M"}return{size:l}}})}})))},"Rb"),See=_.C(function(G){var b=G.data;
var I=G.noBottomMargin;var h=G.useVideoLockupTopPadding;var q=G.typographyBump;G={};G=_.pG("ytwFeedAdMetadataViewModelHostMetadata",(G.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return I==null?void 0:I()},G.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return h==null?void 0:h()},G));
var l=function(){return b().adBadge};
l!==void 0&&l!==null||_.bB(Error("Ih"));l={};var V={};return _.v(_.xz,null,_.v(_.Q,{cond:function(){return b().adAvatar},
then:function(){return _.v("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.v(_.VX,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(D){return _.v(_.wGe,{data:D.data})}}))}}),_.v("div",{class:G},_.v("div",{class:_.pG("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(l.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return q==null?void 0:q()},l.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(q==
null?void 0:q())&&_.U("web_enable_typography_bump_v2")},l))},_.v(_.IS,{text:function(){return b().headline},
linkInheritColor:!0})),_.v(_.Q,{cond:function(){return b().description},
then:function(D){return _.v(_.IS,{text:D,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.v("div",{class:function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.U("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.v(_.VX,{data:function(){return b().adBadge}},
{adBadgeViewModel:function(D){return _.v(_.AE,{data:D.data,
hasDot:function(){return!!b().adDetailsLine},
adRenderingContextType:function(){return b().adRenderingContextType}})}}),_.v(_.VX,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(D){return _.v(_.MI,{data:D.data,
adRenderingContextType:function(){return b().adRenderingContextType}})}})),_.v(_.Q,{cond:function(){return b().secondaryDescription},
then:function(D){return _.v(_.IS,{text:D,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.v("div",{class:_.pG("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(V.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return h==null?void 0:h()},V))},_.v(_.VX,{data:function(){return b().menu}},{buttonViewModel:_.sQ})))},"Sb"),Zb=_.C(function(G){var b=G.data;
var I=G.noBottomMargin;var h=G.listenToTapEvent;var q=G.setTouchEndHandler;var l=G.useVideoLockupTopPadding;var V=G.typographyBump;G=_.L8({visibilityCallback:function(f){var T,B=(T=b().interaction)==null?void 0:T.onFirstVisible;f&&B&&_.Zm(B)},
showOption:_.xr});var D=_.tW(function(){return b().interaction},void 0,function(){return h==null?void 0:h()}),k=_.e(_.ZZ(!1,void 0,"a2FSrb")),L=k.next().value,x=k.next().value;
k=_.Xu(function(f){(q==null?0:q())&&!L()&&(f.currentTarget.click(),x(!0),setTimeout(function(){x(!1)},100));
return!1});
return _.v("feed-ad-metadata-view-model",{class:function(){var f;return((f=b().interaction)==null?0:f.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.Wv(G,D),"on:touchend":k},_.v(_.Nc,null,_.v(_.H3,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.v(pGe,{data:b,
typographyBump:V})}),_.v(_.H3,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.v(See,{data:b,
noBottomMargin:I,useVideoLockupTopPadding:l,typographyBump:V})})))},"Tb");var XGB,$0A;XGB=_.PH.inlinePreviewEnabledSelector;_.tE=_.C(function(G){return _.v("yt-lockup-view-model",{class:_.pG(G.className,"yt-lockup-view-model--wrapper")},_.v(_.gB,{contentId:function(){return G.data().contentId},
useModernStyle:!0,aspectRatio:function(){var b,I;return((b=G.containerType)==null?void 0:b.call(G))!==3?Kjr(G.data().contentType,(I=G.force16By9ThumbnailAspectRatio)==null?void 0:I.call(G)):void 0}},function(){return _.v($0A,Object.assign({},G))}))},"Ub");
$0A=_.C(function(G){G=_.N5(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});var b=G.data,I=G.containerLayoutConfig,h=G.containerType,q=G.sizing,l=G.protectBackground,V=G.typographyBump,D=G.force16By9ThumbnailAspectRatio,k=G.thumbnailFixedWidth,L=G.thumbnailTargetWidth,x=G.lockupExperiments,f=G.elementsPerRow,
T=_.LL().resolve(_.vf(_.Pv));G=_.Wv(_.s2(function(){var is;return(is=b())==null?void 0:is.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 B=_.m2(XGB),A=_.LL().resolve(_.vf(Qfe)),t=A?{}:void 0,y=function(){var is,su,an;return(an=(su=_.g((is=b())==null?void 0:is.rendererContext,_.DA))==null?void 0:su.label)!=null?an:void 0},F=function(){var is;
return(is=_.g(b().metadata,_.B1b))==null?void 0:is.endorsement},W=function(){var is=I==null?void 0:I(),su;
if(is==null?0:is.containerType){var an=(su=b())==null?void 0:su.contentType;su=x();var A5=V(),XO=L(),kb=l();is=Object.assign({},uhO(N_O(is),oZ(is.responsiveSize),A5,an,is.force16By9ThumbnailAspectRatio,XO,kb,su),{thumbnailFixedWidth:is.contentPreviewWidth})}else is=uhO(h(),q(),V(),(an=b())==null?void 0:an.contentType,D(),L(),l(),x());return is};
A&&t&&A({enabled:function(){return B()},
itemPlaybackModel:function(){return b().itemPlayback},
thumbnailElRef:function(){return t.thumbnailElRef},
containerElRef:G,options:function(){var is=t.thumbnailOverlays||[],su=F(),an;!su||((an=x())==null?0:an.onFocusEffect)||is.push(su);var A5,XO;return{thumbnail:t.thumbnail,thumbnailOverlays:is,accessibilityText:y(),thumbnailSize:t.thumbnailSize,enableRounding:W().isCollection,containPlayerWithinThumbnail:W().isCollection,mouseleaveCallback:function(){u(!1)},
trackingParams:(A5=_.g(b().rendererContext,_.jA))==null?void 0:(XO=A5.loggingDirectives)==null?void 0:XO.trackingParams}}});
var O=0;A=_.e(_.ZZ(!1,void 0,"YXogPb"));var K=A.next().value,u=A.next().value;A=_.e(_.ZZ(!1,void 0,"vgDaqd"));var w=A.next().value,$a=A.next().value;A=_.Xu(function(){w()?(_.uu.cancelJob(O),O=_.uu.addJob(function(){u(!0)},8,32)):u(!0);
return!0});
var ev=_.Xu(function(is){is=is.relatedTarget;var su=document.querySelector("ytd-video-preview");is&&su&&su.contains(is)||(O&&(_.uu.cancelJob(O),O=0),u(!1))});
_.uI(function(){O&&(_.uu.cancelJob(O),O=0)});
var LO=I22(function(){$a(!0)}),td=LO.touchFeedbackEvents,xa=LO.touchFeedbackOnPointerUp,Uj=LO.touchFeedbackOnPointerDown;
LO=LO.touchFeedbackOnPointerLeave;var W2={};return _.v(_.xz,null,_.v("div",{el:G,class:_.pG("yt-lockup-view-model",function(){a:{var is=W();if(is.isOverlay)is="yt-lockup-view-model--overlay";else switch(is.arrangement){case 1:is="yt-lockup-view-model--horizontal";break a;default:is="yt-lockup-view-model--vertical"}}return is},function(){a:{var is=W();
if(is.isOverlay)is="yt-lockup-view-model--overlay";else{switch(is.collectionStackNumber){case 1:is="yt-lockup-view-model--collection-stack-1";break a;case 2:is="yt-lockup-view-model--collection-stack-2";break a}is=void 0}}return is},function(){var is;
return _.SwO((is=b())==null?void 0:is.contentId)},(W2["yt-lockup-view-model--card"]=function(){return W().isCard},W2["yt-lockup-view-model--compact"]=function(){return W().isTiny||W().sizing!=="STANDARD"},W2["yt-lockup-view-model--protect-background"]=l,W2["yt-lockup-view-model--add-margins"]=function(){return W().addMarginForFullbleed},W2["yt-lockup-view-model--centered"]=function(){return W().isCentered},W2["yt-lockup-view-model--fullbleed"]=function(){return W().fullbleed},W2["yt-lockup-view-model--single-column-grid"]=
function(){return f()===1&&h()===2},W2["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var is;
return(is=x())==null?void 0:is.useRichGridLegacyMargin},W2["yt-lockup-view-model--flex-none"]=function(){return!_.U("lockup_flex_none_killswitch")},W2)),
"on:mousedown":Uj,"on:mouseleave":ev,"on:mouseup":xa,"on:mouseover":A,"on:touchstart":Uj,"on:touchend":xa,"on:pointerleave":LO},_.v(_.Qy,{model:function(){var is,su,an=Object,A5=an.assign,XO=(t==null?void 0:t.thumbnailSize)||"small";a:{var kb=W();var rz=!!(F()&&((is=x())==null?0:is.onFocusEffect));switch((t==null?void 0:t.thumbnailSize)||"small"){case "small":is=4;break;case "large":is=12;break;default:is=8}if(rz)kb=is+12;else{switch(kb.collectionStackNumber){case 1:kb=is+8;break a;case 2:kb=is+12;
break a}kb=void 0}}XO={thumbnailSize:XO,triggerEvents:!0,customTopExtend:kb};var on;kb=(su=x())==null?void 0:su.onFocusEffect;rz=!(T==null||!T());if(kb){var Ac,U1;su=rz?(Ac=kb.onFocusColor)==null?void 0:Ac.darkTheme:(U1=kb.onFocusColor)==null?void 0:U1.lightTheme;var mp,bn;Ac=rz?(mp=kb.keyLightColor)==null?void 0:mp.darkTheme:(bn=kb.keyLightColor)==null?void 0:bn.lightTheme;var xb;mp=rz?(on=kb.touchResponseColor)==null?void 0:on.darkTheme:(xb=kb.touchResponseColor)==null?void 0:xb.lightTheme;on={background:su!==
void 0?AL(su):void 0,keyLight:Ac!==void 0?AL(Ac):void 0};xb=[];bn=_.e(kb.lightingTechniques||[]);for(Ac=bn.next();!Ac.done;Ac=bn.next())switch(Ac.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":xb.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":xb.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":xb.push(3)}on={hoverEffect:{palette:on,lightingTechniques:xb},touchEffect:{palette:{background:mp!==void 0?AL(mp):void 0}}}}else on={};return A5.call(an,{},XO,on)},
hovered:function(){return K()},
pointerDownEvent:td.pointerDownEvent,pointerUpEvent:td.pointerUpEvent,pointerLeaveEvent:td.pointerLeaveEvent}),_.v(_.Q,{cond:function(){var is;return F()&&K()&&((is=x())==null?void 0:is.onFocusEffect)},
then:function(){return _.v("div",{class:"yt-lockup-view-model__endorsement"},_.v(_.VX,{data:function(){return F()}},{attributionViewModel:function(is){return _.v(UR,{data:is.data,
useHeavyText:!0})}}))}}),_.v(_.LP,{command:function(){var is;
return _.BH((is=b())==null?void 0:is.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(k()||W().thumbnailFixedWidth)&&W().arrangement===1?"width: "+(k()||W().thumbnailFixedWidth):""}},_.v(_.VX,{data:function(){var is;
return(is=b())==null?void 0:is.contentImage}},{thumbnailViewModel:function(is){return _.v(_.Qo,{data:is.data,
aspectRatio:function(){return W().aspectRatio},
disableRounding:function(){return W().disableRounding},
width:L,hovered:function(){return K()&&!(B()&&b().itemPlayback)},
isClip:function(){var su;return((su=b())==null?void 0:su.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:gDs(t),lockupExperiments:function(){return x()}})},
collectionThumbnailViewModel:function(is){return _.v(dYW,{data:is.data,aspectRatio:function(){return W().aspectRatio},
disableRounding:function(){return W().disableRounding},
width:L,doubleStack:function(){return W().collectionStackNumber===2},
hovered:function(){return K()&&!(B()&&b().itemPlayback)},
playbackRef:gDs(t)})},
decoratedAvatarViewModel:_.w1})),_.v("div",{class:"yt-lockup-view-model__metadata"},_.v(_.VX,{data:function(){var is;return(is=b())==null?void 0:is.metadata}},{lockupMetadataViewModel:function(is){return _.v(R5i,{data:is.data,
hovered:K,lockupStyle:W,lockupCommand:function(){var su;return _.BH((su=b())==null?void 0:su.rendererContext)},
lockupAccessibilityLabel:function(){return y()},
layout:function(){var su;return((su=x())==null?0:su.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(is){return _.v(Zb,{data:is.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:V})}}),_.v(_.VX,{data:function(){var is;
return(is=b())==null?void 0:is.attachmentSlot}},{lockupAttachmentsViewModel:function(is){return _.v(an8,{data:is.data,
lockupStyle:W})}}))),_.v(_.VX,{data:function(){var is;
return(is=b())==null?void 0:is.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(is){return _.v(an8,{data:is.data,
lockupStyle:W})}}))},"Vb");
_.tE.idomCompat=!0;_.JN(_.tE,"yt-lockup-view-model",{props:{data:_.hV,containerLayoutConfig:_.hV,containerType:_.hV,sizing:_.hV,protectBackground:_.hV,typographyBump:_.hV,thumbnailFixedWidth:_.hV,thumbnailTargetWidth:_.hV,force16By9ThumbnailAspectRatio:_.hV,className:_.hV,lockupExperiments:_.hV,elementsPerRow:_.hV}});var m42,GKQ=_.C(function(G){var b=_.N5(G,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),I=b.text,h=b.alwaysShowTruncationText;G=b.truncationText;var q=b.onTextClick,l=b.maxLines,V=b.disableTextMask,D=b.textStyle,k=b.accessibilityLabel,L=b.textSize,x=b.alwaysTruncateAtMaxLines,f=b.expandOnClick;b=_.e(_.ZZ(!1,void 0,"EzA1q"));var T=b.next().value,B=b.next().value;b=_.Xu(function(){f()&&B(!T());q==null||q()});
var A=function(){a:switch(L()){case "medium":var $a=2;break a;case "large":$a=2.2;break a;default:$a=1.8}return $a},t=D4d(I,function(){return T()?Infinity:l()},A,V,x,T),y=t.isTruncated;
I=t.displayText;x=t.contentRef;var F=t.hiddenRef,W=t.placeholderTruncationTextRef,O=t.hiddenTruncationTextRef;t=t.truncationTextRef;var K={},u={},w={};return _.v("truncated-text",{class:_.pG((K["yt-truncated-text"]=!0,K["yt-truncated-text--overlay"]=function(){return D()==="overlay"},K["yt-truncated-text--medium-text"]=function(){return L()==="medium"},K["yt-truncated-text--large-text"]=function(){return L()==="large"},K["yt-truncated-text--primary-text"]=function(){return D()==="primary-text"},K)),
"on:click":b,style:function(){return"line-height: "+A()+"rem;"}},_.v("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:x,style:function(){return T()?"":"max-height: "+l()*A()+"rem;"}},_.v(_.IS,{text:I}),_.v("button",{"aria-disabled":!0,
disabled:!0,class:_.pG((u["yt-truncated-text__inline-button"]=!0,u["yt-truncated-text--hidden"]=function(){return!(!T()&&(h!=null&&h()||y()))},u)),
el:W,style:function(){return"line-height: "+A()+"rem;"}},_.v(_.IS,{text:G}))),_.v("truncated-text-content",{class:_.pG("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:F,style:function(){return T()?"":"max-height: "+l()*A()+"rem;"},
"aria-hidden":"true"},_.v(_.IS,{text:I}),_.v("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:O,style:function(){return"line-height: "+A()+"rem;"}},_.v(_.IS,{text:G}))),_.v("button",{"aria-label":k,
class:_.pG((w["yt-truncated-text__absolute-button"]=function(){return!V()},w["yt-truncated-text__bottom-button"]=function(){return V()},w["yt-truncated-text--hidden"]=function(){return!(!T()&&(h!=null&&h()||y()))},w)),
el:t,style:function(){return"line-height: "+A()+"rem;"}},_.v(_.IS,{text:G})))},"Xb");
GKQ.idomCompat={callbacks:{onTextClick:!0}};var hJQ=_.C(function(G){var b=G.data;G=G.className;var I=_.P$(function(){return k0u(b())},void 0,"uDhDke"),h=_.v(_.xz,null,_.v(_.Q,{cond:function(){return b().heroText||b().image},
then:function(){return _.v(b25,{data:b})}}),_.v(I7b,{data:b,
sizeSmall:function(){return b().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.v("yt-video-attribute-view-model",{class:G},_.v("div",{class:function(){var q=b();a:switch(q.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var l="yt-video-attribute-view-model--vertical";break a;default:l="yt-video-attribute-view-model--horizontal"}a:switch(q.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var V="yt-video-attribute-view-model--image-small";break a;default:V="yt-video-attribute-view-model--image-large"}a:switch(q.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var D=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":D="yt-video-attribute-view-model--image-avatar";break a;default:D=""}a:switch(q.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var k="yt-video-attribute-view-model--metadata-header";break a;default:k=""}a:switch(q.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var L="yt-video-attribute-view-model--container-card";break a;default:L=""}return["yt-video-attribute-view-model",l,V,
D,k,L,k0u(q)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Ir({"background-color":function(){var q=b();if(q.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var l="";else{l=q.lightColorPalette;q=q.darkColorPalette;var V,D=((V=_.LL().resolve(_.vf(_.Pv)))==null?0:V())&&q?q:l;l=(l=D==null?void 0:D.section2Color)?_.so(l):""}return l}})},_.v(_.Q,{cond:I,
then:function(){return _.v(_.LP,{className:"yt-video-attribute-view-model__content-container",command:I,role:"group",ariaLabel:function(){return b().title}},h)},
else:function(){return _.v("div",{class:"yt-video-attribute-view-model__content-container"},h)}})))},"Yb");
hJQ.idomCompat=!0;var b25=_.C(function(G){var b=G.data;var I,h=(I=_.LL().resolve(_.vf(_.Pv)))==null?void 0:I(),q=function(){return h&&b().darkThemeImage?b().darkThemeImage:b().image},l=_.P$(function(){return vRj(b())},void 0,"UDqj0b");
return _.v("div",{class:"yt-video-attribute-view-model__hero-section"},_.v(_.Nc,null,_.v(_.H3,{when:q},function(){return _.v(_.Fu,{data:function(){return q()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.v(_.H3,{when:function(){return b().heroText}},function(){return _.v("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.v("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return b().heroText}))})),_.v(_.Q,{cond:function(){return b().overflowMenuOnTap},
then:function(){return _.v("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.v(_.TV,{data:l,iconName:"MORE_VERT"}))}}))},"Zb");
b25.idomCompat=!0;var I7b=_.C(function(G){var b=G.data;G=G.sizeSmall;var I=function(){return b().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},h=_.P$(function(){return Mo(_.AN({innertubeCommand:k0u(b())}))?"link":k0u(b())?"button":"group"},void 0,"e2MmYe"),q={};
return _.v("div",{class:_.pG("yt-video-attribute-view-model__metadata",(q["yt-video-attribute-view-model--small-font"]=G,q)),role:h},_.v("h1",{class:"yt-video-attribute-view-model__title"},function(){return b().title}),_.v(_.Q,{cond:function(){return b().subtitle},
then:function(){return _.v("h4",{class:"yt-video-attribute-view-model__subtitle"},_.v(_.Q,{cond:I,then:function(){return _.v(GKQ,{text:function(){return cSa(b().subtitle)},
truncationText:function(){return cSa(b().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.v("span",null,function(){return b().subtitle})}}))}}),_.v(_.Q,{cond:function(){return b().secondarySubtitle},
then:function(l){return _.v("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.v(_.IS,{text:function(){var V=l();if(V!=null&&V.attachmentRuns){for(var D=[],k=_.e(V.attachmentRuns),L=k.next();!L.done;L=k.next())L=L.value,L.element&&D.push(Object.assign({},L,{element:Object.assign({},L.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));V=Object.assign({},V,{attachmentRuns:D})}return V}}))}}),_.v(_.VX,
{data:function(){return b().buttonViewModel}},{buttonViewModel:function(l){return _.v(_.sQ,{data:l.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
I7b.idomCompat=!0;_.JN(hJQ,"yt-video-attribute-view-model",{props:{data:_.hV,className:_.hV}});var zC=function(){var G=_.a.apply(this,arguments)||this;G.useHighlightStyling=_.U("web_enable_deeper_metadata_highlight_styling");G.isSearch=!1;G.JSC$15351_lastScrollContainerWidth=NaN;G.pageLoadingFromNavigation=!1;G.currentIndex=0;G.supportComponentResize=!1;return G};
_.M(zC,_.a);_.m=zC.prototype;
_.m.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}}}}}};
_.m.attached=function(){document.addEventListener("yt-page-type-changed",_.I9(this,this.onPageChange))};
_.m.detached=function(){document.removeEventListener("yt-page-type-changed",_.I9(this,this.onPageChange))};
_.m.getItemsPath=function(){return"data.cards"};
_.m.onIronResize=function(){this.updateListStyles()};
_.m.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=_.U("problem_walkthrough_sd")&&!!this.centerItems};
_.m.computeCardListStyle=function(G){return G||null};
_.m.computeEmpty=function(G){return!this.get("cards.length",G)};
_.m.computeThumbnailStyle=function(G){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",G)||null};
_.m.computeHasSubtitle=function(G){return!!this.get("header.richListHeaderRenderer.subtitle",G)};
_.m.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};
_.m.computeUseFloorScrolling=function(G){return G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.m.computeHasGameCard=function(G){return(G=this.get("cards",G))?G.some(function(b){return b.gameCardRenderer}):!1};
_.m.computeCenterHeaderTitle=function(G){return!(G==null||!G.centerHeaderTitle)};
_.m.computeHasPortraitMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.m.computeHasSquareMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.m.computeHasSkinnyWidthPortraitMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.width===135}):!1};
_.m.computeCenterItems=function(G){return!!G};
_.m.computeHasInfoPanel=function(G){var b;return G==null?void 0:(b=G.cards)==null?void 0:b.some(function(I){return I.infoPanelContentRenderer})};
_.m.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.m.getItemByIndex=function(G){var b=this.items.children;return b&&b.length>G?b[G]:void 0};
_.m.onPageChange=function(){var G=this;this.pageLoadingFromNavigation=!0;_.uu.addJob(function(){G.pageLoadingFromNavigation=!1;_.E3(G.hostElement,"yt-terminate-video-preview-action")},8)};
_.m.updateListStyles=function(){if(_.U("problem_walkthrough_sd")&&this.JSC$15351_scrollContainer!==void 0){var G=this.JSC$15351_scrollContainer.clientWidth;G!==this.JSC$15351_lastScrollContainerWidth&&(this.JSC$15351_lastScrollContainerWidth=G,_.G8(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(G*.8,415)+"px"}),_.O3(this.hostElement,"iron-resize"))}};
_.kV.Object.defineProperties(zC.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.U("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return!!((G=this.data)==null?0:(b=G.cards)==null?0:(I=b[0])==null?0:I.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return!!((G=this.data)==null?0:(b=G.cards)==null?0:(I=b[0])==null?0:I.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return _.U("enable_desktop_amsterdam_info_panels")&&!!((G=this.data)==null?0:(b=G.cards)==null?0:(I=b[0])==null?0:I.infoPanelContentRenderer)}}});
zC.prototype.dataChanged=zC.prototype.dataChanged;zC.prototype.onIronResize=zC.prototype.onIronResize;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],zC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.Qk.YtdHorizontalListBehavior),_.n("design:type",Object)],zC.prototype,"ytdHorizontalListBehavior",void 0);
_.R([_.z(_.p5),_.n("design:type",Object)],zC.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],zC.prototype,"data",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],zC.prototype,"useCustomColors",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zC.prototype,"useHighlightStyling",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.n("design:type",Object)],zC.prototype,"cardListStyle",void 0);_.R([_.H({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.n("design:type",Boolean)],zC.prototype,"empty",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.n("design:type",Boolean)],zC.prototype,"hasSubtitle",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.n("design:type",Boolean)],zC.prototype,"thumbnailStyle",void 0);_.R([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.n("design:type",Boolean)],zC.prototype,"hasGameCard",void 0);_.R([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.n("design:type",Boolean)],zC.prototype,"centerHeaderTitle",void 0);
_.R([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.n("design:type",Boolean)],zC.prototype,"hasPortraitMiniApp",void 0);_.R([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.n("design:type",Boolean)],zC.prototype,"hasSquareMiniApp",void 0);_.R([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.n("design:type",Boolean)],zC.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.R([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.n("design:type",Boolean)],zC.prototype,"hasInfoPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zC.prototype,"isSearch",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],zC.prototype,"inlineStructuredDescription",void 0);_.R([_.lH("#scroll-container"),_.n("design:type",HTMLDivElement)],zC.prototype,"JSC$15351_scrollContainer",void 0);
_.R([_.H({computed:"computeInitialCountNumber(data.style.type)"}),_.n("design:type",Number)],zC.prototype,"initialCount",void 0);_.R([_.H({computed:"computeUseFloorScrolling(data.style.type)"}),_.n("design:type",Boolean)],zC.prototype,"useFloorScrolling",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.n("design:type",Boolean)],zC.prototype,"centerItems",void 0);_.R([_.H(),_.n("design:type",Object)],zC.prototype,"pageLoadingFromNavigation",void 0);
_.R([_.H(),_.n("design:type",Object)],zC.prototype,"currentIndex",void 0);_.R([_.H(),_.n("design:type",Number)],zC.prototype,"scrollCount",void 0);_.R([_.H(),_.n("design:type",Object)],zC.prototype,"supportComponentResize",void 0);_.R([_.lH("#items"),_.n("design:type",HTMLDivElement)],zC.prototype,"items",void 0);_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zC.prototype,"onIronResize",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zC.prototype,"dataChanged",null);_.R([_.H({reflectToAttribute:!0}),_.P("inlineStructuredDescription"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],zC.prototype,"hideNavigationButton",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],zC.prototype,"modernChapters",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],zC.prototype,"hasVideoAttributeViewModels",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],zC.prototype,"modernInfoPanels",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],zC);
_.J(zC,"ytd-horizontal-card-list-renderer",function(){if(ERO!==void 0)return ERO;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ERO=G},{mode:_.nn("kevlar_poly_si_batch_j072")?1:2});var qkz=_.C(function(G){var b=G.data;var I={};return _.v("video-summary-content-view-model",{class:_.pG("videoSummaryContentViewModelHost",G.className,(I.videoSummaryContentViewModelHostIsSearch=G.isSearch,I))},_.v(_.aj,{each:function(){var h=[],q=b().paragraphs;if(q==null||!q.length)return[];for(var l=0;l<q.length;l++){var V=_.g(q[l],BZJ),D=void 0;l>0&&(D=_.g(q[l-1],BZJ));D&&!!D.marker===!!V.marker?h[h.length-1].paragraphs.push(V):h.push({isList:!!V.marker,paragraphs:[V]})}return h},
keyBy:"INDEX"},function(h){return _.v(_.Q,{cond:function(){return h().isList},
then:function(){return _.v("ul",{class:"videoSummaryContentViewModelList"},_.v(_.aj,{each:function(){return h().paragraphs},
keyBy:"INDEX"},function(q){return _.v("li",{class:"videoSummaryContentViewModelListItem"},_.v(_.IS,{text:function(){return q().text}}))}))},
else:function(){return _.v("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.v(_.aj,{each:function(){return h().paragraphs},
keyBy:"INDEX"},function(q){return _.v("p",{class:"videoSummaryContentViewModelParagraph"},_.v(_.IS,{text:function(){return q().text}}))}))}})}),_.v(_.Q,{cond:function(){return!!_.g(b().likeButtonViewModel,_.EU)&&!!_.g(b().dislikeButtonViewModel,_.w0)},
then:function(){return _.v("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.v("div",{class:"videoSummaryContentViewModelLikeButton"},_.v(_.SJ,{data:function(){return _.g(b().likeButtonViewModel,_.EU)},
disableIconAnimation:!0})),_.v(_.p9,{data:function(){return _.g(b().dislikeButtonViewModel,_.w0)}}))}}))},"ac");
qkz.idomCompat=!0;_.JN(qkz,"video-summary-content-view-model",{props:{data:_.hV,isSearch:_.hV,className:_.hV}});var ir=function(){var G=_.a.apply(this,arguments)||this;var b,I;G.isExpanded=(I=(b=G.data)==null?void 0:b.isExpanded)!=null?I:!1;G.disableExpand=!1;G.showProminentLabel=!1;G.showRightSideLabel=!0;G.toggleExpandableContent=function(h){G.disableExpand||(h.stopPropagation(),_.Yo(_.Wy(h),G.hostElement,["info","expanded-subtitle"])||(G.isExpanded=!G.isExpanded,G.ytRendererBehavior.logExplicitClick(G.data),G.JSC$15362_cardList&&!_.U("expandable_metadata_a11y_fix_ks")&&_.D1(G,function(){_.jG(G.hostElement)})))};
G.useSquareThumbnail=!1;G.startX=0;return G};
_.M(ir,_.a);_.m=ir.prototype;_.m.computeUseSquareThumbnail=function(){var G;return(G=this.data)==null?void 0:G.useSquareThumbnail};
_.m.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"}}}}};
_.m.dataChanged=function(){if(this.data){var G,b;this.isExpanded=(b=(G=this.data)==null?void 0:G.isExpanded)!=null?b:!1;var I,h,q,l;if(G=this.isDarkTheme()?(I=this.data)==null?void 0:(h=I.colorData)==null?void 0:h.darkColorPalette:(q=this.data)==null?void 0:(l=q.colorData)==null?void 0:l.lightColorPalette){var V,D;if((V=this.data)==null?0:(D=V.colorData)==null?0:D.vibrantColorPalette)G.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.vN(this.hostElement,G)}}};
_.m.isExpandedChanged=function(){this.isExpanded&&this.JSC$15362_cardList&&_.O3(this.JSC$15362_cardList,"iron-resize")};
_.m.computeIsExpanded=function(G){return!!G.isExpanded};
_.m.computeShowProminentLabel=function(G,b){var I;return!!(G==null?0:(I=G.header)==null?0:I.showLeadingCollapsedLabel)&&!b};
_.m.computeShowRightSideLabel=function(G,b){var I;return!(G==null?0:(I=G.header)==null?0:I.showLeadingCollapsedLabel)&&!b};
_.m.captureContentClick=function(G){if(!this.disableExpand)if(_.U("expandable_metadata_fix_killswitch")){var b=G.target;_.NVe(b,"ytd-macro-markers-list-item-renderer")||G.stopPropagation();(b==null?void 0:b.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Yo(_.Wy(G),this.hostElement,["items"])||_.NK(_.Wy(G),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.m.timestampClick=function(G){G.stopPropagation();var b,I;(G=(b=this.data)==null?void 0:(I=b.header)==null?void 0:I.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(G)};
_.m.onDown=function(G){G.stopPropagation();this.startX=G.detail?G.detail.x:0};
_.m.onUp=function(G){this.skipKeyInteraction(G)&&G.stopPropagation()};
_.m.skipKeyInteraction=function(G){var b=G.target;if((b==null?void 0:b.id)==="scroll-container"||(b==null?void 0:b.id)==="items"||G.detail&&G.detail.x!==this.startX)return!0;G=_.Wy(G);G=_.e(G);for(b=G.next();!b.done;b=G.next()){b=b.value;if(b===this.hostElement)break;if(b.hasAttribute&&b.hasAttribute("skip-key-interaction"))return!0}return!1};
_.m.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.kV.Object.defineProperties(ir.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.g((G=this.data)==null?void 0:G.expandedContent,TZi)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.g((G=this.data)==null?void 0:G.expandedContent,_.UJ8)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var G,b;return!((G=this.data)==null||!G.useCustomColors)&&!((b=this.data)==null||!b.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,b;return!!((G=this.data)==null?0:(b=G.header)==null?0:b.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var G,b;return!!((G=this.data)==null?0:(b=G.header)==null?0:b.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,b;return!!((G=this.data)==null?0:(b=G.header)==null?0:b.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"}}});
ir.prototype.onUp=ir.prototype.onUp;ir.prototype.onDown=ir.prototype.onDown;ir.prototype.isExpandedChanged=ir.prototype.isExpandedChanged;ir.prototype.dataChanged=ir.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ir.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],ir.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ir.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ir.prototype,"isExpanded",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ir.prototype,"disableExpand",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],ir.prototype,"isSearch",void 0);
_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],ir.prototype,"isWatch",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.n("design:type",Object)],ir.prototype,"showProminentLabel",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.n("design:type",Object)],ir.prototype,"showRightSideLabel",void 0);
_.R([_.H({value:!1,reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ir.prototype,"hasVideoSummary",null);_.R([_.H({value:!1,reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ir.prototype,"hasLockupViewModel",null);_.R([_.H({reflectToAttribute:!0}),_.P("data","isWatch"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ir.prototype,"useCustomColors",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data","isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ir.prototype,"showInfoButton",null);_.R([_.P("data","isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ir.prototype,"showTimestamp",null);_.R([_.P("data","isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ir.prototype,"showExpandedSubtitle",null);
_.R([_.P("data","isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ir.prototype,"showThumbnail",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ir.prototype,"useVppShoppingDestinationStyle",null);_.R([_.H(),_.n("design:type",Object)],ir.prototype,"toggleExpandableContent",void 0);_.R([_.lH("ytd-horizontal-card-list-renderer"),_.n("design:type",Object)],ir.prototype,"JSC$15362_cardList",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.n("design:type",Object)],ir.prototype,"useSquareThumbnail",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ir.prototype,"dataChanged",null);_.R([_.q5("isExpanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ir.prototype,"isExpandedChanged",null);
_.R([_.hI("down"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ir.prototype,"onDown",null);_.R([_.hI("up"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ir.prototype,"onUp",null);_.R([_.N({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],ir);
_.J(ir,"ytd-expandable-metadata-renderer",function(){if(hsu!==void 0)return hsu;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\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(_.E().content.cloneNode(!0),
G.content.firstChild);return hsu=G},{mode:1});var j7i,l7z=function(){if(j7i!==void 0)return j7i;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return j7i=G};_.JN(_.Em,"yt-avatar-stack-view-model",{props:{className:_.hV,data:_.hV,overrides:_.hV,isOverlay:_.hV,useMediumText:_.hV,decorations:_.hV,hideAvatar:_.hV}});_.QO("itemSectionRenderer","videoRenderer","ytd-video-renderer");var P_=function(){var G=_.a.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};
_.M(P_,_.a);_.m=P_.prototype;_.m.computeUseSearchUi=function(){var G,b;return this.isSearch||((G=this.data)==null?void 0:(b=G.style)==null?void 0:b.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.m.computeUseThreeLineTitle=function(){var G;return((G=this.data)==null?void 0:G.maxTitleLines)===3};
_.m.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.U("polymer_video_renderer_defer_menu")&&!CbQ?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"}}}};
_.m.attached=function(){_.SL(this.hostElement,"blue-links",_.U("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.m.detached=function(){this.clearInlinePreviewHoverListeners()};
_.m.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.XA(_.Eo(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var G=this.get("data.buttons.buttonRenderer.serviceEndpoint"),b;G&&((b=_.g(G.commandMetadata,_.aV))==null?0:b.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(G);this.updateInlinePreviewHoverListeners()};
_.m.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15367_inlinePreviewHoverListener=Mt({mediaRenderer:this,lockupElement:this.JSC$15367_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.m.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15367_inlinePreviewHoverListener)==null||NA(G)};
_.m.onTextWrapperClick=function(G){var b,I,h=this.hideTranslation?(b=this.data)==null?void 0:b.untranslatedNavigationEndpoint:(I=this.data)==null?void 0:I.navigationEndpoint;b=_.Yo(_.Wy(G),this.hostElement,["expandable-metadata"]);!h||b&&!_.U("expandable_metadata_fix_killswitch")||_.NK(_.Wy(G),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.O3(this.hostElement,"yt-navigate",{endpoint:h})};
_.m.computeThumbnailWidth=function(G,b,I,h,q){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:h?q==="MASSIVE"?600:q==="BIG"?500:q==="MEDIUM"?450:420:I?360:b?128:G?210:246};
_.m.computeUseBiggerThumbs=function(G){return G&&_.U("enable_desktop_search_bigger_thumbs")};
_.m.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.m.computeHasAttributedBylineText=function(){var G;return!((G=this.data)==null||!G.attributedBylineText)};
_.m.computeVideoStyle=function(){if(_.U("enable_video_style")){var G,b;return(G=this.data)==null?void 0:(b=G.style)==null?void 0:b.value}};
_.m.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.m.handleHideItemSectionVideosByIdCommand=function(G){var b;G=(b=_.g(G,CzX))==null?void 0:b.videoId;this.data&&this.data.videoId===G&&(this.isHidden=!0)};
_.m.getMetadataSnippetContainerClass=function(G){return G?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.m.computeTitleText=function(G,b,I){return G?I:b};
_.m.computeDescriptionSnippet=function(G,b,I){return G?I:b};
_.m.computeSnippetText=function(G,b,I){return G?I:b};
_.m.computeNavigationEndpoint=function(G,b){return G?b==null?void 0:b.untranslatedNavigationEndpoint:b==null?void 0:b.navigationEndpoint};
_.m.hideInlineTitleIcon=function(G,b){return G||!b};
_.kV.Object.defineProperties(P_.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,b,I;return!!(this==null?0:(G=this.data)==null?0:(b=G.channelThumbnailSupportedRenderers)==null?0:(I=b.channelThumbnailWithLinkRenderer)==null?0:I.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.g((G=this.data)==null?void 0:G.avatar,smn)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15367_inlinePreviewHoverListener)==null?0:Xd(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.kV.Object.defineProperties(P_,{template:{configurable:!0,enumerable:!0,get:function(){return l7z()}}});
P_.prototype.dataChanged=P_.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],P_.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],P_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],P_.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.z(_.ho),_.n("design:type",Object)],P_.prototype,"ytdLockupBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],P_.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],P_.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],P_.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],P_.prototype,"isBackstageVideo",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],P_.prototype,"isPostCompactVideo",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],P_.prototype,"isHistory",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],P_.prototype,"isRichGridVideoPost",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],P_.prototype,"isHidden",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],P_.prototype,"isSearch",void 0);_.R([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.n("design:type",Boolean)],P_.prototype,"useSearchUi",void 0);_.R([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.n("design:type",Boolean)],P_.prototype,"useThreeLineTitle",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.n("design:type",Boolean)],P_.prototype,"useBiggerThumbs",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.n("design:type",Object)],P_.prototype,"videoStyle",void 0);_.R([_.H({computed:"computeDisableExpand(videoStyle)"}),_.n("design:type",Object)],P_.prototype,"disableExpand",void 0);
_.R([_.H({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.n("design:type",Object)],P_.prototype,"shouldShowChannelInfo",void 0);_.R([_.H({computed:"computeHasAttributedBylineText(data)"}),_.n("design:type",Object)],P_.prototype,"hasAttributedBylineText",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.UG("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],P_.prototype,"biggerThumbsStyle",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.n("design:type",String)],P_.prototype,"inlineTitleIcon",void 0);_.R([_.H({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.n("design:type",Object)],P_.prototype,"computedNavigationEndpoint",void 0);_.R([_.H({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(G,b){return _.Gi(G.entities,"searchVideoResultEntity",b)}}),
_.n("design:type",Object)],P_.prototype,"searchVideoResultEntity",void 0);_.R([_.lH("ytd-thumbnail"),_.n("design:type",HTMLElement)],P_.prototype,"thumbnail",void 0);_.R([_.lH("#dismissible"),_.n("design:type",HTMLElement)],P_.prototype,"JSC$15367_dismissibleMedia",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],P_.prototype,"dataChanged",null);
_.R([_.P("searchVideoResultEntity"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],P_.prototype,"hideTranslation",null);_.R([_.P("searchVideoResultEntity"),_.n("design:type",Array),_.n("design:paramtypes",[])],P_.prototype,"hiddenBadgeGroups",null);_.R([_.P("data","useAvatar"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],P_.prototype,"shouldShowChannelThumbnail",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],P_.prototype,"useAvatar",null);
_.R([_.P("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],P_.prototype,"isHovered",null);_.R([_.N({is:"ytd-video-renderer",disableElementRegistration:!0})],P_);_.J(P_,"ytd-video-renderer",function(){return l7z()},{mode:_.nn("kevlar_poly_si_batch_j047")?1:2});var dB=function(){var G=_.a.apply(this,arguments)||this;G.editDialog=null;G.roundedContainer=!0;G.isLoading=!1;G.isRichGrid=!1;G.isRichGridRepost=!1;G.reduceSidePaddings=_.U("reduce_side_paddings_in_shelf");G.JSC$15374_spinnerEl=null;return G};
_.M(dB,_.a);_.m=dB.prototype;
_.m.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"}}}};
_.m.contentTextChanged=function(){this.expander.reset()};
_.m.dataChanged=function(){var G=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var b=0,I=this.data.actions&&this.data.actions.length;b<I;b++)this.openEditDialog(_.g(this.data.actions[b],AwB));if((b=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(b=this.get("buttonRenderer.hint.hintRenderer.hintId",b))&&b.startsWith("share-post-hint")){var h=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(h){_.Zg.getInstance();var q=tn(_.ao(_.qP("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.uu.addLowPriorityJob(function(){_.Su(G.hostElement,q,h)})}}}};
_.m.updatePoll=function(G){G>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.m.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15374_spinnerEl||(this.JSC$15374_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Eo(this.hostElement).appendChild(this.JSC$15374_spinnerEl));this.JSC$15374_spinnerEl&&(this.JSC$15374_spinnerEl.active=this.isLoading)};
_.m.onYtNavigate=function(G){var b=this.get("updateCommentDialogEndpoint",G.detail.endpoint);b&&(this.openEditDialog(b),G.stopPropagation())};
_.m.onYtCommentboxDismiss=function(){this.editDialog=null};
_.m.onYtCommentPollRevert=function(G,b){b&&this.updatePoll(b.selectedChoiceIndex)};
_.m.onYtServiceRequestSent=function(G,b){var I;b.endpoint&&(_.g(b.endpoint,dTn)||_.g(b.endpoint,Phi)&&((I=_.g(b.endpoint,Phi))==null||!I.clientActions))&&(this.isLoading=!0);if(b.actions)for(G=0;G<b.actions.length;G++)I=b.actions[G],_.g(I,HB)&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I==void 0&&(I=-1),this.updatePoll(I))};
_.m.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.m.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.editDialogEl.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.m.computeIsPostHidden=function(G,b){return!!G||b};
_.m.computeSurfaceType=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.m.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"};
_.m.computeShowWithoutToolbar=function(G){return!G.actionButtons&&!G.actionMenu};
_.m.computePostAttachment=function(G){if(G.backstageAttachment){if(_.g(G.backstageAttachment,DTb))return"poll";if(_.g(G.backstageAttachment,EKn))return"quiz";if(_.g(G.backstageAttachment,_.he))return"video";if(_.g(G.backstageAttachment,p6W))return"uploaded-videos";if(_.g(G.backstageAttachment,El5))return G.contentText?"image":"image-only";if(_.g(G.backstageAttachment,RdA))return"playlist"}return"none"};
_.m.computePostTabIndex=function(G){return G?0:-1};
_.m.computeButtonTooltipPosition=function(G){return this.computeUsesCompactLockup(G)?"top":"bottom"};
_.m.computeHasText=function(G){return!(G==null||!G.contentText)};
_.m.onTap=function(G){var b,I;if(((b=this.data)==null?0:b.navigationEndpoint)&&((I=this.data)==null?void 0:I.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var h;((h=this.data)==null?0:h.navigationEndpoint)&&!_.NK(_.Wy(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.kV.Object.defineProperties(dB.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.ao("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||!_.g(this.data.backstageAttachment,DTb))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,p6W))}}});
dB.prototype.onYtServiceRequestCompleted=dB.prototype.onYtServiceRequestCompleted;dB.prototype.onYtServiceRequestSent=dB.prototype.onYtServiceRequestSent;dB.prototype.onYtCommentPollRevert=dB.prototype.onYtCommentPollRevert;dB.prototype.onYtCommentboxDismiss=dB.prototype.onYtCommentboxDismiss;dB.prototype.onYtNavigate=dB.prototype.onYtNavigate;dB.prototype.isLoadingChanged=dB.prototype.isLoadingChanged;dB.prototype.dataChanged=dB.prototype.dataChanged;dB.prototype.contentTextChanged=dB.prototype.contentTextChanged;
_.R([_.z(_.p5),_.n("design:type",Object)],dB.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],dB.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],dB.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],dB.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],dB.prototype,"editDialog",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],dB.prototype,"roundedContainer",void 0);_.R([_.H(),_.n("design:type",Object)],dB.prototype,"isLoading",void 0);_.R([_.H({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.n("design:type",String)],dB.prototype,"surface",void 0);
_.R([_.H({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.n("design:type",Boolean)],dB.prototype,"usesCompactLockup",void 0);_.R([_.H({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],dB.prototype,"showWithoutToolbar",void 0);_.R([_.H({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.n("design:type",String)],dB.prototype,"attachment",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],dB.prototype,"isRichGrid",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],dB.prototype,"isRichGridRepost",void 0);_.R([_.H({reflectToAttribute:!0,value:_.U("use_better_post_dismissals")}),_.n("design:type",Boolean)],dB.prototype,"useBetterPostDismissals",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],dB.prototype,"reduceSidePaddings",void 0);
_.R([_.H({computed:"computeHasText(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],dB.prototype,"hasText",void 0);_.R([_.lH("#expander"),_.n("design:type",Object)],dB.prototype,"expander",void 0);_.R([_.lH("#action-buttons"),_.n("design:type",Object)],dB.prototype,"actionButtons",void 0);_.R([_.lH("#edit-dialog"),_.n("design:type",HTMLElement)],dB.prototype,"editDialogEl",void 0);
_.R([_.q5("data.contentText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dB.prototype,"contentTextChanged",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dB.prototype,"dataChanged",null);_.R([_.q5("isLoading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dB.prototype,"isLoadingChanged",null);
_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],dB.prototype,"onYtNavigate",null);_.R([_.hI("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dB.prototype,"onYtCommentboxDismiss",null);_.R([_.hI("yt-comment-poll-revert"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],dB.prototype,"onYtCommentPollRevert",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],dB.prototype,"onYtServiceRequestSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],dB.prototype,"onYtServiceRequestCompleted",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],dB.prototype,"voteCount",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],dB.prototype,"commentCount",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],dB.prototype,"hasPoll",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],dB.prototype,"hasUploadedVideo",null);_.R([_.N({is:"ytd-post-renderer",disableElementRegistration:!0})],dB);
_.J(dB,"ytd-post-renderer",function(){if(M_u!==void 0)return M_u;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return M_u=G},{mode:1});var m0W;var eJJ;var yo=function(){return _.a.apply(this,arguments)||this};
_.M(yo,_.a);yo.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.Qk.YtdHorizontalListBehavior),_.n("design:type",Object)],yo.prototype,"ytdHorizontalListBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],yo.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],yo.prototype,"data",void 0);
_.R([_.H({value:"$.items.children"}),_.n("design:type",String)],yo.prototype,"itemsPath",void 0);_.R([_.H({value:1}),_.n("design:type",Number)],yo.prototype,"initialCount",void 0);_.R([_.H({reflectToAttribute:!0,value:_.U("enable_community_page_on_desktop")}),_.n("design:type",Boolean)],yo.prototype,"useSmallerPostImageAttachments",void 0);_.R([_.H(),_.n("design:type",String)],yo.prototype,"surface",void 0);_.R([_.N({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],yo);
_.J(yo,"ytd-post-multi-image-renderer",function(){if(eJJ!==void 0)return eJJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return eJJ=G},{mode:_.nn("kevlar_poly_si_batch_j079")?1:2});var VDW={"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"}}},
rB=function(){var G=_.a.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$15389_spinnerEl=null;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.M(rB,_.a);_.m=rB.prototype;_.m.configureRendererStamper=function(){return VDW};
_.m.computeIsPollHeaderEnabled=function(G){return(G==null?void 0:G.pollMetadataIcon)!=null};
_.m.getPublishTimeStampString=function(G,b){b=new Date((Number(b)-60*((new Date).getTimezoneOffset()-(new Date(Number(b)*1E3)).getTimezoneOffset()))*1E3);b=(new Wj(10)).format(b);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",b));return G};
_.m.created=function(){this.JSC$15389_spinnerEl=null};
_.m.contentTextChanged=function(){this.expander.reset()};
_.m.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var G;if((G=this.data)==null?0:G.actions){G=_.e(this.data.actions);for(var b=G.next();!b.done;b=G.next())this.openEditDialog(_.g(b.value,AwB))}};
_.m.handleSignalActionOpenPostCommentDialogAction=function(){_.Eo(this.hostElement).querySelector("#action-buttons").reply()};
_.m.updatePoll=function(G,b){b&&this.set("data.pollMetadataVoteCountText",b);this.hasInlineCommentSection&&(G=G>=0,b=_.Eo(this.hostElement).querySelector("#action-buttons"),G?b.reply():b.hideReplyDialog())};
_.m.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15389_spinnerEl||(this.JSC$15389_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Eo(this.hostElement).appendChild(this.JSC$15389_spinnerEl));this.JSC$15389_spinnerEl&&(this.JSC$15389_spinnerEl.active=this.isLoading)};
_.m.onYtNavigate=function(G){var b=this.get("updateCommentDialogEndpoint",G.detail.endpoint);b&&(this.openEditDialog(b),G.stopPropagation())};
_.m.onYtCommentboxDismiss=function(){this.editDialog=null};
_.m.onYtCommentPollRevert=function(G,b){b&&this.updatePoll(b.selectedChoiceIndex,b.totalVotes)};
_.m.onYtServiceRequestSent=function(G,b){G.stopPropagation();G=_.g(b.endpoint,Phi);if(_.g(b.endpoint,dTn)||G&&!G.clientActions)this.isLoading=!0;if(b.actions)for(G=0;G<b.actions.length;G++){var I=b.actions[G],h=_.g(I,HB);h&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I===void 0&&(I=-1),this.updatePoll(I,h.totalVotes))}};
_.m.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.m.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.editDialogElement.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.m.computeIsBodyHidden=function(G,b){return!!G||b};
_.kV.Object.defineProperties(rB.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var G=this.data,b=G.showPostAuthorBackgroundHighlight,I=G.postAuthorBadgeType,h=G.authorEndpoint;if(!b&&I!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&I!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var q,l,V;G=_.ao(((q=G.authorText)==null?void 0:(l=q.runs)==null?void 0:(V=l[0])==null?void 0:V.text)||"");q=void 0;switch(I){case "POST_AUTHOR_BADGE_TYPE_ARTIST":q={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":q={iconType:b?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:G,authorEndpoint:h,authorCreator:b,icon:q}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var G,b;if((G=this.data)==null?0:(b=G.pollMetadataIcon)==null?0:b.iconType)return _.pn(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.ao("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||!_.g(this.data.backstageAttachment,DTb))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,EKn))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,p6W))}}});
rB.prototype.onYtServiceRequestCompleted=rB.prototype.onYtServiceRequestCompleted;rB.prototype.onYtServiceRequestSent=rB.prototype.onYtServiceRequestSent;rB.prototype.onYtCommentPollRevert=rB.prototype.onYtCommentPollRevert;rB.prototype.onYtCommentboxDismiss=rB.prototype.onYtCommentboxDismiss;rB.prototype.onYtNavigate=rB.prototype.onYtNavigate;rB.prototype.isLoadingChanged=rB.prototype.isLoadingChanged;rB.prototype.dataChanged=rB.prototype.dataChanged;rB.prototype.contentTextChanged=rB.prototype.contentTextChanged;
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],rB.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rB.prototype,"rendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],rB.prototype,"rendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],rB.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.lH("#contentTextExpander"),_.n("design:type",Object)],rB.prototype,"expander",void 0);_.R([_.lH("#edit-dialog"),_.n("design:type",Element)],rB.prototype,"editDialogElement",void 0);_.R([_.H(),_.n("design:type",Object)],rB.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],rB.prototype,"hasInlineCommentSection",void 0);_.R([_.H(),_.n("design:type",Object)],rB.prototype,"editDialog",void 0);_.R([_.H(),_.n("design:type",Object)],rB.prototype,"isLoading",void 0);
_.R([_.H({computed:"computeIsPollHeaderEnabled(data)"}),_.n("design:type",Boolean)],rB.prototype,"isPollHeaderEnabled",void 0);_.R([_.H(),_.n("design:type",Object)],rB.prototype,"shouldHideAuthor",void 0);_.R([_.H(),_.n("design:type",Object)],rB.prototype,"shouldShowVideoTime",void 0);_.R([_.H(),_.n("design:type",Object)],rB.prototype,"isInEngagementPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],rB.prototype,"hideBorder",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],rB.prototype,"usesFullLockup",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],rB.prototype,"shouldShowMenuInCompactView",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],rB.prototype,"authorCommentBadge",null);_.R([_.P("isInEngagementPanel"),_.n("design:type",Number),_.n("design:paramtypes",[])],rB.prototype,"postTextMaxLines",null);
_.R([_.P("data.icon.iconType"),_.n("design:type",Object),_.n("design:paramtypes",[])],rB.prototype,"pollIcon",null);_.R([_.q5("data.contentText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rB.prototype,"contentTextChanged",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rB.prototype,"dataChanged",null);
_.R([_.q5("isLoading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rB.prototype,"isLoadingChanged",null);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],rB.prototype,"onYtNavigate",null);_.R([_.hI("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rB.prototype,"onYtCommentboxDismiss",null);
_.R([_.hI("yt-comment-poll-revert"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],rB.prototype,"onYtCommentPollRevert",null);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],rB.prototype,"onYtServiceRequestSent",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],rB.prototype,"onYtServiceRequestCompleted",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],rB.prototype,"voteCount",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],rB.prototype,"commentCount",null);
_.R([_.P("data.backstageAttachment"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],rB.prototype,"hasPoll",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],rB.prototype,"hasQuiz",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],rB.prototype,"hasUploadedVideo",null);_.R([_.N({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],rB);
_.J(rB,"ytd-backstage-post-renderer",function(){if(m0W!==void 0)return m0W;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return m0W=G},{mode:1});var D0z;var Fn=function(){var G=_.a.apply(this,arguments)||this;G.editDialog=null;G.showExpandButton=!1;G.isRichGrid=!1;G.usesFullLockup=!1;return G};
_.M(Fn,_.a);_.m=Fn.prototype;_.m.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"}}}};
_.m.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.m.computeShowExpandButton=function(G){return this.usesCompactLockup||G&&G.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.m.computeUsesCompactLockup=function(G){return!!G.condensedContent};
_.m.computeShowFullContentText=function(G){return!G};
_.m.onYtNavigate=function(G){G=this.get("updateCommentDialogEndpoint",G.detail.endpoint);this.openEditDialog(G)};
_.m.onYtCommentboxDismiss=function(){this.editDialog=null};
_.m.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.repostEditDialogEl.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.m.onTap=function(G){if(this.data){var b=null;this.usesCompactLockup&&!_.NK(_.Wy(G)||[],this.hostElement,["YT-IMG-SHADOW"])?b=this.get("navigationEndpoint",this.data):G.target===this.moreButtonEl&&(b=this.get("navigationEndpoint",G.target.data));b&&_.O3(this.hostElement,"yt-navigate",{endpoint:b})}};
Fn.prototype.onYtCommentboxDismiss=Fn.prototype.onYtCommentboxDismiss;Fn.prototype.onYtNavigate=Fn.prototype.onYtNavigate;Fn.prototype.dataChanged=Fn.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Fn.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],Fn.prototype,"editDialog",void 0);_.R([_.H({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Fn.prototype,"usesCompactLockup",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Fn.prototype,"showExpandButton",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Fn.prototype,"isRichGrid",void 0);
_.R([_.H({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Fn.prototype,"showFullContentText",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Fn.prototype,"usesFullLockup",void 0);_.R([_.lH("#more"),_.n("design:type",Object)],Fn.prototype,"moreButtonEl",void 0);_.R([_.lH("#repost-content-text"),_.n("design:type",HTMLElement)],Fn.prototype,"repostContentTextEl",void 0);
_.R([_.lH("#repost-edit-dialog"),_.n("design:type",HTMLElement)],Fn.prototype,"repostEditDialogEl",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fn.prototype,"dataChanged",null);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Fn.prototype,"onYtNavigate",null);
_.R([_.hI("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fn.prototype,"onYtCommentboxDismiss",null);_.R([_.N({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Fn);
_.J(Fn,"ytd-shared-post-renderer",function(){if(D0z!==void 0)return D0z;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return D0z=G},{mode:1});var c3J;var kKn;var H_=function(){return _.a.apply(this,arguments)||this};
_.M(H_,_.a);H_.prototype.attached=function(){var G=this;this.networkStatusManager||(this.networkStatusManager=new _.IB,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){G.onlineHandler()}))};
H_.prototype.detached=function(){var G=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){G.onlineHandler()}),delete this.networkStatusManager)};
H_.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],H_.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],H_.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],H_);
_.J(H_,"ytd-reload-page-button-renderer",function(){if(kKn!==void 0)return kKn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return kKn=G},{mode:1});var vdA={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"},W_=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.M(W_,_.a);_.m=W_.prototype;_.m.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.m.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.m.computeHasBodyText=function(G){return!!G.bodyText};
_.m.computeButtons=function(G){var b=[];G.ctaButton&&b.push(G.ctaButton);G.secondaryButton&&b.push(G.secondaryButton);return b};
_.m.computeRendererStyle=function(G){return G.style?G.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():G.icon?"":"no-icon"};
_.m.getIconName=function(G,b){b=b===void 0?!1:b;if(G===void 0)return"";G=this.get("icon.iconType",G);var I;_.U("enable_hlp_client_icon_pick")?I=this.getThemedIcon(G,b):I=G;(b=vdA[I])||(b="yt-icons");return[b,I].join(":")};
_.m.getThemedIcon=function(G,b){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(G)?b?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(G)?b?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":G};
_.m.isThumbnail=function(G){return!!G.thumbnail};
_.m.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.m.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],W_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],W_.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],W_.prototype,"data",void 0);
_.R([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.n("design:type",String)],W_.prototype,"rendererStyle",void 0);_.R([_.H({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.n("design:type",String)],W_.prototype,"iconName",void 0);_.R([_.H({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],W_.prototype,"thumbnail",void 0);_.R([_.H({computed:"computeButtons(data)"}),_.n("design:type",Array)],W_.prototype,"buttons",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],W_.prototype,"isDarkTheme",void 0);_.R([_.H({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],W_.prototype,"hasBodyText",void 0);_.R([_.N({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],W_);
_.J(W_,"ytd-background-promo-renderer",function(){if(c3J!==void 0)return c3J;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return c3J=G},{mode:1});var LKB;var as=function(){return _.a.apply(this,arguments)||this};
_.M(as,_.a);_.kV.Object.defineProperties(as.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h,q,l;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(b=G.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(h=I.thumbnail)==null?void 0:h.vibrantColorPalette,darkColorPalette:(q=this.data)==null?void 0:(l=q.thumbnail)==null?void 0:l.darkColorPalette,experimentEnabled:!0}}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],as.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],as.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],as.prototype,"collectionStack",null);_.R([_.N({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],as);
_.J(as,"ytd-compact-station-renderer",function(){if(LKB!==void 0)return LKB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return LKB=G},{mode:1});var Q7b;var NI=function(){var G=_.a.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.M(NI,_.a);NI.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],NI.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],NI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],NI.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],NI.prototype,"isRichGrid",void 0);_.R([_.N({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],NI);
_.J(NI,"ytd-grid-channel-renderer",function(){if(Q7b!==void 0)return Q7b;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Q7b=G},{mode:1});var x0n;var Yr=function(){return _.a.apply(this,arguments)||this};
_.M(Yr,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Yr.prototype,"data",void 0);_.R([_.N({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Yr);
_.J(Yr,"ytd-grid-movie-playlist-renderer",function(){if(x0n!==void 0)return x0n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return x0n=G},{mode:1});var f7n;var Co=function(){var G=_.a.apply(this,arguments)||this;G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.modernButtons=_.U("web_modern_buttons");return G};
_.M(Co,_.a);Co.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Co.prototype.configureRendererStamper=function(){return{"data.menu":yV}};
Co.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Co.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.U("woffle_playlist_renderer_killswitch")){var G,b=VJr(this.entityInfo,this.transferState,this.downloadProgress,(G=this.data)==null?void 0:G.playlistId,this.isOnline);G=b.viewPlaylistText;var I=b.badges;b=b.thumbnailOverlays;this.isDownloads=!!G||!!I;this.set("data.viewPlaylistText",G);I&&I.length>0&&this.set("data.badges",I);b&&b.length>0&&this.set("data.thumbnailOverlays",
b)}};
_.kV.Object.defineProperties(Co.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)}}});
Co.prototype.transferStateChanged=Co.prototype.transferStateChanged;Co.prototype.dataChanged=Co.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],Co.prototype,"ytdLockupBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Co.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Co.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H({selector:_.uGq,selectorArgs:["data.playlistId"]}),_.n("design:type",Object)],Co.prototype,"downloadProgress",void 0);_.R([_.H({selector:_.tQ,selectorArgs:["data.playlistId"]}),_.n("design:type",Object)],Co.prototype,"transferState",void 0);_.R([_.H({selector:Kkd,selectorArgs:["data.playlistId"]}),_.n("design:type",Object)],Co.prototype,"entityInfo",void 0);_.R([_.H({selector:_.MO}),_.n("design:type",Boolean)],Co.prototype,"isOnline",void 0);
_.R([_.H(),_.n("design:type",Object)],Co.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Co.prototype,"downloadRenderData",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Co.prototype,"modernButtons",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Co.prototype,"isDownloads",void 0);_.R([_.P("transferState"),_.H({reflectToAttribute:!0}),_.n("design:type",String),_.n("design:paramtypes",[])],Co.prototype,"downloadState",null);
_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Co.prototype,"menuHidden",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Co.prototype,"dataChanged",null);_.R([_.Dd("transferState","downloadProgress","isOnline"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Co.prototype,"transferStateChanged",null);
_.R([_.N({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Co);
_.J(Co,"ytd-grid-playlist-renderer",function(){if(f7n!==void 0)return f7n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return f7n=G},{mode:1});var TEb;var JE=function(){return _.a.apply(this,arguments)||this};
_.M(JE,_.a);JE.prototype.configureRendererStamper=function(){return{"data.menu":yV,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.kV.Object.defineProperties(JE.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h,q,l;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(b=G.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(h=I.thumbnail)==null?void 0:h.vibrantColorPalette,darkColorPalette:(q=this.data)==null?void 0:(l=q.thumbnail)==null?void 0:l.darkColorPalette,experimentEnabled:!0}}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],JE.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],JE.prototype,"ytdLockupBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],JE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],JE.prototype,"data",void 0);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],JE.prototype,"collectionStack",null);_.R([_.N({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],JE);
_.J(JE,"ytd-grid-radio-renderer",function(){if(TEb!==void 0)return TEb;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return TEb=G},{mode:1});var BEA;var Ko=function(){return _.a.apply(this,arguments)||this};
_.M(Ko,_.a);Ko.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Ko.prototype.computeNavigationEndpoint=function(G){return WSO(G==null?void 0:G.navigationEndpoint)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],Ko.prototype,"ytdLockupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ko.prototype,"data",void 0);_.R([_.H({computed:"computeNavigationEndpoint(data)"}),_.n("design:type",Object)],Ko.prototype,"computedNavigationEndpoint",void 0);
_.R([_.N({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Ko);
_.J(Ko,"ytd-grid-show-renderer",function(){if(BEA!==void 0)return BEA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return BEA=G},{mode:1});var U0X;_.ur=function(G){this.playerClient=G};
_.s7z=function(G,b,I){I=I===void 0?{}:I;return G.playerClient.setOption("ad",b,I)};
_.ur.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.ur.prototype.executeCommand=function(G,b){this.getOptions().includes("executeCommand")?_.s7z(this,"executeCommand",{command:G,layoutId:b}):_.dQ("Calling executeCommand when adModule is not loaded")};var Rs=function(){return _.a.apply(this,arguments)||this};
_.M(Rs,_.a);Rs.prototype.getLayoutId=function(){var G=_.Ge("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
Rs.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var G=_.Kk(),b=this.getLayoutId(),I=this.data.clickthroughEndpoint;G&&b&&_.U("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(h){(new _.ur(h)).executeCommand(I,b)}):_.O3(this.hostElement,"yt-navigate",{endpoint:I})}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Rs.prototype,"data",void 0);_.R([_.N({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Rs);
_.J(Rs,"ytd-shopping-companion-item-renderer",function(){if(U0X!==void 0)return U0X;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return U0X=G},{mode:1});var gdQ;var no=function(){var G=_.a.apply(this,arguments)||this;G.isExpandableContent=!1;return G};
_.M(no,_.a);_.kV.Object.defineProperties(no.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,b,I;return((G=this.data)==null?void 0:G.price)||((b=this.data)==null?void 0:(I=b.dealsData)==null?void 0:I.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var G,b;if((G=this.data)!=null&&G.dealsData&&((b=this.data)==null||!b.priceReplacementText)){G=this.data.dealsData;var I,h,q;return((I=G.salesData)==null?void 0:I.originalPrice)||((h=G.priceDropData)==null?void 0:h.referencePrice)||((q=G.promotionData)==null?void 0:q.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,b;return(G=this.data)==null?void 0:(b=G.dealsData)==null?void 0:b.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],no.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],no.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],no.prototype,"isExpandableContent",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"showCta",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"ctaText",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"hasPriceTopPosition",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"hasPriceBottomPosition",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"useNewStyle",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"showPriceReplacementText",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"priceValue",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"showDeal",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"showAffiliateDisclaimer",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"useSaleStyle",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"useFromBrandCtaStyle",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"useFromVendorCtaStyle",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],no.prototype,"useShoppingCollectionCtaStyle",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],no);
_.J(no,"ytd-vertical-product-card-renderer",function(){if(gdQ!==void 0)return gdQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return gdQ=G},{mode:1});var A3i;var OR=function(){return _.a.apply(this,arguments)||this};
_.M(OR,_.a);OR.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],OR.prototype,"ytdLockupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],OR.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],OR);
_.J(OR,"ytd-grid-movie-renderer",function(){if(A3i!==void 0)return A3i;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return A3i=G},{mode:1});var MDi;var wB=function(){var G=_.a.apply(this,arguments)||this;G.roundedFix=_.U("web_enable_merch_item_rounding_fix");G.itemStyle="small-item";return G};
_.M(wB,_.a);wB.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var G,b,I,h,q=(b=_.g((G=this.data)==null?void 0:G.buttonCommand,_.i6J))==null?void 0:(I=b.item)==null?void 0:(h=I.notificationTextRenderer)==null?void 0:h.successResponseText;q&&_.Lyd(this.hostElement,q)}};
_.kV.Object.defineProperties(wB.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,b;return((G=this.data)==null?void 0:G.isProductPlaceholder)!==void 0&&((b=this.data)==null?void 0:b.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],wB.prototype,"ytRendererBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],wB.prototype,"roundedFix",void 0);_.R([_.H(),_.n("design:type",Object)],wB.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],wB.prototype,"itemStyle",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wB.prototype,"hasPrice",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wB.prototype,"hasPriceReplacementText",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wB.prototype,"hasAdditionalFeesText",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wB.prototype,"hasAffiliateDisclaimer",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wB.prototype,"isProductPlaceholder",null);
_.R([_.H(),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wB.prototype,"hideOpenInNewIcon",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wB.prototype,"ariaLabel",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],wB);
_.J(wB,"ytd-merch-shelf-item-renderer",function(){if(MDi!==void 0)return MDi;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return MDi=G},{mode:1});_.JN(_.C(function(G){return _.v("button-card-view-model",{el:_.Wv(_.s2(function(){return G.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return G.data().title},
role:"button"},_.v(_.Qy,{model:{}}),_.v("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.v("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.v(_.Q,{cond:function(){return G.data().image},
then:function(b){return _.v(_.Fu,{data:b,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.v("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return G.data().title})))},"bc"),"button-card-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){G=_.N5(G,{className:void 0});var b=G.data;G=G.className;var I=_.P$(function(){return b().onTapCommand},void 0,"SXkP9e");
return _.v("ytd-shopping-item-card",{class:_.pG("ytdShoppingItemCardHost",G)},_.v(_.LP,{command:I,className:"ytdShoppingItemCardHostLink"},_.v("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.v(_.VX,{data:function(){return b().thumbnailViewModel}},{thumbnailViewModel:function(h){return _.v(_.Qo,{data:h.data,
aspectRatio:3})}})),_.v("div",null,_.v("p",{class:"ytdShoppingItemCardHostItemTitle"},_.v(_.IS,{text:function(){return b().itemTitle}})),_.v("p",{class:"ytdShoppingItemCardHostPrice"},_.v(_.IS,{text:function(){return b().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.hV,
className:_.hV}});var Z2u={isAdsVideo:!0},tDW={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},zJA={showPlayerControls:!1,videoPreviewDurationMs:15E3},odX={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},i2J={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,
hideScrubber:!0};var rQ=null,Q6p={};var TJq="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(" "),ER={},BJO=(ER.FEwhat_to_watch="home",ER.FEhashtag="hashtag",ER.FEtrending="trending",ER.FEhistory="history",ER.SPunlimited="premium",ER.FEmemberships_and_purchases="paid_memberships",ER.SPredeem_code="redeem",ER.SPverify_location="locate",ER.SPminor_moment="minor_moment",
ER.FEmini_app_container="mini_app",ER.FEnews_destination="news",ER.SPopen_in_app="open_in_app",ER.FEexplore="explore",ER.FEsubscriptions="subscriptions",ER.FEsfv_audio_pivot="sfv_audio_pivot",ER.FEplaylist_aggregation="playlist_aggregation",ER);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");_.X8("init");var PSb=function(){},FKn=_.C(function(G){var b=G.data;
var I=G.inlineMetadata;var h=G.aspectRatio;var q=G.scrimStyle;var l=G.className;var V=G.useDefaultStyle;var D=G.titleStyle;var k=new PSb,L=_.U("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",x=_.P$(function(){return(V==null?0:V())?L==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),f=_.P$(function(){return _.n0(I)||x()||!1},void 0,"SEL6Qd"),T=function(){return(q==null?void 0:q())!==void 0?q==null?void 0:q():1},
B=_.P$(function(){return b().belowThumbnailMetadata||!f()},void 0,"KAqk1b");
G=_.L8({visibilityCallback:function(ev){var LO=b().onFirstVisible;ev&&LO&&_.Zm(LO)},
showOption:{calledOnce:!0,state:"visible"}});var A=_.Wv(),t={},y=_.pG(function(){return x(),"shortsLockupViewModelHostThumbnailContainer"},(t.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.n0(h)===1},t.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.n0(h)===2},t.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.U("web_shorts_2_by_3_lockups_study")&&!_.U("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
t)),F=_.P$(function(){if(_.n0(h)===1)return 1;
_.n0(h);return 2},void 0,"Bg5Es"),W,O=function(){if(k){var ev;
(ev=W)==null||NA(ev);var LO;if(k.hostElement&&((LO=k.data)==null?0:LO.inlinePlayerData)){var td,xa;ev=((td=k.data)==null?0:(xa=td.inlinePlayerData)==null?0:xa.enableAudioControl)?Object.assign({},i2J):Object.assign({},odX);var Uj,W2;((Uj=k.data)==null?void 0:(W2=Uj.inlinePlayerData)==null?void 0:W2.maxPlaybackLengthSec)!==void 0&&(ev.videoPreviewDurationMs=k.data.inlinePlayerData.maxPlaybackLengthSec*1E3);W=Mt({mediaRenderer:k,lockupElement:k.hostElement,thumbnailElement:A.value,videoPreviewOpts:ev})}}};
_.K0(function(){k&&(k.data=b(),O())},"wo9C7e");
var K=_.P$(function(){return b().thumbnail},void 0,"haijYd");
t=_.P$(function(){return b().badge},void 0,"RpDeSe");
var u=_.P$(function(){return b().onTap},void 0,"hOfuOb"),w={},$a={};
return _.v("ytm-shorts-lockup-view-model",{el:_.Wv(function(ev){k&&(k.hostElement=ev)},O,G),
class:_.pG("shortsLockupViewModelHost",l)},_.v(_.xz,null,_.v(_.LP,{command:u,className:_.pG("shortsLockupViewModelHostEndpoint",(w.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!B()},w),"reel-item-endpoint",""),
ariaHidden:function(){return!f()},
tabIndex:function(){return f()?0:-1}},_.v("div",{el:A,
class:_.pG("shortsLockupViewModelHostThumbnailParentContainer",($a.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!x()},$a))},_.v(_.Q,{cond:K,
then:function(){return _.v("div",{class:y},_.v(_.Fu,{data:function(){var ev;return(ev=K==null?void 0:K())!=null?ev:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.v(_.VX,{data:function(){return b().thumbnailViewModel}},{thumbnailViewModel:function(ev){return _.v(_.Qo,{data:ev.data,
aspectRatio:function(){return F()},
disableRounding:function(){return x()}})}}),null),_.v(_.Q,{cond:f,
then:function(){return _.v(d0A,{data:b,scrimStyle:T,useDefaultStyle:V,titleStyle:D})}}),_.v(_.VX,{data:t},{badgeViewModel:function(ev){return _.v(_.Db,{data:ev.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.v(_.Q,{cond:function(){return f()&&b().menuOnTap},
then:function(){return _.v(y3z,{data:b,inlineMetadata:!0})}}),_.v(_.Q,{cond:B,
then:function(){return _.v(r3X,{data:b,useDefaultStyle:V,inlineMetadata:f})}})))},"ec"),d0A=_.C(function(G){var b=G.data;
var I=G.scrimStyle;var h=G.useDefaultStyle;var q=G.titleStyle;var l=_.U("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",V=h&&_.U("web_hide_primary_text_for_pivot_panel"),D=_.P$(function(){return(h==null?0:h())?l==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
G={};G=_.pG("shortsLockupViewModelHostInlineMetadata",(G.shortsLockupViewModelHostMetadataRounded=function(){return!D()},G.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(I==null?void 0:I())===3&&!_.U("enable_shorts_lockup_new_scrim")},G.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(I==null?void 0:I())===3&&_.U("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 k={};return _.v("div",{class:G},_.v("h3",{class:_.pG("shortsLockupViewModelHostMetadataTitle",(k.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(I==null?void 0:I())===4},k.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return b().belowThumbnailMetadata},k.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(q==null?void 0:q())===1},k.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(q==null?void 0:q())===2},k)),
"aria-label":function(){return b().accessibilityText}},_.v(_.Q,{cond:function(){var L;
return!((L=b().overlayMetadata)==null||!L.primaryText)&&!V},
then:function(){return _.v(_.IS,{text:function(){var L;return(L=b().overlayMetadata)==null?void 0:L.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.v(_.Q,{cond:function(){var L;
return(L=b().overlayMetadata)==null?void 0:L.secondaryText},
then:function(){return _.v(H2z,{data:b,scrimStyle:I,className:void 0})}}))},"fc"),r3X=_.C(function(G){var b=G.data;
var I=G.useDefaultStyle;var h=G.inlineMetadata;var q=_.U("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",l=_.P$(function(){return(I==null?0:I())?q==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),V=_.Wv(),D;
G=_.Xu(function(B){if(_.TZ(_.fM(B),V.value,["AVATAR-VIEW-MODEL"]))return!1;var A;(A=D)==null||A.click();return!1});
var k=_.P$(function(){return b().belowThumbnailMetadata||b().overlayMetadata},void 0,"GwezKf"),L=function(){return b().menuOnTap&&!h()},x=function(){var B;
return(B=k())==null?void 0:B.avatar},f={},T={};
return _.v("div",{class:_.pG(function(){return l()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(f.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!x()},f.shortsLockupViewModelHostOutsideMetadataHasMenu=L,f)),
"on:click":G,el:V,role:"presentation"},_.v(_.VX,{data:x},{avatarViewModel:function(B){return _.v(_.Om,{data:B.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.v("div",null,_.v("h3",{class:_.pG("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(T.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var B,A;
return!((B=k())==null?0:(A=B.primaryText)==null?0:A.content)},T.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=h,T)),
role:"presentation"},_.v(_.LP,{ref:function(B){return void(D=B)},
command:function(){return b().onTap},
className:_.pG("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var B,A;return(B=k())==null?void 0:(A=B.primaryText)==null?void 0:A.content},
"aria-label":function(){return b().accessibilityText}},_.v(_.Q,{cond:function(){var B;
return(B=k())==null?void 0:B.primaryText},
then:function(B){return _.v(_.IS,{text:B,noEndpoints:!0,noStyleRuns:!0})}}))),_.v(_.Q,{cond:function(){var B;
return(B=k())==null?void 0:B.secondaryText},
then:function(B){return _.v("div",{class:_.pG("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.v(_.IS,{text:B,noStyleRuns:!0}))}})),_.v(_.Q,{cond:L,
then:function(){return _.v(y3z,{data:b,inlineMetadata:!1})}}))},"gc"),H2z=_.C(function(G){var b=G.data;
var I=G.scrimStyle;G=G.className;var h={};return _.v("div",{class:_.pG((h.shortsLockupViewModelHostMetadataSubhead=function(){return(I==null?void 0:I())!==4},h.shortsLockupViewModelHostMetadataSubheadNew=_.U("enable_shorts_lockup_new_scrim"),h.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(I==null?void 0:I())===4},h),G),
"aria-hidden":"true"},_.v(_.IS,{text:function(){var q;return(q=b().overlayMetadata)==null?void 0:q.secondaryText},
noStyleRuns:!0}))},"hc"),y3z=_.C(function(G){var b=G.data;
var I=G.inlineMetadata;G={};G=_.pG((G.shortsLockupViewModelHostInlineMetadataMenu=function(){return I()},G.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!I()},G.shortsLockupViewModelHostShowOverPlayer=function(){return!0},G),"image-overlay-text");
return _.v("div",{class:G},_.v(_.TV,{data:function(){return{style:I()?"overlay":"mono",accessibilityLabel:b().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(h){h.preventDefault();h.stopPropagation();var q=_.AN({elementsCommand:b().menuOnTap,forceNewState:!0});if(q==null?0:q.onclick)q.onclick(h)}}},
iconName:"MORE_VERT"}))},"ic");var WKu=_.C(function(G){var b=G.data;var I=G.inlineMetadata;var h=G.aspectRatio;var q=G.scrimStyle;var l=G.className;var V=G.useDefaultStyle;G=_.P$(function(){var D=b().entityId;return D?D.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.v("ytm-shorts-lockup-view-model-v2",{class:_.pG("shortsLockupViewModelHost",l)},_.v(_.gB,{contentId:G,aspectRatio:function(){return(h==null?void 0:h())===1?1:(h==null?void 0:h())===2?2:4}},function(){return _.v(FKn,{data:b,
inlineMetadata:I,aspectRatio:h,scrimStyle:q,className:l,useDefaultStyle:V})}))},"jc");_.JN(WKu,"ytm-shorts-lockup-view-model-v2",{props:{data:_.No,inlineMetadata:_.No,aspectRatio:_.No,scrimStyle:_.No,className:_.No,useDefaultStyle:_.No,titleStyle:_.No}});var a7Q=16/9*210,po=function(){var G=_.a.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};
_.M(po,_.a);_.m=po.prototype;
_.m.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]]"}}}}};
_.m.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.U("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.m.computeInitialCountNumber=function(G){if(!G)return 6;var b=G.items.some(function(l){return!!l.topicRecommendationsChipRenderer}),I=G.items.some(function(l){return!!l.displayAdRenderer}),h=this.computeShouldListItemsHaveEqualHeight(G),q=G.items.some(function(l){return!!l.gridPlaylistRenderer});
G=G.items.some(function(l){return!!l.shoppingItemCardViewModel});
return b?9:I?8:q||h?10:G?7:6};
_.m.computeContainsPost=function(G){return!!G&&!!G.items&&G.items.some(function(b){return!!b.postRenderer})};
_.m.computeContainsLockup=function(){if(_.U("web_horizontal_list_lockup_arrow_killswitch"))return!1;var G,b;return(G=this.data)==null?void 0:(b=G.items)==null?void 0:b.some(function(I){return!!I.lockupViewModel})};
_.m.maybeUpdateLockupAspectRatio=function(){var G,b;if(this.computeContainsLockup()&&((G=this.data)==null?0:(b=G.items)==null?0:b.length)){var I;G=Kjr((I=this.data.items[0].lockupViewModel)==null?void 0:I.contentType,this.data.force16By9ThumbnailAspectRatio);I=C5X(G);I=this.computeLockupWidth()/I;_.G8(this.hostElement,{"--yt-horizontal-list-content-height":I+"px"})}};
_.m.computeOverrideArrowPositionForProductCard=function(G){if(this.isExpandableContent)return!1;var b;return!!(G==null?0:(b=G.items)==null?0:b.some(function(I){return!!I.verticalProductCardRenderer}))};
_.m.computeOverrideArrowPositionForShoppingItemCard=function(G){var b;return!!(G==null?0:(b=G.items)==null?0:b.some(function(I){return!!I.shoppingItemCardViewModel}))};
_.m.computeOverrideArrowPositionForReelItemRenderer=function(G){return this.containsReelItemRenderer(G)};
_.m.computeHasBigThumbsReelItems=function(G,b){return G&&this.containsReelItemRenderer(b)};
_.m.computeShouldListItemsHaveEqualHeight=function(G){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(G==null?void 0:G.itemSizeConstraint)};
_.m.computeShouldListItemsHaveShortsHeight=function(G){return this.computeShouldListItemsHaveEqualHeight(G)&&!this.containsGridVideoRenderer(G)};
_.m.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.m.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.m.containsReelItemRenderer=function(G){var b;return!!(G==null?0:(b=G.items)==null?0:b.some(function(I){return!(!I.reelItemRenderer&&!I.shortsLockupViewModel)}))};
_.m.containsGridVideoRenderer=function(G){var b;return!!(G==null?0:(b=G.items)==null?0:b.some(function(I){return!!I.gridVideoRenderer||!!I.lockupViewModel}))};
_.m.computeContainsGridMovieRenderer=function(G){var b;return!!(G==null?0:(b=G.items)==null?0:b.some(function(I){return!!I.gridMovieRenderer}))};
_.m.computeOverrideArrowPositionToCenter=function(G){return this.computeIsSearchPostShelf(G)};
_.m.computeIsSearchPostShelf=function(G){var b;return!!(G==null?0:(b=G.items)==null?0:b.some(function(I){var h,q;return((q=(h=I.postRenderer)==null?void 0:h.surface)!=null?q:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.m.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(G){var b;return!!(G==null?0:(b=G.items)==null?0:b.some(function(I){var h,q,l;return((l=(h=I.backgroundPromoRenderer)==null?void 0:(q=h.style)==null?void 0:q.value)!=null?l:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.m.computeIsSearchVodShelf=function(G,b){return G&&this.containsGridVideoRenderer(b)};
_.m.computeDisableWheelScroll=function(G,b){return this.computeIsSearchVodShelf(G,b)};
_.m.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.m.computeShortsLockupAspectRatio=function(){return 1};
_.m.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.G8(this.hostElement,{"--ytd-reel-item-thumbnail-height":a7Q+"px"})};
po.prototype.dataChanged=po.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.Qk.YtdHorizontalListBehavior),_.n("design:type",Object)],po.prototype,"ytdHorizontalListBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],po.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],po.prototype,"isExpandableContent",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"hideShelfHeader",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"engagementPanel",void 0);_.R([_.H(),_.n("design:type",Array)],po.prototype,"buttonClasses",void 0);_.R([_.H(),_.n("design:type",Object)],po.prototype,"isSearch",void 0);
_.R([_.H(),_.n("design:type",Object)],po.prototype,"disableScrollEventListener",void 0);_.R([_.H({computed:"computeInitialCountNumber(data)"}),_.n("design:type",Number)],po.prototype,"initialCount",void 0);_.R([_.H({computed:"computeContainsPost(data)"}),_.n("design:type",Boolean)],po.prototype,"supportComponentResize",void 0);_.R([_.H({computed:"computeContainsPost(data)"}),_.n("design:type",Boolean)],po.prototype,"containsPost",void 0);
_.R([_.H({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"containsLockup",void 0);_.R([_.H({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],po.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.R([_.H({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"overrideArrowPositionForProductCard",void 0);_.R([_.H({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.R([_.H({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"overrideArrowPositionForReelItems",void 0);_.R([_.H({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"overrideArrowPositionForGridMovie",void 0);
_.R([_.H({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"overrideArrowPositionToCenter",void 0);_.R([_.H({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"isSearchPostShelf",void 0);_.R([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.R([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.R([_.H({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"hasBigThumbsReelItems",void 0);
_.R([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"shouldUseMixedListHeight",void 0);_.R([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"shouldUseShortsListHeight",void 0);_.R([_.H({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"gridVideoWidth",void 0);
_.R([_.H({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"isSearchVodShelf",void 0);_.R([_.H({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.n("design:type",Object)],po.prototype,"disableWheelScroll",void 0);_.R([_.H({computed:"computeSizing(isSearch)"}),_.n("design:type",Object)],po.prototype,"sizing",void 0);
_.R([_.H({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.n("design:type",Object)],po.prototype,"shortsLockupAspectRatio",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],po.prototype,"dataChanged",null);
_.J(po,"yt-horizontal-list-renderer",function(){if(a3u===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);a3u=G}G=a3u;return G},{mode:1});var NEz=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
NEz.prototype.subscribe=function(G,b){var I=this.subscriptions.get(G);if(!I)return function(){};
I.add(b);return function(){I.delete(b)}};
NEz.prototype.unsubscribe=function(G,b){(G=this.subscriptions.get(G))&&G.delete(b)};
NEz.prototype.publish=function(G,b){b=b===void 0?{}:b;(G=this.subscriptions.get(G))&&G.forEach(function(I){I(b)})};var YkO;var CSi=[10,12,14,16,18,20,24,28,32,36],J35=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Sl=function(){var G=_.a.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};
_.M(Sl,_.a);_.m=Sl.prototype;
_.m.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();_.D1(this,function(){G.resize()});
if(!_.Sf){var b,I,h;(b=document)==null||(I=b.fonts)==null||(h=I.ready)==null||h.then(function(){G.resize()})}};
_.m.dataChanged=function(){this.resize()};
_.m.guideIsExpandedChanged=function(){this.resize()};
_.m.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(),b=this.getMinFont(),I=this.getMaxFont(),h=this.useRoboto?CSi:J35;for(h=h.filter(function(l){return l<=I&&l>=b});h.length>1;){var q=Math.floor(h.length/2);
this.updateFontSize(h[q]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=G)h=h.slice(q,h.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>G)h=h.slice(0,q);else break}this.updateFontSize(h[h.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(G)}};
_.m.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()))};
_.m.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)};
_.m.getMaxFont=function(){var G=this.useRoboto?CSi:J35;G=G[G.length-1];return this.maxFontSize&&this.maxFontSize<=G?this.maxFontSize:G};
_.m.getMinFont=function(){var G=(this.useRoboto?CSi:J35)[0];return this.minFontSize&&this.minFontSize>=G?this.minFontSize:G};
_.m.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.m.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.m.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.NO(this.text).split("\n").length-1:Infinity};
_.m.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()}};
Sl.prototype.guideIsExpandedChanged=Sl.prototype.guideIsExpandedChanged;Sl.prototype.dataChanged=Sl.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Sl.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Sl.prototype,"actionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Sl.prototype,"text",void 0);
_.R([_.H(),_.n("design:type",String)],Sl.prototype,"fontFamily",void 0);_.R([_.H(),_.n("design:type",Number)],Sl.prototype,"maxWidth",void 0);_.R([_.H(),_.n("design:type",Number)],Sl.prototype,"maxHeight",void 0);_.R([_.H(),_.n("design:type",Number)],Sl.prototype,"maxFontSize",void 0);_.R([_.H(),_.n("design:type",Number)],Sl.prototype,"minFontSize",void 0);_.R([_.H(),_.n("design:type",Number)],Sl.prototype,"maxLines",void 0);_.R([_.H(),_.n("design:type",Object)],Sl.prototype,"hideOverflow",void 0);
_.R([_.H({selector:_.PDr}),_.n("design:type",Boolean)],Sl.prototype,"guideIsExpanded",void 0);_.R([_.lH("#container"),_.n("design:type",HTMLElement)],Sl.prototype,"containerNode",void 0);_.R([_.lH("#text"),_.n("design:type",HTMLElement)],Sl.prototype,"textNode",void 0);_.R([_.Dd("text"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Sl.prototype,"dataChanged",null);
_.R([_.Dd("guideIsExpanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Sl.prototype,"guideIsExpandedChanged",null);_.R([_.N({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Sl);
_.J(Sl,"yt-dynamic-sizing-formatted-string",function(){if(YkO!==void 0)return YkO;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YkO=G},{mode:1});var KKQ;_.uK5=function(G){_.bs.call(this,G)};
_.M(_.uK5,_.bs);var RJn=function(G){_.bs.call(this,G)};
_.M(RJn,_.uK5);var Xn=function(){return _.a.apply(this,arguments)||this};
_.M(Xn,_.a);Xn.prototype.onTapSuspendedChannel=function(){var G;if((G=this.data)!=null&&G.serviceEndpoint){var b,I;(G=(I=_.g((b=this.data)==null?void 0:b.serviceEndpoint,_.bx))==null?void 0:I.url)?_.tL(G,void 0,void 0,window.top):(b=new RJn("Did not handle suspended account tap. No appealUrl."),_.K1(b))}else b=new RJn("Did not handle suspended account tap. No serviceEndpoint."),_.K1(b)};
Xn.prototype.onTap=function(){var G=this,b=_.qo(),I,h=(I=_.IM(b,{veType:7116}))!=null?I:void 0;_.or(b,{visualElement:h});_.Me();this.saveRoleText();var q;if((q=this.data)==null?0:q.youtubeSuspended)this.onTapSuspendedChannel();else{var l=!1,V,D;(b=(D=_.g((V=this.data)==null?void 0:V.serviceEndpoint,_.a9z))==null?void 0:D.supportedTokens)&&b.forEach(function(k){if(k.accountSigninToken)if(l=!0,G.onAccountItemTap)G.onAccountItemTap(k.accountSigninToken.signinUrl);else _.tL(k.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!l){if(V=this.get("serviceEndpoint",this.data))l=!0,this.ytComponentBehavior.resolveCommand(V);l||_.u6(new RJn("Did not handle account switch tap. No token."))}}};
Xn.prototype.saveRoleText=function(){if(this.data){var G=this.data,b=G.channelDelegationRole;if(b){var I,h=(I=_.g(G==null?void 0:G.serviceEndpoint,_.a9z))==null?void 0:I.supportedTokens;if(!h){var q,l,V,D;h=(q=_.g(G==null?void 0:G.serviceEndpoint,_.WB))==null?void 0:(l=q.popup)==null?void 0:(V=l.confirmDialogRenderer)==null?void 0:(D=V.confirmButton)==null?void 0:D.buttonRenderer;var k;h=(k=_.g(h==null?void 0:h.command,_.$P))==null?void 0:k.commands;if(!h)return;var L;h=(L=_.g(h[1],_.a9z))==null?
void 0:L.supportedTokens}if(h){k=void 0;L=_.e(h);for(h=L.next();!h.done;h=L.next())if(h=h.value,h.datasyncIdToken){k=h.datasyncIdToken.datasyncIdToken;break}if(k){var x;a:{if(_.OoO()&&(L=_.C9s(k+"::pom"))){L=new y8(L);break a}L=void 0}(x=L)==null||x.set("role_text",b);if((lXX?lXX:window.location).href.indexOf("studio")!==-1&&(x=w_B())){L=x.src?(new URL(x.src)).origin:"*";var f;(f=x.contentWindow)==null||f.postMessage({action:"save_pom_role",datasyncId:k,roleText:b},L)}}}}}};
_.kV.Object.defineProperties(Xn.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,b,I=(G=this.data)==null?void 0:(b=G.accountPhoto)==null?void 0:b.thumbnails;return I&&I.length>0&&(I[0].height===36||I[0].height===48)?I[0].height:40}}});
Xn.prototype.onTap=Xn.prototype.onTap;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Xn.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Xn.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!1}),_.n("design:type",Function)],Xn.prototype,"onAccountItemTap",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Xn.prototype,"enableRingForActiveAccount",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],Xn.prototype,"thumbnailSize",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xn.prototype,"onTap",null);_.R([_.N({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Xn);
_.J(Xn,"ytd-account-item-renderer",function(){if(KKQ!==void 0)return KKQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return KKQ=G},{mode:1});var ndW;var $X=function(){return _.a.apply(this,arguments)||this};
_.M($X,_.a);$X.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.LL().resolve(_.xW).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],$X.prototype,"data",void 0);_.R([_.N({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],$X);
_.J($X,"ytd-identity-chip-renderer",function(){if(ndW!==void 0)return ndW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ndW=G},{mode:1});var O2Q;var w4z;var Ed5;var p45;var G5=function(){var G=_.a.apply(this,arguments)||this;G.richItemMinWidth=_.Te("wn_grid_min_item_width",310);G.isShorts=!1;G.isWatchNext=!1;G.isExploreHub=!1;return G};
_.M(G5,_.a);_.kV.Object.defineProperties(G5.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var G=[],b=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.G8(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)&&b)for(b*=this.data.rows,I=0;I<b;I++)G.push({});return G}}});
_.R([_.z(_.wN),_.n("design:type",Object)],G5.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],G5.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.sb,value:3}),_.n("design:type",Number)],G5.prototype,"itemsPerRow",void 0);_.R([_.H({selector:_.iPp,value:6}),_.n("design:type",Number)],G5.prototype,"slimItemsPerRow",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Number)],G5.prototype,"richItemMinWidth",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],G5.prototype,"miniMode",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],G5.prototype,"isShorts",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],G5.prototype,"isWatchNext",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],G5.prototype,"isExploreHub",void 0);
_.R([_.P("isExploreHub"),_.H({reflectToAttribute:!0}),_.n("design:type",Object),_.n("design:paramtypes",[])],G5.prototype,"shimmerAnimation",null);_.R([_.P("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.n("design:type",Array),_.n("design:paramtypes",[])],G5.prototype,"cardItems",null);_.R([_.N({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],G5);
_.SkQ=_.R9()(G5,"ytd-ghost-grid-renderer",function(){if(p45===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);p45=G}G=p45;return G},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.JN(_.C(function(G){var b=_.N5(G,{numberOfComments:3}).numberOfComments,I=_.N5(G,{isInitialLoad:!1}).isInitialLoad,h=_.N5(G,{engagementPanel:!1}).engagementPanel,q=function(){return Math.min(Number(b==null?void 0:b())||20,20)};
return _.v("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.v(_.Q,{cond:function(){return!(h==null?0:h())&&(I==null?void 0:I())},
then:function(){return _.v("div",{class:"ytGhostCommentsComments"},_.v("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.v("div",{class:_.pG("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.v("div",{class:_.pG("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.v("div",{class:"ytGhostCommentsGhostCard"},_.v("div",{class:"ytGhostCommentsAvatar"},_.v("div",{class:"ytGhostCommentsCircle"})),_.v("div",{class:"ytGhostCommentsComments"},_.v("div",{class:"ytGhostCommentsMeta"},
_.v("div",{class:_.pG("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.v("div",{class:_.pG("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.v("div",{class:"ytGhostCommentsComments"},_.v(_.aj,{each:function(){return Array((q==null?void 0:q())||3)}},function(){return _.v("div",{class:"ytGhostCommentsGhostCard"},_.v("div",{class:"ytGhostCommentsAvatar"},_.v("div",{class:"ytGhostCommentsCircle"})),_.v("div",{class:"ytGhostCommentsHost"},_.v("div",{class:"ytGhostCommentsMeta"},
_.v("div",{class:_.pG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.v("div",{class:_.pG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.v("div",{class:_.pG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.v("div",{class:"ytGhostCommentsGhostLikeDislike"},_.v("div",{class:_.pG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.v("div",{class:_.pG("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.hV,
isInitialLoad:_.hV,engagementPanel:_.hV},unsafeExternallySettableAttributes:new Set(["hidden"])});_.QO("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var bj=function(){var G=_.a.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};
_.M(bj,_.a);_.m=bj.prototype;_.m.resetIntersectionObserver=function(){var G;(G=this.observer)==null||G.disconnect();this.observer=void 0};
_.m.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var G,b;((G=this.data)==null?void 0:G.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((b=this.data)==null?0:b.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.m.initializeIntersectionObserver=function(){var G=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(b){b=_.e(b);for(var I=b.next();!I.done;I=b.next())I.value.isIntersecting&&(G.triggerContinuation(),G.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.m.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]]"}}}}}};
_.m.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var G;((G=this.data)==null?0:G.continuationEndpoint)&&(G=_.g(this.data.continuationEndpoint,_.Aa))&&this.ytdReduxBehavior.dispatch(_.wK({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:G}}))};
_.m.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.m.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.m.onServiceRequestCompleted=function(G,b){if(!_.U("kevlar_hide_spinner_on_empty_continuation_killswitch")){var I;(I=b.actions)!=null&&I.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.m.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.m.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.m.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.m.numberOfGhostCommentsChanged=function(){var G=3;if(this.engagementPanel){var b,I,h;G=Math.floor(((((b=this.hostElement)==null?void 0:(I=b.parentElement)==null?void 0:(h=I.parentElement)==null?void 0:h.scrollHeight)||108)-108)/108);G=this.isInitialLoad?Math.max(G,3):3}b=[].concat(_.Nz(this.hostElement.querySelectorAll("yt-ghost-comments")));b=_.e(b);for(I=b.next();!I.done;I=b.next())I=I.value,I.numberOfComments=G,I.isInitialLoad=this.isInitialLoad,I.engagementPanel=this.engagementPanel};
_.m.detached=function(){this.resetIntersectionObserver()};
_.kV.Object.defineProperties(bj.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
bj.prototype.numberOfGhostCommentsChanged=bj.prototype.numberOfGhostCommentsChanged;bj.prototype.continuationTriggerOffsetChanged=bj.prototype.continuationTriggerOffsetChanged;bj.prototype.showButtonChanged=bj.prototype.showButtonChanged;bj.prototype.onYtServiceRequestCompletedForButtonRenderer=bj.prototype.onYtServiceRequestCompletedForButtonRenderer;bj.prototype.onServiceRequestCompleted=bj.prototype.onServiceRequestCompleted;bj.prototype.onYtServiceRequestSentForButtonRenderer=bj.prototype.onYtServiceRequestSentForButtonRenderer;
bj.prototype.observeData=bj.prototype.observeData;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.X6.YtVisibilityBehavior),_.n("design:type",Object)],bj.prototype,"ytVisibilityBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],bj.prototype,"ytComponentBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],bj.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],bj.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],bj.prototype,"isOverridable",void 0);_.R([_.H(),_.n("design:type",Object)],bj.prototype,"spinnerActive",void 0);_.R([_.H(),_.n("design:type",Object)],bj.prototype,"showButton",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bj.prototype,"isCommentsSection",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bj.prototype,"engagementPanel",void 0);_.R([_.H(),_.n("design:type",Object)],bj.prototype,"isShortsGrid",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.rVj}),_.n("design:type",Object)],bj.prototype,"isShortsPage",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.yVO}),_.n("design:type",Object)],bj.prototype,"isWatchPage",void 0);_.R([_.H(),_.n("design:type",Number)],bj.prototype,"continuationTriggerOffset",void 0);
_.R([_.H(),_.n("design:type",Object)],bj.prototype,"endOfList",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],bj.prototype,"isInitialLoad",void 0);_.R([_.lH("ytd-button-renderer"),_.n("design:type",_.L5)],bj.prototype,"buttonRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],bj.prototype,"buttonOverrides",void 0);
_.R([_.H(),_.P("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.n("design:type",Object),_.n("design:paramtypes",[])],bj.prototype,"showGhostCardComments",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bj.prototype,"observeData",null);
_.R([_.hI("yt-service-request-sent-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bj.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],bj.prototype,"onServiceRequestCompleted",null);
_.R([_.hI("yt-service-request-completed-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bj.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.R([_.Dd("showButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bj.prototype,"showButtonChanged",null);
_.R([_.Dd("continuationTriggerOffset"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bj.prototype,"continuationTriggerOffsetChanged",null);_.R([_.q5("isInitialLoad","engagementPanel"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bj.prototype,"numberOfGhostCommentsChanged",null);_.R([_.N({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],bj);
_.J(bj,"ytd-continuation-item-renderer",function(){if(Ed5!==void 0)return Ed5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Ed5=G},{mode:1});var X4X;var IE=function(){var G=_.a.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};
_.M(IE,_.a);IE.prototype.dataChanged=function(){var G;this.videoData=_.g((G=this.data)==null?void 0:G.renderer,Q4z);this.transferStateChanged()};
IE.prototype.downloadProgressChanged=function(){if(this.entityInfo){var G=Object.assign({},this.videoData),b=DMX(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),I=b.publishedTimeText,h=b.badges;G.shortViewCountText=b.shortViewCountText;G.publishedTimeText=I;G.badges=h;this.set("videoData",G)}};
IE.prototype.transferStateChanged=function(){if(this.entityInfo){var G=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",b=_.Vg(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!en(this.entityInfo.policyEntity),I=Object.assign({},this.videoData),h=DMX(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),q=h.publishedTimeText,l=h.badges;I.shortViewCountText=
h.shortViewCountText;I.publishedTimeText=q;I.badges=l;I.isDisabled=b;I.isWatched=this.downloadedVideoPlaybackPosition>0;I.navigationEndpoint=b?void 0:FSa(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var V;G&&((V=this.videoData)==null?0:V.videoId)&&!_.U("dl_resume_click_killswitch")&&(I.isDisabled=!1,I.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});I.thumbnailOverlays=eor(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",I)}};
IE.prototype.transferStateChanged=IE.prototype.transferStateChanged;IE.prototype.downloadProgressChanged=IE.prototype.downloadProgressChanged;IE.prototype.dataChanged=IE.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],IE.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],IE.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],IE.prototype,"videoData",void 0);_.R([_.H({selector:zi,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],IE.prototype,"downloadProgress",void 0);_.R([_.H(),_.n("design:type",Number)],IE.prototype,"relativeDateReference",void 0);_.R([_.H({selector:_.Z0,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],IE.prototype,"transferState",void 0);
_.R([_.H({selector:GNO,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],IE.prototype,"downloadState",void 0);_.R([_.H({selector:Nsq,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],IE.prototype,"offlinePolicyAction",void 0);_.R([_.H({selector:YQu,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],IE.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.R([_.H({selector:im,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],IE.prototype,"downloadedVideoPlaybackPosition",void 0);_.R([_.H({selector:JVj,selectorArgs:["videoData.videoId"]}),_.n("design:type",Object)],IE.prototype,"entityInfo",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],IE.prototype,"isDownloading",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IE.prototype,"dataChanged",null);
_.R([_.Dd("downloadProgress"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IE.prototype,"downloadProgressChanged",null);_.R([_.Dd("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IE.prototype,"transferStateChanged",null);
_.R([_.N({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],IE);
_.J(IE,"ytd-downloaded-video-grid-video-renderer",function(){if(X4X!==void 0)return X4X;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return X4X=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var $pn;var hA=function(){};
hA.prototype.resolve=function(G,b){var I=this;return _.c(function(h){return h.yield(I.resolveCommand(G,b),0)})};var GzJ,qV;GzJ=UuO(function(G){return G.targetId},{shouldPersist:!1});
qV=GzJ.updateData;_.bjz=GzJ.useUpdatableData;var ISb,hnB;ISb=UuO(function(G){return G.targetId});
hnB=ISb.updateData;_.qIu=ISb.useUpdatableData;var jxO=gRq.bind(null,qV),lS5=gRq.bind(null,hnB);(function(G,b,I){var h=_.g(I==null?void 0:I.updatedRenderer,_.nK8);return h?G({targetId:b},function(){return h}):!1}).bind(null,qV);var jC=function(){};
_.M(jC,hA);jC.prototype.resolveCommand=function(G){var b;return _.c(function(I){b=_.g(G,_.dNO);if(!b)return I.return();jxO(b.targetId,b);_.ip(I)})};var lj=function(){var G=_.eH.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};
_.M(lj,_.eH);_.m=lj.prototype;_.m.configureContinuationPathMap=function(){return{}};
_.m.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.m.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.m.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.m.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.m.handleAppendContinuationItemsAction=function(G){var b=_.g(G,_.NIi);if(this.data&&this.data.targetId&&b&&this.continuationPathMap&&b.targetId===this.data.targetId){var I=hmp(G),h=I&&this.continuationPathMap[I];if(h&&I)if(G=this.get(h,this.data)){a:{for(I=0;I<G.length;I++){var q=G[I],l=void 0,V=!!_.g((l=_.g(q,tbX))==null?void 0:l.content,_.cyX);if(_.g(q,_.Yg)||V)break a}I=G.length}h="data."+h;b.continuationItems?I===G.length-1?(this.pop(h),this.push.apply(this,[h].concat(_.Nz(b.continuationItems)))):
I===G.length?this.push.apply(this,[h].concat(_.Nz(b.continuationItems))):this.splice.apply(this,[h,I,1].concat(_.Nz(b.continuationItems))):this.splice(h,I,1);(_.U("web_enable_voting_animation")||_.U("enable_music_web_cairo_voting_animation"))&&_.O3(this.hostElement,"yt-append-continuation-items-action-finished");_.O3(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.RB(new _.Wf("append continuation items does not exist",I));else _.RB(new _.Wf("append continuation path does not exist",
I))}};
_.m.handleReloadContinuationItemsCommand=function(G){var b=_.g(G,_.dNO);if(this.data&&b){if(_.U("web_client_explore_hub")||_.U("web_explore_hub_on_hover")||_.U("web_client_explore_hub_on_hover"))try{_.LL().resolve(jC).resolveCommand(G)}catch(l){}if(this.data.targetId&&this.continuationPathMap&&b.targetId===this.data.targetId&&(!_.U("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||b.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var I,h=(I=b.slot)==null?void 0:
I.replace("RELOAD_CONTINUATION_SLOT_","");I=(G=hmp(G)+"-"+(h==null?void 0:h.toLowerCase()))&&this.continuationPathMap[G];if(!I||!G||!h)_.RB(new _.Wf("reload continuation path does not exist",G));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(b)){if(b.replaceWithFirstItem){var q;this.set("data."+I,((q=b.continuationItems)==null?0:q.length)?b.continuationItems[0]:{})}else this.set("data."+I,b.continuationItems?b.continuationItems:[]);this.continuationIsReloading=
!1;_.O3(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.m.handleShowReloadUiCommand=function(G){G=_.g(G,GTO);var b;((b=this.data)==null?0:b.targetId)&&(G==null?0:G.targetId)&&G.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
lj.prototype.observeData=lj.prototype.observeData;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],lj.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],lj.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lj.prototype,"data",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],lj.prototype,"continuationIsReloading",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lj.prototype,"observeData",null);_.R([_.Vx()],lj);_.mD=[_.EN.YtComponentBehavior,_.tV.YtActionHandlerBehavior,lj.prototype];_.eC={};_.eC.YtNextContinuationBehavior=[_.ed.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",_.I9(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.I9(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(G,b){G.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,b,{}):(G={locationRetrieved:function(I){this.makeNextContinuationRequest_(I,b,{})}.bind(this)},_.O3(this.hostElement,"yt-retrieve-location",G))},
makeNextContinuationRequest_:function(G,b,I){_.gK("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();G=b(G);var h;this.canUseContextualNetworkManager_()&&(h=this.getNetworkManager());h||(h=_.LL().resolve(_.cy));b=_.ik.instance;if(_.wy("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&b){h=_.JQ([G.startsWith("/")?G.substr(1):G]);var q,l;I=_.qS(b,{},h,I==null?void 0:(q=I.context)==null?void 0:(l=q.clickTracking)==null?void 0:l.clickTrackingParams).then(function(V){return{response:V}})}else I=
this.nextContinuation.usePost?h.postData(G,I):h.fetchData(G);
I.then(this.updateNextContinuationData_.bind(this,G));this.pendingContinuationRequest_=I;this.startListeningForNavigate_()},
updateNextContinuationData_:function(G,b){var I=this;_.gK("ncl");this.pendingContinuationRequest_=void 0;if(b){var h={};this.nextContinuation&&(h=this.nextContinuation);if(b.response&&b.response.continuationContents&&b.response.continuationContents[h.continuationType]){G=b.response.continuationContents[h.continuationType];var q=h.header||"data.header",l=G[h.responseHeaderKey||"header"];l&&this.set(q,l);q=h.contentsArray||"data.contents";l=this.getContents_(G,h.responseContentsKey||"contents")||[];
this.pathExists_(q)?(l.unshift(q),this.push.apply(this,l)):this.set(q,l);l&&(ASs(_.qo(),b.response,this.hostElement,function(V){_.wL(I.hostElement,"yt-store-grafted-ve-action",[V])}),_.O3(this.hostElement,"yt-next-continuation-data-updated",{continuationData:b,
page:this,contentsArray:q}));this.set(h.continuationsArray||"data.continuations",G[h.responseContinuationsKey||"continuations"]||[])}else b.reload?_.RB(new _.Wf("Reloading from continuation is unsupported")):b.responseContext&&b.responseContext.errors||(delete b.xsrf_token,delete b.timing,delete b.endpoint,delete b.csn,b.responseContext&&delete b.responseContext.serviceTrackingParams,q={request:_.lB(G,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(b).sort()},b.response&&(q.responseContentKeys=
Object.keys(b.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(q.continuationType=this.nextContinuation.continuationType.substr(0,256)),b=new _.Wf("Malformed continuation",q),G.indexOf("/comment_service_ajax")==0?_.RB(b):_.K1(b)),this.set(h.continuationsArray||"data.continuations",[])}else _.u6(new _.Wf("Missing continuation response",G))},
getContents_:function(G,b){b=b.split(".");return _.Cy.getValueByKeys(G,b)},
pathExists_:function(G){var b=this;G=G.toString().split(".");for(var I=0;I<G.length;I++)if(b=b[G[I]],b===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var mpi;var en5;var V6=function(){var G=_.a.apply(this,arguments)||this;G.triggered_=!1;return G};
_.M(V6,_.a);_.m=V6.prototype;_.m.attached=function(){this.maybeTriggerAutoload()};
_.m.detached=function(){this.hasBeenTriggered_=!1};
_.m.onPrescanVisible=function(){this.onShow()};
_.m.onShow=function(){this.showButton||this.trigger()};
_.m.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.O3(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.m.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.m.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.m.computeLabel_=function(G,b){return G===void 0?null:G.label||!b?G.label:this.showMoreText_};
_.m.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.m.getContinuationUrl=function(G){var b={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(b.itct=this.data.clickTrackingParams);return _.mE(G,b)};
_.m.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
V6.prototype.showButtonChanged_=V6.prototype.showButtonChanged_;V6.prototype.observeData_=V6.prototype.observeData_;_.R([_.z(_.X6.YtVisibilityBehavior),_.n("design:type",Object)],V6.prototype,"ytVisibilityBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],V6.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],V6.prototype,"showButton",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],V6.prototype,"showIcon",void 0);_.R([_.H({computed:"computeLabel_(data, showButton)"}),_.n("design:type",Object)],V6.prototype,"label",void 0);_.R([_.H({value:_.ao(_.qP("SHOW_MORE",void 0,"Show More"))}),_.n("design:type",Object)],V6.prototype,"showMoreText_",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],V6.prototype,"spinnerActive_",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],V6.prototype,"hasBeenTriggered_",void 0);
_.R([_.H({value:void 0}),_.n("design:type",String)],V6.prototype,"observeVisibleOption",void 0);_.R([_.H({value:void 0}),_.n("design:type",String)],V6.prototype,"observeHiddenOption",void 0);_.R([_.H({value:"observe_once"}),_.n("design:type",Object)],V6.prototype,"observePrescanOption",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],V6.prototype,"observeData_",null);
_.R([_.q5("showButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],V6.prototype,"showButtonChanged_",null);_.R([_.g8({is:"yt-next-continuation",disableElementRegistration:!0})],V6);
_.J(V6,"yt-next-continuation",function(){if(en5===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;mpi===void 0&&(mpi=document.createElement("template"));var h=mpi;I.call(b,h.content.cloneNode(!0),G.content.firstChild);en5=G}G=en5;return G},{mode:2});var V3i;var DpA;var DX=function(){return _.a.apply(this,arguments)||this};
_.M(DX,_.a);DX.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],DX.prototype,"data",void 0);_.R([_.g8({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],DX);
_.J(DX,"yt-music-pass-small-feature-info-renderer",function(){if(DpA===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;V3i===void 0&&(V3i=document.createElement("template"));var h=V3i;I.call(b,h.content.cloneNode(!0),G.content.firstChild);DpA=G}G=DpA;return G},{mode:2});_.QO("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var cV=function(){var G=_.a.apply(this,arguments)||this;G.isCollapsible=!1;G.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return G};
_.M(cV,_.a);_.m=cV.prototype;_.m.computeIsCollapsible=function(G){return!!(((G==null?0:G.showMoreText)||(G==null?0:G.visibleRowCount))&&(G==null?0:G.isCollapsible))};
_.m.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"}}}};
_.m.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.m.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.m.onIronResize=function(){var G=this;_.P5(this,"updateGridInitItems",function(){G.maybeUpdateInitialItemsDisplayed()})};
_.m.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)))}};
_.m.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.m.computeExpandVisible=function(G,b,I,h){return G&&b&&I&&!!h&&!!h.showMoreText};
_.m.computeShowMoreButton=function(G){return{text:G,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.m.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.m.initCollapsed=function(){var G=this;this.ytLazyListBehavior.canShowMore=!1;var b;(this.collapsed=!((b=this.data)==null||!b.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.D1(this,function(){_.E3(G.hostElement,"yt-refit-popups-action")})};
_.m.fillRestIfNotCollapsible=function(){var G=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!G||this.ytLazyListBehavior.fillRemainingListItems()};
_.m.computeViewAllHidden=function(G,b){return G||!b.viewAllEndpoint};
cV.prototype.fillRestIfNotCollapsible=cV.prototype.fillRestIfNotCollapsible;cV.prototype.initCollapsed=cV.prototype.initCollapsed;cV.prototype.onIronResize=cV.prototype.onIronResize;cV.prototype.persistentGuideChanged=cV.prototype.persistentGuideChanged;_.R([_.z(_.Y6),_.n("design:type",Object)],cV.prototype,"ironResizableBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],cV.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.L9.YtLazyListBehavior),_.n("design:type",Object)],cV.prototype,"ytLazyListBehavior",void 0);_.R([_.z(_.eC.YtNextContinuationBehavior),_.n("design:type",Object)],cV.prototype,"ytNextContinuationBehavior",void 0);_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],cV.prototype,"ytdGuideStateAwareBehavior",void 0);
_.R([_.z(_.mD),_.n("design:type",Object)],cV.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],cV.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],cV.prototype,"collapsed",void 0);_.R([_.H(),_.n("design:type",Number)],cV.prototype,"initialCount",void 0);_.R([_.H({computed:"computeShowMoreButton(data.showMoreText)"}),_.n("design:type",Object)],cV.prototype,"showMoreButton",void 0);
_.R([_.H({computed:"computeIsCollapsible(data)"}),_.n("design:type",Object)],cV.prototype,"isCollapsible",void 0);_.R([_.lH("#items"),_.n("design:type",HTMLElement)],cV.prototype,"items",void 0);_.R([_.Dd("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cV.prototype,"persistentGuideChanged",null);_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cV.prototype,"onIronResize",null);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cV.prototype,"initCollapsed",null);_.R([_.Dd("canShowMore"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cV.prototype,"fillRestIfNotCollapsible",null);_.R([_.N({is:"ytd-grid-renderer",disableElementRegistration:!0})],cV);
_.J(cV,"ytd-grid-renderer",function(){if($pn!==void 0)return $pn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $pn=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var kX=function(){return _.a.apply(this,arguments)||this};
_.M(kX,_.a);
kX.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],kX.prototype,"data",void 0);_.R([_.N({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],kX);
_.J(kX,"ytd-carousel-ad-renderer",function(){if(w4z!==void 0)return w4z;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return w4z=G},{mode:1});var cGW;var vV=function(){return _.a.apply(this,arguments)||this};
_.M(vV,_.a);_.m=vV.prototype;_.m.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"}}}};
_.m.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,vV.JSC$15572_CLICK_LOCATION_ID_MAP))};
_.m.onSitelinkTap=function(G){G.stopPropagation();var b,I,h=G==null?void 0:(b=G.model)==null?void 0:(I=b.item)==null?void 0:I.onTap;h&&this.ytSparklesClickLocationBehavior.handleClick(h,G,!1)};
_.m.onTap=function(G){var b=this.data&&this.data.content&&this.data.content.navigationEndpoint;b&&this.ytSparklesClickLocationBehavior.handleClick(b,G,!1)};
_.m.sendImpression=function(){if(this.data&&this.data.content)for(var G=_.e(this.data.content.impressionEndpoints||[]),b=G.next();!b.done;b=G.next()){b=_.e(b.value.loggingUrls||[]);for(var I=b.next();!I.done;I=b.next())I=I.value,I.baseUrl&&b6(I.baseUrl,I.attributionSrcMode)}};
vV.prototype.onTap=vV.prototype.onTap;vV.prototype.dataChanged=vV.prototype.dataChanged;vV.JSC$15572_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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.vF.YtSparklesClickLocationBehavior),_.n("design:type",Object)],vV.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],vV.prototype,"data",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vV.prototype,"dataChanged",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],vV.prototype,"onTap",null);_.R([_.N({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],vV);
_.J(vV,"ytd-promoted-sparkles-text-search-renderer",function(){if(cGW!==void 0)return cGW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return cGW=G},{mode:1});var kz5;var L$=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.M(L$,_.a);_.m=L$.prototype;_.m.created=function(){this.activeView=new BF(this.hostElement)};
_.m.configureRendererStamper=function(){return{"data.menu":{id:_.U("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]]"}}}}}};
_.m.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.m.computeHasAdBadge=function(G){return!(G==null||!G.adBadge)};
_.m.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",L$.JSC$15581_DEFAULT_AD_BADGE_RENDERER),_.SL(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&UT(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,L$.JSC$15581_CLICK_LOCATION_ID_MAP))};
_.m.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var G;(((G=this.data)==null?void 0:G.impressionCommands)||[]).forEach(function(b){b=_.e(b.loggingUrls||[]);for(var I=b.next();!I.done;I=b.next())I=I.value,I.baseUrl&&b6(I.baseUrl,I.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.m.onTap=function(G){var b,I=(b=this.data)==null?void 0:b.navigationEndpoint,h;(b=(h=this.data)==null?void 0:h.thumbnailNavigationEndpoint)&&_.Yo(_.Wy(G),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(b,G,!1):I&&this.ytSparklesClickLocationBehavior.handleClick(I,G,!1)};
_.m.handleMuteAd=function(){this.collapsed=!0};
_.m.attached=function(){var G=this;_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sT(G.activeView)})};
_.m.detached=function(){_.U("stop_av_measurement_on_detach")&&sT(this.activeView)};
_.kV.Object.defineProperties(L$.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}}});
L$.prototype.dataChanged=L$.prototype.dataChanged;
L$.JSC$15581_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"]]);
L$.JSC$15581_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.qP("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],L$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],L$.prototype,"actionHandlerBehavior",void 0);
_.R([_.z(_.vF.YtSparklesClickLocationBehavior),_.n("design:type",Object)],L$.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],L$.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],L$.prototype,"collapsed",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],L$.prototype,"useBiggerThumbs",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.UG("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],L$.prototype,"biggerThumbsStyle",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.n("design:type",Boolean)],L$.prototype,"fixAlignmentSmallScreens",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs_square")}}),
_.n("design:type",Boolean)],L$.prototype,"useBiggerThumbsSquare",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.mediaHoverOverlay"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],L$.prototype,"hideHoverOverlay",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.promotedSparklesWebStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],L$.prototype,"webSearchLayout",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],L$.prototype,"webSearchLayoutLandscape",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],L$.prototype,"webSearchLayoutSquare",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data.promotedSparklesWebStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],L$.prototype,"sparklesCtaNoBackground",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.actionButton"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],L$.prototype,"hideActionButton",null);_.R([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.n("design:type",Object)],L$.prototype,"buttonOverride",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.n("design:type",Boolean)],L$.prototype,"hasNewAdBadge",void 0);_.R([_.P("data.promotedSparklesWebStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],L$.prototype,"useRoundedBadge",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],L$.prototype,"dataChanged",null);_.R([_.N({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],L$);
_.J(L$,"ytd-promoted-sparkles-web-renderer",function(){if(kz5!==void 0)return kz5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return kz5=G},{mode:1});var viz;var Q6=function(){var G=_.a.apply(this,arguments)||this;G.isInlinePreviewTriggered=!1;G.enableMonoStyle=_.U("enable_default_mono_cta_migration_web_client");return G};
_.M(Q6,_.a);_.m=Q6.prototype;_.m.created=function(){this.activeView=new BF(this.hostElement)};
_.m.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]]"}}}}}};
_.m.computeShowCta=function(G){return!(G==null||!G.ctaRenderer)};
_.m.onCtaClick=function(){var G,b,I,h=(G=this.data)==null?void 0:(b=G.ctaRenderer)==null?void 0:(I=b.buttonRenderer)==null?void 0:I.command;h&&this.ytComponentBehavior.resolveCommand(h)};
_.m.onWatchButtonClick=function(){var G,b,I,h=(G=this.data)==null?void 0:(b=G.watchButtonRenderer)==null?void 0:(I=b.buttonRenderer)==null?void 0:I.command;h&&this.ytComponentBehavior.resolveCommand(h)};
_.m.onTap=function(){};
_.m.dataChanged=function(){if(this.data){var G;_.U("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",Q6.JSC$15585_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&UT(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Q6.JSC$15585_DEFAULT_CLICK_LOCATION_BEHAVIOR,Q6.JSC$15585_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"));var b;if(((b=this.data)==null?0:b.forceImpAutoplay)&&_.U("enable_force_imp_autoplay_on_desktop_search")){var I;(I=this.JSC$15586_inlinePreviewHoverListener)==null||fxO(I)}}};
_.m.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var G=_.e(this.data.impressionUrls),b=G.next();!b.done;b=G.next())b=b.value,JIq(b,uvB(b));this.data.impressionsFired=!0}};
_.m.maybeComputeHref=function(){return null};
_.m.computeIsShortDR=function(G){return!(G==null||!G.watchButtonRenderer)&&!(G==null||!G.ctaRenderer)&&!!this.enableShortDR};
_.m.computeIsNewUiOrShortDr=function(G){return!!this.enableUiUpdate||this.computeIsShortDR(G)};
_.m.computeIsNewUiAndNotShortDr=function(G){return!!this.enableUiUpdate&&!this.computeIsShortDR(G)};
_.m.computeHideAvatar=function(G){return!((G==null?0:G.channelThumbnail)&&this.computeIsNewUiOrShortDr(G))};
_.m.onClick=function(G){var b,I=(b=this.data)==null?void 0:b.navigationEndpoint;if(this.enableShortDR&&I&&(_.g(I,_.Wq)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(I,G,!!_.g(I,_.Wq)),G.stopPropagation();else if(I&&_.g(I,_.Wq))this.ytSparklesClickLocationBehavior.handleClick(I,G,!0),G.stopPropagation();else if(I){var h,q;((h=this.data)==null?0:h.navigationEndpoint)&&((q=this.data)==null?0:q.adPlaybackContextParams)&&(b=this.data.navigationEndpoint,G=this.data.adPlaybackContextParams,
b.commandMetadata&&_.g(b.commandMetadata,_.IW)&&_.g(b.commandMetadata,_.IW).url&&(b=_.jO(_.g(b.commandMetadata,_.IW).url).adurl)&&_.u8q(b)&&_.Cv(_.dL(b),{encoded_ad_playback_context:G}));this.ytComponentBehavior.resolveCommand(I)}};
_.m.computeButtonOverride=function(G){if(this.computeIsNewUiOrShortDr(G))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.m.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.m.onThumbnailContainerClick=function(G){this.onClick(G)};
_.m.computeThumbnailWidth=function(G,b){return G?b==="MASSIVE"?600:b==="BIG"?500:b==="MEDIUM"?450:420:360};
_.m.attached=function(){var G=this,b;_.U("enable_inline_muted_playback_on_web_search")&&((b=this.data)==null?0:b.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sT(G.activeView)})};
_.m.detached=function(){var G;_.U("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.U("stop_av_measurement_on_detach")&&sT(this.activeView)};
_.m.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15586_inlinePreviewHoverListener=Mt({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:Z2u})};
_.m.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15586_inlinePreviewHoverListener)==null||NA(G)};
Q6.prototype.dataChanged=Q6.prototype.dataChanged;Q6.prototype.onTap=Q6.prototype.onTap;Q6.JSC$15585_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.qP("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Q6.JSC$15585_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Q6.JSC$15585_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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Q6.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Q6.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.vF.YtSparklesClickLocationBehavior),_.n("design:type",Object)],Q6.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.lH("#main-container"),_.n("design:type",HTMLElement)],Q6.prototype,"mainContainer",void 0);
_.R([_.H(),_.n("design:type",Object)],Q6.prototype,"isInlinePreviewTriggered",void 0);_.R([_.H(),_.n("design:type",Object)],Q6.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],Q6.prototype,"useBiggerThumbs",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("enable_video_display_compact_button_group_for_desktop_search")}}),
_.n("design:type",Boolean)],Q6.prototype,"enableShortDR",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("enable_vac_ui_update_for_desktop_search")}}),
_.n("design:type",Boolean)],Q6.prototype,"enableUiUpdate",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.UG("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],Q6.prototype,"biggerThumbsStyle",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.n("design:type",Boolean)],Q6.prototype,"showCta",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.n("design:type",Boolean)],Q6.prototype,"isShortDr",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.n("design:type",Boolean)],Q6.prototype,"isShortDrOrNewUi",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.n("design:type",Boolean)],Q6.prototype,"isNewUiAndNotShortDr",void 0);_.R([_.H({computed:"computeButtonOverride(data)"}),_.n("design:type",Object)],Q6.prototype,"buttonOverride",void 0);_.R([_.H({computed:"computeSecondaryButtonOverride(data)"}),_.n("design:type",Object)],Q6.prototype,"secondaryButtonOverride",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Q6.prototype,"enableMonoStyle",void 0);
_.R([_.lH("ytd-thumbnail"),_.n("design:type",HTMLElement)],Q6.prototype,"thumbnail",void 0);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q6.prototype,"onTap",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q6.prototype,"dataChanged",null);_.R([_.N({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Q6);
_.J(Q6,"ytd-promoted-video-renderer",function(){if(viz!==void 0)return viz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return viz=G},{mode:1});var LYb;var xX=function(){var G=_.a.apply(this,arguments)||this;G.useRoundedBadge=!0;G.sitelinkIds=[];return G};
_.M(xX,_.a);_.m=xX.prototype;
_.m.configureRendererStamper=function(){return{"data.menu":{id:_.U("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]]"}}}}}};
_.m.dataChanged=function(){var G;(G=this.data)!=null&&G.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,xX.JSC$15591_CLICK_LOCATION_ID_MAP)};
_.m.onTap=function(G){var b,I=(b=this.data)==null?void 0:b.navigationCommand;I&&!_.Yo(_.Wy(G),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(I,G,!1)};
_.m.onSitelinkTap=function(G){var b,I,h=G==null?void 0:(b=G.model)==null?void 0:(I=b.item)==null?void 0:I.onTap;h&&this.ytSparklesClickLocationBehavior.handleClick(h,G,!1)};
_.m.configureSitelinkClickTargets=function(){var G=this,b,I,h=(b=this.data)==null?void 0:(I=b.clickLocationTargets)==null?void 0:I.find(function(q){return q.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
h&&_.Eo(this.hostElement).querySelectorAll(".sitelink").forEach(function(q){_.SL(q,"yt-simple-endpoint",!0);G.sitelinkIds.push(q.id);var l,V;(l=G.ytSparklesClickLocationBehavior)==null||(V=l.clickTargetMap)==null||V.set(q.id,h)})};
_.m.sendImpression=function(){var G,b,I=((G=this.data)==null?void 0:(b=G.impressionCommand)==null?void 0:b.loggingUrls)||[];G=_.e(I);for(b=G.next();!b.done;b=G.next())b=b.value,b.baseUrl&&b6(b.baseUrl,b.attributionSrcMode)};
_.m.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.kV.Object.defineProperties(xX.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
xX.prototype.onTap=xX.prototype.onTap;xX.prototype.dataChanged=xX.prototype.dataChanged;xX.JSC$15591_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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.vF.YtSparklesClickLocationBehavior),_.n("design:type",Object)],xX.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],xX.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],xX.prototype,"showFavicon",null);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],xX.prototype,"useBiggerThumbs",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.UG("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],xX.prototype,"biggerThumbsStyle",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.n("design:type",Boolean)],xX.prototype,"enableThumbnailScalingFix",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xX.prototype,"dataChanged",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],xX.prototype,"onTap",null);_.R([_.N({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],xX);
_.J(xX,"ytd-text-image-no-button-layout-renderer",function(){if(LYb!==void 0)return LYb;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return LYb=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var QxW;var f$=function(){var G=_.a.apply(this,arguments)||this;G.isInlinePlaybackState=!1;G.uiUpdate=_.U("web_modern_buttons");G.hideCta=_.U("hide_cta_for_home_web_video_ads");G.noBottomMargin=!1;G.animateInTimeStamp=_.Te("hide_cta_for_home_web_video_ads_animate_in_time");G.animateInCta=!1;G.isHovered=!1;G.enableMonoStyle=_.U("enable_default_mono_cta_migration_web_client");G.player=null;G.JSC$15598_playerEvents=new Map;G.JSC$15598_preventProgressSaveTimer=null;G.delayedCtaJobId=null;return G};
_.M(f$,_.a);_.m=f$.prototype;_.m.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]]"}}}}}};
_.m.attached=function(){this.JSC$15598_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15598_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.U("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.m.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15598_playerEvents)};
_.m.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",f$.JSC$15597_DEFAULT_CLICK_LOCATION_BEHAVIOR,f$.JSC$15597_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.m.hoverChanged=function(){var G=this;this.delayedCtaJobId&&(_.uu.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.U("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.vH(_.uu,function(){G.buttonContainer.classList.add("show-delayed-buttons")},_.Te("delayed_cta_on_web_delay_milliseconds")))};
_.m.setPlayer=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return(b=_.E3(G.hostElement,"yt-get-inline-preview-player-action"))&&b[0]?I.yield(b[0].getPlayerPromise(),3):I.jumpTo(0);G.player=I.yieldResult;G.ytPlayerListenerBehavior.listenToPlayerEvents(G.player,G.JSC$15598_playerEvents);_.ip(I)})};
_.m.onPlaybackStart=function(){var G=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15598_preventProgressSaveTimer=_.O0(_.uu,function(){G.JSC$15598_preventProgressSaveTimer=null},1E4))};
_.m.onVideoProgress=function(G){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&G>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.m.resetPreventProgressSaveTimer=function(){_.uu.cancelJob(this.JSC$15598_preventProgressSaveTimer);this.JSC$15598_preventProgressSaveTimer=null};
_.m.getSimpleString=function(G){return _.NO(G)};
_.m.onClick=function(G){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var b,I=(b=this.data)==null?void 0:b.navigationEndpoint,h;b=(h=this.data)==null?void 0:h.channelEndpoint;var q,l;((l=_.g((q=this.data)==null?void 0:q.adCtaButton,_.bz))==null?0:l.command)&&_.Yo(_.Wy(G),this.hostElement,["call-to-action"])||(b&&_.Yo(_.Wy(G),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(b,G,!1):!_.Yo(_.Wy(G),this.hostElement,
["secondary-button"])&&I&&(_.U("enable_short_dr_for_desktop_launchable")?(h=!!_.g(I,_.Wq),this.isInlinePlaybackState&&h&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,G,h)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,G,!0))))}};
_.m.updateWatchEndpointStartTime=function(){var G,b;this.player&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&((b=this.data)==null?0:b.navigationEndpoint)&&!this.JSC$15598_preventProgressSaveTimer&&(G=Math.floor(this.player.getCurrentTime()),_.g(this.data.navigationEndpoint,_.Wq).startTimeSeconds=G,_.g(this.data.inlinePlaybackEndpoint,_.Wq).startTimeSeconds=G)};
_.m.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.m.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.kV.Object.defineProperties(f$.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.U("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var G,b;return!((G=this.data)==null||!G.watchButton)&&!((b=this.data)==null||!b.adCtaButton)}}});
f$.prototype.hoverChanged=f$.prototype.hoverChanged;f$.prototype.dataChanged=f$.prototype.dataChanged;
f$.JSC$15597_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"]]);
f$.JSC$15597_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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],f$.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.vF.YtSparklesClickLocationBehavior),_.n("design:type",Object)],f$.prototype,"ytSparklesClickLocationBehavior",void 0);
_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],f$.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],f$.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],f$.prototype,"isInlinePlaybackState",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],f$.prototype,"miniMode",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],f$.prototype,"uiUpdate",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],f$.prototype,"hideCta",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],f$.prototype,"noBottomMargin",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],f$.prototype,"animateInCta",void 0);_.R([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.n("design:type",Object)],f$.prototype,"buttonOverride",void 0);
_.R([_.H({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.n("design:type",Object)],f$.prototype,"secondaryButtonOverride",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],f$.prototype,"isHovered",void 0);_.R([_.lH("#button-container"),_.n("design:type",HTMLElement)],f$.prototype,"buttonContainer",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],f$.prototype,"typographyBump",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("typographyBump"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],f$.prototype,"typographyBumpV2",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],f$.prototype,"enableMonoStyle",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f$.prototype,"dataChanged",null);
_.R([_.q5("isHovered"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f$.prototype,"hoverChanged",null);_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],f$.prototype,"isButtonGroup",null);_.R([_.N({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],f$);
_.J(f$,"ytd-ad-inline-playback-meta-block",function(){if(QxW!==void 0)return QxW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return QxW=G},{mode:_.nn("kevlar_poly_si_batch_j065")?1:2});var xpu;var T5=function(){var G=_.a.apply(this,arguments)||this;G.noBottomMargin=!1;G.isInlinePreviewTriggered=!1;G.JSC$15603_activeViewMeasurementDataResolver=_.yO();return G};
_.M(T5,_.a);_.m=T5.prototype;_.m.created=function(){this.activeView=new BF(this.hostElement)};
_.m.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.m.attached=function(){var G=this;this.updateInlinePreviewHoverListeners();this.JSC$15603_activeViewMeasurementDataResolver.promise.then(function(b){UT(G.activeView,b)});
_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sT(G.activeView)})};
_.m.detached=function(){this.clearInlinePreviewHoverListeners();_.U("stop_av_measurement_on_detach")&&sT(this.activeView)};
_.m.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15603_inlinePreviewHoverListener=Mt({mediaRenderer:this,lockupElement:this.JSC$15603_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Z2u})};
_.m.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15603_inlinePreviewHoverListener)==null||NA(G)};
_.m.onDataChanged=function(){var G;((G=this.data)==null?0:G.activeView)&&this.JSC$15603_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",T5.JSC$15602_DEFAULT_CLICK_LOCATION_BEHAVIOR,T5.JSC$15602_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"));var b;if((b=this.data)==
null?0:b.forceImpAutoplay){var I;(I=this.JSC$15603_inlinePreviewHoverListener)==null||fxO(I)}};
_.m.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.m.onThumbnailContainerClick=function(G){if(this.data&&this.data.navigationEndpoint){var b,I=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,G,!!_.g(I,_.Wq));G.stopPropagation()}};
_.m.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.m.impressionLog=function(){var G=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,I,h=(I=_.g((b=this.data)==null?void 0:b.onImpression,_.$P))==null?void 0:I.commands;h&&(h.forEach(function(q){q.clickTrackingParams&&delete q.clickTrackingParams;G.ytComponentBehavior.resolveCommand(q)}),this.data.impressionsFired=!0)}};
_.kV.Object.defineProperties(T5.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15603_inlinePreviewHoverListener)==null?0:Xd(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
T5.prototype.onTypographyBumpChanged=T5.prototype.onTypographyBumpChanged;T5.prototype.onDataChanged=T5.prototype.onDataChanged;T5.JSC$15602_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);T5.JSC$15602_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([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],T5.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],T5.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],T5.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],T5.prototype,"ytdLockupBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],T5.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.vF.YtSparklesClickLocationBehavior),_.n("design:type",Object)],T5.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],T5.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],T5.prototype,"noBottomMargin",void 0);_.R([_.H(),_.n("design:type",Object)],T5.prototype,"isInlinePreviewTriggered",void 0);
_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],T5.prototype,"miniMode",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],T5.prototype,"typographyBump",void 0);_.R([_.lH("ytd-thumbnail"),_.n("design:type",HTMLElement)],T5.prototype,"thumbnail",void 0);_.R([_.lH("#dismissible"),_.n("design:type",HTMLElement)],T5.prototype,"JSC$15603_dismissibleMedia",void 0);
_.R([_.lH("ytd-ad-inline-playback-meta-block"),_.n("design:type",HTMLElement)],T5.prototype,"adInlinePlaybackMetaBlock",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],T5.prototype,"onDataChanged",null);_.R([_.Dd("typographyBump"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],T5.prototype,"onTypographyBumpChanged",null);
_.R([_.P("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],T5.prototype,"isHovered",null);_.R([_.N({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],T5);
_.J(T5,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(xpu!==void 0)return xpu;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xpu=G},{mode:1});var fSe;var BV=function(){var G=_.a.apply(this,arguments)||this;G.isInlinePreviewTriggered=!1;G.JSC$15606_activeViewMeasurementDataResolver=_.yO();return G};
_.M(BV,_.a);_.m=BV.prototype;_.m.created=function(){this.activeView=new BF(this.hostElement)};
_.m.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.m.attached=function(){var G=this;this.updateInlinePreviewHoverListeners();this.JSC$15606_activeViewMeasurementDataResolver.promise.then(function(b){UT(G.activeView,b)})};
_.m.detached=function(){this.clearInlinePreviewHoverListeners()};
_.m.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15606_inlinePreviewHoverListener=Mt({mediaRenderer:this,lockupElement:this.JSC$15606_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Z2u})};
_.m.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15606_inlinePreviewHoverListener)==null||NA(G)};
_.m.onDataChanged=function(){var G;((G=this.data)==null?0:G.activeView)&&this.JSC$15606_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",BV.JSC$15605_DEFAULT_CLICK_LOCATION_BEHAVIOR,BV.JSC$15605_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"))};
_.m.onThumbnailContainerClick=function(G){if(this.data&&this.data.navigationEndpoint){var b,I=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,G,!0);G.stopPropagation()}};
_.m.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.m.impressionLog=function(){var G=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,I,h=(I=_.g((b=this.data)==null?void 0:b.onImpression,_.$P))==null?void 0:I.commands;h&&(h.forEach(function(q){q.clickTrackingParams&&delete q.clickTrackingParams;_.LL().resolve(_.xW).resolveCommand(q,{form:{element:G.hostElement}})}),this.data.impressionsFired=!0)}};
_.kV.Object.defineProperties(BV.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15606_inlinePreviewHoverListener)==null?0:Xd(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
BV.prototype.onDataChanged=BV.prototype.onDataChanged;BV.JSC$15605_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);BV.JSC$15605_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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],BV.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],BV.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],BV.prototype,"ytdLockupBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],BV.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.vF.YtSparklesClickLocationBehavior),_.n("design:type",Object)],BV.prototype,"ytSparklesClickLocationBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],BV.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],BV.prototype,"isInlinePreviewTriggered",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],BV.prototype,"miniMode",void 0);_.R([_.lH("ytd-thumbnail"),_.n("design:type",HTMLElement)],BV.prototype,"thumbnail",void 0);_.R([_.lH("#dismissible"),_.n("design:type",HTMLElement)],BV.prototype,"JSC$15606_dismissibleMedia",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BV.prototype,"onDataChanged",null);_.R([_.P("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],BV.prototype,"isHovered",null);_.R([_.N({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],BV);
_.J(BV,"ytd-video-display-full-buttoned-renderer",function(){if(fSe!==void 0)return fSe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fSe=G},{mode:1});var JW=function(G,b,I,h){h=h===void 0?!1:h;_.bs.call(this,G);this.adsClientErrorMessage=I;this.aggressivelySample=h;this.args=[];b&&this.args.push(b)};
_.M(JW,_.bs);var YU=function(G,b,I,h){h=h===void 0?!1:h;_.bs.call(this,G);this.adsClientErrorMessage=I;this.aggressivelySample=h;this.args=[];b&&this.args.push(b)};
_.M(YU,_.bs);var TGJ=function(G){_.FN.call(this);var b=this;this.initializationFunction=G;this.instance=null;this.addOnDisposeCallback(function(){_.VQ(b.instance);b.instance=null})};
_.M(TGJ,_.FN);TGJ.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.dQ("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var d4O=function(){var G=new Map;[].forEach(function(b){G.set(b.JSC$30914_getType(),b)});
this.getters=G};new Promise(function(){});var tZB=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"]]),MZr=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"}]]),BGW=function(G){this.experimentApiProvider=G;G=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=G<.1};var UC=function(G,b,I,h){_.FN.call(this);this.adsControlFlowEventListeners=b;this.adEventLogger=I;this.experimentApiProvider=h;this.adsControlFlowManagerHelper=G(this,this,this,this,this);_.M2(this,this.adsControlFlowManagerHelper);G=_.e(b);for(b=G.next();!b.done;b=G.next())_.M2(this,b.value)};
_.M(UC,_.FN);var UpX=function(G,b,I,h){sC(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",b,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,h);G=_.e(G.adsControlFlowEventListeners);for(h=G.next();!h.done;h=G.next())UpX(h.value,b,I)};
_.m=UC.prototype;_.m.onOpportunityProcessedExternallyManaged=function(G,b,I,h){sC(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",G,I,b,void 0,void 0,void 0,void 0,void 0,void 0,void 0,h)};
_.m.onSlotReceivedExternallyManaged=function(G,b){g$(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",G,b)};
_.m.onSlotEntered=function(G){if(AA(this.adsControlFlowManagerHelper,G)!=null){g$(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",G);this.adsControlFlowManagerHelper.onSlotEntered(G);for(var b=_.e(this.adsControlFlowEventListeners),I=b.next();!I.done;I=b.next())I.value.onSlotEntered(G);if(AA(this.adsControlFlowManagerHelper,G)!=null&&AA(this.adsControlFlowManagerHelper,G).isOccupyingSlotType()&&MV(this.adsControlFlowManagerHelper,G)&&!sxz(this.adsControlFlowManagerHelper,G)){var h;ZX(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",G,(h=MV(this.adsControlFlowManagerHelper,G))!=null?h:void 0);G=AA(this.adsControlFlowManagerHelper,G);G.slotLifecycleStage!=="entered"&&tA(G.slot,G.slotLifecycleStage,"enterLayoutForSlot");G.slotLifecycleStage="rendering";G.registeredLayoutRenderingAdapter.startRendering(G.layout)}}};
_.m.onSlotExited=function(G){if(AA(this.adsControlFlowManagerHelper,G)!=null){g$(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",G);this.adsControlFlowManagerHelper.onSlotExited(G);for(var b=_.e(this.adsControlFlowEventListeners),I=b.next();!I.done;I=b.next())I.value.onSlotExited(G);AA(this.adsControlFlowManagerHelper,G)!=null&&AA(this.adsControlFlowManagerHelper,G).markedForUnscheduleAfterOutboundAdapterRequests&&giQ(this,G)}};
_.m.onLayoutReceivedExternallyManaged=function(G,b,I){G.managerLayer!=="core"&&ZX(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",G,b,I)};
var AGJ=function(G,b,I){if(AA(G.adsControlFlowManagerHelper,b)!=null){ZX(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,I);G=_.e(G.adsControlFlowEventListeners);for(var h=G.next();!h.done;h=G.next())AGJ(h.value,b,I)}};
UC.prototype.onLayoutExited=function(G,b,I){if(AA(this.adsControlFlowManagerHelper,G)!=null){ZX(this.adEventLogger,ZhO(I),G,b);this.adsControlFlowManagerHelper.onLayoutExited(G,b);for(var h=_.e(this.adsControlFlowEventListeners),q=h.next();!q.done;q=h.next())q.value.onLayoutExited(G,b,I);(I=MV(this.adsControlFlowManagerHelper,G))&&b.layoutId===I.layoutId&&M3n(this,G)}};
UC.prototype.disposeInternal=function(){var G=ZjJ(this.adsControlFlowManagerHelper);G=_.e(G);for(var b=G.next();!b.done;b=G.next())giQ(this,b.value);_.FN.prototype.disposeInternal.call(this)};
var giQ=function(G,b){if(AA(G.adsControlFlowManagerHelper,b)!=null)if(AA(G.adsControlFlowManagerHelper,b).JSC$30944_isSlotExitRequested()||AA(G.adsControlFlowManagerHelper,b).JSC$30944_isLayoutExitRequested())AA(G.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(AA(G.adsControlFlowManagerHelper,b).isOccupyingSlotType())AA(G.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0,M3n(G,b);else if(AA(G.adsControlFlowManagerHelper,b).JSC$30944_isSlotFillRequested())AA(G.adsControlFlowManagerHelper,
b).markedForUnscheduleAfterOutboundAdapterRequests=!0,AA(G.adsControlFlowManagerHelper,b)!=null&&(g$(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=AA(G.adsControlFlowManagerHelper,b),b.fulfillmentLifecycleStage="fill_cancel_requested",b.registeredFulfillmentAdapter.cancelSlotFilling());else{var I=MV(G.adsControlFlowManagerHelper,b),h;G.experimentApiProvider.get();(h=_.U("h5_enable_layout_unscheduling_events"))&&(I?t3n(G,b,I):_.dQ(Error("Lh"),b,I,void 0,!1));g$(G.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var q=AA(G.adsControlFlowManagerHelper,b),l=b.slotEntryTrigger,V=q.registeredSlotEntryTriggerAdapters.get(l.triggerId);V&&(V.unregisterTrigger(l),q.registeredSlotEntryTriggerAdapters.delete(l.triggerId));l=_.e(b.slotFulfillmentTriggers);for(V=l.next();!V.done;V=l.next()){V=V.value;var D=q.registeredFulfillmentTriggerAdapters.get(V.triggerId);D&&(D.unregisterTrigger(V),q.registeredFulfillmentTriggerAdapters.delete(V.triggerId))}l=_.e(b.slotExpirationTriggers);
for(V=l.next();!V.done;V=l.next())if(V=V.value,D=q.registeredExpirationTriggerAdapters.get(V.triggerId))D.unregisterTrigger(V),q.registeredExpirationTriggerAdapters.delete(V.triggerId);q.hasLayout()&&(l=q.layout,z5(q,l.layoutExitNormalTriggers),z5(q,l.layoutExitSkipTriggers),z5(q,l.layoutExitMuteTriggers),z5(q,l.layoutExitUserInputSubmittedTriggers),z5(q,l.layoutExitUserCancelledTriggers));q.registeredFulfillmentAdapter=void 0;q.registeredSlotAdapter!=null&&(q.registeredSlotAdapter.release(),q.registeredSlotAdapter=
void 0);q.registeredLayoutRenderingAdapter!=null&&(q.registeredLayoutRenderingAdapter.release(),q.registeredLayoutRenderingAdapter=void 0);q=G.adsControlFlowManagerHelper;AA(q,b)&&(q=znQ(q,b.slotType+"_"+b.slotPhysicalPosition))&&q.delete(b.slotId);g$(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);G=_.e(G.adsControlFlowEventListeners);for(q=G.next();!q.done;q=G.next())q=q.value,q.onSlotUnscheduled(b),I&&!h&&t3n(q,b,I)}},t3n=function(G,b,I){ZX(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
b,I);
ZX(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",b,I);G=_.e(G.adsControlFlowEventListeners);for(var h=G.next();!h.done;h=G.next())h=h.value,I&&t3n(h,b,I)},M3n=function(G,b){if(AA(G.adsControlFlowManagerHelper,b)!=null&&AA(G.adsControlFlowManagerHelper,b).isOccupyingSlotType()){var I=MV(G.adsControlFlowManagerHelper,b);
if(I&&sxz(G.adsControlFlowManagerHelper,b)){if(AA(G.adsControlFlowManagerHelper,b)!=null){var h=G.adEventLogger,q;var l=((q=MZr.get("abandoned"))==null?void 0:q.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";ZX(h,l,b,I);G=AA(G.adsControlFlowManagerHelper,b);G.slotLifecycleStage!=="rendering"&&tA(G.slot,G.slotLifecycleStage,"exitLayout");G.slotLifecycleStage="rendering_stop_requested";G.registeredLayoutRenderingAdapter.stopRendering(I,"abandoned")}}else{g$(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
b);try{h=AA(G.adsControlFlowManagerHelper,b);if(!h)throw new YU("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");h.slotLifecycleStage!=="enter_requested"&&h.slotLifecycleStage!=="entered"&&h.slotLifecycleStage!=="rendering"&&tA(h.slot,h.slotLifecycleStage,"exitSlot");h.slotLifecycleStage="exit_requested";if(h.registeredSlotAdapter===void 0)throw h.slotLifecycleStage="scheduled",new YU("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
h.registeredSlotAdapter.exit()}catch(V){V instanceof YU&&V.adsClientErrorMessage?(oin(G.adEventLogger,V.adsClientErrorMessage,b),_.dQ(V,b,void 0,void 0,V.aggressivelySample)):(oin(G.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),_.dQ(V,b))}}}};var oE=function(G,b,I,h,q,l){_.FN.call(this);this.registry=G;this.experimentApiProvider=l;this.slotMap=new Map};
_.M(oE,_.FN);var znQ=function(G,b){return(G=G.slotMap.get(b))?G:new Map},AA=function(G,b){return znQ(G,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)},ZjJ=function(G){var b=[];
G.slotMap.forEach(function(I){I=_.e(I.values());for(var h=I.next();!h.done;h=I.next())b.push(h.value.slot)});
return b};
oE.prototype.onSlotEntered=function(G){G=AA(this,G);G.slotLifecycleStage!=="enter_requested"&&tA(G.slot,G.slotLifecycleStage,"onSlotEntered");G.slotLifecycleStage="entered"};
var sxz=function(G,b){G=AA(G,b);return G.hasLayout()&&G.isRendering()},MV=function(G,b){(G=AA(G,b))?G.hasLayout()&&!G.layout&&_.dQ("Unexpected empty layout",b):_.dQ("Unexpected undefined slotState",b);
return(G==null?void 0:G.layout)||null};
oE.prototype.onSlotExited=function(G){G=AA(this,G);G.slotLifecycleStage!=="exit_requested"&&tA(G.slot,G.slotLifecycleStage,"onSlotExited");G.slotLifecycleStage="scheduled"};
oE.prototype.onLayoutExited=function(G,b){G=AA(this,G);G.isPrimaryLayout(b)&&(G.slotLifecycleStage!=="rendering_stop_requested"&&tA(G.slot,G.slotLifecycleStage,"onLayoutExited"),G.slotLifecycleStage="entered")};
var z5=function(G,b){b=_.e(b);for(var I=b.next();!I.done;I=b.next()){I=I.value;var h=G.registeredLayoutExitTriggerAdapters.get(I.triggerId);h&&(h.unregisterTrigger(I),G.registeredLayoutExitTriggerAdapters.delete(I.triggerId))}},tA=function(G,b,I){_.dQ("Slot stage was "+b+" when calling method "+I,G)};var PZJ=function(G){_.FN.call(this);this.deps=G;this.JSC$15659_adsControlFlowManager=ijn(this)};
_.M(PZJ,_.FN);var ijn=function(G){var b=new UC(function(I,h,q,l){return new oE(G.deps.registry,I,h,q,l,G.deps.experimentApiProvider)},new Set(PVj(G.deps.registry).concat(G.deps.listeners)),G.deps.adEventLogger,G.deps.experimentApiProvider);
_.M2(G,b);return b};var EcB=function(){};var dpi=function(G,b){_.FN.call(this);this.experimentApiProvider=G;this.eventLoggingSettingsProvider=b;this.eventCount=0;this.premiumAdSeenEventLogger=pqO()()};
_.M(dpi,_.FN);dpi.prototype.logEvent=function(G){sC(this,G)};
var g$=function(G,b,I,h){sC(G,b,void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,void 0,h)},ZX=function(G,b,I,h,q){sC(G,b,void 0,void 0,void 0,I,h?h:void 0,void 0,void 0,I.adSlotLoggingData,h?h.adLayoutLoggingData:void 0,void 0,q);
I=_.LL().resolve(_.vf(HA))==null?void 0:WA();b=I==null?void 0:I.adsSeenHotConfig;I=I==null?void 0:I.adsHotConfig;(b==null?0:b.logOnAdsSeen)&&(I==null?0:I.webEnablePremiumAdsSeenLogging)&&yGn(G,h?h:void 0,q)},oin=function(G,b,I){sC(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:b})},sC=function(G,b,I,h,q,l,V,D,k,L,x,f,T){T=T===void 0?0:T;
rGb(G.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+b,"slot:",l,"layout:",V,"ping:",D,"Opportunity:",{opportunityType:I,associatedSlotId:h,slotsFromOpportunity:q,triggerBundle:k,adSlotLoggingData:L,adLayoutLoggingData:x});try{var B=function(){G.experimentApiProvider.get();if(b!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){b||_.dQ("Empty PACF event type",l,V);var A=G.eventLoggingSettingsProvider.get();var t;(t=A.alwaysIncludeDebugData)||(A.experimentApiProvider.get(),t=
!1);A=t;t={eventType:b,eventOrder:++G.eventCount};var y={};l&&(y.slotData=oRO(A,l));if(V){var F={type:V.layoutType,controlFlowManagerLayer:tZB.get(V.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};A&&(F.debugData={layoutId:V.layoutId});y.layoutData=F}D&&(y.pingData={pingDispatchStatus:D.dispatchStatus,serializedAdPingMetadata:D.ping.serializedAdPingMetadata,pingIndex:D.index});k&&(y.triggerData=zsr(k.trigger,k.category));I&&(y.opportunityData=ihO(A,I,h,q));t.adClientData=y;L&&(t.serializedSlotAdServingData=
L.serializedSlotAdServingDataEntry);x&&(t.serializedAdServingData=x.serializedAdServingDataEntry);f&&(t.errorInfo=f);_.C1("adsClientStateChange",{adsClientEvent:t})}};
T&&T>0?_.FQ(_.fW(),function(){return B()},T):B()}catch(A){rGb(G.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.FQ(_.fW(),function(){_.dQ(A instanceof Error?A:String(A),l,V,{pacf_message:"exception during pacf logging"})})}},yGn=function(G,b,I){if(b){var h=b.adLayoutLoggingData;
_.FQ(_.fW(),function(){G.premiumAdSeenEventLogger!=null&&h&&_.C1("adsSeenClientLogging",{serializedAdServingDataEntry:h.serializedAdServingDataEntry})},I!=null?I:0)}};var FYn=function(G,b){dpi.call(this,G,b)};
_.M(FYn,dpi);var Hj5=function(){},rGb=function(G,b){return _.U(b)};var aSW=function(){var G=new WYJ;this.JSC$15684_adsControlFlowManager=(new PZJ(G)).JSC$15659_adsControlFlowManager},WYJ=function(){_.FN.call(this);
var G=this;this.experimentApiProvider=new TGJ(function(){return new Hj5});
var b=new TGJ(function(){return new BGW(G.experimentApiProvider)});
this.adEventLogger=new FYn(this.experimentApiProvider,b);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.M(WYJ,_.FN);var NGu=function(){},YIe,FF=function(){YIe||(YIe=new NGu);
return YIe},HV=function(G){if(!G.JSC$15695_externallyManagedSlotAdapterCallback){var b=(new aSW).JSC$15684_adsControlFlowManager;
G.JSC$15695_externallyManagedSlotAdapterCallback=b}return G.JSC$15695_externallyManagedSlotAdapterCallback},CZJ=function(G,b,I){var h=b.opportunityType,q=Error("Mh");
if(h!==void 0){var l=HV(G);UpX(l,h,void 0,I)}else _.dQ(q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});l=[];if(b.adSlotAndLayoutMetadata!==void 0){b=_.e(b.adSlotAndLayoutMetadata);for(var V=b.next();!V.done;V=b.next()){var D=V.value;if(V=D.adSlotMetadata)if(l.push(V),G.onSlotReceivedExternallyManaged(V,I),D.adLayoutMetadata){D=_.e(D.adLayoutMetadata);for(var k=D.next();!k.done;k=D.next())G.onLayoutReceivedExternallyManaged(V,k.value,I)}else I>0&&_.dQ("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
h,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else I>0&&_.dQ("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+h,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else I>0&&_.dQ("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+h,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(h!==void 0)G.onOpportunityProcessedExternallyManaged(h,l,void 0,I);else _.dQ(q,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
NGu.prototype.onSlotReceivedExternallyManaged=function(G,b){G=CM(G);if(G instanceof YU)_.dQ(G,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else HV(this).onSlotReceivedExternallyManaged(G,b)};
NGu.prototype.onLayoutReceivedExternallyManaged=function(G,b,I){G=CM(G);b=ySO(b);if(G instanceof YU)_.dQ(G,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(b instanceof JW)_.dQ(b,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else HV(this).onLayoutReceivedExternallyManaged(G,b,I)};
NGu.prototype.onOpportunityProcessedExternallyManaged=function(G,b,I,h){var q=[];b=_.e(b);for(var l=b.next();!l.done;l=b.next())l=CM(l.value),l instanceof YU?_.dQ(l,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):q.push(l);HV(this).onOpportunityProcessedExternallyManaged(G,q,I,h)};
var JGn=function(G,b){b=CM(b);if(b instanceof YU)_.dQ(b,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var I=HV(G);g$(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);I=_.e(I.adsControlFlowEventListeners);for(var h=I.next();!h.done;h=I.next())h=AA(h.value,b),h.slotLifecycleStage!=="not_scheduled"&&tA(h.slot,h.slotLifecycleStage,"onSlotScheduled"),h.slotLifecycleStage="scheduled";G=HV(G);g$(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);G=_.e(G.adsControlFlowEventListeners);
for(I=G.next();!I.done;I=G.next())I.value.onSlotEntered(b)}},KYn=function(G,b){b=CM(b);
if(b instanceof YU)_.dQ(b,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var I=HV(G);g$(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);I=_.e(I.adsControlFlowEventListeners);for(var h=I.next();!h.done;h=I.next())h.value.onSlotExited(b);G=HV(G);g$(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);G=_.e(G.adsControlFlowEventListeners);for(I=G.next();!I.done;I=G.next())I.value.onSlotUnscheduled(b)}},uRz=function(G,b,I){b=CM(b);
I=ySO(I);if(b instanceof YU)_.dQ(b,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(I instanceof JW)_.dQ(I,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var h=HV(G);ZX(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,I);h=_.e(h.adsControlFlowEventListeners);for(var q=h.next();!q.done;q=h.next())q.value.onLayoutScheduled(b,I);G=HV(G);ZX(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,I);G=_.e(G.adsControlFlowEventListeners);
for(h=G.next();!h.done;h=G.next())AGJ(h.value,b,I)}},WV=function(G,b,I){b=CM(b);
I=ySO(I);if(b instanceof YU)_.dQ(b,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(I instanceof JW)_.dQ(I,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var h=HV(G);ZX(h.adEventLogger,ZhO("normal"),b,I);h=_.e(h.adsControlFlowEventListeners);for(var q=h.next();!q.done;q=h.next())q.value.onLayoutExited(b,I,"normal");G=HV(G);G=_.e(G.adsControlFlowEventListeners);for(h=G.next();!h.done;h=G.next())t3n(h.value,b,I)}};_.aE=_.C(function(G){var b=_.N5(G,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});G=Object.assign({},b);var I=b.data;b=b.customCommandResolver;var h=(delete G.data,delete G.customCommandResolver,G);G=_.L8({visibilityCallback:function(D,k){var L,x=(L=I().interaction)==null?void 0:L.onFirstVisible;D&&(x&&_.Zm(x),h.setOnErrorHandler()&&rSO(k))},
showOption:_.xr});b=_.tW(function(){return I().interaction},b,function(){var D;
return(D=h.listenToTapEvent)==null?void 0:D.call(h)});
var q=_.e(_.ZZ(!1,void 0,"wAC0Lc")),l=q.next().value,V=q.next().value;q=_.Xu(function(D){var k;((k=h.setTouchEndHandler)==null?0:k.call(h))&&!l()&&(D.currentTarget.click(),V(!0),setTimeout(function(){V(!1)},100));
return!1});
return _.v("ad-image-view-model",{class:function(){var D,k=[((D=I().interaction)==null?0:D.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],L;((L=h.isGridViewEnabled)==null?0:L.call(h))&&k.push("ytwAdImageViewModelHostInGridView");return k.join(" ")},
el:_.Wv(G,b),"on:touchend":q},_.v("div",{class:"ytwAdImageViewModelHostImageContainer"},_.v(_.Fu,{data:function(){var D;return{sources:I().imageSources,contentMode:(D=I().imageProperties)==null?void 0:D.contentMode}},
alt:function(){var D,k;return((D=I().interaction)==null?void 0:(k=D.accessibility)==null?void 0:k.label)||""},
targetHeight:h.targetHeight,targetWidth:h.targetWidth,preserveHeight:h.preserveHeight,preserveWidth:h.preserveWidth,useWidth:h.useWidth,style:function(){var D,k;return"vertical-align: bottom;"+(((D=I().background)==null?0:D.color)?"background-color:"+_.Uo((k=I().background)==null?void 0:k.color)+";":"")},
className:function(){return h.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var D,k;return(k=(D=h.setDraggable)==null?void 0:D.call(h))!=null?k:void 0}})))},"lc");var Rn5=_.C(function(G){var b=G.data,I=G.listenToTapEvent,h=function(){};
return _.v("ad-button-hover-overlay-view-model",{"on:click":_.Xu(function(q){if(_.U("enable_web_home_top_landscape_image_layout_legacy_click_command")){var l,V=(l=b().interaction)==null?void 0:l.onTap;V&&_.O3(q.currentTarget,"yt-navigate",{endpoint:_.s0(V)})}}),
class:function(){var q;return((q=b().interaction)==null?0:q.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.Wv(_.L8({visibilityCallback:function(q){var l,V=(l=b().interaction)==null?void 0:l.onFirstVisible;q&&V&&_.Zm(V)},
showOption:_.xr}),_.tW(function(){return b().interaction},void 0,function(){return!_.U("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(I==null?void 0:I())}))},function(){return _.U("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.v(_.VX,{data:function(){return b().button}},{adButtonViewModel:function(q){return _.v(_.TC,{data:q.data,
customCommandResolver:h})}}):_.v(_.VX,{data:function(){return b().button}},{adButtonViewModel:_.TC})}())},"mc");var KM;_.JN(_.C(function(G){var b=G.data;G=_.L8({visibilityCallback:function(D,k){if(D){var L;(D=(L=b().interaction)==null?void 0:L.onFirstVisible)&&_.Zm(D);var x;if(L=(x=b().adLayoutData)==null?void 0:x.activeViewData)uA(k,L),_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&RZ(k)})}else _.U("stop_av_measurement_on_detach")&&RZ(k)},
showOption:_.xr,hideOption:fo});var I=_.tW(function(){return b().interaction},void 0,function(){return!0}),h=_.e(_.ZZ(!1,void 0,"VNDDT")),q=h.next().value,l=h.next().value;
h=_.Xu(function(){l(!0)});
var V=_.Xu(function(){l(!1)});
return _.v("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.Wv(G,CV2,I),"on:mouseenter":h,"on:mouseleave":V},_.v("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Ir({"max-width":function(){return _.U("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.v("div",{class:function(){var D;
a:{var k;switch((D=_.g(b().thumbnailImage,KMu))==null?void 0:(k=D.imageProperties)==null?void 0:k.renderingAspect){case "RENDERING_ASPECT_SQUARE":D="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":D="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}D=void 0}return D}},_.v(_.VX,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(D){return _.v(_.aE,
{data:D.data,
listenToTapEvent:!0,setTouchEndHandler:_.U("enable_top_landscape_image_experiment_dom_id_web")})}})),_.v("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.v(_.Q,{cond:function(){var D,k,L;
return(D=_.g(b().thumbnailImage,KMu))==null?void 0:(k=D.imageProperties)==null?void 0:(L=k.overlayIcon)==null?void 0:L.iconImage},
then:function(D){return _.v(_.Fu,{data:D,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.v("div",{class:function(){return q()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.v(_.VX,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(D){return _.v(Rn5,
{data:D.data,
listenToTapEvent:!0})}}))),_.v("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.v(_.VX,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(D){return _.v(Zb,{data:D.data,
listenToTapEvent:!0,setTouchEndHandler:_.U("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;G=_.L8({visibilityCallback:function(D,k){if(D){var L;(D=(L=b().interaction)==null?void 0:L.onFirstVisible)&&_.Zm(D);var x;if(L=(x=b().adLayoutData)==null?void 0:x.activeViewData)uA(k,L),_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&RZ(k)})}else _.U("stop_av_measurement_on_detach")&&RZ(k)},
showOption:_.xr,hideOption:fo});var I=_.m2(_.sd),h=_.tW(function(){return b().interaction}),q={},l={},V={};
return _.v("square-image-layout-view-model",{class:_.pG("ytwSquareImageLayoutViewModelHost",(q.ytwSquareImageLayoutViewModelHostColumn=I,q)),el:_.Wv(G,KyX,h)},_.v("div",{class:_.pG("ytwSquareImageLayoutViewModelHostImage",(l.ytwSquareImageLayoutViewModelHostColumnImage=I,l))},function(){return _.v(_.VX,{data:function(){return b().adImage}},{adImageViewModel:function(D){return _.v(_.aE,{data:D.data,
isGridViewEnabled:I,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.v("div",{class:_.pG("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(V.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=I,V))},_.v(_.VX,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:Zb}),function(){return _.v(_.VX,{data:function(){return b().adButton}},{adButtonViewModel:function(D){var k={};
return _.v(_.TC,{data:D.data,className:_.pG((k.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,k.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=I,k))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;var I=G.noBottomMargin;var h=G.typographyBump;G=_.L8({visibilityCallback:function(f,T){if(f){var B;(f=(B=b().interaction)==null?void 0:B.onFirstVisible)&&_.Zm(f);var A;if(B=(A=b().adLayoutData)==null?void 0:A.activeViewData)uA(T,B),_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&RZ(T)})}else _.U("stop_av_measurement_on_detach")&&RZ(T)},
showOption:_.xr,hideOption:fo});var q=_.tW(function(){return b().interaction},void 0,function(){return _.U("enable_web_home_top_landscape_image_layout_level_click")}),l=function(){return b().interaction};
l!==void 0&&l!==null||_.bB(Error("Nh"));var V=function(){var f,T,B;return(f=_.g(b().thumbnailImage,KMu))==null?void 0:(T=f.background)==null?void 0:(B=T.backgroundImageSource)==null?void 0:B.imageSources};
l=_.e(_.ZZ(!1,void 0,"NFjwje"));var D=l.next().value,k=l.next().value;l=_.Xu(function(){k(!0)});
var L=_.Xu(function(){k(!1)}),x=function(){return D()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.v("top-landscape-image-layout-view-model",{class:function(){var f;return((f=b().interaction)==null?0:f.onTap)&&_.U("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.Wv(G,ukO,q),"on:mouseenter":l,"on:mouseleave":L},_.v("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.v(_.Q,{cond:function(){return V()&&V().length>0},
then:function(){return _.v("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Ir({top:"0","background-image":function(){return"url("+String(V()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.v(_.Q,{cond:function(){return!!b().adButtonHoverOverlay},
then:function(){return _.v("div",{class:x},_.v(_.VX,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Rn5}))}}),_.v("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.v(_.VX,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(f){return _.v(_.aE,{data:f.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.U("enable_web_home_top_landscape_image_layout_level_click")})}})),_.v("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.v(_.Fu,{data:{sources:[{clientResource:{imageName:_.U("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.v("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.v(_.VX,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(f){return _.v(Zb,{data:f.data,
noBottomMargin:function(){return I==null?void 0:I()},
listenToTapEvent:function(){return _.U("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return h==null?void 0:h()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.hV,
noBottomMargin:_.hV,typographyBump:_.hV}});var niQ=_.C(function(G){var b=G.data,I=_.L8({visibilityCallback:function(q){var l,V=(l=b().interaction)==null?void 0:l.onFirstVisible;q&&V&&_.Zm(V)},
showOption:_.xr});G=_.tW(function(){return b().interaction},G.customCommandResolver);
var h={};return _.v("ad-text-image-view-model",{class:_.pG("ytwAdTextImageViewModelHost",(h.ytwAdTextImageViewModelHostDarkBackground=function(){return b().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},h)),
el:_.Wv(I,G),"aria-label":function(){var q,l;return(q=b().interaction)==null?void 0:(l=q.accessibility)==null?void 0:l.label}},_.v("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.v(_.IS,{text:function(){return b().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.v(_.Q,{cond:function(){return b().overlayIcon},
then:function(q){return _.v("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.v(_.Fu,{data:q,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var Oj5=_.C(function(G){var b=G.data;return _.v("feed-ad-sitelink-view-model",{class:function(){var I;return((I=b().interaction)==null?0:I.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.Wv(_.tW(function(){return b().interaction},G.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var I,h;return(I=b().interaction)==null?void 0:(h=I.accessibility)==null?void 0:h.label},
role:"link",tabindex:0},_.v(_.IS,{text:function(){return b().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var wJn=_.C(function(G){var b=G.data;G={};return _.v("feed-ad-sitelinks-carousel-view-model",{el:_.Wv(_.L8({visibilityCallback:function(I){var h,q=(h=b().interaction)==null?void 0:h.onFirstVisible;I&&q&&_.Zm(q)},
showOption:_.xr})),class:_.pG("ytwFeedAdSitelinksCarouselViewModelHost",(G.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return b().style==="FEED_AD_SITELINKS_STYLE_NONE"},G))},_.v(_.VX,{data:function(){return b().sitelinks}},{feedAdSitelinkViewModel:Oj5}))},"sc");_.JN(_.C(function(G){var b=G.data;G=_.L8({visibilityCallback:function(V,D){if(V){var k;(V=(k=b().interaction)==null?void 0:k.onFirstVisible)&&_.Zm(V);var L;(k=(L=b().adLayoutData)==null?void 0:L.activeViewData)&&uA(D,k)}},
showOption:_.xr});var I=_.e(_.ZZ(!1,void 0,"BzPhl")),h=I.next().value,q=I.next().value;I=_.Xu(function(){q(!0)});
var l=_.Xu(function(){q(!1)});
return _.v("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.Wv(G),"on:mouseenter":I,"on:mouseleave":l},_.v("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.v("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.v(_.VX,{data:function(){return b().textImage}},{adTextImageViewModel:niQ})),_.v("div",{class:function(){return h()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.v(_.VX,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(V){return _.v(Rn5,{data:V.data,
listenToTapEvent:!0})}}))),_.v("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.v(_.VX,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(V){return _.v(Zb,{data:V.data,
listenToTapEvent:!0})}}),_.v(_.VX,{data:function(){return b().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:wJn})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;var I=G.typographyBump;return _.v("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.Wv(_.L8({visibilityCallback:function(h,q){if(h){var l;(h=(l=b().interaction)==null?void 0:l.onFirstVisible)&&_.Zm(h);var V;(l=(V=b().adLayoutData)==null?void 0:V.activeViewData)&&uA(q,l)}},
showOption:_.xr,hideOption:fo}))},_.v("div",null,_.v(_.VX,{data:function(){return b().videoLockup}},{lockupViewModel:function(h){return _.v(_.tE,{data:h.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:_.hV,
noBottomMargin:_.hV,typographyBump:_.hV}});_.JN(_.C(function(G){var b=G.data;var I=G.className;var h=G.typographyBump;return _.v("video-display-compact-button-group-layout-view-model",{el:_.Wv(_.L8({visibilityCallback:function(q,l){if(q){var V;(q=(V=b().interaction)==null?void 0:V.onFirstVisible)&&_.Zm(q);var D;(V=(D=b().adLayoutData)==null?void 0:D.activeViewData)&&uA(l,V)}},
showOption:_.xr})),class:_.pG("videoDisplayCompactButtonGroupLayoutViewModelHost",I)},_.v(_.VX,{data:function(){return b().videoLockup}},{lockupViewModel:function(q){return _.v(_.tE,{data:q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:h})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.hV,
className:_.hV,typographyBump:_.hV}});_.JN(_.C(function(G){var b=G.data;var I=G.className;var h=G.typographyBump;return _.v("video-display-compact-buttoned-layout-view-model",{el:_.Wv(_.L8({visibilityCallback:function(q,l){if(q){var V;(q=(V=b().interaction)==null?void 0:V.onFirstVisible)&&_.Zm(q);var D;(V=(D=b().adLayoutData)==null?void 0:D.activeViewData)&&uA(l,V)}},
showOption:_.xr})),class:_.pG("videoDisplayCompactButtonedLayoutViewModelHost",I)},_.v(_.VX,{data:function(){return b().videoLockup}},{lockupViewModel:function(q){return _.v(_.tE,{data:q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:h})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.hV,
className:_.hV,typographyBump:_.hV}});_.JN(_.C(function(G){var b=G.data;var I=G.className;var h=G.typographyBump;var q=function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},l=_.m2(_.sd);
G=_.L8({visibilityCallback:function(L,x){if(L){var f=b();L=f.adLayoutData;var T;(f=(T=f.interaction)==null?void 0:T.onFirstVisible)&&_.Zm(f);(T=L==null?void 0:L.activeViewData)&&uA(x,T)}},
showOption:_.xr});var V=_.P$(function(){return{containerType:q()&&l()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:q()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),D=_.P$(function(){return q()&&l()?"":q()?"168px":"50%"},void 0,"Om6kNe"),k=_.P$(function(){return q()&&l()?9999:void 0},void 0,"S71lKd");
return _.v("video-display-compact-layout-view-model",{el:_.Wv(G),class:_.pG("videoDisplayCompactLayoutViewModelHost",I)},_.v(_.VX,{data:function(){return b().videoLockup}},{lockupViewModel:function(L){return _.v(_.tE,{data:L.data,
containerLayoutConfig:V,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:D,thumbnailTargetWidth:k,typographyBump:h})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.hV,
className:_.hV,typographyBump:_.hV}});_.JN(_.C(function(G){var b=G.data;var I=G.typographyBump;return _.v("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.Wv(_.L8({visibilityCallback:function(h,q){if(h){var l;(h=(l=b().interaction)==null?void 0:l.onFirstVisible)&&_.Zm(h);var V;(l=(V=b().adLayoutData)==null?void 0:V.activeViewData)&&uA(q,l)}},
showOption:_.xr,hideOption:fo}))},_.v("div",null,_.v(_.VX,{data:function(){return b().videoLockup}},{lockupViewModel:function(h){return _.v(_.tE,{data:h.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:I})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.hV,
noBottomMargin:_.hV,typographyBump:_.hV}});_.EiX=_.C(function(G){var b=G.data;G=_.ee("ad-card-badge-view-model");return _.v("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:G},_.v(_.Q,{cond:function(){return b().imageBadge},
then:function(I){return _.v(_.Fu,{data:I,alt:""})}}))},"zc");var pJA=_.C(function(G){var b=G.data;var I=G.customCommandResolver;return _.v("carousel-ad-card-image-view-model",{class:function(){var h;return((h=b().interaction)==null?0:h.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.Wv(_.L8({visibilityCallback:function(h){var q,l=(q=b().interaction)==null?void 0:q.onFirstVisible;h&&l&&_.Zm(l)},
showOption:_.xr}),_.tW(function(){return b().interaction},I)),
"aria-label":function(){var h,q;return(h=b().interaction)==null?void 0:(q=h.accessibility)==null?void 0:q.label}},_.v(_.VX,{data:function(){return b().adImage}},{adImageViewModel:function(h){return _.v(_.aE,{data:h.data,
customCommandResolver:I})}}),_.v("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.v(_.VX,{data:function(){return b().badge}},{adCardBadgeViewModel:_.EiX})),_.v(_.Qy,{model:{color:4}}))},"Ac");var SIX=_.C(function(G){var b=_.e(_.ZZ(0,void 0,"JJ0QQc")),I=b.next().value;b.next();var h=b.next().value,q=_.e(_.ZZ(!1,void 0,"f6YICe"));b=q.next().value;var l=q.next().value,V;_.uI(function(){clearTimeout(V)});
q=_.Xu(function(){var L;((L=G.animate)==null?0:L.call(G))?(l(!0),V=setTimeout(function(){l(!1);D()},200)):D();
return!1});
var D=function(){h(function(L){return(L+G.numShownItems())%G.data().length})},k={};
return _.v("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.v("div",{class:_.pG("ytwHorizontalCarouselCarouselWrapper")},_.v("div",{class:_.pG("ytwHorizontalCarouselCarouselInnerWrapper",(k.ytwHorizontalCarouselAnimating=b,k))},_.v(_.aj,{each:G.data,keyBy:"INDEX"},function(L,x){return _.v("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Ir({"flex-basis":function(){return"calc((100% - (8px * "+(G.numShownItems()-1)+")) / "+G.numShownItems()+")"},
order:function(){var f=x-I();f<0&&(f+=G.data().length);return f}})},G.children(L,x))}))),_.v("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":q},G.nextButton()))},"Bc");var XJ5=_.C(function(G){var b=G.data;var I=G.customCommandResolver;var h=G.expansive;return _.v("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.Wv(_.L8({visibilityCallback:function(q){var l,V=(l=b().interaction)==null?void 0:l.onFirstVisible;q&&V&&_.Zm(V)},
showOption:_.xr}))},_.v(SIX,{data:function(){var q;return((q=b())==null?void 0:q.carouselAdCards)||[]},
nextButton:function(){return _.v(_.VX,{data:function(){return b().nextButton}},{buttonViewModel:function(q){var l=q.data;
return _.v(_.sQ,{data:function(){return(h==null?0:h())?Object.assign({},l(),{style:"mono"}):l()},
className:_.U("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(q){return _.v(_.VX,{data:q},{carouselAdCardImageViewModel:function(l){return _.v(pJA,{data:l.data,customCommandResolver:I})}})}))},"Cc");var $kA=_.C(function(G){var b=G.data;var I=G.customCommandResolver;var h=G.className;var q=G.buttonClassName;var l=G.animationEntityKey;var V=G.expansive;return _.v("carousel-button-view-model",{class:_.pG("ytwCarouselButtonViewModelHost",h)},_.v(_.VX,{data:function(){return b().carousel}},{carouselAdCardCollectionViewModel:function(D){return _.v(XJ5,{data:D.data,
customCommandResolver:I,expansive:V})}}),_.v(_.VX,{data:function(){return b().button}},{adButtonViewModel:function(D){var k=D.data;
return _.v(_.TC,{data:function(){return(V==null?0:V())?Object.assign({},k(),{style:"AD_BUTTON_STYLE_TONAL"}):k()},
className:q,customCommandResolver:I,animationEntityKey:l})}}))},"Dc");_.GGn=_.C(function(G){var b=G.data;G=G.className;var I=_.ee("pivot-button-view-model");_.K3(function(){var h;((h=b())==null?0:h.backgroundColor)&&I.value.setAttribute("data-background-color",String(b().backgroundColor))});
return _.v("pivot-button-view-model",{el:I,class:_.pG("ytwPivotButtonViewModelHost",G)},_.v(_.LP,{command:function(){var h=b();h=h.onClickCommand?_.s0(h.onClickCommand):h.contentDescription?_.um(h.contentDescription):void 0;return h},
ariaLabel:function(){return b().contentDescription}},_.v(_.Q,{cond:function(){return b().thumbnail},
then:function(h){return _.v(_.Fu,{data:h,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.v(_.Q,{cond:function(){return b().icon},
then:function(h){return _.v(_.ha,{icon:function(){return h().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.bui=_.C(function(G){var b=G.data;var I=G.buttonShapeOverrideables;return _.v("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.v(_.VX,{data:function(){return b().buttonViewModels}},{buttonViewModel:function(h){return _.v(_.sQ,{data:h.data,
buttonOverrides:I})},
likeButtonViewModel:function(h){return _.v(_.SJ,{data:h.data,buttonShapeOverrideables:I})},
dislikeButtonViewModel:function(h){return _.v(_.p9,{data:h.data,buttonShapeOverrideables:I})},
toggleButtonViewModel:function(h){return _.v(_.YK,{data:h.data,buttonShapeOverrides:I})}}))},"Fc");var Ikb=_.C(function(G){var b=G.avatar;var I=G.headline;var h=G.badge;var q=G.description;var l=G.expansive;G={};return _.v("yt-ad-metadata-shape",{class:_.pG("ytAdMetadataShapeHost",(G.ytAdMetadataShapeHostLarge=l,G))},_.v("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.v(_.Q,{cond:b,then:function(V){return _.v(_.wGe,{data:function(){return(l==null?0:l())?Object.assign({},V(),{size:"AD_AVATAR_SIZE_M"}):V()}})}}),_.v("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.v(_.IS,{text:I,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.v(_.Q,{cond:h,then:function(V){return _.v(_.AE,{data:function(){return(l==null?0:l())?Object.assign({},V(),{style:"AD_BADGE_STYLE_STARK"}):V()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.v("h2",{class:"ytAdMetadataShapeHostDescription"},_.v(_.IS,{text:q,
linkInheritColor:!0,isHeadline:function(){return l==null?void 0:l()}})))},"Gc");var h_n=_.C(function(G){var b=G.data;var I=G.onShow;var h=G.expansive;G=_.tW(function(){return b().interaction});
_.K3(function(){var l,V=(l=b().animatedRenderingConfig)==null?void 0:l.delayedSecondsToVisible;if(V){var D=setTimeout(I,V*1E3);_.uI(function(){clearTimeout(D)})}});
var q={};return _.v("reels-ad-card-buttoned-view-model",{class:_.pG(function(){var l;return((l=b().interaction)==null?0:l.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(q.ytwReelsAdCardButtonedViewModelHostExpansive=h,q)),
el:_.Wv(G)},_.v(Ikb,{avatar:function(){return _.g(b().avatar,YaB)},
headline:function(){return b().headline},
badge:function(){return _.g(b().adBadge,COi)},
description:function(){return b().description},
expansive:h}),_.v(_.VX,{data:function(){return b().ctaButton}},{adButtonViewModel:function(l){var V=l.data;
return _.v(_.TC,{data:function(){return(h==null?0:h())?Object.assign({},V(),{style:"AD_BUTTON_STYLE_FILLED"}):V()}})}}))},"Hc");var qDO=_.C(function(G){var b=G.data;G=G.expansive;var I=_.U("web_ad_metadata_clickable")?_.tW(function(){return b().interaction},void 0,function(){return _.U("web_ad_metadata_clickable")}):void 0,h={};
h=_.xU("ytwReelsAdMetadataViewModelHost",(h.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.U("web_ad_metadata_clickable"),h));return _.v("reels-ad-metadata-view-model",{class:h,el:_.Wv(I)},_.v(Ikb,{avatar:function(){return _.g(b().avatar,YaB)},
headline:function(){return b().headline},
badge:function(){return _.g(b().adBadge,COi)},
description:function(){return b().description},
expansive:G}))},"Ic");var jc5={iconPosition:"icon-with-label",size:"L"},lkb=_.C(function(G){var b=G.data;var I=G.overlayDensity;var h=G.extractOverlay;var q=G.extractActionBar;G=_.ee("reels-player-overlay-layout-view-model");var l=_.a9(I,0),V=function(){var B;return(B=b().reelsAdCardButtonedEntityKey)!=null?B:""},D=function(){return V()+"/ad_button"},k=_.lA(UnO,V),L=function(){var B,A;
return(A=(B=k())==null?void 0:B.value)!=null?A:!1},x=_.m2(Rss),f=function(){var B;
return Object.assign({},jc5,(x()||!((B=q==null?void 0:q())!=null&&B))&&{style:"overlay-dark"})};
I={};var T={};return _.v("reels-player-overlay-layout-view-model",{class:_.pG("ytwReelsPlayerOverlayLayoutViewModelHost",(I.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!b().extension},I.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},I.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return l()===1&&!(h==null?0:h())},I.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var B;
return(B=h==null?void 0:h())!=null?B:!1},I.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var B;
return(B=q==null?void 0:q())!=null?B:!1},I)),
"overlay-density":function(){return String(l())},
el:G},_.v("div",{class:_.pG("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(T.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},T))},_.v("div",{"aria-hidden":function(){return L()},
class:_.pG("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return L()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Ir({"transition-duration":function(){return ERp(b())}})},_.v(_.VX,{data:function(){return b().adMetadata}},{reelsAdMetadataViewModel:function(B){return _.v(qDO,{data:B.data,
expansive:function(){return l()===1}})}}),_.v(_.Q,{cond:function(){return b().extension},
then:function(B){return _.v("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.v(_.VX,{data:B},{adButtonViewModel:function(A){return _.v(_.TC,{data:A.data,animationEntityKey:D,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(A){return _.v($kA,{data:A.data,animationEntityKey:D,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return l()===1}})}}))}})),_.v("div",{"aria-hidden":function(){return!L()},
class:_.pG("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return L()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Ir({"transition-duration":function(){return ERp(b())}})},_.v(_.VX,{data:function(){return b().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(B){return _.v(h_n,{data:B.data,
onShow:function(){_.W5(_.Da("booleanEntity",V(),{key:V(),value:!0}))},
expansive:function(){return l()===1}})}}))),_.v("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.v(_.VX,{data:function(){return b().actions}},{reelActionBarViewModel:function(B){return _.v(_.bui,{data:B.data,
buttonShapeOverrideables:f})}}),_.v(_.VX,{data:function(){return b().menu}},{buttonViewModel:function(B){return _.v(_.sQ,{data:B.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},f(),{type:"tonal"})}})}}),_.v(_.VX,{data:function(){return b().pivotButton}},{pivotButtonViewModel:function(B){return _.v(_.GGn,{data:B.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.JN(lkb,"reels-player-overlay-layout-view-model",{props:{data:_.hV,overlayDensity:_.hV,extractOverlay:_.hV,extractActionBar:_.hV}});var NV=function(){var G=_.a.apply(this,arguments)||this;G.noBottomMargin=!1;G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;return G};
_.M(NV,_.a);_.m=NV.prototype;
_.m.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:_.U("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]]"}}}}}};
_.m.ready=function(){var G=this;jhB(function(){G.isAttached&&aZ(G.JSC$15741_storedAdSlotMetadata,G.JSC$15741_storedAdLayoutMetadata,G.adSlotMetadata,G.adLayoutMetadata)&&WV(FF(),G.JSC$15741_storedAdSlotMetadata,G.JSC$15741_storedAdLayoutMetadata)})};
_.m.attached=function(){aZ(this.JSC$15741_storedAdSlotMetadata,this.JSC$15741_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&uRz(FF(),this.JSC$15741_storedAdSlotMetadata,this.JSC$15741_storedAdLayoutMetadata)};
_.m.detached=function(){aZ(this.JSC$15741_storedAdSlotMetadata,this.JSC$15741_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&WV(FF(),this.JSC$15741_storedAdSlotMetadata,this.JSC$15741_storedAdLayoutMetadata)};
_.m.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.m.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15741_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15741_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15741_storedAdLayoutMetadata!==void 0&&this.JSC$15741_storedAdSlotMetadata!==void 0&&WV(FF(),this.JSC$15741_storedAdSlotMetadata,this.JSC$15741_storedAdLayoutMetadata),uRz(FF(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15741_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15741_storedAdSlotMetadata=this.adSlotMetadata)};
_.kV.Object.defineProperties(NV.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.adLayoutMetadata}}});
NV.prototype.onAdMetadataChanged=NV.prototype.onAdMetadataChanged;NV.prototype.onTypographyBumpChanged=NV.prototype.onTypographyBumpChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],NV.prototype,"rendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],NV.prototype,"ytComponentBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],NV.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],NV.prototype,"noBottomMargin",void 0);_.R([_.H(),_.n("design:type",Object)],NV.prototype,"overlayDensity",void 0);_.R([_.H(),_.n("design:type",Object)],NV.prototype,"extractOverlay",void 0);_.R([_.H(),_.n("design:type",Object)],NV.prototype,"extractActionBar",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],NV.prototype,"typographyBump",void 0);
_.R([_.P("data.adLayoutMetadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],NV.prototype,"adLayoutMetadata",null);_.R([_.H(),_.n("design:type",Object)],NV.prototype,"adSlotMetadata",void 0);_.R([_.lH("ytd-video-display-full-buttoned-and-button-group-renderer"),_.n("design:type",HTMLElement)],NV.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.R([_.q5("typographyBump"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NV.prototype,"onTypographyBumpChanged",null);_.R([_.q5("adLayoutMetadata","adSlotMetadata"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NV.prototype,"onAdMetadataChanged",null);_.R([_.N({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],NV);
_.J(NV,"ytd-in-feed-ad-layout-renderer",function(){if(O2Q!==void 0)return O2Q;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return O2Q=G},
{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var mkJ;var e_u;_.JN(_.AE,"ad-badge-view-model",{props:{data:_.hV,hasDot:_.hV,customCommandResolver:_.No,adRenderingContextType:_.No,usedInMasthead:_.No}});_.JN(_.TC,"ad-button-view-model",{props:{data:_.hV,customCommandResolver:_.No,className:_.No,delayedClassName:_.No,animationEntityKey:_.No,isCompactWidth:_.No,isContentWidth:_.No}});var YX=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return G};
_.M(YX,_.a);_.m=YX.prototype;_.m.computeHasLiveDescription=function(G){return!(G==null||!G.liveDescription)};
_.m.computeHasByline=function(G){return!(G==null||!G.byline)};
_.m.computeUsesAdButtonViewModel=function(G){return!!_.g(G==null?void 0:G.cta,Jun)};
_.m.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"}}}}}};
_.m.onYtToggleButton=function(G){var b,I=(b=this.data)==null?void 0:b.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.Da("upcomingEventReminderStateEntity",I,{key:I,state:G.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.m.attached=function(){this.updateChannelBanner()};
_.m.dataChanged=function(){this.updateChannelBanner()};
_.m.videoReminderStateChanged=function(){var G;this.videoReminderState&&_.g((G=this.data)==null?void 0:G.cta,_.Ia)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.m.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var G=_.KG(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);G&&(G.startsWith("//")&&(G="https:"+G),this.hostElement.classList.add("channel-banner"),_.G8(this.hostElement,{"--ytvmh-channel-banner":"url("+G+")"}))}else _.U("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.m.onPlayerReady=function(){this.onIronResize()};
_.m.maybeFlushDebouncer=function(){_.U("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(G){var b;G=(b=G.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0];ZSq(G==null?void 0:G.polymerController)})};
_.m.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var G=_.Eo(this.hostElement).querySelector("#live-description"),b;G&&((b=this.data)==null?0:b.shortLiveDescription)&&G.clientWidth<G.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
YX.prototype.onIronResize=YX.prototype.onIronResize;YX.prototype.videoReminderStateChanged=YX.prototype.videoReminderStateChanged;YX.prototype.dataChanged=YX.prototype.dataChanged;YX.prototype.onYtToggleButton=YX.prototype.onYtToggleButton;_.R([_.z(_.Y6),_.n("design:type",Object)],YX.prototype,"ironResizableBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],YX.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],YX.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],YX.prototype,"data",void 0);_.R([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:qtq}),_.n("design:type",Object)],YX.prototype,"videoReminderState",void 0);
_.R([_.H({reflectToAttribute:!0,value:_.U("web_modern_buttons")}),_.n("design:type",Boolean)],YX.prototype,"rounded",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.n("design:type",Boolean)],YX.prototype,"hasLiveDescription",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.n("design:type",Boolean)],YX.prototype,"hasByline",void 0);
_.R([_.H({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.n("design:type",String)],YX.prototype,"adRenderingContextType",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],YX.prototype,"isMasthead",void 0);_.R([_.H({computed:"computeUsesAdButtonViewModel(data)"}),_.n("design:type",Boolean)],YX.prototype,"usesAdButtonViewModel",void 0);
_.R([_.H({reflectToAttribute:!0,value:_.U("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.n("design:type",Boolean)],YX.prototype,"resizableAdBannerSafariFix",void 0);_.R([_.mN("yt-formatted-string"),_.n("design:type",Array)],YX.prototype,"formattedStrings",void 0);_.R([_.lH("#cta-button"),_.n("design:type",HTMLElement)],YX.prototype,"ctaButton",void 0);
_.R([_.hI("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],YX.prototype,"onYtToggleButton",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YX.prototype,"dataChanged",null);_.R([_.q5("videoReminderState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YX.prototype,"videoReminderStateChanged",null);
_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YX.prototype,"onIronResize",null);_.R([_.N({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],YX);
_.J(YX,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(e_u!==void 0)return e_u;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return e_u=G},{mode:1});var VzO;var C$=function(){var G=_.a.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};
_.M(C$,_.a);_.m=C$.prototype;_.m.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.m.onExpandedChanged=function(){this.expanded&&_.E3(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.m.onMouseOver=function(){this.maybeExpand()};
_.m.onTap=function(){this.maybeExpand()};
_.m.onExpandableTileExpanding=function(G){G!==this&&(this.expanded=!1)};
_.m.onExpandableTileLockAndCollapse=function(G){this.isLocked=!0;G!==this&&(this.expanded=!1)};
_.m.onExpandableTileUnlock=function(){this.isLocked=!1};
C$.prototype.onTap=C$.prototype.onTap;C$.prototype.onMouseOver=C$.prototype.onMouseOver;C$.prototype.onExpandedChanged=C$.prototype.onExpandedChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],C$.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],C$.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],C$.prototype,"expanded",void 0);_.R([_.Dd("expanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],C$.prototype,"onExpandedChanged",null);_.R([_.hI("mouseover"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],C$.prototype,"onMouseOver",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],C$.prototype,"onTap",null);
_.R([_.N({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],C$);
_.J(C$,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(VzO!==void 0)return VzO;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VzO=G},{mode:1});var DkX;var JA=function(){var G=_.a.apply(this,arguments)||this;G.buttonOverrides={style:"overlay"};G.useYtdPlayer=_.U("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$15755_playerManager=null;G.JSC$15755_mastheadCounter=new eju;return G};
_.M(JA,_.a);_.m=JA.prototype;_.m.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"}}}};
_.m.created=function(){this.JSC$15755_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15755_playerManager=new rZ)};
_.m.ready=function(){var G=this;this.JSC$15755_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var b=_.Eo(this.hostElement).querySelector("#player");this.useYtdPlayer?b.style.display="none":(this.ytdPlayer.style.display="none",GEb(this.JSC$15755_playerManager,b,function(){G.onPlaybackEnded()}),_.Eo(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var I;
((I=G.data)==null?0:I.navigationEndpoint)&&_.O3(G.hostElement,"yt-navigate",{endpoint:G.data.navigationEndpoint})}))};
_.m.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15755_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.m.attached=function(){var G=this;_.iH(function(){G.maybePlayVideo()})};
_.m.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$15755_playerManager.playVideo(),this.getPlayerPromise().then(function(){G.JSC$15755_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.m.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15755_playerManager.stopVideo()};
_.m.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var G,b={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(b);this.setupYtdPlayer()}else ITQ(this.JSC$15755_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(blX(this.JSC$15755_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.m.getPlayerPromise=function(){return this.JSC$15755_playerManager.getPlayerPromise()};
_.m.onYtToggleButton=function(G){this.useYtdPlayer?this.toggleMute(G.detail.toggled):G.detail.toggled?this.JSC$15755_playerManager.mute():this.JSC$15755_playerManager.unMute()};
_.m.onYtNavigate=function(G){var b=e9O(G.detail.endpoint),I=VCa(this.data.clickthroughReportingData);b&&I&&(G.detail.endpoint.watchEndpoint?G.detail.tempData=I:_.Cv(b,I,30))};
_.m.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.m.onExpandedChanged=function(){this.expanded?(_.E3(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.m.onMouseOver=function(){this.maybeExpand()};
_.m.onTap=function(){this.maybeExpand()};
_.m.onExpandableTileExpanding=function(G){G!==this&&(this.stopVideo(),this.expanded=!1)};
_.m.onExpandableTileLockAndCollapse=function(G){G!==this&&(this.isLocked=!0,this.expanded=!1)};
_.m.onExpandableTileUnlock=function(){this.isLocked=!1};
_.m.lockAndCollapseExpandableTiles=function(){_.wL(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.m.unlockExpandableTiles=function(){_.wL(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.m.setupYtdPlayer=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return I.yield(G.ytdPlayer.getPlayerPromise(),2);b=I.yieldResult;b.addEventListener("onStateChange",function(h){G.onPlayerStateChange(h)});
b.addEventListener("onCueRangeExit",function(h){G.onCueRangeExit(h)});
_.ip(I)})};
_.m.onPlayerStateChange=function(G){if(G===1&&(G=this.ytdPlayer.getPlayer())){var b=G.getCurrentTime(),I,h,q=b+((h=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?h:0)/1E3;G.addCueRange("playback",b,q);this.JSC$15755_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.m.onCueRangeExit=function(G){G==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.m.toggleMute=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(b.ytdPlayer.getPlayerPromise(),2);I=h.yieldResult;G?I.mute():I.unMute();_.ip(h)})};
JA.prototype.onTap=JA.prototype.onTap;JA.prototype.onMouseOver=JA.prototype.onMouseOver;JA.prototype.onExpandedChanged=JA.prototype.onExpandedChanged;JA.prototype.onYtNavigate=JA.prototype.onYtNavigate;JA.prototype.onYtToggleButton=JA.prototype.onYtToggleButton;JA.prototype.dataChanged=JA.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],JA.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],JA.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],JA.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],JA.prototype,"expanded",void 0);_.R([_.H(),_.n("design:type",Object)],JA.prototype,"buttonOverrides",void 0);
_.R([_.H(),_.n("design:type",Object)],JA.prototype,"useYtdPlayer",void 0);_.R([_.lH("#ytd-player"),_.n("design:type",Object)],JA.prototype,"ytdPlayer",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JA.prototype,"dataChanged",null);_.R([_.hI("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],JA.prototype,"onYtToggleButton",null);
_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],JA.prototype,"onYtNavigate",null);_.R([_.Dd("expanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JA.prototype,"onExpandedChanged",null);_.R([_.hI("mouseover"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JA.prototype,"onMouseOver",null);
_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JA.prototype,"onTap",null);_.R([_.N({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],JA);
_.J(JA,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(DkX!==void 0)return DkX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return DkX=G},{mode:1});var cqn;var K$=function(){return _.a.apply(this,arguments)||this};
_.M(K$,_.a);K$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
K$.prototype.onShow=function(){var G=_.Eo(this.hostElement).querySelector("#live-description"),b;G&&((b=this.data)==null?0:b.shortLiveDescription)&&G.clientWidth<G.scrollWidth&&this.hostElement.classList.add("short-live-description")};
K$.prototype.onYtToggleButton=function(G){var b,I=(b=this.data)==null?void 0:b.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.Da("upcomingEventReminderStateEntity",I,{key:I,state:G.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
K$.prototype.videoReminderStateChanged=function(){var G;this.videoReminderState&&_.g((G=this.data)==null?void 0:G.cta,_.Ia)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
K$.prototype.videoReminderStateChanged=K$.prototype.videoReminderStateChanged;K$.prototype.onYtToggleButton=K$.prototype.onYtToggleButton;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],K$.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],K$.prototype,"data",void 0);
_.R([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:qtq}),_.n("design:type",Object)],K$.prototype,"videoReminderState",void 0);_.R([_.hI("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],K$.prototype,"onYtToggleButton",null);_.R([_.q5("videoReminderState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],K$.prototype,"videoReminderStateChanged",null);
_.R([_.N({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],K$);
_.J(K$,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(cqn!==void 0)return cqn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return cqn=G},{mode:_.nn("kevlar_poly_si_batch_j065")?1:2});var kGJ;var uj=function(){var G=_.a.apply(this,arguments)||this;G.useYtdPlayer=_.U("use_ytd_player_for_desktop_masthead");G.buttonOverrides={style:"overlay"};G.JSC$15763_playerManager=null;G.JSC$15763_mastheadCounter=new eju;G.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return G};
_.M(uj,_.a);_.m=uj.prototype;_.m.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"}}}};
_.m.created=function(){this.JSC$15763_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15763_playerManager=new rZ)};
_.m.ready=function(){var G=this;this.JSC$15763_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var b;(b=this.embeddedPlayer)==null||b.remove()}else{var I;(I=this.ytdPlayer)==null||I.remove();GEb(this.JSC$15763_playerManager,this.embeddedPlayer,function(){G.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){G.data&&G.data.navigationEndpoint&&_.O3(G.hostElement,"yt-navigate",{endpoint:G.data.navigationEndpoint})})}};
_.m.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15763_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.m.dataChanged=function(){var G=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var b=!this.data.disableAutoPlayback,I,h={autoplay:b,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(b?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(h);this.setupYtdPlayer()}else ITQ(this.JSC$15763_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(blX(this.JSC$15763_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15763_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.wL(G.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");G.JSC$15763_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.m.getPlayerPromise=function(){return this.JSC$15763_playerManager.getPlayerPromise()};
_.m.onYtToggleButton=function(G){this.useYtdPlayer?this.toggleMute(G.detail.toggled):G.detail.toggled?this.JSC$15763_playerManager.mute():this.JSC$15763_playerManager.unMute()};
_.m.onYtNavigate=function(G){var b=e9O(G.detail.endpoint),I=VCa(this.data.clickthroughReportingData);b&&I&&(G.detail.endpoint.watchEndpoint?G.detail.tempData=I:_.Cv(b,I,30))};
_.m.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15763_playerManager.stopVideo()};
_.m.setupYtdPlayer=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return I.yield(G.ytdPlayer.getPlayerPromise(),2);b=I.yieldResult;b.addEventListener("onStateChange",function(h){G.onPlayerStateChange(h)});
b.addEventListener("onCueRangeExit",function(h){G.onCueRangeExit(h)});
_.ip(I)})};
_.m.onPlayerStateChange=function(G){if(G===1&&(G=this.ytdPlayer.getPlayer())){var b=G.getCurrentTime(),I,h,q=b+((h=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?h:0)/1E3;G.addCueRange("playback",b,q);_.wL(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15763_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.m.onCueRangeExit=function(G){G==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.m.toggleMute=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(b.ytdPlayer.getPlayerPromise(),2);I=h.yieldResult;G?I.mute():I.unMute();_.ip(h)})};
_.kV.Object.defineProperties(uj.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G,b;if(!((G=this.data)==null?0:(b=G.accessibilityData)==null?0:b.label))return"Ad primary link";var I,h;return _.qP("AD_TITLE",{title:(I=this.data)==null?void 0:(h=I.accessibilityData)==null?void 0:h.label})}}});
uj.prototype.onYtMastheadHidden=uj.prototype.onYtMastheadHidden;uj.prototype.onYtNavigate=uj.prototype.onYtNavigate;uj.prototype.onYtToggleButton=uj.prototype.onYtToggleButton;uj.prototype.dataChanged=uj.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],uj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],uj.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],uj.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],uj.prototype,"useYtdPlayer",void 0);_.R([_.lH("ytd-toggle-button-renderer"),_.n("design:type",Object)],uj.prototype,"muteButton",void 0);_.R([_.H(),_.n("design:type",Object)],uj.prototype,"buttonOverrides",void 0);
_.R([_.P("data.accessibilityData.label"),_.n("design:type",String),_.n("design:paramtypes",[])],uj.prototype,"titleAriaLabel",null);_.R([_.lH("#replay-button"),_.n("design:type",Object)],uj.prototype,"replayButton",void 0);_.R([_.lH("#player-container"),_.n("design:type",Object)],uj.prototype,"playerContainer",void 0);_.R([_.lH("#player"),_.n("design:type",Object)],uj.prototype,"embeddedPlayer",void 0);_.R([_.lH("#ytd-player"),_.n("design:type",Object)],uj.prototype,"ytdPlayer",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uj.prototype,"dataChanged",null);_.R([_.hI("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],uj.prototype,"onYtToggleButton",null);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],uj.prototype,"onYtNavigate",null);
_.R([_.hI("yt-masthead-hidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uj.prototype,"onYtMastheadHidden",null);_.R([_.N({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],uj);
_.J(uj,"ytd-video-masthead-ad-primary-video-renderer",function(){if(kGJ!==void 0)return kGJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return kGJ=G},{mode:2});var vtn;var RE=function(){var G=_.a.apply(this,arguments)||this;G.collapsed=!1;G.impressionResolver=_.yO();G.JSC$15767_activeViewMeasurementDataResolver=_.yO();G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.M(RE,_.a);_.m=RE.prototype;_.m.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"}}}};
_.m.created=function(){this.activeView=new BF(this.hostElement)};
_.m.ready=function(){var G=this;_.Eo(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){G.expandAd()});
this.hostElement.addEventListener("yt-action",function(b){if(b.detail.actionName==="yt-service-request"){var I=b.detail.args[1];I.videoMastheadAdMuteCommand&&(G.collapseAd(I.videoMastheadAdMuteCommand.encryptedMastheadId),b.stopPropagation())}})};
_.m.attached=function(){var G=this;_.iH(function(){G.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(b){if(!G.collapsed){b=_.e(b);for(var I=b.next();!I.done;I=b.next())I=I.value,b6(I.baseUrl,I.attributionSrcMode);G.data.impressionCommand=void 0}});
this.JSC$15767_activeViewMeasurementDataResolver.promise.then(function(b){UT(G.activeView,b)});
_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sT(G.activeView)})};
_.m.dataChanged=function(){var G;((G=this.data.impressionCommand)==null?0:G.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var b;((b=this.data)==null?0:b.activeView)&&this.JSC$15767_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))};
_.m.computeWidescreen=function(G){var b;return!!(G&&((b=_.g(G,FMu))==null?0:b.isWidescreen))};
_.m.computeExpandable=function(G){return!!(G&&G.length>0)};
_.m.onIronResize=function(){if(this.expandable){var G=_.Eo(this.hostElement).querySelector("#expandable-tile-container :first-child");G&&!G.expanded&&(G.expanded=!0)}};
_.m.handleMuteAd=function(){this.collapseAd(null)};
_.m.restoreCollapsedState=function(G){this.collapsed=_.m$().get("HIDDEN_MASTHEAD_ID")===G};
_.m.collapseAd=function(G){if(G){var b=_.m$();b.set("HIDDEN_MASTHEAD_ID",G);b.save()}(G=_.Eo(this.hostElement).querySelector("#video"))&&_.O3(G,"yt-masthead-hidden");this.collapsed=!0};
_.m.expandAd=function(){var G=_.m$();G.set("HIDDEN_MASTHEAD_ID",!1);G.save();location.reload()};
_.m.detached=function(){_.U("stop_av_measurement_on_detach")&&sT(this.activeView)};
RE.prototype.onIronResize=RE.prototype.onIronResize;RE.prototype.dataChanged=RE.prototype.dataChanged;_.R([_.z(_.Y6),_.n("design:type",Object)],RE.prototype,"ironResizableBehavior",void 0);_.R([_.z(_.Xl),_.n("design:type",Object)],RE.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],RE.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],RE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],RE.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.n("design:type",Boolean)],RE.prototype,"widescreen",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.n("design:type",Boolean)],RE.prototype,"expandable",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],RE.prototype,"collapsed",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RE.prototype,"dataChanged",null);_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RE.prototype,"onIronResize",null);_.R([_.N({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],RE);
_.J(RE,"ytd-video-masthead-ad-v3-renderer",function(){if(vtn!==void 0)return vtn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return vtn=G},{mode:2});var n$=function(){return _.a.apply(this,arguments)||this};
_.M(n$,_.a);_.m=n$.prototype;_.m.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.m.ready=function(){var G=this;jhB(function(){G.isAttached&&aZ(G.JSC$15772_storedAdSlotMetadata,G.JSC$15772_storedAdLayoutMetadata,G.adSlotMetadata,G.adLayoutMetadata)&&WV(FF(),G.JSC$15772_storedAdSlotMetadata,G.JSC$15772_storedAdLayoutMetadata)})};
_.m.attached=function(){aZ(this.JSC$15772_storedAdSlotMetadata,this.JSC$15772_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&uRz(FF(),this.JSC$15772_storedAdSlotMetadata,this.JSC$15772_storedAdLayoutMetadata)};
_.m.detached=function(){aZ(this.JSC$15772_storedAdSlotMetadata,this.JSC$15772_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&WV(FF(),this.JSC$15772_storedAdSlotMetadata,this.JSC$15772_storedAdLayoutMetadata)};
_.m.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15772_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15772_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15772_storedAdLayoutMetadata!==void 0&&this.JSC$15772_storedAdSlotMetadata!==void 0&&WV(FF(),this.JSC$15772_storedAdSlotMetadata,this.JSC$15772_storedAdLayoutMetadata),uRz(FF(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15772_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15772_storedAdSlotMetadata=this.adSlotMetadata)};
_.kV.Object.defineProperties(n$.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.adLayoutMetadata}}});
n$.prototype.onAdMetadataChanged=n$.prototype.onAdMetadataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],n$.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],n$.prototype,"data",void 0);_.R([_.P("data.adLayoutMetadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],n$.prototype,"adLayoutMetadata",null);
_.R([_.H(),_.n("design:type",Object)],n$.prototype,"adSlotMetadata",void 0);_.R([_.q5("adLayoutMetadata","adSlotMetadata"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],n$.prototype,"onAdMetadataChanged",null);_.R([_.N({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],n$);
_.J(n$,"ytd-page-top-ad-layout-renderer",function(){if(mkJ!==void 0)return mkJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return mkJ=
G},{mode:_.nn("kevlar_poly_si_batch_j070")?1:2});var LvW;var OC=function(){var G=_.a.apply(this,arguments)||this;G.noBottomMargin=!1;G.overlayDensity=0;G.typographyBump=!1;G.extractOverlay=!1;G.extractActionBar=!1;return G};
_.M(OC,_.a);_.m=OC.prototype;
_.m.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]]"}}}}}};
_.m.ready=function(){var G=this;jhB(function(){G.isAttached&&G.adSlotMetadata&&KYn(FF(),G.adSlotMetadata)})};
_.m.attached=function(){if(this.adSlotMetadata){var G;if(this.adSlotMetadata===((G=this.data)==null?void 0:G.adSlotMetadata))JGn(FF(),this.adSlotMetadata);else{var b;_.RB(Error("Oh`"+this.adSlotMetadata+"`"+((b=this.data)==null?void 0:b.adSlotMetadata)))}}};
_.m.detached=function(){this.adSlotMetadata&&KYn(FF(),this.adSlotMetadata)};
_.m.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.m.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&KYn(FF(),this.adSlotMetadata),JGn(FF(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.kV.Object.defineProperties(OC.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var G,b,I=_.g((G=this.data)==null?void 0:(b=G.fulfillmentContent)==null?void 0:b.fulfilledLayout,_.WMX),h;return(G=(h=_.g(I==null?void 0:I.renderingContent,H6Q))==null?void 0:h.layout)?G.toLowerCase().replace(/_/g,"-"):""}}});
OC.prototype.onAdSlotMetadataChanged=OC.prototype.onAdSlotMetadataChanged;OC.prototype.onTypographyBumpChanged=OC.prototype.onTypographyBumpChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],OC.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],OC.prototype,"rendererBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],OC.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],OC.prototype,"noBottomMargin",void 0);_.R([_.H(),_.n("design:type",Object)],OC.prototype,"overlayDensity",void 0);_.R([_.H(),_.n("design:type",Object)],OC.prototype,"typographyBump",void 0);_.R([_.H(),_.n("design:type",Object)],OC.prototype,"extractOverlay",void 0);_.R([_.H(),_.n("design:type",Object)],OC.prototype,"extractActionBar",void 0);
_.R([_.lH("ytd-in-feed-ad-layout-renderer"),_.n("design:type",HTMLElement)],OC.prototype,"inFeedAdLayoutRenderer",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",String),_.n("design:paramtypes",[])],OC.prototype,"layout",null);_.R([_.q5("typographyBump"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OC.prototype,"onTypographyBumpChanged",null);
_.R([_.q5("data.adSlotMetadata"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OC.prototype,"onAdSlotMetadataChanged",null);_.R([_.N({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],OC);
_.J(OC,"ytd-ad-slot-renderer",function(){if(LvW!==void 0)return LvW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return LvW=G},{mode:_.nn("kevlar_poly_si_batch_j077")?
1:2});var QcA;var w$=function(){return _.a.apply(this,arguments)||this};
_.M(w$,_.a);_.m=w$.prototype;_.m.created=function(){this.activeView=new BF(this.hostElement)};
_.m.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"}}}};
_.m.maybeComputeHref=function(){return null};
_.m.onTap=function(){};
_.m.onThumbnailContainerClick=function(G){this.onClick(G)};
_.m.onClick=function(G){var b,I=(b=this.data)==null?void 0:b.navigationEndpoint;I&&_.g(I,_.Wq)&&(this.ytSparklesClickLocationBehavior.handleClick(I,G,!1),G.stopPropagation())};
_.m.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var G=_.e(this.data.impressionUrls),b=G.next();!b.done;b=G.next())b=b.value,JIq(b,uvB(b));this.data.activeView&&UT(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",w$.JSC$15780_DEFAULT_CLICK_LOCATION_BEHAVIOR,w$.JSC$15780_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"))}};
_.m.attached=function(){var G=this;_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&sT(G.activeView)})};
_.m.detached=function(){_.U("stop_av_measurement_on_detach")&&sT(this.activeView)};
_.kV.Object.defineProperties(w$.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
w$.prototype.dataChanged=w$.prototype.dataChanged;w$.prototype.onTap=w$.prototype.onTap;w$.JSC$15780_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
w$.JSC$15780_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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],w$.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],w$.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.vF.YtSparklesClickLocationBehavior),_.n("design:type",Object)],w$.prototype,"ytSparklesClickLocationBehavior",void 0);
_.R([_.H({selector:_.sd}),_.n("design:type",Object)],w$.prototype,"isGridViewEnabled",void 0);_.R([_.P("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],w$.prototype,"watchFeedBigThumbs",null);_.R([_.P("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.n("design:type",String),_.n("design:paramtypes",[])],w$.prototype,"thumbnailWidth",null);_.R([_.H(),_.n("design:type",Object)],w$.prototype,"data",void 0);
_.R([_.lH("ytd-thumbnail"),_.n("design:type",HTMLElement)],w$.prototype,"thumbnail",void 0);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],w$.prototype,"onTap",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],w$.prototype,"dataChanged",null);_.R([_.N({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],w$);
_.J(w$,"ytd-compact-promoted-video-renderer",function(){if(QcA!==void 0)return QcA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return QcA=G},{mode:1});var xkQ;_.QO("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var EC=function(){return _.a.apply(this,arguments)||this};
_.M(EC,_.a);EC.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],EC.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],EC.prototype,"data",void 0);_.R([_.N({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],EC);
_.J(EC,"ytd-search-pyv-renderer",function(){if(xkQ!==void 0)return xkQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return xkQ=G},{mode:1});var fku;_.QO("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var p$=function(){var G=_.a.apply(this,arguments)||this;G.roundedContainer=!0;G.JSC$15788_handleOpenPostCommentDialogActionAfterStamp=!1;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.M(p$,_.a);_.m=p$.prototype;
_.m.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}}};
_.m.onStampFinished=function(){this.JSC$15788_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.m.handleSignalActionOpenPostCommentDialogAction=function(){var G=_.Eo(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");G?G.openDialog():this.JSC$15788_handleOpenPostCommentDialogActionAfterStamp=!0};
_.m.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.m.computeHideBorder=function(){return this.isInEngagementPanel};
_.m.computeIsCompact=function(){return this.isInEngagementPanel};
_.m.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"};
_.m.computeUsesFullLockup=function(){var G,b=(G=this.data)==null?void 0:G.post,I;G=(I=_.g(b,po8))==null?void 0:I.surface;var h;I=(h=_.g(b,$HQ))==null?void 0:h.originalPost;var q;if(h=G||((q=_.g(I,po8))==null?void 0:q.surface))return!this.computeUsesCompactLockup(h)&&this.useUpdatedRepostUi;var l;return((l=_.g(b,$HQ))==null?void 0:l.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.kV.Object.defineProperties(p$.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var G,b;return((b=_.g((G=this.data)==null?void 0:G.post,po8))==null?void 0:b.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.useUpdatedRepostUi}}});
p$.prototype.onYtCommentModerationPanelEmpty=p$.prototype.onYtCommentModerationPanelEmpty;p$.prototype.onStampFinished=p$.prototype.onStampFinished;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],p$.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],p$.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],p$.prototype,"roundedContainer",void 0);_.R([_.H({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.n("design:type",Boolean)],p$.prototype,"hideBorder",void 0);_.R([_.H({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.n("design:type",Boolean)],p$.prototype,"isCompact",void 0);
_.R([_.H({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.n("design:type",Boolean)],p$.prototype,"usesFullLockup",void 0);_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],p$.prototype,"onStampFinished",null);
_.R([_.hI("ytd-comment-moderation-panel-empty"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],p$.prototype,"onYtCommentModerationPanelEmpty",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],p$.prototype,"isInEngagementPanel",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],p$.prototype,"useUpdatedRepostUi",null);
_.R([_.N({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],p$);
_.J(p$,"ytd-backstage-post-thread-renderer",function(){if(fku!==void 0)return fku;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fku=G},{mode:1});var TCz;var SC=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.M(SC,_.a);SC.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
SC.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var G=this.data.thumbnail.thumbnails;this.isDarkTheme&&(G=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(G=_.KG(G,24,void 0,"height"))?G:void 0}};
SC.prototype.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
SC.prototype.computeHasText=function(){var G;return!((G=this.data)==null||!G.text)};
_.kV.Object.defineProperties(SC.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.KA(this.bannerImageUrl))+'");'}}});
SC.prototype.computeHasText=SC.prototype.computeHasText;SC.prototype.computeBannerImageUrl=SC.prototype.computeBannerImageUrl;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],SC.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],SC.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],SC.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],SC.prototype,"isDarkTheme",void 0);_.R([_.H(),_.n("design:type",String)],SC.prototype,"bannerImageUrl",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.n("design:type",Boolean)],SC.prototype,"hasText",void 0);_.R([_.q5("data","isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SC.prototype,"computeBannerImageUrl",null);
_.R([_.q5("data.text"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SC.prototype,"computeHasText",null);_.R([_.P("bannerImageUrl"),_.n("design:type",Object),_.n("design:paramtypes",[])],SC.prototype,"bannerStyle",null);_.R([_.N({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],SC);
_.J(SC,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(TCz!==void 0)return TCz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return TCz=G},{mode:1});var BCe;var XF=function(){return _.a.apply(this,arguments)||this};
_.M(XF,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],XF.prototype,"data",void 0);_.R([_.N({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],XF);
_.J(XF,"ytd-backstage-zero-state-renderer",function(){if(BCe!==void 0)return BCe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-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(_.E().content.cloneNode(!0),
G.content.firstChild);return BCe=G},{mode:1});var Ukz;var $7=function(){return _.a.apply(this,arguments)||this};
_.M($7,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],$7.prototype,"data",void 0);_.R([_.H({computed:"computeIcon_(data.icon)"}),_.n("design:type",String)],$7.prototype,"icon",void 0);_.R([_.N({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],$7);
_.J($7,"ytd-post-filter-zero-state-renderer",function(){if(Ukz!==void 0)return Ukz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ukz=G},{mode:1});var sci;var gti={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},GP=function(){return _.a.apply(this,arguments)||this};
_.M(GP,_.a);GP.prototype.configureRendererStamper=function(){return gti};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],GP.prototype,"rendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],GP.prototype,"data",void 0);_.R([_.H({computed:"computeIcon_(data.icon)"}),_.n("design:type",String)],GP.prototype,"icon",void 0);_.R([_.N({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],GP);
_.J(GP,"ytd-post-scheduling-zero-state-renderer",function(){if(sci!==void 0)return sci;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return sci=G},{mode:1});var Aqe;var b_=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return G};
_.M(b_,_.a);b_.prototype.onTabsActivate=function(G){this.data&&this.data.tabs&&_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[G.detail.selected].navigationEndpoint})};
b_.prototype.shouldShowTotalCount=function(G){return G&&G.totalCount!==void 0};
b_.prototype.handleUpdatePostsTotalCountAction=function(G){var b=this.get(["data.tabs",1,"totalCount"]),I=this.get("updatePostsTotalCountAction.updateType",G);G=this.get("updatePostsTotalCountAction.number",G);b!==void 0&&I!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&G&&(I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(b)+G):I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(b)-G))};
_.kV.Object.defineProperties(b_.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var G=0,b=this.data.tabs.length;G<b;G++)if(this.data.tabs[G].selected)return G;return 0}}});
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],b_.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],b_.prototype,"rendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],b_.prototype,"data",void 0);_.R([_.P("data.tabs"),_.n("design:type",Number),_.n("design:paramtypes",[])],b_.prototype,"selected",null);_.R([_.N({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],b_);
_.J(b_,"ytd-post-stream-filter-renderer",function(){if(Aqe!==void 0)return Aqe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Aqe=G},{mode:1});var Mz5;var IH=function(){return _.a.apply(this,arguments)||this};
_.M(IH,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],IH.prototype,"kevlarBehaviors",void 0);_.R([_.H(),_.n("design:type",Object)],IH.prototype,"data",void 0);_.R([_.N({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],IH);
_.J(IH,"ytd-channel-age-gate-renderer",function(){if(Mz5!==void 0)return Mz5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Mz5=G},{mode:1});var ZuQ;_.QO("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var hP=function(){var G=_.a.apply(this,arguments)||this;G.data=null;return G};
_.M(hP,_.a);hP.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.kV.Object.defineProperties(hP.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return((G=this.data)==null?0:(b=G.title)==null?0:(I=b.runs)==null?0:I.length)?147:160}}});
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],hP.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],hP.prototype,"imageSizePx",null);_.R([_.N({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],hP);
_.J(hP,"ytd-channel-owner-empty-state-renderer",function(){if(ZuQ!==void 0)return ZuQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ZuQ=G},{mode:1});var tzQ;var z_Q;var qv=function(){var G=_.a.apply(this,arguments)||this;G.boundSubmitSearch=function(){G.submitSearch()};
G.boundClearSearch=function(){G.clearSearch()};
return G};
_.M(qv,_.a);_.m=qv.prototype;_.m.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]]"}}}}}};
_.m.toggleClearButton=function(){this.hideClearButton=OOQ||!this.input.value};
_.m.submitOnEnterKeyUp=function(G){G.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.m.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.m.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.m.submit=function(){_.O3(this.hostElement,"search-query-changed",this.input.value)};
qv.prototype.toggleClearButton=qv.prototype.toggleClearButton;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],qv.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],qv.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],qv.prototype,"hideClearButton",void 0);_.R([_.H(),_.n("design:type",Object)],qv.prototype,"boundSubmitSearch",void 0);_.R([_.H(),_.n("design:type",Object)],qv.prototype,"boundClearSearch",void 0);_.R([_.lH("#input"),_.n("design:type",Object)],qv.prototype,"input",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qv.prototype,"toggleClearButton",null);
_.R([_.N({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],qv);
_.J(qv,"ytd-channel-switcher-search-box-renderer",function(){if(z_Q!==void 0)return z_Q;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return z_Q=G},{mode:1});var otQ;var jF=function(){var G=_.a.apply(this,arguments)||this;G.boundSubmit=function(){G.submit()};
return G};
_.M(jF,_.a);_.m=jF.prototype;_.m.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"}}}}};
_.m.ready=function(){var G=this;this.form.addEventListener("submit",function(b){return G.onSubmit(b)})};
_.m.onSubmit=function(G){G.preventDefault();return!1};
_.m.toggleClearButton=function(){this.hideClearButton=OOQ||!this.input.value};
_.m.submitOnEnterKeyUp=function(G){G.keyCode===13&&this.submit()};
_.m.submit=function(){var G=this.data.endpoint,b=(0,_.Cy.unsafeClone)(G);_.g(b,_.jL)?_.g(b,_.jL).query=this.input.value:_.g(b,_.lg)&&(_.g(b,_.lg).query=this.input.value);var I=_.g(b.commandMetadata,_.IW);(I==null?0:I.url)?(I.url=_.EY(I.url,"query",this.input.value),_.O3(this.hostElement,"yt-navigate",{endpoint:b})):_.g(b,olu)?(_.g(b,olu).channelSwitcherQuery=this.input.value,_.LL().resolve(_.xW).resolveCommand(b,{form:{element:this.hostElement}})):(G=Error("Ph`"+JSON.stringify(G)),_.K1(G))};
_.m.getUrl=function(G){return this.get("commandMetadata.webCommandMetadata.url",G)};
jF.prototype.toggleClearButton=jF.prototype.toggleClearButton;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],jF.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],jF.prototype,"hideClearButton",void 0);
_.R([_.H(),_.n("design:type",Object)],jF.prototype,"boundSubmit",void 0);_.R([_.lH("#form"),_.n("design:type",HTMLFormElement)],jF.prototype,"form",void 0);_.R([_.lH("#input"),_.n("design:type",Object)],jF.prototype,"input",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jF.prototype,"toggleClearButton",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],jF);
_.J(jF,"ytd-search-box-renderer",function(){if(otQ!==void 0)return otQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <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(_.E().content.cloneNode(!0),G.content.firstChild);return otQ=G},{mode:2});var l_=function(){var G=_.a.apply(this,arguments)||this;G.showSearchBox=!0;return G};
_.M(l_,_.a);l_.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],l_.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],l_.prototype,"showSearchBox",void 0);_.R([_.N({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],l_);
_.J(l_,"ytd-channel-switcher-header-renderer",function(){if(tzQ!==void 0)return tzQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return tzQ=G},{mode:1});var iuA;var Pie;var m1=function(){var G=_.a.apply(this,arguments)||this;G.isDisplayed=!0;return G};
_.M(m1,_.a);_.m=m1.prototype;_.m.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m.dataChanged=function(){this.isDisplayed=!0};
_.m.computeType=function(G){return G||"UNKNOWN"};
_.m.onYtServiceRequestCompleted=function(G){G.stopPropagation();this.isDisplayed=!1};
_.m.onClose=function(){this.isDisplayed=!1};
m1.prototype.onYtServiceRequestCompleted=m1.prototype.onYtServiceRequestCompleted;m1.prototype.dataChanged=m1.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],m1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],m1.prototype,"data",void 0);
_.R([_.H({computed:"computeType(data.type)",reflectToAttribute:!0}),_.n("design:type",String)],m1.prototype,"type",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],m1.prototype,"isDisplayed",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],m1.prototype,"dataChanged",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],m1.prototype,"onYtServiceRequestCompleted",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],m1);
_.J(m1,"ytd-alert-with-button-renderer",function(){if(Pie!==void 0)return Pie;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Pie=G},{mode:1});var eF=function(){var G=_.a.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};
_.M(eF,_.a);_.m=eF.prototype;_.m.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.m.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.m.updateChannelSwitcherAction=function(G){var b;G=(b=_.g(G,ZYn))==null?void 0:b.page;_.g(G,MbB)!==void 0&&(this.data=_.g(G,MbB))};
_.m.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]]"}}}}}};
_.m.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.m.searchQueryChanged=function(G,b){if(this.data&&this.data.contents&&this.data.contents.length){G=[];var I=[];this.hideCreateChannelButton=this.noResult=!1;for(var h=document.querySelectorAll("ytd-account-item-renderer"),q=_.e(h),l=q.next();!l.done;l=q.next())l=l.value,I.push(l),l.style.display="block";this.resetRightBorder(I);if(b){this.hideCreateChannelButton=!0;for(I=1;I<this.data.contents.length;I++)if(l=this.data.contents[I],_.g(l,Z6i)){var V=void 0,D=void 0;q=(V=_.g(l,Z6i))==null?void 0:(D=
V.accountName)==null?void 0:D.simpleText;D=V=void 0;l=(V=_.g(l,Z6i))==null?void 0:(D=V.channelHandle)==null?void 0:D.simpleText;(V=h[I-1])&&q&&_.ka(q,b)?G.push(V):_.U("enable_handle_search_on_channel_switcher")&&V&&l&&_.ka(l.toString(),b.toString())?G.push(V):V.style.display="none"}G.length===0&&(this.noResult=!0);this.resetRightBorder(G)}}};
_.m.resetRightBorder=function(G){for(var b=0;b<G.length;b++)G[b].style.borderRight=!this.hideCreateChannelButton&&(b+2)%3===0||this.hideCreateChannelButton&&(b+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.m.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.m.setShowSearchBox=function(G){if(G&&G.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var b=0;b<G.contents.length;b++)_.g(G.contents[b],_.Yg)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.m.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.kV.Object.defineProperties(eF.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.contents)}}});
eF.prototype.onContinuationItemsUpdated=eF.prototype.onContinuationItemsUpdated;eF.prototype.searchQueryChanged=eF.prototype.searchQueryChanged;eF.prototype.onDataChanged=eF.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],eF.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.mD),_.n("design:type",Object)],eF.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],eF.prototype,"data",void 0);_.R([_.lH("ytd-channel-switcher-header-renderer"),_.n("design:type",Object)],eF.prototype,"channelSwitcherHeaderRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],eF.prototype,"noResult",void 0);
_.R([_.H(),_.n("design:type",Object)],eF.prototype,"enableAlertBanner",void 0);_.R([_.H(),_.n("design:type",Object)],eF.prototype,"dismissedAlertBanner",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],eF.prototype,"hideCreateChannelButton",void 0);_.R([_.P("data.contents"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],eF.prototype,"isLoading",null);_.R([_.H(),_.n("design:type",Object)],eF.prototype,"boundDismissAlertBanner",void 0);
_.R([_.H({computed:"computeButtonOverride()"}),_.n("design:type",Object)],eF.prototype,"buttonOverride",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eF.prototype,"onDataChanged",null);_.R([_.hI("search-query-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,String]),_.n("design:returntype")],eF.prototype,"searchQueryChanged",null);
_.R([_.hI("yt-next-continuation-data-updated"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],eF.prototype,"onContinuationItemsUpdated",null);_.R([_.N({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],eF);
_.J(eF,"ytd-channel-switcher-page-renderer",function(){if(iuA!==void 0)return iuA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return iuA=G},{mode:1});var dkQ;var yqe;var VI=function(){var G=_.a.apply(this,arguments)||this;G.images=[];G.selectedImageIndex=0;return G};
_.M(VI,_.a);_.m=VI.prototype;
_.m.ready=function(){_.cv(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.cv(this.JSC$15833_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.cv(this.JSC$15833_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.cv(this.JSC$15833_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.m.onThumbnailClick=function(G){if(G=G.event_.detail)this.selectedImageIndex=this.images.indexOf(G)};
_.m.updateImageThumbnails=function(G){G=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:G.event_.detail});this.images.splice(this.selectedImageIndex,1,G);this.images=[].concat(_.Nz(this.images))};
_.m.cancelImageRepositions=function(){this.selectedImageIndex=0;_.O3(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.m.saveImageRepositions=function(){this.selectedImageIndex=0;_.O3(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.kV.Object.defineProperties(VI.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var G=this;return(this.images||[]).map(function(b,I){return{image:b,selected:I===G.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.lH("ytd-backstage-image-preview-renderer"),_.n("design:type",Object)],VI.prototype,"JSC$15833_imagePreviewContainer",void 0);_.R([_.lH(".thumbnail-images-container"),_.n("design:type",HTMLElement)],VI.prototype,"thumbnailImagesContainer",void 0);_.R([_.H(),_.n("design:type",Array)],VI.prototype,"images",void 0);
_.R([_.H(),_.n("design:type",Object)],VI.prototype,"repositionInstructions",void 0);_.R([_.H(),_.n("design:type",Object)],VI.prototype,"selectedImageIndex",void 0);_.R([_.P("images","selectedImageIndex"),_.n("design:type",Array),_.n("design:paramtypes",[])],VI.prototype,"thumbnailRendererDatas",null);_.R([_.P("images","selectedImageIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],VI.prototype,"selectedImageData",null);
_.R([_.N({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],VI);
_.J(VI,"ytd-backstage-multi-image-reposition-renderer",function(){if(yqe!==void 0)return yqe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return yqe=G},{mode:1});var D4=function(G,b){_.Z$.call(this);this.uploadUrl=G;this.channelId=b;this.imagesUploadData=[]};
_.M(D4,_.Z$);D4.prototype.getAllUploadStatuses=function(){var G=this,b,I,h;return _.c(function(q){if(q.nextAddress==1)return q.yield(rqX(G),2);b=q.yieldResult;I=b.get("succeed");h=b.get("failed");return q.return(I.concat(h))})};
var HuA=function(G){var b,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(rqX(G),2);b=h.yieldResult;I=b.get("failed");I.length>0&&Fvn(G,I);return h.return(G.getAllUploadStatuses())})},rqX=function(G){var b,I,h,q,l,V,D;
return _.c(function(k){if(k.nextAddress==1)return b=new Map,k.yield(Promise.allSettled(G.imagesUploadData.map(function(L){return L.uploadPromise})),2);
I=k.yieldResult;h=[];q=_.e(I);for(l=q.next();!l.done;l=q.next())V=l.value,V.status==="fulfilled"&&h.push(V.value);D=G.imagesUploadData.map(function(L){return L.image}).filter(function(L){return h.every(function(x){return x.id!==L.id})});
b.set("succeed",h);b.set("failed",D);return k.return(b)})},Fvn=function(G,b){b=_.e(b);
for(var I=b.next();!I.done;I=b.next()){var h=G;I=I.value;Wvz(h,I.id)>=0&&h.cancel(I.id);var q=new akz(I),l=_.LMu(h.uploadUrl,{"X-YouTube-ChannelId":h.channelId},I.imageBlob);q.transfer=l;q.uploadPromise=NCQ(l,I);h.imagesUploadData.push(q);l.run()}};
D4.prototype.cancel=function(G){var b=Wvz(this,G);b!==-1&&((b=this.imagesUploadData[b].transfer)&&b.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(I){return I.image.id!==G}))};
var Wvz=function(G,b){return G.imagesUploadData.findIndex(function(I){return I.image.id===b})},NCQ=function(G,b){return new Promise(function(I,h){G.listen("l",function(){var q=G.getResponseText();
q?(q=JSON.parse(q).encryptedBlobId,b.encryptedBlobId=q,I(b)):h("upload failed")});
G.listen("n",function(){h("upload failed")})})},akz=function(G){this.image=G};var pEO=function(G,b,I,h,q){this.id=G;this.imageBlob=b;this.localImageSrc=I;this.naturalWidth=h;this.naturalHeight=q;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 YDX=[".jpeg",".jpg",".png"],cW=function(){var G=_.a.apply(this,arguments)||this;G.showImagesPreview=!1;G.pollOptions=[];G.errorMessage="";G.optionPlaceholderText="";G.optionDefaultText="";G.JSC$15844_imageId=0;G.maxFileSizeMb=0;G.maxAspectRatio=0;G.invalidFileSizeError="";G.invalidAspectRatioError="";G.invalidFileTypeError="";G.imageSelector=new As(null,"single_file",YDX);return G};
_.M(cW,_.a);_.m=cW.prototype;_.m.ready=function(){_.cv(this.imageSelector,"j",this.onImageSelect,!1,this);_.cv(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.cv(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.m.dataChanged=function(){var G,b,I=_.g((G=this.data)==null?void 0:(b=G.cellTemplate)==null?void 0:b.onEmptyCellTap,jSX);if(I&&I.uploadUrl&&I.channelId){var h;this.maxFileSizeMb=((h=I.imageValidationInfo)==null?void 0:h.maxFileSizeMb)||0;var q;this.maxAspectRatio=((q=I.imageValidationInfo)==null?void 0:q.allowedMaxAspectRatio)||0;var l;this.invalidFileSizeError=this.getSimpleString((l=this.data)==null?void 0:l.invalidFileSizeError);var V;this.invalidAspectRatioError=this.getSimpleString((V=this.data)==
null?void 0:V.invalidAspectRatioError);var D;this.invalidFileTypeError=this.getSimpleString((D=this.data)==null?void 0:D.invalidFileTypeError);this.uploadManager=new D4(I.uploadUrl,I.channelId)}};
_.m.onEditorInfoChange=function(){this.optionPlaceholderText=_.NO(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.NO(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.m.observeAddImageError=function(){this.errorMessage!==""&&_.O3(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.m.onPollOptionsChange=function(){for(var G=!1,b=[],I=0;I<this.pollOptions.length;I++){var h=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(I+1);this.pollOptions[I].placeholderText!==h?(G=!0,b.push(Object.assign({},this.pollOptions[I],{placeholderText:h}))):b.push(this.pollOptions[I])}G&&(this.pollOptions=b);this.isValid()?_.O3(this.hostElement,"yt-commentbox-post-enable"):_.O3(this.hostElement,"yt-commentbox-post-disable")};
_.m.createPollOptions=function(G){var b=[],I;G=(I=G==null?void 0:G.minPollOptions)!=null?I:0;for(I=0;I<G;I++)b.push(this.createPollOption());return b};
_.m.onImageSelect=function(G){var b=this,I,h,q,l,V,D;return _.c(function(k){if(k.nextAddress==1){if(b.selectedImageIndex===void 0)return k.jumpTo(0);I=G.files[0];b.errorMessage="";h=b.validateImage(I);if(h!=="")return b.errorMessage=h,k.return();q=new vs(b.maxAspectRatio,!1,!0);return k.yield(q.transform(I),3)}if(k.nextAddress!=4)return l=k.yieldResult,l.transformedData?l.invalidAspectRatio?(b.errorMessage=b.invalidAspectRatioError,k.return()):k.yield(SWO(b.JSC$15844_imageId,G.files[0],l.transformedData),
4):(b.errorMessage=b.invalidFileTypeError,k.return());V=k.yieldResult;b.JSC$15844_imageId++;Fvn(b.uploadManager,[V]);D=Object.assign({},b.pollOptions[b.selectedImageIndex],{image:V});b.pollOptions.splice(b.selectedImageIndex,1,D);b.refreshPollOptions();_.O3(b.hostElement,"yt-backstage-poll-image-select");_.ip(k)})};
_.m.validateImage=function(G){return G.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.m.refreshPollOptions=function(){this.pollOptions=[].concat(_.Nz(this.pollOptions))};
_.m.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Nz(this.pollOptions),[this.createPollOption()]))};
_.m.onRemovePollOption=function(G){var b=this.pollOptions[G.model.index];b&&b.image&&this.uploadManager.cancel(b.image.id);this.pollOptions.splice(G.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.O3(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.m.onTextInput=function(){this.refreshPollOptions()};
_.m.onImageButtonClick=function(G){this.selectedImageIndex=G.model.index;this.imageSelector.click()};
_.m.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.m.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.m.saveImageRepositions=function(G){G=G.event_.detail;for(var b=0,I=[],h=_.e(this.pollOptions),q=h.next();!q.done;q=h.next())q=q.value,q.image!==void 0?(q=Object.assign({},q,{image:G[b]}),I.push(q),b++):I.push(q);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Nz(I))};
_.m.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,b=_.e(this.pollOptions),I=b.next();!I.done;I=b.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)};
_.m.getAllUploadStatuses=function(){var G=this,b,I,h,q;return _.c(function(l){if(l.nextAddress==1)return l.yield(G.uploadManager.getAllUploadStatuses(),2);b=l.yieldResult;I=_.e(b);for(h=I.next();!h.done;h=I.next())if(q=h.value,q.encryptedBlobId===void 0)return l.return(HuA(G.uploadManager));return l.return(b)})};
_.m.getPostCreateOptions=function(){for(var G=[],b=_.e(this.pollOptions),I=b.next();!I.done;I=b.next())I=I.value,I.image!==void 0&&G.push({text:this.hasCustomOptionText?I.optionText:I.placeholderText,image:I.image});return G};
_.m.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.m.createButtonRenderer=function(G,b){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleString(G)}},isDisabled:b}};
_.m.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.m.computeThumbnailRendererData=function(G){return G?{image:G,selected:!1}:void 0};
_.m.getSimpleString=function(G){return _.NO(G)};
_.m.updateOptionTextFromBinding=function(G){if(G.target){var b=Array.from(_.Eo(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(G.target);if(b>=0){var I;this.pollOptions[b].optionText=(I=G.detail.value)!=null?I:""}}};
_.kV.Object.defineProperties(cW.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var G,b;return this.pollOptions.length<((b=(G=this.editorInfo)==null?void 0:G.maxPollOptions)!=null?b: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,b=(G=this.data)==null?void 0:G.addOptionButtonText;return b?this.createButtonRenderer(b,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var G,b=(G=this.data)==null?void 0:G.repositionImagesButtonLabel;return b?this.createButtonRenderer(b,!this.hasImages):void 0}}});
cW.prototype.onPollOptionsChange=cW.prototype.onPollOptionsChange;cW.prototype.observeAddImageError=cW.prototype.observeAddImageError;cW.prototype.onEditorInfoChange=cW.prototype.onEditorInfoChange;cW.prototype.dataChanged=cW.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.R([_.lH("ytd-backstage-multi-image-reposition-renderer"),_.n("design:type",Object)],cW.prototype,"imageRepositionContainer",void 0);
_.R([_.H(),_.n("design:type",Object)],cW.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],cW.prototype,"editorInfo",void 0);_.R([_.H(),_.n("design:type",D4)],cW.prototype,"uploadManager",void 0);_.R([_.H(),_.n("design:type",Object)],cW.prototype,"showImagesPreview",void 0);_.R([_.H(),_.n("design:type",Array)],cW.prototype,"pollOptions",void 0);_.R([_.H(),_.n("design:type",Object)],cW.prototype,"errorMessage",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cW.prototype,"dataChanged",null);_.R([_.Dd("editorInfo"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cW.prototype,"onEditorInfoChange",null);_.R([_.q5("errorMessage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cW.prototype,"observeAddImageError",null);
_.R([_.Dd("pollOptions"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cW.prototype,"onPollOptionsChange",null);_.R([_.P("pollOptions","editorInfo"),_.n("design:type",Object),_.n("design:paramtypes",[])],cW.prototype,"isAllowedToAddOption",null);_.R([_.P("pollOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],cW.prototype,"hasImages",null);
_.R([_.P("pollOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],cW.prototype,"imagesToReposition",null);_.R([_.P("pollOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],cW.prototype,"hasCustomOptionText",null);_.R([_.P("data","isAllowedToAddOption"),_.n("design:type",Object),_.n("design:paramtypes",[])],cW.prototype,"addOptionButton",null);_.R([_.P("data","hasImages"),_.n("design:type",Object),_.n("design:paramtypes",[])],cW.prototype,"repositionImagesButton",null);
_.R([_.N({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],cW);
_.J(cW,"ytd-backstage-image-poll-editor-renderer",function(){if(dkQ!==void 0)return dkQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return dkQ=G},{mode:2});var CiA={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 JqX;var k7=function(){var G=_.a.apply(this,arguments)||this;G.a11yConfig=CiA;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};
_.M(k7,_.a);_.m=k7.prototype;_.m.created=function(){_.Sb.requestAvailability()};
_.m.ready=function(){};
_.m.onArrowKeysDown=function(G){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){G.detail.keyboardEvent.preventDefault();var b=0,I=0,h="";switch(G.detail.keyboardEvent.key){case "ArrowUp":XEq(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?h=this.a11yConfig.reachBottomOfImage:b=this.imageHeight*.05*-1;break;case "ArrowDown":XEq(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?h=this.a11yConfig.reachTopOfImage:
b=this.imageHeight*.05;break;case "ArrowLeft":XEq(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?h=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":XEq(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?h=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}h&&_.qP(h)&&_.O3(this.hostElement,"iron-announce",{text:_.qP(h)});if(I||b)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+b)),G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),G=_.qP(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=_.qP(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})),G&&_.O3(this.hostElement,"iron-announce",{text:G})}};
_.m.getPreviewPosition=function(G,b,I,h){return Math.round(100*(G+b*.5-I)/h)};
_.m.calculateDisplayPosition=function(){var G=this.imageData.naturalWidth,b=this.imageData.naturalHeight;this.displayScale=Math.max(200/G,200/b);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var I=G*this.displayScale*this.imageData.previewCoordinates.left,h=b*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=b>G?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-I;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=G>b?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-h;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=G*this.displayScale;this.imageHeight=b*this.displayScale};
_.m.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.m.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.m.getSignedPosition=function(G,b,I){return b==="X"&&_.wy("HTML_DIR")==="rtl"?I==="-"?G+"px":G*-1+"px":I==="-"?G*-1+"px":G+"px"};
_.m.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 b=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-b))}};
_.m.pickerMoveStart=function(G){this.startPicker=!0;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY};
_.m.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var G=this.generateCropPreview();G&&_.O3(this.hostElement,"ytd-backstage-image-preview-coordinates-update",G)};
_.m.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.O3(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.m.deleteImage=function(){_.O3(this.hostElement,"ytd-backstage-image-preview-delete")};
_.m.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.m.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var G=this.generateCropPreview();G&&_.O3(this.hostElement,"ytd-backstage-image-preview-coordinates-save",G)};
_.m.getPreviewOffset=function(G,b,I){return b&&G?(I==="X"&&_.wy("HTML_DIR")==="rtl"?300/b*G:300/b*G*-1)+"px":"0px"};
_.m.getSimpleText=function(G){return G?_.NO(G):""};
_.m.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}};
_.kV.Object.defineProperties(k7.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 _.qP(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.qP(this.a11yConfig.verticalRepositionInstruction)}G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.qP(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.qP(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,b,I=(G=this.instruction)==null?void 0:(b=G.previewInstruction)==null?void 0:b.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,b,I,h,q=this.editOnlyMode?(G=this.instruction)==null?void 0:(b=G.editInstruction)==null?void 0:b.saveImagesButtonLabel:(I=this.instruction)==null?void 0:(h=I.editInstruction)==null?void 0:h.saveButtonLabel;return q?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:q,accessibilityData:{accessibilityData:{label:this.getSimpleText(q)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var G,b,I=(G=this.instruction)==null?void 0:(b=G.previewInstruction)==null?void 0:b.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,b,I=(G=this.instruction)==null?void 0:(b=G.editInstruction)==null?void 0:b.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"}}});
k7.prototype.onEditOnlyModeUpdate=k7.prototype.onEditOnlyModeUpdate;k7.prototype.onImageChange=k7.prototype.onImageChange;_.R([_.H(),_.n("design:type",pEO)],k7.prototype,"imageData",void 0);_.R([_.H(),_.n("design:type",Object)],k7.prototype,"instruction",void 0);_.R([_.H(),_.n("design:type",Object)],k7.prototype,"a11yConfig",void 0);_.R([_.H(),_.n("design:type",Number)],k7.prototype,"imageWidth",void 0);_.R([_.H(),_.n("design:type",Number)],k7.prototype,"imageHeight",void 0);
_.R([_.H(),_.n("design:type",Number)],k7.prototype,"displayScale",void 0);_.R([_.H(),_.n("design:type",Object)],k7.prototype,"imageDisplayOffsetTop",void 0);_.R([_.H(),_.n("design:type",Object)],k7.prototype,"imageDisplayOffsetLeft",void 0);_.R([_.H(),_.n("design:type",Object)],k7.prototype,"pickerDisplayOffsetTop",void 0);_.R([_.H(),_.n("design:type",Object)],k7.prototype,"pickerDisplayOffsetLeft",void 0);_.R([_.H(),_.n("design:type",Object)],k7.prototype,"showPreviewContainer",void 0);
_.R([_.H(),_.n("design:type",Object)],k7.prototype,"startPicker",void 0);_.R([_.H(),_.n("design:type",Number)],k7.prototype,"pickerOffsetX",void 0);_.R([_.H(),_.n("design:type",Number)],k7.prototype,"pickerOffsetY",void 0);_.R([_.H(),_.n("design:type",Object)],k7.prototype,"repositionOptional",void 0);_.R([_.H(),_.n("design:type",Object)],k7.prototype,"editOnlyMode",void 0);_.R([_.lH("#picker-container"),_.n("design:type",HTMLElement)],k7.prototype,"JSC$15857_pickerContainer",void 0);
_.R([_.lH("#picker"),_.n("design:type",HTMLElement)],k7.prototype,"picker",void 0);_.R([_.lH("#preview-clipper"),_.n("design:type",HTMLElement)],k7.prototype,"previewClipper",void 0);_.R([_.lH("#image-in-picker-background"),_.n("design:type",HTMLImageElement)],k7.prototype,"JSC$15857_imageInBackground",void 0);_.R([_.lH("#image-in-picker"),_.n("design:type",HTMLImageElement)],k7.prototype,"JSC$15857_imageInPicker",void 0);
_.R([_.lH("#image-in-preview-clipper"),_.n("design:type",HTMLImageElement)],k7.prototype,"JSC$15857_imageInPreviewClipper",void 0);_.R([_.P("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],k7.prototype,"altLabelForImage",null);_.R([_.P("imageHeight","imageWidth"),_.n("design:type",Number),_.n("design:paramtypes",[])],k7.prototype,"pickerSize",null);
_.R([_.P("imageHeight","imageWidth"),_.n("design:type",Object),_.n("design:paramtypes",[])],k7.prototype,"imageOrientationStyle",null);_.R([_.P("instruction"),_.n("design:type",Object),_.n("design:paramtypes",[])],k7.prototype,"editButton",null);_.R([_.P("instruction","editOnlyMode"),_.n("design:type",Object),_.n("design:paramtypes",[])],k7.prototype,"saveButton",null);_.R([_.P("instruction"),_.n("design:type",Object),_.n("design:paramtypes",[])],k7.prototype,"deleteButton",null);
_.R([_.P("instruction","editOnlyMode"),_.n("design:type",Object),_.n("design:paramtypes",[])],k7.prototype,"cancelButton",null);_.R([_.P("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.n("design:type",Number),_.n("design:paramtypes",[])],k7.prototype,"cropOffsetTop",null);_.R([_.P("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.n("design:type",Number),_.n("design:paramtypes",[])],k7.prototype,"cropOffsetLeft",null);
_.R([_.P("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],k7.prototype,"pickerBackgroundStyle",null);_.R([_.P("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],k7.prototype,"pickerDisplayStyle",null);_.R([_.P("cropOffsetLeft","cropOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],k7.prototype,"imageInPickerStyle",null);
_.R([_.P("cropOffsetLeft","cropOffsetTop","pickerSize"),_.n("design:type",String),_.n("design:paramtypes",[])],k7.prototype,"previewClipperStyle",null);_.R([_.Dd("imageData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],k7.prototype,"onImageChange",null);_.R([_.Dd("editOnlyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],k7.prototype,"onEditOnlyModeUpdate",null);
_.R([_.P("showPreviewContainer"),_.n("design:type",String),_.n("design:paramtypes",[])],k7.prototype,"pickerModeStyle",null);_.R([_.N({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],k7);
_.J(k7,"ytd-backstage-image-preview-renderer",function(){if(JqX!==void 0)return JqX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return JqX=G},{mode:1});var Kvn;var uy8={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 R_W;var ntb;var vW=function(){var G=_.a.apply(this,arguments)||this;G.a11yConfig=uy8;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};
_.M(vW,_.a);_.m=vW.prototype;_.m.created=function(){_.Sb.requestAvailability()};
_.m.ready=function(){};
_.m.onArrowKeysDown=function(G){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){G.detail.keyboardEvent.preventDefault();var b=0,I=0,h="";switch(G.detail.keyboardEvent.key){case "ArrowUp":$Yu(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?h=this.a11yConfig.reachBottomOfImage:b=this.imageHeight*.05*-1;break;case "ArrowDown":$Yu(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?h=this.a11yConfig.reachTopOfImage:
b=this.imageHeight*.05;break;case "ArrowLeft":$Yu(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?h=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":$Yu(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?h=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}h&&_.qP(h)&&_.O3(this.hostElement,"iron-announce",{text:_.qP(h)});if(I||b)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+b)),G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),G=_.qP(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=_.qP(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})),G&&_.O3(this.hostElement,"iron-announce",{text:G})}};
_.m.getPreviewPosition=function(G,b,I,h){return Math.round(100*(G+b*.5-I)/h)};
_.m.displayImage=function(){var G=this.JSC$15868_pickerContainer.getBoundingClientRect().width,b=this.JSC$15868_pickerContainer.getBoundingClientRect().height,I=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),h=this.JSC$15868_imageInBackground.naturalWidth,q=this.JSC$15868_imageInBackground.naturalHeight;this.displayScale=Math.max(I/h,I/q);this.imageWidth=h*this.displayScale;this.imageHeight=q*this.displayScale;this.pickerDisplayOffsetLeft=(G-I)/2;this.pickerDisplayOffsetTop=
(b-I)/2;this.imageDisplayOffsetLeft=q>h?this.pickerDisplayOffsetLeft:(G-this.imageWidth)/2;this.imageDisplayOffsetTop=h>q?this.pickerDisplayOffsetTop:(b-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.m.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15868_imageInBackground.src=this.imageData.toString(),this.JSC$15868_imageInPicker.src=this.imageData.toString(),this.JSC$15868_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.m.getSignedPosition=function(G,b,I){return b==="X"&&_.wy("HTML_DIR")==="rtl"?I==="-"?G+"px":G*-1+"px":I==="-"?G*-1+"px":G+"px"};
_.m.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 b=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-b))}};
_.m.pickerMoveStart=function(G){this.startPicker=!0;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY};
_.m.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.m.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.O3(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.m.getPreviewOffset=function(G,b,I,h){return b&&G&&I?(h==="X"&&_.wy("HTML_DIR")==="rtl"?I/b*G:I/b*G*-1)+"px":"0px"};
_.m.getSimpleText=function(G){return G?_.NO(G):""};
_.m.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var G=this.cropOffsetTop/this.imageHeight,b=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,I=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,h=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Eo(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.O3(this.hostElement,"yt-img-crop-coordinates-update",{top:G,right:b,bottom:I,left:h})}};
_.kV.Object.defineProperties(vW.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 _.qP(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.qP(this.a11yConfig.verticalRepositionInstruction)}G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.qP(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.qP(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,b=(G=this.learnMore.runs[0])==null?void 0:G.navigationEndpoint,I;return((I=_.g(b,_.bx))==null?void 0:I.url)||void 0}}}});
vW.prototype.onImageDataChange=vW.prototype.onImageDataChange;_.R([_.H(),_.n("design:type",Object)],vW.prototype,"imageData",void 0);_.R([_.H(),_.n("design:type",Object)],vW.prototype,"instruction",void 0);_.R([_.H(),_.n("design:type",Object)],vW.prototype,"a11yConfig",void 0);_.R([_.H(),_.n("design:type",Number)],vW.prototype,"imageWidth",void 0);_.R([_.H(),_.n("design:type",Number)],vW.prototype,"imageHeight",void 0);_.R([_.H(),_.n("design:type",Number)],vW.prototype,"displayScale",void 0);
_.R([_.H(),_.n("design:type",Object)],vW.prototype,"imageDisplayOffsetTop",void 0);_.R([_.H(),_.n("design:type",Object)],vW.prototype,"imageDisplayOffsetLeft",void 0);_.R([_.H(),_.n("design:type",Object)],vW.prototype,"pickerDisplayOffsetTop",void 0);_.R([_.H(),_.n("design:type",Object)],vW.prototype,"pickerDisplayOffsetLeft",void 0);_.R([_.H(),_.n("design:type",Object)],vW.prototype,"cropCoordinatesSaved",void 0);_.R([_.H(),_.n("design:type",Object)],vW.prototype,"previewSize",void 0);
_.R([_.H(),_.n("design:type",Object)],vW.prototype,"startPicker",void 0);_.R([_.H(),_.n("design:type",Number)],vW.prototype,"pickerOffsetX",void 0);_.R([_.H(),_.n("design:type",Number)],vW.prototype,"pickerOffsetY",void 0);_.R([_.H(),_.n("design:type",Object)],vW.prototype,"repositionOptional",void 0);_.R([_.lH("#picker-container"),_.n("design:type",HTMLElement)],vW.prototype,"JSC$15868_pickerContainer",void 0);_.R([_.lH("#picker"),_.n("design:type",HTMLElement)],vW.prototype,"picker",void 0);
_.R([_.lH("#image-in-picker-background"),_.n("design:type",HTMLImageElement)],vW.prototype,"JSC$15868_imageInBackground",void 0);_.R([_.lH("#image-in-picker"),_.n("design:type",HTMLImageElement)],vW.prototype,"JSC$15868_imageInPicker",void 0);_.R([_.lH("#image-in-preview-clipper"),_.n("design:type",HTMLImageElement)],vW.prototype,"JSC$15868_imageInPreviewClipper",void 0);_.R([_.lH("#full-image-as-preview"),_.n("design:type",HTMLImageElement)],vW.prototype,"imageAsPreview",void 0);
_.R([_.P("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],vW.prototype,"altLabelForImage",null);_.R([_.P("imageHeight","imageWidth"),_.n("design:type",Number),_.n("design:paramtypes",[])],vW.prototype,"pickerSize",null);_.R([_.P("imageHeight","imageWidth"),_.n("design:type",Object),_.n("design:paramtypes",[])],vW.prototype,"imageOrientationStyle",null);
_.R([_.P("instruction.previewInstruction.editButtonLabel"),_.n("design:type",Object),_.n("design:paramtypes",[])],vW.prototype,"editButton",null);_.R([_.P("instruction.editInstruction.saveButtonLabel"),_.n("design:type",Object),_.n("design:paramtypes",[])],vW.prototype,"saveButton",null);_.R([_.P("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.n("design:type",Number),_.n("design:paramtypes",[])],vW.prototype,"cropOffsetTop",null);
_.R([_.P("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.n("design:type",Number),_.n("design:paramtypes",[])],vW.prototype,"cropOffsetLeft",null);_.R([_.P("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],vW.prototype,"pickerBackgroundStyle",null);_.R([_.P("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],vW.prototype,"pickerDisplayStyle",null);
_.R([_.P("cropOffsetLeft","cropOffsetTop"),_.n("design:type",String),_.n("design:paramtypes",[])],vW.prototype,"imageInPickerStyle",null);_.R([_.P("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.n("design:type",String),_.n("design:paramtypes",[])],vW.prototype,"previewClipperStyle",null);_.R([_.q5("imageData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vW.prototype,"onImageDataChange",null);
_.R([_.P("cropCoordinatesSaved"),_.n("design:type",String),_.n("design:paramtypes",[])],vW.prototype,"pickerModeStyle",null);_.R([_.P("instruction.editInstruction.learnMore"),_.n("design:type",Object),_.n("design:paramtypes",[])],vW.prototype,"learnMore",null);_.R([_.P("learnMore"),_.n("design:type",Object),_.n("design:paramtypes",[])],vW.prototype,"learnMoreUrl",null);_.R([_.g8({is:"yt-img-crop-picker",disableElementRegistration:!0})],vW);
_.J(vW,"yt-img-crop-picker",function(){if(ntb===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;R_W===void 0&&(R_W=document.createElement("template"));var h=R_W;I.call(b,h.content.cloneNode(!0),G.content.firstChild);ntb=G}G=ntb;return G},{mode:2});var L_=function(){var G=_.a.apply(this,arguments)||this;G.errorMessage="";G.hasPreview=!1;G.isBackstagePost=!1;G.dismissButtonOverrides={size:"XS"};return G};
_.M(L_,_.a);_.m=L_.prototype;_.m.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"}}}};
_.m.detached=function(){this.removeOverlay()};
_.m.setPreview=function(G){_.Eo(this.hostElement).querySelector("#preview-picker").imageData=G;this.hasPreview=!0;_.O3(this.hostElement,"yt-backstage-image-select-preview")};
_.m.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var G=_.Eo(this.hostElement).querySelector("#dropzone");G.classList.remove("dragover");G.classList.remove("error");_.O3(this.hostElement,"yt-backstage-image-select-cancel")};
_.m.setupOverlay=function(){var G=this.imageUploadEndpoint;this.removeOverlay();if(G&&G.imageValidationInfo){var b=_.Eo(this.hostElement).querySelector("#dropzone"),I=_.Eo(this.hostElement).querySelector("#select");this.overlay=new Qw(G.uploadUrl,G.channelId,G.imageValidationInfo.maxFileSizeMb,G.imageValidationInfo.allowedMaxAspectRatio,b,I,!0);_.cv(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.cv(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.cv(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.cv(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.cv(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.m.removeOverlay=function(){this.overlay&&(_.ML(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.ML(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.ML(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.ML(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.ML(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.m.onDragOver=function(G){var b=_.Eo(this.hostElement).querySelector("#dropzone");_.SL(b,"dragover",G.value)};
_.m.onPreview=function(G){this.setPreview(G.value)};
_.m.onImageError=function(G){if(G.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var b;G=(b=this.data)==null?void 0:b.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 h;G=(h=this.data)==null?void 0:h.invalidAspectRatioError}else return;this.errorMessage=_.NO(G);_.Eo(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.m.onImageAlert=function(G){this.onImageError(G)};
_.m.uploadPromise=function(){var G=this,b=this.overlay&&this.overlay.uploadPromise();if(b)return b.catch(function(){throw Error(G.data?_.NO(G.data.uploadFailureError):"");})};
_.kV.Object.defineProperties(L_.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,b;if((G=this.data)==null?0:(b=G.icon)==null?0:b.iconType)return _.pn(this.data.icon.iconType)}}});
L_.prototype.setupOverlay=L_.prototype.setupOverlay;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],L_.prototype,"rendererStamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],L_.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],L_.prototype,"imageUploadEndpoint",void 0);_.R([_.H(),_.n("design:type",Object)],L_.prototype,"errorMessage",void 0);
_.R([_.H(),_.n("design:type",Qw)],L_.prototype,"overlay",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],L_.prototype,"hasPreview",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],L_.prototype,"isBackstagePost",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],L_.prototype,"selectionCancel",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],L_.prototype,"previewCancel",null);
_.R([_.P("data.icon.iconType"),_.n("design:type",Object),_.n("design:paramtypes",[])],L_.prototype,"icon",null);_.R([_.H(),_.n("design:type",Object)],L_.prototype,"dismissButtonOverrides",void 0);_.R([_.q5("imageUploadEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],L_.prototype,"setupOverlay",null);_.R([_.N({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],L_);
_.J(L_,"ytd-backstage-image-select-renderer",function(){if(Kvn!==void 0)return Kvn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Kvn=G},{mode:1});var Ouz;var w1O;var QI=function(){var G=_.a.apply(this,arguments)||this;G.selected=!1;return G};
_.M(QI,_.a);_.m=QI.prototype;_.m.computeSelected=function(G){return G==null?void 0:G.selected};
_.m.computeTransform=function(G,b,I){var h,q,l=(q=(h=this.imageContainer)==null?void 0:h.getBoundingClientRect())!=null?q:{width:0,height:0};h=Math.max(l.width/b,l.height/I);I=I*h*G.top;return"translateX("+this.getSignedPosition(b*h*G.left,"X","-")+") translateY("+this.getSignedPosition(I,"Y","-")+")"};
_.m.getSignedPosition=function(G,b,I){return b==="X"&&_.wy("HTML_DIR")==="rtl"?I==="-"?G+"px":G*-1+"px":I==="-"?G*-1+"px":G+"px"};
_.m.onClick=function(){var G;_.O3(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(G=this.data)==null?void 0:G.image)};
_.m.onKeyPress=function(G){if(G.keyCode===13)this.onClick()};
_.kV.Object.defineProperties(QI.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?void 0:(b=G.image)==null?void 0:b.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)!=null&&G.image){var b;G=(b=this.data)==null?void 0:b.image;return G.previewCoordinates.top!==0||G.previewCoordinates.left!==0?(b=this.computeTransform(G.previewCoordinates,G.naturalWidth,G.naturalHeight),G.naturalHeight>=G.naturalWidth?"width:inherit;transform:"+b+";":"height:inherit;transform:"+b+";"):G.naturalHeight>=G.naturalWidth?"width:inherit;":"height:inherit;"}}}});
QI.prototype.onKeyPress=QI.prototype.onKeyPress;_.R([_.lH(".image-container"),_.n("design:type",HTMLElement)],QI.prototype,"imageContainer",void 0);_.R([_.H(),_.n("design:type",Object)],QI.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.n("design:type",Object)],QI.prototype,"selected",void 0);_.R([_.P("data.image"),_.n("design:type",Object),_.n("design:paramtypes",[])],QI.prototype,"thumbnailUrl",null);
_.R([_.P("data.image","data.image.previewCoordinates"),_.n("design:type",Object),_.n("design:paramtypes",[])],QI.prototype,"thumbnailStyle",null);_.R([_.hI("keypress"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],QI.prototype,"onKeyPress",null);_.R([_.N({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],QI);
_.J(QI,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(w1O!==void 0)return w1O;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return w1O=G},{mode:2});var x7=function(G,b,I){I=I===void 0?!1:I;_.Z$.call(this);var h=this;this.dropZoneOverlay=new g0(G);this.selectOverlay=I?new As(b,"multiple_file",["image/*"]):new As(b,"single_file",["image/*"]);this.handler=new _.Bh(this);_.M2(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(b,"click",function(){h.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.M(x7,_.Z$);x7.prototype.onChange=function(G){var b;(b=G.files)!=null&&b.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:G.files}))};var f_=function(){var G=_.a.apply(this,arguments)||this;G.addImageErrorMessage="";G.errorMessage="";G.images=[];G.selectedImageIndex=0;G.modern=_.U("web_modern_buttons");G.maxNumImagesPerPost=_.Te("max_num_images_per_post_web_ui");G.JSC$15883_imageId=0;return G};
_.M(f_,_.a);_.m=f_.prototype;_.m.created=function(){var G=this;this.JSC$15883_ytReorderableController=new _.c0A(100,function(b){G.handleDrop(b)})};
_.m.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.O3(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.m.observeDragToReorder=function(){var G=this;if(this.showImagesPreview){var b,I=fWW(_.Zg.getInstance(),(b=this.data)==null?void 0:b.dragToReorderTooltip);_.uu.addLowPriorityJob(function(){_.Su(G.hostElement,I,G.thumbnailDragDropArea)})}};
_.m.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}}};
_.m.computeThumbnail=function(G){return(G==null?void 0:G.localImageSrc)||void 0};
_.m.onRendererstamperFinished=function(){_.koz(this.JSC$15883_ytReorderableController,_.Eo(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Eo(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.m.handleDrop=function(G){var b=G.currDragItem;if(b!=null&&b.data){G=this.images[this.selectedImageIndex];var I=b.data.image,h=this.images.indexOf(I)||0;b=_.Nr(b.parentNode.children,b);this.images.splice(h,1);this.images.splice(b,0,I);this.images=[].concat(_.Nz(this.images));this.selectedImageIndex=this.images.indexOf(G)}};
_.m.setUpImagePicker=function(){var G=this.imageUploadEndpoint;G&&G.imageValidationInfo&&(this.uploadManager=new D4(G.uploadUrl,G.channelId),this.initialPicker||(this.initialPicker=new x7(this.dropzone,this.selectLink,!0),_.cv(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new x7(this.addImageButtonContainer,this.addImageSelectButton),_.cv(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.cv(this.JSC$15883_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.cv(this.JSC$15883_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.cv(_.Eo(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.m.detached=function(){this.initialPicker&&(_.ML(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.ML(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.dF(this.JSC$15883_ytReorderableController)};
_.m.onInitialSelectImages=function(G){var b=this;return _.c(function(I){return I.yield(b.onSelectImages(G,!1),0)})};
_.m.onAddImage=function(G){var b=this;return _.c(function(I){return I.yield(b.onSelectImages(G,!0),0)})};
_.m.onSelectImages=function(G,b){var I=this,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u,w;return _.c(function($a){switch($a.nextAddress){case 1:b?I.addImageErrorMessage="":(I.images=[],I.errorMessage="");h=G.detail;q=I.validateImages([].concat(_.Nz(h)));if(q!=="")return b?I.addImageErrorMessage=q:I.errorMessage=q,$a.return();l=[].concat(_.Nz(h)).map(function(ev){return(new vs(I.maxAspectRatio,!1,!0)).transform(ev)});
return $a.yield(Promise.allSettled(l),2);case 2:V=$a.yieldResult,D=_.e(V.entries()),k=D.next();case 3:if(k.done){$a.jumpTo(5);break}L=k.value;x=_.e(L);f=x.next().value;T=x.next().value;B=f;A=T;if(A.status!=="fulfilled"){F=y=t=void 0;b?I.addImageErrorMessage=_.NO((t=I.data)==null?void 0:t.invalidError):I.errorMessage=I.errorMessage===""?_.NO((y=I.data)==null?void 0:y.invalidError):_.NO((F=I.data)==null?void 0:F.multiFileError);$a.jumpTo(4);break}W=A.value;W.cropped&&_.O3(I.hostElement,"yt-backstage-multi-image-cropped");
if(W.invalidAspectRatio){u=K=O=void 0;b?I.addImageErrorMessage=_.NO((O=I.data)==null?void 0:O.invalidAspectRatioError):I.errorMessage=I.errorMessage===""?_.NO((K=I.data)==null?void 0:K.invalidAspectRatioError):_.NO((u=I.data)==null?void 0:u.multiFileError);$a.jumpTo(4);break}return $a.yield(SWO(I.JSC$15883_imageId,G.detail[B],W.transformedData),8);case 8:w=$a.yieldResult,I.images.push(w),I.JSC$15883_imageId++;case 4:k=D.next();$a.jumpTo(3);break;case 5:if(I.errorMessage!==""||I.addImageErrorMessage!==
"")return $a.return();b?Fvn(I.uploadManager,[I.images[I.images.length-1]]):Fvn(I.uploadManager,I.images);I.images=[].concat(_.Nz(I.images));I.selectedImageIndex=b?Math.max(I.images.length-1,0):0;_.O3(I.hostElement,"yt-backstage-multi-image-select");_.ip($a)}})};
_.m.onThumbnailClick=function(G){if(G=G.event_.detail)this.selectedImageIndex=this.images.indexOf(G)};
_.m.validateImages=function(G){if(G.length>this.maxNumImagesPerPost){var b;return _.NO((b=this.data)==null?void 0:b.multiImageExceedMaxImageCountError)}var I=1048576*this.maxFileSizeMb;G=G.filter(function(l){return l.size>I}).length;
if(G===0)return"";var h,q;G=G>1?(h=this.data)==null?void 0:h.multiFileError:(q=this.data)==null?void 0:q.fileSizeError;return _.NO(G)};
_.m.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Nz(this.images));this.selectedImageIndex=0};
_.m.repositionImage=function(G){this.images[this.selectedImageIndex].previewCoordinates=G.event_.detail;this.images=[].concat(_.Nz(this.images))};
_.m.getAllUploadStatuses=function(){var G=this,b,I,h,q;return _.c(function(l){if(l.nextAddress==1)return l.yield(G.uploadManager.getAllUploadStatuses(),2);b=l.yieldResult;I=_.e(b);for(h=I.next();!h.done;h=I.next())if(q=h.value,q.encryptedBlobId===void 0)return l.return(HuA(G.uploadManager));return l.return(b)})};
_.m.hasImages=function(){return this.images.length>0};
_.m.cancel=function(){for(var G=this.uploadManager,b=_.e(G.imagesUploadData),I=b.next();!I.done;I=b.next())G.cancel(I.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.O3(this.hostElement,"yt-backstage-multi-image-cancel")};
_.kV.Object.defineProperties(f_.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.imageUploadEndpoint)==null?void 0:(b=G.imageValidationInfo)==null?void 0:b.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.imageUploadEndpoint)==null?void 0:(b=G.imageValidationInfo)==null?void 0:b.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var G,b;if((G=this.data)==null?0:(b=G.icon)==null?0:b.iconType)return _.pn(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(b,I){return{renderer:{image:b,selected:I===G.selectedImageIndex}}})}}});
f_.prototype.setUpImagePicker=f_.prototype.setUpImagePicker;f_.prototype.onRendererstamperFinished=f_.prototype.onRendererstamperFinished;f_.prototype.observeDragToReorder=f_.prototype.observeDragToReorder;f_.prototype.observeAddImageError=f_.prototype.observeAddImageError;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],f_.prototype,"rendererStamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);
_.R([_.lH("#dropzone"),_.n("design:type",HTMLElement)],f_.prototype,"dropzone",void 0);_.R([_.lH("#select-link"),_.n("design:type",HTMLElement)],f_.prototype,"selectLink",void 0);_.R([_.lH("#thumbnail-drag-drop-area"),_.n("design:type",HTMLElement)],f_.prototype,"thumbnailDragDropArea",void 0);_.R([_.lH("#add-image-button-container"),_.n("design:type",HTMLElement)],f_.prototype,"addImageButtonContainer",void 0);
_.R([_.lH("#add-image-button"),_.n("design:type",HTMLElement)],f_.prototype,"addImageSelectButton",void 0);_.R([_.lH("#image-preview-container"),_.n("design:type",Object)],f_.prototype,"JSC$15883_imagePreviewContainer",void 0);_.R([_.H(),_.n("design:type",Object)],f_.prototype,"addImageErrorMessage",void 0);_.R([_.H(),_.n("design:type",Object)],f_.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],f_.prototype,"errorMessage",void 0);
_.R([_.H(),_.n("design:type",Object)],f_.prototype,"imageUploadEndpoint",void 0);_.R([_.H(),_.n("design:type",Array)],f_.prototype,"images",void 0);_.R([_.H(),_.n("design:type",x7)],f_.prototype,"initialPicker",void 0);_.R([_.H(),_.n("design:type",x7)],f_.prototype,"addImagePicker",void 0);_.R([_.H(),_.n("design:type",D4)],f_.prototype,"uploadManager",void 0);_.R([_.H(),_.n("design:type",Object)],f_.prototype,"selectedImageIndex",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],f_.prototype,"modern",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],f_.prototype,"maxNumImagesPerPost",void 0);_.R([_.P("imageUploadEndpoint"),_.n("design:type",Number),_.n("design:paramtypes",[])],f_.prototype,"maxAspectRatio",null);_.R([_.P("imageUploadEndpoint"),_.n("design:type",Number),_.n("design:paramtypes",[])],f_.prototype,"maxFileSizeMb",null);
_.R([_.P("data.icon.iconType"),_.n("design:type",Object),_.n("design:paramtypes",[])],f_.prototype,"dropIcon",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],f_.prototype,"selectionCancel",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],f_.prototype,"previewCancel",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],f_.prototype,"dataForAddImageButton",null);
_.R([_.P("errorMessage"),_.n("design:type",String),_.n("design:paramtypes",[])],f_.prototype,"dropzoneClass",null);_.R([_.P("images"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],f_.prototype,"showImagesPreview",null);_.R([_.P("images"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],f_.prototype,"containMaxImages",null);_.R([_.q5("addImageErrorMessage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f_.prototype,"observeAddImageError",null);
_.R([_.q5("showImagesPreview"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f_.prototype,"observeDragToReorder",null);_.R([_.P("images","selectedImageIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],f_.prototype,"selectedImageData",null);_.R([_.P("images","selectedImageIndex"),_.n("design:type",Array),_.n("design:paramtypes",[])],f_.prototype,"thumbnailRenderers",null);
_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f_.prototype,"onRendererstamperFinished",null);_.R([_.q5("imageUploadEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f_.prototype,"setUpImagePicker",null);_.R([_.N({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],f_);
_.J(f_,"ytd-backstage-multi-image-select-renderer",function(){if(Ouz!==void 0)return Ouz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Ouz=G},{mode:1});var Eti;var p18;var SDO;var TP=function(){var G=_.a.apply(this,arguments)||this;G.boundCaptureFocus=function(b){G.onCaptureFocus(b)};
return G};
_.M(TP,_.a);_.m=TP.prototype;_.m.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.m.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.m.onCaptureFocus=function(G){_.Wy(G).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.m.getIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.m.onSelect=function(){var G;if((G=this.data)==null?0:G.onSelectCommand)if(_.U("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var b;((b=_.g(this.data.onSelectCommand.commandMetadata,_.IW))==null?0:b.url)?_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.LL().resolve(_.xW).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.kV.Object.defineProperties(TP.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.NO(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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],TP.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],TP.prototype,"data",void 0);_.R([_.lH("#item"),_.n("design:type",HTMLElement)],TP.prototype,"item",void 0);_.R([_.P("data.label"),_.n("design:type",String),_.n("design:paramtypes",[])],TP.prototype,"label",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],TP.prototype,"value",null);_.R([_.N({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],TP);
_.J(TP,"ytd-privacy-dropdown-item-renderer",function(){if(SDO!==void 0)return SDO;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return SDO=G},{mode:1});var BW=function(){var G=_.a.apply(this,arguments)||this;G.value="";G.label="";G.disabled=!1;return G};
_.M(BW,_.a);_.m=BW.prototype;_.m.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"}}}};
_.m.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.m.dataChanged=function(){this.reset()};
_.m.valueChanged=function(){var G;if(this.value&&(G=this.data)!=null&&G.entries){G=_.e(this.data.entries);for(var b=G.next();!b.done;b=G.next())if((b=this.getRendererForEntry(b.value))&&this.getItemRendererValue(b)===this.value){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}}};
_.m.setInitialLabel=function(){if(this.data&&this.data.entries)for(var G=_.e(this.data.entries),b=G.next();!b.done;b=G.next())if(b=this.getRendererForEntry(b.value)){if(b.isSelected){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}this.data.label&&(this.label=this.data.label)}};
_.m.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var G=_.e(this.data.entries),b=G.next();!b.done;b=G.next()){b=this.getRendererForEntry(b.value);var I=void 0;if((I=b)==null?0:I.isSelected)return this.getItemRendererValue(b)||-1}return-1};
_.m.getItemRendererValue=function(G){return"stringValue"in G||"int32Value"in G?G.stringValue||G.int32Value||null:null};
_.m.getRendererForEntry=function(G){return G.dropdownItemRenderer||G.privacyDropdownItemRenderer||G.navigationDropdownItemRenderer||null};
_.m.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("value-changed",this.value))};
_.m.updateValueFromBinding=function(G){this.value=G.detail.value};
BW.prototype.valueChangedForBinding=BW.prototype.valueChangedForBinding;BW.prototype.valueChanged=BW.prototype.valueChanged;BW.prototype.dataChanged=BW.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],BW.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],BW.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],BW.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],BW.prototype,"value",void 0);_.R([_.H(),_.n("design:type",Object)],BW.prototype,"label",void 0);_.R([_.lH("#entries"),_.n("design:type",Object)],BW.prototype,"entries",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],BW.prototype,"disabled",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BW.prototype,"dataChanged",null);
_.R([_.Dd("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BW.prototype,"valueChanged",null);_.R([_.q5("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BW.prototype,"valueChangedForBinding",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],BW);
_.J(BW,"ytd-flat-dropdown-renderer",function(){if(p18!==void 0)return p18;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return p18=G},{mode:1});var X18;var UO=function(){var G=_.a.apply(this,arguments)||this;G.quizOptions=[];G.explanationPlaceholderText="";G.optionPlaceholderText="";G.correctAnswerIndex=-1;G.isMarkAnswerTooltipShown=!1;G.timer=0;return G};
_.M(UO,_.a);_.m=UO.prototype;_.m.dataChanged=function(){this.optionPlaceholderText=_.NO(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.NO(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.m.onMarkCorrectAnswer=function(G){var b,I=((b=this.quizOptions[this.correctAnswerIndex])==null?void 0:b.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(_.Nz(this.quizOptions))};
_.m.updatePlaceholderTexts=function(){for(var G=!1,b=[],I=0;I<this.quizOptions.length;I++){var h=this.optionPlaceholderText+" "+(I+1),q=void 0;((q=this.quizOptions[I])==null?void 0:q.placeholderText)!==h?(G=!0,b.push(Object.assign({},this.quizOptions[I],{placeholderText:h}))):b.push(this.quizOptions[I])}G&&(this.quizOptions=b);this.isValid()?_.O3(this.hostElement,"yt-commentbox-post-enable"):_.O3(this.hostElement,"yt-commentbox-post-disable")};
_.m.getSimpleString=function(G){return _.NO(G)};
_.m.createQuizOptions=function(G){var b=[],I;G=(I=G==null?void 0:G.minQuizOptions)!=null?I:0;for(I=0;I<G;I++)b.push(this.createQuizOption());return b};
_.m.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Nz(this.quizOptions),[this.createQuizOption()]))};
_.m.onInput=function(){this.quizOptions=[].concat(_.Nz(this.quizOptions))};
_.m.onExplanationInput=function(){_.O3(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.m.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(_.Nz(this.quizOptions));this.quizOptions.length===0&&_.O3(this.hostElement,"yt-quiz-attachment-dismiss")};
_.m.updateHintRenderer=function(){var G=this;clearTimeout(this.timer);this.timer=setTimeout(function(){G.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.m.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,b=0,I=_.e(this.quizOptions),h=I.next();!h.done;h=I.next()){h=h.value;var q=void 0;if(((q=h.optionText)==null?void 0:q.trim())!==""||h.isCorrect){h.isCorrect&&b++;q=void 0;if(this.hasCustomOptionText&&((q=h.optionText)==null?void 0:q.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;G++}}return G>=
Number(this.editorInfo.minQuizOptions)&&b===1};
_.m.getPostCreateOptions=function(){for(var G=[],b=_.e(this.quizOptions),I=b.next();!I.done;I=b.next()){I=I.value;var h=void 0;((h=I.optionText)==null?void 0:h.trim())!==""&&G.push({pollOption:{text:I.optionText,explanation:I.explanationText},isCorrect:I.isCorrect})}return G};
_.m.getExplanationText=function(){var G;return((G=this.quizOptions[this.correctAnswerIndex])==null?void 0:G.explanationText)||""};
_.m.maybeDisplayMarkAnswerEduToolTip=function(){var G,b,I,h,q,l,V;this.shouldShowMarkAnswerTooltip()&&((G=this.editorInfo)==null?0:(b=G.markAnswerButton)==null?0:(I=b.buttonRenderer)==null?0:(h=I.hint)==null?0:(q=h.hintRenderer)==null?0:(l=q.content)==null?0:(V=l.bubbleHintRenderer)==null?0:V.text)&&(_.Zg.getInstance(),G=tn(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&&_.$Q(G[0],this.optionSelectors[0]))};
_.m.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var G=0,b=_.e(this.quizOptions),I=b.next();!I.done;I=b.next()){I=I.value;var h=void 0;((h=I.optionText)==null?void 0:h.trim())!==""&&G++;if(I.isCorrect)return!1}return G<2?!1:!0};
_.m.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.m.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.m.updateOptionTextFromBinding=function(G){if(G.target){var b=Array.from(_.Eo(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(G.target);if(b>=0){var I;this.quizOptions[b].optionText=(I=G.detail.value)!=null?I:""}}};
_.kV.Object.defineProperties(UO.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var G,b,I=(G=this.editorInfo)==null?void 0:(b=G.addOptionButton)==null?void 0:b.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,b;return this.quizOptions.length<((b=(G=this.editorInfo)==null?void 0:G.maxQuizOptions)!=null?b:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(G){var b;return(b=G.optionText)==null?void 0:b.trim()})}}});
UO.prototype.updatePlaceholderTexts=UO.prototype.updatePlaceholderTexts;UO.prototype.dataChanged=UO.prototype.dataChanged;_.R([_.H(),_.n("design:type",Object)],UO.prototype,"editorInfo",void 0);_.R([_.H(),_.n("design:type",Array)],UO.prototype,"quizOptions",void 0);_.R([_.H(),_.n("design:type",Object)],UO.prototype,"explanationPlaceholderText",void 0);_.R([_.mN(".option-selector-button"),_.n("design:type",Array)],UO.prototype,"optionSelectors",void 0);
_.R([_.Dd("editorInfo"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],UO.prototype,"dataChanged",null);_.R([_.P("editorInfo","isAllowedToAddOption","quizOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],UO.prototype,"addAnswerButton",null);_.R([_.P("editorInfo","quizOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],UO.prototype,"isAllowedToAddOption",null);
_.R([_.Dd("quizOptions"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],UO.prototype,"updatePlaceholderTexts",null);_.R([_.P("quizOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],UO.prototype,"hasCustomOptionText",null);_.R([_.N({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],UO);
_.J(UO,"ytd-backstage-quiz-editor-renderer",function(){if(X18!==void 0)return X18;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return X18=G},{mode:2});var $Xe;var GuX=(IG.FIRSTDAYOFWEEK+1)%7;var bIB;var Ixb=[],h1n=0,qP8=0;h1n=0;qP8=24;if(.25*(qP8-h1n)<0)bIB=[];else{for(var jiB=h1n;jiB<qP8;jiB+=.25)Ixb.push(jiB);bIB=Ixb}var lxi=bIB.map(function(G){G=G*60*60;return{secondsSinceMidnight:G,text:(new Wj(7)).format(new Date(0,0,0,0,0,G))}});var mXA;var sO=function(){var G=_.a.apply(this,arguments)||this;G.skipNextOpenDialog=!1;G.errorMessage="";G.previousMonthLabel=_.qP("PREVIOUS_MONTH_LABEL");G.nextMonthLabel=_.qP("NEXT_MONTH_LABEL");return G};
_.M(sO,_.a);_.m=sO.prototype;_.m.attached=function(){var G=this,b=new MutationObserver(function(){G.JSC$15925_calendarMain.scrollHeight>0&&(b.disconnect(),G.calendarConfig&&G.calendarConfig.selectedDate&&G.scrollToDate())});
b.observe(this.JSC$15925_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){b.disconnect()},1E3)};
_.m.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.m.onDateTextChange=function(){if(this.calendarConfig){var G=this.validateDateText();G.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(G.details)):this.textbox.setAttribute("invalid","")}};
_.m.handleDayClick=function(G){G.model.day.date&&(this.commitDate(G.model.day.date),this.dialog.close())};
_.m.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var G=e5O(this.calendarConfig.selectedDate,this.renderData);G!==void 0&&this.JSC$15925_calendarMain.scrollToIndex(G)}};
_.m.scrollToNextMonth=function(){this.JSC$15925_calendarMain.scrollToIndex(this.JSC$15925_calendarMain.firstVisibleIndex+1)};
_.m.scrollToPrevMonth=function(){this.JSC$15925_calendarMain.firstVisibleIndex===0&&this.JSC$15925_calendarMain.scrollTo(0,0);this.JSC$15925_calendarMain.scrollToIndex(this.JSC$15925_calendarMain.firstVisibleIndex-1)};
_.m.onFormSubmit=function(G){G.preventDefault();this.calendarConfig&&(G=this.validateDateText(),G.isValid&&(this.commitDate(G.details),this.dialog.close()))};
_.m.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 b=0;b<this.dropdownButton.children.length;b++)this.dropdownButton.children[b]===G&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}G=this.textbox.value!==this.dateText;b=this.validateDateText();G&&b.isValid&&this.commitDate(b.details);this.dialog.close();this.textbox.value=
this.dateText};
_.m.commitDate=function(G){this.calendarConfig&&(this.set("calendarConfig.selectedDate",G),_.O3(this.hostElement,"ytd-calendar-date-selected",G))};
_.m.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var G=this.textbox.value;var b=new Date;G=(new z5a(2)).parse(G,b,{validate:!0})===G.length?lnO(b):void 0;if(!G)return this.errorMessage=_.qP("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};b=this.calendarConfig.start;var I=this.calendarConfig.end;if(bap(G,b))return this.errorMessage=_.qP("ENTER_DATE_OR_LATER",{allowed_date:jfj(b)}),{isValid:!1,details:void 0};if(bap(I,G))return this.errorMessage=
_.qP("ENTER_DATE_OR_EARLIER",{allowed_date:jfj(I)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:G}};
_.kV.Object.defineProperties(sO.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?jfj(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var G=this.calendarConfig,b=[],I=0;I<7;I++)b.push(IG.NARROWWEEKDAYS[(I+GuX)%7]);I=[];for(var h=new Date(G.start.year,G.start.month);h.getFullYear()<G.end.year||h.getFullYear()===G.end.year&&h.getMonth()<=G.end.month;){var q=I,l=q.push,V=h.getFullYear(),D=h.getMonth(),k=G,L=void 0,x=[],f=Object.freeze({extraCssClass:"invisible",debugClass:""}),T=new Date(V,D),B=lnO(T);T=T.getDay();for(var A=lnO(new Date);B.month===
D;){T!==GuX&&L||(L=Array.from({length:7}).fill(f),x.push(L));var t={date:{year:V,month:D,day:B.day},extraCssClass:"",debugClass:""};k.selectedDate&&t.date&&G4p(t.date,k.selectedDate)&&(t.extraCssClass+=" selected");if(bap(B,k.start)||bap(k.end,B))t.extraCssClass+=" disabled";G4p(B,A)&&(t.extraCssClass+=" today");t.extraCssClass=t.extraCssClass.trim();L[(T-GuX+7)%7]=t;B=h5u(B);T=(T+1)%7}l.call(q,{weeks:x,monthLabel:IG.SHORTMONTHS[D]+" "+V,year:V,month:D,monthLabelExtraCssClass:x[0][2]===f?"shift-down-label":
""});h.setMonth(h.getMonth()+1)}return{months:I,daysOfWeekLabel:b}}}}});
sO.prototype.onEscOrClickingOutside=sO.prototype.onEscOrClickingOutside;sO.prototype.scrollToDate=sO.prototype.scrollToDate;_.R([_.H(),_.n("design:type",Object)],sO.prototype,"calendarConfig",void 0);_.R([_.H(),_.n("design:type",Object)],sO.prototype,"skipNextOpenDialog",void 0);_.R([_.H(),_.n("design:type",Object)],sO.prototype,"errorMessage",void 0);_.R([_.H(),_.n("design:type",Object)],sO.prototype,"previousMonthLabel",void 0);
_.R([_.H(),_.n("design:type",Object)],sO.prototype,"nextMonthLabel",void 0);_.R([_.lH("#textbox"),_.n("design:type",HTMLInputElement)],sO.prototype,"textbox",void 0);_.R([_.lH("#calendar-dialog"),_.n("design:type",Object)],sO.prototype,"dialog",void 0);_.R([_.lH("#calendar-main"),_.n("design:type",Object)],sO.prototype,"JSC$15925_calendarMain",void 0);_.R([_.lH("#date-picker"),_.n("design:type",HTMLElement)],sO.prototype,"dropdownButton",void 0);
_.R([_.P("calendarConfig.selectedDate"),_.n("design:type",String),_.n("design:paramtypes",[])],sO.prototype,"dateText",null);_.R([_.P("calendarConfig","calendarConfig.selectedDate"),_.n("design:type",Object),_.n("design:paramtypes",[])],sO.prototype,"renderData",null);_.R([_.q5("renderData","calendarConfig.selectedDate"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sO.prototype,"scrollToDate",null);
_.R([_.hI("iron-overlay-canceled"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],sO.prototype,"onEscOrClickingOutside",null);_.R([_.g8({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],sO);
_.J(sO,"ytd-calendar-date-picker",function(){if(mXA!==void 0)return mXA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mXA=G},{mode:2});var e1n=_.qP("UTC_OFFSET_FORMAT",{utc_offset:(new Wj("Z")).format(new Date)}),VwW=(new Date).getTimezoneOffset()*-60,DXb=new Date,cRA,kun=Hj(DXb.getTimezoneOffset());cRA=Eo8(Sdz(kun,DXb));var vwW=_.qP("LOCAL_TIME_GMT_LABEL",{gmt_text:cRA.replace("+0","+").replace("-0","-").replace(":00","")}),go=function(){var G=_.a.apply(this,arguments)||this;G.selectedTimeIndex=0;G.selectedTimezoneIndex=0;G.timeOfDayOptions=lxi;return G};
_.M(go,_.a);_.m=go.prototype;_.m.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var G=qer();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=G,this.selectedTimeIndex=0;else{var b=mYj(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},G,{selectedDate:b.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(I){return I.secondsSinceMidnight===b.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.m.onDatePicked=function(G){this.selectedDate=G.detail};
_.m.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.O3(this.hostElement,"ytd-date-time-selection-cancelled")};
_.m.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var G=this.selectedDate;G=new Date(G.year,G.month,G.day);_.O3(this.hostElement,"ytd-date-time-selection-update",Math.floor(G.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+G.getTimezoneOffset()*60))}};
_.m.getTimezoneFormat=function(G){return G.localizedDisplayText?G.localizedDisplayText:_.qP("TIMEZONE_FORMAT",{utc_offset_text:""+G.localizedUtcOffset,city_name:""+G.localizedName})};
_.m.updateSelectedTimeIndexFromBinding=function(G){this.selectedTimeIndex=G.detail.value};
_.m.updateSelectedTimezoneIndexFromBinding=function(G){this.selectedTimezoneIndex=G.detail.value};
_.kV.Object.defineProperties(go.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=this.data.timezoneOptions;var b={name:"Etc/Unknown",localizedName:_.qP("LOCAL_TIME_LABEL"),localizedUtcOffset:e1n,utcOffsetSec:""+VwW,localizedDisplayText:vwW};G?G.length&&G[0].name!==b.name&&(G[0].localizedDisplayText||(b.localizedDisplayText=""),G.unshift(b)):G=[b];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]}}});
go.prototype.onDateTimeTimezoneChange=go.prototype.onDateTimeTimezoneChange;go.prototype.onDatePicked=go.prototype.onDatePicked;go.prototype.updateDefaultSelectedValue=go.prototype.updateDefaultSelectedValue;_.R([_.H(),_.n("design:type",Object)],go.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],go.prototype,"calendarConfig",void 0);_.R([_.H(),_.n("design:type",Object)],go.prototype,"selectedDate",void 0);_.R([_.H(),_.n("design:type",Object)],go.prototype,"selectedTimeIndex",void 0);
_.R([_.H(),_.n("design:type",Object)],go.prototype,"selectedTimezoneIndex",void 0);_.R([_.lH("#time-listbox"),_.n("design:type",Object)],go.prototype,"timeListBox",void 0);_.R([_.lH("#timezone-listbox"),_.n("design:type",Object)],go.prototype,"timezoneListBox",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],go.prototype,"rendererStamperBehavior",void 0);_.R([_.P("data.timezoneOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],go.prototype,"timeZones",null);
_.R([_.Dd("data","timeZones"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],go.prototype,"updateDefaultSelectedValue",null);_.R([_.P("selectedTimezoneIndex","timeZones"),_.n("design:type",Object),_.n("design:paramtypes",[])],go.prototype,"selectedTimezone",null);_.R([_.P("selectedTimeIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],go.prototype,"selectedTime",null);
_.R([_.hI("ytd-calendar-date-selected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],go.prototype,"onDatePicked",null);_.R([_.q5("selectedTimezone","selectedTime","selectedDate"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],go.prototype,"onDateTimeTimezoneChange",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],go);
_.J(go,"ytd-date-time-picker-renderer",function(){if($Xe!==void 0)return $Xe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return $Xe=G},{mode:1});var LwX;var AP=function(){var G=_.a.apply(this,arguments)||this;G.boundOnTapDismissButton=function(){G.dismissTapHandler()};
G.dismissButtonOverrides={size:"XS"};return G};
_.M(AP,_.a);AP.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}}}}}};
AP.prototype.dismissTapHandler=function(){_.O3(this.hostElement,"yt-backstage-attachment-dismissed")};
AP.prototype.computeAttachmentType=function(G){return G?G.backstageImageRenderer?"image":G.videoRenderer?"video":"none":"none"};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],AP.prototype,"attachmentPreview",void 0);_.R([_.H(),_.n("design:type",Object)],AP.prototype,"dismissButton",void 0);_.R([_.H(),_.n("design:type",Object)],AP.prototype,"boundOnTapDismissButton",void 0);
_.R([_.H(),_.n("design:type",Object)],AP.prototype,"dismissButtonOverrides",void 0);_.R([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.n("design:type",String)],AP.prototype,"attachmentType",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],AP);
_.J(AP,"ytd-backstage-dismissable-attachment",function(){if(LwX!==void 0)return LwX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return LwX=G},{mode:1});var Qib;var Mv=function(){var G=_.a.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};
_.M(Mv,_.a);_.m=Mv.prototype;_.m.onServiceRequestCompleted=function(G){G.stopPropagation()};
_.m.handleAddVideoPreviewAction=function(G){G=this.get("addVideoPreviewAction",G);this.onGetVideoPreviewSuccess(G)};
_.m.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}}}}}};
_.m.onLaunchVideoPicker=function(G){var b=this,I=_.NO(this.get("addVideoLinkAction.title",G)),h=this.get("addVideoLinkAction.onePickHostId",G);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",G);h&&(this.picker||(I=_.CxW(_.kCs(h).setTitle(I).addView(Wtz()).addView(H8z()),function(q){b.onPickVideo(q)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",G)||I.addView("youtube"),this.picker=I.build()),this.picker.setVisible(!0))};
_.m.onPickVideo=function(G){if(G)if(G.action==="cancel")_.O3(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()}};
_.m.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.")};
_.m.onGetVideoPreviewSuccess=function(G){if(G&&G.videoPreview&&G.cancelButton)this.videoPreview=G.videoPreview,this.cancelButton=G.cancelButton,_.O3(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.m.onGetVideoPreviewError=function(){this.cancel()};
_.m.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.O3(this.hostElement,"yt-video-link-cancel")};
_.m.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Mv.prototype.onServiceRequestCompleted=Mv.prototype.onServiceRequestCompleted;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Mv.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Mv.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Mv.prototype,"videoPreview",void 0);_.R([_.H(),_.n("design:type",Object)],Mv.prototype,"cancelButton",void 0);_.R([_.H(),_.n("design:type",Object)],Mv.prototype,"getVideoPreviewCommand",void 0);_.R([_.H(),_.n("design:type",Object)],Mv.prototype,"dismissButtonOverrides",void 0);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Mv.prototype,"onServiceRequestCompleted",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Mv);
_.J(Mv,"ytd-backstage-video-link-attachment",function(){if(Qib!==void 0)return Qib;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Qib=G},{mode:1});var xXn;var fxJ;var Tl5;var Z4=function(){return _.a.apply(this,arguments)||this};
_.M(Z4,_.a);Z4.prototype.dataChanged=function(){this.active=!1};
Z4.prototype.onTap=function(){_.O3(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Z4.prototype.identity=function(G){return G};
_.kV.Object.defineProperties(Z4.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h;if((G=this.data)==null?0:(b=G.image)==null?0:(I=b.thumbnails)==null?0:(h=I[0])==null?0:h.url)return G=this.data.image.thumbnails[0].url,G.startsWith("data:image/svg+xml")?Hg(G):_.KA(G)}}});
Z4.prototype.dataChanged=Z4.prototype.dataChanged;_.R([_.H(),_.n("design:type",Object)],Z4.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Z4.prototype,"active",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Z4.prototype,"dataChanged",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Z4.prototype,"imageSrc",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Z4);
_.J(Z4,"ytd-emoji-suggestion",function(){if(Tl5!==void 0)return Tl5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Tl5=G},{mode:1});var Ble=/.*([:@#].*?)$/,tP=function(){var G=_.a.apply(this,arguments)||this;G.suggestions=[];G.suggestionIndex=-1;G.JSC$15953_lastSuggestionRange=null;return G};
_.M(tP,_.a);_.m=tP.prototype;_.m.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.m.getSuggestions=function(G){var b=[],I=ufW(this.emojiManager,G.substr(0,3));if(I)for(var h in I)if(h.toLocaleLowerCase().indexOf(G)===0){var q=I[h];if(q&&q.emojiId){q=bh(this.emojiManager,q.emojiId);var l=void 0,V=void 0,D=void 0,k=void 0,L=((l=q)==null?0:l.isCustomEmoji)?(V=q)==null?void 0:(D=V.shortcuts)==null?void 0:D[0]:(k=q)==null?void 0:k.emojiId;l=void 0;b.push({suggestion:{image:(l=q)==null?void 0:l.image,alt:L,text:h}});if(b.length>=64)break}}return b?b.sort(function(x,f){return f.suggestion.text<
x.suggestion.text?-1:f.suggestion.text===x.suggestion.text?0:1}):null};
_.m.insertSuggestion=function(G){_.O3(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15953_lastSuggestionRange,text:G.alt});this.dropdown.opened=!1};
_.m.updateSuggestionsAtCaret=function(G){this.updateSuggestions(G,this.retrieveTextBeforeRange(G))};
_.m.offsetStartOfRangeBy=function(G,b){G.startOffset>=b&&G.setStart(G.startContainer,G.startOffset-b)};
_.m.updateSuggestions=function(G,b){var I=this;this.JSC$15953_lastSuggestionRange&&(this.JSC$15953_lastSuggestionRange.detach(),this.JSC$15953_lastSuggestionRange=null);if((b=Ble.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2||b===":_")&&(this.offsetStartOfRangeBy(G,b.length),this.JSC$15953_lastSuggestionRange=G,(G=this.getSuggestions(b))&&G.length)){this.suggestions=G;_.D1(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};
_.m.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()}};
_.m.onKeyUp=function(G,b){switch(G.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(b);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(b)}};
_.m.onKeyPress=function(G){G.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),G.preventDefault())};
_.m.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)};
_.m.retrieveTextBeforeRange=function(G){var b=G.startContainer;return b&&b.nodeType===Node.TEXT_NODE?b.textContent.substr(0,G.startOffset):""};
tP.prototype.onKeyPress=tP.prototype.onKeyPress;tP.prototype.onKeyUp=tP.prototype.onKeyUp;tP.prototype.onKeyDown=tP.prototype.onKeyDown;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Array)],tP.prototype,"suggestions",void 0);_.R([_.H(),_.n("design:type",_.$k)],tP.prototype,"emojiManager",void 0);_.R([_.H(),_.n("design:type",Number)],tP.prototype,"verticalSuggestionsOffset",void 0);
_.R([_.lH("#dropdown"),_.n("design:type",Object)],tP.prototype,"dropdown",void 0);_.R([_.lH("#dropdown-content"),_.n("design:type",HTMLDivElement)],tP.prototype,"dropdownContent",void 0);_.R([_.hI("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],tP.prototype,"onKeyDown",null);_.R([_.hI("keyup"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent,Range]),_.n("design:returntype")],tP.prototype,"onKeyUp",null);
_.R([_.hI("keypress"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],tP.prototype,"onKeyPress",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-emoji-input"})],tP);
_.J(tP,"ytd-emoji-input",function(){if(fxJ!==void 0)return fxJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fxJ=G},{mode:2});var UXX;var zP=function(){var G=_.a.apply(this,arguments)||this;G.hasMaxOptions=!1;return G};
_.M(zP,_.a);_.m=zP.prototype;_.m.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.m.setPrefilledChoices=function(G){var b=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;_.D1(this,function(){for(var h=b.pollOptions,q=_.Eo(b.hostElement).querySelectorAll(".poll-option-input"),l=0;l<q.length;l++)q[l].value=h[l]})};
_.m.focusChanged=function(){_.G8(this.hostElement)};
_.m.onInput=function(){var G=this;_.P5(this,"onInput",function(){G.isValid()?_.O3(G.hostElement,"yt-commentbox-post-enable"):_.O3(G.hostElement,"yt-commentbox-post-disable")},300)};
_.m.setPollOptions=function(){var G=[],b,I=((b=this.data)==null?0:b.minPollOptions)?this.data.minPollOptions:0;for(b=0;b<I;b++)G.push("");return G};
_.m.addPollOption=function(){var G=this;_.O3(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.uu.addLowPriorityJob(function(){var b;(b=_.Eo(G.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||b.focus()})};
_.m.onRemovePollOption=function(G){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.O3(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(),_.O3(this.hostElement,"yt-commentbox-post-enable"))))};
_.m.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.m.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var G=0,b=this.pollOptions.length;G<b;G++)if(this.pollOptions[G].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.m.getPollOptions=function(){return this.pollOptions};
_.m.setPollOptionsFromInputs=function(){for(var G=_.Eo(this.hostElement).querySelectorAll(".poll-option-input"),b=0;b<G.length;b++)this.pollOptions[b]=G[b].value.trim()};
_.m.clearPollOptions=function(){var G=_.Eo(this.hostElement).querySelectorAll(".poll-option-input");G=_.e(G);for(var b=G.next();!b.done;b=G.next())b.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.m.getSimpleString=function(G){return _.NO(G)};
_.m.updateValueFromBinding=function(G){if(G.target&&this.pollOptions){var b=Array.from(_.Eo(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(G.target);if(b>=0){var I;this.pollOptions[b]=(I=G.detail.value)!=null?I:"";this.notifyPath("pollOptions."+b)}}};
zP.prototype.dataChanged=zP.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],zP.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Array)],zP.prototype,"pollOptions",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zP.prototype,"hasMaxOptions",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],zP.prototype,"enableCreationBox",void 0);
_.R([_.lH("#repeat"),_.n("design:type",T8)],zP.prototype,"repeat",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zP.prototype,"dataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-poll-attachment"})],zP);
_.J(zP,"ytd-poll-attachment",function(){if(UXX!==void 0)return UXX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return UXX=G},{mode:2});var siz;var gwB;var ARW;var MwJ;var oH=function(){return _.a.apply(this,arguments)||this};
_.M(oH,_.a);_.kV.Object.defineProperties(oH.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],oH.prototype,"rendererBehaviors",void 0);_.R([_.H(),_.n("design:type",Object)],oH.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],oH.prototype,"focused",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("focused"),_.n("design:type",Object),_.n("design:paramtypes",[])],oH.prototype,"ariaSelected",null);_.R([_.g8({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],oH);
_.J(oH,"yt-user-mention-suggestion-renderer",function(){if(MwJ===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;ARW===void 0&&(ARW=document.createElement("template"));var h=ARW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);MwJ=G}G=MwJ;return G},{mode:2});var ZIX;var twW;var i_=function(){var G=_.a.apply(this,arguments)||this;G.focusedSuggestionIndex=-1;return G};
_.M(i_,_.a);_.m=i_.prototype;_.m.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.m.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.m.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))};
_.m.advanceSuggestion=function(G){this.focusedSuggestionIndex===-1||G!==-1&&G!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+G),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.m.ensureSuggestionVisible=function(G){G=this.getSuggestionId(G);G=_.Eo(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))};
_.m.getSuggestionId=function(G){return"user-mention-suggestion-"+G};
_.m.onSuggestionTap=function(G){var b=_.g(G.model.item,pdu);this.ytRendererBehavior.logExplicitClick(b);_.O3(this.hostElement,"yt-user-mention-suggestion-selected",{data:b,index:G.model.index})};
_.m.onSuggestionMouseMove=function(G){G.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(G.model.index)};
_.m.isSuggestionFocused=function(G,b){return G===b};
_.m.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.m.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("focused-suggestion-id-changed",this.focusedSuggestionId))};
i_.prototype.focusedSuggestionIdChangedForBinding=i_.prototype.focusedSuggestionIdChangedForBinding;i_.prototype.onDomChange=i_.prototype.onDomChange;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],i_.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],i_.prototype,"focusedSuggestionIndex",void 0);_.R([_.H({readOnly:!0}),_.n("design:type",String)],i_.prototype,"focusedSuggestionId",void 0);
_.R([_.hI("dom-change"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],i_.prototype,"onDomChange",null);_.R([_.q5("focusedSuggestionId"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],i_.prototype,"focusedSuggestionIdChangedForBinding",null);_.R([_.g8({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],i_);
_.J(i_,"yt-user-mention-suggestions-dropdown",function(){if(twW===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;ZIX===void 0&&(ZIX=document.createElement("template"));var h=ZIX;I.call(b,h.content.cloneNode(!0),G.content.firstChild);twW=G}G=twW;return G},{mode:2});var PW=function(){var G=_.a.apply(this,arguments)||this;G.suggestionsResponse=null;G.activeMention=null;G.selectionChangeListener=G.onSelectionChange.bind(G);G.handlesEnabled=_.U("enable_handles_in_mention_suggest_posts");G.handlesInMentionSuggestionsEnabled=_.U("handles_in_mention_suggest_posts");G.zeroPrefixMentionSuggestionEnabled=_.U("enable_zero_prefix_mention_suggestion_web");G.pendingQuery=null;G.flowNonce=null;return G};
_.M(PW,_.a);_.m=PW.prototype;_.m.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.m.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.m.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.m.hasSuggestions=function(G){return!!(G&&G.suggestions&&G.suggestions.length>0)};
_.m.onInput=function(){var G=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var b=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),I=this.activeMention.JSC$11416_getText().slice(-1)===" ",h=this.activeMention.JSC$11416_getText().slice(-2,-1)===" ",q="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11416_getText().slice(-2,
-1))>=0;q=this.zeroPrefixMentionSuggestionEnabled&&q;if(this.activeMention.isCollapsed()||(b||h||q)&&I)this.cancelActiveMention();else{var l=this.activeMention.JSC$11416_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.P5(this,"requestSuggestions",function(){G.requestSuggestions(l)},100)}}}};
_.m.onServiceRequestSent=function(G){G.stopPropagation()};
_.m.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))};
_.m.onServiceRequestError=function(G){G.stopPropagation()};
_.m.onUserMentionSuggestionSelected=function(G){this.selectSuggestion(G.detail.data,G.detail.index)};
_.m.onSelectionChange=function(){if(this.activeMention){var G=_.SK(),b=this.activeMention.JSC$11416_containsRange(G);G=G&&this.containsHelper(this.dropdown,G.getContainer());b||G||this.cancelActiveMention()}};
_.m.containsHelper=function(G,b){var I;if(((I=window.ShadyDOM)==null?void 0:I.noPatch)===!0)return G.contains(b);for(;b;){if(b===G)return!0;b=b instanceof ShadowRoot?b.host:b.parentNode}return!1};
_.m.maybeStartSuggest=function(){var G=_.SK();if(G&&G.isCollapsed()){var b=G.JSC$11416_getStartNode(),I=G.JSC$11416_getStartOffset();if(b instanceof Text&&!(I<1)){var h=b.textContent;!(h=h&&h.charAt(I-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(h)<0||(this.activeMention=_.Rz(b,I-1,G.JSC$11416_getEndNode(),G.JSC$11416_getEndOffset()),this.flowNonce=Bq(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.m.updateActiveMention=function(){if(this.activeMention){var G=_.SK();G&&G.isCollapsed()&&(this.activeMention=_.Rz(this.activeMention.JSC$11416_getStartNode(),this.activeMention.JSC$11416_getStartOffset(),G.JSC$11416_getEndNode(),G.JSC$11416_getEndOffset()))}};
_.m.requestSuggestions=function(G){if(this.activeMention){var b={suggestions_query:G};this.pendingQuery=G;_.pv(this.hostElement,[this.suggestionsEndpoint,b])}};
_.m.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()};
_.m.focusPreviousSuggestion=function(G){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),G.preventDefault())};
_.m.focusNextSuggestion=function(G){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),G.preventDefault())};
_.m.selectFocusedSuggestion=function(G){if(this.hasSuggestions(this.suggestionsResponse)){var b=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.g(b,pdu)&&(this.selectSuggestion(_.g(b,pdu),this.dropdown.focusedSuggestionIndex),G.preventDefault())}};
_.m.selectSuggestion=function(G,b){if(G){var I=this.activeMention;if(I){var h=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&G.handle?_.Wm(h,"\u00a0\u2068@"+G.handle+"\u2069\u00a0"):this.handlesEnabled?_.Wm(h,"\u00a0"+G.displayName+"\u00a0"):_.Wm(h,"\u00a0@"+G.displayName+"\u00a0");Ov(h,"/channel/"+G.channelId);h.classList.add("yt-formatted-string","yt-simple-endpoint");h.setAttribute("spellcheck","false");I.isCollapsed()||I.JSC$11416_removeContents();I.insertNode(h,!0);G=document.createTextNode(" ");
h.parentNode.insertBefore(G,h.nextSibling);window.getSelection().collapse(G,1);b={suggestionSelected:{suggestionIndex:b}};if(this.zeroPrefixMentionSuggestionEnabled){var q;b.suggestionSelected.isZeroPrefix=((q=this.suggestionsResponse)==null?void 0:q.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",b);this.cancelActiveMention();_.O3(this.hostElement,"yt-mention-inserted")}}};
_.m.getPositionTarget=function(G){return G&&G.getBrowserRangeObject()};
_.m.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.m.onFocusedSuggestionIdChanged=function(G){var b=_.Z_O(this.hostElement)[0];b&&(G.detail.value?b.setAttribute("aria-activedescendant",G.detail.value):b.removeAttribute("aria-activedescendant"))};
_.m.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.m.logGELEvent=function(G,b){G={eventType:G,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};b&&(G=Object.assign(G,b));_.C1("userMentionAutoCompleteBoxEvent",G)};
PW.prototype.onDomChange=PW.prototype.onDomChange;PW.prototype.onUserMentionSuggestionSelected=PW.prototype.onUserMentionSuggestionSelected;PW.prototype.onServiceRequestError=PW.prototype.onServiceRequestError;PW.prototype.onServiceRequestCompleted=PW.prototype.onServiceRequestCompleted;PW.prototype.onServiceRequestSent=PW.prototype.onServiceRequestSent;PW.prototype.onInput=PW.prototype.onInput;_.R([_.z(_.PO),_.n("design:type",Object)],PW.prototype,"ironA11yKeysBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],PW.prototype,"suggestionsEndpoint",void 0);_.R([_.H(),_.n("design:type",Object)],PW.prototype,"suggestionsResponse",void 0);_.R([_.H(),_.n("design:type",Object)],PW.prototype,"activeMention",void 0);_.R([_.lH("#dropdown"),_.n("design:type",Object)],PW.prototype,"dropdown",void 0);_.R([_.lH("#iron-dropdown"),_.n("design:type",Object)],PW.prototype,"ironDropdown",void 0);
_.R([_.hI("input"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],PW.prototype,"onInput",null);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],PW.prototype,"onServiceRequestSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],PW.prototype,"onServiceRequestCompleted",null);
_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],PW.prototype,"onServiceRequestError",null);_.R([_.hI("yt-user-mention-suggestion-selected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],PW.prototype,"onUserMentionSuggestionSelected",null);
_.R([_.hI("dom-change"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],PW.prototype,"onDomChange",null);_.R([_.g8({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],PW);
_.J(PW,"yt-user-mention-autosuggest-input",function(){if(gwB===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;siz===void 0&&(siz=document.createElement("template"));var h=siz;I.call(b,h.content.cloneNode(!0),G.content.firstChild);gwB=G}G=gwB;return G},{mode:2});var yI=null;
_.fn({is:"ytd-commentbox",_template:function(){if(xXn!==void 0)return xXn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xXn=G},
behaviors:[_.hOO.YtHostElementBehavior,_.PO,_.tV.YtActionHandlerBehavior,_.EN.YtComponentBehavior,_.kK.YtRendererstamperBehavior,_.e$n.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,b){return _.Gi(G.entities,"aadcGuidelinesStateEntityPayload",b)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(G,b){return _.Gi(G.entities,"commentboxStateEntity",b)},
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 _.I4}},
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:_.U("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.U("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",_.I9(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,b,I){this.isValidPrefilledImage_(G,b,I)&&(this.prefilledAttachment_="image",this.prefilledImageData_=b,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(G,b){this.isValidPrefilledVideo_(G,b)&&(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;_.Uc();this.focus()},
detached:function(){document.removeEventListener("tap",_.I9(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 b=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(b,G);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var G=_.SK();if(G){G=G.getBrowserRangeObject();for(var b=G.commonAncestorContainer;b;){if(b===this.getEditableTextArea_())return G;b=b.parentNode}}G=this.getEditableTextArea_();G=_.uY(G,G.childNodes.length);G.select();return G.getBrowserRangeObject()},
insertTextWithEmojis_:function(G,b,I){(b=this.emojiManager.createDocumentFragment(b,!0,!1,I===void 0?!0:I))&&b.childNodes.length!==0&&(G.collapsed||G.deleteContents(),I=b.lastChild,G.insertNode(b),_.xKe(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var G=_.SK();if(G){var b=G.JSC$11416_getStartNode(),I=G.JSC$11416_getEndNode();if(V7p(b)&&V7p(I)){var h=G.JSC$11416_getStartOffset(),q;if(_.b3&&b.nodeType===Node.ELEMENT_NODE&&(q=_.QkA(b)))_.uY(q,0).select();else{q=wQ(b)?b:_.wV(b,wQ);var l=wQ(I)?I:_.wV(I,wQ);if(q||l)if(G.isCollapsed()){if(b.nodeType===Node.TEXT_NODE){G=!0;h===b.length&&(G=!1);if(yI==="end"||yI==="right")G=!1;b=b.parentNode;G=[].concat(_.Nz(b.parentNode.childNodes)).indexOf(b)+(G?0:1);_.uY(b.parentNode,
G).select()}}else q?q.previousSibling&&q.previousSibling.length>0?_.Rz(I,G.JSC$11416_getEndOffset(),q.previousSibling,q.previousSibling.length-1).select():(b=document.createTextNode("\u200b"),q.parentNode.insertBefore(b,q),_.Rz(I,G.JSC$11416_getEndOffset(),b,0).select()):l&&(l.nextSibling&&l.nextSibling.length>0?_.Rz(b,G.JSC$11416_getStartOffset(),l.nextSibling,1).select():(I=document.createTextNode("\u200b"),l.parentNode.insertBefore(I,l.nextSibling),_.Rz(b,G.JSC$11416_getStartOffset(),I,I.length).select()));
yI=null}}else yI=null}else yI=null},
leftKeyPressed_:function(){yI="left"},
rightKeyPressed_:function(){yI="right"},
endKeyPressed_:function(){yI="end"},
maybeDeleteChip_:function(){var G=Qfr(!0);if(G){var b=_.SK(),I=b.JSC$11416_getStartNode();b=b.JSC$11416_getStartOffset();_.NH(I,b,G,G.childNodes.length).select()}},
maybeBackspaceChip_:function(){var G=Qfr(!1);if(G){var b=_.SK(),I=b.JSC$11416_getStartNode();b=b.JSC$11416_getStartOffset();_.NH(I,b,G,0).select()}},
maybeBackspaceChipWordMode_:function(G){var b=_.SK();if(b.isCollapsed()){var I=b.JSC$11416_getStartNode();b=b.JSC$11416_getStartOffset();var h=xYq(I,b,!0);h&&(_.NH(I,b,h,0).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(G){var b=_.SK();if(b.isCollapsed()){var I=b.JSC$11416_getStartNode();b=b.JSC$11416_getStartOffset();var h=xYq(I,b,!1);h&&(_.NH(I,b,h,h.childNodes.length).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
onTap_:function(G){if(!G.defaultPrevented&&(G.currentTarget.tagName==="YTD-COMMENTBOX"&&wQ(G.target)&&G.preventDefault(),this.isEmojiPickerDisplayed)){var b=this.$$("#emojis"),I=this.$$("#emoji-button"),h=this.getEditableTextArea_();if((G=G.path?G.path:G.composedPath&&G.composedPath())&&!G.includes(b)&&!G.includes(h)&&!G.includes(I))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(G,b,I){return G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b!==void 0&&b.encryptedBlobId!==null&&b.sourceExternalVideoId!==null&&I!==void 0&&I.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(G,b){return G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!b&&!!b.videoRenderer&&!!b.videoRenderer.videoId},
isValidPrefilledAttachment_:function(G,b,I){return this.isValidPrefilledImage_(G,b,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(_.U("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 _.Eo(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Eo(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,b){G=clu(G,this.emojiManager,b).cloneNode(!0);for(b=G.firstChild;b;)if(b.nodeType!==1)b=b.nextSibling;else switch(b.tagName){case "BR":var I=_.Pm();_.A4n(I,b);b=I.nextSibling;break;case "DIV":(I=b.lastChild)&&b.nextSibling&&_.Fi(_.Pm(),I);b.previousSibling&&(b.previousSibling.nodeType===1||b.previousSibling.nodeType===3&&!b.previousSibling.textContent.endsWith("\n"))&&_.rt(_.Pm(),b);I&&I.nodeName==="BR"&&_.iG(I);I=b;b.hasChildNodes()?(b=b.firstChild,
_.MSW(I)):(b=b.nextSibling,_.iG(I));break;default:b=b.nextSibling}return fnu(G)},
onAddImageError_:function(G){G.stopPropagation();this.errorMessage_=_.ao(G.detail)},
setTextAreaValue_:function(G){G||(G="");var b=this.getEditableFormattedString_();b.text="";this.getEditableTextArea_().innerText="";typeof G==="string"&&(G={runs:[{text:G}]});b.text=G},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();yI=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var G=this.getEditableTextArea_();G&&(_.uY(G,G.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.wy("HTML_DIR")==="rtl"){var G=this.getEditableTextArea_(),b=this.getTextAreaValue()!==""?"auto":"rtl";G.setAttribute("dir",b)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var G;return XnO((G=this.$["quiz-attachment"])==null?void 0:G.getExplanationText())||XnO(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var G=null;if(this.isEmojiButtonDisplayed){var b=this.getInputRange_();b&&(G=this.emojiInput.retrieveTextBeforeRange(b))}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,b,I){b=b===void 0?!1:b;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&G){var h=this.getInputRange_().cloneRange();this.emojiManager&&h&&(b&&this.emojiInput.offsetStartOfRangeBy(h,G.length),this.insertTextWithEmojis_(h,G,I),DYX(this.getEditableTextArea_().lastChild)||(h=this.getInputRange_().cloneRange()),h&&(this.emojiInput.updateSuggestions(h,G),this.updateSuggestionOffset_(h)))}},
setSubmitButton_:function(){if(this.data){var G=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",b=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(G||b){var I=this.getTextAreaValue().trim();b=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=
b||I||!this.getTextLength();G&&_.U("enable_post_scheduling")&&(this.submitButtonDisabled=b&&!this.scheduledPublishTimeSec_||I)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.NO,computeCreationBoxClass_:function(G){return G?"focused":"not-focused"},
computeFooterMessageClass_:function(G,b){return b?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(G,b){return b?b:G},
computeFooterMessageHidden_:function(G,b){return!b&&!G},
computePlaceholderText_:function(G,b,I){return(I==="video"||I==="image")&&(G==null?0:G.prefilledPlaceholderText)?G==null?void 0:G.prefilledPlaceholderText:b==="poll"||b==="image-poll"?G==null?void 0:G.pollPostPlaceholderText:b==="quiz"?G==null?void 0:G.quizPostPlaceholderText:b==="image"?G==null?void 0:G.imagePostPlaceholderText:G==null?void 0:G.placeholderText},
computeHideAttachmentButtons_:function(G,b,I,h){return G===void 0?!1:h&&this.getSimpleString(h)===this.getSimpleString(G.rateLimitErrorMessage)?!0:b!=="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,b){return G&&!b?24:40},
computeImageUploadEndpoint_:function(G){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",G)},
computeRateLimitErrorCommands_:function(G){var b,I;return G==null?void 0:(b=G.advancedTierFeatures)==null?void 0:(I=b.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(_.U("web_modern_buttons")){var G,b;return{segmentedPosition:this.dropdownSchedulePanel_||!((G=this.data)==null?0:(b=G.postOptionsMenu)==null?0:b.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.U("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(G,b){G=this.get("submitButton.buttonRenderer",G)||this.get("replyButton.buttonRenderer",G)||this.get("postButton.buttonRenderer",G);b&&(G=b);G&&(G=Object.assign({},G),G.serviceEndpoint=void 0,G.isDisabled=this.submitButtonDisabled);return G},
computeHasExternalLinksAccess_:function(G){if(_.U("enable_rfa_external_links")){var b,I,h;return(h=G==null?void 0:(b=G.advancedTierFeatures)==null?void 0:(I=b.externalLinks)==null?void 0:I.allowExternalLinks)!=null?h:!0}return!0},
computeIsEmojiButtonDisplayed_:function(G){return G.emojiButton&&G.emojiPicker&&G.emojiPicker.emojiPickerRenderer&&G.emojiPicker.emojiPickerRenderer.categories?G.emojiPicker.emojiPickerRenderer.categories.find(function(b){return b.emojiPickerCategoryRenderer?b.emojiPickerCategoryRenderer.emojiIds&&b.emojiPickerCategoryRenderer.emojiIds.length>0:b.emojiPickerUpsellCategoryRenderer?b.emojiPickerUpsellCategoryRenderer.emojis&&b.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(G){return G.charLimit?G.charLimit:null},
computeDropdownSchedulingPanel_:function(G,b){if(G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b)return b},
computeInlineSchedulingPanel_:function(G,b){if(G==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&b)return b},
computeHideAuthorThumbnail_:function(G,b){return G||this.computeUseIdentityChip_(b)},
computeHideIdentityChipRenderer_:function(G,b){return G||!this.computeUseIdentityChip_(b)},
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 b,I,h,q;(G==null?0:(b=G.detail)==null?0:(I=b.endpoint)==null?0:I.ypcGetOffersEndpoint)||(G==null?0:(h=G.detail)==null?0:(q=h.endpoint)==null?0:q.ypcOffersEndpoint)?(G.stopPropagation(),_.pv(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 b=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(){b.focus()})},
onYtServiceRequestSent_:function(G,b){if(b.actions)for(G=_.e(b.actions),b=G.next();!b.done;b=G.next())b.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(G){this.isLoading=!1;var b=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",G),I,h,q,l=G==null?void 0:(I=G.detail)==null?void 0:(h=I.data)==null?void 0:(q=h.actionResult)==null?void 0:q.commentboxStateEntityKey;if(b)this.errorMessage_=b;else if(l){var V;this.dismissData_=G==null?void 0:(V=G.detail)==null?void 0:V.data;this.commentboxStateKey_=l}else{this.clear();var D;this.fire("yt-commentbox-dismiss",G==null?void 0:(D=G.detail)==
null?void 0:D.data)}},
onYtServiceRequestError_:function(G){G.stopPropagation();this.isLoading=!1;var b,I;if(((b=this.data)==null?void 0:b.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((I=this.data)==null?void 0:I.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(b=this.get("detail.error.args",G)||[],b.length>1&&b[1].message){this.handlePostsServiceRequestError_(b[1].message);return}(G=this.get("detail.error.message",G))?this.errorMessage_=this.data.errorMessage||_.ao(G):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(G){if(_.U("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var b=_.e(this.rateLimitErrorCommands),I=b.next();!I.done;I=b.next())if(I=I.value,I.errorLabel===G){_.$Q(I.command,this.hostElement);return}this.errorMessage_=_.ao(G)},
submitIfNotBackstagePost_:function(G){if(!this.isBackstagePost)this.onSubmit_(G)},
onSubmit_:function(G){var b=this,I,h,q,l,V,D,k,L,x,f,T,B,A,t,y;return _.c(function(F){switch(F.nextAddress){case 1:G.stopPropagation();if(!b.serviceEndpoint||!b.isValidInput_())return F.return();if(b.shouldShowPostAadcNotice_())return b.showPostAadcNotice_(),F.return();if(b.shouldShowCommentAadcNotice_())return b.showCommentAadcNotice_(),F.return();if(!(b.$$("ytd-backstage-multi-image-select-renderer")&&b.hasImage_&&_.U("enable_multi_image_post_creation"))){F.jumpTo(2);break}I=b.$$("ytd-backstage-multi-image-select-renderer");
return F.yield(I.getAllUploadStatuses(),3);case 3:h=F.yieldResult;if(!h)return F.return();q=_.e(h);for(l=q.next();!l.done;l=q.next())if(V=l.value,V.encryptedBlobId===void 0)return b.isLoading=!1,k=D=void 0,b.errorMessage_=(k=(D=b.imageUploadEndpoint_)==null?void 0:D.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?k:null,F.return();return F.return(b.submitForm_(void 0,void 0,void 0,void 0,I.images,b.taggedVideoId_));case 2:if(!b.hasImagePoll_||!b.$["image-poll-attachment"]){F.jumpTo(4);
break}return F.yield(b.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:L=F.yieldResult;if(!L)return F.return();x=_.e(L);for(f=x.next();!f.done;f=x.next())if(T=f.value,!T.encryptedBlobId)return b.isLoading=!1,B=void 0,b.errorMessage_=(B=b.data.errorMessage)!=null?B:null,F.return();case 4:t=(A=b.$$("ytd-backstage-image-select-renderer"))&&A.uploadPromise(),y=b.getSharedPostId_(),t?t.then(function(){b.submitForm_.apply(b,_.Nz(_.RI.apply(0,arguments)))}).catch(function(W){b.isLoading=!1;
b.errorMessage_=_.ao(W.message)}):b.selectedVideoId_?b.submitForm_(void 0,b.selectedVideoId_):b.prefilledAttachment_==="image"?b.submitForm_(b.prefilledImageData_.encryptedBlobId,void 0,void 0,b.prefilledImageData_.sourceExternalVideoId,void 0,b.taggedVideoId_):b.prefilledAttachment_==="video"?b.submitForm_(void 0,b.data.backstageAttachment.videoRenderer.videoId):y?b.submitForm_(void 0,void 0,y):b.taggedVideoId_!==void 0?b.submitForm_(void 0,void 0,void 0,void 0,void 0,b.taggedVideoId_):b.submitForm_(),
_.ip(F)}})},
openSchedulingPanel:function(G){G&&G.scheduleButton&&G.scheduleButton.buttonRenderer&&(this.scheduleButton_=G.scheduleButton.buttonRenderer);G&&G.dateTimePicker&&this.set("data.schedulingDateTimePicker",G.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(G){G.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(G){G.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(G){G.stopPropagation();G.detail.alertMessage&&(this.alertMessage_=G.detail.alertMessage)},
onImageSelected_:function(G){G.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(G){G.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(G){G.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(G.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(G){G.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(G){var b=this.$["video-link-attachment"];b&&b.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"&&_.U("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.U("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 b;if(this.addedAttachment==="quiz"&&((b=this.$["quiz-attachment"])==null||!b.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,b,I,h,q,l){var V=this.getTextAreaValue().trim(),D={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&V===this.previousText_&&(V=void 0);V!==void 0&&(D.comment_text=V);this.isLoading=!0;l!=void 0&&(D.tagged_video_id=l);G?(D.image_blob_id=G,this.imagePreviewCoordinates_&&(D.image_preview_coordinates=this.imagePreviewCoordinates_)):b?D.attached_video_id=b:I?D.shared_post_id=I:q&&q.length>0&&(D.images_data=q.map(function(k){return{encryptedBlobId:k.encryptedBlobId,
previewCoordinates:k.previewCoordinates}}));
h&&(D.source_video_id=h);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(D.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(D.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(D.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(D.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.U("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(D.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.pv(this,[this.serviceEndpoint,D])},
onIsInputFocusChanged_:function(G,b){G?this.fire("yt-autonav-pause-focus"):b!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(G){var b=this.getEditableTextArea_();[].concat(_.Nz(G.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(h){b.appendChild(document.createTextNode(h))})});
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,b){return!b||G?"":"with-options"},
updateSuggestionOffset_:function(G){if(this.emojiInput&&_.Eo(this.emojiInput).querySelector("#dropdown")){var b=this.getEditableTextArea_().getBoundingClientRect().bottom,I=G.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(b-I)+5;b=this.getEditableTextArea_().getBoundingClientRect().left;G=G.getBoundingClientRect().left-b;_.Eo(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(_.U("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 b=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(b)||b!==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"];_.U("auto_convert_posts_video_tag")||G.push("video-link-button");return G},
getButtonRenderer:function(G,b){if(G)switch(b){case "video-link-button":var I;return((I=G.videoLinkButton)==null?void 0:I.buttonRenderer)||void 0;case "image-button":var h;return((h=G.imageButton)==null?void 0:h.buttonRenderer)||void 0;case "poll-button":var q;return((q=G.pollButton)==null?void 0:q.buttonRenderer)||void 0;case "image-poll-button":var l;return((l=G.imagePollButton)==null?void 0:l.buttonRenderer)||void 0;case "quiz-button":var V;return((V=G.quizButton)==null?void 0:V.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,b;return!((G=this.data)==null||!G.openAadcDialog)&&!((b=this.aadcGuidelinesState_)==null||!b.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.wy("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 _.EA("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(G){G.clickTrackingParams&&_.qo().clickCommand(G);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.wL(this,"yt-close-popup-action")},
onHideIdentityChip:function(G){var b;this.set("data.placeholderText",(b=G.hideIdentityChipAction)==null?void 0:b.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var ro=function(){var G=_.a.apply(this,arguments)||this;G.isOpen=!1;G.modern=_.U("web_modern_buttons");G.roundedContainer=!0;G.dropdownButtonOverride=_.U("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;G.inPopupContainer=!1;G.isCommentboxLoading=!1;var b=["image-button","image-poll-button","poll-button"];_.U("enable_quiz_creation")&&b.push("quiz-button");_.U("auto_convert_posts_video_tag")||b.push("video-link-button");G.attachmentButtonIds=b;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};
_.M(ro,_.a);_.m=ro.prototype;_.m.computeButtonOverride=function(){var G;return((G=this.data)==null?0:G.postOptionsMenu)&&_.U("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.m.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]]"}}}}};_.U("auto_convert_posts_video_tag")||(G["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return G};
_.m.ready=function(){var G=this,b=_.Eo(this.hostElement).querySelector("#placeholder-area"),I=function(h){G.onOpen(h)};
b.addEventListener("tap",I);b.addEventListener("keypress",I)};
_.m.showButtonEduTooltip=function(){var G,b,I,h,q,l,V;if(_.U("enable_quiz_creation")&&((G=this.data)==null?0:(b=G.quizButton)==null?0:(I=b.buttonRenderer)==null?0:(h=I.hint)==null?0:(q=h.hintRenderer)==null?0:(l=q.content)==null?0:(V=l.bubbleHintRenderer)==null?0:V.text)&&(_.Zg.getInstance(),G=tn(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 D;if((D=this.data)==null?0:D.imagePollButtonTooltip)if(_.Zg.getInstance(),D=tn(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(D==null?void 0:D.length)>0){this.ytComponentBehavior.resolveCommand(D[0],{form:{element:this.imagePollButton}});return}var k;_.U("enable_multi_image_post_creation")&&
((k=this.data)==null?0:k.multiImageButtonTooltip)&&(_.Zg.getInstance(),k=tn(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(k==null?void 0:k.length)>0&&this.ytComponentBehavior.resolveCommand(k[0],{form:{element:this.imageButton}}))};
_.m.onCreatePollAction=function(G){_.g(G,szO)&&(this.JSC$16008_commentbox.addedAttachment="poll",this.openDialog())};
_.m.onAddVideoLinkAction=function(G){if(_.g(G,fQJ))this.JSC$16008_commentbox.onAddVideoLink(G)};
_.m.onShowSchedulingPanelCommand=function(G){(G=_.g(G,O6n))&&this.openSchedulingPanel(G)};
_.m.onCreateImagePollCommand=function(G){_.g(G,OPb)&&(this.JSC$16008_commentbox.openImagePollComponent(),this.openDialog())};
_.m.onCreateQuizCommand=function(G){_.g(G,w6Q)&&(this.JSC$16008_commentbox.openQuizComponent(),this.openDialog())};
_.m.openSchedulingPanel=function(G){_.U("enable_post_scheduling")&&(this.openDialog(),this.JSC$16008_commentbox.openSchedulingPanel(G))};
_.m.onCreateCommentAction=function(G){this.get("createCommentAction.contents",G)&&(this.JSC$16008_commentbox.clear(),this.closeDialog())};
_.m.onOpen=function(G){G instanceof KeyboardEvent&&G.type==="keypress"&&G.keyCode!==13&&G.keyCode!==32||(this.data.prepareAccountEndpoint?_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.m.onYtCommentboxDismiss=function(){this.closeDialog()};
_.m.onYtCommentboxLoadingStart=function(G){G.stopPropagation();this.isCommentboxLoading=!0};
_.m.onYtCommentboxLoadingEnd=function(G){G.stopPropagation();this.isCommentboxLoading=!1};
_.m.onYtVideoLinkButtonCancel=function(G){G.stopPropagation();this.onOpen(G)};
_.m.onYtVideoLinkSelected=function(G){G.stopPropagation();this.onOpen(G)};
_.m.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)};
_.m.onYtNavigate=function(G){this.get("detail.endpoint.backstageImageUploadEndpoint",G)&&(this.JSC$16008_commentbox.addedAttachment="image",this.JSC$16008_commentbox.submitButtonDisabled=!0,this.onOpen(G))};
_.m.onRequestSent=function(G){for(var b=_.e(G.detail),I=b.next();!I.done;I=b.next())_.g(I.value,jSX)&&(this.JSC$16008_commentbox.addedAttachment="image",this.JSC$16008_commentbox.submitButtonDisabled=!0,this.onOpen(G))};
_.m.openDialog=function(){var G;(G=this.data)!=null&&G.isIneligibleForCommunityPagePostCreation||(this.JSC$16008_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16008_commentbox.focus())};
_.m.onPopupClosed=function(){_.Zg.getInstance()};
_.m.computeCreationDisabled=function(G){return!!G};
_.m.computeIsCreationDialog=function(G){return!!G&&G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.m.computeDisabledPostButton=function(G){if(!G)return null;G.isDisabled=!0;return G};
_.m.computeIsCreationDialogWithHeader=function(G){return!this.inPopupContainer&&!!G&&!!G.authorText&&G.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.m.computeIsHeaderHidden=function(G,b){return!G||b};
_.m.computeDropdownRendererClasses=function(G){return G?["text-secondary-style"]:[]};
_.m.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var G=_.Eo(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;G&&G.reset()};
ro.prototype.onPopupClosed=ro.prototype.onPopupClosed;ro.prototype.onRequestSent=ro.prototype.onRequestSent;ro.prototype.onYtNavigate=ro.prototype.onYtNavigate;ro.prototype.onIronSelect=ro.prototype.onIronSelect;ro.prototype.onYtVideoLinkSelected=ro.prototype.onYtVideoLinkSelected;ro.prototype.onYtVideoLinkButtonCancel=ro.prototype.onYtVideoLinkButtonCancel;ro.prototype.onYtCommentboxLoadingEnd=ro.prototype.onYtCommentboxLoadingEnd;ro.prototype.onYtCommentboxLoadingStart=ro.prototype.onYtCommentboxLoadingStart;
ro.prototype.onYtCommentboxDismiss=ro.prototype.onYtCommentboxDismiss;ro.prototype.showButtonEduTooltip=ro.prototype.showButtonEduTooltip;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],ro.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ro.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],ro.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ro.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ro.prototype,"isOpen",void 0);_.R([_.H({computed:"computeButtonOverride(data)"}),_.n("design:type",Object)],ro.prototype,"buttonOverride",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ro.prototype,"modern",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ro.prototype,"roundedContainer",void 0);_.R([_.H(),_.n("design:type",Object)],ro.prototype,"dropdownButtonOverride",void 0);_.R([_.H({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.n("design:type",Boolean)],ro.prototype,"creationDisabled",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],ro.prototype,"enableCreationBox",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.n("design:type",Boolean)],ro.prototype,"isCreationDialog",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ro.prototype,"inPopupContainer",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.n("design:type",Boolean)],ro.prototype,"isCreationDialogWithHeader",void 0);_.R([_.H(),_.n("design:type",Object)],ro.prototype,"accessRestriction",void 0);
_.R([_.H({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.n("design:type",Array)],ro.prototype,"dropdownRendererClasses",void 0);_.R([_.H(),_.n("design:type",Object)],ro.prototype,"isCommentboxLoading",void 0);_.R([_.H(),_.n("design:type",Array)],ro.prototype,"attachmentButtonIds",void 0);_.R([_.lH("#image-button"),_.n("design:type",HTMLElement)],ro.prototype,"imageButton",void 0);
_.R([_.lH("#image-poll-button"),_.n("design:type",HTMLElement)],ro.prototype,"imagePollButton",void 0);_.R([_.lH("#quiz-button"),_.n("design:type",HTMLElement)],ro.prototype,"quizButton",void 0);_.R([_.lH("#commentbox"),_.n("design:type",Object)],ro.prototype,"JSC$16008_commentbox",void 0);_.R([_.q5("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ro.prototype,"showButtonEduTooltip",null);
_.R([_.hI("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ro.prototype,"onYtCommentboxDismiss",null);_.R([_.hI("yt-commentbox-loading-start"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ro.prototype,"onYtCommentboxLoadingStart",null);
_.R([_.hI("yt-commentbox-loading-end"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ro.prototype,"onYtCommentboxLoadingEnd",null);_.R([_.hI("yt-video-link-button-cancel"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ro.prototype,"onYtVideoLinkButtonCancel",null);
_.R([_.hI("yt-video-link-selected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ro.prototype,"onYtVideoLinkSelected",null);_.R([_.hI("iron-select"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ro.prototype,"onIronSelect",null);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ro.prototype,"onYtNavigate",null);
_.R([_.hI("yt-service-request-sent-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ro.prototype,"onRequestSent",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ro.prototype,"onPopupClosed",null);_.R([_.N({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],ro);
_.J(ro,"ytd-backstage-post-dialog-renderer",function(){if(Eti!==void 0)return Eti;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Eti=G},{mode:1});var z1Q;var owi;var Fw=function(){return _.a.apply(this,arguments)||this};
_.M(Fw,_.a);_.m=Fw.prototype;_.m.computeHeartButtonStyle=function(G){return(G==null?0:G.styleType)?G.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.m.onYtButtonTap=function(){if(this.data.isEnabled){var G=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(G=this.getEndpoint(G))&&_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}})}else(G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(G)};
_.m.toggle=function(G){this.set("data.isHearted",G!==void 0?G:!this.data.isHearted)};
_.m.getEndpoint=function(G){var b,I=(b=this.data)==null?void 0:b.heartEndpoint,h;b=(h=this.data)==null?void 0:h.unheartEndpoint;if(I&&b)return G?b:I};
_.m.computeButtonAccessibility=function(G,b){var I,h,q=G==null?void 0:(I=G.heartedAccessibility)==null?void 0:(h=I.accessibilityData)==null?void 0:h.label,l,V;G=G==null?void 0:(l=G.unheartedAccessibility)==null?void 0:(V=l.accessibilityData)==null?void 0:V.label;return b?q:G};
_.kV.Object.defineProperties(Fw.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 _.U("kevlar_system_icons")&&!((G=this.data)==null||!G.isHearted)}}});
Fw.prototype.onYtButtonTap=Fw.prototype.onYtButtonTap;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],Fw.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Fw.prototype,"data",void 0);_.R([_.P("data.isHearted"),_.n("design:type",Object),_.n("design:paramtypes",[])],Fw.prototype,"heartTooltip",null);
_.R([_.P("data.isHearted"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Fw.prototype,"iconFilled",null);_.R([_.H({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.n("design:type",String)],Fw.prototype,"buttonAccessibility",void 0);_.R([_.H({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.n("design:type",String)],Fw.prototype,"heartButtonStyle",void 0);
_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fw.prototype,"onYtButtonTap",null);_.R([_.N({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Fw);
_.J(Fw,"ytd-creator-heart-renderer",function(){if(owi!==void 0)return owi;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-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(_.E().content.cloneNode(!0),
G.content.firstChild);return owi=G},{mode:1});var HW=function(){var G=_.a.apply(this,arguments)||this;G.hasCreatorReply=!1;G.buttonOverrides={size:"S",iconPosition:"icon-only"};G.replyButtonOverrides={size:"S",type:"text"};G.forceIconButton=!_.U("web_modern_buttons");G.modern=_.U("web_modern_buttons");G.buttonTooltipPosition="bottom";G.systemIcons=_.U("kevlar_system_icons");G.replyDialog=null;return G};
_.M(HW,_.a);_.m=HW.prototype;
_.m.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]]"}}}}}};
_.m.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.m.dataChange=function(){this.replyDialog&&_.Eo(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var G,b,I;this.isLiked=this.systemIcons&&!!((G=this.data)==null?0:(b=G.likeButton)==null?0:(I=b.toggleButtonRenderer)==null?0:I.isToggled)};
_.m.computeShowVoteCountBeginning=function(G,b){return G===void 0||b===void 0?!0:G.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.m.computeShowVoteCountEnd=function(G,b){return G===void 0||b===void 0?!0:G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.m.computeShowCommentCount=function(G,b){return G===void 0||b===void 0?!0:G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.m.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.m.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.m.showReplyDialog=function(G){G&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Eo(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=G,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.m.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.m.onRequestSent=function(G){G=_.e(G.detail);for(var b=G.next();!b.done;b=G.next())(b=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",b.value))&&this.showReplyDialog(b)};
_.m.onYtNavigate=function(G){var b,I;(G=(b=_.g(G.detail.endpoint,_.mDJ))==null?void 0:(I=b.dialog)==null?void 0:I.commentReplyDialogRenderer)&&this.showReplyDialog(G)};
_.m.onYtServiceRequestSent=function(G,b){G.stopPropagation();if(b.actions)for(G=0;G<b.actions.length;G++){var I=_.g(b.actions[G],za5);I&&this.handleUpdateCommentVoteAction(I)}};
_.m.handleUpdateCommentVoteAction=function(G){this.voteCount=G.voteCount||_.ao("0");G.voteStatus==="LIKE"?this.JSC$16020_ytdDislikeToggleButtonRenderer.toggle(!1):G.voteStatus==="DISLIKE"?this.JSC$16020_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16020_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16020_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.m.computeReplyButtonHidden=function(G){return G};
_.m.computeReplyButtonBeginning=function(G){return(G==null?0:G.replyButton)&&G.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?G.replyButton:void 0};
_.m.computeReplyButtonEnd=function(G){return(G==null?0:G.replyButton)&&G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?G.replyButton:void 0};
_.m.computeActionButtonStyle=function(G){return(G==null?0:G.style)?G.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.m.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.m.onYtToggleButton=function(G){var b,I;this.isLiked=this.systemIcons&&!!((b=G.detail)==null?0:(I=b.actions)==null?0:I.like)};
HW.prototype.onYtToggleButton=HW.prototype.onYtToggleButton;HW.prototype.onButtonTooltipPositionChanged=HW.prototype.onButtonTooltipPositionChanged;HW.prototype.onYtServiceRequestSent=HW.prototype.onYtServiceRequestSent;HW.prototype.onYtNavigate=HW.prototype.onYtNavigate;HW.prototype.onRequestSent=HW.prototype.onRequestSent;HW.prototype.onYtCommentboxDismiss=HW.prototype.onYtCommentboxDismiss;HW.prototype.dataChange=HW.prototype.dataChange;
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],HW.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],HW.prototype,"voteCount",void 0);_.R([_.H(),_.n("design:type",Object)],HW.prototype,"commentCount",void 0);_.R([_.H(),_.n("design:type",Object)],HW.prototype,"replyThumbnail",void 0);
_.R([_.H(),_.n("design:type",Object)],HW.prototype,"hasCreatorReply",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],HW.prototype,"enableCreationBox",void 0);_.R([_.H({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.n("design:type",String)],HW.prototype,"actionButtonsStyle",void 0);_.R([_.H({computed:"computeReplyButtonBeginning(data)"}),_.n("design:type",Object)],HW.prototype,"replyButtonBeginning",void 0);
_.R([_.H({computed:"computeReplyButtonEnd(data)"}),_.n("design:type",Object)],HW.prototype,"replyButtonEnd",void 0);_.R([_.H(),_.n("design:type",Object)],HW.prototype,"buttonOverrides",void 0);_.R([_.H(),_.n("design:type",Object)],HW.prototype,"replyButtonOverrides",void 0);_.R([_.H(),_.n("design:type",Object)],HW.prototype,"forceIconButton",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],HW.prototype,"useCommentIcon",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],HW.prototype,"modern",void 0);_.R([_.H(),_.n("design:type",Object)],HW.prototype,"buttonTooltipPosition",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],HW.prototype,"systemIcons",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],HW.prototype,"isLiked",void 0);_.R([_.lH("ytd-button-renderer"),_.n("design:type",Object)],HW.prototype,"ytdReplyButtonRenderer",void 0);
_.R([_.lH("#like-button"),_.n("design:type",Object)],HW.prototype,"JSC$16020_ytdLikeToggleButtonRenderer",void 0);_.R([_.lH("#dislike-button"),_.n("design:type",Object)],HW.prototype,"JSC$16020_ytdDislikeToggleButtonRenderer",void 0);_.R([_.lH("#reply-dialog"),_.n("design:type",HTMLElement)],HW.prototype,"replyDialogElement",void 0);_.R([_.lH("#reply-button"),_.n("design:type",HTMLElement)],HW.prototype,"replyButtonElement",void 0);
_.R([_.lH("#reply-button-end"),_.n("design:type",HTMLElement)],HW.prototype,"replyButtonEndElement",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HW.prototype,"dataChange",null);_.R([_.hI("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],HW.prototype,"onYtCommentboxDismiss",null);
_.R([_.hI("yt-service-request-sent-button-renderer"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],HW.prototype,"onRequestSent",null);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],HW.prototype,"onYtNavigate",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],HW.prototype,"onYtServiceRequestSent",null);_.R([_.q5("buttonTooltipPosition"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HW.prototype,"onButtonTooltipPositionChanged",null);
_.R([_.hI("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],HW.prototype,"onYtToggleButton",null);_.R([_.N({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],HW);
_.J(HW,"ytd-comment-action-buttons-renderer",function(){if(z1Q!==void 0)return z1Q;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return z1Q=G},{mode:1});var iIQ;var WW=function(){return _.a.apply(this,arguments)||this};
_.M(WW,_.a);WW.prototype.focus=function(){_.Eo(this.hostElement).querySelector("#commentbox").focus()};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],WW.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],WW.prototype,"zeroStepChannelCreationRenderer",void 0);_.R([_.N({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],WW);
_.J(WW,"ytd-comment-dialog-renderer",function(){if(iIQ!==void 0)return iIQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return iIQ=G},{mode:1});var PqJ;var aH=function(){var G=_.a.apply(this,arguments)||this;G.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.U("enable_web_delhi_icons")};G.replyButtonOverrides={size:"S",type:"text"};return G};
_.M(aH,_.a);_.m=aH.prototype;_.m.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.m.detached=function(){this.replyBox&&this.replyBox.remove()};
_.m.showReplyDialog=function(G){if(G){var b=this.replyBox;b||(b=document.createElement("ytd-comment-reply-dialog-renderer"),b.id="replybox",_.Eo(this.replyDialogDiv).appendChild(b));b.data=G;this.replyDialogDiv.hidden=!1;b.openDialog()}};
_.m.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.m.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var G,b=_.g((G=this.toolbarSurface)==null?void 0:G.subscribersOnlyDisclaimerSnackbarCommand,_.U0);b&&_.O3(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:b})}};
_.m.onYtServiceRequestSent=function(G,b){G.stopPropagation();if(b.actions)for(var I=0;I<b.actions.length;I++){var h=_.g(b.actions[I],za5);h?this.handleUpdateCommentVoteAction(h):G.target===this.heartButton&&this.toggleHeartState()}};
_.m.handleUpdateCommentVoteAction=function(G){var b;(b=this.toolbarState)!=null&&b.key&&this.ytdReduxBehavior.dispatch(_.BR("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:G.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":G.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.m.toggleHeartState=function(){var G;(G=this.toolbarState)!=null&&G.key&&this.ytdReduxBehavior.dispatch(_.BR("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.kV.Object.defineProperties(aH.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return(((G=this.toolbarState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(b=this.toolbarData)==null?void 0:b.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&&!_.U("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G,b=_.g((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand,_.U0),I,h,q,l,V,D,k,L,x;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((h=this.toolbarState)==null?void 0:h.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:b!=null?b:_.g((q=this.toolbarSurface)==null?void 0:q.likeCommand,_.U0),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.g((l=this.toolbarSurface)==null?void 0:l.unlikeCommand,_.U0),defaultCommand:this.isVisiblyDisabled?_.g((V=this.toolbarSurface)==null?void 0:V.commentDisabledActionCommand,_.U0):void 0,defaultTooltip:(D=this.toolbarData)==null?void 0:D.likeInactiveTooltip,toggledTooltip:(k=this.toolbarData)==null?void 0:k.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(L=this.toolbarData)==null?void 0:L.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(x=this.toolbarSharedData)==null?void 0:x.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G,b=_.g((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand,_.U0),I,h,q,l,V,D,k,L,x,f;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((h=this.toolbarState)==null?void 0:h.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.g((q=this.toolbarSurface)==null?void 0:q.dislikeCommand,_.U0),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.g((l=this.toolbarSurface)==null?void 0:l.undislikeCommand,_.U0),defaultCommand:this.isVisiblyDisabled?_.g((V=this.toolbarSurface)==null?void 0:V.commentDisabledActionCommand,_.U0):void 0,defaultTooltip:(D=this.toolbarData)==null?void 0:D.dislikeInactiveTooltip,toggledTooltip:(k=this.toolbarData)==null?void 0:
k.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(L=this.toolbarSharedData)==null?void 0:L.dislikeReplyButtonA11y:(x=this.toolbarSharedData)==null?void 0:x.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(f=this.toolbarSharedData)==null?void 0:f.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var G,b,I;if(((G=this.toolbarState)==null?void 0:G.heartState)!==void 0&&((b=this.toolbarState)==null?void 0:b.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((I=this.toolbarState)==null?void 0:I.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var h,q,l,V,D,k,L,x,f,T,B,A,t,y;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(h=this.toolbarData)==null?void 0:h.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((q=this.toolbarState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((l=this.toolbarState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((V=this.toolbarState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((D=this.toolbarState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.g((k=this.toolbarSurface)==null?void 0:k.heartCommand,
_.U0),unheartEndpoint:this.isVisiblyDisabled?void 0:_.g((L=this.toolbarSurface)==null?void 0:L.unheartCommand,_.U0),disabledEndpoint:this.isVisiblyDisabled?_.g((x=this.toolbarSurface)==null?void 0:x.commentDisabledActionCommand,_.U0):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(f=this.toolbarData)==null?void 0:f.heartActiveTooltip,unheartedTooltip:(T=this.toolbarData)==null?void 0:T.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((B=
this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(A=this.toolbarSharedData)==null?void 0:A.unheartButtonA11y:(t=this.toolbarSharedData)==null?void 0:t.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(y=this.toolbarSharedData)==null?void 0:y.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 b,I,h,q;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(b=this.commentStrings)==null?void 0:b.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.g((I=this.toolbarSurface)==null?void 0:I.replyCommand,_.U0),command:this.isVisiblyDisabled?
_.g((h=this.toolbarSurface)==null?void 0:h.commentDisabledActionCommand,_.U0):this.isSubsOnlyCommentsIneligibleUser?_.g((q=this.toolbarSurface)==null?void 0:q.subscribersOnlySnackbarCommand,_.U0):void 0}}}}});
aH.prototype.onYtServiceRequestSent=aH.prototype.onYtServiceRequestSent;aH.prototype.hideReplyDialogDiv=aH.prototype.hideReplyDialogDiv;_.R([_.H(),_.n("design:type",Object)],aH.prototype,"commentStrings",void 0);_.R([_.H(),_.n("design:type",Boolean)],aH.prototype,"isReply",void 0);_.R([_.H(),_.n("design:type",Object)],aH.prototype,"toolbarData",void 0);_.R([_.H(),_.n("design:type",Object)],aH.prototype,"toolbarSharedData",void 0);
_.R([_.H(),_.n("design:type",String)],aH.prototype,"toolbarStateKey",void 0);_.R([_.H(),_.n("design:type",String)],aH.prototype,"toolbarSurfaceKey",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],aH.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],aH.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.kk),_.n("design:type",Object)],aH.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.lH("#reply-dialog"),_.n("design:type",HTMLElement)],aH.prototype,"replyDialogDiv",void 0);_.R([_.lH("#replybox"),_.n("design:type",Object)],aH.prototype,"replyBox",void 0);_.R([_.lH("ytd-creator-heart-renderer"),_.n("design:type",Object)],aH.prototype,"heartButton",void 0);_.R([_.H({selector:function(G,b){return _.Gi(G.entities,"engagementToolbarStateEntityPayload",b)},
selectorArgs:["toolbarStateKey"]}),_.n("design:type",Object)],aH.prototype,"toolbarState",void 0);_.R([_.H({selector:l3a,selectorArgs:["toolbarSurfaceKey"]}),_.n("design:type",Object)],aH.prototype,"toolbarSurface",void 0);_.R([_.H(),_.n("design:type",Object)],aH.prototype,"buttonOverrides",void 0);_.R([_.hI("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aH.prototype,"hideReplyDialogDiv",null);
_.R([_.P("toolbarData","toolbarState"),_.n("design:type",String),_.n("design:paramtypes",[])],aH.prototype,"likeCount",null);_.R([_.P("likeCount"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aH.prototype,"showLikeCount",null);_.R([_.P("toolbarSurface"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aH.prototype,"isVisiblyDisabled",null);_.R([_.P("toolbarSurface"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aH.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.R([_.P("toolbarSurface"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aH.prototype,"isSubsOnlyCommentsEligibleUser",null);_.R([_.P("toolbarSurface"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aH.prototype,"hasPrepareAccountCommand",null);_.R([_.P("toolbarData","toolbarState","toolbarSurface"),_.n("design:type",Object),_.n("design:paramtypes",[])],aH.prototype,"likeToggleButtonRenderer",null);
_.R([_.P("isReply","toolbarData","toolbarState","toolbarSurface"),_.n("design:type",Object),_.n("design:paramtypes",[])],aH.prototype,"dislikeToggleButtonRenderer",null);_.R([_.P("toolbarData","toolbarState","toolbarSurface"),_.n("design:type",Object),_.n("design:paramtypes",[])],aH.prototype,"creatorHeartSupportedRenderer",null);_.R([_.P("toolbarSurface"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aH.prototype,"hasReplyCommand",null);
_.R([_.P("toolbarSurface","commentStrings","isVisiblyDisabled"),_.n("design:type",Object),_.n("design:paramtypes",[])],aH.prototype,"replyButtonRenderer",null);_.R([_.H(),_.n("design:type",Object)],aH.prototype,"replyButtonOverrides",void 0);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],aH.prototype,"onYtServiceRequestSent",null);_.R([_.N({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],aH);
_.J(aH,"ytd-comment-engagement-bar",function(){if(PqJ!==void 0)return PqJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return PqJ=G},{mode:1});var dXW;var Nv=function(){return _.a.apply(this,arguments)||this};
_.M(Nv,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Nv.prototype,"data",void 0);_.R([_.N({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Nv);
_.J(Nv,"ytd-comment-inline-thumbnail-renderer",function(){if(dXW!==void 0)return dXW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return dXW=G},{mode:1});var yRe;var Y7=function(){return _.a.apply(this,arguments)||this};
_.M(Y7,_.a);Y7.prototype.onMessageTap=function(){if(this.onTapCommand){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);G&&this.ytdOpenPopupBehavior.openPopup(G)}};
_.kV.Object.defineProperties(Y7.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return(G=this.data)==null?void 0:(b=G.button)==null?void 0:(I=b.buttonRenderer)==null?void 0:I.command}}});
_.R([_.z(_.kk),_.n("design:type",Object)],Y7.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Y7.prototype,"data",void 0);_.R([_.P("data.button.buttonRenderer.command"),_.n("design:type",Object),_.n("design:paramtypes",[])],Y7.prototype,"onTapCommand",null);_.R([_.N({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Y7);
_.J(Y7,"ytd-comment-pause-composer-renderer",function(){if(yRe!==void 0)return yRe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return yRe=G},{mode:1});var rR5;var FwB;var C_=function(){var G=_.a.apply(this,arguments)||this;G.isOpen=!1;return G};
_.M(C_,_.a);_.m=C_.prototype;_.m.dataChanged=function(){this.isOpen=!1};
_.m.onTap=function(){this.data&&(this.data.navigationEndpoint?_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.m.focus=function(){this.JSC$16049_commentbox.focus()};
_.m.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.m.openDialog=function(){this.isOpen=!0;this.JSC$16049_commentbox.focus();this.JSC$16049_commentbox.maybeHeightChanged()};
C_.prototype.onYtCommentboxDismiss=C_.prototype.onYtCommentboxDismiss;C_.prototype.dataChanged=C_.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],C_.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],C_.prototype,"isOpen",void 0);_.R([_.lH("#commentbox"),_.n("design:type",Object)],C_.prototype,"JSC$16049_commentbox",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],C_.prototype,"dataChanged",null);_.R([_.hI("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],C_.prototype,"onYtCommentboxDismiss",null);_.R([_.N({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],C_);
_.J(C_,"ytd-comment-reply-dialog-renderer",function(){if(FwB!==void 0)return FwB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return FwB=G},{mode:1});var HIO;var JP=function(){return _.a.apply(this,arguments)||this};
_.M(JP,_.a);_.kV.Object.defineProperties(JP.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var G,b,I=(G=this.data)==null?void 0:(b=G.icon)==null?void 0:b.iconType;return I?"yt-icons:"+I.toLowerCase():null}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],JP.prototype,"data",void 0);_.R([_.H(),_.P("data.icon"),_.n("design:type",Object),_.n("design:paramtypes",[])],JP.prototype,"icon",null);_.R([_.N({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],JP);
_.J(JP,"ytd-pinned-comment-badge-renderer",function(){if(HIO!==void 0)return HIO;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return HIO=G},{mode:1});var Wwe;var axi={},NlJ={input:!0,meta:!0,br:!0,link:!0,img:!0},K_=null;axi.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(){K_==null&&(K_=document.createElement("tp-yt-paper-tooltip"),K_.offset=8,K_.fitToVisibleBounds=!0)},
onMouseOver_:function(G){if(G=_.wV(G.target,function(q){return q==this||q.getAttribute&&q.getAttribute("shared-tooltip-text")}.bind(this),!0)){var b=G.getAttribute("shared-tooltip-text");
if(b){var I=this,h=null;G!=this&&(G.tagName.toLowerCase()in NlJ?I=G.parentElement:I=G,G.id&&(h=G.id));this.polymerController.createTooltipIfRequired_();if(K_.parentElement!=I||K_.for!=h)(0,_.$y)(K_).textContent=b,_.Eo(I).appendChild(K_),K_.for=h,K_.animationDelay=this.polymerController.sharedTooltipAnimationDelay,K_.position=this.polymerController.sharedTooltipPosition}}}};var u_=function(){return _.a.apply(this,arguments)||this};
_.M(u_,_.a);u_.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]]"}}}}}};
u_.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 b;((b=this.data)==null?0:b.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
u_.prototype.colorChanged=function(){var G,b,I,h=(G=this.data)==null?void 0:(b=G.color)==null?void 0:(I=b.basicColorPaletteData)==null?void 0:I.foregroundBodyColor;h&&(this.rgbBadgeColor=_.Uo(h));_.Eo(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
u_.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")};
u_.prototype.tooltipChanged=u_.prototype.tooltipChanged;u_.prototype.colorChanged=u_.prototype.colorChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(axi.YtSharedTooltipBehavior),_.n("design:type",Object)],u_.prototype,"ytSharedTooltipBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],u_.prototype,"data",void 0);
_.R([_.H({value:"#4285F4"}),_.n("design:type",String)],u_.prototype,"rgbBadgeColor",void 0);_.R([_.q5("data.color"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],u_.prototype,"colorChanged",null);_.R([_.q5("data.tooltip"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],u_.prototype,"tooltipChanged",null);_.R([_.N({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],u_);
_.J(u_,"ytd-sponsor-comment-badge-renderer",function(){if(Wwe!==void 0)return Wwe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Wwe=G},{mode:1});var YPW;var CqJ;var RH=function(){return _.a.apply(this,arguments)||this};
_.M(RH,_.a);RH.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"}};
RH.prototype.updateStateIdentifier=function(G){if(this.viewModel.triStateKey){var b=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.BR("triStateButtonStateEntityPayload",b,{key:b,stateIdentifier:G}))}};
RH.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")}};
_.kV.Object.defineProperties(RH.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([_.H(),_.n("design:type",Object)],RH.prototype,"viewModel",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],RH.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],RH.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.R([_.H({selector:mxu,selectorArgs:["viewModel.triStateKey"]}),_.n("design:type",Object)],RH.prototype,"triStateButtonStateEntity",void 0);
_.R([_.H({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.n("design:type",String)],RH.prototype,"state",void 0);_.R([_.P("viewModel","state"),_.n("design:type",Object),_.n("design:paramtypes",[])],RH.prototype,"data",null);_.R([_.P("data"),_.n("design:type",String),_.n("design:paramtypes",[])],RH.prototype,"buttonText",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],RH);
_.J(RH,"ytd-tri-state-button-view-model",function(){if(CqJ!==void 0)return CqJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return CqJ=G},{mode:1});var JRe;var Kwu;var n_=function(){var G=_.a.apply(this,arguments)||this;G.defaultIconToFilled=!_.U("kevlar_fill_comment_chip_icon_killswitch");return G};
_.M(n_,_.a);n_.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
n_.prototype.dataChanged=function(){if(this.data){var G,b;((G=this.data.chipColorPalette)==null?0:G.backgroundColor)&&((b=this.data.chipColorPalette)==null?0:b.foregroundTitleColor)&&_.G8(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.so(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.so(this.data.chipColorPalette.foregroundTitleColor)});var I;((I=this.data)==null?0:I.command)?(_.G8(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.G8(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}};
n_.prototype.onTap=function(){var G;if(this.data&&(G=this.data)!=null&&G.command){var b;this.ytComponentBehavior.resolveCommand((b=this.data)==null?void 0:b.command)}};
n_.prototype.getIconSize=function(){return _.U("kevlar_fill_comment_chip_icon_killswitch")?24:12};
n_.prototype.onTap=n_.prototype.onTap;n_.prototype.dataChanged=n_.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],n_.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.PO),_.n("design:type",Object)],n_.prototype,"ironA11yKeysBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],n_.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],n_.prototype,"basePriceText",void 0);_.R([_.H(),_.n("design:type",Object)],n_.prototype,"chipIcon",void 0);_.R([_.H(),_.n("design:type",Object)],n_.prototype,"defaultIconToFilled",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],n_.prototype,"dataChanged",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],n_.prototype,"onTap",null);
_.R([_.g8({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],n_);
_.J(n_,"yt-pdg-comment-chip-renderer",function(){if(Kwu===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;JRe===void 0&&(JRe=document.createElement("template"));var h=JRe;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Kwu=G}G=Kwu;return G},{mode:2});var OO=function(){var G=_.a.apply(this,arguments)||this;G.useSmallAvatars=_.U("small_avatars_for_comments");G.commentThreadingEnabled=_.U("web_delhi_comment_threads");G.webWatchCompactComments=_.U("web_watch_compact_comments");G.editDialog=null;return G};
_.M(OO,_.a);_.m=OO.prototype;_.m.onShow=function(){_.gK("cmv",void 0,"wn_comments")};
_.m.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"}}}};
_.m.detached=function(){this.editDialog=null;this.expander.reset()};
_.m.updateBackgroundColor=function(){if(this.backgroundColor){var G={"--ytd-comment-paid-background-color":_.so(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.G8(this.hostElement,G)}else _.G8(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.m.resetExpander=function(){var G;(G=this.expander)==null||G.reset()};
_.m.openEditDialog=function(G){G.dialog&&(this.editDialog=G.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.m.onYtNavigate=function(G){var b=G.detail.endpoint;if(b=_.g(b,_.edO)||_.g(b,_.VdQ))G.stopPropagation(),this.openEditDialog(b)};
_.m.onYtCommentboxDismiss=function(){this.editDialog=null;_.G8(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.m.onAuthorThumbnailClicked=function(){_.U("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.m.onYtCommentboxResize=function(G){var b;(G==null?0:(b=G.detail)==null?0:b.height)&&_.G8(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":G.detail.height+"px"})};
_.kV.Object.defineProperties(OO.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,b=(G=this.commentEntity)==null?void 0:G.author;return b&&(b.isCreator||b.isVerified||b.isArtist)?{renderer:{authorEndpoint:b.channelPageEndpoint?_.g(b.channelPageEndpoint,_.U0):_.g(b.channelCommand,_.U0),authorText:{runs:[{text:b.displayName}]},color:b.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:b.isArtist?{iconType:"AUDIO_BADGE"}:
b.isVerified?{iconType:b.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:b.isArtist||b.isVerified?b.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var G,b=(G=this.commentEntity)==null?void 0:G.author;return b!=null&&b.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:b.sponsorBadgeUrl}]},tooltip:b.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return _.g((G=this.commentSurfaceEntity)==null?void 0:G.pdgCommentChip,_.aNX)||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 _.g((G=this.commentSurfaceEntity)==null?void 0:G.voiceReplyContainerViewModel,W8z)||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,b;return(b=(G=this.commentSurfaceEntity)==null?void 0:G.commentBackgroundColor)!=null?b:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.U("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var G,b;return(((G=this.commentEntity)==null?void 0:(b=G.properties)==null?void 0:b.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var G,b;if(_.U("enable_profile_cards_on_comments")&&((G=this.commentEntity)==null?0:(b=G.author)==null?0:b.profileCardEndpoint)&&this.viewModel.allowProfileCard){var I,h;return _.g((I=this.commentEntity)==null?void 0:(h=I.author)==null?void 0:h.profileCardEndpoint,_.U0)}var q,l;return _.g((q=this.commentEntity)==null?void 0:(l=q.avatar)==null?void 0:l.endpoint,_.U0)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var G,b;if(_.U("enable_profile_cards_on_comments")&&((G=this.commentEntity)==null?0:(b=G.author)==null?0:b.channelPageEndpoint)){var I,h;return _.g((I=this.commentEntity)==null?void 0:(h=I.author)==null?void 0:h.channelPageEndpoint,_.U0)}var q,l;return _.g((q=this.commentEntity)==null?void 0:(l=q.avatar)==null?void 0:l.endpoint,_.U0)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h,q=(G=this.commentEntity)==null?void 0:(b=G.avatar)==null?void 0:(I=b.image)==null?void 0:(h=I.sources)==null?void 0:h[0];return q?{thumbnails:[{url:q.url,width:q.width,height:q.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.commentEntity)==null?0:(b=G.author)==null?0:b.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.commentEntity)==null?void 0:(b=G.author)==null?void 0:b.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.commentEntity)==null?void 0:(b=G.properties)==null?void 0:b.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var G;return _.g((G=this.commentSurfaceEntity)==null?void 0:G.publishedTimeCommand,_.U0)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var G,b;if(((G=this.commentEntity)==null?0:G.translatedContent)&&((b=this.translateButtonState)==null?void 0:b.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 h,q;return((h=this.commentEntity)==null?void 0:(q=h.properties)==null?void 0:q.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.commentSharedEntity)==null?void 0:(b=G.strings)==null?void 0:b.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.commentSharedEntity)==null?void 0:(b=G.strings)==null?void 0:b.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,b,I=(b=_.g((G=this.viewModel)==null?void 0:G.translateButton,HFX))!=null?b:{},h,q,l,V,D,k,L,x,f,T,B;return Object.assign({},I,{untoggledStateData:Object.assign({},I.untoggledStateData,{buttonText:(h=this.commentEntity)==null?void 0:(q=h.translateData)==null?void 0:q.text}),togglingStateData:Object.assign({},I.togglingStateData,{buttonText:(l=this.commentSharedEntity)==null?
void 0:(V=l.strings)==null?void 0:V.translatingText}),toggledStateData:Object.assign({},I.toggledStateData,{buttonText:(D=this.commentSharedEntity)==null?void 0:(k=D.strings)==null?void 0:k.seeOriginalText}),transitionCommand:((L=this.commentEntity)==null?0:L.translatedContent)?void 0:_.g((x=this.commentEntity)==null?void 0:(f=x.translateData)==null?void 0:f.translateComment,_.U0),triStateKey:(T=this.commentEntity)==null?void 0:(B=T.properties)==null?void 0:B.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return((b=_.g(_.g((G=this.toolbarSurface)==null?void 0:G.menuCommand,_.U0),DDX))==null?void 0:(I=b.menu)==null?void 0:I.menuRenderer)||null}}});
OO.prototype.onYtCommentboxResize=OO.prototype.onYtCommentboxResize;OO.prototype.onYtCommentboxDismiss=OO.prototype.onYtCommentboxDismiss;OO.prototype.onYtNavigate=OO.prototype.onYtNavigate;OO.prototype.resetExpander=OO.prototype.resetExpander;OO.prototype.updateBackgroundColor=OO.prototype.updateBackgroundColor;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],OO.prototype,"ytdReduxBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],OO.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.lH("#author-thumbnail > button"),_.n("design:type",HTMLElement)],OO.prototype,"authorThumbnailAnchor",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("viewModel"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],OO.prototype,"linked",null);
_.R([_.P("viewModel","linked"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"linkedCommentBadge",null);_.R([_.H({reflectToAttribute:!0}),_.P("viewModel"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],OO.prototype,"pinned",null);_.R([_.P("viewModel","pinned"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"pinnedCommentBadge",null);
_.R([_.P("commentEntity","commentSharedEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"authorCommentBadge",null);_.R([_.H({reflectToAttribute:!0}),_.P("authorCommentBadge"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"hasAuthorBadge",null);_.R([_.P("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"sponsorCommentBadge",null);
_.R([_.H({reflectToAttribute:!0}),_.P("sponsorCommentBadge"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"hasSponsorBadge",null);_.R([_.P("commentSurfaceEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"pdgCommentChipRenderer",null);_.R([_.H({reflectToAttribute:!0}),_.P("voiceReplyContainerViewModel"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"hasVoiceReply",null);
_.R([_.P("commentSurfaceEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"voiceReplyContainerViewModel",null);_.R([_.P("voiceReplyContainerViewModel"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"voiceReplyUnavailableText",null);_.R([_.H(),_.n("design:type",Object)],OO.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"viewModel",null);
_.R([_.H({selector:function(G,b){return _.Gi(G.entities,"commentSharedEntityPayload",b)},
selectorArgs:["viewModel.sharedKey"]}),_.n("design:type",Object)],OO.prototype,"commentSharedEntity",void 0);_.R([_.H({selector:j22,selectorArgs:["viewModel.commentKey"]}),_.n("design:type",Object)],OO.prototype,"commentEntity",void 0);_.R([_.H({selector:function(G,b){return _.Gi(G.entities,"commentSurfaceEntityPayload",b)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.n("design:type",Object)],OO.prototype,"commentSurfaceEntity",void 0);_.R([_.H({selector:l3a,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.n("design:type",Object)],OO.prototype,"toolbarSurface",void 0);_.R([_.H({selector:mxu,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.n("design:type",Object)],OO.prototype,"translateButtonState",void 0);
_.R([_.P("commentSurfaceEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"backgroundColor",null);_.R([_.H({reflectToAttribute:!0}),_.P("viewModel"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],OO.prototype,"optimalReadingWidthComments",null);_.R([_.lH("ytd-expander"),_.n("design:type",Object)],OO.prototype,"expander",void 0);
_.R([_.q5("backgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OO.prototype,"updateBackgroundColor",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],OO.prototype,"useSmallAvatars",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],OO.prototype,"engagementPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],OO.prototype,"commentThreadingEnabled",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],OO.prototype,"webWatchCompactComments",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"isReply",null);_.R([_.P("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"authorThumbnailEndpoint",null);_.R([_.P("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"authorNameEndpoint",null);
_.R([_.P("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"authorThumbnail",null);_.R([_.P("commentEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],OO.prototype,"authorTextClass",null);_.R([_.P("commentEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],OO.prototype,"authorChannelName",null);_.R([_.P("commentEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"publishedTime",null);
_.R([_.P("commentSurfaceEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"publishedTimeCommand",null);_.R([_.P("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"contentText",null);_.R([_.q5("contentText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OO.prototype,"resetExpander",null);
_.R([_.P("commentEntity"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],OO.prototype,"shouldShowReadMoreInitially",null);_.R([_.P("commentSharedEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],OO.prototype,"expandText",null);_.R([_.P("commentSharedEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],OO.prototype,"collapseText",null);_.R([_.P("commentEntity"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],OO.prototype,"shouldShowTranslateButton",null);
_.R([_.P("commentEntity","commentSharedEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"translateButton",null);_.R([_.P("toolbarSurface"),_.n("design:type",Object),_.n("design:paramtypes",[])],OO.prototype,"overflowMenuRenderer",null);_.R([_.H(),_.n("design:type",Object)],OO.prototype,"editDialog",void 0);_.R([_.lH("ytd-comment-dialog-renderer"),_.n("design:type",Object)],OO.prototype,"editCommentDialogContainer",void 0);
_.R([_.lH("ytd-comment-reply-dialog-renderer"),_.n("design:type",Object)],OO.prototype,"editReplyDialogContainer",void 0);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],OO.prototype,"onYtNavigate",null);_.R([_.hI("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],OO.prototype,"onYtCommentboxDismiss",null);
_.R([_.hI("yt-commentbox-resize"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],OO.prototype,"onYtCommentboxResize",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-comment-view-model"})],OO);
_.J(OO,"ytd-comment-view-model",function(){if(YPW!==void 0)return YPW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YPW=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});_.JN(_.C(function(G){var b={};return _.v("yt-sub-thread",{class:_.pG("ytSubThreadHost",(b.ytSubThreadHasButton=G.isButton,b.ytSubThreadHovered=G.hovered,b.ytSubThreadTopLevelThread=function(){var I,h;return((I=G.topLevelThread)==null?void 0:I.call(G))&&!(_.U("small_avatars_for_comments")&&((h=G.engagementPanel)==null?0:h.call(G)))},b))},_.v("div",{class:"ytSubThreadThreadline"},_.v(_.Q,{cond:function(){var I;
return!((I=G.isTeaser)==null?0:I.call(G))},
then:function(){return _.v("div",{class:"ytSubThreadConnection"})}}),_.v("div",{class:"ytSubThreadContinuation"}),_.v("div",{class:"ytSubThreadShadow"})),_.v("div",{class:"ytSubThreadSubThreadContent"},G.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.hV,
isTeaser:_.hV,hovered:_.hV,topLevelThread:_.hV,engagementPanel:_.hV}});var wo=function(){var G=_.a.apply(this,arguments)||this;G.modern=_.U("web_modern_buttons");G.commentThreadingEnabled=_.U("web_delhi_comment_threads");G.isWatchGrid=_.U("kevlar_watch_grid");G.buttonOverrides=G.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};G.JSC$16095_spinnerEl=null;return G};
_.M(wo,_.a);_.m=wo.prototype;_.m.configureContinuationPathMap=function(){return _.U("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.m.shouldShowLegacyTeasers=function(G,b){return G&&!b};
_.m.shouldShowExpandedThreads=function(G,b){return this.commentThreadingEnabled&&b&&(G==null?void 0:G.length)>0};
_.m.shouldShowCollapsedThreads=function(G,b){return this.commentThreadingEnabled&&!b&&G};
_.m.computeCommentViewModel=function(G){return _.g(G,F8B)};
_.m.computeThreadRenderer=function(G){return _.g(G,oju)};
_.m.computeIsContinuationItem=function(G){return!!this.computeContinuationItemRenderer(G)};
_.m.computeButtonRenderer=function(G){return _.g(G,_.bz)};
_.m.computeContinuationItemRenderer=function(G){return _.g(G,_.Yg)};
_.m.computeShowButton=function(G){var b;return!((b=this.computeContinuationItemRenderer(G))==null||!b.button)};
_.m.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]]"}}}}}};
_.m.attached=function(){this.isShowRepliesVisible=!0};
_.m.dataChanged=function(){var G=this.expanderContents;G&&(G.hidden=!0);this.isLoading=!1};
_.m.endsInContinuation=function(G){return!!G&&G.length>0&&!!this.computeContinuationItemRenderer(G[G.length-1])};
_.m.computeShouldShowHideRepliesButton=function(G,b){return!G&&b};
_.m.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.m.isLoadingChanged=function(){this.isLoading&&!this.JSC$16095_spinnerEl&&(this.JSC$16095_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Eo(this.expanderContents).appendChild(this.JSC$16095_spinnerEl));this.JSC$16095_spinnerEl&&(this.JSC$16095_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var G;(G=this.contents)==null||G.classList.remove("reloading")}};
_.m.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var G=_.g(this.data.viewReplies,_.bz);G&&this.ytRendererBehavior.logExplicitClick(G);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.m.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var G=_.g(this.data.hideReplies,_.bz);G&&this.ytRendererBehavior.logExplicitClick(G);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.m.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var G=_.Eo(this.hostElement).querySelector("#expander-contents");G&&(G.hidden=this.isShowRepliesVisible)}};
_.m.computeAlign=function(){if(this.modern){var G;return!((G=this.data)==null?0:G.viewRepliesCreatorThumbnail)}};
_.kV.Object.defineProperties(wo.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var G,b;return this.endsInContinuation((G=this.data)==null?void 0:G.contents)||this.commentThreadingEnabled&&this.endsInContinuation((b=this.data)==null?void 0:b.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var G;return(G=this.data)==null?void 0:G.teaserContents}}});
wo.prototype.isShowMoreChanged=wo.prototype.isShowMoreChanged;wo.prototype.isLoadingChanged=wo.prototype.isLoadingChanged;wo.prototype.triggerFirstContinuation=wo.prototype.triggerFirstContinuation;wo.prototype.dataChanged=wo.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.mD),_.n("design:type",Object)],wo.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],wo.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],wo.prototype,"modern",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],wo.prototype,"commentThreadingEnabled",void 0);_.R([_.H(),_.n("design:type",Boolean)],wo.prototype,"expanded",void 0);
_.R([_.H(),_.n("design:type",Function)],wo.prototype,"toggleExpanded",void 0);_.R([_.H(),_.n("design:type",Array)],wo.prototype,"addedReplies",void 0);_.R([_.H(),_.n("design:type",Boolean)],wo.prototype,"hovered",void 0);_.R([_.H(),_.n("design:type",Boolean)],wo.prototype,"topLevelThread",void 0);_.R([_.H(),_.n("design:type",Boolean)],wo.prototype,"isLoading",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],wo.prototype,"isShowRepliesVisible",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],wo.prototype,"useNewFormatting",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],wo.prototype,"engagementPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],wo.prototype,"isWatchGrid",void 0);_.R([_.H(),_.n("design:type",Object)],wo.prototype,"buttonOverrides",void 0);_.R([_.lH("#expander-contents"),_.n("design:type",HTMLElement)],wo.prototype,"expanderContents",void 0);
_.R([_.lH("ytd-continuation-item-renderer"),_.n("design:type",Object)],wo.prototype,"continuationItemRenderer",void 0);_.R([_.lH("#contents"),_.n("design:type",HTMLElement)],wo.prototype,"contents",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wo.prototype,"dataChanged",null);_.R([_.P("data.contents","data.subThreads.*"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wo.prototype,"hasContinuation",null);
_.R([_.P("data.teaserContents"),_.n("design:type",Object),_.n("design:paramtypes",[])],wo.prototype,"subThreadTeasers",null);_.R([_.hI("yt-expander-more-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wo.prototype,"triggerFirstContinuation",null);_.R([_.q5("isLoading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wo.prototype,"isLoadingChanged",null);
_.R([_.q5("isShowRepliesVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wo.prototype,"isShowMoreChanged",null);_.R([_.N({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],wo);
_.J(wo,"ytd-comment-replies-renderer",function(){if(rR5!==void 0)return rR5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" 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">\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]]" on-click="handleIsShowMoreTap" 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(_.E().content.cloneNode(!0),
G.content.firstChild);return rR5=G},{mode:1});var uMX;var EO=function(){var G=_.a.apply(this,arguments)||this;G.isOpen=!1;G.commentDialog=null;G.useSmallAvatars=_.U("small_avatars_for_comments");G.useSmallAvatarsEngagementPanelOnly=_.U("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};
_.M(EO,_.a);_.m=EO.prototype;_.m.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]]"}}}}}};
_.m.ready=function(){var G=this,b=_.Eo(this.hostElement).querySelector("#placeholder-area"),I=_.Eo(this.hostElement).querySelector("#simplebox-placeholder"),h=function(q){q.stopPropagation();q instanceof KeyboardEvent&&q.type==="keypress"&&q.keyCode!==13&&q.keyCode!==32||G.openDialog()};
this.placeholderFocusListener=h;I.addEventListener("focus",this.placeholderFocusListener);b.addEventListener("tap",h);b.addEventListener("keypress",h)};
_.m.maybeRemoveFocusEventListener=function(){var G;(G=this.data)!=null&&G.prepareAccountEndpoint&&!_.U("web_comments_simplebox_modal_focus_on_tap_ks")&&(G=_.Eo(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(G.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.m.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.m.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.U("web_comment_simplebox_resolve_polymer_command_ks")?_.Xv.instance.resolveCommand(this.data.prepareAccountEndpoint):_.$Q(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;_.Eo(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.m.onYtCommentboxDismiss=function(G){G.stopPropagation();this.isOpen=!1};
_.m.onCreateCommentAction=function(G){this.get("createCommentAction.contents",G)&&(this.isOpen=!1)};
_.m.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}};
_.m.onHideIdentityChip=function(G){_.g(G,gje)&&this.set("data.placeholderText",_.g(G,gje).placeholderText)};
EO.prototype.onYtCommentboxDismiss=EO.prototype.onYtCommentboxDismiss;EO.prototype.dataChanged=EO.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],EO.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],EO.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],EO.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],EO.prototype,"isOpen",void 0);_.R([_.H(),_.n("design:type",Object)],EO.prototype,"commentDialog",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],EO.prototype,"engagementPanel",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],EO.prototype,"useSmallAvatars",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],EO.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],EO.prototype,"enableCreationBox",void 0);_.R([_.H(),_.n("design:type",Boolean)],EO.prototype,"showCreateDialog",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],EO.prototype,"dataChanged",null);_.R([_.hI("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],EO.prototype,"onYtCommentboxDismiss",null);_.R([_.N({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],EO);
_.J(EO,"ytd-comment-simplebox-renderer",function(){if(uMX!==void 0)return uMX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return uMX=G},{mode:1});var R1X;_.QO("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var p_=function(){var G=_.a.apply(this,arguments)||this;G.addHoverEffect=_.U("swatcheroo_comments_hover_effect");G.useSmallAvatars=_.U("small_avatars_for_comments");G.scrollingEnabled=_.U("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&&_.wL(G.hostElement,"yt-scroll-to-comment-element",[G.commentElement])};
return G};
_.M(p_,_.a);_.m=p_.prototype;_.m.configureActionMap=function(){return _.U("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"}:{}};
_.m.createCommentReplyAction=function(G){G=_.g(G,UHW);if(G!=null&&G.contents){var b=G.replyToCommentId,I=G.parentCommentId,h,q=(h=this.commentViewModel)==null?void 0:h.commentId;(q===b||q===I&&!b)&&this.maybeAttachReply(G.contents)}};
_.m.maybeAttachReply=function(G){var b,I;(((b=this.commentEntity)==null?void 0:(I=b.properties)==null?void 0:I.replyLevel)||0)>=3?_.O3(this.hostElement,"yt-pushed-create-comment-reply",G):this.attachReply(G)};
_.m.onPushedCreateCommentReply=function(G){var b,I;(((b=this.commentEntity)==null?void 0:(I=b.properties)==null?void 0:I.replyLevel)||0)>=3||(this.attachReply(G.detail),G.stopPropagation())};
_.m.attachReply=function(G){var b;((b=this.data)==null?0:b.replies)?(b=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+b+".continuationItemRenderer")?b===0?this.push("addedReplies",G):this.splice("data.replies.commentRepliesRenderer.subThreads",b,0,G):this.push("data.replies.commentRepliesRenderer.subThreads",G)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[G],viewReplies:{buttonRenderer:{text:_.RW(_.qP("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.m.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.Nz(this.addedReplies))),this.set("addedReplies",[]))};
_.m.removeCommentAction=function(G){G=_.g(G,ZFQ);var b=G==null?void 0:G.commentId,I;b&&((I=this.commentViewModel)==null?void 0:I.commentId)===b&&this.maybeRemoveComment(G.actionResult)};
_.m.banAuthorAction=function(G){G=_.g(G,TIJ);var b=G==null?void 0:G.commentId,I;b&&((I=this.commentViewModel)==null?void 0:I.commentId)===b&&this.maybeRemoveComment(G.actionResult)};
_.m.hideReportedCommentAction=function(G){G=_.g(G,CY5);var b=G==null?void 0:G.commentId,I;b&&((I=this.commentViewModel)==null?void 0:I.commentId)===b&&this.maybeRemoveComment(G.actionResult)};
_.m.maybeRemoveComment=function(G){G&&G.status==="STATUS_SUCCEEDED"&&(this.feedbackText=G.feedbackText||_.RW("Reply removed"),this.removed=!0)};
_.m.onTap=function(G){if(this.addHoverEffect&&!this.engagementPanel&&!_.NK(_.Wy(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||_.$Q({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.m.attached=function(){var G=this;this.isSubThread&&(this.expanded=!0);var b;(b=this.commentThreadHitbox)==null||b.addEventListener("mouseover",function(){G.threadHovered=!0});
var I;(I=this.commentThreadHitbox)==null||I.addEventListener("mouseout",function(){G.threadHovered=!1});
var h;(h=this.commentThreadHitbox)==null||h.addEventListener("click",function(){G.maybeToggleExpanded()})};
_.m.maybeToggleExpanded=function(){var G,b,I,h=(G=this.data)==null?void 0:(b=G.replies)==null?void 0:(I=b.commentRepliesRenderer)==null?void 0:I.subThreads,q;(h==null?void 0:h.length)===1&&((q=_.g(h[0],_.Yg))==null?0:q.button)&&this.expanded||this.toggleExpanded()};
_.kV.Object.defineProperties(p_.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return _.g((G=this.data)==null?void 0:G.commentViewModel,F8B)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return _.U("web_delhi_comment_threads")&&!!((G=this.data)==null?0:(b=G.replies)==null?0:(I=b.commentRepliesRenderer)==null?0:I.subThreads)}}});
p_.prototype.onTap=p_.prototype.onTap;p_.prototype.onAppendContinuationItemsActionFinished=p_.prototype.onAppendContinuationItemsActionFinished;p_.prototype.onPushedCreateCommentReply=p_.prototype.onPushedCreateCommentReply;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],p_.prototype,"ytdReduxBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],p_.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],p_.prototype,"addHoverEffect",void 0);_.R([_.H(),_.n("design:type",Object)],p_.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],p_.prototype,"useSmallAvatars",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],p_.prototype,"scrollingEnabled",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],p_.prototype,"isSubThread",void 0);_.R([_.lH(".thread-hitbox"),_.n("design:type",HTMLElement)],p_.prototype,"commentThreadHitbox",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],p_.prototype,"threadHovered",void 0);_.R([_.lH("#comment"),_.n("design:type",HTMLElement)],p_.prototype,"commentElement",void 0);
_.R([_.H(),_.n("design:type",Object)],p_.prototype,"expanded",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],p_.prototype,"removed",void 0);_.R([_.H(),_.n("design:type",Object)],p_.prototype,"feedbackText",void 0);_.R([_.H(),_.n("design:type",Array)],p_.prototype,"addedReplies",void 0);_.R([_.H({selector:j22,selectorArgs:["commentViewModel.commentKey"]}),_.n("design:type",Object)],p_.prototype,"commentEntity",void 0);
_.R([_.hI("yt-pushed-create-comment-reply"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],p_.prototype,"onPushedCreateCommentReply",null);_.R([_.hI("yt-append-continuation-items-action-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],p_.prototype,"onAppendContinuationItemsActionFinished",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],p_.prototype,"commentViewModel",null);
_.R([_.P("data.replies"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],p_.prototype,"hasSubThreading",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],p_.prototype,"engagementPanel",void 0);_.R([_.hI("tap"),_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],p_.prototype,"onTap",null);_.R([_.N({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],p_);
_.J(p_,"ytd-comment-thread-renderer",function(){if(R1X!==void 0)return R1X;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return R1X=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var nwz;var SF=function(){var G=_.a.apply(this,arguments)||this;G.compactHeader=_.U("web_watch_compact_comments_header");G.hidePanelButton=!1;G.isPostSchedulingEnabled=_.U("enable_post_scheduling");G.hasFinishedStamping=!1;G.JSC$16118_handleOpenPostCommentDialogActionAfterStamp=!1;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.M(SF,_.a);_.m=SF.prototype;
_.m.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"}}}};
_.m.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.m.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16118_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.m.onYtServiceRequestSent=function(G,b){if(!_.U("kevlar_command_handler")&&b.actions)for(G=0;G<b.actions.length;G++){var I=b.actions[G];_.g(I,O6n)&&_.Eo(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.g(I,O6n))}};
_.m.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var G;if(this.getPrefilledBackstagePostDialog((G=this.data)==null?void 0:G.actions)){_.Eo(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var b=_.Eo(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;b&&_.D1(this,function(){b.focus();b.openDialog&&b.openDialog()})}}else this.hasActionsChange=!0};
_.m.computeIsBackstage=function(G){return G};
_.m.onYtCommentboxDismiss=function(){_.Eo(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.m.removePrefilledDialog=function(G){if(G==null?0:G.actions){for(var b=G.actions.length-1;b>=0;b--){var I=void 0;((I=_.g(G.actions[b],lNn))==null?0:I.dialog)&&delete G.actions[b]}this.set("data",void 0);this.set("data",G)}};
_.m.getPrefilledBackstagePostDialog=function(G){if(G)for(var b=0;b<G.length;b++){var I=G[b],h=void 0;if((h=_.g(I,lNn))==null?0:h.dialog)return _.g(I,lNn).dialog}return null};
_.m.computeBackstagePostDialog=function(G){return G&&(this.getPrefilledBackstagePostDialog(G.actions)||G.createRenderer)};
_.m.dataChanged=function(){if(this.data){var G=this.data.customEmojis,b=this.data.unicodeEmojisUrl;_.I4.clear();b&&_.N3n(_.I4,b);G&&_.I4.load(G)}};
_.m.handleSignalActionOpenPostCommentDialogAction=function(){var G=_.Eo(this.hostElement).querySelector("ytd-comment-simplebox-renderer");G?G.openDialog():this.JSC$16118_handleOpenPostCommentDialogActionAfterStamp=!0};
_.m.onPostHeaderTap=function(){var G;((G=this.data)==null?0:G.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.kV.Object.defineProperties(SF.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.U("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h,q,l,V;return!this.hidePanelButton&&_.U("kevlar_watch_comments_panel_button")&&((V=_.g((G=this.data)==null?void 0:(b=G.sortMenu)==null?void 0:(I=b.sortFilterSubMenuRenderer)==null?void 0:(h=I.subMenuItems)==null?void 0:(q=h[0])==null?void 0:(l=q.serviceEndpoint)==null?void 0:l.commandMetadata,_.IW))==null?void 0:V.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.qP("MINIPLAYER_EXPAND_LABEL"),text:_.ao(_.qP("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
SF.prototype.dataChanged=SF.prototype.dataChanged;SF.prototype.onYtCommentboxDismiss=SF.prototype.onYtCommentboxDismiss;SF.prototype.observePrefilledBackstagePostDialog=SF.prototype.observePrefilledBackstagePostDialog;SF.prototype.onYtServiceRequestSent=SF.prototype.onYtServiceRequestSent;SF.prototype.onStampFinished=SF.prototype.onStampFinished;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],SF.prototype,"ytComponentBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],SF.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],SF.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],SF.prototype,"compactHeader",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],SF.prototype,"engagementPanel",void 0);_.R([_.H(),_.n("design:type",Object)],SF.prototype,"hidePanelButton",void 0);_.R([_.H({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.n("design:type",Boolean)],SF.prototype,"isBackstage",void 0);_.R([_.H({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.n("design:type",Object)],SF.prototype,"backstagePostDialog",void 0);
_.R([_.H(),_.n("design:type",Object)],SF.prototype,"isPostSchedulingEnabled",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data","showCommentsPanelButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],SF.prototype,"useSpaceBetween",null);_.R([_.H({reflectToAttribute:!0}),_.P("data","hidePanelButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],SF.prototype,"showCommentsPanelButton",null);
_.R([_.P("data","showCommentsPanelButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],SF.prototype,"commentsPanelButtonData",null);_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SF.prototype,"onStampFinished",null);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],SF.prototype,"onYtServiceRequestSent",null);
_.R([_.q5("data.actions"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SF.prototype,"observePrefilledBackstagePostDialog",null);_.R([_.hI("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],SF.prototype,"onYtCommentboxDismiss",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SF.prototype,"dataChanged",null);
_.R([_.N({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],SF);
_.J(SF,"ytd-comments-header-renderer",function(){if(nwz!==void 0)return nwz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return nwz=G},{mode:1});var OIi;var Xw=function(){return _.a.apply(this,arguments)||this};
_.M(Xw,_.a);_.R([_.H(),_.n("design:type",Object)],Xw.prototype,"data",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.R([_.N({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Xw);
_.J(Xw,"ytd-destination-button-renderer",function(){if(OIi!==void 0)return OIi;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return OIi=G},{mode:1});var wxX;var $O=function(){var G=_.a.apply(this,arguments)||this;G.isRichGrid=!1;G.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return G};
_.M($O,_.a);_.m=$O.prototype;_.m.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.m.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.m.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.m.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var G;if((G=this.data)==null||!G.isExpanded){G=this.hostElement.clientWidth;var b;if(G&&(b=this.data)!=null&&b.destinationButtons){b=Math.floor((G+4)/214);G=this.data.destinationButtons.length;var I=Math.ceil(G/b);this.fullyVisibleRows=G%b===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}}}};
_.m.updateRichGridDestinationButtonsVisibility=function(){var G,b;if(this.isRichGrid&&((G=this.data)==null||!G.isExpanded)&&(b=this.data)!=null&&b.destinationButtons){G=this.richGridItemsPerRow+1;b=this.data.destinationButtons.length;var I=Math.ceil(b/G);this.fullyVisibleRows=b%G===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
_.m.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
$O.prototype.updateRichGridDestinationButtonsVisibility=$O.prototype.updateRichGridDestinationButtonsVisibility;_.R([_.H(),_.n("design:type",Object)],$O.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Number)],$O.prototype,"fullyVisibleRows",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],$O.prototype,"isShowMoreVisible",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$O.prototype,"isRichGrid",void 0);
_.R([_.H({selector:_.sb,value:0}),_.n("design:type",Number)],$O.prototype,"richGridItemsPerRow",void 0);_.R([_.H(),_.n("design:type",Object)],$O.prototype,"gridStateActionMap",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],$O.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],$O.prototype,"ytdReduxBehavior",void 0);_.R([_.q5("data","richGridItemsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$O.prototype,"updateRichGridDestinationButtonsVisibility",null);_.R([_.N({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],$O);
_.J($O,"ytd-destination-shelf-renderer",function(){if(wxX!==void 0)return wxX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return wxX=G},{mode:1});var EwA;var GL=function(){return _.a.apply(this,arguments)||this};
_.M(GL,_.a);GL.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],GL.prototype,"data",void 0);_.R([_.N({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],GL);
_.J(GL,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(EwA!==void 0)return EwA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return EwA=G},{mode:1});var px8;var bR=function(){var G=_.a.apply(this,arguments)||this;G.disableAnimation=!1;G.isSlimlineSurvey=!1;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;return G};
_.M(bR,_.a);bR.prototype.onTap=function(G){G.preventDefault();this.data&&_.O3(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.kV.Object.defineProperties(bR.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,b,I,h,q;return((G=this.data)==null?0:G.checked)?(b=this.data)==null?void 0:(I=b.onStateIcon)==null?void 0:I.iconType:(h=this.data)==null?void 0:(q=h.defaultStateIcon)==null?void 0:q.iconType}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],bR.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],bR.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],bR.prototype,"disableAnimation",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bR.prototype,"isSlimlineSurvey",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bR.prototype,"isSlimlineSurveyFollowUp",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bR.prototype,"isShortsStyle",void 0);_.R([_.P("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bR.prototype,"isAnimatedIcon",null);
_.R([_.P("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.n("design:type",Number),_.n("design:paramtypes",[])],bR.prototype,"iconSize",null);_.R([_.P("isShortsStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bR.prototype,"isDarkTheme",null);_.R([_.P("data.checked"),_.n("design:type",Object),_.n("design:paramtypes",[])],bR.prototype,"icon",null);_.R([_.N({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],bR);
_.J(bR,"ytd-rating-survey-option-renderer",function(){if(px8!==void 0)return px8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return px8=G},{mode:2});var SPW;var I8=function(){var G=_.a.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};
_.M(I8,_.a);_.m=I8.prototype;_.m.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.m.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.m.onOptionChange=function(G,b){var I=this;G=b.onStateIcon&&b.defaultStateIcon&&b.onStateIcon.iconType===b.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(V,D){V.responseText===b.responseText?I.isSlimlineSurvey?(I.selectedRatingIndex=D,I.ytdReduxBehavior.dispatch(qyi(D))):(I.setSurveyOptionValue(D,!0,"checked"),I.setSurveyOptionValue(D,!0,"selected")):(I.setSurveyOptionValue(D,!1,"checked"),I.setSurveyOptionValue(D,
!1,"selected"))});
else if(G)this.selectedNonStarOption=b,this.hideOptions=!0;else{var h=this.ytRendererBehavior.getSimpleString(b.responseText),q=!0;this.getOptionRenderers().forEach(function(V,D){I.setSurveyOptionValue(D,q,"checked");I.setSurveyOptionValue(D,!1,"selected");I.ytRendererBehavior.getSimpleString(V.responseText)===h&&(q=!1,I.setSurveyOptionValue(D,!0,"selected"))})}G=b.responseEndpoint;
var l;b.followUpCommand&&(l=_.g(b.followUpCommand,$ZW));this.isSlimlineSurvey?(this.resetComponent(),_.wL(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.wL(this.hostElement,"ytd-inline-survey-rating-select-action",[G,l])};
_.m.showSelectedOption=function(){var G=this;_.uu.addJob(function(){var b=G.getOptionRenderers()[G.slimlineSurveyRatingSelectedIndex];G.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),b)},8,100)};
_.m.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(G){var b;return(b=_.g(G,bbX))!=null?b:{}}):[]};
_.m.onUndoClick=function(){this.resetComponent();_.wL(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.m.setSurveyOptionValue=function(G,b,I){this.notifyPath("data.ratings."+G+".ratingSurveyOptionRenderer."+I);this.set("data.ratings."+G+".ratingSurveyOptionRenderer."+I,b)};
_.m.resetComponent=function(){var G=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var b=this.getOptionRenderers(),I,h;this.firstResponseText=(h=(I=b[0])==null?void 0:I.responseText)!=null?h:null;var q,l;this.lastResponseText=(l=(q=b[b.length-1])==null?void 0:q.responseText)!=null?l:null;b.forEach(function(V,D){G.setSurveyOptionValue(D,!1,"checked");G.setSurveyOptionValue(D,!1,"selected")})};
_.kV.Object.defineProperties(I8.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
I8.prototype.onOptionChange=I8.prototype.onOptionChange;I8.prototype.dataChanged=I8.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],I8.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],I8.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],I8.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],I8.prototype,"firstResponseText",void 0);_.R([_.H(),_.n("design:type",Object)],I8.prototype,"lastResponseText",void 0);_.R([_.H(),_.n("design:type",Object)],I8.prototype,"selectedNonStarOption",void 0);_.R([_.H(),_.n("design:type",Object)],I8.prototype,"hideOptions",void 0);_.R([_.H(),_.n("design:type",Object)],I8.prototype,"hideUndoButton",void 0);_.R([_.H(),_.n("design:type",Object)],I8.prototype,"disableAnimation",void 0);
_.R([_.H(),_.n("design:type",Object)],I8.prototype,"showResponseRangeText",void 0);_.R([_.H(),_.n("design:type",Object)],I8.prototype,"selectedRatingIndex",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],I8.prototype,"isSlimlineSurvey",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],I8.prototype,"isSlimlineSurveyFollowUp",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],I8.prototype,"isShortsStyle",void 0);_.R([_.H({selector:function(G){return G.ui.slimlineSurveyRatingSelectedIndex}}),
_.n("design:type",Object)],I8.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.R([_.P("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],I8.prototype,"isSingleSelect",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],I8.prototype,"dataChanged",null);
_.R([_.hI("ytd-rating-survey-option-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],I8.prototype,"onOptionChange",null);_.R([_.N({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],I8);
_.J(I8,"ytd-rating-survey-renderer",function(){if(SPW!==void 0)return SPW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return SPW=G},{mode:1});var XxQ;var $qB;var GRn;var M7O=(IG.FIRSTDAYOFWEEK+1)%7,bKX=function(G,b,I,h){var q="";if(h.selection&&UYO(h.selection))$g(G,h.selection)&&(q+=" selected");else if(h.selection&&sfa(h.selection)){var l=h.selection.selectionState||"START_DATE";$g(G,h.selection.start)&&(q+=" period-start ",l==="START_DATE"&&(q+="selected"));$g(G,h.selection.end)&&(q+=" period-end ",l==="END_DATE"&&(q+="selected"));GI(G,h.selection.start)||GI(h.selection.end,G)||(q+=" highlighted")}if(GI(b,h.start)||GI(h.end,b))q+=" disabled";h.circleToday&&
$g(b,I)&&(q+=" today");return q};var hO=function(){return _.a.apply(this,arguments)||this};
_.M(hO,_.a);_.m=hO.prototype;_.m.attached=function(){var G=this;_.D1(this,function(){G.JSC$16152_calendarMain.scrollHeight>0&&(G.calendarConfig.selection?G.scrollToDate(gNX(G.calendarConfig.selection)):G.scrollToDate(G.calendarConfig.end))})};
_.m.updateSelection=function(G){G=ZaX(Object.assign({},this.calendarConfig,{selection:G}),bKX);this.splice.apply(this,["renderData.months",0,G.length].concat(_.Nz(G)))};
_.m.scrollToDate=function(G){this.renderData&&(G=t7p(G,this.renderData),G!==void 0&&this.JSC$16152_calendarMain.scrollToIndex(G))};
_.m.scrollToNextMonth=function(){this.JSC$16152_calendarMain.scrollToIndex(this.JSC$16152_calendarMain.firstVisibleIndex+1)};
_.m.scrollToPrevMonth=function(){this.JSC$16152_calendarMain.firstVisibleIndex===0&&this.JSC$16152_calendarMain.scrollTo(0,0);this.JSC$16152_calendarMain.scrollToIndex(this.JSC$16152_calendarMain.firstVisibleIndex-1)};
_.m.handleDayClick=function(G){_.wL(this.hostElement,"ytd-calendar-date-clicked",[G.model.day.date])};
_.m.handleDayMouseDown=function(G){G.preventDefault();_.wL(this.hostElement,"ytd-calendar-date-mousedown",[G.model.day.date])};
_.m.handleDayMouseUp=function(G){_.wL(this.hostElement,"ytd-calendar-date-mouseup",[G.model.day.date])};
_.m.handleDayMouseEnter=function(G){G.preventDefault();_.wL(this.hostElement,"ytd-calendar-date-mouseenter",[G.model.day.date])};
_.m.handleDayMouseLeave=function(G){_.wL(this.hostElement,"ytd-calendar-date-mouseleave",[G.model.day.date])};
_.kV.Object.defineProperties(hO.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var G=this.calendarConfig,b=bKX;b=b===void 0?bKX:b;for(var I=[],h=0;h<7;h++)I.push(IG.NARROWWEEKDAYS[(h+M7O)%7]);return{months:ZaX(G,b),daysOfWeekLabel:I}}}});
_.R([_.H(),_.n("design:type",Object)],hO.prototype,"calendarConfig",void 0);_.R([_.lH("#calendar-main"),_.n("design:type",Object)],hO.prototype,"JSC$16152_calendarMain",void 0);_.R([_.P("calendarConfig"),_.n("design:type",Object),_.n("design:paramtypes",[])],hO.prototype,"renderData",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],hO);
_.J(hO,"ytd-scrollable-calendar",function(){if(GRn!==void 0)return GRn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return GRn=G},{mode:2});var Ij5;var h0X;var ql=function(){var G=_.a.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};
_.M(ql,_.a);_.m=ql.prototype;_.m.reset=function(G){this.value=G&&this.data?this.data.value=G:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.m.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.m.focusTextInput=function(){this.input.focus()};
_.m.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()};
_.m.valueChanged=function(){var G,b;if(((G=this.data)==null?0:G.value)||((b=this.data)==null?void 0:b.value)==="")this.value=this.data.value;else{var I;((I=this.data)==null?void 0:I.value)!==void 0||this.value||(this.value="")}};
_.m.computeLabel=function(G,b){return b?"":_.NO(G)};
_.m.computeAriaLabel=function(G,b){return b?_.NO(G):""};
_.m.computeErrorMessage=function(G,b,I,h){!G&&b?G=I||this.strings.REQUIRED_LABEL:(G=_.NO(h),G=_.c2(G,"&")?"document"in _.hd?Vce(G):Dze(G):G);return G};
_.m.computeType=function(G){return G==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.m.onTextValueChanged=function(G){this.value=G.detail.value;var b;(b=this.onValueChanged)==null||b.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.m.handleUpdateTextInputFormFieldRendererCommand=function(G){(G=_.g(G,BrJ))&&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))};
_.m.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("value-changed",this.value))};
_.m.updateInvalidFromBinding=function(G){this.invalid=G.detail.value};
_.kV.Object.defineProperties(ql.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)}}});
ql.prototype.valueChangedForBinding=ql.prototype.valueChangedForBinding;ql.prototype.valueChanged=ql.prototype.valueChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],ql.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],ql.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],ql.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],ql.prototype,"value",void 0);_.R([_.H(),_.n("design:type",String)],ql.prototype,"pattern",void 0);_.R([_.H(),_.n("design:type",String)],ql.prototype,"errorMessage",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],ql.prototype,"componentStyle",void 0);_.R([_.H(),_.n("design:type",Object)],ql.prototype,"hideCharCounter",void 0);
_.R([_.H(),_.n("design:type",Object)],ql.prototype,"hideLabel",void 0);_.R([_.H(),_.n("design:type",Object)],ql.prototype,"noLabelFloat",void 0);_.R([_.H(),_.n("design:type",Function)],ql.prototype,"onValueChanged",void 0);_.R([_.H(),_.n("design:type",Boolean)],ql.prototype,"isMultilineOverride",void 0);_.R([_.H(),_.n("design:type",Object)],ql.prototype,"autoValidate",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ql.prototype,"invalid",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ql.prototype,"disabled",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],ql.prototype,"enableOverlayTheme",void 0);_.R([_.H({value:{REQUIRED_LABEL:_.qP("REQUIRED_LABEL",void 0,"Required")}}),_.n("design:type",Object)],ql.prototype,"strings",void 0);_.R([_.lH("#input"),_.n("design:type",Object)],ql.prototype,"input",void 0);
_.R([_.P("data","isMultilineOverride"),_.n("design:type",Object),_.n("design:paramtypes",[])],ql.prototype,"isMultiline",null);_.R([_.Dd("data.value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ql.prototype,"valueChanged",null);_.R([_.q5("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ql.prototype,"valueChangedForBinding",null);_.R([_.g8({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],ql);
_.J(ql,"yt-text-input-form-field-renderer",function(){if(h0X===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;Ij5===void 0&&(Ij5=document.createElement("template"));var h=Ij5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);h0X=G}G=h0X;return G},{mode:2});var jU=function(){var G=_.a.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};
_.M(jU,_.a);_.m=jU.prototype;_.m.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"}}}}};
_.m.focus=function(){this.startDateInput.focus()};
_.m.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:bP(this.data.selection.start),end:bP(this.data.selection.end)})};
_.m.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.m.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Eu(this.selectionState)}};
_.m.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.m.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.m.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.m.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var G=this.calendar.calendarConfig,b=G.end;G=oNr({start:G.start,end:this.endDate||b},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()}};
_.m.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var G=this.calendar.calendarConfig,b=G.start;G=oNr({start:this.startDate||b,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()}};
_.m.handleCalendarDateClicked=function(G){var b=this.selection&&gNX(this.selection),I=this.selection&&Al2(this.selection);b&&!GI(G,b)&&this.selectionState==="END_DATE"?(this.selection={start:b,end:G},this.selectionState="START_DATE"):(I&&!GI(I,G)?this.selection={start:G,end:I}:this.selection=G,this.selectionState="END_DATE")};
_.m.handleCalendarDateMouseDown=function(G){this.selection&&!UYO(this.selection)&&(this.dragPivot=$g(G,this.selection.start)?this.selection.end:$g(G,this.selection.end)?this.selection.start:G)};
_.m.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.m.handleCalendarDateMouseEnter=function(G){this.dragPivot&&(this.selection={start:function(b,I){return GI(b,I)?b:I}(this.dragPivot,G),
end:function(b,I){return GI(b,I)?I:b}(this.dragPivot,G)},this.dragPivot||(this.selectionState="START_DATE"))};
_.m.handleCalendarDateMouseLeave=function(){};
_.m.handleCalendarSubmitDateRange=function(){this.selection&&!UYO(this.selection)&&_.wL(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.m.updateInvalidState=function(){var G=function(b,I){I?b.setAttribute("invalid",""):b.removeAttribute("invalid")};
G(this.startDateInput,this.isStartDateInvalid);G(this.endDateInput,this.isEndDateInvalid)};
_.m.updateDateStrings=function(){this.selection&&(UYO(this.selection)?Bxv(this.selection):(Bxv(this.selection.start),Bxv(this.selection.end)))};
_.m.updateCalendarSelection=function(G){this.calendar.updateSelection(Object.assign({},G,{selectionState:this.selectionState}))};
_.m.updateIsStartDateInvalidFromBinding=function(G){this.isStartDateInvalid=G.detail.value};
_.m.updateIsEndDateInvalidFromBinding=function(G){this.isEndDateInvalid=G.detail.value};
_.m.updateStartDateStringFromBinding=function(){};
_.m.updateEndDateStringFromBinding=function(){};
_.kV.Object.defineProperties(jU.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:bP(this.data.dateRangeStart),end:bP(this.data.dateRangeEnd),selection:{start:bP(this.data.selection.start),end:bP(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&&gNX(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Al2(this.selection)}}});
jU.prototype.resetTextboxes=jU.prototype.resetTextboxes;jU.prototype.observeSelection=jU.prototype.observeSelection;jU.prototype.dataChanged=jU.prototype.dataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],jU.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.lH("#calendar"),_.n("design:type",Object)],jU.prototype,"calendar",void 0);
_.R([_.lH("#start-date"),_.n("design:type",Object)],jU.prototype,"startDateInput",void 0);_.R([_.lH("#end-date"),_.n("design:type",Object)],jU.prototype,"endDateInput",void 0);_.R([_.H(),_.n("design:type",Object)],jU.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],jU.prototype,"selection",void 0);_.R([_.H(),_.n("design:type",String)],jU.prototype,"selectionState",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],jU.prototype,"calendarConfig",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],jU.prototype,"errorMessage",null);_.R([_.P("selection"),_.n("design:type",Object),_.n("design:paramtypes",[])],jU.prototype,"startDate",null);_.R([_.P("selection"),_.n("design:type",Object),_.n("design:paramtypes",[])],jU.prototype,"endDate",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jU.prototype,"dataChanged",null);
_.R([_.q5("selection","selectionState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jU.prototype,"observeSelection",null);_.R([_.q5("selectionState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jU.prototype,"resetTextboxes",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],jU);
_.J(jU,"ytd-date-period-picker-renderer",function(){if($qB!==void 0)return $qB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return $qB=G},{mode:1});var lR=function(){var G=_.a.apply(this,arguments)||this;var b={};G.actionMap=(b["ytd-date-period-picker-apply"]="handleDateRangeUpdated",b);return G};
_.M(lR,_.a);lR.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
lR.prototype.handleDateRangeUpdated=function(){};
_.R([_.H(),_.n("design:type",Object)],lR.prototype,"data",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],lR.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],lR.prototype,"rendererstamperBehavior",void 0);_.R([_.N({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],lR);
_.J(lR,"ytd-report-history-section-header-renderer",function(){if(XxQ!==void 0)return XxQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return XxQ=G},{mode:1});var qF8;var jdn;var ljJ;var mg=function(){return _.a.apply(this,arguments)||this};
_.M(mg,_.a);_.kV.Object.defineProperties(mg.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?0:(b=G.icon)==null?0:b.iconType)?_.pn(this.data.icon.iconType):""}}});
_.R([_.H(),_.n("design:type",Object)],mg.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",String),_.n("design:paramtypes",[])],mg.prototype,"icon",null);_.R([_.N({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],mg);
_.J(mg,"ytd-report-history-table-text-cell-renderer",function(){if(ljJ!==void 0)return ljJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ljJ=G},{mode:1});var eU=function(){return _.a.apply(this,arguments)||this};
_.M(eU,_.a);eU.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],eU.prototype,"data",void 0);_.R([_.N({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],eU);
_.J(eU,"ytd-report-history-table-reason-cell-renderer",function(){if(jdn!==void 0)return jdn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jdn=G},{mode:1});var VW=function(){return _.a.apply(this,arguments)||this};
_.M(VW,_.a);VW.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],VW.prototype,"rendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],VW.prototype,"data",void 0);_.R([_.N({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],VW);
_.J(VW,"ytd-report-history-table-cell-renderer",function(){if(qF8!==void 0)return qF8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return qF8=G},{mode:1});var mqb;var Dv=function(){var G=_.a.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};
_.M(Dv,_.a);Dv.prototype.onDataChanged=function(){var G;if((G=this.data)==null?0:G.style)this.componentStyle=this.getStyleName(this.data.style)};
Dv.prototype.getCellForColumn=function(G){return this.cells.find(function(b){var I;return((I=_.g(b==null?void 0:b.cell,qUn)||_.g(b==null?void 0:b.cell,hGu))==null?void 0:I.columnId)===G.type})};
Dv.prototype.getClassForColumn=function(G){switch(G){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Dv.prototype.getStyleName=function(G){switch(G){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.kV.Object.defineProperties(Dv.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.cells)||[]).map(function(b){return _.g(b,IfB)})}}});
Dv.prototype.onDataChanged=Dv.prototype.onDataChanged;_.R([_.H(),_.n("design:type",Object)],Dv.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Array)],Dv.prototype,"columnRenderData",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],Dv.prototype,"componentStyle",void 0);_.R([_.P("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],Dv.prototype,"cells",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dv.prototype,"onDataChanged",null);_.R([_.N({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Dv);
_.J(Dv,"ytd-report-history-table-row-renderer",function(){if(mqb!==void 0)return mqb;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mqb=G},{mode:1});var e0n;var VYn;var iaX={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},P8j={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var cI=function(){return _.a.apply(this,arguments)||this};
_.M(cI,_.a);cI.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"}}}}}};
cI.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.kV.Object.defineProperties(cI.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.columns)?Has(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return rla(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var G=this.tableSpec,b=iaX;b=b===void 0?P8j:b;b=Fcq(G.columnDimensions,G.columnsToShow||[],b);G=0;b=_.e(b);for(var I=b.next();!I.done;I=b.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([_.z(_.mD),_.n("design:type",Object)],cI.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],cI.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],cI.prototype,"tableSpec",null);_.R([_.P("tableSpec"),_.n("design:type",Array),_.n("design:paramtypes",[])],cI.prototype,"columnRenderData",null);
_.R([_.P("tableSpec"),_.n("design:type",Number),_.n("design:paramtypes",[])],cI.prototype,"totalMinWidth",null);_.R([_.P("totalMinWidth"),_.n("design:type",String),_.n("design:paramtypes",[])],cI.prototype,"tableWidthStyle",null);_.R([_.N({is:"ytd-table-renderer",disableElementRegistration:!0})],cI);
_.J(cI,"ytd-table-renderer",function(){if(VYn!==void 0)return VYn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VYn=G},{mode:1});var kO=function(){return _.a.apply(this,arguments)||this};
_.M(kO,_.a);kO.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],kO.prototype,"data",void 0);_.R([_.N({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],kO);
_.J(kO,"ytd-report-reason-history-modal-renderer",function(){if(e0n!==void 0)return e0n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return e0n=G},{mode:1});var Dqn;var c9W;var kRO;var vI=function(){return _.a.apply(this,arguments)||this};
_.M(vI,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],vI.prototype,"data",void 0);_.R([_.N({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],vI);
_.J(vI,"ytd-profile-column-stats-entry-renderer",function(){if(kRO!==void 0)return kRO;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return kRO=G},{mode:1});var vLO;var Lz=function(){return _.a.apply(this,arguments)||this};
_.M(Lz,_.a);Lz.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Lz.prototype,"data",void 0);_.R([_.N({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Lz);
_.J(Lz,"ytd-profile-column-stats-renderer",function(){if(vLO!==void 0)return vLO;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return vLO=G},{mode:1});var LPX;var QW=function(){return _.a.apply(this,arguments)||this};
_.M(QW,_.a);_.kV.Object.defineProperties(QW.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.useThumbnailSize)return 80;var b,I;G=(b=this.data)==null?void 0:(I=b.thumbnail)==null?void 0:I.thumbnails;var h;return G&&((h=G[0])==null?void 0:h.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.useThumbnailSize)return 80;var b,I;G=(b=this.data)==null?void 0:(I=b.thumbnail)==null?void 0:I.thumbnails;var h;return G&&((h=G[0])==null?void 0:h.height)||80}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],QW.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],QW.prototype,"componentStyle",void 0);_.R([_.P("data.useThumbnailSize"),_.n("design:type",Object),_.n("design:paramtypes",[])],QW.prototype,"thumbnailWidth",null);
_.R([_.P("data.useThumbnailSize"),_.n("design:type",Object),_.n("design:paramtypes",[])],QW.prototype,"thumbnailHeight",null);_.R([_.N({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],QW);
_.J(QW,"ytd-profile-column-user-info-renderer",function(){if(LPX!==void 0)return LPX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return LPX=G},{mode:1});var xO=function(){return _.a.apply(this,arguments)||this};
_.M(xO,_.a);xO.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],xO.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],xO.prototype,"componentStyle",void 0);_.R([_.N({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],xO);
_.J(xO,"ytd-profile-column-renderer",function(){if(c9W!==void 0)return c9W;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return c9W=G},{mode:1});var fz=function(){var G=_.a.apply(this,arguments)||this;G.componentStyle="NON_CENTERED_PROFILE";return G};
_.M(fz,_.a);fz.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
fz.prototype.getIcon=function(G){return G?"settings:"+G.toLowerCase():null};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fz.prototype,"data",void 0);_.R([_.N({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],fz);
_.J(fz,"ytd-page-introduction-renderer",function(){if(Dqn!==void 0)return Dqn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Dqn=G},{mode:1});var QdO;var TL=function(){return _.a.apply(this,arguments)||this};
_.M(TL,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],TL.prototype,"data",void 0);_.R([_.N({is:"ytd-report-description-renderer",disableElementRegistration:!0})],TL);
_.J(TL,"ytd-report-description-renderer",function(){if(QdO!==void 0)return QdO;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return QdO=G},{mode:1});var xq5;var fjJ;var BI=function(){return _.a.apply(this,arguments)||this};
_.M(BI,_.a);BI.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],BI.prototype,"data",void 0);_.R([_.N({is:"ytd-video-report-renderer",disableElementRegistration:!0})],BI);
_.J(BI,"ytd-video-report-renderer",function(){if(fjJ!==void 0)return fjJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fjJ=G},{mode:1});var TDe;_.QO("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.QO("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Ux=function(){return _.a.apply(this,arguments)||this};
_.M(Ux,_.a);Ux.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]]"}}}}}};
Ux.prototype.computeMessageStyle=function(G){return G};
Ux.prototype.computeButtonOverride=function(G){var b;if((G==null?0:(b=G.style)==null?0:b.value)&&G.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ux.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ux.prototype,"shelf",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ux.prototype,"panel",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.n("design:type",Boolean)],Ux.prototype,"componentStyle",void 0);_.R([_.H({computed:"computeButtonOverride(data)"}),_.n("design:type",Object)],Ux.prototype,"buttonOverride",void 0);_.R([_.N({is:"ytd-message-renderer",disableElementRegistration:!0})],Ux);
_.J(Ux,"ytd-message-renderer",function(){if(TDe!==void 0)return TDe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return TDe=G},{mode:1});var sx=function(){return _.a.apply(this,arguments)||this};
_.M(sx,_.a);sx.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"}}}};
sx.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
sx.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.kV.Object.defineProperties(sx.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var G,b;return!!(((G=this.data)==null?0:G.header)&&((b=this.data)==null?0:b.table))}}});
sx.prototype.onRequestError=sx.prototype.onRequestError;_.R([_.z(_.mD),_.n("design:type",Object)],sx.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],sx.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],sx.prototype,"data",void 0);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],sx.prototype,"isUnifiedReportHistory",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sx.prototype,"onRequestError",null);_.R([_.N({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],sx);
_.J(sx,"ytd-report-history-section-renderer",function(){if(xq5!==void 0)return xq5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xq5=G},{mode:1});var BDi;var ge=function(){var G=_.a.apply(this,arguments)||this;G.answerExpanded=!1;return G};
_.M(ge,_.a);ge.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ge.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ge.prototype,"answerExpanded",void 0);_.R([_.N({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],ge);
_.J(ge,"ytd-handles-claiming-faq-renderer",function(){if(BDi!==void 0)return BDi;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return BDi=G},{mode:1});var Uq5;var sd5=function(){return _.a.apply(this,arguments)||this};
_.M(sd5,_.a);_.R([_.H(),_.n("design:type",Object)],sd5.prototype,"data",void 0);_.R([_.N({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],sd5);
_.J(sd5,"ytd-handles-claiming-faq-section-renderer",function(){if(Uq5!==void 0)return Uq5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Uq5=G},{mode:1});var gLX;var AO=function(){var G=_.a.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};
_.M(AO,_.a);_.m=AO.prototype;_.m.updateLeftSquigglyStyle=function(){_.G8(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.m.updateRightSquigglyStyle=function(){_.G8(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.m.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
_.m.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))};
_.m.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
AO.prototype.updateRightSquigglyStyle=AO.prototype.updateRightSquigglyStyle;AO.prototype.updateLeftSquigglyStyle=AO.prototype.updateLeftSquigglyStyle;_.R([_.H(),_.n("design:type",Object)],AO.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],AO.prototype,"isDarkTheme",void 0);_.R([_.H(),_.n("design:type",String)],AO.prototype,"leftSquiggly",void 0);_.R([_.H(),_.n("design:type",String)],AO.prototype,"rightSquiggly",void 0);
_.R([_.q5("leftSquiggly"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AO.prototype,"updateLeftSquigglyStyle",null);_.R([_.q5("rightSquiggly"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],AO.prototype,"updateRightSquigglyStyle",null);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],AO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],AO.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],AO.prototype,"actionButtonOverride",void 0);_.R([_.N({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],AO);
_.J(AO,"ytd-handles-claiming-header-renderer",function(){if(gLX!==void 0)return gLX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return gLX=G},{mode:1});var A9O;var Ml=function(){var G=_.a.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};
_.M(Ml,_.a);_.m=Ml.prototype;_.m.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.m.onDataChanged=function(){this.updateTitleAndImages()};
_.m.onThemeChanged=function(){this.updateTitleAndImages()};
_.m.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
_.m.updateImage0SquigglyBackground=function(){_.G8(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.m.updateImage1SquigglyBackground=function(){_.G8(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.m.updateImage3SquigglyBackground=function(){_.G8(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.m.updateTitleAndImages=function(){var G,b;((G=this.data)==null?void 0:(b=G.titleImages)==null?void 0:b.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))};
Ml.prototype.updateImage3SquigglyBackground=Ml.prototype.updateImage3SquigglyBackground;Ml.prototype.updateImage1SquigglyBackground=Ml.prototype.updateImage1SquigglyBackground;Ml.prototype.updateImage0SquigglyBackground=Ml.prototype.updateImage0SquigglyBackground;Ml.prototype.onThemeChanged=Ml.prototype.onThemeChanged;Ml.prototype.onDataChanged=Ml.prototype.onDataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Ml.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Ml.prototype,"isDarkTheme",void 0);_.R([_.H(),_.n("design:type",Object)],Ml.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Ml.prototype,"title0",void 0);_.R([_.H(),_.n("design:type",Object)],Ml.prototype,"title1",void 0);_.R([_.H(),_.n("design:type",Object)],Ml.prototype,"title2",void 0);_.R([_.H(),_.n("design:type",Object)],Ml.prototype,"title3",void 0);
_.R([_.H(),_.n("design:type",Object)],Ml.prototype,"title4",void 0);_.R([_.H(),_.n("design:type",Object)],Ml.prototype,"image0",void 0);_.R([_.H(),_.n("design:type",Object)],Ml.prototype,"image1",void 0);_.R([_.H(),_.n("design:type",Object)],Ml.prototype,"image2",void 0);_.R([_.H(),_.n("design:type",Object)],Ml.prototype,"image3",void 0);_.R([_.H(),_.n("design:type",Object)],Ml.prototype,"image4",void 0);_.R([_.H(),_.n("design:type",String)],Ml.prototype,"image0SquigglyBackground",void 0);
_.R([_.H(),_.n("design:type",String)],Ml.prototype,"image1SquigglyBackground",void 0);_.R([_.H(),_.n("design:type",String)],Ml.prototype,"image3SquigglyBackground",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ml.prototype,"onDataChanged",null);_.R([_.q5("isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ml.prototype,"onThemeChanged",null);
_.R([_.q5("image0SquigglyBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ml.prototype,"updateImage0SquigglyBackground",null);_.R([_.q5("image1SquigglyBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ml.prototype,"updateImage1SquigglyBackground",null);
_.R([_.q5("image3SquigglyBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ml.prototype,"updateImage3SquigglyBackground",null);_.R([_.N({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Ml);
_.J(Ml,"ytd-handles-claiming-title-images-section-renderer",function(){if(A9O!==void 0)return A9O;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return A9O=G},{mode:1});var MYW;var Zv=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.M(Zv,_.a);Zv.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
Zv.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G)};
Zv.prototype.onCopyButtonClick=function(){var G=this,b,I,h;return _.c(function(q){return(b=G.data)!=null&&b.primaryChannelUrl?q.yield(navigator.clipboard.writeText(((I=G.data)==null?0:I.encodedChannelUrl)?G.data.encodedChannelUrl:"https://"+_.NO((h=G.data)==null?void 0:h.primaryChannelUrl)),0):q.jumpTo(0)})};
_.R([_.H(),_.n("design:type",Object)],Zv.prototype,"data",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Zv.prototype,"ytComponentBehavior",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Zv.prototype,"isDarkTheme",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Zv.prototype,"ytActionHandlerBehavior",void 0);_.R([_.N({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Zv);
_.J(Zv,"ytd-handles-claiming-update-social-renderer",function(){if(MYW!==void 0)return MYW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return MYW=G},{mode:1});var ZKX;var tO=function(){var G=_.a.apply(this,arguments)||this;G.JSC$16246_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";G.JSC$16246_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$16246_squigglyBackgroundLight;return G};
_.M(tO,_.a);tO.prototype.updateSquigglyBackgroundStyle=function(){_.G8(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
tO.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.squigglyBackground=G?this.JSC$16246_squigglyBackgroundDark:this.JSC$16246_squigglyBackgroundLight};
tO.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),this.squigglyBackground=G?this.JSC$16246_squigglyBackgroundDark:this.JSC$16246_squigglyBackgroundLight)};
tO.prototype.updateSquigglyBackgroundStyle=tO.prototype.updateSquigglyBackgroundStyle;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],tO.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],tO.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],tO.prototype,"isDarkTheme",void 0);_.R([_.H(),_.n("design:type",String)],tO.prototype,"squigglyBackground",void 0);_.R([_.q5("squigglyBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tO.prototype,"updateSquigglyBackgroundStyle",null);_.R([_.N({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],tO);
_.J(tO,"ytd-handles-claiming-vanity-info-renderer",function(){if(ZKX!==void 0)return ZKX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ZKX=G},{mode:1});var tY5;var zL=function(){var G=_.a.apply(this,arguments)||this;G.JSC$16249_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";G.JSC$16249_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";G.squigglyBackground=G.JSC$16249_squigglyBackgroundLight;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.M(zL,_.a);_.m=zL.prototype;_.m.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
_.m.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),this.squigglyBackground=G?this.JSC$16249_squigglyBackgroundDark:this.JSC$16249_squigglyBackgroundLight)};
_.m.updateSquigglyBackgroundStyle=function(){_.G8(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.m.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.m.detached=function(){this.stop()};
_.m.stop=function(){this.playerElement.stop()};
_.m.setupVideoPlayer=function(){var G=this,b,I;return _.c(function(h){b=G.data.videoId;I="http://i1.ytimg.com/vi/"+b+"/maxresdefault.jpg";G.playerElement.loadVideoWithPlayerVars({video_id:b,iurlhq:I});_.ip(h)})};
zL.prototype.onDataChanged=zL.prototype.onDataChanged;zL.prototype.updateSquigglyBackgroundStyle=zL.prototype.updateSquigglyBackgroundStyle;_.R([_.H({value:!1}),_.n("design:type",Boolean)],zL.prototype,"isDarkTheme",void 0);_.R([_.H(),_.n("design:type",String)],zL.prototype,"squigglyBackground",void 0);_.R([_.lH("#player"),_.n("design:type",Object)],zL.prototype,"playerElement",void 0);_.R([_.H(),_.n("design:type",Object)],zL.prototype,"data",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],zL.prototype,"ytActionHandlerBehavior",void 0);_.R([_.q5("squigglyBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zL.prototype,"updateSquigglyBackgroundStyle",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zL.prototype,"onDataChanged",null);
_.R([_.N({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],zL);
_.J(zL,"ytd-handles-claiming-video-item-renderer",function(){if(tY5!==void 0)return tY5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return tY5=G},{mode:1});var z08;var iR=function(){var G=_.eH.apply(this,arguments)||this;G.dragging=!1;G.dragMouseStart=0;G.dragOffsetStart=0;G.containerWidthDiff=0;G.boundPrevClick=function(){G.set("offset",o8(G,G.offset-(G.scrollDistance||320)))};
G.boundNextClick=function(){G.set("offset",o8(G,G.offset+(G.scrollDistance||320)))};
G.boundScrollContainerMouseDown=function(b){G.dragMouseStart=b.clientX;G.dragOffsetStart=G.offset;G.dragging=!0};
G.boundScrollContainerDrag=function(b){G.dragging&&G.set("offset",o8(G,G.dragOffsetStart-(b.clientX-G.dragMouseStart)))};
G.boundMouseUp=function(){G.onMouseUp()};
G.boundWheelScroll=function(b){var I=0;Math.abs(b.deltaX)>=Math.abs(b.deltaY)?I=b.deltaX:b.shiftKey&&(I=b.deltaY);I!==0&&(G.offset+=I,b.stopPropagation(),b.preventDefault())};
G.boundChipCloudChipScrollIntoView=function(b){(b=b.detail)&&G.scrollChipIntoView(b)};
return G};
_.M(iR,_.eH);iR.prototype.attached=function(){var G=_.Eo(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)};
iR.prototype.detached=function(){var G=_.Eo(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)};
iR.prototype.reset=function(){this.set("offset",0);_.D1(this,this.setContainerWidthDiff);_.D1(this,this.setButtonsState)};
var o8=function(G,b){return Math.min(Math.max(b,0),G.containerWidthDiff)};
_.m=iR.prototype;_.m.onMouseUp=function(){this.dragging=!1};
_.m.transformContainer=function(){this.offset=o8(this,this.offset);var G=_.wy("HTML_DIR")==="rtl"?"":"-";_.Eo(this.hostElement).querySelector("#chips").style.transform="translateX("+G+this.offset+"px)";_.D1(this,this.setButtonsState)};
_.m.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=o8(this,this.offset));this.atStart=this.offset<=0};
_.m.setContainerWidthDiff=function(){var G=_.Eo(this.hostElement).querySelector("#scroll-container"),b=_.Eo(this.hostElement).querySelector("#chips");G&&b&&(this.containerWidthDiff=b.clientWidth-G.clientWidth)};
_.m.scrollChipIntoView=function(G){var b=_.Eo(this.hostElement).querySelector("#scroll-container");if(b){var I=this.atStart?0:106,h=this.atEnd?0:106;G.offsetLeft<this.offset+I?this.offset=o8(this,G.offsetLeft-I):G.offsetLeft+G.clientWidth>this.offset+b.clientWidth-h&&(this.offset=o8(this,G.offsetLeft+G.clientWidth+h-b.clientWidth))}};
iR.prototype.transformContainer=iR.prototype.transformContainer;_.R([_.H({value:0}),_.n("design:type",Number)],iR.prototype,"offset",void 0);_.R([_.H({value:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],iR.prototype,"atStart",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],iR.prototype,"atEnd",void 0);_.R([_.H(),_.n("design:type",Number)],iR.prototype,"scrollDistance",void 0);
_.R([_.q5("offset"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iR.prototype,"transformContainer",null);_.R([_.Vx()],iR);var oLn;var iKB;var y9Q=_.C(function(G){var b=G.data;G=_.e(_.ZZ(!1,void 0,"bob3J"));var I=G.next().value,h=G.next().value;G=function(l){if((b==null?void 0:b().state)!==1){var V,D;(D=(V=b()).onTap)==null||D.call(V,l)}};
var q={};return _.v("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Xu(function(){var l=_.LL().resolve(_.vf(_.v6));if(l){h(l.isKeyBoardInUse());var V,D;(D=(V=b()).onFocusIn)==null||D.call(V)}return!1}),
"on:focusout":_.Xu(function(){h(!1);return!1})},_.v(PtO,{shouldWrapInButton:function(){return b().type!==2},
selected:function(){return b().state===0},
onClick:G,isDropdown:function(){return b().type===1},
accessibilityLabel:function(){return b().type===1?void 0:b().accessibilityLabel}},_.v("div",{class:_.pG("ytChipShapeChip",function(){a:switch(b==null?void 0:b().state){case 0:var l="ytChipShapeActive";
break a;case 1:l="ytChipShapeDisabled";break a;default:l="ytChipShapeInactive"}return l},function(){var l=b().type===1||b().type===2,V=b();
return l||V!=null&&V.startIcon?V==null||!V.startIcon||V!=null&&V.text?l?"ytChipShapeEndIconPadding":(V==null?0:V.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var l=b();
if((l==null?void 0:l.style)===0&&(l==null?void 0:l.state)===0){var V;l=((V=_.LL().resolve(_.vf(_.Pv)))==null?0:V())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else l="";return l},(q.ytChipShapeFocused=function(){var l;
return I()&&((l=b())==null?void 0:l.state)!==1},q))},_.v(_.Q,{cond:function(){return b().startIcon},
then:function(){return _.v(_.ha,{icon:function(){var l;return(l=b())==null?void 0:l.startIcon},
className:_.pG(function(){return b().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var l=b(),V,D=(V=_.LL().resolve(_.vf(_.Pv)))==null?void 0:V();
return(l==null?void 0:l.style)===0&&(l==null?void 0:l.state)===0&&D?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return b().text},_.v(dqQ,{shape:b,
onClick:G}),_.v(_.Qy,{model:{borderRadius:"8px"}}))))},"Lc");
y9Q.idomCompat=!0;var PtO=_.C(function(G){var b=_.Xu(function(I){G.onClick(I);return!1});
return _.v(_.Q,{cond:G.shouldWrapInButton,then:function(){return _.v("button",{class:"ytChipShapeButtonReset","on:click":b,role:function(){return G.isDropdown()?"combobox":"tab"},
"aria-label":G.accessibilityLabel,"aria-selected":G.selected},G.children)},
else:function(){return G.children}})},"Mc"),dqQ=_.C(function(G){var b=G.shape;
var I=G.onClick;var h=_.Xu(function(q){I(q);return!1});
return _.v(_.Nc,null,_.v(_.H3,{when:function(){return b().type===1}},function(){return _.v(_.ha,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.v(_.H3,{when:function(){return b().type===2}},function(){return _.v("button",{class:"ytChipShapeButtonReset",
"on:click":h},_.v(_.ha,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.v(_.H3,{when:function(){return b().type===0}},function(){return _.v(_.xz,null)}))},"Nc");_.JN(y9Q,"chip-shape",{props:{data:_.hV}});var PI=function(){var G=_.a.apply(this,arguments)||this;G.disableDeselectEvent=!1;G.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return G};
_.M(PI,_.a);_.m=PI.prototype;_.m.onSelectChipCommand=function(G){if(!this.selected&&this.data&&(G=_.g(G,VbJ),G.targetId&&G.targetId===this.data.targetId))this.onTap()};
_.m.onFilterChipTransformCommand=function(G){if(!this.selected&&this.data){var b;(G=(b=_.g(G,hau))==null?void 0:b.chipUniqueId)&&G===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.m.dataChanged=function(){var G=this;_.D1(this,function(){G.data&&G.data.isSelected&&!G.selected&&(G.scrollChipIntoView(),G.onTap())})};
_.m.computeChipStyle=function(G){return G!=null?G:"STYLE_DEFAULT"};
_.m.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.wL(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.wL(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.m.onFocus=function(){var G=_.LL().resolve(_.vf(_.v6));G&&G.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.m.scrollChipIntoView=function(){_.O3(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.kV.Object.defineProperties(PI.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return KcO({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
PI.prototype.onFocus=PI.prototype.onFocus;PI.prototype.onTap=PI.prototype.onTap;PI.prototype.dataChanged=PI.prototype.dataChanged;_.R([_.z(_.rr),_.n("design:type",Object)],PI.prototype,"ironButtonState",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],PI.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],PI.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.PO),_.n("design:type",Object)],PI.prototype,"ironA11yKeysBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],PI.prototype,"disableDeselectEvent",void 0);_.R([_.H(),_.n("design:type",Object)],PI.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.icon"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],PI.prototype,"hasIcon",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data.uniqueId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],PI.prototype,"isGnomeChip",null);_.R([_.H({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.n("design:type",String)],PI.prototype,"chipStyle",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],PI.prototype,"selected",void 0);
_.R([_.P("data","selected"),_.n("design:type",Object),_.n("design:paramtypes",[])],PI.prototype,"chipShapeData",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PI.prototype,"dataChanged",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PI.prototype,"onTap",null);
_.R([_.hI("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PI.prototype,"onFocus",null);_.R([_.g8({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],PI);
_.J(PI,"yt-chip-cloud-chip-renderer",function(){if(iKB===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;oLn===void 0&&(oLn=document.createElement("template"));var h=oLn;I.call(b,h.content.cloneNode(!0),G.content.firstChild);iKB=G}G=iKB;return G},{mode:2});var nNa=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.r9O=_.C(function(G){function b(){if(nNa.has(G.data().displayType)){var L=!h(),x;if((x=G.disableDeselection)==null||!x.call(G)||L){G.data().selected=L;x=Object.assign({},V(),{selected:L});D(x);var f;(f=G.callback)==null||f.call(G,x,L)}}}
var I=_.ee("chip-view-model"),h=function(){var L,x;return!!(((L=G.selected)==null?void 0:L.call(G))!==void 0?(x=G.selected)==null?0:x.call(G):V().selected)},q=_.e(_.bk(G.data)),l=q.next().value;
q=q.next().value;var V=l,D=q,k=_.lA(R5u,function(){return G.data().chipEntityKey||""});
return _.v("chip-view-model",{class:"ytChipViewModelHost",el:I},_.v(y9Q,{data:function(){var L,x=Object.assign({},V(),{selected:h()}),f=k(),T=(L=G.disableDeselection)==null?void 0:L.call(G);a:switch(x.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":L=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":L=3;break a;default:L=0}return{text:(f==null?void 0:f.text)||x.text,state:x.disabled?1:x.selected?0:2,type:L,onTap:OaO(x,I,b,T),
accessibilityLabel:x.accessibilityLabel||x.text}}}))},"Oc");
_.r9O.idomCompat={callbacks:{callback:!0}};_.de=_.C(function(G){var b=G.data;var I=G.callback;var h=G.selectionBehavior;var q=G.disableChipsScrollAnimation;var l=_.VF("div");G=_.e(_.ZZ(!0,void 0,"aUEsOc"));var V=G.next().value,D=G.next().value;G=_.e(_.ZZ(!1,void 0,"V0aKld"));var k=G.next().value,L=G.next().value,x=!1,f=0;_.JC(function(){D(A());L(t())});
G=_.e(_.bk(function(){var $a={};return b().autoselectedChipIndex!=null?($a[b().autoselectedChipIndex]=!0,$a):{}}));
var T=G.next().value,B=G.next().value,A=function(){var $a=l.value;return $a==null||$a.scrollLeft-1<=0},t=function(){var $a=l.value;
return $a==null?!1:$a.scrollLeft+1>=($a==null?NaN:$a.scrollWidth)-($a==null?NaN:$a.clientWidth)},y=function(){return b().isHorizontallyScrollable},F=function($a){l.value!=null&&(_.wy("HTML_DIR")==="rtl"&&($a=-$a),l.value.scrollBy({left:$a,
behavior:(q==null?0:q())?"instant":"smooth"}))},W=function(){F(-320)},O=function(){F(320)},K=_.Xu(function($a){x=!0;
f=$a.clientX}),u=_.Xu(function($a){if(x){$a=$a.clientX;
var ev=$a-f;f=$a;var LO;(LO=l.value)==null||LO.scrollBy({left:-ev})}}),w=_.Xu(function(){var $a=A(),ev=t();
$a!==V()&&D($a);ev!==k()&&L(ev)});
_.kG("pointerup",function(){x&&(x=!1)});
return _.v("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.v(_.gB,{contentId:function(){return b().contentId},
useModernStyle:!0},function(){var $a={},ev={};return _.v("div",null,_.v(_.Q,{cond:function(){return b().title},
then:function(){return _.v("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.v("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return b().title}),_.v(_.VX,{data:function(){return b().overflowButton}},{buttonViewModel:_.sQ}))}}),_.v("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.v(_.Q,{cond:function(){return b().previousButton},
then:function(){var LO={};return _.v("div",{class:_.pG("ytChipsShelfViewModelLeftArrowContainer",(LO.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return V()},LO))},_.v(_.VX,{data:function(){return b().previousButton}},{buttonViewModel:function(td){return _.v(_.sQ,{data:td.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:W})}}))}}),_.v("div",{el:l,
"on:pointerdown":K,"on:pointermove":u,"on:scroll":w,class:_.pG("ytChipsShelfViewModelChipsScrollContainer",($a.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=y,$a))},_.v("div",{class:_.pG("ytChipsShelfViewModelChipsContainer",(ev.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=y,ev.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,ev)),role:"tablist"},_.v(_.VX,{data:function(){return b().contents}},{chipViewModel:function(LO,td){return _.v("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.v(_.r9O,{data:LO.data,
callback:function(xa,Uj){var W2=td(),is,su=(is=h==null?void 0:h())!=null?is:0;su===1||su===2?(is={},B((is[W2]=Uj,is))):(is={},B(Object.assign({},T(),(is[W2]=Uj,is))));I==null||I(xa,Uj,W2)},
disableDeselection:function(){return(h==null?void 0:h())===1},
selected:function(){return!!T()[td()]}}))}}))),_.v(_.Q,{cond:function(){return b().nextButton},
then:function(){var LO={};return _.v("div",{class:_.pG("ytChipsShelfViewModelRightArrowContainer",(LO.ytChipsShelfViewModelRightArrowContainerIsHidden=k,LO))},_.v(_.VX,{data:function(){return b().nextButton}},{buttonViewModel:function(td){return _.v(_.sQ,{data:td.data,
className:"ytChipsShelfViewModelRightArrow",onClick:O})}}))}})))}))},"Qc");
_.de.idomCompat={callbacks:{callback:!0}};var FPX=_.C(function(G){var b=G.data;return _.v("ytd-ai-response-box-view-model",{class:_.pG("ytdAiResponseBoxViewModelHost")},_.v("div",{class:"ytdAiResponseBoxViewModelResponseMessageContainer"},_.v(_.IS,{text:function(){return b().responseMessage}})),_.v(_.VX,{data:function(){return b().chipsShelf}},{chipsShelfViewModel:function(I){return _.v("div",{class:"ytdAiResponseBoxViewModelChipsShelfContainer"},_.v(_.de,{data:I.data}))}}))},"Rc");var HK5;HK5=Object.assign({},{continuation:Oz5,download:Yxz,canvas:QFj,reportChannelAbuse:$db,ui:fFr,share:GpA,talkToRecs:hNQ,watch:$q,ypc:VjQ,radioButtonGroup:vEO,collabInviteLink:co2},nOW,{voiceSearch:UMj,shorts:Xg});_.yW=fk(HK5);_.WPn=TB(_.yW);_.ajW=(0,_.WPn)(_.yW.talkToRecs,{talkToRecsStateSelector:function(G){return G}});_.JN(_.C(function(G){var b=_.e((0,_.bjz)(G.data)).next().value,I=_.e(uVX()),h=I.next().value;I=I.next().value;var q=_.m2(_.ajW.talkToRecsStateSelector),l=_.e(_.bk(function(){var B,A,t;return(t=(A=ENs(b(),q()))!=null?A:(B=b().textInputValue)==null?void 0:B.content)!=null?t:""})),V=l.next().value,D=l.next().value;
_.K3(function(){var B=b().onVisible;B&&_.Zm(B,{})});
var k=function(B){var A=b().onUpdateText;A&&_.Zm(A,{form:{userQuery:B}})},L=_.A8(function(B){k(B)},150),x=_.Xu(function(B){B=B.target.value.trim();
D(B);L(B);return!1});
_.K0(function(){var B=ENs(b(),q());B&&B!==V()&&D(B)},"xJYAhb");
var f=_.Xu(function(B){if(B.key==="Enter"){k(B.target.value.trim());var A=_.g(b().submitButton,_.j6);B=void 0;var t;if(A==null?0:(t=A.loggingDirectives)==null?0:t.trackingParams)B=_.VB(A.loggingDirectives.trackingParams);(t=A==null?void 0:A.onTap)&&_.Zm(t,{clickedVisualElement:B})}return!1}),T=_.Xu(function(){h("yt-feed-customization-scroll-up")});
return _.v("ytd-feed-customization-form-view-model",{class:"ytdFeedCustomizationFormViewModelHost",el:_.Wv(I)},_.v(_.Q,{cond:function(){var B,A;return!((A=(B=G.isCollapsed)==null?void 0:B.call(G))!=null&&A)},
then:function(){return _.v("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer"},_.v("div",{class:"ytdFeedCustomizationFormViewModelInputContainer"},_.v("input",{class:"ytdFeedCustomizationFormViewModelInput",type:"text",placeholder:function(){var B;return(B=b().textInputPlaceholder)==null?void 0:B.content},
"prop:value":V,"on:input":x,"on:keyup":f,maxlength:250}),_.v(_.VX,{data:function(){return b().submitButton}},{buttonViewModel:function(B){return _.v("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.v(_.sQ,{data:B.data}))}}),_.v(_.VX,{data:function(){return b().menuButton}},{buttonViewModel:function(B){return _.v("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.v(_.sQ,{data:B.data}))}})),_.v(_.VX,{data:function(){return b().contents}},{aiResponseBoxViewModel:function(B){return _.v("div",
{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.v(FPX,{data:B.data}))}}))},
else:function(){return _.v("div",{class:"ytdFeedCustomizationFormViewModelCollapsedBodyContainer","on:click":T},_.v("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},V))}}))},"Tc"),"ytd-feed-customization-form-view-model",{props:{data:_.hV,
isCollapsed:_.hV}});var NDO=_.PH.persistentPanelVisibleSelector,re=function(){var G=_.a.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.collapseFeedCustomizationForm=!1;G.isPlaylist=!1;G.playlistVotingAnimationEnabled=_.U("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};
_.M(re,_.a);_.m=re.prototype;
_.m.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",properties:{isCollapsed:"[[collapseFeedCustomizationForm]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.m.attached=function(){var G=this;document.addEventListener("scroll",_.I9(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var b;this.toolbarHeight=((b=document.querySelector("ytd-masthead"))==null?void 0:b.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))};
_.m.detached=function(){var G;(G=this.intersectionObserver)==null||G.disconnect();var b;(b=this.resizeObserver)==null||b.disconnect();document.removeEventListener("scroll",_.I9(this,this.updateChipBarWidthAndTop))};
_.m.dataChanged=function(){var G=this,b,I,h;((h=_.g((b=this.data)==null?void 0:(I=b.contents)==null?void 0:I[0],vku))==null?void 0:h.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var q=this.findSelectedChipIndex();this.selectedIndex!==q&&(this.selectedIndex=-1);_.D1(this,function(){G.selectedIndex=q;G.updateSelectedChipContent(G.selectedIndex);G.updating=!1;G.ytScrollableChipCloudBehavior.reset()})};
_.m.findSelectedChipIndex=function(){var G;if((G=this.data)==null||!G.contents)return 0;G=this.data.contents;for(var b=0;b<G.length;b++){var I=void 0;if((I=_.g(G[b],vku))==null?0:I.isSelected)return b}return 0};
_.m.computeStyle=function(G){return G};
_.m.handleChipCloudChipSelectAction=function(G){G=this.JSC$16286_chipsSelector.indexOf(G);G>-1&&this.JSC$16286_chipsSelector.selectIndex(G)};
_.m.updateSelectedChipContent=function(G){var b;if((b=this.data)==null||!b.contents||G<0||G>=this.data.contents.length)this.selectedChipContent=void 0;else{var I;this.selectedChipContent=(I=_.g(this.data.contents[G],vku))==null?void 0:I.content}};
_.m.handleChipCloudChipDeselectAction=function(){if(_.U("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var G,b,I,h=(I=_.g((G=this.data)==null?void 0:(b=G.contents)==null?void 0:b[0],vku))==null?void 0:I.navigationEndpoint;h&&_.wL(this.hostElement,"yt-browse-section-list-reload-endpoint",[h]);this.JSC$16286_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.m.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.m.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.m.onResize=function(){this.updateLayout()};
_.m.updateLayout=function(){var G=this.ytScrollableChipCloudBehavior;_.D1(G,G.setContainerWidthDiff);G=this.ytScrollableChipCloudBehavior;_.D1(G,G.setButtonsState)};
_.m.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.m.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.m.handleIntersect=function(G){this.notSticky=this.isChannelPageGrid||this.disableSticky||G[0].intersectionRatio===1};
_.m.updateDimensions=function(){var G=this.ytRendererBehavior.parentComponent;if(G){var b,I=(b=G.headerElement)!=null?b:G;_.G8(this.hostElement,{"--ytd-rich-grid-chips-bar-width":I.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.m.updateSelectedIndexFromBinding=function(G){this.selectedIndex=G.detail.value};
_.m.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var G;(G=this.sortFilterHeaderRendererElement)==null||G.setAttribute("is-playlist-page-with-filters","")}};
_.m.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(mdu(!this.notSticky))};
_.kV.Object.defineProperties(re.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,b,I=(G=this.data)==null?void 0:(b=G.contents)==null?void 0:b.find(function(h){return _.g(h,TNn)});
return{sortFilterHeaderRenderer:_.g(I,TNn)}}}});
re.prototype.dispatchChipBarIsSticky=re.prototype.dispatchChipBarIsSticky;re.prototype.isPlaylistPageChanged=re.prototype.isPlaylistPageChanged;re.prototype.updateChipBarWidthAndTop=re.prototype.updateChipBarWidthAndTop;re.prototype.onResize=re.prototype.onResize;re.prototype.onPersistentPanelVisibleChanged=re.prototype.onPersistentPanelVisibleChanged;re.prototype.onGuideIsExpandedChanged=re.prototype.onGuideIsExpandedChanged;re.prototype.dataChanged=re.prototype.dataChanged;
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],re.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.Y6),_.n("design:type",Object)],re.prototype,"ironResizableBehavior",void 0);_.R([_.z(),_.n("design:type",iR)],re.prototype,"ytScrollableChipCloudBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],re.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],re.prototype,"data",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],re.prototype,"selectedIndex",void 0);_.R([_.H({value:320}),_.n("design:type",Number)],re.prototype,"scrollDistance",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],re.prototype,"isDarkTheme",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],re.prototype,"notSticky",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],re.prototype,"transparentBackground",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.n("design:type",String)],re.prototype,"componentStyle",void 0);_.R([_.H({selector:_.PDr}),_.n("design:type",Boolean)],re.prototype,"guideIsExpanded",void 0);
_.R([_.H({selector:NDO}),_.n("design:type",Boolean)],re.prototype,"persistentPanelVisible",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],re.prototype,"shouldHide",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],re.prototype,"disableSticky",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],re.prototype,"fluidWidth",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],re.prototype,"isClipList",void 0);
_.R([_.H(),_.n("design:type",Object)],re.prototype,"defaultChipIndex",void 0);_.R([_.H(),_.n("design:type",Object)],re.prototype,"selectedChipContent",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],re.prototype,"collapseFeedCustomizationForm",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],re.prototype,"isPlaylist",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],re.prototype,"playlistVotingAnimationEnabled",void 0);
_.R([_.lH("#chips"),_.n("design:type",Object)],re.prototype,"JSC$16286_chipsSelector",void 0);_.R([_.lH("ytd-sort-filter-header-renderer"),_.n("design:type",HTMLElement)],re.prototype,"sortFilterHeaderRendererElement",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],re.prototype,"updating",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],re.prototype,"dataChanged",null);
_.R([_.q5("guideIsExpanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],re.prototype,"onGuideIsExpandedChanged",null);_.R([_.q5("persistentPanelVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],re.prototype,"onPersistentPanelVisibleChanged",null);_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],re.prototype,"onResize",null);
_.R([_.Dd("isChannelPageGrid","disableSticky","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],re.prototype,"updateChipBarWidthAndTop",null);_.R([_.P("componentStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],re.prototype,"isChannelPageGrid",null);_.R([_.P("componentStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],re.prototype,"isHashtagLandingPage",null);
_.R([_.q5("isPlaylistPage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],re.prototype,"isPlaylistPageChanged",null);_.R([_.P("componentStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],re.prototype,"isPlaylistPage",null);_.R([_.P("componentStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],re.prototype,"isDisableDeselectEvent",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],re.prototype,"sortFilterHeaderRendererData",null);_.R([_.H({reflectToAttribute:!0,selector:_.aN2}),_.n("design:type",String)],re.prototype,"frostedGlassMode",void 0);_.R([_.q5("notSticky"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],re.prototype,"dispatchChipBarIsSticky",null);_.R([_.N({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],re);
_.J(re,"ytd-feed-filter-chip-bar-renderer",function(){if(z08!==void 0)return z08;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return z08=G},{mode:1});var YFB;var Cti=_.C(function(G){var b=G.data;var I=G.buttonIndex;var h=G.selectedIndex;var q=G.onSelect;var l=function(){return I()===h()},V=function(){var D,k;
return(k=(D=b().text)==null?void 0:D.content)!=null?k:""};
G=_.Cfr();return _.v("yt-toggleable-image-button-view-model",{class:function(){var D={};D=(D.toggleableImageButtonViewModelHost=!0,D[""]=!0,D.toggleableImageButtonViewModelSemiTransparent=h()!==-1&&!l(),D);return _.xU(D)},
tabindex:0,"aria-label":V,"aria-pressed":l,role:"button","on:keydown":G,"on:click":_.Xu(function(){q(b().onSubmitCommand);return!1})},_.v(_.Q,{cond:function(){return b().logo},
then:function(D){return _.v(_.Fu,{data:D,className:function(){var k={};k=(k.toggleableImageButtonViewModelImage=!0,k.toggleableImageButtonViewModelCircularRadius=!(!b().backgroundColor||!b().backgroundColorDarkMode),k.toggleableImageButtonViewModelGradientRing=!!(l()&&b().backgroundColor&&b().backgroundColorDarkMode),k);return _.xU(k)},
alt:V,useWidth:!1,style:function(){if(l()&&b().backgroundColor&&b().backgroundColorDarkMode){var k=gq(Number(b().backgroundColorDarkMode),"1");var L=gq(Number(b().backgroundColor),"1");k="background: linear-gradient(180deg,"+k+","+L+") border-box;"}else k="";return k}})}}),_.v(_.Qy,{model:{borderRadius:"16px"}}),_.v("p",{class:function(){var D={};
D=(D.toggleableImageButtonViewModelLabel=!0,D.toggleableImageButtonViewModelBoldText=l(),D);return _.xU(D)}},_.v(_.IS,{text:function(){return b().text}})))},"Uc");
Cti.idomCompat=!0;var KPu=_.C(function(G){var b=G.data;G=_.e(_.ZZ({index:-1,command:{}},void 0,"GM3umb"));var I=G.next().value,h=G.next().value;return _.v("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.v("div",{class:"nudgeFormViewModelFormOptions"},_.v(_.VX,{data:function(){return b().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(q,l){return _.v(Cti,{data:q.data,buttonIndex:l,selectedIndex:function(){return I().index},
onSelect:function(V){h({index:l(),command:V})}})}})),_.v(_.IS,{text:function(){return b().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.v("div",{class:"nudgeFormViewModelSubmit"},_.v(_.VX,{data:function(){return b().submitButton}},{buttonViewModel:function(q){return _.v(J9A,{data:q.data,
isDisabled:function(){return I().index===-1},
onClick:function(){_.Zm(I().command)}})}})))},"Vc");
KPu.idomCompat=!0;var J9A=_.C(function(G){var b=_.P$(function(){return Object.assign({},G.data(),{state:G.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.v(_.sQ,{data:b,onClick:G.onClick})},"Wc");_.JN(KPu,"yt-nudge-form-view-model",{props:{data:_.hV}});var F$=function(){var G=_.a.apply(this,arguments)||this;G.roundedContainer=!0;G.buttonUpdate=_.U("web_modern_buttons");G.isDarkMode=!1;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return G};
_.M(F$,_.a);_.m=F$.prototype;_.m.computeNudgeStyle=function(G){return G?"modernized-nudge":""};
_.m.handleDarkModeToggledAction=function(G){this.isDarkMode=G};
_.m.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.m.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"}}}};
_.m.computeIsHorizontalButtons=function(G){return G?!!G.applyModernizedStyle&&!!G.enableHorizontalButtons&&!!G.secondaryButton:!1};
_.kV.Object.defineProperties(F$.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,b;return(b=(G=this.data)==null?void 0:G.backgroundStyle)!=null?b:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var G,b;return(b=(G=this.data)==null?void 0:G.contentsLocation)!=null?b:"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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],F$.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],F$.prototype,"actionHandlerBehavior",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("isHideEnclosingAction"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],F$.prototype,"isHidden",null);_.R([_.H(),_.n("design:type",Object)],F$.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],F$.prototype,"roundedContainer",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],F$.prototype,"buttonUpdate",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.n("design:type",String)],F$.prototype,"nudgeStyle",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.trimStyle"),_.n("design:type",String),_.n("design:paramtypes",[])],F$.prototype,"trimStyle",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.backgroundStyle"),_.n("design:type",String),_.n("design:paramtypes",[])],F$.prototype,"backgroundStyle",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data.contentsLocation"),_.n("design:type",String),_.n("design:paramtypes",[])],F$.prototype,"contentsLocation",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.disableDropShadow"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],F$.prototype,"noShadow",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.lightIconImage"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],F$.prototype,"noIcon",null);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.n("design:type",Boolean)],F$.prototype,"isHorizontalButtons",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Object)],F$.prototype,"isDarkMode",void 0);_.R([_.N({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],F$);
_.J(F$,"ytd-feed-nudge-renderer",function(){if(YFB!==void 0)return YFB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YFB=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var uxn;var R08;var HI=function(){var G=_.a.apply(this,arguments)||this;G.collapsed=!1;G.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return G};
_.M(HI,_.a);HI.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"}}}};
HI.prototype.handleRatingSelect=function(){var G;((G=this.data)==null?0:G.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
HI.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],HI.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],HI.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.p5),_.n("design:type",Object)],HI.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],HI.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],HI.prototype,"collapsed",void 0);_.R([_.N({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],HI);
_.J(HI,"ytd-slimline-survey-renderer",function(){if(R08!==void 0)return R08;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return R08=G},{mode:1});var nL5;var WI=function(){return _.a.apply(this,arguments)||this};
_.M(WI,_.a);WI.prototype.maybeGetBackgroundColor=function(G){return this.isDarkMode?G.section2Color:G.section3Color};
WI.prototype.colorPaletteChanged=function(){var G=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;G&&(G==null?0:G.secondaryTitleColor)&&this.maybeGetBackgroundColor(G)?(this.hostElement.style.backgroundColor=_.Uo(this.maybeGetBackgroundColor(G)),this.hostElement.style.color=_.Uo(G.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
WI.prototype.colorPaletteChanged=WI.prototype.colorPaletteChanged;_.R([_.z(_.wN),_.n("design:type",Object)],WI.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],WI.prototype,"data",void 0);_.R([_.H({selector:function(G){return G.ui.darkModeIsEnabled}}),
_.n("design:type",Boolean)],WI.prototype,"isDarkMode",void 0);_.R([_.H(),_.n("design:type",Object)],WI.prototype,"lightColorPalette",void 0);_.R([_.H(),_.n("design:type",Object)],WI.prototype,"darkColorPalette",void 0);_.R([_.q5("darkColorPalette","lightColorPalette","data","isDarkMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],WI.prototype,"colorPaletteChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],WI);
_.J(WI,"ytd-endorsement-header-renderer",function(){if(nL5!==void 0)return nL5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return nL5=G},{mode:1});_.JN(_.w1,"yt-decorated-avatar-view-model",{props:{data:_.hV,className:_.hV}});_.a8=new _.q3("VIEW_TRANSITION_MANAGER_TOKEN");var Nl=function(){var G=_.a.apply(this,arguments)||this;G.fullHeight=_.U("web_rich_grid_media_full_height");G.showChannelAvatar=!0;G.hasPlaylistThumbnail=!1;G.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};G.registerThumbnailForPageTransition=function(){_.U("web_thumbnail_to_watch_transition")&&_.OKQ(_.LL().resolve(_.a8),G.thumbnail)};
return G};
_.M(Nl,_.a);_.m=Nl.prototype;
_.m.configureRendererStamper=function(){return{lazyLoadMenu:yV,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"}}}};
_.m.attached=function(){this.updateInlinePreviewHoverListeners()};
_.m.detached=function(){this.clearInlinePreviewHoverListeners()};
_.m.shouldLazyLoadMenu=function(){var G=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.U("kevlar_modern_downloads_page")||!G};
_.m.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16311_inlinePreviewHoverListener=Mt({mediaRenderer:this,lockupElement:this.JSC$16311_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.m.getVideoPreviewOpts=function(){var G={},b;if((b=this.data)==null?0:b.multipleInlinePlaybackEndpoint)G=zJA;this.isRadio&&(G=tDW);return G};
_.m.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16311_inlinePreviewHoverListener)==null||NA(G)};
_.m.getOwner=function(){var G,b,I;return((G=this.data)==null?void 0:(b=G.channelThumbnailSupportedRenderers)==null?void 0:b.channelThumbnailWithLinkRenderer)||_.g((I=this.data)==null?void 0:I.showProviderChannelThumbnail,vju)};
_.m.updateLockupSize=function(){var G;((G=this.getOwner())==null?0:G.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.m.getFeedbackEndpoint=function(G){if(_.g(G,_.sE))return G;var b,I;G=(I=(b=_.g(G,_.$P))==null?void 0:b.commands)!=null?I:[];b=_.e(G);for(I=b.next();!I.done;I=b.next())if(I=this.getFeedbackEndpoint(I.value))return I;return null};
_.m.computeNavigationEndpoint=function(G){return WSO(G==null?void 0:G.navigationEndpoint)};
_.m.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var G=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(G)!==JSON.stringify(this.data)&&this.set("data",G)}};
_.m.onDataChanged=function(){var G=this,b=this.getOwner();if(b){this.set("data.owner",b);var I,h,q,l,V,D=((I=this.data)==null?void 0:(h=I.shortBylineText)==null?void 0:(q=h.runs)==null?void 0:(l=q[0])==null?void 0:l.text)||((V=b.name)==null?void 0:V.simpleText);this.set("data.owner.title",D)}var k,L,x,f,T,B;b=((k=this.data)==null?void 0:(L=k.thumbnailRenderer)==null?void 0:L.playlistVideoThumbnailRenderer)||((x=this.data)==null?void 0:(f=x.thumbnailRenderer)==null?void 0:f.playlistCustomThumbnailRenderer)||
((T=this.data)==null?void 0:(B=T.thumbnailRenderer)==null?void 0:B.showCustomThumbnailRenderer);var A;((A=this.data)==null?0:A.thumbnail)||!b||this.set("data.thumbnail",b.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){G.updateLockupSize()});
var t;if(k=((t=this.data)==null?void 0:t.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(k);var y;((y=this.dismissActionToReplayEntity)==null?0:y.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.m.onHiddenChanged=function(){this.updateLockupSize()};
_.m.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.wL(this.hostElement,"yt-terminate-video-preview-action");else{var G;(G=this.videoTitleLink)==null||G.focus()}};
_.m.metadataColorChanged=function(){var G;if(this.metadataColor&&((G=this.videoTitle)==null?0:G.style))this.videoTitle.style.color=_.Uo(this.metadataColor);else{var b,I;!this.metadataColor&&((b=this.videoTitle)==null?0:(I=b.style)==null?0:I.color)&&(this.videoTitle.style.color="")}};
_.m.onDetailsClick=function(G){var b=this.computedNavigationEndpoint;b&&(_.NK(_.Wy(G),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.O3(this.hostElement,"yt-navigate",{endpoint:b}))};
_.m.onRendererTap=function(){this.registerThumbnailForPageTransition();var G,b,I=((G=this.data)==null?void 0:G.serviceEndpoint)||this.getFeedbackEndpoint((b=this.data)==null?void 0:b.navigationEndpoint);I&&_.g(I,_.sE)&&this.ytComponentBehavior.resolveCommand(I)};
_.m.onMouseDown=function(G){var b=G.target,I=this.computedNavigationEndpoint,h;G=b.href||((h=_.g(I==null?void 0:I.commandMetadata,_.IW))==null?void 0:h.url);h=b.data||I;G&&h&&osd(G,h)};
_.m.computeVideoTitleText=function(){var G;if((G=this.data)==null?0:G.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.m.computeHasPlaylistThumbnail=function(G){var b,I,h,q,l;if((((b=G.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((I=G.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer)||((h=G.thumbnailRenderer)==null?0:h.showCustomThumbnailRenderer)||((q=G.thumbnailRenderer)==null?0:q.playlistVideoThumbnailRenderer)||((l=G.thumbnailRenderer)==null?0:l.playlistCustomThumbnailRenderer))&&G.thumbnailOverlays)for(b=0;b<G.thumbnailOverlays.length;b++)if(I=void 0,(I=G.thumbnailOverlays[b])==
null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.kV.Object.defineProperties(Nl.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.U("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$16311_inlinePreviewHoverListener)==null?0:Xd(G))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.lbp(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,b;return((G=this.data)==null?void 0:G.videoId)||((b=this.data)==null?void 0:b.playlistId)||""}}});
Nl.prototype.onMouseDown=Nl.prototype.onMouseDown;Nl.prototype.metadataColorChanged=Nl.prototype.metadataColorChanged;Nl.prototype.onIsDismissedChanged=Nl.prototype.onIsDismissedChanged;Nl.prototype.onHiddenChanged=Nl.prototype.onHiddenChanged;Nl.prototype.onDataChanged=Nl.prototype.onDataChanged;Nl.prototype.handleReloadDownloadsInfo=Nl.prototype.handleReloadDownloadsInfo;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Nl.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Nl.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],Nl.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],Nl.prototype,"ytdLockupBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Nl.prototype,"ytdReduxBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],Nl.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],Nl.prototype,"entitySelectorType",void 0);_.R([_.H(),_.n("design:type",Boolean)],Nl.prototype,"noEndpoints",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Nl.prototype,"isRadio",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],Nl.prototype,"miniMode",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Nl.prototype,"fullHeight",void 0);
_.R([_.H(),_.n("design:type",Boolean)],Nl.prototype,"showDarkVideoMetadata",void 0);_.R([_.H(),_.n("design:type",Boolean)],Nl.prototype,"showLightVideoMetadata",void 0);_.R([_.H(),_.n("design:type",Number)],Nl.prototype,"metadataColor",void 0);_.R([_.H(),_.n("design:type",Object)],Nl.prototype,"showChannelAvatar",void 0);_.R([_.H(),_.n("design:type",Boolean)],Nl.prototype,"hidden",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],Nl.prototype,"showYtInteraction",void 0);
_.R([_.H(),_.n("design:type",String)],Nl.prototype,"dismissedContentId",void 0);_.R([_.H({selectorArgs:["dismissedContentId"],selector:V5O}),_.n("design:type",Object)],Nl.prototype,"dismissActionToReplayEntity",void 0);
_.R([_.H({selectorArgs:["entitySelectorType","mediaId"],selector:function(G,b,I){if(_.U("kevlar_modern_downloads_page")&&I&&b&&b!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(b){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var h=JVj(G,I);if(h){b=_.Z0(G,I);var q=zi(G,I),l=GNO(G,I);G=im(G,I);var V=DMX(h,b,q,l);q=V.shortViewCountText;var D=V.publishedTimeText;V=V.badges;var k=G>0;l=eor(h,b,l,G);h=_.Vg(b)||b==="TRANSFER_STATE_FAILED"||b==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!en(h.policyEntity)?
void 0:FSa(I,G,h.videoEntity.lengthSeconds);b==="TRANSFER_STATE_PAUSED_BY_USER"&&I&&!_.U("dl_resume_click_killswitch")&&(h={offlineVideoEndpoint:{videoId:I,action:"ACTION_RESUME"}});I={shortViewCountText:q,publishedTimeText:D,badges:V,isWatched:k,navigationEndpoint:h,thumbnailOverlays:l}}else I=void 0;return I;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(b=Kkd(G,I))if(h=_.tQ(G,I),l=_.uGq(G,I),h!=="TRANSFER_STATE_UNKNOWN"){I=VJr(b,h,l,I,_.MO(G));break a}I=void 0}return I;default:_.RB(new _.Wf("Error: entitySelectorType defined but not matched in selector.",
G,b))}}}),
_.n("design:type",Object)],Nl.prototype,"entityDrivenState",void 0);_.R([_.H({computed:"computeVideoTitleText(data)"}),_.n("design:type",Object)],Nl.prototype,"videoTitleText",void 0);_.R([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.n("design:type",Object)],Nl.prototype,"hasPlaylistThumbnail",void 0);_.R([_.H({computed:"computeNavigationEndpoint(data)"}),_.n("design:type",Object)],Nl.prototype,"computedNavigationEndpoint",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Nl.prototype,"typographyBump",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("typographyBump"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Nl.prototype,"typographyBumpV2",null);_.R([_.lH("#video-title"),_.n("design:type",HTMLElement)],Nl.prototype,"videoTitle",void 0);_.R([_.lH("#video-title-link"),_.n("design:type",HTMLElement)],Nl.prototype,"videoTitleLink",void 0);
_.R([_.lH("#thumbnail"),_.n("design:type",HTMLElement)],Nl.prototype,"thumbnail",void 0);_.R([_.lH("#dismissible"),_.n("design:type",HTMLElement)],Nl.prototype,"JSC$16311_dismissibleMedia",void 0);_.R([_.P("data.menu"),_.n("design:type",Object),_.n("design:paramtypes",[])],Nl.prototype,"lazyLoadMenu",null);_.R([_.P("data.menu"),_.n("design:type",Object),_.n("design:paramtypes",[])],Nl.prototype,"immediateLoadMenu",null);
_.R([_.Dd("entityDrivenState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Nl.prototype,"handleReloadDownloadsInfo",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Nl.prototype,"onDataChanged",null);_.R([_.Dd("hidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Nl.prototype,"onHiddenChanged",null);
_.R([_.q5("isDismissed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Nl.prototype,"onIsDismissedChanged",null);_.R([_.q5("metadataColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Nl.prototype,"metadataColorChanged",null);_.R([_.hI("mousedown"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Nl.prototype,"onMouseDown",null);
_.R([_.P("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Nl.prototype,"isHovered",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Nl.prototype,"useAvatar",null);_.R([_.P("data","entitySelectorType"),_.n("design:type",String),_.n("design:paramtypes",[])],Nl.prototype,"mediaId",null);_.R([_.N({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Nl);
var wSB=_.R9()(Nl,"ytd-rich-grid-media",function(){if(uxn!==void 0)return uxn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return uxn=G},{mode:_.nn("kevlar_poly_si_batch_j072")?1:2});var ELJ;var YO=function(){var G=_.a.apply(this,arguments)||this;G.removeMaxWidth=!0;G.insetMetadata=!1;return G};
_.M(YO,_.a);_.m=YO.prototype;_.m.configureRendererStamper=function(){return{innerMenu:yV,outerMenu:Object.assign({},yV,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.m.onDataChanged=function(){var G,b=((G=this.data)==null?void 0:G.trackingParams)||"";b&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b));var I;((I=this.dismissActionToReplayEntity)==null?0:I.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.m.attached=function(){this.updateInlinePreviewHoverListeners()};
_.m.detached=function(){this.clearInlinePreviewHoverListeners()};
_.m.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16316_inlinePreviewHoverListener=Mt({mediaRenderer:this,lockupElement:this.JSC$16316_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:odX})};
_.m.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16316_inlinePreviewHoverListener)==null||NA(G)};
_.m.onRendererTap=function(){var G,b,I=(G=this.data)==null?void 0:(b=G.serviceEndpoints)==null?void 0:b[0];_.g(I,_.sE)&&this.componentBehavior.resolveCommand(I)};
_.m.onDetailsClick=function(G){var b,I=(b=this.data)==null?void 0:b.navigationEndpoint;I&&(_.NK(_.Wy(G),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(I))};
_.m.onShow=function(){var G=this.data;G.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(G.onFirstVisibleCommand),delete G.onFirstVisibleCommand)};
_.kV.Object.defineProperties(YO.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=_.g(G.badge,l98))){var b,I,h;return[{metadataBadgeRenderer:{label:((b=G.label)==null?void 0:(I=b.runs)==null?void 0:I[0].text)||((h=G.label)==null?void 0:h.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,b,I;return this.isSlimShort?(G=this.computedTitle)==null?void 0:(b=G.accessibility)==null?void 0:(I=b.accessibilityData)==null?void 0:I.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.U("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16316_inlinePreviewHoverListener)==null?0:Xd(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
YO.prototype.onDataChanged=YO.prototype.onDataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],YO.prototype,"componentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],YO.prototype,"ytdLockupBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.p5),_.n("design:type",Object)],YO.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],YO.prototype,"ytdReduxBehavior",void 0);_.R([_.lH("ytd-thumbnail"),_.n("design:type",HTMLElement)],YO.prototype,"thumbnail",void 0);_.R([_.lH("#dismissible"),_.n("design:type",HTMLElement)],YO.prototype,"JSC$16316_dismissibleMedia",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],YO.prototype,"removeMaxWidth",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],YO.prototype,"insetMetadata",void 0);_.R([_.H(),_.n("design:type",String)],YO.prototype,"dismissedContentId",void 0);_.R([_.H({selectorArgs:["dismissedContentId"],selector:V5O}),_.n("design:type",Object)],YO.prototype,"dismissActionToReplayEntity",void 0);_.R([_.P("insetMetadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],YO.prototype,"thumbnailObjectFit",null);
_.R([_.P("data","insetMetadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],YO.prototype,"innerMenu",null);_.R([_.P("data","insetMetadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],YO.prototype,"outerMenu",null);_.R([_.H(),_.n("design:type",Object)],YO.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],YO.prototype,"miniMode",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YO.prototype,"onDataChanged",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],YO.prototype,"shortsBadges",null);_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],YO.prototype,"isShort",null);
_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],YO.prototype,"isSlimShort",null);_.R([_.P("data","isShort"),_.n("design:type",Object),_.n("design:paramtypes",[])],YO.prototype,"computedTitle",null);_.R([_.P("isSlimShort","computedTitle"),_.n("design:type",Object),_.n("design:paramtypes",[])],YO.prototype,"computedAccessibilityLabel",null);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],YO.prototype,"shouldForce2By3",null);_.R([_.P("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],YO.prototype,"isHovered",null);_.R([_.N({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],YO);
_.J(YO,"ytd-rich-grid-slim-media",function(){if(ELJ!==void 0)return ELJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ELJ=G},{mode:_.nn("kevlar_poly_si_batch_j063")?1:2});var pSO;var SFe;var Cz=function(){return _.a.apply(this,arguments)||this};
_.M(Cz,_.a);Cz.prototype.computeIcon=function(G){return G&&G.iconType?"yt-sys-icons:"+G.iconType.toLowerCase():""};
Cz.prototype.onMouseEnter=function(){this.isHovered=!0};
Cz.prototype.onMouseLeave=function(){this.isHovered=!1};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Cz.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Cz.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Cz.prototype,"isHovered",void 0);
_.R([_.N({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Cz);
_.J(Cz,"ytd-expand-on-hover-card-renderer",function(){if(SFe!==void 0)return SFe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return SFe=G},{mode:1});var XSJ,$78=function(){if(XSJ!==void 0)return XSJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return XSJ=G};_.QO("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var JO=function(){var G=_.a.apply(this,arguments)||this;G.compactStyle=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.M(JO,_.a);_.m=JO.prototype;_.m.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.m.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"}}}};
_.m.computeHideDot=function(G){return!(G&&G.subscriberCountText&&G.videoCountText)||this.compactStyle};
_.m.hasDualButtons=function(G){return G&&G.purchaseButton&&G.subscribeButton};
_.m.backgroundColorChanged=function(){if(this.data!==void 0){var G=this.data.backgroundColor;this.isDarkTheme&&(G=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=G!=null?_.Uo(G):"transparent"}};
_.m.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.m.onTap=function(G){var b,I,h=((b=this.data)==null?void 0:b.navigationEndpoint)||((I=this.data)==null?void 0:I.serviceEndpoint);_.g(h,_.HH)&&(h&&_.LL().resolve(_.xW).resolveCommand(h,{form:{element:this.hostElement}}),G.preventDefault())};
_.m.computeChannelEndpoint=function(G){return _.g(G,_.HH)?null:G};
_.m.computeHrefEndpoint=function(G){return _.g(G,_.HH)?null:this.componentBehavior.computeHref_(G)};
_.m.computeChannelRendererStyle=function(G){return G};
_.m.computeIconSize=function(G){return G?108:136};
_.kV.Object.defineProperties(JO,{template:{configurable:!0,enumerable:!0,get:function(){return $78()}}});
JO.prototype.backgroundColorChanged=JO.prototype.backgroundColorChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],JO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],JO.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],JO.prototype,"componentBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],JO.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],JO.prototype,"isDarkTheme",void 0);_.R([_.H({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.n("design:type",String)],JO.prototype,"channelRendererStyle",void 0);_.R([_.H({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],JO.prototype,"dualButtons",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],JO.prototype,"useBiggerThumbs",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.UG("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],JO.prototype,"biggerThumbStyle",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],JO.prototype,"compactStyle",void 0);_.R([_.q5("data","isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JO.prototype,"backgroundColorChanged",null);_.R([_.N({is:"ytd-channel-renderer",disableElementRegistration:!0})],JO);_.J(JO,"ytd-channel-renderer",function(){return $78()},{mode:1});var Gnu;var bez;_.QO("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Kz=function(){var G=_.a.apply(this,arguments)||this;G.displayItemCount=2;G.hasPlaylistThumbnail=!1;G.stackThumbnailSize="large";return G};
_.M(Kz,_.a);_.m=Kz.prototype;_.m.attached=function(){this.updateInlinePreviewHoverListeners()};
_.m.detached=function(){this.clearInlinePreviewHoverListeners()};
_.m.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.m.computeFirstVideos=function(G,b){return G&&b?G.slice(0,b):[]};
_.m.computeThumbnailWidth=function(G,b){return G?b==="BIG"?500:b==="MASSIVE"?600:b==="MEDIUM"?450:420:360};
_.m.computeThumbnailHeight=function(G,b){return G?b==="BIG"?280:b==="MASSIVE"?337:234:202};
_.m.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16329_inlinePreviewHoverListener)==null||NA(G)};
_.m.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16329_inlinePreviewHoverListener=Mt({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:zJA,thumbnailElement:this.thumbnail})};
_.m.computeHasPlaylistThumbnail=function(G){var b,I;if((((b=G.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((I=G.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer))&&G.thumbnailOverlays)for(b=0;b<G.thumbnailOverlays.length;b++)if(I=void 0,(I=G.thumbnailOverlays[b])==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.kV.Object.defineProperties(Kz.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16329_inlinePreviewHoverListener)==null?0:Xd(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Kz.prototype.dataChanged=Kz.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],Kz.prototype,"ytdLockupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Kz.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Kz.prototype,"displayItemCount",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],Kz.prototype,"useBiggerThumbs",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.UG("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],Kz.prototype,"biggerThumbsStyle",void 0);_.R([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.n("design:type",Object)],Kz.prototype,"hasPlaylistThumbnail",void 0);_.R([_.H(),_.n("design:type",String)],Kz.prototype,"stackThumbnailSize",void 0);_.R([_.lH("ytd-thumbnail"),_.n("design:type",HTMLElement)],Kz.prototype,"thumbnail",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Kz.prototype,"dataChanged",null);
_.R([_.P("lockupIsHovered"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Kz.prototype,"isHovered",null);_.R([_.N({is:"ytd-radio-renderer",disableElementRegistration:!0})],Kz);
_.J(Kz,"ytd-radio-renderer",function(){if(bez!==void 0)return bez;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return bez=G},{mode:_.nn("kevlar_poly_si_batch_j058")?1:2});var IH5;_.QO("itemSectionRenderer","showRenderer","ytd-show-renderer");var uR=function(){return _.a.apply(this,arguments)||this};
_.M(uR,_.a);uR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
uR.prototype.computeThumbnailWidth=function(G){return G?360:246};
uR.prototype.computeUseProminentThumbs=function(G){return G};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],uR.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],uR.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],uR.prototype,"isSearch",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.n("design:type",Boolean)],uR.prototype,"useProminentThumbs",void 0);_.R([_.N({is:"ytd-show-renderer",disableElementRegistration:!0})],uR);
_.J(uR,"ytd-show-renderer",function(){if(IH5!==void 0)return IH5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return IH5=G},{mode:1});_.QO("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var R8=function(){var G=_.a.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.M(R8,_.a);R8.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],R8.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],R8.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],R8.prototype,"isRichGrid",void 0);_.R([_.N({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],R8);
_.J(R8,"ytd-feed-entry-renderer",function(){if(Gnu!==void 0)return Gnu;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Gnu=G},{mode:1});var hU8;var nz=function(){return _.a.apply(this,arguments)||this};
_.M(nz,_.a);nz.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.R([_.z(_.wN),_.n("design:type",Object)],nz.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],nz.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],nz.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.sb,value:3}),_.n("design:type",Number)],nz.prototype,"itemsPerRow",void 0);
_.R([_.N({is:"ytd-link-card-renderer",disableElementRegistration:!0})],nz);
_.J(nz,"ytd-link-card-renderer",function(){if(hU8!==void 0)return hU8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return hU8=G},{mode:1});var qsB;var Ox=function(){return _.a.apply(this,arguments)||this};
_.M(Ox,_.a);_.m=Ox.prototype;_.m.configureRendererStamper=function(){return{"data.menu":yV,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.m.onRendererTap=function(G){if(!this.ytdDismissibleItemBehavior.isDismissed){var b,I=(b=this.data)==null?void 0:b.navigationEndpoint;I&&!_.NK(_.Wy(G),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(I)?_.NK(_.Wy(G),this.hostElement,["A"])||_.O3(this.hostElement,"yt-navigate",{endpoint:I}):this.ytComponentBehavior.resolveCommand(I,{}))}};
_.m.maybeComputeHref=function(G){return this.ytComponentBehavior.computeHref_(G,!0)};
_.m.getNavigationCommand=function(G){return this.isNavigationCommand(G)?G:null};
_.m.isNavigationCommand=function(G){return G?_.g(G,_.jL)||_.g(G,_.Wq)||_.g(G,_.bx)?!0:!1:!1};
Ox.prototype.onRendererTap=Ox.prototype.onRendererTap;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ox.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],Ox.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Ox.prototype,"ytComponentBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],Ox.prototype,"data",void 0);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Ox.prototype,"onRendererTap",null);_.R([_.N({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Ox);
_.J(Ox,"ytd-lumiere-promo-item-image-renderer",function(){if(qsB!==void 0)return qsB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return qsB=G},{mode:1});var jKe;var we=function(){return _.a.apply(this,arguments)||this};
_.M(we,_.a);we.prototype.computeLandscapeThumbnail=function(){var G;return((G=this.data)==null?void 0:G.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],we.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],we.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],we.prototype,"miniMode",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.sb}),_.n("design:type",Number)],we.prototype,"itemsPerRow",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.n("design:type",Boolean)],we.prototype,"landscapeThumbnail",void 0);_.R([_.N({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],we);
_.J(we,"ytd-lumiere-shelf-details-renderer",function(){if(jKe!==void 0)return jKe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jKe=G},{mode:_.nn("kevlar_poly_si_batch_j076")?1:2});var lHJ;var Ex=function(){return _.a.apply(this,arguments)||this};
_.M(Ex,_.a);Ex.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ex.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ex.prototype,"data",void 0);_.R([_.N({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Ex);
_.J(Ex,"ytd-primetime-promo-details-renderer",function(){if(lHJ!==void 0)return lHJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return lHJ=G},{mode:1});var m7n;var pz=function(){return _.a.apply(this,arguments)||this};
_.M(pz,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],pz.prototype,"data",void 0);_.R([_.N({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],pz);
_.J(pz,"ytd-panel-show-style-metadata-renderer",function(){if(m7n!==void 0)return m7n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return m7n=G},{mode:1});var eUB;var SU=function(){return _.a.apply(this,arguments)||this};
_.M(SU,_.a);_.m=SU.prototype;_.m.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.m.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.m.computeThumbnail=function(G){if(G)return G.smallFormFactorBackgroundThumbnail||G.largeFormFactorBackgroundThumbnail};
_.m.maybeComputeHref=function(G){return this.ytComponentBehavior.computeHref_(G,!0)};
_.m.isNavigationCommand=function(G){return G?_.g(G,_.jL)||_.g(G,_.Wq)||_.g(G,_.bx)?!0:!1:!1};
_.m.getNavigationCommand=function(G){return this.isNavigationCommand(G)?G:null};
SU.prototype.onPanelTap=SU.prototype.onPanelTap;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],SU.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],SU.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],SU.prototype,"roundedContainer",void 0);_.R([_.H({reflectToAttribute:!0,value:_.U("web_modern_buttons")}),_.n("design:type",Boolean)],SU.prototype,"modernButtons",void 0);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SU.prototype,"onPanelTap",null);_.R([_.N({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],SU);
_.J(SU,"ytd-primetime-promo-panel-renderer",function(){if(eUB!==void 0)return eUB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return eUB=G},{mode:1});_.JN(_.C(function(G){G=_.N5(G,{data:{},useFullWidth:!1});var b=G.data,I=G.useFullWidth;G={};return _.v("teaser-card-view-model",{class:_.pG("ytTeaserCardViewModelHost",(G.ytTeaserCardViewModelUseFullWidth=function(){return I()},G))},_.v(_.Q,{cond:function(){return b().onTap},
then:function(h){return _.v(_.LP,{className:"ytTeaserCardViewModelLink",command:h},_.v("div",{class:"ytTeaserCardViewModelImageContainer"},_.v(_.Q,{cond:function(){return b().image},
then:function(q){return _.v(_.Fu,{data:q,className:"ytTeaserCardViewModelImage",alt:""})}})),_.v("p",{class:"ytTeaserCardViewModelCaption"},function(){return b().caption}))}}))},"Xc"),"teaser-card-view-model",{props:{data:_.hV,
useFullWidth:_.hV}});_.JN(_.C(function(G){var b=G.data;var I=function(){var h;return _.iA((h=b())==null?void 0:h.iconThemedImage)};
return _.v("yt-edu-card-view-model",null,_.v(_.gB,{contentId:function(){return b().nudgeId}},function(){return _.v("div",{class:_.pG("ytEduCardViewModelHost",function(){return b().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.v("div",{class:"ytEduCardViewModelTopCornerButton"},_.v(_.VX,{data:function(){return b().dismissButton}},{buttonViewModel:_.sQ})),_.v("div",{class:"ytEduCardViewModelContentWrapper"},_.v("div",{class:"ytEduCardViewModelHeaderImage"},_.v(_.Q,
{cond:I,
then:function(h){return _.v(_.Fu,{data:h,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.v("div",{class:"ytEduCardViewModelTextContainer"},_.v("div",{class:"ytEduCardViewModelTitle"},_.v(_.IS,{text:function(){return b().title}})),_.v("div",{class:"ytEduCardViewModelSubtitle"},_.v(_.IS,{text:function(){return b().subtitle}}))),_.v("div",{class:"ytEduCardViewModelContent"},_.v(_.VX,{data:function(){return b().form}},{nudgeFormViewModel:KPu}))),_.v("div",{class:_.pG("ytEduCardViewModelButtonWrapper",
function(){return b().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.v(_.VX,{data:function(){return b().primaryButton}},{buttonViewModel:function(h){return _.v("div",{class:"ytEduCardViewModelPrimaryButton"},_.v(_.sQ,{data:h.data}))}}),_.v(_.VX,{data:function(){return b().secondaryButton}},{buttonViewModel:function(h){return _.v("div",{class:"ytEduCardViewModelSecondaryButton"},_.v(_.sQ,{data:h.data}))}})))}))},"Yc"),"yt-edu-card-view-model",{props:{data:_.hV}});var VVJ=new _.q3("RICH_GRID_VIDEO_RENDERER_TOKEN");_.JN(_.C(function(G){var b=G.data;var I=G.showYtInteractionInContent;var h=function(){return!!b().selectableFeedback};
G=_.e(_.ZZ(!1,void 0,"qxtgaf"));var q=G.next().value,l=G.next().value;_.K3(function(){var T=_.g(b().primaryButton,_.mS);(T==null?0:T.isToggled)&&l(T.isToggled)});
G=_.Xu(function(T){if(!h())return!1;if(q()){var B;var A=(B=b().selectableFeedback)==null?void 0:B.onDeselect}else{var t;A=(t=b().selectableFeedback)==null?void 0:t.onSelect}A&&_.Zm(A,{form:{element:T.target}});l(!q());if(T=_.g(b().primaryButton,_.mS))T.isToggled=q();return!1});
var V=function(){if(!h()){var T,B=(T=b().loggingDirectives)==null?void 0:T.trackingParams;B&&_.yw(_.LL().resolve(_.aS),B)}},D=_.J0O(),k=function(){var T;
return h()?(T=b().selectableFeedback)==null?void 0:T.a11yLabel:void 0},L=function(){return h()?{toggled:q()}:{}},x=_.LL().resolve(_.vf(VVJ)),f={};
return _.v("yt-feedback-item-renderer",{class:_.pG("ytFeedbackItemRendererHost",(f.ytFeedbackItemRendererSelectableFeedback=h,f)),"on:click":G,"on:keydown":D,title:k,"aria-label":k,"aria-pressed":function(){return h()?q():void 0},
tabindex:function(){return h()?0:void 0},
role:function(){return h()?"button":void 0}},_.v("div",{class:"ytFeedbackItemRendererContentContainer"},_.v(_.VX,{data:function(){return b().content}},{videoRenderer:function(T){return _.v(x,{data:T.data,
showYtInteraction:I})},
lockupViewModel:function(T){return _.v(_.tE,{data:T.data,containerType:2})}})),_.v("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.v(_.VX,{data:function(){return b().primaryButton}},{toggleButtonViewModel:function(T){return _.v(_.YK,{data:T.data,
buttonShapeOverrides:L,disableExplicitClickLogging:!0,onToggle:V})}})))},"Zc"),"yt-feedback-item-renderer",{props:{data:_.hV,
showYtInteractionInContent:_.hV}});var X$=function(){var G=_.a.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$16365_unsubscribeFromInlinePreviewIsActive=function(){};
return G};
_.M(X$,_.a);_.m=X$.prototype;_.m.computeContainerType=function(){return this.useCompactList?3:2};
_.m.itemWidthChanged=function(){var G;this.thumbnailTargetWidth=(G=this.itemWidth)!=null?G:9999};
_.m.updateIsInFirstColumn=function(){var G;this.isInFirstColumn=((G=this.data)==null?void 0:G.colIndex)===0};
_.m.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&&_.U("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.U("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.m.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]]"}}}}}};
_.m.leave=function(G){G=G.relatedTarget;var b=document.querySelector("ytd-video-preview");G&&b&&_.pX(b).contains(G)||this.removeAndCleanupHighlight()};
_.m.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)};
_.m.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};
_.m.registerHoverHighlightListeners=function(){var G=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16365_unsubscribeFromInlinePreviewIsActive=_.Nj(_.Cw(),_.Fku,function(b){G.highlighted&&!b&&G.removeAndCleanupHighlight()})};
_.m.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16365_unsubscribeFromInlinePreviewIsActive()};
_.m.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.m.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.m.getBackgroundColor=function(){var G,b,I=(G=this.data)==null?void 0:(b=G.onFocusEffect)==null?void 0:b.onFocusColor;if(I){if(document.documentElement.hasAttribute("dark")&&(I==null?0:I.darkTheme))return AL(I==null?void 0:I.darkTheme);if(I==null?0:I.lightTheme)return AL(I==null?void 0:I.lightTheme)}};
_.m.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var G=_.gL(),b,I,h;G&&((b=this.data)==null?0:b.trackingParams)&&((I=this.data)==null?void 0:I.colIndex)!=null&&((h=this.data)==null?void 0:h.rowIndex)!=null&&_.NP(G,_.VB(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.m.isSlimMediaRenderer=function(G){return!!_.g(G==null?void 0:G.content,_.HRz)||!!_.g(G==null?void 0:G.content,FqW)||!!_.g(G==null?void 0:G.content,_.$F)||!!_.g(G==null?void 0:G.content,hPi)};
_.m.isPostRenderer=function(){var G,b;return!!_.g((G=this.data)==null?void 0:G.content,XoA)||!!_.g((b=this.data)==null?void 0:b.content,$HQ)};
_.m.computeIsGameCardShelf=function(){var G;return!!_.g((G=this.data)==null?void 0:G.content,vfQ)};
_.m.computeIsMiniGameCardShelf=function(){var G,b;return!!_.g((G=this.data)==null?void 0:G.content,zGX)||!!_.g((b=this.data)==null?void 0:b.content,ofO)};
_.m.computeIsTeaserCard=function(){var G;return!!_.g((G=this.data)==null?void 0:G.content,ofO)};
_.m.computeIsSelectableFeedbackItem=function(){var G,b;return!((b=_.g((G=this.data)==null?void 0:G.content,PCb))==null||!b.selectableFeedback)};
_.m.computeContainsLumierePosters=function(){var G,b;return((b=_.g((G=this.data)==null?void 0:G.content,eaB))==null?void 0:b.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.m.computeIsExpandOnHoverCardShelf=function(){var G;return!!_.g((G=this.data)==null?void 0:G.content,mHe)};
_.m.computeIsLinkCardShelf=function(){var G;return!!_.g((G=this.data)==null?void 0:G.content,TBn)};
_.m.computeIsReelItemStyleAvatarCircle=function(G){var b;return((b=_.g(G==null?void 0:G.content,_.$F))==null?void 0:b.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.m.computeIsLinkCardFullWidth=function(G,b){var I;return((I=_.g(G==null?void 0:G.content,TBn))==null?void 0:I.useFullWidth)||b<=2};
_.kV.Object.defineProperties(X$.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var G;return _.U("web_hover_effect_refactor")&&_.g((G=this.data)==null?void 0:G.content,_.UJ8)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.U("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var G;if(_.U("web_hover_effect_refactor")&&_.g((G=this.data)==null?void 0:G.content,_.UJ8))return!1;var b;return!((b=this.data)==null||!b.onFocusEffect)||_.U("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:_.U("web_hover_effect_refactor")?(G=this.data)==null?void 0:G.onFocusEffect:void 0}}}});
X$.prototype.richGridHoverHighlightChanged=X$.prototype.richGridHoverHighlightChanged;X$.prototype.observerContainerType=X$.prototype.observerContainerType;X$.prototype.updateIsInFirstColumn=X$.prototype.updateIsInFirstColumn;X$.prototype.itemWidthChanged=X$.prototype.itemWidthChanged;_.R([_.z(_.wN),_.n("design:type",Object)],X$.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],X$.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],X$.prototype,"ytdLockupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],X$.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.n("design:type",Boolean)],X$.prototype,"isPost",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.n("design:type",Boolean)],X$.prototype,"containsLumierePosters",void 0);_.R([_.H({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.n("design:type",Boolean)],X$.prototype,"isSlimMedia",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.n("design:type",Boolean)],X$.prototype,"isGameCardShelf",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.n("design:type",Boolean)],X$.prototype,"isMiniGameCardShelf",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.n("design:type",Boolean)],X$.prototype,"isTeaserCard",void 0);_.R([_.H({computed:"computeIsSelectableFeedbackItem(data)"}),_.n("design:type",Boolean)],X$.prototype,"isSelectableFeedbackItem",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X$.prototype,"isShortsGrid",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],X$.prototype,"isSlimGrid",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X$.prototype,"isCompactGrid",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X$.prototype,"isShortsPanelGrid",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.n("design:type",Boolean)],X$.prototype,"isExpandOnHoverCardShelf",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.n("design:type",Boolean)],X$.prototype,"isLinkCardShelf",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.sb,value:3}),_.n("design:type",Number)],X$.prototype,"itemsPerRow",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X$.prototype,"renderedFromRichGrid",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X$.prototype,"isInFirstColumn",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X$.prototype,"noGutterMargins",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X$.prototype,"noBottomMargin",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X$.prototype,"halfBottomMargin",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X$.prototype,"isInlineGroupItem",void 0);_.R([_.H(),_.n("design:type",Object)],X$.prototype,"insetMetadata",void 0);_.R([_.H(),_.n("design:type",Object)],X$.prototype,"noBottomMarginInAds",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],X$.prototype,"isShelfItem",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.n("design:type",Boolean)],X$.prototype,"isReelItemStyleAvatarCircle",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.n("design:type",Boolean)],X$.prototype,"isLinkCardFullWidth",void 0);_.R([_.H(),_.n("design:type",Object)],X$.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X$.prototype,"useCompactList",void 0);_.R([_.H(),_.n("design:type",String)],X$.prototype,"sizing",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],X$.prototype,"typographyBump",void 0);_.R([_.H(),_.n("design:type",Number)],X$.prototype,"itemWidth",void 0);_.R([_.H(),_.n("design:type",Boolean)],X$.prototype,"isHomeShelf",void 0);_.R([_.H(),_.n("design:type",Boolean)],X$.prototype,"isHomeGrid",void 0);
_.R([_.lH("yt-lockup-view-model"),_.n("design:type",HTMLElement)],X$.prototype,"lockup",void 0);_.R([_.lH("ytd-rich-grid-media"),_.n("design:type",HTMLElement)],X$.prototype,"richGridMedia",void 0);_.R([_.lH("ytd-ad-slot-renderer"),_.n("design:type",HTMLElement)],X$.prototype,"adSlotRenderer",void 0);_.R([_.H({computed:"computeContainerType(useCompactList)"}),_.n("design:type",Object)],X$.prototype,"containerType",void 0);_.R([_.H(),_.n("design:type",Object)],X$.prototype,"thumbnailTargetWidth",void 0);
_.R([_.P("showYtInteractionOnRichItem"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],X$.prototype,"showYtInteractionOnRichGridMedia",null);_.R([_.P("isSelectableFeedbackItem","richGridHoverHighlight"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],X$.prototype,"showYtInteractionOnRichItem",null);_.R([_.P("typographyBump","isHomeGrid"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],X$.prototype,"richTypographyBump",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data","isShortsGrid","isCompactGrid"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],X$.prototype,"richGridHoverHighlight",null);_.R([_.P("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.n("design:type",Number),_.n("design:paramtypes",[])],X$.prototype,"shortsLockupViewModelAspectRatio",null);_.R([_.P("isInlineGroupItem"),_.n("design:type",Number),_.n("design:paramtypes",[])],X$.prototype,"shortsLockupViewModelScrimStyle",null);
_.R([_.q5("itemWidth"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X$.prototype,"itemWidthChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X$.prototype,"updateIsInFirstColumn",null);_.R([_.q5("containerType","sizing","typographyBump"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X$.prototype,"observerContainerType",null);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],X$.prototype,"isResponsiveGrid",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],X$.prototype,"lockupExperiments",null);_.R([_.q5("richGridHoverHighlight"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],X$.prototype,"richGridHoverHighlightChanged",null);_.R([_.N({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],X$);
_.D78=_.R9()(X$,"ytd-rich-item-renderer",function(){if(pSO===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);pSO=G}G=pSO;return G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var hJO={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var x0O=_.ao(_.qP("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var j7u={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},m0B={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},eJO={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var ciB;var $M=function(){var G=_.a.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 b;(b=G.data)!=null&&b.contents&&(G.firstShownIndex+=G.currentElementsPerRow,G.updateHorizontalOffset(),G.updateHorizontalItemVisibility())};
G.previousClick=function(){var b;(b=G.data)!=null&&b.contents&&(G.firstShownIndex-=G.currentElementsPerRow,G.updateHorizontalOffset(),G.updateHorizontalItemVisibility())};
return G};
_.M($M,_.a);_.m=$M.prototype;
_.m.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:_.wy("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.m.attached=function(){this.requestElementsPerRow()};
_.m.refreshGridLayoutNew=function(){var G;if((G=this.data)!=null&&G.contents&&this.containerWidth){var b;((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize)?(G=_.BEq(this.data.responsiveContainerConfiguration,this.containerWidth,2),G=_.zZ(Object.assign({},G,{standardUnitMinWidth:this.standardUnitMinWidth}))):G=_.zZ({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,_.G8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":G.gutter+"px"})}};
_.m.computeSizing=function(){if(!this.isLumiere){var G=_.atO(this.data);return G?G:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.m.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.m.computeButton=function(G){var b=_.g(G,_.bz);G=Object.assign({},_.g(G,_.bz));return b?(G.text||(G.text={simpleText:G.tooltip}),G.style="STYLE_MONO_OUTLINE",G.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",G):b};
_.m.onRowIndexChange=function(){var G=_.gL(),b,I;((b=this.data)==null?0:b.trackingParams)&&((I=this.data)==null?void 0:I.rowIndex)!=null&&G&&_.NP(G,_.VB(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.m.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var G,b=((G=this.getRichItemRenderers()[0])==null?void 0:G.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*b;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.m.requestElementsPerRow=function(){_.O3(this.hostElement,"yt-request-elements-per-row")};
_.m.onUpdateElementsPerRowAction=function(G,b,I,h,q,l){if(this.containerWidth!==l&&(this.containerWidth=l,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&G&&b&&I&&h&&q&&(this.elementsPerRow!==G||this.postsPerRow!==b||this.slimItemsPerRow!==I||this.gameCardsPerRow!==h||this.miniGameCardsPerRow!==q)&&(this.elementsPerRow=G,this.postsPerRow=b,this.slimItemsPerRow=I,this.gameCardsPerRow=h,this.miniGameCardsPerRow=q,this.updateItemVisibility())};
_.m.isExpandedChanged=function(){var G=this.getRichItemRenderers(),b=this.isExpanded;G.forEach(function(I){I.halfBottomMargin=b})};
_.m.isCollapsedChanged=function(){var G=this.getRichItemRenderers(),b=this.isCollapsed;G.forEach(function(I){I.noBottomMargin=b})};
_.m.getRichItemRenderers=function(){return _.Eo(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.m.updateItemVisibility=function(){var G=this;if(this.data&&this.data.contents){var b=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(h,q){var l;((l=G.data)==null?0:l.isExpanded)?(h.hidden=q>b-1,h.ytRendererBehavior.markDirty()):h.hidden=q>G.currentElementsPerRow-1||q>b-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"}};
_.m.setHeightToSingleRow=function(){var G=this.getRichItemRenderers(),b=Number.parseInt(getComputedStyle(G[0]).marginBottom,10)||0;G=G.slice(0,this.currentElementsPerRow).reduce(function(I,h){return Math.max(I,h.getBoundingClientRect().height+b)},0);
this.contents.style.height=G+"px"};
_.m.focusNextExpandedItem=function(){var G;((G=this.data)==null?0:G.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.m.focusItem=function(G,b){var I=this.getRichItemRenderers();if(I[G]&&(G=I[G].querySelector(".focus-on-expand"))){if(b){var h;(h=I[this.currentElementsPerRow])==null||h.scrollIntoView({behavior:"smooth",block:"center"})}G.focus({preventScroll:!0})}};
_.m.onDataChange=function(){var G=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var b;if((b=this.data)==null?0:b.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.D1(this,function(){G.updateItemVisibility()});
var I;if((I=this.data)==null?0:I.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.G8(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),b=0;b<this.data.contents.length;b++)I=_.g(this.data.contents[b],_.NZ)||{},I.colIndex=b,I.rowIndex=this.data.rowIndex};
_.m.handleRerenderDownloadsData=function(){_.U("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())};
_.m.blockInlinePreview=function(G){var b=this,I;return _.c(function(h){(I=b.inlinePreviewIsEnabled)&&b.ytdReduxBehavior.dispatch(_.lMB(!1));return h.return(new Promise(function(q){G(function(){I&&b.ytdReduxBehavior.dispatch(_.lMB(!0));q()})}))})};
_.m.expandShelf=function(){var G=this;if(this.data){var b,I=(b=_.g(this.data.showMoreButton,_.bz))==null?void 0:b.trackingParams;I&&_.yw(_.qo(),I);this.set("data.isExpanded",!0);this.blockInlinePreview(function(h){G.setHeightToSingleRow();G.updateItemVisibility();G.contents.style.height=G.contents.scrollHeight+"px";_.uu.addJob(function(){G.contents.style.height="auto";G.focusNextExpandedItem();h()},2,200)})}};
_.m.collapseShelf=function(){var G=this;return _.c(function(b){if(b.nextAddress==1){if(!G.data)return b.return();G.set("data.isExpanded",!1);return b.yield(G.blockInlinePreview(function(I){G.contents.style.height=G.contents.scrollHeight+"px";G.setHeightToSingleRow();_.uu.addJob(function(){G.updateItemVisibility();G.contents.style.height="auto";I()},2,200)}),2)}_.O3(G.hostElement,"yt-rich-shelf-renderer-collapse",G.data.trackingParams);
G.focusItem(0,!1);_.ip(b)})};
_.m.updateArrowButtonStatus=function(){this.getRichItemRenderers();var G,b;var I=((G=this.data)==null?void 0:(b=G.contents)==null?void 0:b.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=I};
_.m.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())))};
_.m.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.wy("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.m.updateHorizontalOffset=function(){var G=this.getRichItemRenderers(),b,I;var h=((b=this.data)==null?void 0:(I=b.contents)==null?void 0:I.length)||0;var q;G=((q=G[0])==null?void 0:q.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>h?this.firstShownIndex=h-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*G};
_.m.isSlimMediaShelfRenderer=function(){var G,b,I,h=(I=_.g((G=this.data)==null?void 0:(b=G.contents)==null?void 0:b[0],_.NZ))==null?void 0:I.content;return!!(_.g(h,_.HRz)||_.g(h,FqW)||_.g(h,_.$F)||_.g(h,hPi))};
_.m.isGameCardShelf=function(){var G,b,I,h=(I=_.g((G=this.data)==null?void 0:(b=G.contents)==null?void 0:b[0],_.NZ))==null?void 0:I.content;return!!_.g(h,vfQ)};
_.m.isMiniGameCardShelf=function(){var G,b,I,h=(I=_.g((G=this.data)==null?void 0:(b=G.contents)==null?void 0:b[0],_.NZ))==null?void 0:I.content;return!!_.g(h,zGX)||!!_.g(h,ofO)};
_.m.hasGameBoxArtAvatarStyle=function(){var G;return((G=this.data)==null?void 0:G.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.m.hasRoundedGameBoxArtAvatarStyle=function(){var G;return((G=this.data)==null?void 0:G.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.m.isShortsShelf=function(){var G,b,I,h=(I=_.g((G=this.data)==null?void 0:(b=G.contents)==null?void 0:b[0],_.NZ))==null?void 0:I.content;return!!_.g(h,_.$F)||!!_.g(h,hPi)};
_.m.isPostShelfRenderer=function(){var G,b,I,h=(I=_.g((G=this.data)==null?void 0:(b=G.contents)==null?void 0:b[0],_.NZ))==null?void 0:I.content;return!(!_.g(h,XoA)&&!_.g(h,$HQ))};
_.m.isLumiereShelf=function(){var G,b,I=_.g((G=this.data)==null?void 0:(b=G.contents)==null?void 0:b[0],_.NZ);return!!_.g(I==null?void 0:I.content,eaB)};
_.m.isLumiereShelfWithPosters=function(){var G,b,I=_.g((G=this.data)==null?void 0:(b=G.contents)==null?void 0:b[0],_.NZ),h;return((h=_.g(I==null?void 0:I.content,eaB))==null?void 0:h.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.m.isExpandOnHoverCardShelf=function(){var G,b,I,h=(I=_.g((G=this.data)==null?void 0:(b=G.contents)==null?void 0:b[0],_.NZ))==null?void 0:I.content;return!!_.g(h,mHe)};
_.m.computeHasFeaturedBadge=function(){var G,b,I=_.g((G=this.data)==null?void 0:(b=G.badges)==null?void 0:b[0],_.o6u);return I?I.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.m.computeHasPaygatedFeaturedBadge=function(){var G,b,I=_.g((G=this.data)==null?void 0:(b=G.badges)==null?void 0:b[0],_.o6u);return I?(I==null?void 0:I.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.m.computeHeaderHidden=function(){var G,b,I,h,q,l;return!((G=this.data)==null?0:G.icon)&&!((b=this.data)==null?0:b.title)&&!((I=this.data)==null?0:I.subtitle)&&!((h=this.data)==null?0:h.thumbnail)&&!((q=this.data)==null?0:q.badges)&&!((l=this.data)==null?0:l.menu)};
_.m.showCtaButton=function(){var G;return!((G=this.data)==null||!G.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.m.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.m.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.m.computeForce16By9ThumbnailAspectRatio=function(){var G,b;return((G=this.data)==null?void 0:(b=G.responsiveContainerConfiguration)==null?void 0:b.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.m.onSectionReactiveDismissal=function(G,b,I){var h,q;var l=(h=this.data)==null?void 0:(q=h.targetingContext)==null?void 0:q.targetGroupId;this&&l&&b.targetGroupId&&l.includes(b.targetGroupId)?(h=this.rowIndex,G=h===void 0?!1:!(b.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&h<=G)):G=!1;G&&(this.hidden=I)};
_.kV.Object.defineProperties($M.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,b;return!((G=this.data)==null||!G.previousButton)&&!((b=this.data)==null||!b.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=_.LL().resolve(_.Ck).getCurrentPage())==null?void 0:G.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h;return!((G=this.data)==null?0:(b=G.thumbnail)==null?0:(I=b.accessibility)==null?0:(h=I.accessibilityData)==null?0:h.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}}});
$M.prototype.onChildElementFocus=$M.prototype.onChildElementFocus;$M.prototype.handleRerenderDownloadsData=$M.prototype.handleRerenderDownloadsData;$M.prototype.onDataChange=$M.prototype.onDataChange;$M.prototype.isCollapsedChanged=$M.prototype.isCollapsedChanged;$M.prototype.isExpandedChanged=$M.prototype.isExpandedChanged;$M.prototype.onRowIndexChange=$M.prototype.onRowIndexChange;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],$M.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],$M.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],$M.prototype,"ytdReduxBehavior",void 0);
_.R([_.H({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.n("design:type",Object)],$M.prototype,"useResponsiveGrid",void 0);_.R([_.H(),_.n("design:type",Object)],$M.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Number)],$M.prototype,"standardUnitMinWidth",void 0);_.R([_.H({reflectToAttribute:!0,value:3}),_.n("design:type",Number)],$M.prototype,"elementsPerRow",void 0);_.R([_.H({value:3}),_.n("design:type",Number)],$M.prototype,"postsPerRow",void 0);
_.R([_.H({value:6}),_.n("design:type",Number)],$M.prototype,"slimItemsPerRow",void 0);_.R([_.H({value:6}),_.n("design:type",Number)],$M.prototype,"gameCardsPerRow",void 0);_.R([_.H({value:6}),_.n("design:type",Number)],$M.prototype,"miniGameCardsPerRow",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$M.prototype,"hidden",void 0);_.R([_.H(),_.n("design:type",Object)],$M.prototype,"isShowMoreHidden",void 0);
_.R([_.H(),_.n("design:type",Object)],$M.prototype,"isShowLessHidden",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$M.prototype,"hasExpansionButton",void 0);_.R([_.P("data.isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$M.prototype,"isExpanded",null);_.R([_.P("data.isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$M.prototype,"isCollapsed",null);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$M.prototype,"isInnerShelf",void 0);_.R([_.H({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.n("design:type",Boolean)],$M.prototype,"isShorts",void 0);_.R([_.H({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.n("design:type",Boolean)],$M.prototype,"isLumiere",void 0);_.R([_.H({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.n("design:type",Boolean)],$M.prototype,"hasBoxArtThumbnailStyle",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.n("design:type",Boolean)],$M.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.n("design:type",Boolean)],$M.prototype,"hasFeaturedBadge",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.n("design:type",Boolean)],$M.prototype,"hasPaygatedFeaturedBadge",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.n("design:type",Boolean)],$M.prototype,"isHeaderHidden",void 0);_.R([_.H({selector:_.CDX}),_.n("design:type",Object)],$M.prototype,"allVideosCount",void 0);_.R([_.H({selector:TEa}),_.n("design:type",Object)],$M.prototype,"allPlaylistCount",void 0);_.R([_.H({selector:SQB}),_.n("design:type",Object)],$M.prototype,"haveSmartDownloadsCompleted",void 0);
_.R([_.H({selectorArgs:["entitySelectorType"],selector:function(G,b){if(_.U("kevlar_modern_downloads_page")&&b&&b!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var I=G.entities;switch(b){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":b=_.fw(I);G=qA(b);var h=_.D0(b);I=_.Bj(I);I=_.RW(D0X(h,I,b.length));return{contents:G,subtitle:I};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return I=_.fw(I),{contents:qA(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return I=
_.Ti(I),{contents:qA(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return I=_.fNa(I),{contents:qA(I)};default:_.RB(new _.Wf("Error: entitySelectorType defined but not matched in selector.",G,b))}}}}),
_.n("design:type",Object)],$M.prototype,"entityDrivenRichShelfData",void 0);_.R([_.H({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.n("design:type",Boolean)],$M.prototype,"hasTopCtaButton",void 0);_.R([_.H({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.n("design:type",Boolean)],$M.prototype,"hasBottomCtaButton",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.n("design:type",Boolean)],$M.prototype,"force16By9ThumbnailAspectRatio",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$M.prototype,"restrictContentsOverflow",void 0);_.R([_.H({selector:_.HPq}),_.n("design:type",Boolean)],$M.prototype,"inlinePreviewIsEnabled",void 0);_.R([_.H({computed:"computeSizing(data)"}),_.n("design:type",String)],$M.prototype,"sizing",void 0);
_.R([_.H(),_.n("design:type",Boolean)],$M.prototype,"typographyBump",void 0);_.R([_.H(),_.n("design:type",Number)],$M.prototype,"itemWidth",void 0);_.R([_.H(),_.n("design:type",Object)],$M.prototype,"firstShownIndex",void 0);_.R([_.H(),_.n("design:type",Object)],$M.prototype,"horizontalOffset",void 0);_.R([_.H(),_.n("design:type",Object)],$M.prototype,"atEnd",void 0);_.R([_.lH("#contents"),_.n("design:type",HTMLElement)],$M.prototype,"contents",void 0);
_.R([_.q5("data.rowIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$M.prototype,"onRowIndexChange",null);_.R([_.q5("isExpanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$M.prototype,"isExpandedChanged",null);_.R([_.q5("isCollapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$M.prototype,"isCollapsedChanged",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$M.prototype,"onDataChange",null);_.R([_.q5("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$M.prototype,"handleRerenderDownloadsData",null);_.R([_.hI("focusin"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],$M.prototype,"onChildElementFocus",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data","isHomePage"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$M.prototype,"isTruncated",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$M.prototype,"showBottomDivider",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],$M.prototype,"hasChevronButtons",null);
_.R([_.P("firstShownIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],$M.prototype,"previousButtonOverride",null);_.R([_.P("atEnd"),_.n("design:type",Object),_.n("design:paramtypes",[])],$M.prototype,"nextButtonOverride",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$M.prototype,"isHomePage",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$M.prototype,"thumbnailAriaHidden",null);
_.R([_.P("data"),_.n("design:type",String),_.n("design:paramtypes",[])],$M.prototype,"entitySelectorType",null);_.R([_.N({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],$M);
_.knz=_.R9()($M,"ytd-rich-shelf-renderer",function(){if(ciB===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);ciB=G}G=ciB;return G},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var vJn;_.JN(_.Db,"yt-badge-view-model",{props:{data:_.hV,class:_.hV,workaroundShortsIsThumbnailBadge:_.hV,modern:_.hV,numBadgesInRow:_.hV}});_.JN(Han,"yt-slimline-survey-view-model",{props:{data:_.hV}});var Gp=function(){var G=_.a.apply(this,arguments)||this;G.tileLottieAnimationRef={};G.backgroundLottieAnimationRef={};G.isOnHoverBehaviorForLottieEnabled=!0;G.useBiggerShowcaseImage=_.U("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};
_.M(Gp,_.a);_.m=Gp.prototype;_.m.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.m.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",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"}}}};
_.m.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()}};
_.m.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.m.currentColorChanged=function(){this.updateButtonPalette()};
_.m.computeBackgroundStyle=function(G){if(G&&this.data){var b=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.u$((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&b.push('background-image: url("'+I+'");')}var h;((h=G.basicColorData)==null?void 0:h.backgroundColor)!==void 0&&b.push("background-color: "+_.so(G.basicColorData.backgroundColor)+";");return b.join("")}};
_.m.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G)};
_.m.getCurrentLogo=function(G,b){if(G)return b?G.darkLogoImage:G.lightLogoImage};
_.m.getCurrentStaticTileImage=function(G,b){if(this.hasStaticTile(G))return G.darkTileImage?b?G.darkTileImage:G.tileImage:G.tileImage};
_.m.computeTitleStyle=function(G){if(this.data&&this.data.title&&G&&G.basicColorData&&G.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Uo(G.basicColorData.foregroundTitleColor)+";"};
_.m.computeSubtitleStyle=function(G){if(this.data&&this.data.subtitle&&G&&G.basicColorData&&G.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Uo(G.basicColorData.foregroundBodyColor)+";"};
_.m.computeSupplementalStyle=function(G){if(this.data&&this.data.supplementalText&&G&&G.supplementalTextColor!==void 0)return G=_.Uo(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;"};
_.m.computeDismissIconStyle=function(G){var b,I;if((G==null?0:(b=G.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(G==null?0:(I=G.dismissButtonColorData)==null?0:I.backgroundColor))return"--yt-button-color:"+_.so(G.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.so(G.dismissButtonColorData.backgroundColor)+";"};
_.m.computeOverflowIconStyle=function(G){var b,I;if((G==null?0:(b=G.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(G==null?0:(I=G.dismissButtonColorData)==null?0:I.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.so(G.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.so(G.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.so(G.dismissButtonColorData.foregroundTitleColor)+";"};
_.m.computeBannerStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.m.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"}};
_.m.shouldShowTileSection=function(G,b,I){return!this.shouldExpandLogo(G,b,I)&&b};
_.m.shouldShowExpandedLogoSection=function(G,b,I){return this.shouldExpandLogo(G,b,I)&&G!==void 0&&this.hasLogo(G)};
_.m.shouldExpandLogo=function(G,b,I){return G&&b?!1:I>=2};
_.m.hasStaticTile=function(G){return!(G==null||!G.tileImage)};
_.m.hasTileLottie=function(G){var b;return!!(G==null?0:(b=G.tileLottie)==null?0:b.url)};
_.m.hasLogo=function(G){return this.getCurrentLogo(G,this.isDarkTheme)!==void 0};
_.m.getLogoHeight=function(G){return this.logoWithPadding(G)?"26":"20"};
_.m.getExpandedLogoHeight=function(G){return this.logoWithPadding(G)?"31":"24"};
_.m.getLogoImageId=function(G){return this.logoWithPadding(G)?"logo-image-with-padding":"logo-image"};
_.m.getMaxTitleFontSize=function(G){return G.overrideTitleMaxFontSize?String(G.overrideTitleMaxFontSize):"36"};
_.m.hasBackgroundLottie=function(G){var b;return!!(G==null?0:(b=G.backgroundLottie)==null?0:b.url)};
_.m.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var G,b;(G=this.tileLottieAnimationRef)==null||(b=G.lottieEl)==null||b.play();var I,h;(I=this.backgroundLottieAnimationRef)==null||(h=I.lottieEl)==null||h.play()}};
_.m.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var G,b;(G=this.tileLottieAnimationRef)==null||(b=G.lottieEl)==null||b.pause();var I,h;(I=this.backgroundLottieAnimationRef)==null||(h=I.lottieEl)==null||h.pause()}};
_.m.pauseLottie=function(){var G,b;(G=this.tileLottieAnimationRef)==null||(b=G.lottieEl)==null||b.pause();var I,h;(I=this.backgroundLottieAnimationRef)==null||(h=I.lottieEl)==null||h.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.m.performPrimaryButtonAction=function(){var G,b,I;((G=this.data)==null?0:(b=G.primaryButton)==null?0:(I=b.buttonRenderer)==null?0:I.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.m.requestElementsPerRow=function(){_.O3(this.hostElement,"yt-request-elements-per-row")};
_.m.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 b;if((b=this.data.primaryButton)==null?0:b.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 h;((h=this.data.primaryButton)==null?0:h.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var q;((q=this.data.secondaryButton)==null?0:q.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var l;((l=this.data.primaryButton)==null?0:l.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.m.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var G=this.getTileLottieDataBasedOnTheme(),b,I;if(G.url!==((b=this.tileLottiePlayerProps)==null?void 0:(I=b.animationConfig)==null?void 0:I.path)){var h,q;(h=this.tileLottieAnimationRef)==null||(q=h.lottieEl)==null||q.destroy();var l;this.isOnHoverBehaviorForLottieEnabled=!((l=G.settings)==null?0:l.autoplay);var V,D;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(D=(V=G.settings)==null?void 0:V.autoplay)!=null?D:!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}}};
_.m.getOverflowButton=function(G){return _.g(G.overflowButton,eP8)};
_.m.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var G=this.getBackgroundLottieDataBasedOnTheme(),b,I;if(G.url!==((b=this.backgroundLottiePlayerProps)==null?void 0:(I=b.animationConfig)==null?void 0:I.path)){var h,q;(h=this.backgroundLottieAnimationRef)==null||(q=h.lottieEl)==null||q.destroy();var l;this.isOnHoverBehaviorForLottieEnabled=!((l=G.settings)==null?0:l.autoplay);var V,D;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(D=(V=G.settings)==null?void 0:V.autoplay)!=null?D:!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}}};
_.m.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var G;((G=this.tileLottieAnimationRef)==null?void 0:G.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var b;((b=this.backgroundLottieAnimationRef)==null?void 0:b.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.m.getTileLottieDataBasedOnTheme=function(){var G;if(this.isDarkTheme&&((G=this.data)==null?0:G.darkThemeTileLottie))return this.data.darkThemeTileLottie;var b;return((b=this.data)==null?0:b.tileLottie)?this.data.tileLottie:{}};
_.m.getBackgroundLottieDataBasedOnTheme=function(){var G;if(this.isDarkTheme&&((G=this.data)==null?0:G.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var b;return((b=this.data)==null?0:b.backgroundLottie)?this.data.backgroundLottie:{}};
_.m.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
_.m.getLottieLoopValue=function(G){return G?G.loop!==void 0?G.loop:G.loopCount?G.loopCount-1:!0:!0};
_.m.logoWithPadding=function(G){var b,I,h;return(G=(b=this.getCurrentLogo(G,this.isDarkTheme))==null?void 0:(I=b.thumbnails)==null?void 0:(h=I[0])==null?void 0:h.height)&&G%31===0?!0:!1};
Gp.prototype.currentColorChanged=Gp.prototype.currentColorChanged;Gp.prototype.themeChanged=Gp.prototype.themeChanged;Gp.prototype.dataChanged=Gp.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],Gp.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Gp.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Gp.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Gp.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Gp.prototype,"primaryButton",void 0);_.R([_.H(),_.n("design:type",Object)],Gp.prototype,"secondaryButton",void 0);
_.R([_.H({reflectToAttribute:!0,value:3}),_.n("design:type",Number)],Gp.prototype,"elementsPerRow",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Gp.prototype,"isDarkTheme",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Gp.prototype,"hasTile",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Gp.prototype,"hasMetadata",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Gp.prototype,"showLogoImage",void 0);_.R([_.H(),_.n("design:type",Object)],Gp.prototype,"currentColorData",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.n("design:type",String)],Gp.prototype,"bannerStyle",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.n("design:type",String)],Gp.prototype,"location",void 0);
_.R([_.H(),_.n("design:type",Object)],Gp.prototype,"tileLottiePlayerProps",void 0);_.R([_.H(),_.n("design:type",Object)],Gp.prototype,"tileLottieAnimationRef",void 0);_.R([_.H(),_.n("design:type",Object)],Gp.prototype,"backgroundLottiePlayerProps",void 0);_.R([_.H(),_.n("design:type",Object)],Gp.prototype,"backgroundLottieAnimationRef",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Gp.prototype,"useBiggerShowcaseImage",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Gp.prototype,"isHideEnclosingAction",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gp.prototype,"dataChanged",null);_.R([_.Dd("isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gp.prototype,"themeChanged",null);
_.R([_.Dd("currentColorData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gp.prototype,"currentColorChanged",null);_.R([_.N({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Gp);
_.J(Gp,"ytd-statement-banner-renderer",function(){if(vJn!==void 0)return vJn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="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(_.E().content.cloneNode(!0),
G.content.firstChild);return vJn=G},{mode:1});var L3n;var bN=function(){var G=_.a.apply(this,arguments)||this;G.isSearch=!1;G.hideShelfHeader=!1;G.engagementPanel=!1;G.disableMouseScroll=!0;G.useFloorScrolling=!0;return G};
_.M(bN,_.a);bN.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.qP("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.qP("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
bN.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
bN.prototype.onDataChanged=bN.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],bN.prototype,"isSearch",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bN.prototype,"hideShelfHeader",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bN.prototype,"engagementPanel",void 0);_.R([_.H(),_.n("design:type",Object)],bN.prototype,"disableMouseScroll",void 0);_.R([_.H(),_.n("design:type",Object)],bN.prototype,"useFloorScrolling",void 0);_.R([_.H(),_.n("design:type",Object)],bN.prototype,"data",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bN.prototype,"onDataChanged",null);
_.R([_.N({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],bN);
_.J(bN,"ytd-reel-shelf-renderer",function(){if(L3n!==void 0)return L3n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return L3n=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var QKn;var x7Q;x7Q=_.WP(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.fHA=_.Ba(x7Q);var T9u=_.C(function(G){var b=G.data;G=G.useSmallFont;var I={},h={};return _.v("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.v(_.Q,{cond:function(){return b().favicon},
then:function(q){return _.v(_.Fu,{data:q,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.v("div",{class:"ytChannelExternalLinkViewModelContainer"},_.v(_.IS,{text:function(){return b().title},
className:_.pG("ytChannelExternalLinkViewModelTitle",(I.ytChannelExternalLinkViewModelTitleSmallFont=G,I)),ellipsisTruncate:!0,userInput:!0}),_.v(_.IS,{text:function(){return b().link},
className:_.pG("ytChannelExternalLinkViewModelLink",(h.ytChannelExternalLinkViewModelLinkSmallFont=G,h)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"$c");
T9u.idomCompat=!0;_.JN(T9u,"yt-channel-external-link-view-model",{props:{data:_.hV,useSmallFont:_.hV}});_.QO("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var IX=function(){var G=_.a.apply(this,arguments)||this;G.revealButtonClass="button";G.businessEmailDisplayState="HIDE_SECTION";return G};
_.M(IX,_.a);_.m=IX.prototype;_.m.refit=function(){var G=this;_.iH(function(){_.E3(G.hostElement,"yt-refit-popups-action")});
_.D1(this,function(){_.E3(G.hostElement,"yt-refit-popups-action")})};
_.m.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.iU(_.fHA),this.businessEmailDisplayState="CAPTCHA")};
_.m.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"};
_.m.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.m.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"}}}};
_.m.computeEmailHref=function(G){return"mailto:"+G};
_.m.computeSafeUrl=function(G){if(G)return _.KA(G)};
_.m.linkEndpoint=function(G){return _.g(G.onTap,_.U0)};
_.m.linkEndpointToHref=function(G){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(G))};
_.m.onYtServiceRequestCompleted=function(G){var b;if((b=G.detail.data)==null?0:b.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"}};
_.m.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var G=this.JSC$16478_captchaTextarea.value;if(G){G={recaptcha_response_token:G,channel_id:this.metadata.channelId};var b=_.g(this.metadata.onBusinessEmailRevealClickCommand,_.U0);b&&this.ytComponentBehavior.resolveCommand(b,{form:G})}}};
_.m.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.kV.Object.defineProperties(IX.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var G;return _.g((G=this.data)==null?void 0:G.metadata,kSi)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.g(this.metadata.businessEmailRevealButton,_.j6)}},
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 _.g(this.metadata.learnMoreOnTap,_.U0)}}});
IX.prototype.onYtServiceRequestCompleted=IX.prototype.onYtServiceRequestCompleted;IX.prototype.businessEmailMetadataChanged=IX.prototype.businessEmailMetadataChanged;IX.prototype.refit=IX.prototype.refit;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],IX.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.lH("#g-recaptcha-response"),_.n("design:type",HTMLTextAreaElement)],IX.prototype,"JSC$16478_captchaTextarea",void 0);_.R([_.H(),_.n("design:type",Object)],IX.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],IX.prototype,"revealButtonClass",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],IX.prototype,"metadata",null);
_.R([_.P("metadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],IX.prototype,"revealButton",null);_.R([_.P("metadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],IX.prototype,"channelDisplayUrl",null);_.R([_.Dd("metadata"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IX.prototype,"refit",null);_.R([_.P("metadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],IX.prototype,"formattedDescription",null);
_.R([_.P("metadata","learnMoreCommand"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],IX.prototype,"shouldRendereVerifiedPhoneStatus",null);_.R([_.P("metadata"),_.n("design:type",Object),_.n("design:paramtypes",[])],IX.prototype,"learnMoreCommand",null);_.R([_.H(),_.n("design:type",String)],IX.prototype,"businessEmailDisplayState",void 0);_.R([_.H(),_.n("design:type",String)],IX.prototype,"businessEmail",void 0);
_.R([_.H(),_.n("design:type",String)],IX.prototype,"businessEmailErrorMessage",void 0);_.R([_.Dd("metadata"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IX.prototype,"businessEmailMetadataChanged",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],IX.prototype,"onYtServiceRequestCompleted",null);_.R([_.N({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],IX);
_.J(IX,"ytd-about-channel-renderer",function(){if(QKn!==void 0)return QKn;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\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(_.E().content.cloneNode(!0),G.content.firstChild);return QKn=G},{mode:1});var B9A;var h1=function(){return _.a.apply(this,arguments)||this};
_.M(h1,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],h1.prototype,"data",void 0);_.R([_.N({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],h1);
_.J(h1,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(B9A!==void 0)return B9A;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return B9A=G},{mode:1});var U7O;var qd=function(){return _.a.apply(this,arguments)||this};
_.M(qd,_.a);qd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],qd.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],qd.prototype,"aligment",void 0);_.R([_.N({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],qd);
_.J(qd,"ytd-channel-list-sub-menu-renderer",function(){if(U7O!==void 0)return U7O;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return U7O=
G},{mode:1});var sK5;var jj=function(){return _.a.apply(this,arguments)||this};
_.M(jj,_.a);jj.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],jj.prototype,"data",void 0);_.R([_.N({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],jj);
_.J(jj,"ytd-channel-sub-menu-renderer",function(){if(sK5!==void 0)return sK5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return sK5=G},{mode:1});var gJe;var Aiz;var lN=function(){var G=_.a.apply(this,arguments)||this;G.isCompact=!1;return G};
_.M(lN,_.a);_.kV.Object.defineProperties(lN.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var G,b;return((b=_.g((G=this.data)==null?void 0:G.endpoint,_.bx))==null?void 0:b.target)==="TARGET_NEW_WINDOW"}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],lN.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lN.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],lN.prototype,"isCompact",void 0);_.R([_.P("isCompact"),_.n("design:type",Number),_.n("design:paramtypes",[])],lN.prototype,"thumbnailWidth",null);
_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],lN.prototype,"openNewWindow",null);_.R([_.N({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],lN);
_.J(lN,"ytd-media-lockup-renderer",function(){if(Aiz!==void 0)return Aiz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Aiz=G},{mode:1});var MVJ;var mB=function(){return _.a.apply(this,arguments)||this};
_.M(mB,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],mB.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],mB.prototype,"data",void 0);_.R([_.N({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],mB);
_.J(mB,"ytd-structured-description-channel-lockup-renderer",function(){if(MVJ!==void 0)return MVJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return MVJ=G},{mode:1});var Zeu;var ej=function(){var G=_.a.apply(this,arguments)||this;G.isCompact=!1;G.collectionsStackColor=_.U("modernize_structured_description_playlist_lockups_v2");return G};
_.M(ej,_.a);ej.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:_.U("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.kV.Object.defineProperties(ej.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,b,I,h,q,l;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(G=this.data)==null?void 0:(b=G.thumbnail)==null?void 0:b.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(I=this.data)==null?void 0:(h=I.thumbnail)==null?void 0:h.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(q=this.data)==null?void 0:(l=q.thumbnail)==null?
void 0:l.vibrantColorPalette:void 0}}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],ej.prototype,"componentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ej.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],ej.prototype,"showSidePanelThumbnailOverlay",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ej.prototype,"isCompact",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ej.prototype,"collectionsStackColor",void 0);_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ej.prototype,"twoLineTitle",null);_.R([_.P("data","collectionsStackColor"),_.n("design:type",Object),_.n("design:paramtypes",[])],ej.prototype,"collectionStack",null);
_.R([_.N({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],ej);
_.J(ej,"ytd-structured-description-playlist-lockup-renderer",function(){if(Zeu!==void 0)return Zeu;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Zeu=G},{mode:1});var tVW;var Vc=function(){return _.a.apply(this,arguments)||this};
_.M(Vc,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Vc.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Vc.prototype,"data",void 0);_.R([_.N({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Vc);
_.J(Vc,"ytd-structured-description-video-lockup-renderer",function(){if(tVW!==void 0)return tVW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return tVW=G},{mode:2});var DM=function(){return _.a.apply(this,arguments)||this};
_.M(DM,_.a);
DM.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],DM.prototype,"data",void 0);_.R([_.N({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],DM);
_.J(DM,"ytd-compact-infocard-renderer",function(){if(gJe!==void 0)return gJe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return gJe=G},{mode:1});var zUJ;var ce=function(){return _.a.apply(this,arguments)||this};
_.M(ce,_.a);ce.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.kV.Object.defineProperties(ce.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],ce.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],ce.prototype,"ytdReduxBehavior",void 0);_.R([_.H({selector:_.sd}),_.n("design:type",Object)],ce.prototype,"isGridViewEnabled",void 0);
_.R([_.P("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ce.prototype,"watchFeedBigThumbs",null);_.R([_.P("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"168"}),_.n("design:type",String),_.n("design:paramtypes",[])],ce.prototype,"thumbnailWidth",null);_.R([_.P("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"94"}),_.n("design:type",String),_.n("design:paramtypes",[])],ce.prototype,"customThumbnailSize",null);
_.R([_.H(),_.n("design:type",Object)],ce.prototype,"data",void 0);_.R([_.N({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],ce);
_.J(ce,"ytd-compact-playlist-renderer",function(){if(zUJ!==void 0)return zUJ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return zUJ=G},{mode:1});var oJB;var kM=function(){var G=_.a.apply(this,arguments)||this;G.roundedContainer=!0;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return G};
_.M(kM,_.a);_.m=kM.prototype;_.m.attached=function(){this.requestElementsPerRow()};
_.m.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"}}}};
_.m.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.m.computeViewStyle=function(G){return G.style?G.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.m.onUpdateElementsPerRowAction=function(G){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&G===1};
_.m.requestElementsPerRow=function(){_.O3(this.hostElement,"yt-request-elements-per-row")};
kM.prototype.dataChanged=kM.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],kM.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],kM.prototype,"actionHandlerBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],kM.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],kM.prototype,"hideThumbnail",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.n("design:type",String)],kM.prototype,"viewStyle",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],kM.prototype,"roundedContainer",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kM.prototype,"dataChanged",null);_.R([_.N({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],kM);
_.J(kM,"ytd-compact-promoted-item-renderer",function(){if(oJB!==void 0)return oJB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return oJB=G},{mode:1});var ie8;var ve=function(){return _.a.apply(this,arguments)||this};
_.M(ve,_.a);ve.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
ve.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
ve.prototype.onYtNavigate=function(G,b){var I=this;if(b.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",b)){var h=this.get("watchEndpoint.videoId",b.endpoint),q=_.E3(this.hostElement,"yt-get-current-video-id-action")[0];_.U("kevlar_mix_handle_first_endpoint_different")&&h&&q&&h!==q||(G.stopPropagation(),_.uk().getPlayerPromise().then(function(l){if(l.getPlayerState()===0&&I.data.secondaryNavigationEndpoint)var V=I.data.secondaryNavigationEndpoint;else{V=
Object.assign({},b.endpoint);var D=_.g(V.commandMetadata,_.IW);D&&(l=Math.floor(l.getCurrentTime()),D.url=_.mE(D.url,{t:l}),!_.U("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(D=_.g(V,_.Wq)))&&(D.startTimeSeconds=l)}_.O3(I.hostElement,"yt-navigate",{endpoint:V})}))}};
_.kV.Object.defineProperties(ve.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h,q,l;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(b=G.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(h=I.thumbnail)==null?void 0:h.vibrantColorPalette,darkColorPalette:(q=this.data)==null?void 0:(l=q.thumbnail)==null?void 0:l.darkColorPalette,experimentEnabled:!0}}}});
ve.prototype.onYtNavigate=ve.prototype.onYtNavigate;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ZN.YtEndpointBehavior),_.n("design:type",Object)],ve.prototype,"ytEndpointBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],ve.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.z(_.ho),_.n("design:type",Object)],ve.prototype,"ytdLockupBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],ve.prototype,"ytdReduxBehavior",void 0);_.R([_.H({selector:_.sd}),_.n("design:type",Object)],ve.prototype,"isGridViewEnabled",void 0);_.R([_.P("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ve.prototype,"watchFeedBigThumbs",null);
_.R([_.P("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.n("design:type",String),_.n("design:paramtypes",[])],ve.prototype,"thumbnailWidth",null);_.R([_.H(),_.n("design:type",Object)],ve.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ve.prototype,"collectionStack",null);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],ve.prototype,"onYtNavigate",null);
_.R([_.N({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],ve);
_.J(ve,"ytd-compact-radio-renderer",function(){if(ie8!==void 0)return ie8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ie8=G},{mode:1});var PEQ;var LS=function(){return _.a.apply(this,arguments)||this};
_.M(LS,_.a);LS.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
LS.prototype.computeRendererStyle=function(G){return G.style?G.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.R([_.H(),_.n("design:type",Object)],LS.prototype,"data",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],LS.prototype,"rendererBehavior",void 0);_.R([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.n("design:type",String)],LS.prototype,"rendererStyle",void 0);_.R([_.N({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],LS);
_.J(LS,"ytd-compact-text-promo-renderer",function(){if(PEQ!==void 0)return PEQ;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return PEQ=G},{mode:1});var d7n;var Qc=function(){var G=_.a.apply(this,arguments)||this;G.isShortsStyle=!1;return G};
_.M(Qc,_.a);_.m=Qc.prototype;_.m.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"}}}};
_.m.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.O3(this.hostElement,"yt-disable-lockup-interaction"):_.O3(this.hostElement,"yt-enable-lockup-interaction"))};
_.m.isMetaBlockEmpty=function(G){return!G||!G.longBylineText&&!G.shortBylineText&&!G.shortViewCountText&&!G.viewCountText};
_.m.computeHasOneLineTitle=function(G){return this.forceOneLineTitle||!(G==null||!G.buttons)};
_.m.computeDisableInteraction=function(){var G;return!((G=this.data)==null?0:G.navigationEndpoint)};
_.m.hasSingularTopStandaloneBadge=function(){var G;return!((G=this.data)==null||!G.topStandaloneBadge)};
_.kV.Object.defineProperties(Qc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("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":""}}});
Qc.prototype.disableInteractionChanged=Qc.prototype.disableInteractionChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Qc.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],Qc.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],Qc.prototype,"ytdLockupBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],Qc.prototype,"ytdReduxBehavior",void 0);_.R([_.H({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.n("design:type",Boolean)],Qc.prototype,"metaBlockEmpty",void 0);_.R([_.H({selector:_.sd}),_.n("design:type",Object)],Qc.prototype,"isGridViewEnabled",void 0);_.R([_.P("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Qc.prototype,"watchFeedBigThumbs",null);
_.R([_.P("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.n("design:type",String),_.n("design:paramtypes",[])],Qc.prototype,"thumbnailWidth",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Qc.prototype,"isShortsStyle",void 0);_.R([_.H(),_.n("design:type",Object)],Qc.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.n("design:type",Boolean)],Qc.prototype,"hasOneLineTitle",void 0);
_.R([_.H(),_.n("design:type",Boolean)],Qc.prototype,"hideThumbnail",void 0);_.R([_.H(),_.n("design:type",Boolean)],Qc.prototype,"forceOneLineTitle",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.n("design:type",Boolean)],Qc.prototype,"disableInteraction",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Qc.prototype,"musicMetadataVideoLockup",void 0);
_.R([_.q5("disableInteraction"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Qc.prototype,"disableInteractionChanged",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Qc.prototype,"shouldShowTopBadges",null);_.R([_.P("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],Qc.prototype,"topBadges",null);
_.R([_.P("shouldShowTopBadges","data"),_.n("design:type",Array),_.n("design:paramtypes",[])],Qc.prototype,"inlineMetadataBadges",null);_.R([_.P("shouldShowTopBadges"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Qc.prototype,"shouldShowBadgesBelowMetadata",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Qc.prototype,"compactTitleClass",null);_.R([_.N({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Qc);
_.J(Qc,"ytd-compact-video-renderer",function(){if(d7n!==void 0)return d7n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return d7n=G},{mode:_.nn("kevlar_poly_si_batch_j067")?1:2});var yiQ;_.QO("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var xM=function(){return _.a.apply(this,arguments)||this};
_.M(xM,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],xM.prototype,"data",void 0);_.R([_.N({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],xM);
_.J(xM,"ytd-counterfactual-renderer",function(){if(yiQ!==void 0)return yiQ;var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return yiQ=G},{mode:1});var riA;var fS=function(){var G=_.a.apply(this,arguments)||this;G.hidden=!1;return G};
_.M(fS,_.a);fS.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.LL().resolve(_.xW).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
fS.prototype.computeHidden=function(G){return!!G};
_.kV.Object.defineProperties(fS.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fS.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.n("design:type",Object)],fS.prototype,"hidden",void 0);_.R([_.P("data.label"),_.n("design:type",String),_.n("design:paramtypes",[])],fS.prototype,"label",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],fS.prototype,"value",null);
_.R([_.N({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],fS);
_.J(fS,"ytd-dropdown-item-renderer",function(){if(riA!==void 0)return riA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return riA=G},{mode:1});var F3A;var HeB;var Tp=function(){return _.a.apply(this,arguments)||this};
_.M(Tp,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Tp.prototype,"data",void 0);_.R([_.H({computed:"getSimpleString(data.label)"}),_.n("design:type",String)],Tp.prototype,"label",void 0);_.R([_.N({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Tp);
_.J(Tp,"ytd-navigation-dropdown-item-renderer",function(){if(HeB!==void 0)return HeB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return HeB=G},{mode:1});var Be=function(){var G=_.a.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};
_.M(Be,_.a);_.m=Be.prototype;_.m.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"}}}};
_.m.open=function(){this.inputEl.open()};
_.m.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.m.dataChanged=function(){this.reset()};
_.m.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("value-changed",this.value))};
_.m.stopPropagation=function(G){G.stopPropagation()};
_.m.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")}};
_.m.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var G=0,b=this.data.entries.length;G<b;G++){var I=this.data.entries[G],h;for(h in I)if(I.hasOwnProperty(h)){var q=I[h];if("isSelected"in q&&q.isSelected)return"stringValue"in q?q.stringValue||"":"int32Value"in q?q.int32Value||0:0}}return null};
_.m.updateValueFromBinding=function(G){this.value=G.detail.value};
_.kV.Object.defineProperties(Be.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,b=this.data.entries.length;G<b;G++){var I=this.data.entries[G],h;for(h in I)if(I.hasOwnProperty(h)){var q=I[h];if("isSelected"in q&&q.isSelected&&"label"in q)return this.ytRendererBehavior.getSimpleString(q.label)}}return null}}});
Be.prototype.autoSizeLabel=Be.prototype.autoSizeLabel;Be.prototype.stopPropagation=Be.prototype.stopPropagation;Be.prototype.valueChangedForBinding=Be.prototype.valueChangedForBinding;Be.prototype.dataChanged=Be.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Be.prototype,"ytRendererStamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],Be.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Be.prototype,"disabled",void 0);_.R([_.H(),_.n("design:type",Object)],Be.prototype,"value",void 0);_.R([_.H(),_.n("design:type",Object)],Be.prototype,"noLabelFloat",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Be.prototype,"noUnderline",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],Be.prototype,"theme",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Be.prototype,"usePrimaryColor",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Be.prototype,"hasBackground",void 0);_.R([_.H(),_.n("design:type",Object)],Be.prototype,"verticalAlign",void 0);_.R([_.H(),_.n("design:type",Object)],Be.prototype,"autosize",void 0);_.R([_.H(),_.n("design:type",Object)],Be.prototype,"minAutosizeWidth",void 0);_.R([_.H(),_.n("design:type",Object)],Be.prototype,"autosizeFont",void 0);
_.R([_.lH("#entries"),_.n("design:type",Object)],Be.prototype,"entries",void 0);_.R([_.lH("#input"),_.n("design:type",Object)],Be.prototype,"inputEl",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Be.prototype,"dataChanged",null);_.R([_.Dd("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Be.prototype,"valueChangedForBinding",null);
_.R([_.hI("iron-overlay-opened"),_.hI("iron-overlay-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Be.prototype,"stopPropagation",null);_.R([_.hI("iron-select"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Be.prototype,"autoSizeLabel",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Be.prototype,"label",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Be);
_.J(Be,"ytd-dropdown-renderer",function(){if(F3A!==void 0)return F3A;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return F3A=G},{mode:1});var W3X;var Uy=function(){var G=_.a.apply(this,arguments)||this;G.isConstrainedList=!1;return G};
_.M(Uy,_.a);Uy.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"}}}};
Uy.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Uy.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Uy.prototype.computeViewAllHidden=function(G,b){return G||!b.viewAllEndpoint};
Uy.prototype.fillRestIfNoShowMore=Uy.prototype.fillRestIfNoShowMore;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.L9.YtLazyListBehavior),_.n("design:type",Object)],Uy.prototype,"ytLazyListBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Uy.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Uy.prototype,"isConstrainedList",void 0);_.R([_.Dd("data","canShowMore"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uy.prototype,"fillRestIfNoShowMore",null);_.R([_.N({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Uy);
_.J(Uy,"ytd-expanded-shelf-contents-renderer",function(){if(W3X!==void 0)return W3X;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return W3X=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var aHB;var sy=function(){return _.a.apply(this,arguments)||this};
_.M(sy,_.a);sy.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],sy.prototype,"data",void 0);_.R([_.N({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],sy);
_.J(sy,"ytd-feed-channel-filter-header-renderer",function(){if(aHB!==void 0)return aHB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return aHB=G},{mode:1});var N9n;var YsW;var CEW;var gn=function(){return _.a.apply(this,arguments)||this};
_.M(gn,_.a);_.m=gn.prototype;_.m.onClick=function(G){var b,I=(b=this.data)==null?void 0:b.sectionEndpoint;!_.NK(_.Wy(G),this.hostElement,["A".toString()])&&I&&_.O3(this.hostElement,"yt-navigate",{endpoint:I})};
_.m.computeHasSectionEndpoint=function(G){return(G==null?void 0:G.sectionEndpoint)!==void 0};
_.m.computeShowHeaderAsLink=function(G){return(G==null?void 0:G.header)!==void 0&&(G==null?void 0:G.sectionEndpoint)!==void 0};
_.m.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};
_.m.getHeaderAsLinkClass=function(G){var b=[],I;(G==null?0:(I=G.headerIcon)==null?0:I.iconType)&&b.push("header-link-active");return b.join(" ")};
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],gn.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],gn.prototype,"data",void 0);
_.R([_.H({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],gn.prototype,"hasSectionEndpoint",void 0);_.R([_.H({computed:"computeShowHeaderAsLink(data)"}),_.n("design:type",Boolean)],gn.prototype,"showHeaderAsLink",void 0);_.R([_.H({computed:"computeShowSubheaderAsLink(data)"}),_.n("design:type",Boolean)],gn.prototype,"showSubheaderAsLink",void 0);_.R([_.N({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],gn);
_.J(gn,"ytd-medical-panel-section-renderer",function(){if(CEW!==void 0)return CEW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return CEW=G},{mode:1});var A1=function(){var G=_.a.apply(this,arguments)||this;G.isExpanded=!1;G.roundedContainer=!0;G.skipRoundingTop=!1;G.toggleExpandableSection=function(){G.isExpanded=!G.isExpanded};
return G};
_.M(A1,_.a);
A1.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]]"}}}}}};
A1.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
A1.prototype.dataChanged=A1.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],A1.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],A1.prototype,"isExpanded",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],A1.prototype,"roundedContainer",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],A1.prototype,"skipRoundingTop",void 0);_.R([_.H(),_.n("design:type",Object)],A1.prototype,"toggleExpandableSection",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],A1.prototype,"dataChanged",null);_.R([_.N({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],A1);
_.J(A1,"ytd-medical-panel-content-renderer",function(){if(YsW!==void 0)return YsW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return YsW=G},{mode:1});_.QO("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Md=function(){var G=_.a.apply(this,arguments)||this;G.roundedContainer=!0;G.extractOverlay=!1;G.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");G.hasTitle=!1;G.linkIcon="OPEN_IN_NEW";G.isDismissed=!1;return G};
_.M(Md,_.a);Md.prototype.onOverlayConditionsChange=function(){var G=_.Eo(this.hostElement).querySelector("ytd-info-panel-content-renderer");G&&(G.set("extractOverlay",this.extractOverlay),G.set("roundedContainer",this.roundedContainer))};
Md.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"}}}};
Md.prototype.computeHasTitle=function(G){return!(G==null||!G.title)};
Md.prototype.onClick=function(G){var b,I=(b=this.data)==null?void 0:b.headerEndpoint;!_.NK(_.Wy(G),this.hostElement,["BUTTON".toString()])&&I&&this.ytComponentBehavior.resolveCommand(I)};
_.kV.Object.defineProperties(Md.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,b;return((G=this.data)==null?void 0:G.disableBottomDivider)||!((b=this.data)==null?0:b.title)}}});
Md.prototype.onOverlayConditionsChange=Md.prototype.onOverlayConditionsChange;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Md.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Md.prototype,"ytdReduxBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],Md.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Md.prototype,"roundedContainer",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Md.prototype,"extractOverlay",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Md.prototype,"amsterdamEnabled",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.n("design:type",Object)],Md.prototype,"hasTitle",void 0);
_.R([_.H({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.P("data.background"),_.n("design:type",Object),_.n("design:paramtypes",[])],Md.prototype,"background",null);_.R([_.H({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.P("data.titleStyle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Md.prototype,"titleStyle",null);
_.R([_.H({type:_.U("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.P("data.titleStyle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Md.prototype,"showLinkIcon",null);_.R([_.H(),_.n("design:type",String)],Md.prototype,"linkIcon",void 0);_.R([_.H({type:_.U("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Md.prototype,"hideDivider",null);
_.R([_.H({selectorArgs:["data.dismissStateEntityKey"],selector:function(G,b){G=_.Gi(G.entities,"dismissState",b);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"}}),
_.n("design:type",Object)],Md.prototype,"isDismissed",void 0);_.R([_.q5("roundedContainer","extractOverlay"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Md.prototype,"onOverlayConditionsChange",null);_.R([_.N({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Md);
_.J(Md,"ytd-info-panel-container-renderer",function(){if(N9n!==void 0)return N9n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return N9n=G},{mode:1});var JiX;_.QO("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var ZM=function(){return _.a.apply(this,arguments)||this};
_.M(ZM,_.a);ZM.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ZM.prototype.computeStyle=function(G){return G?G:""};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ZM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ZM.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.n("design:type",String)],ZM.prototype,"titleStyle",void 0);
_.R([_.N({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],ZM);
_.R9()(ZM,"ytd-item-section-header-renderer",function(){if(JiX===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);JiX=G}G=JiX;return G},{allowedProps:["data"],
mode:1});var K3B;var uXA,RU5=function(){return uXA!==void 0?uXA:uXA=document.createElement("template")};
document.head.appendChild(RU5().content);var nJ5;_.t1=new _.q3("VOTING_ANIMATION_CONTROLLER_TOKEN");var w7z=_.C(function(G){var b=G.data;var I=_.ee("div"),h=_.ee("div");G=_.e(_.ZZ("VOTE_STATUS_NONE",void 0,"YPH5mf"));var q=G.next().value,l=G.next().value,V=_.lA(U02,function(){var T;return(T=b())==null?void 0:T.entityKey}),D=_.U("web_enable_voting_animation")||_.U("enable_music_web_cairo_voting_animation");
_.K3(function(){var T;((T=b().initialState)==null?0:T.status)&&l(b().initialState.status)});
var k=function(){var T,B,A=(B=(T=b().initialState)==null?void 0:T.votes)!=null?B:0,t;T=(t=b().initialState)==null?void 0:t.status;return T==="VOTE_STATUS_UPVOTED"?A-1:T==="VOTE_STATUS_DOWNVOTED"?A+1:A},L=function(){return q()==="VOTE_STATUS_UPVOTED"?k()+1:q()==="VOTE_STATUS_DOWNVOTED"?k()-1:k()},x=function(T){var B=T?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
l(B);var A=L(),t=_.LL().resolve(_.vf(_.t1)),y=V();y&&(T&&(y==null?0:y.upvoteDefaultButtonOnTap)?_.Zm(y.upvoteDefaultButtonOnTap,{form:{element:I.value},disableClickTracking:!0}):(y==null?0:y.upvoteToggledButtonOnTap)&&_.Zm(y.upvoteToggledButtonOnTap,{form:{element:I.value},disableClickTracking:!0}));var F;T=(F=y==null?void 0:y.enableOptimisticReordering)!=null?F:b().enableOptimisticReordering;D&&t&&b().itemId&&T&&Oe8(t,b().itemId,A,B)},f=function(T){var B=T?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
l(B);var A=L(),t=_.LL().resolve(_.vf(_.t1)),y=V();y&&(T&&(y==null?0:y.downvoteDefaultButtonOnTap)?_.Zm(y.downvoteDefaultButtonOnTap,{form:{element:h.value},disableClickTracking:!0}):(y==null?0:y.downvoteToggledButtonOnTap)&&_.Zm(y.downvoteToggledButtonOnTap,{form:{element:h.value},disableClickTracking:!0}));var F;T=(F=y==null?void 0:y.enableOptimisticReordering)!=null?F:b().enableOptimisticReordering;D&&t&&b().itemId&&T&&Oe8(t,b().itemId,A,B)};
G={};G=_.pG("ytVotingViewModelVoteCount",(G.ytVotingViewModelVoteCountDisabled=function(){return b().isDisabled},G));
return _.v("voting-view-model",{class:"ytVotingViewModelHost"},_.v("div",{el:I},_.v(_.VX,{data:function(){var T=_.g(b().upvoteButton,_.mS);return{toggleButtonViewModel:Object.assign({},T,{isToggled:q()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(T){return _.v(_.YK,{data:T.data,
onToggle:x})}})),_.v("div",{class:G},function(){var T,B,A;
return q()==="VOTE_STATUS_UPVOTED"?(T=b().initialState)==null?void 0:T.compactVotesUpvoted:q()==="VOTE_STATUS_DOWNVOTED"?(B=b().initialState)==null?void 0:B.compactVotesDownvoted:(A=b().initialState)==null?void 0:A.compactVotes}),_.v("div",{el:h},_.v(_.VX,{data:function(){var T=_.g(b().downvoteButton,_.mS);
return{toggleButtonViewModel:Object.assign({},T,{isToggled:q()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(T){return _.v(_.YK,{data:T.data,
onToggle:f})}})))},"ad");_.JN(_.C(function(G){var b=G.data;return _.v("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.v("div",{class:_.pG("ytEngagementBarViewModelEngagementBarWrapper",G.className)},_.v(_.VX,{data:function(){return b().actions}},{votingViewModel:w7z})))},"bd"),"engagement-bar-view-model",{props:{data:_.hV,
className:_.hV}});var zp=function(){var G=_.a.apply(this,arguments)||this;G.playlistVotingAnimationEnabled=_.U("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};
_.M(zp,_.a);_.m=zp.prototype;_.m.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"}}}};
_.m.canReorderChanged=function(){this.persistentDragHandle=_.U("kevlar_playlist_drag_handles")&&this.canReorder};
_.m.onDrag=function(){if(this.thumbnail){var G=_.Eo(this.thumbnail).querySelector("yt-image");G&&(G.shouldRenderLazy=!1)}};
_.m.onMenuOverlayChanged=function(G,b){this.menuOpened=b};
_.m.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.m.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.m.onContentsTap=function(G){var b,I=(b=this.data)==null?void 0:b.serviceEndpoints;if(I&&I.length===1&&_.g(I[0],U4s)&&!_.NK(_.Wy(G),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(I[0]);else{var h;(b=(h=this.data)==null?void 0:h.navigationEndpoint)&&_.U("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?EJW(_.LL().resolve(_.zO),b):(_.Ws().playlistSuggestionsShelfActivation=
!0,_.p7b(_.LL().resolve(_.zO),b)):b&&!_.NK(_.Wy(G),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.U("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.O3(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b))}};
_.m.computeStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.m.computeThumbnailWidth=function(G){return G==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.m.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=DMX(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))}};
_.m.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.m.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.m.dataChanged=function(){if(this.data){var G,b,I,h=((G=this.downloadRenderData)==null?void 0:G.badges)&&((b=this.downloadRenderData)==null?void 0:b.badges)!==((I=this.data)==null?void 0:I.badges),q,l,V;G=((q=this.downloadRenderData)==null?void 0:q.thumbnailOverlays)&&((l=this.downloadRenderData)==null?void 0:l.thumbnailOverlays)!==((V=this.data)==null?void 0:V.thumbnailOverlays);(!this.downloadRenderData||h||G)&&this.downloadStateChanged()}};
_.m.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var G,b,I=(G=this.data.menu)==null?void 0:(b=G.menuRenderer)==null?void 0:b.items;if(I)for(G=_.e(I),b=G.next();!b.done;b=G.next())if(b=b.value,I=void 0,_.g((I=b.menuServiceItemRenderer)==null?void 0:I.serviceEndpoint,_.SI)){var h=I=void 0,q=void 0;b=(I=b)==null?void 0:(h=I.menuServiceItemRenderer)==null?void 0:(q=h.serviceEndpoint)==null?void 0:q.playlistEditEndpoint;q=h=void 0;if(I=(h=b)==null?void 0:(q=h.actions)==null?void 0:
q[0])h=void 0,I.setVideoId=(h=this.data)==null?void 0:h.setVideoId;q=h=I=void 0;if(b=(I=b)==null?void 0:(h=I.clientActions)==null?void 0:(q=h[0])==null?void 0:q.playlistRemoveVideosAction)I=void 0,b.setVideoIds=[(I=this.data)==null?void 0:I.setVideoId]}}};
_.kV.Object.defineProperties(zp.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
zp.prototype.setVideoIdChanged=zp.prototype.setVideoIdChanged;zp.prototype.dataChanged=zp.prototype.dataChanged;zp.prototype.downloadStateChanged=zp.prototype.downloadStateChanged;zp.prototype.onMenuOverlayChanged=zp.prototype.onMenuOverlayChanged;zp.prototype.canReorderChanged=zp.prototype.canReorderChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],zp.prototype,"ytdReduxBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],zp.prototype,"ytdLockupBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],zp.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],zp.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],zp.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],zp.prototype,"canReorder",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],zp.prototype,"menuOpened",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],zp.prototype,"handleIsHovered",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],zp.prototype,"persistentDragHandle",void 0);_.R([_.H(),_.n("design:type",Object)],zp.prototype,"downloadRenderData",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],zp.prototype,"styleType",void 0);_.R([_.H({computed:"computeThumbnailWidth(data.style)"}),_.n("design:type",Number)],zp.prototype,"thumbnailWidth",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],zp.prototype,"isDownloads",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],zp.prototype,"playlistVotingAnimationEnabled",void 0);
_.R([_.H({selector:zi,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],zp.prototype,"downloadProgress",void 0);_.R([_.H(),_.n("design:type",Number)],zp.prototype,"relativeDateReference",void 0);_.R([_.H({selector:_.Z0,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],zp.prototype,"transferState",void 0);_.R([_.H({selector:GNO,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],zp.prototype,"downloadState",void 0);
_.R([_.H({selector:Nsq,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],zp.prototype,"offlinePolicyAction",void 0);_.R([_.H({selector:YQu,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],zp.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.R([_.H({selector:JVj,selectorArgs:["data.videoId"]}),_.n("design:type",Object)],zp.prototype,"entityInfo",void 0);_.R([_.H({selector:_.g4}),_.n("design:type",Boolean)],zp.prototype,"miniplayerIsActive",void 0);
_.R([_.P("data"),_.n("design:type",String),_.n("design:paramtypes",[])],zp.prototype,"playlistVideoId",null);_.R([_.lH("#thumbnail"),_.n("design:type",Object)],zp.prototype,"thumbnail",void 0);_.R([_.Dd("canReorder"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zp.prototype,"canReorderChanged",null);
_.R([_.hI("yt-menu-overlay-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Boolean]),_.n("design:returntype")],zp.prototype,"onMenuOverlayChanged",null);_.R([_.Dd("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zp.prototype,"downloadStateChanged",null);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zp.prototype,"dataChanged",null);_.R([_.Dd("data.setVideoId"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zp.prototype,"setVideoIdChanged",null);_.R([_.N({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],zp);
_.J(zp,"ytd-playlist-video-renderer",function(){if(nJ5!==void 0)return nJ5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);G.content.insertBefore(RU5().content.cloneNode(!0),G.content.firstChild);return nJ5=G},{mode:1});var SsX;var oX=function(){return _.a.apply(this,arguments)||this};
_.M(oX,_.a);_.R([_.H(),_.n("design:type",Object)],oX.prototype,"data",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],oX.prototype,"rendererBehavior",void 0);_.R([_.N({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],oX);
_.J(oX,"ytd-premium-browse-footer-renderer",function(){if(SsX!==void 0)return SsX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return SsX=G},{mode:1});var X7O;var iN=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return G};
_.M(iN,_.a);_.m=iN.prototype;_.m.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.m.handleDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.m.computeHeaderLogoThumbnail=function(G,b){if(G)return b?G.darkLogo:G.lightLogo};
_.m.computeHeaderLogoHeight=function(G,b){var I,h,q;return(G=(I=this.computeHeaderLogoThumbnail(G,b))==null?void 0:(h=I.thumbnails)==null?void 0:(q=h[0])==null?void 0:q.height)&&G%31===0?"31":"24"};
_.m.computeHeaderLogoMarginBottom=function(G,b){return this.computeHeaderLogoHeight(G,b)==="24"?"0":"-7"};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],iN.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],iN.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],iN.prototype,"isDarkTheme",void 0);_.R([_.H({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.n("design:type",Object)],iN.prototype,"themeLogo",void 0);
_.R([_.H({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.n("design:type",String)],iN.prototype,"logoHeight",void 0);_.R([_.H({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.n("design:type",String)],iN.prototype,"logoMarginBottom",void 0);_.R([_.N({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],iN);
_.J(iN,"ytd-primetime-promo-header-renderer",function(){if(X7O!==void 0)return X7O;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return X7O=G},{mode:1});var $6J;_.Pe=_.C(function(G){var b=G.className;var I=G.data;var h=G.isOverlay;var q=G.maxLinesOverride;var l=G.useMediumText;var V=function(){return I().alwaysShowTruncationText},D=function(){return I().truncationText},k=function(){return l!==void 0&&l()?"medium":"small"},L=function(){return h!==void 0&&h()?"overlay":"default"},x=function(){var A,t;
return(t=(A=_.g(I().rendererContext,_.DA))==null?void 0:A.label)!=null?t:""};
G=_.e(_.ZZ(!1,void 0,"llBUm"));var f=G.next().value,T=G.next().value;G=_.Xu(function(){I().expandOnTap&&T(!f());return!1});
var B={};return _.v("yt-description-preview-view-model",{el:_.Wv(_.s2(function(){return I().rendererContext})),
class:_.pG("ytDescriptionPreviewViewModelHost",b,(B.ytDescriptionPreviewViewModelClickable=function(){var A;return!((A=_.g(I().rendererContext,_.gQ))==null||!A.onTap)},B.ytDescriptionPreviewViewModelIsOverlay=h,B)),
"on:click":G},_.v(_.Q,{cond:function(){return I().description},
then:function(A){return _.v(_.Q,{cond:f,then:function(){var t={};return _.v("div",{class:_.pG("ytDescriptionPreviewViewModelDescription",(t.ytDescriptionPreviewViewModelDescriptionMediumText=l,t))},_.v(_.IS,{text:A}))},
else:function(){return _.v(GKQ,{text:A,alwaysShowTruncationText:V,truncationText:D,maxLines:function(){var t;return(t=q==null?void 0:q())!=null?t:I().maxLines},
textStyle:L,accessibilityLabel:x,textSize:k})}})}}))},"cd");
_.Pe.idomCompat=!0;var bdi=_.C(function(G){var b=_.Xu(function(q){var l;(l=G.onClick)==null||l.call(G,q)}),I={},h={};
return _.v("yt-shelf-header-layout",{class:_.pG("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 q,l;return((q=G.useResponsiveLayout)==null?void 0:q.call(G))&&((l=G.forceSmallLayout)==null?void 0:l.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":b,tabindex:function(){var q;return((q=G.isInteractive)==null?0:q.call(G))?0:void 0}},_.v("div",{class:"yt-shelf-header-layout__header-row"},_.v(_.Q,{cond:G.leadingIcon,
then:function(q){return _.v("div",{class:"yt-shelf-header-layout__leading-icon"},_.v(_.ha,{icon:q}))},
else:function(){return _.v(_.Q,{cond:G.hasLeadingImage,then:function(){var q,l={};return _.v("div",{class:_.pG("yt-shelf-header-layout__leading-image",(l["yt-shelf-header-layout__leading-image--circular-image"]=G.circularImage,l))},(q=G.leadingImage)==null?void 0:q.call(G))}})}}),_.v("div",{class:"yt-shelf-header-layout__label-container"},_.v(_.Q,{cond:G.hasSuperlabel,
then:function(){var q;return _.v("div",{class:"yt-shelf-header-layout__superlabel"},(q=G.superlabel)==null?void 0:q.call(G))}}),_.v("div",{class:"yt-shelf-header-layout__title-row"},_.v(G1O,{text:G.title,
className:_.pG("yt-shelf-header-layout__title",(h["yt-shelf-header-layout__title--small-title"]=G.forceSmallLayout,h)),tagLevel:G.tagLevel}),_.v(_.Q,{cond:G.hasDetail,then:function(){var q;return _.v("div",{class:"yt-shelf-header-layout__detail"},(q=G.detail)==null?void 0:q.call(G))}})),_.v(_.Q,{cond:G.hasSublabel,
then:function(){var q;return _.v("div",{class:"yt-shelf-header-layout__sublabel"},(q=G.sublabel)==null?void 0:q.call(G))}})),_.v(_.Q,{cond:G.hasTrailingActions,
then:function(){var q;return _.v("div",{class:"yt-shelf-header-layout__trailing-actions"},(q=G.trailingActions)==null?void 0:q.call(G))}})),_.v(_.Q,{cond:G.hasBottomAccessory,
then:function(){var q;return _.v("div",{class:"yt-shelf-header-layout__bottom-accessory"},(q=G.bottomAccessory)==null?void 0:q.call(G))}}))},"dd");
bdi.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var G1O=_.C(function(G){var b=G.text;var I=G.className;var h=G.tagLevel;return _.v(_.Nc,null,_.v(_.H3,{when:function(){return(h==null?void 0:h())===0}},function(){return _.v("h2",{class:I},b())}),_.v(_.H3,{when:function(){return(h==null?void 0:h())===1}},function(){return _.v("h3",{class:I},b())}),_.v(_.H3,{when:function(){return(h==null?void 0:h())===2}},function(){return _.v("h4",{class:I},b())}),_.v(_.W3,null,function(){return _.v("h2",{class:I},b())}))},"ed");var qJb,Iwn,hHO;_.dn=_.C(function(G){var b=G.className;var I=G.data;var h=G.disableHorizontalPadding;var q=G.disableVerticalPadding;var l=G.forceSmallLayout;var V=G.useResponsiveLayout;var D=G.isOverlay;G=G.useUpdatedPadding;return _.v("yt-section-header-view-model",{class:_.pG("ytSectionHeaderViewModelHost",b),style:_.Ir({"background-color":function(){return jN(I().backgroundColor)?_.so(jN(I().backgroundColor)):void 0}})},_.v(bdi,{hasDetail:!1,
title:function(){return _.v(_.IS,{text:function(){return I().headline}})},
hasTitle:!0,sublabel:function(){return _.v(Iwn,{data:I})},
hasSublabel:function(){return!!I().sublabel||!!I().bottomBadge},
superlabel:function(){return _.v(hHO,{data:I})},
hasSuperlabel:function(){return!!I().superlabel||!!I().topBadge},
leadingImage:function(){return _.v(qJb,{leadingAccessory:function(){return I().leadingAccessory}})},
hasLeadingImage:function(){return!!I().leadingAccessory},
trailingActions:function(){return _.v(_.VX,{data:function(){return I().trailingActions}},{flexibleActionsViewModel:_.ET})},
hasTrailingActions:function(){return!!I().trailingActions},
disableHorizontalPadding:h,disableVerticalPadding:q,forceSmallLayout:l,useResponsiveLayout:V,isOverlay:D,isInteractive:function(){return!!_.BH(I().rendererContext)},
onClick:function(k){if(_.U2(I().rendererContext)){var L=_.BH(I().rendererContext);L&&_.g5(L,{form:{element:k.target,event:k}})}},
bottomAccessory:function(){return _.v(_.VX,{data:function(){return I().bottomAccessory}},{descriptionPreviewViewModel:function(k){return _.v(_.Pe,{data:k.data,
useMediumText:!0})}})},
hasBottomAccessory:function(){return!!I().bottomAccessory},
useUpdatedPadding:G}))},"fd");
qJb=_.C(function(G){var b=G.leadingAccessory;return _.v(_.xz,null,_.v(_.Q,{cond:function(){var I;return(I=b().image)!=null?I:_.iA(b().themedImage)},
then:function(I){return _.v(_.Fu,{data:I,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.v(_.Q,{cond:function(){return _.g(b().avatar,_.AW)},
then:function(I){return _.v(_.Om,{data:I})}}))},"gd");
Iwn=_.C(function(G){var b=G.data;return _.v(_.xz,null,_.v(_.Q,{cond:function(){return _.g(b().bottomBadge,Lre)},
then:function(I){var h={};return _.v(_.Db,{data:I,class:_.pG((h.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!I()&&!!b().sublabel},h))})}}),_.v(_.Q,{cond:function(){return b().sublabel},
then:function(I){return _.v(_.IS,{text:I})}}))},"hd");
hHO=_.C(function(G){var b=G.data;return _.v(_.xz,null,_.v(_.Q,{cond:function(){return _.g(b().topBadge,Lre)},
then:function(I){var h={};return _.v(_.Db,{data:I,class:_.pG((h.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!I()&&!!b().superlabel},h))})}}),_.v(_.Q,{cond:function(){return b().superlabel},
then:function(I){return _.v(_.IS,{text:I})}}))},"id");_.JN(_.dn,"yt-section-header-view-model",{props:{data:_.hV,className:_.hV,disableHorizontalPadding:_.hV,disableVerticalPadding:_.hV,forceSmallLayout:_.hV,useResponsiveLayout:_.hV,isOverlay:_.hV,useUpdatedPadding:_.hV}});_.QO("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var yc=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return G};
_.M(yc,_.a);_.m=yc.prototype;_.m.attached=function(){this.requestElementsPerRow()};
_.m.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"}}}};
_.m.onDataChange=function(){var G=this;_.D1(this,function(){G.updateItemVisibility()})};
_.m.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G,this.updateItemVisibility())};
_.m.updateItemVisibility=function(){var G=this;this.data&&this.data.panels&&_.Eo(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(b,I){b.hidden=I>G.elementsPerRow-1})};
_.m.requestElementsPerRow=function(){_.O3(this.hostElement,"yt-request-elements-per-row")};
yc.prototype.onDataChange=yc.prototype.onDataChange;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],yc.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],yc.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],yc.prototype,"actionHandlerBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],yc.prototype,"data",void 0);_.R([_.H({value:3}),_.n("design:type",Number)],yc.prototype,"elementsPerRow",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yc.prototype,"onDataChange",null);_.R([_.N({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],yc);
_.J(yc,"ytd-primetime-promo-renderer",function(){if($6J!==void 0)return $6J;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $6J=G},{mode:1});var jUB;var rn=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return G};
_.M(rn,_.a);rn.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
rn.prototype.handleButtonRefreshAction=function(G){if(G=_.g(G,d3i))this.set("data.button",G.membershipButton),this.notifyPath("data.button")};
_.kV.Object.defineProperties(rn.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?void 0:(b=G.avatars)==null?void 0:b.slice(0,8))||[]}}});
_.R([_.H(),_.n("design:type",Object)],rn.prototype,"data",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],rn.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],rn.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rn.prototype,"rendererBehavior",void 0);_.R([_.P("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],rn.prototype,"avatars",null);
_.R([_.N({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],rn);
_.J(rn,"ytd-recognition-shelf-renderer",function(){if(jUB!==void 0)return jUB;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jUB=G},{mode:1});var lwX;var m6u;var Fr=function(){var G=_.a.apply(this,arguments)||this;G.modernButtons=_.U("web_modern_buttons");return G};
_.M(Fr,_.a);_.m=Fr.prototype;
_.m.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]]"}}}}}};
_.m.dataChanged=function(){this.collapsed=!0};
_.m.computeVisibleItems=function(G,b){return G!==void 0&&G.items?b?G.items.slice(0,this.data.collapsedItemCount):G.items:[]};
_.m.computeHideShowMore=function(G,b,I){return G>=b||!I};
_.m.computeHideShowAll=function(G,b,I){return!(G&&b)||I};
_.m.onMoreClick=function(){this.collapsed=!1};
_.kV.Object.defineProperties(Fr.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.U("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.UG("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.U("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Fr.prototype.dataChanged=Fr.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Fr.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Fr.prototype,"isSearch",void 0);
_.R([_.H({computed:"computeVisibleItems(data,collapsed)"}),_.n("design:type",Array)],Fr.prototype,"visibleItems",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],Fr.prototype,"collapsed",void 0);_.R([_.H({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.n("design:type",Boolean)],Fr.prototype,"hideShowMore",void 0);
_.R([_.H({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.n("design:type",Boolean)],Fr.prototype,"hideShowAll",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Fr.prototype,"modernButtons",void 0);_.R([_.P("isSearch"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Fr.prototype,"typographyBump",null);
_.R([_.P("isSearch"),_.n("design:type",Object),_.n("design:paramtypes",[])],Fr.prototype,"lockupExperiments",null);_.R([_.P("isSearch"),_.n("design:type",String),_.n("design:paramtypes",[])],Fr.prototype,"thumbnailWidth",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fr.prototype,"dataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Fr);
_.J(Fr,"ytd-vertical-list-renderer",function(){if(m6u!==void 0)return m6u;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return m6u=G},{mode:1});var eHJ=_.WP(["#"]);_.QO("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var He=function(){var G=_.a.apply(this,arguments)||this;G.isConstrainedList=!1;return G};
_.M(He,_.a);_.m=He.prototype;
_.m.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"}}}};
_.m.computeThumbnailStyle=function(G){return G||""};
_.m.computePlaceAnnotationUnderTitle=function(){var G;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((G=this.data)==null?void 0:G.thumbnailStyle)||"")};
_.m.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G)||_.lJa(eHJ)};
_.m.computeIsPromoShelf=function(G){var b;return(G=G==null?void 0:(b=G[0])==null?void 0:b.metadataBadgeRenderer)?G.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.m.computePlaceBadgeBesideTitle=function(G){var b;return(G==null?0:(b=G[0])==null?0:b.metadataBadgeRenderer)?!this.computeIsPromoShelf(G):!1};
_.m.computeMenuIcon=function(G){return this.computeIsPromoShelf(G)?"yt-icons:more_vert":"yt-icons:more"};
_.m.onDataChange=function(){var G,b;((G=this.data)==null?0:(b=G.content)==null?0:b.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.m.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 b=this.data.content.gridRenderer.items,I=new Set,h=_.e(G.detail.videoIds),q=h.next();!q.done;q=h.next())I.add(q.value);G.detail.returnValue=b.filter(function(l){return l.gridVideoRenderer&&l.gridVideoRenderer.videoId&&I.has(l.gridVideoRenderer.videoId)}).map(function(l){return l.gridVideoRenderer})}};
_.m.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
He.prototype.onLockupRequested=He.prototype.onLockupRequested;He.prototype.onDataChange=He.prototype.onDataChange;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],He.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],He.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.Y6),_.n("design:type",Object)],He.prototype,"ironResizableBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],He.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],He.prototype,"isSearch",void 0);_.R([_.H(),_.n("design:type",Object)],He.prototype,"isConstrainedList",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("kevlar_fluid_dismiss")}}),
_.n("design:type",Boolean)],He.prototype,"enableFluidDismiss",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.n("design:type",String)],He.prototype,"thumbnailStyle",void 0);_.R([_.H({computed:"computeMenuIcon(data.badges)"}),_.n("design:type",String)],He.prototype,"menuIcon",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.n("design:type",Boolean)],He.prototype,"featuredPromo",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],He.prototype,"onDataChange",null);_.R([_.hI("yt-lockup-requested"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],He.prototype,"onLockupRequested",null);_.R([_.N({is:"ytd-shelf-renderer",disableElementRegistration:!0})],He);
_.J(He,"ytd-shelf-renderer",function(){if(lwX!==void 0)return lwX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return lwX=G},{mode:1});var VQX;var We=function(){return _.a.apply(this,arguments)||this};
_.M(We,_.a);We.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.kV.Object.defineProperties(We.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],We.prototype,"data",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],We.prototype,"isPlaylist",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],We.prototype,"isClipList",void 0);
_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],We.prototype,"isPlaylistPageWithFilters",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],We.prototype,"hasTitle",null);_.R([_.H(),_.P("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.n("design:type",Object),_.n("design:paramtypes",[])],We.prototype,"isRightAligned",null);
_.R([_.N({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],We);
_.J(We,"ytd-sort-filter-header-renderer",function(){if(VQX!==void 0)return VQX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VQX=G},{mode:1});var D6n;var aX=function(){var G=_.a.apply(this,arguments)||this;G.enableRightArrowHidden=_.U("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return G};
_.M(aX,_.a);aX.prototype.attached=function(){var G=this;this.enableRightArrowHidden&&(this.JSC$16608_throttledOnResize=new _.GB(function(){var b;(b=G.ytdHorizontalListBehavior)==null||b.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var b;
(b=G.JSC$16608_throttledOnResize)==null||b.fire()}),this.resizeObserver.observe(this.hostElement))};
aX.prototype.detached=function(){if(this.enableRightArrowHidden){var G;(G=this.resizeObserver)==null||G.disconnect();var b;(b=this.JSC$16608_throttledOnResize)==null||b.dispose()}};
aX.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]]"}}}}}};
aX.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.kV.Object.defineProperties(aX.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.U("enable_creator_details_shelf_m2")){var G=[],b;((b=this.data)==null?0:b.creatorVideosButton)&&G.push(this.data.creatorVideosButton);var I;((I=this.data)==null?0:I.creatorAboutButton)&&G.push(this.data.creatorAboutButton);b=_.e(this.data.creatorCustomUrlButtons||[]);for(I=b.next();!I.done;I=b.next())G.push(I.value);return G}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.U("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.Qk.YtdHorizontalListBehavior),_.n("design:type",Object)],aX.prototype,"ytdHorizontalListBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],aX.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],aX.prototype,"engagementPanel",void 0);
_.R([_.H(),_.n("design:type",Object)],aX.prototype,"enableRightArrowHidden",void 0);_.R([_.P("enableRightArrowHidden","atEnd"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aX.prototype,"hideRightArrow",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],aX.prototype,"creatorCustomUrlButtons",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data","creatorCustomUrlButtons"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],aX.prototype,"showCreatorCustomUrlButtons",null);_.R([_.P("showCreatorCustomUrlButtons"),_.n("design:type",Number),_.n("design:paramtypes",[])],aX.prototype,"channelAvatarSize",null);_.R([_.N({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],aX);
_.J(aX,"ytd-video-description-infocards-section-renderer",function(){if(D6n!==void 0)return D6n;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return D6n=G},{mode:_.nn("kevlar_poly_si_batch_j067")?1:2});var cY8;var Nd=function(){return _.a.apply(this,arguments)||this};
_.M(Nd,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Nd.prototype,"data",void 0);_.R([_.H({computed:"computeIcon_(data.infoIcon)"}),_.n("design:type",Object)],Nd.prototype,"infoIcon",void 0);_.R([_.N({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Nd);
_.J(Nd,"ytd-eom-settings-disclaimer-renderer",function(){if(cY8!==void 0)return cY8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return cY8=G},{mode:1});var k15;var YM=function(){return _.a.apply(this,arguments)||this};
_.M(YM,_.a);_.kV.Object.defineProperties(YM.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.suppressPaddingDisclaimer)}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],YM.prototype,"componentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],YM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],YM.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],YM.prototype,"suppressPaddingDisclaimer",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],YM);
_.J(YM,"ytd-product-list-header-renderer",function(){if(k15!==void 0)return k15;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return k15=G},{mode:1});var vv5;var CS=function(){return _.a.apply(this,arguments)||this};
_.M(CS,_.a);CS.prototype.computeThumbnailStyle=function(G){if(G&&(G=_.Uo(G)))return"background-color:"+G+";"};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],CS.prototype,"rendererBehaviors",void 0);_.R([_.H(),_.n("design:type",Object)],CS.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],CS);
_.J(CS,"ytd-hashtag-tile-renderer",function(){if(vv5!==void 0)return vv5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vv5=G},{mode:1});var L_8;var J1=function(){return _.a.apply(this,arguments)||this};
_.M(J1,_.a);J1.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],J1.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],J1);
_.J(J1,"ytd-sponsorships-alert-renderer",function(){if(L_8!==void 0)return L_8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return L_8=G},{mode:1});var QUX;var KS=function(){return _.a.apply(this,arguments)||this};
_.M(KS,_.a);KS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.kV.Object.defineProperties(KS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.R([_.z(_.p5),_.n("design:type",Object)],KS.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],KS.prototype,"ytdLockupBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.R([_.H({selector:_.sd}),_.n("design:type",Object)],KS.prototype,"isGridViewEnabled",void 0);
_.R([_.P("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],KS.prototype,"watchFeedBigThumbs",null);_.R([_.P("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.n("design:type",String),_.n("design:paramtypes",[])],KS.prototype,"thumbnailWidth",null);_.R([_.H(),_.n("design:type",Object)],KS.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],KS);
_.J(KS,"ytd-compact-movie-renderer",function(){if(QUX!==void 0)return QUX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return QUX=G},{mode:1});var x6u;var fwi;var TMn=_.wy("HTML_DIR")==="rtl",uN=function(){var G=_.a.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$16625_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};
_.M(uN,_.a);_.m=uN.prototype;_.m.onClick=function(G){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.NK(_.Wy(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;if((b=window.getSelection())==null||!b.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.m.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.m.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.m.updateTextOnSnippetTypeChange=function(){_.U("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.m.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.m.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.RB(new _.Wf("AttributedSnippet is empty when the description is not empty",this.text))};
_.m.mutationCallback=function(){if(this.observer!=null){var G=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var b=Math.floor(G*this.maxLines/8);this.setSnippetText(this.text,b);b!==0||this.attributedTextIsEmpty()||_.RB(new _.Wf("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=(b=this.simpleText)==null?void 0:b.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)}}};
_.m.mutationObserve=function(G){var b=this;this.observer||(this.observer=new MutationObserver(function(){b.mutationCallback()}));
this.observer.observe(G,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.m.attached=function(){var G=this;_.D1(this,function(){G.resize()})};
_.m.isExpandedChanged=function(){_.O3(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.m.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)};
_.m.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 "+((TMn?"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(TMn?"right":"left",this.expandButtonOffset+"px")};
_.m.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.m.setSnippetText=function(G,b){G||(G={});if(_.d5(G)){var I=i$(G,b);I.attachmentRuns||I.commandRuns||I.decorationRuns||I.styleRuns||I.alignment||I.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:i$(G,b),headerRuns:WCr(b,this.headerRuns)},this.currentSnippetType=0):_.RB(new _.Wf("Tried to set snippet text when HTML element was null",G)):(this.plainSnippetText.textContent=z3(G.content||"",b),this.currentSnippetType=2)}else{a:{I=s7X(G,b);if(I.runs){I=_.e(I.runs);for(var h=
I.next();!h.done;h=I.next())if(h=h.value,h.bold||h.deemphasize||h.italics||h.strikethrough||h.textColor||h.navigationEndpoint||_.g(h,T3)){I=!0;break a}}I=!1}I?this.formattedSnippetText?(this.formattedSnippetText.text=s7X(G,b),this.currentSnippetType=1):_.RB(new _.Wf("Tried to set snippet text when HTML element was null",G)):(this.plainSnippetText.textContent=z3(_.NO(G),b),this.currentSnippetType=2)}};
_.m.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.m.attributedTextIsEmpty=function(){var G=this.text;if(!_.d5(G))return!0;var b;return((b=G.content)==null?void 0:b.length)===0?!0:!1};
_.m.resize=function(G){if(this.snippetText){if(G===void 0?0:G)this.JSC$16625_lastWidth=NaN;var b=this.hostElement.offsetWidth;if(b!==this.JSC$16625_lastWidth&&!this.isExpanded)if(this.JSC$16625_lastWidth=b,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,h;b=Math.min(b*this.maxLines/8*2,(h=(I=this.simpleText)==null?void 0:I.length)!=null?h:0)-1;for(I=0;G<=b;)h=Math.floor(G+(b-G)/2),this.setSnippetText(this.text,h),this.isOverflowing()?b=h-1:(G=h+1,I=h);this.setSnippetText(this.text,I);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.m.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.m.onExpandClick=function(){var G=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.U("inline_expander_reset_focus_killswitch")||_.D1(this,function(){var b;((b=_.LL().resolve(_.vf(_.v6)))==null?0:b.isKeyBoardInUse())&&_.jG(G.hostElement)});
_.O3(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.m.onCollapseClick=function(){this.collapse();_.O3(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.m.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.m.computeExpandButtonOffset=function(){var G=this.expandSizer;return G?TMn?G.offsetParent?G.offsetParent.offsetWidth-G.offsetWidth-G.offsetLeft:0:G.offsetLeft:0};
_.kV.Object.defineProperties(uN.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.d5(this.text)?this.text.content||"":_.NO(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 _.d5(this.text)?!0:this.text&&_.U("web_replace_formatted_with_attributed_string")&&eVv(this.text)?(this.text=_.fG(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}}});
uN.prototype.onTextChanged=uN.prototype.onTextChanged;uN.prototype.updateMaskAndExpandButtonOffset=uN.prototype.updateMaskAndExpandButtonOffset;uN.prototype.updateSnippetContainerMaxHeight=uN.prototype.updateSnippetContainerMaxHeight;uN.prototype.isExpandedChanged=uN.prototype.isExpandedChanged;uN.prototype.updateTextOnSnippetTypeChange=uN.prototype.updateTextOnSnippetTypeChange;uN.prototype.updateIsFormattedExpanded=uN.prototype.updateIsFormattedExpanded;uN.prototype.updateIsAttributedExpanded=uN.prototype.updateIsAttributedExpanded;
uN.prototype.onClick=uN.prototype.onClick;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],uN.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],uN.prototype,"text",void 0);_.R([_.H(),_.n("design:type",Array)],uN.prototype,"headerRuns",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],uN.prototype,"engagementPanel",void 0);_.R([_.H(),_.n("design:type",Object)],uN.prototype,"maxLines",void 0);
_.R([_.H(),_.n("design:type",String)],uN.prototype,"expandLabel",void 0);_.R([_.H(),_.n("design:type",String)],uN.prototype,"collapseLabel",void 0);_.R([_.H(),_.n("design:type",Object)],uN.prototype,"expandCommand",void 0);_.R([_.H(),_.n("design:type",Object)],uN.prototype,"expandButtonOffset",void 0);_.R([_.P("text"),_.n("design:type",String),_.n("design:paramtypes",[])],uN.prototype,"simpleText",null);
_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],uN.prototype,"onClick",null);_.R([_.P("text","isExpanded"),_.n("design:type",Object),_.n("design:paramtypes",[])],uN.prototype,"expandedText",null);_.R([_.P("headerRuns","isExpanded"),_.n("design:type",Object),_.n("design:paramtypes",[])],uN.prototype,"expandedHeaderRuns",null);
_.R([_.P("text"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],uN.prototype,"hasAttributedStringText",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],uN.prototype,"showExpandButton",void 0);_.R([_.P("collapseLabel","isExpanded"),_.n("design:type",Object),_.n("design:paramtypes",[])],uN.prototype,"showCollapseButton",null);_.R([_.H(),_.n("design:type",Object)],uN.prototype,"isTruncated",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],uN.prototype,"isExpanded",void 0);_.R([_.H(),_.n("design:type",Boolean)],uN.prototype,"isAttributedExpanded",void 0);_.R([_.q5("isExpanded","hasAttributedStringText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uN.prototype,"updateIsAttributedExpanded",null);_.R([_.H(),_.n("design:type",Boolean)],uN.prototype,"isFormattedExpanded",void 0);
_.R([_.q5("isExpanded","hasAttributedStringText"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uN.prototype,"updateIsFormattedExpanded",null);_.R([_.H(),_.n("design:type",Number)],uN.prototype,"currentSnippetType",void 0);_.R([_.P("currentSnippetType"),_.n("design:type",Object),_.n("design:paramtypes",[])],uN.prototype,"useAttributedSnippet",null);
_.R([_.P("currentSnippetType"),_.n("design:type",Object),_.n("design:paramtypes",[])],uN.prototype,"useFormattedSnippet",null);_.R([_.P("currentSnippetType"),_.n("design:type",Object),_.n("design:paramtypes",[])],uN.prototype,"usePlainSnippet",null);_.R([_.H(),_.n("design:type",Object)],uN.prototype,"alwaysShowExpandButton",void 0);_.R([_.q5("currentSnippetType"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uN.prototype,"updateTextOnSnippetTypeChange",null);
_.R([_.H(),_.n("design:type",Object)],uN.prototype,"attributedSnippetText",void 0);_.R([_.lH("#snippet"),_.n("design:type",HTMLElement)],uN.prototype,"snippetContainer",void 0);_.R([_.lH("#snippet-text"),_.n("design:type",HTMLElement)],uN.prototype,"snippetText",void 0);_.R([_.lH("#plain-snippet-text"),_.n("design:type",HTMLElement)],uN.prototype,"plainSnippetText",void 0);_.R([_.lH("#formatted-snippet-text"),_.n("design:type",Object)],uN.prototype,"formattedSnippetText",void 0);
_.R([_.lH("#attributed-snippet-text"),_.n("design:type",Object)],uN.prototype,"attributedSnippetTextEl",void 0);_.R([_.lH("#expand"),_.n("design:type",HTMLElement)],uN.prototype,"expandButton",void 0);_.R([_.lH("#expand-sizer"),_.n("design:type",HTMLElement)],uN.prototype,"expandSizer",void 0);_.R([_.Dd("isExpanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uN.prototype,"isExpandedChanged",null);
_.R([_.q5("isExpanded","maxLines"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uN.prototype,"updateSnippetContainerMaxHeight",null);_.R([_.q5("isTruncated","showExpandButton","expandButtonOffset"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uN.prototype,"updateMaskAndExpandButtonOffset",null);
_.R([_.Dd("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uN.prototype,"onTextChanged",null);_.R([_.N({is:"ytd-text-inline-expander",disableElementRegistration:!0})],uN);
_.J(uN,"ytd-text-inline-expander",function(){if(fwi===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);fwi=G}G=fwi;return G},{mode:2});var RX=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return G};
_.M(RX,_.a);RX.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
RX.prototype.handleUpdateDescriptionAction=function(G){if(G=_.g(G,_.JXO))if(G.attributedDescription)this.set("data.attributedDescriptionBodyText",G.attributedDescription);else if(G.description){var b;((b=this.data)==null?0:b.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.fG(G.description)):this.set("data.descriptionBodyText",G.description)}};
_.kV.Object.defineProperties(RX.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var G,b;return!((G=this.data)==null||!G.attributedDescriptionBodyText)||!((b=this.data)==null||!b.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.collapsedLineCount){var b;return(b=this.data)==null?void 0:b.collapsedLineCount}G=_.Te("web_watch_description_collapsed_default_lines",12);if(_.U("ww_desc_line_page_size_ks"))return G;b=Math.round(_.eL().height*_.Te("web_watch_description_screen_height_percentage",.5)/20);return Math.max(b,G)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return(I=(G=this.data)==null?void 0:G.descriptionBodyText)!=null?I:(b=this.data)==null?void 0:b.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}}});
RX.prototype.panelContentVisibleChanged=RX.prototype.panelContentVisibleChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],RX.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],RX.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],RX.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Boolean)],RX.prototype,"panelContentVisible",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],RX.prototype,"engagementPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],RX.prototype,"shortsPanel",void 0);_.R([_.lH("#inline-expander"),_.n("design:type",Object)],RX.prototype,"inlineExpander",void 0);
_.R([_.q5("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],RX.prototype,"panelContentVisibleChanged",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],RX.prototype,"hasDescriptionText",null);_.R([_.P("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],RX.prototype,"collapsedLines",null);
_.R([_.P("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.n("design:type",Object),_.n("design:paramtypes",[])],RX.prototype,"descriptionText",null);_.R([_.P("data","data.headerRuns"),_.n("design:type",Object),_.n("design:paramtypes",[])],RX.prototype,"headerRuns",null);_.R([_.P("data","data.sourceAttributions"),_.n("design:type",Object),_.n("design:paramtypes",[])],RX.prototype,"sourceAttributions",null);
_.R([_.N({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],RX);
_.J(RX,"ytd-expandable-video-description-body-renderer",function(){if(x6u!==void 0)return x6u;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return x6u=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var BMX;var U6n=_.C(function(G){var b=G.data;return _.v("factoid-renderer",{class:"ytwFactoidRendererHost"},_.v("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return b().accessibilityText}},_.v("span",{class:"ytwFactoidRendererValue"},_.v(_.IS,{text:function(){return b().value}})),_.v("span",{class:"ytwFactoidRendererLabel"},_.v(_.IS,{text:function(){return b().label}}))))},"jd");_.JN(U6n,"factoid-renderer",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;return _.v("upload-time-factoid-renderer",null,_.v(_.VX,{data:function(){return b().factoid}},{factoidRenderer:U6n}))},"kd"),"upload-time-factoid-renderer",{props:{data:_.No}});_.JN(_.C(function(G){var b=G.data;return _.v("view-count-factoid-renderer",null,_.v(_.VX,{data:function(){return b().factoid}},{factoidRenderer:U6n}))},"ld"),"view-count-factoid-renderer",{props:{data:_.No}});var nS=function(){var G=_.a.apply(this,arguments)||this;G.shortsPanel=!1;G.engagementPanel=!1;G.watchWhileSdp=_.U("shorts_desktop_watch_while_sdp");return G};
_.M(nS,_.a);nS.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"}}}}};
_.kV.Object.defineProperties(nS.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([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],nS.prototype,"componentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],nS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],nS.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],nS.prototype,"shortsPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],nS.prototype,"engagementPanel",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],nS.prototype,"watchWhileSdp",void 0);_.R([_.P("shortsPanel","engagementPanel","data.channel"),_.n("design:type",Object),_.n("design:paramtypes",[])],nS.prototype,"showChannelInfo",null);_.R([_.N({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],nS);
_.J(nS,"ytd-video-description-header-renderer",function(){if(BMX!==void 0)return BMX;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return BMX=G},{mode:1});var sUO;var Oy=function(){return _.a.apply(this,arguments)||this};
_.M(Oy,_.a);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Oy.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Oy.prototype,"noPadding",void 0);_.R([_.H(),_.n("design:type",Object)],Oy.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Oy);
_.J(Oy,"ytd-list-item-view-model",function(){if(sUO!==void 0)return sUO;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return sUO=G},{mode:1});var gvu;var AYn;var MQu;var Zdz;var wn=function(){var G=_.a.apply(this,arguments)||this;G.adaptiveFullWidth=!1;G.modernButtons=_.U("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};
_.M(wn,_.a);wn.prototype.handleSetTimestamp_=function(G){this.data&&this.data.shortUrl&&(_.Eo(this.hostElement).querySelector("#share-url").value=G.isSet?_.Re(this.data.shortUrl,"t",G.timestamp):this.data.shortUrl)};
wn.prototype.handleSignalActionCopyShareUrl_=function(G,b){(_.U("killswitch_copy_link_target_check")||_.Eo(this.hostElement).querySelector("#copy-button")===b)&&this.copyUrlToClipboard()};
wn.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Eo(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
wn.prototype.computeStyle_=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],wn.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],wn.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.n("design:type",String)],wn.prototype,"rendererStyle",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],wn.prototype,"adaptiveFullWidth",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],wn.prototype,"modernButtons",void 0);_.R([_.H(),_.n("design:type",Object)],wn.prototype,"buttonOverrides",void 0);_.R([_.g8({is:"yt-copy-link-renderer",disableElementRegistration:!0})],wn);
_.J(wn,"yt-copy-link-renderer",function(){if(Zdz===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;MQu===void 0&&(MQu=document.createElement("template"));var h=MQu;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Zdz=G}G=Zdz;return G},{mode:2});_.QO("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Ey=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return G};
_.M(Ey,_.a);_.m=Ey.prototype;_.m.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.m.attached=function(){this.keyboardFocused=!1};
_.m.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var G=_.LL().resolve(_.vf(_.v6));G&&(this.keyboardFocused=G.isKeyBoardInUse())}};
_.m.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.m.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}};
_.m.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)}};
_.m.handleUpdateToggleAction_=function(G){(G=_.g(G,qKu))&&this.data&&G.targetId==this.data.targetId&&this.set("data.toggled",G.toggled)};
_.m.toBoolean_=function(G){return!!G};
_.m.reset=function(){};
_.m.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("data-changed",this.data))};
_.m.updateDataToggledFromBinding=function(G){this.set("data.toggled",G.detail.value)};
Ey.prototype.dataChangedForBinding=Ey.prototype.dataChangedForBinding;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Ey.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ey.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Ey.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],Ey.prototype,"data",void 0);_.R([_.H({computed:"computeDescription_(data.*)"}),_.n("design:type",Object)],Ey.prototype,"description_",void 0);_.R([_.H({value:function(){return!!_.LL().resolve(_.vf(_.v6))&&_.U("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.n("design:type",Boolean)],Ey.prototype,"useKeyboardFocused",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Ey.prototype,"keyboardFocused",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ey.prototype,"dataChangedForBinding",null);_.R([_.g8({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Ey);
_.J(Ey,"yt-toggle-form-field-renderer",function(){if(AYn===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;gvu===void 0&&(gvu=document.createElement("template"));var h=gvu;I.call(b,h.content.cloneNode(!0),G.content.firstChild);AYn=G}G=AYn;return G},{mode:2});var tQ5;var zH5;var pS=function(){var G=_.a.apply(this,arguments)||this;G.isDarkTheme=!1;G.isSearch=!1;G.noTopMargin=_.U("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};
_.M(pS,_.a);_.m=pS.prototype;_.m.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}}}}}};
_.m.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.m.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.m.dataChanged=function(){var G=this.getSelectedIndex();if(G>0)this.selected=G;else{this.selected=0;var b,I;(b=this.ytScrollableChipCloudBehavior)==null||(I=b.reset)==null||I.call(b)}};
_.m.getSelectedIndex=function(){var G;if((G=this.data)==null||!G.chips)return-1;G=-1;for(var b,I=0;I<((b=this.data)==null?void 0:b.chips.length);I++){var h=void 0,q=void 0;if((h=this.data)==null?0:(q=h.chips[I].chipCloudChipRenderer)==null?0:q.isSelected){G=I;break}}return G};
_.m.onResize=function(){var G=this.ytScrollableChipCloudBehavior;_.D1(G,G.setContainerWidthDiff);G=this.ytScrollableChipCloudBehavior;_.D1(G,G.setButtonsState)};
_.m.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.m.handleRelatedChipCommand=function(G,b){G=this.JSC$16652_chipsSelector.indexOf(b);G!==-1&&this.JSC$16652_chipsSelector.selectIndex(G)};
_.m.handleChipCloudChipSelectAction=function(G){G=this.JSC$16652_chipsSelector.indexOf(G);G>-1&&this.JSC$16652_chipsSelector.selectIndex(G)};
_.m.handleChipCloudChipDeselectAction=function(){var G=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16652_chipsSelector&&((G==null?0:G.continuationCommand)?_.pv(this.hostElement,[G]):(G==null?0:G.searchEndpoint)?this.ytComponentBehavior.resolveCommand(G):G&&_.Su(this.hostElement,[G],this.hostElement),this.JSC$16652_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.m.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
pS.prototype.onResize=pS.prototype.onResize;pS.prototype.dataChanged=pS.prototype.dataChanged;pS.prototype.isSearchChanged=pS.prototype.isSearchChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],pS.prototype,"actionHandlerBehavior",void 0);
_.R([_.z(_.Y6),_.n("design:type",Object)],pS.prototype,"ironResizableBehavior",void 0);_.R([_.z(),_.n("design:type",iR)],pS.prototype,"ytScrollableChipCloudBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],pS.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],pS.prototype,"data",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],pS.prototype,"selected",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],pS.prototype,"isDarkTheme",void 0);_.R([_.H({value:160}),_.n("design:type",Number)],pS.prototype,"scrollDistance",void 0);_.R([_.H(),_.n("design:type",Object)],pS.prototype,"isSearch",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],pS.prototype,"noTopMargin",void 0);_.R([_.lH("#chips"),_.n("design:type",Object)],pS.prototype,"JSC$16652_chipsSelector",void 0);
_.R([_.q5("isSearch"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pS.prototype,"isSearchChanged",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pS.prototype,"dataChanged",null);_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pS.prototype,"onResize",null);_.R([_.g8({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],pS);
_.J(pS,"yt-chip-cloud-renderer",function(){if(zH5===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;tQ5===void 0&&(tQ5=document.createElement("template"));var h=tQ5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);zH5=G}G=zH5;return G},{mode:2});var ovQ,idQ=function(){return ovQ!==void 0?ovQ:ovQ=document.createElement("template")};
document.head.appendChild(idQ().content);var Pan;var d6z=document.head,yYe=d6z.appendChild,rYz;if(Pan===void 0){var F_B=document.createElement("template");_.Z(F_B,"");F_B.content.insertBefore(idQ().content.cloneNode(!0),F_B.content.firstChild);Pan=F_B}rYz=Pan;yYe.call(d6z,rYz.content);var Hdn=_.C(function(G){var b=G.data;return _.v("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.v("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.v("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.v(_.Q,{cond:function(){return _.iA(b().image)},
then:function(I){return _.v("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.v(_.Fu,{data:I,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.v("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.v(_.IS,{text:function(){return b().title}})),_.v("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.v(_.IS,{text:function(){return b().subtitle}})))),_.v(_.Q,{cond:function(){var I;
return(I=b())==null?void 0:I.hasBottomDivider},
then:function(){return _.v("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"md");var W_n=_.C(function(G){var b=G.data;return _.v("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.v("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.v(_.VX,{data:function(){var I;return(I=b().offerPlanDetailsItem)!=null?I:[]}},{offerPlanDetailsItemViewModel:function(I){return _.v("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.v(Hdn,{data:I.data}))}})),_.v("div",null,_.v(_.Q,{cond:function(){return b().hasBottomDivider},
then:function(){return _.v("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.v("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.v("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.v("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.v("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"nd");var awO=_.C(function(G){var b=G.data;G=_.e(_.ZZ(!1,void 0,"MrXxy"));var I=G.next().value,h=G.next().value,q=_.Xu(function(){h(!I());return!1}),l=function(){var V;
return(V=b().offerPlanDetailsContainer)!=null?V:[]};
return _.v("lp-complex-offer-card-details-view-model",null,_.v("div",null,_.v(_.Q,{cond:function(){return I()},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.v("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":q,"aria-expanded":I},_.v(_.IS,{text:function(){return b().expandedTitle}})),_.v("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.v(_.VX,{data:l},{offerPlanDetailsContainerViewModel:function(V){return _.v("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.v(W_n,{data:V.data}))}})),_.v("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.v(_.IS,{text:function(){return b().legalText}})))},
else:function(){return _.v("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":q,"aria-expanded":I},_.v(_.IS,{text:function(){return b().collapsedTitle}}),_.v("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.v(_.ha,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"od");var NMB=_.C(function(G){var b=G.data;return _.v("lp-complex-offer-card-option-view-model",null,_.v("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.v(_.Q,{cond:function(){return b().topDividerText},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.v("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.v("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.v("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.v(_.IS,{text:function(){return b().topDividerText}}))))}}),_.v(_.Q,{cond:function(){return b().description},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.v(_.IS,{text:function(){return b().description}}))}}),_.v(_.Q,{cond:function(){return b().planPricingPrimary},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.v(_.IS,{text:function(){return b().planPricingPrimary}}))}}),_.v(_.Q,{cond:function(){return b().planPricingSecondary},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.v(_.IS,{text:function(){return b().planPricingSecondary}}))}}),_.v(_.Q,{cond:function(){return b().primaryButton},
then:function(){return _.v("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.v(_.VX,{data:function(){return b().primaryButton}},{buttonViewModel:function(I){return _.v(_.sQ,{data:I.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"pd");var YJA=_.C(function(G){var b=G.data;var I=function(){var l;return((l=b())==null?void 0:l.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
G={};var h={},q={};return _.v("ytm-lp-complex-offer-card-view-model",null,_.v("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.v("div",{class:_.pG((G.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=I,G),"ytmLpComplexOfferCardViewModelCardContainer")},_.v(_.Q,{cond:function(){var l;return(l=b())==null?void 0:l.bannerText},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.v("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.v(_.IS,{text:function(){return b().bannerText}})))}}),_.v(_.Q,{cond:function(){return _.iA(b().logo)},
then:function(l){var V={};return _.v("div",{class:_.pG((V.ytmLpComplexOfferCardViewModelLogoAlignLeft=I,V),"ytmLpComplexOfferCardViewModelLogo")},_.v(_.Fu,{data:l,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.v("div",{class:_.pG((h.ytmLpComplexOfferCardViewModelTitleAlignLeft=I,h),"ytmLpComplexOfferCardViewModelTitle")},_.v(_.IS,{text:function(){return b().title}})),_.v(_.Q,{cond:function(){var l;
return(l=b())==null?void 0:l.subtitle},
then:function(){var l={};return _.v("div",{class:_.pG((l.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=I,l),"ytmLpComplexOfferCardViewModelSubtitle")},_.v(_.IS,{text:function(){return b().subtitle}}))}}),_.v(_.Q,{cond:function(){return b().planPricingPrimary},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.v(_.IS,{text:function(){return b().planPricingPrimary}}))}}),_.v(_.Q,{cond:function(){return b().planPricingSecondary},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.v(_.IS,{text:function(){return b().planPricingSecondary}}))}}),_.v(_.Q,{cond:function(){return b().purchaseButton},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.v(_.VX,{data:function(){return b().purchaseButton}},{buttonViewModel:function(l){return _.v(_.sQ,{data:l.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.v(_.Q,{cond:function(){var l;
return(l=b())==null?void 0:l.offerOptions},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.v(_.VX,{data:function(){return b().offerOptions}},{lpComplexOfferCardOptionViewModel:NMB}))}}),_.v("div",{class:_.pG((q.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=I,q),"ytmLpComplexOfferCardViewModelLegalText")},_.v(_.IS,{text:function(){return b().legalText}})),_.v(_.Q,{cond:function(){var l;
return(l=b())==null?void 0:l.offerCardDetails},
then:function(){return _.v("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.v(_.VX,{data:function(){return b().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:awO}))}}))))},"qd");var CaB=_.C(function(G){var b=G.data;var I=function(){var V;return((V=b())==null?void 0:V.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
G={};var h={},q={},l={};return _.v("ytm-lp-complex-offer-card-section-view-model",null,_.v("div",{class:_.pG("ytmLpComplexOfferCardSectionViewModelHost")},_.v("div",{class:_.pG((G.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=I,G),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.v("div",{class:_.pG((h.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=I,h),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.v("h2",{class:_.pG((q.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
I,q),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.v(_.IS,{text:function(){return b().title}}))),_.v(_.Q,{cond:function(){var V;
return(V=b())==null?void 0:V.subtitle},
then:function(){var V={},D={};return _.v("div",{class:_.pG((V.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=I,V),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.v("div",{class:_.pG((D.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=I,D),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.v(_.IS,{text:function(){return b().subtitle}})))}}),_.v("div",{class:_.pG((l.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=I,l),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.v(_.VX,{data:function(){var V;
return(V=b().offerPlans)!=null?V:[]}},{lpComplexOfferCardViewModel:function(V){return _.v("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.v(YJA,{data:V.data}))}})))))},"rd");var JYA=_.C(function(G){return _.v("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.v("div",{class:"ytLpCouponBannerViewModelIcon"},_.v(_.ha,{icon:function(){return"price_tag"}})),_.v("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.v("div",{class:"ytLpCouponBannerViewModelContent"},_.v("div",{class:"ytLpCouponBannerViewModelHeading"},_.v(_.IS,{text:function(){var b;
return(b=G.data())==null?void 0:b.title}})),_.v("div",{class:"ytLpCouponBannerViewModelBody"},_.v(_.IS,{text:function(){var b;
return(b=G.data())==null?void 0:b.subtitle}})))))},"sd");
JYA.idomCompat=!0;_.Sj=iJn.getInstance();var K_b;K_b=_.C(function(G){return _.v("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":G.shouldAriaHideContent},_.v("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:G.questionId},_.v(_.IS,{text:G.question})))},"td");
_.utb=_.C(function(G){var b=G.data;var I=G.themeOverride;G=_.e(_.ZZ(!1,void 0,"pNli2b"));var h=G.next().value,q=G.next().value;G=_.Xu(function(){q(!h());return!1});
var l=function(){return h()?"EXPAND_LESS":"EXPAND_MORE"},V=("faq-container"+_.W0(_.Sj)).toString(),D="faq-question-and-answers-section-question"+_.W0(_.Sj),k={},L={};
return _.v("faq-entry-view-model",null,_.v("div",{class:_.pG("ytLpFaqEntryViewModelHost",(k.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return I==null?void 0:I().useDarkTheme},k))},_.v("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":G,role:"button","aria-expanded":h,"aria-labelledby":D.toString(),"tab-index":"0"},_.v(K_b,{question:function(){return b().question},
questionId:D,shouldAriaHideContent:!0}),_.v(_.Q,{cond:function(){return h()!==void 0},
then:function(){return _.v("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.v(_.ha,{icon:l,ariaHidden:!0}),_.v("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.v("div",{class:_.pG("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(L.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!h()},L))},_.v("div",{id:V},_.v(_.aj,{each:function(){return b().answers||[]}},function(x){return _.v("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.v(_.IS,
{text:x}))})))))},"ud");
_.utb.idomCompat=!0;var RH5=_.C(function(G){var b=G.data;var I=G.themeOverride;G={};return _.v("lp-faq-section-view-model",null,_.v("div",{class:_.pG("yt-lp-faq-section-view-model",(G["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},G["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},G))},_.v("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.v(_.Q,{cond:function(){return b().header},
then:function(h){return _.v("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.v(_.IS,{text:h}))}}),_.v("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.v(_.VX,{data:function(){return b().faqs}},{faqEntryViewModel:function(h){return _.v(_.utb,{data:h.data,
themeOverride:I})}})),_.v("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.v(_.aj,{each:function(){return b().footers||[]}},function(h){return _.v(_.IS,{text:h})})),_.v(_.Q,{cond:function(){return b().legal},
then:function(h){return _.v("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.v(_.IS,{text:h}))}}))))},"vd");
RH5.idomCompat=!0;var nvb=_.C(function(G){var b=G.data;var I=G.themeOverride;_.K3(function(){var V=b().gtmId;V&&_.WQ(V,_.wy("GL",""))});
var h={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var V,D,k;return(k=(V=b().logo)==null?void 0:(D=V.accessibilityData)==null?void 0:D.label)!=null?k:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},q=_.LL().resolve(_.vf(_.Pv)),l=function(){return q&&q()||(I==null?void 0:I().useDarkTheme)};
return _.v("lp-header-section-view-model",null,_.v("div",{class:function(){var V=b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",D=b().marginType==="LP_SECTION_MARGIN_TYPE_TOP",k=I==null?void 0:I().useDarkTheme,L=["lp-header-section-view-model"];V&&L.push("lp-header-section-view-model--ptc-layout-type");D&&L.push("lp-header-section-view-model__lp-header-section-margin");k&&L.push("lp-header-section-view-model--premium-force-dark-mode");return L.join(" ")}},_.v(_.Q,{cond:function(){return b().logo},
then:function(){return _.v("div",null,_.v(_.Q,{cond:l,then:function(){return _.v(_.Q,{cond:function(){var V;return(V=b().logo)==null?void 0:V.imageDark},
then:function(V){return _.v(_.Fu,Object.assign({},{data:V},h))}})},
else:function(){return _.v(_.Q,{cond:function(){var V;return(V=b().logo)==null?void 0:V.imageLight},
then:function(V){return _.v(_.Fu,Object.assign({},{data:V},h))}})}}))}}),_.v(_.Q,{cond:function(){return b().title},
then:function(V){return _.v("div",{class:"lp-header-section-view-model__lp-header-title"},_.v(_.IS,{text:V}))}}),_.v("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.v(_.Q,{cond:function(){return b().subtitles},
then:function(V){return _.v(_.aj,{each:V},function(D){return _.v("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.v(_.IS,{text:D}))})}})),_.v(_.Q,{cond:function(){return b().additionalInfo},
then:function(V){return _.v("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.v(_.IS,{text:V}))}}),_.v("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.v(_.Q,{cond:function(){return b().primaryButton},
then:function(V){return _.v("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.v(_.VX,{data:V},{buttonViewModel:_.sQ}))}}),_.v(_.Q,{cond:function(){return b().secondaryButton},
then:function(V){return _.v("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.v(_.VX,{data:V},{buttonViewModel:_.sQ}))}})),_.v(_.Q,{cond:function(){return b().otherOffersInfo},
then:function(V){return _.v("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.v(_.IS,{text:V}))}}),_.v("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.v(_.Q,{cond:function(){return b().billingInfo},
then:function(V){return _.v(_.aj,{each:V},function(D){return _.v("div",null,_.v(_.IS,{text:D}))})}}))))},"wd");
nvb.idomCompat=!0;var Ode=_.C(function(G){return _.v("lp-header-upsell-banner-view-model",{class:_.pG("lpHeaderUpsellBannerViewModelHost",G.className,{})},_.v("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.v(_.ha,{icon:function(){return"CAMPAIGN"}})),_.v("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.v("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.v("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.v("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.v(_.IS,{text:function(){var b;
return(b=G.data())==null?void 0:b.description}})))),_.v(_.VX,{data:function(){var b;
return(b=G.data())==null?void 0:b.purchaseButton}},{buttonViewModel:function(b){return _.v(_.sQ,{data:b.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"xd");var wYX=_.C(function(G){var b=G.data;var I=_.a9(G.themeOverride,{useDarkTheme:!1});G={};G=_.pG("ytmLpHeadlineSectionViewModelHost",(G.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return I().useDarkTheme},G));
return _.v("lp-headline-section-view-model",null,_.v("div",{class:G},_.v(_.Q,{cond:function(){return b().title},
then:function(h){return _.v("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.v(_.IS,{text:h}))}}),_.v(_.Q,{cond:function(){return b().subtitle},
then:function(h){return _.v("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.v(_.IS,{text:h}))}})))},"yd");var Evn=_.C(function(G){var b=G.data;var I=G.themeOverride;var h=_.LL().resolve(_.vf(_.Pv)),q=function(){return h&&h()||(I==null?void 0:I().useDarkTheme)},l=function(){var L,x;
var f=q()?(L=b().textBackgroundImage)==null?void 0:L.imageDark:(x=b().textBackgroundImage)==null?void 0:x.imageLight;return j0s((f==null?void 0:f.sources)||[])},V=function(){var L,x;
return q()?(L=b().featureImage)==null?void 0:L.imageDark:(x=b().featureImage)==null?void 0:x.imageLight},D=function(){return b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},k=function(){var L,x;
return q()?(L=b().logo)==null?void 0:L.imageDark:(x=b().logo)==null?void 0:x.imageLight};
return _.v("ytm-lp-large-feature-section-view-model",null,_.v("div",{class:function(){var L=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",x=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",f=(b().index||0)%2===1,T=I==null?void 0:I().useDarkTheme,B=["yt-lp-large-feature-section-view-model"];L?B.push("yt-lp-large-feature-section-view-model--music-feature-type"):x?B.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):f||B.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
T&&B.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return B.join(" ")}},_.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.v(_.Q,{cond:V,
then:function(){return _.v(_.Fu,{data:function(){return V()},
alt:function(){var L,x,f;return(f=(L=b().featureImage)==null?void 0:(x=L.accessibilityData)==null?void 0:x.label)!=null?f:""},
contentMode:D})}})),_.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var L;return((L=l())==null?0:L.url)?"background-image: url("+_.KA(l().url)+");":""}},_.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.v(_.Q,{cond:k,
then:function(){return _.v(_.Fu,{data:function(){return k()},
alt:function(){var L,x,f;return(f=(L=b().logo)==null?void 0:(x=L.accessibilityData)==null?void 0:x.label)!=null?f:""},
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"})}}),_.v(_.Q,{cond:function(){return b().eyebrowText},
then:function(){return _.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.v(_.IS,{text:function(){return b().eyebrowText}}))}}),_.v(_.Q,{cond:function(){return b().title},
then:function(){return _.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.v(_.IS,{text:function(){return b().title}}))}}),_.v(_.Q,{cond:function(){return b().subtitles},
then:function(){return _.v("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.v(_.aj,{each:function(){return b().subtitles||[]}},function(L){return _.v(_.IS,{text:L})}))}})))))},"zd");
Evn.idomCompat=!0;var pYX=_.C(function(G){return _.v("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.v("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.v(_.ha,{icon:function(){var b;return(b=G.data())==null?void 0:b.iconType},
className:function(){var b;switch((b=G.data())==null?void 0:b.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 b;return((b=G.data())==null?void 0:b.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.v("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.v(_.IS,{text:function(){var b;
return(b=G.data())==null?void 0:b.text},
className:function(){var b;return((b=G.data())==null?void 0:b.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Ad");var SJX=_.C(function(G){G=_.N5(G,{config:void 0,themeOverride:void 0});var b=G.data,I=G.config,h=G.themeOverride;G={};G=_.pG("ytmLpOfferCardOptionViewModelHost",(G.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var D;return(D=h())==null?void 0:D.useDarkTheme},G));
var q=_.Xu(function(){var D,k;(D=I())==null||(k=D.handleRadioButtonClick)==null||k.call(D,b());return!1}),l=function(){var D;
return(D=I())==null?void 0:D.shouldDisplayRadioButton},V=function(){var D;
return(D=b().featureListItems)!=null?D:[]};
return _.v("ytm-lp-offer-card-option-view-model",null,_.v("div",{class:G,"on:click":_.Xu(function(){if(l()){var D,k;(D=I())==null||(k=D.handleRadioButtonClick)==null||k.call(D,b())}return!1})},_.v(_.Q,{cond:l,
then:function(){return _.v("div",null,_.v("input",{type:"radio","on:click":q,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var D;return!((D=I())==null||!D.isOptionSelected)}}))}}),_.v("div",null,_.v("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.v(_.IS,{text:function(){return b().eyebrowText}})),_.v("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.v(_.IS,{text:function(){return b().title}})),_.v("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.v(_.IS,
{text:function(){return b().subtitle}})),_.v(_.Q,{cond:function(){return V().length>0},
then:function(){return _.v("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.v(_.VX,{data:V},{lpFeatureListItemViewModel:pYX}))}}),_.v("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.v(_.IS,{text:function(){return b().description}})))))},"Bd");
SJX.idomCompat=!0;var XYJ=_.C(function(G){var b=G.data;var I=G.themeOverride;G=_.e(_.bk(function(){var l,V=(l=b().offerOptions)==null?void 0:l[0];return _.g(V,X6W)||{}}));
var h=G.next().value,q=G.next().value;G={};return _.v("ytm-lp-offer-card-view-model",null,_.v("div",{class:_.pG("ytmLpOfferCardViewModelHost",(G.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(I==null||!I().useDarkTheme)},G))},_.v("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.v(_.Q,{cond:function(){return b().titleIconType},
then:function(){return _.v("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.v(_.ha,{icon:function(){var l;return((l=b().titleIconType)==null?void 0:l.toString())||""}}))}}),_.v("div",{class:"ytmLpOfferCardViewModelTitleText"},_.v(_.IS,{text:function(){return b().title}})),_.v(_.VX,{data:function(){return b().titleBadge}},{badgeViewModel:function(l){return _.v("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.v(_.Db,{data:l.data}))}})),_.v("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.v(_.VX,{data:function(){return b().offerOptions}},{lpOfferCardOptionViewModel:function(l){var V=l.data;
return _.v(_.xz,null,_.v("div",{class:"ytmLpOfferCardViewModelDivider"}),_.v(SJX,{data:V,config:function(){var D;return{shouldDisplayRadioButton:(b().offerOptions||[]).length>1,isOptionSelected:V().id===((D=h())==null?void 0:D.id),handleRadioButtonClick:function(k){return void q(k)}}},
themeOverride:I}))}})),_.v("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.v(_.VX,{data:function(){var l;
return(l=h())==null?void 0:l.purchaseButtonOverride}},{buttonViewModel:_.sQ}))))},"Cd");
XYJ.idomCompat=!0;var $az=_.C(function(G){var b=G.data;var I=G.themeOverride;G={};G=_.pG("ytmLpOfferCardSectionViewModelHost",(G.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var h;return I==null?void 0:(h=I())==null?void 0:h.useDarkTheme},G));
return _.v("ytm-lp-offer-card-section-view-model",null,_.v("div",{class:G},_.v(_.Q,{cond:function(){return b().title!==void 0},
then:function(){return _.v("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.v("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.v(_.IS,{text:function(){return b().title}})),_.v(_.Q,{cond:function(){return b().subtitle},
then:function(){return _.v("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.v(_.IS,{text:function(){return b().subtitle}}))}}))}}),_.v("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.v(_.VX,{data:function(){return b().offerCards}},{lpOfferCardViewModel:function(h){return _.v("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.v(XYJ,{data:h.data,
themeOverride:I}))}})),_.v(_.Q,{cond:function(){return b().footer},
then:function(){return _.v("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.v(_.IS,{text:function(){return b().footer}}))}})))},"Dd");var Gh8=_.C(function(G){var b=G.data;return _.v("lp-offer-table-cell-content-view-model",null,_.v("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.v(_.Nc,null,_.v(_.H3,{when:function(){return b().title}},function(){return _.v(_.IS,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return b().title}})}),_.v(_.H3,{when:function(){return b().subTitle}},function(){return _.v(_.IS,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return b().subTitle}})}),_.v(_.H3,{when:function(){return b().featureDescription}},function(){return _.v(_.IS,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return b().featureDescription}})}),_.v(_.H3,{when:function(){return b().description}},function(){return _.v(_.IS,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return b().description}})}),_.v(_.H3,{when:function(){return b().iconType}},function(){return _.v("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.v(_.ha,{icon:function(){return b().iconType.toString()}}))}),_.v(_.H3,{when:function(){return b().purchaseButton}},function(){return _.v(_.VX,{data:function(){return b().purchaseButton}},{buttonViewModel:function(I){return _.v("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.v(_.sQ,
{data:I.data}))}})}),_.v(_.H3,{when:function(){return b().note}},function(){return _.v(_.IS,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return b().note}})}),_.v(_.H3,{when:function(){return b().featureDetail}},function(){return _.v(_.IS,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return b().featureDetail}})}),_.v(_.H3,{when:function(){return b().badge}},function(){return _.v(_.VX,{data:function(){return b().badge}},{badgeViewModel:_.Db})}))))},"Ed");
Gh8.idomCompat=!0;var bH5=_.C(function(G){var b=G.data;return _.v("lp-offer-table-cell-view-model",null,_.v("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(b().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;"}}},_.v(_.VX,{data:function(){return b().contents}},{lpOfferTableCellContentViewModel:Gh8})))},
"Fd");
bH5.idomCompat=!0;var IhO=_.C(function(G){var b=G.data;var I=G.lpTableIsFirstRow;var h=G.lpTableIsLastRow;var q=function(){return(I==null?0:I())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},l=function(){return(I==null?0:I())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(h==null?0:h())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.v("ytm-lp-offer-table-row-view-model",null,_.v("div",{class:"ytLpOfferTableRowViewModelHost"},_.v(_.VX,{data:function(){return b().rowHeaderCell}},{lpOfferTableCellViewModel:function(V){return _.v("div",{class:q},_.v(bH5,{data:V.data}))}}),_.v(_.VX,{data:function(){return b().contentCells}},{lpOfferTableCellViewModel:function(V){return _.v("div",{class:l},_.v(bH5,{data:V.data}))}})))},"Gd");
IhO.idomCompat=!0;var hSe=_.C(function(G){var b=G.data;var I=G.themeOverride;var h=_.LL().resolve(_.vf(_.Pv)),q=function(){return _.g(b().logo,UIX)||{}};
G={};return _.v("ytm-lp-offer-table-section-view-model",null,_.v("div",{class:"ytLpOfferTableViewModelHost"},_.v(_.Q,{cond:function(){var l,V;return h&&h()||(I==null?0:I().useDarkTheme)?(l=q())==null?void 0:l.imageDark:(V=q())==null?void 0:V.imageLight},
then:function(l){return _.v(_.Fu,{data:l,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var V,D,k;return(k=(V=q())==null?void 0:(D=V.accessibilityData)==null?void 0:D.label)!=null?k:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.v(_.IS,{text:function(){return b().title}})),_.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.v(_.IS,{text:function(){return b().subtitle}})),_.v(_.Q,{cond:function(){return b().disclaimers},
then:function(l){return _.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.v(_.aj,{each:l},function(V){return _.v("div",null,_.v(_.IS,{text:V}))}))}}),_.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.v(_.VX,{data:function(){return b().rows}},{lpOfferTableRowViewModel:function(l,V){return _.v(IhO,{data:l.data,
lpTableIsFirstRow:function(){return V()===0},
lpTableIsLastRow:function(){return V()===b().rows.length-1}})}})),_.v("div",{class:_.pG((G.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return b().hasFooterBackground},G))},_.v(_.Q,{cond:function(){return b().footer},
then:function(){return _.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.v(_.IS,{text:function(){return b().footer}}))}}),_.v(_.Q,{cond:function(){return b().footerTitle},
then:function(){return _.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.v(_.IS,{text:function(){return b().footerTitle}}))}}),_.v(_.Q,{cond:function(){return b().footerDescription},
then:function(){return _.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.v(_.IS,{text:function(){return b().footerDescription}}))}}),_.v(_.Q,{cond:function(){return b().footerDescriptions},
then:function(l){return _.v("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.v(_.aj,{each:l},function(V){return _.v("div",null,_.v(_.IS,{text:V}))}))}}))))},"Hd");
hSe.idomCompat=!0;var qXO=_.C(function(G){var b=G.data;var I=G.themeOverride;var h=_.LL().resolve(_.vf(_.Pv)),q=function(){var D;return I==null?void 0:(D=I())==null?void 0:D.useDarkTheme},l=function(){var D,k;
return h&&h()||q()?(D=b().image)==null?void 0:D.imageDark:(k=b().image)==null?void 0:k.imageLight};
G={};G=_.pG("ytmLpSmallFeatureSectionViewModelHost",(G.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=q,G));var V=function(){var D,k,L;return(L=(D=b().image)==null?void 0:(k=D.accessibilityData)==null?void 0:k.label)!=null?L:""};
return _.v("ytm-lp-small-feature-section-view-model",{class:G},_.v(_.Q,{cond:function(){return l()&&!l2u},
then:function(){return _.v("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.v(_.Fu,{data:function(){return l()},
alt:V,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.v("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.v("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.v(_.Q,{cond:function(){return b().title},
then:function(D){return _.v(_.IS,{text:D})}})),_.v("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.v(_.IS,{text:function(){return b().description}}))))},"Id");
qXO.idomCompat=!0;var jgJ=_.C(function(G){var b=G.data;var I=G.themeOverride;G={};return _.v("ytm-lp-small-feature-section-group-view-model",null,_.v("div",{class:_.pG("ytmLpSmallFeatureSectionGroupViewModelHost",(G.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(I==null||!I().useDarkTheme)},G))},_.v("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.v(_.VX,{data:function(){return b().smallFeatures}},{lpSmallFeatureSectionViewModel:function(h){return _.v("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.v(qXO,{data:h.data,
themeOverride:I}))}}))))},"Jd");
jgJ.idomCompat=!0;_.JN(_.C(function(G){var b=G.data;var I=function(){return b().forcedTheme==="USER_INTERFACE_THEME_DARK"},h=function(){return b().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},q=function(){var V="",D,k;
var L=_.LL().resolve(_.vf(_.Pv));L=I()||(L==null?0:L())?(D=b().themedImageViewModel)==null?void 0:D.imageDark:(k=b().themedImageViewModel)==null?void 0:k.imageLight;(D=j0s((L==null?void 0:L.sources)||[]))&&D.url&&(V=h()?"background-image: linear-gradient(to bottom, transparent, "+(b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.KA(D.url)+");":"background-image: url("+_.KA(D.url)+");");return V},l=function(){return{useDarkTheme:I()}};
G={};return _.v("yt-section-group-view-model",null,_.v("div",{class:_.pG("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 b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},G))},_.v(_.Q,{cond:function(){return q().length},
then:function(){var V={};return _.v("div",{class:_.pG("yt-lp-section-group-view-model__bg-image",(V["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=h,V)),style:q})}}),_.v("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.v(_.VX,{data:function(){return b().sections}},{lpHeaderUpsellBannerViewModel:function(V){return _.v(Ode,{data:V.data})},
lpFaqSectionViewModel:function(V){return _.v(RH5,{data:V.data,themeOverride:l})},
lpHeaderSectionViewModel:function(V){return _.v(nvb,{data:V.data,themeOverride:l})},
lpHeadlineSectionViewModel:function(V){return _.v(wYX,{data:V.data,themeOverride:l})},
lpLargeFeatureSectionViewModel:function(V){return _.v(Evn,{data:V.data,themeOverride:l})},
lpOfferCardSectionViewModel:function(V){return _.v($az,{data:V.data,themeOverride:l})},
lpComplexOfferCardSectionViewModel:function(V){return _.v(CaB,{data:V.data})},
lpOfferTableSectionViewModel:function(V){return _.v(hSe,{data:V.data,themeOverride:l})},
lpSmallFeatureSectionGroupViewModel:function(V){return _.v(jgJ,{data:V.data,themeOverride:l})},
lpCouponBannerViewModel:function(V){return _.v(JYA,{data:V.data})}}))))},"Kd"),"yt-section-group-view-model",{props:{data:_.hV}});_.lhz=_.C(function(G){var b=_.lA(gdO,function(){var V;return(V=G.data())==null?void 0:V.chipBarStateEntityKey}),I=function(){return G.data().disableDeselection},h=_.e(_.bk(function(){var V;
if(((V=b())==null?void 0:V.selectedIndex)!=void 0)return b().selectedIndex;var D,k;V=_.e(((D=G.data())==null?void 0:(k=D.chips)==null?void 0:k.entries())||[]);for(D=V.next();!D.done;D=V.next()){D=_.e(D.value);k=D.next().value;D=D.next().value;var L=void 0;if((L=_.g(D,_.lz))==null?0:L.selected)return k}return-1})),q=h.next().value,l=h.next().value;
return _.v("chip-bar-view-model",{class:_.pG("ytChipBarViewModelHost",G.className),role:"tablist"},_.v(_.VX,{data:function(){return G.data().chips}},{chipViewModel:function(V,D){return _.v("div",{class:"ytChipBarViewModelChipWrapper"},_.v(_.r9O,{data:V.data,
selected:function(){return D()===q()},
callback:function(k,L){k=!!L;L=D();l(k?L:-1);var x,f=(x=G.data())==null?void 0:x.chipBarStateEntityKey;f&&k&&_.W5(_.Da("chipBarStateEntity",f,{key:f,selectedIndex:L}))},
disableDeselection:G.disableDeselection||I}))}}))},"Ld");_.JN(_.lhz,"chip-bar-view-model",{props:{data:_.No,className:_.No,disableDeselection:_.No}});_.maB=_.C(function(G){var b=G.data;G={};return _.v("divider-view-model",{class:_.pG("dividerViewModelHost",(G.dividerViewModelInsetThinPadding=function(){return b().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},G))},_.v("div",{class:_.pG("dividerViewModelBaseDivider",function(){return A3u(b().dividerStyle)}),
style:_.Ir({"background-color":function(){return b().backgroundColor?_.Uo(b().backgroundColor):void 0}})}))},"Md");
_.maB.idomCompat=!0;_.JN(_.maB,"divider-view-model",{props:{data:_.hV}});var lP=new Map,ma=new Map,tDB=0,eN;var y3X=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],H2X={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var eSi,V2n;eSi=function(G){return function(b){return function(){return(b==null?void 0:b())!==void 0?String(b())+G:void 0}}};
_.Xr=eSi("px");V2n=eSi("s");var Daz=UuO(function(G){return G.targetGroupId}).useUpdatableData;_.khO=_.C(function(G){function b(ev){return function(){var LO=y().numItemsPerGridRow,td=ev()*LO;LO=td+LO;var xa,Uj;return(Uj=(xa=h().contents)==null?void 0:xa.slice(td,LO))!=null?Uj:[]}}
var I=_.N5(G,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),h=I.data,q=I.layoutContainerWidth,l=I.shouldUseOwnContainerSize,V=I.marginSettings,D=I.useUpdatedMargin,k=hvX(),L=_.e(Daz(function(){var ev,LO;return{targetGroupId:(ev=h().targetingContext)==null?void 0:(LO=ev.targetGroupId)==null?void 0:LO[0]}})).next().value;
I=_.e(_.ZZ(!0,void 0,"lKny6d"));var x=I.next().value,f=I.next().value,T=function(){var ev,LO=(ev=_.g(h().showMoreButton,_.j6))==null?void 0:ev.trackingParams;LO&&_.yw(_.qo(),LO);f(!1)},B=function(){var ev,LO=(ev=_.g(h().showLessButton,_.j6))==null?void 0:ev.trackingParams;
LO&&_.yw(_.qo(),LO);f(!0)};
I=_.e(_.Vq({canHaveZeroSize:!1}));var A=I.next().value;I=I.next().value;var t=function(){var ev;return(ev=h().contentAspectRatio)!=null?ev:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},y=_.P$(function(){var ev=l()&&A.width()>0?A.width()||q():q(),LO,td=(LO=G.data())==null?void 0:LO.responsiveContainerConfiguration;
ev=_.zZ({containerWidth:ev,sizing:td?oZ(td==null?void 0:td.responsiveSize):"EXTRA_COMPACT",marginSettings:V(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:ev.maxContainerWidth,numItemsPerGridRow:ev.numItems,contentPadding:l()?ev.margin:ev.contentMargin,itemWidth:ev.itemWidth,itemMargin:ev.gutter/2}},void 0,"XYkF9e"),F=function(){if(h().enableVerticalExpansion){if(x())return W();
var ev,LO,td=(LO=(ev=h().contents)==null?void 0:ev.length)!=null?LO:0;return Math.ceil(td/y().numItemsPerGridRow)}return y().numItemsPerGridRow<=2?2:1},W=function(){var ev;
return Math.ceil(((ev=h().minCollapsedItemCount)!=null?ev:1)/y().numItemsPerGridRow)},O=function(){return h().enableVerticalExpansion&&h().showLessButton&&!x()&&F()>W()},K=function(){var ev,LO;
return h().enableVerticalExpansion&&h().showMoreButton&&x()&&((LO=(ev=h().contents)==null?void 0:ev.length)!=null?LO:0)>y().numItemsPerGridRow*W()},u=function(){return!O()},w=function(){return!K()},$a={};
return _.v("grid-shelf-view-model",{class:_.pG("ytGridShelfViewModelHost",G.className,($a.ytGridShelfViewModelHostHasBottomButton=function(){return O()||K()},$a.ytGridShelfViewModelHostIsDismissed=function(){var ev,LO=(ev=L())!=null?ev:{};
ev=LO.behavior;var td=LO.isDismissed,xa=LO.stamperContextTargetId;LO=LO.stamperIndex;if(!(_.U("mweb_see_fewer_shorts_group_dismissal")&&td&&ev&&xa))return!1;var Uj;td=k;for(var W2,is,su=((W2=td)==null?0:W2.targetId)?_.n0((is=td)==null?void 0:is.targetId):void 0;((Uj=td)==null?0:Uj.parent)&&su!==xa;)td=td.parent,is=W2=void 0,su=((W2=td)==null?0:W2.targetId)?_.n0((is=td)==null?void 0:is.targetId):void 0;Uj=su===xa?td:void 0;if(!Uj)return!1;var an;xa=Uj==null?void 0:(an=Uj.stamperIndex)==null?void 0:
an.call(Uj);return ev==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||ev==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&xa!=null&&LO!=null&&xa>LO},$a.ytGridShelfViewModelHostOptionalMediumLayoutMargin=D,$a)),
el:_.Wv(I),style:_.Ir({"margin-left":(0,_.Xr)(function(){return y().contentPadding}),
"margin-right":(0,_.Xr)(function(){return y().contentPadding})})},_.v(_.Q,{cond:function(){return _.g(h().header,o9i)},
then:function(ev){return _.v(_.dn,{data:ev,useUpdatedPadding:D,disableHorizontalPadding:!0})}}),_.v("div",null,_.v(_.aj,{each:function(){return Array(F())}},function(ev,LO){return _.v(cpQ,{className:G.className,
items:b(LO),responsiveGridShelfLayout:y,contentAspectRatio:t})})),_.v("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.v(_.VX,{data:function(){return h().showMoreButton}},{buttonViewModel:function(ev){return _.v("div",{hidden:w},_.v(_.sQ,{data:ev.data,
onClick:T}))}}),_.v(_.VX,{data:function(){return h().showLessButton}},{buttonViewModel:function(ev){return _.v("div",{hidden:u},_.v(_.sQ,{data:ev.data,
onClick:B}))}})))},"Od");
_.khO.idomCompat=!0;var cpQ=_.C(function(G){var b=G.items;var I=G.responsiveGridShelfLayout;var h=G.contentAspectRatio;G=G.className;var q=_.ee("div");Z2j(q,function(){a:{var V=q.value;for(var D=b(),k=[],L=0;L<D.length;L++){var x=_.g(D[L],hPi);if(!x||x==null||!x.inlinePlayerData){V=null;break a}var f=V.children.item(L);if(!f){V=null;break a}k.push({thumbnailElement:f,videoData:x})}V={gridVideoPreviewData:{gridItems:k}}}return V});
var l=(0,_.Xr)(function(){return-I().itemMargin});
return _.v("div",{el:q,class:_.pG("ytGridShelfViewModelGridShelfRow",G),style:_.Ir({"margin-left":l,"margin-right":l})},_.v(_.VX,{data:b,replacementWrapper:function(V){return _.v(vZW,{responsiveGridShelfLayout:I},V)}},{shortsLockupViewModel:function(V){return _.v(vZW,{responsiveGridShelfLayout:I},_.v(WKu,{data:V.data,
aspectRatio:function(){return h()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.U("mweb_enable_one_line_title_on_shorts")?1:_.U("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(V){return _.v(vZW,{responsiveGridShelfLayout:I},_.v(_.tE,{data:V.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Pd"),vZW=_.C(function(G){return _.v("div",{style:_.Ir({width:(0,_.Xr)(function(){return G.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+G.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},G.children)},"Qd");
_.khO.idomCompat=!0;_.JN(_.khO,"grid-shelf-view-model",{props:{data:_.hV,layoutContainerWidth:_.hV,shouldUseOwnContainerSize:_.hV,marginSettings:_.hV,useUpdatedMargin:_.hV,className:_.hV}});_.Lx8=_.C(function(G){var b=_.e(_.ZZ(!1,void 0,"FVl30c")),I=b.next().value,h=b.next().value;b={};return _.v("yt-alert-banner-view-model",{class:_.pG("ytAlertBannerViewModelHost",G.className,function(){var q;a:switch((q=G.data())==null?void 0:q.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":q="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":q="ytAlertBannerViewModelWarning";break a;default:q="ytAlertBannerViewModelInformational"}return q},(b.ytAlertBannerViewModelDismissed=
I,b.ytAlertBannerViewModelFullbleed=G.fullbleed,b.ytAlertBannerViewModelNarrow=G.narrow,b.ytAlertBannerViewModelIsInRichGrid=G.isInRichGrid,b))},_.v(_.Q,{cond:function(){var q;
return!((q=G.data())==null?0:q.hideIcon)},
then:function(){return _.v("div",{class:"ytAlertBannerViewModelIcon"},_.v(_.ha,{icon:function(){return"info_circle"}}))}}),_.v("div",{class:"ytAlertBannerViewModelOuterContainer"},_.v("div",{class:"ytAlertBannerViewModelContainer"},_.v("div",{class:"ytAlertBannerViewModelContent"},_.v("div",{class:"ytAlertBannerViewModelHeading"},_.v(_.IS,{text:function(){var q;
return(q=G.data())==null?void 0:q.heading}})),_.v("div",{class:"ytAlertBannerViewModelBody"},_.v(_.IS,{text:function(){var q;
return(q=G.data())==null?void 0:q.body}})))),_.v(_.VX,{data:function(){var q;
return(q=G.data())==null?void 0:q.actionButton}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.v(_.VX,{data:function(){var q;
return(q=G.data())==null?void 0:q.dismissButton}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var l;((l=G.data())==null?0:l.disableLocalDismissBehavior)||h(!0)}})}}))},"Rd");_.JN(_.Lx8,"yt-alert-banner-view-model",{props:{data:_.hV,fullbleed:_.hV,narrow:_.hV,isInRichGrid:_.hV,className:_.hV}});var Qg8;_.xa5=_.C(function(G){return _.v("basic-content-view-model",{class:_.pG("ytBasicContentViewModelHost",_.a9(G.className))},_.v(_.Q,{cond:function(){return G.data().headline},
then:function(b){return _.v("div",{class:"ytBasicContentViewModelHeadline"},_.v(_.IS,{text:b}))}}),_.v(_.aj,{each:function(){return G.data().paragraphs||[]},
keyBy:"INDEX"},function(b){return _.v("div",{class:"ytBasicContentViewModelParagraph"},_.v(_.Q,{cond:function(){var I=b();return!!(I.header||I.customHeader||I.headline)},
then:function(){return _.v(Qg8,{paragraph:b})}}),_.v(_.Q,{cond:function(){return b().asset||b().text},
then:function(){return _.v("div",{class:"ytBasicContentViewModelParagraphContent"},_.v(_.Q,{cond:function(){return b().asset},
then:function(I){return _.v("div",{class:"ytBasicContentViewModelParagraphAsset"},_.v(_.VX,{data:I},{contentPreviewImageViewModel:_.B_}))}}),_.v(_.Q,{cond:function(){return b().text},
then:function(I){return _.v("div",{class:"ytBasicContentViewModelParagraphText"},_.v(_.IS,{text:I}))}}))}}))}))},"Sd");
Qg8=_.C(function(G){var b=G.paragraph;return _.v(_.xz,null,_.v(_.Q,{cond:function(){return b().headline},
then:function(I){return _.v(_.IS,{text:I,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.v(_.VX,{data:function(){return b().header||b().customHeader}},{sectionHeaderViewModel:function(I){return _.v(_.dn,{data:I.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Td");_.fhX=_.C(function(G){function b(){var B,A;k((A=(B=q)==null?void 0:B.isKeyBoardInUse())!=null?A:!1)}
function I(){k(!1)}
function h(){var B;return D()?(B=G.focusedClassName)==null?void 0:B.call(G):""}
var q=_.LL().resolve(_.vf(_.v6)),l=_.e(_.ZZ(!1,void 0,"SgkTXc")),V=l.next().value;l=l.next().value;var D=V,k=l,L=function(){var B,A;return((B=G.toggleable)==null?0:B.call(G))?(A=G.toggled)==null?void 0:A.call(G):void 0},x=_.Xu(function(B){var A,t=(A=G.command)==null?void 0:A.call(G);
t&&_.LL().resolve(_.xW).resolveCommand(t);var y;(y=G.onClick)==null||y.call(G,B)}),f=_.Xu(b),T=_.Xu(I);
return _.v(_.Q,{cond:function(){var B;if(B=G.command){B=G.command();B=xWr(B);var A=B.href;B=!(!B.navigatingCommand||!A)}return B},
then:function(){return _.v(_.LP,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:_.pG("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",G.className,function(){return h()}),
onFocusin:b,onFocusout:I,ariaCurrent:function(){var B,A;return(A=(B=G.ariaCurrent)==null?void 0:B.call(G))!=null?A:L()}}),G.children)},
else:function(){return _.v("button",{"on:click":x,"on:focusin":f,"on:focusout":T,class:_.pG("ytButtonOrAnchorHost","ytButtonOrAnchorButton",G.className,function(){return h()}),
style:G.style,"aria-describedby":G.ariaDescribedby,"aria-hidden":G.ariaHidden,"aria-label":G.ariaLabel,"aria-labelledby":G.ariaLabelledby,"aria-pressed":L,dir:G.dir,disabled:G.disabled,tabindex:G.tabIndex,title:G.title},G.children)}})},"Ud");var Tg5=_.C(function(G){G=_.N5(G,{disabled:!1});var b=G.active,I=G.disabled;G={};G=_.pG("ytSwitchShapeTrack",(G.ytSwitchShapeTrackActive=function(){return b()},G.ytSwitchShapeTrackDisabled=function(){return I()},G));
var h={};h=_.pG("ytSwitchShapeKnob",(h.ytSwitchShapeKnobActive=function(){return b()},h));
return _.v("switch-shape",{class:"ytSwitchShapeHost"},_.v("div",{class:G}),_.v("div",{class:h}))},"Vd");var Bgz=_.C(function(G){var b=_.N5(G,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),I=b.data;G=b.className;var h=b.handleOnTapEventInParent,q=b.parentActive,l=b.onTap;b=_.e(_.bk(function(){var T;return(T=q())!=null?T:I().switchedOnByDefault||!1}));
var V=b.next().value,D=b.next().value,k=function(){return I().isDisabled},L=_.ee("button");
b=_.Xu(function(T){return T.key==="Enter"?(T.preventDefault(),L.value.click(),!1):!0});
var x=_.Xu(function(T){if(I().handleOnTapEventInParent||h())return!0;if(k())return!1;if(l)return l(T),!0;NEX(I(),V(),T);D(!V());return!1}),f={};
f=_.pG("ytSwitchButtonViewModelButton",(f.ytSwitchButtonViewModelTappable=function(){return!k()},f));
return _.v("switch-button-view-model",{class:_.pG("ytSwitchButtonViewModelHost",G)},_.v("button",{el:L,class:f,"on:click":x,"on:keydown":b,"aria-label":function(){return V()?I().a11yLabelSwitchedOn:I().a11yLabelSwitchedOff},
"aria-checked":V,"aria-disabled":k,role:"switch"},_.v(Tg5,{active:V,disabled:k})))},"Wd");var UaJ=_.C(function(G){var b=G.data;var I=G.isLeading;var h=G.hideSelectionTextChevron;var q=G.isToggled;var l=G.shouldNotFillIcon;var V=function(){if(I())var f=b().leadingImage;else{var T;f=(T=b().trailingImage)!=null?T:_.iA(b().themedTrailingImage)}return f},D=function(){a:switch(b().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var f="expand_more";
break a;default:f="chevron_right"}return f};
G={};var k=_.pG("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)),L=_.pG("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
G={};var x=_.pG("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 _.v(_.Q,{cond:function(){var f=b(),T=I();return!!(T&&(f.leadingImage||f.leadingAccessory)||!T&&(f.trailingImage||f.trailingButton||f.trailingButtons||f.selectionText||f.themedTrailingImage||f.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.v(_.xz,null,_.v(_.Q,{cond:V,then:function(f){return _.v("div",{class:k,"aria-hidden":"true"},_.v(_.Fu,{data:f,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var T=(I()?b().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":b().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?I()?J3d(b().leadingIconAccessorySize):J3d(b().trailingIconAccessorySize):void 0;return T},
className:L,isToggled:function(){return!(l==null?0:l())&&(q==null?void 0:q())}}))}}),_.v(_.Q,{cond:function(){return I()&&b().leadingAccessory},
then:function(){return _.v("div",{class:k},_.v(_.VX,{data:function(){return b().leadingAccessory}},{avatarViewModel:function(f){return _.v(_.Om,{data:f.data,
avatarButtonCustomClassName:L})},
collectionThumbnailViewModel:function(f){return _.v(dYW,{data:f.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.v(_.Q,{cond:function(){return!I()&&b().trailingButton},
then:function(){return _.v("div",{class:"yt-list-item-view-model__button-container"},_.v(_.VX,{data:function(){return b().trailingButton}},{buttonViewModel:function(f){return _.v(_.sQ,{data:f.data,
className:x})}}))}}),_.v(_.Q,{cond:function(){var f;
return!I()&&((f=b().trailingButtons)==null?void 0:f.buttons)},
then:function(){return _.v("div",{class:"yt-list-item-view-model__button-container"},_.v(_.VX,{data:function(){var f;return(f=b().trailingButtons)==null?void 0:f.buttons}},{buttonViewModel:function(f){return _.v(_.sQ,{data:f.data,
className:x})},
accountLinkButtonViewModel:function(f){return _.v(T_n,{data:f.data,className:x})},
switchButtonViewModel:function(f){return _.v(Bgz,{data:f.data,className:x})},
subscribeButtonViewModel:function(f){return _.v(_.OT,{data:f.data,isOverlay:!1,animateWidth:!1,className:x})},
toggleButtonViewModel:function(f){return _.v(_.YK,{data:f.data,className:x})}}))}}),_.v(_.Q,{cond:function(){return!I()&&!!b().selectionText},
then:function(){return _.v(_.xz,null,_.v(_.IS,{text:function(){return b().selectionText},
className:_.pG("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.v(_.Q,{cond:function(){return!(h==null?0:h())},
then:function(){return _.v(_.ha,{icon:D,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.v(_.Q,{cond:function(){return!I()&&b().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.v("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"Xd");var sgu=_.C(function(G){var b=G.data;return _.v(_.Q,{cond:function(){return b().title||b().subtitle},
then:function(){return _.v("div",{class:"yt-list-item-view-model__text-wrapper"},_.v(_.Q,{cond:function(){return b().title},
then:function(I){return _.v("div",{class:"yt-list-item-view-model__title-wrapper"},_.v(_.IS,{text:I,className:"yt-list-item-view-model__title"}))}}),_.v(_.Q,{cond:function(){return b().subtitle},
then:function(I){return _.v(_.IS,{text:I,className:"yt-list-item-view-model__subtitle"})}}))}})},"Yd");var gZz=_.C(function(G){var b=G.data;var I=G.hideSelectionTextChevron;var h=G.TrailingAccessory;var q=G.isToggled;var l=G.disabled;var V=G.isSelectItem;var D=G.isCompact;var k=G.inPopup;var L=G.disableHorizontalPadding;var x=G.isTappableWithoutSelect;var f=G.useButtonOrAnchor;var T=G.onTap;var B=G.shouldNotFillIcon;var A=function(){return _.v(sgu,{data:b,onTap:T,useButtonOrAnchor:f,isTappableWithoutSelect:x,isToggled:q})};
G={};return _.v("div",{class:_.pG("yt-list-item-view-model__label",(G["yt-list-item-view-model__container"]=function(){return!(V==null?0:V())},G["yt-list-item-view-model__container--disabled"]=function(){return!!b().isDisabled||!(l==null||!l())},G["yt-list-item-view-model__container--has-subtitle"]=function(){return!!b().subtitle},G["yt-list-item-view-model__container--compact"]=D,G["yt-list-item-view-model__container--tappable"]=x,G["yt-list-item-view-model__container--in-popup"]=k,G["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(L==null?void 0:L())&&!(V==null?0:V())},G))},_.v(UaJ,{data:b,
isLeading:!0,hideSelectionTextChevron:I,isToggled:q,shouldNotFillIcon:B}),_.v(_.Q,{cond:function(){return(f==null?void 0:f())&&(x==null?void 0:x())},
then:function(){return _.v(_.fhX,{command:function(){return _.BH(b().rendererContext)},
onClick:T,className:"yt-list-item-view-model__button-or-anchor",toggleable:q!==void 0,toggled:q},_.v(A,null))},
else:function(){return _.v(A,null)}}),_.v(_.Q,{cond:function(){return!!h},
then:function(){return _.v("div",{class:"yt-list-item-view-model__trailing"},h&&_.v(h,null))},
else:function(){return _.v(UaJ,{data:b,isLeading:!1,hideSelectionTextChevron:I,isToggled:q,shouldNotFillIcon:B})}}))},"Zd");var M2O=_.C(function(G){var b=_.N5(G,{checked:!1});G=b.name;var I=b.onChange,h=b.onClick,q=b.checked,l=b.labelRenderable,V=b.hasLeadingLabel,D=b.labelClass,k=b.isCompact,L=b.selectElementClass;b=b.disableHorizontalPadding;var x="checkbox"+_.W0(_.Sj),f=_.Xu(function(A){h==null||h(A);return!1}),T=_.Xu(function(A){I==null||I(A);
return!1}),B={};
return _.v("checkbox-shape",null,_.v("label",{class:_.pG("ytCheckboxShapeHost",D,(B.ytCheckboxShapeHostCompact=k,B.ytCheckboxShapeDisableHorizontalPadding=b,B))},_.v("input",{class:"ytCheckboxShapeInput",id:x,checked:q,name:G,type:"checkbox","prop:checked":q,"on:change":T,"on:click":f}),_.v(_.Q,{cond:function(){return!(V==null?0:V())},
then:function(){return _.v(Api,{isLeading:!0,selectElementClass:L})}}),_.v(_.Q,{cond:function(){return!!l},
then:function(){return _.v("div",{class:"ytCheckboxShapeLabel"},l==null?void 0:l())}}),_.v(_.Q,{cond:V,
then:function(){return _.v(Api,{isLeading:!1,selectElementClass:L})}})))},"$d");
M2O.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Api=_.C(function(G){var b=G.selectElementClass;G={};return _.v("div",{class:_.pG("ytCheckboxShapeCheckbox",b,(G.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(b==null?0:b())},G)),
"aria-hidden":"true"},_.v(_.ha,{icon:_.U("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.v(_.ha,{icon:_.U("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"ae");_.$h=_.C(function(G){var b=G.name;var I=G.onChange;var h=G.onClick;var q=G.checked;var l=G.labelRenderable;var V=G.useCheckIcon;var D=G.hasLeadingLabel;var k=G.labelClass;var L=G.isCompact;var x=G.selectElementClass;var f=G.ariaLabel;G=G.className;var T="radio"+_.W0(_.Sj),B=_.ee("input"),A=_.Xu(function(w){B.value.checked=!(q==null||!q());I==null||I(w);return!1}),t=_.Xu(function(w){h==null||h(w);
return!1}),y=_.Xu(function(w){_.U("enable_ios_webview_radio_button_responsiveness")&&(w.preventDefault(),B.value.click())}),F=_.e(_.ZZ(!1,void 0,"TcCZlf")),W=F.next().value,O=F.next().value;
F=_.Xu(function(){var w;((w=_.LL().resolve(_.vf(_.v6)))==null?0:w.isKeyBoardInUse())&&O(!0)});
var K=_.Xu(function(){O(!1)}),u={};
return _.v("radio-shape",{class:_.pG("yt-radio-shape",G)},_.v("input",{el:B,class:"yt-radio-shape__input",id:T,"prop:checked":q,name:b,type:"radio","on:change":A,"on:click":t,"aria-label":f,"on:focusin":F,"on:focusout":K}),_.v("label",{class:_.pG("yt-radio-shape__label-container",k,(u["yt-radio-shape--compact"]=L,u["yt-radio-shape__label-container--keyboard-focused"]=W,u)),for:T,"on:click":y},_.v(_.Q,{cond:function(){return!(D==null?0:D())},
then:function(){return _.v(ZHA,{checked:q,useCheckIcon:V,isLeading:!0,selectElementClass:x})}}),_.v(_.Q,{cond:function(){return!!l},
then:function(){return _.v("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(f==null?0:f())?"true":"false"}},l==null?void 0:l())}}),_.v(_.Q,{cond:D,
then:function(){return _.v(ZHA,{checked:q,useCheckIcon:V,isLeading:!1,selectElementClass:x})}})))},"be");
_.$h.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var ZHA=_.C(function(G){var b=G.useCheckIcon;var I=G.selectElementClass;G=function(){return(b==null?0:b())?"CHECK":_.U("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var h={};return _.v("div",{class:_.pG("yt-radio-shape__radio",I,(h["yt-radio-shape__radio--check-icon"]=b,h["yt-radio-shape__radio--radio-default-style"]=function(){return!(I==null?0:I())},h)),
"aria-hidden":"true"},_.v(_.ha,{icon:G}),_.v(_.ha,{icon:G,active:function(){return!(b==null?0:b())}}))},"ce");_.G2=_.C(function(G){var b=G.data;var I=G.isMenuItem;var h=G.isCompact;var q=G.onTap;var l=G.trailingAccessory;var V=G.hideSelectionTextChevron;var D=G.disabled;var k=G.inPopup;var L=G.disableHorizontalPadding;var x=G.isOverlay;var f=G.isToggled;var T=G.ariaLabel;var B=G.ariaPressed;var A=G.shouldNotFillIcon;var t=!_.U("web_enable_killswitch_for_selectable_list_item_on_tap_fix");G=!_.U("web_enable_killswitch_for_skip_child_tags");var y=_.m2(function(an){return KKO(b(),an)}),F=function(){return(L==
null?void 0:L())||b().disableHorizontalPadding},W=function(){return _.U("enable_web_shorts_captions_language_command")||_.U("web_shorts_audio_track_picker")||b().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},O=function(){return W()?Object.assign({},b(),y().data):b()},K=_.RJO(function(){return O().rendererContext}),u=function(){return!(O().isSelected===void 0||!O().selectionStyle||O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},w=function(){return(_.U2(O().rendererContext)||
q)&&!u()},$a={},ev=_.pG("yt-list-item-view-model__container",($a["yt-list-item-view-model__container--tappable"]=function(){return _.U2(O().rendererContext)||u()},$a["yt-list-item-view-model__container--compact"]=h,$a["yt-list-item-view-model__container--in-popup"]=k,$a["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(F==null?void 0:F())&&u()},$a)),LO=function(){return O().leadingImage||O().leadingAccessory},td=_.pG("yt-list-item-view-model__image-container",function(){return LO()?
"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
$a=_.Cfr();var xa=_.e(_.ZZ(!1,void 0,"w9yOLe")),Uj=xa.next().value,W2=xa.next().value,is=function(){return _.v(gZz,{data:O,hideSelectionTextChevron:V,TrailingAccessory:l,isToggled:f,disabled:D,isSelectItem:u,isCompact:h,inPopup:k,disableHorizontalPadding:F,isTappableWithoutSelect:w,useButtonOrAnchor:su,onTap:q,shouldNotFillIcon:A})},su=_.U("web_button_or_anchor_list_item");
xa={};return _.v("yt-list-item-view-model",{el:_.Wv(_.s2(function(){return O().rendererContext},void 0,void 0,su?["A".toString(),
"BUTTON".toString()]:[]),uKd(function(an){var A5;if(A5=t)A5=O().selectionStyle,A5=A5==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||A5==="LIST_ITEM_SELECTION_STYLE_RADIO"||A5==="LIST_ITEM_SELECTION_STYLE_DEFAULT";A5||q==null||q(an)},G?["A".toString(),
"BUTTON".toString()]:[]),GMO(function(){return w==null?void 0:w()},{focusin:function(){var an;
((an=_.LL().resolve(_.vf(_.v6)))==null?0:an.isKeyBoardInUse())&&W2(!0)},
focusout:function(){W2(!1)}})),
class:_.pG("yt-list-item-view-model",(xa["yt-list-item-view-model--is-overlay"]=x,xa["yt-list-item-view-model--keyboard-focused"]=Uj,xa["yt-list-item-view-model--hidden"]=function(){return W()?y().isHidden:!1},xa)),
role:function(){return(I==null?0:I())?"menuitem":"listitem"},
tabindex:function(){var an=w();an=su?void 0:q||an?0:void 0;return an},
"on:keydown":$a,"aria-label":function(){var an;return(T==null?void 0:T())||((an=K())==null?void 0:an.label)},
"aria-pressed":B},_.v(_.Q,{cond:u,then:function(){return _.v(_.Nc,null,_.v(_.H3,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.v(M2O,{labelRenderable:is,
isCompact:h,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!LO()},
labelClass:ev,selectElementClass:td,disableHorizontalPadding:F,onClick:t?q:void 0})}),_.v(_.H3,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.v(_.$h,{labelRenderable:is,
isCompact:h,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!LO()},
labelClass:ev,selectElementClass:td,onClick:t?q:void 0})}),_.v(_.H3,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.v(_.$h,{labelRenderable:is,
isCompact:h,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!LO()},
labelClass:ev,selectElementClass:td,useCheckIcon:!0,onClick:t?q:void 0})}),_.v(_.W3,null,is))},
else:is}))},"de");
_.G2.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var bb;_.IY=_.C(function(G){var b=_.e(_.Vq({canHaveZeroSize:!1})),I=b.next().value;b=b.next().value;var h=function(){return hnv(I.width(),G.data().responsiveContainerConfiguration)||X42(I.width(),G.data().linearLayoutContainerConfiguration)},q=function(){var l,V;
return(V=(l=G.data().items)==null?void 0:l.length)!=null?V:0};
return _.v("yt-linear-layout-view-model",{el:_.Wv(b),class:"ytLinearLayoutViewModelHost"},_.v("div",{class:_.pG("ytLinearLayoutViewModelContainer",function(){a:switch(G.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var l="ytLinearLayoutViewModelHorizontal";break a;default:l="ytLinearLayoutViewModelVertical"}return l},function(){var l=G.data().linearLayoutContainerConfiguration;
return l?[Edd(l.flexDirection),p4d(l.justifyContent),SkO(l.alignItems)].join(" "):""}),
style:function(){var l;var V=((l=h())==null?void 0:l.containerStyles)||{};return _.Ir(V)()}},_.v(_.VX,{data:function(){return G.data().items}},{lockupViewModel:function(l,V){return _.v(bb,{itemStyles:function(){var D;
return(D=h())==null?void 0:D.itemStyles(V()===0,V()===q()-1)}},_.v(_.tE,{data:l.data,
containerLayoutConfig:function(){var D;return(D=h())==null?void 0:D.containerLayoutConfig}}))},
basicContentViewModel:function(l,V){return _.v(bb,{itemStyles:function(){var D;return(D=h())==null?void 0:D.itemStyles(V()===0,V()===q()-1)}},_.v(_.xa5,{data:l.data}))},
linearLayoutViewModel:function(l,V){return _.v(bb,{itemStyles:function(){var D;return(D=h())==null?void 0:D.itemStyles(V()===0,V()===q()-1)}},_.v(_.IY,{data:l.data}))},
thumbnailViewModel:function(l,V){return _.v(bb,{itemStyles:function(){var D;return(D=h())==null?void 0:D.itemStyles(V()===0,V()===q()-1)},
className:"ytLinearLayoutViewModelThumbnailItem"},_.v(_.Qo,{data:l.data}))},
descriptionPreviewViewModel:function(l,V){return _.v(bb,{itemStyles:function(){var D;return(D=h())==null?void 0:D.itemStyles(V()===0,V()===q()-1)}},_.v(_.Pe,{data:l.data}))},
listItemViewModel:function(l,V){return _.v(bb,{itemStyles:function(){var D;return(D=h())==null?void 0:D.itemStyles(V()===0,V()===q()-1)}},_.v(_.G2,{data:l.data}))}})))},"ee");
bb=_.C(function(G){return _.v("div",{style:function(){var b;var I=((b=G.itemStyles)==null?void 0:b.call(G))||{};return _.Ir(I)()},
class:G.className},G.children)},"fe");_.JN(_.IY,"yt-linear-layout-view-model",{props:{data:_.hV}});_.JN(_.de,"chips-shelf-view-model",{props:{data:_.hV,callback:_.No,selectionBehavior:_.hV,disableChipsScrollAnimation:_.hV}});_.JN(_.C(function(G){return _.v("yt-comment-filter-context-view-model",{class:_.pG("ytCommentFilterContextHost",G.className)},_.v(_.IS,{text:function(){return G.data().text}}))},"ge"),"yt-comment-filter-context-view-model",{props:{data:_.hV,
className:_.No}});_.t2J=_.C(function(G){var b=G.data;var I=G.onTap;var h=G.onSwitch;var q=G.overrideDisabled;G=G.disableHorizontalPadding;var l=_.e(_.bk(function(){var T;return((T=CSu(x()))==null?void 0:T.switchedOnByDefault)||!1})),V=l.next().value,D=l.next().value;
l=_.e(_.ZZ(!1,void 0,"V0hCrd"));var k=l.next().value,L=l.next().value,x=function(){var T;if(!(T=b().switchButton)){var B=b();T=q==null?void 0:q();B={switchOnCommand:B.switchOnCommand,switchOffCommand:B.switchOffCommand,switchedOnByDefault:B.switchedOnByDefault,isDisabled:B.isDisabled,a11yLabelSwitchedOn:B.a11yLabelSwitchedOn,a11yLabelSwitchedOff:B.a11yLabelSwitchedOff};T!==void 0&&(B.isDisabled=T);T={switchButtonViewModel:B}}return T},f=function(T){var B=CSu(x());
!B||B.isDisabled||b().ignoreTapUntilCommandCompletes&&k()||(I==null||I(T),NEX(B,V(),T,b().ignoreTapUntilCommandCompletes,L),D(!V()),h==null||h(V()))};
return _.v("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.v(_.G2,{data:function(){return{title:b().title,subtitle:b().attributedSubtitle,leadingImage:b().leadingImage,leadingAccessory:b().leadingAccessory,isDisabled:b().isDisabled}},
onTap:f,isToggled:V,shouldNotFillIcon:!0,trailingAccessory:function(){return _.v(_.VX,{data:x},{switchButtonViewModel:function(T){return _.v(Bgz,{data:T.data,parentActive:V,onTap:f})}})},
disableHorizontalPadding:G}))},"he");var zSb=_.C(function(G){var b=_.e(_.bk(function(){var q,l;return!!((q=G.data())==null?0:(l=q.initialState)==null?0:l.isToggled)})),I=b.next().value,h=b.next().value;
return _.v("toggleable-list-item-view-model",{el:_.Wv(_.s2(function(){return G.data().rendererContext},{onTap:function(q,l){l();
h(!I())}})),
class:_.pG("toggleableListItemViewModelHost",G.className)},_.v(_.Q,{cond:function(){if(I()){var q=G.data().toggledListItem;q=_.g(q,_.kU)}else q=G.data().defaultListItem,q=_.g(q,_.kU);return q},
then:function(q){return _.v(_.G2,{data:q,isToggled:I,ariaLabel:function(){var l=I()?G.data().toggledListItem:G.data().defaultListItem,V;l=(V=_.g(l,_.kU))==null?void 0:V.rendererContext;var D;return(D=_.g(l,_.DA))==null?void 0:D.label},
ariaPressed:function(){return I()}})}}))},"ie");var oZJ=_.qP("DOWNLOAD",{},"Download"),iH5=_.qP("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),PvW=_.qP("RETRY",{},"Retry"),daQ=_.qP("PAUSE_DOWNLOADING",{},"Pause downloading"),ypA=_.qP("RESUME_DOWNLOAD",{},"Resume download"),qIj={text:oZJ,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},cR={text:iH5,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},mpu={text:PvW,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
jxp={text:daQ,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},lSd={text:ypA,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var rpQ=_.C(function(G){var b=function(){var D=G.data();D=_.BH(D.rendererContext);var k;return(k=_.g(D,_.qt))==null?void 0:k.videoId},I=_.m2(function(D){var k=b(),L=Dpq(G.data());
return k?_.Z0(D,k):L?_.tQ(D,L):"TRANSFER_STATE_UNKNOWN"}),h=_.lA(_.$Tq,b),q=_.m2(function(D){return _.nKr(D,b(),Dpq(G.data()))}),l=function(){return V3u(I(),h(),_.BH(G.data().rendererContext),!!Dpq(G.data()))},V=function(){return q()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.v("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:V},_.v(_.Q,{cond:function(){return!V()},
then:function(){return _.v(_.Q,{cond:l,then:function(D){return _.v(_.aj,{each:D},function(k){return _.v(_.G2,{data:k,isCompact:G.isCompact,isMenuItem:G.isMenuItem,inPopup:G.inPopup,disableHorizontalPadding:G.disableHorizontalPadding})})}})}}))},"je");
rpQ.idomCompat=!0;_.Fxe=_.C(function(G){var b=G.data;var I=G.isCompact;var h=G.hideSelectionTextChevron;var q=G.inPopup;var l=G.isOverlay;var V=G.disableHorizontalPadding;var D=function(){return cGB(b())&&(q==null?void 0:q())};
G=_.Xu(function(L){if(q!=null&&q()&&_.U("web_enable_arrow_key_navigation_in_dropdown")){var x=_.lra(L.currentTarget),f=x.length;if(f!==0){var T=Array.prototype.indexOf.call(x,document.activeElement);switch(L.key){case "ArrowDown":L.preventDefault();var B;(B=x[(T+1)%f])==null||B.focus();break;case "ArrowUp":L.preventDefault();var A;(A=x[T===-1?f-1:(T-1+f)%f])==null||A.focus()}}}});
var k={};return _.v("yt-list-view-model",{class:_.pG("ytListViewModelHost",(k.ytListViewModelHostKaiosSpatNav=l2u&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",k.ytListViewModelCollectionThumbnailClass=function(){return LYa(b())},k)),
role:function(){return D()?"menu":"list"},
style:_.Ir({"max-height":function(){var L,x=(L=b())==null?void 0:L.visibleElementCount;if(x)return LYa(b())?(x+.5)*48+"px":(x+.5)*40+"px"}}),
"on:keydown":G},_.v(_.VX,{data:function(){return b().listItems}},{listItemViewModel:function(L){return _.v(_.G2,{data:L.data,
isMenuItem:D,isCompact:I,hideSelectionTextChevron:h,inPopup:q,isOverlay:l,disableHorizontalPadding:V})},
toggleableListItemViewModel:function(L){return _.v(zSb,{data:L.data})},
downloadListItemViewModel:function(L){return _.v(rpQ,{data:L.data,isMenuItem:D,isCompact:I,inPopup:q,disableHorizontalPadding:V})},
switchListItemViewModel:function(L){return _.v(_.t2J,{data:L.data,disableHorizontalPadding:V})}}))},"ke");
_.Fxe.idomCompat=!0;var HHA=_.C(function(G){var b=G.data;var I=G.isOverlay;G={};return _.v("yt-course-perks-view-model",{class:_.pG("ytwCoursePerksViewModelHost",(G.ytwCoursePerksViewModelHostOverlay=I,G))},_.v("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.v(_.IS,{text:function(){return b().title}})),_.v("div",null,_.v(_.Q,{cond:function(){return b().perks},
then:function(h){return _.v(_.Fxe,{data:function(){return{listItems:h()}},
isCompact:!0,isOverlay:I})}})))},"le");_.JN(HHA,"yt-course-perks-view-model",{props:{data:_.No,isOverlay:_.No}});_.JN(_.C(function(G){var b=G.data;return _.v("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.v("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.v(_.IS,{text:function(){return b().title}})),_.v("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.v(_.IS,{text:function(){return b().progressSummary}})),_.v("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.v("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Ir({width:function(){return b().progressPercentage*100+"%"}})})))},"me"),"yt-course-progress-view-model",{props:{data:_.hV}});var WxJ=_.C(function(G){var b={};return _.v("yt-progress-view-model",{class:_.pG("ytwProgressViewModelHost",(b.ytwProgressViewModelHostOverlay=_.a9(G.isOverlay,!1),b))},_.v(_.Q,{cond:function(){return G.data().progressSummary},
then:function(I){return _.v("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.v(_.IS,{text:I}))}}),_.v("div",{class:"ytwProgressViewModelHostProgressContainer"},_.v(_.Q,{cond:function(){return G.data().leadingLabel},
then:function(I){return _.v("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.v(_.IS,{text:I}))}}),_.v("div",{class:"ytwProgressViewModelHostProgressBar"},_.v("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(G.data().progressPercentage||0)*100+"%"}}))))},"ne");var h7=_.C(function(G){var b=G.starNumber;var I=G.data;var h=function(){var q;return((q=I())==null?void 0:q.rating)||0};
return _.v(_.Q,{cond:function(){return b()},
then:function(q){return _.v(_.Nc,null,_.v(_.H3,{when:function(){return h()>=q()-.25}},function(){return _.v("div",{class:"ytStarRatingViewModelHostStar"},_.v(_.ha,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.v(_.H3,{when:function(){return h()>=q()-.75}},function(){return _.v("div",{class:"ytStarRatingViewModelHostStar"},_.v(_.ha,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.v(_.W3,null,function(){return _.v("div",{class:"ytStarRatingViewModelHostStar"},_.v(_.ha,{icon:"STAR",
size:function(){return 24}}))}))}})},"oe"),ahb=_.C(function(G){G=G.data;
return _.v("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.v(h7,{starNumber:1,data:G}),_.v(h7,{starNumber:2,data:G}),_.v(h7,{starNumber:3,data:G}),_.v(h7,{starNumber:4,data:G}),_.v(h7,{starNumber:5,data:G}))},"pe");_.JN(_.C(function(G){var b=_.N5(G,{}).data;return _.v("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.v("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.v(_.IS,{text:function(){var I;return(I=b())==null?void 0:I.title}})),_.v("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.v(_.Q,{cond:function(){return b().starProgressViewModels},
then:function(I){return _.v("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.v(_.VX,{data:I},{progressViewModel:WxJ}))}}),_.v("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.v("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.v(_.IS,{text:function(){var I;
return(I=b())==null?void 0:I.averageRatingLabel}})),_.v(_.Q,{cond:function(){return b().zeroStateText},
then:function(I){return _.v("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.v(_.IS,{text:I}))}}),_.v(_.Q,{cond:function(){return b().starRatingViewModel},
then:function(I){return _.v("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.v(_.VX,{data:I},{starRatingViewModel:ahb}))}}),_.v("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.v(_.IS,{text:function(){var I;
return(I=b())==null?void 0:I.totalRatingsCountLabel}})))))},"qe"),"yt-course-ratings-view-model",{props:{data:_.No}});var Ngu;Ngu={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"}};_.YXW=_.C(function(G){var b=_.ee("yt-learning-journey-loader-view-model"),I=_.IZ();_.JC(function(){requestAnimationFrame(function(){var q;(q=I.lottieEl)==null||q.addEventListener("DOMLoaded",function(){var l;(l=G.onLottieLoaded)==null||l.call(G)})});
var h=G.data().browseEndpoint;h&&_.Zm(h)});
return _.v("yt-learning-journey-loader-view-model",{class:_.pG("learningJourneyLoaderViewModelHost",G.className),"data-target-id":function(){return G.data().targetId||""},
el:b},_.v(_.zV,{className:_.pG("learningJourneyLoaderViewModelLoader",G.className),animationName:function(){return Ngu.animationConfig.name},
data:Ngu,animationRef:I}))},"se");_.JN(_.YXW,"yt-learning-journey-loader-view-model",{props:{data:_.hV,className:_.No,onLottieLoaded:_.No}});var xpj=new Set,QxB=null;var Cvn=_.C(function(G){var b=void 0,I=function(){return G.data()},h=function(){return!!_.Lc(_.kg(I())).optionColor},q=_.e(_.ZZ(-1,void 0,"eTdwcb")),l=q.next().value,V=q.next().value,D=function(T){return l()===T},k=function(T){return I().correctAnswerIndex===T},L=function(){return l()!==-1};
q=_.e(_.ZZ("",void 0,"QwJs6"));var x=q.next().value,f=q.next().value;return _.v("learning-journey-quiz-view-model",{class:_.pG("learningQuizComponentHost","learningJourneyQuizYoututorHost",G.className),style:_.Ir({background:function(){return _.Lc(_.kg(I())).backgroundColor}})},_.v("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},x),_.v("div",{class:"learningQuizComponentQuizContainer"},_.v("div",{class:"learningQuizComponentQuiz"},_.v("div",{class:"learningQuizComponentQuizContent"},_.v(_.Q,{cond:function(){return!!I().aiGeneratedQuizLabel},
then:function(){return _.v("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.v(_.IS,{text:function(){return I().aiGeneratedQuizLabel}}))}}),_.v("div",{class:"learningQuizComponentQuizHeader",
style:_.Ir({"align-items":function(){return I().overflowMenu?"start":"center"}})},_.v("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.Ir({"min-height":function(){return I().overflowMenu?"48px":"26px"}})},_.v("div",{class:"learningJourneyQuizYoututorText",
style:_.Ir({color:function(){return _.Lc(_.kg(I())).primaryTextColor}})},_.v(_.IS,{text:function(){return I().questionHeaderText}})))),_.v("div",{class:"learningQuizComponentQuizSubheader",
style:_.Ir({color:function(){return _.Lc(_.kg(I())).secondaryTextColor}})},_.v(_.IS,{text:function(){var T=I();
return L()?T.explanationText:T.questionSubheaderText}}))),_.v("div",{role:"group",
class:_.pG("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.v(_.aj,{each:function(){return I().optionsData||[]}},function(T,B){var A={};
return _.v("button",{class:_.pG("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(A.learningQuizComponentQuizHover=function(){return!L()},A.learningQuizComponentQuizOptionWithCustomColor=h,A.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return L()&&k(B())},A.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return l()!==I().correctAnswerIndex&&D(B())},A.learningQuizComponentQuizIncorrectShake=
function(){return l()!==I().correctAnswerIndex&&D(B())},A)),
"on:click":_.Xu(function(){if(L())return!1;V(B());var t,y;f(k(B())?((t=I().successTitle)==null?void 0:t.content)||"":((y=I().failureTitle)==null?void 0:y.content)||"");return!1}),
style:_.Ir({background:"transparent"}),"aria-description":function(){var t,y;return L()?k(B())?(t=I().successTitle)==null?void 0:t.content:(y=I().failureTitle)==null?void 0:y.content:""},
"aria-disabled":L,el:_.Wv(function(t){_.Qq(271905,t,b,function(y){b=y})}),
"client-ve-type":271905},_.v("div",{class:"learningQuizComponentQuizOptionContainer"},_.v(_.IS,{text:T.optionText}),_.v(_.Q,{cond:function(){var t=B();return L()&&(D(t)||k(t))},
then:function(){var t={};return _.v(_.ha,{className:_.pG("learningJourneyQuizYoututorOptionIcon",(t.learningQuizComponentQuizPulse=function(){return l()===I().correctAnswerIndex&&k(B())},t)),
size:24,icon:function(){return k(B())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.v(_.Q,{cond:L,
then:function(){return _.v("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.v("div",{class:"learningJourneyQuizYoututorExplanationText"},_.v(_.IS,{text:function(){return I().explanationHeaderText}})),_.v(_.IS,{text:function(){return I().optionsData[l()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"te");
Cvn.idomCompat=!0;var JpB;_.KxB=_.C(function(G){var b=null,I=null,h=null,q=function(){return G.data()},l=function(){return _.Lc(_.kg(q()))},V=function(){return!!l().optionColor},D=_.e(_.ZZ(-1,void 0,"gXauJb")),k=D.next().value,L=D.next().value,x=function(K){return k()===K},f=function(K){return q().correctAnswerIndex===K},T=function(){return k()!==-1},B=function(){return k()===q().correctAnswerIndex},A=function(){var K=q(),u=T(),w=B();
return u?w?K.successTitle:K.failureTitle:K.questionHeaderText},t=function(){var K=T(),u=B();
return K?u?264685:264684:264683},y=function(){var K=q();
return T()?K.explanationText:K.questionSubheaderText},F=function(){return!!q().video},W=function(K){return B()&&f(K)},O=_.Xu(function(){L(-1);
return!1});
return _.v(_.Q,{cond:function(){return q().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.v(Cvn,{data:function(){return q()}})},
else:function(){return _.v("learning-journey-quiz-view-model",{class:_.pG("learningQuizComponentHost",G.className),style:_.Ir({background:function(){return l().backgroundColor}})},_.v(_.Q,{cond:F,
then:function(){return _.v("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.Ir({background:function(){return l().videoBackgroundColor}})},_.v(_.VX,{data:function(){return q().video}},{lockupViewModel:function(K){return _.v(_.tE,{data:K.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.v("div",{class:"learningQuizComponentQuizContainer"},_.v("div",{class:"learningQuizComponentQuiz"},_.v("div",{class:"learningQuizComponentQuizContent"},_.v(_.Q,{cond:function(){return!!q().aiGeneratedQuizLabel},
then:function(){return _.v("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.v(_.IS,{text:function(){return q().aiGeneratedQuizLabel}}))}}),_.v("div",{class:"learningQuizComponentQuizHeader",
style:_.Ir({"align-items":function(){return q().overflowMenu?"start":"center"}})},_.v("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.Ir({"min-height":function(){return q().overflowMenu?"48px":"26px"}})},_.v("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.Wv(function(K){_.Qq(t(),K,b,function(u){b=u})}),
style:_.Ir({color:function(){return l().primaryTextColor}}),
"client-ve-type":t},_.v(_.IS,{text:A}))),_.v("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.v(_.Q,{cond:T,then:function(){return _.v("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.Wv(function(K){_.Qq(264687,K,I,function(u){I=u})}),
"on:click":O,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.v("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Ir({fill:function(){return l().primaryTextColor}})},_.v("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"})))}}),
_.v(_.VX,{data:function(){return q().overflowMenu}},{buttonViewModel:function(K){return _.v(_.sQ,{data:K.data})}}))),_.v("div",{class:"learningQuizComponentQuizSubheader",
el:_.Wv(function(K){_.Qq(264688,K,h,function(u){h=u})}),
style:_.Ir({color:function(){return l().secondaryTextColor}}),
"client-ve-type":264688},_.v(_.IS,{text:y}))),_.v("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.v(_.aj,{each:function(){return q().optionsData||[]}},function(K,u){var w={};
return _.v("button",{class:_.pG("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(w.learningQuizComponentQuizHover=function(){return!T()},w.learningQuizComponentQuizOptionWithCustomColor=V,w.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return W(u())},w.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!B()&&x(u())},w.learningQuizComponentQuizIncorrectShake=function(){return!B()&&
x(u())},w.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return T()&&!x(u())},w)),
"on:click":_.Xu(function(){if(T())return!1;L(u());return!1}),
style:_.Ir({background:function(){var $a=u();return T()&&x($a)?"":V()?l().optionColor:"transparent"}}),
"aria-disabled":T,"client-ve-type":264686},_.v("div",{class:"learningQuizComponentQuizOptionContainer"},_.v(_.Q,{cond:T,then:function(){return _.v(JpB,{isOptionCorrect:f,optionIndex:u,isOptionSelectedAndCorrect:W,colors:l})}}),_.v(_.IS,{text:K.optionText})))})))))}})},"ue");
JpB=_.C(function(G){var b={};return _.v("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:_.pG("learningJourneyQuizViewModelQuizOptionIconLeading",(b.learningQuizComponentQuizPulse=function(){return G.isOptionSelectedAndCorrect(G.optionIndex())},b)),
style:_.Ir({fill:function(){return G.colors().primaryTextColor}})},_.v("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"}}))},"ve");
_.KxB.idomCompat=!0;_.JN(_.KxB,"learning-journey-quiz-view-model",{props:{data:_.hV,className:_.hV}});var uPz=_.C(function(G){var b=_.e((0,_.bjz)(function(){var V;return{targetId:(V=G.data().config)==null?void 0:V.suspenseKey,contents:[G.data()]}})).next().value,I=_.LL().resolve(_.xW),h=function(){var V=b().contents.length>0?b().contents[0]:void 0;
return V==null?void 0:V.config},q=function(){var V;
return(V=h())==null?void 0:V.entityTriggerConfig},l=_.lA(e7q,function(){var V,D;
return(D=(V=q())==null?void 0:V.entityKey)!=null?D:""});
_.K0(function(){var V,D,k,L=(k=Number((V=q())==null?void 0:(D=V.invalidationTimestamp)==null?void 0:D.seconds))!=null?k:0,x,f,T;if(((T=Number((x=l())==null?void 0:(f=x.lastUpdated)==null?void 0:f.seconds))!=null?T:0)>L){var B;(V=(B=h())==null?void 0:B.continuationCommand)&&I.resolveCommand(V)}},"tC8nKe");
return _.v("yt-suspense-view-model",{class:_.pG("ytSuspenseViewModelHost")},_.v(_.VX,{data:function(){var V;return(V=h())==null?void 0:V.contents}},{lockupViewModel:_.tE}))},"xe");var RSn=_.C(function(G){var b=_.N5(G,{palette:void 0,isLastItem:!1}),I=b.palette,h=b.isLastItem,q=function(){return G.data().isHighlighted},l=function(){var k;
return TGO((k=I())==null?void 0:k.iconDisabledColor)},V=function(){var k;
return TGO((k=I())==null?void 0:k.primaryTitleColor)},D=function(){var k;
return TGO((k=I())==null?void 0:k.secondaryTitleColor)};
b={};return _.v("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.Wv(_.s2(function(){return G.data().rendererContext}))},_.v(_.VX,{data:function(){return G.data().thumbnail}},{thumbnailViewModel:_.Qo}),_.v("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.v("div",{class:_.pG("ytMacroMarkerListItemViewModelTimeDescription",(b.ytMacroMarkerListItemViewModelHighlighted=q,b)),
style:_.Ir({"background-color":function(){return q()?V():l()},
color:function(){return q()?"":D()}})},_.v(_.IS,{text:function(){return G.data().timestamp}})),_.v("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Ir({"background-color":function(){return h()?"transparent":l()}})}),_.v("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(q()?V():D())}},_.v(_.IS,{text:function(){return G.data().title}}))))},"ye");_.qF=_.C(function(G){function b(mp){W("transform:translateX("+(_.wy("HTML_DIR")==="rtl"?"":"-")+mp+"px)")}
function I(mp){return Math.min(Math.max(mp,0),F()-$a())}
function h(){var mp=u()+xa();return q()?(Math.round($a()/mp)||1)*mp:0}
var q=function(){return G.data().items||[]},l=function(){return G.data().previousButton},V=function(){return G.data().nextButton},D=function(){var mp,bn;
return(bn=(mp=G.disableArrows)==null?void 0:mp.call(G))!=null?bn:!1},k=function(){var mp;
return!((mp=G.forceNarrowLayout)==null||!mp.call(G))},L=_.P$(function(){var mp;
return!((mp=G.centerAlignItems)==null||!mp.call(G))&&F()<=$a()},void 0,"Uto0kc"),x=_.ee("horizontal-shelf-view-model"),f=_.ee("div"),T=_.e(_.ZZ(0,void 0,"G0xZB")),B=T.next().value,A=T.next().value;
T=_.e(_.ZZ(0,void 0,"kqCYFf"));var t=T.next().value,y=T.next().value,F=t;t=_.e(_.ZZ("",void 0,"Hh6Uye"));T=t.next().value;var W=t.next().value;t=_.e(_.ZZ(0,void 0,"yMGBKb"));var O=t.next().value,K=t.next().value,u=O;t=_.e(_.ZZ(0,void 0,"VChthd"));O=t.next().value;var w=t.next().value,$a=O;t=_.e(_.ZZ(!1,void 0,"qJlhhe"));var ev=t.next().value,LO=t.next().value;t=_.e(_.ZZ(0,void 0,"x7H94"));O=t.next().value;var td=t.next().value,xa=O;t=_.e(_.ZZ(0,void 0,"ksuUee"));var Uj=t.next().value,W2=t.next().value;
t=_.e(_.ZZ("50%",void 0,"uxCxde"));var is=t.next().value,su=t.next().value,an=function(){var mp,bn=(mp=G.data())==null?void 0:mp.responsiveContainerConfiguration,xb,j8;return bn?oZ(bn==null?void 0:bn.responsiveSize):(j8=(xb=G.sizing)==null?void 0:xb.call(G))!=null?j8:"STANDARD"};
t=_.P$(function(){return!D()&&B()>0},void 0,"XK60w");
O=_.P$(function(){return!D()&&B()<F()-$a()},void 0,"D22LVd");
var A5=function(){A(I(B()-h()));b(B())},XO=function(){A(I(B()+h()));
b(B())},kb=function(){x.value!==null&&on()},rz;
_.K3(function(){on();window.ResizeObserver?(rz=new ResizeObserver(_.A8(kb,0)),rz.observe(x.value)):window.addEventListener("resize",kb)});
_.uI(function(){if(window.ResizeObserver){var mp;(mp=rz)==null||mp.disconnect()}else window.removeEventListener("resize",kb)});
var on=function(){var mp=x.value.clientWidth,bn=G.includeMargin!==void 0?G.includeMargin():!1,xb;var j8=G.hasPeek!==void 0?G.hasPeek():!((xb=G.data())==null||!xb.hasPeek);mp=_.zZ({containerWidth:mp,hasPeek:j8,sizing:an(),marginSettings:bn?k()?4:1:0});td(mp.gutter);W2(mp.margin);K(mp.itemWidth);LO(mp.maxContainerWidth<528||k());w(mp.maxContainerWidth);q()&&y((mp.itemWidth+mp.gutter)*q().length-mp.gutter);if(q()){var BX;if(((BX=G.thumbnailAspectRatio)==null?void 0:BX.call(G))!==void 0){var I5;su(u()/
Nbq((I5=G.thumbnailAspectRatio)==null?void 0:I5.call(G))/2+"px")}else su("50%")}},Ac={},U1={};
return _.v("horizontal-shelf-view-model",{class:_.pG("ytwHorizontalShelfViewModelHost",G.className),el:x},_.v(_.Q,{cond:function(){var mp;return G.data().header&&!((mp=G.horizontalShelfExperiments)==null?0:mp.call(G).hideHeader)},
then:function(){return _.v("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Ir({width:function(){return $a()+"px"},
padding:function(){return"0 "+Uj()+"px"}})},_.v(_.VX,{data:function(){return G.data().header}},{sectionHeaderViewModel:function(mp){return _.v(_.dn,{data:mp.data,
disableHorizontalPadding:!0,forceSmallLayout:ev,useResponsiveLayout:!0})}}))}}),_.v("div",{class:_.pG("ytwHorizontalShelfViewModelOuterContainer",(Ac.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return L()},Ac)),
style:_.Ir({"margin-top":function(){var mp,bn=G.data().header&&!((mp=G.horizontalShelfExperiments)==null?0:mp.call(G).hideHeader),xb;return(((xb=G.ensureMarginTop)==null?0:xb.call(G))&&!bn?12:0)+"px"}})},_.v("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Ir({width:function(){return $a()+"px"},
padding:function(){return"0 "+Uj()+"px"},
overflow:function(){return D()?"auto":"hidden"}})},_.v("div",{class:_.pG("ytwHorizontalShelfViewModelItems",(U1.ytwHorizontalShelfViewModelCenterAlignItems=function(){return L()},U1)),
el:f,style:T},_.v(_.VX,{data:q},{macroMarkerListItemViewModel:function(mp,bn){return _.v("div",{style:_.Ir({width:function(){return u()+"px"},
"margin-right":function(){return(bn()===q().length-1?0:xa())+"px"}})},_.v(RSn,{data:mp.data,
palette:_.a9(G.palette),isLastItem:function(){return bn()===q().length-1}}))},
lockupViewModel:function(mp,bn){var xb=mp.data;return _.v("div",{style:_.Ir({width:function(){return u()+"px"},
"margin-right":function(){return(bn()===q().length-1?0:xa())+"px"}})},_.v(_.tE,{data:xb,
containerType:4,sizing:an,protectBackground:G.protectBackground,thumbnailFixedWidth:function(){return BGB(xb())+"px"},
thumbnailTargetWidth:function(){return BGB(xb())}}))},
suspenseViewModel:function(mp,bn){return _.v("div",{style:_.Ir({width:function(){return u()+"px"},
"margin-right":function(){return(bn()===q().length-1?0:xa())+"px"}})},_.v(uPz,{data:mp.data}))}}))),_.v(_.Q,{cond:t,
then:function(){return _.v("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Ir({top:function(){return is()}})},_.v(_.VX,{data:l},{buttonViewModel:function(mp){return _.v(_.sQ,{data:mp.data,
onClick:A5})}}))}}),_.v(_.Q,{cond:O,
then:function(){return _.v("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Ir({top:function(){return is()}})},_.v(_.VX,{data:V},{buttonViewModel:function(mp){return _.v(_.sQ,{data:mp.data,
onClick:XO})}}))}})))},"ze");
_.qF.idomCompat=!0;var nZJ=_.C(function(G){var b=function(){return G.data().targetId||""},I=function(){var t;
return((t=G.data())==null?void 0:t.expansionEntityKey)||""},h=_.lA(_.mNX,I),q=!0,l=function(){var t;
return((t=h())==null?void 0:t.value)===b()},V=function(t){_.W5(_.Da("stringEntity",I(),{key:I(),
value:t?b():""}))};
_.JC(function(){q=!1;G.data().isExpanded&&V(!0)});
var D=function(){if(l()){var t=!0;G.onCollapse!==void 0&&(t=G.onCollapse());t&&V(!1)}else V(!0)},k=_.Xu(D),L=function(){var t;
return(((t=G.accordionStyle)==null?void 0:t.call(G))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},x=_.ee("div"),f=function(){var t,y;
return(y=(t=_.g(G.data().rendererContext,_.DA))==null?void 0:t.label)!=null?y:""},T=function(){var t,y;
return{disabled:(t=G.hideIfNotExpanded)==null?void 0:t.call(G),ariaHidden:(y=G.hideIfNotExpanded)==null?void 0:y.call(G)}},B={},A={};
return _.v("yt-accordion-item-view-model",{class:_.pG("ytAccordionItemViewModelHost",G.className,(B.ytAccordionItemViewModelExpanded=function(){return l()},B.ytAccordionItemViewModelHidden=function(){var t;
return(t=G.hideIfNotExpanded)==null?void 0:t.call(G)},B.ytAccordionItemViewModelMini=L,B)),
"data-target-id":b},_.v("div",{class:"ytAccordionItemViewModelContainer"},_.v("div",{class:"ytAccordionItemViewModelLeftSection","on:click":k,title:f,"aria-hidden":function(){var t;return(t=G.hideIfNotExpanded)==null?void 0:t.call(G)}},_.v(_.IS,{text:function(){return G.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:f})),_.v("div",{class:"ytAccordionItemViewModelRightSection"},_.v(_.VX,{data:function(){return l()?G.data().expandButton:G.data().collapseButton}},{buttonViewModel:function(t){return _.v(_.sQ,{data:t.data,
className:"ytAccordionItemViewModelToggleButton",onClick:D,buttonOverrides:T})}}))),_.v("div",{class:"ytAccordionItemViewModelContainer"},_.v("div",{class:_.pG("ytAccordionItemViewModelContent",(A.ytAccordionItemViewModelExpandedSubtitle=function(){return l()},A)),
el:x,style:_.Ir({"max-height":function(){return q?"auto":l()?x.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!l()}},_.v(_.Q,{cond:function(){return!L()},
then:function(){return _.v(_.IS,{text:function(){return G.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.v(_.VX,{data:function(){return G.data().content}},{horizontalShelfViewModel:function(t){return _.v(_.qF,{data:t.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Be");_.OHu=_.C(function(G){var b=_.e((0,_.bjz)(G.data)).next().value,I=function(){return G.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},h=function(){return I()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},q=_.e(_.ZZ(!0,void 0,"VFpYAb")),l=q.next().value,V=q.next().value,D=function(){return h()&&l()},k=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){V(!l())}}},L=_.Xu(function(){b().onTitleTap&&_.Zm(b().onTitleTap||{})});
q={};return _.v("yt-accordion-view-model",{class:_.pG("ytAccordionViewModelHost",(q.ytAccordionViewModelMinimized=function(){return D()},q)),
"data-target-id":function(){return G.data().targetId||""}},_.v(_.Q,{cond:function(){return h()||!!b().title},
then:function(){return _.v("div",{class:"ytAccordionViewModelHeader"},_.v("div",{class:"ytAccordionViewModelTitleSection"},_.v("div",{class:"ytAccordionViewModelTitleWrapper"},_.v(_.Q,{cond:function(){return!!G.data().headerIcon},
then:function(){return _.v(_.ha,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var x;return(x=G.data().headerIcon)==null?void 0:x.iconType}})}}),_.v("div",{class:"ytAccordionViewModelTitle",
"on:click":L},_.v(_.IS,{className:"ytAccordionViewModelTitleText",text:function(){return b().title}})))),_.v("div",{class:"ytAccordionViewModelButtonSection"},_.v(_.Q,{cond:h,
then:function(){return _.v(_.TV,{data:k,iconName:function(){return D()?"chevron_down":"chevron_collapse"}})}})))}}),_.v("div",{class:"ytAccordionViewModelContent"},_.v(_.VX,{data:function(){return b().contents}},{accordionItemViewModel:function(x){return _.v(nZJ,{data:x.data,
className:"ytAccordionViewModelRow",accordionStyle:I,hideIfNotExpanded:D,onCollapse:function(){return h()?(V(!0),!1):!0}})}})),_.v("div",null,_.v(_.Q,{cond:function(){return!h()&&(!!b().disclaimerFooter||!!b().footer)},
then:function(){return _.v("div",{class:"ytAccordionViewModelFooter"},_.v(_.IS,{text:function(){return b().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.v(_.VX,{data:function(){return G.data().footer}},{flexibleActionsViewModel:function(x){return _.v(_.ET,{data:x.data,
layout:0})}}))}})))},"Ce");_.JN(_.OHu,"yt-accordion-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=null,I=null,h,q=(h=_.LL().resolve(_.vf(_.Pv)))==null?void 0:h(),l=_.e(_.ZZ(!1,void 0,"CmEVtc"));h=l.next().value;var V=l.next().value;l=_.e(_.ZZ(!0,void 0,"yo9dR"));var D=l.next().value,k=l.next().value,L=_.ee("textarea",function(y){_.Qq(264503,y,b,function(F){b=F})}),x=function(y){V(!0);
y={learningJourneyFormData:{query:y}};_.Zm(G.data().searchEndpoint||{},{form:{formData:y}});return!1},f=_.Xu(function(y){y.target.closest("button-view-model")&&V(!0)});
l=_.Xu(function(){k(L.value.value.length===0)});
var T=_.Xu(function(y){if(y.key==="Enter"&&!y.shiftKey&&!D()){var F=y.target;y.preventDefault();x(F.value)}}),B={},A={},t={};
return _.v("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.v("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.v(_.Fu,{data:function(){return G.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.v("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.v("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.v("div",{class:_.pG("ytLearningJourneyZeroStateSearchBar",(B.ytLearningJourneyZeroStateSearchBarDark=q,B))},_.v("textarea",{class:_.pG("ytLearningJourneyZeroStateTextInput",(A.ytLearningJourneyZeroStateTextInputDark=q,A)),el:L,"on:keyup":l,"on:keydown":T,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.v("div",{class:_.pG("ytLearningJourneyZeroStateSearchButtonContainer",(t.ytLearningJourneyZeroStateSearchButtonContainerDark=q,t))},_.v(_.sQ,{data:function(){return _.g(G.data().searchButton,_.j6)},
className:"search-button",onClick:function(){return x(L.value.value)},
buttonOverrides:function(){return{disabled:D(),style:q?"mono-inverse":"mono",size:"XL"}}}))),_.v(_.Q,{cond:function(){return!!G.data().errorBanner},
then:function(){return _.v("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Wv(function(y){_.Qq(264617,y,I,function(F){I=F})})},_.v(_.VX,{data:function(){return G.data().errorBanner}},{alertBannerViewModel:function(y){return _.v(_.Lx8,{data:y.data,
"client-ve-type":264617})}}))}})),_.v(_.Q,{cond:h,
then:function(){return _.v("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.v(_.VX,{data:function(){return G.data().loader}},{learningJourneyLoaderViewModel:function(y){return _.v(_.YXW,{data:y.data})}}))},
else:function(){return _.v("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.v(_.Q,{cond:function(){return!!G.data().learningJourneyShelf},
then:function(){return _.v("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.v("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return G.data().learningJourneySectionTitle}),_.v(_.VX,{data:function(){return G.data().learningJourneyShelf}},{horizontalShelfViewModel:function(y){return _.v(_.qF,{data:y.data,
centerAlignItems:!0})}}))}}),_.v("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.v("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return G.data().suggestedJourneySectionTitle}),_.v("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":f},_.v(_.VX,{data:function(){return G.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(y){return _.v(_.ET,{data:y.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"De"),"yt-learning-journey-zero-state",{props:{data:_.hV}});var wbO=_.C(function(G){var b=G.data;return _.v("ytvl-live-leaderboard-item-action-content-view-model",{class:_.pG("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.v(_.IS,{text:function(){var I;return(I=b())==null?void 0:I.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.v(_.VX,{data:function(){return b().actionButton}},{buttonViewModel:function(I){return _.v(_.sQ,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:I.data})}}))},"Ee");var EZi=_.C(function(G){var b=G.data;return _.v("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.pG("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.v(_.IS,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var I;return(I=b())==null?void 0:I.displayName},
ellipsisTruncate:!0}),_.v(_.VX,{data:function(){return b().badge}},{buttonViewModel:function(I){return _.v(_.sQ,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:I.data})}}))},"Fe");_.JN(_.C(function(G){var b=G.data;return _.v("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.v("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.v(_.IS,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var I;return(I=b())==null?void 0:I.rank}})),_.v("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.v(_.VX,{data:function(){return b().avatar}},{avatarViewModel:_.Om})),_.v("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.v(_.VX,{data:function(){return b().content}},{liveLeaderboardItemChannelContentViewModel:EZi,
liveLeaderboardItemActionContentViewModel:wbO})),_.v(_.IS,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var I;return(I=b())==null?void 0:I.points}}))},"Ge"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;return _.v("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.v(_.IS,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var I,h;return(I=b())==null?void 0:(h=I.ranking)==null?void 0:h.rank}}),_.v("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.v(_.VX,{data:function(){return b().avatar}},{avatarViewModel:_.Om})),_.v(_.IS,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var I,h;return(I=b())==null?void 0:(h=I.channelContent)==null?void 0:h.channelName}}),_.v(_.IS,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var I;return(I=b())==null?void 0:I.points}}))},"He"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.hV}});var pbW=_.C(function(G){G=_.N5(G,{wrapper:!1}).wrapper;return _.v(_.Q,{cond:G,then:function(){return _.v("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.v("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.v("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ie");
pbW.idomCompat=!0;var SXu=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],XbJ=_.C(function(G){var b=G.data;var I=_.Wv(),h=_.P$(function(){return b().command},void 0,"fyYsT");
_.K0(function(){h()&&_.g5(h(),{form:{element:I.value}})},"B0nxdb");
return _.v("div",{el:I,class:"YtQrCodeRendererHostContainer"},_.v(_.Q,{cond:function(){return b().qrCodeImage},
then:function(q){return _.v(_.Fu,{data:q,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.v(_.Q,{cond:function(){return b().spinner},
then:function(){return _.v(pbW,null)}})}}),_.v(_.Q,{cond:function(){return b().label},
then:function(q){return _.v(_.IS,{text:q,className:"YtQrCodeRendererHostLabel"})}}),_.v(_.Q,{cond:function(){return b().labels},
then:function(q){return _.v("div",{class:"YtQrCodeRendererHostLabels"},_.v(_.aj,{each:q},function(l){return _.v(_.IS,{text:l})}))}}))},"Le");_.JN(_.C(function(G){var b=G.data;var I=_.P$(function(){return b().qrEntityKey},void 0,"LmZ2xf"),h=_.P$(function(){return b().deleteEntityOnDismiss},void 0,"my0Tzb"),q=_.P$(function(){return b().command},void 0,"hzECIb"),l=_.lA(sqv,I);
G=_.P$(function(){return b().qrCodeImage},void 0,"AnD9rc");
var V=_.P$(function(){return b().style&&SXu.includes(b().style)},void 0,"f5fZv"),D=_.L8({visibilityCallback:function(k){k&&q()&&_.g5(q())},
showOption:{calledOnce:!0,state:"visible"}});_.K3(function(){_.uI(function(){h()&&I()&&_.H5().dispatch(_.Da("qrCodeEntity",I()))})});
return _.v("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.Wv(D)},_.v(_.Q,{cond:V,then:function(){return _.v(_.Q,{cond:l,then:function(k){return _.v(XbJ,{data:k})}})}}),_.v(_.Q,{cond:G,
then:function(k){return _.v(_.Fu,{data:k,alt:""})}}))},"Je"),"yt-qr-code-renderer",{props:{data:_.hV}});var Gqe=_.C(function(G){var b=function(){return _.so(1728053247&(G.barColor!==void 0?jN(G.barColor()):4278190080))};
return _.v("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.v("div",{class:"ytVideoOverviewGhostCardDetails"},_.v($re,{animationDelay:0,percentWidth:100,barColor:function(){return b()}}),_.v($re,{animationDelay:600,
percentWidth:60,barColor:function(){return b()}})))},"Me"),$re=_.C(function(G){return _.v("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+G.percentWidth()+"%"}},_.v("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var b=G.animationDelay(),I=G.barColor();return"animation-delay:"+b+"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    );"}}))},"Ne");var bO5;_.Ira=_.C(function(G){function b(F){V(F)}
var I=G.data;var h=_.ee("yt-video-overview-view-model"),q=_.VF("div");G=_.e(_.ZZ(-1,void 0,"dW11He"));var l=G.next().value,V=G.next().value;G=_.e(_.ZZ(0,void 0,"LqrsK"));var D=G.next().value,k=G.next().value,L={},x=_.lA(Up2,function(){return I().asyncDataEntityKey}),f=function(){var F;
if((F=x())==null?0:F.videoOverviewViewModel){var W;return _.g((W=x())==null?void 0:W.videoOverviewViewModel,AyX)}return I()};
_.K3(function(){k(Math.min((h.value.clientWidth-24)/4-8,72))});
var T=function(F){V(F);(q==null?0:q.value)&&q.value.children[F]&&q.value.children[F].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
Z2j(h,function(){var F;if((F=f())==null||!F.inlinePlaybackEndpoint)return null;var W;F=L==null?void 0:(W=L.thumbnailElRef)==null?void 0:W.value;if(!F)return null;var O;W=(O=f())==null?void 0:O.inlinePlaybackEndpoint;O=_.g(W,CQn);return{multipleVideoPreviewData:{data:(O==null?0:O.playerDescriptors)&&(O==null?0:O.playerDescriptors.length)?O.playerDescriptors:[],thumbnailElement:F,trackingParams:"test",callbacks:{onPlaybackStarted:T},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var B=function(){var F;return((F=f())==null?void 0:F.headerSubtext)!==void 0?!0:!1},A=function(){var F,W=jN((F=f())==null?void 0:F.titleColor);
return W?"color: "+_.so(W)+";":void 0},t=function(){var F,W=jN((F=f())==null?void 0:F.subtextColor);
return W?"color: "+_.so(W)+";":void 0},y=function(){return _.v("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.v("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return A()}},_.v(_.IS,{text:function(){var F;
return(F=f())==null?void 0:F.headerText}})),_.v(_.Q,{cond:B,
then:function(){return _.v("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.v("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return t()}},_.v(_.ha,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.v("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return t()}},_.v(_.IS,{text:function(){var F;
return(F=f())==null?void 0:F.headerSubtext}})))}}))};
G={};return _.v("yt-video-overview-view-model",{class:_.pG("ytGenAiVideoOverviewViewModelHost",(G.ytGenAiVideoOverviewViewModelMweb=!1,G.ytGenAiVideoOverviewViewModelDesktop=!0,G)),el:h,style:function(){var F,W=jN((F=f())==null?void 0:F.backgroundColor);return W?"background-color: "+_.so(W)+";":void 0}},_.v(_.Q,{cond:function(){var F;
return(F=f())==null?void 0:F.isLoading},
then:function(){return _.v(Gqe,{barColor:function(){var F;return(F=f())==null?void 0:F.titleColor}})},
else:function(){return _.v(_.xz,null,null,_.v("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.v(_.VX,{data:function(){var F;return(F=f())==null?void 0:F.thumbnail}},{thumbnailViewModel:function(F){return _.v(_.Qo,{data:F.data,
aspectRatio:0,playbackRef:gDs(L)})}})),_.v("div",{class:"ytGenAiVideoOverviewViewModelDetails"},y(),_.v(_.Q,{cond:function(){var F,W,O,K;
return((F=f())==null?void 0:(W=F.listItems)==null?void 0:W.length)!==void 0&&((O=f())==null?void 0:(K=O.listItems)==null?void 0:K.length)>0?!0:!1},
then:function(){return _.v("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:q},_.v(_.aj,{each:function(){var F;return(F=f())==null?void 0:F.listItems}},function(F,W){return _.v(bO5,{image:F.image,
index:W,isSelected:function(){return W()===l()},
onClick:b,itemWidth:D})}))}}),_.v("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.v("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return A()}},_.v(_.IS,{text:function(){var F,W,O,K,u,w,$a;
return($a=(F=f())==null?void 0:(W=F.listItems)==null?void 0:(O=W[l()])==null?void 0:O.headline)!=null?$a:(K=f())==null?void 0:(u=K.listItems)==null?void 0:(w=u[0])==null?void 0:w.headline}})),_.v("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return t()}},_.v(_.IS,{text:function(){var F,W,O,K,u,w,$a;
return($a=(F=f())==null?void 0:(W=F.listItems)==null?void 0:(O=W[l()])==null?void 0:O.subtext)!=null?$a:(K=f())==null?void 0:(u=K.listItems)==null?void 0:(w=u[0])==null?void 0:w.subtext}})))))}}))},"Oe");
bO5=_.C(function(G){var b=G.image;var I=G.itemWidth;var h=G.index;var q=G.isSelected;var l=G.onClick;G=_.Xu(function(){h!==void 0&&l!==void 0&&l(h());return!1});
var V={};return _.v("div",{class:_.pG("ytGenAiVideoOverviewViewModelCarouselItem",(V.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return q==null?void 0:q()},V)),
style:function(){return"width: "+I()+"px;"},
"on:click":G},_.v(_.Fu,{data:b,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.v(_.Q,{cond:function(){return q==null?void 0:q()},
then:function(){return _.v("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.v("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Pe");
_.Ira.idomCompat=!0;_.JN(_.Ira,"yt-video-overview-view-model",{props:{data:_.hV}});_.hB9=_.C(function(G){var b=G.data;var I=G.topbarOffset;var h,q=((h=_.LL().resolve(_.vf(_.Pv)))==null?void 0:h())||!1;return _.v("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var l=b();var V,D,k=q?(V=l.config)==null?void 0:V.darkThemeBackgroundColor:(D=l.config)==null?void 0:D.lightThemeBackgroundColor;l=k?_.Uo(k):void 0;l="background-color: "+l+";";I!==void 0&&(l+="top: -"+I()+"px;");return l},
"aria-hidden":!0},_.v(_.Q,{cond:function(){var l,V,D;return!!((l=b().backgroundImageConfig)==null?0:(V=l.image)==null?0:(D=V.sources)==null?0:D.length)},
then:function(){return _.v(_.Fu,{data:function(){var l;return(l=b().backgroundImageConfig)==null?void 0:l.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.v("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+sxX(q,b().gradientColorConfig)+";"}}))},"Qe");
_.hB9.idomCompat=!0;var qjW=_.C(function(G){var b=G.data;var I=G.isOverlay;return _.v("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.v("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.v(_.VX,{data:function(){return b().header}},{sectionHeaderViewModel:function(h){return _.v(_.dn,{data:h.data,
isOverlay:I})}})),_.v("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.v(_.VX,{data:function(){return b().channelInfoButtons}},{flexibleActionsViewModel:_.ET})),_.v("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.v(_.VX,{data:function(){return b().description}},{descriptionPreviewViewModel:function(h){return _.v(_.Pe,{data:h.data,
isOverlay:I})}})))},"Re");
qjW.idomCompat=!0;var jOc=_.C(function(G){var b=G.data;var I={};return _.v("factoid-view-model",{class:_.pG("ytwFactoidViewModelHost",(I.ytwFactoidViewModelHostOverlay=G.isOverlay,I))},_.v(_.IS,{text:function(){return b().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.v(_.IS,{text:function(){return b().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Se");
jOc.idomCompat=!0;var lr3=_.C(function(G){var b=G.data;var I=G.isOverlay;return _.v("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.v(_.VX,{data:function(){return b().factoids}},{factoidViewModel:function(h){return _.v(jOc,{data:h.data,
isOverlay:I})}}))},"Te");
lr3.idomCompat=!0;_.mrK=_.C(function(G){var b=G.data;var I=G.isOverlay;return _.v("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.v(_.VX,{data:function(){return b().items}},{channelInfoViewModel:function(h){return _.v("div",{class:"ytwCourseMetadataViewModelHostItem"},_.v(qjW,{data:h.data,
isOverlay:I}))},
coursePerksViewModel:function(h){return _.v("div",{class:"ytwCourseMetadataViewModelHostItem"},_.v(HHA,{data:h.data,isOverlay:I}))},
descriptionPreviewViewModel:function(h){return _.v("div",{class:"ytwCourseMetadataViewModelHostItem"},_.v(_.Pe,{data:h.data,isOverlay:I}))},
factoidsRowViewModel:function(h){return _.v("div",{class:"ytwCourseMetadataViewModelHostItem"},_.v(lr3,{data:h.data,isOverlay:I}))},
progressViewModel:function(h){return _.v("div",{class:"ytwCourseMetadataViewModelHostItem"},_.v(WxJ,{data:h.data,isOverlay:I}))}}))},"Ue");var eBD=_.C(function(G){return _.v("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.v(_.VX,{data:function(){return G.data().content}},{courseMetadataViewModel:function(b){return _.v(_.mrK,{data:b.data,
isOverlay:G.isOverlay})},
progressViewModel:function(b){return _.v(WxJ,{data:b.data})}}))},"Ve");var VvD=_.C(function(G){var b=G.data;G=G.className;var I=function(){var q;return _.U2((q=b())==null?void 0:q.rendererContext)},h={};
h=(h.dynamicTextViewModelHost=!0,h.dynamicTextViewModelHostTappable=function(){return I()},h);
return _.v("yt-dynamic-text-view-model",{el:_.Wv(_.s2(function(){var q;return(q=b())==null?void 0:q.rendererContext})),
role:function(){return I()?"link":void 0},
tabindex:function(){return I()?0:void 0},
class:_.pG(G,h)},_.v("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var q,l,V;return(V=(l=_.g((q=b())==null?void 0:q.rendererContext,_.DA))==null?void 0:l.label)!=null?V:""}},_.v(_.IS,{text:function(){return b().text},
userInput:!0})))},"We");
VvD.idomCompat=!0;_.j1=_.C(function(G){var b=G.data;var I=G.isPositionRelative;var h=_.AGO("(max-width: 527.9px)"),q=function(){var l,V;return(V=(l=b())==null?void 0:l.style)!=null?V:"IMAGE_BANNER_STYLE_FULL_BLEED"};
G={};return _.v("yt-image-banner-view-model",{el:_.Wv(_.s2(function(){var l;return(l=b())==null?void 0:l.rendererContext})),
class:_.pG((G.ytImageBannerViewModelHost=!0,G.ytImageBannerViewModelInset=function(){return M3s(q())},G.ytImageBannerViewModelPositionAbsolute=function(){return _.n0(!0)&&!(I==null?0:I())},G.ytImageBannerViewModelSmallInset=function(){return M3s(q())&&h()},G.ytImageBannerViewModelTappable=function(){var l;
return _.U2((l=b())==null?void 0:l.rendererContext)},G))},_.v(_.Q,{cond:function(){var l;
return(l=b())==null?void 0:l.image},
then:function(){return _.v(_.Fu,{data:function(){return b().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.v(_.VX,{data:function(){var l;
return(l=b())==null?void 0:l.overlays}},{thumbnailHoverOverlayViewModel:nq}))},"Xe");
_.j1.idomCompat=!0;var DrL;DrL=_.C(function(G){var b=G.condition;var I=G.content;return _.v(_.Q,{cond:b,then:function(){return _.v("div",{class:"yt-page-header-view-model__scroll-container"},I())},
else:function(){return I()}})},"Ye");
_.cdF=_.C(function(G){var b=G.data;var I=G.noPadding;var h=G.enableBanner;var q=G.cinematicContainerTopbarOffset;var l=G.allowCinematicContainerOverflow;var V=G.displayAsSidebar;var D=G.displayAsPanel;var k=G.alwaysUseMediumTextDescription;var L=ZjO(),x=function(){return!!b().image||!!b().animatedImage},f=function(){return!!b().background},T=function(){return(V==null?0:V())||(D==null?0:D())?1:L()},B=function(){return T()===1},A=function(){return B()||T()===2},t=function(){return T()===4},y=function(){var Uj=
b();
var W2=!!b().heroImage;var is=T(),su=t3O(b()),an=V==null?void 0:V(),A5=!Uj.metadata,XO;if(XO=W2?_.g(Uj.heroImage,QmW):_.g(Uj.animatedImage||Uj.image,QmW)){Uj=XO.style;var kb=XO.layoutMode;if(kb!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(XO=EDu(wCd(XO)),W2)W2=giO(is,Uj,kb,XO,an);else b:if(A5)W2=is===1?{size:48}:{size:72};else switch(is){case 1:W2={size:72};break b;case 2:W2={size:120};break b;default:W2=su<4?{size:120}:{size:160}}else W2=void 0}else W2={size:0};return W2};
G={};G=_.pG((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 B()&&!b().actions&&!(D==null?0:D())||T()===2&&!(x()||b().heroImage)},G["yt-page-header-view-model--small-bottom-padding"]=function(){return A()&&!b().actions&&!(D==null?0:D())},G["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(l==null?0:l())},G["yt-page-header-view-model--display-as-sidebar"]=
V,G));
var F={},W=_.pG((F["yt-page-header-view-model__page-header-headline"]=!0,F["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var Uj;return(Uj=y())==null?void 0:Uj.allowFullWidth},F)),O=function(){var Uj;
return A()&&!((Uj=y())==null?0:Uj.allowFullWidth)},K=function(){return B()&&(!!b().heroImage||x())&&t3O(b())>0},u=function(){return K()&&(D==null?void 0:D())};
F={};var w=_.pG((F["yt-page-header-view-model__page-header-title"]=!0,F["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!K()},F["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return K()&&!u()},F["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=u,F["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=f,F));
F={};var $a=_.pG((F["yt-page-header-view-model__page-header-headline-image"]=!0,F["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!b().heroImage&&A()},F));
F={};var ev=_.pG((F["yt-page-header-view-model__page-header-banner-container"]=h,F["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var Uj;return(h==null?void 0:h())&&((Uj=_.g(b().banner,_.fsu))==null?void 0:Uj.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},F));
F={};var LO=_.pG((F["yt-page-header-view-model__page-header-content-metadata"]=!0,F["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=f,F));F={};var td=_.pG((F["yt-page-header-view-model__page-header-flexible-actions"]=!0,F["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!b().metadata||A()},F["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!A()},F));
F={};var xa=_.pG((F["yt-page-header-view-model__page-header-attribution"]=!0,F["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=f,F));return _.v("yt-page-header-view-model",{class:G},_.v(_.Q,{cond:f,then:function(){return _.v("div",{class:"yt-page-header-view-model__page-header-background"},_.v(_.VX,{data:function(){return b().background}},{cinematicContainerViewModel:function(Uj){return _.v(_.hB9,{data:Uj.data,
topbarOffset:q})}}))}}),_.v(DrL,{condition:function(){return!(V==null||!V())},
content:function(){return _.v("div",{class:"yt-page-header-view-model__page-header-content"},_.v(_.Q,{cond:function(){return(h==null?void 0:h())&&b().banner},
then:function(){return _.v("div",{class:ev},_.v(_.VX,{data:function(){return b().banner}},{imageBannerViewModel:_.j1}))}}),_.v("div",{class:W},_.v(_.Q,{cond:x,
then:function(){return _.v(_.VX,{data:function(){var Uj;if(!(Uj=b().animatedImage)){Uj=b();if(x()){var W2=Uj=Object.assign({},Uj),is=T(),su=t3O(b()),an=W2.image,A5=_.g(an,xJA),XO=A5==null?void 0:A5.avatar,kb=_.g(XO,_.AW);if(an&&XO&&kb){switch(is){case 1:kb.avatarImageSize="AVATAR_SIZE_XL";break;case 2:kb.avatarImageSize="AVATAR_SIZE_XXL";break;default:su<4?kb.avatarImageSize="AVATAR_SIZE_XXL":kb.avatarImageSize="AVATAR_SIZE_XXXL"}_.xQ(XO,_.AW,Object.assign({},kb));A5.avatar=Object.assign({},XO);_.xQ(an,
xJA,Object.assign({},A5));W2.image=Object.assign({},an)}}Uj=Uj.image}return Uj}},{contentPreviewImageViewModel:function(Uj){return _.v(_.B_,{data:Uj.data,
className:$a,imageSizeConfig:y})},
decoratedAvatarViewModel:function(Uj){return _.v(_.w1,{data:Uj.data,className:$a})}})}}),_.v(_.Q,{cond:function(){return!!b().heroImage&&!O()},
then:function(){return _.v(_.VX,{data:function(){return b().heroImage}},{contentPreviewImageViewModel:function(Uj){return _.v(_.B_,{data:Uj.data,
className:$a,imageSizeConfig:y})}})}}),_.v("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.v(_.Q,{cond:function(){return!!b().heroImage&&O()},
then:function(){return _.v("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.v(_.VX,{data:function(){return b().heroImage}},{contentPreviewImageViewModel:function(Uj){return _.v(_.B_,{data:Uj.data,
className:$a,imageSizeConfig:y})}}))}}),_.v(_.VX,{data:function(){return b().title}},{dynamicTextViewModel:function(Uj){return _.v(VvD,{data:Uj.data,
className:w})}}),_.v(_.VX,{data:function(){return b().metadata}},{contentMetadataViewModel:function(Uj){return _.v(_.sR,{data:Uj.data,
layout:function(){return B()?1:0},
className:LO,isOverlay:f,useMediumText:t})}}),_.v(_.Q,{cond:function(){return b().description&&!B()},
then:function(){return _.v(_.VX,{data:function(){return b().description}},{descriptionPreviewViewModel:function(Uj){return _.v(_.Pe,{data:Uj.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:f,maxLinesOverride:function(){return B()?void 0:1},
useMediumText:function(){return(k==null?void 0:k())||t()}})}})}}),_.v(_.Q,{cond:function(){return b().attribution&&!A()},
then:function(){return _.v(_.VX,{data:function(){return b().attribution}},{attributionViewModel:function(Uj){return _.v(UR,{data:Uj.data,
className:xa,useMediumText:t})}})}}),_.v(_.Q,{cond:function(){return b().actions&&!A()},
then:function(){return _.v(_.VX,{data:function(){return b().actions}},{flexibleActionsViewModel:function(Uj){return _.v(_.ET,{data:Uj.data,
layout:function(){return znO(T())},
className:td})}})}}))),_.v("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.v(_.Q,{cond:function(){return b().description&&B()},
then:function(){return _.v(_.VX,{data:function(){return b().description}},{descriptionPreviewViewModel:function(Uj){return _.v(_.Pe,{data:Uj.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:f,maxLinesOverride:function(){return B()?void 0:1},
useMediumText:function(){return(k==null?void 0:k())||t()}})}})}}),_.v(_.Q,{cond:function(){return b().attribution&&A()},
then:function(){return _.v(_.VX,{data:function(){return b().attribution}},{attributionViewModel:function(Uj){return _.v(UR,{data:Uj.data,
className:xa,useMediumText:t})}})}}),_.v(_.Q,{cond:function(){return b().actions&&A()},
then:function(){return _.v(_.VX,{data:function(){return b().actions}},{flexibleActionsViewModel:function(Uj){return _.v(_.ET,{data:Uj.data,
layout:function(){return znO(T())},
className:td})}})}})),_.v("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.v(_.VX,{data:function(){return b().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Uj){return _.v(eBD,{data:Uj.data,
isOverlay:f})}})))}}))},"Ze");
_.cdF.idomCompat=!0;_.JN(_.C(function(G){var b=_.e(_.ZZ(!1,void 0,"qvRy4d")),I=b.next().value,h=b.next().value;return _.v("yt-official-card-view-model",{class:_.pG("ytOfficialCardViewModelHost",G.className),style:_.Ir({"background-color":function(){var q,l=jN((q=G.data())==null?void 0:q.backgroundColor);return l?_.so(l):void 0}})},_.v(_.VX,{data:function(){return G.data().header}},{pageHeaderViewModel:function(q){return _.v(_.cdF,{data:q.data,
noPadding:!0})}}),_.v(_.VX,{data:function(){return G.data().contents}},{horizontalShelfViewModel:function(q){return _.v(_.qF,{data:q.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.v(_.Q,{cond:I,
then:function(){return _.v("div",{class:"ytOfficialCardViewModelExpandedContent"},_.v(_.VX,{data:function(){return G.data().expandedContents}},{horizontalShelfViewModel:function(q){return _.v(_.qF,{data:q.data,
sizing:"MINI"})}}),_.v("div",{class:"ytOfficialCardViewModelCollapseButton"},_.v(_.VX,{data:function(){return G.data().collapseButton}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
onClick:function(){h(!I())}})}})))},
else:function(){return _.v("div",{class:"ytOfficialCardViewModelExpandButton"},_.v(_.VX,{data:function(){return G.data().expandButton}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
onClick:function(){h(!I())}})}}))}}))},"$e"),"yt-official-card-view-model",{props:{data:_.hV,
className:_.hV}});var kqe=_.C(function(G){var b,I=(b=_.LL().resolve(_.vf(_.Pv)))==null?void 0:b();return _.v("ytw-search-friction-view-model",{class:_.pG("ytwSearchFrictionViewModelHost",G.className)},_.v("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.v("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.v(_.Q,{cond:function(){return I&&G.data().darkThemeImage?G.data().darkThemeImage:G.data().image},
then:function(h){return _.v(_.Fu,{data:h,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.v(_.VX,{data:function(){return G.data().overflowMenuButton}},{buttonViewModel:function(h){return _.v(_.sQ,{data:h.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.v(_.IS,{text:function(){return G.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.v(_.aj,{each:function(){return G.data().bodyText||[]}},function(h){return _.v(_.IS,{text:h,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.v(_.VX,{data:function(){return G.data().actions}},{buttonViewModel:function(h){return _.v(_.sQ,{data:h.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.v(_.IS,{text:function(){return G.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.v(_.IS,{text:function(){return G.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"af");
kqe.idomCompat=!0;_.JN(kqe,"ytw-search-friction-view-model",{props:{data:_.hV,className:_.hV}});_.lb=_.C(function(G){var b=_.ee("markdown-div"),I,h=(I=_.LL().resolve(_.vf(_.Pv)))==null?void 0:I();_.K0(function(){var q=b.value;var l=new lzA,V=new Map(l.JSC$9371_sanitizerTable.globalAttributePolicies);V.set("style",{policyAction:4});l.JSC$9371_sanitizerTable=new Mw(l.JSC$9371_sanitizerTable.allowedElements,l.JSC$9371_sanitizerTable.elementPolicies,l.JSC$9371_sanitizerTable.allowedGlobalAttributes,V,l.JSC$9371_sanitizerTable.globallyAllowedAttributePrefixes);var D=["data-time"];if(D===void 0)V=
new Set(l.JSC$9371_sanitizerTable.globallyAllowedAttributePrefixes),V.add("data-"),l.JSC$9371_sanitizerTable=new Mw(l.JSC$9371_sanitizerTable.allowedElements,l.JSC$9371_sanitizerTable.elementPolicies,l.JSC$9371_sanitizerTable.allowedGlobalAttributes,l.JSC$9371_sanitizerTable.globalAttributePolicies,V);else{V=new Set(l.JSC$9371_sanitizerTable.allowedGlobalAttributes);D=_.e(D);for(var k=D.next();!k.done;k=D.next()){k=k.value;if(k.indexOf("data-")!==0)throw Error("ka`"+k);V.add(k)}l.JSC$9371_sanitizerTable=
new Mw(l.JSC$9371_sanitizerTable.allowedElements,l.JSC$9371_sanitizerTable.elementPolicies,V,l.JSC$9371_sanitizerTable.globalAttributePolicies,l.JSC$9371_sanitizerTable.globallyAllowedAttributePrefixes)}V=new Set(l.JSC$9371_sanitizerTable.allowedGlobalAttributes);V.add("class");l.JSC$9371_sanitizerTable=new Mw(l.JSC$9371_sanitizerTable.allowedElements,l.JSC$9371_sanitizerTable.elementPolicies,V,l.JSC$9371_sanitizerTable.globalAttributePolicies,l.JSC$9371_sanitizerTable.globallyAllowedAttributePrefixes);
_.ec(q,_.byX(l.build(),ijO(G.text())));PZO(b.value)},"OZ439c");
I={};return _.v("div",null,_.v("markdown-div",{class:_.pG("ytwMarkdownDivHost",(I.ytwMarkdownDivDark=h,I.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var q;return((q=G.isSmallText)==null?void 0:q.call(G))||!1},I.ytwMarkdownDivHostWrapCodeBlocks=function(){var q;
return((q=G.wrapCodeBlocks)==null?void 0:q.call(G))||!1},I.ytwMarkdownDivHostEnableDefaultStyling=function(){var q;
return!((q=G.disableDefaultStyling)==null?0:q.call(G))},I)),
el:b}))},"cf");
_.lb.idomCompat=!0;var va3=_.C(function(G){var b=G.imageData;var I=_.a9(G.isInList,!1),h=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 _.v("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.v(_.Q,{cond:function(){return b().image},
then:function(q){return _.v(_.Fu,{data:q,alt:function(){return h().alt},
contentMode:function(){return h().contentMode},
targetWidth:function(){return h().targetWidth},
targetHeight:function(){return h().targetHeight},
className:function(){return h().className}})}}),_.v("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.v("div",{class:_.pG("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.v(_.IS,{text:function(){return b().title}})),_.v(_.aj,{each:function(){var q;
return(q=b().description)!=null?q:[]}},function(q){return _.v("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.v(mz,{content:q}))})))},"df"),LpK=_.C(function(G){var b=G.list;
var I=function(){var h;return(h=b().items)!=null?h:[]};
return _.v("div",{class:"ytwGenAiRichTextViewModelListContent"},_.v(_.Q,{cond:function(){return b().title},
then:function(h){return _.v("div",{class:_.pG("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.v(_.IS,{text:h}))}}),_.v(_.Q,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.v("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.v(_.aj,{each:I},function(h){return _.v("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.v(mz,{content:h,isInList:!0}))}))}}),_.v(_.Q,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.v("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.v(_.aj,{each:I},function(h){return _.v("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.v(mz,{content:h,isInList:!0}))}))}}),_.v(_.Q,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.v("div",{class:"ytwGenAiRichTextViewModelImageList"},_.v(_.aj,{each:I},function(h){return _.v("div",{class:"ytwGenAiRichTextViewModelListItem"},_.v(mz,{content:h,isInList:!0}))}))}}))},"ef"),QOF=_.C(function(G){var b=G.table;
return _.v("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.v("thead",null,_.v("tr",null,_.v(_.aj,{each:function(){var I,h;return(h=(I=b().header)==null?void 0:I.cells)!=null?h:[]}},function(I){return _.v("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.v(_.aj,{each:function(){return I.contents}},function(h){return _.v(mz,{content:h})}))}))),_.v("tbody",null,_.v(_.aj,{each:function(){var I;
return(I=b().rows)!=null?I:[]}},function(I){return _.v("tr",null,_.v(_.aj,{each:function(){return I.cells}},function(h){return _.v("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.v(_.aj,{each:function(){return h.contents}},function(q){return _.v(mz,{content:q})}))}))})))},"ff"),mz=_.C(function(G){var b=G.content;
var I=_.a9(G.isInList,!1),h=function(){var q,l;return(l=(q=b().contentBlock)==null?void 0:q.contents)!=null?l:[]};
return _.v("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.v(_.Q,{cond:function(){return b().text},
then:function(q){return _.v(_.IS,{className:"ytwGenAiRichTextViewModelText",text:q})}}),_.v(_.Q,{cond:function(){return b().image},
then:function(q){return _.v(va3,{imageData:q,isInList:I})}}),_.v(_.Q,{cond:function(){return b().list},
then:function(q){return _.v(LpK,{list:q})}}),_.v(_.Q,{cond:function(){return b().contentBlock},
then:function(){return _.v("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.v(_.aj,{each:h},function(q){return _.v(mz,{content:q,isInList:!1})}))}}),_.v(_.Q,{cond:function(){return b().table},
then:function(q){return _.v(QOF,{table:q})}}))},"gf"),xrD=_.C(function(G){var b={};
b=_.xU("ytwGenAiRichTextViewModelHost",(b.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.UG("search_overview_link_style")),b));return _.v("gen-ai-rich-text-view-model",{class:b},_.v(mz,{content:function(){return G.data().content}}))},"hf");_.fr5=_.C(function(G){var b=G.data;var I=function(){var t;return((t=b().loadingUi)!=null?t:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},h=function(){return b().isLoading&&(I()==="UNSPECIFIED"||I()==="GHOST_CARD")},q=function(){return!b().isLoading},l=function(){return!!b().content&&!b().contents},V=function(){return!!b().contents},D=function(){return!!b().nextQueryButtons},k=function(){return b().isLoading&&I()==="INVISIBLE"},L=function(){var t,y;
return(y=(t=b().headerIcon)==null?void 0:t.iconType)!=null?y:""},x=function(){var t;
return(t=b().content)!=null?t:""},f=function(){return!!b().sourcesSection},T,B=!((T=_.LL().resolve(_.vf(_.Pv)))==null||!T()),A=_.P$(function(){var t=[],y=b().contents;
if(y)for(var F=0;F<y.length;F++){var W=_.g(y&&y[F],gkW);W&&t.push(W)}return t},void 0,"gcCsZb");
_.K3(function(){b().isLoading||_.sS("so_re",void 0,"search_overview_answer")});
return _.v("ytd-overview-answer-view-model",{class:function(){var t={};t=(t.ytdOverviewAnswerViewModelHost=!0,t.ytdOverviewAnswerViewModelDarkBackground=B&&!k(),t.ytdOverviewAnswerViewModelLightBackground=!B&&!k(),t);return _.xU(t)}},_.v(_.Q,{cond:function(){return!k()},
then:function(){return _.v(_.xz,null,_.v("h2",null,_.v("div",{class:"ytdOverviewAnswerViewModelHeader"},_.v(_.Q,{cond:L,then:function(t){return _.v("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.v(_.ha,{icon:t}))}}),_.v("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.v("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return b().headerText}),_.v("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.v(_.IS,{text:function(){return b().headerSubtext}}))))),_.v(_.Q,{cond:h,
then:function(){return _.v(dpu,null)}}),_.v(_.Q,{cond:q,
then:function(){return _.v(_.xz,null,_.v(_.Q,{cond:l,then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelText"},_.v(_.lb,{text:x,isSmallText:!0}))}}),_.v(_.Q,{cond:V,
then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelRichText"},_.v(_.aj,{each:A},function(t){return _.v(xrD,{data:t})}))}}),_.v(_.Q,{cond:D,
then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.v(_.VX,{data:function(){return b().nextQueryButtons}},{buttonViewModel:function(t){return _.v(_.sQ,{data:t.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.qF}))}}),_.v("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.v("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.v(_.Q,{cond:function(){return!!_.g(b().likeButtonViewModel,_.EU)&&!!_.g(b().dislikeButtonViewModel,_.w0)},
then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.v(_.SJ,{data:function(){return _.g(b().likeButtonViewModel,_.EU)},
disableIconAnimation:!0}),_.v(_.p9,{data:function(){return _.g(b().dislikeButtonViewModel,_.w0)}}))}})),_.v(_.Q,{cond:function(){var t;
return(t=b().sourcesSection)==null?void 0:t.headerText},
then:function(t){return _.v("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.v(_.IS,{text:t}))}})),_.v(_.Q,{cond:f,
then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelSources"},_.v(_.VX,{data:function(){var t;return(t=b().sourcesSection)==null?void 0:t.sourcesShelf}},{buttonViewModel:_.sQ,
horizontalShelfViewModel:function(t){return _.v(_.qF,{data:t.data,includeMargin:!0,hasPeek:!0})}}))}}),_.v(_.Q,{cond:function(){return b().disclaimerText},
then:function(){return _.v("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.v(_.IS,{text:function(){return b().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"jf");var TXe=_.C(function(G){var b=_.N5(G,{}).data;return _.v("yt-shopping-content-line-item-view-model",{class:_.pG("ytShoppingContentLineItemViewModelHost")},_.v(_.IS,{text:function(){var I;return(I=b().text)==null?void 0:I.attributedString}}))},"kf");_.e1=_.C(function(G){G=_.N5(G,{});var b=G.data,I={};return _.v("yt-shopping-content-line-view-model",{class:_.pG("ytShoppingContentLineViewModelHost",G.className,(I.ytShoppingContentLineViewModelTruncateText=function(){return!b().wrapContent},I)),
style:_.Ir({"--shopping-content-line-gap":function(){return b().itemGap?b().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return b().lineHeight?b().lineHeight+"px":void 0}})},_.v(_.aj,{each:function(){return(b().items||[]).map(function(h){return _.g(h,rnu)}).filter(function(h){return!!h})}},function(h){return _.v(TXe,{data:h})}))},"lf");var BXD=_.C(function(G){var b=G.data;var I=function(){var l;return((l=b().image)==null?void 0:l.height)||48},h=function(){var l;
return((l=b().image)==null?void 0:l.width)||48},q=function(){return"width: "+h()+"px; height: "+I()+"px;"};
return _.v("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var l,V,D,k=((l=_.LL().resolve(_.vf(_.Pv)))==null?0:l())?(V=b())==null?void 0:V.darkThemeBackgroundColor:(D=b())==null?void 0:D.lightThemeBackgroundColor;return"background-color: "+(k?_.so(k):"")+";"},
el:_.Wv(_.s2(function(){var l;return(l=b())==null?void 0:l.rendererContext}))},_.v(_.Q,{cond:function(){var l,V;
return(V=(l=b().image)==null?void 0:l.image)!=null?V:b().thumbnail},
then:function(l){return _.v("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var V;return"background-color: "+(((V=b().image)==null?0:V.backgroundColor)?_.so(b().image.backgroundColor):"")+";"+q()}},_.v(_.Fu,{data:l,
height:I,width:h,style:q,alt:""}))}}),_.v("div",{class:"ytShoppingDescriptionItemViewModelText"},_.v(_.VX,{data:function(){return b().line1}},{shoppingContentLineViewModel:function(l){return _.v(_.e1,{data:l.data})}}),_.v(_.VX,{data:function(){return b().line2}},{shoppingContentLineViewModel:function(l){return _.v(_.e1,{data:l.data})}}),_.v(_.VX,{data:function(){return b().line3}},{shoppingContentLineViewModel:function(l){return _.v(_.e1,{data:l.data})}})))},"mf");var Ur1=_.C(function(G){var b=G.data;var I=G.active;var h=_.ee("transcript-segment-view-model");_.K0(function(){var q,l,V,D=((q=_.LL().resolve(_.vf(_.Pv)))==null?0:q())?(l=b())==null?void 0:l.darkThemeColorPalette:(V=b())==null?void 0:V.lightThemeColorPalette;D&&(D.additiveBackground&&h.value.style.setProperty("--timestamp-active-background-color",_.so(D.additiveBackground)),D.textSecondary&&h.value.style.setProperty("--timestamp-active-color",_.Uo(D.textSecondary)))},"TnVCnb");
G={};return _.v("transcript-segment-view-model",{class:_.pG("ytwTranscriptSegmentViewModelHost",(G.ytwTranscriptSegmentViewModelHostActive=I,G.ytwTranscriptSegmentViewModelHostModern=_.U("enable_timeline_view_modern_transcript")||_.U("enable_timeline_view_modern_transcript_fe"),G)),el:h},_.v(_.Q,{cond:function(){var q;return(q=b())==null?void 0:q.timestamp},
then:function(q){var l={};return _.v(_.xz,null,_.v("div",{class:_.pG("ytwTranscriptSegmentViewModelTimestamp",(l.ytwTranscriptSegmentViewModelTimestampActive=I,l)),"aria-hidden":!0},q),_.v("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var V=q().split(":").map(Number),D=_.e(V.reverse());V=D.next().value;var k=D.next().value;D=D.next().value;return _.l9r({hours:D,minutes:k,seconds:V})}))}}),_.v(_.IS,{text:function(){var q,l,V;
return(V=(q=b())==null?void 0:q.attributedText)!=null?V:{content:(l=b())==null?void 0:l.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"of");var sOe=_.C(function(G){var b=G.data;return _.v("div",{class:"videoAttributesSectionViewModelHeader"},_.v("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.v("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return b().headerTitle}),_.v(_.Q,{cond:function(){return b().headerInfoButton},
then:function(){return _.v(_.VX,{data:function(){return b().headerInfoButton}},{buttonViewModel:function(I){return _.v(_.sQ,{data:I.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.v(_.Q,{cond:function(){return b().headerSubtitle},
then:function(){return _.v("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return b().headerSubtitle})}}))},"pf"),ga3=_.C(function(G){function b(t){return Math.max(Math.min(t,0),L()-D())}
var I=G.data;var h;G=_.ee("div",function(t){var y=function(){x(t.clientWidth)};
y();window.ResizeObserver&&(h=new ResizeObserver(y),h.observe(t))});
var q=_.ee("div",function(t){k(t.scrollWidth)}),l=_.e(_.ZZ(0,void 0,"C3XQAe")),V=l.next().value;
l=l.next().value;var D=V,k=l;l=_.e(_.ZZ(0,void 0,"db7y3"));V=l.next().value;l=l.next().value;var L=V,x=l;V=_.e(_.ZZ(0,void 0,"RchC7"));var f=V.next().value,T=V.next().value;_.uI(function(){var t;(t=h)==null||t.disconnect()});
var B=function(){T(b(f()+L()))},A=function(){T(b(f()-L()))};
return _.v("yt-video-attributes-section-view-model",null,_.v("div",{class:"videoAttributesSectionViewModelHost"},_.v(_.Q,{cond:function(){return I().headerTitle},
then:function(){return _.v(sOe,{data:I})}}),_.v("div",{class:_.pG("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:G},_.v("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.Ir({transform:function(){var t=f();_.wy("HTML_DIR")==="rtl"&&(t*=-1);return"translateX("+t+"px)"}}),
el:q},_.v(_.VX,{data:function(){return I().videoAttributeViewModels}},{videoAttributeViewModel:hJQ}))),_.v(_.VX,{data:function(){return I().footerButton}},{buttonViewModel:function(t){return _.v(_.sQ,{data:t.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.v(_.Q,{cond:function(){return f()<0&&I().previousButton},
then:function(){return _.v("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.v(_.VX,{data:function(){return I().previousButton}},{buttonViewModel:function(t){return _.v(_.sQ,{data:t.data,
onClick:B})}}))}}),_.v(_.Q,{cond:function(){return f()>L()-D()&&I().nextButton},
then:function(){return _.v("div",{class:"videoAttributesSectionViewModelRightArrow"},_.v(_.VX,{data:function(){return I().nextButton}},{buttonViewModel:function(t){return _.v(_.sQ,{data:t.data,
onClick:A})}}))}})))},"qf");
ga3.idomCompat=!0;var Ad8=_.C(function(G){var b=G.data;var I=G.active;var h={},q={};return _.v("timeline-item-view-model",{class:_.pG("ytwTimelineItemViewModelHost",(h.ytwTimelineItemViewModelHostChapterChild=G.chapterChild,h.ytwTimelineItemViewModelModern=_.U("enable_timeline_view_modern_transcript")||_.U("enable_timeline_view_modern_transcript_fe"),h))},_.v("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.v("div",{class:_.pG("ytwTimelineItemViewModelTimestamp",(q.ytwTimelineItemViewModelTimestampActive=
I,q))},function(){return b().timestamp})),_.v("div",{class:"ytwTimelineItemViewModelContentItems"},_.v(_.VX,{data:function(){return b().contentItems}},{transcriptSegmentViewModel:function(l){return _.v(Ur1,{data:l.data,
active:I})},
videoAttributesSectionViewModel:ga3})))},"rf");var Mv9=_.C(function(G){var b=G.data;G={};return _.v("timeline-chapter-view-model",{class:_.pG("ytwTimelineChapterViewModelHost")},_.v("div",{class:_.pG("ytwTimelineChapterViewModelTitle",(G.ytwTimelineChapterViewModelModern=_.U("enable_timeline_view_modern_transcript")||_.U("enable_timeline_view_modern_transcript_fe"),G))},function(){return b().title}),_.v(_.VX,{data:function(){return b().contents}},{timelineItemViewModel:function(I){return _.v(Ad8,{data:I.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(I){return _.v(ga3,{data:I.data})}}))},"sf");var ZOY=_.C(function(G){var b=G.data;var I=_.ee("macro-markers-panel-item-view-model"),h=_.lA(_.xnu,function(){var l;return(l=b().markersEngagementPanelSyncEntityKey)!=null?l:""}),q=function(){var l;
return((l=h())==null?void 0:l.activeItemIndex)===b().index};
G=_.Xu(function(l){var V,D,k,L,x;return _.c(function(f){if(f.nextAddress==1)return l.stopPropagation(),_.TZ(_.fM(l),I.value,["A".toString(),"BUTTON".toString()])?f.return():(V=_.s0(b().onTap))?f.yield(_.$U(),2):f.return();D=f.yieldResult;L=(k=_.g(V,_.Wq))==null?void 0:k.startTimeSeconds;L===void 0||(x=D)!=null&&x.seekTo(L,!0);_.ip(f)})});
return _.v("macro-markers-panel-item-view-model",{class:_.pG("ytwMacroMarkersPanelItemViewModelHost",{"is-active":q}),el:I,"on:click":G,tabindex:0,role:"button"},_.v(_.VX,{data:function(){var l;return(l=b())==null?void 0:l.item}},{timelineChapterViewModel:function(l){return _.v(Mv9,{data:l.data,
active:q})},
timelineItemViewModel:function(l){return _.v(Ad8,{data:l.data,active:q})},
videoAttributeViewModel:hJQ,shoppingDescriptionItemViewModel:BXD}))},"tf");
ZOY.idomCompat=!0;_.JN(ZOY,"macro-markers-panel-item-view-model",{props:{data:_.hV}});_.JN(ga3,"yt-video-attributes-section-view-model",{props:{data:_.hV}});var tvc=_.C(function(G){var b=function(){var I,h,q;return(q=(I=G.data().leadingLogoAccessibility)==null?void 0:(h=I.accessibilityData)==null?void 0:h.label)!=null?q:""};
return _.v("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.v(_.Q,{cond:function(){return G.data().leadingLogo},
then:function(I){return _.v(_.Fu,{className:"ytwFantasySectionHeaderViewModelLogo",data:I,alt:b})}}),_.v("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.v(_.IS,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return G.data().title}}),_.v(_.IS,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return G.data().subtitle}})),_.v(_.VX,{data:function(){return G.data().trailingButton}},{buttonViewModel:function(I){return _.v(_.sQ,{data:I.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"uf");var zBD=_.C(function(G){var b={};b=_.pG("ytwFantasyTeamViewModelHost",(b.ytwFantasyTeamViewModelCompact=function(){var q;return!((q=G.compact)==null||!q.call(G))},b.ytwFantasyTeamViewModelUser=function(){return G.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},b.ytwFantasyTeamViewModelOpponent=function(){return G.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},b));
var I=function(){var q,l,V;return(V=(q=G.data().teamLogoAccessibility)==null?void 0:(l=q.accessibilityData)==null?void 0:l.label)!=null?V:""},h=_.lA(Tbr,function(){return G.data().teamEntityKey});
return _.v("ytw-fantasy-team-view-model",{class:b},_.v(_.Q,{cond:function(){return G.data().teamLogo},
then:function(q){return _.v(_.Fu,{className:"ytwFantasyTeamViewModelLogo",data:q,alt:I})}}),_.v("div",{class:"ytwFantasyTeamViewModelMetadata"},_.v("div",{class:"ytwFantasyTeamViewModelHeader"},_.v(_.IS,{className:"ytwFantasyTeamViewModelScore",
text:function(){var q;return(q=h())==null?void 0:q.score}}),_.v(_.ha,{icon:function(){var q;
return(q=h())==null?void 0:q.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.v(_.IS,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var q;return(q=h())==null?void 0:q.projectedScore}})),_.v(_.IS,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return G.data().primaryText}}),_.v(_.IS,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return G.data().secondaryText}}),_.v(_.IS,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return G.data().tertiaryText}})),_.v(_.IS,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var q;return(q=h())==null?void 0:q.score}}))},"vf");_.JN(_.C(function(G){return _.v("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.v("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.v(_.VX,{data:function(){return G.data().summaryHeader}},{fantasySectionHeaderViewModel:tvc})),_.v(_.VX,{data:function(){return G.data().userTeam}},{fantasyTeamViewModel:zBD}),_.v(_.VX,{data:function(){return G.data().opponentTeam}},{fantasyTeamViewModel:zBD}))},"wf"),"fantasy-league-summary-view-model",{props:{data:_.hV}});var oaD=_.C(function(G){var b=_.N5(G,{shape:{},useCustomTabRenderable:!1}),I=b.shape;b=b.useCustomTabRenderable;var h=G.customTabRenderable,q=function(){return I().disabled},l=function(){return I().selected},V=function(){return I().title},D=function(){return I().icon},k=_.ee("yt-tab-shape");
G=_.Xu(function(f){var T;if(!q()&&((T=I().aTagConfig)==null?0:T.onclick))I().aTagConfig.onclick(f);return!1});
var L=_.Xu(function(f){if(f.key==="Enter"||f.key==="ArrowUp"||f.key==="ArrowDown")f.preventDefault(),k.value.click();return!1}),x={};
return _.v("yt-tab-shape",{class:_.pG("yt-tab-shape",function(){return I().className},(x["yt-tab-shape__tab--last-tab"]=function(){return I().isLastTab},x["yt-tab-shape--host-disabled"]=q,x["yt-tab-shape--host-clickable"]=!h,x)),
role:h?void 0:"tab","aria-selected":l!=null?l:!1,"aria-disabled":q,tabindex:h?void 0:0,"on:click":G,"on:keydown":L,el:k,"tab-identifier":function(){return I().identifier},
"tab-title":V},_.v(_.Q,{cond:b,then:function(){return h()},
else:function(){var f={},T={};return _.v(_.xz,null,_.v("div",{class:_.pG("yt-tab-shape__tab",(f["yt-tab-shape__tab--tab-selected"]=l,f))},_.v(_.Q,{cond:D,then:function(B){return _.v(_.ha,{className:"yt-tab-shape__tab-icon",icon:function(){return B().iconType}})}}),V),_.v("div",{class:_.pG("yt-tab-shape__tab-bar",(T["yt-tab-shape__tab-bar--tab-bar-selected"]=l,T))}))}}))},"xf");
oaD.idomCompat={callbacks:{customTabRenderable:!0}};_.Pse=_.C(function(G){var b=G.shape;G=_.e(_.ZZ(48,void 0,"nDAx4"));var I=G.next().value,h=G.next().value;G=_.e(_.ZZ(0,void 0,"GCgjqb"));var q=G.next().value,l=G.next().value,V=function(){return b().tabs},D=_.ee("yt-tab-group-shape"),k=function(){var T,B;
return(B=(T=V())==null?void 0:T.findIndex(function(A){return A.selected}))!=null?B:-1};
G=_.e(_.ZZ(!1,void 0,"SU01tf"));var L=G.next().value,x=G.next().value,f=function(){L()||_.uu.addJob(function(){x(!0)},0)};
_.K0(function(){var T=k(),B=_.uu.addJob(function(){var A,t=((A=D.value)==null?void 0:A.querySelectorAll("yt-tab-shape"))||[],y;h(((y=T>-1?t[T]:void 0)==null?void 0:y.getBoundingClientRect().width)||0);for(y=A=0;y<T;y++)A+=t[y].offsetWidth+24;_.wy("HTML_DIR")==="rtl"&&(A=-A);l(A);f()},8,0);
_.uI(function(){_.uu.cancelJob(B)})},"PMwgb");
G={};return _.v("yt-tab-group-shape",{class:_.pG("tabGroupShapeHost",(G.tabGroupShapeOverflowHidden=function(){return b().isOverflowHidden},G)),
el:D},_.v(_.Q,{cond:V,then:function(T){return _.v(_.xz,null,_.v("div",{class:"tabGroupShapeTabs",role:"tablist"},_.v(_.aj,{each:T},function(B,A){return _.v(oaD,{shape:function(){return Object.assign({},B,{isLastTab:A()===T().length-1})},
customTabRenderable:B.customTabRenderable,useCustomTabRenderable:!!B.customTabRenderable})})),_.v(iOY,{width:I,
sliderOffset:q,enableTransition:L}))}}))},"zf");
_.Pse.idomCompat=!0;var iOY=_.C(function(G){var b=_.a9(G.sliderOffset,0),I=G.width,h=G.enableTransition;G={};return _.v("div",{class:_.pG("tabGroupShapeSlider",(G.tabGroupShapeSliderTransition=function(){return h()},G)),
style:_.Ir({width:function(){return I()+"px"},
transform:function(){return"translateX("+b()+"px)"}})})},"Af");var dre=_.C(function(G){var b=function(){var l,V,D;return(D=(l=G.data().playerLogoAccessibility)==null?void 0:(V=l.accessibilityData)==null?void 0:V.label)!=null?D:""},I=_.lA(BbO,function(){return G.data().playerEntityKey}),h={};
h=_.pG("ytwFantasyPlayerViewModelHost",(h.ytwFantasyPlayerViewModelPlaying=function(){var l;return!((l=I())==null||!l.isPlayerPlaying)},h.ytwFantasyPlayerViewModelOnField=function(){var l;
return((l=I())==null?void 0:l.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},h.ytwFantasyPlayerViewModelRedZone=function(){var l;
return((l=I())==null?void 0:l.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},h));
var q=function(){var l,V,D,k=((l=_.LL().resolve(_.vf(_.Pv)))==null?0:l())?(V=G.data().playerLogoBackgroundColor)==null?void 0:V.darkTheme:(D=G.data().playerLogoBackgroundColor)==null?void 0:D.lightTheme;return k===void 0?"":_.so(k)};
return _.v("ytw-fantasy-player-view-model",{class:h},_.v(_.Q,{cond:function(){return G.data().playerLogo},
then:function(l){return _.v("div",{class:"ytwFantasyPlayerViewModelLogo"},_.v("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.v(_.Fu,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Ir({"background-color":q}),data:l,alt:b})),_.v("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.v(_.ha,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.v("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.v("div",{class:"ytwFantasyPlayerViewModelHeader"},_.v(_.IS,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var l;return(l=G.data())==null?void 0:l.playerNameText}}),_.v(_.IS,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var l;return(l=G.data())==null?void 0:l.playerDescriptionText}})),_.v("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.v(_.IS,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var l;return(l=I())==null?void 0:l.gamePeriodText}}),_.v(_.IS,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var l;return(l=G.data())==null?void 0:l.opponentTeamText}}),_.v(_.IS,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var l;return(l=I())==null?void 0:l.gameStatusText}}),_.v(_.IS,{className:_.pG("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var l;return(l=I())==null?void 0:l.playerStatusText}})),_.v("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.v(_.IS,{text:function(){var l;
return(l=I())==null?void 0:l.playerStatsText}}))),_.v(_.IS,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var l;return(l=I())==null?void 0:l.fantasyScore}}))},"Bf");var yda=_.C(function(G){return _.v("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.v(_.Q,{cond:function(){return G.data().players},
then:function(b){return _.v(_.VX,{data:b},{fantasyPlayerViewModel:dre})}}))},"Cf");var rdj=_.C(function(G){var b=_.e(_.bk(function(){var q;return(q=G.data().selectedTabIdentifierKey)!=null?q:""})),I=b.next().value,h=b.next().value;
_.JC(function(){var q;(q=G.setSelectedTabSignal)==null||q.call(G,I)});
return _.v("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.v("div",{class:"ytTabbedViewModelTabGroup"},_.v(_.Pse,{shape:function(){var q=G.data(),l=[],V={tabs:l};if(!q.tabs)return V;q=_.e(q.tabs);for(var D=q.next(),k={};!D.done;k={tabViewModel:void 0},D=q.next())if(k.tabViewModel=_.g(D.value,N1A),k.tabViewModel){var L=D=void 0;l.push({aTagConfig:{onclick:function(x){return function(){var f;h((f=x.tabViewModel.tabIdentifier)!=null?f:"")}}(k)},
identifier:k.tabViewModel.tabIdentifier,selected:I()===k.tabViewModel.tabIdentifier,title:(L=(D=k.tabViewModel.title)==null?void 0:D.content)!=null?L:""})}return V}})),_.v(_.VX,{data:function(){var q,l=_.e((q=G.data().tabs)!=null?q:[]);
for(q=l.next();!q.done;q=l.next())if((q=_.g(q.value,N1A))&&q.tabIdentifier===I())return q.content}},{fantasyRosterViewModel:yda}))},"Ef");_.JN(_.C(function(G){var b=_.e(yGO()),I=b.next().value,h=b.next().value;return _.v("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.v(_.IS,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return G.data().title}}),_.v(_.Q,{cond:function(){return G.data().tabbedViewModel},
then:function(q){return _.v(_.VX,{data:q},{tabbedViewModel:function(l){return _.v(rdj,{data:l.data,setSelectedTabSignal:h})}})}}),_.v(_.Q,{cond:function(){var q,l=(q=_.g(G.data().tabbedViewModel,Ymn))==null?void 0:q.tabs;
q=_.g(l==null?void 0:l[0],N1A);l=_.g(l==null?void 0:l[1],N1A);var V=q==null?void 0:q.tabIdentifier;if(I()===V){var D,k;if(!((D=_.g(q==null?void 0:q.content,XOA))==null?0:(k=D.players)==null?0:k.length))return G.data().noUserTeamPlayersText}else{var L,x;if(!((L=_.g(l==null?void 0:l.content,XOA))==null?0:(x=L.players)==null?0:x.length))return G.data().noOpponentTeamPlayersText}},
then:function(q){return _.v(_.IS,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:q})}}))},"Ff"),"ytw-fantasy-matchup-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){return _.v("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.v(_.IS,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return G.data().title}}),_.v(_.Q,{cond:function(){return G.data().matchupTeamPairs},
then:function(b){return _.v(_.aj,{each:b,keyBy:"INDEX"},function(I){return _.v("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.v(_.VX,{data:function(){return[I().firstTeam,I().secondTeam]}},{fantasyTeamViewModel:function(h){return _.v(zBD,{data:h.data,
compact:!0})}}))})}}))},"Gf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=function(){var q,l,V;return(V=(q=G.data().userLogoAccessibility)==null?void 0:(l=q.accessibilityData)==null?void 0:l.label)!=null?V:""},I=function(){var q,l,V;
return(V=(q=G.data().opponentLogoAccessibility)==null?void 0:(l=q.accessibilityData)==null?void 0:l.label)!=null?V:""},h=_.lA(fod,function(){return G.data().entityKey});
return _.v("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.v("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.v(_.Q,{cond:function(){return G.data().userLogo},
then:function(q){return _.v(_.Fu,{className:"ytwFantasyWinProbabilityViewModelLogo",data:q,alt:b})}}),_.v("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.v(_.IS,{text:function(){return G.data().title}})),_.v(_.Q,{cond:function(){return G.data().opponentLogo},
then:function(q){return _.v(_.Fu,{className:"ytwFantasyWinProbabilityViewModelLogo",data:q,alt:I})}})),_.v("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.v("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.v(_.IS,{text:function(){var q;
return(q=h())==null?void 0:q.userWinNumberLabel}})),_.v("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.v("div",{class:_.pG("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Ir({flex:function(){var q,l;return(l=(q=h())==null?void 0:q.userWinNumber)!=null?l:50}})}),_.v("div",{class:_.pG("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Ir({flex:function(){var q,l;return(l=(q=h())==null?void 0:q.opponentWinNumber)!=null?l:50}})})),_.v("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.v(_.IS,{text:function(){var q;
return(q=h())==null?void 0:q.opponentWinNumberLabel}}))))},"Hf"),"fantasy-win-probability-view-model",{props:{data:_.hV}});var FpW={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},HOj=_.C(function(G){return _.v(_.VX,{data:G.button},{buttonViewModel:function(b){return _.v(_.sQ,{data:b.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"If"),WpF=_.C(function(G){return _.v("ytd-backstage-locked-post-view-model",{class:_.pG("ytdBackstageLockedPostViewModelHost",G.className)},_.v("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.v("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.v(_.VX,
{data:function(){return G.data().authorAvatar}},{decoratedAvatarViewModel:_.w1})),_.v("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.v("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.v(_.IS,{text:function(){return G.data().authorText}})),_.v("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.v(_.IS,{text:function(){return G.data().publishedTimeText}}),_.v(_.VX,{data:function(){return G.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(b){return _.v(HgX,
{data:b.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.v("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.v(_.IS,{text:function(){return G.data().contentText}})),_.v(_.Nc,null,_.v(_.H3,{when:function(){return G.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.v("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.v(_.Fu,{data:FpW,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.v(_.IS,{text:function(){return G.data().lockedText}}))}),_.v(_.H3,{when:function(){return G.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.v("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.v("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.v(_.Fu,{data:FpW,
alt:""})),_.v(_.IS,{text:function(){return G.data().lockedText}}))})),_.v("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.v(HOj,{button:function(){return G.data().likeButton}}),_.v("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return G.data().voteCountA11y}},_.v(_.IS,{text:function(){return G.data().voteCount}})),_.v(HOj,{button:function(){return G.data().dislikeButton}}),_.v(HOj,{button:function(){return G.data().commentButton}}),_.v("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return G.data().commentCountA11y}},_.v(_.IS,{text:function(){return G.data().commentCount}}))))},"Jf");
WpF.idomCompat=!0;_.JN(WpF,"ytd-backstage-locked-post-view-model",{props:{data:_.hV,className:_.hV}});_.QO("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var V0=function(){var G=_.a.apply(this,arguments)||this;G.darkerPanels=_.U("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.notSticky=!1;G.epRestyle=!1;G.isCarouselInFeed=!0;G.topSpacingZero=!1;G.continuationIsInitialLoad=!0;G.enableSqueezebackPanels=_.U("web_shorts_enable_squeezeback_panels");G.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");
G.mastheadHeight=0;G.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};G.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return G};
_.M(V0,_.a);_.m=V0.prototype;_.m.updateLockupContainerTypes=function(G){if(this.eligibleToSwitchToGrid){var b;(b=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||b.forEach(function(I){I.containerType=G})}};
_.m.getItemsPath=function(){return"data.contents"};
_.m.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.m.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:_.U("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.U("kevlar_low_priority_continuation")}}};
_.m.created=function(){};
_.m.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.m.handleIntersect=function(G){this.notSticky=G[0].intersectionRatio===1};
_.m.attached=function(){var G=this;if(_.U("web_fix_sticky_playlist_header_v2")){var b=_.U("web_item_section_sticky_header_use_scroll_as_fallback");b||document.addEventListener("scroll",_.I9(this,this.updateHeaderState));var I;this.mastheadHeight=((I=document.querySelector("ytd-masthead"))==null?void 0:I.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(h){G.handleIntersect(h)},{rootMargin:"-"+
(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):b&&document.addEventListener("scroll",_.I9(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){G.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))}};
_.m.detached=function(){if(_.U("web_fix_sticky_playlist_header_v2")){document.removeEventListener("scroll",_.I9(this,this.updateHeaderState));var G;(G=this.intersectionObserver)==null||G.disconnect();var b;(b=this.resizeObserver)==null||b.disconnect()}};
_.m.updated=function(G){G.has("data")&&_.U("web_fix_sticky_playlist_header_v2")&&this.updateHeaderState()};
_.m.dispatchChipBarIsSticky=function(){_.U("web_fix_sticky_playlist_header_v2")&&this.ytdReduxBehavior.dispatch(mdu(!this.notSticky))};
_.m.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var G=_.Eo(this.hostElement).querySelector("ytd-comments-header-renderer");G&&(G.hidePanelButton=this.commentsHidePanelButton)}};
_.m.onRetrieveLocation=function(G,b){this.containsComments()&&(this.firstCommentsLoaded=b.hasComments=!0)};
_.m.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.m.onLoadReloadContinuation=function(G,b){var I=this;G.stopPropagation();this.isReloading=!0;_.O3(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(h){var q=_.LL().resolve(_.cy);h=b(h);q.postData(h).then(function(l){I.onReloadContinuationData(l)})}})};
_.m.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};
_.m.computeContentsClass=function(G){return G?"reloading":""};
_.m.computeSectionIdentifier=function(G){return G==null?void 0:G.sectionIdentifier};
_.m.computeFitContainer=function(G){return(G==null?void 0:G.sectionIdentifier)==="youchat-item-section"};
_.m.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.U("kevlar_disable_comments_auto_load")};
_.m.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.m.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.m.computeHasDestinationShelfRenderer=function(G){var b,I;return!!(G==null?0:(b=G.contents)==null?0:(I=b[0])==null?0:I.destinationShelfRenderer)};
_.m.computeHasSectionGroupViewModel=function(G){var b,I;return!!(G==null?0:(b=G.contents)==null?0:(I=b[0])==null?0:I.sectionGroupViewModel)};
_.m.computeHasQrCodeRenderer=function(G){var b,I;return!!(G==null?0:(b=G.contents)==null?0:(I=b[0])==null?0:I.qrCodeRenderer)};
_.m.computeStaticCommentsHeader=function(G){return G&&this.containsComments()};
_.m.computeEpRestyle=function(G){return _.U("web_ep_restyling")&&G&&this.containsComments()};
_.m.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"};
_.m.computeSuppressPaddingDisclaimer=function(){var G,b,I,h;return!!((G=this.data)==null?0:(b=G.contents)==null?0:(I=b[0])==null?0:(h=I.productListHeaderRenderer)==null?0:h.suppressPaddingDisclaimer)};
_.m.computeHeaderStyle=function(G){switch(G==null?void 0:G.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.m.dataChanged=function(){this.firstCommentsLoaded=!1};
_.m.observeDataContentsLength=function(){var G,b;((G=this.data)==null?0:(b=G.contents)==null?0:b.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.m.onYtDismissibleItemDismissedChange=function(G){this._setItemDismissed(G.type==="yt-dismissible-item-dismissed")};
_.m.triggerContinuations=function(){for(var G=_.Eo(this.hostElement).querySelector("#continuations").children,b=0;b<G.length;b++)G[b].trigger()};
_.m.triggerInitialContinuations=function(){for(var G=_.Eo(this.hostElement).querySelector("#continuations").children,b=0;b<G.length;b++)G[b].triggerIfNotPreviouslyTriggered()};
_.m.handleYtItemSectionContinuation=function(G,b){var I;b&&((I=this.data)==null?void 0:I.sectionIdentifier)!==b||(this.set("data.continuations",[G]),this.triggerContinuations())};
_.m.handleYtItemSectionReplace=function(G,b){var I;b&&((I=this.data)==null?void 0:I.sectionIdentifier)!==b||(this.set("data.contents",G),this.set("data.continuations",[]))};
_.m.computeUseHeightHack=function(G){return G&&!_.U("kevlar_disable_height_hack")};
_.m.computeTopSpacingZero=function(G){return G};
_.m.continuationShowButtonChanged=function(){var G=_.Eo(this.hostElement).querySelector("ytd-continuation-item-renderer");G&&(G.showButton=this.continuationShowButton)};
_.m.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("data-changed",this.data))};
_.kV.Object.defineProperties(V0.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.U("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}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.U("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.U("web_fix_sticky_playlist_header_v2")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return!!((G=this.data)==null?0:(b=G.contents)==null?0:(I=b[0])==null?0:I.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h,q,l,V;return!!((G=this.data)==null?0:(b=G.contents)==null?0:(I=b[0])==null?0:(h=I.shelfRenderer)==null?0:(q=h.content)==null?0:(l=q.gridRenderer)==null?0:(V=l.targetId)==null?0:V.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return!!((G=this.data)==null?0:(b=G.contents)==null?0:(I=b[0])==null?0:I.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return!!((G=this.data)==null?0:(b=G.contents)==null?0:(I=b[0])==null?0:I.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.UG("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.U("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.U("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
V0.prototype.dataChangedForBinding=V0.prototype.dataChangedForBinding;V0.prototype.continuationShowButtonChanged=V0.prototype.continuationShowButtonChanged;V0.prototype.onYtDismissibleItemDismissedChange=V0.prototype.onYtDismissibleItemDismissedChange;V0.prototype.observeDataContentsLength=V0.prototype.observeDataContentsLength;V0.prototype.dataChanged=V0.prototype.dataChanged;V0.prototype.onServiceRequestCompleted=V0.prototype.onServiceRequestCompleted;V0.prototype.onLoadReloadContinuation=V0.prototype.onLoadReloadContinuation;
V0.prototype.onRetrieveLocation=V0.prototype.onRetrieveLocation;V0.prototype.commentsHidePanelButtonChanged=V0.prototype.commentsHidePanelButtonChanged;V0.prototype.dispatchChipBarIsSticky=V0.prototype.dispatchChipBarIsSticky;V0.prototype.updateLockupContainerTypes=V0.prototype.updateLockupContainerTypes;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],V0.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],V0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.L9.YtLazyListBehavior),_.n("design:type",Object)],V0.prototype,"ytLazyListBehavior",void 0);_.R([_.z(_.eC.YtNextContinuationBehavior),_.n("design:type",Object)],V0.prototype,"ytNextContinuationBehavior",void 0);
_.R([_.z(_.mD),_.n("design:type",Object)],V0.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],V0.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],V0.prototype,"ytdReduxBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],V0.prototype,"darkerPanels",void 0);_.R([_.H(),_.n("design:type",Object)],V0.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Boolean)],V0.prototype,"engagementPanel",void 0);_.R([_.H(),_.n("design:type",Object)],V0.prototype,"commentsHidePanelButton",void 0);_.R([_.H(),_.n("design:type",Object)],V0.prototype,"isWatchGrid",void 0);_.R([_.H(),_.n("design:type",Object)],V0.prototype,"continuationShowButton",void 0);_.R([_.H({computed:"computeIsContinuationCommentSection(data)"}),_.n("design:type",Boolean)],V0.prototype,"continuationIsCommentsSection",void 0);
_.R([_.H({value:!0}),_.n("design:type",Boolean)],V0.prototype,"autoFill",void 0);_.R([_.H(),_.n("design:type",Boolean)],V0.prototype,"continuationDisablePrescanVisibility",void 0);_.R([_.H(),_.n("design:type",Boolean)],V0.prototype,"isReloading",void 0);_.R([_.H(),_.n("design:type",Object)],V0.prototype,"isSearch",void 0);_.R([_.H(),_.n("design:type",Object)],V0.prototype,"isConstrainedList",void 0);_.R([_.H(),_.n("design:type",Object)],V0.prototype,"isWatch",void 0);
_.R([_.H(),_.n("design:type",Object)],V0.prototype,"eligibleToSwitchToGrid",void 0);_.R([_.H(),_.n("design:type",Object)],V0.prototype,"useBigThumbs",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],V0.prototype,"notSticky",void 0);_.R([_.H({selector:_.sd,reflectToAttribute:!0}),_.n("design:type",Object)],V0.prototype,"isGridViewEnabled",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.n("design:type",Object)],V0.prototype,"epRestyle",void 0);_.R([_.P("isWatch"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],V0.prototype,"hideShortsShelfHeader",null);_.R([_.P("isSearch","isWatch"),_.n("design:type",String),_.n("design:paramtypes",[])],V0.prototype,"thumbnailWidth",null);
_.R([_.P("isSearch","containerWidth"),_.n("design:type",Object),_.n("design:paramtypes",[])],V0.prototype,"thumbnailTargetWidth",null);_.R([_.P("isSearch","isWatch","useBigThumbs"),_.n("design:type",String),_.n("design:paramtypes",[])],V0.prototype,"sizing",null);_.R([_.P("isWatch","isGridViewEnabled","useBigThumbs","data"),_.H({reflectToAttribute:!0}),_.n("design:type",Number),_.n("design:paramtypes",[])],V0.prototype,"lockupContainerType",null);
_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],V0.prototype,"hasHeader",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],V0.prototype,"expFixPlaylistHeader",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],V0.prototype,"expFixPlaylistHeaderV2",null);
_.R([_.q5("lockupContainerType","data"),_.n("design:type",Function),_.n("design:paramtypes",[Number]),_.n("design:returntype")],V0.prototype,"updateLockupContainerTypes",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],V0.prototype,"pageSubtype",void 0);_.R([_.H(),_.n("design:type",Number)],V0.prototype,"containerWidth",void 0);_.R([_.H(),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],V0.prototype,"isPlaylist",null);
_.R([_.H(),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],V0.prototype,"isClipList",null);_.R([_.H(),_.n("design:type",Object)],V0.prototype,"isCarouselInFeed",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],V0.prototype,"isPlaylistVideoContainer",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],V0.prototype,"isSearchFrictionPage",null);
_.R([_.H({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.n("design:type",Boolean)],V0.prototype,"useHeightHack",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.n("design:type",Object)],V0.prototype,"topSpacingZero",void 0);_.R([_.H({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.n("design:type",Boolean)],V0.prototype,"showButton",void 0);
_.R([_.H(),_.n("design:type",Boolean)],V0.prototype,"firstCommentsLoaded",void 0);_.R([_.H(),_.n("design:type",Object)],V0.prototype,"continuationIsInitialLoad",void 0);_.R([_.H({reflectToAttribute:!0,readOnly:!0}),_.n("design:type",Boolean)],V0.prototype,"itemDismissed",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.n("design:type",String)],V0.prototype,"sectionIdentifier",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.n("design:type",String)],V0.prototype,"fitContainer",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.n("design:type",Boolean)],V0.prototype,"hasDestinationShelfRenderer",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.n("design:type",Boolean)],V0.prototype,"staticCommentsHeader",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],V0.prototype,"enableSqueezebackPanels",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],V0.prototype,"enableAnchoredPanel",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.n("design:type",Boolean)],V0.prototype,"hasSectionGroupViewModel",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.n("design:type",Boolean)],V0.prototype,"hasQrCodeRenderer",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.n("design:type",Boolean)],V0.prototype,"suppressDisclaimerSeparator",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.n("design:type",String)],V0.prototype,"headerStyle",void 0);
_.R([_.P("isSearch","isWatch","useBigThumbs"),_.n("design:type",Object),_.n("design:paramtypes",[])],V0.prototype,"lockupExperiments",null);_.R([_.P("isSearch"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],V0.prototype,"typographyBump",null);_.R([_.lH("#header"),_.n("design:type",HTMLElement)],V0.prototype,"header",void 0);_.R([_.q5("notSticky"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],V0.prototype,"dispatchChipBarIsSticky",null);
_.R([_.q5("commentsHidePanelButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],V0.prototype,"commentsHidePanelButtonChanged",null);_.R([_.hI("yt-retrieve-location"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],V0.prototype,"onRetrieveLocation",null);
_.R([_.hI("yt-load-reload-continuation"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Function]),_.n("design:returntype")],V0.prototype,"onLoadReloadContinuation",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],V0.prototype,"onServiceRequestCompleted",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],V0.prototype,"dataChanged",null);
_.R([_.Dd("data.contents.length"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],V0.prototype,"observeDataContentsLength",null);_.R([_.hI("yt-dismissible-item-dismissed"),_.hI("yt-dismissible-item-undismissed"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],V0.prototype,"onYtDismissibleItemDismissedChange",null);
_.R([_.q5("continuationShowButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],V0.prototype,"continuationShowButtonChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],V0.prototype,"dataChangedForBinding",null);_.R([_.N({is:"ytd-item-section-renderer",disableElementRegistration:!0})],V0);
_.J(V0,"ytd-item-section-renderer",function(){if(K3B!==void 0)return K3B;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return K3B=G},{mode:1});var arF;var Hjd=_.ao(_.qP("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var NXW={},FYO=(NXW[0]={title:_.RW(_.qP("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.RW(_.qP("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.KU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},NXW[1]={title:_.RW(_.qP("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.KU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},NXW);_.QO("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var DW=function(){var G=_.a.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};
_.M(DW,_.a);DW.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
DW.prototype.attached=function(){this.downloadsToRenderChanged()};
DW.prototype.detached=function(){this.set("renderableData",{})};
DW.prototype.downloadsToRenderChanged=function(){var G=_.Cw().getState().entities,b=_.fw(G),I=_.U("kevlar_playlist_dl_page_killswitch")?zdv(G):_.Ti(G),h=_.UDa(G),q=_.Mdu(G),l=_.D0(b);G=_.Bj(G);this.set("renderableData",aSB(I,b,h,q,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,l,G))};
DW.prototype.downloadsToRenderChanged=DW.prototype.downloadsToRenderChanged;_.R([_.z(_.wN),_.n("design:type",Object)],DW.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],DW.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],DW.prototype,"renderableData",void 0);_.R([_.H({selector:_.CDX}),_.n("design:type",Object)],DW.prototype,"allVideosCount",void 0);_.R([_.H({selector:TEa}),_.n("design:type",Object)],DW.prototype,"allPlaylistCount",void 0);_.R([_.H({selector:_.MO}),_.n("design:type",Object)],DW.prototype,"isOnline",void 0);_.R([_.H({selector:_.w6O}),_.n("design:type",Object)],DW.prototype,"shouldRenderDownloadsBanner",void 0);
_.R([_.H({selector:_.X6B}),_.n("design:type",Object)],DW.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.R([_.H({selector:_.EKO}),_.n("design:type",Object)],DW.prototype,"hasOptedIntoSmartDownloads",void 0);_.R([_.H({selector:_.p6B}),_.n("design:type",Object)],DW.prototype,"areAllSmartDownloadsDeleted",void 0);_.R([_.H({selector:SQB}),_.n("design:type",Object)],DW.prototype,"smartDownloadsCompleted",void 0);
_.R([_.Dd("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DW.prototype,"downloadsToRenderChanged",null);_.R([_.N({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],DW);
_.J(DW,"ytd-offline-item-section-renderer",function(){if(arF!==void 0)return arF;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return arF=G},
{mode:1});var YjL;var Cs5;var cD=function(){return _.a.apply(this,arguments)||this};
_.M(cD,_.a);
cD.prototype.onDataChanged=function(){if(this.JSC$16919_lastData){var G=this.getFilterClass(this.JSC$16919_lastData.status);G&&this.hostElement.classList.remove(G)}var b;(G=this.getFilterClass((b=this.data)==null?void 0:b.status))&&this.hostElement.classList.add(G);G==="selected"?_.Eo(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Eo(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");G==="disabled"?_.Eo(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Eo(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16919_lastData=this.data};
cD.prototype.getFilterClass=function(G){switch(G){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
cD.prototype.onDataChanged=cD.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],cD.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cD.prototype,"onDataChanged",null);_.R([_.N({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],cD);
_.J(cD,"ytd-search-filter-renderer",function(){if(Cs5!==void 0)return Cs5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Cs5=G},{mode:_.nn("kevlar_poly_si_batch_j075")?1:2});var kh=function(){return _.a.apply(this,arguments)||this};
_.M(kh,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],kh.prototype,"data",void 0);_.R([_.N({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],kh);
_.J(kh,"ytd-search-filter-group-renderer",function(){if(YjL!==void 0)return YjL;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YjL=G},{mode:_.nn("kevlar_poly_si_batch_j075")?1:2});var Jda;var vD=function(){return _.a.apply(this,arguments)||this};
_.M(vD,_.a);vD.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Uc());this.isCollapsed=!this.isCollapsed};
vD.prototype.navigateToAboutTheseResultsPage=function(){var G=_.YI("https://www.youtube.com/howyoutubeworks/product-features/search/");G?_.bp(window,G,"_blank"):_.Xj(Error("Uh"))};
vD.prototype.dataChanged=function(){this.isCollapsed=!0};
vD.prototype.computeShowBottomBorder=function(){var G,b,I;return!!((G=this.data)==null?0:(b=G.button)==null?0:b.toggleButtonRenderer)||!((I=this.data)==null||!I.aboutTheseResultsButton)};
vD.prototype.dataChanged=vD.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],vD.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.n("design:type",Boolean)],vD.prototype,"showBottomBorder",void 0);_.R([_.H(),_.n("design:type",Boolean)],vD.prototype,"renderCollapsibleMenu",void 0);
_.R([_.H(),_.n("design:type",Boolean)],vD.prototype,"isCollapsed",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vD.prototype,"dataChanged",null);_.R([_.N({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],vD);
_.J(vD,"ytd-search-sub-menu-renderer",function(){if(Jda!==void 0)return Jda;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Jda=G},{mode:1});var Kpc;var uO3=new _.q3("SECTION_LIST_RENDERER_TOKEN");var RBa;var L7=function(){return _.a.apply(this,arguments)||this};
_.M(L7,_.a);L7.prototype.computeStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],L7.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],L7.prototype,"headerStyle",void 0);_.R([_.N({is:"ytd-text-header-renderer",disableElementRegistration:!0})],L7);
_.J(L7,"ytd-text-header-renderer",function(){if(RBa!==void 0)return RBa;var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return RBa=G},{mode:1});var naK;var Q0=function(){return _.a.apply(this,arguments)||this};
_.M(Q0,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Q0.prototype,"data",void 0);_.R([_.N({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Q0);
_.J(Q0,"ytd-minor-moment-header-renderer",function(){if(naK!==void 0)return naK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return naK=G},{mode:1});var OOD;var xh=function(){return _.a.apply(this,arguments)||this};
_.M(xh,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],xh.prototype,"data",void 0);_.R([_.N({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],xh);
_.J(xh,"ytd-minor-moment-setting-alert-renderer",function(){if(OOD!==void 0)return OOD;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return OOD=G},{mode:1});var w23;var EaD;var f7=function(){var G=_.a.apply(this,arguments)||this;G.booleanSettingById=!1;G.smartDownloadsEnabledVE=_.Xs(128287);G.smartDownloadsDisabledVE=_.Xs(128286);G.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return G};
_.M(f7,_.a);_.m=f7.prototype;_.m.attachSmartDownloadsSettingVes=function(){var G;this.activeVeForLogging||((G=this.data)==null?void 0:G.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.iz(_.qo(),this.smartDownloadsEnabledVE),_.iz(_.qo(),this.smartDownloadsDisabledVE))};
_.m.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.O3(this.hostElement,"yt-settings-switch-ready")};
_.m.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.m.onSwitchChange=function(G){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(G=_.a_(G).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.U("kevlar_settings_switch_resolve_command_killswitch")?_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(G)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.m.handleUpdateSettingsSwitch=function(G){(G=_.g(G,xsJ))&&this.data&&this.data.id===G.id&&this.set("data.enabled",!!G.enabled)};
_.m.onToggleSettingsSwitch=function(G,b){this.data&&this.data.id===G&&this.set("data.enabled",b!=null?b:!this.data.enabled)};
_.m.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.TW.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.m.maybeLogSmartDownloadsSettingVisibility=function(){var G=_.gL(),b;G&&((b=this.data)==null?void 0:b.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.FT(G,[this.smartDownloadsEnabledVE]),_.HT(G,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.FT(G,[this.smartDownloadsDisabledVE]),_.HT(G,[this.smartDownloadsEnabledVE])))};
_.m.maybeLogSmartDownloadsSettingClick=function(){var G;((G=this.data)==null?void 0:G.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.dS(_.qo(),this.activeVeForLogging)};
_.m.updateDataEnabledFromBinding=function(G){this.set("data.enabled",G.detail.value)};
_.kV.Object.defineProperties(f7.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}}});
f7.prototype.dataChanged=f7.prototype.dataChanged;_.R([_.z(_.wN),_.n("design:type",Object)],f7.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],f7.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],f7.prototype,"ytComponentBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],f7.prototype,"data",void 0);_.R([_.H({selector:function(G,b){if(Object.keys(G==null?void 0:G.entities).length)switch(b){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return oKr(G.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.n("design:type",Object)],f7.prototype,"booleanSettingById",void 0);_.R([_.H(),_.n("design:type",U3)],f7.prototype,"activeVeForLogging",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],f7.prototype,"toggleAriaLabel",null);_.R([_.Dd("data"),_.Dd("booleanSettingById"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f7.prototype,"dataChanged",null);
_.R([_.N({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],f7);
_.J(f7,"ytd-settings-switch-renderer",function(){if(EaD!==void 0)return EaD;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return EaD=G},{mode:1});var T2=function(){return _.a.apply(this,arguments)||this};
_.M(T2,_.a);T2.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}}}}};
_.kV.Object.defineProperties(T2.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],T2.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],T2.prototype,"contentsClassName",null);_.R([_.N({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],T2);
_.J(T2,"ytd-minor-moment-setting-section-renderer",function(){if(w23!==void 0)return w23;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return w23=G},{mode:1});var p2K;var BD=function(){return _.a.apply(this,arguments)||this};
_.M(BD,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],BD.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],BD.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],BD);
_.J(BD,"ytd-empty-product-details-renderer",function(){if(p2K!==void 0)return p2K;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return p2K=G},{mode:1});var Sj8;var X2j;var Uf=function(){var G=_.a.apply(this,arguments)||this;G.expanded=!0;return G};
_.M(Uf,_.a);Uf.prototype.getBadgeRowClass=function(G,b,I){for(var h=_.e(this.hostElement.querySelectorAll("yt-img-shadow")),q=h.next();!q.done;q=h.next())q.value.onShow();G=G.selected;return I?G!==-1?G===b?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(G!==void 0?G:0)===b?"badge-line":"badge-hidden"};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Uf.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Uf.prototype,"expanded",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Uf);
_.J(Uf,"ytd-sponsorships-loyalty-badges-renderer",function(){if(X2j!==void 0)return X2j;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return X2j=G},{mode:1});var $8F;var sf=function(){var G=_.a.apply(this,arguments)||this;G.expanded=!0;return G};
_.M(sf,_.a);sf.prototype.getContainerClasses=function(G,b){G=G?"expanded":"collapsed";b&&(G+=" item");return G};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],sf.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],sf.prototype,"expanded",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],sf);
_.J(sf,"ytd-sponsorships-perk-renderer",function(){if($8F!==void 0)return $8F;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $8F=G},{mode:1});var GA9;var gT=function(){var G=_.a.apply(this,arguments)||this;G.expanded=!0;return G};
_.M(gT,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],gT.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],gT.prototype,"expanded",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],gT);
_.J(gT,"ytd-sponsorships-perks-renderer",function(){if(GA9!==void 0)return GA9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return GA9=G},{mode:1});var A7=function(){var G=_.a.apply(this,arguments)||this;G.isCollapsed=!1;return G};
_.M(A7,_.a);A7.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
A7.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
A7.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var G;this.expandCollapseButton=_.g((G=this.data)==null?void 0:G.expandButton,_.bz)}else{var b;this.expandCollapseButton=_.g((b=this.data)==null?void 0:b.collapseButton,_.bz)}};
A7.prototype.updateExpandCollapseButton=A7.prototype.updateExpandCollapseButton;A7.prototype.onDataChanged=A7.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],A7.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],A7.prototype,"isCollapsed",void 0);_.R([_.H(),_.n("design:type",Object)],A7.prototype,"expandCollapseButton",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],A7.prototype,"onDataChanged",null);_.R([_.Dd("data","isCollapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],A7.prototype,"updateExpandCollapseButton",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],A7);
_.J(A7,"ytd-sponsorships-expandable-perks-renderer",function(){if(Sj8!==void 0)return Sj8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Sj8=G},{mode:1});var bQf;var MF=function(){return _.a.apply(this,arguments)||this};
_.M(MF,_.a);MF.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],MF.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],MF.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],MF);
_.J(MF,"ytd-sponsorships-actionable-message-renderer",function(){if(bQf!==void 0)return bQf;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return bQf=G},{mode:1});var Ie1;var ZW=function(){return _.a.apply(this,arguments)||this};
_.M(ZW,_.a);_.m=ZW.prototype;_.m.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.m.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.m.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.m.computeMessageContainerStyle=function(G){var b=G.expandableItems?" style-clickable":"";return G.messageContainerStyle?G.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+b:"style-unspecified"+b};
_.m.isSinglePerk=function(G){return!!G.messageContainerStyle&&(G.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||G.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.m.onExpandedChanged=function(){var G=this;if(this.expanded)for(var b=_.e(this.hostElement.querySelectorAll("yt-img-shadow")),I=b.next();!I.done;I=b.next())I.value.onShow();_.D1(this,function(){_.O3(G.hostElement,"yt-refit")})};
_.m.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
ZW.prototype.onDataChanged=ZW.prototype.onDataChanged;ZW.prototype.onExpandedChanged=ZW.prototype.onExpandedChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ZW.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ZW.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],ZW.prototype,"expanded",void 0);
_.R([_.q5("expanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ZW.prototype,"onExpandedChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ZW.prototype,"onDataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],ZW);
_.J(ZW,"ytd-sponsorships-expandable-message-renderer",function(){if(Ie1!==void 0)return Ie1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Ie1=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var hWa;var t7=function(){return _.a.apply(this,arguments)||this};
_.M(t7,_.a);t7.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"}}}}};
t7.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.g(this.data.endButton,_.bz).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
t7.prototype.onDataChanged=t7.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],t7.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t7.prototype,"onDataChanged",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],t7);
_.J(t7,"ytd-sponsorships-heading-renderer",function(){if(hWa!==void 0)return hWa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return hWa=G},{mode:1});var quK;var z2=function(){return _.a.apply(this,arguments)||this};
_.M(z2,_.a);_.R([_.H(),_.n("design:type",Object)],z2.prototype,"data",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],z2);
_.J(z2,"ytd-sponsorships-links-renderer",function(){if(quK!==void 0)return quK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return quK=G},{mode:1});var jnj;var oY=function(){return _.a.apply(this,arguments)||this};
_.M(oY,_.a);_.m=oY.prototype;_.m.onDataChanged=function(){if(this.data&&this.data.expandableItems){var G;(G=_.Eo(this.hostElement).querySelector("tp-yt-paper-button"))==null||G.setAttribute("role","button")}else{var b;(b=_.Eo(this.hostElement).querySelector("tp-yt-paper-button"))==null||b.removeAttribute("role")}};
_.m.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.m.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.m.getTileClasses=function(G){return G?"tile expandable-tile":"tile"};
_.m.getButtonDisabled=function(G){return G?void 0:""};
oY.prototype.onDataChanged=oY.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],oY.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],oY.prototype,"expanded",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oY.prototype,"onDataChanged",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],oY);
_.J(oY,"ytd-sponsorships-list-tile-renderer",function(){if(jnj!==void 0)return jnj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jnj=G},{mode:1});var le9;var m8D;var ib=function(){return _.a.apply(this,arguments)||this};
_.M(ib,_.a);ib.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ib.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],ib);
_.J(ib,"ytd-sponsorships-promotion-renderer",function(){if(m8D!==void 0)return m8D;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return m8D=G},{mode:1});var eW1;var PD=function(){return _.a.apply(this,arguments)||this};
_.M(PD,_.a);PD.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],PD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],PD.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],PD);
_.J(PD,"ytd-sponsorships-purchase-option-renderer",function(){if(eW1!==void 0)return eW1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return eW1=G},{mode:1});var VBK;var D83;var c5L=function(){return _.a.apply(this,arguments)||this};
_.M(c5L,_.a);_.R([_.H(),_.n("design:type",Object)],c5L.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],c5L);
_.J(c5L,"ytd-ypc-offer-promo-renderer",function(){if(D83!==void 0)return D83;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return D83=G},{mode:1});var dT=function(){return _.a.apply(this,arguments)||this};
_.M(dT,_.a);_.m=dT.prototype;
_.m.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"}}}}};
_.m.expansionCTA=function(G,b){return G&&(b?G.collapseCallToAction:G.expansionCallToAction)};
_.m.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.m.expansionCallToActionTap=function(){var G=this;this.expanded=!this.expanded;_.D1(this,function(){_.O3(G.hostElement,"yt-refit")})};
_.m.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var G,b=(G=this.data)==null?void 0:G.onVisible;b&&this.ytComponentBehavior.resolveCommand(b)};
_.m.computeDisplayTitle=function(G){return!(!G||this.titledisplaystatus!=="show")};
_.m.computeDisplaySeparator=function(){return!1};
_.m.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
dT.prototype.onDataChanged=dT.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],dT.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],dT.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],dT.prototype,"data",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],dT.prototype,"expanded",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],dT.prototype,"purchaseButtonClicked",void 0);_.R([_.H({reflectToAttribute:!0,value:"show"}),_.n("design:type",String)],dT.prototype,"titledisplaystatus",void 0);_.R([_.H({computed:"computeDisplayTitle(data.title)"}),_.n("design:type",Boolean)],dT.prototype,"displayTitle",void 0);
_.R([_.H({computed:"computeDisplaySeparator(data)"}),_.n("design:type",Boolean)],dT.prototype,"displaySeparator",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dT.prototype,"onDataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],dT);
_.J(dT,"ytd-sponsorships-tier-renderer",function(){if(VBK!==void 0)return VBK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VBK=G},{mode:2});var y0=function(){return _.a.apply(this,arguments)||this};
_.M(y0,_.a);
y0.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],y0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],y0.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],y0);
_.J(y0,"ytd-sponsorships-management-renderer",function(){if(le9!==void 0)return le9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return le9=G},{mode:1});var kAj;var rT=function(){return _.a.apply(this,arguments)||this};
_.M(rT,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],rT.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],rT);
_.J(rT,"ytd-open-in-native-app-view-model",function(){if(kAj!==void 0)return kAj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return kAj=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var vbc;var LO8;var QnW=_.WP(["top-"]),x8K=_.WP(["bottom-"]),fea=_.WP(["left-"]),Tzj=_.WP(["right-"]),Bzc={},U8L=function(G,b,I){G.removeAttribute("top-"+I);G.removeAttribute("bottom-"+I);G.removeAttribute("left-"+I);G.removeAttribute("right-"+I);b&&(b.top&&_.Vs([_.fy(QnW)],G,"top-"+I,b.top),b.bottom&&_.Vs([_.fy(x8K)],G,"bottom-"+I,b.bottom),b.left&&_.Vs([_.fy(fea)],G,"left-"+I,b.left),b.right&&_.Vs([_.fy(Tzj)],G,"right-"+I,b.right))};
Bzc.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(G){var b,I=_.Eo((b=this.hostElement)!=null?b:this),h;b=this.cardItemBoxBehaviorMarginTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(h=this.hostElement)!=null?h:this;U8L(b,G,"margin")},
cardItemContainerPaddingChanged_:function(G){var b,I=_.Eo((b=this.hostElement)!=null?b:this),h;b=this.cardItemBoxBehaviorPaddingTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(h=this.hostElement)!=null?h:this;U8L(b,G,"padding")}}];var FY={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var sn5;var gb8;var HD=function(){return _.a.apply(this,arguments)||this};
_.M(HD,_.a);HD.prototype.textColorChanged_=function(){this.hostElement.style.color=FY[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
HD.prototype.textColorChanged_=HD.prototype.textColorChanged_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.R([_.z(Bzc.YtCardItemBoxBehavior),_.n("design:type",Object)],HD.prototype,"ytCardItemBoxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],HD.prototype,"data",void 0);_.R([_.q5("data.textColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HD.prototype,"textColorChanged_",null);
_.R([_.g8({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],HD);
_.J(HD,"yt-card-item-text-renderer",function(){if(gb8===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;sn5===void 0&&(sn5=document.createElement("template"));var h=sn5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);gb8=G}G=gb8;return G},{mode:2});var A5F;var MB1;var WD=function(){return _.a.apply(this,arguments)||this};
_.M(WD,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],WD.prototype,"data",void 0);_.R([_.g8({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],WD);
_.J(WD,"yt-card-item-badge-renderer",function(){if(MB1===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;A5F===void 0&&(A5F=document.createElement("template"));var h=A5F;I.call(b,h.content.cloneNode(!0),G.content.firstChild);MB1=G}G=MB1;return G},{mode:2});var ZQD;var tBj;var aY=function(){return _.a.apply(this,arguments)||this};
_.M(aY,_.a);aY.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],aY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],aY.prototype,"data",void 0);_.R([_.g8({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],aY);
_.J(aY,"yt-card-item-text-collection-renderer",function(){if(tBj===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;ZQD===void 0&&(ZQD=document.createElement("template"));var h=ZQD;I.call(b,h.content.cloneNode(!0),G.content.firstChild);tBj=G}G=tBj;return G},{mode:2});var zWY;var obF;var NF=function(){return _.a.apply(this,arguments)||this};
_.M(NF,_.a);NF.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],NF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],NF.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Number)],NF.prototype,"iconSize",void 0);_.R([_.g8({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],NF);
_.J(NF,"yt-card-item-text-with-button-renderer",function(){if(obF===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;zWY===void 0&&(zWY=document.createElement("template"));var h=zWY;I.call(b,h.content.cloneNode(!0),G.content.firstChild);obF=G}G=obF;return G},{mode:2});var Yh=function(){return _.a.apply(this,arguments)||this};
_.M(Yh,_.a);Yh.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Yh.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Yh.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Yh);
_.J(Yh,"ytd-commerce-cart-summary-line-item-renderer",function(){if(LO8!==void 0)return LO8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return LO8=G},{mode:1});_.QO("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var C7=function(){var G=_.a.apply(this,arguments)||this;G.hidden=!1;return G};
_.M(C7,_.a);_.m=C7.prototype;_.m.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"}}}}};
_.m.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.m.updateSummary=function(){var G=this.commerceCartCheckoutButtonEntity,b;if(((b=this.data)==null?0:b.cartButton)&&G.checkoutSummaryText){var I,h=fc((I=this.data)==null?void 0:I.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+h+".cardItemTextRenderer.text",TI(G.checkoutSummaryText));if(G.checkoutDetailText){var q;I=fc((q=this.data)==null?void 0:q.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+I+".cardItemTextRenderer.text",TI(G.checkoutDetailText))}if(G.checkoutAdditionalMetadataText){var l;
q=fc((l=this.data)==null?void 0:l.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+q+".cardItemTextRenderer.text",TI(G.checkoutAdditionalMetadataText))}}else G.estimatedTotalPrice&&(l=fc((h=this.data)==null?void 0:h.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+l+".cardItemTextRenderer.text",TI(G.estimatedTotalPrice)))};
_.m.updateIsHidden=function(){var G,b=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isHidden;b!==void 0&&(this.hidden=b)};
_.m.updateCheckoutButton=function(){var G,b=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isDisabled;b!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",b);var I;G=(I=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:I.innertubeCommand;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",G);var h;I=(h=this.commerceCartCheckoutButtonEntity)==null?void 0:h.checkoutButtonText;I!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:I})};
C7.prototype.entityChanged=C7.prototype.entityChanged;_.R([_.z(_.wN),_.n("design:type",Object)],C7.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],C7.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],C7.prototype,"fullWidth",void 0);_.R([_.H(),_.n("design:type",Object)],C7.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],C7.prototype,"compact",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],C7.prototype,"hidden",void 0);
_.R([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:eiO}),_.n("design:type",Object)],C7.prototype,"commerceCartCheckoutButtonEntity",void 0);_.R([_.q5("commerceCartCheckoutButtonEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],C7.prototype,"entityChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],C7);
_.J(C7,"ytd-commerce-cart-checkout-button-renderer",function(){if(vbc!==void 0)return vbc;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return vbc=G},{mode:2});var iQ3;_.PnY={};
_.PnY.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",_.I9(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.I9(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?(_.pv(this.hostElement,[G]),this.tappableItemBehaviorTapEnabled=!1):G.ypcOffersEndpoint?_.pv(this.hostElement,[G]):_.Su(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 d8c;var y5D;var J7=function(){return _.a.apply(this,arguments)||this};
_.M(J7,_.a);J7.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.xo("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.xo("sharingToggleButtonAndDefaultButton")}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],J7.prototype,"data",void 0);_.R([_.g8({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],J7);
_.J(J7,"yt-card-item-actions-renderer",function(){if(y5D===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;d8c===void 0&&(d8c=document.createElement("template"));var h=d8c;I.call(b,h.content.cloneNode(!0),G.content.firstChild);y5D=G}G=y5D;return G},{mode:2});var r5F;var FOD;var HQ1;var WOe;var aeW;var Nzj;var K7=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return G};
_.M(K7,_.a);K7.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
K7.prototype.handleDarkModeToggledAction_=function(G){this.isDarkTheme_=G};
K7.prototype.computeThemeImage_=function(G,b){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=_.so(G.borderColor));return b&&G.imageDark?G.imageDark:G.imageLight};
K7.prototype.computeThemeIcon_=function(G){var b,I;if(!(G==null?0:(b=G.themedIcon)==null?0:(I=b.icon)==null?0:I.iconType))return!1;this.icon.style.color=FY[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 _.pn(G.themedIcon.icon.iconType)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(Bzc.YtCardItemBoxBehavior),_.n("design:type",Object)],K7.prototype,"ytCardItemBoxBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],K7.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],K7.prototype,"data",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],K7.prototype,"fit",void 0);_.R([_.H(),_.n("design:type",Boolean)],K7.prototype,"isDarkTheme_",void 0);_.R([_.H({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.n("design:type",Object)],K7.prototype,"themeImage_",void 0);_.R([_.H({computed:"computeThemeIcon_(data)"}),_.n("design:type",Object)],K7.prototype,"themeIcon_",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Object)],K7.prototype,"isCircular_",void 0);
_.R([_.lH("#image"),_.n("design:type",Object)],K7.prototype,"image",void 0);_.R([_.lH("#icon"),_.n("design:type",Object)],K7.prototype,"icon",void 0);_.R([_.g8({is:"yt-themed-image-renderer",disableElementRegistration:!0})],K7);
_.J(K7,"yt-themed-image-renderer",function(){if(Nzj===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;aeW===void 0&&(aeW=document.createElement("template"));var h=aeW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Nzj=G}G=Nzj;return G},{mode:2});var ub=function(){return _.a.apply(this,arguments)||this};
_.M(ub,_.a);ub.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"}}}}};
ub.prototype.computeImagePlacement_=function(G){return G||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ub.prototype,"data",void 0);_.R([_.H({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.n("design:type",String)],ub.prototype,"imagePlacement",void 0);
_.R([_.g8({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],ub);
_.J(ub,"yt-card-item-text-with-image-renderer",function(){if(WOe===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;HQ1===void 0&&(HQ1=document.createElement("template"));var h=HQ1;I.call(b,h.content.cloneNode(!0),G.content.firstChild);WOe=G}G=WOe;return G},{mode:2});var RY=function(){return _.a.apply(this,arguments)||this};
_.M(RY,_.a);RY.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],RY.prototype,"data",void 0);_.R([_.g8({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],RY);
_.J(RY,"yt-card-item-error-renderer",function(){if(FOD===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;r5F===void 0&&(r5F=document.createElement("template"));var h=r5F;I.call(b,h.content.cloneNode(!0),G.content.firstChild);FOD=G}G=FOD;return G},{mode:2});var YuW;var Cnf;_.QO("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var n7=function(){return _.a.apply(this,arguments)||this};
_.M(n7,_.a);_.m=n7.prototype;
_.m.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"}}}}};
_.m.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.m.backgroundColorChanged_=function(){var G,b=(G=this.data)==null?void 0:G.backgroundColor;G=FY[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Eo(this.hostElement).querySelector("#main-content").style.backgroundColor=G};
_.m.headerPromoBackgroundColorChanged_=function(){var G,b=(G=this.data)==null?void 0:G.headerPromoBackgroundColor;G=FY[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Eo(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=G};
_.m.errorRendererVisibilityChanged_=function(){var G=this.isExpanded_,b;this.isErrorRendererVisible_=!((b=this.data)==null||!b.errorRenderer)&&!G};
_.m.onYtToggleButton_=function(G,b){this.isExpanded_=b.toggled};
n7.prototype.onYtToggleButton_=n7.prototype.onYtToggleButton_;n7.prototype.errorRendererVisibilityChanged_=n7.prototype.errorRendererVisibilityChanged_;n7.prototype.headerPromoBackgroundColorChanged_=n7.prototype.headerPromoBackgroundColorChanged_;n7.prototype.backgroundColorChanged_=n7.prototype.backgroundColorChanged_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(Bzc.YtCardItemBoxBehavior),_.n("design:type",Object)],n7.prototype,"ytCardItemBoxBehavior",void 0);_.R([_.z(_.PnY.YtTappableItemBehavior),_.n("design:type",Object)],n7.prototype,"ytTappableItemBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],n7.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],n7.prototype,"isExpanded_",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],n7.prototype,"isErrorRendererVisible_",void 0);_.R([_.q5("data.backgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],n7.prototype,"backgroundColorChanged_",null);_.R([_.q5("data.headerPromoBackgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],n7.prototype,"headerPromoBackgroundColorChanged_",null);
_.R([_.q5("data.errorRenderer","isExpanded_"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],n7.prototype,"errorRendererVisibilityChanged_",null);_.R([_.hI("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[Event,Object]),_.n("design:returntype")],n7.prototype,"onYtToggleButton_",null);_.R([_.g8({is:"yt-card-item-renderer",disableElementRegistration:!0})],n7);
_.J(n7,"yt-card-item-renderer",function(){if(Cnf===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;YuW===void 0&&(YuW=document.createElement("template"));var h=YuW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Cnf=G}G=Cnf;return G},{mode:2});_.QO("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Of=function(){var G=_.a.apply(this,arguments)||this;G.hidden=!1;return G};
_.M(Of,_.a);_.m=Of.prototype;_.m.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.m.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.m.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var G,b=(G=this.commerceCartHeaderEntity)==null?void 0:G.isHidden;b!==void 0&&(this.hidden=b)}};
_.m.updateTitle=function(){var G=this.commerceCartHeaderEntity.isDisabled,b,I,h=(I=_.g((b=this.data)==null?void 0:b.item,QsO))==null?void 0:I.headingRenderer;h&&(b=fc(h,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+b+".0.cardItemTextRenderer.textColor",G?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.m.updateSummaryText=function(){var G=this.commerceCartHeaderEntity;if(this.compact){var b,I,h=(I=_.g((b=this.data)==null?void 0:b.item,QsO))==null?void 0:I.headingRenderer;h&&(b=fc(h,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+b+".1.cardItemTextRenderer.text",G.shortHeaderSummaryText?TI(G.shortHeaderSummaryText):G.headerSummaryText?TI(G.headerSummaryText):""))}else{var q;if(b=(q=_.g((h=this.data)==null?void 0:h.item,QsO))==null?void 0:q.additionalInfoRenderer)b=fc(b,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".text",G.headerSummaryText?TI(G.headerSummaryText):"")}};
_.m.updateCheckoutButton=function(){var G=this.commerceCartHeaderEntity,b,I,h=(I=_.g((b=this.data)==null?void 0:b.item,QsO))==null?void 0:I.additionalInfoRenderer;b=fc(h,"buttonRenderer");var q;I=(q=this.commerceCartHeaderEntity)==null?void 0:q.isButtonDisabled;var l;q=(l=this.commerceCartHeaderEntity)==null?void 0:l.isButtonHidden;I!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".buttonRenderer.isDisabled",I);q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
q);var V;G=(V=G.checkoutButtonCommand)==null?void 0:V.innertubeCommand;G!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".buttonRenderer.command",G)};
Of.prototype.entityChanged=Of.prototype.entityChanged;_.R([_.z(_.wN),_.n("design:type",Object)],Of.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Of.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Of.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Of.prototype,"compact",void 0);_.R([_.H({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(G,b){return _.Gi(G.entities,"commerceCartHeaderEntity",b)}}),
_.n("design:type",Object)],Of.prototype,"commerceCartHeaderEntity",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Of.prototype,"hidden",void 0);_.R([_.q5("commerceCartHeaderEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Of.prototype,"entityChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Of);
_.J(Of,"ytd-commerce-cart-header-renderer",function(){if(iQ3!==void 0)return iQ3;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return iQ3=G},{mode:1});var J5a;var KOL=_.A8(function(G,b){var I;return(I=G.onChangeCallback)==null?void 0:I.call(G,b)},1E3),uJj=_.C(function(G){var b=G.data;
var I=G.iconMinus;G=G.iconPlus;var h=function(){return!!b().disabled},q=_.e(_.ZZ(0,void 0,"mKh0af")),l=q.next().value,V=q.next().value;
q=_.Xu(function(){if(l()===1){var f,T;(T=(f=b()).onRemoveCommand)==null||T.call(f)}f=l()>b().maxValue?b().maxValue:l()-1;V(f);KOL(b(),f);return!1});
var D=_.Xu(function(){if(l()===b().maxValue)return!1;var f=l()+1;V(f);KOL(b(),f);return!1});
_.JC(function(){V(b().value)});
var k={},L={},x={};return _.v("quantity-incrementer-shape",null,_.v("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.v("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return l()===(b().onRemoveCommand?0:1)||h()},
"aria-label":function(){return l()!==1?b().minusLabel:b().minimumReachedLabel},
"on:click":q},_.v(_.Qy,{model:{circular:!0}}),_.v("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.v("div",{class:_.pG("ytSpecQuantityIncrementerShapeIcon",(k.ytSpecQuantityIncrementerShapeIconDisabled=function(){return h()||l()===(b().onRemoveCommand?0:1)},k))},I()))),_.v("div",{class:_.pG("ytSpecQuantityIncrementerShapeText",(L.ytSpecQuantityIncrementerShapeTextInvalid=function(){return l()>b().maxValue},L.ytSpecQuantityIncrementerShapeTextDisabled=h,L))},l),_.v("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return l()>=b().maxValue||h()},
"aria-label":function(){return l()!==b().maxValue?b().plusLabel:b().maximumReachedLabel},
"on:click":D},_.v(_.Qy,{model:{circular:!0}}),_.v("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.v("div",{class:_.pG("ytSpecQuantityIncrementerShapeIcon",(x.ytSpecQuantityIncrementerShapeIconDisabled=function(){return l()>=b().maxValue||h()},x))},G())))))},"Lf");_.JN(_.C(function(G){function b(){I().onRemoveCommand&&_.Zm(I().onRemoveCommand)}
var I=G.data;var h=_.lA(gHO,function(){return I().quantityIncrementerEntityKey});
return _.v("yt-quantity-incrementer-view-model",null,_.v(uJj,{data:function(){var q=I(),l;var V=h()?!((l=h())==null||!l.disabled):!1;var D;l=h()?(D=h())==null?void 0:D.quantity:I().quantity;return CZO(q,V,b,l)},
iconMinus:function(){return _.v(_.ha,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.v(_.ha,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Mf"),"yt-quantity-incrementer-view-model",{props:{data:_.hV}});var wT=function(){var G=_.a.apply(this,arguments)||this;G.compact=!1;G.hasQuantityIncrementer=!1;return G};
_.M(wT,_.a);wT.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"}}}};
wT.prototype.computeHasQuantityIncrementer=function(){var G;return!!_.g((G=this.data)==null?void 0:G.picker,BBQ)};
wT.prototype.onLabelClick=function(){var G;(G=this.dropdownEl)==null||G.open()};
_.R([_.lH("ytd-dropdown-renderer"),_.n("design:type",Object)],wT.prototype,"dropdownEl",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],wT.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],wT.prototype,"quantityColor",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],wT.prototype,"compact",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.n("design:type",Object)],wT.prototype,"hasQuantityIncrementer",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],wT);
_.J(wT,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(J5a!==void 0)return J5a;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return J5a=G},{mode:1});var RWj;var nbF;var Ef=function(){return _.a.apply(this,arguments)||this};
_.M(Ef,_.a);Ef.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ef.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Ef.prototype.updateTitle=function(){var G=this.disabledCartItemEntity;G.disableActionName&&this.set("data.title",TI(G.disableActionName))};
Ef.prototype.updateButton=function(){var G,b=(G=this.disabledCartItemEntity.undoCommand)==null?void 0:G.innertubeCommand;b!==void 0&&(this.set("data.actionButton.buttonRenderer.command",b),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Ef.prototype.entityChanged=Ef.prototype.entityChanged;_.R([_.z(_.wN),_.n("design:type",Object)],Ef.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ef.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(G,b){return _.Gi(G.entities,"disabledCartItemEntity",b)}}),
_.n("design:type",Object)],Ef.prototype,"disabledCartItemEntity",void 0);_.R([_.H(),_.n("design:type",Object)],Ef.prototype,"data",void 0);_.R([_.q5("disabledCartItemEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ef.prototype,"entityChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Ef);
_.J(Ef,"ytd-disabled-cart-item-renderer",function(){if(nbF!==void 0)return nbF;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return nbF=G},{mode:1});_.QO("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var p7=function(){var G=_.a.apply(this,arguments)||this;G.compact=!1;G.hidden=!1;G.errorHidden=!1;G.noOnTap=!1;return G};
_.M(p7,_.a);_.m=p7.prototype;
_.m.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"}}}};
_.m.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.m.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var G=this.firstButtonElement;G.alignByText=!0;G.iconAlignByText=!0}};
_.m.computeNoOnTap=function(G){return!G};
_.m.updateQuantityColor=function(){if(this.pickerElement){var G,b=(G=this.commerceCartItemEntity)==null?void 0:G.quantityColor;this.pickerElement.quantityColor=b}};
_.m.updateTotalPriceColor=function(){var G,b=(G=this.commerceCartItemEntity)==null?void 0:G.totalPriceColor;if(b){var I;G=_.g((I=this.data)==null?void 0:I.quantityPicker,fbu);if(I=_.g(G==null?void 0:G.price,xIX))I.textColor=b}};
_.m.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var G,b=(G=this.commerceCartItemEntity)==null?void 0:G.isHidden;b!==void 0&&(this.hidden=b)}};
_.m.updateHideErrorMessage=function(){var G,b=(G=this.commerceCartItemEntity)==null?void 0:G.hideErrorMessage;b!==void 0&&(this.errorHidden=b)};
_.m.updateQuantity=function(){var G=this,b,I=(b=this.commerceCartItemEntity)==null?void 0:b.quantity,h;b=(h=this.commerceCartItemEntity)==null?void 0:h.totalPrice;if(I){this.updateTotalPriceColor();this.updateQuantityColor();var q;h=_.g((q=this.data)==null?void 0:q.quantityPicker,fbu);if(q=_.g(h==null?void 0:h.price,xIX))q.text=b?{simpleText:b.content}:void 0;if(b=_.g(h==null?void 0:h.picker,BBQ))b.quantity=I;var l;if(q=(l=_.g(h==null?void 0:h.picker,LUz))==null?void 0:l.entries){l=!1;b=void 0;q=
_.e(q);for(h=q.next();!h.done;h=q.next())h=h.value,h.dropdownItemRenderer&&(b||(b=h.dropdownItemRenderer),h.dropdownItemRenderer.isSelected=!1,I===h.dropdownItemRenderer.int32Value&&(l=!0,h.dropdownItemRenderer.isSelected=!0));!l&&b&&(b.isSelected=!0)}_.D1(this,function(){var V;G.set("data.quantityPicker",_.Cy.unsafeClone((V=G.data)==null?void 0:V.quantityPicker))})}};
p7.prototype.onYtRendererstamperFinished=p7.prototype.onYtRendererstamperFinished;p7.prototype.entityChanged=p7.prototype.entityChanged;_.R([_.H(),_.n("design:type",Object)],p7.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],p7.prototype,"compact",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],p7.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],p7.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],p7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(G,b){return _.Gi(G.entities,"commerceCartItemEntity",b)}}),
_.n("design:type",Object)],p7.prototype,"commerceCartItemEntity",void 0);_.R([_.H(),_.n("design:type",Object)],p7.prototype,"quantityPicker",void 0);_.R([_.H(),_.n("design:type",Object)],p7.prototype,"compactQuantityPicker",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],p7.prototype,"hidden",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],p7.prototype,"errorHidden",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.n("design:type",Object)],p7.prototype,"noOnTap",void 0);_.R([_.lH("ytd-commerce-cart-item-quantity-picker-renderer"),_.n("design:type",Object)],p7.prototype,"pickerElement",void 0);_.R([_.lH("yt-button-renderer"),_.n("design:type",Element)],p7.prototype,"firstButtonElement",void 0);
_.R([_.q5("commerceCartItemEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],p7.prototype,"entityChanged",null);_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],p7.prototype,"onYtRendererstamperFinished",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],p7);
_.J(p7,"ytd-commerce-cart-item-renderer",function(){if(RWj!==void 0)return RWj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return RWj=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var OQ5;var wXe;var S1=function(){return _.a.apply(this,arguments)||this};
_.M(S1,_.a);S1.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}}}}}};
S1.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
S1.prototype.updateCheckoutLineItems=function(){var G,b=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.checkoutLineItems;b&&(G=b.map(function(I){a:{var h=I.price,q=I.description;switch(I.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":I={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:TI(q),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:TI(h),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:TI(q),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:TI(h),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))};
S1.prototype.updateIsHidden=function(){var G,b=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isHidden;b!==void 0&&(this.hostElement.hidden=b)};
S1.prototype.entityChanged=S1.prototype.entityChanged;_.R([_.z(_.wN),_.n("design:type",Object)],S1.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],S1.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],S1.prototype,"data",void 0);_.R([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:eiO}),_.n("design:type",Object)],S1.prototype,"commerceCartCheckoutButtonEntity",void 0);_.R([_.q5("commerceCartCheckoutButtonEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],S1.prototype,"entityChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],S1);
_.J(S1,"ytd-commerce-cart-summary-renderer",function(){if(wXe!==void 0)return wXe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return wXe=G},{mode:1});var Eb3={};Eb3.InjectBehavior=[GLO.InjectBehavior];var pXj;var SuF;var XY=function(){return _.a.apply(this,arguments)||this};
_.M(XY,_.a);
XY.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:_.xo("menuRenderer")}}};
XY.prototype.onMenuTap=function(G){G.stopPropagation()};
_.kV.Object.defineProperties(XY.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,b;return!(((G=this.data)==null||!G.sectionHeading)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var G,b;return!(((G=this.data)==null||!G.image)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var G,b;return!(((G=this.data)==null||!G.menu)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],XY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.PnY.YtTappableItemBehavior),_.n("design:type",Object)],XY.prototype,"ytTappableItemBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],XY.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("data.accessibilityData"),_.n("design:type",String),_.n("design:paramtypes",[])],XY.prototype,"ariaLabel",null);_.R([_.P("data.sectionHeading","data.layout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],XY.prototype,"sectionHeadingVisible",null);_.R([_.P("data.image","data.layout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],XY.prototype,"imageVisible",null);
_.R([_.P("data.menu","data.layout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],XY.prototype,"menuVisible",null);_.R([_.g8({is:"yt-activity-item-renderer",disableElementRegistration:!0})],XY);
_.J(XY,"yt-activity-item-renderer",function(){if(SuF===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;pXj===void 0&&(pXj=document.createElement("template"));var h=pXj;I.call(b,h.content.cloneNode(!0),G.content.firstChild);SuF=G}G=SuF;return G},{mode:2});var XXW;var $fc;var Ga8;var bD5;var $B=function(){return _.a.apply(this,arguments)||this};
_.M($B,_.a);
$B.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"}}}}};
$B.prototype.backgroundColorChanged_=function(){var G,b=(G=this.data)==null?void 0:G.backgroundColor;this.hostElement.style.backgroundColor=FY[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
$B.prototype.backgroundColorChanged_=$B.prototype.backgroundColorChanged_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],$B.prototype,"data",void 0);
_.R([_.q5("data.backgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$B.prototype,"backgroundColorChanged_",null);_.R([_.g8({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],$B);
_.J($B,"yt-offer-item-upsell-renderer",function(){if(bD5===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Ga8===void 0&&(Ga8=document.createElement("template"));var h=Ga8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);bD5=G}G=bD5;return G},{mode:2});_.QO("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var GE=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};G.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return G};
_.M(GE,_.a);_.m=GE.prototype;
_.m.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:_.xo("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.m.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.m.computeContainerStyle_=function(G){return G};
_.m.computeContainerIsHidden_=function(G){return G&&!!G.isHidden};
_.m.computeShowSpinner_=function(G,b){return G&&b==="in-progress"};
_.m.computeShowMoreContentsButton_=function(G,b,I,h,q){return!(!(h&&h.length||q&&q.length&&I)||!G||b)};
_.m.onToggleButton_=function(G){var b=this;G.stopPropagation();this.isExpanded_=G.detail&&G.detail.toggled;var I,h;this.isExpanded_&&!this.data.continuationSection.length&&((I=this.data)==null?0:(h=I.continuation)==null?0:h.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.O3(this.hostElement,"yt-load-next-continuation",function(q){return b.getContinuationUrl_(b.data.continuation.onClickContinuationData,q)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.pv(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.m.onShowMoreContentsButtonClicked_=function(G){var b=this;G.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.O3(this.hostElement,"yt-load-next-continuation",function(I){return b.getContinuationUrl_(b.data.continuations[0].nextContinuationData,I)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.pv(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.m.getContinuationUrl_=function(G,b){var I=G.continuation;G=G.clickTrackingParams;var h=_.gL();G&&h&&_.WT(h,_.VB(G));return _.mE(b,{continuation:I})};
_.m.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var G=_.Eo(this.hostElement).querySelector("#continuation-section");G&&(G=G.querySelectorAll("ytmusic-item-section-renderer"))&&G.forEach(function(b){return b.classList.add("memberships-and-purchases")})};
_.m.dataChanged_=function(){var G;this.isExpanded_=!((G=this.data)==null||!G.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.m.updateCardOnClickCommand_=function(G){G=_.g(G,mIA);var b,I;this.data&&((b=this.data)==null?0:b.targetId)&&G&&G.targetId===((I=this.data)==null?void 0:I.targetId)&&G.onClickCommand&&(this.data.onClickCommand=G.onClickCommand,this.isOnClickCommand_=!0)};
_.m.backgroundColorChanged_=function(){var G,b=(G=this.data)==null?void 0:G.backgroundColor;this.hostElement.style.backgroundColor=FY[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
GE.prototype.backgroundColorChanged_=GE.prototype.backgroundColorChanged_;GE.prototype.dataChanged_=GE.prototype.dataChanged_;GE.prototype.nextContinuationDataUpdated_=GE.prototype.nextContinuationDataUpdated_;GE.prototype.onToggleButton_=GE.prototype.onToggleButton_;_.R([_.z(_.mD),_.n("design:type",Object)],GE.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],GE.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.eC.YtNextContinuationBehavior),_.n("design:type",Object)],GE.prototype,"ytNextContinuationBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.R([_.z(Eb3.InjectBehavior),_.n("design:type",Object)],GE.prototype,"injectBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],GE.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],GE.prototype,"compact",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],GE.prototype,"isExpanded_",void 0);_.R([_.H({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.n("design:type",String)],GE.prototype,"containerStyle_",void 0);_.R([_.H({value:"not-started"}),_.n("design:type",String)],GE.prototype,"continuationStatus_",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.n("design:type",Boolean)],GE.prototype,"showSpinner_",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],GE.prototype,"isOnClickCommand_",void 0);_.R([_.H({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.n("design:type",Boolean)],GE.prototype,"showMoreContentsButton_",void 0);
_.R([_.H({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(G,b){return!b||G.entities?null:_.Gi(G.entities,"cardItemContainerEntity",b)}}),
_.n("design:type",Object)],GE.prototype,"cardItemContainerEntity_",void 0);_.R([_.hI("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],GE.prototype,"onToggleButton_",null);_.R([_.hI("yt-next-continuation-data-updated"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],GE.prototype,"nextContinuationDataUpdated_",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],GE.prototype,"dataChanged_",null);_.R([_.q5("data.backgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],GE.prototype,"backgroundColorChanged_",null);_.R([_.g8({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],GE);
_.J(GE,"yt-card-item-container-renderer",function(){if($fc===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;XXW===void 0&&(XXW=document.createElement("template"));var h=XXW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);$fc=G}G=$fc;return G},{mode:2});var b2=function(){return _.a.apply(this,arguments)||this};
_.M(b2,_.a);b2.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"}}}};
b2.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
b2.prototype.computeLoadingHidden=function(){var G;return!((G=this.commerceCartPageStateEntity)==null?0:G.cartActionInProgress)};
b2.prototype.updateNotification=function(){var G,b=(G=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:G.summaryText;b&&this.set("data.cartNotification",TI(b))};
b2.prototype.notificationEntityChanged=b2.prototype.notificationEntityChanged;_.R([_.z(_.wN),_.n("design:type",Object)],b2.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],b2.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],b2.prototype,"data",void 0);_.R([_.H({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(G,b){return _.Gi(G.entities,"commerceCartExpandableNotificationEntity",b)}}),
_.n("design:type",Object)],b2.prototype,"commerceCartExpandableNotificationEntity",void 0);_.R([_.H({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(G,b){return _.Gi(G.entities,"commerceCartPageStateEntity",b)}}),
_.n("design:type",Object)],b2.prototype,"commerceCartPageStateEntity",void 0);_.R([_.lH("#spinner"),_.n("design:type",HTMLElement)],b2.prototype,"spinner",void 0);_.R([_.q5("commerceCartExpandableNotificationEntity","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],b2.prototype,"notificationEntityChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],b2);
_.J(b2,"ytd-commerce-cart-renderer",function(){if(OQ5!==void 0)return OQ5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return OQ5=G},{mode:1});var IYc;var IQ=function(){var G=_.a.apply(this,arguments)||this;G.bigImage=!1;return G};
_.M(IQ,_.a);_.kV.Object.defineProperties(IQ.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.placeholderImageUrl}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],IQ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],IQ.prototype,"bigImage",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],IQ.prototype,"placeholderImageUrl",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],IQ);
_.J(IQ,"ytd-empty-product-shelf-renderer",function(){if(IYc!==void 0)return IYc;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return IYc=G},{mode:1});var he5;var hh=function(){var G=_.a.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};
_.M(hh,_.a);_.m=hh.prototype;_.m.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.m.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"}}}}};
_.m.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.m.attachVEs=function(G){G.trackingParams&&_.qo().graftServerVe(G.trackingParams)};
_.m.handleUpdateMerchShelfAction=function(G){var b=this,I=_.g(G.updateMerchandiseShelfAction.merchandiseShelf,_.ynz);I&&(I.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){b.attachVEs(I);b.data=I},Number(I.renderDelayMs))):(this.attachVEs(I),this.data=I))};
_.m.updateOnResize=function(){if(this.JSC$17087_scrollContainer!==void 0&&this.JSC$17087_scrollContainer.clientWidth!==0&&this.items!==void 0){var G=this.JSC$17087_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-G));this.ytdHorizontalListBehavior.reposition_();var b;switch((b=this.data)==null?void 0:b.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var I,
h;((I=this.data)==null?void 0:(h=I.items)==null?void 0:h.length)===1?this.itemStyle="cta-item":this.itemStyle=G>=740?"large-item":"small-item"}}};
_.m.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Q2(this.updateOnResizeDebouncer,_.hw.after(100),this.updateOnResize)};
hh.prototype.debouncedUpdateOnResize=hh.prototype.debouncedUpdateOnResize;hh.prototype.dataChanged=hh.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.Qk.YtdHorizontalListBehavior),_.n("design:type",Object)],hh.prototype,"ytdHorizontalListBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],hh.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],hh.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],hh.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],hh.prototype,"itemStyle",void 0);_.R([_.H({value:6}),_.n("design:type",Number)],hh.prototype,"initialCount",void 0);
_.R([_.H({value:"data.items"}),_.n("design:type",String)],hh.prototype,"itemsPath",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],hh.prototype,"watchMetadataRefresh",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],hh.prototype,"skinnyMode",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],hh.prototype,"metaPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],hh.prototype,"inStructuredDescription",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],hh.prototype,"detailedDescriptionOverride",void 0);_.R([_.lH("#items"),_.n("design:type",HTMLDivElement)],hh.prototype,"items",void 0);_.R([_.lH("#scroll-container"),_.n("design:type",HTMLDivElement)],hh.prototype,"JSC$17087_scrollContainer",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],hh.prototype,"dataChanged",null);
_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],hh.prototype,"debouncedUpdateOnResize",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],hh);
_.J(hh,"ytd-merch-shelf-renderer",function(){if(he5!==void 0)return he5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return he5=G},{mode:2});var q18;var q$=function(){var G=_.a.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};
_.M(q$,_.a);_.m=q$.prototype;
_.m.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}]))};
_.m.addBackstageCommentAction=function(G){var b=this.get("addBackstageCommentAction.parentId",G);G=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",G);if(b&&G){b=this.postIdToIndices(b);for(var I=0;I<b.length;I++){var h=b[I];if(h<0)break;h="data.contents."+h+".backstagePostThreadRenderer.comments";this.get(h)&&(this.get(h+".backstageCommentsRenderer.contents")&&this.push(h+".backstageCommentsRenderer.contents",{commentThreadRenderer:G}),this.get(h+".backstageCommentsRenderer.teaserContents")?
this.push(h+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:G}):this.set(h+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:G}]))}}};
_.m.addBackstageReplyAction=function(G){var b=this.get("addBackstageReplyAction.parentId",G);G=this.get("addBackstageReplyAction.renderer.commentRenderer",G);b&&G&&this.setCreatorReply(b,G)};
_.m.banAuthorAction=function(G){var b=this.get("banAuthorAction.commentId",G);b&&(G=this.get("banAuthorAction.parentCommentId",G)||this.getParentPostId(b),this.removeFromStream(b,G))};
_.m.hideReportedCommentAction=function(G){var b=this.get("hideReportedCommentAction.commentId",G);b&&((G=this.get("hideReportedCommentAction.parentCommentId",G))||(G=this.getParentPostId(b)),this.removeFromStream(b,G))};
_.m.replaceBackstageCommentAction=function(G){var b=this.get("replaceBackstageCommentAction.commentId",G),I=this.get("replaceBackstageCommentAction.parentId",G);G=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",G);if(b&&I&&G){I=this.postIdToIndices(I);for(var h=0;h<I.length;h++){var q=I[h];if(q<0)break;var l=this.commentIdToIndex(b,q,!1);if(l>=0){var V=this.get("data.contents."+q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+l+".commentThreadRenderer.replies.commentRepliesRenderer");
V&&(G.replies={commentRepliesRenderer:V});this.splice("data.contents."+q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",l,1,{commentThreadRenderer:G})}l=this.commentIdToIndex(b,q,!0);if(l>=0){if(V=this.get("data.contents."+q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(l+".commentThreadRenderer.replies.commentRepliesRenderer")))G.replies={commentRepliesRenderer:V};this.splice("data.contents."+q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
l,1,{commentThreadRenderer:G})}}}};
_.m.replaceBackstagePostAction=function(G){var b=this.get("replaceBackstagePostAction.itemId",G);if(b){b=this.postIdToIndices(b);for(var I=0;I<b.length;I++){var h=b[I];if(h<0)break;var q=this.getPostRendererType(h),l=this.get("replaceBackstagePostAction.renderer."+q,G);if(!l&&q!=="sharedPostRenderer")break;var V=!1;l||(V=!0,l=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",G));if(!l)break;var D={};V?(_.xQ(D,po8,l),this.set("data.contents."+h+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
D)):(_.xQ(D,new _.hu(q),l),this.set("data.contents."+h+".backstagePostThreadRenderer.post",D))}}};
_.m.replaceBackstageReplyAction=function(G){var b=this.get("replaceBackstageReplyAction.replyId",G),I=this.get("replaceBackstageReplyAction.parentId",G);G=this.get("replaceBackstageReplyAction.renderer.commentRenderer",G);b&&G&&I&&this.setCreatorReply(I,G)};
_.m.removeCommentAction=function(G){var b=this.get("removeCommentAction.commentId",G);if(b){var I=this.get("removeCommentAction.parentCommentId",G);I&&this.get("removeCommentAction.isCreatorReply",G)?this.setCreatorReply(I,void 0):(I||(I=this.getParentPostId(b)),this.removeFromStream(b,I))}};
_.m.setCreatorReply=function(G,b){var I=this.getParentPostId(G);if(I){I=this.postIdToIndices(I);for(var h=0;h<I.length;h++){var q=I[h];if(q<0)break;var l=this.commentIdToIndex(G,q,!1);if(l>=0){var V="data.contents."+q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+l;l=V+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";V+=".commentThreadRenderer.replies";b==void 0?(this.set(V,{}),this.set(l,!1)):(this.set(V,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}),
this.set(V+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(l,!0))}l=this.commentIdToIndex(G,q,!0);l>=0&&(l="data.contents."+q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+l,q=l+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",l+=".commentThreadRenderer.replies",b==void 0?(this.set(l,{}),this.set(q,!1)):(this.set(l,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}),this.set(q,!0)))}}};
_.m.removeFromStream=function(G,b){if(b){b=this.postIdToIndices(b);for(var I=0;I<b.length;I++){var h=b[I];if(h<0)break;var q=this.commentIdToIndex(G,h,!1);q>=0&&this.splice("data.contents."+h+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",q,1);q=this.commentIdToIndex(G,h,!0);q>=0&&this.splice("data.contents."+h+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",q,1);h="data.contents."+h+".backstagePostThreadRenderer.post.backstagePostRenderer";
q=h+".backstageAttachment.pollRenderer.votedCommentId";this.get(q)===G&&(this.set(q,null),this.set(h+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(b=this.postIdToIndices(G).reverse(),I=0;I<b.length;I++){h=b[I];if(h<0)break;q=this.getPostRendererType(h);var l=this.get("backstagePostThreadRenderer.post."+q,this.data.contents[h]);l.postId===G?this.splice("data.contents",h,1):q==="sharedPostRenderer"&&this.set("data.contents."+h+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);l.scheduledPublishTimeSec&&_.wL(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.m.postIdToIndices=function(G){for(var b=[],I=0;I<this.data.contents.length;I++){var h=this.getPostRendererType(I);this.get("backstagePostThreadRenderer.post."+h+".postId",this.data.contents[I])===G&&b.push(I);if(h==="sharedPostRenderer"){var q=this.get("backstagePostThreadRenderer.post."+h+".originalPost.backstagePostRenderer.postId",this.data.contents[I]);h=this.get("backstagePostThreadRenderer.post."+h+".originalPost.postRenderer.postId",this.data.contents[I]);q!==G&&h!==G||b.push(I)}}return b};
_.m.commentIdToIndex=function(G,b,I){if(b<0)return-1;var h,q,l,V,D=_.g((h=this.data)==null?void 0:(q=h.contents)==null?void 0:(l=q[b])==null?void 0:(V=l.backstagePostThreadRenderer)==null?void 0:V.comments,woz);return(b=I?D==null?void 0:D.teaserContents:D==null?void 0:D.contents)&&b.length?b.findIndex(function(k){return _.g(k,oju).comment.commentRenderer.commentId===G}):-1};
_.m.getParentPostId=function(G){G=G.split(".");if(G[1])return G[0]};
_.m.getPostRendererType=function(G){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[G])?"sharedPostRenderer":"backstagePostRenderer"};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],q$.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],q$.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:_.U("enable_community_page_on_desktop")}),_.n("design:type",Boolean)],q$.prototype,"useSmallerPostContainer",void 0);
_.R([_.N({disableElementRegistration:!0,is:"ytd-backstage-items"})],q$);
_.J(q$,"ytd-backstage-items",function(){if(q18!==void 0)return q18;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return q18=
G},{mode:1});var j5f;var lYW={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},jq=function(){var G=_.a.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};
_.M(jq,_.a);_.m=jq.prototype;_.m.created=function(){this.initCommentsCsi_();_.U("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.U("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.m.contentsChanged_=function(){var G;(G=this.data)!=null&&G.contents&&this.tickForCommentsTimer_("cml")};
_.m.headerChanged_=function(){var G;(G=this.data)!=null&&G.header&&this.tickForCommentsTimer_("cmhl")};
_.m.initCommentsCsi_=function(){_.US("wn_comments");var G=_.gL();G&&_.Tm({clientScreenNonce:G},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.m.createCommentAction_=function(G){G=_.Cy.unsafeClone(G);var b,I;if(G=(b=_.g(G,BIi))==null?void 0:(I=b.contents)==null?void 0:I.commentThreadRenderer){var h,q,l,V,D,k;!this.isBackstage&&((h=this.data)==null?0:(q=h.header)==null?0:(l=q.commentsHeaderRenderer)==null?0:(V=l.createRenderer)==null?0:(D=V.commentSimpleboxRenderer)==null?0:(k=D.zeroStep)==null?0:k.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var L,
x,f;this.isBackstage&&_.g((L=this.data)==null?void 0:(x=L.header)==null?void 0:(f=x.commentsHeaderRenderer)==null?void 0:f.zeroStateMessage,SaW)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(G)}};
_.m.doReplyInsert_=function(G,b,I,h){h?this.splice(G,h,0,b):this.push(G,b)};
_.m.getRepliesPath_=function(G){return"data.contents."+G+".commentThreadRenderer.replies"};
_.m.getRepliesContentsPath_=function(G,b){G=this.getRepliesPath_(G);return b?G+".commentRepliesRenderer.teaserContents":G+".commentRepliesRenderer.contents"};
_.m.showSubscribersOnlyDisclaimer_=function(G){(G=G.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&(_.wL(this.hostElement,"yt-open-popup-action",[G,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.m.createCommentReplyAction_=function(G){G=_.Cy.unsafeClone(G);var b=_.g(G,UHW);if(G=b==null?void 0:b.contents){var I=this.commentIdToIndex_(b==null?void 0:b.parentCommentId);if(!(I<0)){var h=this.getRepliesPath_(I);if(this.get(h)){b=b.replyToCommentId;h=this.getRepliesContentsPath_(I,!1);if(this.get(h)){var q=this.get(h).length,l=h+"."+(q-1)+".continuationItemRenderer";this.get(l+".button")?(l=this.replyIdToIndex_(b,I,!1),this.doReplyInsert_(h,G,l,q-1)):this.get(l)||(q=this.replyIdToIndex_(b,I,
!1),this.doReplyInsert_(h,G,q,null))}h=this.getRepliesContentsPath_(I,!0);this.get(h)?(I=this.replyIdToIndex_(b,I,!0),(!b||I>=0)&&this.doReplyInsert_(h,G,I,null)):this.set(h,[G])}else this.set(h,{commentRepliesRenderer:{teaserContents:[G]}})}}};
_.m.hideReportedCommentAction_=function(G){var b=_.g(G,CY5);if(G=b==null?void 0:b.commentId)(b=this.get("parentCommentId",b))||(b=this.getParentCommentId_(G)),this.remove_(G,b)};
_.m.getParentCommentId_=function(G){G=G.split(".");if(G[1])return G[0]};
_.m.removeCommentAction_=function(G){var b=_.g(G,ZFQ);if(G=b==null?void 0:b.commentId)b=(b==null?void 0:b.parentCommentId)||this.getParentCommentId_(G),this.remove_(G,b)};
_.m.pinCommentAction_=function(G){G=_.Cy.unsafeClone(G);var b=_.g(G,MMz);b!=null&&b.commentId&&(G=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",G))&&(this.remove_(b.commentId),this.insert_(G,!0))};
_.m.unpinCommentAction_=function(G){G=_.Cy.unsafeClone(G);G=_.g(G,tMJ);if(G!=null&&G.commentId){var b,I,h=(b=G.actionResult)==null?void 0:(I=b.update)==null?void 0:I.commentThreadRenderer;h&&(this.remove_(G.commentId),this.insert_(h))}};
_.m.banAuthorAction_=function(G){var b=_.g(G,TIJ);b!=null&&b.commentId&&(G=b.commentId,b=b.parentCommentId||this.getParentCommentId_(G),this.remove_(G,b))};
_.m.handleScrollToCommentElement_=function(G){this.hostElement.contains(G)&&(this.nearestScrollParent||(this.nearestScrollParent=JGs(G)),this.isCommentVisibleInScrollParent(G)||G.scrollIntoView({behavior:"smooth",block:"start"}))};
_.m.isCommentVisibleInScrollParent=function(G){if(!this.nearestScrollParent)return!1;G=G.getBoundingClientRect();var b=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return G.top>=b.top&&G.bottom<=b.bottom};
_.m.commentIdToIndex_=function(G){var b;return G&&(b=this.data)!=null&&b.contents?this.data.contents.findIndex(function(I){I=I.commentThreadRenderer;var h;return G===((I==null?void 0:I.commentViewModel)&&((h=_.g(I.commentViewModel,F8B))==null?void 0:h.commentId))}):-1};
_.m.insert_=function(G,b){b=b===void 0?!1:b;var I,h;if((I=this.data)==null?0:(h=I.contents)==null?0:h.some(function(l){return!!l.commentThreadRenderer}))for(I=0,h=this.data.contents.length;I<h;I++){var q=this.data.contents[I].commentThreadRenderer;
if(lYW[G.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=lYW[q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){b&&lYW[G.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===lYW[q.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}])};
_.m.doReplyRemove_=function(G,b,I){G=this.replyIdToIndex_(G,b,I);G<0||(b=this.getRepliesContentsPath_(b,I),this.splice(b,G,1))};
_.m.remove_=function(G,b){b=this.commentIdToIndex_(b);b<0?(b=this.commentIdToIndex_(G),b<0||this.splice("data.contents",b,1)):_.U("web_delhi_comment_threads")||(this.doReplyRemove_(G,b,!1),this.doReplyRemove_(G,b,!0))};
_.m.replyIdToIndex_=function(G,b,I){if(b<0)return-1;b=this.getRepliesContentsPath_(b,I);b=this.get(b);if(!b||!b.length)return-1;I=0;for(var h=b.length;I<h;I++){var q=void 0,l=void 0;if(((q=b[I])==null?void 0:(l=q.commentViewModel)==null?void 0:l.commentId)===G)return I}return-1};
_.m.tickForCommentsTimer_=function(G){_.gK(G,void 0,"wn_comments")};
_.m.reloadComments_=function(G){G=_.g(G,ywO);_.g(G==null?void 0:G.command,_.Aa)&&_.pv(this.hostElement,[G==null?void 0:G.command])};
_.kV.Object.defineProperties(jq.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return!!((G=this.data)==null?0:(b=G.header)==null?0:(I=b.commentsHeaderRenderer)==null?0:I.isBackstageContent)}}});
_.kV.Object.defineProperties(jq,{template:{configurable:!0,enumerable:!0,get:function(){if(j5f===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);j5f=G}G=j5f;return G}}});
jq.prototype.showSubscribersOnlyDisclaimer_=jq.prototype.showSubscribersOnlyDisclaimer_;jq.prototype.headerChanged_=jq.prototype.headerChanged_;jq.prototype.contentsChanged_=jq.prototype.contentsChanged_;_.R([_.z(_.kk),_.n("design:type",Object)],jq.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",Function)],jq.prototype,"ytPlayerListenerBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],jq.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],jq.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.header.commentsHeaderRenderer.isBackstageContent"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],jq.prototype,"isBackstage",null);
_.R([_.H(),_.n("design:type",Object)],jq.prototype,"disablePrescanVisibility",void 0);_.R([_.H(),_.n("design:type",Object)],jq.prototype,"canScheduleJobs",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],jq.prototype,"engagementPanel",void 0);_.R([_.H(),_.n("design:type",Object)],jq.prototype,"hidePanelButton",void 0);_.R([_.H(),_.n("design:type",Object)],jq.prototype,"isWatchGrid",void 0);_.R([_.H(),_.n("design:type",Object)],jq.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.R([_.q5("data.contents"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jq.prototype,"contentsChanged_",null);_.R([_.q5("data.header"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jq.prototype,"headerChanged_",null);_.R([_.hI("yt-show-subscribers-only-disclaimer"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],jq.prototype,"showSubscribersOnlyDisclaimer_",null);
_.R([_.N({is:"ytd-comments"})],jq);var l2=function(){return _.eH.apply(this,arguments)||this};
_.M(l2,_.eH);_.m=l2.prototype;_.m.bindIf=function(G,b,I){return G?b:I};
_.m.bindIfDefined=function(G,b){return G!==void 0?G:b};
_.m.booleanString=function(G){return(!!G).toString()};
_.m.equals=function(){for(var G=_.RI.apply(0,arguments),b=G[0],I=1;I<G.length;I++)if(b!=G[I])return!1;return!0};
_.m.isGreaterThan=function(G,b){return G>b};
_.m.isLessThan=function(G,b){return G<b};
_.m.logicalAND=function(){for(var G=_.RI.apply(0,arguments),b=!!G[0],I=1;I<G.length;I++)b=b&&!!G[I];return b};
_.m.logicalOR=function(){for(var G=_.RI.apply(0,arguments),b=!!G[0],I=1;I<G.length;I++)b=b||!!G[I];return b};
_.m.toBool=function(G){return!!G};
l2.prototype.toBool=l2.prototype.toBool;l2.prototype.logicalOR=l2.prototype.logicalOR;l2.prototype.logicalAND=l2.prototype.logicalAND;l2.prototype.isLessThan=l2.prototype.isLessThan;l2.prototype.isGreaterThan=l2.prototype.isGreaterThan;l2.prototype.equals=l2.prototype.equals;l2.prototype.booleanString=l2.prototype.booleanString;l2.prototype.bindIfDefined=l2.prototype.bindIfDefined;l2.prototype.bindIf=l2.prototype.bindIf;_.R([_.Vx()],l2);_.mf9=[l2.prototype];var ee5;var V89;var mZ=function(){return _.a.apply(this,arguments)||this};
_.M(mZ,_.a);mZ.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
mZ.prototype.onBackIconTap_=function(){window.history.back()};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],mZ.prototype,"data",void 0);_.R([_.g8({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],mZ);
_.J(mZ,"yt-header-with-back-renderer",function(){if(V89===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;ee5===void 0&&(ee5=document.createElement("template"));var h=ee5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);V89=G}G=V89;return G},{mode:2});var Df9;var ccL;var eq=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.M(eq,_.a);_.m=eq.prototype;_.m.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.m.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G,this.setUrl())};
_.m.dataChanged=function(){var G=this;if(this.data){var b=this.setUrl();b&&_.Ie({destination:window,iframe:this.iframe,origin:_.Van(b.toString()),channelName:"yt-iframe",onMessage:function(I){(I=G.getCommunicationCommand(I.data))&&G.ytComponentBehavior.resolveCommand(I)},
onEstablished:function(){}})}};
_.m.setUrl=function(){if(this.data&&this.data.iframeUrl){var G=_.Rb(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(G)return _.$T(this.iframe,G),G}};
_.m.getCommunicationCommand=function(G){var b;if((b=this.data)!=null&&b.onCommunicationCommandsMap){b=this.data.onCommunicationCommandsMap.find(function(q){return q.key===G});
if(b==null?0:b.value)return b==null?void 0:b.value;try{var I=XcW(_.Sv(G)),h=this.data.onCommunicationCommandsMap.find(function(q){return q.key===(I==null?void 0:I.getMethodName())});
if(h==null?0:h.value)return h==null?void 0:h.value}catch(q){}}};
eq.prototype.dataChanged=eq.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],eq.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],eq.prototype,"actionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],eq.prototype,"data",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],eq.prototype,"isDarkTheme",void 0);_.R([_.lH("#iframe"),_.n("design:type",HTMLIFrameElement)],eq.prototype,"iframe",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eq.prototype,"dataChanged",null);_.R([_.g8({is:"yt-iframe-renderer",disableElementRegistration:!0})],eq);
_.J(eq,"yt-iframe-renderer",function(){if(ccL===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Df9===void 0&&(Df9=document.createElement("template"));var h=Df9;I.call(b,h.content.cloneNode(!0),G.content.firstChild);ccL=G}G=ccL;return G},{mode:2});_.Vb=function(G){_.FN.call(this);this.callback=G;this.bezier=new lAQ(0,0,.4,0,.2,1,1,1);this.delay=new _.QR(this.next,window,this);this.JSC$17128_animating=!1;_.M2(this,this.delay)};
_.M(_.Vb,_.FN);_.Vb.prototype.isAnimating=function(){return this.JSC$17128_animating};
_.Vb.prototype.start=function(G,b,I){this.config={from:G,to:b,duration:I,startTime:(0,_.Li)()};this.JSC$17128_animating=!0;this.next()};
_.Vb.prototype.stop=function(){this.delay.stop();this.JSC$17128_animating=!1;this.config=void 0};
_.Vb.prototype.next=function(){if(this.config){var G=this.config,b=G.from,I=G.to,h=G.duration;G=G.startTime;var q=(0,_.Li)()-G;G=this.bezier;h=eQi(G,q/h);if(h==0)G=G.y0;else if(h==1)G=G.y3;else{q=ZI(G.y0,G.y1,h);var l=ZI(G.y1,G.y2,h);G=ZI(G.y2,G.y3,h);q=ZI(q,l,h);l=ZI(l,G,h);G=ZI(q,l,h)}G=_.Ak(G,0,1);this.callback(b+(I-b)*G);G<1?this.delay.start():this.JSC$17128_animating=!1}};_.DT=new _.q3("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var kac={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},L9F=function(G,b,I,h){_.FN.call(this);this.JSC$17139_miniAppId=G;this.localReleaseId=b;this.derivedDeviceInterface=I;this.isForeground=h;this.JSC$17139_playNonceResolver=new _.G9;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Te("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Te("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.U("enable_displaying_ppn");this.JSC$17139_miniAppClientDataProvider=_.LL().resolve(_.DT);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;v3c(this);var q=setTimeout(function(){_.RB(new _.Wf("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17139_playNonceResolver.promise.then(function(){clearTimeout(q)})};
_.M(L9F,_.FN);var xf9=function(G,b){G.JSC$17139_playNonceResolver.resolve(b!=null?b:Bq(8));G.enableDisplayingPpn&&Q5j(G).then(function(I){G.JSC$17139_miniAppClientDataProvider.clientData.set("post_play_nonce",I)})},Q5j=function(G){return _.c(function(b){return b.nextAddress==1?b.yield(G.JSC$17139_playNonceResolver.promise,2):b.return(b.yieldResult)})},v3c=function(G){var b,I;
_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$17139_playNonceResolver.promise,2);b=h.yieldResult;I={miniAppInfo:{externalPostId:G.JSC$17139_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:b,derivedDeviceInterface:G.derivedDeviceInterface}};_.Tm(I);_.ip(h)})},Tj5=function(G){G.state!==0?_.RB(new _.Wf("[MiniAppPlayLogger] recordPlayStart failed with state "+kac[G.state])):(G.state=1,cu(G,"ma_cl"),kB(G,"PLAY_EVENT_TYPE_PLAY_START"),fYW(G))},Bj8=function(G){G.isForeground=!1;
kB(G,"PLAY_EVENT_TYPE_PLAY_PAUSE")},UfL=function(G){G.state!==1&&G.state!==2?_.RB(new _.Wf("[MiniAppPlayLogger] recordPlayEnd failed with state "+kac[G.state])):(G.state=3,window.clearInterval(G.playPingTimerId),G.playPingTimerId=NaN,nfs(),kB(G,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},s58=function(G,b){G.state===2&&G.gameReady&&(G.firstClickRecorded?Date.now()-G.clickRecordedMs<G.playClickIntervalMs||(G.clickRecordedMs=Date.now(),kB(G,"PLAY_EVENT_TYPE_PLAY_CLICK")):b&&(cu(G,"ma_fua"),kB(G,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),G.firstClickRecorded=!0,G.clickRecordedMs=Date.now()))};
L9F.prototype.logError=function(G){var b=this,I;_.c(function(h){if(h.nextAddress==1)return G.metadata.externalPostId=b.JSC$17139_miniAppId,I=G.metadata,h.yield(Promise.race([b.JSC$17139_playNonceResolver.promise,new Promise(function(q){setTimeout(function(){q("")},3E4)})]),2);
I.postPlayNonce=h.yieldResult;G.metadata.localReleaseId=b.localReleaseId;G.loggingError.level="WARNING";_.K1(G.loggingError,G.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:G.metadata});_.ip(h)})};
var g38=function(G,b,I,h){var q,l,V,D,k,L;_.c(function(x){if(x.nextAddress==1)return x.yield(G.JSC$17139_playNonceResolver.promise,2);q=x.yieldResult;l={externalPostId:G.JSC$17139_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:q,sdkVersion:I,api:b};h!==void 0&&(l.networkRequestsMeasurement={networkRequests:_.LT(h,1),cachedRequests:_.LT(h,2),transferredBytes:_.LT(h,3)},(V=h)==null?0:_.eR(V,eI,6))&&(l.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((D=_.fi(h,
eI,6))==null?void 0:AJ(D,1))||"0",cacheHits:((k=_.fi(h,eI,6))==null?void 0:AJ(k,2))||"0",cachedBytes:((L=_.fi(h,eI,6))==null?void 0:AJ(L,3))||"0"});_.C1("miniAppSdkUsage",l);_.ip(x)})},M81=function(G,b,I){var h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W;
_.c(function(O){if(O.nextAddress==1)return O.yield(G.JSC$17139_playNonceResolver.promise,2);h=O.yieldResult;q={externalPostId:G.JSC$17139_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:h,sdkVersion:I,measurementWindow:{startTimestampMs:String(Td(b,1)),endTimestampMs:String(Td(b,2))},frameRate:{averageFrameTimeDeltaMs:B8(b,3),averageFrameIdleTimeMs:B8(b,4)}};_.eR(b,V$,5)&&(q.networkRequests={networkRequests:(l=xf(b))==null?void 0:_.LT(l,1),cachedRequests:(V=xf(b))==null?void 0:_.LT(V,2),transferredBytes:(D=
xf(b))==null?void 0:_.LT(D,3),sameOriginStatusCodeToCounts:AcL((k=xf(b))==null?void 0:yca(k,4)),crossOriginStatusCodeToCounts:AcL((L=xf(b))==null?void 0:yca(L,5))},(x=xf(b))==null?0:_.eR(x,eI,6))&&(q.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((f=xf(b))==null?void 0:(T=_.fi(f,eI,6))==null?void 0:AJ(T,1))||"0",cacheHits:((B=xf(b))==null?void 0:(A=_.fi(B,eI,6))==null?void 0:AJ(A,2))||"0",cachedBytes:((t=xf(b))==null?void 0:(y=_.fi(t,eI,6))==null?void 0:AJ(y,3))||"0"});_.eR(b,
J$B,7)&&(q.gameCapture={averageFrameTimeDeltaMs:(F=_.fi(b,J$B,7))==null?void 0:B8(F,1),averageFrameIdleTimeMs:(W=_.fi(b,J$B,7))==null?void 0:B8(W,2)});_.C1("miniAppPerformanceMetrics",q);_.ip(O)})},ZDe=function(G,b){var I,h;
return _.c(function(q){if(q.nextAddress==1)return q.yield(G.JSC$17139_playNonceResolver.promise,2);I=q.yieldResult;h={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:G.JSC$17139_miniAppId,postPlayNonce:I,miniAppReleaseId:G.localReleaseId},derivedDeviceInterface:G.derivedDeviceInterface,adTriggerType:b,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.C1("miniAppAdEvent",h);_.ip(q)})};
L9F.prototype.disposeInternal=function(){_.FN.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var kB=function(G,b,I,h){I=I===void 0?{}:I;h=h===void 0?!1:h;var q,l,V,D;_.c(function(k){if(k.nextAddress==1)return q=G.isForeground,l=G.beforeReady,k.yield(G.JSC$17139_playNonceResolver.promise,2);V=k.yieldResult;D={externalPostId:G.JSC$17139_miniAppId,localReleaseId:G.localReleaseId,derivedDeviceInterface:G.derivedDeviceInterface,postPlayNonce:V,type:b};I.sequenceGroup=V;D.playState=l?"PLAY_STATE_NOT_READY":q?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.C1("miniAppPlayEvent",D,
I);h&&_.JM();_.ip(k)})},cu=function(G,b){var I;
_.c(function(h){if(h.nextAddress==1)return I=(0,_.Li)(),h.yield(G.JSC$17139_playNonceResolver.promise,2);_.sS(b,I);_.ip(h)})},fYW=function(G){isNaN(G.playPingTimerId)&&(G.playPingTimerId=_.M1(function(){G.state!==1&&G.state!==2?_.RB(new _.Wf("[MiniAppPlayLogger] reportPlayPing failed with state "+kac[G.state])):kB(G,"PLAY_EVENT_TYPE_PLAY_PING")},G.playPingIntervalMs))},AcL=function(G){return Array.from(G.entries()).map(function(b){var I=_.e(b);
b=I.next().value;I=I.next().value;return{key:b,value:I}})};var t8W=function(){},zeF=function(G,b){G.showMiniAppAdCommand=b.showMiniAppAdCommand;
G.isEmbeddedInWebview=b.isEmbeddedInWebview;G.playLogger=b.playLogger},iD9=function(G,b){var I;
return _.c(function(h){if(h.nextAddress==1){if(!G.showMiniAppAdCommand||!G.isEmbeddedInWebview)return h.return(o3a(G,b));G.adResolver=new _.G9;var q=new Js;I=_.Tv(q,3,b);Ax(G.showMiniAppAdCommand,ZbJ(I));return h.yield(G.adResolver.promise,2)}return h.return(h.yieldResult)})};
t8W.prototype.onAdFinished=function(G){G=Bui(G);var b;(b=this.adResolver)==null||b.resolve(G)};
var o3a=function(G,b){var I;return _.c(function(h){if(h.nextAddress==1)h=h.yield((I=G.playLogger)==null?void 0:ZDe(I,Ei2(b)),2);else{var q=h.return;var l=new Tue;l=_.Tv(l,1,2);h=q.call(h,l)}return h})};var PFW=new _.q3("INNERTUBE_MANAGER_TOKEN");var df3=function(){this.callbacks={}};
df3.prototype.initialize=function(G){var b=this;this.callbacks=G;window.youtubewebview?window.youtubewebview.onmessage=function(I){yc3(b,I)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(I){yc3(b,I)})};
var yc3=function(G,b){if(b.data)try{var I=XcW(b.data);if(_.Mf(_.mI(I,1))!=null){var h=B0i(_.U5(I,2));switch(I.getMethodName()){case "yt-mini-app-load-audio-state":var q,l;(l=(q=G.callbacks).onAudioStateLoaded)==null||l.call(q,_.fp(h,PA(h,Cb,1)));break;case "yt-mute-mini-app":var V,D;(D=(V=G.callbacks).onMuteMiniApp)==null||D.call(V);break;case "yt-unmute-mini-app":var k,L;(L=(k=G.callbacks).onUnmuteMiniApp)==null||L.call(k);break;case "yt-playable-exit":var x,f;(f=(x=G.callbacks).onExit)==null||f.call(x);
break;case "yt-post-play-nonce":var T,B;(B=(T=G.callbacks).onPostPlayNonceReceived)==null||B.call(T,MC(h,2,Cb));break;case "yt-confirm-exit-mini-app":var A,t;(t=(A=G.callbacks).confirmExitMiniApp)==null||t.call(A);break;case "yt-confirm-exit-mini-app-edu":var y,F;(F=(y=G.callbacks).confirmExitMiniAppEdu)==null||F.call(y);break;case "yt-benchmarking-response":var W,O;(O=(W=G.callbacks).onNativeBenchmarkingMessageReceived)==null||O.call(W,MC(h,2,Cb));break;case "yt-mini-app-load-3p-consent-state":var K,
u;(u=(K=G.callbacks).multiplayer3pAckStateLoaded)==null||u.call(K,_.fp(h,PA(h,Cb,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var w,$a;($a=(w=G.callbacks).exitMiniAppSeenStateLoaded)==null||$a.call(w,_.fp(h,PA(h,Cb,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var ev,LO;(LO=(ev=G.callbacks).onNavigateToNewMiniApp)==null||LO.call(ev);break;case "yt-game-data-available":var td,xa;(xa=(td=G.callbacks).onGameDataAvailable)==null||xa.call(td,MC(h,2,Cb));break;case "yt-pause-mini-app":var Uj,
W2;(W2=(Uj=G.callbacks).onPauseMiniApp)==null||W2.call(Uj);break;case "yt-resume-mini-app":var is,su;(su=(is=G.callbacks).onResumeMiniApp)==null||su.call(is);break;case "yt-playable-ad-finished":var an,A5;(A5=(an=G.callbacks).onAdFinished)==null||A5.call(an,MC(h,2,Cb))}}else _.RB(Error("Vh"))}catch(XO){_.K1(Error("Wh"))}else _.RB(Error("Xh"))};var SI2=function(G){this.rpcErrorCode=G};var vu=function(G,b,I){this.intervalMs=G;this.apiFunc=b;this.type=I;this.schedulerReady=!0};
vu.prototype.call=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1){if(b.type!==1&&G===b.cachedValue)return h.return();b.pendingApiRequestResolver||(b.pendingApiRequestResolver=new _.G9);I=b.pendingApiRequestResolver.promise;b.cachedValue=G;return h.yield(rc3(b),2)}return h.return(I)})};
vu.prototype.flush=function(G){G=G===void 0?!1:G;var b=this;return _.c(function(I){return b.cachedValue===void 0?I.return():I.yield(b.apiFunc(b.cachedValue,G),0)})};
var rc3=function(G){var b,I,h;return _.c(function(q){switch(q.nextAddress){case 1:if(!G.schedulerReady||!G.pendingApiRequestResolver)return q.return();G.schedulerReady=!1;b=G.pendingApiRequestResolver;G.pendingApiRequestResolver=void 0;_.gm(q,2);if(G.cachedValue===void 0){q.jumpTo(4);break}return q.yield(G.apiFunc(G.cachedValue),5);case 5:I=q.yieldResult,b.resolve(I);case 4:_.hF(q,3);break;case 2:h=_.zf(q),b.reject(h);case 3:setTimeout(function(){return _.c(function(l){G.schedulerReady=!0;return l.yield(rc3(G),
0)})},G.intervalMs),_.ip(q)}})};var GGs=window.location.origin+"/miniapp_cloudsaves",XJd=[400,401],F98=_.Te("cloud_save_game_data_rate_limit_ms",3E3),aYF=function(G){var b=this;this.JSC$17183_miniAppId=G;this.loadAttempts=0;this.cloudSaveIntervalMs=F98;this.initialDownloadDataSucceeded=!1;this.JSC$17183_playNonceResolver=new _.G9;this.scottyUploadRateLimiter=new vu(this.cloudSaveIntervalMs,function(I,h){return HDW(b,I,h)},2);
this.downloadDataPromise=W9L(this);this.downloadDataPromise.then(function(){b.initialDownloadDataSucceeded=!0}).catch(function(){})},NjD=function(G,b){b.then(function(I){return G.JSC$17183_playNonceResolver.resolve(I)})},Y18=function(G){return _.c(function(b){return G.cachedData===void 0?b.return(G.downloadDataPromise):b.return(G.cachedData)})},CFL=function(G,b){return _.c(function(I){G.cachedData=b;
if(!G.initialDownloadDataSucceeded)throw Error("Yh");return I.yield(G.scottyUploadRateLimiter.call(b),0)})},Jca=function(){return new Promise(function(G){setTimeout(G,1E3,"")})},K9j=function(G,b){var I,h;
return _.c(function(q){if(q.nextAddress==1)return I=G.JSC$17183_miniAppId,q.yield(Promise.race([G.JSC$17183_playNonceResolver.promise,Jca()]),2);h={"X-YouTube-MiniAppId":I,"X-YouTube-PostPlayNonce":q.yieldResult};"DELEGATED_SESSION_ID"in _.n3&&eZO(b,h);return q.return(h)})},HDW=function(G,b,I){I=I===void 0?!1:I;
return _.c(function(h){return pJq()?_.U("enable_cloud_save_error_popup_after_retry")?h.return(new Promise(function(q,l){var V,D,k,L,x;return _.c(function(f){switch(f.nextAddress){case 1:V=0,D=!0,L=k=null;case 2:if(!(D&&V++<2)){f.jumpTo(4);break}_.gm(f,5);return f.yield(uWj(G,b,I),7);case 7:k=f.yieldResult;D=k.ok?!1:!XJd.includes(k.status);_.hF(f,2);break;case 5:L=x=_.zf(f);D=$kq(L);f.jumpTo(2);break;case 4:k?k.ok?(Ll(G,F98),q()):(Ll(G,G.cloudSaveIntervalMs*2),l(Error("Zh`"+String(k.status),{cause:{rpcErrorCode:k.status}}))):
(Ll(G,G.cloudSaveIntervalMs*2),l(L||Error("$h"))),_.ip(f)}})})):h.return(new Promise(function(q,l){var V,D;
return _.c(function(k){if(k.nextAddress==1){if(G.JSC$17183_miniAppId==="")return l(Error("ai")),k.return();_.gm(k,2);return k.yield(uWj(G,b,I),4)}if(k.nextAddress!=2)return V=k.yieldResult,V.ok?(Ll(G,F98),q()):(Ll(G,G.cloudSaveIntervalMs*2),l(Error("Zh`"+String(V.status),{cause:{rpcErrorCode:V.status}}))),_.hF(k,0);D=_.zf(k);Ll(G,G.cloudSaveIntervalMs*2);l(D);_.ip(k)})})):h.return()})},uWj=function(G,b,I){I=I===void 0?!1:I;
var h,q,l;return _.c(function(V){if(V.nextAddress==1)return h=_.WL((new TextEncoder).encode(b)),q=buu(),V.yield(K9j(G,q),2);l=V.yieldResult;return V.return(fetch(q,{method:"POST",body:new Blob([h]),headers:l,keepalive:I}))})},W9L=function(G){var b,I;
return _.c(function(h){if(h.nextAddress==1){if(!pJq())return h.return("");if(G.JSC$17183_miniAppId==="")throw Error("ai");if(G.loadAttempts>2)return h.return(G.downloadDataPromise);_.gm(h,2);return h.yield(ReW(G),4)}if(h.nextAddress!=2)return b=h.yieldResult,h.return(b);I=_.zf(h);if($kq(I)&&++G.loadAttempts<2)return h.return(W9L(G));throw I;})},ReW=function(G){var b,I,h,q,l;
return _.c(function(V){switch(V.nextAddress){case 1:return _.gm(V,2),b=buu(),V.yield(K9j(G,b),4);case 4:return I=V.yieldResult,V.yield(fetch(b,{method:"GET",headers:I}),5);case 5:return h=V.yieldResult,h.ok?V.yield(h.text(),6):V.return(Promise.reject(Error("bi`"+String(h.status),{cause:new SI2(h.status)})));case 6:return q=V.yieldResult,V.return((new TextDecoder).decode(_.Sv(q)));case 2:return l=_.zf(V),V.return(Promise.reject(l))}})},Ll=function(G,b){G.cloudSaveIntervalMs=b;
G.scottyUploadRateLimiter.intervalMs=G.cloudSaveIntervalMs};
aYF.prototype.flush=function(){var G=this;return _.c(function(b){return G.initialDownloadDataSucceeded?b.yield(G.scottyUploadRateLimiter.flush(!0),0):b.return()})};var n33=Lb(vB(1),cB(1)),ODF=Lb(vB(1),cB(3)),Qb=function(G){this.callbacks=G};
_.m=Qb.prototype;_.m.onAudioToggled=function(G,b){(b===void 0||b)&&_.LX("yt-mini-app-is-audio-enabled",G,2592E3)};
_.m.onPause=function(){this.onAudioToggled(!1,!1)};
_.m.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.m.returnNativeBenchmarkingMessage=function(){};
_.m.sendGameData=function(){};
_.m.sendStartGameFrameCapture=function(){};
var Ika=function(G,b,I){this.callbacks=G;var h=this;this.sdkVersion=new _.G9;this.channel=new QIO(_.Ie({destination:window,iframe:b,origin:(new URL(I.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var q=xB;var l=vB(5);var V=new omW;V=_.tJ(V,1,1E4);l=_.tz(l,4,WQe,V);q(h,l);h.onAudioToggled(h.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){h.sdkVersion.resolve("")},1E4)};
_.M(Ika,Qb);_.m=Ika.prototype;_.m.onAudioToggled=function(G,b){Qb.prototype.onAudioToggled.call(this,G,b===void 0?!0:b);b=xB;var I=vB(2),h=new tPB;G=_.Tx(h,1,G);G=_.tz(I,3,WQe,G);b(this,G)};
_.m.onPause=function(){Qb.prototype.onPause.call(this);xB(this,vB(3))};
_.m.onResume=function(){Qb.prototype.onResume.call(this);xB(this,vB(4))};
_.m.returnNativeBenchmarkingMessage=function(G){var b=xB,I=vB(6);var h=cB(_.eR(G,Ep,1)?1:2);G=_.eR(G,Ep,1)?G:null;h=_.tz(h,5,kf,G);b(this,Lb(I,h))};
_.m.sendGameData=function(G){var b=xB,I=vB(7);G=_.tz(I,5,WQe,G);b(this,G)};
_.m.sendStartGameFrameCapture=function(){xB(this,vB(9))};
var fl=function(G,b,I){var h,q,l;return _.c(function(V){if(V.nextAddress==1)return h=G.callbacks,q=h.onSdkCalled,l=b,V.yield(G.sdkVersion.promise,2);q.call(h,l,V.yieldResult,I);_.ip(V)})};
Ika.prototype.onMessage=function(){var G=this;return Tdi(fb,function(b){var I,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u,w,$a,ev,LO,td,xa,Uj,W2,is,su,an,A5,XO,kb,rz,on,Ac,U1,mp,bn,xb,j8,BX,I5,ys,nQ;return _.c(function(vX){switch(vX.nextAddress){case 1:if(!nmJ(b.data))return _.RB(Error("ci")),vX.return();I=_.gU(b.data,1);_.U("enable_iframe_message_get_type_via_fields")&&(h=b.data,I=q=_.gU(h,1));switch(I){case 8:if(b.data.hasMetadata()){var cX=G.sdkVersion,Ga=cX.resolve;var wX=b.data.getMetadata();wX=_.U5(wX,
1);Ga.call(cX,wX);clearTimeout(G.sdkVersionTimeoutId)}break;case 6:return vX.jumpTo(2);case 16:if(!_.Vt(b.data,Y$n,14,TQ))return vX.return();l=_.Zu(b.data,Y$n,14,TQ);(D=(V=G.callbacks).onGameFrameReceived)==null||D.call(V,l);return vX.return();case 17:if(!_.Vt(b.data,Nun,15,TQ))return vX.return();(L=(k=G.callbacks).onGameAudioReceived)==null||L.call(k,_.Zu(b.data,Nun,15,TQ));return vX.return();case 1:if(cX=_.Zu(b.data,dRi,2,TQ))switch(_.gU(cX,1)){case 1:G.callbacks.onFirstFrameReady();if(_.U("enable_network_request_logging_on_game_events")&&
_.eR(cX,V$,4)){fl(G,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.fi(cX,V$,4));break}fl(G,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(wX=(Ga=G.callbacks).onGameReady)==null||wX.call(Ga);if(_.U("enable_network_request_logging_on_game_events")&&_.eR(cX,V$,4)){fl(G,"MINI_APP_SDK_API_GAME_READY",_.fi(cX,V$,4));break}fl(G,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Vt(cX,Df,3,y$i))G.callbacks.onResourceLoaded(_.Zu(cX,Df,3,y$i))}return vX.return();case 3:return vX.jumpTo(3);case 4:return vX.jumpTo(4);
case 2:return vX.jumpTo(5);case 9:return vX.jumpTo(6);case 10:return G.callbacks.onClick(),vX.return();case 5:return vX.jumpTo(7);case 11:if(!_.Vt(b.data,lC,9,TQ))return vX.return();x=_.Zu(b.data,lC,9,TQ);(T=(f=G.callbacks).onBenchmarkingMessageReceived)==null||T.call(f,x);cX=b.reply;Ga=vB(1);wX=cB(1);var TA=new lC;var s1=new Uint8Array(FOQ(x,PA(x,svb,6))|0);TA=Z5(TA,5,svb,_.yi(s1,!1));wX=_.tz(wX,5,kf,TA);cX.call(b,Lb(Ga,wX));return vX.return();case 12:return vX.jumpTo(8);case 13:return vX.jumpTo(9);
case 15:if(!_.U("enable_open_yt_content"))return b.reply(ODF),vX.return();if(!_.Vt(b.data,acn,12,TQ))return b.reply(Lb(vB(1),cB(2))),vX.return();cX=_.Zu(b.data,acn,12,TQ);B=_.U5(cX,1);G.callbacks.onOpenYTContent(B);b.reply(n33);return vX.return();case 14:return vX.jumpTo(10);default:return vX.return()}vX.jumpTo(0);break;case 2:if(!_.Vt(b.data,Q$,5,TQ))return vX.return();Ga=b.data;cX=PA(Ga,TQ,5);Ga=Ga.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A=W92(Ga,Ga[_.q8]|0,Q$,cX)||Q$[NzX]||(Q$[NzX]=
YuO(Q$));cX=_.ku(A,m4,1,_.vr());t=_.e(cX);y=t.next();case 12:if(y.done){vX.jumpTo(14);break}F=y.value;W=new _.Wf;W.level=_.gU(F,2)===1?"WARNING":"ERROR";O=qDp(F.getSource());return vX.yield(G.sdkVersion.promise,15);case 15:K={source:O,sdkVersion:vX.yieldResult};_.lF(_.mI(F,6))!=null?(W.message=F.getMessage(),W.stack=_.U5(F,5),K.sdkErrorType=jcd(_.gU(F,6)),_.lF(_.mI(F,7))!=null&&(K.sdkApi=lka(_.gU(F,7)))):W.stack=void 0;w=u=void 0;(w=(u=G.callbacks).onError)==null||w.call(u,{loggingError:W,metadata:K});
y=t.next();vX.jumpTo(12);break;case 14:return vX.return();case 3:return _.gm(vX,16),cX=vX.yield,Ga=G.callbacks,wX=Ga.onSave,TA=_.Zu(b.data,zgb,4,TQ),TA=_.U5(TA,1),cX.call(vX,wX.call(Ga,TA),18);case 18:b.reply(n33);_.hF(vX,17);break;case 16:return $a=_.zf(vX),ev=MA,LO=$a,td=G.callbacks,xa="MINI_APP_SDK_API_SAVE_DATA",vX.yield(G.sdkVersion.promise,19);case 19:ev(LO,td,xa,vX.yieldResult),b.reply(ODF);case 17:return vX.yield(fl(G,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return vX.return();case 4:return _.gm(vX,
21),vX.yield(G.callbacks.onLoad(),23);case 23:Uj=vX.yieldResult;cX=b.reply;Ga=vB(1);wX=cB(1);TA=new zgb;TA=_.F0(TA,1,Uj);wX=_.tz(wX,3,kf,TA);cX.call(b,Lb(Ga,wX));_.hF(vX,22);break;case 21:return W2=_.zf(vX),is=MA,su=W2,an=G.callbacks,A5="MINI_APP_SDK_API_LOAD_DATA",vX.yield(G.sdkVersion.promise,24);case 24:is(su,an,A5,vX.yieldResult),b.reply(ODF);case 22:return vX.yield(fl(G,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return vX.return();case 5:_.gm(vX,26);G.callbacks.onSendHighScore(Rl(_.Zu(b.data,
u4A,3,TQ).getValue()));b.reply(Lb(vB(1),cB(1)));_.hF(vX,27);break;case 26:return XO=_.zf(vX),kb=MA,rz=XO,on=G.callbacks,Ac="MINI_APP_SDK_API_SEND_SCORE",vX.yield(G.sdkVersion.promise,28);case 28:kb(rz,on,Ac,vX.yieldResult),b.reply(ODF);case 27:return vX.yield(fl(G,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return vX.return();case 6:if(!_.Vt(b.data,RgB,8,TQ)){vX.jumpTo(30);break}cX=vX.yield;Ga=_.Zu(b.data,RgB,8,TQ);Ga=_.gU(Ga,1);return cX.call(vX,fl(G,lka(Ga)),30);case 30:return vX.return();case 7:return cX=
b.reply,Ga=vB(1),wX=cB(1),TA=G.callbacks.getLanguage(),wX=Z5(wX,4,kf,BL(TA)),cX.call(b,Lb(Ga,wX)),vX.yield(fl(G,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return vX.return();case 8:if(!_.Vt(b.data,KQb,10,TQ))return vX.return();U1=_.Zu(b.data,KQb,10,TQ);mp=G.callbacks;bn=mp.onSdkPerformanceUpdate;return vX.yield(G.sdkVersion.promise,33);case 33:return bn.call(mp,U1,vX.yieldResult),vX.return();case 9:cX=b.data;Ga=PA(cX,TQ,11);if(_.Mf(_.mI(cX,Ga))==null)return b.reply(Lb(vB(1),cB(2))),vX.return();
xb=MC(b.data,11,TQ);G.callbacks.onShareInviteCode(xb);b.reply(n33);return vX.yield(fl(G,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return vX.return();case 10:if(_.Vt(b.data,ZEe,13,TQ)){vX.jumpTo(35);break}return vX.yield(G.callbacks.onShowMiniAppAd(2),36);case 36:return j8=vX.yieldResult,b.reply(Lb(vB(1),FQA(j8))),vX.yield(fl(G,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return vX.return();case 35:cX=_.Zu(b.data,ZEe,13,TQ);a:switch(_.gU(cX,1)){case 1:cX={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:cX={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:cX={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}BX=cX;I5=BX.adType;ys=BX.sdkApi;cX=vX.yield;Ga=G.callbacks;wX=Ga.onShowMiniAppAd;TA=_.Zu(b.data,ZEe,13,TQ);TA=_.U5(TA,2);return cX.call(vX,wX.call(Ga,I5,TA||void 0),38);case 38:return nQ=vX.yieldResult,b.reply(Lb(vB(1),FQA(nQ))),vX.yield(fl(G,ys),39);case 39:return vX.return()}})})};
var xB=function(G,b){_.c(function(I){G.channel.send(b);_.ip(I)})},ZA=function(G,b,I){this.callbacks=G;
var h=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;G=Sv2(b,(new URL(I.toString())).origin);this.gameSnacks=new dEb(G);this.gameSnacks.page.onReady(function(){h.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){h.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var q,l;(l=(q=h.callbacks).onGameReady)==null||l.call(q)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(q,l){try{h.callbacks.onSendHighScore(l)}catch(V){MA(V,h.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(q,l){var V;return _.c(function(D){if(D.nextAddress==1)return _.gm(D,2),D.yield(h.callbacks.onSave(h.decoder.decode(l)),4);if(D.nextAddress!=2)return _.hF(D,0);V=_.zf(D);MA(V,h.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return D.return()})});
this.gameSnacks.storage.onLoad(function(){var q,l;return _.c(function(V){if(V.nextAddress==1)return _.gm(V,2),V.yield(h.callbacks.onLoad(),4);if(V.nextAddress!=2)return q=V.yieldResult,V.return(h.encoder.encode(q));l=_.zf(V);MA(l,h.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return V.return(h.encoder.encode(""))})});
this.gameSnacks.init()};
_.M(ZA,Qb);ZA.prototype.onAudioToggled=function(G,b){Qb.prototype.onAudioToggled.call(this,G,b===void 0?!0:b);var I;(I=this.gameSnacks)==null||I.audio.update(G)};
ZA.prototype.onPause=function(){Qb.prototype.onPause.call(this);var G;(G=this.gameSnacks)==null||G.game.pause()};
ZA.prototype.onResume=function(){Qb.prototype.onResume.call(this);var G;(G=this.gameSnacks)==null||G.game.resume()};var wL8=mkO,E3D=_.C(function(G){var b=G.data;var I=G.loadingProgress;var h=G.forPaused;G=_.e(_.ZZ("",void 0,"LYYTdd"));var q=G.next().value,l=G.next().value;G=_.e(_.ZZ(!1,void 0,"K0waae"));var V=G.next().value,D=G.next().value,k=[],L=function(){return"transform: scaleX("+(_.n0(I)||0)+")"},x=null,f=function(){return b()&&x!==null&&x!==void 0?x:x=b().showAnniversaryAnimation?6:wL8()};
_.K0(function(){var t;if(b().timeOutMessages&&((t=b().timeOutMessages)==null?0:t.length)){x=null;t=_.e(k);for(var y=t.next();!y.done;y=t.next())clearTimeout(y.value);k.length=0;e_j(b().timeOutMessages,k,l,D)}},"BNu9j");
var T=function(){return!!b().persistentErrorMessageTitle},B=function(){return I!==void 0},A=function(){return b().title};
return _.v("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.v("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.v("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.v("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var t,y=(t=b().backgroundImage)==null?void 0:t.sources,F;return(y==null?0:y.length)?"background-image: url("+((F=y[0])==null?void 0:F.url)+")":""}}),_.v("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.v(_.Q,{cond:function(){return!T()&&!(h==null?0:h())},
then:function(){var t={};return _.v("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.v("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.v(_.zV,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+f()},
data:function(){var y="loading_animation_"+f();return{animationConfig:{name:y,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+y+".json",loop:!0,autoplay:!0}}}})),_.v("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.v(_.Q,{cond:A,
then:function(){return _.v("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},A)}}),_.v("p",{class:_.pG("miniAppSplashScreenViewModelTimeoutMessage",(t.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return V()},t)),
"aria-live":"polite"},q),_.v(_.Q,{cond:B,then:function(){return _.v("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.v("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:L}))}})))}}),_.v(_.Q,{cond:T,
then:function(){return _.v("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.v("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return b().persistentErrorMessageTitle}),_.v(_.Q,{cond:function(){return!!b().persistentErrorMessageDescription},
then:function(){return _.v("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return b().persistentErrorMessageDescription})}}))}}),_.v(_.Q,{cond:h,
then:function(){return _.v("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.v("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.v("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},A))}})))},"Of");var pLK=new _.q3("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var S1e=Dp;Dp=function(G){function b(I){if(I){var h,q;(h=I.__spec)==null||(q=h.didUnmount)==null||q.call(h);for(h=0;h<I.childNodes.length;h++)b(I.childNodes[h])}}
S1e==null||S1e(G);LG(function(){for(var I=0;I<G.length;I++)b(G[I])})};var XL9=_.C(function(G){var b=G.data;var I=G.score;var h=G.formattedScore;var q=G.onScoreChanged;var l=G.isEmbeddedInWebview;var V=_.VF("yt-mini-app-score-button-view-model"),D=function(){var B;return _.g(b==null?void 0:(B=b())==null?void 0:B.buttonViewModel,_.j6)},k=function(){var B;
return(I==null?void 0:I())||Number(b==null?void 0:(B=b())==null?void 0:B.lastScore)||0},L=function(){var B;
return(h==null?void 0:h())||((B=D())==null?void 0:B.title)||""},x,f=1;
if(G=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))G=Number(G),f=isNaN(G)?1:G/100;_.K0(function(){q==null||q(k());var B;var A=_.s0((B=D())==null?void 0:B.onTap);if(A){B=_.g(A,DJu);var t,y,F;B=_.g(B==null?void 0:(t=B.panelLoadingStrategy)==null?void 0:(y=t.inlineContent)==null?void 0:(F=y.dialogViewModel)==null?void 0:F.customContent,tIQ)}else B=void 0;if(t=B)t.score=L()},"Aekez");
G=_.Xu(function(){var B,A,t=b==null?void 0:(B=b())==null?void 0:(A=B.loggingDirectives)==null?void 0:A.trackingParams;t&&_.yw(_.LL().resolve(_.aS),t);return!1});
_.K3(function(){if(V.value){var B=V.value.querySelector("button"),A=D();B&&A&&Vzp(B,A);_.kG("yt-share-playable-with-high-score",function(){var t=k().toString(),y=b==null?void 0:b().onShareHighScoreCommand,F=b==null?void 0:b().highScoreShareClientParamIdentifier,W=l==null?void 0:l();y&&(W?(F=new O5Q,t=_.F0(F,2,t),Ax(y,t.JSC$12598_serializeBinary())):F&&(_.LL().resolve(pLK).clientParams.set(F,{miniAppClientParams:{highScore:t}}),Rnd(y,!1)))})}});
var T=function(){var B=D();B&&(I==null?0:I())&&B.accessibilityText&&(B.accessibilityText=B.accessibilityText.replace(x,L()));x=L();return{numberValue:k(),numberText:L(),heightPx:36,fontSizeMultiplier:f,shouldAnimate:!(I==null||!I())&&!0}};
return _.v("yt-mini-app-score-button-view-model",{class:function(){var B={};return _.xU("miniAppScoreButtonViewModelHost",(B.miniAppScoreButtonViewModelIsVisible=k()!==0,B))},
el:V,"on:click":G},v_r(!1,function(){return _.v("span",{style:"display:none;"},k)}),_.v(_.VX,{data:function(){var B;
return b==null?void 0:(B=b())==null?void 0:B.buttonViewModel}},{buttonViewModel:function(B){return _.v(_.sQ,{data:B.data,
animatedTextProps:T})}}))},"Qf");var hKj=_.C(function(G){var b,I=(b=_.Q4("yt-mini-app-is-theater-mode-enabled"))!=null?b:!1,h=_.U("enable_playable_container_save_button"),q=_.U("enable_play_next_destination_page_in_toolbar");b={};return _.v("ytm-mini-app-top-bar-view-model",null,_.v("div",{class:_.pG("yt-mini-app-top-bar-view-model",(b["yt-mini-app-top-bar-view-model--mobile"]=!1,b["yt-mini-app-top-bar-view-model--desktop"]=!0,b))},_.v("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.v(_.Q,{cond:function(){var l;return!!G.data().backButtonEdu&&
!((l=G.isExitMiniAppSeen)==null?0:l.call(G))},
then:function(){return _.v(_.VX,{data:function(){return G.data().backButtonEdu}},{buttonViewModel:_.sQ})},
else:function(){return _.v(_.VX,{data:function(){return G.data().backButton}},{buttonViewModel:_.sQ})}}),_.v(_.Q,{cond:function(){return G.data().viewAllButton&&!0},
then:function(){return _.v(_.VX,{data:function(){return G.data().viewAllButton}},{buttonViewModel:_.sQ})}}),_.v(_.Q,{cond:function(){return G.data().title&&!0},
then:function(){return _.v("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return G.data().title})}})),_.v("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.v(_.Q,{cond:function(){var l;
return(l=G.isDesktopPlayPage)==null?void 0:l.call(G)},
then:function(){return _.v(_.xz,null,_.v($ED,{highScoreButton:function(){return G.data().highScoreButton},
score:G.score,formattedScore:G.formattedScore,onScoreChanged:G.onScoreChanged,isEmbeddedInWebview:G.isEmbeddedInWebview}),_.v(G78,{enableSaveButton:function(){return _.n0(h)},
saveButton:function(){return G.data().saveButton},
isSaved:G.isSaved,onSaveToggled:function(){return G.onSaveToggled}}),_.v(bA5,{menuButton:function(){return G.data().menuButton}}))},
else:function(){return _.v(_.Q,{cond:function(){return!1},
then:function(){return _.v(_.VX,{data:function(){return G.data().playPageButton}},{buttonViewModel:function(l){return _.v(_.sQ,{data:l.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.v($ED,{highScoreButton:function(){return G.data().highScoreButton},
score:G.score,formattedScore:G.formattedScore,onScoreChanged:G.onScoreChanged,isEmbeddedInWebview:G.isEmbeddedInWebview})}})}})),_.v("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.v(_.VX,{data:function(){return G.data().muteButton}},{toggleButtonViewModel:function(l){var V=l.data;
return _.v(_.YK,{data:function(){var D,k;return Object.assign({},V(),{isToggled:(k=(D=G.isAudioEnabled)==null?void 0:D.call(G))!=null?k:!0})},
onToggle:G.onAudioToggled,useOutlinedIcon:!0})}}),_.v(_.VX,{data:function(){return G.data().theatreModeButton}},{toggleButtonViewModel:function(l){var V=l.data;
return _.v("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.v(_.YK,{data:function(){return Object.assign({},V(),{isToggled:I})},
useOutlinedIcon:!0}))}}),_.v(IK3,{fullscreenButton:function(){return G.data().fullscreenButton}}),_.v(_.Q,{cond:function(){return _.n0(q)&&G.data().viewAllButton&&!1},
then:function(){return _.v(_.VX,{data:function(){return G.data().viewAllButton}},{buttonViewModel:_.sQ})}}),_.v(_.Q,{cond:function(){var l;
return!((l=G.isDesktopPlayPage)==null?0:l.call(G))},
then:function(){return _.v(_.xz,null,_.v(G78,{enableSaveButton:function(){return _.n0(h)},
saveButton:function(){return G.data().saveButton},
isSaved:G.isSaved,onSaveToggled:function(){return G.onSaveToggled}}),_.v(bA5,{menuButton:function(){return G.data().menuButton}}))}}))))},"Rf");
hKj.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var bA5=_.C(function(G){return _.v(_.VX,{data:G.menuButton},{buttonViewModel:_.sQ})},"Sf"),G78=_.C(function(G){var b=G.enableSaveButton;
var I=G.saveButton;var h=G.isSaved;var q=G.onSaveToggled;return _.v(_.Q,{cond:function(){return b()&&!(I==null||!I())},
then:function(){return _.v(_.VX,{data:function(){var l=_.g(I==null?void 0:I(),_.mS),V;return{toggleButtonViewModel:Object.assign({},l,{isToggled:(V=h==null?void 0:h())!=null?V:!(l==null||!l.isToggled)})}}},{toggleButtonViewModel:function(l){return _.v(_.YK,{data:l.data,
onToggle:q})}})}})},"Tf"),$ED=_.C(function(G){var b=G.highScoreButton;
var I=G.score;var h=G.formattedScore;var q=G.onScoreChanged;var l=G.isEmbeddedInWebview;return _.v(_.VX,{data:b},{miniAppScoreButtonViewModel:function(V){return _.v(XL9,{data:V.data,score:I,formattedScore:h,onScoreChanged:q,isEmbeddedInWebview:l})}})},"Uf"),IK3=_.C(function(G){G=G.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.v(_.xz,null):_.v(_.VX,{data:G},{buttonViewModel:_.sQ})},"Vf");_.qv5=new _.q3("DESKTOP_CURRENT_PAGE");var DEF=_.C(function(G){var b=G.data;var I=_.U("force_active_time_logging_webview"),h=!1,q=new df3,l=void 0,V=void 0,D=_.LL().resolve(PFW),k=new t8W,L=void 0,x=void 0,f=[],T=void 0,B=void 0,A=!1,t=!1,y=!1,F=!1,W=new _.G9,O=_.LL().resolve(pLK),K=_.LL().resolve(_.DT),u=_.LL().resolve(_.vf(rF)),w,$a=(w=_.LL().resolve(_.vf(_.qv5)))==null?void 0:w.getCurrentPage(),ev=!1,LO=0,td=function(nO){nO.preventDefault();return nO.returnValue=""},xa;
G=_.e(_.ZZ(!((xa=_.Q4("yt-mini-app-is-audio-enabled"))!=null&&!xa),void 0,"WhYQTd"));var Uj=G.next().value,W2=G.next().value,is;xa=_.e(_.ZZ(!((is=_.Q4("exit-mini-app-seen-state"))==null||!is),void 0,"jxhCJb"));var su=xa.next().value,an=xa.next().value;is=_.e(_.ZZ(!1,void 0,"MuvDfe"));var A5=is.next().value,XO=is.next().value;is=_.e(_.ZZ(void 0,void 0,"u9DLoc"));var kb=is.next().value,rz=is.next().value;is=_.e(_.ZZ(void 0,void 0,"rykyJb"));var on=is.next().value,Ac=is.next().value;is=_.e(_.ZZ(!0,void 0,
"d8FUvf"));var U1=is.next().value,mp=is.next().value;is=_.e(_.ZZ(!1,void 0,"x9XwUb"));var bn=is.next().value,xb=is.next().value;is=_.e(_.ZZ(!1,void 0,"bcquyc"));var j8=is.next().value,BX=is.next().value;is=_.e(_.ZZ(void 0,void 0,"FMAC5b"));var I5=is.next().value,ys=is.next().value;is=_.e(_.ZZ(0,void 0,"HUGJEb"));var nQ=is.next().value,vX=is.next().value,cX=_.ee("mini-app-container-view-model"),Ga=function(){return b().isEmbeddedInWebview},wX=function(){return b().hasPlayNextShelf};
_.kG("yt-page-type-changed",function(nO){if(_.U("enable_is_mini_app_page_active_bugfix"))nO.detail.newPageSubtype==="mini_app"&&nO.detail.newPageType==="ytd-browse"||!U1()||pA();else if(nO=_.WH()==="mini_app",nO!==U1())if(mp(nO),nO){var za;nO=(za=b().playableId)==null?void 0:za.toString();nO!==void 0&&window.location.href.includes(nO)&&!t&&(F=!0,TA(),Bg.value&&ok(Bg.value))}else nO||pA()});
_.kG("yt-action",function(nO){nO.detail.actionName==="yt-engagement-panel-visible-changed"&&nO.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&nO.detail.args[2]==="PAmini_app_panel"&&pA();_.U("enable_is_mini_app_page_active_bugfix")?nO.detail.actionName==="yt-history-load"&&!U1()&&($a==null?0:$a.active)?(mp(!0),TA(),Bg.value&&ok(Bg.value)):nO.detail.actionName==="yt-history-load"&&U1()&&!b().isEmbeddedInWebview&&Va():U1()&&nO.detail.actionName==="yt-history-load"&&(F?F=!1:b().isEmbeddedInWebview||
Va())});
_.uI(function(){s1()});
_.K0(function(){TA()},"bLMzme");
var TA=function(){var nO=b().playableId,za=b().localReleaseId,o5=b().derivedDeviceInterface;if(t)_.RB(new _.Wf("[MiniAppContainerViewModel] onEnter was called more than once"));else{t=!0;l=new L9F(nO,za,o5,document.visibilityState==="visible");Tj5(l);V=new aYF(nO);jIK(D,nO);zeF(k,{showMiniAppAdCommand:b().showMiniAppAdCommand,isEmbeddedInWebview:b().isEmbeddedInWebview,playLogger:l});wTs()&&(B=document.body.style.backgroundColor,_.Nw(document.body,"background-color","black"));XQ();CD();W=new _.G9;
if(b().isEmbeddedInWebview){if(nO=(new URLSearchParams(window.location.search)).get("postPlayNonce"))xf9(l,nO),ev=!0;q.initialize({onAudioStateLoaded:function(vL){SG(vL)},
onMuteMiniApp:function(){SG(!1)},
onUnmuteMiniApp:function(){SG(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(vL){ev||(xf9(l,vL),ev=!0)},
confirmExitMiniApp:function(){var vL,Ly,py;return _.c(function(O8){if(O8.nextAddress==1)return b().confirmExitMiniAppCommand?O8.yield(Promise.race([W.promise,Promise.resolve(!1)]),2):O8.return();(vL=O8.yieldResult)?!b().confirmExitMiniAppCommandEdu||(py=(Ly=su)==null?void 0:Ly())!=null&&py?sg(b().confirmExitMiniAppCommand):(sg(b().confirmExitMiniAppCommandEdu),_.LX("exit-mini-app-seen-state","true",2592E6)):sg(b().closeMiniAppCommand);_.ip(O8)})},
onNativeBenchmarkingMessageReceived:function(vL){vL=A$8(_.Kvs(vL));if(_.Vt(vL,_.U4,3,URX)){var Ly=_.Zu(vL,_.U4,3,URX),py=niO();var O8=Rl(py.getSeconds())-Rl(Ly.getSeconds());Ly=_.LT(py,2)-_.LT(Ly,2);O8<0&&Ly>0?(O8+=1,Ly-=1E9):O8>0&&Ly<0&&(--O8,Ly+=1E9);O8=(new Ep).setSeconds(O8);O8=_.bl(O8,2,_.e8(Ly),0);_.ZK(vL,1,O8)}var hN;(hN=x)==null||hN.returnNativeBenchmarkingMessage(vL)},
multiplayer3pAckStateLoaded:function(vL){Va(vL)},
exitMiniAppSeenStateLoaded:function(vL){b().confirmExitMiniAppCommandEdu&&an(vL)},
onNavigateToNewMiniApp:function(){sg(b().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(vL){vL=new URLSearchParams(vL);var Ly=void 0;vL.has("invite_code")&&(Ly=new PWe,vL=vL.get("invite_code"),Ly=_.F0(Ly,1,vL));if(vL=Ly){var py;(py=x)==null||py.sendGameData(vL)}},
onPauseMiniApp:function(){h=!0;yK()},
onResumeMiniApp:function(){h=!0;CN()},
onAdFinished:function(vL){k.onAdFinished(vL)}});
b().showMultiplayer3pConsentDialogCommand||W.resolve(!0);sg(b().onContainerReadyCommand)}else xf9(l),W.resolve(!0);NjD(V,Q5j(l));Q5j(l).then(function(vL){vL={miniAppPlayData:{postPlayNonce:vL}};var Ly,py=(Ly=b().loggingDirectives)==null?void 0:Ly.trackingParams;py&&_.qo().stateChanged(py,vL)});
nO=b().showSignInDialogCommand;!pJq()&&nO&&(_.LX("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),sg(nO));b().confirmExitMiniAppCommand&&u&&(nO=KYs(b().confirmExitMiniAppCommand))&&(u.customConfirmationCommand=nO)}},s1=function(){B&&_.Nw(document.body,"background-color",B);
A=!1;T&&T.release();V.flush().catch(function(nO){_.RB(nO)});
D.flush().catch(function(nO){_.RB(nO)});
UfL(l);Fs();x=void 0;lKj(O)},pA=function(){mp(!1);
s1();XO(!1);ys(void 0);rz(void 0);Ac(void 0);LO=0;vX(0);t=!1},yK=function(){var nO;
(nO=x)==null||nO.onPause();T&&T.release();V.flush().catch(function(za){_.RB(za)});
D.flush().catch(function(za){_.RB(za)});
Bj8(l);xb(!0)},CN=function(){var nO;
(nO=x)==null||nO.onResume();CD();nO=l;nO.isForeground=!0;kB(nO,"PLAY_EVENT_TYPE_PLAY_RESUME");xb(!1)},SG=function(nO){var za;
(za=x)==null||za.onAudioToggled(nO);W2(nO)},Va=function(nO){b().showMultiplayer3pConsentDialogCommand&&(b().isEmbeddedInWebview&&nO!==void 0&&W.resolve(nO),!nO&&_.WH()==="mini_app"&&sg(b().showMultiplayer3pConsentDialogCommand))},XJ=function(){var nO,za,o5,vL;
return _.c(function(Ly){if(Ly.nextAddress==1){!b().isLivestream||b().disableVideoCapture||(nO=x)!=null&&nO.sendStartGameFrameCapture();za=(new URL(window.location.href)).searchParams;if(za.has("invite_code")){var py=new PWe,O8=za.get("invite_code");o5=_.F0(py,1,O8);(vL=x)==null||vL.sendGameData(o5)}A5()||(XO(!0),py=l,py.state!==1?_.RB(new _.Wf("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+kac[py.state])):(_.sG("mini_app_ids_without_game_ready").includes(py.JSC$17139_miniAppId)&&(py.gameReady=
!0),py.state=2,py.beforeReady=!1,cu(py,"ma_ffr"),kB(py,"PLAY_EVENT_TYPE_PLAY_READY")));return Ly.yield(W.promise,2)}sg(b().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();b().isEmbeddedInWebview||Va();_.ip(Ly)})},tc=function(){var nO=l;
nO.gameReady=!0;cu(nO,"ma_gr")},m9=function(nO){var za;
return _.c(function(o5){if(o5.nextAddress==1)return _.gm(o5,2),o5.yield(CFL(V,nO),4);if(o5.nextAddress!=2)return _.hF(o5,0);za=_.zf(o5);sg(b().showSavingErrorPopupCommand);throw za;})},Wr=function(){var nO,za;
return _.c(function(o5){if(o5.nextAddress==1)return _.gm(o5,2),o5.yield(Y18(V),4);if(o5.nextAddress!=2)return nO=o5.yieldResult,o5.return(nO);za=_.zf(o5);sg(b().showLoadingErrorDialogCommand);throw za;})},U8=function(nO){l.logError(nO)},J4=function(nO,za,o5){g38(l,nO,za,o5)},f0=function(nO,za){M81(l,nO,za)},Jj=function(){!I&&b().isEmbeddedInWebview||_.k2();
s58(l,!0);A||(window.addEventListener("beforeunload",td,{capture:!0}),A=!0)},kS=function(nO){var za,o5,vL,Ly,py,O8,hN;
return _.c(function(HN){if(HN.nextAddress==1)return D&&(!L||L<nO)&&nO>0?HN.yield(mE1(D,nO),3):HN.jumpTo(0);za=HN.yieldResult;o5=_.e(za);vL=o5.next().value;Ly=o5.next().value;py=vL;O8=Ly;((hN=py)==null?0:hN.displayString)&&O8&&(rz(O8),Ac(py.displayString));_.ip(HN)})},oO=function(nO){var za=b().onBenchmarkingMessageReceivedCommand;
if(za){var o5=niO();_.tz(nO,3,URX,o5);Ax(za,MPu(nO))}},aO=function(nO){var za=b().onGameFrameReceivedCommand;
if(za){var o5=new Js;var vL=new sVX;var Ly=Td(nO,1);vL=_.y9(vL,1,Ly);nO=_.U5(nO,2);nO=_.F0(vL,2,nO);o5=_.ZK(o5,2,nO);Ax(za,ZbJ(o5))}},RO=function(nO){var za=b().onGameAudioDataReceivedCommand;
if(za){var o5=new Js;var vL=new AsB;nO=_.U5(nO,1);vL=_.F0(vL,1,nO);o5=_.ZK(o5,4,vL);Ax(za,ZbJ(o5))}},gz=function(){var nO=new URLSearchParams(window.location.search);
if(b().isEmbeddedInWebview&&nO&&nO.get("override_hl")==="true"&&nO.get("hl"))return nO.get("hl");nO=document.documentElement.lang;return nO!==""?nO:Pj},gj=function(nO){var za=b().onShareInviteCodeCommand;
if(za)if(b().isEmbeddedInWebview){var o5=new O5Q;nO=_.F0(o5,1,nO);Ax(za,EkQ(nO))}else o5=b().inviteCodeShareClientParamIdentifier,O.clientParams.set(o5,{miniAppClientParams:{inviteCode:nO}}),sg(za)},dd=function(nO){var za,o5,vL;
return _.c(function(Ly){if(Ly.nextAddress==1)return za=b().onMiniAppOpenYtContentRequested,D&&_.U("enable_open_yt_content")&&za?Ly.yield(eKe(D,nO),3):Ly.jumpTo(0);o5=Ly.yieldResult;if(o5==="OK")if(b().isEmbeddedInWebview){var py=new ffB;vL=Z5(py,2,Cb,BL(nO));Ax(za,UZn(vL))}else K.clientData.set("video_id",nO),sg(za);_.ip(Ly)})},rj=function(nO){LO+=_.LT(nO,3);
nO=Math.min(Math.log(1+LO/15E6*9)/Math.log(10),.99);vX(nO);t5(nO)},t5=_.A8(function(nO){var za=b().updateLoadingProgressCommand;
if(za){var o5=new ffB;nO=Z5(o5,3,Cb,_.pQ(nO));Ax(za,UZn(nO))}},100),M8=function(nO){return iD9(k,nO)},CD=function(){var nO,za;
((nO=_.z0r())==null?void 0:(za=nO.wakeLock)==null?void 0:za.request)!=null&&_.z0r().wakeLock.request("screen").then(function(o5){T=o5}).catch(function(){})},Bg=_.VF("iframe");
_.K0(function(){b().isSupportedCountry&&(pJq()||_.U("enable_sign_in_promo")||!b().showSignInDialogCommand?Bg.value&&ok(Bg.value):sg(b().onMiniAppReadyCommand))},"ASuFde");
var fQ=function(){return _.v("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return A5()?0:-1},
el:Bg})},ok=function(nO,za){za=za===void 0?!1:za;
var o5=Tt();o5&&(za||o5.toString()!==nO.getAttribute("src"))&&(x=h_s(b().source,{isAudioEnabled:Uj,onFirstFrameReady:XJ,onGameReady:tc,onSave:m9,onLoad:Wr,onError:U8,onSdkCalled:J4,onSdkPerformanceUpdate:f0,onClick:Jj,onSendHighScore:kS,onBenchmarkingMessageReceived:oO,getLanguage:gz,onShareInviteCode:gj,onResourceLoaded:rj,onOpenYTContent:dd,onShowMiniAppAd:M8,onGameFrameReceived:aO,onGameAudioReceived:RO},nO,o5),m6(nO,"load",function(){cu(l,"ma_il");m6(nO,"load",function(){ok(nO,!0)})}),_.$T(nO,
o5))},Tt=function(){var nO=b().url;
if(nO&&(nO=_.Rb(nO),nO!==null)){if(b().source&&b().source==="MINI_APP_SOURCE_GAMESNACKS")nO=_.Ug(nO,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.U("enable_origin_query_parameter_bugfix")){var za=_.xx(_.Qhj(nO.toString()));za=new URLSearchParams(za||"");za.set("origin",window.location.origin);za=za.toString();nO=_.yM(nO).toString();nO=_.Pg(mbW.exec(nO)[0]+(za.trim()?"#"+za:""))}return nO}},Jz=function(){var nO={};
nO=_.pG("yt-mini-app-container-view-model__loading-screen",(nO["yt-mini-app-container-view-model__loading-screen--fade-out"]=A5,nO));var za=function(){return A5()?1:nQ()};
return _.v("div",{class:nO},_.v(_.VX,{data:function(){return b().splashScreen}},{miniAppSplashScreenViewModel:function(o5){return _.v(E3D,{data:o5.data,
loadingProgress:za})}}))},EM=function(){var nO={};
return _.v("div",{class:_.pG("yt-mini-app-container-view-model__pause-interstitial",(nO["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!bn()},nO["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=bn,nO))},_.v(_.VX,{data:function(){return b().splashScreen}},{miniAppSplashScreenViewModel:function(za){return _.v(E3D,{data:za.data,
forPaused:!0})}}))},XQ=function(){f=[];
f.push(_.cv(window,"visibilitychange",function(){y||h&&Ga()||(document.visibilityState==="visible"?CN():yK())}));
f.push(_.cv(window,"pagehide",function(){s1()}));
f.push(_.cv(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&cX.value.dispatchEvent(new Event("tap"))},0)}));
f.push(_.cv(cX.value,"pointerdown",function(){s58(l,!1)},!0));
f.push(_.cv(cX.value,"pause",function(){y=!0;yK()}));
f.push(_.cv(cX.value,"play",function(){y=!1;CN()}));
f.push(_.cv(cX.value,"exit",function(){s1()}));
var nO=navigator.keyboard,za=nO&&nO.lock;f.push(_.cv(window,BR8,function(){BX(srb());srb()?(b().hasPlayNextShelf&&lL("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),s5("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),za&&nO.lock(["Escape"])):(b().hasPlayNextShelf&&s5("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),lL("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),za&&nO.unlock())}));
b().showMultiplayer3pConsentDialogCommand&&f.push(_.cv(window,"yt-playables-ack-3p-data-usage",function(){Vo9(D)}));
b().confirmExitMiniAppCommandEdu&&f.push(_.cv(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.LX("exit-mini-app-seen-state","true",2592E6)}));
b().onGameAudioDataReceivedCommand&&f.push(_.cv(window,"message",function(o5){o5=o5.event_;var vL,Ly=(vL=Bg.value)==null?void 0:vL.src;if(Ly&&o5.origin===(new URL(Ly)).origin&&o5.data&&o5.data.type==="GAME_AUDIO"&&o5.data.audio&&o5.data.audio.length>0)if(_.U("enable_sending_unwrapped_game_audio_as_serialized_metadata"))wJs(b().onGameAudioDataReceivedCommand,o5.data.audio);else{var py=new FileReader;py.onload=function(){var O8=new Js;var hN=new AsB;hN=_.F0(hN,1,py.result);O8=_.ZK(O8,4,hN);Ax(b().onGameAudioDataReceivedCommand,
ZbJ(O8))};
py.readAsDataURL(new Blob([o5.data.audio]))}}))},Fs=function(){f.forEach(function(nO){eA(nO)});
window.removeEventListener("beforeunload",td,{capture:!0})},sg=function(nO){nO&&Rnd(nO,b().isEmbeddedInWebview||!1)},s5=function(nO,za){nO=_.e(cX.value.getElementsByClassName(nO));
for(var o5=nO.next();!o5.done;o5=nO.next())o5.value.classList.add(za)},lL=function(nO,za){nO=_.e(cX.value.getElementsByClassName(nO));
for(var o5=nO.next();!o5.done;o5=nO.next())o5.value.classList.remove(za)};
return function(){var nO={};nO=_.pG("yt-mini-app-container-view-model",(nO["yt-mini-app-container-view-model--desktop"]=!0,nO["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},nO["yt-mini-app-container-view-model--ios-web-view"]=wTs(),nO["yt-mini-app-container-view-model--no-top-bar"]=function(){return!b().topBar},nO["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return b().hasPlayNextShelf},nO["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return b().hasPlayNextShelf},nO["yt-mini-app-container-view-model--show-peek-below"]=function(){return!j8()&&b().hasPlayNextShelf},nO));
var za={};za=_.pG("yt-mini-app-container-view-model__content",(za["yt-mini-app-container-view-model__content--desktop-content"]=!0,za["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},za["yt-mini-app-container-view-model--desktop-play-page"]=function(){return b().hasPlayNextShelf},za));
return _.v("mini-app-container-view-model",{el:cX},_.v("div",{class:nO},_.v(_.Q,{cond:function(){return b().topBar&&!j8()},
then:function(){return _.v(_.VX,{data:function(){return b().topBar}},{miniAppTopBarViewModel:function(o5){return _.v(hKj,{data:o5.data,
isAudioEnabled:Uj,onAudioToggled:function(vL){SG(vL)},
score:kb,formattedScore:on,onScoreChanged:function(vL){L=vL},
isEmbeddedInWebview:Ga,isSaved:I5,onSaveToggled:function(vL){ys(vL)},
isExitMiniAppSeen:su,isDesktopPlayPage:wX})}})}}),_.v("div",{class:za},_.v(_.Q,{cond:U1,
then:function(){return fQ()}}),_.v(_.Q,{cond:function(){return b().isLivestream},
then:function(){return EM()}}),_.v(_.Q,{cond:function(){return!b().isEmbeddedInWebview},
then:function(){return Jz()}}))))}()},"Yf");
DEF.idomCompat=!0;_.JN(DEF,"mini-app-container-view-model",{props:{data:_.hV}});var czF=_.C(function(G){var b=G.data;return _.v("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.v("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Xu(function(){var I=b().onTap;I&&_.Zm(I)})},_.v(_.Q,{cond:function(){return b().icon},
then:function(I){return _.v(_.ha,{icon:function(){return I().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.v("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return b().title})))},"Zf");
czF.idomCompat=!0;var k7j=_.C(function(G){var b=_.ee("div"),I=_.e(_.ZZ(void 0,void 0,"dg3xff")),h=I.next().value,q=I.next().value;I=_.e(_.ZZ(void 0,void 0,"AgHNfc"));var l=I.next().value,V=I.next().value;I=_.e(_.ZZ(void 0,void 0,"fuTKCc"));var D=I.next().value,k=I.next().value,L=function(){var F=h();return F!==void 0?Math.abs(F):void 0},x=function(){var F=L();
return F===void 0||F<=3},f=function(){var F=L();
var W=l(),O=D();F=F!==void 0&&W!==void 0&&O!==void 0?W-O-F:void 0;return F===void 0||F<=3},T=function(F){b.value&&b.value.scrollBy({top:0,
left:(_.wy("HTML_DIR")==="rtl"?-1:1)*F*b.value.clientWidth,behavior:"smooth"})},B=function(){var F;
q((F=b.value)==null?void 0:F.scrollLeft);var W;V((W=b.value)==null?void 0:W.scrollWidth);var O;k((O=b.value)==null?void 0:O.clientWidth)},A=function(){T(-.5)},t=function(){T(.5)};
I=_.Xu(function(){B()});
_.JC(function(){B();if(b.value&&window.ResizeObserver){var F=new ResizeObserver(B);F.observe(b.value);_.uI(function(){F.disconnect()})}});
var y={};return _.v("yt-sponsorships-scrollable-shelf",{class:_.pG("ytdSponsorshipsScrollableShelfHost",G.className)},_.v("div",{class:_.pG("ytdSponsorshipsScrollableShelfContent",(y.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return G.data().previousButton&&G.data().nextButton&&!x()&&!f()},y.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return G.data().previousButton&&!x()&&f()},y.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return G.data().nextButton&&
x()&&!f()},y)),
el:b,"on:scroll":I},G.children),_.v(_.Q,{cond:function(){return!x()},
then:function(){return _.v(_.VX,{data:function(){return G.data().previousButton}},{buttonViewModel:function(F){return _.v(_.sQ,{data:F.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:A})}})}}),_.v(_.Q,{cond:function(){return!f()},
then:function(){return _.v(_.VX,{data:function(){return G.data().nextButton}},{buttonViewModel:function(F){return _.v(_.sQ,{data:F.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:t})}})}}))},"ag");
k7j.idomCompat=!0;var LhD=_.C(function(G){var b=G.data;G={};return _.v("yt-sponsorships-hub",{class:_.pG("ytdSponsorshipsHubHost",(G.ytdSponsorshipsHubHostIndented=function(){return b().indented},G))},_.v("div",{class:"ytdSponsorshipsHubHeader"},_.v("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.v("div",{class:"ytdSponsorshipsHubAvatar"},_.v(_.VX,{data:function(){return b().avatar}},{avatarViewModel:_.Om})),_.v(_.Q,{cond:function(){return b().badgeImage},
then:function(I){return _.v("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.v("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.v("div",{class:"ytdSponsorshipsHubBadge"},_.v(_.Fu,{data:I,targetWidth:24,targetHeight:24,alt:""}))))}})),_.v("div",{class:"ytdSponsorshipsHubDetails"},_.v("div",{class:"ytdSponsorshipsHubTierName"},function(){return b().tierName}),_.v("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return b().membershipType}),_.v("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return b().membershipDurationOrExpiry})),_.v("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.v(_.VX,{data:function(){return b().manageButton}},{buttonViewModel:function(I){return _.v(_.sQ,{data:I.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.v(_.VX,{data:function(){return b().actionMenuButton}},{buttonViewModel:function(I){return _.v(_.sQ,{data:I.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.v("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return b().perksTitle}),_.v(k7j,{data:function(){return{previousButton:b().previousPerkButton,
nextButton:b().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.v("div",{class:"ytdSponsorshipsHubPerkCards"},_.v(_.VX,{data:function(){return b().perkCards}},{sponsorshipsHubPerkCardViewModel:czF}),_.v(_.Q,{cond:function(){return b().viewAllPerksButton},
then:function(I){return _.v(vIa,{data:I})}}))))},"bg");
LhD.idomCompat=!0;var vIa=_.C(function(G){var b=G.data;return _.v("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.v(_.VX,{data:function(){return b().button}},{buttonViewModel:_.sQ}),_.v("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.v("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return b().title}),_.v("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return b().subtitle})))},"cg");
vIa.idomCompat=!0;_.JN(LhD,"yt-sponsorships-hub",{props:{data:_.hV}});_.QI9=_.C(function(G){var b=G.data;return _.v("yt-dual-avatar-view-model",{class:_.pG("ytDualAvatarViewModelHost",G.className),style:_.Ir({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var I;return((I=b().badgeCutoutRadius)!=null?I:14)+"px"}})},_.v("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.v(_.VX,{data:function(){return b().startAvatar}},{avatarViewModel:_.Om}),_.v(_.VX,{data:function(){return b().endAvatar}},{avatarViewModel:_.Om})),_.v(_.VX,{data:function(){return b().badge}},
{contentPreviewImageViewModel:function(I){return _.v("div",{class:"ytDualAvatarViewModelBadge"},_.v(_.B_,{data:I.data}))}}))},"dg");
_.QI9.idomCompat=!0;var fKf=_.C(function(G){var b=G.data;var I,h=!((I=_.LL().resolve(_.vf(_.Pv)))==null||!I());G=_.P$(function(){var x,f,T=h?(x=b().header)==null?void 0:x.backgroundColorDarkMode:(f=b().header)==null?void 0:f.backgroundColorLightMode;if(T!==void 0)return _.so(T)},void 0,"TDdh7d");
I=_.P$(function(){var x,f;return h?(x=b().header)==null?void 0:x.backgroundImagePart1Dark:(f=b().header)==null?void 0:f.backgroundImagePart1Light},void 0,"X0peMe");
var q=_.P$(function(){var x,f;return h?(x=b().header)==null?void 0:x.backgroundImagePart2Dark:(f=b().header)==null?void 0:f.backgroundImagePart2Light},void 0,"an0Hzd"),l=_.P$(function(){return _.wy("HTML_DIR")==="rtl"},void 0,"BltEgb"),V=_.ee("yt-sponsorships-perks-list"),D=!1,k=function(){var x=V.value;
if(x&&!D){var f,T=(f=x.parentElement)==null?void 0:f.parentElement;if(T)for(x=x.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),f=0;f<x.length;++f){var B=x[f];if(B instanceof HTMLElement){T.scrollTo({top:B.offsetTop+B.clientHeight/2-T.clientHeight/2,behavior:"smooth"});D=!0;break}}}};
_.K3(function(){var x=V.value;if(x&&window.ResizeObserver){var f=new ResizeObserver(k);f.observe(x);_.uI(function(){f.disconnect()})}});
var L={};return _.v("yt-sponsorships-perks-list",{el:V,class:_.pG("ytdSponsorshipsPerksListHost",(L.ytdSponsorshipsPerksListHorizontalPadding=function(){return b().horizontalPaddingEnabled},L))},_.v("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.v("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Ir({"background-color":G})},_.v("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.v(_.Q,{cond:I,then:function(x){var f={};return _.v("div",{class:_.pG((f.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=h,f.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!h,f.ytdSponsorshipsPerksListFlipped=l,f))},_.v(_.Fu,{data:x,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.v("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.v(_.Q,{cond:q,
then:function(x){var f={};return _.v("div",{class:_.pG((f.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=h,f.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!h,f.ytdSponsorshipsPerksListFlipped=l,f))},_.v(_.Fu,{data:x,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.v("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.v(_.VX,{data:function(){var x;
return(x=b().header)==null?void 0:x.dualAvatar}},{dualAvatarViewModel:_.QI9})))),_.v("div",{class:"ytdSponsorshipsPerksListBody"},_.v("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return b().title}),_.v(_.Q,{cond:function(){return b().perks},
then:function(x){return _.v(_.aj,{each:x},function(f,T){var B={};return _.v("div",{class:_.pG("ytdSponsorshipsPerksListPerkContainer",(B.ytdSponsorshipsPerksListSelectedPerk=function(){var A=T(),t=b().selectedPerkIndex;return A===t},B))},_.v(_.Q,{cond:function(){return T()>0},
then:function(){return _.v("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.v("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.v(_.Q,{cond:function(){return f.icon},
then:function(A){return _.v(_.ha,{icon:function(){return A().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.v("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.v("div",{class:"ytdSponsorshipsPerksListPerkTitle"},f.title),_.v("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.v(_.IS,{text:f.description})),_.v(_.Q,{cond:function(){return f.instructions},
then:function(){var A,t;return _.v("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.v("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(A=f.instructions)==null?void 0:A.title),_.v("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.v(_.IS,{text:(t=f.instructions)==null?void 0:t.text})))}}))),_.v(_.Q,{cond:function(){return f.emoji},
then:function(A){return _.v("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.v(_.aj,{each:function(){return A()}},function(t){return _.v(_.Fu,{data:t,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.v(xE1,{data:f}))})}})))},"eg");
fKf.idomCompat=!0;var xE1=_.C(function(G){var b=G.data;var I=function(V,D){return V===D},h=function(){var V=b();
V=_.g(V==null?void 0:V.badgesShelf,hEO);return V!==void 0&&V!==null?V:{previousButton:{},nextButton:{}}},q=_.VF("div"),l=function(){var V=q.value;
if(V){var D=V.parentElement;if(D){V=V.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var k=0;k<V.length;++k){var L=V[k];if(L instanceof HTMLElement){D.scrollTo({left:L.offsetLeft+L.clientWidth/2-D.clientWidth/2,behavior:"instant"});break}}}}};
_.K3(function(){var V=q.value;if(V){var D=new ResizeObserver(l);D.observe(V);_.uI(function(){D.disconnect()})}});
return _.v("div",null,_.v(_.Q,{cond:function(){return b().badges},
then:function(V){return _.v(k7j,{data:h},_.v("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:q},_.v(_.aj,{each:function(){return V()}},function(D,k){var L={},x={},f={};
return _.v("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.v(_.Q,{cond:function(){return k()>0},
then:function(){return _.v("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.v("div",{class:_.pG("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(L.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return I(k(),b().currentBadgeIndex)},L.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!I(k(),b().currentBadgeIndex)},L))},_.v("div",{class:_.pG("ytdSponsorshipsPerksListLoyaltyBadge",(x.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return I(k(),
b().currentBadgeIndex)},x.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!I(k(),b().currentBadgeIndex)},x))},_.v(_.Q,{cond:function(){return D.image},
then:function(T){var B={};return _.v("div",{class:_.pG((B.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return I(k(),b().currentBadgeIndex)},B.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!I(k(),b().currentBadgeIndex)},B))},_.v(_.Fu,{data:T,
alt:""}))}})),_.v("div",{class:_.pG("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(f.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return I(k(),b().currentBadgeIndex)},f))},D.title)))})))}}))},"fg");
xE1.idomCompat=!0;_.JN(fKf,"yt-sponsorships-perks-list",{props:{data:_.hV}});_.JN(_.C(function(G){return _.v("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.v(_.Q,{cond:function(){return G.data().image},
then:function(b){return _.v(_.Fu,{className:"ytwFantasyEmptyStateViewModelImage",data:b,ariaHidden:!0,alt:""})}}),_.v(_.IS,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return G.data().title}}),_.v(_.IS,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return G.data().subtitle}}),_.v(_.VX,{data:function(){return G.data().primaryButton}},{buttonViewModel:function(b){return _.v(_.sQ,{data:b.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"gg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.hV}});var TdK;var BdD=_.C(function(G){var b=G.data;var I=G.uniqueId;var h=G.overrides;G=_.P$(function(){var q,l=((q=b().timedAnimationData)==null?void 0:q.animationTiming)||[];return{uniqueId:I(),timings:l,experimentEnabled:l.length>0,enabled:l.length>0}},void 0,"hiuXI");
return _.v("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.v($me,{settings:G},_.v(_.VX,{data:function(){return b().buttonRenderer}},{buttonRenderer:function(q){return _.v(_.Vo,{data:q.data,
buttonOverrides:h})}})))},"hg");
BdD.idomCompat=!0;_.JN(BdD,"timed-animation-button-renderer",{props:{data:_.hV,uniqueId:_.hV,overrides:_.hV}});var TE=function(){var G=_.a.apply(this,arguments)||this;G.hideJoinButtonBeforeSubscribed=_.U("hide_join_button_before_subscribed");G.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return G};
_.M(TE,_.a);_.m=TE.prototype;_.m.hasShowDialogCommand=function(G){return!!_.g(G,DJu)};
_.m.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"}}}};
_.m.updateJoinButtonOverrides=function(){var G,b;(G=_.Eo(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(b=G.polymerController)==null||b.set("overrides",this.joinButtonOverrides);if(G=_.Eo(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))G.overrides=this.joinButtonOverrides};
_.m.handleButtonRefreshAction=function(G){if(G=_.g(G,d3i))this.set("data.membershipButton",G.membershipButton),this.notifyPath("data.membershipButton")};
_.m.onYtServiceRequestError=function(G){_.yX(this.hostElement,G.detail.error.message)};
_.m.onKeydown=function(G){if(G.key==="Enter"){var b;(b=this.data)!=null&&b.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.m.handleUnsubscribeAction=function(){var G,b,I;((G=this.data)==null?void 0:(b=G.membershipButton)==null?void 0:(I=b.buttonRenderer)==null?void 0:I.style)==="STYLE_PRIMARY"&&_.Eo(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.kV.Object.defineProperties(TE.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,b=(G=this.data)==null?void 0:G.membershipButton,I;G=(b==null?void 0:b.buttonRenderer)||_.g(b==null?void 0:(I=b.timedAnimationButtonRenderer)==null?void 0:I.buttonRenderer,_.bz);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)}}});
TE.prototype.onYtServiceRequestError=TE.prototype.onYtServiceRequestError;TE.prototype.updateJoinButtonOverrides=TE.prototype.updateJoinButtonOverrides;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],TE.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],TE.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],TE.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],TE.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.Jr),_.n("design:type",Object)],TE.prototype,"ironButtonState",void 0);_.R([_.H(),_.n("design:type",Object)],TE.prototype,"data",void 0);_.R([_.P("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.n("design:type",Object),_.n("design:paramtypes",[])],TE.prototype,"hideJoin",null);
_.R([_.H(),_.n("design:type",String)],TE.prototype,"subscribeKey",void 0);_.R([_.H({selectorArgs:["subscribeKey"],selector:I3X}),_.n("design:type",Object)],TE.prototype,"subscriptionStateEntity",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],TE.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.R([_.P("subscriptionStateEntity"),_.H({reflectToAttribute:!0}),_.n("design:type",Object),_.n("design:paramtypes",[])],TE.prototype,"subscribed",null);
_.R([_.P("subscribed","data.membershipButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],TE.prototype,"joinButtonOverrides",null);_.R([_.P("data.navigationEndpoint"),_.n("design:type",Object),_.n("design:paramtypes",[])],TE.prototype,"channelNameTabIndex",null);_.R([_.P("data.navigationEndpoint"),_.n("design:type",Object),_.n("design:paramtypes",[])],TE.prototype,"channelNameRole",null);
_.R([_.P("data.attributedTitle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],TE.prototype,"hasAttributedTitle",null);_.R([_.q5("joinButtonOverrides"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],TE.prototype,"updateJoinButtonOverrides",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],TE.prototype,"onYtServiceRequestError",null);
_.R([_.N({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],TE);
var UE1=_.R9()(TE,"ytd-video-owner-renderer",function(){if(TdK===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);TdK=G}G=TdK;return G},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.JN(_.C(function(G){var b=G.data;var I;G=_.e(_.ZZ(!((I=_.Q4("yt-mini-app-is-theater-mode-enabled"))==null||!I),void 0,"i2pjVd"));var h=G.next().value,q=G.next().value;I=_.e(_.ZZ(!1,void 0,"ga7V5c"));var l=I.next().value,V=I.next().value;_.K3(function(){var L=_.cv(window,BR8,function(){V(srb())});
_.uI(function(){eA(L)})});
var D;I=(D=_.LL().resolve(_.vf(uO3)))!=null?D:function(){return _.v("div",null)};
_.mt("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){q(!0);_.LX("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.mt("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){q(!1);_.LX("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
D={};G={};var k={};return _.v("mini-app-play-page-renderer",{class:_.pG("miniAppPlayPageRendererHost",(D.miniAppPlayPageRendererHostDetailsView=function(){return!h()},D))},_.v("div",{class:_.pG("miniAppPlayPageRendererGameContainer",(G.miniAppPlayPageRendererGameContainerDetailsView=function(){return!h()},G))},_.v(_.VX,{data:function(){return b().containerViewModel}},{miniAppContainerViewModel:DEF}),_.v(_.Q,{cond:function(){return b().channel&&b().subscribeButton},
then:function(){var L={};return _.v("div",{class:_.pG("miniAppPlayPageRendererChannelContainer",(L.miniAppPlayPageRendererHideVisibility=function(){return l()},L))},_.v(_.VX,{data:function(){return b().channel}},{videoOwnerRenderer:function(x){return _.v(UE1,{data:x.data})}}),_.v(_.VX,{data:function(){return b().subscribeButton}},{subscribeButtonViewModel:function(x){return _.v(_.OT,{data:x.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.v(_.Q,{cond:function(){return!h()&&b().description},
then:function(){var L={};return _.v("div",{class:_.pG("miniAppPlayPageRendererMiniAppDescriptionWrapper",(L.miniAppPlayPageRendererHideVisibility=function(){return l()},L))},_.v("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return b().description}))}})),_.v("div",{class:_.pG("miniAppPlayPageRendererPlayNextContainer",(k.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!h()},k.miniAppPlayPageRendererHideVisibility=function(){return l()},k))},_.v(_.VX,{data:function(){return b().sectionList}},
{sectionListRenderer:I})))},"ig"),"mini-app-play-page-renderer",{props:{data:_.hV}});var Bu=function(){var G=_.a.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};
_.M(Bu,_.a);_.m=Bu.prototype;
_.m.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:_.U("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.U("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.m.created=function(){var G=this;this.JSC$17278_scrollAnimation=new _.Vb(function(b){G.hostElement.scrollTop=b})};
_.m.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.m.getItemsPath=function(){return"data.contents"};
_.m.replacePrimaryContent=function(G){this.set("data.contents",G)};
_.m.computeHasSortFilter=function(G){return!!G&&!!G.sortFilterSubMenuRenderer};
_.m.computeShouldScrollInPanel=function(G){var b;return!!(G==null?0:(b=G.scrollPaneStyle)==null?0:b.scrollable)};
_.m.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.SL(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.m.scrollToTop=function(){this.hostElement.scrollTop=0};
_.m.scrollToItemSection=function(G){if(G=this.getItemByIdentifier(G))G=this.getScrollPositionForItem(G),this.hostElement.scrollTop!==G&&this.JSC$17278_scrollAnimation.start(this.hostElement.scrollTop,G,this.SCROLL_ANIMATION_DURATION_MS)};
_.m.getItemByIdentifier=function(G){var b=this.contents.querySelectorAll("ytd-item-section-renderer");if(b&&b.length!==0){var I=Array.from(b).findIndex(function(h){return h.sectionIdentifier===G});
return b[I===-1?0:I]}};
_.m.getScrollPositionForItem=function(G){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===G)return 0;G=_.Og(G).y+this.hostElement.scrollTop-_.Og(this.hostElement).y;return Math.min(G,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.kV.Object.defineProperties(Bu.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.targetId)==="browse-feedFEclips"}}});
Bu.prototype.onScroll=Bu.prototype.onScroll;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Bu.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.L9.YtLazyListBehavior),_.n("design:type",Object)],Bu.prototype,"ytLazyListBehavior",void 0);_.R([_.z(_.eC.YtNextContinuationBehavior),_.n("design:type",Object)],Bu.prototype,"ytNextContinuationBehavior",void 0);
_.R([_.z(_.mf9),_.n("design:type",Object)],Bu.prototype,"ytBooleanLogicBehavior",void 0);_.R([_.z(_.mD),_.n("design:type",Object)],Bu.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Bu.prototype,"data",void 0);_.R([_.H({value:2}),_.n("design:type",Number)],Bu.prototype,"initialCount",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],Bu.prototype,"autoFill",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.n("design:type",Boolean)],Bu.prototype,"hasSortFilter",void 0);_.R([_.H({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.n("design:type",Boolean)],Bu.prototype,"hideBottomSeparator",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.n("design:type",Boolean)],Bu.prototype,"shouldScrollInPanel",void 0);
_.R([_.H(),_.n("design:type",Object)],Bu.prototype,"isSearch",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Bu.prototype,"isConstrainedList",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],Bu.prototype,"responsiveSizing",void 0);_.R([_.H(),_.n("design:type",Object)],Bu.prototype,"hasChipsBar",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],Bu.prototype,"pageSubtype",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Bu.prototype,"engagementPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Bu.prototype,"liveChatEngagementPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Bu.prototype,"inReplyPanel",void 0);_.R([_.lH("#action-button"),_.n("design:type",HTMLElement)],Bu.prototype,"actionButton",void 0);_.R([_.H(),_.n("design:type",Object)],Bu.prototype,"scrollUpButtonData",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Bu.prototype,"engagementPanelDropdown",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Bu.prototype,"engagementPanelDialog",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bu.prototype,"isClipList",null);_.R([_.lH("#contents"),_.n("design:type",HTMLElement)],Bu.prototype,"monitorScrollElement",void 0);_.R([_.lH("#contents"),_.n("design:type",HTMLElement)],Bu.prototype,"contents",void 0);
_.R([_.hI("scroll"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bu.prototype,"onScroll",null);_.R([_.N({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Bu);
var sIe=_.R9()(Bu,"ytd-section-list-renderer",function(){if(Kpc===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);Kpc=G}G=Kpc;return G},{mode:1});var gI3;var Az9;var Moe;var ZAW;var U9=function(){return _.a.apply(this,arguments)||this};
_.M(U9,_.a);U9.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
U9.prototype.onLikeButtonClick=function(G){G.stopPropagation();G.preventDefault()};
_.kV.Object.defineProperties(U9.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],U9.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],U9.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],U9.prototype,"ytRendererStamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],U9.prototype,"data",void 0);
_.R([_.H({selectorArgs:["data.likeStatusEntityKey"],selector:gR}),_.n("design:type",Object)],U9.prototype,"likeStatusEntity",void 0);_.R([_.P("data","likeStatusEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],U9.prototype,"likeButtonRenderer",null);_.R([_.N({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],U9);
_.J(U9,"ytd-slim-metadata-toggle-button-renderer",function(){if(ZAW!==void 0)return ZAW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return ZAW=G},{mode:1});var s9=function(){var G=_.a.apply(this,arguments)||this;G.minimizePipBreakages=_.U("web_pip_minimize_breakages");G.showEqualizer=_.U("web_enable_playlist_video_lockup_equalizer");G.watchColorUpdate=_.U("kevlar_watch_color_update");G.actionMap={};return G};
_.M(s9,_.a);_.m=s9.prototype;_.m.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.m.computeEditableClass=function(G){return G&&G.menu?"editable":""};
_.m.computeSelected=function(G){return!(G==null||!G.selected)};
_.m.computeUseColorPalette=function(G){return!!((G==null?0:G.lightColorPalette)&&(G==null?0:G.darkColorPalette))};
_.m.computeLargerPlaylistThumbs=function(G,b){return _.U("web_enable_playlist_bigger_thumbnails")&&!b};
_.m.computeMinimizePipBreakages=function(G){return this.minimizePipBreakages&&G};
_.m.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.m.onYtServiceRequestSent=function(G,b){b.endpoint&&this.isHideEnclosingAction(b.endpoint)&&!this.selected&&aMB(_.Dg(),this.data.videoId)};
_.m.isHideEnclosingAction=function(G){var b=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",G);G=this.get("likeEndpoint.status",G)==="INDIFFERENT";return b||G};
_.m.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.m.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.kV.Object.defineProperties(s9.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_web_delhi_icons")?"play":"play_arrow"}},
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))}}});
s9.prototype.onYtServiceRequestSent=s9.prototype.onYtServiceRequestSent;s9.prototype.canReorderChanged=s9.prototype.canReorderChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],s9.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],s9.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.ho),_.n("design:type",Object)],s9.prototype,"ytdLockupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],s9.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],s9.prototype,"withinMiniplayer",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],s9.prototype,"minimizePipBreakages",void 0);_.R([_.H({computed:"computeSelected(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],s9.prototype,"selected",void 0);
_.R([_.H({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],s9.prototype,"useColorPalette",void 0);_.R([_.H({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.n("design:type",Boolean)],s9.prototype,"largerPlaylistThumbs",void 0);_.R([_.H(),_.n("design:type",Object)],s9.prototype,"showEqualizer",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],s9.prototype,"canReorder",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],s9.prototype,"touchPersistentDragHandle",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],s9.prototype,"handleIsHovered",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],s9.prototype,"watchColorUpdate",void 0);_.R([_.H(),_.n("design:type",String),_.n("design:paramtypes",[])],s9.prototype,"reorderIcon",null);
_.R([_.H(),_.n("design:type",String),_.n("design:paramtypes",[])],s9.prototype,"playIcon",null);_.R([_.P("largerPlaylistThumbs"),_.n("design:type",Number),_.n("design:paramtypes",[])],s9.prototype,"thumbnailWidth",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],s9.prototype,"showActionButtons",null);_.R([_.Dd("canReorder"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],s9.prototype,"canReorderChanged",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],s9.prototype,"onYtServiceRequestSent",null);_.R([_.N({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],s9);
_.J(s9,"ytd-playlist-panel-video-renderer",function(){if(Moe!==void 0)return Moe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[computeMinimizePipBreakages(withinMiniplayer)]]" 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(_.E().content.cloneNode(!0),
G.content.firstChild);return Moe=G},{mode:2});var gO=function(){return _.a.apply(this,arguments)||this};
_.M(gO,_.a);gO.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],gO.prototype,"data",void 0);_.R([_.N({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],gO);
_.J(gO,"ytd-playlist-panel-supported-items",function(){if(Az9!==void 0)return Az9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Az9=
G},{mode:1});AWJ=!0;ewQ("\\P{N}");var cqs;var toL=_.qP("END_OF_PLAYLIST",void 0,"End of playlist"),zKa=_.qP("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Ah=function(){var G=_.a.apply(this,arguments)||this;G.minimizePipBreakages=_.U("web_pip_minimize_breakages");G.hideHeaderText=!1;G.useColorPalette=!1;G.collapsed=!1;G.collapsedPreServerOverride="not_tracked";G.isHovered=!1;G.expandLabel=_.qP("MINIPLAYER_EXPAND_LABEL");G.collapseLabel=_.qP("MINIPLAYER_COLLAPSE_LABEL");G.isFloating=!1;G.metaPanel=
!1;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};G.currentIndex=void 0;return G};
_.M(Ah,_.a);_.m=Ah.prototype;
_.m.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"}}}};
_.m.created=function(){var G=this;this.scrollThrottle=new _.GB(this.onThrottledScroll,1E3,this);this.JSC$17300_ytReorderableController=new _.c0A(56,function(b){G.handleDrop(b)})};
_.m.onMouseEnter=function(){this.isHovered=!0};
_.m.onMouseLeave=function(){this.isHovered=!1};
_.m.computeOverflowMenuData=function(G){return G&&G.menu?G.menu:null};
_.m.computeCollapsible=function(G){return!G};
_.m.computeHasPlaylistButtons=function(G){return!(!G||!G.playlistButtons)};
_.m.computeHasSeparateSaveButton=function(G){return!(!G||!G.saveButton)};
_.m.computeHasToolbarButton=function(G,b){return!(!G||!(b||G.saveButton||G.menu))};
_.m.computePlaylistType=function(G){if(G&&G.playlistId)return G.playlistId.substring(0,4)};
_.m.computeCanReorder=function(G){return G?G.playlistId&&G.playlistId.startsWith("TLPQ")?!0:!!G.isEditable&&!G.isInfinite:!1};
_.m.attached=function(){var G=this;try{_.LL().resolve(_.jm).setPlaylistComponent(this.hostElement)}catch(b){if(_.U("kevlar_park_on_playlist_token_killswitch"))throw b;_.mq().parkOrScheduleJob(function(){_.LL().resolve(_.jm).setPlaylistComponent(G.hostElement)},2,"ci")}_.R3(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.m.detached=function(){_.nv(this.hostElement);_.dF(this.JSC$17300_ytReorderableController)};
_.m.computeTrailingIcon=function(G,b,I){return I?b?"yt-icons:collapse":"yt-icons:close":b?"yt-icons:expand":_.U("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.m.computeIndexMessage=function(G,b){return LvB(G+1)+" / "+LvB(b)};
_.m.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()};
_.m.collapseChanged=function(){var G=this;this.collapsed||(_.q_(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.m.hiddenChanged=function(){var G=this;this.hidden||_.q_(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.scrollToCurrentVideo()})};
_.m.setupReordering=function(){var G=_.Eo(this.hostElement).querySelector("#items");CbQ?_.koz(this.JSC$17300_ytReorderableController,G,G,"playlist-drag-handle"):_.koz(this.JSC$17300_ytReorderableController,G,G)};
_.m.scrollToCurrentVideo=function(){var G=this;_.uu.addJob(function(){var b=_.Eo(G.hostElement).querySelector("#items");if(b){b.style.setProperty("padding-bottom","");var I=_.Eo(G.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(I){b=I.parentElement||_.oe(document);var h=b||_.oe(document);var q=_.Og(I),l=_.Og(h),V=_.paW(h);if(h==_.oe(document)){var D=q.x-h.scrollLeft;q=q.y-h.scrollTop}else D=q.x-l.x-V.left,q=q.y-l.y-V.top;I=npb(I);l=h.clientHeight-
I.height;V=h.scrollLeft;var k=h.scrollTop;V+=D-(h.clientWidth-I.width)/2;h=new _.ue(V,k+(q-l/2));b.scrollLeft=h.x;b.scrollTop=h.y}}},8)};
_.m.dataChanged=function(){var G=this;_.dF(this.JSC$17300_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.D1(this,function(){_.FQ(G.ytTaskEmitterBehavior.getTaskManager(),function(){G.ytRendererBehavior.markDirty();G.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.m.onFullBleedPlayerChanged=function(){_.U("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.m.onFullscreenChanged=function(){_.U("web_watch_imax_theater_mode")||_.U("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.m.updateNowPlayingOverlay=function(){_.U("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.m.onPlaylistLockupNowPlaying=function(G,b){b&&(this.activeNowPlayingRenderer=b);this.updateNowPlayingOverlay()};
_.m.onScroll=function(){this.scrollThrottle.fire()};
_.m.onThrottledScroll=function(){var G=this;_.FQ(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.ytRendererBehavior.markDirty()})};
_.m.onToggleExpanded=function(G){!this.collapsible||G&&(_.a_(G).tagName==="A"||_.NK(_.Wy(G),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.m.setCollapsed=function(G){this.collapsible&&(this.collapsed=G,_.E3(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.m.handleCollapsedFromData=function(G){if(G){var b=G.playlistPanelCollapseState;b==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||b==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),b=b==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==b&&this.setCollapsed(b)):this.currentPlaylistId!==G.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(b=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==b&&this.setCollapsed(b),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=G.playlistId}};
_.m.handleDrop=function(G){var b=G.currDragItem;G=b.data.playlistSetVideoId;var I=_.Nr(b.parentNode.childNodes,b),h=void 0;I>0&&(h=b.parentNode.childNodes[I-1].data.playlistSetVideoId);b=_.Dg();if(b.responsePlaylistData&&b.responsePlaylistData.contents){var q=$Jd(G,b.responsePlaylistData);b.responsePlaylistData=(0,_.Cy.unsafeClone)(b.responsePlaylistData);ars(b.responsePlaylistData.contents,q,I);b.queueProxy?vMO(b.queueProxy,q,I,G,h):b.playlistProxy&&vMO(b.playlistProxy,q,I,G,h);_.cQ(b,_.kq(b,b.response?
b.response.autoplayRenderer:void 0))}};
_.m.handleDarkModeChange=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
_.m.colorPaletteChanged=function(){var G,b=((G=this.data)==null?void 0:G.contents)||[],I;G=_.e(b);for(b=G.next();!b.done;b=G.next()){b=b.value;var h=void 0;if((h=b.playlistPanelVideoRenderer)==null?0:h.selected){G=b.playlistPanelVideoRenderer;h=b=void 0;(I=this.isDarkTheme?(b=G)==null?void 0:b.darkColorPalette:(h=G)==null?void 0:h.lightColorPalette)&&_.vN(this.hostElement,I);break}}this.useColorPalette=!!I};
_.kV.Object.defineProperties(Ah.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.moveThreeDotsMenuToMainHeader)&&_.U("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var G=_.LL().resolve(_.vf(_.jm)),b;if(((b=this.data)==null?0:b.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 h,q;var l=(h=this.data.contents[G])==null?void 0:(q=h.playlistPanelVideoRenderer)==null?void 0:q.title}}else{var V,D=(V=_.g(G.getAutoplayEndpoint(),_.Wq))==null?void 0:V.videoId,k,L;l=(k=this.data.contents.find(function(x){var f;
return((f=x.playlistPanelVideoRenderer)==null?void 0:f.videoId)===D}))==null?void 0:(L=k.playlistPanelVideoRenderer)==null?void 0:L.title}return l}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)!=null&&G.nextVideoLabel?this.nextVideoTitle?_.NO(this.data.nextVideoLabel)+":":toL:""}},
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"&&!_.U("web_mix_long_byline_from_data"))return _.ao(zKa);var b;return(b=this.data)==null?void 0:b.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h=(G=this.data)==null?void 0:(b=G.playlistButtons)==null?void 0:(I=b.menuRenderer)==null?void 0:I.topLevelButtons;if(h)for(G=_.e(h),b=G.next();!b.done;b=G.next())if(b=b.value,b.playlistLoopButtonRenderer)return b.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 _.U("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Ah.prototype.colorPaletteChanged=Ah.prototype.colorPaletteChanged;Ah.prototype.onPlaylistLockupNowPlaying=Ah.prototype.onPlaylistLockupNowPlaying;Ah.prototype.updateNowPlayingOverlay=Ah.prototype.updateNowPlayingOverlay;Ah.prototype.onFullscreenChanged=Ah.prototype.onFullscreenChanged;Ah.prototype.onFullBleedPlayerChanged=Ah.prototype.onFullBleedPlayerChanged;Ah.prototype.dataChanged=Ah.prototype.dataChanged;Ah.prototype.hiddenChanged=Ah.prototype.hiddenChanged;Ah.prototype.collapseChanged=Ah.prototype.collapseChanged;
Ah.prototype.onRenderStamperFinished=Ah.prototype.onRenderStamperFinished;Ah.prototype.onMouseLeave=Ah.prototype.onMouseLeave;Ah.prototype.onMouseEnter=Ah.prototype.onMouseEnter;_.R([_.z(_.Y6),_.n("design:type",Object)],Ah.prototype,"ironResizableBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ah.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(a6u.YtPlaylistPanelBehavior),_.n("design:type",Object)],Ah.prototype,"ytPlaylistPanelBehavior",void 0);_.R([_.z(_.ed.YtTaskEmitterBehavior),_.n("design:type",Object)],Ah.prototype,"ytTaskEmitterBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Ah.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Ah.prototype,"ytdReduxBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Ah.prototype,"actionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ah.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Ah.prototype,"autoplayData",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ah.prototype,"withinMiniplayer",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ah.prototype,"minimizePipBreakages",void 0);
_.R([_.H({computed:"setMenuData_(data)"}),_.n("design:type",Object)],Ah.prototype,"menuRendererData",void 0);_.R([_.H({computed:"computeOverflowMenuData(data)"}),_.n("design:type",Object)],Ah.prototype,"overflowMenuDataTopRow",void 0);_.R([_.H({computed:"computeOverflowMenuData(data)"}),_.n("design:type",Object)],Ah.prototype,"overflowMenuData",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ah.prototype,"hideHeaderText",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ah.prototype,"useColorPalette",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.n("design:type",Boolean)],Ah.prototype,"collapsible",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ah.prototype,"collapsed",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ah.prototype,"hidden",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.n("design:type",Boolean)],Ah.prototype,"hasPlaylistButtons",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.n("design:type",Boolean)],Ah.prototype,"hasSeparateSaveButton",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.n("design:type",Boolean)],Ah.prototype,"hasToolbar",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.n("design:type",String)],Ah.prototype,"playlistType",void 0);_.R([_.H(),_.n("design:type",Object)],Ah.prototype,"isHovered",void 0);_.R([_.H({selectorArgs:["playlistLoopStateEntityKey"],selector:_.ND.playlistLoopStateEntitySelector}),_.n("design:type",Object)],Ah.prototype,"playlistLoopStateEntity",void 0);_.R([_.H({computed:"computeCanReorder(data)"}),_.n("design:type",Boolean)],Ah.prototype,"canReorder",void 0);
_.R([_.H(),_.n("design:type",Object)],Ah.prototype,"expandLabel",void 0);_.R([_.H(),_.n("design:type",Object)],Ah.prototype,"collapseLabel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ah.prototype,"isFloating",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ah.prototype,"metaPanel",void 0);_.R([_.H({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.n("design:type",String)],Ah.prototype,"trailingIcon",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Ah.prototype,"isDarkTheme",void 0);_.R([_.H({selector:_.g4}),_.n("design:type",Boolean)],Ah.prototype,"miniplayerIsActive",void 0);_.R([_.H({selector:function(G){return G.watch.playerState}}),
_.n("design:type",Number)],Ah.prototype,"playerState",void 0);_.R([_.H({selector:_.Ud}),_.n("design:type",Boolean)],Ah.prototype,"isFullscreen",void 0);_.R([_.H({selector:_.BN}),_.n("design:type",Boolean)],Ah.prototype,"isTheaterMode",void 0);_.R([_.H(),_.n("design:type",Object)],Ah.prototype,"activeNowPlayingRenderer",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ah.prototype,"moveThreeDotMenuToTopRow",null);
_.R([_.P("data","autoplayData","playlistLoopStateEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ah.prototype,"nextVideoTitle",null);_.R([_.P("data","nextVideoTitle"),_.n("design:type",String),_.n("design:paramtypes",[])],Ah.prototype,"nextVideoLabel",null);_.R([_.P("collapsed"),_.n("design:type",String),_.n("design:paramtypes",[])],Ah.prototype,"buttonAriaLabel",null);
_.R([_.P("data","playlistId","longBylineText"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ah.prototype,"mixLongByLine",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ah.prototype,"playlistLoopStateEntityKey",null);_.R([_.hI("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ah.prototype,"onMouseEnter",null);
_.R([_.hI("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ah.prototype,"onMouseLeave",null);_.R([_.H({reflectToAttribute:!0}),_.P("data","collapsed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ah.prototype,"showNextVideoHeader",null);_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ah.prototype,"onRenderStamperFinished",null);
_.R([_.q5("collapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ah.prototype,"collapseChanged",null);_.R([_.q5("hidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ah.prototype,"hiddenChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ah.prototype,"dataChanged",null);
_.R([_.P("isTheaterMode","isFullscreen"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ah.prototype,"isFullBleedPlayer",null);_.R([_.q5("isTheaterMode","isFullscreen"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ah.prototype,"onFullBleedPlayerChanged",null);_.R([_.q5("isFullscreen"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ah.prototype,"onFullscreenChanged",null);
_.R([_.q5("playerState","miniplayerIsActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ah.prototype,"updateNowPlayingOverlay",null);_.R([_.hI("yt-playlist-lockup-now-playing-active"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],Ah.prototype,"onPlaylistLockupNowPlaying",null);
_.R([_.q5("data","isDarkTheme"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ah.prototype,"colorPaletteChanged",null);_.R([_.N({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Ah);
_.oIF=_.R9()(Ah,"ytd-playlist-panel-renderer",function(){if(gI3===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);gI3=G}G=gI3;return G},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var iA1;var M$=function(){return _.a.apply(this,arguments)||this};
_.M(M$,_.a);M$.prototype.computeShouldButtonBeVertical=function(G,b){return G||b};
M$.prototype.onYtServiceRequestSent=function(G,b){(G=_.g(b.endpoint,_.tx))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Da("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:G.status})):this.handleLikeEndpoint(G))};
M$.prototype.computelikeStatusEntityKey=function(G){return G==null?void 0:G.likeStatusEntityKey};
M$.prototype.handleLikeEndpoint=function(G){G.status==="LIKE"?this.JSC$17306_ytdDislikeToggleButtonRenderer.toggle(!1):G.status==="DISLIKE"?this.JSC$17306_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17306_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17306_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.kV.Object.defineProperties(M$.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var G;return fkj(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 b;return fkj(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(b=this.likeStatusEntity)==null?void 0:b.likeStatus)}}}});
M$.prototype.onYtServiceRequestSent=M$.prototype.onYtServiceRequestSent;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],M$.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],M$.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],M$.prototype,"vertical",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],M$.prototype,"textTransform",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],M$.prototype,"useShortsIcon",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],M$.prototype,"underIconLabel",void 0);_.R([_.H({value:"left"}),_.n("design:type",String)],M$.prototype,"buttonTooltipPosition",void 0);_.R([_.H(),_.n("design:type",Object)],M$.prototype,"overrides",void 0);
_.R([_.lH("#like-button"),_.n("design:type",Object)],M$.prototype,"JSC$17306_ytdLikeToggleButtonRenderer",void 0);_.R([_.lH("#dislike-button"),_.n("design:type",Object)],M$.prototype,"JSC$17306_ytdDislikeToggleButtonRenderer",void 0);_.R([_.P("data","likeStatusEntity.likeStatus","useShortsIcon"),_.n("design:type",Object),_.n("design:paramtypes",[])],M$.prototype,"likeButton",null);
_.R([_.P("data","likeStatusEntity.likeStatus","useShortsIcon"),_.n("design:type",Object),_.n("design:paramtypes",[])],M$.prototype,"dislikeButton",null);_.R([_.H({computed:"computelikeStatusEntityKey(data)"}),_.n("design:type",String)],M$.prototype,"likeStatusEntityKey",void 0);_.R([_.H({selectorArgs:["likeStatusEntityKey"],selector:gR}),_.n("design:type",Object)],M$.prototype,"likeStatusEntity",void 0);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],M$.prototype,"onYtServiceRequestSent",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],M$);
var Pla=_.R9()(M$,"ytd-like-button-renderer",function(){if(iA1===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);iA1=G}G=iA1;return G},{mode:1});_.dE3={};
_.dE3.YtConditionalRendererBehavior=[_.p.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(G,b){var I=this,h,q;return _.c(function(l){switch(l.nextAddress){case 1:if(!b)return I.hidden=!0,I.showSpinner=!1,l.return();if((h=G)==null?0:(q=h.visibilityCondition)==null?0:q.mode)switch(G.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return l.jumpTo(5);default:return l.jumpTo(6)}I.showSpinner=
!1;I.hidden=!0;return l.yield(I.shouldShow_(G),4);case 4:I.hidden=!l.yieldResult;l.jumpTo(0);break;case 5:return l.yield(I.shouldShow_(G),8);case 8:I.showSpinner=l.yieldResult;I.hidden=!1;l.jumpTo(0);break;case 6:return I.showSpinner=!1,l.yield(I.shouldShow_(G),9);case 9:I.hidden=!l.yieldResult,_.ip(l)}})},
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=_.wL(this.hostElement,"yt-get-mdx-status");return G.length==1&&G[0].connected},
isLocationPermissionGranted_:function(){var G;return _.c(function(b){return b.nextAddress==1?navigator.permissions?b.yield(navigator.permissions.query({name:"geolocation"}),3):b.jumpTo(2):b.nextAddress!=2?(G=b.yieldResult,b.return(Promise.resolve(G.state==="granted"))):b.return(Promise.resolve(!1))})}}];var yza=RtO("yt-icon",{callbackProps:["onKeydown"]}),rz1=_.U("kevlar_use_wil_icons")?_.C(function(G){var b=G.icon;var I=G.active;var h=G.className;var q=G.style;var l=G.title;var V=G.size;var D=G.dataSelected;var k=G.dataDisabled;var L=G.role;var x=G.themeOverride;var f=G.animateIcon;var T=G.ariaHidden;var B=G.ariaExpanded;var A=G.ariaLabel;var t=G.tabindex;var y=G.id;var F=G.iconFilter;var W=G.gradientColor;var O=G.onKeydown;var K=function(){var $a=b==null?void 0:b(),ev=null,LO=void 0;$a&&($a=v0e($a),
$a=U$v($a),$a.length&&(ev=$a[1],LO=$a[0]));return{iconName:ev,iconSetName:LO}},u=function(){return LWb(K().iconName,I==null?void 0:I(),void 0,V==null?void 0:V(),K().iconSetName,_.LL().resolve(_.SH))},w=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:F==null?void 0:F(),iconColor:W==null?void 0:W()}};
return _.v(_.Q,{cond:f,then:function(){return _.v(yza,{icon:b,active:I,className:h,style:q,title:l,dataSelected:D,dataDisabled:k,role:L,themeOverride:x,ariaHidden:T,ariaExpanded:B,ariaLabel:A,tabindex:t,id:y,iconFilter:F,gradientColor:W,onKeydown:O})},
else:function(){return _.v(_.Q,{cond:u,then:function($a){return _.v("span",{class:_.pG("ytIconWrapperHost",h),role:L,"aria-label":A,"aria-hidden":T,tabindex:function(){return isNaN(Number(t==null?void 0:t()))?void 0:Number(t==null?void 0:t())},
id:y,style:q,title:l,"on:keydown":_.Xu(function(ev){return void(O==null?void 0:O(ev))})},_.v(J6X,{data:$a,
options:w}))}})}})},"jg"):yza;var Fhf=function(G){var b=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];xop();_.cz("ytglobal.ytUtilActivityCallback_",function(){_.E3(G,"yt-user-activity")});
new cA(function(){return b.JSC$17323_onMouseMove});
document.addEventListener("scroll",function(){return b.onScroll});
window.addEventListener("resize",function(){return b.onResize})},HAD=function(G,b,I){b in G.eventJobIds||(I=_.fW().addLowPriorityJob(function(){_.k2();
delete G.eventJobIds[b]},I),G.eventJobIds[b]=I)};
Fhf.prototype.onScroll=function(G){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):G.target===document&&HAD(this,"scroll",200)};
Fhf.prototype.onResize=function(){HAD(this,"resize",200)};
Fhf.prototype.JSC$17323_onMouseMove=function(){HAD(this,"mousemove",100)};
_.kE=function(G){G.scrollEventsToIgnore+=1;G.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){G.scrollEventsToIgnore--},500))};var WhL=function(G){this.element=G;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
WhL.prototype.showFeedbackDialog=function(G,b,I,h){var q=aK8();if(!q)return!1;var l=otO();l.productId=q;b&&(l.flow="submit",l.report={description:b});I&&(aK8()==="59"?l.callback=_.$W(function(){_.C1("userFeedbackEvent",{});I()}):l.callback=_.$W(I));
l.bucket=h||_.wy("GOOGLE_FEEDBACK_BUCKET","Other");Nd9(l);G=YvD(this,"GFEEDBACK",G);try{_.BY8(l,G)}catch(V){return _.Xj(V),!1}return!0};
WhL.prototype.showHelpDialog=function(G,b,I){var h=this,q=aK8();if(!q)return!1;var l={helpCenterPath:"/youtube",productData:YvD(this,"GUIDED_HELP",I)};Nd9(l);var V=otO();V.context=G||l.productData.context||"default";V.defaultHelpArticleId=b;V.enableSendFeedback=!0;(_.Ge("gapi.load")||function(D,k){return k()})("client",function(){try{var D=Myn(q,l);
if(_.U("web_always_load_chat_support")&&!h.chatSupportLoaded)try{D.JSC$10048_loadChatSupport(V),h.chatSupportLoaded=!0}catch(k){}D.startHelp(V)}catch(k){_.Xj(k)}})};
var aK8=function(){var G=_.wy("GOOGLE_FEEDBACK_PRODUCT_ID");G||_.Xj(Error("gi"));return G},Nd9=function(G){G&&(G.locale=_.U("kevlar_help_use_locale")?_.wy("INNERTUBE_CONTEXT_HL","en"):_.wy("HTML_LANG","en"))},YvD=function(G,b,I){var h=G.productData;
delete h.origin;h.device=_.Tq();var q;a:{if(q=document.createElement("canvas")){var l=q.getContext("experimental-webgl",{stencil:!0});if(l){var V=l.getExtension("WEBGL_debug_renderer_info");if(V){q=l.getParameter(V.UNMASKED_RENDERER_WEBGL);break a}}if(l=q.getContext("webgl")){q=l.getParameter(l.RENDERER);break a}}q=null}h.gpu=q;h.isSDC=!!_.wy("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(q=_.wy("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Cy.extend(h,q);_.tzO(b,h);_.z_O(h);(G=_.E3(G.element,"yt-get-autonav-pause-debug-state"))&&
G.length&&(h.autonav_pause_state=G[0]);G=_.dV();h.browser_resolution=G.width+"\u00d7"+G.height+"@"+(window.devicePixelRatio||1)+"x";I&&_.Cy.extend(h,I);return h};
WhL.prototype.resetProductData=function(){this.productData={}};var ClY=function(G){this.feedbackManager=new WhL(G)};
ClY.prototype.showFeedbackDialog=function(G,b,I,h){return this.feedbackManager.showFeedbackDialog(G,b,I,h)};
ClY.prototype.showHelpDialog=function(G,b,I){return this.feedbackManager.showHelpDialog(G,b,I)};var Jz5=function(){this.baseUrl="";this.aTag=document.createElement("a")},nsA=function(G,b,I){I=I===void 0?{}:I;
I.pbj||(I.pbj=1);I=_.$tB(b,I);G.baseUrl&&I&&!_.eO(I)[1]&&!_.VE(I)&&(b=G.baseUrl,ls(b,"/")&&(b=b.slice(0,-1)),_.jv(I,"/")&&(I=I.slice(1)),I=b+"/"+I);Ov(G.aTag,_.YI(I||""));return G.aTag.href};
Jz5.prototype.fetchData=function(G){return _.UkX(G)};
Jz5.prototype.postData=function(G,b){var I={method:"POST"};if(b){for(var h=_.e(Object.keys(b)),q=h.next();!q.done;q=h.next()){q=q.value;var l=b[q];_.Oj(l)&&(b[q]=JSON.stringify(l))}I.postParams=b}return _.UkX(G,I)};
_.OxA=function(G,b,I,h,q){G=nsA(G,b,I);if(!G)throw h=Error("hi"),Object.assign(h,{params:b}),h;return _.UkX(G,q,h)};
Jz5.prototype.requestDataForServiceEndpoint=function(G,b){if(_.g(G,_.MpO))return this.fetchData("/getAccountSwitcherEndpoint");b=b||{};var I=_.g(G,zPB);I?b.se=I.base64EncodedServiceEndpoint:b.sej=JSON.stringify(G);(I=_.gL())&&_.U("enable_service_ajax_csn")&&(b.csn=I);b.theme=_.o_();_.g(G,gCd)&&_.wy("DELEGATION_CONTEXT")&&(b.delegation_context=JSON.stringify(_.wy("DELEGATION_CONTEXT")));I=null;for(var h in G)if(ls(h,"Endpoint")||ls(h,"Command")){I=h;break}if(!I){var q=Error("ii");Object.assign(q,{params:G});
_.pNO(q,"WARNING");return new _.MB(function(V,D){D(q)})}h={name:I};
var l;(I=(l=_.g(G,_.b9))==null?void 0:l.signal)&&(h.signal=I);(l=_.jO(window.location.href))&&l.internalcountrycode&&(h.internalcountrycode=l.internalcountrycode);l="/service_ajax";_.U("debug_forward_web_query_parameters")&&(l=_.kmu(l,window.location.search));l=_.mE(l,h);G.clickTrackingParams&&_.Cv(l,{itct:G.clickTrackingParams});return this.postData(l,b)};_.Kh3=new _.q3("GFEEDBACK_TOKEN");var ua8;var RK1;var nI8;var OAK;var ZT=function(){var G=_.a.apply(this,arguments)||this;G.compact=!1;G.dismissButtonDisabled=!1;G.shouldRenderReasonAsFormattedString=!_.U("web_player_error_message_reason_as_formatted_string_killswitch");return G};
_.M(ZT,_.a);ZT.prototype.computeHasIcon_=function(G){return!!G};
ZT.prototype.isSignInIcon_=function(G){return G=="yt-icons:prompted_sign_in"};
ZT.prototype.onDismissButtonClick=function(){var G=this,b=this.data.disableOnClick,I,h=(I=this.data.dismissButton)==null?void 0:I.buttonRenderer;b&&!this.dismissButtonDisabled&&h&&setTimeout(function(){G.dismissButtonDisabled=!0},0)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.dE3.YtConditionalRendererBehavior),_.n("design:type",Object)],ZT.prototype,"ytConditionalRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ZT.prototype,"data",void 0);_.R([_.H({computed:"computeIcon_(data.icon)"}),_.n("design:type",Object)],ZT.prototype,"icon_",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.n("design:type",Boolean)],ZT.prototype,"hasIcon_",void 0);_.R([_.H({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.n("design:type",Boolean)],ZT.prototype,"signInIcon_",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ZT.prototype,"compact",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ZT.prototype,"dismissButtonDisabled",void 0);
_.R([_.H({type:Boolean}),_.n("design:type",Object)],ZT.prototype,"shouldRenderReasonAsFormattedString",void 0);_.R([_.g8({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],ZT);
_.J(ZT,"yt-player-error-message-renderer",function(){if(OAK===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;nI8===void 0&&(nI8=document.createElement("template"));var h=nI8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);OAK=G}G=OAK;return G},{mode:2});var wge;var EI1;var th=function(){return _.a.apply(this,arguments)||this};
_.M(th,_.a);th.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
th.prototype.computeIcon_=function(G){return G?"yt-icons:"+G.iconType.toLowerCase():"error_outline"};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],th.prototype,"data",void 0);_.R([_.H({computed:"computeIcon_(data.icon)"}),_.n("design:type",Object)],th.prototype,"icon_",void 0);_.R([_.g8({is:"yt-player-kav-renderer",disableElementRegistration:!0})],th);
_.J(th,"yt-player-kav-renderer",function(){if(EI1===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;wge===void 0&&(wge=document.createElement("template"));var h=wge;I.call(b,h.content.cloneNode(!0),G.content.firstChild);EI1=G}G=EI1;return G},{mode:2});var dkO=_.WP(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.JN(_.C(function(G){var b=_.ee("div"),I=_.e(_.ZZ(0,void 0,"jxh75d")),h=I.next().value,q=I.next().value;I=_.e(_.ZZ(null,void 0,"F5Zm8"));var l=I.next().value,V=I.next().value;_.K3(function(){yqr(b.value,q,V);b.value.scrollIntoView()});
I=rq2.bind(null,G.data,h);_.kG("resize",function(){var D=l();if(h()===1&&D!==null){var k;(k=window.grecaptcha)==null||k.reset(D)}});
return _.v("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.v("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.v("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var D,k;return(D=G.data().accessibility)==null?void 0:(k=D.accessibilityData)==null?void 0:k.label}),_.v(_.IS,{text:I,
className:_.pG("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.v("div",{el:b,class:"ytwPlayerCaptchaViewModelGridItem"})))},"kg"),"yt-player-captcha-view-model",{props:{data:_.No}});var Fvs=!1;_.pg5=_.C(function(G){var b=G.data;return _.v("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.v(_.Q,{cond:function(){return b().icon},
then:function(I){return _.v("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.v(_.Fu,{data:I,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.v(_.Q,{cond:function(){return b().title},
then:function(I){return _.v("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.v(_.IS,{text:I}))}}),_.v(_.Q,{cond:function(){return b().description},
then:function(I){return _.v("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.v(_.IS,{text:I}))}}),_.v(_.VX,{data:function(){return b().primaryButton}},{buttonViewModel:function(I){return _.v(_.sQ,{data:I.data,
className:"interstitialViewModelFlexItem"})}}),_.v(_.VX,{data:function(){return b().secondaryButton}},{buttonViewModel:function(I){return _.v(_.sQ,{data:I.data,
className:"interstitialViewModelFlexItem"})}}))},"lg");
_.pg5.idomCompat=!0;var SvL=_.C(function(G){var b=G.data;_.PR();return _.v("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.v("div",{class:"playerInterstitialRendererScrim"},_.v(_.VX,{data:function(){return b().content}},{interstitialViewModel:_.pg5})))},"mg");
SvL.idomCompat=!0;_.JN(SvL,"yt-player-interstitial-renderer",{props:{data:_.hV}});var zE=function(){var G=_.a.apply(this,arguments)||this;G.noBackground=!1;G.compact=!1;G.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return G};
_.M(zE,_.a);zE.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"}}}};
zE.prototype.onUpdatePlayerErrorMessageCommand_=function(G){if(_.g(G,JVu)){var b;if(G=(b=_.g(G,JVu))==null?void 0:b.newPlayerErrorMessageRenderer)this.data=G}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],zE.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],zE.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],zE.prototype,"status",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zE.prototype,"noBackground",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zE.prototype,"compact",void 0);_.R([_.g8({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],zE);
var XgW=_.R9()(zE,"yt-playability-error-supported-renderers",function(){if(RK1===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;ua8===void 0&&(ua8=document.createElement("template"));var h=ua8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);RK1=G}G=RK1;return G},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var $z3=RtO("ytd-button-renderer");var Huq=void 0,akX=void 0;var Ciq=new VyB;var E4=new _.q3("ENTITY_STATE_TOKEN"),oQ=new _.q3("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Gf8=function(G){this.store=G;this.jiF=new _.kvW},rpO=function(G,b,I){var h,q;
if(!(q=((h=b.playabilityStatus)==null?void 0:h.status)!=="OK")){G=G.store;var l;q=b.offlineState&&((l=b.videoDetails)==null?0:l.videoId)?_.U("enable_pl_r_c_cd")?R4r(G.getState().entities,b.videoDetails.videoId):!!TsO(G.getState().entities,b.videoDetails.videoId):!1}if(q)return!0;q=nta(b);if(q===1){if(_.U("ab_v_vid_sig")){var V,D=(V=b.videoDetails)==null?void 0:V.videoId;if(!D||!I||D!==I){var k;b=new _.Wf("282054944_vid",{f5c:I,y8u:(k=b.videoDetails)==null?void 0:k.videoId});_.K1(b)}}return!0}HqO=
0;var L,x;k=(D=b.auxiliaryUi)==null?void 0:(L=D.messageRenderers)==null?void 0:(x=L.bkaEnforcementMessageViewModel)==null?void 0:x.displayType;if(q!==3&&(k==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||k==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;k={reason:_.RW(_.qP("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.U("ks_something_wrong_learn_more")?$0q("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.RW(_.qP("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:_.RW("282054944")};bN8(b,{playerErrorMessageRenderer:k});return!1},Fxr=function(G,b){if($IB(b)){_.hL(1,!0);
var I=(I=$IB(b))&&_.WvX()?I:void 0;I?(bN8(b,{enforcementMessageViewModel:I}),G.jiF.increment("IN_PLAYER"),_.hL(5)):(G.jiF.increment("SKIP_DISPLAY"),_.hL(2))}},bN8=function(G,b){G.playabilityStatus=Object.assign({},G.playabilityStatus,{status:"ERROR",
errorScreen:b});G.videoDetails=void 0};
Gf8.prototype.handleResponse=function(G,b){if(G.playabilityStatus){var I,h,q,l=(b==null?void 0:(I=b.innerTubeRequest)==null?void 0:I.videoId)||(b==null?void 0:(h=b.innerTubeRequest)==null?void 0:(q=h.playerRequest)==null?void 0:q.videoId);rpO(this,G,l)&&Fxr(this,G)}};
Gf8[QE]=[E4];var daO=new _.q3("ADBLOCK_DETECTION_SERVICE_TOKEN");var Fe=function(G){this.prh=G};
Fe.prototype.bindInnertubeChallengeFetcher=function(G){this.prh.bicf(G)};
Fe.prototype.registerChallengeFetchedCallback=function(G){this.prh.bcr(G)};
Fe.prototype.getLatestChallengeResponse=function(){return this.prh.blc()};var IJ8;IJ8=_.WP(["https://static.doubleclick.net/instream/ad_status.js"]);_.hMf=_.Ba(IJ8);var mza;_.i2=function(G,b,I){var h=this;this.network=G;this.options=b;this.networkStatusManager=I;this.zr=null;if(b.useBotguardEverywhere){var q=new _.G9;this.zr=q.promise;_.hd.ytAtRC&&_.vH(_.uu,function(){var l,V;return _.c(function(D){if(D.nextAddress==1){if(!_.hd.ytAtRC)return D.return();l=qZD(null);return D.yield(h.xP(l),2)}V=D.yieldResult;_.hd.ytAtRC&&_.hd.ytAtRC(JSON.stringify(V));_.ip(D)})});
SDp().then(function(l){var V,D,k,L;return _.c(function(x){if(x.nextAddress==1)return l.bindInnertubeChallengeFetcher(function(f){return h.xP(qZD(f))}),x.yield(JCO(),2);
V=x.yieldResult;D=l.getLatestChallengeResponse();k=D.challenge;if(!k)throw Error("ji");L={challenge:k,ia:rc(k),vm:V,bgChallenge:new dc};q.resolve(L);l.registerChallengeFetchedCallback(function(f){f=f.challenge;if(!f)throw Error("ki");f={challenge:f,ia:rc(f),vm:V,bgChallenge:new dc};h.zr=Promise.resolve(f)});
_.ip(x)})})}else b.preload&&j$F(this,new Promise(function(l){_.FQ(_.uu,function(){l(lJ3(h))},0)}))};
mza=function(G){var b={preload:!0,useBotguardEverywhere:!0},I=!1;if(typeof b==="boolean")var h={preload:b};else typeof b==="undefined"?h={preload:!0}:(h=b,I=!!b.xT8);b=I?void 0:new _.IB;_.i2.instance=new _.i2(G,h,b);return _.i2.instance};
_.i2.prototype.jaN=function(){var G=this;return _.c(function(b){return b.nextAddress==1?b.yield(Promise.race([G.zr,null]),2):b.return(!!b.yieldResult)})};
_.i2.prototype.dJh=function(G,b,I){var h=this,q,l,V;return _.c(function(D){h.zr===null&&j$F(h,lJ3(h));q=!1;l={};V=function(){var k,L,x;return _.c(function(f){switch(f.nextAddress){case 1:return f.yield(h.zr,2);case 2:k=f.yieldResult;l.challenge=k.challenge;if(!k.vm){"c1a"in k.ia&&(l.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");f.jumpTo(3);break}L=Object.assign({},{c:k.challenge,e:G},b);_.gm(f,4);q=!0;return f.yield(k.vm.snapshot({fQ:L}),6);case 6:(x=f.yieldResult)?l.webResponse=x:l.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.hF(f,3);break;case 4:_.zf(f),l.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(G==="ENGAGEMENT_TYPE_PLAYBACK"){var T=k.ia,B={};if(T.c6a){var A=Number(_.wy("DCLKSTAT",0));B.reportingStatus=String(Number(T.c)^(isNaN(A)?0:A))}T.c6b&&(B.broadSpectrumDetectionResult=String(Number(T.c)^Number(_.wy("CATSTAT",0))));l.adblockReporting=B}return f.return(l)}})};
return D.return(Promise.race([V(),eMj(I,function(){var k=Object.assign({},l);q&&(k.error="ATTESTATION_ERROR_VM_TIMEOUT");return k})]))})};
var qZD=function(G){var b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};G&&(b.interpreterHash=G);return b},lJ3=function(G,b){b=b===void 0?0:b;
var I,h,q,l,V,D,k,L,x,f,T,B;return _.c(function(A){switch(A.nextAddress){case 1:I=qZD(vWe().pZJ);if(_.U("att_fet_ks"))return _.gm(A,7),A.yield(G.xP(I),9);_.gm(A,4);return A.yield(VcY(G,I),6);case 6:V=A.yieldResult;q=V.tyX;l=V.gnk;h=V;_.hF(A,3);break;case 4:return _.zf(A),_.RB(Error("li`"+b)),DzY(G,864E5),A.return({challenge:"",ia:{},vm:void 0,bgChallenge:void 0});case 9:h=A.yieldResult;if(!h)throw Error("mi");if(!h.challenge)throw Error("ni");q=h.challenge;l=rc(q);if("c1a"in l&&(!h.bgChallenge||!h.bgChallenge.program))throw Error("oi");
_.hF(A,3);break;case 7:D=_.zf(A);_.RB(D);b++;if(b>=5)return _.RB(Error("li`"+b)),DzY(G,864E5),A.return({challenge:"",ia:{},vm:void 0,bgChallenge:void 0});k=1E3*Math.pow(2,b-1)+Math.random()*1E3;return A.return(new Promise(function(t){_.FQ(_.uu,function(){t(lJ3(G,b))},k)}));
case 3:L=p1r(l);DzY(G,L*1E3);x=void 0;if(!("c1a"in l&&h.bgChallenge)){A.jumpTo(10);break}f=Etu(h.bgChallenge);_.gm(A,11);return A.yield(QNn(vWe(),f),13);case 13:_.hF(A,12);break;case 11:return T=_.zf(A),_.RB(T),A.return({challenge:q,ia:l,vm:x,bgChallenge:f});case 12:return _.gm(A,14),x=new _.aT({challenge:f,aKh:{y6:"aGIf"}}),A.yield(x.qhz,16);case 16:_.hF(A,10);break;case 14:B=_.zf(A),_.RB(B),x=void 0;case 10:return A.return({challenge:q,ia:l,vm:x,bgChallenge:f})}})};
_.i2.prototype.xP=function(G){var b=this,I;return _.c(function(h){I=b.networkStatusManager;if(!I||I.isNetworkAvailable())return h.return(b.network.xP(G));_.ZE("att_pna",void 0,"attestation_challenge_fetch");return h.return(new Promise(function(q){I.listenOnce("publicytnetworkstatus-online",function(){b.network.xP(G).then(q)})}))})};
var cjF=function(G){if(!G)throw Error("mi");if(!G.challenge)throw Error("ni");var b=G.challenge,I=rc(b);if("c1a"in I&&(!G.bgChallenge||!G.bgChallenge.program))throw Error("oi");return Object.assign({},G,{tyX:b,gnk:I})},VcY=function(G,b){var I,h,q,l,V;
return _.c(function(D){switch(D.nextAddress){case 1:I=void 0,h=0,q={};case 2:if(!(h<5)){D.jumpTo(4);break}if(!(h>0)){D.jumpTo(5);break}q.dSE=1E3*Math.pow(2,h-1)+Math.random()*1E3;return D.yield(new Promise(function(k){return function(L){_.FQ(_.uu,function(){L(void 0)},k.dSE)}}(q)),5);
case 5:return _.gm(D,7),D.yield(G.xP(b),9);case 9:return l=D.yieldResult,D.return(cjF(l));case 7:I=V=_.zf(D),V instanceof Error&&_.RB(V);case 8:h++;q={dSE:void 0};D.jumpTo(2);break;case 4:throw I;}})},j$F=function(G,b){G.zr=b},kf1=function(G){var b,I,h;
return _.c(function(q){if(q.nextAddress==1)return q.yield(Promise.race([G.zr,null]),2);b=q.yieldResult;var l=lJ3(G);G.zr=l;(I=b)==null||(h=I.vm)==null||h.dispose();_.ip(q)})},DzY=function(G,b){var I=Date.now()+b,h=function(){var q;
return _.c(function(l){q=I-Date.now();return q<1E3?l.yield(kf1(G),0):(_.FQ(_.uu,h,Math.min(q,6E4)),l.jumpTo(0))})};
h()},eMj=function(G,b){return new Promise(function(I){_.FQ(_.uu,function(){I(b())},G)})};var vTL=function(){};
vTL.prototype.processContext=function(G){var b=_.i2.instance;if(!b)return _.kF();var I=h1s(G);return I?new cs(b.dJh(I,Gu2(G),500).then(function(h){var q;(G==null?0:(q=G.innerTubeRequest)==null?0:q.context)||(G.innerTubeRequest.context={});q=G.innerTubeRequest.context;q.request||(q.request={});q.request.attestationResponseData=h})):_.kF()};var LfF=function(G){this.innertubeTransportService=G};
LfF.prototype.xP=function(G){_.ZE("att_fsr",void 0,"attestation_challenge_fetch");return _.qS(this.innertubeTransportService,G,_.JQ(_.w_W)).then(function(b){_.ZE("att_frr",void 0,"attestation_challenge_fetch");return b})};_.Q$3=function(G){this.innertubeTransportService=G};var xzj=new _.q3("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var fJ8=function(){},BmK=function(G,b,I,h,q){var l=_.wy("YPC_MB_URL");
_.JRr(l).then(function(){Tmj(l,G,b,I,h,q)})},Tmj=function(G,b,I,h,q,l){try{var V=_.Cc.payments.business.integration,D=_.Cc.payments.business.integration.Style.create().withMaterialDesignStyle(),k=V.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.U("enable_window_constrained_buy_flow_dialog")&&(k=k.usingPopupStyle("windowConstrained"));l&&(k=k.usingCloseCallback(l));var L=I?I:_.wy("YPC_GB_LANGUAGE"),x=_.wy("SESSION_INDEX");V.bootstrap.fromPaymentsUrl(G);V.bootstrap.asMashupMode(k).usingGaiaIndex(x).usingLocale(L).usingStyle(D).usingDefaultActivityStatusChangeHandler().inStandaloneContext(V.standaloneContextAuthId.forGaia()).purchaseManager(b,function(f){h&&h(f)}).load(void 0,q)}catch(f){throw q&&q(f),_.K1(f),f;
}};var UzF=new _.q3("PURCHASE_MANAGER_TOKEN");var s$3=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(b){G.videos=b},
getRecommendedVideos:function(){return G.recommendedVideos},
setRecommendedVideos:function(b){G.recommendedVideos=b}}};
s$3.prototype.addVideos=function(G){G&&(this.videos=G.filter(function(b){return!!_.jiv(b)}).map(function(b){var I=_.jiv(b);
a:{var h;if(b.playlistVideoRenderer&&((h=b.playlistVideoRenderer)==null?0:h.voteSortTiebreaker))var q=b.playlistVideoRenderer.voteSortTiebreaker;else{if(_.g(b,WR)){var l;if(h=(q=_.g(b,WR))==null?void 0:(l=q.playlistItemData)==null?void 0:l.voteSortTiebreaker){q=h;break a}}q=""}}return{itemId:I,videoId:_.e1O(b),voteCount:_.VwB(b),voteSortTiebreaker:q}}),this.continuationsPresent=!!_.g(G[G.length-1],_.Yg))};
var gT5=function(G,b){return G.videos.findIndex(function(I){return I.itemId===b})},Aje=function(G,b){return G.recommendedVideos.findIndex(function(I){return I.itemId===b})},Mc5=function(G){G={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:G}}}}};_.LL().resolve(_.xW).resolveCommand(G)};var ZN8=function(){s$3.apply(this,arguments)};
_.M(ZN8,s$3);
var Oe8=function(G,b,I,h){if(!G.parentElem)throw Error("ti");var q=gT5(G,b);q===-1&&(q=Aje(G,b),q=q!==-1?q+G.videos.length:-1);if(q===-1)throw Error("ui");var l=q>=G.videos.length?G.recommendedVideos[q-G.videos.length]:G.videos[q];l.voteCount=I;l.voteSortTiebreaker=Date.now().toString();q>=G.videos.length?G.recommendedVideos.splice(q-G.videos.length,1):G.videos.splice(q,1);var V=G.videos;for(var D=0,k=V.length-1;D<=k;){var L=Math.floor((D+k)/2);if(V[L].voteCount<l.voteCount)k=L-1;else if(V[L].voteCount>l.voteCount)D=
L+1;else{a:{var x=l.voteSortTiebreaker;var f=V[L].voteSortTiebreaker;if(x.length!==f.length)x=x.length>f.length;else{for(var T=0;T<x.length;T++){var B=x.charCodeAt(T),A=f.charCodeAt(T);if(B>A){x=!0;break a}if(B<A)break}x=!1}}x?k=L-1:D=L+1}}V=D;if(V===-1)throw Error("vi");G.videos.splice(V,0,l);q!==V&&tcc(G,q,V,b,I,h)},tcc=function(G,b,I,h,q,l){var V,D=(V=G.parentElem)==null?void 0:V.children,k=Math.min(b,I),L=Math.max(b,I);
if(D)for(V=k;V<=L;V++)D[V].style.viewTransitionName="item-"+String(V);document.startViewTransition(function(){if(G.parentElem){var x=G.parentElem.children;if(!(!x||b<0||b>=x.length||I<0||I>=x.length)){var f=x[b];if(f){f.remove();G.showRefreshPill=I>=G.videos.length-1&&G.continuationsPresent;if(!G.showRefreshPill){x=x[I]||null;var T;(T=G.parentElem)==null||T.insertBefore(f,x)}_.O3(G.parentElem,"yt-update-video-data-voting-animation",{toIdx:I,itemId:h,newVoteCount:q,voteStatus:l,hideItem:G.showRefreshPill})}}}}).finished.then(function(){if(D)for(var x=
k;x<=L;x++)D[x].style.viewTransitionName="";
if(G.showRefreshPill)Mc5(_.qP("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var f;if(f=x=(f=G.parentElem)==null?void 0:f.children[I])f=x.getBoundingClientRect(),x=f.bottom,f=!(f.top>=0&&x<=G.clientHeight);f&&(f=_.jX(b>I?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(b-I)),Mc5(f))}})};var iNF=function(G,b){var I=this;G?this.innertubeTransportServicePromise=Promise.resolve(G):b&&(this.innertubeTransportServicePromise=b(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new vu(3E3,function(h){return zM3(I,h)},0);
this.validateMiniAppVideoIdRateLimiter=new vu(3E3,function(h){return oTK(I,h)},1)},jIK=function(G,b){G.JSC$17435_miniAppId=b;
G.reportMiniAppValueRateLimiter=new vu(3E3,function(I){return zM3(G,I)},0);
G.validateMiniAppVideoIdRateLimiter=new vu(3E3,function(I){return oTK(G,I)},1)},mE1=function(G,b){var I;
return _.c(function(h){if(h.nextAddress==1)return h.yield(G.reportMiniAppValueRateLimiter.call(b),2);I=h.yieldResult;return h.return([I,b])})},zM3=function(G,b){var I,h,q,l,V,D,k;
return _.c(function(L){switch(L.nextAddress){case 1:return L.yield(G.innertubeTransportServicePromise,2);case 2:return I=L.yieldResult,h=_.JQ(GPW),q=Date.now(),l={externalPostId:G.JSC$17435_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(q/1E3),nanos:Math.round(q%1E3*1E6)},intValue:""+b}},_.gm(L,3),L.yield(_.qS(I,l,h),5);case 5:V=L.yieldResult;_.hF(L,4);break;case 3:throw D=_.zf(L),D;case 4:if(V){if("error"in V&&V.error)throw V.error;if(V.errorMetadata)throw Error("wi`"+
V.errorMetadata.status);if(k=V.userStatResult)return L.return(k);throw Error("xi");}throw Error("yi");}})},Vo9=function(G){var b,I,h,q,l;
_.c(function(V){switch(V.nextAddress){case 1:return V.yield(G.innertubeTransportServicePromise,2);case 2:return b=V.yieldResult,I=_.JQ(GPW),h={externalPostId:G.JSC$17435_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.gm(V,3),V.yield(_.qS(b,h,I),5);case 5:q=V.yieldResult;_.hF(V,4);break;case 3:throw l=_.zf(V),l;case 4:if(q==null)throw Error("yi");if("error"in q&&q.error)throw q.error;if(q.errorMetadata)throw Error("wi`"+q.errorMetadata.status);_.ip(V)}})};
iNF.prototype.flush=function(){var G=this;return _.c(function(b){return b.nextAddress==1?b.yield(G.reportMiniAppValueRateLimiter.flush(),2):b.yield(G.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var eKe=function(G,b){return _.c(function(I){return I.nextAddress==1?I.yield(G.validateMiniAppVideoIdRateLimiter.call(b),2):I.return(I.yieldResult)})},oTK=function(G,b){var I,h,q,l,V,D;
return _.c(function(k){switch(k.nextAddress){case 1:return k.yield(G.innertubeTransportServicePromise,2);case 2:return I=k.yieldResult,h=_.JQ(nXn),q={videoId:b},_.gm(k,3),k.yield(_.qS(I,q,h),5);case 5:l=k.yieldResult;_.hF(k,4);break;case 3:throw V=_.zf(k),V;case 4:if(l){if("error"in l&&l.error)throw l.error;if(l.errorMetadata)throw Error("wi`"+l.errorMetadata.status);if(D=l.playabilityStatus)return k.return(D.status);throw Error("zi");}throw Error("yi");}})};
iNF[QE]=[_.vf(_.kn),_.vf(oMJ)];var PpY=function(){this.clientData=new Map};
PpY.prototype.getData=function(G){return this.clientData.get(G)};var dzc=function(G){this.store=G};
dzc.prototype.handleResponse=function(G){(G=_.g(G.frameworkUpdates,rR))&&_.jn(G,this.store)};
dzc[QE]=[_.nR];var yjK=new _.q3("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var rjK,Ff5;_.Pu=new _.q3("FLOW_STATE_MANAGER_TOKEN");rjK=function(){this.flowStates=new Map};
Ff5=function(G,b){G=_.e(G.flowStates.values());for(var I=G.next();!I.done;I=G.next())if(I=I.value,I.flowRenderer.targetId===b)return I};var HNL=function(G,b){this.JSC$17460_reduxStore=G;this.JSC$17460_flowStateManager=b};
_.M(HNL,hA);
HNL.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k,L,x,f,T,B,A;return _.c(function(t){I=_.g(G,_.lfb);h=I.stepId;q=I.targetId;l=Ff5(b.JSC$17460_flowStateManager,q);D=(V=l)==null?void 0:V.flowRenderer;k=D.flowStateEntityKey;L=_.aG(b.JSC$17460_reduxStore.getState(),k);if(!L)return t.return();x=L.currentStepId;B=(T=(f=L)==null?void 0:f.stepIdStack)!=null?T:[];A=x===B[B.length-1]?h:x;b.JSC$17460_reduxStore.dispatch(_.BR("flowStateEntity",k,{currentStepId:h,stepIdStack:[A]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.ip(t)})};
var Wf9=function(){HNL.apply(this,arguments)};
_.M(Wf9,HNL);Wf9[QE]=[_.nR,_.Pu];var aJ1=function(G,b,I){this.JSC$17467_reduxStore=G;this.JSC$17467_flowStateManager=b;this.JSC$17467_commandHandler=I};
_.M(aJ1,hA);
aJ1.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L,x,f,T,B,A,t;return _.c(function(y){h=_.g(G,_.mZA);q=h.targetId;l=Ff5(I.JSC$17467_flowStateManager,q);D=(V=l)==null?void 0:V.flowRenderer;k=D.flowStateEntityKey;L=_.aG(I.JSC$17467_reduxStore.getState(),k);T=[].concat(_.Nz((f=(x=L)==null?void 0:x.stepIdStack)!=null?f:[]));B=T.pop();((A=L)==null?void 0:A.currentStepId)===B&&(B=T[T.length-1]);if(!B)return(t=h.onFirstStepCommand)&&I.JSC$17467_commandHandler.resolveCommand(t,b),y.return();
I.JSC$17467_reduxStore.dispatch(_.BR("flowStateEntity",k,{currentStepId:B,stepIdStack:T}));_.ip(y)})};
var NmD=function(){aJ1.apply(this,arguments)};
_.M(NmD,aJ1);NmD[QE]=[_.nR,_.Pu,_.xW];var YZY=function(G,b){this.innertubeTransportService=G;this.JSC$17472_commandHandler=b};
_.M(YZY,hA);YZY.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D;return _.c(function(k){if(k.nextAddress==1){h=_.g(G,eGn);if(!h)return k.return();_.gm(k,2);return k.yield(_.dR(I.innertubeTransportService,G),4)}if(k.nextAddress!=2){q=k.yieldResult;if(!q)return k.return();(l=q.updateFlowCommand)&&I.JSC$17472_commandHandler.resolveCommand(l,b);return _.hF(k,0)}_.zf(k);(D=(V=h)==null?void 0:V.onFailureCommand)&&I.JSC$17472_commandHandler.resolveCommand(D,b);_.ip(k)})};
var Cpe=function(){YZY.apply(this,arguments)};
_.M(Cpe,YZY);Cpe[QE]=[_.kn,_.xW];var Jj3=function(G,b){this.JSC$17478_flowStateManager=G;this.JSC$17478_commandHandler=b};
_.M(Jj3,hA);
Jj3.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V;return _.c(function(D){h=_.g(G,_.DZn);q=h.targetId;l=Ff5(I.JSC$17478_flowStateManager,q);if(!l)return D.return(Promise.resolve());var k=l,L=(V=h.steps)!=null?V:[],x,f=(x=k.flowRenderer.steps)!=null?x:[];L=[].concat(_.Nz(f),_.Nz(L));k.flowRenderer.steps=L;h.flowContinuationCommand&&(l.flowRenderer.flowContinuationCommand=h.flowContinuationCommand);h.entityUpdateCommand&&I.JSC$17478_commandHandler.resolveCommand(h.entityUpdateCommand,b);
return D.return(Promise.resolve())})};
var dO=function(){Jj3.apply(this,arguments)};
_.M(dO,Jj3);dO[QE]=[_.Pu,_.xW];var Kfe={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_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 uDF=new _.q3("ICON_SET_TOKEN"),RMa=new _.q3("ICON_URL_PROVIDER_TOKEN"),nT1=new _.q3("PREFETCH_ICONS_TOKEN"),ON8=new _.q3("ICON_MAP_FN_TOKEN");var yb={},wpY=(yb.ACCESS_TIME="clock",yb.ACCOUNT_BOX=_.wy("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",yb.ACCOUNT_BOX_CAIRO="person_account_cairo",yb.ACCOUNT_CIRCLE="person_circle",yb.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",yb.ACCOUNT_LINKED="account_link_success",yb.ACCOUNT_UNLINKED="account_link",yb.ADD_FRIEND="people",yb.ADD_MODERATOR="shield_add",yb.ADD_TO_LIBRARY="bookmark",yb.ADD_TO_PLAYLIST="add",yb.ADD_TO_QUEUE_TAIL="list_queue",yb.ADD_TO_REMOTE_QUEUE="list_music",
yb.ADD_TO_WATCH_LATER="clock",yb.ADD_VIDEO_LINK="film_strip_add",yb.ALERT_WARN_RED="alert_triangle",yb.ARROW_BACK="arrow_left",yb.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",yb.ARROW_DROP_DOWN="chevron_down",yb.ARROW_DROP_UP="chevron_up",yb.ARROW_FORWARD="arrow_right",yb.ARTIST="person_music",yb.AUDIOTRACK="audio",yb.AUTO_AWESOME="sparkle",yb.AVATAR_ANONYMOUS="person_circle",yb.AVATAR_LOGGED_OUT="person_circle",yb.BACK="arrow_left",yb.BAR_CHART="bar_graph",yb.BLOCK="slash_circle_left",
yb.BLOCK_USER="slash_circle_left",yb.BOOKMARK_BORDER="bookmark",yb.BREAKING_NEWS_ALT_1="article_alert",yb.BROADCAST_CAIRO="podcast_cairo",yb.BUG_REPORT="bug",yb.CAMERA_ALT="camera",yb.CAMPAIGN="megaphone",yb.CANCEL="x_circle",yb.CAPTIONS="closed_caption",yb.CAST_OUTLINE="chromecast",yb.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",yb.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",yb.CHAT="message_bubble_left",yb.CHAT_BUBBLE="message_bubble_empty",yb.CHAT_SPARK="spark_message_bubble_left",yb.CHECK_BOX_OUTLINE_BLANK=
"box_empty",yb.CHECK_CIRCLE_OUTLINE="check_circle",yb.CHECK_CIRCLE_THICK="check_circle",yb.CLARIFY="article_clarify",yb.CLOSED_CAPTION_SELECTED="closed_caption",yb.CLOSE="x_mark",yb.CLOUD_UPLOAD="cloud_arrow_up",yb.COLLAPSE="chevron_up",yb.COLLAPSE_CAIRO="chevron_up_cairo",yb.COLLECTION="layers",yb.COLOR_LENS="palette",yb.COMMENT="message_bubble_right",yb.CONSENT_SHIELD="person_shield",yb.CONTENT_CUT="scissors",yb.CONTENT_CUT_CAIRO="scissors_cairo",yb.COURSE=_.U("web_enable_course_icon_update")?"creator_academy":
"lightbulb",yb.COURSE_CAIRO=_.U("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",yb.CREATION_LIVE="radar_live",yb.CREATION_POST="box_pencil",yb.CREATION_UPLOAD="my_videos",yb.CREATION_UPLOAD_RED="upload",yb.CREATOR_METADATA_MONETIZATION="dollar_sign",yb.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",yb.CREATOR_STUDIO="youtube_studio",yb.DASHBOARD="grid_asymmetrical",yb.DELETE="trash_can",yb.DELETE_SWEEP="trash_can",yb.DESKTOP="laptop",yb.DISLIKE="thumb_down",yb.DISLIKE_SELECTED=
"thumb_down",yb.DISMISSAL="x_mark",yb.DISMISS_QUEUE="list_remove",yb.DONE_ALL="check_double",yb.DOWN_ARROW="arrow_down",yb.DO_NOT_DISTURB="slash_circle_left",yb.DRAFT="paper_corner_folded",yb.DRAG_HANDLE="bars_2",yb.EDIT="pencil",yb.EMOJI="face_very_happy",yb.EMOJI_FLAGS="flag",yb.EMOJI_OBJECTS="lightbulb",yb.EMOJI_PEOPLE="face_very_happy",yb.EMOJI_RECENT="clock",yb.EMPTY_HEART="heart",yb.EMPTY_LIKE="thumb_up",yb.ERROR_BLACK="alert_circle",yb.ERROR_OUTLINE="alert_circle",yb.EXIT_APP="arrow_in",yb.EXIT_TO_APP=
"arrow_in",yb.EXPAND="chevron_down",yb.EXPAND_ALL="chevron_expand",yb.EXPAND_CAIRO="chevron_down_cairo",yb.EXPAND_LESS="chevron_up",yb.EXPAND_MORE="chevron_down",yb.EXPLORE="compass",yb.EXPLORE_DESTINATION="compass",yb.EXTERNAL_LINK="open_new",yb.FAB_UPLOAD="upload",yb.FACE_HAPPY_OUTLINE="face_happy",yb.FACT_CHECK="article_check",yb.FASHION_LOGO="fashion",yb.FASHION_LOGO_CAIRO="fashion_cairo",yb.FAVORITE="heart",yb.FEEDBACK="message_bubble_alert",yb.FEEDBACK_CAIRO="message_bubble_alert_cairo",yb.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",yb.FILL_ARROW_SOLID_UP_16="arrow_solid_up",yb.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",yb.FILTER="menu_filter",yb.FIRST_PAGE="chevron_first",yb.FLAG="flag",yb.FULL_HEART="heart",yb.GAME_CONSOLE_DPAD="game_console_dpad",yb.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",yb.GAMING_LOGO="gaming",yb.GAMING_LOGO_CAIRO="gaming_cairo",yb.GO_TO_PAGE="arrow_right",yb.GROUPS="people_group",yb.HAPPY="face_happy",yb.HEALTH_AND_SAFETY="shield_plus",yb.HELP="question_circle",yb.HELP_CAIRO=
"question_circle_cairo",yb.HELP_OUTLINE="question_circle",yb.HIDE="slash_circle_left",yb.IMAGE="image",yb.INFINITY_ICON="infinity",yb.INFO="info_circle",yb.INFO_OUTLINE="info_circle",yb.INSERT_CHART="bar_graph_box_vertical",yb.INSERT_CHART_OUTLINED="bar_graph_box_vertical",yb.INSERT_PHOTO="image",yb.KEEP="pin",yb.KEEP_OFF="pin_off",yb.KEYBOARD="keyboard",yb.KEYBOARD_ARROW_DOWN="chevron_down",yb.KEYBOARD_ARROW_UP="chevron_up",yb.KIDS_BLOCK="slash_circle_left",yb.LANGUAGE="globe",yb.LAST_PAGE="chevron_last",
yb.LAUNCH="open_new",yb.LEARNING="lightbulb",yb.LEARNING_CAIRO="lightbulb_cairo",yb.LIBRARY_ADD=vwB("library_add"),yb.LIBRARY_OUTLINE="library",yb.LIBRARY_REMOVE=vwB(),yb.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",yb.LIKES_PLAYLIST="thumb_up",yb.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",yb.LIKE="thumb_up",yb.LIKE_SELECTED="thumb_up",yb.LIVE="radar_live",yb.LIVE_CAIRO="radar_live_cairo",yb.LIVE_UNLISTED="link",yb.LOCATION_ON="location_point",yb.LOCATION_PIN="location_point",yb.LOOP="arrow_repeat",yb.LOOP_ACTIVE=
"arrow_repeat",yb.LOOP_ONE="arrow_repeat_1",yb.LOOP_ONE_ACTIVE="arrow_repeat_1",yb.MEH="face_meh",yb.MEMBERS_ONLY_MODE_OFF="message_bubble_left",yb.MESSAGE="message_bubble_left",yb.MICROPHONE_ON="mic",yb.MIX="youtube_mix",yb.MONETIZATION_ON="dollar_sign_circle",yb.MONEY_FILL="dollar_sign_container",yb.MONEY_FILL_JPY="yen_sign_container",yb.MONEY_HEART="dollar_sign_heart",yb.MORE_HORIZ="overflow_horizontal",yb.MORE_VERT="overflow_vertical",yb.MUSIC="audio",yb.MUSIC_CAIRO="audio_cairo",yb.MUSIC_NOTE_SYMBOL=
"music",yb.MUSIC_SHUFFLE="arrow_shuffle",yb.MY_CHANNEL="person_circle",yb.MY_LOCATION="location_point",yb.NEWS_STORY="news",yb.NEXT="chevron_right",yb.NOTIFICATIONS="bell",yb.NOTIFICATIONS_ACTIVE="bell_on",yb.NOTIFICATIONS_CAIRO="bell_cairo",yb.NOTIFICATIONS_DONE_CHECKMARK="check",yb.NOTIFICATIONS_INBOX="bell",yb.NOTIFICATIONS_NONE="bell",yb.NOTIFICATIONS_OFF="bell_off",yb.NOT_INTERESTED="slash_circle_left",yb.OFFICIAL_ARTIST_BADGE="audio",yb.OFFLINE_CLOUD="cloud_off",yb.OFFLINE_DOWNLOAD="download",
yb.OFFLINE_DOWNLOAD_CAIRO="download_cairo",yb.OFFLINE_PAUSE="pause",yb.OPEN_IN_NEW="open_new",yb.OUTLINE_ADJUST="adjust",yb.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",yb.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",yb.OUTLINE_BAG="bag",yb.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",yb.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",yb.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",yb.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",yb.PAID="dollar_sign",yb.PAUSE_OUTLINED="pause",yb.PAYMENT=
"credit_card",yb.PERSON_RADAR_FILLED="person_radar",yb.PHONE_DOWNLOAD="mobile_download",yb.PLAYABLES_LOGO="tic_tac_toe",yb.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",yb.PLAYLISTS="list_play_arrow",yb.PLAYLISTS_CAIRO="list_play_arrow_cairo",yb.PLAYLIST_ADD=vwB("list_add"),yb.PLAYLIST_ADD_CHECK=vwB("list_check"),yb.PLAYLIST_PLAY="list_play_arrow",yb.PLAY_ALL="play_arrow",yb.PLAY_CIRCLE="play_arrow_circle",yb.PLAY_OUTLINED="play_arrow_circle",yb.PRIVACY_INFO="shield",yb.PRIVACY_PRIVATE="lock",yb.PRIVACY_PUBLIC=
"earth",yb.PRIVACY_UNLISTED="link",yb.PROMOTE="megaphone",yb.PURCHASES="price_tag",yb.PURCHASE_SUPER_CHAT="super_chat",yb.PURCHASE_SUPER_STICKER="super_sticker",yb.QUESTION_ANSWER="message_bubble_question",yb.QUEUE_PLAY_LAST="list_queue_last",yb.QUEUE_PLAY_NEXT="list_play_arrow",yb.REMIX_FILLED="youtube_shorts_remix",yb.REMOVE="bar_circle",yb.REMOVE_CIRCLE="bar_circle",yb.REMOVE_CIRCLE_OUTLINE="bar_circle",yb.REMOVE_DONE="check_double_off",yb.REMOVE_FROM_HISTORY="bar_circle",yb.REMOVE_FROM_PLAYLIST=
"bar_circle",yb.REMOVE_MODERATOR="shield_off",yb.REPLAY="arrow_circle",yb.REPLAY_10="skip_back_10",yb.REPORT_PROBLEM="alert_triangle",yb.SAD="face_sad",yb.SAVE_PLAYLIST="bookmark",yb.SCHEDULE="clock",yb.SCHOOL="creator_academy",yb.SCREEN_FULLSCREEN="screen_full",yb.SEARCH_HISTORY="arrow_time",yb.SELL="price_tag",yb.SETTINGS="gear",yb.SETTINGS_CAIRO="gear_cairo",yb.SETTINGS_LIGHT="gear",yb.SETTINGS_MATERIAL="gear",yb.SHARE_ARROW="share",yb.SHIELD_WITH_AVATAR="person_shield",yb.SHOPPING_BAG="bag",yb.SHOPPING_BAG_CAIRO=
"bag_cairo",yb.SHOPPING_CART="cart",yb.SHORTS_COMMENT="youtube_shorts_message_bubble_right",yb.SHORTS_DISLIKE="youtube_shorts_thumb_down",yb.SHORTS_LIKE="youtube_shorts_thumb_up",yb.SHORTS_SHARE="youtube_shorts_share",yb.SHUFFLE="arrow_shuffle",yb.SLOW_MODE_OFF="message_bubble_left",yb.SOCIAL="people",yb.SORT="menu_sort",yb.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",yb.SPEED_1X="1x",yb.SPEED_1_POINT_2X="1_point_2x",yb.SPEED_1_POINT_5X="1_point_5x",yb.SPEED_1_POINT_8X="1_point_8x",yb.SPEED_2X="2x",
yb.SPEED_POINT_2X="point_2x",yb.SPEED_POINT_8X="point_8x",yb.SPONSORSHIP_STAR="star_circle",yb.STAFF_PICK="spotlight",yb.START_DVR="add",yb.STAR_BORDER="star",yb.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",yb.STICKER_EMOTICON="face_happy",yb.STOP_DVR="stop",yb.SUBSCRIBE="youtube_logo_icon",yb.SUBSCRIBE_PLUS="add_cairo",yb.SUBSCRIPTION_MANAGER="gear",yb.SUPERVISOR_ACCOUNT="people",yb.SUPER_CHAT_FOR_GOOD="hands_heart",yb.SWAP_HORIZ="arrow_swap_horizontal",yb.SWITCH_ACCOUNTS="person_account",yb.TAB_ACCOUNT=
"person",yb.TAB_ACTIVITY="bell",yb.TAB_BOOKMARK="bookmark",yb.TAB_EXPLORE="compass",yb.TAB_HOME="home",yb.TAB_HOME_CAIRO="home_cairo",yb.TAB_INBOX="mail",yb.TAB_LIKED="thumb_up",yb.TAB_MUSIC_PREMIUM="youtube_music",yb.TAB_SHORTS="youtube_shorts",yb.TAB_SHORTS_CAIRO="youtube_shorts_cairo",yb.TAB_SUBSCRIPTIONS="subscriptions",yb.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",yb.TAB_TRENDING="fire",yb.TIMER="stopwatch",yb.TRAILER="youtube_originals",yb.TRENDING="fire",yb.TRENDING_CAIRO="fire_cairo",yb.TRENDING_DOWN=
"rating_down",yb.TRENDING_UP="rating_up",yb.TROPHY="trophy",yb.TROPHY_CELEBRATIONS="fireworks",yb.TUNE="adjust",yb.UNBLOCK_USER="bar_circle",yb.UNLIMITED="youtube_logo_icon",yb.UNPLUGGED_LIVE_GUIDE="radar_live",yb.UNPLUGGED_SPORTS="eye_off",yb.UPLOADS="library",yb.UP_ARROW="arrow_up",yb.VERTICAL_ALIGN_BOTTOM="download",yb.VERY_HAPPY="face_very_happy",yb.VERY_SAD="face_very_sad",yb.VIDEOGAME_ASSET="gaming",yb.VIDEOS="play_arrow_circle",yb.VIDEO_CALL="video_camera_add",yb.VIDEO_LIBRARY_WHITE="library",
yb.VIDEO_YOUTUBE="youtube_logo_icon",yb.VIEW_LIST="list_view",yb.VIEW_LIST_CAIRO="list_view_cairo",yb.VISIBILITY="eye",yb.VISIBILITY_OFF="eye_off",yb.VOLUME_MUTE="volume_off",yb.VOLUME_UP="volume_on",yb.WALLPAPER="image",yb.WARNING="alert_triangle",yb.WATCH_HISTORY="arrow_time",yb.WATCH_HISTORY_CAIRO="arrow_time_cairo",yb.WATCH_LATER="clock",yb.WATCH_LATER_CAIRO="clock_cairo",yb.WATCH_RELATED_MIX="youtube_mix",yb.WHAT_TO_WATCH="home",yb.YOUTUBE_MUSIC_MONOCHROME="youtube_music",yb.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",yb.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",yb.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",yb.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",yb.YT_OUTLINE_MUSIC_24="music",yb);var rO={},ETK=(rO.ACCESS_TIME="clock",rO.ACCOUNT_BOX="person_square",rO.ACCOUNT_BOX_CAIRO="person_square",rO.ACCOUNT_CIRCLE="person_circle",rO.ACCOUNT_CIRCLE_CAIRO="person_circle",rO.ACCOUNT_LINKED="account_link",rO.ACCOUNT_UNLINKED="account_link",rO.ADD_CIRCLE="add_circle",rO.ADD_CIRCLE_OUTLINE="add_circle",rO.ADD_FRIEND="person_child",rO.ADD_MODERATOR="shield_add",rO.ADD_TO_LIBRARY="bookmark",rO.ADD_TO_PLAYLIST="add",rO.ADD_TO_QUEUE_TAIL="queue",rO.ADD_TO_REMOTE_QUEUE="playlist_audio",rO.ADD_TO_WATCH_LATER=
"clock",rO.ADD_VIDEO_LINK="film_strip_add",rO.ADMIN_PANEL_SETTINGS="person_gear",rO.ALERT_WARN_RED="alert_triangle",rO.ALIGN_LEFT="text_align_left",rO.ARROWS_ALERT="arrow_split_alert",rO.ARROW_BACK="arrow_left",rO.ARROW_CIRCLE="arrow_counterclockwise",rO.ARROW_CIRCLE_PLAY="replay",rO.ARROW_CIRCLE_RIGHT="arrow_clockwise",rO.ARROW_DIAGONAL="arrow_up_left",rO.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",rO.ARROW_DROP_DOWN="triangle_down",rO.ARROW_DROP_UP="triangle_up",rO.ARROW_FORWARD="arrow_right",rO.ARROW_PAUSE=
"pause_history",rO.ARROW_UNDO="undo",rO.ARTICLE="text_page",rO.ARTICLE_ALERT="text_page_alert",rO.ARTICLE_CHECK="text_page_check",rO.ARTICLE_CLARIFY="text_page_info",rO.ARTIST="person_audio",rO.AUDIOTRACK="audio",rO.AUDIO_BADGE="audio_badge",rO.AUDIO_SURROUND="surround_sound",rO.AUTO_AWESOME="sparkles",rO.AVATAR_ANONYMOUS="person_circle",rO.AVATAR_LOGGED_OUT="person_circle",rO.BACK="arrow_left",rO.BAR_CHART="chart_bar",rO.BAR_CIRCLE="minus_circle",rO.BAR_HORIZONTAL="minus",rO.BLOCK="circle_slash",
rO.BLOCK_USER="circle_slash",rO.BOOKMARK_BORDER="bookmark",rO.BOX_OPEN_CHECK="quiz",rO.BOX_PENCIL="square_pencil",rO.BOX_STACK_3="square3_stack",rO.BREAKING_NEWS_ALT_1="text_page_alert",rO.BROADCAST="podcast",rO.BROADCAST_CAIRO="podcast",rO.BUG_REPORT="bug",rO.CAMERA_ALT="camera",rO.CAMPAIGN="megaphone",rO.CANCEL="x_circle",rO.CAPTIONS="closed_captions",rO.CAST_ICON="chromecast",rO.CAST_OUTLINE="chromecast",rO.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",rO.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
rO.CHAT="text_bubble",rO.CHAT_BUBBLE="bubble",rO.CHECK_BOX="check_square",rO.CHECK_BOX_OUTLINE_BLANK="square",rO.CHECK_CIRCLE_FILLED="check_circle",rO.CHECK_CIRCLE_OUTLINE="check_circle",rO.CHECK_CIRCLE_THICK="check_circle",rO.CHECK_DOUBLE="check_done",rO.CHECK_DOUBLE_OFF="check_done_slash",rO.CHEVRON_LEFT="chevron_left",rO.CHEVRON_RIGHT="chevron_right",rO.CHEVRON_RIGHT_CAIRO="chevron_right",rO.CIRCLES_OVERLAP="account_link",rO.CLAPPERBOARD_CAIRO="clapperboard",rO.CLARIFY="text_page_info",rO.CLOCK_ARROWS=
"clock_split",rO.CLOCK_ARROWS_ALERT="clock_split_alert",rO.CLOSED_CAPTION="closed_captions",rO.CLOSED_CAPTION_SELECTED="closed_captions",rO.CLOSE="x",rO.CLOUD_UPLOAD="cloud_arrow_up",rO.COLLAPSE="chevron_up",rO.COLLAPSE_CAIRO="chevron_up",rO.COLLECTION="square3d_stack",rO.COLOR_LENS="paint_palette",rO.COMMENT="text_bubble",rO.CONSENT_SHIELD="person_shield",rO.CONTENT_CUT="scissors",rO.CONTENT_CUT_CAIRO="scissors",rO.COURSE="graduation_cap",rO.COURSE_CAIRO="graduation_cap",rO.CREATION_LIVE="live",
rO.CREATION_POST="square_pencil",rO.CREATION_UPLOAD="video",rO.CREATION_UPLOAD_RED="upload",rO.CREATOR_ACADEMY="graduation_cap",rO.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",rO.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",rO.CREATOR_STUDIO="youtube_studio",rO.DARK_THEME="theme",rO.DELETE="trash_can",rO.DELETE_SWEEP="trash_can",rO.DESKTOP="laptop",rO.DISLIKE="thumb_down",rO.DISLIKE_SELECTED="thumb_down",rO.DISMISSAL="x",rO.DISMISS_QUEUE="playlist_x",rO.DOGFOOD="pawprint",rO.DOLLAR_SIGN=
"dollar_sign_circle",rO.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",rO.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",rO.DOWN_ARROW="arrow_down",rO.DO_NOT_DISTURB="circle_slash",rO.DRAFT="document",rO.DRAG_HANDLE="equal",rO.EARTH="globe",rO.EDIT="pencil",rO.EMOJI="face_very_happy",rO.EMOJI_FLAGS="flag",rO.EMOJI_OBJECTS="lightbulb",rO.EMOJI_PEOPLE="face_very_happy",rO.EMOJI_RECENT="clock",rO.EMPTY_HEART="heart",rO.EMPTY_LIKE="thumb_up",rO.ERROR_BLACK="alert_circle",rO.ERROR_OUTLINE="alert_circle",rO.ERROR_WHITE=
"alert_circle",rO.EXIT_APP="arrow_in",rO.EXIT_TO_APP="arrow_in",rO.EXPAND="chevron_down",rO.EXPAND_ALL="chevron_expand",rO.EXPAND_CAIRO="chevron_down",rO.EXPAND_LESS="chevron_up",rO.EXPAND_MORE="chevron_down",rO.EXPLORE="compass",rO.EXPLORE_DESTINATION="compass",rO.EXTERNAL_LINK="arrow_up_right",rO.EYE_OFF="eye_slash",rO.FAB_UPLOAD="upload",rO.FACE_HAPPY_OUTLINE="face_happy",rO.FACE_MEH="face_neutral",rO.FACT_CHECK="text_page_check",rO.FASHION_LOGO="fashion",rO.FASHION_LOGO_CAIRO="fashion",rO.FAVORITE=
"thumb_up",rO.FEEDBACK="alert_bubble",rO.FEEDBACK_CAIRO="alert_bubble",rO.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",rO.FILL_ARROW_SOLID_UP_16="arrow_solid_up",rO.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",rO.FIRST_PAGE="chevron_left_end",rO.FLAG_CAIRO="flag",rO.FLASH_OFF="flash_slash",rO.FLASH_ON="flash",rO.FULL_HEART="heart",rO.GAMING_LOGO="gaming",rO.GAMING_LOGO_CAIRO="gaming",rO.GO_TO_PAGE="arrow_right",rO.GRID_ASYMMETRICAL="dashboard",rO.GROUPS="person3",rO.HAND_SWIPE_LEFT="gesture_swipe_left",
rO.HAND_SWIPE_RIGHT="gesture_swipe_right",rO.HAPPY="face_happy",rO.HEALTH_AND_SAFETY="shield_health",rO.HEART_BOX="heart_cube",rO.HELP="help_circle",rO.HELP_CAIRO="help_circle",rO.HELP_OUTLINE="help_circle",rO.HIDE="circle_slash",rO.INCOGNITO_CAIRO="incognito",rO.INFINITY_ICON="infinity",rO.INFO="info_circle",rO.INFO_OUTLINE="info_circle",rO.INSERT_CHART="chart_bar_square",rO.INSERT_CHART_OUTLINED="chart_bar_square",rO.INSERT_PHOTO="image",rO.KEEP="pin",rO.KEEP_OFF="pin_slash",rO.KEYBOARD="keyboard",
rO.KEYBOARD_ARROW_DOWN="chevron_down",rO.KEYBOARD_ARROW_UP="chevron_up",rO.KIDS_BLOCK="circle_slash",rO.LANGUAGE="globe",rO.LAST_PAGE="chevron_right_end",rO.LAUNCH="arrow_up_right",rO.LEARNING="lightbulb",rO.LEARNING_CAIRO="lightbulb",rO.LIBRARY_ADD="bookmark",rO.LIBRARY_IMAGE="image_stack",rO.LIBRARY_MUSIC="audio_square_stack",rO.LIBRARY_OUTLINE="play_square_stack",rO.LIBRARY_REMOVE="bookmark",rO.LIBRARY_SAVED="check_square_stack",rO.LIKES_PLAYLIST="thumb_up",rO.LIKES_PLAYLIST_CAIRO="thumb_up",rO.LIKE=
"thumb_up",rO.LIKE_SELECTED="thumb_up",rO.LIST_QUEUE="queue",rO.LIVE_CAIRO="live",rO.LIVE_UNLISTED="link",rO.LOCATION_ON="location_pin",rO.LOCATION_PIN="location_pin",rO.LOCATION_POINT="location_pin",rO.LOOP="repeat",rO.LOOP_ACTIVE="repeat",rO.LOOP_ONE="repeat1",rO.LOOP_ONE_ACTIVE="repeat1",rO.MEET="google_meet",rO.MEH="face_neutral",rO.MEMBERSHIPS="memberships",rO.MEMBERS_ONLY_MODE_OFF="text_bubble",rO.MENU_FILTER="filter",rO.MESSAGE="text_bubble",rO.MESSAGE_BUBBLE_GEAR="bubble_gear",rO.MESSAGE_BUBBLE_LEFT=
"text_bubble",rO.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",rO.MESSAGE_BUBBLE_OVERLAP="bubble_stack",rO.MESSAGE_BUBBLE_QUESTION="help_bubble",rO.MICROPHONE_ON="mic",rO.MONETIZATION_ON="dollar_sign_circle",rO.MONEY_FILL="dollar_sign_rectangle",rO.MONEY_FILL_JPY="yen_sign_rectangle",rO.MONEY_HAND="dollar_sign_circle_hand",rO.MONEY_HEART="dollar_sign_heart",rO.MOON_Z="sleep_timer",rO.MORE_HORIZ="overflow_horizontal",rO.MORE_VERT="overflow_vertical",rO.MUSIC="audio",rO.MUSIC_CAIRO="audio",rO.MUSIC_EXPLICIT_BADGE=
"explicit",rO.MUSIC_NEW_RELEASE="audio_badge",rO.MUSIC_NOTE_SYMBOL="audio",rO.MUSIC_SCISSORS="audio_scissors",rO.MUSIC_SHUFFLE="shuffle",rO.MY_CHANNEL="person_circle",rO.MY_LOCATION="location_pin",rO.MY_VIDEOS="video",rO.MY_VIDEOS_CAIRO="video",rO.NEWS_CAIRO="news",rO.NEWS_STORY="news",rO.NEXT="chevron_right",rO.NOTE_ADD="bubble_pencil",rO.NOTIFICATIONS="bell",rO.NOTIFICATIONS_ACTIVE="bell_waves",rO.NOTIFICATIONS_CAIRO="bell",rO.NOTIFICATIONS_DONE_CHECKMARK="check",rO.NOTIFICATIONS_INBOX="bell",rO.NOTIFICATIONS_NONE=
"bell",rO.NOTIFICATIONS_OFF="bell_slash",rO.NOT_INTERESTED="circle_slash",rO.OFFICIAL_ARTIST_BADGE="audio",rO.OFFLINE_CLOUD="cloud_slash",rO.OFFLINE_DOWNLOAD="download",rO.OFFLINE_DOWNLOAD_CAIRO="download",rO.OFFLINE_PAUSE="pause",rO.OPEN_IN_NEW="arrow_up_right",rO.OUTLINE_ADJUST="adjust",rO.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",rO.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",rO.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",rO.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",rO.OUTLINE_BAG="bag",rO.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",rO.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",rO.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",rO.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",rO.PAID="dollar_sign_circle",rO.PAUSE_OUTLINED="pause",rO.PAYMENT="credit_card",rO.PEOPLE="person_child",rO.PEOPLE_2="person2_rectangle",rO.PEOPLE_GROUP="person3",rO.PEOPLE_NOTE="bubble_asterisk",rO.PERSON_2="person2",rO.PERSON_ACCOUNT="person_square_stack",rO.PERSON_MINUS="person_x",rO.PERSON_MUSIC="person_audio",rO.PERSON_RADAR="person_waves",
rO.PERSON_RADAR_FILLED="person_waves",rO.PERSON_SETTING="person_gear",rO.PHONE="phone",rO.PHONE_DOWNLOAD="mobile_arrow_down",rO.PICTURE_IN_PICTURE="picture_in_picture",rO.PLAYABLES_LOGO="playables",rO.PLAYABLES_LOGO_CAIRO="playables",rO.PLAYLISTS="playlist",rO.PLAYLISTS_CAIRO="playlist",rO.PLAYLIST_ADD_CHECK="bookmark",rO.PLAY_ALL="play",rO.PLAY_ARROW="play",rO.PLAY_ARROW_CIRCLE="play_circle",rO.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",rO.PLAY_CIRCLE="play_circle",rO.PLAY_OUTLINED="play_circle",
rO.PODCAST_ADD="podcast_add",rO.PODCAST_CHECK="podcast_check",rO.PRIVACY_INFO="shield_x",rO.PRIVACY_PRIVATE="lock",rO.PRIVACY_PUBLIC="globe",rO.PRIVACY_UNLISTED="link",rO.PROMOTE="megaphone",rO.PURCHASES="price_tag",rO.PURCHASE_SUPER_CHAT="super_chat",rO.PURCHASE_SUPER_STICKER="super_sticker",rO.QUESTION_ANSWER="help_bubble",rO.QUESTION_CIRCLE="help_circle",rO.QUEUE_PLAY_LAST="queue_last",rO.QUEUE_PLAY_NEXT="queue_next",rO.QUOTATION_MARK="quote",rO.RADAR_LIVE="live",rO.REMOVE="minus_circle",rO.REMOVE_CIRCLE=
"minus_circle",rO.REMOVE_CIRCLE_OUTLINE="minus_circle",rO.REMOVE_FROM_HISTORY="minus_circle",rO.REMOVE_FROM_PLAYLIST="minus_circle",rO.REMOVE_MODERATOR="shield_slash",rO.REPLAY="arrow_counterclockwise",rO.REPLAY_10="skip10_back",rO.REPLAY_ARROW="replay",rO.REPORT_PROBLEM="alert_triangle",rO.RSS_OFF="rss_slash",rO.SAD="face_sad",rO.SAVE_PLAYLIST="bookmark",rO.SCHEDULE="clock",rO.SCHOOL="graduation_cap",rO.SCREEN_DEFAULT="player_default",rO.SCREEN_FULLSCREEN="player_full_enter",rO.SCREEN_LIGHT="ambient_mode",
rO.SCREEN_ROTATION="rotate_portrait",rO.SCREEN_SWITCH="player_switch",rO.SCREEN_THEATRE="player_theater",rO.SEARCH_CAIRO="search",rO.SEARCH_HISTORY="history",rO.SELL="price_tag",rO.SETTINGS="gear",rO.SETTINGS_CAIRO="gear",rO.SETTINGS_LIGHT="gear",rO.SETTINGS_MATERIAL="gear",rO.SETTINGS_REMOTE="remote_waves",rO.SHARE="share",rO.SHARE_ARROW="share",rO.SHARE_CAIRO="share",rO.SHIELD="shield_x",rO.SHIELD_EMPTY="shield",rO.SHIELD_OFF="shield_slash",rO.SHIELD_WITH_AVATAR="person_shield",rO.SHOPPING_BAG=
"bag",rO.SHOPPING_BAG_CAIRO="bag",rO.SHOPPING_CART="cart",rO.SHORTS_COMMENT="text_bubble",rO.SHORTS_DISLIKE="thumb_down",rO.SHORTS_LIKE="thumb_up",rO.SHORTS_SHARE="share",rO.SKIP_FORWARD_30="skip30_forward",rO.SLASH_CIRCLE_LEFT="circle_slash",rO.SLASH_CIRCLE_RIGHT="circle_slash",rO.SLOW_MODE="bubble_slow",rO.SLOW_MODE_OFF="text_bubble",rO.SOCIAL="person_child",rO.SPARKLE="sparkles",rO.SPARK_IMAGE="image_spark",rO.SPARK_PENCIL="pencil_spark",rO.SPARK_RADAR="spark_waves",rO.SPARK_VIDEO="video_spark",
rO.SPEAKER_GROUP="speaker_stack",rO.SPEAKER_OFF="speaker_slash",rO.SPEED_1X="n1x",rO.SPEED_1_POINT_2X="n1point2x",rO.SPEED_1_POINT_5X="n1point5x",rO.SPEED_1_POINT_8X="n1point8x",rO.SPEED_2X="n2x",rO.SPONSORSHIP_STAR="star_circle",rO.SPORTS="basketball",rO.SPOTLIGHT="spotlight",rO.STAFF_PICK="spotlight",rO.START_DVR="add",rO.STAR_BORDER="star",rO.STAR_CIRCLE_RIBBON="memberships_gift",rO.STAR_HALF="star_full_half",rO.STAR_SHOOTING="hype",rO.STICKER="sticker",rO.STICKER_EMOTICON="face_happy",rO.STOP_DVR=
"stop",rO.SUBSCRIBE="youtube",rO.SUBSCRIBE_PLUS="add",rO.SUBSCRIPTION_MANAGER="gear",rO.SUPERSTAR="super_star",rO.SUPERVISOR_ACCOUNT="person_child",rO.SUPER_CHAT_FOR_GOOD="hands_heart",rO.SWAP_HORIZ="arrow_swap_horizontal",rO.SWITCH_ACCOUNTS="person_square_stack",rO.TAB_ACCOUNT="person",rO.TAB_ACTIVITY="bell",rO.TAB_BOOKMARK="bookmark",rO.TAB_EXPLORE="compass",rO.TAB_HOME="home",rO.TAB_HOME_CAIRO="home",rO.TAB_INBOX="mail",rO.TAB_LIKED="thumb_up",rO.TAB_MUSIC_PREMIUM="youtube_music",rO.TAB_SHORTS=
"shorts",rO.TAB_SHORTS_CAIRO="shorts",rO.TAB_SUBSCRIPTIONS="subscriptions",rO.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",rO.TAB_TRENDING="trending",rO.TARGET="target",rO.TARGET_ADD="target_add",rO.TEMPLATE_ADD="template_add",rO.TEXT="font",rO.TICKET_STAR="star_ticket",rO.TIMER="stopwatch",rO.TRENDING_CAIRO="trending",rO.TRENDING_DOWN="arrow_trend_down",rO.TRENDING_UP="arrow_trend_up",rO.TROPHY_CAIRO="trophy",rO.TROPHY_CELEBRATIONS="fireworks",rO.TROPHY_STAR="star_trophy",rO.TUNE="adjust",rO.TV_OFF="tv_slash",
rO.UNBLOCK_USER="minus_circle",rO.UNFAVORITE="thumb_down",rO.UNLIMITED="youtube",rO.UNPLUGGED_LIVE_GUIDE="live",rO.UNPLUGGED_SPORTS="eye_slash",rO.UPLOADS="play_square_stack",rO.UP_ARROW="arrow_up",rO.VERTICAL_ALIGN_BOTTOM="chevron_down_end",rO.VERTICAL_ALIGN_TOP="chevron_up_end",rO.VERY_HAPPY="face_very_happy",rO.VERY_SAD="face_very_sad",rO.VIDEOS="play_circle",rO.VIDEO_CALL="video_camera_add",rO.VIDEO_LIBRARY_WHITE="play_square_stack",rO.VIDEO_QUALITY_4K="n4k",rO.VIDEO_QUALITY_8K="n8k",rO.VIDEO_YOUTUBE=
"youtube",rO.VIEW_LIST_CAIRO="view_list",rO.VIEW_MODULE="view_column3_row2",rO.VISIBILITY="eye",rO.VISIBILITY_OFF="eye_slash",rO.VOLUME_DOWN="volume_min",rO.VOLUME_MUTE="volume_mute",rO.VOLUME_OFF="volume_mute",rO.VOLUME_STABLE="stable_volume",rO.VOLUME_UP="volume_max",rO.WALLPAPER="image",rO.WARNING="alert_triangle",rO.WATCH_HISTORY="history",rO.WATCH_HISTORY_CAIRO="history",rO.WATCH_LATER="clock",rO.WATCH_LATER_CAIRO="clock",rO.WATCH_RELATED_MIX="mix",rO.WHAT_TO_WATCH="home",rO.YOUTUBE_LINKED_TV=
"tv_mobile",rO.YOUTUBE_MUSIC_MONOCHROME="youtube_music",rO.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",rO.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",rO.YOUTUBE_SHORTS_ARROW_UP="arrow_up",rO.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",rO.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",rO.YOUTUBE_SHORTS_OUTLINE_24="shorts",rO);var pp9={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,2,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,4,24,!0],
[1,4,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,4,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 SZ1={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,2,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,1,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,1,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:[[1,1,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,2,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,4,24,!0],[1,4,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,2,24],[1,2,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,4,24],[0,4,36],[1,4,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_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 XpW={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"},F9=function(G){this.iconUrlProvider=G};
F9.prototype.resolveIcon=function(G,b){var I=XpW[G.iconName.toUpperCase()];I&&(G.iconName=I);var h=G.iconName;h=h.replace(/-/g,"_");G=Object.assign({},G,{iconName:this.mapIconTypeToStandardName(h,!!I)||h.toLowerCase()});if(_.U("enable_web_delhi_icons")||I){var q;return cRq(SZ1,G,((q=this.iconUrlProvider)==null?void 0:q.getYtStandardUrl)||Qia,b)}var l;return cRq(pp9,G,((l=this.iconUrlProvider)==null?void 0:l.getYtStandardUrl)||Lw2,b)};
F9.prototype.mapIconTypeToStandardName=function(G,b){return _.U("enable_web_delhi_icons")||b?ETK[G.toUpperCase()]:wpY[G.toUpperCase()]};
F9[QE]=[_.vf(RMa)];var $bL=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),GlD=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),byL=function(G){this.urlProvider=this.iconUrlProvider=G};
_.M(byL,F9);
byL.prototype.resolveIcon=function(G,b){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"&&(_.U("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");_.U("enable_connect_icon_update_web")&&G.iconName==="account_linked"&&(I.iconName="circles_overlap_check",I.iconStyle="youtube_fill");_.U("enable_connect_icon_update_web")&&G.iconName==="account_unlinked"&&(I.iconName="circles_overlap",I.iconStyle="youtube_outline");$bL.has(G.iconName)&&(I.iconStyle="youtube_fill");_.U("enable_web_delhi_icons")&&(G.iconName==="playlist_add"&&
(I.iconName="bookmark"),G.iconName==="offline_pin"&&(I.iconName="arrow_down_circle",I.iconStyle="youtube_fill"),GlD.has(G.iconName)&&(I.iconName+="_updated"));G=Object.assign({},I,{iconName:(F9.prototype.mapIconTypeToStandardName.call(this,I.iconName)||I.iconName).toLowerCase()});var h;return(G=cRq(Kfe,G,((h=this.urlProvider)==null?void 0:h.getUrl)||xXO,b))?G:F9.prototype.resolveIcon.call(this,I,b)};
byL[QE]=[_.vf(RMa)];_.Iza=1;var Hu=function(G,b){this.JSC$17499_commandHandler=G;this.innertubeTransportService=b};
_.M(Hu,hA);Hu.prototype.resolveCommand=function(G,b){var I=this,h,q,l;return _.c(function(V){return(h=_.g(G,AuO))?V.return(hLL(I,h,(q=b)==null?void 0:(l=q.form)==null?void 0:l.element)):V.return()})};
var hLL=function(G,b,I){b={profileCardContext:b.profileCardContext,profileOwnerExternalChannelId:b.profileOwnerExternalChannelId};var h=_.JQ(i$O);return _.qS(G.innertubeTransportService,b,h).then(function(q){if(!q)throw new _.Wf("GetProfileCard failed");if(q=q.popupCommand){G.JSC$17499_commandHandler.resolveCommand(q,{form:{element:I}});_.oa(_.qo(),66557);q=q==null?void 0:q.clickTrackingParams;var l=_.s3();q&&l&&_.qo().graftServerVe(q,l)}})};
Hu[QE]=[_.xW,_.kn];var Wu=function(){};
_.M(Wu,hA);Wu.prototype.resolveCommand=function(G){var b,I;return _.c(function(h){b=_.g(G,yu5);if(!b)return h.return();I=Number(b.enableDelayedPacfLoggingTvMs);if(isNaN(I)){var q=FF();CZJ(q,b,0)}else CZJ(FF(),b,I);_.ip(h)})};_.aQ=function(){};
_.M(_.aQ,hA);
_.aQ.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L;return _.c(function(x){h=_.g(G,ru8);l=(q=b.form)==null?void 0:q.element;D=(V=l)==null?void 0:V.closest("ytd-enforcement-message-view-model");if(!h||!D)return x.return();I.allowAdsAction||(k=h.fundingChoiceInstructionPageUrl,I.allowAdsAction=new o2i(window,_.Rb(k)));var f=I.allowAdsAction;f.wallElement=D;f.allowAdsPopup.style.setProperty("display","flex","important");var T=f.scrollManager;T.isScrollingEnabled&&(T.originalBodyOverflow=T.JSC$10073_domHelper.JSC$9399_document_.body.style.overflow,
T.JSC$10073_domHelper.JSC$9399_document_.body.style.overflow="hidden",T.isScrollingEnabled=!1);f.wallElement.style.setProperty("display","none","important");YAe(f.accessibilityManager,f.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((L=I.allowAdsAction.allowAdsPopup)&&L instanceof HTMLElement)for(f=_.e(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),T=f.next();!T.done;T=f.next()){var B=_.e(T.value);T=B.next().value;B=B.next().value;
L.style.setProperty(T,B)}_.ip(x)})};
_.aQ.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var N$=function(){};
_.M(N$,hA);N$.prototype.resolveCommand=function(G){var b;return _.c(function(I){b=_.g(G,WUX);if(!b)return I.return();ZsX(G);_.ip(I)})};_.YB=new _.q3("AI_CHAT_CONTROLLER_TOKEN");var Cl=function(G,b,I,h){this.JSC$17514_commandHandler=G;this.store=b;this.getPlayerCb=I;this.aiChatController=h};
_.M(Cl,hA);Cl.prototype.pageContext=function(){var G=_.PH.currentPageSubTypeSelector(this.store.getState()),b;return(b=this.aiChatController)==null?void 0:_.qg1(b,G)};
Cl.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V;return _.c(function(D){I=_.g(G,Rl5);q=(h=I)==null?void 0:h.command;if(!q)return D.return();switch((V=I)==null?void 0:V.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var k="youchat-"+Date.now(),L;var x=String(Math.floor(((L=b.getPlayerCb())==null?void 0:L.getCurrentTime())||0)*1E3);l={inputComposerFormData:{clientMessageId:k,playerOffsetMs:x,pageContext:b.pageContext()}}}if(!l)return D.return();b.JSC$17514_commandHandler.resolveCommand(q,
{form:{formData:l}});_.ip(D)})};
Cl[QE]=[_.xW,_.nR,Wdd,_.vf(_.YB)];var jkW=new _.q3("SESSION_STORAGE");var Jh=function(G){this.sessionStorage=G("conversations")};
_.M(Jh,hA);Jh.prototype.resolveCommand=function(G){var b=this,I;return _.c(function(h){I=_.g(G,nle);if(!I)return h.return();I.conversationId?b.sessionStorage.set("conversation_id",I.conversationId):b.sessionStorage.remove("conversation_id");_.ip(h)})};
Jh[QE]=[jkW];var Kl=function(G){this.JSC$17526_commandHandler=G};
_.M(Kl,hA);
Kl.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k,L;return _.c(function(x){if(x.nextAddress==1){I=_.g(G,kVJ);if((h=I)==null||!h.text||!navigator.clipboard)return x.return();_.gm(x,2);return x.yield(navigator.clipboard.writeText(I.text),4)}if(x.nextAddress!=2){if(!I.successActions||I.successActions.length===0)return x.return();q=_.e(I.successActions);for(l=q.next();!l.done;l=q.next())V=l.value,b.JSC$17526_commandHandler.resolveCommand(V);return _.hF(x,0)}_.zf(x);if(!I.failureActions||I.failureActions.length===
0)return x.return();D=_.e(I.failureActions);for(k=D.next();!k.done;k=D.next())L=k.value,b.JSC$17526_commandHandler.resolveCommand(L);_.ip(x)})};
Kl[QE]=[_.xW];var u2=function(G){this.JSC$17530_commandHandler=G};
_.M(u2,hA);
u2.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L,x,f,T;return _.c(function(B){switch(B.nextAddress){case 1:h=_.g(G,uln);if(!h)return B.return();_.gm(B,2);if(!h.imageBytes&&!h.imageUrl)throw Error("Ai");if(!h.imageUrl){if(h.imageBytes){l=h.imageBytes;V=l.replace(/-/g,"+").replace(/_/g,"/");var A=Blr(V);q=_.ul(A)}B.jumpTo(4);break}return B.yield(fetch(h.imageUrl),5);case 5:return D=B.yieldResult,B.yield(D.blob(),6);case 6:k=B.yieldResult,q=_.ul(k);case 4:f=(L=b)==null?void 0:(x=L.form)==
null?void 0:x.element;T=document.createElement("a");Ov(T,q);f.appendChild(T);T.download="";T.click();f.removeChild(T);URL.revokeObjectURL(_.aI(q));h.successCommand&&I.JSC$17530_commandHandler.resolveCommand(h.successCommand);_.hF(B,0);break;case 2:_.zf(B),h.errorCommand&&I.JSC$17530_commandHandler.resolveCommand(h.errorCommand),_.ip(B)}})};
u2[QE]=[_.xW];var RQ=function(G){this.store=G};
_.M(RQ,hA);RQ.prototype.resolveCommand=function(G){var b=this,I,h,q;return _.c(function(l){h=(I=_.g(G,_.Rqb))==null?void 0:I.entityBatchUpdate;if(!h)return l.jumpTo(0);q=Object.assign({},h,{mutations:[].concat(_.Nz(h.mutations||[]))});return l.yield(_.jn(q,b.store),0)})};var lza=function(G){this.JSC$17537_commandHandler=G;this.feedbackDialogMap=new Map};
lza.prototype.openDialog=function(G,b){(G=this.feedbackDialogMap.get(G))&&this.JSC$17537_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:G}},b)};
lza[QE]=[_.xW];var nl=new _.q3("FEEDBACK_CONTROLLER_TOKEN");var O9=new _.q3("APP_STORE_TOKEN");var wO=function(G,b){this.store=G;this.controller=b};
_.M(wO,hA);wO.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K;return _.c(function(u){if(u.nextAddress==1){h=_.g(G,_.sE);if(l=(q=h)==null?void 0:q.contentId)for(D=_.e(((V=h)==null?void 0:V.actions)||[]),k=D.next();!k.done;k=D.next())L=k.value,mbe(I,L,l);T=(x=b)==null?void 0:(f=x.form)==null?void 0:f.element;return u.yield(_.pv(T,[G,{impression:(B=b)==null?void 0:B.disableClickTracking}]).catch(function(){}),2)}A=u.yieldResult;
((t=A)==null?0:(y=t.data)==null?0:(F=y.feedbackResponses)==null?0:F.length)&&(O=(W=A.data.feedbackResponses[0])==null?void 0:W.followUpDialog)&&l&&(K=I.controller)!=null&&K.feedbackDialogMap.set(l,O);_.ip(u)})};
var mbe=function(G,b,I){var h=_.g(b,_.$P);if(h){h=_.e(h.commands||[]);for(var q=h.next();!q.done;q=h.next())mbe(G,q.value,I)}_.g(b,_.y$)&&G.store.dispatch(_.Da("commandEntity",$4r(I),{key:I,command:b}));_.g(b,POQ)&&G.store.dispatch(_.Da("commandEntity",$4r(I),{key:I,command:b}))};
wO[QE]=[O9,nl];var E9=function(G){this.controller=G};
_.M(E9,hA);E9.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V;return _.c(function(D){h=_.g(G,_.$G);l=(q=h)==null?void 0:q.targetId;if(((V=h)==null?void 0:V.signal)!=="TELL_US_WHY"||!l)return D.return();I.controller.openDialog(l,b);_.ip(D)})};
E9[QE]=[nl];var pl=function(G){this.store=G};
_.M(pl,hA);pl.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L;return _.c(function(x){h=_.g(G,BM2);l=(q=h)==null?void 0:q.contentId;k=(V=b)==null?void 0:(D=V.form)==null?void 0:D.element;L=_.pv(k,[G]);l&&I.undo(l);return x.yield(L,0)})};
pl.prototype.undo=function(G){this.store.dispatch(_.Da("commandEntity",$4r(G),{key:G,command:void 0}))};
pl[QE]=[O9];var Sq=function(G){this.JSC$17552_commandHandler=G};
_.M(Sq,hA);Sq.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k,L;return _.c(function(x){I=_.g(G,VIi);h=I.flowStateKey;q=I.validationFailureCommand;l=I.submitValidFormCommand;V=htd(_.aG,[h||""]);D=_.g(V,kQu);((k=D)==null?0:k.isValid)&&l&&b.JSC$17552_commandHandler.resolveCommand(l);((L=D)==null?0:L.isValid)||!q||b.JSC$17552_commandHandler.resolveCommand(q);_.ip(x)})};
Sq[QE]=[_.xW];var X9=function(G){this.innertubeTransportService=G};
_.M(X9,hA);X9.prototype.resolveCommand=function(G,b){var I=this,h;return _.c(function(q){return q.yield(_.dR(I.innertubeTransportService,G,(h=b)==null?void 0:h.form).then(function(l){var V,D;b==null||(V=b.commandController)==null||(D=V.onSuccess)==null||D.call(V,G,l)},function(l){var V,D;
b==null||(V=b.commandController)==null||(D=V.onServerError)==null||D.call(V,G,l)}),0)})};
X9[QE]=[_.kn];var $e=function(){};
_.M($e,hA);$e.prototype.resolveCommand=function(G){var b,I,h,q;return _.c(function(l){if(b=_.g(G,_.lbO)){if(I=b.gtmId)h=_.wy("GL",""),_.WQ(I,h);(q=b.gtmData)&&_.aC(q)}_.ip(l)})};var G$=function(G,b,I){this.innertubeTransportService=G;this.JSC$17563_actionRouter=b;this.JSC$17563_screenManager=I};
_.M(G$,hA);G$.prototype.resolveCommand=function(G){var b=this,I,h;return _.c(function(q){I=_.g(G,qcB);if(!I)return q.return();h=I.command;if(!h)return q.return();b.JSC$17563_actionRouter.triggerAction("yt-insert-rich-section-action",I);return q.yield(_.dR(b.innertubeTransportService,h,{disableCache:!0}).then(function(l){G.clickTrackingParams&&(l==null?0:l.trackingParams)&&b.JSC$17563_screenManager.graftServerVe(l.trackingParams,_.VB(G.clickTrackingParams))}),0)})};
G$[QE]=[_.kn,fm,_.aS];siX.bind(null,qV);var eLW=siX.bind(null,hnB);ARB.bind(null,qV);var VSW=ARB.bind(null,hnB);ZI2.bind(null,qV);var DbK=ZI2.bind(null,hnB);var bL=function(){};
_.M(bL,hA);
bL.prototype.resolveCommand=function(G){var b,I,h,q,l,V,D,k,L,x;return _.c(function(f){b=_.g(G,Jw8);if(!b)return f.return();h=((I=b.operations)==null?void 0:I.operations)||[];q=_.e(h);for(l=q.next();!l.done;l=q.next())if(V=l.value,V.insertItemSectionContent){var T=V.insertItemSectionContent,B=T.contents||[];T.insertByPositionInSection?eLW(T.insertByPositionInSection.sectionTargetId,B,T.insertByPositionInSection.position):T.insertByRelativePositionInSection&&T.insertByRelativePositionInSection.sectionTargetId&&T.insertByRelativePositionInSection.itemTargetId&&
VSW(T.insertByRelativePositionInSection.sectionTargetId,T.insertByRelativePositionInSection.itemTargetId,B,T.insertByRelativePositionInSection.relativePosition)}else V.replaceSection?(T=V.replaceSection,B={},T.replaceByTargetId?B=T.replaceByTargetId:T.replaceByGroupId&&(B={targetId:T.replaceByGroupId.groupId,newContent:T.replaceByGroupId.newContent,undoKey:""}),B.newContent&&lS5(B.targetId,{continuationItems:[B.newContent]})):V.removeItem?(T=V.removeItem,T.removeByTargetId&&T.sectionTargetId&&DbK(T.sectionTargetId,
T.removeByTargetId.targetIds||[])):V.removeSection&&(V.removeSection.removeByTargetId?(D=void 0,c48(((D=V.removeSection)==null?void 0:D.removeByTargetId.targetIds)||[])):V.removeSection.removeByGroupId&&(k=void 0,c48(((k=V.removeSection)==null?void 0:k.removeByGroupId.groupIds)||[])));x=((L=b.operations)==null?void 0:L.scrollConfig)||{};kla(x);_.ip(f)})};
var c48=function(G){G=_.e(G);for(var b=G.next();!b.done;b=G.next())lS5(b.value,{continuationItems:[]})},kla=function(G){if(G.scrollToItem){var b=G.scrollToItem.item||{},I=b.itemTargetId;
b=b.sectionTargetId;if(I&&b){var h=document.querySelector("[data-target-id="+b+"]"),q=h==null?void 0:h.querySelector("[data-target-id="+I+"]");h&&q&&setTimeout(function(){var l=q.offsetTop-h.offsetTop,V;if(((V=G.scrollToItem)==null?void 0:V.scrollPosition)==="SCROLL_POSITION_CENTER")l-=h.offsetHeight/2,l+=q.offsetHeight/2;else{var D;((D=G.scrollToItem)==null?void 0:D.scrollPosition)==="SCROLL_POSITION_END"&&(l-=h.offsetHeight,l+=q.offsetHeight)}h.scroll({top:l,behavior:"smooth"})},100)}}};var IP=new _.q3("CLIENT_NAME_TOKEN");var vpK=new _.q3("DEFAULT_STORE_EXPIRATION_TOKEN");var ypq=new _.q3("CLIENT_LOCATION_SERVICE_TOKEN");var hH=function(G,b,I){this.clientName=G||_.wy("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=b||_.dq.getInstance();this.JSC$17591_commandHandler=I||_.Xv.instance};
_.M(hH,hA);hH.prototype.resolveCommand=function(G){var b=this,I,h;return _.c(function(q){h=(I=_.g(G,M6B))==null?void 0:I.onComplete;b.clientLocationService.clearLocationPlayabilityToken(b.clientName);h&&b.JSC$17591_commandHandler.resolveCommand(h);_.ip(q)})};
hH[QE]=[IP,ypq,_.xW];var qW=function(G){this.innertubeTransportService=G};
_.M(qW,hA);qW.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V;return _.c(function(D){l=(h=b)==null?void 0:(q=h.form)==null?void 0:q.element;return D.yield(_.dR(I.innertubeTransportService,G,(V=b)==null?void 0:V.form).then(function(k){B3s(l,new CustomEvent("yt-service-request-completed"),{data:k},_.wy("openPopupConfig"))}),0)})};
qW[QE]=[_.kn];var jx=function(){};
_.M(jx,hA);jx.prototype.resolveCommand=function(G){var b,I;return _.c(function(h){b=_.g(G,xZi);I=document.querySelector("mini-app-container-view-model");if(!b||!I)return h.return();b.isPlaying?I.dispatchEvent(new Event("play")):I.dispatchEvent(new Event("pause"));_.ip(h)})};var mC=function(){};
_.M(mC,hA);mC.prototype.resolveCommand=function(G){var b,I,h,q,l,V,D;return _.c(function(k){b=_.g(G,GCb);if((I=b)==null||!I.paramKeys)return k.return();h=b.paramKeys;q=_.Gt(window.location.href);l=_.e(h);for(V=l.next();!V.done;V=l.next())D=V.value,q.JSC$10105_queryData_.remove(D);window.history.replaceState(window.history.state,document.title,q.toString());_.ip(k)})};var Lnf=function(){this.dropdownMap=new Map};_.Qka=new _.q3("DROPDOWN_CONTROLLER_TOKEN");var ex=function(G){this.controller=G};
_.M(ex,hA);ex.prototype.resolveCommand=function(G){var b=this,I,h,q,l;return _.c(function(V){I=_.g(G,iqQ);if(!I)return V.return();h=I;q=h.dropdownId;l=h.selectedOptionIndex;if(q===void 0||l===void 0)return V.return();var D=b.controller.dropdownMap.get(q);D&&D(l);_.ip(V)})};
ex[QE]=[_.Qka];var VY=function(G){this.controller=G};
_.M(VY,hA);VY.prototype.resolveCommand=function(G){var b=this,I;return _.c(function(h){return(I=_.g(G,NSW))?h.yield(b.controller.closeDialog(),0):h.return()})};
VY[QE]=[_.u7];var Dl=function(G){this.controller=G};
_.M(Dl,hA);Dl.prototype.resolveCommand=function(G){var b=this,I,h;return _.c(function(q){I=_.g(G,sCJ);if(!I)return q.return();var l,V=I.panelIdentifier||((l=I.identifier)==null?void 0:l.tag);if(!V)throw Error("Bi");return(h=V)?q.yield(b.controller.hidePanel({identifier:h}),0):q.jumpTo(0)})};
Dl[QE]=[_.Jo];var ci=function(G){this.controller=G};
_.M(ci,hA);ci.prototype.resolveCommand=function(G){var b=this,I;return _.c(function(h){return(I=_.g(G,eE8))?h.yield(b.controller.closeSheet(),0):h.return()})};
ci[QE]=[_.K9];var ke=function(G,b){this.innertubeTransportService=G;this.controller=b};
_.M(ke,hA);ke.prototype.resolveCommand=function(G){var b=this,I,h,q,l;return _.c(function(V){if(V.nextAddress==1)return I=_.g(G,gqX),(h=I)!=null&&h.panelId?V.yield(b.controller.getReloadContinuation(I.panelId),2):V.return();if(V.nextAddress!=3)return(q=V.yieldResult)?V.yield(_.dR(b.innertubeTransportService,G,{continuation:q}),3):V.return();l=V.yieldResult;return V.yield(b.controller.updatePanel({identifier:I.panelId,panelContents:l.content,shouldFocus:!1}),0)})};
ke[QE]=[_.kn,_.Jo];var vi=function(G,b,I){this.innertubeTransportService=G;this.JSC$17633_screenManager=b;this.JSC$17633_commandHandler=I};
_.M(vi,hA);
vi.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D;return _.c(function(k){if(k.nextAddress==1){I=_.g(G,_.QSn);if(!I)return k.return();if(I.commands)for(h=_.e(I.commands),q=h.next();!q.done;q=h.next())l=q.value,b.JSC$17633_commandHandler.resolveCommand(l,{disableClickTracking:!0});V=_.VB(G.clickTrackingParams);_.oa(b.JSC$17633_screenManager,21760,V,{layer:7,parentLayer:0});return k.yield(_.dR(b.innertubeTransportService,G),2)}D=k.yieldResult;if(!D)return k.return();b.JSC$17633_screenManager.graftServerVe(D.trackingParams,V,
7);_.ip(k)})};
vi[QE]=[_.kn,_.aS,_.xW];var Ls=new _.q3("PANEL_LOADING_STRATEGY_TOKEN");var QY=function(G,b){this.controller=G;this.panelLoadingStrategy=b};
_.M(QY,hA);
QY.prototype.resolveCommand=function(G,b){var I=this,h,q,l;return _.c(function(V){h=_.g(G,DJu);if((q=h)==null||!q.panelLoadingStrategy)return V.return();l=function(D){var k,L,x,f,T,B,A,t,y,F;return _.c(function(W){L=_.g((k=D.dialogViewModel)==null?void 0:k.header,PoJ);x={viewModel:D.dialogViewModel};f={};if(A=_.U("web_enable_dialog_header_label")?(T=L)==null?void 0:(B=T.headline)==null?void 0:B.content:void 0)f.ariaLabel=A;h.dismissOnBackgroundTap===!1&&(f.isModal=!0);return D.dialogViewModel?W.yield(I.controller.openDialog(x,
(F=(t=b)==null?void 0:(y=t.form)==null?void 0:y.element)!=null?F:document.body,f),0):W.return()})};
return V.yield(I.panelLoadingStrategy.execute({command:G,data:h.panelLoadingStrategy,renderFn:l,createScreenConfig:{layer:4}}),0)})};
QY[QE]=[_.u7,Ls];var xe=function(G,b,I){this.innertubeTransportService=G;this.controller=b;this.JSC$17653_screenManager=I};
_.M(xe,hA);
xe.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F;return _.c(function(W){switch(W.nextAddress){case 1:h=_.g(G,_.UE);if(!h)return W.return();var O,K=h.panelIdentifier||((O=h.identifier)==null?void 0:O.tag);if(!K)throw Error("Bi");q=K;return W.yield(I.controller.isVisible(q,!0),2);case 2:if((l=W.yieldResult)&&h.blockIfPanelOpen)return W.return();k=(D=(V=I.controller).getPanelContent)==null?void 0:D.call(V,q);if(!(O=k))if(h){var u;O=((u=h.globalConfiguration)==null?void 0:
u.initialState)||h.engagementPanel;if(u=!O)u=!!(h==null?0:(K=h.engagementPanelPresentationConfigs)==null?0:K.engagementPanelPopupPresentationConfig);u&&(O=_.twB(h.panelIdentifier,h.identifier))}else O=void 0;L=O;x=h.engagementPanelPresentationConfigs;f=h.engagementPanelExtras;return W.yield(I.controller.showPanel({identifier:q,panelContents:L,config:x,extras:f,target:(T=b)==null?void 0:(B=T.form)==null?void 0:B.element}),3);case 3:if(!h.globalConfiguration){W.jumpTo(0);break}if(h.globalConfiguration.reuseModelAndState&&
_.U("enable_ai_companion")&&(y=(t=(A=I.controller).getPanelContent)==null?void 0:t.call(A,q)))return W.return();_.oa(I.JSC$17653_screenManager,32633);return W.yield(_.dR(I.innertubeTransportService,G),5);case 5:return F=W.yieldResult,I.JSC$17653_screenManager.graftServerVe(F.trackingParams),W.yield(I.controller.updatePanel({identifier:q,panelContents:F.content,shouldFocus:!0,extras:f,updatePanelContinuationData:F.updatePanelContinuationData}),0)}})};
xe[QE]=[_.kn,_.Jo,_.aS];var T$=function(G,b){this.controller=G;this.panelLoadingStrategy=b};
_.M(T$,hA);
T$.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L,x,f,T;return _.c(function(B){h=_.g(G,_.cH);if((q=h)==null||!q.panelLoadingStrategy)return B.return();D=xbK(I.controller,(l=b)==null?void 0:(V=l.form)==null?void 0:V.element);L=(k=h.contextualSheetPresentationConfig)==null?void 0:k.position;f=(x=h.contextualSheetPresentationConfig)==null?void 0:x.hoverConfig;T=function(A){return _.c(function(t){if(!A.sheetViewModel)return t.return();if(f){var y=I.controller;y.shouldPreventClosingWhileHovered=!!f.preventCloseWhileHovered;
var F;y.hideDelayMs=(F=f.hideDelayMs)!=null?F:0}return t.yield(I.controller.openSheet({viewModel:A.sheetViewModel,sheetPosition:L},D),0)})};
return B.yield(I.panelLoadingStrategy.execute({command:G,data:h.panelLoadingStrategy,renderFn:T,createScreenConfig:{layer:0}}),0)})};
T$[QE]=[_.K9,Ls];var Bi=function(G,b){this.controller=G;this.JSC$17664_commandHandler=b};
_.M(Bi,hA);Bi.prototype.resolveCommand=function(G,b){var I=this,h,q,l;return _.c(function(V){if(V.nextAddress==1){h=_.g(G,tmW);var D=_.g(h.showCommand,_.UE),k,L,x=(L=D==null?void 0:D.panelIdentifier)!=null?L:D==null?void 0:(k=D.identifier)==null?void 0:k.tag;if(!x)throw Error("Ci");q=x;return V.yield(I.controller.isVisible(q),2)}return(l=V.yieldResult)?V.yield(I.controller.hidePanel({identifier:q}),0):V.yield(I.JSC$17664_commandHandler.resolveCommand(h.showCommand,b),0)})};
Bi[QE]=[_.Jo,_.xW];var Ur=function(G,b,I){this.innertubeTransportService=G;this.controller=b;this.JSC$17667_screenManager=I};
_.M(Ur,hA);
Ur.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u,w,$a;return _.c(function(ev){switch(ev.nextAddress){case 1:return h=I=_.g(G,PD8),q=h.targetPanelIdentifier,l=h.contentSourcePanelIdentifier,V=h.globalConfiguration,((D=q)==null?0:D.tag)&&((k=l)==null?0:k.tag)?V?ev.yield(b.controller.showPanel({identifier:q.tag,panelContents:_.twB(q.tag,q)}),5):ev.yield((T=(f=b.controller).getPanel)==null?void 0:T.call(f,l.tag),4):ev.return();case 4:B=ev.yieldResult;L=(A=B)==
null?void 0:(y=(t=A).getPanelContent)==null?void 0:y.call(t);ev.jumpTo(3);break;case 5:return ev.yield(_.dR(b.innertubeTransportService,G),6);case 6:F=ev.yieldResult,((W=F)==null?0:W.trackingParams)&&b.JSC$17667_screenManager.graftServerVe(F.trackingParams),L=(O=F)==null?void 0:O.content,x=(K=F)==null?void 0:K.updatePanelContinuationData;case 3:if(w=(u=L)==null?void 0:u.engagementPanelSectionListRenderer)return ev.yield(b.controller.showPanel({identifier:q.tag,panelUpdatableFields:{content:w.content,
secondaryHeaderContent:($a=w.header)!=null?$a:{},targetId:w.targetId,loggingDirectives:w.loggingDirectives},updatePanelContinuationData:x}),0);ev.jumpTo(0)}})};
Ur[QE]=[_.kn,_.Jo,_.aS];var sr=function(){};
_.M(sr,hA);sr.prototype.resolveCommand=function(G){var b,I,h;return _.c(function(q){if(q.nextAddress==1)return(b=_.g(G,FSb))?q.yield(_.$U(),2):q.return();I=q.yieldResult;if(!I)return q.return();var l=I,V=(h=b)==null?void 0:h.languageCode,D;(l==null?0:(D=l.isReady)==null?0:D.call(l))&&(V=z1O(l,V))&&l.setAudioTrack(V);_.ip(q)})};var gW=function(){};
_.M(gW,pP);_.m=gW.prototype;_.m.getApiPaths=function(){return APb};
_.m.getExtension=function(G){return _.g(G,_.Wq)};
_.m.isNavigationCommand=function(){return!0};
_.m.JSC$14244_getStoreKey=function(G){if((G=this.getExtension(G))&&G.videoId){var b={videoId:G.videoId};G.playlistId&&(b.playlistId=G.playlistId);G.index&&(b.index=G.index);G.params&&(b.params=G.params);return _.Hq("next",b)}};
_.m.JSC$14237_getClientScreen=function(G){var b;return((b=G.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.m.JSC$14237_buildRequest=function(G,b,I){b.videoId&&(G.videoId=b.videoId);b.playlistId&&(G.playlistId=b.playlistId);b.params&&(G.params=b.params);b.index!==void 0&&(G.playlistIndex=b.index);G.racyCheckOk=!(!I.racyCheckOk&&!b.racyCheckOk);G.contentCheckOk=!!b.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);_.U("captions_hats_killswitch")||(b=_.m$().getFlag(65),b=b!=null?!b:!1,I=!!_.Q4("yt-player-sticky-caption"),G.captionsRequested=b&&I)};
_.m.getRequestConfig=function(G){G=this.JSC$14244_getStoreKey(G);var b;G&&(b={storeStrategy:{storeKey:G}});_.U("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="wn_s",b.responseTick="wn_r");return b};
var AH=function(){};
_.M(AH,pP);AH.prototype.getApiPaths=function(){return APb};
AH.prototype.getExtension=function(G){return _.g(G,_.Aa)};
AH.prototype.JSC$14237_buildRequest=function(G,b){b.token&&(G.continuation=b.token)};var MW=function(){this.innerTubeTransport=_.LL().resolve(_.kn);this.miniplayerService=_.LL().resolve(_.zO)};
_.M(MW,hA);var fz5=function(G){var b;return _.c(function(I){b=_.wy("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;G.JSC$17692_mainAppPlayer=new mi(b);document.addEventListener("yt-page-data-updated",G.JSC$17692_pauseOnNavigation.bind(G));_.ip(I)})},TVW=function(G,b){var I,h,q,l;
return _.c(function(V){if(V.nextAddress==1){I=new gW;h=I.JSC$14237_getRequest(b);if(!h)return V.return(void 0);q=h.innerTubeRequest;return V.yield(_.qS(G.innerTubeTransport,q,"/youtubei/v1/next"),2)}l=V.yieldResult;var D;var k,L,x=(D=l.contents)==null?void 0:(k=D.twoColumnWatchNextResults)==null?void 0:(L=k.playlist)==null?void 0:L.playlist,f;D=(x==null?0:(f=x.contents)==null?0:f.length)?x:void 0;return V.return(D)})},BV8=function(G,b){var I,h,q,l,V;
return _.c(function(D){if(D.nextAddress==1)return I=G.JSC$17692_mainAppPlayer,D.yield(I.api,2);if(D.nextAddress!=3)return h=D.yieldResult,b.watchCommand?D.yield(TVW(G,b.watchCommand),3):D.return();q=D.yieldResult;if((l=q)==null||!l.contents)return D.return();V=q.contents.map(function(k){var L;return(L=k.playlistPanelVideoRenderer)==null?void 0:L.videoId}).filter(function(k){return!!k}).map(function(k){return{encrypted_id:k}});
h.updatePlaylist({video:V});_.ip(D)})},Ub9=function(G,b){var I,h,q;
return _.c(function(l){return l.nextAddress==1?(I=G.JSC$17692_mainAppPlayer,q=(h=b.playerParams)!=null?h:"",b.externalVideoId?l.yield(I.loadVideoWithPlayerVars({videoId:b.externalVideoId,audio_only:"1",player_params:q}),2):l.jumpTo(2)):b.watchCommand?l.yield(BV8(G,b),0):l.jumpTo(0)})};
MW.prototype.JSC$17692_pauseOnNavigation=function(){var G=this,b,I;return _.c(function(h){if(h.nextAddress==1)return b=G.JSC$17692_mainAppPlayer,h.yield(b.api,2);I=h.yieldResult;I.pauseVideo();_.ip(h)})};
MW.prototype.pauseVideo=function(){var G=this,b,I;return _.c(function(h){if(h.nextAddress==1)return b=G.JSC$17692_mainAppPlayer,h.yield(b.api,2);I=h.yieldResult;I.pauseVideo();_.ip(h)})};
MW.prototype.playVideo=function(){var G=this,b,I;return _.c(function(h){if(h.nextAddress==1)return b=G.JSC$17692_mainAppPlayer,h.yield(b.api,2);I=h.yieldResult;I.playVideo();_.ip(h)})};
var sk1=function(G){var b,I;return _.c(function(h){if(h.nextAddress==1)return b=G.JSC$17692_mainAppPlayer,h.yield(b.api,2);I=h.yieldResult;I.mute();_.ip(h)})},gp1=function(G){var b,I;
return _.c(function(h){if(h.nextAddress==1)return b=G.JSC$17692_mainAppPlayer,h.yield(b.api,2);I=h.yieldResult;I.unMute();_.ip(h)})};
MW.prototype.stopVideo=function(){var G=this,b,I;return _.c(function(h){if(h.nextAddress==1)return b=G.JSC$17692_mainAppPlayer,h.yield(b.api,2);I=h.yieldResult;I.stopVideo();_.ip(h)})};
var A4F=function(G,b){return _.c(function(I){switch(I.nextAddress){case 1:switch(b){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(sk1(G),11);case 11:I.jumpTo(0);break;case 6:return I.yield(gp1(G),12);case 12:I.jumpTo(0)}})};
MW.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D;return _.c(function(k){return k.nextAddress==1?(I=_.g(G,liX),((h=I)==null?0:h.newPlaybackParams)||((q=I)==null?0:q.controlAction)?b.JSC$17692_mainAppPlayer?k.jumpTo(2):k.yield(fz5(b),2):k.return()):((l=I)==null?0:l.newPlaybackParams)?(b.miniplayerService.isMiniplayerActive()&&((V=b.miniplayerService.getPlayerElement())==null||V.pause()),D=I.newPlaybackParams,D.externalVideoId||D.externalPlaylistId?k.yield(Ub9(b,D),0):k.return()):k.yield(A4F(b,
I.controlAction),0)})};var Zl=function(G){this.JSC$17698_commandHandler=G};
_.M(Zl,hA);
Zl.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D;return _.c(function(k){if(k.nextAddress==1)return(I=_.g(G,HmO))?k.yield(_.$U(),2):k.return();h=k.yieldResult;if(!h)return k.return();var L=h,x=(q=I)==null?void 0:q.languageCode,f=(l=I)==null?void 0:l.isAutoTranslated;L.getVideoData&&_.iIO(L).length&&((x=dXB(L,x,f))?L.setOption("captions","track",x):(L.setOption("captions","stickyLoading",{}),L.setOption("captions","track",{})));V=h.isSubtitlesOn()?_.qP("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.qP("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");D=_.um(V,5E3);b.JSC$17698_commandHandler.resolveCommand(D);_.ip(k)})};
Zl[QE]=[_.xW];var tH=function(G,b){this.shortsPlayerPromise=G;this.JSC$17702_commandHandler=b};
_.M(tH,hA);
tH.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k,L;return _.c(function(x){if(x.nextAddress==1)return(I=_.g(G,hde))?x.yield(b.shortsPlayerPromise,2):x.return();h=x.yieldResult;var f=yRr(h);f!=null&&f.length||(h.loadModule("captions"),f=yRr(h));q=f;if((l=q)==null||!l.length)return V=_.qP("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),D=_.um(V),b.JSC$17702_commandHandler.resolveCommand(D),x.return();h.toggleSubtitles();k=h.isSubtitlesOn()?_.qP("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.qP("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");L=_.um(k);b.JSC$17702_commandHandler.resolveCommand(L);_.ip(x)})};
tH[QE]=[_.XIX,_.xW];var z$=function(G){this.JSC$17705_actionRouter=G;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(b,I){b.triggerAction("yt-dismiss-shopping-timely-shelf-action",I)}]])};
_.M(z$,hA);z$.prototype.resolveCommand=function(G){var b=this,I,h,q;return _.c(function(l){I=_.g(G,YLi);if((h=I)==null||!h.overlayId)return l.return();q=b.dismissPlayerOverlayActions.get(I.overlayId);if(!q)throw Error("Di`"+I.overlayId);q(b.JSC$17705_actionRouter,I);_.ip(l)})};
z$[QE]=[fm];var oP=function(G){this.JSC$17709_playerPromise=G};
_.M(oP,hA);oP.prototype.resolveCommand=function(G){var b=this,I,h,q,l;return _.c(function(V){if(V.nextAddress==1)return(I=_.g(G,Mmn))?V.yield(b.JSC$17709_playerPromise,2):V.return();h=V.yieldResult;q=h.getVideoData().video_id;I.videoId===q&&(l=Number(I.offsetFromVideoStartMilliseconds),l>=0&&h.seekTo(l/1E3));_.ip(V)})};
oP[QE]=[_.wR];var MSe=_.$S("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),iL=function(G){this.store=G};
_.M(iL,hA);
var Zy9=function(G){var b,I,h,q;return _.c(function(l){if(l.nextAddress==1)return b=_.wy("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,I=_.wy("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,h=b||I,G.JSC$17713_mainAppPlayer=new mi(h),l.yield(G.JSC$17713_mainAppPlayer.api,2);q=l.yieldResult;q.addEventListener("onStateChange",G.JSC$17713_playerStateChangeListener.bind(G));document.addEventListener("yt-page-data-updated",G.JSC$17713_pauseOnNavigation.bind(G));window.addEventListener("state-navigatestart",
G.JSC$17713_pauseOnNavigation.bind(G));_.ip(l)})};
iL.prototype.JSC$17713_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"}tS3(this)};
var tS3=function(G){G.store.dispatch(_.Da("sfvAudioItemCurrentlyPlayingEntity",MSe,{key:MSe,externalVideoId:G.externalVideoId,sfvAudioItemPlaybackState:G.playbackState,nowPlayingEntityValue:G.nowPlayingEntityValue}))};
iL.prototype.JSC$17713_pauseOnNavigation=function(){var G=this,b,I,h,q;return _.c(function(l){if(l.nextAddress==1){if(!G.JSC$17713_mainAppPlayer){var V=new _.Wf("Error: mainAppPlayer is unavailable",G.JSC$17713_mainAppPlayer);_.K1(V);return l.return()}return l.yield(G.JSC$17713_mainAppPlayer.api,2)}b=l.yieldResult;h=(I=b)==null?void 0:I.getPlayerState();h!==1||(q=b)!=null&&q.pauseVideo();_.ip(l)})};
iL.prototype.playVideo=function(G,b,I){var h=this,q,l;return _.c(function(V){if(V.nextAddress==1)return V.yield((q=h.JSC$17713_mainAppPlayer)==null?void 0:q.api,2);l=V.yieldResult;if(!h.JSC$17713_mainAppPlayer||!l){var D=new _.Wf("Error: mainAppPlayer is unavailable",h.JSC$17713_mainAppPlayer);_.K1(D);return V.return()}return V.yield(h.JSC$17713_mainAppPlayer.loadVideoWithPlayerVars({videoId:h.externalVideoId,audio_only:"1",start:G/1E3,end:G/1E3+b,player_params:I}),0)})};
iL.prototype.pauseVideo=function(){var G=this,b,I;return _.c(function(h){if(h.nextAddress==1){if(!G.JSC$17713_mainAppPlayer){var q=new _.Wf("Error: mainAppPlayer is unavailable",G.JSC$17713_mainAppPlayer);_.K1(q);return h.return()}return h.yield(G.JSC$17713_mainAppPlayer.api,2)}b=h.yieldResult;(I=b)==null||I.pauseVideo();_.ip(h)})};
iL.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K;return _.c(function(u){if(u.nextAddress==1)return I=_.g(G,$TA),q=(h=I)==null?void 0:h.nowPlayingEntityValue,V=(l=I)==null?void 0:l.externalVideoId,f=Number((x=(D=I)==null?void 0:(k=D.defaultStartPoints)==null?void 0:(L=k[0])==null?void 0:L.offsetMs)!=null?x:"0"),F=Number((y=(T=I)==null?void 0:(B=T.defaultStartPoints)==null?void 0:(A=B[0])==null?void 0:(t=A.duration)==null?void 0:t.seconds)!=null?y:"15"),K=(O=
(W=I)==null?void 0:W.playerParams)!=null?O:"",q&&V?b.JSC$17713_mainAppPlayer?u.jumpTo(2):u.yield(Zy9(b),2):u.return();if(u.nextAddress!=6){if(b.nowPlayingEntityValue&&q===b.nowPlayingEntityValue)return b.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?u.yield(b.pauseVideo(),0):u.yield(b.playVideo(f,F,K),0);b.externalVideoId=V;b.nowPlayingEntityValue=q;b.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return u.yield(b.playVideo(f,F,K),6)}tS3(b);return u.jumpTo(0)})};
iL[QE]=[E4];var Pi=function(G){this.JSC$17731_commandHandler=G};
_.M(Pi,hA);Pi.prototype.resolveCommand=function(G,b){var I=this,h,q,l;return _.c(function(V){if(V.nextAddress==1)return(h=_.g(G,WSn))?V.yield(_.$U(),2):V.return();q=V.yieldResult;if(!q)return V.return();(l=rRd(q))&&I.JSC$17731_commandHandler.resolveCommand(l,b);_.ip(V)})};
Pi[QE]=[_.xW];var dW=function(G){this.JSC$17737_commandHandler=G};
_.M(dW,hA);dW.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D;return _.c(function(k){if(k.nextAddress==1)return(h=_.g(G,aRO))?k.yield(_.$U(),2):k.return();q=k.yieldResult;if(!q)return k.return();(l=NlO(q))?I.JSC$17737_commandHandler.resolveCommand(l,b):(V=_.qP("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),D=_.um(V),I.JSC$17737_commandHandler.resolveCommand(D));_.ip(k)})};
dW[QE]=[_.xW];var yY=function(G){this.JSC$17740_playerPromise=G};
_.M(yY,hA);yY.prototype.resolveCommand=function(G){var b=this,I,h;return _.c(function(q){if(q.nextAddress==1)return(I=_.g(G,udX))?q.yield(b.JSC$17740_playerPromise,2):q.return();h=q.yieldResult;h.isFullscreen()&&h.wakeUpControls();_.ip(q)})};
yY[QE]=[_.wR];var rW=function(G){this.JSC$17743_playerPromise=G};
_.M(rW,hA);rW.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V;return _.c(function(D){if(D.nextAddress==1){I=_.g(G,ZRn);if(!I)return D.return();h=I.overlayRenderer;return h?(q=_.g(h,E9A))?D.yield(b.JSC$17743_playerPromise,3):D.jumpTo(0):D.return()}l=D.yieldResult;l.renderChapterSeekingAnimation(1,_.NO(q.text),(V=q.icon)==null?void 0:V.iconType);_.ip(D)})};
rW[QE]=[_.wR];var FS=function(G){this.store=G};
_.M(FS,hA);
FS.prototype.resolveCommand=function(G){var b=this,I,h,q;return _.c(function(l){if(l.nextAddress==1){I=_.g(G,msX);if(!I)return l.return();h="";(q=b.store.getState().collabInviteLink)&&I.id===q.playlistId?h=q.inviteLinkURL:I.shortUrl&&(h=I.shortUrl);return h?l.yield(navigator.clipboard.writeText(h),3):l.jumpTo(0)}var V={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.qP("COPY_LINK_SUCCESS_TOAST")}}}}};_.LL().resolve(_.xW).resolveCommand(V);_.ip(l)})};
FS[QE]=[O9];var Hi=function(G,b){this.innertubeTransportService=G;this.JSC$17753_commandHandler=b};
_.M(Hi,hA);Hi.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L,x,f,T;return _.c(function(B){if(B.nextAddress==1)return(h=_.g(G,_.qj))?B.yield(_.dR(I.innertubeTransportService,G,(q=b)==null?void 0:q.form),2):B.return();(l=B.yieldResult)&&l.errorMetadata&&(V=l,D=_.um(V.error.message),I.JSC$17753_commandHandler.resolveCommand(D));k=l;if((L=k)==null?0:L.actions)for(x=_.e(k.actions),f=x.next();!f.done;f=x.next())T=f.value,I.JSC$17753_commandHandler.resolveCommand(T);_.ip(B)})};
Hi[QE]=[_.kn,_.xW];var Wi=function(){};
_.M(Wi,hA);Wi.prototype.resolveCommand=function(G){var b;return _.c(function(I){b=_.g(G,ScQ);if(!b)return I.return();(new M1A(b)).show();_.ip(I)})};_.aP=new _.q3("PLAYLIST_EDIT_CONTROLLER_TOKEN");var NW=function(G,b,I,h){this.store=G;this.innertubeTransportService=b;this.controller=I;this.JSC$17761_commandHandler=h};
_.M(NW,hA);
NW.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u,w,$a,ev,LO,td,xa,Uj;return _.c(function(W2){if(W2.nextAddress==1){h=_.g(G,_.SI);if(!h)return W2.return();if(h.clientActions){q=_.e(h.clientActions);for(l=q.next();!l.done;l=q.next())V=l.value,I.JSC$17761_commandHandler.resolveCommand(V,b);var is,su=b==null?void 0:(is=b.form)==null?void 0:is.element;su&&_.O3(su,"yt-dismissible-item-action",h.clientActions)}return W2.yield(_.dR(I.innertubeTransportService,G,(D=
b)==null?void 0:D.form),2)}if(k=W2.yieldResult)k.errorMetadata?(L=k,x=_.um(L.error.message),I.JSC$17761_commandHandler.resolveCommand(x),"error"in k&&((f=b)==null?0:(T=f.commandController)==null?0:T.onServerError)&&((B=b)==null||(A=B.commandController)==null||A.onServerError(G,k))):(t=b)==null||(y=t.commandController)==null||(W=(F=y).onSuccess)==null||W.call(F,G,k);O=k;((K=O)==null?0:K.collaborationInviteLink)&&h.playlistId&&(_.U("web_enable_invite_collaborators_link")||_.U("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
I.store.dispatch(_.wK({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:h.playlistId,inviteLinkUrl:O.collaborationInviteLink}}));((u=O)==null?0:u.redirectEndpoint)&&I.JSC$17761_commandHandler.resolveCommand(O.redirectEndpoint);((w=O)==null?0:($a=w.newHeader)==null?0:$a.playlistHeaderRenderer)?zLL(I.controller,O.newHeader.playlistHeaderRenderer):((ev=O)==null?0:(LO=ev.newHeader)==null?0:LO.musicEditablePlaylistDetailHeaderRenderer)&&zLL(I.controller,O.newHeader.musicEditablePlaylistDetailHeaderRenderer);
I.controller.playlistVideoListElement&&((td=O)==null?0:(xa=td.playlistEditResults)==null?0:(Uj=xa[0])==null?0:Uj.playlistEditVideoAddedResultData)&&((su=I.controller.playlistVideoListElement)==null||su.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:O.playlistEditResults[0].playlistEditVideoAddedResultData})));_.ip(W2)})};
NW[QE]=[_.nR,_.kn,_.aP,_.xW];var Ye=function(G,b){this.controller=G;this.JSC$17771_commandHandler=b};
_.M(Ye,hA);Ye.prototype.resolveCommand=function(G,b){var I=this,h,q,l;return _.c(function(V){h=_.g(G,eqe);I.controller.showRefreshPill&&((q=h)==null?0:q.command)&&(I.JSC$17771_commandHandler.resolveCommand((l=h)==null?void 0:l.command,b),I.controller.showRefreshPill=!1);_.ip(V)})};
Ye[QE]=[_.t1,_.xW];var Cs=function(G,b){this.store=G;this.JSC$17775_commandHandler=b||_.Xv.instance};
_.M(Cs,hA);Cs.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L,x,f,T;return _.c(function(B){h=_.g(G,ArA);q=I.store.getState().radioButtonGroup;if((l=h)==null?0:l.command)I.JSC$17775_commandHandler.resolveCommand((V=h)==null?void 0:V.command,b);else if(q&&((D=h)==null?void 0:D.formId)===q.currentFormId)for(k=Object.values(q.commandsMap),L=_.e(k),x=L.next();!x.done;x=L.next())f=x.value,(T=_.s0(f))&&I.JSC$17775_commandHandler.resolveCommand(T,b);_.ip(B)})};
Cs[QE]=[_.nR];var JH=new _.q3("USER_PREFS");var Ks=function(G){this.JSC$17780_prefCookie=G};
_.M(Ks,hA);Ks.prototype.resolveCommand=function(G){var b=this,I;return _.c(function(h){(I=_.g(G,K8u))&&typeof I.useListView==="boolean"&&(_.eX(0,155,I.useListView),b.JSC$17780_prefCookie.save());_.ip(h)})};
Ks[QE]=[JH];var uL=function(G){this.JSC$17784_prefCookie=G};
_.M(uL,hA);uL.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V;return _.c(function(D){I=_.g(G,$sn);if((h=I)==null||!h.gl)return D.return();q=I.gl;l={persist_gl:"1",gl:q};b.JSC$17784_prefCookie.set("gl",q);b.JSC$17784_prefCookie.save();V=x2u(l);_.tL(V);_.ip(D)})};
uL[QE]=[JH];var RP=function(G){this.JSC$17788_prefCookie=G};
_.M(RP,hA);RP.prototype.resolveCommand=function(G){var b=this,I,h;return _.c(function(q){I=_.g(G,Dsi);if(!I)return q.return();h=!1;I.flagNum&&typeof I.value==="boolean"?(_.eX(0,I.flagNum,I.value),h=!0):I.key&&typeof I.stringValue==="string"&&(b.JSC$17788_prefCookie.set(I.key,I.stringValue),h=!0);h&&b.JSC$17788_prefCookie.save();_.ip(q)})};
RP[QE]=[JH];var ns=new _.q3("PREF_STORAGE_PROMISE_TOKEN");var Or=function(G){this.JSC$17792_prefStoragePromise=G};
_.M(Or,hA);Or.prototype.resolveCommand=function(G){var b=this,I,h;return _.c(function(q){if(q.nextAddress==1)return(I=_.g(G,kTA))?q.yield(b.JSC$17792_prefStoragePromise,2):q.return();h=q.yieldResult;return h===void 0||I.key===void 0||I.value===void 0?q.return():q.yield(h.set(I.key,I.value),0)})};
Or[QE]=[ns];var wW=function(G){this.innertubeTransportService=G};
_.M(wW,hA);wW.prototype.resolveCommand=function(G,b){var I=this,h,q;return _.c(function(l){(h=_.g(G,_.s4Q))&&h&&h.isFirstRequest&&(_.US("search_overview_answer"),_.sS("so_rq",void 0,"search_overview_answer"));return l.yield(_.dR(I.innertubeTransportService,G,(q=b)==null?void 0:q.form),0)})};
wW[QE]=[_.kn];var op8=function(){};
_.M(op8,hA);
op8.prototype.resolveCommand=function(G){var b,I,h,q,l,V,D,k,L;return _.c(function(x){b=_.g(G,Ani);if((I=b)==null?0:I.sectionIdentifier){if(b.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(q=(h=document.getElementsByTagName(b.sectionIdentifier))==null?void 0:h.item(0))q.scrollIntoView({behavior:"smooth"}),(l=moO(q))&&l.focus({preventScroll:!0});return x.return()}V=document.querySelector("[section-identifier="+b.sectionIdentifier+"]");D=document.querySelector("[section-identifier="+b.referenceSectionIdentifier+
"]");if(!V)return x.return();k=b.verticalScrollOffsetDp?b.verticalScrollOffsetDp:0;D&&(k-=D.offsetTop);window.scrollTo({top:V.offsetTop+k,behavior:"smooth"});(L=moO(V))&&L.focus({preventScroll:!0})}_.ip(x)})};var Er=function(G){this.JSC$17804_commandHandler=G};
_.M(Er,hA);
Er.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k;return _.c(function(L){if(L.nextAddress==1){I=_.g(G,RP5);if(!I||!I.imageBytes||!navigator.clipboard)return L.return();if(I.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.K1(Error("Fi")),L.return();_.gm(L,2);q=(h=I)==null?void 0:h.imageBytes;l=q.replace(/-/g,"+").replace(/_/g,"/");V=Blr(l);D={};k=[new ClipboardItem((D[V.type]=V,D))];return L.yield(navigator.clipboard.write(k),4)}if(L.nextAddress!=2)return I.successCommand&&
b.JSC$17804_commandHandler.resolveCommand(I.successCommand),_.hF(L,0);_.zf(L);I.errorCommand&&b.JSC$17804_commandHandler.resolveCommand(I.errorCommand);_.ip(L)})};
Er[QE]=[_.xW];var ps=function(G,b){this.innertubeTransportService=G;this.JSC$17808_commandHandler=b};
_.M(ps,hA);ps.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D;return _.c(function(k){if(k.nextAddress==1)return(h=_.g(G,nkz))?k.yield(_.dR(I.innertubeTransportService,G,(q=b)==null?void 0:q.form),2):k.return();(l=k.yieldResult)&&l.errorMetadata&&h.onFailureCommand&&I.JSC$17808_commandHandler.resolveCommand(h.onFailureCommand);V=l;((D=V)==null?0:D.shareCommand)&&I.JSC$17808_commandHandler.resolveCommand(V.shareCommand,b);_.ip(k)})};
ps[QE]=[_.kn,_.xW];var Sx=function(){};
_.M(Sx,hA);Sx.prototype.resolveCommand=function(G){var b,I;return _.c(function(h){b=_.g(G,juO);if(!b||!navigator.share)return h.return();I={url:b.url};try{return h.return(navigator.share(I))}catch(q){}_.ip(h)})};var XS=function(){};
_.M(XS,hA);XS.prototype.resolveCommand=function(){return _.c(function(G){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.ip(G)})};var $A=function(G){this.JSC$17818_navigationConfirmationService=G};
_.M($A,hA);$A.prototype.resolveCommand=function(){var G=this;return _.c(function(b){G.JSC$17818_navigationConfirmationService.cancelPendingNavigation();_.ip(b)})};
$A[QE]=[rF];var GD=function(G){this.JSC$17821_screenManager=G};
_.M(GD,hA);GD.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L;return _.c(function(x){q=(h=b.form)==null?void 0:h.event;V=(l=b.form)==null?void 0:l.element;if(!q)throw new _.Wf("Event not passed in when resolving command");D=_.e(q.composedPath());for(k=D.next();!k.done;k=D.next())if(L=k.value,L.tagName==="YT-COPY-LINK-RENDERER")return L.copyUrlToClipboard(),V&&_.or(I.JSC$17821_screenManager,V),x.return();_.ip(x)})};
GD[QE]=[_.aS];var bc=function(){this.JSC$17825_miniAppClientDataProvider=_.LL().resolve(_.DT)};
_.M(bc,hA);bc.prototype.resolveCommand=function(){var G=this,b,I;return _.c(function(h){if(G.JSC$17825_miniAppClientDataProvider.clientData.has("video_id")){var q=G.JSC$17825_miniAppClientDataProvider,l=q.clientData.get("video_id");l&&q.clientData.delete("video_id");b="https://youtube.com/watch?v="+l;I=_.YI(b);if(I===void 0)throw Error("Gi`"+b);_.bp(window,I)}_.ip(h)})};var I0=function(){};
_.M(I0,hA);I0.prototype.resolveCommand=function(){return _.c(function(G){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.ip(G)})};var ht=function(){};
_.M(ht,hA);ht.prototype.resolveCommand=function(){var G;return _.c(function(b){if(b.nextAddress==1)return b.yield(_.SKO(window.document.documentElement),2);(G=document.querySelector("mini-app-container-view-model iframe"))&&G.focus();_.ip(b)})};var qU=function(G){this.JSC$17832_navigationConfirmationService=G};
_.M(qU,hA);
qU.prototype.resolveCommand=function(){var G=this;return _.c(function(b){var I=G.JSC$17832_navigationConfirmationService,h=_.LL().resolve(_.id),q;if(((q=I.navigateParams)==null?void 0:q.data)!==void 0){var l;_.FJu(h,I.navigateParams.endpoint,I.navigateParams.data,(l=I.navigateParams.navigationType)!=null?l:1,I.navigateParams.tempData,I.navigateParams.isMiniplayer,void 0,!0);I.navigateParams=void 0;I.customConfirmationCommand=void 0}else I.navigateParams&&(h.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);_.ip(b)})};
qU[QE]=[rF];var ji=function(){};
_.M(ji,hA);ji.prototype.resolveCommand=function(){return _.c(function(G){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.ip(G)})};var lc=function(G){this.JSC$17837_prefStorage=G};
_.M(lc,hA);lc.prototype.resolveCommand=function(){var G=this,b,I;return _.c(function(h){switch(h.nextAddress){case 1:return h.yield(G.JSC$17837_prefStorage,2);case 2:return(b=h.yieldResult)?h.yield(b.set("sfvle",!1),3):h.return();case 3:return h.yield(b.set("sfvles",!0),4);case 4:I=_.m$(),_.eX(0,203,!1),_.eX(0,204,!0),I.save(),_.ip(h)}})};
lc[QE]=[ns];var mo=function(G){this.JSC$17840_prefStorage=G};
_.M(mo,hA);mo.prototype.resolveCommand=function(){var G=this,b,I;return _.c(function(h){switch(h.nextAddress){case 1:return h.yield(G.JSC$17840_prefStorage,2);case 2:return(b=h.yieldResult)?h.yield(b.set("sfvle",!0),3):h.return();case 3:return h.yield(b.set("sfvles",!0),4);case 4:I=_.m$(),_.eX(0,203,!0),_.eX(0,204,!0),I.save(),_.ip(h)}})};
mo[QE]=[ns];_.iyf=new _.q3("SNACKBAR_CONTROLLER_TOKEN");_.Pee=new _.q3("SHOULD_SHOW_PIVOT_BAR_TOKEN");var ei=function(G){this.controller=G};
_.M(ei,hA);ei.prototype.resolveCommand=function(G){var b=this,I;return _.c(function(h){I=_.g(G,V$i);if(!I)return h.return();var q=b.controller;q.closeSnackbarFn&&q.closeSnackbarFn();_.ip(h)})};
ei[QE]=[_.iyf];var VT=function(G,b){this.controller=G;this.JSC$17847_sheetController=b};
_.M(VT,hA);VT.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k;return _.c(function(L){h=_.g(G,cXn);if(!h)return L.return();V=xbK(I.JSC$17847_sheetController,(q=b)==null?void 0:(l=q.form)==null?void 0:l.element);D=_.g(h.content,ZqO);if(!D)return L.return();var x=I.controller,f=D,T=(k=h.animationStyle)!=null?k:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(x.showSnackbarFn)x.showSnackbarFn({snackbarViewModel:f,animationStyle:T,durationMs:h.durationSeconds*1E3,target:V});else throw Error("zj");_.ip(L)})};
VT[QE]=[_.iyf,_.K9];var DV=function(){};
_.M(DV,hA);DV.prototype.resolveCommand=function(G){var b;return _.c(function(I){b=_.g(G,crJ);if(!b||typeof b.key!=="string"||typeof b.value!=="string")return I.return();window.localStorage.setItem(b.key,b.value);_.ip(I)})};var cU=function(G){this.store=G};
_.M(cU,hA);cU.prototype.resolveCommand=function(G){var b=this,I;return _.c(function(h){I=_.g(G,TMO);if(!I||!I.stepId||!I.token)return h.return();b.store.dispatch(bSO({stepId:I.stepId,token:I.token,isSelected:!1}));_.ip(h)})};
cU[QE]=[O9];var kA=function(G,b,I){this.innertubeTransportService=G;this.store=b;this.JSC$17859_screenManager=I};
_.M(kA,hA);
kA.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u,w,$a,ev,LO;return _.c(function(td){I=_.g(G,jzX);if(!I||(h=I.stepIds)==null||!h.length)return td.return();q=b.store.getState().talkToRecs;l=[];V=[];D=_.e(I.stepIds);for(k=D.next();!k.done;k=D.next())for(L=k.value,x=void 0,(f=(x=q.stepStates[L])==null?void 0:x.userQuery)&&V.push({userQuery:f.userQuery,userQueryToken:f.token}),B=T=void 0,A=(B=(T=q.stepStates[L])==null?void 0:T.selectionStates)!=null?B:{},t=_.e(Object.entries(A)),
y=t.next();!y.done;y=t.next())F=y.value,W=_.e(F),O=W.next().value,K=W.next().value,u=O,w=K,w.isSelected&&l.push(u);$a={selectedChipTokens:l,userQueries:V,submittedStepIds:I.stepIds};ev={browseTalk2recsFormData:$a};I.browseEndpoint?(LO=G,_.xQ(LO,_.jL,I.browseEndpoint)):I.command&&(LO=I.command);return LO?td.yield(_.dR(b.innertubeTransportService,LO,{formData:ev,disableCache:!0}).then(function(xa){(xa==null?0:xa.trackingParams)&&b.JSC$17859_screenManager.graftServerVe(xa==null?void 0:xa.trackingParams)}),
0):td.return()})};
kA[QE]=[_.kn,O9,_.aS];var vU=function(G){this.store=G};
_.M(vU,hA);
vU.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k,L;return _.c(function(x){I=_.g(G,fwu);if(!I||!I.stepId||!I.token)return x.return();I.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY"?(V=(l=(h=b.store.getState().talkToRecs.stepStates[I.stepId])==null?void 0:(q=h.userQuery)==null?void 0:q.userQuery)!=null?l:"",D=V.length>0?". ":"",k=V+D+I.selectedText,b.store.dispatch(IMb({stepId:I.stepId,userQueryToken:I.token,userQuery:k}))):I.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY"?b.store.dispatch(IMb({stepId:I.stepId,
userQueryToken:I.token,userQuery:(L=I.selectedText)!=null?L:""})):b.store.dispatch(bSO({stepId:I.stepId,token:I.token,isSelected:!0}));_.ip(x)})};
vU[QE]=[O9];var LC=function(G){this.store=G};
_.M(LC,hA);LC.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D;return _.c(function(k){h=_.g(G,wGr);if(!h||!h.stepId||!h.userQueryToken)return k.return();D=(V=(q=b)==null?void 0:(l=q.form)==null?void 0:l.userQuery)!=null?V:"";I.store.dispatch(IMb({stepId:h.stepId,userQueryToken:h.userQueryToken,userQuery:D}));_.ip(k)})};
LC[QE]=[O9];_.db9=new _.q3("TIMELY_ACTIONS_CONTROLLER_TOKEN");var QT=function(G){this.controller=G};
_.M(QT,hA);QT.prototype.resolveCommand=function(G){var b=this,I,h,q,l;return _.c(function(V){I=_.g(G,USJ);if(!I)return V.return();h=I;q=h.id;l=h.isVisible;if(q===void 0||l===void 0)return V.return();var D;(D=b.controller.timelyActionsMap.get(q))==null||D(q,l);_.ip(V)})};
QT[QE]=[_.db9];var y43=function(){this.timelyActionsMap=new Map};var xA=function(G){this.JSC$17885_commandHandler=G};
_.M(xA,hA);xA.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V;return _.c(function(D){I=_.g(G,_.i6J);if(!I)return D.return();l=(h=I.item)==null?void 0:(q=h.notificationTextRenderer)==null?void 0:q.successResponseText;if(!l)return D.return();V=_.Kw(l);b.JSC$17885_commandHandler.resolveCommand(V);_.ip(D)})};
xA[QE]=[_.xW];var fC=function(G,b){this.innertubeTransportService=G;this.JSC$17890_playerApiPromise=b};
_.M(fC,hA);
fC.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k,L,x;return _.c(function(f){if(f.nextAddress==1)return f.yield(b.JSC$17890_playerApiPromise,2);I=f.yieldResult;h=I.getOption("captions","track");q=Object.assign({},_.g(G,_.Fln));(V=(l=I.getVideoData())==null?void 0:l.video_id)?q.externalVideoId=V:_.bB(Error("Hi"));if((D=h)==null?0:D.languageCode)q.languageCode=h.languageCode;if((k=h)==null?0:k.kind)q.kind=h.kind;if((L=h)==null?0:L.name)q.name=h.name;x=Object.assign({},G,{getTranscriptEndpoint:q});return f.yield(_.dR(b.innertubeTransportService,
x),0)})};
fC[QE]=[_.kn,_.wR];var TD=function(){};
_.M(TD,hA);TD.prototype.resolveCommand=function(G){var b,I,h,q,l,V,D,k;return _.c(function(L){b=_.g(G,g6B);if((I=b)==null||!I.paramKeyValuePairs)return L.return();h=window.location.href;q=_.e(b.paramKeyValuePairs);for(l=q.next();!l.done;l=q.next())V=l.value,V.key&&V.value&&(D={},h=_.lB(h,(D[V.key]=V.value,D)));k=_.LL().resolve(_.i7);_.oF(k,h);_.ip(L)})};_.BU=new _.q3("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var UH=function(G,b,I,h){this.controller=G;this.JSC$17897_playerApiPromise=b;this.innertubeTransportService=I;this.JSC$17897_commandHandler=h};
_.M(UH,hA);
UH.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O;return _.c(function(K){if(K.nextAddress==1){I=_.g(G,RE5);if((h=I)==null||!h.watchEndpoint)return K.return();q=new gW;l=q.JSC$14237_getRequest(I.watchEndpoint);if(!l)return K.return();V=I.watchEndpoint.clickTrackingParams;return K.yield(_.qS(b.innertubeTransportService,l.innerTubeRequest,l.input,V,l.config),2)}if(K.nextAddress!=3)return D=K.yieldResult,K.yield(b.JSC$17897_playerApiPromise,3);k=K.yieldResult;k.updateVideoData({raw_watch_next_response:D});
if(A=(L=D)==null?void 0:(x=L.contents)==null?void 0:(f=x.twoColumnWatchNextResults)==null?void 0:(T=f.results)==null?void 0:(B=T.results)==null?void 0:B.contents)y=(t=A.find(function(u){return u.videoPrimaryInfoRenderer}))==null?void 0:t.videoPrimaryInfoRenderer,((F=y)==null?0:F.subtitle)&&r43(b.controller,y.subtitle);
(O=(W=D)==null?void 0:W.onUiReady)&&b.JSC$17897_commandHandler.resolveCommand(O);_.ip(K)})};
UH[QE]=[_.BU,_.wR,_.kn,_.xW];var FnL=function(){this.subtitleChangeCallbackMap=new Map},r43=function(G,b){G=_.e(G.subtitleChangeCallbackMap.values());
for(var I=G.next();!I.done;I=G.next())I=I.value,I(b)};var sH=function(G,b){this.JSC$17907_commandHandler=G;this.innertubeTransportService=b};
_.M(sH,hA);
sH.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O;return _.c(function(K){switch(K.nextAddress){case 1:return(l=(h=b)==null?void 0:(q=h.form)==null?void 0:q.element)&&_.oG(l),V=_.m$().get("hl"),D="",_.gm(K,2),K.yield(Kwj(V),4);case 4:D=K.yieldResult;_.hF(K,3);break;case 2:return _.zf(K),l&&_.iP(l),_.K1(Error("Ji"),"ERROR"),K.return();case 3:k=_.g(G,h6n);if(!k)return l&&_.iP(l),K.return();(f=(L=k.commerceActionConfig)==null?void 0:(x=L.commandLifeCycleConfig)==null?
void 0:x.onStartCommand)&&I.JSC$17907_commandHandler.resolveCommand(f);return K.yield(_.dR(I.innertubeTransportService,G,{client_data:{paymentsClientToken:{token:D}}}),5);case 5:(T=K.yieldResult)?(l&&_.iP(l),((y=T)==null?0:y.command)&&I.JSC$17907_commandHandler.resolveCommand(T.command),(O=(F=k.commerceActionConfig)==null?void 0:(W=F.commandLifeCycleConfig)==null?void 0:W.onSuccessCommand)&&I.JSC$17907_commandHandler.resolveCommand(O)):(l&&_.iP(l),_.K1(Error("Ki")),(t=(B=k.commerceActionConfig)==
null?void 0:(A=B.commandLifeCycleConfig)==null?void 0:A.onFailureCommand)&&I.JSC$17907_commandHandler.resolveCommand(t)),_.ip(K)}})};
sH[QE]=[_.xW,_.kn];var g7=function(G,b,I){this.store=G;this.JSC$17923_commandHandler=b;this.innertubeTransportService=I};
_.M(g7,hA);
g7.prototype.resolveCommand=function(G,b){var I=this,h,q,l,V,D,k,L,x,f;return _.c(function(T){h=_.g(G,qRz);q=h.googlePaymentPayload;h.onStartCommand&&I.JSC$17923_commandHandler.resolveCommand(h.onStartCommand);l=q.encryptedPurchaseParams;V=q.ypcLogWalletAnalyticDataEndpoint;D=h.serializedTransactionFlowLoggingParams;k=q.serializedPaymentsClientParams;L=h.ypcCujContext;f=nwX(I.innertubeTransportService,(x=b)==null?void 0:x.form,l,V,D,k,L);return T.return(f.then(function(B){uM2(b==null?void 0:b.form,
!1);var A=I.store,t=I.JSC$17923_commandHandler,y=B.integratorData;y==null||y===""||B.error!=null?(String(B.error)==="-1"&&h.onDismissCommand?t.resolveCommand(h.onDismissCommand):String(B.error)!=="-1"&&h.onFailureCommand&&t.resolveCommand(h.onFailureCommand),String(B.error)!=="-1"&&String(B.error)!=="132"&&_.K1(Error("Li"),"ERROR")):(h.googlePaymentEntityKey&&A.dispatch(_.Da("commerceAcquisitionClientPayloadEntity",h.googlePaymentEntityKey,{key:h.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:y,
fundsGuaranteeCallbackClientData:B.integratorClientCallbackData}}})),h.onSuccessCommand&&t.resolveCommand(h.onSuccessCommand));_.X8()},function(B){uM2(b==null?void 0:b.form,!1);
_.K1(B,"ERROR");h.onFailureCommand&&I.JSC$17923_commandHandler.resolveCommand(h.onFailureCommand)}))})};
g7[QE]=[E4,_.xW,_.kn];var At=function(G,b){this.JSC$17927_commandHandler=G;this.purchaseManager=b};
_.M(At,hA);
At.prototype.resolveCommand=function(G){var b=this,I,h,q,l,V,D,k,L,x;return _.c(function(f){I=_.g(G,jsX);((h=I)==null?0:(q=h.commandLifeCycleConfig)==null?0:q.onStartCommand)&&b.JSC$17927_commandHandler.resolveCommand(I.commandLifeCycleConfig.onStartCommand);if(!((l=I)==null?0:(V=l.googlePaymentPurchaseManagerPayload)==null?0:V.securePayloadBytes))return _.K1(Error("Mi"),"ERROR"),f.return();D=nQu(_.Sv(I.googlePaymentPurchaseManagerPayload.securePayloadBytes));k=_.m$().get("hl");L=_.yO();BmK(D.serialize(),
k,function(T){L.resolve(T)},function(T){L.reject(T)},L.resolve);
x=L.promise;return f.return(x.then(function(T){if(T)if(T==null?0:T.errorCode){_.K1(Error("Ni`"+T.errorCode),"ERROR");var B,A;((B=I)==null?0:(A=B.commandLifeCycleConfig)==null?0:A.onFailureCommand)&&b.JSC$17927_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}else if(T==null?0:T.isCancelled){var t,y;((t=I)==null?0:(y=t.commandLifeCycleConfig)==null?0:y.onCancelCommand)&&b.JSC$17927_commandHandler.resolveCommand(I.commandLifeCycleConfig.onCancelCommand)}else{var F,W;((F=I)==
null?0:(W=F.commandLifeCycleConfig)==null?0:W.onSuccessCommand)&&b.JSC$17927_commandHandler.resolveCommand(I.commandLifeCycleConfig.onSuccessCommand)}},function(T){_.K1(T,"ERROR");
var B,A;((B=I)==null?0:(A=B.commandLifeCycleConfig)==null?0:A.onFailureCommand)&&b.JSC$17927_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}))})};
At[QE]=[_.xW,UzF];var Hy8=function(G,b){this.JSC$17935_commandHandler=G;this.commandAllowlistOverride=b;var I;this.commandAllowlist=(I=this.commandAllowlistOverride)!=null?I:iBp};
Hy8.prototype.handleResponse=function(G,b,I){var h,q=b==null?void 0:(h=b.config)==null?void 0:h.command;if(!q||this.commandAllowlist.some(function(l){return!!_.g(q,l)})){b=void 0;
I!==void 0&&(b={form:{element:I}});G.onResponseReceivedCommand&&this.JSC$17935_commandHandler.resolveCommand(G.onResponseReceivedCommand,b);G.onResponseReceivedAction&&this.JSC$17935_commandHandler.resolveCommand(G.onResponseReceivedAction,b);G.onResponseReceivedEndpoint&&this.JSC$17935_commandHandler.resolveCommand(G.onResponseReceivedEndpoint,b);G.command&&this.JSC$17935_commandHandler.resolveCommand(G.command,b);if(G.onResponseReceivedCommands)for(I=_.e(G.onResponseReceivedCommands),h=I.next();!h.done;h=
I.next())this.JSC$17935_commandHandler.resolveCommand(h.value,b);if(G.onResponseReceivedActions)for(I=_.e(G.onResponseReceivedActions),h=I.next();!h.done;h=I.next())this.JSC$17935_commandHandler.resolveCommand(h.value,b);if(G.onResponseReceivedEndpoints)for(I=_.e(G.onResponseReceivedEndpoints),h=I.next();!h.done;h=I.next())this.JSC$17935_commandHandler.resolveCommand(h.value,b);if(G.actions)for(G=_.e(G.actions),I=G.next();!I.done;I=G.next())this.JSC$17935_commandHandler.resolveCommand(I.value,b)}};
Hy8[QE]=[_.xW,_.vf(oCa)];var Wn1=new _.q3("INNERTUBE_TOKEN_SERVICE");var az5=new _.q3("SCHEDULER_TOKEN");var NVY=function(G){this.scheduler=G;G={};this.tokenMap=(G.app={},G.user={},G)};
NVY.prototype.handleResponse=function(G,b){if(!b)throw Error("Oi");var I;if(G=(I=G.responseContext)==null?void 0:I.innertubeTokenJar){if(G.appTokens){var h,q,l;I=(h=b.innerTubeRequest.context)==null?void 0:(q=h.request)==null?void 0:(l=q.innertubeTokenJar)==null?void 0:l.appTokens;YgK(this,G.appTokens,this.tokenMap.app,I)}if(G.userTokens){var V,D,k;b=(V=b.innerTubeRequest.context)==null?void 0:(D=V.request)==null?void 0:(k=D.innertubeTokenJar)==null?void 0:k.userTokens;YgK(this,G.userTokens,this.tokenMap.user,
b)}}};
NVY.prototype.processContext=function(G){G.request||(G.request={});var b=Object.keys(this.tokenMap.app).length,I=Object.keys(this.tokenMap.user).length;if(b||I)G.request.innertubeTokenJar={},b&&(G.request.innertubeTokenJar.appTokens=[].concat(_.Nz(Object.values(this.tokenMap.app).flat()))),I&&(G.request.innertubeTokenJar.userTokens=[].concat(_.Nz(Object.values(this.tokenMap.user).flat())))};
var YgK=function(G,b,I,h){b=_.e(b);for(var q=b.next(),l={};!q.done;l={token$jscomp$139:void 0},q=b.next()){l.token$jscomp$139=q.value;if(l.token$jscomp$139.type===void 0)throw new _.Wf("InnerTube token has no type",l.token$jscomp$139);if(l.token$jscomp$139.clearTokens)I[l.token$jscomp$139.type]=[];else if(l.token$jscomp$139.value!==void 0){I[l.token$jscomp$139.type]||(I[l.token$jscomp$139.type]=[]);if(h!==void 0&&h.length){q=_.e(h);for(var V=q.next(),D={};!V.done;D={requestToken:void 0},V=q.next())D.requestToken=
V.value,V=I[l.token$jscomp$139.type].findIndex(function(k){return function(L){return L===k.requestToken||(0,_.Cy.equals)(L,k.requestToken)}}(D)),V>-1&&I[l.token$jscomp$139.type].splice(V,1)}I[l.token$jscomp$139.type].push(l.token$jscomp$139);
l.token$jscomp$139.maxAgeSeconds&&Number(l.token$jscomp$139.maxAgeSeconds)>0&&G.scheduler.addLowPriorityJob(function(k){return function(){var L=I[k.token$jscomp$139.type].indexOf(k.token$jscomp$139);L>-1&&I[k.token$jscomp$139.type].splice(L,1)}}(l),Number(l.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.Wf("InnerTube token has no value",l.token$jscomp$139);
}};
NVY[QE]=[az5];var Ce8=new _.q3("LOCAL_INNERTUBE_ROUTER_TOKEN"),J4j=new _.q3("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var MU=function(G){this.serviceMap=G};
MU.prototype.shouldPreferLocalResponse=function(G,b){return(G=KnD(this,G))?G.shouldPreferLocalResponse(b):!1};
MU.prototype.localInnertubeResponse=function(G,b){var I=this,h;return _.c(function(q){return(h=KnD(I,G))?q.return(h.localInnertubeResponse(b)):q.return(Promise.reject(Error("Pi")))})};
MU.prototype.canProvideFallbackResponse=function(G,b){return(G=KnD(this,G))?G.canProvideFallbackResponse(b):!1};
MU.prototype.localFallbackInnertubeResponse=function(G,b){var I=this,h;return _.c(function(q){return(h=KnD(I,G))?q.return(h.localFallbackInnertubeResponse(b)):q.return(Promise.reject(Error("Pi")))})};
var KnD=function(G,b){b=_.tB(b);return b?(G=G.serviceMap[b])?G:null:null};
MU[QE]=[J4j];var kx=function(){};
kx.prototype.shouldPreferLocalResponse=function(){return!1};
kx.prototype.localInnertubeResponse=function(){return _.c(function(G){return G.return(Promise.reject(Error("Qi")))})};
kx.prototype.canProvideFallbackResponse=function(){return!0};
kx.prototype.localFallbackInnertubeResponse=function(){var G,b,I;return _.c(function(h){G=hx("CLOSE_POPUP");b={openPopupAction:wx2()};I={actions:[G,b]};return h.return(I)})};var eHO=function(G,b){this.JSC$17984_upliftPromise=G;this.store=b};
_.m=eHO.prototype;_.m.shouldPreferLocalResponse=function(G){var b=G.videoId,I;if(I=b)I=R4r(this.store.getState().entities,G.videoId);return I&&nqB(this.store.getState().entities,b)?pxr(this.store.getState().entities,G.playlistId):!1};
_.m.localInnertubeResponse=function(G){var b=this,I;return _.c(function(h){return(I=b.getPlayerResponse(G))?h.return(Promise.resolve(I)):h.return(Promise.reject(Error("Ri")))})};
_.m.canProvideFallbackResponse=function(G){return!!G.videoId};
_.m.localFallbackInnertubeResponse=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(b.JSC$17984_upliftPromise,2);I=b.getPlayerResponse(G);var q;I?q=h.return(Promise.resolve(I)):q=vj(b.store.getState().entities,G.videoId)?h.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.RW(_.qP("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:GKO()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
h.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.RW(_.qP("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:$0q()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return q})};
_.m.getPlayerResponse=function(G){return TsO(this.store.getState().entities,G.videoId)};var cP=function(G,b){this.localPlayerService=G;this.localWatchNextService=b};
cP.prototype.shouldPreferLocalResponse=function(G){var b=G.playerRequest;G=G.watchNextRequest;return!!(b&&this.localPlayerService.shouldPreferLocalResponse(b)&&G&&this.localWatchNextService.shouldPreferLocalResponse(G))};
cP.prototype.localInnertubeResponse=function(G){var b=this,I,h,q,l;return _.c(function(V){if(V.nextAddress==1){I=G.playerRequest;h=G.watchNextRequest;if(!I||!h)throw new _.Wf("Missing streaming request",G);return V.yield(b.localPlayerService.localInnertubeResponse(I),2)}if(V.nextAddress!=3)return q=V.yieldResult,V.yield(b.localWatchNextService.localInnertubeResponse(h),3);l=V.yieldResult;return V.return({playerResponse:q,watchNextResponse:l})})};
cP.prototype.canProvideFallbackResponse=function(G){var b=G.playerRequest;G=G.watchNextRequest;return!!(b&&this.localPlayerService.canProvideFallbackResponse(b)&&G&&this.localWatchNextService.canProvideFallbackResponse(G))};
cP.prototype.localFallbackInnertubeResponse=function(G){var b=this,I,h,q,l;return _.c(function(V){if(V.nextAddress==1)return I=G.playerRequest,h=G.watchNextRequest,I&&h?V.yield(b.localPlayerService.localFallbackInnertubeResponse(I),2):V.return(Promise.reject(new _.Wf("Missing streaming request",G)));if(V.nextAddress!=3)return q=V.yieldResult,V.yield(b.localWatchNextService.localFallbackInnertubeResponse(h),3);l=V.yieldResult;return V.return({playerResponse:q,watchNextResponse:l})})};var ef=function(G){this.JSC$17994_persistentStorePromiseAccessor=G};
ef.prototype.shouldPreferLocalResponse=function(){return!1};
ef.prototype.localInnertubeResponse=function(){return _.c(function(G){return G.return(Promise.reject(Error("Si")))})};
ef.prototype.canProvideFallbackResponse=function(){return!0};
ef.prototype.localFallbackInnertubeResponse=function(){var G=this,b,I;return _.c(function(h){return h.nextAddress==1?h.yield(G.JSC$17994_persistentStorePromiseAccessor(),2):h.nextAddress!=3?(b=h.yieldResult)?h.yield(b.get("service:guide:fallback"),3):h.return(Promise.reject(Error("Ti"))):(I=h.yieldResult)&&_.uP(I)?h.return(SPB(_.uP(I))):h.return(Promise.reject(Error("Ui")))})};var vP=function(){};
vP.prototype.shouldPreferLocalResponse=function(){return!1};
vP.prototype.localInnertubeResponse=function(){return _.c(function(G){return G.return(Promise.reject(Error("Vi")))})};
vP.prototype.canProvideFallbackResponse=function(){return!0};
vP.prototype.localFallbackInnertubeResponse=function(){var G,b,I;return _.c(function(h){G=hx("CLOSE_POPUP");b={openPopupAction:wx2()};I={actions:[G,b]};return h.return(I)})};var mb=function(){this.urlMap=u0D;this.fallbackCommand=_.aa};
mb.prototype.shouldPreferLocalResponse=function(G){return(G=G.url)?!!RLD(this,G):!1};
mb.prototype.localInnertubeResponse=function(G){var b=this,I;return _.c(function(h){return(I=G.url)?h.return(np3(G,RLD(b,I))):h.return(Promise.reject(Error("Wi")))})};
mb.prototype.canProvideFallbackResponse=function(){return!0};
mb.prototype.localFallbackInnertubeResponse=function(G){var b=this,I,h,q,l,V,D,k;return _.c(function(L){I=G.url;if(!I)return L.return(np3(G,b.fallbackCommand));if(h=RLD(b,I))return L.return(np3(G,h));q=void 0;l=_.tB(I);l==="/watch"&&(V=_.XN(I,"v"))&&(k=(D=_.XN(I,"list"))!=null?D:void 0,q=_.u9(V,k));q||(q=b.fallbackCommand);return L.return(np3(G,q))})};
var RLD=function(G,b){if(b)return G.urlMap[_.dL(b)]},np3=function(G,b){b&&G.parentTrackingParams&&(b.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:G.parentTrackingParams}},b.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:b})};var Vp=function(G,b,I){this.JSC$18005_upliftPromise=G;this.store=b;this.JSC$18005_persistentStorePromiseAccessor=I};
Vp.prototype.shouldPreferLocalResponse=function(){return!1};
Vp.prototype.localInnertubeResponse=function(){return _.c(function(G){return G.return(Promise.reject(Error("Xi")))})};
Vp.prototype.canProvideFallbackResponse=function(){return!0};
Vp.prototype.localFallbackInnertubeResponse=function(){var G=this;return _.c(function(b){return b.return(OyL(G))})};
var OyL=function(G){var b,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(Kc(G.JSC$18005_upliftPromise,G.store),2);b=h.yieldResult;I={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Ewq(b)]}}}};return h.return(wa9(G,I))})},wa9=function(G,b){var I,h;
return _.c(function(q){if(q.nextAddress==1)return q.yield(G.JSC$18005_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3)return I=q.yieldResult,q.yield(RG(I),3);h=q.yieldResult;return q.return({responseContext:{},contents:b,topbar:h})})};var jf=function(G,b,I){this.JSC$18012_upliftPromise=G;this.store=b;this.JSC$18012_persistentStorePromiseAccessor=I};
jf.prototype.shouldPreferLocalResponse=function(G){var b=G.videoId;return b&&R4r(this.store.getState().entities,b)&&nqB(this.store.getState().entities,b)?pxr(this.store.getState().entities,G.playlistId):!1};
jf.prototype.localInnertubeResponse=function(G){var b=this,I,h;return _.c(function(q){if(q.nextAddress==1)return(I=G.videoId)?q.yield(b.JSC$18012_upliftPromise,2):q.return(Promise.reject(Error("Yi")));if(q.nextAddress!=3)return q.yield(Epe(b,G,I),3);h=q.yieldResult;return q.return(pae(b,h,I))})};
jf.prototype.canProvideFallbackResponse=function(G){return G.videoId?!0:!1};
jf.prototype.localFallbackInnertubeResponse=function(G){var b=this,I,h,q,l;return _.c(function(V){switch(V.nextAddress){case 1:return(I=G.videoId)?V.yield(b.JSC$18012_upliftPromise,2):V.return(Promise.reject(Error("Yi")));case 2:return V.yield(Epe(b,G,I),3);case 3:h=V.yieldResult;if(vj(b.store.getState().entities,I)){V.jumpTo(4);break}return V.yield(Kc(b.JSC$18012_upliftPromise,b.store),5);case 5:return q=V.yieldResult,V.return(Sg3(h,q));case 4:return R4r(b.store.getState().entities,I)&&nqB(b.store.getState().entities,
I)?V.return(pae(b,h,I)):(l={title:_.RW(_.qP("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:GKO()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},V.return(Sg3(h,l)))}})};
var Epe=function(G,b,I){var h,q,l,V,D;return _.c(function(k){if(k.nextAddress==1)return h=b.playlistId,q=_.u9(I,h),k.yield(G.JSC$18012_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3)return l=k.yieldResult,k.yield(RG(l),3);V=k.yieldResult;D={responseContext:{},currentVideoEndpoint:q,topbar:V};return k.return(D)})},pae=function(G,b,I){if(G=vj(G.store.getState().entities,I)){var h;
I=G.videoEntity;var q,l={title:nU(I.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.OS((h=I.localizedStrings)==null?void 0:h.viewCount),viewCount:_.OS((q=I.localizedStrings)==null?void 0:q.viewCount)}}};I.publishedTimestampMillis&&(l.dateText=_.OS(kNu(new Date(Number(I.publishedTimestampMillis)))));h={videoPrimaryInfoRenderer:l};q=G.videoEntity;G=G.channelEntity;G={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:nU(_.qP("SHOW_MORE",void 0,"Show more")),
showLessText:nU(_.qP("SHOW_LESS",void 0,"Show less")),description:q.formattedDescription,owner:{videoOwnerRenderer:{title:nU(G.title),thumbnail:G.avatar}}}};b.contents={twoColumnWatchNextResults:{results:{results:{contents:[h,G]}}}}}return b},Sg3=function(G,b){G.contents={singleColumnWatchNextResults:{results:{results:{contents:[Ewq(b)]}}}};
return G};var D_=function(G,b,I){this.JSC$18017_upliftPromise=G;this.store=b;this.JSC$18017_persistentStorePromiseAccessor=I};
D_.prototype.shouldPreferLocalResponse=function(){return!1};
D_.prototype.localInnertubeResponse=function(){return _.c(function(G){return G.return(Promise.reject(Error("Zi")))})};
D_.prototype.canProvideFallbackResponse=function(){return!0};
D_.prototype.localFallbackInnertubeResponse=function(){var G=this,b,I,h,q;return _.c(function(l){switch(l.nextAddress){case 1:return l.yield(G.JSC$18017_persistentStorePromiseAccessor(),2);case 2:return b=l.yieldResult,l.yield(RG(b),3);case 3:return I=l.yieldResult,h={responseContext:{},topbar:I},l.yield(G.JSC$18017_upliftPromise,4);case 4:return l.yield(Kc(G.JSC$18017_upliftPromise,G.store),5);case 5:return q=l.yieldResult,h.watchStatus={backgroundPromoRenderer:q},l.return(h)}})};var Xa9,$2c;_.ZV=new _.q3("ENDPOINT_MAP");Xa9=new _.q3("WATCH_ENDPOINT_MAP");$2c=new _.q3("REEL_ENDPOINT_MAP");var h02=/^[a-zA-Z0-9_\-]{11}$/;var qFr=_.gt(function(){var G,b;return(b=(G=window).matchMedia)==null?void 0:b.call(G,"(prefers-reduced-motion: reduce)").matches});var GxD=_.gt(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=_.Ge("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");G||(G=_.ol("VIDEO"),_.cz("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 bT1=XMLHttpRequest.prototype.fetch,ICW=bT1&&bT1.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Vz?!0:!1;var tt=function(G){this.JSC$18028_storeWithEntities=G};
_.M(tt,pP);_.m=tt.prototype;_.m.getApiPaths=function(){return nXn};
_.m.getExtension=function(G){return _.g(G,_.Wq)||_.g(G,_.V4)||_.g(G,CDz)};
_.m.isNavigationCommand=function(){return!0};
_.m.JSC$14244_getStoreKey=function(G){if((_.U("kevlar_cache_on_ttl_player")||_.U("mweb_enable_shorts_innertube_player_prefetch")||_.U("mweb_use_new_history_manager")||_.U("web_shorts_prefetch_service_enabled"))&&(G=this.getExtension(G))&&G.videoId){var b={videoId:G.videoId};G.playlistId&&(b.playlistId=G.playlistId);G.playerParams&&(b.params=G.playerParams);return _.Hq("player",b)}};
_.m.JSC$14237_getClientScreen=function(G){var b;return((b=G.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.m.JSC$14237_buildRequest=function(G,b,I){if(_.U("enable_interstitial_entity_check")){var h=this.JSC$18028_storeWithEntities;if(b.videoId)for(var q=_.e(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),l=q.next();!l.done;l=q.next()){l=l.value;var V;var D=void 0,k=void 0,L=b.videoId,x=l;(V=h)?(L=_.$S(L+x,"interstitialInteractionStateEntity"),V=(D=(k=_.Gi(V.getState().entities,"interstitialInteractionStateEntity",L))==null?void 0:k.primaryButtonClicked)!=null?D:!1):V=!1;if(V)switch(l){case "CONTENT_CHECK_REQUIRED":b.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":b.racyCheckOk=!0}}}b.videoId&&(G.videoId=b.videoId);b.playlistId&&(G.playlistId=b.playlistId);b.index!==void 0&&(G.playlistIndex=b.index+1);b.playerParams&&(G.params=b.playerParams);"startTimeSeconds"in b&&b.startTimeSeconds&&(_.U("enable_player_request_builder_start_time_floor")?G.startTimeSecs=Math.floor(b.startTimeSeconds):G.startTimeSecs=b.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={});h=GxD();G.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!h,supportXhr:ICW};I.overrideMutedAtStart&&(G.overrideMutedAtStart=I.overrideMutedAtStart);G.racyCheckOk=!!b.racyCheckOk;G.contentCheckOk=!!b.contentCheckOk;!_.U("captions_prefs_killswitch")&&(I=(I=_.Q4("yt-player-caption-language-preferences"))?
I:[],I==null?0:I.length)&&(G.captionParams={viewerSelectedCaptionLangs:I})};
_.m.getRequestConfig=function(G){G=this.JSC$14244_getStoreKey(G);var b;G&&(b={storeStrategy:{storeKey:G}});_.U("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="ps_s",b.responseTick="ps_r");return b};
tt[QE]=[E4];var zD=function(G,b){this.playerRequestBuilder=G;this.watchNextRequestBuilder=b};
_.M(zD,pP);zD.prototype.getApiPaths=function(){return FDA};
zD.prototype.getExtension=function(G){return _.g(G,_.Wq)};
zD.prototype.isNavigationCommand=function(){return!0};
zD.prototype.JSC$14237_buildRequest=function(G,b,I){G.playerRequest={};this.playerRequestBuilder.JSC$14237_buildRequest(G.playerRequest,b,I);_.U("web_streaming_watch")&&(G.watchNextRequest={},this.watchNextRequestBuilder.JSC$14237_buildRequest(G.watchNextRequest,b,I))};
zD[QE]=[tt,gW];var h8e;_.o0=new _.q3("SHORTS_CONTROLLER_TOKEN");h8e=new _.q3("SHORTS_STATE_STORE_TOKEN");var ic=function(G,b){var I=_.RI.apply(2,arguments);G=G===void 0?0:G;_.Wf.call(this,b,I);this.errorType=G;Object.setPrototypeOf(this,this.constructor.prototype)};
_.M(ic,_.Wf);var q85,jlD,lC8,D6s,PP,iHd,VaF,e81,LFf,kxW,c28;q85=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(G){return G+"="}).join("|"));
jlD=RegExp(".*\\?.*playnext=1.*");lC8=function(G,b,I,h,q){this.watchEndpointMap=G;this.reelWatchEndpointMap=b;this.innerTubeTransportService=I;this.fetchPbj=h;this.reloadOnPlayerFailure=q===void 0?!0:q};
_.m2f=function(G,b){var I=_.Te("web_pbj_log_warning_rate",0);I=I>0&&Math.random()<I;var h;if((h=_.g(b.commandMetadata,_.IW))==null||!h.rootVe)return I&&_.RB(Error("dj")),!1;var q;h=(q=_.g(b.commandMetadata,_.IW))==null?void 0:q.url;if(!h)return I&&_.RB(Error("ej")),!1;if(jlD.test(h))return!0;if(q85.test(h))return I&&_.RB(Error("fj`"+h)),!1;if(_.g(b,_.Wq)){if(!(G.watchEndpointMap.watchNext&&G.watchEndpointMap.player||_.U("kevlar_fetch_initial_data_op_watch_client")))return I&&_.RB(Error("$i")),!1;
G=_.Te("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;_.g(b,_.Wq)?bK2(b)?b=!0:(G&&_.RB(Error("aj")),b=!1):(G&&_.RB(Error("$i")),b=!1);return b}if(_.g(b,_.V4))return Ijd(b);if(_.g(b,_.X_))return!0;G=_.PN(G.innerTubeTransportService,b);!G&&I&&_.K1(Error("gj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(b)});return G};
D6s=function(G,b,I,h,q,l){b={url:b};if(I==null?0:I.itct)b.parentTrackingParams=I.itct;var V=_.JQ(b_n);return _.qS(G.innerTubeTransportService,b,V).then(function(D){(D=D.endpoint)||(D=_.aa);(I==null?0:I.itct)&&D&&!D.trackingParams&&(D.trackingParams=I.itct);var k=mu(D);return PP(G,D,I,h,k,q,l)})};
PP=function(G,b,I,h,q,l,V,D){D=D===void 0?{}:D;if(G.fetchPbj&&!_.m2f(G,b)&&!_.U("force_one_platform")){D=G.fetchPbj(b);var k=_.X8(D.then(function(K){if(!K)throw Error("hj");V(k)||l(b,K);return K}));
return k}var L,x,f={rootVe:(L=_.g(b.commandMetadata,_.IW))==null?void 0:L.rootVe,url:(x=_.g(b.commandMetadata,_.IW))==null?void 0:x.url,endpoint:b,page:q};if(_.g(b,_.Wq)){var T,B={contentPlaybackContext:_.pc(I,(T=_.g(b.commandMetadata,_.IW))==null?void 0:T.url,h)},A=_.yO();_.U("web_streaming_watch")&&window.TextDecoderStream?(D=PKb(G.innerTubeTransportService,b,B,function(K){!f.response&&K.content&&(f.response=K.content);!f.playerResponse&&K.player&&(f.playerResponse=K.player);l(b,f)}),L=CQO(b),L.length&&
(f.preconnect=L,l(b,f)),e81(D,A,f).catch(function(K){K instanceof ic&&K.errorType===2&&_.U("web_streaming_watch_fallback")&&VaF(G,b,B,f,l,V,A)})):VaF(G,b,B,f,l,V,A);
return A.promise}if(_.g(b,_.V4)){var t;if(((t=_.g(b,_.V4))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var y=_.yO();_.D2L(_.LL().resolve(_.o0),b).then(function(K){c28(G,I,h,q,l,y,K)});
return y.promise}D=_.X8();var F;L={contentPlaybackContext:_.pc(I,(F=_.g(b.commandMetadata,_.IW))==null?void 0:F.url,h)};(F=G.reelWatchEndpointMap.player)&&(F=F().JSC$14237_getRequest(b,L))&&(D=_.qS(G.innerTubeTransportService,F.innerTubeRequest,F.input,b.clickTrackingParams,F.config));F=_.X8();(x=G.reelWatchEndpointMap.reelItemWatch)&&(x=x().JSC$14237_getRequest(b))&&(F=_.qS(G.innerTubeTransportService,x.innerTubeRequest,x.input,b.clickTrackingParams,x.config));x=_.X8();_.U("web_enable_delay_shorts_sequence_call_extra")&&
(x=new _.MB(function(K){setTimeout(function(){K(void 0)},200)}));
(!_.U("web_enable_delay_shorts_sequence_call_new")||_.U("web_enable_delay_shorts_sequence_call_forget"))&&(T=G.reelWatchEndpointMap.reelWatchSequence)&&_.g(b,_.V4).sequenceParams&&(L=T().JSC$14237_getRequest(b,L))&&(_.U("web_enable_delay_shorts_sequence_call_forget")?_.qS(G.innerTubeTransportService,L.innerTubeRequest,L.input,b.clickTrackingParams,L.config):x=_.qS(G.innerTubeTransportService,L.innerTubeRequest,L.input,b.clickTrackingParams,L.config));L=_.X8(f);T=_.yO();kxW(b,L,D,F,x,l,V,T);return T.promise}var W;
if(_.g(b,e6r)&&((W=_.g(b.commandMetadata,_.IW))==null?0:W.url))return D=LD2(_.Gt(Rk().location.href),_.Gt(_.g(b.commandMetadata,_.IW).url)).toString(),D6s(G,D,I,h,l,function(){return!1});
if(_.g(b,_.X_))return l(b,f),_.X8(f);if(_.PN(G.innerTubeTransportService,b)){D=Object.assign({},{tempData:I,disableCache:I.disableCache},D);var O=_.dR(G.innerTubeTransportService,b,D).then(function(K){f.response=K;V(O)||l(b,f);return f});
return O}return _.X8(f)};
_.vue=function(G,b,I,h){if(_.g(b,_.Wq)||_.g(b,_.V4)&&(_.U("mweb_enable_shorts_innertube_player_prefetch")||_.U("kevlar_enable_shorts_prefetch_in_sequence"))||_.g(b,CDz)&&_.U("web_enable_prefetching_videos_on_home")){var q,l={contentPlaybackContext:_.pc(I,(q=_.g(b.commandMetadata,_.IW))==null?void 0:q.url,h),prefetchPlaybackContext:ljO(I)},V,D,k;if(((V=_.g(b,_.Wq))==null?void 0:(D=V.watchEndpointSupportedPrefetchConfig)==null?void 0:(k=D.prefetchHintConfig)==null?void 0:k.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(I=
G.watchEndpointMap.watchNext)if(l=I().JSC$14237_getRequest(b,l))return Promise.resolve(_.qS(G.innerTubeTransportService,l.innerTubeRequest,l.input,void 0,l.config).then(function(f){return f}))}else if(I=G.watchEndpointMap.player)if(l=I().JSC$14237_getRequest(b,l))return Promise.resolve(_.qS(G.innerTubeTransportService,l.innerTubeRequest,l.input,void 0,l.config).then(function(f){return f}))}else if(_.PN(G.innerTubeTransportService,b)){var L={tempData:I},x=Zxi(G.innerTubeTransportService,b);
return x?new Promise(function(f,T){var B,A;return _.c(function(t){if(t.nextAddress==1)return t.yield(x,2);if(t.nextAddress!=4)return B=t.yieldResult,B.JSC$14244_getStoreKey(b,L)?t.yield(_.dR(G.innerTubeTransportService,b,L),4):(T(new _.Wf("Prefetching request builder with no store key.",b)),t.jumpTo(0));A=t.yieldResult;f(A);_.ip(t)})}):Promise.reject(new _.Wf("Prefetching unregistered request builder.",b))}return Promise.reject(new _.Wf("No request builder available to prefetch endpoint.",b))};
iHd=function(G,b){var I,h,q;if(_.g(b,_.Wq)){var l=G.watchEndpointMap.watchNext;l&&(I=l());(G=G.watchEndpointMap.player)&&(h=G())}else if(_.g(b,_.V4))(l=G.reelWatchEndpointMap.reelItemWatch)&&(I=l()),(l=G.reelWatchEndpointMap.player)&&(h=l()),(G=G.reelWatchEndpointMap.reelWatchSequence)&&(q=G());else{a:{G=cmq(b,G.innerTubeTransportService.endpointMap);if(G!==void 0)if(typeof G.then==="function")_.K1(new _.Wf("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",b));else break a;
G=void 0}G&&(I=G)}var V,D,k;return{content:(V=I)==null?void 0:V.JSC$14244_getStoreKey(b),player:(D=h)==null?void 0:D.JSC$14244_getStoreKey(b),reelSequence:(k=q)==null?void 0:k.JSC$14244_getStoreKey(b)}};
VaF=function(G,b,I,h,q,l,V){var D=_.X8(),k=G.watchEndpointMap.player;_.U("web_streaming_player")&&(k=ZG(zD));k&&(k=k().JSC$14237_getRequest(b,I))&&(D=_.qS(G.innerTubeTransportService,k.innerTubeRequest,k.input,b.clickTrackingParams,k.config));k=_.X8();var L=G.watchEndpointMap.watchNext;L&&(I=L().JSC$14237_getRequest(b,I))&&(k=_.qS(G.innerTubeTransportService,I.innerTubeRequest,I.input,b.clickTrackingParams,I.config));h=_.X8(h);LFf(G,b,h,D,k,q,l,V)};
e81=function(G,b,I){var h;return _.c(function(q){if(q.nextAddress==1)return q.yield(G,2);_.U("web_streaming_watch_delay_200")||_.U("web_streaming_watch_delay_400")?(h=_.U("web_streaming_watch_delay_200")?200:400,setTimeout(function(){b.resolve(I)},h)):b.resolve(I);
_.ip(q)})};
LFf=function(G,b,I,h,q,l,V,D){var k,L,x,f,T;_.c(function(B){switch(B.nextAddress){case 1:return B.yield(I,2);case 2:k=B.yieldResult;if(V(D.promise))return D.resolve(k),B.return();l(b,k);L=CQO(b);if(!L.length){B.jumpTo(3);break}return B.yield(I,4);case 4:k.preconnect=L,l(b,k);case 3:return _.gm(B,5),B.yield(h,7);case 7:x=B.yieldResult;_.hF(B,6);break;case 5:return f=_.zf(B),D.reject(f),B.return();case 6:if(x===void 0&&G.reloadOnPlayerFailure)return k.reload=!0,l(b,k),D.resolve(k),B.return();if(V(D.promise))return D.resolve(k),
B.return();k.playerResponse=x;l(b,k);_.U("web_watch_stop_scheduler_on_player_response")&&iUQ();_.gm(B,8);return B.yield(q,10);case 10:T=B.yieldResult;_.hF(B,9);break;case 8:_.zf(B);case 9:if(T===void 0)return k.response={responseContext:{}},D.resolve(k),B.return();if(V(D.promise))return D.resolve(k),B.return();k.response=T;l(b,k);D.resolve(k);_.ip(B)}})};
kxW=function(G,b,I,h,q,l,V,D){var k,L,x,f,T,B;_.c(function(A){switch(A.nextAddress){case 1:return A.yield(b,2);case 2:k=A.yieldResult;if(V(D.promise))return D.resolve(k),A.return();l(G,k);L=CQO(G);if(!L.length){A.jumpTo(3);break}return A.yield(b,4);case 4:k.preconnect=L,l(G,k);case 3:return _.gm(A,5),A.yield(I,7);case 7:x=A.yieldResult;_.hF(A,6);break;case 5:return f=_.zf(A),D.reject(f),A.return();case 6:if(x===void 0)return k.reload=!0,l(G,k),D.resolve(k),A.return();if(V(D.promise))return D.resolve(k),
A.return();k.playerResponse=x;l(G,k);_.U("web_shorts_stop_scheduler_on_player_response")&&iUQ();_.gm(A,8);return A.yield(h,10);case 10:T=A.yieldResult;_.hF(A,9);break;case 8:_.zf(A);case 9:if(T===void 0)return k.response={responseContext:{}},D.resolve(k),A.return();if(V(D.promise))return D.resolve(k),A.return();k.response=T;l(G,k);_.gm(A,11);return A.yield(q,13);case 13:B=A.yieldResult;_.hF(A,12);break;case 11:_.zf(A);case 12:if(V(D.promise))return D.resolve(k),A.return();B&&(k.reelWatchSequenceResponse=
B);l(G,k);D.resolve(k);_.ip(A)}})};
c28=function(G,b,I,h,q,l,V){var D,k,L,x,f,T;_.c(function(B){if((D=V)==null||!D.replacementEndpoint)return l.reject(),B.return();k=V.replacementEndpoint;(L=_.g(k,_.V4))?(V.sequenceContinuation&&(L.sequenceParams=V.sequenceContinuation),x=_.LL().resolve(_.o0),f=L.sequenceParams,Ql1(x,k)&&delete L.sequenceParams,T=PP(G,k,b,I,h,q,function(){return!1}),T.then(function(A){return _.c(function(t){if(t.nextAddress==1)return x21(x,{reelWatchEndpoint:{sequenceParams:f}},A),t.yield(0,2);
l.resolve(A);_.ip(t)})})):l.reject();
_.ip(B)})};
lC8[QE]=[Xa9,$2c,_.kn,_.vf(sYB)];var fC1=function(){var G=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return G.sequenceMap}}},dgu=function(G,b,I){var h,q=(h=b.config)==null?void 0:h.sequenceStrategy;
if(!q)return I();G.sequenceMap.has(q.sequenceKey)||G.sequenceMap.set(q.sequenceKey,[]);G=G.sequenceMap.get(q.sequenceKey);switch(q.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Tk1(G,b,I);case "REQUEST_SEQUENCE_TYPE_REPLACE":return Bk1(G,b,I);default:throw new _.Wf("Request could not be sequenced",b);}},Tk1=function(G,b,I){var h,q,l;
return _.c(function(V){G.length>0?(q=G[G.length-1],h=q.responsePromise.then(function(){return I()})):h=I();
l={request:b,responsePromise:h};G.push(l);U2f(G,l);return V.return(l.responsePromise)})},Bk1=function(G,b,I){I=I();
if(G.length>0)for(var h=_.e(G),q=h.next();!q.done;q=h.next())q.value.responsePromise=I;var l={request:b,responsePromise:I};G.push(l);U2f(G,l);return Promise.resolve().then(function(){return G.indexOf(l)>0?l.responsePromise.then(function(V){return Object.assign({},V,{sequenceMetaData:{skipProcessing:!0}})}):l.responsePromise})},U2f=function(G,b){b.responsePromise.then(function(){var I=G.indexOf(b);
I>-1&&G.splice(I,1)})};var sl3=new _.q3("REQUEST_SEQUENCING");var PU=function(){};
_.M(PU,pP);PU.prototype.getApiPaths=function(){return[]};
PU.prototype.getExtension=function(G){return _.g(G,sw8)};
PU.prototype.JSC$14237_buildRequest=function(G,b){G.recaptchaToken=b.recaptchaToken};
PU.prototype.getApiUrl=function(){return"/das_captcha"};var d7=function(){};
_.M(d7,pP);d7.prototype.getApiPaths=function(){return b$n};
d7.prototype.getExtension=function(G){return _.g(G,GSu)};
d7.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.createBackstagePostParams&&(G.createBackstagePostParams=b.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 h,q,l,V,D;G.clipAttachment={externalVideoId:(l=I.clip_external_video_id)!=null?l:"",offsetMs:(V=(h=I.clip_offset_ms)==
null?void 0:h.toString())!=null?V:"",durationMs:(D=(q=I.clip_duration_ms)==null?void 0:q.toString())!=null?D:""}}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"&&(b=I.access_restrictions,G.accessRestrictions={restriction:b!==1&&b===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 yT=function(){};
_.M(yT,pP);yT.prototype.getApiPaths=function(){return e9Q};
yT.prototype.getExtension=function(G){return _.g(G,SQW)};
yT.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.decorateMessageParams&&(G.params=b.decorateMessageParams);I.text&&(G.text=I.text)};var r7=function(){};
_.M(r7,pP);r7.prototype.getApiPaths=function(){return oXJ};
r7.prototype.getExtension=function(G){return _.g(G,bFi)};
r7.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;I.video_id&&(G.videoId=I.video_id)};var F3=function(){};
_.M(F3,pP);F3.prototype.getApiPaths=function(){return rAA};
F3.prototype.getExtension=function(G){return _.g(G,_.b9)};
F3.prototype.JSC$14237_buildRequest=function(G,b,I){I.suggestions_query&&(G.input=I.suggestions_query)};var HU=function(){};
_.M(HU,pP);HU.prototype.getApiPaths=function(){return v7B};
HU.prototype.getExtension=function(G){return _.g(G,IQe)};
HU.prototype.JSC$14237_buildRequest=function(G,b,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=b.updateBackstagePostParams};var WU=function(){};
_.M(WU,pP);WU.prototype.getApiPaths=function(){return HR};
WU.prototype.getExtension=function(G){return _.g(G,_.Aa)};
WU.prototype.JSC$14237_buildRequest=function(G,b,I){I.formData&&(G.formData=I.formData);b.token?G.continuation=b.token:b.continuationTokenKey&&(I=_.Cw().getState(),b=_.Gi(I.entities,"continuationTokenEntity",b.continuationTokenKey))&&(G.continuation=String(b.continuationToken))};
var gu5=function(){};
_.M(gu5,pP);_.m=gu5.prototype;_.m.getApiPaths=function(){return HR};
_.m.getExtension=function(G){return _.g(G,_.jL)};
_.m.isNavigationCommand=function(){return!0};
_.m.JSC$14244_getStoreKey=function(G){if((G=this.getExtension(G))&&G.browseId){var b={browseId:G.browseId};G.browseEndpointContextSupportedConfigs&&(b.browseEndpointContextSupportedConfigs=JSON.stringify(G.browseEndpointContextSupportedConfigs));G.params&&(b.params=G.params);G.query&&(b.query=G.query);return _.Hq("browse",b)}};
_.m.JSC$14237_buildRequest=function(G,b,I){b.browseId&&(G.browseId=b.browseId);b.params&&(G.params=b.params);b.query&&(G.query=b.query);I.formData?G.formData=I.formData:b.formData&&(G.formData=b.formData);b.browseId==="FEsubscriptions"&&_.m$().getFlag(155)&&(G.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");b.browseId==="SPaccount_playback"&&(I=_.m$(),G.formData||(G.formData={}),G.formData.accountSettingsFormData={flagCaptionsDefaultOff:I.getFlag(65),flagAutoCaptionsDefaultOn:I.getFlag(66),
flagDisableInlinePreview:I.getFlag(186),flagAudioDescriptionDefaultOn:I.getFlag(198)});if(b.browseId==="FEwhat_to_watch"){I=_.m$();var h=I.getFlag(196);I.getFlag(197)&&(G.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:h}}})}b.browseId==="FEwhat_to_watch"&&(b=_.m$().getFlag(186),G.inlineSettingStatus=b?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.m.getRequestConfig=function(G,b){b=b===void 0?{}:b;var I={};if(G=this.JSC$14244_getStoreKey(G,b))I.storeStrategy={storeKey:G,disableCache:b.disableCache};_.U("web_log_browse_ticks_ks")||(I.requestTick="br_s",I.responseTick="br_r");return I};var a0=function(){};
_.M(a0,pP);a0.prototype.getApiPaths=function(){return Er5};
a0.prototype.getExtension=function(G){return _.g(G,dsi)};
a0.prototype.JSC$14237_buildRequest=function(G,b,I){G.legacyYoutubeChannelUsername=I.legacyYouTubeChannelUsername||"";G.legacyYoutubeChannelPassword=I.legacyYouTubeChannelPassword||""};var NU=function(){};
_.M(NU,pP);NU.prototype.getApiPaths=function(){return I4O};
NU.prototype.getExtension=function(G){return _.g(G,VMn)};
NU.prototype.JSC$14237_buildRequest=function(G,b,I){I.recaptcha_response_token&&(G.recaptchaResponseToken=I.recaptcha_response_token);I.channel_id&&(G.channelId=I.channel_id)};var YA=function(){};
_.M(YA,pP);YA.prototype.getApiPaths=function(){return L1A};
YA.prototype.getExtension=function(G){return _.g(G,Qze)};
YA.prototype.JSC$14237_buildRequest=function(G,b,I){b.externalChannelId&&(G.externalChannelId=b.externalChannelId);I.handle&&(G.handleUpdate={handle:I.handle},b.handleEditSource&&(G.handleUpdate.handleEditSource=b.handleEditSource))};var CC=function(){};
_.M(CC,pP);CC.prototype.getApiPaths=function(){return To5};
CC.prototype.getExtension=function(G){return _.g(G,aQO)};
CC.prototype.JSC$14237_buildRequest=function(G,b,I){b.request&&(G.channelId=b.request.channelId);var h;if(I==null?0:(h=I.uploadDefaults)==null?0:h.emojiReactionSet)G.uploadDefaultsRequest||(G.uploadDefaultsRequest={}),G.uploadDefaultsRequest.emojiReactionSet=I.uploadDefaults.emojiReactionSet};var Jt=function(){};
_.M(Jt,pP);Jt.prototype.getApiPaths=function(){return sHJ};
Jt.prototype.getExtension=function(G){return _.g(G,DHQ)};
Jt.prototype.JSC$14237_buildRequest=function(G,b,I){b.externalChannelId&&(G.externalChannelId=b.externalChannelId);b.channelHandleEntityKey&&(G.channelHandleEntityKey=b.channelHandleEntityKey);b.handleEditSource&&(G.handleEditSource=b.handleEditSource);I.handle?G.handle=I.handle:I.name&&(G.name=I.name)};var KC=function(){};
_.M(KC,pP);KC.prototype.getApiPaths=function(){return X_O};
KC.prototype.getExtension=function(G){return _.g(G,Phi)};
KC.prototype.JSC$14237_buildRequest=function(G,b){b.actions?G.actions=b.actions:b.action&&(G.actions=[b.action])};var uc=function(){};
_.M(uc,pP);uc.prototype.getApiPaths=function(){return $VW};
uc.prototype.getExtension=function(G){return _.g(G,_.Aa)};
uc.prototype.JSC$14237_buildRequest=function(G,b){b.token&&(G.continuation=b.token)};var R0=function(){};
_.M(R0,pP);R0.prototype.getApiPaths=function(){return tCJ};
R0.prototype.getExtension=function(G){return _.g(G,_.Aa)};
R0.prototype.JSC$14237_buildRequest=function(G,b){G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";b.token&&(G.fetchCommentsParams={continuation:b.token})};var nC=function(){};
_.M(nC,pP);nC.prototype.getApiPaths=function(){return qCz};
nC.prototype.getExtension=function(G){return _.g(G,i5J)};
nC.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.createReplyParams&&(G.createReplyParams=b.createReplyParams);b.commentText&&(G.commentText=_.NO(b.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)};
_.kV.Object.defineProperties(nC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var OH=function(){};
_.M(OH,pP);OH.prototype.getApiPaths=function(){return jEQ};
OH.prototype.getExtension=function(G){return _.g(G,_.okb)};
OH.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.createCommentParams&&(G.createCommentParams=b.createCommentParams);b.commentText&&(G.commentText=_.NO(b.commentText));b.videoPositionMention&&(G.videoPositionMention=b.videoPositionMention);b.sources&&(G.sources=b.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"&&(b=I.access_restrictions,G.accessRestrictions={restriction:b!==1&&b===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});I.botguard_response&&(G.botguardResponse=I.botguard_response)};
_.kV.Object.defineProperties(OH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var w7=function(){};
_.M(w7,pP);w7.prototype.getApiPaths=function(){return QHJ};
w7.prototype.getExtension=function(G){return _.g(G,yyn)};
w7.prototype.JSC$14237_buildRequest=function(G,b,I){b.commentText&&(G.replyText=_.NO(b.commentText));I.comment_text&&(G.replyText=I.comment_text);G.updateReplyParams=b.updateReplyParams};
_.kV.Object.defineProperties(w7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var EH=function(){};
_.M(EH,pP);EH.prototype.getApiPaths=function(){return xvB};
EH.prototype.getExtension=function(G){return _.g(G,dTn)};
EH.prototype.JSC$14237_buildRequest=function(G,b,I){b.commentText&&(G.commentText=_.NO(b.commentText));I.comment_text&&(G.commentText=I.comment_text);G.updateCommentParams=b.updateCommentParams};
_.kV.Object.defineProperties(EH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pC=function(){};
_.M(pC,pP);pC.prototype.getApiPaths=function(){return f4b};
pC.prototype.getExtension=function(G){return _.g(G,rwn)};
pC.prototype.JSC$14237_buildRequest=function(G,b){b.settings&&(G.settings=b.settings)};var Si=function(){};
_.M(Si,pP);Si.prototype.getApiPaths=function(){return B$n};
Si.prototype.getExtension=function(G){return _.g(G,cwX)};
Si.prototype.JSC$14237_buildRequest=function(G,b){b.channelCreationToken&&(G.channelCreationToken=b.channelCreationToken);b.source&&(G.source=b.source)};var X3=function(){};
_.M(X3,pP);X3.prototype.getApiPaths=function(){return h9b};
X3.prototype.getExtension=function(G){return _.g(G,L8b)};
X3.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;if(I.name&&(I.given_name||I.family_name))G=new _.Wf("channel creation cannot set both GAIA and YouTube names",b),_.K1(G);else{if(b.zeroStepChannelCreationParams){if(!I.comment_text){G=new _.Wf("zero_step_create_comment_params but no zero_step_texts",b);_.K1(G);return}G.zeroStepChannelCreationParams=b.zeroStepChannelCreationParams;G.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(G.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
I.comment_text,I.botguard_response&&(G.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=I.botguard_response))}G.channelCreationToken=b.channelCreationToken;I.given_name&&(G.givenName=I.given_name);I.family_name&&(G.familyName=I.family_name);b.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 $0=function(){};
_.M($0,pP);$0.prototype.getApiPaths=function(G){return(G=this.getExtension(G))&&G.status==="DISLIKE"?k5X:G&&G.status==="INDIFFERENT"?SCB:N$u};
$0.prototype.getExtension=function(G){return _.g(G,_.tx)};
$0.prototype.JSC$14237_buildRequest=function(G,b){b.target&&(G.target=b.target);if(b=this.getParams(b))G.params=b};
$0.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 GH=function(){};
_.M(GH,pP);GH.prototype.getApiPaths=function(){return mvi};
GH.prototype.getExtension=function(G){return _.g(G,NNu)};
GH.prototype.JSC$14237_buildRequest=function(G,b){b.settingItemId&&(G.settingItemId=b.settingItemId);b.stringValue!=null&&b.stringValue!==void 0?G.newValue={stringValue:b.stringValue}:b.intValue?G.newValue={intValue:b.intValue}:b.boolValue!==null&&b.boolValue!==void 0?G.newValue={boolValue:b.boolValue}:(G=new _.Wf("Unknown value type for SetSettingEndpoint.",b),_.K1(G))};var b5=function(){};
_.M(b5,pP);b5.prototype.getApiPaths=function(){return Dv5};
b5.prototype.getExtension=function(G){return _.g(G,lsQ)||void 0};
b5.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.channelIds&&(G.channelIds=b.channelIds);b.siloName&&(G.siloName=b.siloName);b.params&&(G.params=b.params);I.botguardResponse&&(G.botguardResponse=I.botguardResponse);I.feature&&(G.clientFeature=I.feature)};
_.kV.Object.defineProperties(b5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Iq=function(){};
_.M(Iq,pP);Iq.prototype.getApiPaths=function(){return kPz};
Iq.prototype.getExtension=function(G){return _.g(G,Yqi)||void 0};
Iq.prototype.JSC$14237_buildRequest=function(G,b){b.channelIds&&(G.channelIds=b.channelIds);b.siloName&&(G.siloName=b.siloName);b.params&&(G.params=b.params)};
_.kV.Object.defineProperties(Iq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hv=function(G){this.shareClientParamsProvider=G};
_.M(hv,pP);hv.prototype.getApiPaths=function(){return bIv};
hv.prototype.getExtension=function(G){return _.g(G,Lkn)||_.g(G,_.QSn)||_.g(G,vKA)};
hv.prototype.JSC$14237_buildRequest=function(G,b){b.serializedShareEntity&&(G.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var I;if((I=this.shareClientParamsProvider)==null?0:I.clientParams.has(b.clientParamIdentifier)){I=this.shareClientParamsProvider;b=b.clientParamIdentifier;var h=I.clientParams.get(b);h&&I.clientParams.delete(b);G.clientParams=h}}};
hv[QE]=[pLK];var qn=function(){};
_.M(qn,pP);qn.prototype.getApiPaths=function(){return nrn};
qn.prototype.getExtension=function(G){return _.g(G,Jru)};
qn.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var js=function(){};
_.M(js,pP);js.prototype.getApiPaths=function(){return vXi};
js.prototype.getExtension=function(G){return _.g(G,NrJ)};
js.prototype.JSC$14237_buildRequest=function(G,b){b.dismissal&&(G.items=[b.dismissal])};
_.kV.Object.defineProperties(js.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vk=function(){};
_.M(vk,pP);vk.prototype.getApiPaths=function(){return WDn};
vk.prototype.getExtension=function(G){return _.g(G,_.sE)||void 0};
vk.prototype.JSC$14237_buildRequest=function(G,b,I){G.feedbackTokens=[];b.feedbackToken&&G.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||I.cpn)G.feedbackContext={cpn:b};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))};
_.kV.Object.defineProperties(vk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LV=function(){};
_.M(LV,pP);LV.prototype.getApiPaths=function(){return WDn};
LV.prototype.getExtension=function(G){return _.g(G,_.b9)};
LV.prototype.JSC$14237_buildRequest=function(G,b,I){I.feedback_tokens&&(G.feedbackTokens=I.feedback_tokens,G.shouldMerge=!0)};
_.kV.Object.defineProperties(LV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Qv=function(){};
_.M(Qv,pP);Qv.prototype.getApiPaths=function(){return WDn};
Qv.prototype.getExtension=function(G){return _.g(G,BM2)};
Qv.prototype.JSC$14237_buildRequest=function(G,b){b.undoToken&&(G.feedbackTokens=[b.undoToken]);b.isUndoTokenUnencrypted&&(G.isFeedbackTokenUnencrypted=b.isUndoTokenUnencrypted)};
_.kV.Object.defineProperties(Qv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var x0=function(){};
_.M(x0,pP);x0.prototype.getApiPaths=function(){return g7n};
x0.prototype.getExtension=function(G){return _.g(G,HYn)};
x0.prototype.JSC$14237_buildRequest=function(G,b){b.nextEndpoint&&_.g(b.nextEndpoint,_.bx)?G.nextEndpoint={urlEndpoint:_.g(b.nextEndpoint,_.bx)}:b.nextEndpoint&&_.g(b.nextEndpoint,_.Wq)&&(G.nextEndpoint={watchEndpoint:_.g(b.nextEndpoint,_.Wq)});b.setRacy&&(G.setRacy=b.setRacy);b.setControvercy&&(G.setControvercy=b.setControvercy)};var fV=function(G){this.JSC$18229_storeWithEntities=G};
_.M(fV,pP);fV.prototype.getApiPaths=function(){return QEu};
fV.prototype.getExtension=function(G){return _.g(G,eGn)};
fV.prototype.JSC$14237_buildRequest=function(G,b){b.flowId&&(G.flowId=b.flowId);b.targetId&&(G.targetId=b.targetId);b.continuation&&(G.continuation=b.continuation);var I=b.flowStateEntityKey;if(b.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&I&&this.JSC$18229_storeWithEntities){var h;if(b=(h=this.JSC$18229_storeWithEntities.getState())==null?void 0:h.entities)if(h=_.pU(I).entityType,h=_.Gi(b,h,I))G.flowState=h,G.flowStateEntityKey=I}};
_.kV.Object.defineProperties(fV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
fV[QE]=[E4];var A2j=function(){};
_.M(A2j,pP);_.m=A2j.prototype;_.m.getApiPaths=function(){return H$J};
_.m.JSC$14244_getStoreKey=function(){return _.Hq("guide")};
_.m.getRequestConfig=function(){var G=this.JSC$14244_getStoreKey(),b;G&&(b={storeStrategy:{storeKey:G}});return b};
_.m.isNavigationCommand=function(){return!0};
_.m.getExtension=function(G){return _.g(G,_.b9)};
_.m.JSC$14237_buildRequest=function(G){G.fetchLiveState=!0};var TH=function(){};
_.M(TH,pP);TH.prototype.getApiPaths=function(){return p_z};
TH.prototype.getExtension=function(G){return _.g(G,Z5n)};
TH.prototype.JSC$14237_buildRequest=function(){};var Bk=function(){};
_.M(Bk,pP);Bk.prototype.getApiPaths=function(){return SRQ};
Bk.prototype.getExtension=function(G){return _.g(G,ttu)};
Bk.prototype.JSC$14237_buildRequest=function(){};var Ul=function(){};
_.M(Ul,pP);Ul.prototype.getApiPaths=function(){return R6n};
Ul.prototype.getExtension=function(G){return _.g(G,_.Aa)};
Ul.prototype.JSC$14237_buildRequest=function(G,b){b.token&&(G.continuation=b.token);var I,h;G==null||(I=G.context)==null||(h=I.user)==null||delete h.onBehalfOfUser};
Ul.prototype.getRequestConfig=function(G){var b={},I;if(((I=this.getExtension(G))==null?void 0:I.sessionIndex)!==void 0){var h;b={authStrategy:{sessionIndex:(h=this.getExtension(G))==null?void 0:h.sessionIndex}}}return b};var sl=function(){};
_.M(sl,pP);sl.prototype.JSC$14237_getRequest=function(G){var b=this.getExtension(G),I=G="";if(b==null?0:b.popup)G="true";if(b==null?0:b.disableSignout)I="true";b={};return{input:"/getAccountSwitcherEndpoint",requestShell:F8("/getAccountSwitcherEndpoint","GET",(b["X-YouTube-Delegation-Context"]=_.wy("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),b["X-YouTube-Account-Switcher-Popup"]=G,b["X-YouTube-Account-Switcher-Disable-Signout"]=I,b)),innerTubeRequest:{}}};
sl.prototype.getApiPaths=function(){return[]};
sl.prototype.getExtension=function(G){return _.g(G,_.MpO)};
sl.prototype.JSC$14237_buildRequest=function(){};var gb=function(){};
_.M(gb,pP);gb.prototype.JSC$14237_getRequest=function(G){var b="/cross_account_channel_transfer";(G=this.getExtension(G))&&(b=J_a(b,{target_session:G.targetSessionIndex,source_rapt:G.sourceRapt,rapt:G.targetRapt}));return{input:b,requestShell:F8(b,"GET"),innerTubeRequest:{}}};
gb.prototype.getApiPaths=function(){return[]};
gb.prototype.getExtension=function(G){return _.g(G,zlz)};
gb.prototype.JSC$14237_buildRequest=function(){};var Av=function(){};
_.M(Av,pP);Av.prototype.getApiPaths=function(){return xV5};
Av.prototype.isNavigationCommand=function(){return!0};
Av.prototype.getExtension=function(G){return _.g(G,_.b9)};
Av.prototype.JSC$14237_buildRequest=function(G){var b=_.m$().get("gsml","");b&&(G.safetyModeLockerObfuscatedGaiaId=b);G.userInterfaceTheme=_.o_(!0);_.ig()?G.deviceTheme="DEVICE_THEME_SELECTED":_.cAv()?G.deviceTheme="DEVICE_THEME_SUPPORTED":G.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var Mn=function(){};
_.M(Mn,pP);Mn.prototype.getApiPaths=function(){return R6n};
Mn.prototype.getExtension=function(G){return _.g(G,olu)};
Mn.prototype.JSC$14237_buildRequest=function(G,b){if(b&&b.requestType&&(G.requestType=b.requestType,b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var I=b.nextUrl;I&&(_.u8q(I)||cf(I))&&(G.nextNavendpoint={urlEndpoint:{url:I}})}b&&b.channelSwitcherQuery&&(G.channelSwitcherQuery=b.channelSwitcherQuery);b&&b.triggerChannelCreation&&(G.triggerChannelCreation=b.triggerChannelCreation);var h;if(b==null?0:(h=b.contentOwnerConfig)==
null?0:h.externalContentOwnerId)G.contentOwnerConfig=b.contentOwnerConfig;G.callCircumstance=b&&b.requestType&&b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var q,l;b=G==null?void 0:(q=G.context)==null?void 0:(l=q.user)==null?void 0:l.onBehalfOfUser;if(b!==void 0){G.obfuscatedSelectedGaiaId=b;var V,D;G==null||(V=G.context)==null||(D=V.user)==null||delete D.onBehalfOfUser}var k,L;if(q=G==null?void 0:(k=G.context)==null?void 0:(L=k.user)==null?
void 0:L.serializedDelegationContext)G.selectedSerializedDelegationContext=q};var Zo=function(){};
_.M(Zo,pP);Zo.prototype.getApiPaths=function(){return Oon};
Zo.prototype.getExtension=function(G){return _.g(G,xDX)};
Zo.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var tv=function(){};
_.M(tv,pP);tv.prototype.getApiPaths=function(){return IXe};
tv.prototype.getExtension=function(G){return _.g(G,_.z4u)};
tv.prototype.JSC$14237_buildRequest=function(G,b){if(b=b.createBroadcastRequest)G.useMasks=b.useMasks,G.broadcastType=b.broadcastType,G.broadcastSource=b.broadcastSource,G.broadcastMetadata=b.broadcastMetadata,G.broadcastMetadataMask=b.broadcastMetadataMask,G.videoMetadata=b.videoMetadata,G.videoMetadataMask=b.videoMetadataMask,G.liveChatSettingsUpdate=b.liveChatSettingsUpdate,G.liveChatSettingsUpdateMask=b.liveChatSettingsUpdateMask,G.cloneVideoId=b.cloneVideoId,G.cloneWithOverrides=b.cloneWithOverrides,
G.targetEntity=b.targetEntity,G.scheduledRedirectMetadata=b.scheduledRedirectMetadata};var zH=function(){};
_.M(zH,pP);zH.prototype.getApiPaths=function(){return lXz};
zH.prototype.getExtension=function(G){return _.g(G,BSe)};
zH.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.params&&(G.params=b.params);I.questionText&&(G.questionText=I.questionText);I.optionText&&I.optionText.length>0&&(G.optionText=I.optionText)};var oq=function(){};
_.M(oq,pP);oq.prototype.getApiPaths=function(){return VCb};
oq.prototype.getExtension=function(G){return _.g(G,fRb)};
oq.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var i5=function(){};
_.M(i5,pP);i5.prototype.getApiPaths=function(){return sEX};
i5.prototype.getExtension=function(G){return _.g(G,vFW)};
i5.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var Pk=function(){};
_.M(Pk,pP);Pk.prototype.getApiPaths=function(){return AAO};
Pk.prototype.getExtension=function(G){return _.g(G,LSe)};
Pk.prototype.JSC$14237_buildRequest=function(G,b,I){b.params&&(G.params=b.params);b.continuation&&(G.continuation=b.continuation);I.currentPlayerState&&I.currentPlayerState.playerOffsetMs&&(G.currentPlayerState={playerOffsetMs:I.currentPlayerState.playerOffsetMs.toString()})};var db=function(){};
_.M(db,pP);db.prototype.getApiPaths=function(){return MCA};
db.prototype.getExtension=function(G){return _.g(G,kWe)};
db.prototype.JSC$14237_buildRequest=function(G,b,I){b.params&&(G.params=b.params);I.continuation&&(G.continuation=I.continuation);"hidden"in I&&(G.webClientInfo={isDocumentHidden:I.hidden});I.isInvalidationTimeoutRequest&&(G.isInvalidationTimeoutRequest=I.isInvalidationTimeoutRequest);I.invalidationPayload&&(b=ceA(_.Sv(kW(I.invalidationPayload))),G.invalidationPayloadLastPublishAtUsec=AJ(b,2));I.reloadActionPanel&&(G.reloadActionPanel=I.reloadActionPanel);I.fullReload&&(G.fullReload=I.fullReload);
I.currentPlayerState&&(G.currentPlayerState=I.currentPlayerState)};var yv=function(){};
_.M(yv,pP);yv.prototype.getApiPaths=function(){return YCu};
yv.prototype.getExtension=function(G){return _.g(G,TSu)};
yv.prototype.JSC$14237_buildRequest=function(G,b){G.params=b.params};var rb=function(){};
_.M(rb,pP);rb.prototype.getApiPaths=function(){return gXB};
rb.prototype.getExtension=function(G){return _.g(G,yVQ)};
rb.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var FB=function(){};
_.M(FB,pP);FB.prototype.getApiPaths=function(){return Z$5};
FB.prototype.getExtension=function(G){return _.g(G,rVu)};
FB.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var Hk=function(){};
_.M(Hk,pP);Hk.prototype.getApiPaths=function(){return Cjb};
Hk.prototype.getExtension=function(G){return _.g(G,Uju)};
Hk.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var Wk=function(){};
_.M(Wk,pP);Wk.prototype.getApiPaths=function(){return KDe};
Wk.prototype.getExtension=function(G){return _.g(G,sa5)};
Wk.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var aq=function(){};
_.M(aq,pP);aq.prototype.getApiPaths=function(){return XVe};
aq.prototype.getExtension=function(G){return _.g(G,BsQ)};
aq.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var Nn=function(){};
_.M(Nn,pP);Nn.prototype.getApiPaths=function(){return jH5};
Nn.prototype.getExtension=function(G){return _.g(G,_.gFe)};
Nn.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.params&&(G.params=b.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?(b=I.rich_message.text_segments.map(function(h){var q={};h.text&&(q.text=h.text);h.emoji_id&&(q.emojiId=h.emoji_id);return q}),G.richMessage={textSegments:b}):I.message&&(G.message=I.message);
I.currentPlayerState&&(G.currentPlayerState=I.currentPlayerState)};var Y0=function(){};
_.M(Y0,pP);Y0.prototype.getApiPaths=function(){return l4i};
Y0.prototype.getExtension=function(G){return _.g(G,AeQ)};
Y0.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var CV=function(){};
_.M(CV,pP);CV.prototype.getApiPaths=function(){return cPA};
CV.prototype.getExtension=function(G){return _.g(G,ZmJ)};
CV.prototype.JSC$14237_buildRequest=function(G,b,I){b.isUserInitiated&&(G.isUserInitiated=b.isUserInitiated);b.initiationSource&&(G.initiationSource=b.initiationSource);I.locationInfo&&(G.context.client.locationInfo=I.locationInfo)};var Jv=function(){};
_.M(Jv,pP);Jv.prototype.getApiPaths=function(){return JAu};
Jv.prototype.getExtension=function(G){return _.g(G,oqe)};
Jv.prototype.JSC$14237_buildRequest=function(G,b,I){b.metadataUpdateRequest&&(b=b.metadataUpdateRequest,G.encryptedVideoId=b.encryptedVideoId,b.liveChat&&(b=b.liveChat,G.liveChat||(G.liveChat={}),b.performAsExternalChannelId&&(G.liveChat.performAsExternalChannelId=b.performAsExternalChannelId),b.source&&(G.liveChat.source=b.source)));var h;if(I==null?0:(h=I.liveChat)==null?0:h.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 KV=function(){};
_.M(KV,pP);KV.prototype.getApiPaths=function(){return Uvb};
KV.prototype.getExtension=function(G){return _.g(G,_.Che)};
KV.prototype.JSC$14237_buildRequest=function(G,b,I){I.continuation?G.continuation=I.continuation:b.videoId&&(G.videoId=b.videoId);I.clientParams&&(G.clientParams=I.clientParams)};var u5=function(){};
_.M(u5,pP);u5.prototype.getApiPaths=function(){return tCJ};
u5.prototype.getExtension=function(G){return _.g(G,_.pb)};
u5.prototype.JSC$14237_buildRequest=function(G,b){G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";G.fetchCommentsParams={};b.videoId&&(G.fetchCommentsParams.encryptedVideoId=b.videoId);b.postId&&(G.fetchCommentsParams.postId=b.postId);b.externalChannelId&&(G.fetchCommentsParams.externalChannelId=b.externalChannelId);b.linkedCommentId&&(G.fetchCommentsParams.linkedCommentId=b.linkedCommentId);(0,_.Cy.isEmpty)(G.fetchCommentsParams)&&delete G.fetchCommentsParams};var Rq=function(){};
_.M(Rq,pP);Rq.prototype.getApiPaths=function(){return HR};
Rq.prototype.JSC$14237_buildRequest=function(G){G.browseId="FEnotifications_inbox"};
Rq.prototype.getExtension=function(G){return _.g(G,_.b9)};var nV=function(){};
_.M(nV,pP);nV.prototype.getApiPaths=function(){return tCJ};
nV.prototype.JSC$14237_buildRequest=function(G,b){b.signal==="GET_NOTIFICATIONS_MENU"&&(G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");b.ctoken&&(G.ctoken=b.ctoken)};
var Ma1=function(){};
_.M(Ma1,nV);Ma1.prototype.getExtension=function(G){return _.g(G,_.b9)};
var ZT8=function(){};
_.M(ZT8,nV);ZT8.prototype.getExtension=function(G){return _.g(G,yrJ)};var Ol=function(){};
_.M(Ol,pP);Ol.prototype.getApiPaths=function(){return yAe};
Ol.prototype.getExtension=function(G){return _.g(G,_.b9)};
Ol.prototype.JSC$14237_buildRequest=function(){};var wb=function(){};
_.M(wb,pP);wb.prototype.getApiPaths=function(){return uFb};
wb.prototype.getExtension=function(G){return _.g(G,H5n)||void 0};
wb.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params);b.secondaryParams&&(G.secondaryParams=b.secondaryParams)};var El=function(){};
_.M(El,pP);El.prototype.getApiPaths=function(){return R9Q};
El.prototype.getExtension=function(G){return _.g(G,fNb)};
El.prototype.JSC$14237_buildRequest=function(G,b){b.undo&&(G.undo=b.undo);b.serializedOptOut&&(G.serializedOptOut=b.serializedOptOut);b.serializedRecordInteractionsRequest&&(G.serializedRecordInteractionsRequest=b.serializedRecordInteractionsRequest)};var pV=function(){};
_.M(pV,pP);pV.prototype.getApiPaths=function(){return wVX};
pV.prototype.getExtension=function(G){return _.g(G,TsQ)};
pV.prototype.JSC$14237_buildRequest=function(G,b){b.serializedInteractionsRequest&&(G.serializedRecordNotificationInteractionsRequest=b.serializedInteractionsRequest)};var Ss=function(){};
_.M(Ss,pP);Ss.prototype.getApiPaths=function(){return Ixa};
Ss.prototype.getExtension=function(G){return _.g(G,_.ar)};
Ss.prototype.JSC$14237_buildRequest=function(G,b,I){b=b===void 0?{}:b;I=I===void 0?{}:I;b.videoId?G.videoId=b.videoId:b.playlistId&&(G.playlistId=b.playlistId);var h;G.isCrossDeviceDownload=(h=b.isCrossDeviceDownload)!=null?h:!1;var q;if(h=(q=b.offlineWebClientEligibility)!=null?q:I.offlineWebClientEligibility)G.offlineWebClientEligibility=h;var l;if(q=(l=b.preferredFormatType)!=null?l:I.preferredFormatType)G.preferredFormatType=q;var V;if(l=(V=b.lastOfflineQualitySettingsSavedMs)!=null?V:I.lastOfflineQualitySettingsSavedMs)G.lastOfflineQualitySettingsSavedMs=
l;b.params&&(G.params=b.params)};var XB=function(){};
_.M(XB,pP);XB.prototype.getApiPaths=function(){return xF};
XB.prototype.getExtension=function(G){return _.g(G,_.Aa)};
XB.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.token&&(G.continuation=b.token);I.formData&&(G.formData=I.formData)};var $s=function(){};
_.M($s,pP);$s.prototype.getApiPaths=function(){return xF};
$s.prototype.getExtension=function(G){return _.g(G,gqX)};
$s.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;G.continuation=I.continuation};var GY=function(){};
_.M(GY,pP);GY.prototype.getApiPaths=function(){return xF};
GY.prototype.getExtension=function(G){return _.g(G,_.UE)};
GY.prototype.JSC$14237_buildRequest=function(G,b){var I,h=b.panelIdentifier||((I=b.identifier)==null?void 0:I.tag);h&&(G.panelId=h);var q;if((q=b.globalConfiguration)==null?0:q.params){var l;G.params=(l=b.globalConfiguration)==null?void 0:l.params}if(_.U("enable_ai_companion")){var V;b=b.engagementPanelExtras;if(b==null?0:(V=b.aiCompanionPanelExtras)==null?0:V.includeClientConversationId){var D,k;V=(k=(D=_.LL().resolve(_.vf(jkW)))==null?void 0:D("conversations"))==null?void 0:k.get("conversation_id")}else V=
void 0;if(D=V)G.formData=Object.assign({},G.formData,{inputComposerFormData:{conversationId:D}})}};
_.kV.Object.defineProperties(GY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bK=function(){};
_.M(bK,pP);bK.prototype.getApiPaths=function(){return xF};
bK.prototype.getExtension=function(G){return _.g(G,DJu)};
bK.prototype.JSC$14237_buildRequest=function(G,b){b.panelLoadingStrategy&&mqa(G,b.panelLoadingStrategy)};var ID=function(){};
_.M(ID,pP);ID.prototype.getApiPaths=function(){return xF};
ID.prototype.getExtension=function(G){return _.g(G,iPO)};
ID.prototype.JSC$14237_buildRequest=function(G,b){b.loadingStrategy&&mqa(G,b.loadingStrategy)};var h6=function(){};
_.M(h6,pP);h6.prototype.getApiPaths=function(){return xF};
h6.prototype.getExtension=function(G){return _.g(G,_.cH)};
h6.prototype.JSC$14237_buildRequest=function(G,b){b.panelLoadingStrategy&&mqa(G,b.panelLoadingStrategy)};var qg=function(){};
_.M(qg,pP);qg.prototype.getApiPaths=function(){return xF};
qg.prototype.getExtension=function(G){return _.g(G,PD8)};
qg.prototype.JSC$14237_buildRequest=function(G,b){var I,h=(I=b.contentSourcePanelIdentifier)==null?void 0:I.tag;h&&(G.panelId=h);var q;if((q=b.globalConfiguration)==null?0:q.params){var l;G.params=(l=b.globalConfiguration)==null?void 0:l.params}};var j9=function(){};
_.M(j9,pP);j9.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
j9.prototype.getExtension=function(G){return _.g(G,dDA)};
j9.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var lK=function(){};
_.M(lK,pP);lK.prototype.getApiPaths=function(){return BoQ};
lK.prototype.getExtension=function(G){return _.g(G,Fki)};
lK.prototype.JSC$14237_buildRequest=function(G,b){b.externalChannelId&&(G.externalChannelId=b.externalChannelId);b.superChatAction&&(G.superChatAction=b.superChatAction);b.superStickersAction&&(G.superStickersAction=b.superStickersAction)};var mV=function(){};
_.M(mV,pP);mV.prototype.getApiPaths=function(){return fXb};
mV.prototype.getExtension=function(G){return _.g(G,Mte)||_.g(G,FRr)};
mV.prototype.JSC$14237_buildRequest=function(G,b){b.videoIds?G.videoIds=b.videoIds:b.videoId&&(G.videoIds=[b.videoId]);b.playlistId&&(G.playlistId=b.playlistId);b.params&&(G.params=b.params);G.excludeWatchLater=!1};var e9=function(){};
_.M(e9,pP);e9.prototype.getApiPaths=function(){return mVO};
e9.prototype.getExtension=function(G){return _.g(G,_.qj)};
e9.prototype.JSC$14237_buildRequest=function(G,b,I){I.create_playlist_title?G.title=I.create_playlist_title:b.title&&(G.title=b.title);if(I.create_playlist_privacy_status&&typeof I.create_playlist_privacy_status==="number"){a:{var h=I.create_playlist_privacy_status;if(h!==0){if(h===1){h="PUBLIC";break a}if(h===2){h="UNLISTED";break a}}h="PRIVATE"}G.privacyStatus=h}else b.privacyStatus&&(G.privacyStatus=b.privacyStatus);I.create_playlist_description&&(G.description=I.create_playlist_description);b.videoIds&&
(G.videoIds=b.videoIds);b.params&&(G.params=b.params);b.sourcePlaylistId&&(G.sourcePlaylistId=b.sourcePlaylistId)};var Vh=function(){};
_.M(Vh,pP);Vh.prototype.getApiPaths=function(){return DV8};
Vh.prototype.getExtension=function(G){return _.g(G,ryn)};
Vh.prototype.JSC$14237_buildRequest=function(G,b){G.playlistId=b.playlistId};var Dy=function(){};
_.M(Dy,pP);Dy.prototype.getApiPaths=function(){return z9J};
Dy.prototype.getExtension=function(G){return _.g(G,cVz)};
Dy.prototype.JSC$14237_buildRequest=function(G,b){b.playlistId&&(G.playlistId=b.playlistId);b.params&&(G.params=b.params)};var cK=function(){};
_.M(cK,pP);cK.prototype.getApiPaths=function(){return O$8};
cK.prototype.getExtension=function(G){return _.g(G,_.SI)||void 0};
cK.prototype.JSC$14237_buildRequest=function(G,b){b.actions&&(G.actions=b.actions);b.params&&(G.params=b.params);b.playlistId&&(G.playlistId=b.playlistId)};var ks=function(){};
_.M(ks,pP);_.m=ks.prototype;_.m.getApiPaths=function(){return EXJ};
_.m.getExtension=function(G){return _.g(G,_.V4)};
_.m.JSC$14237_buildRequest=function(G,b){b.videoId&&(G.playerRequest={videoId:b.videoId},b.playerParams&&(G.playerRequest.params=b.playerParams),b.racyCheckOk&&(G.playerRequest.racyCheckOk=!!b.racyCheckOk),b.contentCheckOk&&(G.playerRequest.contentCheckOk=!!b.contentCheckOk));b.params&&(G.params=b.params);b.inputType&&(G.inputType=b.inputType);G.disablePlayerResponse=!0};
_.m.getRequestConfig=function(G){var b;(G=this.JSC$14244_getStoreKey(G))&&(b={storeStrategy:{storeKey:G}});_.U("web_log_reels_ticks")&&(b=b||{},b.requestTick="r_wrs",b.responseTick="r_wrr");return b};
_.m.JSC$14244_getStoreKey=function(G){G=this.getExtension(G);if(G!=null&&G.videoId){var b={videoId:G.videoId};G.params&&(b.params=G.params);return _.Hq("reel_item_watch",b)}};var vK=function(){};
_.M(vK,pP);_.m=vK.prototype;_.m.getApiPaths=function(){return pVW};
_.m.getExtension=function(G){return _.g(G,_.V4)};
_.m.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;G.sequenceParams=b.sequenceParams;var h;((h=I)==null?0:h.contentPlaybackContext)&&_.U("web_shorts_prefetch_service_enabled")&&(G.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
_.m.JSC$14244_getStoreKey=function(G){if(_.U("shorts_controller_retrieve_seedless_sequence_v2")&&(G=this.getExtension(G),G==null?0:G.sequenceParams))return _.Hq("reel_watch_sequence",{sequenceParams:G.sequenceParams})};
_.m.getRequestConfig=function(G){G=this.JSC$14244_getStoreKey(G);var b;G&&(b={storeStrategy:{storeKey:G}});b=b||{};b.requestTick="r_wsrs";b.responseTick="r_wsrr";b.processorTick="r_wsrp";return b};
var Lx=function(){};
_.M(Lx,pP);Lx.prototype.getApiPaths=function(){return pVW};
Lx.prototype.getExtension=function(G){return _.g(G,_.Aa)};
Lx.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.token&&(G.continuation=b.token);var h;((h=I)==null?0:h.contentPlaybackContext)&&_.U("web_shorts_prefetch_service_enabled")&&(G.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
Lx.prototype.getRequestConfig=function(G){G=this.JSC$14244_getStoreKey(G);var b;G&&(b={storeStrategy:{storeKey:G}});b=b||{};b.requestTick="r_wsrs";b.responseTick="r_wsrr";b.processorTick="r_wsrp";return b};var Qh=function(){};
_.M(Qh,pP);Qh.prototype.getApiPaths=function(){return LDX};
Qh.prototype.getExtension=function(G){return _.g(G,_.jVe)};
Qh.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.flagAction&&(G.action=b.flagAction);b.flagRequestType&&(G.flagRequestType=b.flagRequestType);b.additionalDetailCheckboxChecked&&(G.additionalDetailCheckboxChecked=b.additionalDetailCheckboxChecked);b.legalCheckboxChecked&&(G.legalCheckboxChecked=b.legalCheckboxChecked);b={};I.flag_issue_type!==void 0&&(b.issue=I.flag_issue_type);I.flag_affiliation!==void 0&&(b.affiliation=I.flag_affiliation);I.flag_full_name&&(b.fullName=I.flag_full_name);
Object.keys(b).length&&(G.legalReportDetails=b);if(I.flag_description||I.text)G.userComments=I.flag_description||I.text;b={};I.minutes!==void 0&&I.seconds!==void 0&&(b.minutes=I.minutes,b.seconds=I.seconds);I.vss_id&&(b.vssId=I.vss_id);Object.keys(b).length&&(G.videoReportDetails=b);b={};I.video_ids&&(b.videoIds=I.video_ids);I.impersonated_channel_url&&(b.impersonatedChannelUrl=I.impersonated_channel_url);Object.keys(b).length&&(G.channelAbuseReportDetails=b)};
_.kV.Object.defineProperties(Qh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xs=function(){};
_.M(xs,pP);xs.prototype.getApiPaths=function(){return UVn};
xs.prototype.getExtension=function(G){return _.g(G,rsu)};
xs.prototype.JSC$14237_buildRequest=function(G,b){b.blockedForKidsContent&&(G.blockedForKidsContent=b.blockedForKidsContent)};var fx=function(){};
_.M(fx,pP);fx.prototype.getApiPaths=function(){return $ve};
fx.prototype.getExtension=function(G){return _.g(G,rmB)};
fx.prototype.JSC$14237_buildRequest=function(G,b,I){G.params=b.params;I.impersonated_channel_url&&(G.impersonatedChannelUrl=I.impersonated_channel_url)};var TY=function(){};
_.M(TY,pP);TY.prototype.getApiPaths=function(){return aXn};
TY.prototype.getExtension=function(G){return _.g(G,_.F4A)};
TY.prototype.JSC$14237_buildRequest=function(G,b){b.items&&(G.items=b.items);b.kidGaiaId&&(G.kidGaiaId=b.kidGaiaId)};var BK=function(){};
_.M(BK,pP);BK.prototype.getApiPaths=function(){return T$A};
BK.prototype.getExtension=function(G){return _.g(G,_.s4Q)};
BK.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params);b.targetId&&(G.targetId=b.targetId)};var U6=function(){};
_.M(U6,pP);U6.prototype.getApiPaths=function(){return hkb};
U6.prototype.getExtension=function(G){return _.g(G,rrX)};
U6.prototype.JSC$14237_buildRequest=function(G,b){b.externalVideoId&&(G.externalVideoId=b.externalVideoId);b.query&&(G.query=b.query);b.sourceTimelines&&(G.sourceTimelines=b.sourceTimelines)};var s6=function(){};
_.M(s6,pP);s6.prototype.getApiPaths=function(){return qO8};
s6.prototype.getExtension=function(G){return _.g(G,_.Aa)||void 0};
s6.prototype.JSC$14237_buildRequest=function(G,b){b.token&&(G.continuation=b.token)};
_.ta5=function(){};
_.M(_.ta5,pP);_.m=_.ta5.prototype;_.m.getApiPaths=function(){return qO8};
_.m.getExtension=function(G){return _.g(G,_.lg)||void 0};
_.m.isNavigationCommand=function(){return!0};
_.m.JSC$14244_getStoreKey=function(G,b){b=b===void 0?{}:b;if(!b.disableCache&&(G=this.getExtension(G))&&G.query)return b={query:G.query},G.params&&(b.params=G.params),_.Hq("search",b)};
_.m.JSC$14237_buildRequest=function(G,b,I){b.query&&(G.query=b.query);b.params&&(G.params=b.params);if(!_.U("web_forward_suggest_stats_killswitch")){var h=_.g(b,qQi);h&&(G.suggestStats=h)}var q;!_.U("kevlar_searchbox_stats_killswitch")&&((q=I.tempData)==null?0:q.gs_l)&&!_.g(b,qQi)&&(G.webSearchboxStatsUrl="/search?oq="+(I.tempData.oq||"")+"&gs_l="+I.tempData.gs_l);var l;if((l=I.tempData)==null?0:l.entityMid)b=G.suggestionSearchParams||{},b.entityMid=I.tempData.entityMid,G.suggestionSearchParams=b;
if(_.U("enable_desktop_vdcbg_components")||_.U("enable_inline_muted_playback_on_web_search"))b=_.m$().getFlag(186),G.inlineSettingStatus=b?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";I.isFromShorts&&_.U("web_pass_shorts_context_to_search")&&(G.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.m.getRequestConfig=function(G,b){b=b===void 0?{}:b;G=this.JSC$14244_getStoreKey(G,b);var I;G&&(I={storeStrategy:{storeKey:G}});_.U("web_log_search_ticks_ks")||(I=I||{},I.requestTick="sr_s",I.responseTick="sr_r");return I};var g3=function(){};
_.M(g3,pP);g3.prototype.getApiPaths=function(){return PjB};
g3.prototype.getExtension=function(G){return _.g(G,nkz)};
g3.prototype.JSC$14237_buildRequest=function(G,b){b.serializedGetSharingProviderDataParams&&(G.serializedGetSharingProviderDataParams=b.serializedGetSharingProviderDataParams)};var A6=function(){};
_.M(A6,pP);A6.prototype.getApiPaths=function(){return dVO};
A6.prototype.getExtension=function(G){return _.g(G,GQA)};
A6.prototype.JSC$14237_buildRequest=function(G,b){b.endpoint&&(G.endpoint=b.endpoint);b.action&&(G.action=b.action)};var Mg=function(){};
_.M(Mg,pP);Mg.prototype.getApiPaths=function(){return cAB};
Mg.prototype.getExtension=function(G){return _.g(G,FUi)};
Mg.prototype.JSC$14237_buildRequest=function(G,b){G.videoId=b.videoId;b.scheduledRedirectMetadataSourceVideoId&&(G.scheduledRedirectMetadata={sourceVideoId:b.scheduledRedirectMetadataSourceVideoId})};var Zy=function(){};
_.M(Zy,pP);Zy.prototype.getApiPaths=function(){return ekQ};
Zy.prototype.getExtension=function(G){return _.g(G,_.WrJ)};
Zy.prototype.JSC$14237_buildRequest=function(G,b){G.params=b.params;G.correctionText=b.correctionText};var t6=function(){};
_.M(t6,pP);t6.prototype.getApiPaths=function(){return $Xr};
t6.prototype.getExtension=function(G){return _.g(G,_.Fln)};
t6.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params);G.searchQuery=b.searchQuery;G.languageCode=b.languageCode;G.kind=b.kind;G.name=b.name;G.externalVideoId=b.externalVideoId};var zY=function(){};
_.M(zY,pP);zY.prototype.getApiPaths=function(){return MFn};
zY.prototype.getExtension=function(G){return _.g(G,$IW)};
zY.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.params=b.params)};var oD=function(G){this.JSC$18504_storeWithEntities=G};
_.M(oD,pP);oD.prototype.getApiPaths=function(){return G5J};
oD.prototype.getExtension=function(G){return _.g(G,boJ)||_.g(G,h6n)};
oD.prototype.JSC$14237_buildRequest=function(G,b,I){I.client_data&&(G.clientData=I.client_data);if(b.commerceActionConfig){var h=b.commerceActionConfig;b=h.actionId;h=h.commerceActionParams;b&&(G.actionId=b);h&&(G.commerceActionParams=h)}else{var q=b.actionId,l=b.commerceActionParams;I=b.entityKeys;q&&(G.actionId=q);l&&(G.commerceActionParams=l);var V;b=(h=this.JSC$18504_storeWithEntities)==null?void 0:(V=h.getState())==null?void 0:V.entities;if(I&&b){h=[];V=_.e(I);for(I=V.next();!I.done;I=V.next())if(q=
I.value,I=_.pU(q).entityType,q=_.Gi(b,I,q))l={},h.push((l[I]=q,l));G.entityMutationPayloads=h}}};
oD.prototype.getRequestConfig=function(G){var b,I=(b=_.g(G,boJ))==null?void 0:b.requestSequenceType;if(I&&G.clickTrackingParams&&I!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:G.clickTrackingParams,sequenceType:I}}};
oD[QE]=[E4];var iK=function(){};
_.M(iK,pP);iK.prototype.getApiPaths=function(){return Z_n};
iK.prototype.getExtension=function(G){return _.g(G,_.ssn)};
iK.prototype.JSC$14237_buildRequest=function(G,b){b.feedbackData&&(G.feedbackData=b.feedbackData);b.params&&(G.itemParams=b.params)};
_.kV.Object.defineProperties(iK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var PK=function(){};
_.M(PK,pP);PK.prototype.getApiPaths=function(){return tFn};
PK.prototype.getExtension=function(G){return _.g(G,grn)};
PK.prototype.JSC$14237_buildRequest=function(G,b,I){I.payments_payload&&(G.paymentsPayload=I.payments_payload);I.offer_params&&(G.offerParams=I.offer_params);b.transactionParams&&(G.transactionParams=b.transactionParams)};var d3=function(){};
_.M(d3,pP);d3.prototype.getApiPaths=function(){return zkB};
d3.prototype.getExtension=function(G){return _.g(G,_.AE8)};
d3.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.buybucketParams&&(G.buybucketData={params:b.buybucketParams},b.stickerParams?G.buybucketData.stickerParams=b.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())));b.donationAmountMicros&&(G.tipAmountMicros=b.donationAmountMicros,
b.tipParams&&(G.tipParams=b.tipParams));b.offerParams&&(G.offerParams=b.offerParams);b.productData&&(G.productData=b.productData);b.transactionParams&&(G.transactionParams=b.transactionParams)};var yh=function(){};
_.M(yh,pP);yh.prototype.getApiPaths=function(){return o7J};
yh.prototype.getExtension=function(G){return _.g(G,tle)};
yh.prototype.JSC$14237_buildRequest=function(G,b){b.updateFopParams&&(G.updateFopParams=b.updateFopParams)};var r3=function(){};
_.M(r3,pP);r3.prototype.getApiPaths=function(){return i_A};
r3.prototype.getExtension=function(G){return _.g(G,_.HH)};
r3.prototype.JSC$14237_buildRequest=function(G,b){b.couponCode&&(G.couponCode=b.couponCode);b.params&&(G.itemParams=b.params)};var Ff=function(){};
_.M(Ff,pP);Ff.prototype.getApiPaths=function(){return P_5};
Ff.prototype.getExtension=function(G){return _.g(G,_.IbQ)};
Ff.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;b.params&&(G.params=b.params);I.ctk&&(G.clientToken=I.ctk)};var HK=function(G){this.JSC$18539_storeWithEntities=G};
_.M(HK,pP);HK.prototype.getApiPaths=function(){return dv8};
HK.prototype.getExtension=function(G){return _.g(G,_.e6)};
HK.prototype.JSC$14237_buildRequest=function(G,b,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));b.transactionParams&&(G.transactionParams=b.transactionParams);b.clientLocationContext&&(G.clientLocationContext=b.clientLocationContext);I.payments_payload&&(G.paymentsPayload=I.payments_payload);
I.funds_guarantee_callback_client_data&&(G.fundsGuaranteeCallbackClientData=I.funds_guarantee_callback_client_data);var h,q;I=(h=this.JSC$18539_storeWithEntities)==null?void 0:(q=h.getState())==null?void 0:q.entities;if(b.entityKeys&&I){h=[];b=_.e(b.entityKeys);for(q=b.next();!q.done;q=b.next()){var l=q.value;q=_.pU(l).entityType;if(l=_.Gi(I,q,l)){var V={};h.push((V[q]=l,V))}}G.entityMutationPayloads=h}};
HK[QE]=[E4];var WK=function(){};
_.M(WK,pP);WK.prototype.getApiPaths=function(){return yPi};
WK.prototype.getExtension=function(G){return _.g(G,MlJ)};
WK.prototype.JSC$14237_buildRequest=function(G,b,I){I=I===void 0?{}:I;I.backend_analytics&&(G.serializedBackendAnalyticsEvent=I.backend_analytics);b.offerParams&&(G.offerParams=b.offerParams)};var aD=function(){};
_.M(aD,pP);aD.prototype.getApiPaths=function(){return i_A};
aD.prototype.getExtension=function(G){return _.g(G,U4s)};
aD.prototype.JSC$14237_buildRequest=function(G,b){b.params&&(G.itemParams=b.params)};var Ng=function(){};
_.M(Ng,pP);Ng.prototype.getApiPaths=function(){return rPJ};
Ng.prototype.getExtension=function(G){return _.g(G,_.e68)};
Ng.prototype.JSC$14237_buildRequest=function(G,b,I){I.resume_time_ms&&(G.resumeTimeMs=I.resume_time_ms);b.pauseParams&&(G.pauseParams=b.pauseParams)};var Ys=function(){};
_.M(Ys,pP);Ys.prototype.getApiPaths=function(){return F1u};
Ys.prototype.getExtension=function(G){return _.g(G,_.ZoJ)};
Ys.prototype.JSC$14237_buildRequest=function(G,b,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 Cx=function(){};
_.M(Cx,pP);Cx.prototype.getApiPaths=function(){return H_B};
Cx.prototype.getExtension=function(G){return _.g(G,_.VlB)};
Cx.prototype.JSC$14237_buildRequest=function(G,b){b.resumeParams&&(G.resumeParams=b.resumeParams)};var J6=function(G,b){this.clientName=G;this.defaultExpirationDelayMs=b};
J6.prototype.put=function(G,b){var I=this,h;return _.c(function(q){h=Object.assign({},b.data);h.key=G;h.clientName=I.clientName;h.expireTimestampMs===void 0&&(h.expireTimestampMs=(Math.round((0,_.Li)())+I.defaultExpirationDelayMs).toString());return q.return(I.putInternal(G,h))})};
J6[QE]=[IP,vpK];var z83=function(){J6.apply(this,arguments);this.JSC$18569_responseStore=new Map};
_.M(z83,J6);_.m=z83.prototype;_.m.get=function(G){var b=this;return _.c(function(I){return I.return(to(b,G))})};
_.m.putInternal=function(G,b){var I=this,h,q,l;return _.c(function(V){h=I.defaultExpirationDelayMs;b.expireTimestampMs&&(h=Number(b.expireTimestampMs)-Math.round((0,_.Li)()),q=_.Te("mweb_override_response_store_expiration_ms"),q>0&&q<h&&(h=q));l=setTimeout(function(){I.remove(G)},h);
I.JSC$18569_responseStore.set(G,{entryData:b,timer:l});_.ip(V)})};
_.m.remove=function(G){var b=this;return _.c(function(I){ou3(b,G);_.ip(I)})};
_.m.removeAll=function(){var G=this;return _.c(function(b){G.JSC$18569_responseStore.forEach(function(I){clearTimeout(I.timer)});
G.JSC$18569_responseStore.clear();_.ip(b)})};
_.m.has=function(G){return!!this.JSC$18569_responseStore.get(G)};
_.m.getKeys=function(){return this.JSC$18569_responseStore.keys()};
var to=function(G,b){if(G=G.JSC$18569_responseStore.get(b))return new _.ZF(G.entryData)},ou3=function(G,b){var I=G.JSC$18569_responseStore.get(b);
I&&(clearTimeout(I.timer),G.JSC$18569_responseStore.delete(b))};var e0O;var c9B=function(G,b,I){J6.call(this,G,b);this.token=I};
_.M(c9B,J6);_.m=c9B.prototype;_.m.get=function(G){var b=this,I,h;return _.c(function(q){return q.nextAddress==1?q.yield(DqO(b.token),2):q.nextAddress!=3?(I=q.yieldResult,q.yield(I.get("ResponseStore",[G,b.clientName]),3)):(h=q.yieldResult)?q.return(new _.ZF(h)):q.return(void 0)})};
_.m.putInternal=function(G,b){var I=this,h;return _.c(function(q){if(q.nextAddress==1)return q.yield(DqO(I.token),2);h=q.yieldResult;return q.yield(h.put("ResponseStore",b),0)})};
_.m.remove=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(DqO(b.token),2);I=h.yieldResult;return h.return(I.delete("ResponseStore",[G,b.clientName]))})};
_.m.removeAll=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return I.yield(DqO(G.token),2);b=I.yieldResult;return I.yield(uT5(b,IDBKeyRange.only(G.clientName)),0)})};
_.m.has=function(){throw Error("ij");};_.Kx=new _.q3("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var iTF=function(G){var b;this.stateTagsData=(b=G.responseContext)==null?void 0:b.stateTags},PGF=function(G){var b;
return((b=G.stateTagsData)==null?void 0:b.stateTagsModified)||[]};var d2W;d2W=function(G){this.JSC$18582_responseStore=G};
_.dP=function(G,b,I){if(!_.U("state_tags_killswitch")){var h=new iTF(b);if(PGF(h).length>0){var q=G.JSC$18582_responseStore.getKeys();q=_.e(q);for(var l=q.next();!l.done;l=q.next()){l=l.value;var V=to(G.JSC$18582_responseStore,l);if(V){var D=_.uP(V);a:{var k=void 0;V=PGF(h);D=((k=(new iTF(D)).stateTagsData)==null?void 0:k.relevantStateTags)||[];k=_.e(D);for(D=k.next();!D.done;D=k.next())if(D=D.value,D.stateTag!=null&&V.includes(D.stateTag)&&D.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){V=
!0;break a}V=!1}V&&ou3(G.JSC$18582_responseStore,l)}}}}var L;h=(L=b.responseContext)==null?void 0:L.maxAgeSeconds;I&&h&&Number(h)>0&&(b=pk(b,h),G.JSC$18582_responseStore.put(I,new _.ZF(b)))};
d2W.prototype.handleResponse=function(G,b){if(!b)throw Error("jj");var I,h;b=(I=b.config)==null?void 0:(h=I.storeStrategy)==null?void 0:h.storeKey;_.dP(this,G,b)};
d2W[QE]=[_.MM];_.oZO=new _.q3("STORE_RESPONSE_PROCESSOR_TOKEN");var y2a=function(G){this.JSC$18585_responseStore=G};
y2a.prototype.handleResponse=function(G,b){if(b.input.match(_.JQ(pVW))){var I;if(G==null?0:(I=G.entries)==null?0:I.length)for(G=_.e(G.entries),b=G.next();!b.done;b=G.next()){I=b.value.command;var h=void 0;b=(h=_.g(I,_.V4))==null?void 0:h.unserializedPrefetchData;if(!I||!b)break;h=(new ks).JSC$14244_getStoreKey(I);var q=_.g(b,j4X),l=void 0,V=void 0,D=void 0,k=void 0,L=void 0,x=void 0,f=((l=q)==null?0:(V=l.responseContext)==null?0:V.maxAgeSeconds)&&Number((D=q)==null?void 0:(k=D.responseContext)==null?
void 0:k.maxAgeSeconds)>0?Number((L=q)==null?void 0:(x=L.responseContext)==null?void 0:x.maxAgeSeconds):600;h&&f>0&&(q=pk(q,f),this.JSC$18585_responseStore.put(h,new _.ZF(q)));I=(new tt).JSC$14244_getStoreKey(I);b=_.g(b,uGA);k=D=V=l=q=h=void 0;L=((h=b)==null?0:(q=h.responseContext)==null?0:q.maxAgeSeconds)&&Number((l=b)==null?void 0:(V=l.responseContext)==null?void 0:V.maxAgeSeconds)>0?Number((D=b)==null?void 0:(k=D.responseContext)==null?void 0:k.maxAgeSeconds):600;I&&L>0&&(b=pk(b,L),this.JSC$18585_responseStore.put(I,
new _.ZF(b)))}}};
y2a[QE]=[_.MM];var r2F=function(G,b){this.innertubeTransportService=G;this.JSC$18588_commandHandler=b};
r2F.prototype.submitForm=function(G,b,I,h,q){var l=this,V,D,k,L,x,f;return _.c(function(T){if(T.nextAddress==1)return V={submitId:G,formData:b,submitBehavior:I,params:h},D=_.JQ(VFO),T.yield(_.qS(l.innertubeTransportService,V,D,q),2);k=T.yieldResult;if(!k)return T.return(Promise.reject(new _.Wf("Submit API returned an undefined response. Submit ID: "+G)));L=k;(f=(x=L)==null?void 0:x.onResponseReceived)&&l.JSC$18588_commandHandler.resolveCommand(f);return T.return(L)})};
r2F[QE]=[_.kn,_.xW];var uK=function(){this.scheduler=_.fW()},FFf;
uK.prototype.pause=function(){throw Error("kj");};
uK.prototype.resume=function(){throw Error("kj");};
uK.prototype.queue=function(G){var b=this,I=_.yO(),h=_.FQ(this.scheduler,function(){try{var q;if(_.Xv.instance)var l=_.Xv.instance;else{var V=new _.Wf("Error: Unexpected uninitialized CommandHandler.");_.K1(V);l=void 0}(q=l)==null||q.resolveCommand(G.command);I.resolve()}catch(D){I.reject(D)}});
I.promise.thenCatch(function(q){q instanceof _.zI&&b.scheduler.cancelJob(h)});
return I.promise};
uK.prototype.queueAll=function(G){var b=new Map;G=_.e(G);for(var I=G.next();!I.done;I=G.next())I=I.value,b.set(I.id,this.queue(I));return b};var WF9=function(G,b){var I=this;this.taskModel=G;this.onTaskCancelledCallback=b;this.resolver=_.yO();G=G.proto.prefetchConfig;if(!G)throw Error("lj");if(!G.prefetchAction)throw Error("mj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(h){h instanceof _.zI&&(HTL(I,I.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),I.onTaskCancelledCallback(I.taskModel.id,I.jobId),I.tick("pcc"));
throw h;});
this.timerName=this.taskModel.id;_.US(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
WF9.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 HTL=function(G,b){_.Tm({prefetchInfo:{cancellationReason:b}},G.timerName)};
WF9.prototype.tick=function(G){_.sS(G,void 0,this.timerName)};var nx=function(){var G=this;this.scheduler=_.fW();this.maxInflightTasks=_.Te("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Te("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new gge;this.onTaskCancelled=function(b,I){I&&G.scheduler.cancelJob(I);aCK(G,b);RD(G,3)}},Nk9=function(){nx.instance||(nx.instance=new nx);
return nx.instance};
nx.prototype.pause=function(){this.prefetchCoordinatorState=0};
nx.prototype.resume=function(){RD(this,0)};
nx.prototype.queue=function(G){G=Y83(this,G);RD(this,1);return G};
nx.prototype.queueAll=function(G){var b=new Map;G=_.e(G);for(var I=G.next();!I.done;I=G.next())I=I.value,b.set(I.id,Y83(this,I));RD(this,1);return b};
var Y83=function(G,b){var I=G.allPrefetchTasks.get(b.id);if(I)return I.cancellablePromise;try{var h=new WF9(b,G.onTaskCancelled)}catch(l){return _.vv(l)}I=h;I.tick("pcq");var q={prefetchInfo:{taskId:I.taskModel.id,isPrefetch:!0,fetchAction:I.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:I.taskModel.command.clickTrackingParams}};I.taskModel.csn&&(q.clientScreenNonce=I.taskModel.csn);_.Tm(q,I.timerName);G.allPrefetchTasks.set(b.id,h);G.drainingHeap.insert(-h.getPriority(),h);return h.cancellablePromise},
RD=function(G,b){G.prefetchCoordinatorState===b&&(G.prefetchCoordinatorState=2,CGa(G))},CGa=function(G){for(var b={};G.prefetchCoordinatorState!==0;b={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(G.inflightPrefetchTasks.size>=G.maxInflightTasks){G.prefetchCoordinatorState=3;break}b.prefetchTask$jscomp$1=G.drainingHeap.remove();if(!b.prefetchTask$jscomp$1){G.prefetchCoordinatorState=1;break}b.taskId$jscomp$3=b.prefetchTask$jscomp$1.taskModel.id;if(G.allPrefetchTasks.has(b.taskId$jscomp$3)){var I=-1;G.coordinatorTimeoutMs>0&&(I=_.FQ(G.scheduler,function(h){return function(){O6(G,h.taskId$jscomp$3,Error("nj"))}}(b),G.coordinatorTimeoutMs));
G.inflightPrefetchTasks.set(b.taskId$jscomp$3,I);if(!G.JSC$18605_commandHandler){if(!_.Xv.instance){O6(G,b.taskId$jscomp$3,Error("oj"));continue}G.JSC$18605_commandHandler=_.Xv.instance}a:switch(b.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":I=1;break a;default:I=0}b.prefetchTask$jscomp$1.jobId=G.scheduler.addJob(function(h){return function(){h.prefetchTask$jscomp$1.tick("pcr");try{G.JSC$18605_commandHandler.resolveCommand(h.prefetchTask$jscomp$1.taskModel.command)||
O6(G,h.taskId$jscomp$3,Error("pj"))}catch(q){O6(G,h.taskId$jscomp$3,q)}}}(b),I,0)}}},J21=function(G,b){(b=aCK(G,b))!=null&&(b.resolver.resolve(),b.tick("pce"));
RD(G,3)},O6=function(G,b,I){(b=aCK(G,b,I))!=null&&(b.resolver.reject(I),b.tick("pcc"),HTL(b,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Te("prefetch_coordinator_error_logging_sampling_rate")&&(I=new _.Wf("Prefetch Command failed.",b.taskModel.id,I.message),_.K1(I)));
RD(G,3)},aCK=function(G,b,I){var h=G.allPrefetchTasks.get(b);
h?((I=G.inflightPrefetchTasks.get(b))&&I!==-1&&G.scheduler.cancelJob(I),G.inflightPrefetchTasks.delete(b),G.allPrefetchTasks.delete(b)):_.RB(new _.Wf("Unexpected missing prefetch task when deleting task.",b,I==null?void 0:I.message));return h};var KFj=function(G,b,I,h,q){this.id=G;this.triggerOn=b;this.cancelOn=I;this.command=h;this.proto=q};
_.kV.Object.defineProperties(KFj.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var uNa=function(){this.JSC$18610_prefetchCoordinator=Nk9();FFf||(FFf=new uK);this.defaultCoordinator=FFf},R85;
uNa.getInstance=function(){R85||(R85=new uNa);return R85};
uNa.prototype.get=function(G){switch(G){case 0:return this.JSC$18610_prefetchCoordinator;default:return this.defaultCoordinator}};var w3=function(){this.coordinatorSupplier=uNa.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},wr9=function(G){var b=_.gL()||void 0,I=Object.keys(nuY)[0];
if(I){var h=G.taskIdByTriggerId.get(I);if(h!=null){G.taskIdByTriggerId.delete(I);I=[];h=_.e(h);for(var q=h.next();!q.done;q=h.next())if(q=G.tasks.get(q.value))b!=="UNDEFINED_CSN"&&(q.csn=b),I.push(q);I=LP2(I);b=[];I=_.e(I);for(h=I.next();!h.done;h=I.next()){q=_.e(h.value);h=q.next().value;q=q.next().value;h=G.coordinatorSupplier.get(h).queueAll(q);h=_.e(h);var l=h.next();for(q={};!l.done;q={taskId$jscomp$9:void 0},l=h.next()){var V=_.e(l.value);l=V.next().value;V=V.next().value;q.taskId$jscomp$9=
l;l=V;b.push(q.taskId$jscomp$9);G.queuedPromisesByTask.set(q.taskId$jscomp$9,_.i1(l,function(D){return function(){OTa(G,D.taskId$jscomp$9)}}(q)))}}}}else _.RB(new _.Wf("Unexpected malformed TriggerEvent."))};
w3.prototype.trigger=function(G,b){var I=this,h=this.tasks.get(G);if(!h||this.queuedPromisesByTask.has(G))return!1;EuD(this,G,h.triggerOn);b!=="UNDEFINED_CSN"&&(h.csn=b);b=this.coordinatorSupplier.get(h.taskType).queue(h);this.queuedPromisesByTask.set(G,_.i1(b,function(){OTa(I,G)}));
return!0};
w3.prototype.cancel=function(G){var b=this.queuedPromisesByTask.get(G);if(b)b.cancel();else return OTa(this,G)};
var OTa=function(G,b){G.queuedPromisesByTask.delete(b);var I=G.tasks.get(b);if(!I)return!1;G.tasks.delete(b);EuD(G,b,I.triggerOn);(I=vLp(I.cancelOn))&&(G=G.taskIdByCancelId.get(I))&&G.delete(b);return!0},EuD=function(G,b,I){(I=Object.keys(I)[0])&&(G=G.taskIdByTriggerId.get(I))&&G.delete(b)};var nuY={taskRegistered:{}},E6=function(){w3.instance||(w3.instance=new w3);this.JSC$18619_taskManager=w3.instance};
_.M(E6,hA);
E6.prototype.resolveCommand=function(G){var b=this,I,h;return _.c(function(q){I=_.g(G,mJA);if((h=I)==null||!h.tasks){var l=new _.Wf("RegisterTasksCommand is missing tasks.");_.K1(l);return q.return()}l=b.JSC$18619_taskManager;for(var V=_.e(I.tasks),D=V.next();!D.done;D=V.next())if(D=D.value,D=D.id&&D.triggerOn&&D.cancelOn&&D.command?new KFj(D.id,D.triggerOn,D.cancelOn,D.command,D):void 0,D){var k=Object.keys(D.triggerOn)[0];if(k){var L=vLp(D.cancelOn);L?(l.tasks.set(D.id,D),l.taskIdByTriggerId.has(k)||l.taskIdByTriggerId.set(k,
new Set),l.taskIdByTriggerId.get(k).add(D.id),l.taskIdByCancelId.has(L)||l.taskIdByCancelId.set(L,new Set),l.taskIdByCancelId.get(L).add(D.id)):_.RB(new _.Wf("Unexpected malformed cancelOn field."))}else _.RB(new _.Wf("Unexpected malformed triggerOn field."))}else _.RB(new _.Wf("Unexpected malformed Task proto."));wr9(b.JSC$18619_taskManager);_.ip(q)})};var pr8={},S8f=(pr8.rendered={priority:_.U("web_adaptive_early_init")?8:0,callback:function(){var G={};G.numCpu=navigator.hardwareConcurrency;var b={};b.ramGb=_.hd.navigator.deviceMemory;var I={staticContext:{}};b.ramGb&&Twr(b.ramGb)&&(I.staticContext.memoryTotalKbytes=(b.ramGb*1048576).toString());G.numCpu&&Twr(G.numCpu)&&(I.staticContext.cpuCores=G.numCpu);if(_.U("web_enable_adaptive_appl_signal")){G={};b=ffv();b=b.length>0?b[0]:void 0;var h,q=(h=_.tZ("rses_dpj"))!=null?h:b==null?void 0:b.tick.rses_dpj,
l;h=(l=_.tZ("rsef_dpj"))!=null?l:b==null?void 0:b.tick.rsef_dpj;q&&Number(q)>0&&h&&Number(h)>0&&(l=Math.ceil(Number(h)-Number(q)),l>0&&(G.loadLatency=l));G.loadLatency&&Twr(G.loadLatency)&&(I.appL=G.loadLatency.toString())}_.C1("applicationStarted",I);BwO=I;_.U("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",UGO)}},pr8);var Xr5=new _.q3("WINDOW_ON_ERROR"),$QF=new _.q3("ERROR_WEIGHT_MAPS"),Gtf=new _.q3("INIT_ERROR");var b0F={},IZa=(b0F.initialized={priority:10,callback:function(G){G.injector.resolve(Gtf)()}},b0F);var hCF=function(){},qMe=function(){var G=_.Ge("meta_logger_impl");
G||(G=new hCF,_.cz("meta_logger_impl",G));return G},jJL=function(){qMe().csiSubscriptionKey=aLp("meta_logging_csi_event",function(G){var b=G.timerName;
if(G=G.timelineData){_.US(b,{startTime:G.startTime},b);G.infos&&_.Tm(G.infos,b);for(var I=_.e(Object.keys(G.ticks)),h=I.next();!h.done;h=I.next())h=h.value,_.sS(h,G.ticks[h],b)}})};
hCF.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&CgO(this.csiSubscriptionKey)};var lZc={},mQ9=(lZc.initialized={priority:10,callback:function(){jJL()}},lZc);var eC8=function(G,b){this.innertubeClientName=G;this.JSC$18630_prefCookie=b};
eC8.prototype.record=function(){if(_.U("web_li_record_binary_eval_tick")){var G=_.tZ("rsef_dpj");var b=_.tZ("rses_dpj");G=G!==void 0&&b!==void 0?Math.round(G-b):void 0;if(G!==void 0&&G>0){b=_.Q4(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var I=this.poolSize;if(!(b.valuesSeen>=1E9)){if(b.valuesSample.length<I)b.valuesSample.push(G);else{var h=Math.floor(Math.random()*(b.valuesSeen+1));h<I&&(b.valuesSample[h]=G)}b.valuesSeen+=1}_.LX(this.storagePrefix+"-"+this.innertubeClientName,
b,2592E3);G=b.valuesSample;b=Qdp(G);G=G.length<this.poolSize?void 0:b<400?1:b<1700?2:3;G!==void 0&&(this.JSC$18630_prefCookie.set(this.cookiePrefix+this.innertubeClientName,G),this.JSC$18630_prefCookie.save())}}else _.xn(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18630_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18630_prefCookie.save()};
eC8[QE]=[IP,JH];var VT5=function(){eC8.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.M(VT5,eC8);var DQe=new _.q3("PAGE_LOAD_TIME_TOKEN");var cf5=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=_.FQ(_.uu,this.disableLoggingAndSendPayload,1E4)};
cf5.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.uu.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),kt8(this))};
var kt8=function(G){var b=_.s3();if(b){var I={webClientComponentsData:{components:Array.from(G.ids,function(h){return{id:h}})}};
G.ids.clear();_.qo().visualElementStateChanged(b,I)}};var v8L=fk({a11y:JOu});_.LTa=TB(v8L)(v8L.a11y,{ephemeralActionSelector:function(G){return G.ephemeralAction||null}});var QJ1=fk({continuation:Oz5});var xQ1=TB(QJ1)(QJ1.continuation,{continuationCommandSelector:function(G){return G.continuationCommand}});var fZa=new _.q3("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var px=function(G,b){this.JSC$18659_storeWithEntities=G;this.JSC$18659_commandHandler=b;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
px.prototype.start=function(){this.JSC$18659_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
px.prototype.observeDownloadingEntities=function(){var G=_.YN2(this.JSC$18659_storeWithEntities.getState().entities).map(function(h){return Cdu(h)});
if(G.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var b={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:b2d()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.RW(_.qP("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18659_commandHandler.resolveCommand(b)}this.downloadingEntities=G}else if(this.downloadingEntities.length){var I=NZd(this.JSC$18659_storeWithEntities.getState().entities).map(function(h){return Cdu(h)});
this.downloadingEntities.filter(function(h){return I.includes(h)}).length&&(G={openPopupAction:OIu()},this.JSC$18659_commandHandler.resolveCommand(G));
this.downloadingEntities=[]}};
px[QE]=[E4,_.xW];var TvF;_.S9=function(G,b,I,h,q,l,V,D){this.JSC$18662_playerApiPromise=G;this.JSC$18662_commandHandler=b;this.JSC$18662_screenManager=I;this.offlineWebClientEligibility=h;this.JSC$18662_prefStorage=q;this.JSC$18662_actionRouter=l;this.entityTypeMap=V;this.JSC$18662_persistentStorePromiseAccessor=D;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
TvF=function(){var G=_.LL().resolve(_.S9),b;_.c(function(I){if(I.nextAddress==1)return G.downloadFailureListenerBound?I.return():I.yield(G.JSC$18662_playerApiPromise,2);b=I.yieldResult;b.addEventListener("onOfflineOperationFailure",function(h){if(h.failureReason&&h.entityKey&&h.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(h.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var q=_.pU(h.entityKey).entityId;q&&G.JSC$18662_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
q)}else if(_.U("kevlar_woffle")){q=G.JSC$18662_commandHandler;var l=q.resolveCommand;h=h.failureReason;var V=_.qP("TRANSFER_FAILED",void 0,"Download failed");h==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(V=_.qP("STORAGE_FULL",void 0,"Storage full"));l.call(q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.RW(V),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
G.downloadFailureListenerBound=!0;_.ip(I)})};
_.S9.prototype.deleteVideo=function(G,b){var I=this,h,q,l;return _.c(function(V){if(V.nextAddress==1)return V.yield(I.JSC$18662_playerApiPromise,2);h=V.yieldResult;l={offlineLoggingData:{offlineDeleteReason:(q=b)!=null?q:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return V.yield(h.queueOfflineAction(G,I.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",l),0)})};
_.S9.prototype.pauseVideoDownload=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(b.JSC$18662_playerApiPromise,2);I=h.yieldResult;I.pauseVideoDownload(G);_.ip(h)})};
_.S9.prototype.resumeVideoDownload=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(b.JSC$18662_playerApiPromise,2);I=h.yieldResult;return h.yield(I.resumeVideoDownload(G),0)})};
_.S9[QE]=[_.wR,_.xW,_.aS,fZa,ns,fm,Neb,oQ];var BvD=new _.q3("DOWNLOAD_STATE_STORE_TOKEN");var UQf=function(G,b){this.JSC$18683_persistentStorePromiseAccessor=G;this.store=b;this.upliftCompletionResolver=new _.G9},Af9=function(){var G=_.LL().resolve(sJW),b;
_.c(function(I){switch(I.nextAddress){case 1:if(G.upliftImplPromise)return I.return(G.upliftImplPromise);_.gm(I,2);G.upliftImplPromise=g88(G);return I.yield(G.upliftImplPromise,4);case 4:G.upliftCompletionResolver.resolve();_.hF(I,3);break;case 2:throw b=_.zf(I),G.upliftCompletionResolver.reject(b),b;case 3:return I.return(G.upliftImplPromise)}})},g88=function(G){var b,I,h;
return _.c(function(q){switch(q.nextAddress){case 1:return _.Sk("LOGGED_IN")?q.yield(G.JSC$18683_persistentStorePromiseAccessor(),2):q.return();case 2:b=q.yieldResult;if(!b)return _.sS("vdeur"),q.return();_.sS("vdeus");_.gm(q,3);return q.yield(MTF(b),5);case 5:I=q.yieldResult;G.store.dispatch(MmO(I));b.observe(function(l){ZRs(G.store,l)});
_.hF(q,4);break;case 3:throw h=_.zf(q),_.sS("vdeur"),h;case 4:_.sS("vdeuc"),_.ip(q)}})},MTF=function(G){var b;
return _.c(function(I){if(I.nextAddress==1)return I.yield(sdd(G),2);b=I.yieldResult;return I.return(b.reduce(function(h,q){if(!q.data||!q.key||!q.entityType)return h;h[q.entityType]||(h[q.entityType]={});h[q.entityType][q.key]=q.data;return h},{}))})};
UQf[QE]=[oQ,_.nR];var sJW;sJW=new _.q3("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Xf=new _.q3("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var $C=function(G,b){this.JSC$18686_persistentStorePromiseAccessor=G;this.transportService=b};
$C.prototype.refresh=function(){var G=this,b,I,h,q;return _.c(function(l){if(l.nextAddress==1)return _.Sk("LOGGED_IN")?l.yield(G.JSC$18686_persistentStorePromiseAccessor(),2):l.return();if(l.nextAddress!=3)return(b=l.yieldResult)?l.yield($qv(b),3):l.return();if((I=l.yieldResult)&&!(Number(I.data.refreshTimestampMs||0)<(0,_.Li)()))return l.return();h={browseId:"SPaccount_downloads"};q=_.JQ(HR);_.qS(G.transportService,h,q).then(function(V){var D;if(b&&(V==null?void 0:(D=V.responseContext)==null?void 0:
D.maxAgeSeconds)!==0){var k;D=(V==null?void 0:(k=V.responseContext)==null?void 0:k.maxAgeSeconds)||604800;k=String(Math.floor((0,_.Li)())+D*1E3);b.put("service:downloads_settings:fallback",new _.ZF({innertubeResponse:V,refreshTimestampMs:k}))}});
_.ip(l)})};
$C[QE]=[_.Kx,_.kn];var G_=function(G,b){this.JSC$18690_playerPromise=G;this.store=b;this.started=!1};
G_.prototype.start=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return G.started?I.return():I.yield(G.JSC$18690_playerPromise,2);b=I.yieldResult;b.addEventListener("onOrchestrationBecameLeader",G.updateIsLeader.bind(G,!0));b.addEventListener("onOrchestrationLostLeader",G.updateIsLeader.bind(G,!1));if(b.isOrchestrationLeader)G.updateIsLeader(b.isOrchestrationLeader());else{var h=new _.Wf("Function isOrchestrationLeader is undefined",{"player.isReady":b.isReady(),"player.playVideo":b.playVideo?
"defined":"undefined"});_.K1(h);G.updateIsLeader(!1)}G.started=!0;_.ip(I)})};
G_.prototype.updateIsLeader=function(G){this.store.dispatch(_.wK({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:G}}))};
G_[QE]=[_.wR,_.nR];var Z01=function(G,b){this.networkStatusManager=G;this.JSC$18693_prefStoragePromise=b;this.redirectsToPreload=["https://youtube.com"]},tT1=function(){var G=_.LL().resolve(Z01),b,I,h,q,l,V;
_.c(function(D){switch(D.nextAddress){case 1:return D.yield(G.JSC$18693_prefStoragePromise,2);case 2:b=D.yieldResult;if(!(I=b)){D.jumpTo(3);break}return D.yield(b.get("yt-redirect-prefetch-id"),4);case 4:I=D.yieldResult;case 3:if(I||!G.networkStatusManager.isNetworkAvailable())return D.return();h={cache:"reload",redirect:"manual"};q=_.e(G.redirectsToPreload);l=q.next();case 5:if(l.done){if(!b){D.jumpTo(0);break}return D.yield(b.set("yt-redirect-prefetch-id",!0,86400),0)}V=l.value;_.gm(D,8);return D.yield(_.hd.fetch(V,
h),10);case 10:_.hF(D,6);break;case 8:_.zf(D);case 6:l=q.next(),D.jumpTo(5)}})};var zC1=function(G){this.JSC$18699_pageManager=G},o8F=function(G){var b=[];
ZK2(["videoId","contentId"],G.JSC$18699_pageManager.data,new Set,b);return b},i0a=function(G){return o8F(G).filter(function(b){return b.contentType==="video"}).map(function(b){return b.contentId}).filter(function(b){return b!==void 0})};
zC1[QE]=[_.Ck];var PI5=new _.q3("PAGE_CONTENT_EXTRACTOR_TOKEN");var bw=function(G){G?(this.container=G,this.containerWasInjected=!0):this.containerWasInjected=!1};
bw.prototype.openDialog=function(G,b,I){var h=this,q;return _.c(function(l){(q=h.container)==null||q.openDialog(G,b,I);_.ip(l)})};
bw.prototype.closeDialog=function(){var G=this,b;return _.c(function(I){(b=G.container)==null||b.closeDialog();_.ip(I)})};
bw.prototype.isDialogOpen=function(){var G=this,b,I;return _.c(function(h){return h.return((I=(b=G.container)==null?void 0:b.isDialogOpen())!=null?I:!1)})};
bw[QE]=[_.vf(qwQ)];_.dQL=new _.q3("POPUP_CONTROLLER_TOKEN");var yfD=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
yfD.prototype.registerPanel=function(G,b){if(G){this.panelMap.set(G,b);var I=this.pendingPanelResolvers.get(G);I&&(I.resolve(b),this.pendingPanelResolvers.delete(G))}};
yfD.prototype.getPanel=function(G){var b=this,I;return _.c(function(h){return(I=b.panelMap.get(G))?h.return(I):h.return(rfF(b,G))})};
var rfF=function(G,b){var I,h;return _.c(function(q){if(I=G.pendingPanelResolvers.get(b))return q.return(I.promise);h=new _.G9;G.pendingPanelResolvers.set(b,h);return q.return(h.promise)})},FTD=function(G,b){yfD.call(this);
var I=this;this.popupController=G;this.persistentPanelController=b;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return I.panelMap.size}}};
_.M(FTD,yfD);_.m=FTD.prototype;_.m.getReloadContinuation=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(b.getPanel(G),2);I=h.yieldResult;return h.return(I.getReloadContinuation())})};
_.m.showPanel=function(G){var b=this,I,h,q,l,V,D,k,L,x,f,T,B;return _.c(function(A){if(A.nextAddress==1){I=G;h=I.identifier;q=I.panelContents;l=I.config;V=I.extras;D=I.panelUpdatableFields;k=I.updatePanelContinuationData;L=G.target;k&&b.updatePanelContinuationDatas.set(h,k);if((x=l)==null?0:(f=x.engagementPanelPopupPresentationConfig)==null?0:f.popupType)if(T=l.engagementPanelPopupPresentationConfig.popupType,L===void 0&&(L=document.body),T==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!b.persistentPanelController)return _.RB(new _.Wf("Persistent panel controller is not available.")),
A.return();var t=b.persistentPanelController;t.persistentPanelIdentifiers.has(h)||(t.persistentPanelWrapper.appendChild(t.engagementPanelElement({panelIdentifier:h},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),t.persistentPanelIdentifiers.add(h));a:switch(_.PH.currentPageSubTypeSelector(t.store.getState())){case "watch":var y="WATCH";break a;default:y="APP"}_.H0c(t,y);t.store.dispatch(u$z(!0))}else{if(T==="PANEL_POPUP_TYPE_DIALOG"||T==="PANEL_POPUP_TYPE_DROPDOWN"){t=A.return;y=b.popupController;
var F=y.openPopup;a:switch(T){case "PANEL_POPUP_TYPE_DIALOG":var W="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":W="DROPDOWN";break a;default:throw Error("rj`"+T);}return t.call(A,F.call(y,h,q,W,L))}_.RB(new _.Wf("Popup type "+T+" not supported in PanelController."))}return A.yield(b.getPanel(h),2)}B=A.yieldResult;(q||D)&&B.updatePanel(q,!1,V,D);B.showPanel(V);_.ip(A)})};
_.m.hidePanel=function(G){var b=this,I,h,q,l;return _.c(function(V){if(V.nextAddress==1)return I=G,h=I.identifier,V.yield(b.getPanel(h),2);q=V.yieldResult;q.hidePanel();b.popupController.closePopup(h);(l=b.persistentPanelController)!=null&&l.persistentPanelIdentifiers.has(h)&&l.store.dispatch(u$z(!1));_.ip(V)})};
_.m.isVisible=function(G,b){var I=this,h;return _.c(function(q){if(q.nextAddress==1)return b&&!I.panelMap.has(G)?q.return(!1):q.yield(I.getPanel(G),2);h=q.yieldResult;return q.return(h.isVisible())})};
_.m.updatePanel=function(G){var b=this,I,h,q,l,V,D,k,L;return _.c(function(x){if(x.nextAddress==1){I=G;h=I.identifier;q=I.panelContents;l=I.shouldFocus===void 0?!1:I.shouldFocus;V=I.extras;D=I.panelUpdatableFields;k=I.updatePanelContinuationData;if(!q&&!D)return x.return();k&&b.updatePanelContinuationDatas.set(h,k);_.U("enable_ai_companion")&&h==="PAai_companion"&&_.eK.remove("youchat_messages_section");return x.yield(b.getPanel(h),2)}L=x.yieldResult;L.updatePanel(q,l,V,D);q&&_.U("enable_ai_companion")&&
b.registerPanelContent(h,q);_.ip(x)})};
_.m.registerPanelContent=function(G,b){G&&this.panelContentMap.set(G,b)};
_.m.unregisterPanelContent=function(G){this.panelContentMap.delete(G)};
_.m.getPanelContent=function(G){return this.panelContentMap.get(G)};
_.m.getUpdatePanelContinuationData=function(G){return this.updatePanelContinuationDatas.get(G)};
FTD[QE]=[_.dQL,_.vf(_.RF)];var It=function(G,b){this.innertubeTransportService=G;this.JSC$18718_screenManager=b},WTW=function(G){var b;
return!((b=G.panelLoadingStrategy)==null||!b.requestTemplate)};
It.prototype.makeRequest=function(G){var b=this,I,h;return _.c(function(q){switch(q.nextAddress){case 1:if(!WTW(b)){q.jumpTo(2);break}_.gm(q,3);return q.yield(_.dR(b.innertubeTransportService,G),5);case 5:return I=q.yieldResult,I?q.return(I.content):(_.K1(Error("sj")),q.return(void 0));case 3:h=_.zf(q),_.K1(h);case 2:return q.return(void 0)}})};
It.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
It.prototype.execute=function(G){var b=this,I,h,q,l,V,D,k,L,x,f;return _.c(function(T){if(T.nextAddress==1){I=G;h=I.data;q=I.fallbackVe;l=I.parentVe;V=I.createScreenConfig;D=I.renderFn;k=I.command;b.panelLoadingStrategy=h;var B,A,t=((B=b.panelLoadingStrategy)==null?0:B.screenVe)?(A=b.panelLoadingStrategy)==null?void 0:A.screenVe:q;t&&_.oa(b.JSC$18718_screenManager,t,l,V);return(L=b.getContent())?T.yield(D(L),2):T.jumpTo(2)}return T.nextAddress!=4?WTW(b)?T.yield(b.makeRequest(k),4):T.return():(f=x=
T.yieldResult)?T.yield(D(f),0):T.return()})};
It[QE]=[_.kn,_.aS];var aZF;aZF=function(G,b){this.engagementPanelElement=G;this.store=b;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%"};
_.H0c=function(G,b){var I=G.persistentPanelContainerMap.get(b);I?I.contains(G.persistentPanelWrapper)||(G=G.persistentPanelWrapper,_.YQ=!0,_.CG.set(G,!0),I.insertBefore(G,null),_.CG.delete(G),_.YQ=!1):_.RB(new _.Wf("Persistent panel container not found for surface "+b+"."))};
aZF[QE]=[jp5,_.nR];var hm=function(){var G=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.onHoverEntered=function(){G.isHovered=!0;var b;(b=G.hoverEnterCallback)==null||b.call(G)};
this.onHoverLeft=function(){G.isHovered=!1;var b;(b=G.hoverLeaveCallback)==null||b.call(G)}};
hm.prototype.getContainer=function(){return _.Kv()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
hm.prototype.openSheet=function(G,b){var I=this,h,q,l,V,D,k,L;return _.c(function(x){switch(x.nextAddress){case 1:return h={stack:[],error:void 0,hasError:!1},_.gm(x,2,3),q=mT,x.yield(I.isSheetOpen(),5);case 5:l=x.yieldResult;BXQ(h,BhO(q));if(!l){x.jumpTo(6);break}if(!I.shouldPreventClosingWhileHovered){if(!_.U("delay_sheet_open_killswitch")){if(_.U("web_close_sheet_if_same_target_killswitch")&&b&&I.currentTarget===b)return(V=I.getContainer())==null||V.closeSheet(),x.return();I.pendingData={data:G,
target:xbK(I,b)};return x.return()}x.jumpTo(6);break}if(I.currentTarget===b)return x.return();NvY(I);return x.yield((D=I.getContainer())==null?void 0:D.closeSheet(),6);case 6:if(G.viewModel&&(G={viewModel:G.viewModel,sheetPosition:G.sheetPosition}),(k=I.getContainer())==null||k.openSheet(G,b),I.currentTarget=b,I.shouldPreventClosingWhileHovered){var f;(f=I.currentTarget)==null||f.addEventListener("mouseenter",I.onHoverEntered);var T;(T=I.currentTarget)==null||T.addEventListener("mouseleave",I.onHoverLeft);
var B;f=(B=I.getContainer())==null?void 0:B.getSheetContainerElement();f==null||f.addEventListener("mouseenter",I.onHoverEntered);f==null||f.addEventListener("mouseleave",I.onHoverLeft);I.onHoverEntered()}case 3:_.Mz(x);Uru(h);_.tj(x,0);break;case 2:L=_.zf(x),h.error=L,h.hasError=!0,x.jumpTo(3)}})};
hm.prototype.closeSheet=function(){var G=this;return _.c(function(b){return G.hideDelayMs?(setTimeout(function(){return _.c(function(I){return I.yield(YMF(G),0)})},G.hideDelayMs),b.return()):b.yield(YMF(G),0)})};
var YMF=function(G){var b;return _.c(function(I){if(I.nextAddress==1){if(G.shouldPreventClosingWhileHovered){if(G.isHovered)return I.return();NvY(G)}return I.yield((b=G.getContainer())==null?void 0:b.closeSheet(),2)}if(I.nextAddress!=4)return G.shouldPreventClosingWhileHovered=!1,G.currentTarget=void 0,!G.pendingData||_.U("delay_sheet_open_killswitch")?I.jumpTo(0):I.yield(G.openSheet(G.pendingData.data,G.pendingData.target),4);G.pendingData=void 0;_.ip(I)})};
hm.prototype.isSheetOpen=function(){var G=this,b,I;return _.c(function(h){return h.return((I=(b=G.getContainer())==null?void 0:b.isSheetOpen())!=null?I:!1)})};
var NvY=function(G){var b;(b=G.currentTarget)==null||b.removeEventListener("mouseenter",G.onHoverEntered);var I;(I=G.currentTarget)==null||I.removeEventListener("mouseleave",G.onHoverLeft);var h;b=(h=G.getContainer())==null?void 0:h.getSheetContainerElement();b==null||b.removeEventListener("mouseenter",G.onHoverEntered);b==null||b.removeEventListener("mouseleave",G.onHoverLeft)},xbK=function(G,b){if(!_.U("web_parent_target_for_sheets"))return b;
var I,h;return(h=(I=G.getContainer())==null?void 0:I.getParentTarget(b))!=null?h:b};var SN=window.documentPictureInPicture;var FP2=_.WP(["dark"]),HKd=_.WP(["system-icons"]),WPO=_.WP(["typography"]),ajB=_.WP(["lang"]),NDp=_.WP(["style"]),Ptp=_.WP(["dir"]),dqO=_.WP(["rounded-container"]),y9O=_.WP(["style"]),Ctu=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],qN=function(G){this.JSC$18736_clientRoot=G;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
qN.prototype.openWindow=function(G){var b=this,I,h;return _.c(function(q){switch(q.nextAddress){case 1:if(!window.documentPictureInPicture||!_.zq()||b.currentPipWindow)return q.return(!1);_.gm(q,2);return q.yield((h=SN?SN:null)==null?void 0:h.requestWindow(G),4);case 4:I=q.yieldResult;_.hF(q,3);break;case 2:return _.zf(q),q.return(!1);case 3:if(!I)return q.return(!1);I.addEventListener("pagehide",function(){CIL(b)});
I.addEventListener("resize",b.handlePipWindowResize);YFv(I);KPj(I);L6B(I);return q.yield(iKv(I),5);case 5:if(!tYd())return q.return(!1);b.currentPipWindow=I;b.JSC$18736_eventForwarder=J9q(I,b.JSC$18736_clientRoot);b.pipWindowResizeDelay=new _.QR(function(){b.currentPipWindow&&_.wL(b.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Pa(b.currentPipWindow.innerWidth,b.currentPipWindow.innerHeight)])},I);
b.pipWindowResizeDelay.start();return q.return(!0)}})};
qN.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var CIL=function(G){if(G.currentPipWindow){var b,I;(b=SN?SN:null)==null||(I=b.window)==null||I.close();G.currentPipWindow.removeEventListener("resize",G.handlePipWindowResize);var h;(h=G.pipWindowResizeDelay)==null||h.dispose();G.pipWindowResizeDelay=void 0;var q;(q=G.JSC$18736_eventForwarder)==null||q.stop();G.JSC$18736_eventForwarder=void 0;b=_.e(G.onCloseCallbacks);for(I=b.next();!I.done;I=b.next())I=I.value,I();G.onCloseCallbacks=[];G.currentPipWindow=null}};
qN.prototype.getWindow=function(){return this.currentPipWindow};
var Jfa=function(G,b){var I;(I=G.onCloseCallbacks)==null||I.push(b)};
qN.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.zq()};
_.kV.Object.defineProperties(qN.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
qN[QE]=[s2u];var KTf=new _.q3("PICTURE_IN_PICTURE_CONTROLLER");var uxO=function(G,b){this.lengthY=this.lengthX=0;this.lengthX=b.x-G.x;this.lengthY=b.y-G.y};var uqD=function(){},zLL=function(G,b){var I;
(I=G.headerElement)==null||I.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:b}))};var RC8=function(){};
RC8.prototype.openPopup=function(G,b,I,h){var q=this,l;return _.c(function(V){if(!q.container)return V.return();l={openPopupAction:{popup:b,popupType:I,uniqueId:G}};return V.return(q.container.handleOpenPopupAction(l,h))})};
RC8.prototype.closePopup=function(G){this.container&&this.container.closePopup(G)};var n83=function(){this.openTunnels=new Map},Mrr=function(G,b,I){if(pSp(I)){var h=_.XN(I,"gclid");
I={handleEvent:function(D){b&&!b.closed&&typeof b.postMessage==="function"&&D&&D.origin&&D.source===b&&D.data&&D.data.action==="gcl_setup"&&b.postMessage(Object.assign({},{action:"gcl_transfer"},h&&{gclid:h},{gadSource:2}),D.origin)}};
for(var q=_.e(G.openTunnels),l=q.next();!l.done;l=q.next()){var V=_.e(l.value);l=V.next().value;V=V.next().value;if(l.closed)try{window.removeEventListener("message",V),G.openTunnels.delete(l)}catch(D){_.K1(D)}}b&&G.openTunnels.size<15&&(G.openTunnels.set(b,I),window.addEventListener("message",I))}};var O0c=function(){this.clientParams=new Map},lKj=function(G){for(var b=_.e(G.clientParams.keys()),I=b.next();!I.done;I=b.next())I=I.value,I.startsWith("yt-mini-app-share")&&G.clientParams.delete(I)};var w$a=function(G,b){_.FN.call(this);var I=this;this.shortsController=G;this.storeWithShorts=b;G=_.Nj(this.storeWithShorts,_.OhX,function(h){if(h){var q,l=(q=I.shortsController.getRoot())==null?void 0:q.getPlayer(),V;(q=(V=I.shortsController.alternativePlayerContainerElement)==null?void 0:V.getPlayerContainer())&&(l==null||l.appendTo(q))}else{var D;V=(D=I.shortsController.alternativePlayerContainerElement)==null?void 0:D.getPlayerContainer().querySelector("#player");q=I.shortsController.activeIndex;
(D=(l=I.shortsController.getRoot())==null?void 0:l.querySelector('ytd-reel-video-renderer[id="'+q+'"] #player-container'))&&(V==null||V.appendTo(D,void 0,!0))}});
this.addOnDisposeCallback(G)};
_.M(w$a,_.FN);var jp=function(G,b,I,h){var q=this;this.storeWithShorts=G;this.ephemeralResponseStore=b;this.innertubeTransportService=I;this.innertubeTransportLoader=h;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.m2(_.nM);this.isShortsPipActive=_.m2(_.O2);this.nextReelVe=_.Xs(56921);this.prevReelVe=_.Xs(56922);this.backButtonVe=_.Xs(22156);this.TEST_ONLY={getActiveModules:function(){return q.activeModules}}},E8a=function(G){G.unsubscribeFromStore=
_.Nj(G.storeWithShorts,_.nRO,function(b){G.initOrDisposeActiveModules(b);
!b&&G.storeWithShorts.getState().shorts.isFullscreen&&(_.uU(document.documentElement),G.storeWithShorts.dispatch(_.wIe(!1)))});
G.initOrDisposeActiveModules(_.nRO(G.storeWithShorts.getState()))},Ql1,x21,p$8;
jp.prototype.initOrDisposeActiveModules=function(G){G?this.activeModules.push(new w$a(this,this.storeWithShorts)):(_.DC(this.activeModules),this.activeModules.length=0)};
jp.prototype.registerRootElement=function(G){this.rootElement=G;E8a(this)};
jp.prototype.getRoot=function(){return this.rootElement};
jp.prototype.setActiveIndex=function(G){this.activeIndex=G};
_.D2L=function(G,b){var I,h,q,l,V,D,k;return _.c(function(L){switch(L.nextAddress){case 1:return I=new ks,(h=I.JSC$14244_getStoreKey(b))&&G.ephemeralResponseStore.has(h)?L.yield(G.ephemeralResponseStore.get(h),7):L.yield(p$8(G,b),4);case 4:q=L.yieldResult;if(!h){L.jumpTo(3);break}l=pk(q,3600);return L.yield(G.ephemeralResponseStore.put(h,new _.ZF(l)),3);case 7:q=(V=L.yieldResult)==null?void 0:_.uP(V);case 3:return((D=q)==null?0:D.replacementEndpoint)&&(k=_.g(q.replacementEndpoint,_.V4))&&q.sequenceContinuation&&
(k.sequenceParams=q.sequenceContinuation),L.return(q)}})};
Ql1=function(G,b){b=(new vK).JSC$14244_getStoreKey(b);return!!b&&G.ephemeralResponseStore.has(b)};
x21=function(G,b,I){var h,q,l,V,D;_.c(function(k){if(k.nextAddress==1){h=new vK;q=h.JSC$14244_getStoreKey(b);if(!q)return k.return();if(I.reelWatchSequenceResponse)return l=pk(I.reelWatchSequenceResponse,3600),G.ephemeralResponseStore.put(q,new _.ZF(l)),k.jumpTo(0);if(!G.ephemeralResponseStore.has(q))return k.jumpTo(0);D=I;return k.yield(G.ephemeralResponseStore.get(q),4)}D.reelWatchSequenceResponse=(V=k.yieldResult)==null?void 0:_.uP(V);_.ip(k)})};
p$8=function(G,b){var I=I===void 0?{}:I;var h,q,l;return _.c(function(V){switch(V.nextAddress){case 1:if(G.innertubeTransportService){h=G.innertubeTransportService;V.jumpTo(2);break}if(!G.innertubeTransportLoader){_.Xj(Error("uj"));V.jumpTo(2);break}return V.yield(G.innertubeTransportLoader(),4);case 4:h=V.yieldResult;case 2:return V.yield((q=h)==null?void 0:_.dR(q,b,I),5);case 5:return l=V.yieldResult,V.return(l)}})};
_.kV.Object.defineProperties(jp.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
jp[QE]=[h8e,_.MM,_.vf(_.kn),_.vf(oMJ)];_.SM9=new _.q3("STORAGE_MANAGER_TOKEN");var QKs=["touchmove","scroll"];var X$3=!1;var IHd=!1;var L3s={onSpanEnd:function(G){G.parentId==null&&(X$3||(Gnj(),setInterval(Gnj,6E5),X$3=!0),hUr(G,"web_tracing_action"))}};var eUv=URL.createObjectURL;var knX,$cF={traceAllComponents:_.U("web_tracing_all_components"),exportToCsi:_.U("web_tracing_export_to_csi"),enabledSpansArray:_.sG("web_tracing_enabled_spans"),exportToDevTools:_.U("web_tracing_export_to_devtools"),maxBreadcrumbs:_.Te("tel_max_breadcrumbs",0)};knX=new m7O($cF);var vJO=_.U("web_shorts_enable_tracing");var GF5=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},b3e;
GF5.prototype.enqueue=function(G,b){b===1?this.currentPersistentToast=G:this.queue.push(G);this.openToast()};
GF5.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())};_.lw=new _.q3("TOAST_MANAGER_TOKEN");var Ip5=new _.q3("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var hT9=new _.q3("VIEW_TRANSITION_COORDINATOR_TOKEN");var qBc=function(G){this.config=G;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;G=_.e(G.transitionConfigs);for(var b=G.next();!b.done;b=G.next())b=_.e(b.value).next().value,this.transitionTasksMap.set(b,[])};
qBc.prototype.registerElement=function(G,b,I){I=I===void 0?!1:I;for(var h=_.e(Object.keys(b)),q=h.next(),l={};!q.done;l={viewTransitionName:void 0},q=h.next()){q=q.value;l.viewTransitionName=b[q];var V=this.elementTasksMap.get(G),D=void 0;if((D=V)==null?0:D.has(q)){_.u6(new _.Wf("Element already registered for transition",G.tagName,q));break}V=V||new Map;V.set(q,{beforeTransition:function(k){return function(){G.style.viewTransitionName=k.viewTransitionName}}(l),
afterTransition:function(){G.style.viewTransitionName&&(G.style.viewTransitionName="")},
runOnce:I});this.elementTasksMap.set(G,V)}};
_.Za=function(G,b){var I=G.elementTasksMap.get(b);I&&(I.clear(),I.size===0&&G.elementTasksMap.delete(b))};
qBc[QE]=[Ip5];var lp3=_.C(function(G){var b=_.ee("yt-expandable-metadata-header-view-model"),I=_.Xu(function(h){if(!_.TZ(_.fM(h),b.value,["A".toString(),"BUTTON".toString()])){var q;(q=G.expandedCallback)==null||q.call(G,!1)}});
return _.v("yt-expandable-metadata-header-view-model",{el:b,class:"ytExpandableMetadataHeaderViewModelHost"},_.v(_.Q,{cond:function(){return G.expanded()},
then:function(){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":I},_.v("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.v(_.Q,{cond:function(){return G.data().expandedTitleImage},
then:function(h){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.v(_.Fu,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:h}))}}),_.v("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.v("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.v(_.IS,{text:function(){return G.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.v(_.IS,{text:function(){return G.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.v(_.IS,{text:function(){return G.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.v("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.v(_.VX,{data:function(){return G.data().infoButton}},{buttonViewModel:_.sQ}),_.v(_.VX,{data:function(){return G.data().collapseButton}},{buttonViewModel:function(h){return _.v(_.sQ,{data:h.data,
onClick:function(){var q;(q=G.expandedCallback)==null||q.call(G,!1)}})}})))},
else:function(){return _.v(jjF,Object.assign({},G))}}))},"og"),mcj=_.C(function(G){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.v(_.Q,{cond:function(){return G.data().collapsedLabelImage},
then:function(b){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.v(_.Fu,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b,alt:""}))}}),_.v(_.IS,{text:function(){return G.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"pg"),jjF=_.C(function(G){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Xu(function(){var b;return void((b=G.expandedCallback)==null?void 0:b.call(G,!0))})},_.v("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.v(_.Q,{cond:function(){return G.data().collapsedImage},
then:function(b){return _.v("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.v(_.Fu,{height:20,preserveHeight:!0,preserveWidth:!0,data:b,alt:""}))}}),_.v(_.Q,{cond:function(){return G.data().showLeadingCollapsedLabel},
then:function(){return _.v(mcj,Object.assign({},G))}}),_.v("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.v(_.IS,{text:function(){return G.data().collapsedTitle}}))),_.v("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.v(_.Q,{cond:function(){return!G.data().showLeadingCollapsedLabel},
then:function(){return _.v(mcj,Object.assign({},G))}}),_.v(_.VX,{data:function(){return G.data().infoButton}},{buttonViewModel:_.sQ}),_.v(_.VX,{data:function(){return G.data().expandButton}},{buttonViewModel:function(b){return _.v(_.sQ,{data:b.data,
onClick:function(){var I;(I=G.expandedCallback)==null||I.call(G,!0)}})}})))},"qg");_.eTW=_.C(function(G){var b=_.e(_.bk(function(){return G.data().initiallyExpanded})),I=b.next().value,h=b.next().value,q,l=(q=_.LL().resolve(_.vf(_.Pv)))==null?void 0:q(),V=function(){var D=G.data().colorData;
if(D)return l?D==null?void 0:D.darkColorPalette:D==null?void 0:D.lightColorPalette};
return _.v("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Ir({"background-color":function(){var D=V();return(D==null?0:D.section2Color)?_.so(D.section2Color):""}})},_.v(_.VX,{data:function(){return G.data().header}},{expandableMetadataHeaderViewModel:function(D){return _.v(lp3,{data:D.data,
expanded:function(){return!!I()},
expandedCallback:function(k){h(k)}})}}),_.v(_.Q,{cond:function(){return I()},
then:function(){return _.v("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.v(_.VX,{data:function(){return G.data().expandedContent}},{horizontalShelfViewModel:function(D){return _.v(_.qF,{data:D.data,
includeMargin:!0,forceNarrowLayout:!0,palette:V})},
videoSummaryContentViewModel:function(D){return _.v(qkz,{data:D.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(D){return _.v(_.tE,{data:D.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(D){return _.v(_.xa5,{data:D.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.v(_.VX,{data:function(){return G.data().expandedBottomButtons}},{buttonViewModel:function(D){return _.v("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.v(_.sQ,{data:D.data}))}}))}}))},"rg");var Vk1=_.C(function(G){var b=G.text;var I=G.marqueeSpacing;var h=G.scrollDelay;var q=G.scrollDuration;var l=G.enableMarqueeScroll;G=G.large;var V=_.e(_.ZZ(!1,void 0,"WyNYFf")),D=V.next().value,k=V.next().value,L=_.e(_.ZZ(0,void 0,"OoTdhe"));V=L.next().value;var x=L.next().value,f=_.ee("marquee-scroll");L=_.ee("div");var T=_.ee("span"),B=_.LL().resolve(_.yB);_.K0(function(){if(l()){var y=T.value.getBoundingClientRect().width,F=f.value.getBoundingClientRect().width;if(y>F){var W=(B==="ltr"?-1:1)*(y+
(I?I():16));Promise.resolve().then(function(){k(!0);x(W)})}}},"dv0Anf");
var A={},t={};return _.v("marquee-scroll",{class:_.pG("ytMarqueeScrollHost",(A.ytMarqueeScrollHostLarge=G,A)),el:f},_.v("div",{id:"marquee-scroll-inner-container",class:_.pG("ytMarqueeScrollInnerContainer",(t.ytMarqueeScrollAnimationEnabled=function(){return D()},t)),
el:L,style:_.Ir({gap:I?(0,_.Xr)(I):"16px","animation-duration":q?V2n(q):"16s","animation-delay":h?V2n(h):"3s","--marquee-translate":(0,_.Xr)(V)})},_.v("span",{el:T,dir:"auto"},_.v(_.IS,{text:b,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.v(_.Q,{cond:D,then:function(){return _.v("span",{"aria-hidden":"true",dir:"auto"},_.v(_.IS,{text:b,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"tg");_.DcY=_.C(function(G){var b=G.data;var I=G.overlayDensity;G=_.Xu(function(){b().onTapCommand&&_.Zm(b().onTapCommand);return!1});
var h=_.Cfr(),q=function(){return(I==null?void 0:I())===1?22:16},l={};
return _.v("reel-sound-metadata-view-model",{class:_.pG("ytReelSoundMetadataViewModelHost",(l.ytReelSoundMetadataViewModelHostLarge=function(){return(I==null?void 0:I())===1},l)),
"on:click":G,tabindex:0,role:"button","on:keydown":h},_.v("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.v(_.Q,{cond:function(){return b().musicIcon},
then:function(V){return _.v(_.Fu,{data:V,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:q})}}),_.v("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.v(Vk1,{text:function(){return b().soundMetadata},
enableMarqueeScroll:function(){return!!b().enableMarqueeScroll},
large:function(){return(I==null?void 0:I())===1}}))))},"ug");var cC9,kF1,mR,xca,Ty1,QjL,sj9,Ucc;cC9=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];kF1=_.Te("wil_icon_max_concurrent_fetches",Infinity);
mR=function(G,b,I){var h=this;this.iconSet=G;this.appDirection=b;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.hd.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.U("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.U("wil_icon_network_first");this.renderWhenIdle=_.U("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.U("wil_icon_load_immediately");this.isPurging=!1;G=function(){h.cacheStorageAvailable&&(h.cacheStorageAsync=_.hd.caches.open("yt-icons").then(function(l){return h.cacheStorageSync=l}).catch(function(){h.cacheStorageAvailable=!1}))};
I=(I==null?void 0:I())||{};I=_.e(Object.entries(I));for(b=I.next();!b.done;b=I.next()){var q=_.e(b.value);b=q.next().value;q=q.next().value;q=iM(q);vzF(q);this.iconCache[b]=q.cloneNode(!0)}this.isPurging=L7c(this);this.isPurging instanceof Promise?this.isPurging.then(G):G()};
_.Y6a=function(G,b){var I=G.resolveIcon(b);return I?G.renderingMode===1?QjL(G,I,G.renderingMode):(b=G.iconCache[I.url])?(b=b.cloneNode(!0),xca(G,b),QjL(G,I,G.renderingMode,b)):_.fpc(G,I).then(function(h){var q=h?0:1;xca(G,h);return QjL(G,I,q,h)}):(_.u6(new _.Wf("Icon not found",{iconShape:b})),function(){})};
xca=function(G,b){if(b){G.counter+=1;G="_yt"+G.counter;b=[b].concat(_.Nz(b.getElementsByTagName("*")));b=_.e(b);for(var I=b.next();!I.done;I=b.next())if(I=I.value,I.tagName==="style"&&I.textContent)I.textContent=Ty1(I.textContent,G,!0);else for(var h=_.e(I.attributes),q=h.next();!q.done;q=h.next()){q=q.value;q.name==="id"&&(q.value+=G);["mask","fill","clip-path"].includes(q.name)&&(q.value=Ty1(q.value,G));if(q.name==="style"){var l=I.style;try{l.cssText=Ty1(l.cssText,G,!0)}catch(x){var V=void 0,D=
void 0,k=void 0,L=void 0;ep({error:((V=x)==null?void 0:(k=(D=V).toString)==null?void 0:k.call(D))||"",el:I.outerHTML,style:!!l,cssText:(L=l)==null?void 0:L.cssText})}}q.name==="xlink:href"&&(q.value=q.value.replace(/#(.*)/,"#$1"+G))}}};
Ty1=function(G,b,I){var h=/url\(["']?#(.*?)["']?\)/;(I===void 0?0:I)&&(h=/url\(["']?#(.*?)["']?\)/g);return G.replace(h,"url(#$1"+b+")")};
QjL=function(G,b,I,h){return function(q,l){var V;var D=Object.assign({},{iconWidth:b.size+"px",iconHeight:b.size+"px",iconDisplay:"block"},l,{iconColor:(V=l==null?void 0:l.iconColor)!=null?V:"currentcolor"});V=_.ol("DIV");l=D.iconColor;var k=D.iconFilter;D="width: "+D.iconWidth+"; height: "+D.iconHeight+"; display: "+D.iconDisplay+";";k&&(D+=" filter: "+k+";");I===0&&(D+=" fill: "+l+";");I===1&&(k=b.url,D+=" -webkit-mask: url("+k+") no-repeat center / cover; mask: url("+(k+") no-repeat center / cover; background-color: ")+
l);b.allowMirroring&&G.appDirection==="rtl"&&(D+=" transform: scale(-1, 1); transform-origin: center center;");V.setAttribute("style",D);I===0&&h&&V.appendChild(h);q.appendChild(V)}};
_.fpc=function(G,b){var I,h,q;return _.c(function(l){I=function(V){return Ev(V)};
h=b.url;if(!Byc(h))throw Error("xj");q=Ucc(G,h);return l.return(q.then(function(V){return V.clone().text()}).then(function(V){var D=I(V);
V=b.size;var k=_.ol("DIV");_.ec(k,D);D=_.iG(k.firstElementChild!==void 0?k.firstElementChild:_.ZyO(k.firstChild,!0));V=vzF(D,V);G.iconCache[h]=V.cloneNode(!0);delete G.responsePromises[h];return V}).catch(function(){}))})};
sj9=function(G){var b,I=(b=G.requestAninmationFrameResolver)==null?void 0:b.promise;I||(G.requestAninmationFrameResolver=new _.G9,I=G.requestAninmationFrameResolver.promise,_.hd.requestAnimationFrame(function(){var h;(h=G.requestAninmationFrameResolver)==null||h.resolve();G.requestAninmationFrameResolver=null}));
return I};
Ucc=function(G,b){var I,h;return _.c(function(q){if(q.nextAddress==1)return G.waitForAnimationFrame?q.yield(sj9(G),2):q.jumpTo(2);I=G.responsePromises[b];I||(h=function(){var l,V,D;return _.c(function(k){switch(k.nextAddress){case 1:if(!G.cacheStorageAvailable){l=void 0;k.jumpTo(2);break}if(V=G.cacheStorageSync){k.jumpTo(3);break}return k.yield(G.cacheStorageAsync,4);case 4:V=k.yieldResult;case 3:l=V;case 2:return D=l,G.isNetworkFirstStrategy?k.return(G.fetchAndUpdateCache(b,D).catch(G.getCacheStorageResponse.bind(G,
b,D))):k.return(G.getCacheStorageResponse(b,D).catch(G.fetchAndUpdateCache.bind(G,b,D)))}})},I=G.renderWhenIdle?new Promise(function(l,V){_.FQ(_.uu,function(){h().then(l).catch(V)},10)}):h(),G.responsePromises[b]=I);
return q.return(I.catch(function(l){delete G.responsePromises[b];ep({error:(l==null?0:l.toString)?l.toString():"",url:b});throw l;}))})};
mR.prototype.fetchAndUpdateCache=function(G,b){var I=this;return _.c(function(h){return h.return(gze(I,G).then(function(q){AC8(I,G,q,b);return q}))})};
var gze=function(G,b){var I;return _.c(function(h){if(G.numFetches<kF1)return G.numFetches+=1,h.return(Mke(G,b).finally(function(){--G.numFetches;if(Object.keys(G.queuedResponseResolvers).length){var q=Object.keys(G.queuedResponseResolvers)[0],l=G.queuedResponseResolvers[q];delete G.queuedResponseResolvers[q];l.resolve(gze(G,q))}}));
I=new _.G9;G.queuedResponseResolvers[b]=I;return h.return(I.promise)})},Mke=function(G,b,I){I=I===void 0?2:I;
var h;return _.c(function(q){h={credentials:"same-origin",priority:"low"};return q.return(_.hd.fetch(b,h).then(function(l){return l.ok?l:Promise.reject(Error("yj`"+l.status+"`"+l.statusText))}).catch(function(l){if(I>0)return Mke(G,b,I-1);
throw l;}))})},AC8=function(G,b,I,h){_.c(function(q){return h?q.return(new Promise(function(l){_.FQ(_.uu,function(){var V,D;
return _.c(function(k){switch(k.nextAddress){case 1:if(!G.isNetworkFirstStrategy){V=void 0;k.jumpTo(2);break}return k.yield(h.match(b).catch(function(){}),3);
case 3:V=k.yieldResult;case 2:if(D=V){k.jumpTo(4);break}return k.yield(h.put(b,I.clone()).catch(function(L){ep({error:(L==null?0:L.toString)?L.toString():"",url:b})}),4);
case 4:l(),_.ip(k)}})},50)})):q.return()})};
mR.prototype.getCacheStorageResponse=function(G,b){return _.c(function(I){return b?I.return(b.match(G).then(function(h){return h&&h.ok?h:Promise.reject()})):I.return(Promise.reject())})};
var vzF=function(G,b){b===void 0||G.getAttribute("viewBox")||G.setAttribute("viewBox","0 0 "+b+" "+b);G.setAttribute("focusable","false");G.setAttribute("aria-hidden","true");try{G.style.pointerEvents="none",G.style.display="inherit",G.style.width="100%",G.style.height="100%"}catch(q){var I;ep({error:((I=q)==null?0:I.toString)?q.toString():""});try{G.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(l){var h;ep({error:((h=l)==null?0:h.toString)?l.toString():
""})}}return G},Byc=function(G){for(var b=_.e(cC9),I=b.next();!I.done;I=b.next())if(G.startsWith(I.value)&&G.endsWith(".svg"))return!0;
return!1};
mR.prototype.resolveIcon=function(G){return this.iconSet.resolveIcon(G)};
var ep=function(G){_.RB(new _.Wf("Error in IconManager",G))},L7c=function(G){if(_.U("wil_icons_cache_purge_killswitch"))return!1;
try{var b=_.hd.localStorage}catch(l){return!1}if(!b||!G.cacheStorageAvailable)return!1;var I=function(l){try{var V;(V=b)==null||V.setItem("yt-icons-last-purged",l.toString())}catch(k){var D;ep({error:((D=k)==null?0:D.toString)?k.toString():""})}},h=Number(b.getItem("yt-icons-last-purged"));
if(!h)return h=new Date,h=h.setDate(h.getDate()-Math.floor(Math.random()*90+1)),I(h),!1;if(function(l,V){l=new Date(l);V=new Date(V);return V.getMonth()-l.getMonth()+12*(V.getFullYear()-l.getFullYear())}(h,Date.now())<3)return!1;
try{return _.hd.caches.delete("yt-icons").then(function(l){l&&I(Date.now());return l}).catch(function(){return!1}).finally(function(){G.isPurging=!1})}catch(l){var q;
ep({error:((q=l)==null?0:q.toString)?l.toString():""});return!1}};
mR[QE]=[uDF,_.yB,_.vf(ON8)];_.Vr=function(G,b){this.iconManager=G;this.iconsToFetch=b};
_.Vr[QE]=[_.SH,_.vf(nT1)];var Z3c=function(){};var tkY=function(G,b,I){this.requestKey=G;this.hja=b;this.z8h=I;this.c3i=function(){return new XMLHttpRequest};
this.zuW=void 0;this.sLX=[]};
tkY.prototype.getLatestChallengeResponse=function(){return this.z8h};
var oWb=function(G,b,I){var h,q,l,V;return _.c(function(D){if(D.nextAddress==1){_.US("attestation_challenge_fetch");_.sS("att_fs",void 0,"attestation_challenge_fetch");if(!G.zuW)throw new _.dp(9,"Missing fetcher");return D.yield(G.zuW(b,I),2)}h=D.yieldResult;l=(q=h)==null?void 0:q.bgChallenge;if(!l)throw new _.dp(15,"Missing field");G.z8h=h;G.sLX.forEach(function(k){k(h)});
V=Etu(l);_.sS("att_fc",void 0,"attestation_challenge_fetch");BT("attestation_challenge_fetch");return D.return(V)})},SGe=function(G,b){var I,h,q,l,V;
return _.c(function(D){switch(D.nextAddress){case 1:I=new Br(100,3E5,.25,2),h=void 0;case 2:if(!(I.currBackoffCount_<10)){D.jumpTo(4);break}_.gm(D,5);if(!(I.currBackoffCount_>0)){D.jumpTo(7);break}return D.yield(fHq(I.getValue()),7);case 7:return D.yield(zTK(G,b),9);case 9:return q=D.yieldResult,D.return(q);case 5:l=_.zf(D);l instanceof _.dp?h=l:(V=l instanceof Error?l.message:"Unknown",h=new _.dp(9,V));Nve(I);D.jumpTo(2);break;case 4:if(h)throw h;throw new _.dp(9,"Unknown error");}})},zTK=function(G,
b){b=fUA(Tib(new x1B,b),G.requestKey);
var I=new _.G9,h=G.c3i();h.open("POST",G.hja);h.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");h.setRequestHeader("Content-Type","application/json+protobuf");h.onload=function(){if(_.qSj(h)){var q=tyb(h.responseText);I.resolve(q)}else I.reject(new _.dp(_.ep2(_.gi(h)),h.statusText))};
h.onerror=function(){I.reject(new _.dp(_.ep2(_.gi(h)),h.statusText))};
h.send(b.serialize());return I.promise};var i3L=function(G){this.networkStatusManager=G;this.isDownloaded=GRO===void 0?function(){return!1}:GRO;
this.isReady=!1;this.mEu=oze(this)},oze=function(G){var b;
return _.c(function(I){if(I.nextAddress==1)return I.yield(JCO(),2);if(I.nextAddress!=3)return b=I.yieldResult,I.yield(J2u(b),3);G.f7=I.yieldResult;B9q(G.f7).then(function(){G.isReady=!0});
return I.return(G.f7)})},PMK=function(G,b,I){G.f7?(G=G.f7.moQ({fQ:I,
w6E:!0,lHl:!0}),b.serviceIntegrityDimensions={poToken:G}):_.K1(Error("Aj"))};
i3L.prototype.processContext=function(G){var b=this;if(!G.input.match(_.JQ(nXn)))return _.kF();var I=G.innerTubeRequest,h=I.videoId;return!h||this.isDownloaded(I)||this.networkStatusManager&&!this.f7&&!this.networkStatusManager.isNetworkAvailable()?_.kF():this.f7?this.isReady?(PMK(this,I,h),_.kF()):new cs(B9q(this.f7).then(function(){PMK(b,I,h)})):new cs(this.mEu.then(function(q){return _.c(function(l){if(l.nextAddress==1)return l.yield(B9q(q),2);
PMK(b,I,h);_.ip(l)})}))};var dcD=new _.q3("WEB_PO_CONTEXT_PROCESSOR");var yCW=function(G,b){var I=this;this.gBf=0;var h;this.gSA=(h=b==null?void 0:b.gSA)!=null?h:window;this.networkStatusManagerPromise=b==null?void 0:b.networkStatusManagerPromise;var q;this.requestKey=(q=b==null?void 0:b.requestKey)!=null?q:_.UG("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var l;this.vZr=(l=b==null?void 0:b.vZr)!=null?l:function(k){return new NL(k)};
var V;h=(V=b==null?void 0:b.b1p)!=null?V:function(k,L,x){return new tkY(k,L,x)};
this.bgChallenge=Etu(G.bgChallenge);this.ttlSeconds=p1r(rc(G.challenge||""));this.aq=h(this.requestKey,_.U("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.hd.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.h9Q=b==null?void 0:b.h9Q;T9j(this.aq);var D;this.hqD=(D=b==null?void 0:b.hqD)!=null?D:function(k){_.cv(I.gSA.document,"visibilitychange",
function(){I.gSA.document.visibilityState==="visible"&&k()})}},F7f=function(G){if(!G.vm){var b={maxAttempts:5,
ijL:G.ttlSeconds*1E3};U7p(G.gSA);G.vm=G.vZr({aq:G.aq,aKh:{disable:_.U("html5_web_po_disable_remote_logging"),y6:"aGIf",sDT:$PX("html5_web_po_experiment_ids"),sTp:_.U("wpo_dis_lfdms")?0:1E3,mIb:function(h){var q=EMW.get(h);q||(q=new weB(h),q=new ZC(q),EMW.set(h,q));return q}},
eiv:b,lvt:G.bgChallenge,zOu:sKd});G.gBf=Date.now();ABA(G.vm,function(){G.gBf=Date.now()});
nzq(G.vm,function(){return _.c(function(h){return h.return(rC9(G))})});
var I=G.jQp.bind(G);G.networkStatusManagerPromise&&G.ttlSeconds>0&&G.networkStatusManagerPromise.then(function(h){h.listen("publicytnetworkstatus-online",I)});
G.hqD(I)}};
yCW.prototype.jQp=function(){if(Date.now()>this.gBf+this.ttlSeconds*1E3){var G;(G=this.vm)==null||gWQ(G)}};
var rC9=function(G){if(G.uyo)return G.uyo;if(!G.vm)throw Error("Bj");G.uyo=new u1({vm:G.vm,aq:G.aq,hSK:!0,onError:sKd,eiv:G.h9Q});return G.uyo},AiX=function(G,b){G=new yCW(G,b);
F7f(G);(b==null?0:b.mTO)||rC9(G)};var H35=_.LTa.ephemeralActionSelector,DB=function(G,b){this.store=G;this.queue=[];b==null||b.addEventListener("yt-navigate-start",this.reset.bind(this))};
DB.prototype.enqueue=function(G){var b=G.command,I=G.durationMs,h=G.elementToFocus;var q=G.label;var l=G.elementToFocus;G.command?q=_.qP("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:q,shortcut:_.qP("SHIFT_PLUS_ENTER")}):l&&(G=q+". "+_.qP("SHIFT_PLUS_ENTER")+" for more information.",q=_.qP("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:q,shortcut:_.qP("SHIFT_PLUS_ENTER")},G));I={announcement:q,durationMs:I!=null?I:8E3};b?I.command=b:h&&(h.classList.add("ephemeral-action-focusable-element"),I.selector=h.tagName+
".ephemeral-action-focusable-element");this.queue.push(I);W78(this)};
DB.prototype.activate=function(G){var b=H35(this.store.getState());if(b){if(b==null?0:b.command)_.g5(b.command),this.store.dispatch(CR5(null));if(b==null?0:b.selector)b=document.querySelector(b.selector),_.uUr(b);G.preventDefault()}};
var W78=function(G){if(!H35(G.store.getState())&&G.queue.length){var b=G.queue.shift();b&&(G.previousAnnouncement===b.announcement&&(b.announcement+="\u00a0"),G.store.dispatch(CR5(b)),G.previousAnnouncement=b.announcement,G.timeoutId=setTimeout(function(){if(b.selector){var I;(I=document.querySelector(b.selector))==null||I.classList.remove("ephemeral-action-focusable-element")}G.store.dispatch(CR5(null));W78(G)},b.durationMs))}};
DB.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(CR5(null));this.queue.length=0;this.timeoutId=void 0};
DB[QE]=[_.nR,_.vf(_.id)];_.c9=new _.q3("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var apF=new _.q3("AUTH_SERVICE_TOKEN");var tVB=_.WP(["about:blank"]),Zej;var NyY=new _.q3("API_IFRAME_TOKEN"),YBf=new _.q3("FETCH_FN_TOKEN"),CMF=new _.q3("WINDOW_REQUEST_TOKEN"),JCW=new _.q3("TEXT_DECODER_TOKEN");var iin;iin=new _.q3("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.K7f=new _.q3("MISC_UI_SHARED_FLAGS_TOKEN");var ujF=function(){};
ujF.prototype.getFlag=function(G){if(G.configType!==2)throw Error("Cj");return RTW(G)};
var RTW=function(G){switch(G.flagType){case "bool":return _.U(G.flagName);case "int":return _.N8(_.Te(G.flagName));case "double":return _.Te(G.flagName);case "string":return _.UG(G.flagName);case "int32_list":return $PX(G.flagName);case "int64_list":return $PX(G.flagName).map(function(b){return _.N8(b)});
case "string_list":return _.sG(G.flagName);default:throw Error("Dj");}};var kC=function(G,b,I){b=b===void 0?{}:b;aw.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}];b.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=b.shouldWaitOnAsyncImmediate)};
_.M(kC,aw);kC.prototype.init=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?h.yield(G(b.env),2):(G(b.env),h.jumpTo(2));if(h.nextAddress!=4)return b.jobSet?h.yield(b.jobSet.completedResolver.promise,4):h.jumpTo(4);I=_.mq();I.parkOrScheduleJob(function(){b.transition("rendering")},10,"ci");
_.ip(h)})};
kC.prototype.initialRender=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?h.yield(G(b.env),2):(G(b.env),h.jumpTo(2));if(h.nextAddress!=4)return b.jobSet?h.yield(b.jobSet.completedResolver.promise,4):h.jumpTo(4);I=_.mq();I.parkOrScheduleJob(function(){b.transition("rendered")},10,"cr");
_.ip(h)})};
kC.prototype.afterRenderImmediate=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?h.yield(G(b.env),2):(G(b.env),h.jumpTo(2));if(h.nextAddress!=4)return b.jobSet?h.yield(b.jobSet.completedResolver.promise,4):h.jumpTo(4);I=_.mq();I.parkOrScheduleJob(function(){b.transition("after-render-deferred")},10,"carml");
_.ip(h)})};
kC.prototype.afterRenderDeferred=function(G){var b=this;return _.c(function(I){G(b.env);_.ip(I)})};_.OB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var nza={},O3e=(nza.rendered={priority:0,callback:function(G){DO8(G.injector.resolve(HA))}},nza);var M2p=new _.q3("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),w3f=new _.q3("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var Ezc=function(G){this.callbackFnMap=G;this.configMap={}};
Ezc.prototype.handleResponse=function(G){var b;if(G=(b=G.responseContext)==null?void 0:b.serviceTrackingParams)for(b=_.e(G),G=b.next();!G.done;G=b.next()){G=G.value;var I=G.params,h=G.service;if(I&&h){this.configMap[h]||(this.configMap[h]=new fyB);G=this.configMap[h];var q=void 0,l=(q=this.callbackFnMap)==null?void 0:q[h];I=_.e(I);for(h=I.next();!h.done;h=I.next())q=h.value,h=q.key,q=q.value,h&&q&&(G.set(h,q),l&&l(h,q))}}};
Ezc.prototype.getConfig=function(G){return this.configMap[G]||void 0};
Ezc[QE]=[_.vf(w3f)];var p3e=!1,aHv=0,riq=null,W32=null;var SB3=new _.q3("NETWORK_SLI_TOKEN");var X39=function(G){this.networkSli=G};
X39.prototype.fetch=function(G,b,I){var h=this,q;return _.c(function(l){q=$15(h,G,b);return l.return(fetch(q).then(function(V){return h.handleResponse(V,I)}).catch(function(V){_.RB(V);
if((I==null?0:I.expectJsonStrict)&&V instanceof ic&&V.errorType===1)return Promise.reject(V)}))})};
var ixz=function(G,b,I,h){var q,l,V,D,k,L,x;return _.c(function(f){switch(f.nextAddress){case 1:return q=$15(G,b,I),_.gm(f,2),f.yield(fetch(q),4);case 4:l=f.yieldResult;_.hF(f,3);break;case 2:throw _.zf(f),new ic(2,"Failed to parse streaming response",q.url);case 3:if(!l.redirected&&!l.ok)throw(V=G.networkSli)==null||V.failure(),new _.Wf("Streaming fetch request not ok",q.url);if(!l.body)throw new _.Wf("No response body in streaming response",q.url);D={};if(_.U("web_streaming_fast"))return k=l.body.getReader(),
f.return(Ge3(G,k,D,h));L=l.body.pipeThrough(new TextDecoderStream).getReader();x=new _.LY;return f.return(bL9(G,L,x,vCp,D,h))}})},$15=function(G,b,I){if(G.networkSli){var h=_.tB(_.J_(b,"key"))||"/UNKNOWN_PATH";
G.networkSli.start(h)}G=I;_.U("wug_networking_gzip_request")&&(G=cIu(I));return new window.Request(b,G)},Ge3=function(G,b,I,h){var q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u,w,$a,ev,LO,td,xa,Uj,W2,is,su,an,A5,XO;
return _.c(function(kb){switch(kb.nextAddress){case 1:q=new TextDecoder("utf-8"),l=[],D=V=0,_.gm(kb,2,3);case 5:return kb.yield(b.read(),8);case 8:k=kb.yieldResult;L=k.value;if(x=k.done){f=0;if(l.length>V)for(f=l[V].length-D,T=V+1;T<l.length;T++)f+=l[T].length;f>0&&(B=N9O(l,f,V,D),A=B.indexOf(123),t=B.lastIndexOf(125),A!==-1&&t!==-1&&t>A&&(y=B.subarray(A,t+1),F=JSON.parse(q.decode(y)),vCp(I,F),W=void 0,(W=h)==null||W(I,F)));O=void 0;(O=G.networkSli)==null||O.success();return kb.return(I)}l.push(L);
K=V;for(u=D;K<l.length;)if(w=l[K],$a=w.indexOf(10,u),$a===-1){if(K===l.length-1)break;K++;u=0}else{ev=K;LO=$a+1;td=0;if(V===ev)td=LO-D;else{td=l[V].length-D;for(xa=V+1;xa<ev;xa++)td+=l[xa].length;td+=LO}Uj=N9O(l,td,V,D,ev,LO);W2=Uj.indexOf(123);is=Uj.lastIndexOf(125);if(W2!==-1&&is!==-1&&is>W2){su=Uj.subarray(W2,is+1);try{an=JSON.parse(q.decode(su)),vCp(I,an),A5=void 0,(A5=h)==null||A5(I,an)}catch(rz){throw new ic(1,"Failed to parse streaming response object",q.decode(su));}}V=K;u=D=$a+1;D===w.length&&
(V++,D=0,K=V,u=0)}kb.jumpTo(5);break;case 3:_.Mz(kb);b.releaseLock();_.tj(kb,0);break;case 2:XO=_.zf(kb);if(XO instanceof ic)throw XO;throw new ic(1,"Failed to process streaming response");}})},bL9=function(G,b,I,h,q,l){var V,D,k,L,x,f,T,B,A;
return _.c(function(t){if(t.nextAddress==1)return t.yield(b.read(),2);V=t.yieldResult;D=V.value;if(k=V.done)return(L=G.networkSli)==null||L.success(),t.return(q);try{x=I.parse(D)}catch(y){throw new ic(1,"Failed to parse streaming response",D);}if(x!=null)for(f=_.e(x),T=f.next();!T.done;T=f.next())B=T.value,h(q,B),A=void 0,(A=l)==null||A(q,B);return t.return(bL9(G,b,I,h,q,l))})};
X39.prototype.handleResponse=function(G,b){var I=G.text().then(function(h){if((b==null?0:b.jspbResponseCtor)&&G.ok)return OAu(b.jspbResponseCtor,h);h=h.replace(")]}'","");if((b==null?0:b.expectJsonStrict)&&h)try{var q=JSON.parse(h)}catch(V){throw new ic(1,"JSON parsing failed after fetch");}var l;return(l=q)!=null?l:JSON.parse(h)});
G.redirected||G.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),I=I.then(function(h){_.RB(new _.Wf("Error: API fetch failed",G.status,G.url,h));return Object.assign({},h,{errorMetadata:{status:G.status}})}));
return I};
X39[QE]=[_.vf(SB3)];var IU1=new _.q3("NETWORK_MANAGER_TOKEN");var hp9=[1,2,4,8,16,30],jNK=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=_.e(hp9);for(var b=G.next();!b.done;b=G.next())this.brokenFrameSummarizers.push(new qG8(b.value/60*1E3))},lUj=function(G){var b=G.frameCountInternal>=G.maxFrameCount;
return G.elapsedTimeMs>=G.maxTimeMs||b};
jNK.prototype.summarize=function(){for(var G=[],b=_.e(this.brokenFrameSummarizers),I=b.next();!I.done;I=b.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)}};
_.kV.Object.defineProperties(jNK.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 qG8=function(G){this.targetFrameTimeMs=G;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.kV.Object.defineProperties(qG8.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var m18=function(){};
m18.prototype.start=function(G,b){var I=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var h=new jNK({maxTimeMs:G});this.monitor=h;this.lastSummaryInternal=void 0;this.metadataToLog=b;return new Promise(function(q){var l=function(V){if(V===void 0)I.stop(),q(void 0);else if(I.monitor!==h)V=Object.assign({},h.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),q(V);else{var D=I.monitor;if(!lUj(D)){D.frameCountInternal++;if(D.prevTime===
void 0)D.startTime=V;else for(var k=V-D.prevTime,L=_.e(D.brokenFrameSummarizers),x=L.next();!x.done;x=L.next()){x=x.value;var f=x.currTimeMs;x.currTimeMs+=k;k>x.targetFrameTimeMs+2&&(x.brokenFrameCount++,x.timeOfFirstBrokenFrameMs===void 0&&(x.timeOfFirstBrokenFrameMs=f),x.timeOfLastBrokenFrameMs=f)}D.prevTime=V}lUj(I.monitor)?q(I.stop()):_.uu.addJob(l,5,0)}};
_.uu.addJob(l,5,0)})};
m18.prototype.stop=function(G){if(!this.monitor)return this.lastSummaryInternal;var b=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(b.monitoringDurationMs){G=G!=null?G:this.metadataToLog;var I={droppedFramesSummary:b,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};G&&(I[G.type]=G.data);_.C1("manualSmoothnessMeasurement",I)}this.monitor=void 0;this.lastSummaryInternal=b;this.metadataToLog=void 0;return b};_.epL=new _.q3("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var VOj;VOj=function(G){this.JSC$18892_expiringStorage=new N1(G)};
_.D1D=function(G){if(_.YsB()&&(G=_.JZX(_.FU()+"::"+G)))return new VOj(G)};
VOj.prototype.set=function(G,b,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$18892_expiringStorage.set(G,b,I)};
VOj.prototype.get=function(G){return this.JSC$18892_expiringStorage.get(G)};
VOj.prototype.remove=function(G){this.JSC$18892_expiringStorage.remove(G)};_.v9=function(){};
_.v9.getInstance=function(){var G=_.Ge("ytglobal.storage_");G||(G=new _.v9,_.cz("ytglobal.storage_",G));return G};
_.v9.prototype.estimate=function(){var G,b,I;return _.c(function(h){G=navigator;return((b=G.storage)==null?0:b.estimate)?h.return(G.storage.estimate()):((I=G.webkitTemporaryStorage)==null?0:I.queryUsageAndQuota)?h.return(CEB()):h.return()})};
_.cz("ytglobal.storageClass_",_.v9);var w7X=0;var bdu=!1;var cBf=_.WP(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),keF=_.WP(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var u0D={"/":_.aa,"/?feature=ytca":_.aa,"/feed/downloads":_.Ser};var vWY=xQ1.continuationCommandSelector,lX=function(G,b,I){this.JSC$18908_upliftPromise=G;this.store=b;this.JSC$18908_persistentStorePromiseAccessor=I};
lX.prototype.shouldPreferLocalResponse=function(G){return G.browseId==="FEdownloads"||G.browseId==="FEsmart_downloads"&&_.U("kevlar_modern_downloads_page")?!0:!1};
lX.prototype.localInnertubeResponse=function(G){var b=this;return _.c(function(I){return G.browseId==="FEdownloads"?_.U("kevlar_modern_downloads_page")?I.return(LEj(b)):I.return(QN5(b)):G.browseId==="FEsmart_downloads"&&_.U("kevlar_modern_downloads_page")?I.return(x18(b)):I.return(Promise.reject(Error("Fj")))})};
lX.prototype.canProvideFallbackResponse=function(){return!0};
lX.prototype.localFallbackInnertubeResponse=function(G){var b=this,I,h,q;return _.c(function(l){switch(l.nextAddress){case 1:return l.yield(b.JSC$18908_persistentStorePromiseAccessor(),2);case 2:I=l.yieldResult;if(G.browseId!=="SPaccount_downloads"||!I){l.jumpTo(3);break}return l.yield($qv(I),4);case 4:if(h=l.yieldResult)return l.return(_.uP(h));case 3:return G.browseId==="FEwhat_to_watch"?l.return(fUa(b)):(q=_.U("web_offline_continuation_automatic_retry")||_.U("web_offline_continuation_retry_button"))&&
G.continuation?l.return(Ti3(b)):l.return(Bij(b))}})};
var fUa=function(G){var b;return _.c(function(I){if(I.nextAddress==1)return I.yield(G.JSC$18908_upliftPromise,2);b=_.fNa(G.store.getState().entities);return b.length?I.return(U1f(G,b)):I.return(Bij(G))})},QN5=function(G){var b,I;
return _.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$18908_upliftPromise,2);if(h.nextAddress!=3)return b=sNL([{offlineItemSectionRenderer:{}}]),h.yield(gWD(G,b),3);I=h.yieldResult;I.onResponseReceivedActions=[hx("REFRESH_DOWNLOADS")];return h.return(I)})},LEj=function(G){var b,I,h,q,l,V,D,k,L,x,f,T,B,A,t,y;
return _.c(function(F){if(F.nextAddress==1)return F.yield(G.JSC$18908_upliftPromise,2);if(F.nextAddress!=3)return b=G.store.getState(),I=b.entities,h=_.fw(I),q=_.Ti(I),l=_.EKO(b),V=_.w6O(b),D=_.p6B(b),k=_.UDa(I),L=_.D0(h),x=_.Bj(I),f=_.Mdu(I),T=_.X6B(b),B=_.MO(b),A={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.kKs(h,q,k,f,l,V,L,x,D,T,B),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},t="",_.U("kevlar_modern_downloads_skip_downloads_title")||
(t=_.qP("DOWNLOADS",void 0,"Downloads")),F.yield(ABa(G,A,t),3);y=F.yieldResult;y.onResponseReceivedActions=[hx("REFRESH_DOWNLOADS")];return F.return(y)})},x18=function(G){var b,I,h,q,l,V,D,k,L;
return _.c(function(x){if(x.nextAddress==1)return x.yield(G.JSC$18908_upliftPromise,2);if(x.nextAddress!=3)return b=G.store.getState(),I=b.entities,h=_.fw(I),q=_.D0(h),l=_.Bj(I),V={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.LKv(h),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},D=_.qP("SMART_DOWNLOADS",void 0,"Smart downloads"),k=D0X(q,l),x.yield(ABa(G,V,D,k),3);L=x.yieldResult;L.onResponseReceivedActions=
[hx("REFRESH_DOWNLOADS")];return x.return(L)})},Bij=function(G){var b,I;
return _.c(function(h){if(h.nextAddress==1)return h.yield(Kc(G.JSC$18908_upliftPromise,G.store),2);b=h.yieldResult;I=sNL([Ewq(b)]);return h.return(gWD(G,I))})},Ti3=function(G){var b,I,h,q;
return _.c(function(l){if(l.nextAddress==1)return b={},I=vWY(G.store.getState()),_.xQ(b,_.Aa,I),l.yield(Kc(G.JSC$18908_upliftPromise,G.store,b,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);h=l.yieldResult;q={};_.xQ(q,_.NIi,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:h}}}],targetId:"browse-feedFEwhat_to_watch"});return l.return({responseContext:{},onResponseReceivedActions:[q]})})},sNL=function(G){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:G}}}}]}}},U1f=function(G,b){var I,h;
return _.c(function(q){var l={contents:qA(b)};I=l&&l.contents?l:{};_.U("kevlar_modern_downloads_page")&&(I=Object.assign({},_.Q7a(b),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));h={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:I}}}]}};return q.return(gWD(G,h))})},gWD=function(G,b){var I,h;
return _.c(function(q){if(q.nextAddress==1)return q.yield(G.JSC$18908_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3)return I=q.yieldResult,q.yield(RG(I),3);h=q.yieldResult;return q.return({responseContext:{},contents:b,topbar:h})})},ABa=function(G,b,I,h){var q,l;
return _.c(function(V){if(V.nextAddress==1)return V.yield(G.JSC$18908_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3)return q=V.yieldResult,V.yield(RG(q),3);l=V.yieldResult;var D=V.return;var k=I;var L=h;k=k===void 0?"":k;L=L===void 0?"":L;k={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:k}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.qP("SETTINGS",void 0,"Settings"),accessibilityText:_.qP("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:_.KU("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:L}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:k};
return D.call(V,{responseContext:{},contents:b,topbar:l,header:{pageHeaderRenderer:k}})})};var MOf=function(){this.moduleRegistry={};this.fetchCount=0};
MOf.prototype.isFetching=function(){return this.fetchCount>0};
var oA=function(G,b){G.moduleRegistry[b.toString()]={asyncId:b,isFetching:!1};return G};
MOf.prototype.JSC$18919_loadModules=function(){for(var G=this,b=new Map,I=[],h=_.e(_.RI.apply(0,arguments)),q=h.next();!q.done;q=h.next()){q=q.value;var l=this.moduleRegistry[q];l?l.resolver?b.set(q,l.resolver):(l.resolver=new _.G9,b.set(q,l.resolver),I.push(l.asyncId),l.isFetching=!0):(l=new _.G9,b.set(q,l),l.resolve(void 0))}I.length&&(this.fetchCount+=1,_.i1(_.EQ.getMultipleAsync.apply(_.EQ,_.Nz(I)).then(function(V){for(var D=0;D<I.length;D++){var k=V[D],L=G.moduleRegistry[I[D].toString()];L.isFetching=
!1;L.resolver.resolve(k)}}).catch(function(V){for(var D=_.e(I),k=D.next();!k.done;k=D.next()){k=k.value;
var L=G.moduleRegistry[k.toString()];L.resolver=void 0;L.isFetching=!1;b.get(k.toString()).reject(V)}}),function(){--G.fetchCount}));
return Promise.all([].concat(_.Nz(b.values())).map(function(V){return V.promise}))};_.iX=new _.q3("MODULE_REGISTRY_TOKEN");var ZLj={},tOL=(ZLj.rendered={priority:0,callback:function(G){a:{var b=void 0;try{var I;b:{if(_.OoO()){var h=_.C9s(_.FU()+"::pom");if(h){var q=new y8(h);break b}}q=void 0}var l=(I=q)==null?void 0:I.get("role_text");if(!l)break a;b={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:l}]}}}}}}catch(k){}b&&G.injector.resolve(_.xW).resolveCommand(b)}try{var V=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(V){var D=JSON.parse(V);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
D&&G.injector.resolve(_.xW).resolveCommand(D)}}catch(k){}}},ZLj);var zpc,oW3={},iLF=(oW3.initialized={priority:10,callback:function(){zpc=Qp()}},oW3.rendering={callback:function(G){var b;
return _.c(function(I){if(I.nextAddress==1)return I.yield(zpc,2);b=I.yieldResult;if(!b.endpoint)throw Error("Hj`"+_.hd.location.href);BP(G,b);_.ip(I)})}},oW3);var PB9={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(_.Nz(_.U("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(G){var b=G.stack;if(b.includes("chrome://")||b.includes("chrome-extension://")||G.message.includes("chrome-extension://")||b.includes("moz-extension://")||b.includes("local.adguard.org")||b.includes("auctioneer3.50million.club")||b.includes("youtubedownloader")||
b.includes("youtube_home_page")||b.includes("is_youtube_video_no_longer_available")||b.includes("switchScreenSizeHack")||b.includes("yt_main_big_banner.js")||b.includes("YouTubeCenter.js")||b.includes("/mytube.js")||b.includes("JSON.parseWrapper")||b.includes("/inj_js/common.js")||b.includes("firebug-lite")||b.includes(".repl.co/")||b.includes("linkfix")||b.includes("playAfterAd")||G.message.includes("Access is denied for this document")&&b.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'")&&
b.includes("<anonymous>"))return!0;if(b.includes("https://www.youtube.com"))return!1;G=b.split("\n");if(!G.length)return!1;if(G.length<=3&&b.includes("s.onloadeddata"))return!0;b=0;for(var I=_.e(G),h=I.next();!h.done;h=I.next())h=h.value,(h.includes("https://")||h.includes("http://"))&&b++;return b/G.length>.95},
weight:0},{callback:function(G){return G.message==="Unknown Error"&&G.name.indexOf("NS_")===0},
weight:100},{callback:function(G){if(!_.Sf)return!1;var b=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 b||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 b=G.stack.trim().split("\n");b.length&&b[0].endsWith("Error: "+G.message)&&b.shift();b.length&&b[b.length-1].includes("at window.onerror (")&&b.pop();if(!b.length)return!0;if(G.message==="Script error.")return b[0].includes("www.youtube.com")||b.length>=2&&b[0].startsWith("at new")&&b[1].startsWith("at window.onerror");if(G.message==="Unexpected token")return!0;G=_.e(b);for(b=G.next();!b.done;b=G.next())if(b=b.value,!(b.includes("<anonymous>")||
b.startsWith("load@")||b.startsWith("global code@")||b.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(_.U("use_error_suppression"))var G=_.wy("SUPPRESS_CLIENT_ERRORS",!1);else{if(G=_.IR)G=/Chrome\/(\d+)/.exec(_.Tq()),G=(G?parseFloat(G[1]):NaN)>=66;G=!(G||_.b3&&_.Gd(65)||_.pL&&_.Gd(12.1)||Vz&&_.Gd(79))}return G},
weight:500}]};var d13={},yBK=(d13.initialized={priority:10,callback:function(G){G.injector.addProvider({provide:s2u,useValue:G.root});G.injector.addProvider({provide:Xr5,useValue:W2j});G.injector.addProvider({provide:$QF,useValue:PB9});var b={};G.injector.addProvider((b.provide=Gtf,b.useFactory=function(I,h){return function(){TDr(I,h)}},b[QE]=[Xr5,
$QF],b));G.injector.addProvider({provide:PF,useClass:PF})}},d13);var rBj={},FEL=(rBj.initialized={priority:3,callback:function(){var G;if(G=rZO()){G=G.replace("/",".");var b=_.m$();b.set("tz",G);b.save();G=!0}else G=!1;G||(G=_.m$(),G.set("utco",-Math.floor((new Date).getTimezoneOffset())),G.save())}},rBj);var HL1={},WEf=(HL1.initialized={priority:10,callback:function(G){G.injector.resolve(PF).start();G=_.y4();var b=_.Sk("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Sk("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Sk("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Sk("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.bX(_.Arq(),{mainAppWeb:Object.assign({},G,{pageType:b})});_.bX(ZYO(),{mainAppWeb:Object.assign({},G,{pageType:b})});
_.bX(tb2(),{mainAppWeb:G});_.bX(zqj(),{mainAppWeb:G});sWA(function(){_.IA(tb2(),"FAILURE");_.IA(zqj(),"FAILURE")});
QU2();x6j();W5r()}},HL1);var aUe={},Ni9=(aUe.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.sS("dl"),_.mq().processSignal("pcl");else{var G=function(){_.sS("dl");_.mq().processSignal("pcl");window.removeEventListener("load",G)};
window.addEventListener("load",G)}}},aUe);var YG3={},CB9=(YG3.rendering={priority:0,callback:function(){var G=_.mq();G.parkOrScheduleJob(function(){G.processSignal("eocs")},10,"eor",5E3)}},YG3);var JBD=function(){};
_.M(JBD,hA);
JBD.prototype.resolveCommand=function(G,b){var I,h,q,l,V,D,k,L;return _.c(function(x){q=(I=_.g(G,_.mDJ))==null?void 0:(h=I.dialog)==null?void 0:h.commentReplyDialogRenderer;if(!q)throw new _.Wf("No dialog in createCommentReplyDialogEndpoint");V=(l=b.form)==null?void 0:l.event;if(!V)throw new _.Wf("Event not passed in when resolving command");D=_.e(V.composedPath());for(k=D.next();!k.done;k=D.next())if(L=k.value,L.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||L.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return L.showReplyDialog(q),x.return();
_.ip(x)})};var LB=function(){};
_.M(LB,hA);LB.prototype.resolveCommand=function(G){var b,I,h;return _.c(function(q){if(q.nextAddress==1)return b=_.g(G,Tru),(I=b)!=null&&I.externalChannelId?q.yield((0,_.bcp)("NSzT5"),2):q.return();h=_.KEW;return q.yield(h(b.externalChannelId),0)})};var Qr=function(G){this.JSC$18937_pageRequestService=G;this.JSC$18937_prefetchCoordinator=Nk9()};
_.M(Qr,hA);Qr.prototype.resolveCommand=function(G){var b=this,I,h,q,l;return _.c(function(V){if(V.nextAddress==1){I=_.g(G,CDz);if((h=I)==null||!h.taskId)throw Error("Ij");q=I.taskId;_.gm(V,2);return V.yield(_.vue(b.JSC$18937_pageRequestService,G,{},"").then(function(D){if(!D)throw Error("Jj");},function(D){throw Error("Kj`"+D);
}),4)}if(V.nextAddress!=2)return J21(b.JSC$18937_prefetchCoordinator,q),_.hF(V,0);
l=_.zf(V);O6(b.JSC$18937_prefetchCoordinator,q,l);_.ip(V)})};
Qr[QE]=[_.LW];var xC=function(G,b){this.innertubeTransportService=G;this.JSC$18941_commandHandler=b};
_.M(xC,hA);xC.prototype.resolveCommand=function(G){var b=this,I,h,q;return _.c(function(l){if(l.nextAddress==1){I=_.g(G,NNu);if(I.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||I.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")h=I.boolValue?2:1,_.TW.getInstance().setState(h,!0,!0);return l.yield(_.dR(b.innertubeTransportService,G),2)}q=l.yieldResult;uUf(b,q);_.ip(l)})};
var uUf=function(G,b){b.actions&&b.actions.forEach(function(I){G.JSC$18941_commandHandler.resolveCommand(I)})};
xC[QE]=[_.kn,_.xW];var fB={},T_=(fB.addToPlaylistEndpoint=JZ(qW),fB.addToToastAction=JZ(xA),fB.adsControlFlowOpportunityReceivedCommand=JZ(Wu),fB.audioTrackSelectActionCommand=JZ(sr),fB.backgroundAudioPlaybackCommand=JZ(MW),fB.captionLanguageSelectActionCommand=JZ(Zl),fB.captionPickerEndpoint=JZ(tH),fB.changeMiniAppPlayStateCommand=JZ(jx),fB.changeTimelyActionVisibilityCommand=JZ(QT),fB.channelCreationFormEndpoint=JZ(X9),fB.clearLocationCommand=JZ(hH),fB.clearUrlParamCommand=JZ(mC),fB.copyLinkCommand=JZ(FS),fB.copyTextEndpoint=
JZ(Kl),fB.createCommentReplyDialogEndpoint=yed(JBD),fB.createPlaylistServiceEndpoint=JZ(Hi),fB.dismissDialogEndpoint=JZ(VY),fB.dismissPlayerOverlayCommand=JZ(z$),fB.entityUpdateCommand=JZ(RQ),fB.feedbackEndpoint=JZ(wO),fB.getAnswerCommand=JZ(wW),fB.getPaymentsClientTokenCommand=JZ(sH),fB.getTranscriptEndpoint=JZ(fC),fB.googlePaymentBillingCommand=JZ(g7),fB.googlePaymentPurchaseManagerCommand=JZ(At),fB.hideEngagementPanelEndpoint=JZ(Dl),fB.hideSheetCommand=JZ(ci),fB.hideSnackbarCommand=JZ(ei),fB.insertRichSectionCommand=
JZ(G$),fB.listMutationCommand=JZ(bL),fB.logGtmCommand=JZ($e),fB.notifyDropdownOptionSelectedCommand=JZ(ex),fB.openAdAllowlistInstructionCommand=JZ(_.aQ),fB.openOnePickAddVideoModalCommand=JZ(Wi),fB.persistSubscriptionsDisplayPreferencesCommand=JZ(Ks),fB.pingingEndpoint=JZ(N$),fB.playlistEditEndpoint=JZ(NW),fB.playlistVotingRefreshPopupCommand=JZ(Ye),fB.profileCardCommand=JZ(Hu),fB.refreshPanelEndpoint=JZ(ke),fB.saveImageToDeviceEndpoint=JZ(u2),fB.scrollToSectionEndpoint=yed(op8),fB.seekToVideoTimestampCommand=
JZ(oP),fB.selectCountryCommand=JZ(uL),fB.setCookieCommand=JZ(RP),fB.setLocalStorageCommand=JZ(DV),fB.setPrefStorageEntryCommand=JZ(Or),fB.setSettingEndpoint=JZ(xC),fB.sfvAudioItemPlaybackCommand=JZ(iL),fB.shareImageCommand=JZ(Er),fB.sharingProviderDataCommand=JZ(ps),fB.showAudioTrackPickerActionCommand=JZ(Pi),fB.showCaptionLanguageSelectActionCommand=JZ(dW),fB.showCreatorChatbotEngagementPanelCommand=JZ(LB),fB.showDialogCommand=JZ(QY),fB.showEngagementPanelEndpoint=JZ(xe),fB.showFullscreenPlayerControlsCommand=
JZ(yY),fB.showSheetCommand=JZ(T$),fB.showSnackbarCommand=JZ(VT),fB.showTransientPlayerScrimOverlayCommand=JZ(rW),fB.submitFormWithValidationFlowCommand=JZ(Sq),fB.talkToRecsDeselectCommand=JZ(cU),fB.talkToRecsNextCommand=JZ(kA),fB.talkToRecsSelectCommand=JZ(vU),fB.talkToRecsUpdateTextCommand=JZ(LC),fB.toggleEngagementPanelCommand=JZ(Bi),fB.undoFeedbackEndpoint=JZ(pl),fB.updateEngagementPanelContentCommand=JZ(Ur),fB.updateUrlParamCommand=JZ(TD),fB.updateVideoMetadataCommand=JZ(UH),fB.verifyCommand=
JZ(X9),fB.webNativeShareCommand=JZ(Sx),fB.webSubmitFormCommand=JZ(Cs),fB.ACK_PLAYABLES_3P_DATA_CONSENT=JZ(XS),fB.CANCEL_NAVIGATION=JZ($A),fB.COPY_SHARE_URL=JZ(GD),fB.MINI_APP_EXIT_DIALOG_SEEN=JZ(I0),fB.MINI_APP_OPEN_URL=JZ(bc),fB.REQUEST_MINI_APP_FULLSCREEN=JZ(ht),fB.RESUME_NAVIGATION=JZ(qU),fB.SHARE_PLAYABLE_WITH_HIGH_SCORE=JZ(ji),fB.TELL_US_WHY=JZ(E9),fB);_.U("web_enable_prefetching_videos_on_home")&&(T_.prefetchWatchCommand=JZ(Qr),T_.registerTasksCommand=JZ(E6));
_.U("enable_share_panel_navigation_logging_fix_on_web")&&(T_.shareEntityServiceEndpoint=JZ(vi));_.U("web_use_flow_state_manager")&&(T_.flowNextStepCommand=JZ(Wf9),T_.flowPrevStepCommand=JZ(NmD),T_.getFlowCommand=JZ(Cpe),T_.updateFlowCommand=JZ(dO));_.U("enable_ai_companion")&&(T_.updateConversationIdCommand=JZ(Jh),T_.formDataDecoratorCommand=JZ(Cl));var SOb=Object.assign({},T_);var Rp8={},nW3=(Rp8.initialized={priority:10,callback:sUp},Rp8);var OLD={},wf3=(OLD.initialized={callback:function(G){var b={},I={};q_a().install((b.document_disposed={callback:function(){_.U("finalize_all_timelines")?nfs():fU();F3q("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.sh2();var h=G.injector.resolve(PF);h.intervalId!==void 0&&(h.intervalId&&_.uu.cancelJob(h.intervalId),h.intervalId=void 0,--h.currentPartitionIndex,h=mxi(h),h>0&&W5e({mainAppWeb:_.y4(),survivalSli:{partitionMinute:h,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));orz(Vw);DR!=null&&
DR.flush();Eb&&Eb.snapshotAndFlush();h=_.e(EMW.values());for(var q=h.next();!q.done;q=h.next())q.value.snapshotAndFlush()}},b),(I.flush_logs={callback:function(){_.JM()}},I))}},OLD);var EWL={},pf5=(EWL.rendered={priority:0,callback:function(){var G=new m9n;G.increment("STARTED");if(_.wy("LOGGED_IN")&&!_.wy("IS_DBSC",!1)&&_.wy("SERVER_VERSION")!=="test"&&_.wy("SERVER_VERSION")!=="dev"&&!RMA()&&!uDn()){G.increment("EXECUTING");var b=document.createElement("iframe");b.style.display="none";_.Gf(b,2,_.KA("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.wy("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(b);G.increment("DONE")}}},
EWL);var SGY={},Xf9=(SGY.rendered={callback:function(){Nk9().resume()}},SGY);var $9K={acknowledgeChannelTouStrikeCommand:MK(qn),addToPlaylistServiceEndpoint:MK(mV),addToPlaylistEndpoint:MK(mV),addUpcomingEventReminderEndpoint:MK(Zo),browseEndpoint:MK(gu5),channelCreationFormEndpoint:MK(Si),channelCreationServiceEndpoint:MK(X3),claimLegacyYoutubeChannelEndpoint:MK(a0),clearSearchHistoryEndpoint:MK(TH),clearWatchHistoryEndpoint:MK(Bk),commerceActionCommand:ZG(oD),createBackstagePostEndpoint:MK(d7),createBroadcastCommand:MK(tv),createCommentEndpoint:MK(OH),createCommentReplyEndpoint:MK(nC),
createLiveChatPollEndpoint:MK(zH),createPlaylistServiceEndpoint:MK(e9),crossAccountChannelTransferEndpoint:MK(gb),deleteLiveChatMessageCommand:MK(oq),deletePlaylistEndpoint:MK(Vh),deleteVideoEndpoint:MK(Mg),dismissalEndpoint:MK(js),feedbackEndpoint:MK(vk),flagEndpoint:MK(Qh),getAccountSwitcherEndpoint:MK(sl),verifyCommand:MK(PU),getAccountsListInnertubeEndpoint:MK(Mn),getCommentsFromInboxCommand:MK(u5),getDownloadActionCommand:MK(Ss),getFlowCommand:ZG(fV),getKidsBlocklistPickerCommand:MK(xs),getNotificationMenuEndpoint:MK(ZT8),
getPaymentInstrumentsParamsCommand:MK(Ff),getPaymentsClientTokenCommand:ZG(oD),getPdgBuyFlowCommand:MK(j9),getReportFormEndpoint:MK(fx),getSearchInVideoCommand:MK(U6),getAnswerCommand:MK(BK),getSurveyCommand:MK(A6),getTranscriptEndpoint:MK(t6),getPostVideoPreviewEndpoint:MK(r7),decorateMessageEndpoint:MK(yT),likeEndpoint:MK($0),liveChatActionEndpoint:MK(yv),liveChatEndpoint:MK(db),liveChatItemContextMenuEndpoint:MK(i5),liveChatPurchaseMessageEndpoint:MK(rb),liveChatReplayEndpoint:MK(Pk),manageLiveChatUserEndpoint:MK(Hk),
metadataUpdateCommand:MK(Jv),moderateLiveChatEndpoint:MK(Wk),modifyChannelNotificationPreferenceEndpoint:MK(wb),notificationOptOutEndpoint:MK(El),openSuperStickerBuyFlowCommand:MK(FB),performCommentActionEndpoint:MK(KC),playlistEditEndpoint:MK(cK),playlistEditorEndpoint:MK(Dy),recordNotificationInteractionsEndpoint:MK(pV),reelWatchEndpoint:MK(ks),refreshPanelEndpoint:MK($s),removeUpcomingEventReminderEndpoint:MK(aq),resolveLocationCommand:MK(CV),revealBusinessEmailCommand:MK(NU),searchEndpoint:MK(_.ta5),
sendLiveChatMessageEndpoint:MK(Nn),sendLiveChatVoteEndpoint:MK(Y0),setSettingEndpoint:MK(GH),shareEntityServiceEndpoint:ZG(hv),sharingProviderDataCommand:MK(g3),showEngagementPanelEndpoint:MK(GY),showMoreDrawerCommand:MK(ID),showSheetCommand:MK(h6),showDialogCommand:MK(bK),subscribeEndpoint:MK(b5),transcriptSubmitCaptionCorrectionCommand:MK(Zy),undoFeedbackEndpoint:MK(Qv),unsubscribeEndpoint:MK(Iq),updateBackstagePostEndpoint:MK(HU),updateCommentEndpoint:MK(EH),updateCommentReplyEndpoint:MK(w7),updateCommentsSettingsEndpoint:MK(pC),
updateCreatorChannelInnertubeCommand:MK(CC),updateKidsBlacklistEndpoint:MK(TY),updateEngagementPanelContentCommand:MK(qg),updatePdgFeatureEnablementCommand:MK(lK),updatedMetadataEndpoint:MK(KV),validateChannelHandleCommand:MK(Jt),updateChannelPageSettingsEndpoint:MK(YA),verifyAgeEndpoint:MK(x0),watchEndpoint:ZG(tt),whitelistEditEndpoint:MK(zY),ypcCancelRecurrenceEndpoint:MK(iK),ypcCompleteTransactionEndpoint:MK(PK),ypcFixInstrumentEndpoint:MK(yh),ypcGetCartEndpoint:MK(d3),ypcGetOffersEndpoint:MK(r3),
ypcHandleTransactionEndpoint:ZG(HK),ypcLogWalletAnalyticDataEndpoint:MK(WK),ypcOffersEndpoint:MK(aD),ypcPauseSubscriptionCommand:MK(Ng),ypcRedeemCodeEndpoint:MK(Ys),ypcResumeSubscriptionCommand:MK(Cx),ypcUpdateFopEndpoint:MK(yh)},B9={},Gv8=(B9.GET_ACCOUNT_MENU=MK(Av),B9.GET_NOTIFICATIONS_MENU=MK(Ma1),B9.GET_NOTIFICATIONS_INBOX=MK(Rq),B9.GET_UNSEEN_NOTIFICATION_COUNT=MK(Ol),B9.GET_USER_MENTION_SUGGESTIONS=MK(F3),B9.LOAD_GUIDE=MK(A2j),B9.SUBMIT_FEEDBACK=MK(LV),B9),U7={},bi8=(U7.CONTINUATION_REQUEST_TYPE_BROWSE=
MK(WU),U7.CONTINUATION_REQUEST_TYPE_SEARCH=MK(s6),U7.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=MK(AH),U7.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=MK(Ul),U7.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=MK(R0),U7.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=MK(uc),U7.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=MK(Lx),U7.CONTINUATION_REQUEST_TYPE_GET_PANEL=MK(XB),U7),IO1={player:ZG(tt),watchNext:MK(gW)},hjD={player:ZG(tt),reelItemWatch:MK(ks),reelWatchSequence:MK(vK)},qAD={watchEndpoint:ZG(zD)},jb3=
{commandEndpointMap:$9K,signalEndpointMap:Gv8,continuationEndpointMap:bi8,watchEndpointMap:IO1,reelWatchEndpointMap:hjD,streamingEndpointMap:qAD};var lOe,m9F,ej1;_.Vy8=((m9F=(lOe=window).matchMedia)==null?void 0:(ej1=m9F.call(lOe,"(prefers-reduced-motion: reduce)"))==null?void 0:ej1.matches)||!document.startViewTransition;var D91={},cFL={disableAllTransitions:_.Vy8,ignoredErrors:(D91.DOCUMENT_HIDDEN=!0,D91.WINDOW_SIZE_CHANGED=!0,D91.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,D91),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 kve=_.WP("\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(",")),L0c=function(G){var b=this;this.viewTransitionCoordinator=
G;this.disableTransitionsForUltraHigh=_.U("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=v_Y();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.UG("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.U("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.U("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.U("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.UG("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.U("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.uu.addJob(function(){b.registerRootElement();if(b.isAnyTransitionEnabled){var I=
_.Te("web_page_transition_exit_ms"),h=_.Te("web_page_transition_wait_ms"),q=_.Te("web_page_transition_enter_fast_ms"),l=_.Te("web_page_transition_watch_exit_ms"),V=_.Te("web_page_transition_watch_wait_ms"),D=_.Te("web_page_transition_watch_enter_ms"),k=_.Te("web_page_transition_watch_next_exit_ms"),L=_.Te("web_page_transition_watch_next_wait_ms"),x=_.Te("web_page_transition_watch_next_enter_fast_ms"),f=_.Te("web_page_transition_enter_ms"),T=_.Te("web_page_transition_watch_next_enter_ms");b.enableFasterTransitions&&
b.isUltraHighBucketDevice&&(f=q,T=x);isNaN(I)&&isNaN(h)&&isNaN(f)&&isNaN(l)&&isNaN(V)&&isNaN(D)&&isNaN(k)&&isNaN(L)&&isNaN(T)||!(I=Hyv(kve,I,h,f,l,V,D,k,L,T))||(h=document.createElement("style"),h.textContent=Q$a(I),document.head.appendChild(h))}},8)},v_Y=function(){var G=_.hd.navigator.deviceMemory;
return G>=8||G===void 0?!0:!1};
L0c.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))}};
_.OKQ=function(G,b){G.isLockupToWatchTransitionEnabled&&G.isLockupThumbnailRegistrationEnabled&&(G.registeredLockupThumbnail?G.lockupThumbnailRegisteredFromWatchEndpoint?_.RB(new _.Wf("Lockup thumbnail registration order is incorrect.")):_.RB(new _.Wf("Lockup thumbnail already registered.")):(G.registeredLockupThumbnail=b,_.Qb1(G,b)))};
_.Qb1=function(G,b){var I={};G.viewTransitionCoordinator.registerElement(b,(I["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",I),!0)};
L0c[QE]=[hT9];var gvj={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 MQj=["videoPrimaryInfoRenderer","title"],ZdX=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var x9K;x9K=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.fO3=_.C(function(G){G=_.N5(G,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var b=G.data,I=G.playlistData,h=G.expanded,q=G.onExpandClick,l=G.isReadyToResume,V=function(){var x;return!((x=I())==null||!x.contents)},D=function(){var x=I();
return x&&x.totalVideos&&x.currentIndex!==void 0?x.currentIndex+1+" / "+x.totalVideos:""};
G=_.Xu(function(){_.s7(_.LL().resolve(_.zO));return!1});
var k=_.Xu(function(){V()&&q&&q()}),L={};
return _.v("ytd-miniplayer-info-bar",{class:_.pG("ytdMiniplayerInfoBarHost",(L.ytdMiniplayerInfoBarHasPlaylistData=V,L)),"on:click":k},_.v("div",{class:"ytdMiniplayerInfoBarContent"},_.v("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":G},_.v(_.IS,{text:function(){var x=b();var f=I();if(f==null?0:f.contents){var T;x=(T=_.IsX(f))==null?void 0:T.title}else x=x==null?void 0:x.miniplayerTitle;return tQd(x)},
noEndpoints:!0,ellipsisTruncate:!0})),_.v("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.v(_.Q,{cond:l,then:function(){return _.v(Agn,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:x9K})}}),_.v("h1",null,_.v(_.IS,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var x=b();var f=I();x=l()?{simpleText:_.qP("CONTINUE_WATCHING",void 0,"Continue watching")}:(f==null?0:f.contents)?f.titleText:x==null?void 0:x.miniplayerSubtitle;return tQd(x)},
noEndpoints:!0,ellipsisTruncate:!0})),_.v(_.Q,{cond:function(){return!!D()&&!l()},
then:function(){return _.v("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.v("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.v("span",null,D))}}))),_.v(_.Q,{cond:V,
then:function(){return _.v("div",{class:"ytdMiniplayerInfoBarExpand"},_.v(_.TV,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(x){q&&(q(),x.stopPropagation())}}},
iconName:function(){return h()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"wg");var Thc;Thc=_.C(function(G){return _.v("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.v(_.TV,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:G.onTap}},
iconName:"yt-icons:close"}))},"xg");
_.BhW=_.C(function(G){G=_.N5(G,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var b=G.size,I=G.playabilityStatus,h=G.isDisabled,q=G.isPictureInPicture,l=_.ee("div");G=_.e(_.ZZ(void 0,void 0,"w4RAU"));var V=G.next().value,D=G.next().value;G=_.m2(_.O2);var k=!1,L=function(){return b().height<=0};
_.K0(function(){var B=b(),A=L(),t=V();t&&!A&&t.setInternalSize(B.width,B.height)},"BHFc2b");
_.JC(function(){var B,A,t;return _.c(function(y){if(y.nextAddress==1){B=_.LL().resolve(_.zO);A=B.getPlayerElement();if(!B.isMiniplayerActive()||!A||!l.value)return y.return();A.appendTo(l.value);return y.yield(A.getPlayerPromise(),2)}t=y.yieldResult;q()||t.setSizeStyle(!1,!0);D(t);_.ip(y)})});
_.uI(function(){x()});
_.K0(function(){var B=V();if(B)if(h()){var A=B.getPlayerState();(k=A===-1||A===1||A===3)&&B.pauseVideo()}else x()},"Invykd");
var x=function(){if(k){k=!1;var B;(B=V())==null||B.playVideo()}},f=_.Xu(function(){_.s7(_.LL().resolve(_.zO))}),T={};
return _.v("ytd-miniplayer-player-container",{class:_.pG("ytdMiniplayerPlayerContainerHost",(T.ytdMiniplayerPlayerContainerHidden=L,T.ytdMiniplayerPlayerContainerHostShortsPip=G,T)),style:_.Ir({width:function(){return b().width+"px"},
height:function(){return b().height+"px"}})},_.v("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:l}),_.v(_.Q,{cond:function(){return!!I()&&!_.OKO(I())},
then:function(){return _.v(XgW,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var B;return((B=I())==null?void 0:B.errorScreen)||null},
status:function(){var B;return((B=I())==null?void 0:B.status)||null}})}}),_.v(_.Q,{cond:h,
then:function(){return _.v("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":f},_.v(Thc,{onTap:function(){_.LL().resolve(_.zO).close()}}))}}))},"Bg");_.U99=_.C(function(G){var b=G.toastData;var I=_.ee("ytd-miniplayer-toast");G=_.e(_.bk(function(){return!!b()}));
var h=G.next().value,q=G.next().value;G=_.e(_.ZZ(!1,void 0,"BvfNQe"));var l=G.next().value,V=G.next().value,D=function(){var x;return _.NO((x=b())==null?void 0:x.data.title)};
_.K3(function(){_.Sb.requestAvailability();b()&&q(!1)});
var k,L;_.K0(function(){h()&&(_.O3(I.value,"iron-announce",{text:b().label+" "+D()}),k&&_.uu.cancelJob(k),k=_.uu.addLowPriorityJob(function(){V(!0)},2500))},"no1dZb");
_.K0(function(){l()&&(L&&_.uu.cancelJob(L),L=_.uu.addLowPriorityJob(function(){q(!1);V(!1)},300))},"G3yPNe");
G={};return _.v("ytd-miniplayer-toast",{el:I,class:_.pG("ytdMiniplayerToastHost",(G.ytdMiniplayerToastOpening=function(){return h()},G.ytdMiniplayerToastClosing=function(){return l()},G))},_.v(_.Q,{cond:function(){var x;
return(x=b())==null?void 0:x.data},
then:function(x){return _.v(ySJ,{className:"ytdMiniplayerToastThumbnail",data:x,width:78})}}),_.v("div",{class:"ytdMiniplayerToastInfo"},_.v("div",{class:"ytdMiniplayerToastLabel"},function(){var x;
return(x=b())==null?void 0:x.label}),_.v("div",{class:"ytdMiniplayerToastTitle"},D)))},"Eg");var W_O;var YJq=null;var g_W=_.C(function(G){var b=G.progressState;var I=G.multiMarkersPlayerBarRenderer;var h=G.progressBarWidth;var q=function(){return uta(I())},l=function(){return Odr(b())},V=function(){return h()*(b().playedTime/b().videoDuration)};
return _.v("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.v(_.aj,{each:q},function(D,k){return _.v(sbj,{modifiedProps:l,chapters:q,index:k,playedProgressWidth:V,backgroundGradientPosition:function(){var L=l(),x=q(),f=k(),T=V();return(L.playedTime-Z_(_.g(x[f],M_)))/L.playedTime*T}})}))},"Fg"),sbj=_.C(function(G){var b=G.modifiedProps;
var I=G.chapters;var h=G.index;var q=G.playedProgressWidth;var l=G.backgroundGradientPosition;G={};G=_.pG("ytChapteredProgressBarChapteredPlayerBarChapter",(G.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return V().isScrubbing},G.ytChapteredProgressBarHoveredMacroMarker=function(){return V().scrubberHovering},G.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return V().videoPosition==="seen"},G));
var V=function(){return wY2(b(),I(),h())},D=function(){var k=b();
var L=I(),x=h();if(wY2(k,L,x).videoPosition!=="active")k=0;else{var f=Z_(_.g(L[x],M_));k=(k.playedTime-f)/((Z_(_.g(L[x+1],M_))||k.videoDuration)-f)}return k};
return _.v("div",{class:G,style:_.Ir({width:function(){var k=b(),L=I(),x=h(),f=_.g(L[x],M_);L=_.g(L[x+1],M_);return(L?Z_(L)-Z_(f):k.videoDuration-Z_(f))/k.videoDuration*100+"%"},
"background-color":function(){a:{var k=V();switch(k.videoPosition){case "pending":k=k.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":k=k.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:k=""}}return k},
"background-size":function(){return(EvO(V())?q():"")+"px"},
"background-position-x":function(){return(EvO(V())?l():"")+"px"}})},_.v("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var k=b(),L=I(),x=h();if(wY2(k,L,x).videoPosition==="seen")var f=0;else f=Z_(_.g(L[x],M_)),L=Z_(_.g(L[x+1],M_))||k.videoDuration,k=k.videoDuration*k.percentLoaded,f=L<=k?1:f>=k?0:(k-f)/(L-f);return"width: "+f*100+"%"}}),_.v("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Ir({width:function(){return D()*100+"%"},
"background-size":function(){return(EvO(V(),D())?q():"")+"px"},
"background-position-x":function(){return(EvO(V(),D())?l():"")+"px"}})}))},"Gg");var AFL=function(G,b){b=b===void 0?CXJ:b;var I,h=[],q,l=!1;return function(){var V=_.RI.apply(0,arguments);if(l&&I===this&&b(V,h))return q;q=G.apply(this,V);l=!0;I=this;h=V;return q}}(function(G){var b=G.heatMarkers,I=G.minHeightDp===void 0?0:G.minHeightDp,h=G.maxHeightDp===void 0?60:G.maxHeightDp;
var q=q===void 0?!1:q;var l=1E3/b.length;G=[];G.push({x:0,y:100});for(var V=0;V<b.length;V++){var D=void 0,k=((D=_.g(b[V],wcn))==null?void 0:D.heatMarkerIntensityScoreNormalized)||0;D=(V+.5)*l;k=100-_.Ak(k*100,I/321*100,h/321*100);V!==0||q||G.push({x:0,y:k});G.push({x:D,y:k});V===b.length-1&&G.push({x:1E3,y:k})}G.push({x:1E3,y:100});b="";for(I=0;I<G.length;I++)q=G[I],I===0?q="M "+q.x.toFixed(1)+","+q.y.toFixed(1):(h=R0r(G[I-1],G[I-2],q),l=R0r(q,G[I-1],G[I+1],!0),q=" C "+(h.x.toFixed(1)+","+h.y.toFixed(1)+
" "+l.x.toFixed(1)+","+l.y.toFixed(1)+" "+q.x.toFixed(1)+","+q.y.toFixed(1))),b+=q;return b});var MyF=_.C(function(G){var b=G.progressBarProps;var I=G.config;var h={};G=_.pG("ytHeatSeekerHost",(h.ytHeatSeekerHighContrast=G.highContrast,h));var q=function(){return d6X(I().chapterData)};
return _.v("yt-progress-bar-heatseeker",{class:G,style:function(){var l;return"height: 320px; display: "+(b().isDragging&&((l=q())==null?0:l.heatMarkers)?"block":"none")}},_.v(_.Q,{cond:q,
then:function(l){return _.v(_.Q,{cond:function(){return l().heatMarkers},
then:function(){return _.v("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.v("path",{d:function(){return AFL(l())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Hg");var ZiF=_.C(function(G){var b=G.progressBarProps;var I=G.config;G={};G=_.pG("ytProgressBarLineProgressBarLine",(G.ytProgressBarLineProgressBarLineRounded=function(){return I().rounded},G.ytProgressBarLineProgressBarLineBottomInset=function(){return I().position===2},G));
return _.v("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.v("div",{class:G},_.v("div",{class:"ytProgressBarLineProgressBarBackground"}),_.v("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+b().percentLoaded*100+"%"}}),_.v("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var h=b();return"width: "+(h.videoDuration?_.Ak(h.hoveredTime/h.videoDuration,0,1):0)*100+"%"}}),_.v("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+ovO(b())*100+"%"}})))},"Ig");
ZiF.idomCompat=!0;var ty3=_.C(function(G){var b=G.progressBarProps;var I=G.playheadData;var h=G.interpolateDotPosition;var q=G.hidePlayhead;G={};var l=_.pG("ytProgressBarPlayheadProgressBarPlayheadDot",(G.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return b().isDragging},G.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!b().isDragging&&q()},G));
return _.v("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Ir({"margin-left":function(){return idO(b())*100+"%"},
transform:function(){return"translateX(-"+(h()?idO(b())*12:6)+"px)"}})},_.v(_.Q,{cond:function(){var V;
return(V=_.a9(I)())==null?void 0:V.playheadImage},
then:function(V){var D={};return _.v("div",{class:_.pG("ytProgressBarPlayheadProgressBarPlayheadCustom",(D.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return b().isDragging},D.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!b().isDragging&&q()},D)),
style:_.Ir({"transform-origin":function(){return(h()?idO(b())*20:10)+"px center"}})},_.v(_.Fu,{data:V,
alt:"","aria-hidden":"true"}))},
else:function(){return _.v("div",{class:l,style:_.Ir({"transform-origin":function(){return(h()?idO(b())*12:6)+"px center"}})})}}))},"Jg");
ty3.idomCompat=!0;var gf=function(G,b,I,h,q,l){this.getProgressBarRect=G;this.updateProgressBarRect=b;this.getFilmstripYPosition=I;this.setFineScrubbingDraggedTime=h;this.updateFilmStripDraggedYDistance=q;this.resetFilmStripYOffset=l;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.GB(this.onThrottledSeek,100,this)},zjY=function(G,b,I){return function(h){G.handleClick(h,b(),I())}},Pu5=function(G,b){return function(I){o_W(G,
I,iiF(I),b())}},d9D=function(G,b){return function(I){o_W(G,I,{x:I.clientX,
y:I.clientY},b())}},rFD=function(G,b,I){return function(h){var q=b(),l=I();
yFL(G,h,iiF(h),q,l,!0);if(l.onTouchMove)l.onTouchMove(q)}},Hi1=function(G,b,I){return function(h){F0e(G,h,b(),I())}},W0Y=function(G,b){return function(){G.handleMouseLeave(b())}},aOY=function(G,b,I){return function(){var h=b(),q=I();
Am(G,h,q);if(q.onTouchEnd)q.onTouchEnd(h)}},NhY=function(G,b,I){return function(){var h=b(),q=I();
Am(G,h,q);if(q.onTouchEnd)q.onTouchEnd(h)}},YAY=function(G,b,I){return function(){Am(G,b(),I())}},Cu1=function(G){return function(b){if(b.keyCode===39||b.keyCode===38){var I,h;
(I=G())==null||(h=I.playerApi)==null||h.seekBy(5,void 0,void 0,72)}else if(b.keyCode===37||b.keyCode===40){var q,l;(q=G())==null||(l=q.playerApi)==null||l.seekBy(-5,void 0,void 0,71)}}},JFL=function(G,b,I){return function(h){!I().disableScrubbing&&G.startPosition&&F0e(G,h,b(),I())}},K0j=function(G,b,I){return function(){if(!I().disableScrubbing)if(G.startPosition){var h=b(),q=I();
Am(G,b(),I());if(q.onTouchEnd)q.onTouchEnd(h)}else b().setState({isDragging:!1})}},iiF=function(G){G=G.touches[0];
return{x:G.clientX,y:G.clientY}},F0e=function(G,b,I,h){if(b.buttons!==1){if(b.movementX||b.movementY)b.preventDefault(),b.stopPropagation(),G=u5D(G,I,b.clientX),I.setState({isHovering:!0,
hoveredTime:G*I.videoDuration})}else Rj8(I),yFL(G,b,{x:b.clientX,y:b.clientY},I,h,!1)};
gf.prototype.handleMouseLeave=function(G){Rj8(G)};
var Rj8=function(G){G.isHovering&&G.setState({isHovering:!1,hoveredTime:0})},o_W=function(G,b,I,h){G.startPosition||(G.startPosition=I,G.updateProgressBarRect(),G.controlsWereVisibleBeforeDragging=h.controlsVisible,b.stopPropagation(),_.U("medium_progress_bar_modification")||b.preventDefault())},yFL=function(G,b,I,h,q,l){if(G.startPosition)if(l&&q.isInlinePlayback&&G.startPosition&&!G.hasDraggedTheMinimumDistance&&Math.abs(I.y-G.startPosition.y)>Math.abs(I.x-G.startPosition.x))Am(G,h,q);
else if(b.preventDefault(),b.stopPropagation(),h.videoDuration&&(G.startPosition&&!G.hasDraggedTheMinimumDistance&&(G.hasDraggedTheMinimumDistance=Math.abs(I.x-G.startPosition.x)>=1),q.enableFineScrubbing&&(G.startPosition&&(G.isDraggedForFineScrubbing=-(I.y-G.startPosition.y)>=60),!G.startPosition||I.y>=G.startPosition.y||(h.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:pY2(h.draggedTime,h,q.chapterData)}),G.setFineScrubbingDraggedTime(h.draggedTime),G.updateFilmStripDraggedYDistance(G.startPosition.y,
I.y,h))),G.hasDraggedTheMinimumDistance)){b=u5D(G,h,I.x);if(G.isDraggedForFineScrubbing){var V;(V=h.playerApi)==null||V.pauseVideo();h.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:h.draggedTime,filmStripXDistance:pY2(b*h.videoDuration,h,q.chapterData)})}q.enableFineScrubbing&&(!q.enableFineScrubbing||G.getFilmstripYPosition(h)<68)||h.setState({draggedTime:b*h.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:G.controlsWereVisibleBeforeDragging});var D;(D=
q.cancelAutohideControlsFn)==null||D.call(q)}},Am=function(G,b,I){var h=I.enableFineScrubbing&&b.fineScrubbingActiveState!=="off";
if(b.isDragging||h){h={isDragging:!1,playedTime:b.draggedTime,controlsVisible:G.controlsWereVisibleBeforeDragging};I.enableFineScrubbing&&b.fineScrubbingActiveState!=="on"&&(G.resetFilmStripYOffset(),h.fineScrubbingActiveState="off");var q=q===void 0?YJq:q;var l=_.gL(0);if(l&&q){var V=Math.round(b.playedTime*1E3),D=Math.round(b.draggedTime*1E3);V>2147483647||D>2147483647||_.aW(l,q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(V),endMediaTimeMs:String(D),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}b.setState(h);
G.seekThrottle.fire(b.draggedTime,b,7);_.U("mweb_new_progress_bar_play_on_seek")&&G.resumeVideo(b);I.unmuteOnSeek&&(I=b.playerApi,b.volumeMuted&&(I==null||I.unMute()))}else b.setState({controlsVisible:!b.controlsVisible}),(l=I.triggerAutohideControlsAfterDelayFn)==null||l.call(I);G.startPosition=null;G.hasDraggedTheMinimumDistance=!1;G.isDraggedForFineScrubbing=!1;G.controlsWereVisibleBeforeDragging=!1};
gf.prototype.handleClick=function(G,b,I){this.updateProgressBarRect();G.stopPropagation();G=u5D(this,b,G.clientX)*b.videoDuration;b.setState({playedTime:G});if(b.playerState!==2){var h;(h=I.triggerAutohideControlsAfterDelayFn)==null||h.call(I)}this.seekThrottle.fire(G,b,7)};
var u5D=function(G,b,I){G=G.getProgressBarRect(b);return _.Ak(0,(I-G.left)/G.width,1)};
gf.prototype.resumeVideo=function(G){if(G.draggedTime<G.videoDuration){var b;(b=G.playerApi)==null||b.playVideo()}};
gf.prototype.onThrottledSeek=function(G,b,I){if(b=b.playerApi){var h;if((h=b.getVideoData())==null?0:h.isLive)h=this.getProgressState(b),G+=(h==null?void 0:h.seekableStart)||0;b.seekTo(G,void 0,void 0,void 0,I)}};
gf.prototype.getProgressState=function(G){var b=G==null?void 0:G.getPresentingPlayerType();return G==null?void 0:G.getProgressState(b)};var wzj,OiF,E_8,SAY,n_K,XzW,$Bc,Gs8,b1a;wzj=_.C(function(G){var b=G.progressBarProps;var I=G.config;var h=G.progressBarWidthPx;var q=G.chapterData;var l=bHd(b,function(){return I().isShortsPage}),V=function(){return!b().isHovering&&!I().isShortsPage};
G={};var D=_.pG("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(G.ytPlayerStoryboardHostMwebShorts=function(){return I().isShortsPage&&!1},G));
return _.v("yt-player-storyboard",null,_.v(_.Q,{cond:function(){return b().isDragging||b().isHovering},
then:function(){return _.v(_.Q,{cond:l,then:function(k){return _.v(_.Q,{cond:V,then:function(){return _.v("div",{class:D,"aria-hidden":"true"},_.v(n_K,{props:b,config:I,isBigboard:!0,chapterData:q}))},
else:function(){return _.v(OiF,{props:b,frame:k,config:I,progressBarWidthPx:h,chapterData:q})}})}})}}))},"Kg");
_.pzW=_.C(function(G){var b=G.progressBarProps;var I=bHd(b,G.isShortsPage);return _.v("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.v(_.Q,{cond:function(){return b().isDragging||b().isHovering},
then:function(){return _.v(_.Q,{cond:I,then:function(h){return _.v(E_8,{frame:h,props:b,isBigboard:!0})}})}}))},"Lg");
OiF=_.C(function(G){var b=G.props;var I=G.frame;var h=G.config;var q=G.progressBarWidthPx;G=G.chapterData;var l={};l=_.pG("ytPlayerStoryboardHost",(l.ytPlayerStoryboardHostMwebShorts=function(){return h().isShortsPage&&!1},l.ytPlayerStoryboardHostInlinePlayer=function(){return h().isInlinePlayer},l.ytPlayerStoryboardHostFadeIn=function(){return h().useFadeInAnimation},l));
return _.v("div",{class:l,"aria-hidden":"true",style:function(){var V=b(),D=SJ2(I()),k=q();V=XYO(V)/V.videoDuration;var L=k*V,x=D/2+6;D=k-(D/2+6);return"left: "+(L<=x?x/k*100:L>=D?D/k*100:V*100)+"%"}},_.v(_.Q,{cond:function(){var V=b();
return!(h().isShortsPage&&V.videoDuration<15)},
then:function(){return _.v(E_8,{frame:I,props:b,isBigboard:!1})}}),_.v(n_K,{props:b,
config:h,isBigboard:!1,chapterData:G}))},"Mg");
E_8=_.C(function(G){var b=G.frame;var I=G.props;var h=G.isBigboard;var q=function(){var D,k;return(k=(D=I().playerApi)==null?void 0:D.getVideoContentRect())!=null?k:{width:0,height:0}},l=function(){return SJ2(b())},V=function(){var D=b();
return D?D.height/D.rows:0};
G={};G=_.pG((G.ytPlayerStoryboardBigboardImageWrapper=h,G.ytPlayerStoryboardStoryboardImageWrapper=function(){return!h()},G));
return _.v("div",{class:G,style:function(){return"width: "+(h()?q().width:l())+"px; height: "+(h()?q().height:V())+"px;"}},_.v(SAY,{frame:b,
storyboardWidth:l,storyboardHeight:V,storyboardScale:function(){return(h()?q().width:l())/l()}}))},"Ng");
SAY=_.C(function(G){var b=G.frame;var I=G.storyboardWidth;var h=G.storyboardHeight;var q=G.storyboardScale;var l=function(){var V=b().row,D=b().column,k=I(),L=h(),x=q();return{left:-D*k*x,top:-V*L*x}};
return _.v("img",{src:function(){return b().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+l().left+"px; top: "+l().top+"px; width: "+b().width*q()+"px; height: "+b().height*q()+"px;"}})},"Og");
n_K=_.C(function(G){var b=G.props;var I=G.config;var h=G.isBigboard;var q=G.chapterData;G={};G=_.pG("ytPlayerStoryboardMetadata",(G.ytPlayerStoryboardMetadataBigboard=h,G));return _.v("div",{class:G},_.v(_.Q,{cond:h,then:function(){return _.v(_.xz,null,_.v(XzW,{props:b,config:I}),_.v(_.Q,{cond:function(){a:{var l=b();var V=I(),D=q(),k;if((V==null?0:V.activeChapter)&&((k=_.g(V==null?void 0:V.activeChapter,M_))==null?0:k.title))l=!0;else{V=_.e(yYr(D));for(V=V.next();!V.done;V=V.next()){l=(V=_.g(V.value,
pcz))&&$aX(l,V);break a}l=!1}}return l},
then:function(){return _.v($Bc,{props:b,config:I,isBigboard:!0,chapterData:q})}}))},
else:function(){return _.v(_.xz,null,_.v($Bc,{props:b,config:I,isBigboard:!0,chapterData:q}),_.v(XzW,{props:b,config:I}))}}))},"Pg");
XzW=_.C(function(G){var b=G.props;var I=G.config;G={};G=_.pG("ytPlayerStoryboardTimestamp",(G.ytPlayerStoryboardTimestampShorts=function(){return I().isShortsPage},G.ytPlayerStoryboardTimestampIsHovering=function(){return b().isHovering||I().isShortsPage&&!0},G));
return _.v("div",{class:G},_.v(_.xz,null,function(){return _.Ghr(XYO(b()))}))},"Qg");
$Bc=_.C(function(G){var b=G.props;var I=G.config;var h=G.isBigboard;var q=G.chapterData;G={};h=_.pG("ytPlayerStoryboardTitle",(G.ytPlayerStoryboardTitleBigboard=h,G));return _.v("div",{class:h},_.v(_.Q,{cond:function(){return!I().isShortsPage},
then:function(){return _.v(Gs8,{props:b,activeChapter:function(){return I().activeChapter},
chapterData:q})}}))},"Rg");
Gs8=_.C(function(G){var b=G.props;var I=G.activeChapter;var h=G.chapterData;return _.v(_.xz,null,_.v(_.aj,{each:function(){return yYr(h())},
keyBy:"INDEX"},function(q){return _.v(_.xz,null,_.v(_.Q,{cond:function(){return _.g(q(),pcz)&&$aX(b(),_.g(q(),pcz))},
then:function(){return _.v(b1a,{timedMarker:function(){return _.g(q(),pcz)}})}}))}),_.v(_.Q,{cond:function(){var q;
return I()&&((q=_.g(I(),M_))==null?void 0:q.title)},
then:function(q){return _.v(_.IS,{text:q,noPreWrap:!0})}}))},"Sg");
b1a=_.C(function(G){var b=G.timedMarker;return _.v(_.xz,null,_.v("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.v(_.ha,{icon:function(){return b().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.v(_.IS,{text:function(){return b().label},
noPreWrap:!0}))},"Tg");_.I53=_.C(function(G){var b=G.progressBarProps;var I=G.playheadData;var h=G.config;G=_.ee("yt-progress-bar");var q=_.ee("div"),l=_.ee("div"),V=_.e(_.ZZ({width:0,left:0},void 0,"WloVn")),D=V.next().value,k=V.next().value,L=function(){l.value&&k(l.value.getBoundingClientRect())},x=function(){D().width<=0&&L();
return D()};
_.kG("resize",L);var f=new gf(x,function(){},function(){return 0},function(){},function(){},function(){}),T=function(){return b()};
V=_.e(_.ZZ(!1,void 0,"u8BZZb"));var B=V.next().value,A=V.next().value;V=_.Xu(function(){A(!0);h().position===2?setTimeout(function(){L()},100):L()});
var t=_.Xu(function(){A(!1);W0Y(f,T)()}),y=_.Xu(function(is){h().doSeekOnClick&&zjY(f,T,h)(is);
return!1}),F=_.Xu(function(is){Pu5(f,T)(is);
return!1}),W=_.Xu(function(is){d9D(f,T)(is);
return!1}),O=_.Xu(function(is){rFD(f,T,h)(is);
return!1}),K=_.Xu(function(is){Hi1(f,T,h)(is);
return!1}),u=_.Xu(function(){aOY(f,T,h)();
return!1}),w=_.Xu(function(){NhY(f,T,h)();
return!1}),$a=_.Xu(function(){YAY(f,T,h)();
return!1}),ev=_.Xu(function(is){Cu1(T)(is);
return!1});
_.kG("mousemove",JFL(f,T,h));_.kG("mouseup",K0j(f,T,h));_.K3(function(){Cav(q.value);A(!1);L();K0j(f,T,h)()});
var LO={};LO=_.pG("ytPlayerProgressBarHost",function(){return h().className},(LO.ytPlayerProgressBarHostReadOnly=function(){return h().disableScrubbing},LO.ytPlayerProgressBarHostHidden=function(){return h().hideProgressBar&&!B()},LO.ytPlayerProgressBarHostLowerPlayer=function(){return h().position===0},LO.ytPlayerProgressBarHostBottomEdge=function(){return h().position===1},LO.ytPlayerProgressBarHostBottomInset=function(){return h().position===2},LO.ytPlayerProgressBarHostCustom=function(){return h().position===
3},LO));
var td={},xa=_.pG("ytPlayerProgressBarBackground",(td.ytPlayerProgressBarBackgroundHide=function(){return h().position===2&&!B()&&!b().isDragging},td));
td={};td=_.pG("ytPlayerProgressBarDragContainer",(td.ytPlayerProgressBarDragContainerBottomEdge=function(){return h().position===1},td));
var Uj={};Uj=_.pG("ytPlayerProgressBarProgressBar",(Uj.ytPlayerProgressBarProgressBarInset=function(){return h().position===2},Uj.ytPlayerProgressBarProgressBarInsetMinimized=function(){return h().position===2&&!B()&&!b().isDragging},Uj));
var W2=function(){return Math.floor(ovO(b())*100)};
return _.v("yt-progress-bar",{el:G,class:LO},_.v(_.Q,{cond:function(){return h().position===2},
then:function(){return _.v("div",{class:xa})}}),_.v("div",{el:q,
"on:click":y,"on:touchstart":F,"on:touchmove":O,"on:mouseenter":V,"on:mousedown":W,"on:mouseleave":t,"on:mousemove":K,"on:mouseup":w,"on:touchend":u,"on:touchcancel":$a,"on:keydown":ev,class:td,role:"slider","aria-valuenow":W2,"aria-valuetext":function(){return W2()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return b().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.qP("SEEK_SLIDER")},_.v("div",{el:l,class:Uj},_.v(MyF,{progressBarProps:b,config:h,highContrast:function(){return!!h().isInlinePlayback}}),_.v(_.Q,{cond:function(){return h().chapterData&&rYX(h().chapterData)},
then:function(){return _.v(g_W,{progressState:b,multiMarkersPlayerBarRenderer:function(){return h().chapterData},
progressBarWidth:function(){return D().width}})},
else:function(){return _.v(ZiF,{progressBarProps:b,config:h})}}),_.v(ty3,{progressBarProps:b,
playheadData:I,interpolateDotPosition:function(){return h().position!==2},
hidePlayhead:function(){return h().playheadDotBehavior===1&&!B()}}))),_.v(wzj,{progressBarProps:b,
config:function(){return{activeChapter:nva(b(),h().chapterData),getProgressBarWidthPx:function(){return x().width},
isShortsPage:!!h().isShortsPage,isInlinePlayer:!!h().isInlinePlayback,useFadeInAnimation:!!h().isInlinePlayback}},
progressBarWidthPx:function(){return D().width},
chapterData:function(){return h().chapterData}}))},"Ug");
_.I53.idomCompat=!0;Object.assign({},_.F_v(),{setState:function(){},
domMeasurements:{},appApi:_.zHd(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var h29;
_.qY9=_.C(function(){var G,b=(G=_.tk(Ihp().playerApi))!=null?G:void 0;G=_.e(_.ZZ(!1,void 0,"Z9NQ1b"));var I=G.next().value,h=G.next().value;G=_.e(_.ZZ(!1,void 0,"HoVJXe"));var q=G.next().value,l=G.next().value;G=_.e(_.ZZ(!1,void 0,"DWCY3"));var V=G.next().value,D=G.next().value;G=_.e(_.ZZ(!1,void 0,"g4C2Zd"));var k=G.next().value,L=G.next().value;G=_.e(_.ZZ(0,void 0,"lmVfFb"));var x=G.next().value,f=G.next().value;G=_.e(_.ZZ(0,void 0,"mFLbzb"));var T=G.next().value,B=G.next().value;G=_.e(_.ZZ(!1,void 0,
"hQN4Wb"));var A=G.next().value,t=G.next().value;G=_.e(_.ZZ(0,void 0,"WWU0fb"));var y=G.next().value,F=G.next().value;G=_.e(_.ZZ(0,void 0,"MJ7LMd"));var W=G.next().value,O=G.next().value;G=_.e(_.ZZ("",void 0,"hnomOe"));var K=G.next().value,u=G.next().value;G=_.e(_.ZZ(-1,void 0,"ARe3pf"));var w=G.next().value,$a=G.next().value,ev=_.P$(function(){var LO={controlsVisible:I(),isOverlayHidden:q(),shouldWaitToHideControls:V(),isDragging:k(),isHovering:A(),videoDuration:y(),playedTime:W(),videoId:K(),draggedTime:T(),
hoveredTime:x(),playerState:w()};return Object.assign({},_.F_v(),LO,{domMeasurements:{},setState:function(td){td.controlsVisible!==void 0&&h(td.controlsVisible);td.isOverlayHidden!==void 0&&l(td.isOverlayHidden);td.shouldWaitToHideControls!==void 0&&D(td.shouldWaitToHideControls);td.isDragging!==void 0&&L(td.isDragging);td.isHovering!==void 0&&t(td.isHovering);td.draggedTime!==void 0&&B(td.draggedTime);td.hoveredTime!==void 0&&f(td.hoveredTime);td.videoDuration!==void 0&&F(td.videoDuration);td.playedTime!==
void 0&&O(td.playedTime);td.videoId!==void 0&&u(td.videoId);td.playerState!==void 0&&$a(td.playerState)},
appApi:_.zHd(),playerApi:b})},void 0,"Au4PIf");
_.JC(function(){b==null||b.addEventListener("onVideoProgress",NMv(ev));b==null||b.addEventListener("onVideoDataChange",awp(ev));b==null||b.addEventListener("onStateChange",Hds(ev))});
_.uI(function(){if(b==null?0:b.isReady())b==null||b.removeEventListener("onVideoProgress",NMv(ev)),b==null||b.removeEventListener("onVideoDataChange",awp(ev)),b==null||b.removeEventListener("onStateChange",Hds(ev))});
return _.v("desktop-shorts-player-controls",null,_.v(h29,{playerControlsProps:ev}))},"Wg");
h29=_.C(function(G){var b=G.playerControlsProps;return _.v("div",{class:"desktopShortsPlayerControlsHost"},_.v(_.I53,{progressBarProps:b,config:function(){return{isShortsPage:!0,hideProgressBar:b().videoDuration<30&&b().playerState!==2&&!b().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Xg");_.jBc=_.C(function(G){function b(LO){LO!==0||f()?LO>50&&(f()||!B())?(T(!1),A(!0)):LO<=50&&(f()||B())&&(T(!1),A(!1)):T(!0)}
function I(LO,td){var xa;return _.c(function(Uj){if(Uj.nextAddress==1)return Uj.yield(_.$U(),2);xa=Uj.yieldResult;td&&xa?(xa.unMute(!0),LO&&(qXp(LO,xa.getVolume()),y(xa.getVolume()))):xa&&(xa.mute(!0),LO&&qXp(LO,0));_.ip(Uj)})}
function h(LO){var td,xa;return _.c(function(Uj){if(Uj.nextAddress==1)return Uj.yield(_.$U(),2);td=Uj.yieldResult;xa=50;td&&(xa=td.getVolume(),td.isMuted()?qXp(LO,0):qXp(LO,xa));y(xa);_.ip(Uj)})}
var q=G.orientation;G=_.ee("desktop-shorts-volume-controls");var l=_.ee("button"),V=_.VF("input"),D=_.e(_.ZZ(!1,void 0,"MvN0Tc")),k=D.next().value,L=D.next().value,x=_.e(_.ZZ(!1,void 0,"aSjsEb"));D=x.next().value;x=x.next().value;var f=D,T=x;x=_.e(_.ZZ(!0,void 0,"FUh46d"));D=x.next().value;x=x.next().value;var B=D,A=x;D=_.e(_.ZZ(50,void 0,"yPke4d"));var t=D.next().value,y=D.next().value;D=_.P$(function(){var LO=f();return _.U("web_shorts_keyboard_enable_mute_shortcut")?LO?_.qP("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.qP("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):LO?_.qP("UNMUTE_VOLUME",void 0,"Unmute"):_.qP("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
x=_.P$(function(){var LO=f(),td=B();return{sources:[{clientResource:{imageName:LO?_.U("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":td?_.U("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.U("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var F=_.P$(function(){var LO=t();return f()?LO+"% volume muted":LO+"% volume"},void 0,"xZsRmc"),W=_.P$(function(){return q()==="vertical_down"},void 0,"FVqYmb");
_.K3(function(){function LO(){L(!0)}
function td(){L(!1)}
V&&V.value&&(V.value.addEventListener("focus",LO),V.value.addEventListener("focusout",td),h(V.value).then(function(){b(Number(jgO(V.value)))}));
l&&l.value&&(l.value.addEventListener("focus",LO),l.value.addEventListener("focusout",td));_.uI(function(){var xa;V==null||(xa=V.value)==null||xa.removeEventListener("focus",LO);var Uj;V==null||(Uj=V.value)==null||Uj.removeEventListener("focusout",td);var W2;l==null||(W2=l.value)==null||W2.removeEventListener("focus",LO);var is;l==null||(is=l.value)==null||is.removeEventListener("focusout",td)})});
var O=_.Xu(function(){if(V&&V.value){var LO=Number(jgO(V.value));hSr(LO);y(LO);V.value.style.setProperty("--gradient-percent",LO+"%");b(LO)}return!1}),K=_.Xu(function(){V&&V.value&&(I(V.value,f()),T(!f()));
return!1}),u={},w={},$a={},ev={};
return _.v("desktop-shorts-volume-controls",{"on:pointerleave":_.Xu(function(){L(!1)}),
"on:pointerenter":_.Xu(function(){L(!0)}),
class:_.pG("ytdDesktopShortsVolumeControlsHost",(u.ytdDesktopShortsVolumeControlsHostVertical=W,u.ytdDesktopShortsVolumeControlsHostModern=_.U("web_shorts_modern_controls"),u.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.U("web_shorts_modern_controls")&&k()},u)),
el:G},_.v(_.Q,{cond:function(){return!W()},
then:function(){var LO={};return _.v("div",{class:_.pG("ytdDesktopShortsVolumeControlsBackgroundScrim",(LO.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=k,LO.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.U("web_shorts_modern_controls")&&k()},LO))})}}),_.v("div",{class:_.pG((w.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=W,w))},_.v("button",{"aria-label":D,
title:D,el:l,"on:click":K,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},x?_.v(_.Fu,{data:x,alt:D,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.v("div",{class:_.pG("ytdDesktopShortsVolumeControlsSliderContainer",($a.ytdDesktopShortsVolumeControlsSliderContainerExpanded=k,$a.ytdDesktopShortsVolumeControlsSliderContainerVertical=W,$a.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=W,$a.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return k()&&
W()},$a))},_.v("input",{"aria-label":_.qP("VOLUME"),
title:_.qP("VOLUME"),el:V,"on:input":O,type:"range",class:_.pG("ytdDesktopShortsVolumeControlsNativeSlider",(ev.ytdDesktopShortsVolumeControlsNativeSliderModern=_.U("web_shorts_modern_controls"),ev)),id:"volume-input",role:"slider","aria-valuenow":t,"aria-valuetext":F,"aria-valuemin":0,"aria-valuemax":100})))},"Yg");_.l58=_.C(function(G){var b=G.data;var I=G.extractOverlay;G={};return _.v("player-disclosure-view-model",{class:_.pG("ytwPlayerDisclosureViewModelHost",(G.ytwPlayerDisclosureViewModelExtractOverlay=function(){return I==null?void 0:I()},G))},_.v(_.LP,{command:function(){return b().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.v(_.Q,{cond:function(){return b().iconName},
then:function(h){return _.v(_.ha,{icon:h})}}),_.v(_.Q,{cond:function(){return b().iconName?void 0:b().image},
then:function(h){return _.v(_.Fu,{data:h,alt:function(){return b().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.v(_.Q,{cond:function(){return b().title||b().secondaryText},
then:function(){return _.v("div",null,_.v("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return b().title}),_.v("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return b().text}),_.v(_.Q,{cond:function(){return b().secondaryText},
then:function(h){return _.v(_.xz,null,_.v("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.v("div",{class:"ytwPlayerDisclosureViewModelText"},h))}}))},
else:function(){return _.v("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return b().text})}}),_.v(_.Q,{cond:function(){return b().showEndChevron},
then:function(){return _.v(_.ha,{icon:"CHEVRON_RIGHT"})}})))},"Zg");var mBa=_.C(function(G){var b=G.data;var I=G.overlayDensity;G={};return _.v("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.v(_.VX,{data:function(){return b().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(h){var q=h.data;
return _.v(_.w1,{data:function(){return(I==null?void 0:I())===1?Object.assign({},q(),{avatar:{avatarViewModel:Object.assign({},_.g(q().avatar,_.AW),{avatarImageSize:"AVATAR_SIZE_M"})}}):q()}})}}),_.v(_.VX,{data:function(){return b().avatarStackViewModel}},{avatarStackViewModel:function(h){return _.v(_.Em,{data:h.data})}}),_.v(_.IS,{className:_.pG("ytReelChannelBarViewModelChannelName",(G.ytReelChannelBarViewModelChannelNameLarge=function(){return(I==null?void 0:I())===1},G)),
text:function(){return b().channelName},
linkInheritColor:!0,userInput:!0}),_.v("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.v(_.VX,{data:function(){return b().subscribeButtonViewModel}},{subscribeButtonViewModel:function(h){var q=h.data;
return _.v(_.OT,{data:function(){return(I==null?void 0:I())===1?Object.assign({},q(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},q().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):q()},
isOverlay:!1})},
buttonViewModel:_.sQ})),_.v("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.v(_.VX,{data:function(){var h,q;return(q=_.g((h=b())==null?void 0:h.sponsorButtonViewModel,qqX))==null?void 0:q.sponsorButton}},{buttonViewModel:function(h){return _.v(_.sQ,{data:h.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"$g");var e2F=_.C(function(G){var b=function(){var q;return((q=G.overlayDensity)==null?void 0:q.call(G))===1},I=function(){return b()?22:16},h={};
return _.v("yt-reel-multi-format-link-view-model",{class:_.pG("ytReelMultiFormatLinkViewModelHost",(h.ytReelMultiFormatLinkViewModelHostTall=!0,h.ytReelMultiFormatLinkViewModelHostLarge=function(){return b()},h))},_.v(_.LP,{ariaLabel:function(){return G.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return G.data().command}},_.v("h3",{class:function(){return b()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.v(_.Q,{cond:function(){return G.data().icon},
then:function(q){return _.v(_.Fu,{data:q,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:I})}}),_.v(_.IS,{text:function(){return G.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ah");
e2F.idomCompat=!0;var VGW=_.C(function(G){var b=G.data;var I=G.overlayDensity;var h=G.extractOverlay;var q=_.ee("yt-shorts-suggested-action-view-model");G=_.e(_.ZZ(!1,void 0,"S60Hzc"));var l=G.next().value,V=G.next().value;G=_.e(_.ZZ(!1,void 0,"O76chf"));var D=G.next().value,k=G.next().value,L=function(){return b().isMultiLineSa},x=_.lA(UnO,function(){var u,w;
return(w=(u=b().toggleableContent)==null?void 0:u.entityKey)!=null?w:""}),f=function(){var u,w,$a;
return($a=b().toggleableContent)!=null&&$a.entityKey?(w=(u=x())==null?void 0:u.value)!=null?w:!1:!1},T=function(){var u,w,$a,ev,LO,td,xa,Uj,W2,is,su;
return b().toggleableContent?f()?(u=b().toggleableContent)==null?void 0:u.toggledData:(w=b().toggleableContent)==null?void 0:w.untoggledData:{primaryText:(Uj=($a=b().defaultContent)==null?void 0:$a.primaryText)!=null?Uj:b().text,secondaryText:(ev=b().defaultContent)==null?void 0:ev.secondaryText,onTapCommand:(W2=(LO=b().defaultContent)==null?void 0:LO.onTapCommand)!=null?W2:b().onTapCommand,icon:(is=(td=b().defaultContent)==null?void 0:td.icon)!=null?is:b().icon,image:(su=(xa=b().defaultContent)==
null?void 0:xa.image)!=null?su:b().image}},B=function(){return L()?b().trailingTapTarget:void 0},A=function(u,w){return function(){return l()?w:u}},t=function(){return{leadingSection:A("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(I==null?void 0:I())===1?A("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):A("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:A("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:A("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:A("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
G={};G=_.pG((G.ytShortsSuggestedActionViewModelStaticHost=function(){return!L()},G.ytShortsSuggestedActionViewModelDynamicHost=L,G.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return L()&&D()},G.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return L()&&!D()},G.ytShortsSuggestedActionViewModelExtractOverlay=function(){return h==null?void 0:h()},G));
_.K3(function(){if(L()){var u=0,w;if((w=b().animationParams)==null?0:w.shouldExpand){var $a,ev;u=((ev=($a=b().animationParams)==null?void 0:$a.expansionDelaySecs)!=null?ev:0)*1E3}var LO,td=((LO=b().animationParams)==null?0:LO.shouldExpand)?setTimeout(function(){V(!0)},u):void 0,xa,Uj;
u=((xa=b().animationParams)==null?0:xa.visibilityDelaySecs)?((Uj=b().animationParams)==null?NaN:Uj.visibilityDelaySecs)*1E3:0;var W2=setTimeout(function(){k(!0)},u);
_.uI(function(){td&&clearTimeout(td);clearTimeout(W2)})}});
var y=function(u){_.Zm(u,Object.assign({},{form:{element:q.value}}))},F=_.Xu(function(){var u,w=(u=T())==null?void 0:u.onTapCommand;
w&&y(w)}),W=_.Xu(function(){var u,w;
if(u=(w=B())==null?void 0:w.onTapCommand)return y(u),!1}),O=_.Ir({"vertical-align":"bottom",
"border-radius":function(){var u;return L()?((u=b().defaultContent)==null?0:u.isCircleImage)?"50%":"4px":"0px"},
width:function(){var u,w,$a;return L()&&((u=b().defaultContent)==null?0:u.imageSize)?(($a=(w=b().defaultContent)==null?void 0:w.imageSize)!=null?$a:24)+"px":null},
height:function(){var u,w,$a;return L()&&((u=b().defaultContent)==null?0:u.imageSize)?(($a=(w=b().defaultContent)==null?void 0:w.imageSize)!=null?$a:24)+"px":null}}),K={};
return _.v("yt-shorts-suggested-action-view-model",{class:G,el:q},_.v("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.v("button",{class:_.pG(function(){return L()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var u;
return(u=b().useFullRoundedBorder)!=null&&u?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!B()&&L()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":L()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var u;
return(u=b().disableFixedHeight)!=null&&u?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(K.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(I==null?void 0:I())===1},K.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return h==null?void 0:h()},K)),
"on:click":F},_.v(_.Qy,{model:{color:4}}),_.v("div",{class:_.pG(function(){return L()?t().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.v(_.Q,{cond:function(){var u;
return(u=T())==null?void 0:u.image},
then:function(u){return _.v(_.Fu,{data:u,alt:"",className:function(){return L()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:O})}}),_.v(_.Q,{cond:function(){var u,w;
return(u=T())==null?void 0:(w=u.icon)==null?void 0:w.iconType},
then:function(u){return _.v(_.ha,{icon:u,active:f,className:function(){return L()?l()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.v("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.v(_.Q,{cond:function(){var u;
return(u=T())==null?void 0:u.primaryText},
then:function(u){var w={};return _.v("div",{class:_.pG("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(w.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(I==null?void 0:I())===1},w))},_.v(_.IS,{text:u}))}}),_.v(_.Q,{cond:function(){var u;
return(u=T())==null?void 0:u.secondaryText},
then:function(u){return _.v("div",{class:function(){return t().secondaryText()}},_.v(_.IS,{text:u}))}}))),_.v(_.Q,{cond:B,
then:function(u){return _.v("div",{class:_.pG(function(){return t().trailingSection()},function(){var w,$a;
return(h==null?void 0:h())&&(($a=(w=t()).trailingSectionExtractOverlay)==null?void 0:$a.call(w))||""}),
"aria-label":function(){var w;return(w=u().a11yLabel)!=null?w:""},
"on:click":W,role:"button",tabindex:0},_.v(_.Qy,{model:{color:4}}),_.v(_.ha,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"bh");var DBf=_.C(function(G){var b=G.data;var I=G.overlayDensity;var h=_.ee("yt-shorts-video-title-view-model");G=_.Xu(function(V){if(_.TZ(_.fM(V),h.value,["A".toString()]))return!1;(V=b().truncatedTextOnTapCommand)&&_.Zm(V);return!1});
var q={},l={};return _.v("yt-shorts-video-title-view-model",{el:h,class:_.pG("ytShortsVideoTitleViewModelHost",(q.ytShortsVideoTitleViewModelHostClickable=function(){return!!b().truncatedTextOnTapCommand},q)),
"on:click":G},_.v("h2",{class:_.pG("ytShortsVideoTitleViewModelShortsVideoTitle",(l.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(I==null?void 0:I())===1},l))},_.v(_.IS,{text:function(){return b().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(I==null?void 0:I())===1}})))},"ch");_.cMY=_.C(function(G){var b=G.data;var I=G.overlayDensity;var h=G.extractOverlay;var q=function(){return(I==null?void 0:I())===1};
return _.v("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.v(_.VX,{data:function(){return b().metadataItems}},{badgeViewModel:function(l){l=l.data;
return _.v("div",{class:_.pG(function(){return q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.v(_.Db,{data:l}))},
playerDisclosureViewModel:function(l){l=l.data;return _.v("div",{class:_.pG(function(){return q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.v(_.l58,{data:l,
extractOverlay:h}))},
shortsSuggestedActionViewModel:function(l){l=l.data;return _.v("div",{class:_.pG(function(){return q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.v(VGW,{data:l,
overlayDensity:I,extractOverlay:h}))},
reelChannelBarViewModel:function(l){l=l.data;var V={};return _.v("div",{class:_.pG("ytReelMetapanelViewModelMetapanelItem",(V.ytReelMetapanelViewModelExpansive=function(){return q()},V))},_.v(mBa,{data:l,
overlayDensity:I}))},
reelMultiFormatLinkViewModel:function(l){l=l.data;var V={};return _.v("div",{class:_.pG("ytReelMetapanelViewModelMetapanelItem",(V.ytReelMetapanelViewModelExpansive=function(){return q()},V))},_.v(e2F,{data:l,
overlayDensity:I}))},
shortsVideoTitleViewModel:function(l){l=l.data;var V={};return _.v("div",{class:_.pG("ytReelMetapanelViewModelMetapanelItem",(V.ytReelMetapanelViewModelExpansive=function(){return q()},V))},_.v(DBf,{data:l,
overlayDensity:I}))},
reelSoundMetadataViewModel:function(l){l=l.data;var V={};return _.v("div",{class:_.pG("ytReelMetapanelViewModelMetapanelItem",(V.ytReelMetapanelViewModelExpansive=function(){return q()},V))},_.v(_.DcY,{data:l,
overlayDensity:I}))},
toggleButtonViewModel:function(l){l=l.data;var V={};return _.v("div",{class:_.pG("ytReelMetapanelViewModelMetapanelItem",(V.ytReelMetapanelViewModelExpansive=function(){return q()},V))},_.v(_.YK,{data:l}))}}))},"dh");var ksf=_.C(function(G){var b=_.N5(G,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),I=b.size,h=b.onTap,q=b.disabled,l=b.tooltipText;return _.v("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.v(_.TV,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:I(),disabled:q(),tooltipText:l(),onTap:h}},
iconName:G.iconType}))},"eh"),v25=_.C(function(G){function b(x){x.stopPropagation();
x.code==="ArrowUp"?(x.preventDefault(),eSu(D.value)):x.code==="ArrowDown"?(x.preventDefault(),V2s(D.value)):x.code==="KeyM"?lhX():(x.code==="KeyK"||x.code==="Space")&&mav(k())}
var I=_.N5(G,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});G=I.previousButtonDisabled;var h=I.nextButtonDisabled,q=I.data,l=I.playabilityStatus,V=I.previewThumbnail,D=_.ee("ytd-shorts-miniplayer-overlay"),k=_.m2(_.WkO),L;_.JC(function(){(L=_.ny(D.value))&&L.addEventListener("keydown",b)});
_.uI(function(){var x;(x=L)==null||x.removeEventListener("keydown",b)});
I=function(){var x,f,T;return(x=q())==null?void 0:(f=x.reelPlayerOverlayRenderer)==null?void 0:(T=f.likeButton)==null?void 0:T.likeButtonRenderer};
return _.v("ytd-shorts-miniplayer-overlay",{el:D,class:"ytdShortsMiniplayerOverlayHost"},_.v("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Ir({"background-image":function(){var x=V();return x?'url("'+_.u$(x.thumbnails)+'")':""}})}),_.v("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.v("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.v(ksf,{iconType:function(){var x=k();
return x===2||x===-1||x===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){mav(k())},
tooltipText:function(){var x=k();return x===1||x===3?_.qP("PLAYER_LABEL_PAUSE"):_.qP("PLAYER_LABEL_PLAY")}}),_.v(_.jBc,{orientation:"horizontal_right"})),_.v("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.v(ksf,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:G,onTap:function(){eSu(D.value)},
tooltipText:_.qP("PREVIOUS_VIDEO_LABEL")}),_.v(ksf,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:h,onTap:function(){V2s(D.value)},
tooltipText:_.qP("NEXT_VIDEO_LABEL")}),_.U("web_shorts_pip_like_button")?_.v("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.v(Pla,{buttonTooltipPosition:"left",data:I,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.v("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.v(_.Q,{cond:function(){var x,f;return _.g((x=q())==null?void 0:(f=x.reelPlayerOverlayRenderer)==null?void 0:f.metapanel,
b5Q)},
then:function(x){return _.v("div",{class:_.pG("ytdShortsMiniplayerOverlayInteractive")},_.v(_.cMY,{data:x}))}})),_.v("div",{class:_.pG("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var x;return!((x=q())==null||!x.adsOverlay)||l()&&!nLd(l())}},_.v("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.v(_.qY9,null)))),_.v(_.Q,{cond:function(){var x=q(),f,T;
x=_.g(x==null?void 0:(f=x.adsOverlay)==null?void 0:(T=f.fulfillmentContent)==null?void 0:T.fulfilledLayout,aDB);return _.g(x==null?void 0:x.renderingContent,uzn)},
then:function(x){return _.v("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.v(lkb,{data:x}))}}))},"gh");var DaX=_.C(function(){var G=_.e(_.ZZ(new _.Pa(NaN,NaN),void 0,"hq9Bjf")),b=G.next().value,I=G.next().value;G=_.e(_.ZZ(!1,void 0,"Mu3aZc"));var h=G.next().value,q=G.next().value,l=_.e(_.ZZ(!1,void 0,"LGtoFb"));G=l.next().value;var V=l.next().value,D=_.LL().resolve(_.zO).miniplayerPropSignalMap[0],k=D.data,L=D.shortsData,x=D.nextButtonDisabled,f=D.shortsPreviewThumbnail,T=D.previousButtonDisabled,B=D.externalPlaylistData;l=D.toastData;var A=D.playabilityStatus,t=D.isDisabled,y=D.playerVe,F=D.closeVe;
D=_.m2(_.O2);_.mt("yt-pip-window-resized",function(u){I(u)});
_.mt("yt-activate-pip-miniplayer",function(){return _.c(function(u){V(!0);_.ip(u)})});
var W=function(){var u;return!((u=B())==null||!u.contents)&&h()},O=function(){var u=b(),w=!!k(),$a=W();
u=u.clone();w&&(u.height-=76);$a&&(u.height-=285);return u},K=function(){q(!h())};
_.K0(function(){var u=y(),w=_.gL(11),$a=_.s3(11);w&&$a&&u&&(_.dK(w,$a,u),$a=F())&&(_.yn(w,u,[$a]),_.FT(w,[$a]))},"fHkmfb");
return _.v("ytd-pip-container",{class:"ytdPipContainerHost"},_.v(_.Q,{cond:G,then:function(){return _.v(_.BhW,{isDisabled:t,playabilityStatus:A,size:O,isPictureInPicture:!0})}}),_.v(_.Q,{cond:k,
then:function(){return _.v(_.fO3,{data:k,expanded:h,onExpandClick:K,playlistData:B})}}),_.v(_.Q,{cond:W,
then:function(){return _.v("div",{class:"ytdPipContainerPlaylistPanel"},_.v(_.oIF,{data:B,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.v(_.Q,{cond:D,
then:function(){return _.v(v25,{data:L,nextButtonDisabled:x,previousButtonDisabled:T,playabilityStatus:A,previewThumbnail:f})}}),_.v("div",{class:"ytdPipContainerToast"},_.v(_.U99,{toastData:l})))},"ih");var MN=function(G,b,I){var h=this;this.pipController=G;this.JSC$19075_clientRoot=b;this.JSC$19075_pageRequestService=I;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=AYs();this.watchPipEnabled=_.U("web_watch_pip");this.shortsPipEnabled=_.U("web_shorts_pip");this.JSC$19075_watchWhileEnabled=_.U("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;_.Nj(_.Cw(),dDq,function(q){h.isSingleOptionSurveyActive=q});
this.JSC$19075_onPlayerPlayVideo=this.JSC$19075_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);_.je(_.I1.getInstance(),this.miniplayerServiceActionMap,this.JSC$19075_clientRoot);G.pictureInPictureSupported()&&_.C1("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},t58,AMF,BHW,MG9,Z1K,EJW;
MN.prototype.handleMediaSessionPipActivation=function(){var G=this,b;return _.c(function(I){_.Ws().mediaSessionPipActivation=!0;b=_.LL().resolve(_.Ck);return b.isOnWatch()&&G.watchPipEnabled?(_.Ws().watchPipActivation=!0,_.LGY(G,b.data),I.jumpTo(0)):b.isOnShorts()&&G.shortsPipEnabled?(_.Ws().shortsPipActivation=!0,_.QBj(G),I.jumpTo(0)):G.isMiniplayerActive()&&G.watchPipEnabled&&!G.watchWhileMode?I.yield(xBW(G),0):I.jumpTo(0)})};
var xBW=function(G){var b,I,h,q;return _.c(function(l){if(l.nextAddress==1)return b=!G.miniplayerToPipMode,I=G.playerElement,h=G.miniplayerData,q=G.watchResponse,l.yield(G.deactivate(),2);if(l.nextAddress!=3)return b?(_.Ws().mediaSessionPipActivation=!0,_.Ws().watchPipActivation=!0):_.Ws().miniplayerButtonActivation=!0,l.yield(G.activate(I,h,q),3);G.miniplayerToPipMode=b;_.ip(l)})};
MN.prototype.onDownloadedVideoDeleted=function(G){var b,I=_.g((b=this.miniplayerData)==null?void 0:b.watchEndpoint,_.Wq),h,q;I&&((h=this.watchResponse)==null?void 0:(q=h.playerResponse)==null?void 0:q.offlineState)!==void 0&&(b=I.videoId)&&G&&b===G&&this.close()};
MN.prototype.onShowMiniplayerCommand=function(G){var b=this,I,h,q,l,V,D,k,L,x,f,T;return _.c(function(B){switch(B.nextAddress){case 1:return I=_.g(G,Jee),q=(h=I)==null?void 0:h.miniplayerCommand,l=_.g(q,_.Wq),q&&l&&!b.active?B.yield(_.nm.getInstance(),2):B.return();case 2:return V=B.yieldResult,B.yield((D=V)==null?void 0:D.get("yt-miniplayer-shown-video-id"),3);case 3:k=B.yieldResult;L=l.videoId;if(!L||k===L)return B.return();x=_.LL().resolve(_.Ck);if(x.isOnWatch())return _.RB(Error("Tj")),B.return();
f={channelItem:{externalId:btoa(L)}};b.readyToResumeVe=_.Xs(121253,void 0,void 0,f);_.Ws().showMiniplayerCommandActivation=!0;return B.yield(_.p7b(b,q,!0),4);case 4:return b.active&&(_.ZB(b,{readyToResumeVe:b.readyToResumeVe,isReadyToResume:!0}),b.isReadyToResume=!0),B.yield((T=V)==null?void 0:T.set("yt-miniplayer-shown-video-id",l.videoId),5);case 5:b.readyToResumeVe=void 0,_.ip(B)}})};
MN.prototype.init=function(G){this.miniplayerEl?_.RB(new _.Wf("MiniplayerService already initialized.")):this.miniplayerEl=G};
MN.prototype.isInitialized=function(){var G=!!this.miniplayerEl;G||_.RB(new _.Wf("MiniplayerService used before initialized."));return G};
_.LGY=function(G,b){if(G.isInitialized()){var I=_.gP(b.response,!1,b.playerResponse),h=_.LL().resolve(_.Ck).getPlayerFromWatch();_.Ws().currentEndpoint=I.watchEndpoint||null;G.activate(h,I,b)}};
_.QBj=function(G){if(G.isInitialized()){var b=_.LL().resolve(_.Ck).getPlayerFromShorts();G.activate(b)}};
t58=function(G,b){var I;(I=!G.isInitialized())||(I=_.LL().resolve(_.Ck).isOnWatch()&&G.watchPipMode,I=!(G.isMiniplayerActive()&&(_.Ws().userActivation||_.Ws().lockupActivation||I)));if(I)return!1;f5F(G,b)?_.s7(G):EJW(G,b);return G.watchPipMode?!_.LL().resolve(_.Ck).isOnWatch():!0};
MN.prototype.isMiniplayerActive=function(){return this.active};
var f5F=function(G,b){var I;b=(I=_.g(b,_.Wq))==null?void 0:I.videoId;var h,q;G=(q=_.g((h=G.miniplayerData)==null?void 0:h.watchEndpoint,_.Wq))==null?void 0:q.videoId;return b!=null&&b===G};
MN.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.O3(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.wL(this.miniplayerEl,"yt-navigate-home-action"))};
_.p7b=function(G,b,I,h){I=I===void 0?!1:I;var q,l,V;return _.c(function(D){switch(D.nextAddress){case 1:if(G.active){D.jumpTo(2);break}q=_.LL().resolve(_.Ck);if(V=(l=G.playerElement)!=null?l:q.getPlayerFromWatch()){D.jumpTo(3);break}return D.yield(_.LL().resolve(_.wR),4);case 4:V=q.getPlayerFromWatch();case 3:if(!V){_.RB(Error("Vj"));D.jumpTo(2);break}return D.yield(G.activate(V,h),2);case 2:return G.active?D.yield(EJW(G,b,I),0):D.return()}})};
MN.prototype.activate=function(G,b,I){var h=this,q,l,V,D,k,L,x,f,T;return _.c(function(B){switch(B.nextAddress){case 1:if(!h.isInitialized())return B.return();if(!G)return _.RB(Error("Vj")),B.return();if(_.ml8()||h.isMiniplayerActive())var A=!0;else A=_.Ws().watchPipActivation||_.Ws().watchWhileActivation,_.LL().resolve(_.Ck).isOnWatch()&&!A?(_.RB(new _.Wf("miniplayer activated on watch page")),A=!0):A=_.Ws().watchWhileActivation?h.userDeactivatedWatchWhile||!!document.pictureInPictureElement||tYd():
!1;if(A)return lvu(),B.return();q=_.Ws().mediaSessionPipActivation;l=_.Ws().shortsPipActivation;V=_.Ws().watchPipActivation;k=(D=_.Ws().watchWhileActivation)||V;L=V||l;if(!h.pictureInPictureEnabled()||!L){B.jumpTo(2);break}return B.yield(THY(h,q),3);case 3:if(!B.yieldResult)return _.RB(Error("Uj")),lvu(),B.return();case 2:return h.setActive(!0),h.watchResponse=I,h.playerElement=G,h.updateMiniplayerData(b),B.yield(BHW(h,G),4);case 4:if(!h.active)return _.RB(new _.Wf("miniplayer deactivated during activation")),
h.removePlayerListeners(),B.return();A=_.LL().resolve(_.jm);A.addEventListener("yt-navigate",_.I9(h,h.onPlaylistNavigate));A.addEventListener("yt-playlist-data-updated",_.I9(h,h.JSC$19075_onPlaylistDataUpdated));h.JSC$19075_onPlaylistDataUpdated();lvu();h.JSC$19075_watchWhileEnabled&&_.UBa(h,D);h.pictureInPictureEnabled()&&h.shortsPipEnabled&&(h.shortsPipMode=l,_.Cw().dispatch(EOJ(h.shortsPipMode)));h.pictureInPictureEnabled()&&h.watchPipEnabled&&(h.watchPipMode=V,_.oLO(h.handleMediaSessionPipActivation));
h.player&&(x=h.player.getPlayerState(),f=x===1,_.Cw().dispatch(jXn(x)),_.E3(h.miniplayerEl,"yt-miniplayer-play-state-changed",[f]),_.Ws().isVideoPlaying=f);_.E3(h.miniplayerEl,"yt-miniplayer-endpoint-changed");sBF(h);_.g2K(h);if(h.shortsPipMode||h.watchPipMode)B=B.yield(_.wL(h.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{A=B.yield;var t=_.wL(h.miniplayerEl,"yt-activate-miniplayer",[k])[0];B=A.call(B,t,6)}return B;case 6:if(h.watchResponse){A=h.getScreenLayer();t=_.gL(0);var y=VbO(0);t&&y&&
(_.Mi(t,y,A),A===0&&ms2(void 0,0))}AMF(h);MG9(h,!0);(T=h.getPlayerElement())==null||T.focusOnPlayer();_.ip(B)}})};
MN.prototype.updateMiniplayerData=function(G){this.miniplayerData=G;_.ZB(this,{data:G})};
_.g2K=function(G){var b,I,h=((b=G.miniplayerData)==null?void 0:(I=b.miniplayerRenderer)==null?void 0:I.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";b=G.watchWhileMode||G.watchPipMode?h&&!_.LL().resolve(_.Ck).isOnWatch():h;_.ZB(G,{isDisabled:b});var q,l;I=_.g((q=G.miniplayerData)==null?void 0:(l=q.miniplayerRenderer)==null?void 0:l.minimizedEndpoint,_.WB);b&&I&&_.LL().resolve(_.K9).openSheet({openPopupActionCommand:{openPopupAction:I}},G.miniplayerEl)};
AMF=function(G){if(G.watchResponse&&!Z1K(G)){var b,I=(b=G.watchResponse.playerResponse)==null?void 0:b.trackingParams;I&&(_.ZB(G,{expandVe:_.Xs(35989),closeVe:_.Xs(34699),readyToResumeCloseVe:_.Xs(131070),repositionVe:_.Xs(226204),resizeVe:_.Xs(226205)}),_.ZB(G,{playerVe:_.VB(I)}))}};
BHW=function(G,b){return _.c(function(I){if(I.nextAddress==1)return b.preparePlayer(),I.yield(b.getPlayerPromise(),2);G.player=I.yieldResult;G.player&&(G.player.addEventListener("onPlayVideo",G.JSC$19075_onPlayerPlayVideo),G.player.addEventListener("onCloseMiniplayer",G.onPlayerCloseMiniplayer),G.player.addEventListener("onExpandMiniplayer",G.onPlayerExpandMiniplayer),G.player.addEventListener("onStateChange",G.onPlayerStateChange));_.ip(I)})};
_.m=MN.prototype;_.m.JSC$19075_onPlayerPlayVideo=function(G){var b=G.sessionData&&"autonav"in G.sessionData,I;G.sessionData&&G.sessionData.itct&&(I=G.sessionData.itct);var h=G.watchEndpoint;b=h&&b?_.Jms(h,I):_.u9(G.videoId,G.listId||void 0,I);G.sessionData&&_.Cv(_.g(b.commandMetadata,_.IW).url,G.sessionData);EJW(this,b)};
_.m.onPlayerExpandMiniplayer=function(){_.s7(this)};
_.m.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.m.onPlayerStateChange=function(){if(this.player){var G=this.player.getPlayerState(),b=G===1;_.Cw().dispatch(jXn(G));_.Cw().dispatch(_.eNQ(G));_.E3(this.miniplayerEl,"yt-miniplayer-play-state-changed",[b]);_.Ws().isVideoPlaying=b;if(G===0){b=!_.TW.getInstance().isAutoplaySetExplicitly();var I,h,q,l,V,D,k=(I=this.watchResponse.response)==null?void 0:(h=I.contents)==null?void 0:(q=h.twoColumnWatchNextResults)==null?void 0:(l=q.autoplay)==null?void 0:(V=l.autoplay)==null?void 0:(D=V.autoplayExplicitChoiceDialogRenderer)==
null?void 0:D.confirmDialogRenderer;b&&k&&this.player.setAutonavState(1)}G===0&&this.watchWhileMode&&this.deactivate()}};
_.m.onPlaylistNavigate=function(G,b){var I=this,h,q,l,V,D,k,L;return _.c(function(x){if(x.nextAddress==1){if(!_.g(b.endpoint,_.Wq))return x.return();_.Ws().currentEndpoint=b.endpoint;_.E3(I.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.LL().resolve(_.Ck).isOnWatch()&&(I.watchWhileMode||I.watchPipMode))return x.return();G.stopPropagation();(l=(q=_.g((h=b.endpoint)==null?void 0:h.commandMetadata,_.IW))==null?void 0:q.url)&&b.tempData&&!_.Cy.isEmpty(b.tempData)&&_.Cv(l,b.tempData);V={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};D=new etb(function(){return I.getPlayerElement()},V,{layer:I.getScreenLayer()});
k=function(f){D.processChunk({endpoint:b.endpoint,data:f})};
tGD(I);I.miniplayerFetchRequest=z2e(I,b.endpoint,k);_.gm(x,2);return x.yield(I.miniplayerFetchRequest,4)}if(x.nextAddress!=2)return L=x.yieldResult,o2K(I,L),_.hF(x,0);_.zf(x);_.ip(x)})};
_.m.JSC$19075_onPlaylistDataUpdated=function(){var G=_.LL().resolve(_.jm).getPlaylistData();this.hasPlaylistData=!!G;_.ZB(this,{externalPlaylistData:G||{}})};
_.m.close=function(G){if(this.isInitialized())if(G){if(!((this.watchWhileMode||this.watchPipMode)&&_.LL().resolve(_.Ck).isOnWatch()||this.shortsPipMode)){var b;(b=this.getPlayerElement())==null||b.stop()}this.deactivate()}else _.Dg().closeMiniplayer(this.miniplayerEl)};
_.m.deactivate=function(G){var b=this,I,h,q,l;return _.c(function(V){if(V.nextAddress==1){if(!b.isInitialized()||!b.active)return V.return();b.setActive(!1);tGD(b);(I=!!G&&f5F(b,G))&&b.isSingleOptionSurveyActive&&_.wL(b.miniplayerEl,"yt-show-watch-page-survey",[b.isSingleOptionSurveyActive]);return V.yield(i1c(b),2)}if(V.nextAddress!=3){MG9(b,!1);b.isReadyToResume=!1;b.watchResponse=void 0;b.updateMiniplayerData(void 0);b.shortsPipMode&&(b.shortsPipMode=!1,_.Cw().dispatch(EOJ(b.shortsPipMode)),CIL(b.pipController),
(h=b.player)==null||h.setInternalSize(NaN,NaN));b.watchPipMode&&(b.watchPipMode=!1,CIL(b.pipController));(q=b.watchWhileMode)&&_.UBa(b,!1);b.removePlayerListeners();var D=_.LL().resolve(_.jm);D.removeEventListener("yt-navigate",_.I9(b,b.onPlaylistNavigate));D.removeEventListener("yt-playlist-data-updated",_.I9(b,b.JSC$19075_onPlaylistDataUpdated));_.Ws().currentEndpoint=null;_.E3(b.miniplayerEl,"yt-miniplayer-endpoint-changed");b.playerElement=null;lvu();if(b.shortsPipMode||b.watchPipMode)V=V.jumpTo(3);
else{D=V.yield;var k=_.wL(b.miniplayerEl,"yt-deactivate-miniplayer",[I,q])[0];V=D.call(V,k,3)}return V}(l=b.player)==null||l.setInternalSize(NaN,NaN);b.player=null;_.ip(V)})};
var i1c=function(G){var b;return _.c(function(I){b=_.LL().resolve(_.Ck);return G.shortsPipMode?I.yield(b.movePlayerToShorts(G.playerElement),0):I.yield(b.movePlayerToWatch(G.playerElement),0)})};
MN.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19075_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
MN.prototype.setActive=function(G){this.active=G;this.isSingleOptionSurveyActive?_.wL(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.wL(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Cw().dispatch(_.wK({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.UBa=function(G,b){G.watchWhileMode=b;_.ZB(G,{watchWhile:b})};
MG9=function(G,b){if(!Z1K(G))if(G.shortsPipMode||G.watchPipMode){var I;(I=G.player)==null||I.setDocumentPictureInPicture(b)}else{var h;(h=G.player)==null||h.setMinimized(b)}};
Z1K=function(G){return G.watchWhileMode&&_.U("kevlar_watch_while_counterfactual")};
_.s7=function(G){var b;return _.c(function(I){switch(I.nextAddress){case 1:if(!G.isInitialized())return I.return();_.gm(I,2);return I.yield(G.miniplayerFetchRequest,4);case 4:_.hF(I,3);break;case 2:_.zf(I);case 3:G.watchResponse&&G.miniplayerData&&G.miniplayerData.watchEndpoint?(b={url:G.watchResponse.url,endpoint:G.miniplayerData.watchEndpoint,data:G.watchResponse,miniplayer:!0},_.O3(G.miniplayerEl,"yt-navigate-cache",b)):G.miniplayerData&&G.miniplayerData.watchEndpoint&&_.O3(G.miniplayerEl,"yt-navigate",
{endpoint:G.miniplayerData.watchEndpoint}),_.ip(I)}})};
EJW=function(G,b,I){var h,q,l,V;return _.c(function(D){if(D.nextAddress==1){if(f5F(G,b))return D.return();_.Ws().currentEndpoint=b;_.E3(G.miniplayerEl,"yt-miniplayer-endpoint-changed");_.E3(G.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Ws().isVideoPlaying=!1;h={clientParams:{miniplayer:!0,autoSaveToQueue:!I}};q=new etb(function(){return G.getPlayerElement()},h,{layer:G.getScreenLayer(),
parentLayer:0},void 0,G.readyToResumeVe);l=function(k){var L,x,f=Object.assign({},(L=k.playerResponse)==null?void 0:(x=L.playerConfig)==null?void 0:x.playbackStartConfig,{startPaused:!0}),T;I&&((T=k.playerResponse)==null?0:T.playerConfig)&&(k.playerResponse.playerConfig.playbackStartConfig=f);q.processChunk({endpoint:b,data:k})};
tGD(G);G.miniplayerFetchRequest=z2e(G,b,l);_.gm(D,2);return D.yield(G.miniplayerFetchRequest,4)}if(D.nextAddress!=2)return V=D.yieldResult,o2K(G,V),_.hF(D,0);_.zf(D);_.ip(D)})};
MN.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var tGD=function(G){G.miniplayerFetchRequest&&(G.miniplayerFetchRequest.cancel&&G.miniplayerFetchRequest.cancel("Active request obsolete"),G.miniplayerFetchRequest=null)},z2e=function(G,b,I){var h,q=(h=_.g(b.commandMetadata,_.IW))==null?void 0:h.url,l;
h=!q||_.U("disable_miniplayer_tempdata")?{}:(l=E6d(q))!=null?l:{};return PP(G.JSC$19075_pageRequestService,b,h,window.location.href,"watch",function(V,D){I(D)},function(V){return V!==G.miniplayerFetchRequest})},o2K=function(G,b){var I;
_.c(function(h){if(!b)return h.return();G.watchResponse=b;AMF(G);sBF(G);I=_.gP(b.response,!1,b.playerResponse);if(G.isMiniplayerActive()){b.response&&(G.playerElement.watchNextData=b.response);var q=_.Cy.getValueByKeys.apply(_.Cy,[b].concat(_.Nz(Tn8)));_.Cy.getValueByKeys.apply(_.Cy,[b].concat(_.Nz(A1e)))&&q&&_.LL().resolve(_.jm).setAutoplayRenderer(q);if(q)if(_.U("kevlar_is_pupi_enabled")){var l,V,D,k,L,x=((l=b.response)==null?0:(V=l.playerOverlays)==null?0:(D=V.playerOverlayRenderer)==null?0:(k=
D.autonavToggle)==null?0:(L=k.autoplaySwitchButtonRenderer)==null?0:L.enabled)?2:1;_.TW.getInstance().setState(x,!1,!1)}else l=eGs()?2:1,(x=G.player)==null||x.setAutonavState(l);G.updateMiniplayerData(I);_.g2K(G)}_.ip(h)})},sBF=function(G){var b,I,h=(b=G.watchResponse)==null?void 0:(I=b.playerResponse)==null?void 0:I.playabilityStatus,q;
b=h==null?void 0:(q=h.miniplayer)==null?void 0:q.miniplayerRenderer;(b==null?void 0:b.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&b.minimizedEndpoint&&_.pv(G.miniplayerEl,[b.minimizedEndpoint]);_.ZB(G,{playabilityStatus:h})};
MN.prototype.openToast=function(G,b){_.ZB(this,{toastData:{data:G,label:b}})};
_.ZB=function(G,b){(0,G.miniplayerPropSignalMap[1])(b)};
MN.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var G;return this.playerElement?this.playerElement:(G=_.Eo(this.miniplayerEl).querySelector("#player-container"))==null?void 0:G.firstElementChild};
MN.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var THY=function(G,b){b=b===void 0?!1:b;var I,h,q,l,V,D;return _.c(function(k){if(k.nextAddress==1){if(!G.pictureInPictureSupported()||!khp()&&!b)return k.return(!1);I=P69(G);h=I.width;q=I.height;return k.yield(G.pipController.openWindow({width:h,height:q}),2)}l=k.yieldResult;V=G.pipController.getWindow();if(!V||!l)return k.return(!1);V.document.body.style.overflow="hidden";D=cpO(V);Jfa(G.pipController,function(){dBW(G);D()});
return k.return(!0)})},P69=function(G){var b=_.Ws().shortsPipActivation,I,h;
G=b?.5625:(h=(I=G.player)==null?void 0:I.getVideoAspectRatio())!=null?h:16/9;I=Math.min(window.innerWidth,window.innerHeight)/2;b=b?0:76;return G>1?new _.Pa(I,b+I/G):new _.Pa(I*G,b+I)},dBW=function(G){var b;
_.c(function(I){b=_.LL().resolve(_.Ck);return b.isOnWatch()&&G.watchPipMode||b.isOnShorts()&&G.shortsPipMode?I.yield(G.deactivate(),0):G.miniplayerToPipMode?I.yield(xBW(G),0):G.watchPipMode?I.yield(_.s7(G),0):I.jumpTo(0)})};
MN.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.kV.Object.defineProperties(MN.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
MN[QE]=[KTf,s2u,_.LW];var yM9="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(" "),
rMY="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(" "),FGF="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
H15="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var WGc=function(G,b,I){_.FN.call(this);this.store=G;this.panelController=b;this.pageContentExtractor=I;this.isInitialized=!1};
_.M(WGc,_.FN);
WGc.prototype.init=function(G){var b=this;this.isInitialized||(this.isInitialized=!0,this.environment=G!=null?G:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.PH.currentPageSubTypeSelector(this.store.getState()),G=_.Nj(this.store,_.PH.currentPageSubTypeSelector,function(I){a:if(_.a5j(b))switch(I){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var h=!0;break a;default:h=!1}else h=!1;h&&b.panelController.hidePanel({identifier:"PAai_companion"});
b.pageSubtype!==I&&(b.pageSubtype=I)}),this.addOnDisposeCallback(G))};
_.qg1=function(G,b){if(_.a5j(G))switch(b){case "watch":var I,h;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(I=_.GZ())==null?void 0:(h=I.getVideoData())==null?void 0:h.video_id};case "search":var q,l,V;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(l=(q=G.pageContentExtractor)==null?void 0:i0a(q))!=null?l:[],entityId:(V=(new URLSearchParams(window.location.search)).get("search_query"))!=null?V:void 0};case "companion-canvas":var D,k;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(k=(D=
G.pageContentExtractor)==null?void 0:i0a(D))!=null?k:[]};default:var L,x;G={videoIds:(x=(L=G.pageContentExtractor)==null?void 0:i0a(L))!=null?x:[]};return _.U("enable_ai_companion_default_page_context")?G:void 0}};
_.a5j=function(G){return G.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
WGc[QE]=[_.nR,_.Jo,_.vf(PI5)];var NH5=_.C(function(G){return _.v("yt-ai-companion-attachment-view-model",{el:_.Wv(_.s2(function(){return G.data().rendererContext})),
class:_.pG("ytAiCompanionAttachmentViewModelHost",G.className)},_.v("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.v(_.Q,{cond:function(){return G.data().title},
then:function(b){return _.v("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return b().content}},_.v(_.IS,{text:b}))}}),_.v(_.Q,{cond:function(){return _.iA(G.data().trailingTitleIcon)},
then:function(b){return _.v("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.v(_.Fu,{data:b,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.v(_.Q,{cond:function(){return G.data().description},
then:function(b){return _.v("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.v(_.IS,{text:b}))}}),_.v(_.Q,{cond:function(){return G.data().bottomItem},
then:function(b){return _.v("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.v(_.VX,{data:b},{tableViewModel:Wcz}))}}))},"kh");_.YYj=_.C(function(G){return _.v("yt-channel-attribution-view-model",{class:_.pG("ytChannelAttributionViewModelHost",G.className)},_.v("div",{class:"ytChannelAttributionViewModelUpper"},_.v(_.VX,{data:function(){return G.data().avatar}},{decoratedAvatarViewModel:_.w1}),_.v("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.v(_.IS,{text:function(){return G.data().title}}))),_.v("div",{class:"ytChannelAttributionViewModelBottom"},_.v(_.IS,{text:function(){return G.data().subtitle}})))},"lh");var C68=_.C(function(G){var b=_.e(_.ZZ(!1,void 0,"MFRKRb")),I=b.next().value,h=b.next().value,q=function(){return G.data().activeRenderer},l=function(){return G.data().inactiveRenderer};
return _.v("yt-channel-disclosure-view-model",{"on:mouseleave":_.Xu(function(){h(!1)}),
"on:mouseover":_.Xu(function(){h(!0)}),
class:_.pG("ytChannelDisclosureViewModelHost",G.className)},_.v(_.Q,{cond:function(){return I()},
then:function(){return _.v(_.VX,{data:q},{channelAttributionViewModel:_.YYj})},
else:function(){return _.v(_.VX,{data:l},{decoratedAvatarViewModel:_.w1})}}))},"mh");var JM3=null;var KGD={},uQW=(KGD.initialized={priority:10,callback:function(G){var b=_.LL();b.addProvider({provide:iin,useClass:ujF});b.addProvider({provide:_.K7f,useFactory:function(){return new Pun}});
b.addProvider({provide:IP,useValue:_.wy("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});b.addProvider({provide:vpK,useValue:5184E6});b.addProvider({provide:az5,useValue:_.fW()});b.addProvider({provide:DQe,useClass:s0z});b.addProvider({provide:jC,useClass:jC});b.addProvider({provide:_.wR,useFactory:function(){return pIb.promise}});
b.addProvider({provide:_.XIX,useFactory:function(){return _.Sx8.promise}});
b.addProvider({provide:Wdd,useValue:function(){var k;return((k=_.Kk())==null?void 0:k.getPlayer())||null}});
var I={};b.addProvider((I.provide=_.Kx,I.useFactory=function(k,L){return function(){return kRp(k,L)}},I[QE]=[IP,
vpK],I));I={};b.addProvider((I.provide=_.MM,I.useClass=z83,I[QE]=[IP,vpK],I));I={};b.addProvider((I.provide=_.oZO,I.useClass=d2W,I[QE]=[_.MM],I));b.addProvider({provide:O9,useFactory:_.Cw});b.addProvider({provide:E4,useFactory:_.Cw});b.addProvider({provide:BvD,useFactory:_.Cw});b.addProvider({provide:h8e,useFactory:_.Cw});b.addProvider({provide:_.nR,useFactory:_.Cw});b.addProvider({provide:oQ,useValue:_.hQ});b.addProvider({provide:apF,useClass:RAp});b.addProvider({provide:yjK,useClass:dzc});b.addProvider({provide:oD,
useClass:oD});b.addProvider({provide:tt,useClass:tt});b.addProvider({provide:gW,useClass:gW});b.addProvider({provide:zD,useClass:zD});b.addProvider({provide:HK,useClass:HK});b.addProvider({provide:fV,useClass:fV});b.addProvider({provide:hv,useClass:hv});b.addProvider({provide:_.ZV,useValue:jb3});I={};b.addProvider((I.provide=Xa9,I.useFactory=function(k){return k.watchEndpointMap||{}},I[QE]=[_.ZV],I));
I={};b.addProvider((I.provide=$2c,I.useFactory=function(k){return k.reelWatchEndpointMap||{}},I[QE]=[_.ZV],I));
b.addProvider({provide:_.aS,useFactory:_.qo});b.addProvider({provide:JH,useFactory:_.m$});I={};b.addProvider((I.provide=k1d,I.useFactory=function(k){return function(L){var x=x===void 0?{}:x;var f,T,B=(T=_.g((f=L.endpoint)==null?void 0:f.commandMetadata,_.IW))==null?void 0:T.rootVe;if(B){var A,t;if(f=L.previousCsn||((t=_.g((A=L.endpoint)==null?void 0:A.commandMetadata,BNA))==null?void 0:t.parentCsn)){var y=y===void 0?{}:y;if(f!==_.gL(y.layer)||B!==VbO(y.layer))Lla(f,y.cttAuthInfo,y.layer||0),ms2(f,
y.layer||0),A=y.layer||0,_.OB(eqr(A===void 0?0:A),B);x.parentCsn=f}L.endpoint&&f?uwW(k,L.endpoint,x):_.oa(k,B,void 0,x);var F;((F=L.response)==null?0:F.trackingParams)&&k.graftServerVe(L.response.trackingParams);var W;((W=L.playerResponse)==null?0:W.trackingParams)&&k.graftServerVe(L.playerResponse.trackingParams);var O;((O=L.reelWatchSequenceResponse)==null?0:O.trackingParams)&&k.graftServerVe(L.reelWatchSequenceResponse.trackingParams)}}},I[QE]=[_.aS],I));
I={};b.addProvider((I.provide=sJW,I.useClass=UQf,I[QE]=[oQ,_.nR],I));I={};b.addProvider((I.provide=G_,I.useClass=G_,I[QE]=[_.wR,_.nR],I));I={};b.addProvider((I.provide=px,I.useClass=px,I[QE]=[E4,_.xW],I));b.addProvider({provide:_.dQL,useClass:RC8});I={};b.addProvider((I.provide=_.Jo,I.useClass=FTD,I[QE]=[_.dQL,_.vf(_.RF)],I));b.addProvider({provide:_.BU,useClass:FnL});I={};b.addProvider((I.provide=UH,I.useClass=UH,I[QE]=[_.BU,_.wR,_.kn,_.xW],I));b.addProvider({provide:_.K9,useClass:hm});b.addProvider({provide:_.iyf,
useClass:Z3c});b.addProvider({provide:_.u7,useClass:bw});_.U("enable_ai_companion")&&(b.addProvider({provide:_.RF,useClass:aZF}),b.addProvider({provide:_.BAB,useClass:NEz}),b.addProvider({provide:PI5,useClass:zC1}),b.addProvider({provide:Jh,useClass:Jh}),b.addProvider({provide:Cl,useClass:Cl}),b.addProvider({provide:sfb,useValue:C68}),b.addProvider({provide:gNz,useValue:NH5}));_.U("enable_ai_chat_controller")&&b.addProvider({provide:_.YB,useClass:WGc});I={};b.addProvider((I.provide=_.aP,I.useClass=
uqD,I[QE]=[_.aP],I));b.addProvider({provide:_.t1,useClass:ZN8});b.addProvider({provide:X9,useClass:X9});b.addProvider({provide:MW,useClass:MW});b.addProvider({provide:qW,useClass:qW});I={};b.addProvider((I.provide=Hu,I.useClass=Hu,I[QE]=[_.xW,_.kn],I));b.addProvider({provide:Ls,useClass:It});I={};b.addProvider((I.provide=T$,I.useClass=T$,I[QE]=[_.K9,Ls],I));I={};b.addProvider((I.provide=ci,I.useClass=ci,I[QE]=[_.K9],I));I={};b.addProvider((I.provide=wO,I.useClass=wO,I[QE]=[O9,nl],I));b.addProvider({provide:nl,
useClass:lza});_.U("web_enable_feedback_endpoint_resolver_batch_2")&&(I={},b.addProvider((I.provide=pl,I.useClass=pl,I[QE]=[O9],I)),I={},b.addProvider((I.provide=E9,I.useClass=E9,I[QE]=[nl],I)));I={};b.addProvider((I.provide=QY,I.useClass=QY,I[QE]=[_.u7,Ls],I));I={};b.addProvider((I.provide=VY,I.useClass=VY,I[QE]=[_.u7],I));I={};b.addProvider((I.provide=xe,I.useClass=xe,I[QE]=[_.kn,_.Jo],I));I={};b.addProvider((I.provide=vi,I.useClass=vi,I[QE]=[_.kn,_.aS],I));b.addProvider({provide:Er,useClass:Er});
I={};b.addProvider((I.provide=Cs,I.useClass=Cs,I[QE]=[O9],I));b.addProvider({provide:VT,useClass:VT});b.addProvider({provide:ei,useClass:ei});I={};b.addProvider((I.provide=cU,I.useClass=cU,I[QE]=[O9],I));I={};b.addProvider((I.provide=kA,I.useClass=kA,I[QE]=[_.kn,O9],I));I={};b.addProvider((I.provide=vU,I.useClass=vU,I[QE]=[O9],I));I={};b.addProvider((I.provide=LC,I.useClass=LC,I[QE]=[O9],I));I={};b.addProvider((I.provide=Dl,I.useClass=Dl,I[QE]=[_.Jo],I));I={};b.addProvider((I.provide=GD,I.useClass=
GD,I[QE]=[_.aS],I));I={};b.addProvider((I.provide=lc,I.useClass=lc,I[QE]=[ns],I));I={};b.addProvider((I.provide=mo,I.useClass=mo,I[QE]=[ns],I));b.addProvider({provide:ht,useClass:ht});b.addProvider({provide:qU,useClass:qU});b.addProvider({provide:$A,useClass:$A});I={};b.addProvider((I.provide=Bi,I.useClass=Bi,I[QE]=[_.Jo,_.xW],I));b.addProvider({provide:bL,useClass:bL});I={};b.addProvider((I.provide=ke,I.useClass=ke,I[QE]=[_.kn,_.Jo],I));b.addProvider({provide:jx,useClass:jx});I={};b.addProvider((I.provide=
NW,I.useClass=NW,I[QE]=[O9,_.kn,_.aP],I));I={};b.addProvider((I.provide=Hi,I.useClass=Hi,I[QE]=[_.kn,_.xW],I));b.addProvider({provide:Qfe,useValue:Tld});b.addProvider({provide:AlX,useValue:XUp});b.addProvider({provide:Wi,useClass:Wi});I={};b.addProvider((I.provide=FS,I.useClass=FS,I[QE]=[O9],I));I={};b.addProvider((I.provide=Ye,I.useClass=Ye,I[QE]=[_.t1,_.xW],I));I={};b.addProvider((I.provide=Sq,I.useClass=Sq,I[QE]=[_.xW],I));b.addProvider({provide:RQ,useFactory:function(){return new RQ(_.Cw())}});
b.addProvider({provide:ypq,useFactory:_.dq.getInstance});I={};b.addProvider((I.provide=hH,I.useClass=hH,I[QE]=[IP,ypq,_.xW],I));b.addProvider({provide:$e,useClass:$e});b.addProvider({provide:Wu,useClass:Wu});b.addProvider({provide:N$,useClass:N$});b.addProvider({provide:_.aQ,useClass:_.aQ});b.addProvider({provide:fC,useClass:fC});I={};b.addProvider((I.provide=iL,I.useClass=iL,I[QE]=[E4],I));I={};b.addProvider((I.provide=sr,I.useClass=sr,I[QE]=[_.xW],I));I={};b.addProvider((I.provide=Pi,I.useClass=
Pi,I[QE]=[_.xW],I));I={};b.addProvider((I.provide=dW,I.useClass=dW,I[QE]=[_.xW],I));_.U("web_enable_prefetching_videos_on_home")&&(b.addProvider({provide:E6,useClass:E6}),b.addProvider({provide:Qr,useClass:Qr}));I={};b.addProvider((I.provide=xA,I.useClass=xA,I[QE]=[_.xW],I));b.addProvider({provide:Kl,useClass:Kl});I={};b.addProvider((I.provide=ps,I.useClass=ps,I[QE]=[_.kn,_.xW],I));I={};b.addProvider((I.provide=u2,I.useClass=u2,I[QE]=[_.xW],I));I={};b.addProvider((I.provide=xC,I.useClass=xC,I[QE]=
[_.kn,_.xW],I));b.addProvider({provide:LB,useClass:LB});b.addProvider({provide:tH,useClass:tH});I={};b.addProvider((I.provide=Zl,I.useClass=Zl,I[QE]=[E4,_.xW],I));b.addProvider({provide:z$,useClass:z$});I={};b.addProvider((I.provide=g7,I.useClass=g7,I[QE]=[E4,_.xW,_.kn],I));I={};b.addProvider((I.provide=At,I.useClass=At,I[QE]=[_.xW],I));I={};b.addProvider((I.provide=sH,I.useClass=sH,I[QE]=[_.xW,_.kn],I));I={};b.addProvider((I.provide=wW,I.useClass=wW,I[QE]=[_.xW,_.kn],I));I={};b.addProvider((I.provide=
rW,I.useClass=rW,I[QE]=[_.wR],I));I={};b.addProvider((I.provide=yY,I.useClass=yY,I[QE]=[_.wR],I));I={};b.addProvider((I.provide=oP,I.useClass=oP,I[QE]=[_.wR],I));b.addProvider({provide:RP,useClass:RP});b.addProvider({provide:Or,useClass:Or});b.addProvider({provide:DV,useClass:DV});b.addProvider({provide:Sx,useClass:Sx});b.addProvider({provide:uL,useClass:uL});b.addProvider({provide:mC,useClass:mC});b.addProvider({provide:Ks,useClass:Ks});_.U("kevlar_enable_mss_lazy_load")&&b.addProvider({provide:_.iX,
useClass:MOf});b.addProvider({provide:_.o0,useClass:jp});b.addProvider({provide:fm,useFactory:function(){return _.I1.getInstance()}});
b.addProvider({provide:fZa,useFactory:MYB});b.addProvider({provide:ns,useFactory:function(){return _.nm.getInstance()}});
b.addProvider({provide:Neb,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});I={};b.addProvider((I.provide=_.S9,I.useClass=_.S9,I[QE]=[_.wR,_.xW,_.aS,fZa,ns,fm,Neb,oQ],I));b.addProvider({provide:_.i7,useClass:hiz});b.addProvider({provide:_.Qka,useClass:Lnf});I={};b.addProvider((I.provide=ex,I.useClass=ex,I[QE]=[_.Qka],I));I={};b.addProvider((I.provide=_.Xf,I.useFactory=function(k){return k.upliftCompletionResolver.promise},I[QE]=[sJW],I));
I=_.Sk("IS_SHELL_LOAD")?"aa":"eocs";var h=_.Sk("IS_SHELL_LOAD")?3:2;_.mq().parkOrScheduleJob(function(){Af9()},h,I);
_.mq().parkOrScheduleJob(function(){_.LL().resolve(G_).start()},2,"eocs");
_.mq().parkOrScheduleJob(function(){TvF()},2,"eocs");
_.mq().parkOrScheduleJob(function(){_.LL().resolve(px).start()},2,"eocs");
_.U("kevlar_debug_data_app_registration_ks")||DGp();b.addProvider({provide:_.VO,useValue:new Fhf(G.root)});b.addProvider({provide:GX,useValue:new emp});b.addProvider({provide:_.Kh3,useValue:new ClY(G.root)});b.addProvider({provide:_.cy,useValue:new Jz5});b.addProvider({provide:_.id,useClass:F1});b.addProvider({provide:KTf,useClass:qN});_.U("kevlar_network_sli_killswitch")||b.addProvider({provide:SB3,useValue:m$O});b.addProvider({provide:NyY,useFactory:zUO});_.U("web_bind_fetch")&&(I={},b.addProvider((I.provide=
YBf,I.useFactory=oJv,I[QE]=[_.vf(NyY)],I)));_.U("web_bind_window_request")&&(I={},b.addProvider((I.provide=CMF,I.useFactory=ier,I[QE]=[_.vf(NyY)],I)));_.U("web_bind_text_decoder")&&(I={},b.addProvider((I.provide=JCW,I.useFactory=PEO,I[QE]=[_.vf(NyY)],I)));I={};b.addProvider((I.provide=J4j,I.useFactory=VQ2,I[QE]=[_.Xf,O9,_.Kx],I));I={};b.addProvider((I.provide=Ce8,I.useClass=MU,I[QE]=[J4j],I));b.addProvider({provide:sl3,useClass:fC1});b.addProvider({provide:Wn1,useClass:NVY});I=[].concat(_.Nz(iBp));
_.U("web_continuation_response_processing")&&I.push(_.Aa);I.push(boJ);_.U("enable_share_panel_navigation_logging_fix_on_web")&&I.push(_.QSn);b.addProvider({provide:oCa,useValue:I});b.addProvider({provide:HHq,useClass:Hy8});b.addProvider({provide:IU1,useClass:X39});I={};b.addProvider((I.provide=daO,I.useClass=Gf8,I[QE]=[E4],I));_.uu.addLowPriorityJob(function(){YD2()});
I={};b.addProvider((I.provide=sYB,I.useFactory=function(k){return function(L){var x,f=(x=_.g(L.commandMetadata,_.IW))==null?void 0:x.url;if(!f)throw new _.Wf("No URL for PBJ Command",L);f=J_a(f,{pbj:"1"});x=eZO(f,{})||{};x=Object.assign({},x,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.wy("STS").toString()});L=_.oN({command:JSON.stringify(L),session_token:_.wy("XSRF_TOKEN")});return k.fetch(f,{method:"POST",headers:x,body:L})}},I[QE]=[IU1],I));
b.addProvider({provide:w3f,useFactory:function(){var k={};return k.CSI=yiO(),k.ECATCHER=d7s(),k}});
b.addProvider({provide:M2p,useClass:Ezc});I=[];I.push(b.resolve(Wn1));h={};h=(h.client_location=_.dq.getInstance(),h.consistency=_.QEj(),h.entities=b.resolve(yjK),h.response_received_commands=b.resolve(HHq),h.store=b.resolve(_.oZO),h.tokens=b.resolve(Wn1),h.service_params=b.resolve(M2p),h);if(_.U("web_shorts_prefetch_service_enabled")){var q=new y2a(b.resolve(_.MM));h.shorts_prefetch=q}h.adblock_detection=b.resolve(daO);b.addProvider({provide:_.IB,useClass:_.IB});q=b.resolve(_.ZV);var l=[];_.U("PremiumClientSharedConfig__enable_att_context_processor")&&
(b.addProvider({provide:xzj,useClass:vTL}),l.push(b.resolve(xzj)));if(_.U("owl_pl_await")){var V={};b.addProvider((V.provide=dcD,V.useFactory=function(k){return new i3L(k)},V[QE]=[_.IB],V));
l.push(b.resolve(dcD))}M9A(q,b.resolve(IU1),b.resolve(apF),h,b.resolve(_.MM),I,l,b.resolve(Ce8),b.resolve(sl3));b.addProvider({provide:_.kn,useValue:_.ik.instance});_.U("start_client_gcf")&&b.addProvider({provide:HA,useValue:mOQ()});b.addProvider({provide:Z01,useFactory:function(){return new Z01(_.LL().resolve(_.IB),_.nm.getInstance())}});
_.mq().parkOrScheduleJob(function(){tT1()},1,"eocs");
I={};b.addProvider((I.provide=$C,I.useClass=$C,I[QE]=[_.Kx,_.kn],I));b.addProvider({provide:_.SM9,useFactory:_.v9.getInstance});_.mq().parkOrScheduleJob(function(){_.LL().resolve($C).refresh()},0,"eocs");
b.addProvider({provide:_.LW,useClass:lC8});_.U("kevlar_signal_collection_killswitch")||(I={},b.addProvider((I.provide=VT5,I.useClass=VT5,I[QE]=[IP,JH],I)),_.mq().parkOrScheduleJob(function(){_.LL().resolve(VT5).record()},1,"eocs"));
_.U("web_debug_handler_registration_killswitch")||_.mq().parkOrScheduleJob(function(){efd("DOWNLOAD_PES",A9p);_.U("offline_client_state_export_ks")||efd("OFFLINE_CLIENT_STATE",Uqd)},0,"eocs");
_.U("kevlar_prevent_polymer_dynamic_font_load")&&_.mq().parkOrScheduleJob(function(){var k=[_.Ba(cBf),_.Ba(keF)];k=_.e(k);for(var L=k.next();!L.done;L=k.next()){L=L.value;var x=document.createElement("link");_.DJ(x,L,"stylesheet");document.head.appendChild(x)}},1,"eocs");
I=G.injector.resolve(_.kn);_.Q$3.instance=new _.Q$3(I);X1r(mza(new LfF(I)));I={};G.injector.addProvider((I.provide=vw,I.useFactory=function(k){(k=k==null?void 0:k.getCurrentPage())?k=k.visibilityObserver:(JM3||(JM3=xI2()),k=JM3);return k},I[QE]=[_.vf(_.Ck)],I.skipCache=!0,I));
b.addProvider({provide:_.zO,useClass:MN});b.addProvider({provide:rF,useClass:vHA});G.injector.addProvider({provide:mUu,useValue:rz1});b.addProvider({provide:XEA,useValue:$z3});b.addProvider({provide:jp5,useValue:Dk2});b.addProvider({provide:_.Pv,useValue:ZuO});G=b.addProvider;b3e||(b3e=new GF5);G.call(b,{provide:_.lw,useValue:b3e});b.addProvider({provide:_.yB,useValue:_.wy("HTML_DIR")==="rtl"?"rtl":"ltr"});b.addProvider({provide:uDF,useClass:byL});b.addProvider({provide:_.SH,useClass:mR});_.LL().addProvider({provide:nT1,
useValue:_.U("enable_web_delhi_icons")?rMY.concat(H15):yM9.concat(FGF)});b.addProvider({provide:_.Vr,useClass:_.Vr});b.addProvider({provide:_.epL,useValue:new m18});b.addProvider({provide:PFW,useClass:iNF});b.addProvider({provide:XS,useClass:XS});b.addProvider({provide:bc,useClass:bc});G={};b.addProvider((G.provide=Ur,G.useClass=Ur,G[QE]=[_.kn,_.Jo],G));b.addProvider({provide:TD,useClass:TD});b.addProvider({provide:pLK,useClass:O0c});b.addProvider({provide:ji,useClass:ji});b.addProvider({provide:VVJ,
useValue:wSB});b.addProvider({provide:_.DT,useClass:PpY});_.U("enable_payments_purchase_manager")&&b.addProvider({provide:UzF,useClass:fJ8});b.addProvider({provide:jkW,useFactory:function(){return function(k){return _.D1D(k)}}});
b.addProvider({provide:_.db9,useClass:y43});G={};b.addProvider((G.provide=QT,G.useClass=QT,G[QE]=[_.db9],G));b.addProvider({provide:I0,useClass:I0});b.addProvider({provide:uO3,useValue:sIe});b.addProvider({provide:yl5,useValue:_.eTW});b.addProvider({provide:ZZX,useClass:n83});b.addProvider({provide:Ip5,useValue:cFL});G={};b.addProvider((G.provide=hT9,G.useClass=qBc,G[QE]=[Ip5],G));G={};b.addProvider((G.provide=_.a8,G.useClass=L0c,G[QE]=[hT9],G));G={};b.addProvider((G.provide=_.c9,G.useClass=DB,G[QE]=
[_.nR,_.id],G));if(_.U("web_explore_hub_on_hover")||_.U("web_client_explore_hub_on_hover"))G={},b.addProvider((G.provide=G$,G.useClass=G$,G[QE]=[_.kn,fm],G));if(_.U("web_enable_renderer_logger")){var D=new JWr;GQq(function(){D.abort()});
b.addProvider({provide:Fmp,useValue:new cf5(D.signal)})}b.addProvider({provide:Vsn,useValue:dgj});b.addProvider({provide:xur,useClass:r2F});_.U("web_use_flow_state_manager")&&(b.addProvider({provide:_.Pu,useClass:rjK}),G={},b.addProvider((G.provide=dO,G.useClass=dO,G[QE]=[_.Pu,_.xW],G)))}},KGD);var R21={},n21=(R21.initialized={priority:10,callback:function(){if(!p3e){xop();F3q("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.M1(_.l9(F3q,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.U("log_heartbeat_with_lifecycles")){var G={};DF.instance||(DF.instance=new DF);DF.instance.install((G.document_visible={callback:Hev,priority:10},G.document_hidden={callback:Hev,priority:10},G))}else _.D5(document,"visibilitychange",Hev);p3e=!0}(G=_.gL())&&G!=="UNDEFINED_CSN"&&jup(G)}},R21);var O1c={},wAf=(O1c.initialized={callback:function(G){var b=_.Xs(232091),I=G.injector.resolve(_.aS);_.iz(I,b);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?vZB()&&_.dS(I,b):(G=G.injector.resolve(jkW)("refresh_detector"))&&(G.get("first_tab_load")?_.dS(I,b):G.set("first_tab_load","1"))}},O1c);var E28={},pAD=(E28.initialized={priority:10,callback:sgj},E28);var SY1={},XAe=(SY1.initialized={priority:0,callback:function(){var G=new lOW,b="other";_.IR?b="chrome":_.b3?b="firefox":_.pL?b="safari":Vz&&(b="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(I){G.increment(_.ri(),I,b)}).catch(function(){G.increment(_.ri(),!1,b)}):G.increment(_.ri(),!1,b)}},SY1);var $y9={},GX8=($y9.rendering={priority:8,callback:gZX},$y9);var b8a={},I8K=(b8a.rendering={priority:10,callback:aha},b8a.rendered={callback:WxO},b8a),hx1={},qzW=(hx1.rendering={callback:aha},hx1.rendered={callback:WxO},hx1);var j1c=!1,l8D={},mye=(l8D.initialized={priority:10,callback:function(){j1c||(C4j({didPatch:function(G){G.el&&Oer(G.el,G.props)},
didUnmount:function(G){RUd(G.el)}}),j1c=!0)}},l8D);var exF=/^\/shorts\/?$/;_.OB("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:{}}}}}}});_.U("kevlar_use_common_module_manager_ks")?(_.OLO(new Ngj),IAO()):YXB();
(function(){var G=document.querySelector("ytd-app");if(!G)throw Error("Xj");G=new kC({root:G,injector:_.LL()});G.install(n21);var b={};G.install((b.initialized={priority:10,callback:mVp},b));_.U("wp_lat_b")&&(b={},G.install((b.initialized={priority:10,callback:function(){MVO()}},b)));
b={};G.install((b.rendered={priority:0,callback:qCX},b));b={};G.install((b.rendered={priority:0,callback:function(){_.uu.addLowPriorityJob(function(){_.Iza>1&&(SRO(),IXr())},4E4)}},b));
G.install(Ni9);G.install(wAf);G.install(mye);qJa();G.install(wf3);G.install(yBK);G.install(WEf);G.install(IZa);G.install(mQ9);G.install(nW3);G.install(uQW);_.U("kevlar_enable_mss_lazy_load")&&G.install(pAD);G.install(FEL);G.install(XAe);if(!_.Sk("IS_SHELL_LOAD")||_.U("kevlar_fetch_initial_data_promise_client")||_.U("sw_nav_preload_pbj")){var I=_.tB(window.location.href);b=I&&I==="/watch";I=I&&I.match(exF);b?G.install(qzW):I?G.install(GX8):G.install(I8K)}else G.install(iLF);G.install(CB9);_.U("web_enable_prefetching_videos_on_home")&&
G.install(Xf9);_.U("start_client_gcf")&&G.install(O3e);G.install(S8f);(new m9n).increment("INSTALLED");G.install(pf5);G.install(tOL);G.transition("initialized");x7O();VVO()})();
_.$n=[[["aW5kIzFlc280MWIxZjNhMWs=","I2RwYTBkcndmb2cwcHZhbHVl"],"QUNFTUVOVF9LSU5EX1NUQVJUI3luOWRmZXduNXpqY0FEX1BM"]];_.Xo=["OXlsamQxbGI3ZmVnbG9iYWxDYWxsYmFja3MjZg==","bkFibm9ybWFsaXR5RGV0ZWN0ZWQjY2JzajF4eW11Z2R6bw==","Z3VjZm9uQWRTa2lwI3JzYTk3bGZ5","azBmcmF3X3BsYXllcl9yZXNwb25zZSNxeXgyeTl2a2g=","OW4zcm15MmFkU2xvdHMjazR0NnE="];_.vQ="OXlsamQxbGI3ZmVnbG9iYWxDYWxsYmFja3MjZg== bkFibm9ybWFsaXR5RGV0ZWN0ZWQjY2JzajF4eW11Z2R6bw== Z3VjZm9uQWRTa2lwI3JzYTk3bGZ5 azBmcmF3X3BsYXllcl9yZXNwb25zZSNxeXgyeTl2a2g= cHNfa3MjZXBwcjBqb2xkaXAxd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraQ== cmRkYzZ3NmFiX3NhX2VmI2o4eGc= OW4zcm15MmFkU2xvdHMjazR0NnE=".split(" ");
_._ModuleManager_initialize=function(G,b){if(!_.Yu){if(!_.CT)return;_.OLO(_.CT())}_.Yu.setAllModuleInfoString(G,b)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/sye:1/syd:3,b,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:a/iuT5Oc',['sy3','sy4','sy8','sye','syb','sy1','syk','syj','syg','syd','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','sya','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.tm=function(G,b,I,h,q){var l={};b&&(l[b]=I);h?l.errorType=h:q&&(l.errorReason=q);_.C1(G,l);_.JM()};
_.z_=function(G){var b=_.mq();return _.PNB(b,G,1)};
_.fn({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 Q11;var xy5;var f85=function(){};
_.m=f85.prototype;_.m.addOwnKeyBinding=function(){};
_.m.removeOwnKeyBindings=function(){};
_.m.keyboardEventMatchesKeys=function(){};
_.m._collectKeyBindings=function(){};
_.m._prepKeyBindings=function(){};
_.m._addKeyBinding=function(){};
_.m._resetKeyEventListeners=function(){};
_.m._listenKeyEventListeners=function(){};
_.m._unlistenKeyEventListeners=function(){};
_.m._onKeyBindingEvent=function(){};
_.m._triggerKeyHandler=function(){};
_.m._tapHandler=function(){};
_.m._focusChanged=function(){};
_.m._detectKeyboardFocus=function(){};
_.m._userActivate=function(){};
_.m._upHandler=function(){};
_.m._spaceKeyDownHandler=function(){};
_.m._spaceKeyUpHandler=function(){};
_.m._asyncClick=function(){};
_.m._pressedChanged=function(){};
_.m._ariaActiveAttributeChanged=function(){};
_.m._activeChanged=function(){};
_.m._controlStateChanged=function(){};
_.m._changedButtonState=function(){};
_.m._focusBlurHandler=function(){};
_.m._disabledChanged=function(){};
_.m._changedControlState=function(){};
_.m._downHandler=function(){};
_.m.ensureRipple=function(){};
_.m.getRipple=function(){};
_.m.hasRipple=function(){};
_.m._noinkChanged=function(){};
_.m._focusedChanged=function(){};
_.m._createRipple=function(){};
_.m.registered=function(){};
_.m._invalidChanged=function(){};
_.m.hasValidator=function(){};
_.m.validate=function(){};
_.m._getValidity=function(){};
_.m._requiredChanged=function(){};
_.m._valueChanged=function(){};
_.m._checkedChanged=function(){};
_.m._buttonStateChanged=function(){};
_.m._setPressed=function(){};
_.m._setPointerDown=function(){};
_.m._setReceivedFocusFromKeyboard=function(){};
_.m._setFocused=function(){};
f85=_.fn({is:"tp-yt-paper-radio-button",_template:function(){if(xy5!==void 0)return xy5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;Q11===void 0&&(Q11=document.createElement("template"));var h=Q11;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return xy5=G},
behaviors:[_.eRX],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(){_.D1(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var G=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),b=Math.floor(3*G);b%2!==G%2&&b++;this.updateStyles({"--paper-radio-button-ink-size":b+"px"})}})}});var TaF;var Baf;_.fn({_template:function(){if(Baf!==void 0)return Baf;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;TaF===void 0&&(TaF=document.createElement("template"));var h=TaF;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return Baf=G},
is:"tp-yt-paper-radio-group",behaviors:[_.bpW],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 b=this._valueToItem(G);if(!b||!b.hasAttribute("disabled")){if(this.selected){b=this._valueToItem(this.selected);if(this.selected==G)if(this.allowEmptySelection)G="";else{b&&(b.checked=!0);return}b&&
(b.checked=!1)}_.yx.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){_.GdX._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(G){_.GdX._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.yx._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Ns._resetTabindices.apply(this,arguments);this.items.forEach(function(G){G.removeAttribute("aria-selected")},this)}});var Uya;_.QO("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var ot=function(){return _.a.apply(this,arguments)||this};
_.M(ot,_.a);_.m=ot.prototype;_.m.computeHasPrimaryIcon=function(G){return!(!G.icon&&!G.thumbnail)};
_.m.computeHasSecondary=function(G){return!(!G.secondaryIcon&&!G.secondaryNotificationText)};
_.m.computeHideSecondaryString=function(G){return!_.U("disable_hide_empty_secondary_string")&&!G.secondaryNotificationText};
_.m.computeCompactLinkStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.m.computeHasFitHeight=function(G){return G==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.m.isActiveEndpoint=function(G){return(G=this.get("commandMetadata.webCommandMetadata.url",G))?_.tB(window.location.href)!=="/account_transfer_channel"&&_.tB(window.location.href)!=="/gaia_link"&&_.tB(window.location.href)!=="/channel_switcher"||G!=="/account"?_.tB(window.location.href)===G:!0:!1};
_.m.onTap=function(){var G;((G=this.data)==null?0:G.serviceEndpoint)&&_.pv(this.hostElement,[this.data.serviceEndpoint])};
ot.prototype.onTap=ot.prototype.onTap;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ot.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.n("design:type",Boolean)],ot.prototype,"active",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.n("design:type",String)],ot.prototype,"compactLinkStyle",void 0);
_.R([_.H({computed:"computeIcon_(data.icon)"}),_.n("design:type",Object)],ot.prototype,"icon",void 0);_.R([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.n("design:type",Object)],ot.prototype,"secondaryIcon",void 0);_.R([_.H({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],ot.prototype,"hasSecondary",void 0);_.R([_.H({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],ot.prototype,"hideSecondaryString",void 0);
_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ot.prototype,"onTap",null);_.R([_.N({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],ot);
_.J(ot,"ytd-compact-link-renderer",function(){if(Uya!==void 0)return Uya;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Uya=G},{mode:1});var s1j;_.QO("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var iw=function(){var G=_.a.apply(this,arguments)||this;G.role="link";G.tabindex="0";G.actionMap=_.U("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};
_.M(iw,_.a);_.m=iw.prototype;_.m.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.o_()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.m.getCurrentTheme=function(){return _.ig()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.o_()};
_.m.onThemeSelected=function(G,b){var I=G||b?G:_.z9(),h=(I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.k52(_.tB(window.location.href));_.eX(0,165,G);_.eX(0,174,b);this.prefs.save();h&&_.wL(this.hostElement,"yt-dark-mode-toggled-action",[I]);_.wL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.m.onTap=function(){this.data.serviceEndpoint&&_.pv(this.hostElement,[this.data.serviceEndpoint])};
_.m.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.m.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.m.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
iw.prototype.onTap=iw.prototype.onTap;iw.prototype.dataChanged=iw.prototype.dataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],iw.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.jI),_.n("design:type",Object)],iw.prototype,"paperItemBehaviors",void 0);_.R([_.H(),_.n("design:type",Object)],iw.prototype,"data",void 0);_.R([_.H({value:function(){return _.m$()}}),
_.n("design:type",_.lO)],iw.prototype,"prefs",void 0);_.R([_.H(),_.n("design:type",Object)],iw.prototype,"label",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],iw.prototype,"role",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],iw.prototype,"tabindex",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iw.prototype,"dataChanged",null);
_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iw.prototype,"onTap",null);_.R([_.N({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],iw);
_.R9()(iw,"ytd-toggle-theme-compact-link-renderer",function(){if(s1j===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);s1j=G}G=s1j;return G},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var AU3,Me8;_.P9=function(G){return!!G.getOptions("captions")};
_.gGj=function(G){return(G=G.getOption("captions","track"))?!!G.displayName:!1};
_.df=function(G,b){_.Qq(b,G,function(){return AU3[b]},function(I){AU3[b]=I;
if(!_.U("mweb_player_ve_show_ks")){var h=_.gL(0);h&&I&&_.rK(h,I)}})};
_.yr=function(G){(G=AU3[G])&&_.dS(_.qo(),G)};
AU3={};var Z8Y;/*

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
*/
_.fn({_template:function(){if(Z8Y!==void 0)return Z8Y;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;Me8===void 0&&(Me8=document.createElement("template"));var h=Me8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return Z8Y=G},
is:"tp-yt-paper-checkbox",behaviors:[_.eRX],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.D1(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var G=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),b="px",I=G.match(/[A-Za-z]+$/);I!==null&&(b=I[0]);G=parseFloat(G);I=8/3*G;b==="px"&&(I=Math.floor(I),I%2!==G%2&&I++);this.updateStyles({"--paper-checkbox-ink-size":I+
b})}})},
_computeCheckboxClass:function(G,b){var I="";G&&(I+="checked ");b&&(I+="invalid");return I},
_computeCheckmarkClass:function(G){return G?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.l$B._createRipple.call(this)}});var teL=new _.hu("radioButtonSurveyOptionRenderer"),zx9=new _.hu("checkboxSurveyOptionRenderer");var oG1;var i88;var Px9=0,rf=function(){var G=_.a.call(this)||this;G.selected=!1;G.isOverlay=!1;G.inputId="toggle-option-"+Px9;Px9++;return G};
_.M(rf,_.a);rf.prototype.onTap=function(){_.O3(this.hostElement,"ytd-toggle-option-clicked")};
_.R([_.H(),_.n("design:type",String)],rf.prototype,"label",void 0);_.R([_.H(),_.n("design:type",String)],rf.prototype,"inputId",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],rf.prototype,"selected",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],rf.prototype,"isOverlay",void 0);_.R([_.N({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.n("design:paramtypes",[])],rf);
_.J(rf,"ytd-toggle-option-renderer",function(){if(i88!==void 0)return i88;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return i88=G},{mode:1});var FL=function(){var G=_.a.apply(this,arguments)||this;G.isToggleOption=!1;G.isOverlay=!1;return G};
_.M(FL,_.a);FL.prototype.onTap=function(G){G.preventDefault();this.data&&(G=!this.data.checked,this.set("data.checked",G),_.O3(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:G,value:this.data.value}))};
_.kV.Object.defineProperties(FL.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
FL.prototype.onTap=FL.prototype.onTap;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],FL.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],FL.prototype,"isToggleOption",void 0);_.R([_.H(),_.n("design:type",Object)],FL.prototype,"isOverlay",void 0);_.R([_.P("data.responseText"),_.n("design:type",String),_.n("design:paramtypes",[])],FL.prototype,"label",null);
_.R([_.hI("ytd-toggle-option-clicked"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],FL.prototype,"onTap",null);_.R([_.N({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],FL);
_.J(FL,"ytd-checkbox-survey-option-renderer",function(){if(oG1!==void 0)return oG1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return oG1=G},{mode:1});var dyf;var yUa;var H9=function(){var G=_.a.apply(this,arguments)||this;G.checked=!1;G.isToggleOption=!1;return G};
_.M(H9,_.a);H9.prototype.onTap=function(){this.data&&(this.checked?_.wL(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.wL(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
H9.prototype.onTap=H9.prototype.onTap;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],H9.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],H9.prototype,"checked",void 0);_.R([_.H(),_.n("design:type",Object)],H9.prototype,"isToggleOption",void 0);_.R([_.hI("ytd-toggle-option-clicked"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],H9.prototype,"onTap",null);
_.R([_.N({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],H9);
_.J(H9,"ytd-radio-button-survey-option-renderer",function(){if(yUa!==void 0)return yUa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return yUa=G},{mode:1});var W9=function(){var G=_.a.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=_.U("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};
_.M(W9,_.a);_.m=W9.prototype;
_.m.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"}}}}};
_.m.attached=function(){var G=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(I){var h;if((h=I[0])!=null&&h.isIntersecting){_.b$().reportShown(G.hostElement);var q;(q=G.intersectionObserver)==null||q.unobserve(G.hostElement)}},{rootMargin:"0px",
threshold:.6});var b;(b=this.intersectionObserver)==null||b.observe(this.hostElement)};
_.m.onDarkModeToggledAction=function(G){this.isDarkMode=G};
_.m.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 b;((b=this.data)==null?void 0:b.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var I,h,q,l;this.darkColorPalette=(I=this.data)==null?void 0:(h=I.inlineContent)==null?void 0:(q=h.compactVideoRenderer)==null?void 0:(l=q.thumbnail)==null?
void 0:l.darkColorPalette;var V,D,k,L;this.lightColorPalette=(V=this.data)==null?void 0:(D=V.inlineContent)==null?void 0:(k=D.compactVideoRenderer)==null?void 0:(L=k.thumbnail)==null?void 0:L.lightColorPalette;var x,f;if(((x=this.data)==null?0:(f=x.inlineContent)==null?0:f.compactVideoRenderer)&&this.isShortsStyle){var T,B,A,t;G=_.u$((T=this.data)==null?void 0:(B=T.inlineContent)==null?void 0:(A=B.compactVideoRenderer)==null?void 0:(t=A.thumbnail)==null?void 0:t.thumbnails);_.G8(this.hostElement,
{"--yt-background-url":"url("+G+")"})}};
_.m.handleRequestCompletion=function(){this.hostElement.hidden&&_.O3(this.hostElement,"yt-dismissible-item-dismissed")};
_.m.onPopupClosed=function(G){var b;((b=G.detail)==null?void 0:b.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.wL(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.m.handleInlineSurveyRatingSelect=function(G,b){var I=this;this.selectedRatingEndpoint=G;this.followUpSurveyCommand=b;this.expanded=!!G;this.getOptionRenderers().forEach(function(h,q){I.notifyPath("followUpSurveyCommand.followUpOptions."+q+".checkboxSurveyOptionRenderer.checked");I.set("followUpSurveyCommand.followUpOptions."+q+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),G=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.wL(this.hostElement,"yt-reel-non-video-content-dismissal-command",[G]))};
_.m.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.wL(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var G,b=(G=this.data)==null?void 0:G.dismissalEndpoint;b&&this.ytComponentBehavior.resolveCommand(b)}};
_.m.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.wL(this.hostElement,"yt-close-popup-action"))};
_.m.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(h){return h.checked});
if(G.length===0)return;G=G.map(function(h){return h.responseEndpoint})}var b=[];
G.forEach(function(h,q){q!==0&&(h=_.g(h,_.sE))&&h.feedbackToken&&b.push(h.feedbackToken)});
if(G=G[0]){var I={};b.length>0&&(I.extra_feedback_tokens=b);this.ytComponentBehavior.resolveCommand(G,{form:I})}}};
_.m.getOptionRenderers=function(){var G=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(b){G.isSingleSelect=!!_.g(b,teL);return G.isSingleSelect?_.g(b,teL):_.g(b,zx9)}):[]};
_.m.handleInlineSurveyOptionSelect=function(G){G=this.optionSelector.indexOf(G);G!==-1&&this.optionSelector.selectIndex(G)};
_.m.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.m.maybeGetBackgroundColor=function(G){return this.isDarkMode?G.section2Color:G.section3Color};
_.m.colorPaletteChanged=function(){var G=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;G=G&&this.maybeGetBackgroundColor(G);this.dismissibleEl.style.backgroundColor=!G||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Uo(G)};
_.kV.Object.defineProperties(W9.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
W9.prototype.colorPaletteChanged=W9.prototype.colorPaletteChanged;W9.prototype.onPopupClosed=W9.prototype.onPopupClosed;W9.prototype.handleRequestCompletion=W9.prototype.handleRequestCompletion;W9.prototype.dataChanged=W9.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],W9.prototype,"actionHandlerBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],W9.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],W9.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.lH("#follow-up-survey-options"),_.n("design:type",Object)],W9.prototype,"optionSelector",void 0);_.R([_.H(),_.n("design:type",Object)],W9.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],W9.prototype,"disableAnimation",void 0);_.R([_.H(),_.n("design:type",Object)],W9.prototype,"isToggleOption",void 0);_.R([_.H(),_.n("design:type",Object)],W9.prototype,"followUpSurveyCommand",void 0);_.R([_.H(),_.n("design:type",Object)],W9.prototype,"selectedRatingEndpoint",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],W9.prototype,"expanded",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],W9.prototype,"isSlimlineSurveyFollowUp",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],W9.prototype,"isShortsStyle",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],W9.prototype,"styleOverrideAttribute",void 0);_.R([_.H(),_.n("design:type",Boolean)],W9.prototype,"isSingleSelect",void 0);_.R([_.H(),_.n("design:type",Object)],W9.prototype,"isDarkMode",void 0);
_.R([_.H(),_.n("design:type",Object)],W9.prototype,"lightColorPalette",void 0);_.R([_.H(),_.n("design:type",Object)],W9.prototype,"darkColorPalette",void 0);_.R([_.P("selectedRatingEndpoint","isShortsStyle"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],W9.prototype,"isOptionSelected",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],W9.prototype,"roundedContainer",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],W9.prototype,"improveShortsResponseRate",void 0);_.R([_.lH("#dismissible"),_.n("design:type",HTMLElement)],W9.prototype,"dismissibleEl",void 0);_.R([_.lH("#dismiss-button yt-icon-button"),_.n("design:type",HTMLElement)],W9.prototype,"dismissButtonEl",void 0);_.R([_.lH("#inline-survey-header yt-icon-button"),_.n("design:type",HTMLElement)],W9.prototype,"inlineHeaderDismissButtonEl",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W9.prototype,"dataChanged",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W9.prototype,"handleRequestCompletion",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],W9.prototype,"onPopupClosed",null);
_.R([_.q5("darkColorPalette","lightColorPalette","isDarkMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W9.prototype,"colorPaletteChanged",null);_.R([_.N({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],W9);
_.J(W9,"ytd-inline-survey-renderer",function(){if(dyf!==void 0)return dyf;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return dyf=G},{mode:1});var rUF=["en-CA","en","es-MX","fr-CA"];_.FtW=_.C(function(G){var b=_.N5(G,{isOverlay:!1,isModern:!1}),I=b.captionIconType,h=b.onClick;G=b.ariaLabel;var q=b.ariaPressed,l=b.isOverlay,V=b.isModern;b=_.ee("button",function(L){_.df(L,127299)});
var D=_.Xu(function(L){_.yr(127299);h==null||h(L);return!1}),k={};
return _.v("ytm-closed-captioning-button",{class:_.pG("ytmClosedCaptioningButtonHost",(k.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return I()===-1&&l()},k.ytmClosedCaptioningButtonIconDisabled=function(){return I()===-1&&!l()},k))},_.v("button",{el:b,
class:"ytmClosedCaptioningButtonButton",title:G,"aria-label":G,"aria-pressed":q,"on:click":D},_.v(_.ha,{icon:function(){var L="",x=V();var f=x?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";x=x?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var T=_.m$().get("hl");f=!T||rUF.includes(T)?f:x;x=I();switch(x){case -1:case 0:L=f;break;case 1:L=f+"_FILLED";break;default:_.Eu(x)}return L}})))},"nh");
_.FtW.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.Sr=function(G){return function(b,I){var h=G||I.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(b,I,{get:function(){var q;return this.$?this.$[h]:(q=_.jH(this))==null?void 0:q.querySelector("#"+h)},
enumerable:!0,configurable:!0})}};_.XC=function(G){G=G===void 0?!1:G;_.FN.call(this);this.pubSub_=new _.iB(G);_.M2(this,this.pubSub_)};
_.OE(_.XC,_.FN);_.XC.prototype.subscribe=function(G,b,I){return this.isDisposed()?0:this.pubSub_.subscribe(G,b,I)};
_.XC.prototype.unsubscribe=function(G,b,I){return this.isDisposed()?!1:this.pubSub_.unsubscribe(G,b,I)};
_.XC.prototype.unsubscribeByKey=function(G){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(G)};
_.XC.prototype.publish=function(G,b){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var RS5=function(){_.tm("ypcRedeemFlowStarted")},nZW=function(G){_.tm("ypcRedeemFlowFailed",void 0,void 0,void 0,G)},OH1=function(G,b,I){b&&I&&(G.videos.forEach(function(h){h.videoId===b&&(h.itemId=I)}),G.recommendedVideos.forEach(function(h){h.videoId===b&&(h.itemId=I)}))};var wb9;var EZK;/*

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
*/
_.fn({_template:function(){if(EZK!==void 0)return EZK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;wb9===void 0&&(wb9=document.createElement("template"));var h=wb9;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return EZK=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,b){var I=this._resolveSrc(G);I!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",G===""||b?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,b=this.$.placeholder.style;G.backgroundSize=b.backgroundSize=this.sizing;G.backgroundPosition=b.backgroundPosition=this.sizing?this.position:"";G.backgroundRepeat=b.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(G){G=_.Bw(G,this.$.baseURIAnchor.href);G.length>=2&&G[0]==="/"&&G[1]!=="/"&&(G=(location.origin||location.protocol+"//"+location.host)+G);return G}});var pbe;var SX1;_.fn({_template:function(){if(SX1!==void 0)return SX1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;pbe===void 0&&(pbe=document.createElement("template"));var h=pbe;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return SX1=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 b=this.getAttribute("heading"),I=this.getAttribute("aria-label");typeof I==="string"&&I!==b||this.setAttribute("aria-label",G)},
_computeHeadingClass:function(G){return G?" over-image":""},
_computeAnimated:function(G){return G}});var XbW=new _.hu("addRendererToItemSectionAction");var $rK;var rC=function(){return _.a.apply(this,arguments)||this};
_.M(rC,_.a);rC.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rC.prototype,"rendererBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],rC.prototype,"dismissibleItemBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],rC.prototype,"rendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],rC.prototype,"data",void 0);_.R([_.N({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],rC);
_.J(rC,"ytd-comment-history-entry-renderer",function(){if($rK!==void 0)return $rK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return $rK=G},{mode:1});var GqK;_.QO("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.QO("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Fy=function(){return _.a.apply(this,arguments)||this};
_.M(Fy,_.a);_.m=Fy.prototype;_.m.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m.onKeyUp=function(G){if(G.keyCode===13)this.onTap()};
_.m.onTap=function(){this.data.recordClickEndpoint&&_.LL().resolve(_.xW).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var G=this.data.navigationEndpoint;G&&_.g(G,_.pb)&&_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}})};
_.m.readChanged=function(){var G;_.SL(this.hostElement,"unread",!((G=this.data)==null?0:G.read))};
_.m.dataChanged=function(){this.data&&_.SL(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.m.computeThumbnailSize=function(){var G;return((G=this.data)==null?0:G.highPriorityNotification)?32:48};
_.m.getEndpointURL=function(G){return G&&!_.g(G,_.pb)?this.componentBehavior.computeHref_(G):null};
_.m.getEndpointData=function(G){return G&&!_.g(G,_.pb)?G:null};
Fy.prototype.computeThumbnailSize=Fy.prototype.computeThumbnailSize;Fy.prototype.dataChanged=Fy.prototype.dataChanged;Fy.prototype.readChanged=Fy.prototype.readChanged;Fy.prototype.onKeyUp=Fy.prototype.onKeyUp;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Fy.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Fy.prototype,"data",void 0);_.R([_.H({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.n("design:type",Number)],Fy.prototype,"thumbnailSize",void 0);_.R([_.hI("keyup"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],Fy.prototype,"onKeyUp",null);
_.R([_.q5("data.read"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fy.prototype,"readChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fy.prototype,"dataChanged",null);_.R([_.q5("data.highPriorityNotification"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fy.prototype,"computeThumbnailSize",null);
_.R([_.N({is:"ytd-notification-renderer",disableElementRegistration:!0})],Fy);
_.J(Fy,"ytd-notification-renderer",function(){if(GqK!==void 0)return GqK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return GqK=G},{mode:1});var bOI;var H1=function(){return _.a.apply(this,arguments)||this};
_.M(H1,_.a);H1.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"}}}};
H1.prototype.computeActionButtonClass=function(G){return!G.actionButtons||G.actionButtons.length<=1?"single-button":G.description?"vertical-buttons":"horizontal-buttons"};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],H1.prototype,"data",void 0);_.R([_.N({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],H1);
_.J(H1,"ytd-playlist-show-metadata-renderer",function(){if(bOI!==void 0)return bOI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return bOI=G},{mode:1});var Ir7;_.QO("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var W1=function(){return _.a.apply(this,arguments)||this};
_.M(W1,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],W1.prototype,"data",void 0);_.R([_.N({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],W1);
_.J(W1,"ytd-purchase-item-renderer",function(){if(Ir7!==void 0)return Ir7;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ir7=G},{mode:1});var hBh;var qja={};qja.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"}};_.QO("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var ac=function(){return _.a.apply(this,arguments)||this};
_.M(ac,_.a);ac.prototype.onYtNavigate=function(G){var b=this.openPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);b&&(G.stopPropagation(),this.openPopupBehavior.openPopup(b))};
ac.prototype.onYtNavigate=ac.prototype.onYtNavigate;_.R([_.z(qja.YtSimpleTextSectionBehavior),_.n("design:type",Object)],ac.prototype,"ytSimpleTextSectionBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],ac.prototype,"openPopupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ac.prototype,"data",void 0);
_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ac.prototype,"onYtNavigate",null);_.R([_.N({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],ac);
_.J(ac,"ytd-simple-text-section-renderer",function(){if(hBh!==void 0)return hBh;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return hBh=G},{mode:1});var jOz;_.QO("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var lrI=function(){return _.a.apply(this,arguments)||this};
_.M(lrI,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],lrI.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lrI.prototype,"data",void 0);_.R([_.N({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],lrI);
_.J(lrI,"ytd-unlimited-page-feature-info-renderer",function(){if(jOz!==void 0)return jOz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jOz=G},{mode:1});var mrM;var eBA;var Nk=function(){return _.a.apply(this,arguments)||this};
_.M(Nk,_.a);Nk.prototype.dataChanged=function(){if(this.data){var G=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);G&&(G=_.KG(G,screen.width),this.hostElement.style.backgroundImage="url("+G+")")}};
Nk.prototype.dataChanged=Nk.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Nk.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Nk.prototype,"dataChanged",null);_.R([_.N({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],Nk);
_.J(Nk,"ytd-post-redemption-section-renderer",function(){if(eBA!==void 0)return eBA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return eBA=G},{mode:1});var VvA;var Yt=function(){return _.a.apply(this,arguments)||this};
_.M(Yt,_.a);Yt.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Yt.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Yt.prototype,"data",void 0);_.R([_.N({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Yt);
_.J(Yt,"ytd-ypc-post-redemption-renderer",function(){if(VvA!==void 0)return VvA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VvA=G},{mode:1});_.QO("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Cu=function(){var G=_.a.apply(this,arguments)||this;G.MIN_CODE_LENGTH=12;G.MAX_CODE_LENGTH=24;return G};
_.M(Cu,_.a);_.m=Cu.prototype;_.m.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.m.created=function(){this.riskService=new _.YPB;this.loadPaymentThenable=_.JRr(_.wy("YPC_MB_URL"))};
_.m.ready=function(){var G=this;this.code.addEventListener("keypress",function(b){G.onCodeInputKeypress(b)})};
_.m.dataChanged=function(){var G=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(b){b=_.e(b);for(var I=b.next();!I.done;I=b.next())I=I.value,I.type==="attributes"&&I.attributeName==="dark"&&G.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.m.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+")")}};
_.m.computeRedeemButton=function(G){(G=this.get("redeemButton.buttonRenderer",G))&&(G=Object.assign({},G,{serviceEndpoint:void 0}));return G};
_.m.onRedeemButtonTap=function(G){G.stopPropagation();RS5();this.redeemCode()};
_.m.redeemCode=function(){var G=this;this.isLoading=!0;var b=this.riskService.init();_.oT([b,this.loadPaymentThenable]).then(function(){var I=G.data.redeemButton.buttonRenderer.serviceEndpoint,h=_.CqO(),q=_.Cc.payments.business.integration.ClientTokenFactory.createClientToken(_.g(I,_.ZoJ).countryCode,h);h={c:G.code.value.trim(),rd:window.btoa(h),ctk:q};I&&_.LL().resolve(_.xW).resolveCommand(I,{form:Object.assign({},h,{element:G.hostElement})})},function(){G.showGenericError();
nZW("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Xj(Error("No"))})};
_.m.onYtServiceRequestCompleted=function(G){G.stopPropagation();this.isLoading=!1;var b,I;this.errorMessage=(b=G.detail)==null?void 0:(I=b.data)==null?void 0:I.errorMessage;var h,q;this.postRedemptionRenderer=(h=G.detail)==null?void 0:(q=h.data)==null?void 0:q.renderer;var l,V;if(G=(l=G.detail)==null?void 0:(V=l.data)==null?void 0:V.redirectEndpoint)this.isLoading=!0,_.O3(this.hostElement,"yt-navigate",{endpoint:G});this.errorMessage?nZW("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
G)&&_.tm("ypcRedeemFlowSucceeded")};
_.m.onYtServiceRequestError=function(G){G.stopPropagation();this.isLoading=!1;if(G=this.get("detail.error.message",G))this.errorMessage=_.ao(G);nZW("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.m.onInvokeInstrumentManagerActionCompleted=function(G){G.stopPropagation();this.redeemCode()};
_.m.onInvokeInstrumentManagerActionError=function(G){G.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",G)){case "instrumentManagerLoadError":this.showGenericError();nZW("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();nZW("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.tm("ypcRedeemFlowCancelled")}};
_.m.onInput=function(){var G=this;_.P5(this,"onInput",function(){var b=G.code.value.trim();G.redeemButtonDisabled=b.length<G.MIN_CODE_LENGTH||b.length>G.MAX_CODE_LENGTH},200)};
_.m.onCodeInputKeypress=function(G){G.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(RS5(),this.redeemCode())};
_.m.computeImageUrl=function(G){return G?_.KG(G.thumbnails,600):null};
_.m.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Cu.prototype.onInvokeInstrumentManagerActionError=Cu.prototype.onInvokeInstrumentManagerActionError;Cu.prototype.onInvokeInstrumentManagerActionCompleted=Cu.prototype.onInvokeInstrumentManagerActionCompleted;Cu.prototype.onYtServiceRequestError=Cu.prototype.onYtServiceRequestError;Cu.prototype.onYtServiceRequestCompleted=Cu.prototype.onYtServiceRequestCompleted;Cu.prototype.dataChanged=Cu.prototype.dataChanged;
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Cu.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Cu.prototype,"isLoading",void 0);_.R([_.H(),_.n("design:type",Boolean)],Cu.prototype,"redeemButtonDisabled",void 0);
_.R([_.H(),_.n("design:type",Object)],Cu.prototype,"errorMessage",void 0);_.R([_.H(),_.n("design:type",Object)],Cu.prototype,"postRedemptionRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],Cu.prototype,"observer",void 0);_.R([_.lH("#code"),_.n("design:type",HTMLInputElement)],Cu.prototype,"code",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Cu.prototype,"dataChanged",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Cu.prototype,"onYtServiceRequestCompleted",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Cu.prototype,"onYtServiceRequestError",null);
_.R([_.hI("yt-invoke-instrument-manager-action-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Cu.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.R([_.hI("yt-invoke-instrument-manager-action-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Cu.prototype,"onInvokeInstrumentManagerActionError",null);_.R([_.N({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Cu);
_.J(Cu,"ytd-redeem-code-renderer",function(){if(mrM!==void 0)return mrM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return mrM=G},{mode:1});var Drg;_.QO("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Jq=function(){var G=_.a.apply(this,arguments)||this;G.businessEmailDisplayState="HIDE_SECTION";return G};
_.M(Jq,_.a);_.m=Jq.prototype;_.m.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}}}}}};
_.m.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"};
_.m.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.m.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.iU(_.fHA),this.businessEmailDisplayState="CAPTCHA"))};
_.m.onYtServiceRequestCompleted=function(G){var b;if((b=G.detail.data)==null?0:b.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"}};
_.m.computeEmailHref=function(G){return"mailto:"+G};
_.m.computeSafeUrl=function(G){if(G)return _.KA(G)};
_.m.onBusinessEmailCaptchaSubmit=function(){var G;(G=this.data)!=null&&G.onBusinessEmailRevealClickCommand&&(G=this.JSC$22124_captchaTextarea.value)&&(G={recaptcha_response_token:G,channel_id:this.data.channelId},_.LL().resolve(_.xW).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},G,{element:this.hostElement})}))};
_.m.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.kV.Object.defineProperties(Jq.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,b;return!((G=this.data)==null||!G.primaryLinks)&&!((b=this.data)==null?0:b.links)&&this.data.primaryLinks.every(function(I){return I.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var G,b;return!((G=this.data)==null||!G.primaryLinks)&&!((b=this.data)==null?0:b.links)&&!this.shouldShowNewLinks}}});
Jq.prototype.onYtServiceRequestCompleted=Jq.prototype.onYtServiceRequestCompleted;Jq.prototype.dataChanged=Jq.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Jq.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.lH("#g-recaptcha-response"),_.n("design:type",HTMLTextAreaElement)],Jq.prototype,"JSC$22124_captchaTextarea",void 0);_.R([_.H(),_.n("design:type",Object)],Jq.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],Jq.prototype,"businessEmailDisplayState",void 0);_.R([_.H(),_.n("design:type",String)],Jq.prototype,"businessEmail",void 0);_.R([_.H(),_.n("design:type",String)],Jq.prototype,"businessEmailErrorMessage",void 0);
_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Jq.prototype,"hideDetailsSection",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Jq.prototype,"dataChanged",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Jq.prototype,"shouldShowNewLinks",null);_.R([_.P("data","shouldShowLinks"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Jq.prototype,"shouldShowLegacyLinks",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Jq.prototype,"onYtServiceRequestCompleted",null);_.R([_.N({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Jq);
_.J(Jq,"ytd-channel-about-metadata-renderer",function(){if(Drg!==void 0)return Drg;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Drg=G},{mode:1});var cdl;_.QO("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Ku=function(){return _.a.apply(this,arguments)||this};
_.M(Ku,_.a);Ku.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ku.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Number)],Ku.prototype,"lockupContainerType",void 0);_.R([_.H(),_.n("design:type",String)],Ku.prototype,"thumbnailFixedWidth",void 0);
_.R([_.N({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Ku);
_.J(Ku,"ytd-channel-featured-content-renderer",function(){if(cdl!==void 0)return cdl;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return cdl=G},{mode:1});var kqK;_.QO("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var ui=function(){var G=_.a.apply(this,arguments)||this;G.roundContainer=!0;G.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");return G};
_.M(ui,_.a);_.m=ui.prototype;_.m.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.m.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)};
_.m.computeSource=function(G){return G.secondarySource?_.NO(G.secondarySource):_.NO(G.source)};
_.m.computeClarifyStyle=function(G){return G?G.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.m.isLargeStyle=function(G){return G==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.m.computeBackgroundStyle=function(G){return G?G.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.m.computeHasActionButton=function(G){return!!G.actionButton};
_.m.computeHasBottomSection=function(G){return!!G.ctaHasBottomSection};
_.m.computeIsSourceMissing=function(G){return G.ctaHasBottomSection===!1?!0:G&&this.computeSource(G)?!1:!0};
_.m.computeSecondaryEndpoint=function(G){return G.secondaryEndpoint||G.endpoint};
ui.prototype.dataChanged=ui.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ui.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Number)],ui.prototype,"imageWidth",void 0);_.R([_.H(),_.n("design:type",Number)],ui.prototype,"imageHeight",void 0);
_.R([_.H({computed:"computeSecondaryEndpoint(data)"}),_.n("design:type",Object)],ui.prototype,"secondaryEndpoint",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.n("design:type",Boolean)],ui.prototype,"hasActionButton",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.n("design:type",Boolean)],ui.prototype,"hasBottomSection",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.n("design:type",Boolean)],ui.prototype,"missingSource",void 0);_.R([_.H({computed:"computeIcon_(data.icon)"}),_.n("design:type",String)],ui.prototype,"icon",void 0);_.R([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.n("design:type",String)],ui.prototype,"secondaryIcon",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.n("design:type",String)],ui.prototype,"clarifyStyle",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.n("design:type",String)],ui.prototype,"backgroundStyle",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ui.prototype,"roundContainer",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],ui.prototype,"amsterdamEnabled",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ui.prototype,"dataChanged",null);
_.R([_.N({is:"ytd-clarification-renderer",disableElementRegistration:!0})],ui);
_.J(ui,"ytd-clarification-renderer",function(){if(kqK!==void 0)return kqK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return kqK=G},{mode:1});var vaI;var LpM;var Rc=function(){var G=_.a.apply(this,arguments)||this;G.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");return G};
_.M(Rc,_.a);_.m=Rc.prototype;_.m.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.m.computeIcon=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.m.computeUseContacts=function(G){return!!G.contacts&&G.contacts.length>0};
_.m.computePhoneContact=function(G){var b,I;return(b=G.contacts)==null?void 0:(I=b.find(function(h){var q;return(h==null?void 0:(q=h.icon)==null?void 0:q.iconType)==="PHONE"}))==null?void 0:I.actionText};
_.m.computeSmsContact=function(G){var b,I;return(b=G.contacts)==null?void 0:(I=b.find(function(h){var q;return(h==null?void 0:(q=h.icon)==null?void 0:q.iconType)==="SMS"}))==null?void 0:I.actionText};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Rc.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Rc.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Rc.prototype,"amsterdamEnabled",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.n("design:type",Boolean)],Rc.prototype,"useContacts",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.n("design:type",String)],Rc.prototype,"phoneContact",void 0);_.R([_.N({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Rc);
_.J(Rc,"ytd-single-action-emergency-support-renderer",function(){if(LpM!==void 0)return LpM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return LpM=G},{mode:1});_.QO("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var nu=function(){var G=_.a.apply(this,arguments)||this;G.roundedContainer=!0;G.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");return G};
_.M(nu,_.a);nu.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],nu.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],nu.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],nu.prototype,"roundedContainer",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],nu.prototype,"amsterdamEnabled",void 0);
_.R([_.N({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],nu);
_.J(nu,"ytd-emergency-onebox-renderer",function(){if(vaI!==void 0)return vaI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vaI=G},{mode:1});var QOl;_.QO("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var OD=function(){return _.a.apply(this,arguments)||this};
_.M(OD,_.a);OD.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],OD.prototype,"data",void 0);_.R([_.N({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],OD);
_.J(OD,"ytd-exploratory-results-renderer",function(){if(QOl!==void 0)return QOl;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-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(_.E().content.cloneNode(!0),
G.content.firstChild);return QOl=G},{mode:1});var xrA;_.QO("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var wC=function(){var G=_.a.apply(this,arguments)||this;G.messageData=null;return G};
_.M(wC,_.a);_.m=wC.prototype;_.m.onServiceRequestCompleted=function(G,b){G=b.actions||[];b=0;for(var I=G.length;b<I;b++){var h=G[b],q=void 0,l=void 0;if((q=_.g(h,_.y$))==null?0:(l=q.item)==null?0:l.messageRenderer)this.messageData=_.g(h,_.y$).item.messageRenderer}};
_.m.dataChanged=function(){var G=this.data;this.hostElement.hidden=!1;_.SL(this.hostElement,"is-channel",G&&!G.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.m.computeThumbnailWidth=function(G){return G?126:56};
_.m.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.m.onSubmitTap=function(){var G=this.data,b=this.selectedResponseIndex;G!==void 0&&b!==void 0&&(G=G.responses[b],G.responseData&&_.LL().resolve(_.xW).resolveCommand(G.responseData,{form:{element:this.hostElement}}))};
_.m.onDismissTap=function(){this.hostElement.hidden=!0;var G=this.data;G!==void 0&&G.dismissalEndpoint&&_.LL().resolve(_.xW).resolveCommand(G.dismissalEndpoint,{form:{element:this.hostElement}})};
_.m.updateSelectedResponseIndexFromBinding=function(G){this.selectedResponseIndex=G.detail.value};
wC.prototype.onSelectedResponseIndexChange=wC.prototype.onSelectedResponseIndexChange;wC.prototype.dataChanged=wC.prototype.dataChanged;wC.prototype.onServiceRequestCompleted=wC.prototype.onServiceRequestCompleted;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],wC.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],wC.prototype,"messageData",void 0);
_.R([_.H(),_.n("design:type",Number)],wC.prototype,"selectedResponseIndex",void 0);_.R([_.lH("#submit-button"),_.n("design:type",HTMLButtonElement)],wC.prototype,"submitButton",void 0);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],wC.prototype,"onServiceRequestCompleted",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wC.prototype,"dataChanged",null);
_.R([_.q5("selectedResponseIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wC.prototype,"onSelectedResponseIndexChange",null);_.R([_.N({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],wC);
_.J(wC,"ytd-feedback-elicitation-single-question-renderer",function(){if(xrA!==void 0)return xrA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xrA=G},{mode:1});var frI;var ED=function(){return _.a.apply(this,arguments)||this};
_.M(ED,_.a);ED.prototype.computeThumbnailWidth=function(G){return G?602:428};
ED.prototype.updateWideFromBinding=function(G){this.wide=G.detail.value};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ED.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],ED.prototype,"wide",void 0);_.R([_.N({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],ED);
_.J(ED,"ytd-newspaper-hero-video-renderer",function(){if(frI!==void 0)return frI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return frI=G},{mode:1});var TXK;var BXA=function(){return _.a.apply(this,arguments)||this};
_.M(BXA,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],BXA.prototype,"rendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],BXA.prototype,"data",void 0);_.R([_.N({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],BXA);
_.J(BXA,"ytd-newspaper-mini-video-renderer",function(){if(TXK!==void 0)return TXK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return TXK=G},{mode:1});var Urv;_.QO("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var pu=function(){return _.a.apply(this,arguments)||this};
_.M(pu,_.a);pu.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],pu.prototype,"data",void 0);_.R([_.N({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],pu);
_.J(pu,"ytd-newspaper-renderer",function(){if(Urv!==void 0)return Urv;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Urv=G},{mode:1});var sOK;_.QO("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Dx=function(){var G=_.a.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};
_.M(Dx,_.a);_.m=Dx.prototype;_.m.created=function(){var G=this;this.JSC$22157_ytReorderableController=new _.c0A(101,function(b){G.handleDrop(b)})};
_.m.attached=function(){_.LL();var G;(G=_.LL().resolve(_.vf(_.aP)))!=null&&(G.playlistVideoListElement=this.hostElement)};
_.m.detached=function(){var G;(G=_.LL().resolve(_.vf(_.aP)))!=null&&(G.playlistVideoListElement=void 0);G=_.LL().resolve(_.vf(_.t1));_.U("web_enable_voting_animation")&&G&&(G.parentElem=void 0,G.videos=[],G.continuationsPresent=!1,G.showRefreshPill=!1);_.dF(this.JSC$22157_ytReorderableController)};
_.m.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"}}}}}};
_.m.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.m.dataChanged=function(){var G=_.LL().resolve(_.vf(_.t1));if(_.U("web_enable_voting_animation")&&this.data&&G){var b=_.Eo(this.hostElement).querySelector("#contents");b&&(G.parentElem=b);G.addVideos(this.data.contents)}_.dF(this.JSC$22157_ytReorderableController)};
_.m.onRendererstamperFinished=function(){this.canReorder&&_.koz(this.JSC$22157_ytReorderableController,_.Eo(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.m.onPlaylistReloading=function(){this.isReloading=!0};
_.m.onUpdateSetVideoId=function(G){if(G.detail&&this.data&&this.data.contents){var b=G.detail;G=this.data.contents.findIndex(function(q){var l;return((l=q.playlistVideoRenderer)==null?void 0:l.videoId)===b.videoId});
if(!(G<0)&&b.setVideoId&&(this.set("data.contents."+G+".playlistVideoRenderer.setVideoId",b.setVideoId),_.U("web_enable_voting_animation"))){var I;if(G=_.g((I=this.data.contents[G].playlistVideoRenderer)==null?void 0:I.engagementBar,_.lxu)){var h;(h=G.actions)==null||h.forEach(function(q){if(q=_.g(q,_.mXq))q.itemId=b.setVideoId})}(I=_.LL().resolve(_.vf(_.t1)))&&OH1(I,b.videoId,b.setVideoId)}}};
_.m.computeContentsClass=function(G){return G?"reloading":""};
_.m.computeIsSortable=function(G,b){return G&&b>0&&!this.isSegment&&!_.U("shorts_in_playlists_web")};
_.m.computeIsEditable=function(G){return G};
_.m.computeCanReorder=function(G){return G};
_.m.handlePlaylistRemoveVideosAction=function(G){if(this.get("playlistRemoveVideosAction.setVideoIds",G)&&this.data&&this.data.contents){G=_.g(G,_.uHW).setVideoIds;for(var b=this.data.contents.length-1;b>=0;){var I=this.data.contents[b].playlistVideoRenderer;I&&I.setVideoId&&G.includes(I.setVideoId)&&this.splice("data.contents",b,1);b--}_.wL(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.m.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",_.ao(String(G+1)))};
_.m.handleDrop=function(G){G=G.currDragItem;var b=_.Nr(G.parentNode.childNodes,G),I=this.data.contents.splice(Number(_.NO(G.data.index))-1,1)[0];this.data.contents.splice(b,0,I);b=b?this.get("contents."+(b-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();G=this.buildReorderServiceEndpoint(G.data.setVideoId,b);this.ytComponentBehavior.resolveCommand(G)};
_.m.buildReorderServiceEndpoint=function(G,b){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",G),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",b),this.data.onReorderEndpoint):null};
_.m.handleUpdatePlaylistAction=function(G){var b;(G=_.g((b=_.g(G,_.RaO))==null?void 0:b.updatedRenderer,_.nK8))&&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)};
_.m.handleAddRendererToItemSectionAction=function(G){var b,I=(b=_.g(G,XbW))==null?void 0:b.renderer,h;I&&((h=_.g(G,XbW))==null?void 0:h.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,I),G=_.LL().resolve(_.vf(_.t1)),_.U("web_enable_voting_animation")&&G&&(I&&(b=_.jiv(I))&&G.recommendedVideos.push({itemId:b,videoId:_.e1O(I),voteCount:_.VwB(I),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.m.isVotingEnabledOnPlaylist=function(G){if(!G)return!1;G=_.e(G);for(G=G.next();!G.done;G=G.next()){var b=void 0;return!!_.g((b=G.value.playlistVideoRenderer)==null?void 0:b.engagementBar,_.lxu)}return!1};
_.m.onAppendContinuationItemsActionFinished=function(){var G;this.isVotingEnabledOnPlaylist((G=this.data)==null?void 0:G.contents)&&(this.updateIndices(),G=_.LL().resolve(_.vf(_.t1)),_.U("web_enable_voting_animation")&&G&&this.data&&G.addVideos(this.data.contents))};
_.m.updateVideoData=function(G){if(G.detail&&this.data&&this.data.contents){var b=G.detail;G=b.toIdx;var I=b.itemId,h=b.newVoteCount,q=b.voteStatus;b=b.hideItem;var l,V,D=(l=this.data)==null?void 0:(V=l.contents)==null?void 0:V.findIndex(function(f){return _.jiv(f)===I});
if(!(D<0)){l=this.data.contents[D];var k;if((k=l.playlistVideoRenderer)==null?0:k.voteCount)l.playlistVideoRenderer.voteCount=h;var L;if(k=_.g((L=l.playlistVideoRenderer)==null?void 0:L.engagementBar,_.lxu)){var x;(x=k.actions)==null||x.forEach(function(f){(f=_.g(f,_.mXq))&&f.initialState&&(f.initialState.votes=h,f.initialState.status=q)})}this.data.contents.splice(D,1);
b||this.data.contents.splice(G,0,l);this.updateIndices()}}};
Dx.prototype.updateVideoData=Dx.prototype.updateVideoData;Dx.prototype.onAppendContinuationItemsActionFinished=Dx.prototype.onAppendContinuationItemsActionFinished;Dx.prototype.onUpdateSetVideoId=Dx.prototype.onUpdateSetVideoId;Dx.prototype.onPlaylistReloading=Dx.prototype.onPlaylistReloading;Dx.prototype.onRendererstamperFinished=Dx.prototype.onRendererstamperFinished;Dx.prototype.dataChanged=Dx.prototype.dataChanged;
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Dx.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Dx.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.eC.YtNextContinuationBehavior),_.n("design:type",Object)],Dx.prototype,"ytNextContinuationBehavior",void 0);
_.R([_.z(_.mD),_.n("design:type",Object)],Dx.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Dx.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Dx.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],Dx.prototype,"isReloading",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Dx.prototype,"isSegment",void 0);
_.R([_.H({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.n("design:type",Boolean)],Dx.prototype,"isSortable",void 0);_.R([_.H({computed:"computeIsEditable(data.isEditable)"}),_.n("design:type",Boolean)],Dx.prototype,"isEditable",void 0);_.R([_.H({computed:"computeCanReorder(data.canReorder)"}),_.n("design:type",Boolean)],Dx.prototype,"canReorder",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dx.prototype,"dataChanged",null);_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dx.prototype,"onRendererstamperFinished",null);_.R([_.hI("yt-playlist-reloading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dx.prototype,"onPlaylistReloading",null);
_.R([_.hI("yt-update-set-video-id"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Dx.prototype,"onUpdateSetVideoId",null);_.R([_.hI("yt-append-continuation-items-action-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dx.prototype,"onAppendContinuationItemsActionFinished",null);
_.R([_.hI("yt-update-video-data-voting-animation"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Dx.prototype,"updateVideoData",null);_.R([_.N({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Dx);
_.J(Dx,"ytd-playlist-video-list-renderer",function(){if(sOK!==void 0)return sOK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return sOK=G},{mode:_.nn("kevlar_poly_si_batch_j047")?1:2});var gaI;var cx=function(){return _.a.apply(this,arguments)||this};
_.M(cx,_.a);cx.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"}}}}};
cx.prototype.onTextWrapperTap=function(G){var b=this.data&&this.data.navigationEndpoint;b&&!_.NK(_.Wy(G),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.O3(this.hostElement,"yt-navigate",{endpoint:b})};
cx.prototype.dataChanged=function(){var G=this.get("data.offerButton.buttonRenderer.serviceEndpoint");G&&G.commandMetadata&&_.g(G.commandMetadata,_.aV)&&_.g(G.commandMetadata,_.aV).fireAutomatically&&_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}})};
cx.prototype.dataChanged=cx.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.ho),_.n("design:type",Object)],cx.prototype,"ytdLockupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],cx.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],cx.prototype,"useBiggerThumbs",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.UG("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],cx.prototype,"biggerThumbsStyle",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],cx.prototype,"leftAligned",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cx.prototype,"dataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-movie-renderer"})],cx);
_.J(cx,"ytd-movie-renderer",function(){if(gaI!==void 0)return gaI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return gaI=G},{mode:1});var Ado;var kw=function(){var G=_.a.apply(this,arguments)||this;G.rounded=!0;G.pageAttachedTo=void 0;G.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return G};
_.M(kw,_.a);kw.prototype.attached=function(){this.pageAttachedTo=_.LL().resolve(_.Ck).getCurrentPage();_.O3(this.hostElement,"yt-player-attached",this.player)};
kw.prototype.detached=function(){var G;if((G=this.pageAttachedTo)==null?0:G.hostElement)_.O3(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
kw.prototype.dataChanged=function(){var G;if((G=this.data)==null?0:G.videoId)G={video_id:this.data.videoId,autoplay:!0},!_.U("miniplayer_stop_channel_video_autoplay_killswitch")&&_.LL().resolve(_.zO).isMiniplayerActive()&&(G.pause_at_start=!0,G.autoplay=!1),this.player.loadVideoWithPlayerVars(G)};
kw.prototype.handleSignalActionPausePlayer=function(){_.uk().pause()};
kw.prototype.dataChanged=kw.prototype.dataChanged;_.R([_.H(),_.n("design:type",Object)],kw.prototype,"data",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],kw.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],kw.prototype,"rounded",void 0);_.R([_.lH("#player"),_.n("design:type",Object)],kw.prototype,"player",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kw.prototype,"dataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],kw);
_.J(kw,"ytd-channel-video-player-renderer",function(){if(Ado!==void 0)return Ado;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ado=G},{mode:1});var Mvh;var ZOK;var tvz;var vx=function(){var G=_.a.apply(this,arguments)||this;G.playing=!1;G.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Ej(G);G.active=!1;return G};
_.M(vx,_.a);_.m=vx.prototype;_.m.detached=function(){this.stop()};
_.m.play=function(){var G=this,b,I,h,q,l;return _.c(function(V){if(V.nextAddress==1)return G.active=!0,b=G.get("data.inlinePlaybackEndpoint.watchEndpoint"),I=b.videoId||G.data.videoId,h=b.startTimeSeconds||0,q=b.playerParams||null,_.U("kevlar_player_update_killswitch")?V.yield(G.playerEl.update({args:{video_id:I,startSeconds:h,player_params:q}}),2):(G.playerEl.loadVideoWithPlayerVars({video_id:I,startSeconds:h,player_params:q,autoplay:!0}),V.jumpTo(2));if(V.nextAddress!=4)return V.yield(G.playerEl.getPlayerPromise(),
4);l=V.yieldResult;l.unloadModule("annotations_module");l.addEventListener("onStateChange",function(D){G.onPlayerStateChange(D)});
_.ip(V)})};
_.m.onPlayerStateChange=function(G){if(this.active)switch(this.playing=G===1,G){case 1:_.O3(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.O3(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.m.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.m.resize=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return I.yield(G.playerEl.getPlayerPromise(),2);b=I.yieldResult;b.setSize(NaN,NaN);_.ip(I)})};
_.R([_.H(),_.n("design:type",Object)],vx.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],vx.prototype,"playing",void 0);_.R([_.H(),_.n("design:type",Object)],vx.prototype,"playerId",void 0);_.R([_.lH("#player"),_.n("design:type",Object)],vx.prototype,"playerEl",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],vx);
_.J(vx,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(tvz!==void 0)return tvz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return tvz=G},{mode:1});var zBA;var oaA;var LI=function(){var G=_.a.apply(this,arguments)||this;G.width=0;return G};
_.M(LI,_.a);_.m=LI.prototype;_.m.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.I9(this,this.onEnded));this.mp4El.addEventListener("error",_.I9(this,this.onError))};
_.m.detached=function(){this.videoEl.removeEventListener("ended",_.I9(this,this.onEnded));this.mp4El.removeEventListener("error",_.I9(this,this.onError))};
_.m.play=function(){var G=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var b=this.videoEl.play();b?b.then(function(){G.handleVideoStartPlaying()}).catch(function(){_.O3(G.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.O3(this.hostElement,"yt-video-thumbnail-not-playing")};
_.m.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.m.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.m.dataChanged=function(){var G;if((G=this.data)==null?0:G.thumbnailPlaceholder)G=_.KG(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+G+")";this.stop();this.autoplay&&this.play()};
_.m.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.m.onEnded=function(){this.stop();_.O3(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.m.onError=function(){_.O3(this.hostElement,"yt-video-thumbnail-error")};
_.m.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.m.getVideoThumbnail=function(G){if(G&&G.length)return G[0]};
LI.prototype.dataChanged=LI.prototype.dataChanged;_.R([_.H(),_.n("design:type",Object)],LI.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],LI.prototype,"animatePlaceholderOnEntrance",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],LI.prototype,"autoplay",void 0);_.R([_.H({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.n("design:type",Object)],LI.prototype,"videoThumbnail",void 0);
_.R([_.H(),_.n("design:type",Boolean)],LI.prototype,"loop",void 0);_.R([_.H(),_.n("design:type",Boolean)],LI.prototype,"isVideoPlaying",void 0);_.R([_.H(),_.n("design:type",Object)],LI.prototype,"width",void 0);_.R([_.lH("#mp4"),_.n("design:type",HTMLElement)],LI.prototype,"mp4El",void 0);_.R([_.lH("#placeholder"),_.n("design:type",HTMLElement)],LI.prototype,"placeholderEl",void 0);_.R([_.lH("#video"),_.n("design:type",HTMLVideoElement)],LI.prototype,"videoEl",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LI.prototype,"dataChanged",null);_.R([_.g8({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],LI);
_.J(LI,"yt-video-as-thumbnail-details",function(){if(oaA===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;zBA===void 0&&(zBA=document.createElement("template"));var h=zBA;I.call(b,h.content.cloneNode(!0),G.content.firstChild);oaA=G}G=oaA;return G},{mode:2});var QD=function(){var G=_.a.apply(this,arguments)||this;G.disableGridStateAware=!1;G.animationEnabled=_.U("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};
_.M(QD,_.a);_.m=QD.prototype;_.m.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.m.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)};
_.m.attached=function(){this.onWindowResized()};
_.m.detached=function(){this.clearTimeouts()};
_.m.onWindowResized=function(){this.updateSize()};
_.m.computePanelLayout=function(G){return G&&G.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.m.playVideo=function(){var G;this.video&&((G=this.data)==null?0:G.videoThumbnail)&&this.video.play();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.play()};
_.m.stopVideo=function(){var G;this.video&&((G=this.data)==null?0:G.videoThumbnail)&&this.video.stop();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.stop()};
_.m.transitionOut=function(){var G=this;this.transitioningOut=!0;return new Promise(function(b){var I=function(){_.Eo(G.hostElement).querySelector("#action-button").removeEventListener("animationend",I);_.uu.cancelJob(h);b();G.transitioningOut=!1};
var h=_.FQ(_.uu,I,1E3);_.Eo(G.hostElement).querySelector("#action-button").addEventListener("animationend",I);G.player&&(G.player.playing=!1)})};
_.m.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"};
_.m.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.m.computeAvatarSize=function(G){return G&&G.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.m.onContentClick=function(G){if(!_.NK(_.Wy(G),this.hostElement,["A".toString(),"BUTTON".toString()])){var b;if((b=this.data)==null?0:b.navigationEndpoint){var I;this.componentBehavior.resolveCommand((I=this.data)==null?void 0:I.navigationEndpoint)}}};
_.m.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.m.setBackgroundImage=function(G){if(G=this.getBackgroundImageUrl(G))_.Eo(this.hostElement).querySelector("#hero").style.backgroundImage="url("+G+")"};
_.m.setScrimLayer=function(G){var b=this.getScrimLayerColorStops(G);G=((G==null?void 0:G.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(G=180);_.wy("HTML_DIR")==="rtl"&&(G=-G);b&&(_.Eo(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+G+"deg, "+b+")")};
_.m.isNarrower=function(){return this.hostElement.clientWidth<QD.NARROW_VERSION_SIZE};
_.m.getScrimLayerColorStops=function(){var G,b=(G=this.data)==null?void 0:G.scrimColorValues;if(!b)return null;if(b.length===1)return G=_.so(b[0]),G+" 0%, "+G+" 100%";if(b.length===3){var I=[0,72,98];return b.map(function(h,q){return _.so(h)+" "+I[q]+"%"}).join(",")}return null};
_.m.getBackgroundImageUrl=function(G){return G&&G.largeFormFactorBackgroundThumbnail?_.KG((G.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||G.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.m.onPlaying=function(){this.startVideoTimeout()};
_.m.onEnded=function(){this.rotate()};
_.m.startPanelTimeout=function(){var G=this;if(!this.panelTimeoutJobId){var b=this.get("data.minPanelDisplayDurationMs");b&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.FQ(_.uu,function(){G.rotate()},b))}};
_.m.startVideoTimeout=function(){var G=this;if(!this.videoTimeoutJobId){_.uu.cancelJob(this.panelTimeoutJobId);var b=Date.now()-this.panelTimeoutJobStartMs;b=Math.max(0,this.get("data.minPanelDisplayDurationMs")-b);b=Math.max(this.get("data.minVideoPlayDurationMs")||0,b);this.videoTimeoutJobId=_.FQ(_.uu,function(){G.rotate()},b)}};
_.m.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.uu.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.uu.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.m.rotate=function(){this.clearTimeouts();_.O3(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.kV.Object.defineProperties(QD.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Eo(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Eo(this.hostElement).querySelector("#video")}}});
_.kV.Object.defineProperties(QD,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
QD.prototype.onEnded=QD.prototype.onEnded;QD.prototype.onPlaying=QD.prototype.onPlaying;QD.prototype.dataChanged=QD.prototype.dataChanged;_.R([_.z(_.Xl),_.n("design:type",Object)],QD.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],QD.prototype,"componentBehavior",void 0);_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],QD.prototype,"ytdGuideStateAwareBehavior",void 0);
_.R([_.z(_.mf9),_.n("design:type",Object)],QD.prototype,"ytBooleanLogicBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],QD.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],QD.prototype,"disableGridStateAware",void 0);_.R([_.H(),_.n("design:type",Object)],QD.prototype,"data",void 0);_.R([_.H({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.n("design:type",String)],QD.prototype,"panelLayout",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],QD.prototype,"animationEnabled",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],QD.prototype,"transitioningOut",void 0);
_.R([_.H({computed:"computeMetadataOrder(data)"}),_.n("design:type",Boolean)],QD.prototype,"metadataOrder",void 0);_.R([_.H({computed:"computeByline(data)"}),_.n("design:type",Object)],QD.prototype,"byline",void 0);_.R([_.H({computed:"computeAvatarSize(data)"}),_.n("design:type",Number)],QD.prototype,"avatarSize",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],QD.prototype,"narrow",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],QD.prototype,"narrower",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],QD.prototype,"layoutStyle",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],QD.prototype,"isCarouselInFeed",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],QD.prototype,"dataChanged",null);_.R([_.hI("yt-default-promo-panel-renderer-playing"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],QD.prototype,"onPlaying",null);
_.R([_.hI("yt-default-promo-panel-renderer-ended"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],QD.prototype,"onEnded",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],QD);
_.J(QD,"ytd-default-promo-panel-renderer",function(){if(ZOK!==void 0)return ZOK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ZOK=G},{mode:1});_.QO("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var xw=function(){var G=_.a.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};
_.M(xw,_.a);_.m=xw.prototype;_.m.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]]"}}}}}};
_.m.attached=function(){document.addEventListener("yt-page-type-changed",_.I9(this,this.onPageTypeChange));this.currentPageSubtype=_.lbp(location.pathname);this.onWindowResized()};
_.m.detached=function(){this.jobId&&_.uu.cancelJob(this.jobId);this.updateSizeJobId&&_.uu.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.I9(this,this.onPageTypeChange))};
_.m.onPageTypeChange=function(G){this.active=G.detail.newPageSubtype===this.currentPageSubtype};
_.m.onWindowResized=function(){this.updateSize()};
_.m.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.m.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.m.setCarouselItem=function(G){G>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.uu.cancelJob(this.jobId);var b=this.getCurrentPanelElement();b&&b.stopVideo();this.currentItemIndex=G%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(b||(b=this.getCurrentPanelElement()),b.playVideo()):this.startRotationJob()};
_.m.scrollThumbnails=function(G){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var b=this.getCurrentPaginationElement();if(b){var I=_.Eo(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?I.style.transform="translateX(0)":(b=b.offsetWidth+8,I.style.transform="translateX(-"+b*(G-Math.ceil(Math.floor(this.overlay.offsetWidth/b)/2)+1)+"px)")}}};
_.m.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=_.q_(_.uu,function(){var b;(b=G.getCurrentPanelElement())==null||b.updateSize();G.updateSize()}))};
_.m.getCurrentPanelElement=function(){return _.Eo(_.Eo(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.m.getCurrentPaginationElement=function(){return _.Eo(_.Eo(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.m.getNavigationClass=function(G,b){return G===b?"selected":""};
_.m.getNavigationDurationStyle=function(G){return"animation-duration:"+(this.get("data.carouselItems."+G+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.m.onNavigationTap=function(G){var b=this,I=G.model.index;I!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){b.setCarouselItem(I)}),this.autorotateActive=!1)};
_.m.onVideoThumbnailEnded=function(){var G=this;if(this.shouldRotate()){var b=this.getCurrentPaginationElement();b&&(b.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){b.classList.remove("finished");G.setNextCarouselItem()}))}};
_.m.onVideoThumbnailError=function(){this.startRotationJob()};
_.m.onVideoNotPlaying=function(){this.startRotationJob()};
_.m.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.m.startRotationJob=function(){var G=this;_.uu.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.uu.addLowPriorityJob(function(){G.getCurrentPanelElement().transitionOut().then(function(){G.setNextCarouselItem()})},this.rotationTimeout))};
_.m.computeDotMenuVisible=function(G,b){return!!G&&!!G.carouselItems&&G.carouselItems.length>1&&!G.paginationThumbnails||!!b};
_.m.computePaginationThumbnailsVisible=function(G,b){var I,h;return((h=G==null?void 0:(I=G.paginationThumbnails)==null?void 0:I.length)!=null?h:0)>1&&!b};
_.m.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.m.computePaginatorAlignment=function(G){return(G==null?void 0:G.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.m.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.m.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.m.isNarrower=function(G){return(G!=null?G:0)<QD.NARROW_VERSION_SIZE};
xw.prototype.activeChanged=xw.prototype.activeChanged;xw.prototype.onVideoNotPlaying=xw.prototype.onVideoNotPlaying;xw.prototype.onVideoThumbnailError=xw.prototype.onVideoThumbnailError;xw.prototype.onVideoThumbnailEnded=xw.prototype.onVideoThumbnailEnded;xw.prototype.onDataChanged=xw.prototype.onDataChanged;_.R([_.z(_.Xl),_.n("design:type",Object)],xw.prototype,"ytdGridStateAwareBehavior",void 0);
_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],xw.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],xw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],xw.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],xw.prototype,"currentItem",void 0);
_.R([_.H(),_.n("design:type",Number)],xw.prototype,"currentItemIndex",void 0);_.R([_.H(),_.n("design:type",Number)],xw.prototype,"rotationTimeout",void 0);_.R([_.H(),_.n("design:type",Number)],xw.prototype,"loopCount",void 0);_.R([_.H({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.n("design:type",String)],xw.prototype,"paginatorAlignment",void 0);_.R([_.H(),_.n("design:type",Number)],xw.prototype,"jobId",void 0);
_.R([_.H(),_.n("design:type",Number)],xw.prototype,"updateSizeJobId",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],xw.prototype,"isCarouselInFeed",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],xw.prototype,"narrower",void 0);_.R([_.H({computed:"computeDotMenuVisible(data, narrower)"}),_.n("design:type",Object)],xw.prototype,"dotMenuVisible",void 0);
_.R([_.H({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.n("design:type",Object)],xw.prototype,"paginationThumbnailsVisible",void 0);_.R([_.H({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.n("design:type",String)],xw.prototype,"layoutType",void 0);_.R([_.H({value:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],xw.prototype,"autorotateActive",void 0);_.R([_.H(),_.n("design:type",Object)],xw.prototype,"active",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],xw.prototype,"disableGridStateAware",void 0);_.R([_.lH("#overlay"),_.n("design:type",HTMLElement)],xw.prototype,"overlay",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xw.prototype,"onDataChanged",null);
_.R([_.hI("yt-video-thumbnail-ended"),_.hI("yt-default-promo-panel-renderer-rotate"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xw.prototype,"onVideoThumbnailEnded",null);_.R([_.hI("yt-video-thumbnail-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xw.prototype,"onVideoThumbnailError",null);
_.R([_.hI("yt-video-thumbnail-not-playing"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xw.prototype,"onVideoNotPlaying",null);_.R([_.Dd("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xw.prototype,"activeChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],xw);
_.J(xw,"ytd-carousel-item-renderer",function(){if(Mvh!==void 0)return Mvh;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Mvh=G},{mode:2});var iOK;var PsK;var drK;var yd7;var fI=function(){var G=_.a.apply(this,arguments)||this;G.originalQuery=null;G.originalEndpoint=null;return G};
_.M(fI,_.a);fI.prototype.computeShowOriginalQueryWithoutEndpoint_=function(G,b){return!(!G||b)};
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],fI.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fI.prototype,"correctedText",void 0);_.R([_.H(),_.n("design:type",Object)],fI.prototype,"correctedQuery",void 0);_.R([_.H(),_.n("design:type",Object)],fI.prototype,"correctedEndpoint",void 0);_.R([_.H(),_.n("design:type",Object)],fI.prototype,"originalText",void 0);_.R([_.H(),_.n("design:type",Object)],fI.prototype,"originalQuery",void 0);
_.R([_.H(),_.n("design:type",Object)],fI.prototype,"originalEndpoint",void 0);_.R([_.H({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.n("design:type",Boolean)],fI.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.R([_.g8({is:"yt-search-query-correction",disableElementRegistration:!0})],fI);
_.J(fI,"yt-search-query-correction",function(){if(yd7===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;drK===void 0&&(drK=document.createElement("template"));var h=drK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);yd7=G}G=yd7;return G},{mode:2});_.QO("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var rdd=function(){return _.a.apply(this,arguments)||this};
_.M(rdd,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rdd.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],rdd.prototype,"data",void 0);_.R([_.g8({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],rdd);
_.J(rdd,"yt-did-you-mean-renderer",function(){if(PsK===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;iOK===void 0&&(iOK=document.createElement("template"));var h=iOK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);PsK=G}G=PsK;return G},{mode:2});var Fpa;var HOd;_.QO("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Wpl=function(){return _.a.apply(this,arguments)||this};
_.M(Wpl,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Wpl.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Wpl.prototype,"data",void 0);_.R([_.g8({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Wpl);
_.J(Wpl,"yt-including-results-for-renderer",function(){if(HOd===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Fpa===void 0&&(Fpa=document.createElement("template"));var h=Fpa;I.call(b,h.content.cloneNode(!0),G.content.firstChild);HOd=G}G=HOd;return G},{mode:2});var arl;var NXa;_.QO("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Tu=function(){return _.a.apply(this,arguments)||this};
_.M(Tu,_.a);Tu.prototype.computeExtraClasses_=function(G,b){var I="";G&&(I+=" "+G.toLowerCase().replace(/_/g,"-"));b&&(I+=" "+b.toLowerCase().replace(/_/g,"-"));return I};
Tu.prototype.computeUrlImg_=function(){var G=this.data;G.image&&(_.Eo(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.KG(G.image.thumbnails,Number.MAX_VALUE)+")")};
Tu.prototype.computeUrlImg_=Tu.prototype.computeUrlImg_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Tu.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Tu.prototype,"computeUrlImg_",null);_.R([_.g8({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Tu);
_.J(Tu,"yt-music-pass-feature-info-renderer",function(){if(NXa===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;arl===void 0&&(arl=document.createElement("template"));var h=arl;I.call(b,h.content.cloneNode(!0),G.content.firstChild);NXa=G}G=NXa;return G},{mode:2});var Yjg;var CsI;_.QO("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var Jd7=function(){return _.a.apply(this,arguments)||this};
_.M(Jd7,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Jd7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Jd7.prototype,"data",void 0);_.R([_.g8({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],Jd7);
_.J(Jd7,"yt-no-results-found-showing-results-for-renderer",function(){if(CsI===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Yjg===void 0&&(Yjg=document.createElement("template"));var h=Yjg;I.call(b,h.content.cloneNode(!0),G.content.firstChild);CsI=G}G=CsI;return G},{mode:2});var Kpz;var uOI;_.QO("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var RB7=function(){return _.a.apply(this,arguments)||this};
_.M(RB7,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],RB7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],RB7.prototype,"data",void 0);_.R([_.g8({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],RB7);
_.J(RB7,"yt-results-without-quotes-renderer",function(){if(uOI===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Kpz===void 0&&(Kpz=document.createElement("template"));var h=Kpz;I.call(b,h.content.cloneNode(!0),G.content.firstChild);uOI=G}G=uOI;return G},{mode:2});var naM;var OOA;_.QO("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var w2I=function(){return _.a.apply(this,arguments)||this};
_.M(w2I,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],w2I.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],w2I.prototype,"data",void 0);_.R([_.g8({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],w2I);
_.J(w2I,"yt-search-no-results-renderer",function(){if(OOA===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;naM===void 0&&(naM=document.createElement("template"));var h=naM;I.call(b,h.content.cloneNode(!0),G.content.firstChild);OOA=G}G=OOA;return G},{mode:2});var EaA;var p2M;_.QO("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Sjo=function(){return _.a.apply(this,arguments)||this};
_.M(Sjo,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Sjo.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Sjo.prototype,"data",void 0);_.R([_.g8({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Sjo);
_.J(Sjo,"yt-showing-results-for-renderer",function(){if(p2M===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;EaA===void 0&&(EaA=document.createElement("template"));var h=EaA;I.call(b,h.content.cloneNode(!0),G.content.firstChild);p2M=G}G=p2M;return G},{mode:2});var X2d;var $8l;var GAh;var bQE;var Bx=function(){var G=_.a.apply(this,arguments)||this;G.answerExpanded=!1;return G};
_.M(Bx,_.a);Bx.prototype.toggleAnswer_=function(G){var b=_.a_(G);b&&b.classList.contains("yt-simple-endpoint")||(G.preventDefault(),G.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Bx.prototype.toggleAnswer_=Bx.prototype.toggleAnswer_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Bx.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Bx.prototype,"answerExpanded",void 0);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Bx.prototype,"toggleAnswer_",null);
_.R([_.g8({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Bx);
_.J(Bx,"yt-generic-faq-question-renderer",function(){if(bQE===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;GAh===void 0&&(GAh=document.createElement("template"));var h=GAh;I.call(b,h.content.cloneNode(!0),G.content.firstChild);bQE=G}G=bQE;return G},{mode:2});_.QO("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var UP=function(){return _.a.apply(this,arguments)||this};
_.M(UP,_.a);UP.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],UP.prototype,"data",void 0);_.R([_.g8({is:"yt-faq-section-renderer",disableElementRegistration:!0})],UP);
_.J(UP,"yt-faq-section-renderer",function(){if($8l===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;X2d===void 0&&(X2d=document.createElement("template"));var h=X2d;I.call(b,h.content.cloneNode(!0),G.content.firstChild);$8l=G}G=$8l;return G},{mode:2});var Iev;var hW7;_.QO("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var sP=function(){return _.a.apply(this,arguments)||this};
_.M(sP,_.a);
sP.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],sP.prototype,"data",void 0);_.R([_.g8({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],sP);
_.J(sP,"yt-offer-item-expanded-renderer",function(){if(hW7===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Iev===void 0&&(Iev=document.createElement("template"));var h=Iev;I.call(b,h.content.cloneNode(!0),G.content.firstChild);hW7=G}G=hW7;return G},{mode:2});var quM;var jnd;_.QO("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var gl=function(){return _.a.apply(this,arguments)||this};
_.M(gl,_.a);
gl.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"}}}}};
gl.prototype.computeFullWidthMode=function(G){return!(!G||!G.fullWidthMode)};
gl.prototype.computeBorderlessMode=function(G){return!(!G||!G.borderlessMode)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],gl.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],gl.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.n("design:type",Boolean)],gl.prototype,"fullWidthMode",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.n("design:type",Boolean)],gl.prototype,"borderlessMode",void 0);_.R([_.g8({is:"yt-offer-item-renderer",disableElementRegistration:!0})],gl);
_.J(gl,"yt-offer-item-renderer",function(){if(jnd===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;quM===void 0&&(quM=document.createElement("template"));var h=quM;I.call(b,h.content.cloneNode(!0),G.content.firstChild);jnd=G}G=jnd;return G},{mode:2});var leh;var m8A;_.QO("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var AR=function(){return _.a.apply(this,arguments)||this};
_.M(AR,_.a);AR.prototype.computeAriaLevel_=function(G){return this.getLevelID_(G)};
AR.prototype.getLevelID_=function(G){return(G=G.match(/[0-9]+$/))&&G.length==1?G[0]:"1"};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],AR.prototype,"data",void 0);_.R([_.H({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.n("design:type",String)],AR.prototype,"ariaLevel",void 0);_.R([_.H({value:"heading",reflectToAttribute:!0}),_.n("design:type",String)],AR.prototype,"role",void 0);
_.R([_.H({value:-1,reflectToAttribute:!0}),_.n("design:type",Number)],AR.prototype,"tabindex",void 0);_.R([_.g8({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],AR);
_.J(AR,"yt-subscription-product-header-renderer",function(){if(m8A===void 0){var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;leh===void 0&&(leh=document.createElement("template"));var h=leh;I.call(b,h.content.cloneNode(!0),G.content.firstChild);m8A=G}G=m8A;return G},{mode:2});var eWv;var VBM;_.QO("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var MX=function(){return _.a.apply(this,arguments)||this};
_.M(MX,_.a);MX.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:_.xo("menuRenderer"),events:!0}}};
MX.prototype.onStampFinished_=function(){_.Eo(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
MX.prototype.onStampFinished_=MX.prototype.onStampFinished_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],MX.prototype,"data",void 0);_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],MX.prototype,"onStampFinished_",null);
_.R([_.g8({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],MX);
_.J(MX,"yt-subscription-product-renderer",function(){if(VBM===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;eWv===void 0&&(eWv=document.createElement("template"));var h=eWv;I.call(b,h.content.cloneNode(!0),G.content.firstChild);VBM=G}G=VBM;return G},{mode:2});var D8I;var c5g;_.QO("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Zx=function(){return _.a.apply(this,arguments)||this};
_.M(Zx,_.a);Zx.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Zx.prototype.imageScrimColorValuesChanged_=function(){var G,b=(G=this.data)==null?void 0:G.imageScrimColorValues;_.Eo(this.hostElement).querySelector("#scrim").style.backgroundColor=b?_.so(b[0]):"transparent"};
Zx.prototype.imageScrimColorValuesChanged_=Zx.prototype.imageScrimColorValuesChanged_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Zx.prototype,"data",void 0);
_.R([_.q5("data.imageScrimColorValues"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zx.prototype,"imageScrimColorValuesChanged_",null);_.R([_.g8({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Zx);
_.J(Zx,"yt-subscription-product-upsell-offer-renderer",function(){if(c5g===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;D8I===void 0&&(D8I=document.createElement("template"));var h=D8I;I.call(b,h.content.cloneNode(!0),G.content.firstChild);c5g=G}G=c5g;return G},{mode:2});var kAd;var vbz;var LOo;var Qna;var x8M;var fe7;var tR=function(){return _.a.apply(this,arguments)||this};
_.M(tR,_.a);tR.prototype.onYtServiceRequestError_=function(G){_.yX(this.hostElement,G.detail.error.message)};
tR.prototype.onYtServiceRequestError_=tR.prototype.onYtServiceRequestError_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],tR.prototype,"data",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],tR.prototype,"collapsible",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],tR.prototype,"isManageRed",void 0);
_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],tR.prototype,"onYtServiceRequestError_",null);_.R([_.g8({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],tR);
_.J(tR,"yt-single-ypc-offer-renderer",function(){if(fe7===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;x8M===void 0&&(x8M=document.createElement("template"));var h=x8M;I.call(b,h.content.cloneNode(!0),G.content.firstChild);fe7=G}G=fe7;return G},{mode:2});var zu=function(){return _.a.apply(this,arguments)||this};
_.M(zu,_.a);zu.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],zu.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],zu.prototype,"isManageRed",void 0);_.R([_.g8({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],zu);
_.J(zu,"yt-single-ypc-offer-list-renderer",function(){if(Qna===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;LOo===void 0&&(LOo=document.createElement("template"));var h=LOo;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Qna=G}G=Qna;return G},{mode:2});var Tzd;var Bzz;_.QO("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var oi=function(){return _.a.apply(this,arguments)||this};
_.M(oi,_.a);oi.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],oi.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],oi.prototype,"isManageRed",void 0);_.R([_.g8({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],oi);
_.J(oi,"yt-ypc-offers-list-renderer",function(){if(Bzz===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;Tzd===void 0&&(Tzd=document.createElement("template"));var h=Tzd;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Bzz=G}G=Bzz;return G},{mode:2});_.QO("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var iq=function(){return _.a.apply(this,arguments)||this};
_.M(iq,_.a);
iq.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],iq.prototype,"data",void 0);_.R([_.g8({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],iq);
_.J(iq,"yt-unlimited-manage-subscription-page-renderer",function(){if(vbz===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;kAd===void 0&&(kAd=document.createElement("template"));var h=kAd;I.call(b,h.content.cloneNode(!0),G.content.firstChild);vbz=G}G=vbz;return G},{mode:2});var U8g;var snI;var Px=function(){return _.a.apply(this,arguments)||this};
_.M(Px,_.a);_.m=Px.prototype;_.m.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.m.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.m.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.m.onKeypress_=function(G){G.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.m.handleHeaderTap_=function(G){G.preventDefault();G.stopPropagation();this.expandOffers_()};
_.m.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.m.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Px.prototype.dataChanged_=Px.prototype.dataChanged_;_.R([_.z(_.PO),_.n("design:type",Object)],Px.prototype,"ironA11yKeysBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Px.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Px.prototype,"offersVisible_",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Px.prototype,"dataChanged_",null);_.R([_.g8({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Px);
_.J(Px,"yt-collapsible-ypc-offer-renderer",function(){if(snI===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;U8g===void 0&&(U8g=document.createElement("template"));var h=U8g;I.call(b,h.content.cloneNode(!0),G.content.firstChild);snI=G}G=snI;return G},{mode:2});var gbo;var A5l;_.QO("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var dl=function(){return _.a.apply(this,arguments)||this};
_.M(dl,_.a);_.m=dl.prototype;_.m.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.m.dataChanged_=function(){if(this.data.backgroundImage){var G=_.KG(this.data.backgroundImage.thumbnails,screen.width),b=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=b?"linear-gradient(180deg, "+b+"), url("+G+")":"url("+G+")";this.data.gtmId&&_.WQ(this.data.gtmId,_.wy("GL",""))}};
_.m.onYtServiceRequestError_=function(G){_.yX(this.hostElement,G.detail.error.message)};
_.m.getScrimLayerColorStops_=function(){var G,b,I=(G=this.data.unlimitedHeaderV2Data)==null?void 0:(b=G.unlimitedHeaderV2Data)==null?void 0:b.scrimLayerColors;if(!I)return null;var h=100/I.length;return I.map(function(q,l){l*=h;return _.so(q)+" "+l+"%"}).join(",")};
_.m.computeLogoWithPadding=function(G){var b,I,h;return(G=(b=G.unlimitedLogoImage)==null?void 0:(I=b.thumbnails)==null?void 0:(h=I[0])==null?void 0:h.height)&&G%31===0?!0:!1};
dl.prototype.onYtServiceRequestError_=dl.prototype.onYtServiceRequestError_;dl.prototype.dataChanged_=dl.prototype.dataChanged_;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.R([_.H({computed:"computeLogoWithPadding(data)"}),_.n("design:type",Boolean)],dl.prototype,"logoWithPadding",void 0);
_.R([_.H(),_.n("design:type",Object)],dl.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dl.prototype,"dataChanged_",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],dl.prototype,"onYtServiceRequestError_",null);_.R([_.g8({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],dl);
_.J(dl,"yt-unlimited-page-header-renderer",function(){if(A5l===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;gbo===void 0&&(gbo=document.createElement("template"));var h=gbo;I.call(b,h.content.cloneNode(!0),G.content.firstChild);A5l=G}G=A5l;return G},{mode:2});var MBv;var ZQA;_.QO("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var yD=function(){return _.a.apply(this,arguments)||this};
_.M(yD,_.a);yD.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],yD.prototype,"data",void 0);_.R([_.g8({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],yD);
_.J(yD,"yt-unlimited-user-notification-renderer",function(){if(ZQA===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;MBv===void 0&&(MBv=document.createElement("template"));var h=MBv;I.call(b,h.content.cloneNode(!0),G.content.firstChild);ZQA=G}G=ZQA;return G},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.FNF=function(G,b){if(_.U("web_enable_chat_autoscroll_to_user_turn")&&G&&b)return G-4+"px"};_.Hnj=_.C(function(G){var b=_.N5(G,{numberOfChips:5}).numberOfChips;return _.v("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.v(_.aj,{each:function(){return Array(b==null?void 0:b())}},function(){return _.v("div",{class:"ytGhostChipShelfChip"})}))},"Zi");_.WN8=_.C(function(G){var b=function(){var V;return((V=G.data)==null?void 0:V.call(G).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},I=_.IZ(),h=_.LL().resolve(_.yB);
_.JC(function(){requestAnimationFrame(function(){var V;(V=I.lottieEl)==null||V.addEventListener("DOMLoaded",function(){var D;(D=G.onLottieLoaded)==null||D.call(G)})})});
var q=function(){var V;return(V=G.data)==null?void 0:V.call(G).loadingAnimationA11yLabel},l={};
return _.v("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var V;return((V=G.data)==null?void 0:V.call(G).targetId)||""},
"aria-label":function(){return q()||""},
role:function(){return q()?"progressbar":void 0},
style:_.Ir({"min-height":function(){var V,D;return _.FNF((V=G.containerHeight)==null?void 0:V.call(G),(D=G.isLastItem)==null?void 0:D.call(G))}})},_.v(_.zV,{"aria-hidden":"true",
className:_.pG((l.ytChatLoadingViewModelRtl=h==="rtl",l)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:b()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||b()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:b()}}},
animationRef:I}))},"aj");
}catch(e){_._DumpException(e)}
try{
var H8j,Wtj,a83,Yzf,Cxe,JUe,KtF,up3,RxK,nG9,$hW,YC,Xw8,ww9,Sze,pw5,EG5,O8e,Gbc,bJK,I1c,hDY,CB,qiF,jLK,eDa,KB,l13,nB,Jm,uw,mh1,Rt,VWF,DhF,cbL,kbD,vV3,LHj,xha,f19,T2j,B2K,UhK,sLa,gVW,Ab9,MW1,ZJf,zDL,oV3,iJ5,dhL,rbf,HJL,WH9,a18,N29,C41,JbF,KH9,uIW,RDK,nVj,OJ3,EVa,$iF,Xh9,phD,Gge,SiW,bvK,j3j,q3L,IP3,h3K,wf,lP5,e3j,Vua,DiF,xie,fPe,TL1,BLL,Ui1,s3D,gcD,A_j,Mu5,tuY,z3D,oc8,ivY,PUc,di8,y_j,r_K,WLj,vc9;
_.at=function(G){var b=new _.Wf("Error accessing DB");return _.ssO().then(function(I){return new Promise(function(h,q){try{var l=I.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(G);l.onsuccess=function(){var V=l.result;h(V?V.value:null)};
l.onerror=function(){b.params={key:G,source:"onerror"};q(b)}}catch(V){b.params={key:G,
thrownError:String(V)},q(b)}})},function(){return null})};
H8j=function(G,b){return _.Gi(G.entities,"inlineExpansionEntity",b)};
Wtj=function(G,b){return _.Gi(G.entities,"flowStateEntity",b)};
a83=function(G,b){if(G&&b){var I=_.mA();I().set(G,b);_.Qyv(I())}};
_.Naa=function(G,b){if(G&&b){var I=_.mA();I().set(G,b);_.Qyv(I())}};
Yzf=function(G,b){return _.Gi(G.entities,"contextNoteUserRatingEntityPayload",b)};
Cxe=function(G){return _.FO(G,function(b){return b.languageCode==="en"})};
JUe=function(G){var b=NN;if(_.gGj(G))G.setOption("captions","stickyLoading",{}),G.setOption("captions","track",{});else{var I=_.FO(_.iIO(G),function(h){return h.displayName===b});
G.setOption("captions","track",I)}};
KtF=function(G){if(!G)return 0;var b=G.getPresentingPlayerType(),I=G.getVideoData();return I&&I.isLive?(G=G.getProgressState(b),G.seekableEnd-G.seekableStart):G.getDuration(b)};
up3=function(G,b){for(var I=_.e(Object.keys(G)),h=I.next();!h.done;h=I.next())if(h=h.value,G[h]!==b[h])return!1;return!0};
RxK=function(){return document.getElementById("player-control-overlay")};
nG9=function(G){G!==-1&&!_.U("player_controls_log_creation_killswitch")&&RxK()&&(_.sS("pcu_cs",G),_.sS("pcu_ce"))};
$hW=function(G,b){var I=_.a9(G,{}),h=O8e("top",b),q=O8e("bottom",b),l=O8e("left",b),V=O8e("right",b);return _.Ir({top:function(){return YC(I().position,h)},
bottom:function(){return YC(I().position,q)},
left:function(){return YC(I().position,l)},
right:function(){return YC(I().position,V)},
position:function(){return YC(I().positionType,ww9)},
height:function(){return YC(I().height,CB)},
width:function(){return YC(I().width,CB)},
"min-width":function(){return YC(I().minWidth,CB)},
"min-height":function(){return YC(I().minHeight,CB)},
"max-width":function(){return YC(I().maxWidth,CB)},
"max-height":function(){return YC(I().maxHeight,CB)},
"aspect-ratio":function(){return YC(I().aspectRatio,String)},
"margin-top":function(){return YC(I().margin,h)},
"margin-bottom":function(){return YC(I().margin,q)},
"margin-left":function(){return YC(I().margin,l)},
"margin-right":function(){return YC(I().margin,V)},
"padding-top":function(){return YC(I().padding,h)},
"padding-bottom":function(){return YC(I().padding,q)},
"padding-left":function(){return YC(I().padding,l)},
"padding-right":function(){return YC(I().padding,V)},
"flex-direction":function(){return YC(I().flexDirection,EG5)},
"justify-content":function(){return YC(I().justifyContent,pw5)},
"align-items":function(){return YC(I().alignItems,Sze)},
"flex-grow":function(){return YC(I().flexGrow,String)},
"flex-shrink":function(){return YC(I().flexShrink,String)},
"flex-basis":function(){return YC(I().flexBasis,CB)},
"align-self":function(){return YC(I().alignSelf,Sze)},
"flex-wrap":function(){return YC(I().flexWrap,Xw8)},
"align-content":function(){return YC(I().alignContent,Sze)}})};
YC=function(G,b){return G!==void 0?b(G):void 0};
Xw8=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"}};
ww9=function(G){switch(G){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Sze=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"}};
pw5=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"}};
EG5=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"}};
O8e=function(G,b){var I=b==="rtl";switch(G){case "top":var h=Gbc;break;case "bottom":h=bJK;break;case "left":h=I1c;break;default:h=hDY}return function(q){return YC(h(q,I),CB)}};
Gbc=function(G){var b=G.top;var I=G.vertical;G=G.all;var h;return(h=b!=null?b:I)!=null?h:G};
bJK=function(G){var b=G.bottom;var I=G.vertical;G=G.all;var h;return(h=b!=null?b:I)!=null?h:G};
I1c=function(G,b){var I=G.left;var h=G.end;var q=G.start;var l=G.horizontal;G=G.all;var V,D;return(D=(V=I!=null?I:b?h:q)!=null?V:l)!=null?D:G};
hDY=function(G,b){var I=G.right;var h=G.end;var q=G.start;var l=G.horizontal;G=G.all;var V,D;return(D=(V=I!=null?I:b?q:h)!=null?V:l)!=null?D:G};
CB=function(G){var b=G.value;switch(G.unit){case "YPC_DIMENSION_UNIT_POINT":return b+"px";case "YPC_DIMENSION_UNIT_FRACTION":return b+"%";default:return""+b}};
qiF=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"}};
jLK=function(G){var b=G!=null?G:{};G=b.fontRole;var I=b.fontSize;b=b.fontWeight;if(G!==null&&I!==null)switch(G){case "YPC_FONT_ROLE_DISPLAY":switch(I){case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(I){case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return b===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(I){case "YPC_FONT_SIZE_XL":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
eDa=function(G,b,I){function h(f){return Object.values(f).map(function(T){var B=T.productId;T=T.pricingOptionIndex;return Jm(q(B).pricingOptions,T).pricingOptionId})}
function q(f){return k().get(f)}
function l(f){f=h(f);I(f)}
function V(f,T){return Array.from(KB(f.pricingOptions)).filter(function(B){B=_.e(B);B.next();B=B.next().value;return uw(B.pricingGroupAttributes,T)}).map(function(B){return _.e(B).next().value})}
var D=Rt([G,b],function(f,T){var B=f==null?void 0:f.selectedPricingOptions;f={};var A=!0;if(B&&T.length)for(var t=_.e(T),y=t.next();!y.done;y=t.next()){y=y.value;var F=l13(y.pricingOptions,function(K){a:{K=K.pricingOptionId;for(var u=_.e(B),w=u.next();!w.done;w=u.next())if(w.value===K){K=!0;break a}K=!1}return K});
if(F>=0){A=!1;var W=Jm(y.pricingOptions,F),O=void 0;f[y.groupId]={productId:y.productId,pricingOptionIndex:F,pricingGroupAttributes:(O=W)==null?void 0:O.pricingGroupAttributes}}}A&&T.length&&(A=Jm(T[0].pricingOptions,0),f[T[0].groupId]={productId:T[0].productId,pricingOptionIndex:0,pricingGroupAttributes:A==null?void 0:A.pricingGroupAttributes});return f}),k=Rt([b],function(f){return new Map(f.map(function(T){return[T.productId,
T]}))}),L=Rt([b],function(f){var T=new Map;
f=_.e(f);for(var B=f.next();!B.done;B=f.next()){var A=B.value;B=A.groupId;var t=A.productId;A=_.e(KB(A.pricingOptions));for(var y=A.next();!y.done;y=A.next()){var F=_.e(y.value);y=F.next().value;F=F.next().value;T.set(F.pricingOptionId,{groupId:B,productId:t,index:y,pricingOption:F,pricingGroupAttributes:F.pricingGroupAttributes})}}return T}),x=Rt([b],function(f){var T=new Map;
f=_.e(f);for(var B=f.next();!B.done;B=f.next()){var A=B.value;B=A.groupId;var t=A.productId,y=void 0;A=_.e(KB((y=A.pricingGroups)!=null?y:[]));for(y=A.next();!y.done;y=A.next()){var F=_.e(y.value);y=F.next().value;F=F.next().value;T.set(F.pricingGroupId,{groupId:B,productId:t,index:y,pricingGroup:F,pricingGroupAttributes:F.pricingGroupAttributes})}}return T});
return{getProductById:q,isProductSelected:function(f){var T=q(f);if(!T)return!1;var B;return((B=D()[T.groupId])==null?void 0:B.productId)===f},
getSelectedPricingOptions:function(){return Object.values(D()).map(function(f){var T=f.productId;f=f.pricingOptionIndex;return Jm(q(T).pricingOptions,f)})},
getSelectedPricingGroupAttributesByGroupId:function(f){var T;return(f=(T=D()[f])==null?void 0:T.pricingGroupAttributes)?Array.from(f):void 0},
getSelectedProductByGroupId:function(f){var T;return(f=(T=D()[f])==null?void 0:T.productId)?q(f):void 0},
onProductSelected:function(f){var T=q(f);if(T){var B=D(),A;if(((A=B[T.groupId])==null?void 0:A.productId)!==f){var t=(A=(t=B[T.groupId])==null?void 0:t.productId)?q(A):void 0;var y;A=(y=B[T.groupId])==null?void 0:y.pricingGroupAttributes;var F;y=(F=B[T.groupId])==null?void 0:F.pricingOptionIndex;if(t&&y!==void 0)if(A){F=V(t,A).indexOf(y);if(F===-1)throw Error("Yj`"+y+"`"+t.productId);y=V(T,A);F=F<y.length?y[F]:y.length>0?y[0]:0}else F=y<nB(T.pricingOptions)?y:0;else F=0;nB(T.pricingOptions)<=F&&(F=
0);y=Jm(T.pricingOptions,F);var W;t={};l(Object.assign({},B,(t[T.groupId]={productId:f,pricingOptionIndex:F,pricingGroupAttributes:(W=y==null?void 0:y.pricingGroupAttributes)!=null?W:[]},t)))}}},
onPricingOptionSelected:function(f){var T=L().get(f);if(T){f=T.groupId;var B=T.productId;T=T.index;var A=D(),t,y;if(((t=A[f])==null?void 0:t.productId)!==B||((y=A[f])==null?void 0:y.pricingOptionIndex)!==T){var F,W;t={};l(Object.assign({},A,(t[f]={productId:B,pricingOptionIndex:T,pricingGroupAttributes:(W=(F=A[f])==null?void 0:F.pricingGroupAttributes)!=null?W:[]},t)))}}},
onPricingGroupSelected:function(f){var T=x().get(f);if(T){f=T.groupId;var B=T.productId,A=T.pricingGroup.pricingGroupAttributes,t=q(B);if(t){T=D();var y=T[f].pricingGroupAttributes,F;if(((F=T[f])==null?void 0:F.productId)!==B||!uw(mh1(y,nB(A)),A)){F=Array.from(A);for(A=nB(A);A<nB(y);A++){var W="",O=!1,K=Array.from(F);K.push(Jm(y,A));for(var u=_.e(t.pricingGroups),w=u.next();!w.done;w=u.next())if(w=w.value,uw(w.pricingGroupAttributes,K)){F.push(Jm(y,A));O=!0;break}else W===""&&nB(w.pricingGroupAttributes)===
K.length&&uw(mh1(w.pricingGroupAttributes,F.length),F)&&(W=Jm(w.pricingGroupAttributes,A));O||F.push(W)}W=T[f].pricingOptionIndex;A=[];O=new Map;K=0;t=_.e(KB(t.pricingOptions));for(u=t.next();!u.done;u=t.next())w=_.e(u.value),u=w.next().value,w=w.next().value,uw(w.pricingGroupAttributes,F)&&A.push(u),uw(w.pricingGroupAttributes,y)&&O.set(u,K++);A.length===0?y=0:(y=O.get(W),y=y!==void 0&&y<A.length?A[y]:A[0]);t={};l(Object.assign({},T,(t[f]={productId:B,pricingOptionIndex:y,pricingGroupAttributes:F},
t)))}}}},
onClearGroupSelected:function(f){var T=D();T[f]&&(T=Object.fromEntries(Object.entries(T).filter(function(B){return _.e(B).next().value!==f})),l(T))}}};
KB=function(G){return function I(){var h,q,l,V,D;return _.$x(I,function(k){switch(k.nextAddress){case 1:_.ZJ(k,2),h=0,q=_.e(G),l=q.next();case 4:if(l.done){k.jumpTo(2);break}V=l.value;D=_.GO;return k.yield([h++,V],7);case 7:D(k.yieldResult);l=q.next();k.jumpTo(4);break;case 2:_.Mz(k),_.tj(k,0)}})}()};
l13=function(G,b){G=_.e(KB(G));for(var I=G.next();!I.done;I=G.next()){var h=_.e(I.value);I=h.next().value;h=h.next().value;if(b(h))return I}return-1};
nB=function(G){var b=0;for(G=G[Symbol.iterator]();!G.next().done;)++b;return b};
Jm=function(G,b){G=_.e(KB(G));for(var I=G.next();!I.done;I=G.next()){var h=_.e(I.value);I=h.next().value;h=h.next().value;if(I===b)return h}};
uw=function(G,b){if(!G&&!b)return!0;if(!G||!b)return!1;G=Array.from(G);b=Array.from(b);if(G.length!==b.length)return!1;for(var I=0;I<G.length;I++)if(G[I]!==b[I])return!1;return!0};
mh1=function(G,b){b=b===void 0?Infinity:b;var I=[];G=_.e(KB(G));for(var h=G.next();!h.done;h=G.next()){var q=_.e(h.value);h=q.next().value;q=q.next().value;if(h>=b)break;h>=0&&I.push(q)}return I};
Rt=function(G,b){var I,h;return function(){for(var q=G.map(function(V){return V()}),l=0;l<q.length;l++)if(!I||q[l]!==I[l]){I=q;
h=b.apply(null,_.Nz(q));break}return h}};
VWF=function(G,b,I){var h=[];G=_.e(G);for(var q=G.next();!q.done;q=G.next()){q=q.value;var l=void 0;((l=b)==null?0:l.length)&&!uw(q.pricingGroupAttributes,b)||h.push({pricingOption:q,isSelected:I.includes(q.pricingOptionId)})}return h};
DhF=function(G,b){return _.Gi(G.entities,"pdpStateEntity",b)};
cbL=function(G){var b,I;return!!(G.productId&&G.groupId&&((b=G.pricingOptions)==null?0:b.length)&&G.pricingOptions.every(function(h){return h.pricingOptionId})&&((I=G.pricingGroups)==null||!I.length||Array.isArray(G.pricingGroups)&&G.pricingGroups.every(function(h){return h.pricingGroupId&&h.pricingGroupAttributes&&h.pricingGroupAttributes.length>0})))};
kbD=function(G,b,I){return eDa(G,Rt([b],function(h){return h.filter(cbL)}),I)};
vV3=function(G,b){return b.length===0?[G]:[G.slice(0,b[0]),G.slice(b[0])].filter(function(I){return I.length>0})};
LHj=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""}};
xha=function(G,b,I,h){h=Object.assign({},h);_.xQ(h,QLc,{selectedOptionId:G,primaryButtonOverride:I});_.H5().dispatch(_.Da("flowStateEntity",b,h))};
f19=function(G,b,I){!_.g(I,QLc)&&G.noPreselect&&b!==""&&G.defaultButtonOverride&&xha("default",b,G.defaultButtonOverride,I)};
T2j=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"}};
B2K=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"}};
UhK=function(G,b){if(b)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"}};
sLa=function(G,b){b.includes(G)?b=b.filter(function(I){return I!==G}):b.push(G);
return[].concat(_.Nz(b))};
gVW=function(G,b){return _.Gi(G.entities,"contextNoteFeedEntityPayload",b)};
Ab9=function(G,b){switch(G){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return b==null?void 0:b.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return b==null?void 0:b.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return b==null?void 0:b.ratingNotHelpfulText}};
MW1=function(G,b,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:b}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:G.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
ZJf=function(G,b,I){var h;if(G&&((h=b())==null?0:h.includes(G))){var q;I((q=b())==null?void 0:q.filter(function(l){return l!==G}))}else I([].concat(_.Nz(b()||[]),[G]))};
zDL=function(G,b){if(G){var I=[];b=_.e((b==null?void 0:b.checkboxes)||[]);for(var h=b.next();!h.done;h=b.next()){h=_.g(h.value,tW1);var q=void 0;((q=h)==null?0:q.value)&&G.includes(h.key||"")&&I.push(h.value)}return I}};
oV3=function(G){G.style.height="auto";G.style.height=G.scrollHeight+"px"};
iJ5=function(G){return[G.syncStep,G.asyncStep].filter(function(b){return b!==void 0})};
dhL=function(G){var b,I,h;if(G=(b=G.structuredContextNoteFormSchema)==null?void 0:(I=b.fieldSchemas)==null?void 0:(h=I.noteBody)==null?void 0:h.validationSchema)for(b=_.e(iJ5(G)),I=b.next();!I.done;I=b.next()){I=I.value.rules;if(!I)break;I=_.e(I);for(I=I.next();!I.done;I=I.next())return _.g(I.value,_.P4e)}};
rbf=function(G){if(G){G=_.e(iJ5(G));for(var b=G.next();!b.done;b=G.next()){b=b.value.rules;if(!b)break;b=_.e(b);for(b=b.next();!b.done;b=b.next())return _.g(b.value,yb1)}}};
HJL=function(G){if(G){G=_.e(iJ5(G));for(var b=G.next();!b.done;b=G.next()){b=b.value.rules;if(!b)break;b=_.e(b);for(b=b.next();!b.done;b=b.next())return _.g(b.value,FH1)}}};
WH9=function(G){G=/^https?:\/\//.test(G)?G:"http://"+G;try{var b=_.Gt(G)}catch(I){return!1}if(b.toString()!==G)return!1;G=b.JSC$10105_domain_.split(".");return G.length>1&&G.every(function(I){return!!I})};
a18=function(G,b,I,h){var q;h=(q=h.structuredContextNoteData)==null?void 0:q.createCommentEndpoint;if(q=_.g(h,_.okb))return q.commentText=_.ao(G),q.videoPositionMention=b,q.sources=I,h};
N29=function(G){return G==null?void 0:G.stringValue};
C41=function(G,b,I){G=G.map(function(h,q){return{listItemViewModel:{title:h.title,subtitle:h.subtitle,leadingImage:h.leadingImage,trailingImage:q===b?YiK:void 0,rendererContext:{commandContext:{onTap:h.onTap}}}}});
return Object.assign({},I&&{header:{panelHeaderViewModel:{title:I}}},{content:{listViewModel:{listItems:G}}})};
JbF=function(G,b){if(G&&b)switch(b){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}};
KH9=function(G){var b;G=(b=G.options)==null?void 0:b.findIndex(function(I){return I.isSelected});
return G===void 0?-1:G};
uIW=function(G,b,I){var h=function(){return G().label},q={},l=_.pG("ytDropdownViewModelLabel",(q.ytDropdownViewModelLabelError=b,q));
return _.v(_.Q,{cond:function(){return G().label&&!(I()===-1&&G().label&&!G().placeholderText)},
then:function(){return _.v("div",{class:l},_.v(_.IS,{text:h}))}})};
RDK=function(G,b){var I={};I=_.pG("ytDropdownViewModelTitle",(I.ytDropdownViewModelTitlePlaceholder=function(){return b()===-1},I));
return _.v("div",{class:I},_.v(_.IS,{text:function(){var h=G();var q=b();if(q===-1)h=h.placeholderText?h.placeholderText:h.label;else{var l,V;h=(l=h.options)==null?void 0:(V=l[q])==null?void 0:V.title}return h}}))};
nVj=function(G,b){var I=function(){return G().hint};
return _.v(_.xz,null,_.v(_.Q,{cond:function(){return I()&&!b()},
then:function(){return _.v("div",{class:_.pG("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.v(_.IS,{text:I,className:"ytDropdownViewModelSupportText"}))}}),_.v(_.Q,{cond:b,
then:function(){return _.v("div",{id:"dropdown-view-model-error",role:"alert",class:_.pG("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.v(_.ha,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.v(_.IS,{text:b,className:"ytDropdownViewModelSupportText"}))}}))};
OJ3=function(G,b){var I=_.LL().resolve(_.Qka);_.K3(function(){var h=G().id;h&&I!=null&&I.dropdownMap.set(h,b)})};
EVa=function(G){G=_.g(G.scheduleButton,wh8);G=_.g(G==null?void 0:G.primaryButton,_.j6);G=_.g(G==null?void 0:G.onTap,_.U0);var b,I,h=((I=_.g(G,_.$P))==null?void 0:I.commands)||[G];I=_.e(h);for(G=I.next();!G.done&&!(b=_.g(G.value,_.z4u));G=I.next());var q;b=(q=b)==null?void 0:q.createBroadcastRequest;if(!b)throw Error("ek");return b};
$iF=function(G,b,I){I=I===void 0?{}:I;var h,q;return _.c(function(l){if(h=phD(b))return l.return(h);(q=SiW(G,b,I))&&Xh9(b,q);return l.return(q)})};
Xh9=function(G,b){var I=Gge(G);I&&b.then(function(h){_.LL().resolve(_.MM).put(I,new _.ZF({innertubeResponse:h}))})};
phD=function(G){if(G=Gge(G)){var b=_.LL().resolve(_.MM);if(b.has(G))return b.get(G).then(function(I){return I==null?void 0:_.uP(I)})}return null};
Gge=function(G){var b=_.g(G.endpoint,_.Wq);if(b!=null&&b.videoId)return b={videoId:b.videoId},_.U("web_imp_player_mute_params")&&(b.mutedAtStart=G.startPlaybackInMutedState),_.Hq("inline_playback",b)};
SiW=function(G,b,I){G=_.dR(G,b.endpoint,bvK(b,I)).then(function(h){return h});
return Promise.resolve(G)};
bvK=function(G,b){b=_.U("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!G.startPlaybackInMutedState},b):Object.assign({},{vis:5,autonav:"1"},b);var I;b={contentPlaybackContext:_.pc(b,(I=_.g(G.endpoint.commandMetadata,_.IW))==null?void 0:I.url,window.location.href)};_.U("web_imp_player_mute_params")&&(b.overrideMutedAtStart=!G.startPlaybackInMutedState);return b};
j3j=function(G,b){var I=window.MutationObserver;I&&(O7=new I(function(h,q){h=_.e(h);for(var l=h.next();!l.done;l=h.next()){l=l.value;var V;if(V=l.type==="childList"&&l.target)a:{V=G;l=IP3(l.target);V=IP3(V);for(var D=null,k=0;k<l.length;k++)if(V.includes(l[k])){if(k===0){V=!1;break a}D=l[k];break}D?(l=h3K(l,D),V=h3K(V,D),V=l<V):V=!1}if(V){b();q.disconnect();break}}}),(I=q3L())&&O7.observe(I,{childList:!0,
subtree:!0}))};
q3L=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};
IP3=function(G){for(var b=[];G;)b.push(G),G=G.parentElement;return b};
h3K=function(G,b){var I=Array.from(b.children);b=G.indexOf(b);return b>0?I.indexOf(G[b-1]):-1};
wf=function(G,b,I){I=I===void 0?{}:I;return _.qP(G,I,b)};
lP5=function(G){switch(G){case "MUSIC":return!0;default:return!1}};
e3j=function(G){if(G=G==null?void 0:G.find(function(h){var q,l;return((q=_.g(h,miY))==null?void 0:(l=q.inlinePlaybackBadgeData)==null?void 0:l.replicateAsTimestamp)===!0}))if(G=_.g(G,miY),G==null?0:G.icon){var b,I;
if((G=(b=_.mUj(G.icon))==null?void 0:(I=b.clientResource)==null?void 0:I.imageName)&&lP5(G))return G}};
Vua=function(G){return G==null?void 0:G.filter(function(b){return b.premiereTrailerBadgeRenderer})};
DiF=function(G){var b,I=G==null?void 0:(b=G.find(function(k){return k.thumbnailOverlayTimeStatusRenderer}))==null?void 0:b.thumbnailOverlayTimeStatusRenderer,h,q;
if((I==null?0:(h=I.icon)==null?0:h.iconType)&&lP5(I==null?void 0:(q=I.icon)==null?void 0:q.iconType)){var l;return{icon:I==null?void 0:(l=I.icon)==null?void 0:l.iconType}}var V;if(b=G==null?void 0:(V=G.find(function(k){return k.thumbnailOverlayBadgeViewModel}))==null?void 0:V.thumbnailOverlayBadgeViewModel)if(V=e3j(b.thumbnailBadges))return{icon:V};
var D;if(G=G==null?void 0:(D=G.find(function(k){return k.thumbnailBottomOverlayViewModel}))==null?void 0:D.thumbnailBottomOverlayViewModel)if(D=e3j(G.badges))return{icon:D};
return{}};
xie=function(G,b){var I=c_L,h=_.e(_.ZZ(kga(new vc9(function(){},I,b)),void 0,"PAnyd")),q=h.next().value,l=h.next().value,V=new vc9(function(D){l(D)},I,b);
_.K0(function(){Promise.resolve().then(function(){var D,k=(D=G())!=null?D:{};V.playerControlsData=k;_.U("player_controls_skip_double_signal_old")&&(V.lastSeenPlayerApi=_.tk(k.playerApi));_.U("player_controls_skip_double_signal_old")||(V.lastSeenPlayerApi=_.tk(k.playerApi));LL3(V)});
_.uI(function(){Q3Y(V)})},"HikUP");
_.uI(function(){Q3Y(V)});
return function(){return q()}};
fPe=function(G){return function(b){var I=G(),h={playerState:b};if(b===1){var q;(q=I.playerApi)==null||q.loadModule("captions")}if(b===0){var l;(l=I.playerApi)==null||l.unloadModule("captions")}b!==-1&&I.setState(h)}};
TL1=function(G){return function(b){G().setState({playbackRate:b})}};
BLL=function(G){return function(b){var I=G(),h=I.playerApi,q=h==null?void 0:h.getVideoData(),l=(q==null?void 0:q.isLive)||!1;q=q==null?void 0:q.video_id;l={videoDuration:KtF(h||void 0),isLive:l,videoId:q};l.videoId!==I.videoId&&(l=Object.assign({},_.F_v(h),l));if(b==null?0:b.playertype)l.playerType=b.playertype;if(h){l.captionsAvailable=_.P9(h);b=l;var V;q=(V=h.getStoryboardLevel(h.getNumberOfStoryboardLevels()-1))==null?void 0:V.intervalMs;b.storyboardInterval=q?q/1E3:void 0;l.captionsAvailable&&
(l.captionsEnabled=_.gGj(h))}l.volumeMuted=!(h==null||!h.isMuted());I.setState(l)}};
Ui1=function(G){return function(b){var I=G(),h=I.playerApi;if(h){var q=h.getPresentingPlayerType();b={playedTime:b||0,percentLoaded:h.getVideoLoadedFraction(),playerType:q};I.playerState===0&&(b.playedTime=I.videoDuration);I.isLive&&(q=h.getProgressState(q),b.playedTime-=q.seekableStart,b.videoDuration=KtF(h));if(I.playerType===1)h=!1;else{var l;if((l=I.uxConfig)==null?0:l.showCuedOverlay){var V;h=!((V=I.playerApi)==null?0:V.getPlayerStateObject(I.playerType).isDomPaused)}else h=!0}h&&delete b.playedTime;
I.setState(b)}}};
s3D=function(G){return function(){var b=G(),I,h,q,l={volume:(q=(I=b.playerApi)==null?void 0:I.getVolume())!=null?q:0,volumeMuted:!((h=b.playerApi)==null||!h.isMuted())};b.setState(l)}};
gcD=function(G){return function(){var b=G(),I=b.playerApi;if(I){var h={captionsAvailable:_.P9(I)};h.captionsAvailable&&(h.captionsEnabled=_.gGj(I));b.setState(h)}}};
A_j=function(G){return{appApi:Object.assign({},_.zHd(),{showCaptionsToggleToast:function(b){var I,h;(h=(I=G()).showCaptionsToggleToast)==null||h.call(I,b)},
openInMiniplayer:function(){var b,I;(I=(b=G()).openInMiniplayer)==null||I.call(b)}})}};
Mu5=function(G,b){var I,h,q;return!!(G==null?0:(I=G.playerResponse)==null?0:(h=I.playerConfig)==null?0:(q=h.inlinePlaybackConfig)==null?0:q.showScrubbingControls)&&!(b==null?0:b.hideScrubbingControls)};
_.ZvW=function(G){var b=!G.miniplayerIsActive;return[5,2,0].includes(G.miniplayerPlaybackState)||b};
tuY={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};z3D=function(G){this.onStepChangeCallback=function(){};
this.flowRenderer=G};
z3D.prototype.getCurrentStep=function(){var G=this,b;return((b=this.flowRenderer.steps)!=null?b:[]).map(function(I){return _.g(I,_.Yf)}).find(function(I){return I&&I.stepId===G.currentStepId})};
oc8=function(G,b){var I=b.flowStateEntityKey,h=G.flowStates.get(I);if(h)return h;b=new z3D(b);G.flowStates.set(I,b);return b};
ivY=function(G,b){for(var I=_.e(G.flowStates.entries()),h=I.next();!h.done;h=I.next()){var q=_.e(h.value);h=q.next().value;q=q.next().value;if(q.flowRenderer.targetId===b){G.flowStates.delete(h);break}}};
PUc=function(G,b){G.onStepChangeCallback=b;G.onStepChangeCallback(G.getCurrentStep())};
di8=function(G,b){var I=G.getCurrentStep();if(!I||I.stepId!==b){var h;((h=G.flowRenderer.steps)!=null?h:[]).map(function(q){return _.g(q,_.Yf)}).find(function(q){return q&&q.stepId===b})&&(G.currentStepId=b,G.onStepChangeCallback(G.getCurrentStep()))}};
y_j=function(G,b){var I,h,q,l,V;_.c(function(D){if(!b.length)return D.return([]);I=[];h=_.e(b);for(q=h.next();!q.done;q=h.next())l=q.value,(V=G.resolveIcon(l))&&!G.iconCache[V.url]&&I.push(_.fpc(G,V).then(function(){}).catch(function(){}));
return D.return(Promise.all(I))})};
r_K=function(G,b){var I=[];b=(new Set(b)).values();b=_.e(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;for(var q=_.e(Object.values(tuY)),l=q.next();!l.done;l=q.next())I.push({iconName:h,iconStyle:l.value})}y_j(G.iconManager,I)};
_.FL8=function(G,b,I){var h=I!=null?I:G.iconsToFetch;h!=null&&h.length?b!==void 0&&b>=0?_.FQ(_.uu,function(){r_K(G,h)},b):r_K(G,h):Promise.resolve()};
_.HvY=_.cg(function(G,b,I){if(G.nextWireType_!==5)return!1;_.kI(b,I,_.dU(G.decoder_));return!0},function(G,b,I){b=_.U82(b);
b!=null&&(_.vg(G,I,5),_.LA(G.encoder_,b))},_.mfO);
WLj=[0,_.aR,_.HvY,-1];_.aPc=function(){return _.wK({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
vc9=function(G,b,I){var h=this;this.renderFn=G;this.listeners=b;this.context=I;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var q;this.lastSeenPlayerApi=_.tk((q=this.playerControlsData)==null?void 0:q.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.F_v(),void 0);_.U("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){kga(h).setState({playerState:-1});h.resetRecentlyNavigatedJobId&&_.uu.cancelJob(h.resetRecentlyNavigatedJobId);
h.recentlyNavigated=!0;h.resetRecentlyNavigatedJobId=_.uu.addJob(function(){h.recentlyNavigated=!1},8,1E4)})};
vc9.prototype.setState=function(G){if(!_.U("mweb_player_skip_no_op_state_changes")||!up3(G,this.state))if(this.state=Object.assign({},this.state,G),!_.U("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)G=-1,_.U("player_controls_log_creation_killswitch")||RxK()||(G=(0,_.Li)()),_.sS("pcu_s"),_.sS("pcu_se"),_.sS("pcu_rs"),this.renderFn(kga(this)),_.sS("pcu_re"),nG9(G),_.uu.addJob(function(){_.sS("pcu_ap")},8)};
var kga=function(G){var b;var I=_.tk((b=G.playerControlsData)==null?void 0:b.playerApi);return Object.assign({},G.state,{setState:G.boundSetState,domMeasurements:{progressBarLineRect:G.progressBarLineRect},playerApi:I,appApi:G.context.appApi,playerContainer:G.context.playerContainer,playerControlContainer:G.context.playerControlContainer,uxConfig:G.context.uxConfig})},LL3=function(G){G.listeners.forEach(function(b){G.eventListenerCleanupFunctions.push(b.register(function(){return kga(G)},function(){return G.getData()}))})},
Q3Y=function(G){G.eventListenerCleanupFunctions.forEach(function(b){b()});
G.eventListenerCleanupFunctions.length=0};
vc9.prototype.getData=function(){return this.playerControlsData};var NLD=[0,_.Xc,_.JJ,_.Xc,-1,_.JJ,[0,_.Kp,_.RR,-1],_.Xc,-1];var Y35=[0,[1,2,3],_.O5,-2];var CU3=[0,_.Xc];var J_3=new _.hu("crowdsourcedContextUserRatingFormFlowState");var KLL=new _.hu("noteViewModel");var E7=new _.hu("abuseReportFlowState");var u8a=new _.hu("feedbackFormFlowState");var R3a=new _.hu("inputBoxViewModel");_.P4e=new _.hu("lengthValidationRule");var yb1=new _.hu("regexValidationRule");var FH1=new _.hu("selectedValidationRule");var ncK=[0,_.RR,_.Xc,_.hK];var OvK=[0,_.JJ,-2,WLj];var wqF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(wqF,_.eo);wqF.prototype.getFeature=function(){return _.U5(this,6)};
wqF.prototype.hasFeature=function(){return _.Mf(_.mI(this,6))!=null};var Ece=[0,_.RR];var pqD=_.T7(wqF,[0,_.JJ,-2,WLj,_.JJ,_.RR,-1,_.YY,-1,_.RR,-3,_.t8J,_.Kp,OvK,_.RR,-1,NLD,_.YY,_.RR,ncK,[0,[0,_.RR,-2,2,_.RR,-1,[0,_.RR],[0,_.Xc,_.RR],[0,_.Xc],[0,_.RR],2,[0,_.Xc,2,[0,_.Xc,-1],[0,_.wU,Y35],1,[0,CU3],1,[0,_.RR]],[0,_.Kp],[0,[1,2],_.E5,[0,_.RR],_.E5,[0,_.RR,_.SR,-1]],[0,_.Xc],[0,_.RR,[0,[1,2,3,4],_.E5,[0,[0,_.RR],Ece],_.E5,[0,[0,_.RR],Ece],_.E5,[0,Ece],_.E5,[0,[0,_.RR],Ece]]],[0,_.RR],1,[0,_.RR,_.Xc],1,[0,_.RR],[0,_.Kp],[0,_.RR,_.Xc,-1,[0,_.RR,-4]],[0,_.RR],[0,_.RR,-2],1,[0,_.RR],[0,
_.Kp],[0,_.Kp,_.RR],1,[0,_.Kp],[0]],_.RR,_.Xc,_.aR,1,_.pp,_.RR,_.Xc],_.JJ,_.pp,_.Xc,-1,_.JJ]);var S3Y=new _.hu("talkToRecsViewModel");var Xq3=new _.hu("creatorGoalSetUpFlowDropdownItemViewModel");var $Pj=new _.hu("creatorGoalSetUpFlowDropdownViewModel");var miY=new _.hu("thumbnailBadgeViewModel");var GmK=new _.hu("checkboxGroupViewModel");var tW1=new _.hu("checkboxItemViewModel");_.pB=new _.hu("radioButtonGroupViewModel");var bU8=new _.hu("radioButtonItemViewModel");var wh8=new _.hu("panelFooterViewModel");var IEe=new _.hu("ypcCancelRecurrenceCommand");var hZj=new _.hu("cancellationFlowState");var QLc=new _.hu("premiumPurchaseFlowState");var qS1=new _.hu("surveyAnswerCardRenderer");var jW9=new _.hu("showMoreButtonRenderer");var lEa;var mP3,eZD=function(){if(mP3!==void 0)return mP3;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;lEa===void 0&&(lEa=document.createElement("template"));var h=lEa;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return mP3=G};var Sp=function(){var G=_.a.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};
_.M(Sp,_.a);_.m=Sp.prototype;_.m.getGoalDropdownItems=function(){var G,b;return(b=_.g((G=this.data)==null?void 0:G.purchaseTargetDropdown,$Pj))==null?void 0:b.dropdownItems};
_.m.getTimerDropdownItems=function(){var G,b;return(b=_.g((G=this.data)==null?void 0:G.timerDropdown,$Pj))==null?void 0:b.dropdownItems};
_.m.getColorDropdownItems=function(){var G,b;return(b=_.g((G=this.data)==null?void 0:G.colorDropdown,$Pj))==null?void 0:b.dropdownItems};
_.m.getDropdownItemText=function(G){var b;return(b=_.g(G,Xq3))==null?void 0:b.itemLabel};
_.m.getDropdownItemValue=function(G){G=_.g(G,Xq3);return(G==null?void 0:G.timeLimit)||(G==null?void 0:G.purchaseTarget)||(G==null?void 0:G.eligiblePurchaseType)};
_.m.updateFlowState=function(G){_.wL(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:G}])};
_.m.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.m.updateGoalValue=function(G){this.goal=G.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.m.onTextValueChanged=function(G){this.goalDescription=G.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.m.updateTimerValue=function(G){this.timer=G.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.m.updateTierValue=function(G){this.tier=G.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.m.getButtonViewModel=function(G){G=(G==null?void 0:G.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var b,I=_.g((b=this.data)==null?void 0:b.startGoalButton,_.j6);return Object.assign({},I,{state:G})};
_.kV.Object.defineProperties(Sp,{template:{configurable:!0,enumerable:!0,get:function(){return eZD()}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Sp.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Sp.prototype,"goal",void 0);_.R([_.H(),_.n("design:type",Object)],Sp.prototype,"goalDescription",void 0);_.R([_.H(),_.n("design:type",Object)],Sp.prototype,"timer",void 0);_.R([_.H(),_.n("design:type",Object)],Sp.prototype,"tier",void 0);
_.R([_.H(),_.n("design:type",Object)],Sp.prototype,"startButtonId",void 0);_.R([_.H(),_.n("design:type",Object)],Sp.prototype,"exampleButtonId",void 0);_.R([_.g8({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Sp);_.J(Sp,"yt-creator-goal-set-up-flow-view-model",function(){return eZD()},{mode:0});var VX3;var DPY;var cZ9;var kmK=function(){return _.a.apply(this,arguments)||this};
_.M(kmK,_.a);_.R([_.H(),_.n("design:type",Object)],kmK.prototype,"data",void 0);_.R([_.g8({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],kmK);
_.J(kmK,"yt-survey-answer-card-renderer",function(){if(cZ9===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;DPY===void 0&&(DPY=document.createElement("template"));var h=DPY;I.call(b,h.content.cloneNode(!0),G.content.firstChild);cZ9=G}G=cZ9;return G},{mode:2});var vPK;var L$3;var XL=function(){return _.a.apply(this,arguments)||this};
_.M(XL,_.a);_.m=XL.prototype;_.m.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.m.selectedItemChanged=function(G){_.wL(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[G.feedbackToken||""]}])};
_.m.surveyAnswerCardRendererClicked=function(G){if(G.target&&_.g(G.model.item,qS1)){var b=G.target;G=_.g(G.model.item,qS1);G.onTapCommand?_.Su(b,[G.onTapCommand],b):this.data.onTapCommand&&_.Su(b,[this.data.onTapCommand],b);this.selectedItemChanged(G)}};
_.m.checkIsCancellationStyle=function(G){return G==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.m.updateSelectedItemFromBinding=function(G){this.selectedItem=G.detail.value};
XL.prototype.onSelectedItemChanged=XL.prototype.onSelectedItemChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],XL.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],XL.prototype,"selectedItem",void 0);_.R([_.H({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.n("design:type",Boolean)],XL.prototype,"isCancellationStyle",void 0);
_.R([_.q5("selectedItem"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],XL.prototype,"onSelectedItemChanged",null);_.R([_.g8({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],XL);
_.J(XL,"yt-survey-flow-step-renderer",function(){if(L$3===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;vPK===void 0&&(vPK=document.createElement("template"));var h=vPK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);L$3=G}G=L$3;return G},{mode:2});var $5=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return G};
_.M($5,_.a);$5.prototype.handleSurveyFlowStepOptionChanged=function(G){this.ytdReduxBehavior.dispatch(_.wK({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:G}));_.wL(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:G}}])};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],$5.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],$5.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],$5.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],$5);
_.J($5,"ytd-survey-flow-step-renderer",function(){if(VX3!==void 0)return VX3;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VX3=G},{mode:1});_.TK1=_.C(function(G){var b=G.data;var I=G.hideDivider;var h=G.isChannelInfoCard;G={};return _.v("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.v("div",{class:_.pG("yt-profile-identity-info-view-model__frame",(G["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!b().channelBanner},G))},_.v(QWe,{profileIdentityInfoData:b}),_.v("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.v("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.v(_.VX,{data:function(){return b().avatar}},{avatarViewModel:_.Om})),_.v(xP3,{profileIdentityInfoData:b})),_.v(_.Q,{cond:function(){return b().channelDescription},
then:function(q){var l={};return _.v("div",{class:_.pG((l["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(h==null||!h())},l["yt-profile-identity-info-view-model__channel-description"]=function(){return!(h==null?0:h())},l))},q)}}),_.v(fE9,{profileIdentityInfoData:b}),_.v(_.Q,{cond:function(){return!(I==null?0:I())},
then:function(){return _.v("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"oh");
_.TK1.idomCompat=!0;var fE9=_.C(function(G){var b=G.profileIdentityInfoData;return _.v("div",{class:"yt-profile-identity-info-view-model__buttons"},_.v(_.aj,{each:function(){return b().subscribeButton?[b().subscribeButton,b().channelAccess]:[b().channelAccess]}},function(I){return _.v("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.v("div",{class:"yt-profile-identity-info-view-model--button"},_.v(_.VX,{data:function(){return I}},{buttonViewModel:_.sQ,
subscribeButtonViewModel:_.OT})))}))},"ph"),xP3=_.C(function(G){var b=G.profileIdentityInfoData;
return _.v("div",{class:"yt-profile-identity-info-view-model__trio"},_.v("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.v(BK5,{profileIdentityInfoData:b}),_.v(_.VX,{data:function(){return b().threeDotMenu}},{buttonViewModel:_.sQ})),_.v(UPL,{profileIdentityInfoData:b}))},"qh"),BK5=_.C(function(G){var b=G.profileIdentityInfoData;
return _.v("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.v("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return b().channelDisplayName}),_.v(_.Q,{cond:function(){return b().verifiedOrOacBadge},
then:function(I){return _.v("div",{class:"yt-profile-identity-info-view-model__badge"},_.v(_.Fu,{data:function(){return{thumbnails:[{url:I().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"rh"),QWe=_.C(function(G){var b=G.profileIdentityInfoData;
return _.v("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.v(_.VX,{data:function(){var I=b().channelBanner;if(I)return{imageBannerViewModel:{image:I.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(I){return _.v("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.v(_.j1,{data:I.data,
isPositionRelative:!0}))}}))},"sh"),UPL=_.C(function(G){var b=G.profileIdentityInfoData;
return _.v("div",{class:"yt-profile-identity-info-view-model__metadata"},_.v("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.v("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return b().channelHandle}),_.v(_.Q,{cond:function(){return b().channelPronouns&&b().channelHandle},
then:function(){return _.v("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.v("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return b().channelPronouns})),_.v("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.v("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return b().leftOfBulletInfo}),_.v(_.Q,{cond:function(){return b().leftOfBulletInfo&&b().rightOfBulletInfo},
then:function(){return _.v("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.v("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return b().rightOfBulletInfo})))},"th");var sWa;var G6=function(){return _.a.apply(this,arguments)||this};
_.M(G6,_.a);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],G6.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],G6.prototype,"data",void 0);_.R([_.N({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],G6);
_.J(G6,"ytd-channel-history-renderer",function(){if(sWa!==void 0)return sWa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return sWa=G},{mode:1});var gPF;var AZL=function(){return _.a.apply(this,arguments)||this};
_.M(AZL,_.a);_.R([_.H(),_.n("design:type",Object)],AZL.prototype,"data",void 0);_.R([_.N({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],AZL);
_.J(AZL,"ytd-feature-enablement-info-renderer",function(){if(gPF!==void 0)return gPF;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return gPF=G},{mode:1});var MX9;var ZUj;var bJ=function(){var G=_.a.apply(this,arguments)||this;G.textBoxMaxLength=_.U("enable_tvod_campaign_code_integration")?15:12;return G};
_.M(bJ,_.a);_.m=bJ.prototype;_.m.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.m.onSubmit=function(){var G=this.data.serviceEndpoint,b=_.g(G,_.HH);b&&G&&(b.couponCode=this.userInput,_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}}))};
_.m.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=_.U("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.m.computeStyle=function(G){return G};
_.m.computeShowValidationBelowInput=function(G){return G!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.m.updateUserInputFromBinding=function(G){this.userInput=G.currentTarget.value};
_.m.updateShowErrorMessageFromBinding=function(G){this.showErrorMessage=G.detail.value};
_.kV.Object.defineProperties(bJ.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
bJ.prototype.dataChanged=bJ.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],bJ.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],bJ.prototype,"userInput",void 0);_.R([_.H(),_.n("design:type",Boolean)],bJ.prototype,"disableApplyButton",void 0);_.R([_.H(),_.n("design:type",Boolean)],bJ.prototype,"hideApplyButton",void 0);
_.R([_.H(),_.n("design:type",Boolean)],bJ.prototype,"hideErrorMessage",void 0);_.R([_.H(),_.n("design:type",Boolean)],bJ.prototype,"showTick",void 0);_.R([_.H(),_.n("design:type",Boolean)],bJ.prototype,"showErrorMessage",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],bJ.prototype,"couponStyle",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.n("design:type",Boolean)],bJ.prototype,"showValidationBelowInput",void 0);_.R([_.H(),_.n("design:type",Object)],bJ.prototype,"textBoxMaxLength",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bJ.prototype,"dataChanged",null);
_.R([_.P("showTick","showErrorMessage","userInput"),_.n("design:type",String),_.n("design:paramtypes",[])],bJ.prototype,"validationState",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],bJ);
_.J(bJ,"ytd-ypc-coupon-renderer",function(){if(ZUj!==void 0)return ZUj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ZUj=G},{mode:1});var Ih=function(){return _.a.apply(this,arguments)||this};
_.M(Ih,_.a);Ih.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"}}}};
Ih.prototype.computeStyle=function(G){return G};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ih.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],Ih.prototype,"buttonStyle",void 0);_.R([_.N({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Ih);
_.J(Ih,"ytd-flow-bottom-bar-renderer",function(){if(MX9!==void 0)return MX9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return MX9=G},{mode:1});var tX8;var zZK;var oPK;var hD=function(){return _.a.apply(this,arguments)||this};
_.M(hD,_.a);hD.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
hD.prototype.focus=function(G){this.title&&_.jG(this.title,G)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],hD.prototype,"data",void 0);_.R([_.lH("#title"),_.n("design:type",HTMLElement)],hD.prototype,"title",void 0);_.R([_.N({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],hD);
_.J(hD,"ytd-flow-top-bar-renderer",function(){if(oPK!==void 0)return oPK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return oPK=G},{mode:1});var iUD;var P98;var dPF;var qG=function(){return _.a.apply(this,arguments)||this};
_.M(qG,_.a);qG.prototype.freeTextValueChanged=function(){_.wL(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
qG.prototype.updateFreeTextValueFromBinding=function(G){this.freeTextValue=G.detail.value};
_.kV.Object.defineProperties(qG.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var G,b,I=(b=(G=this.data)==null?void 0:G.responseMaxLength)!=null?b:500,h;return((h=this.freeTextValue)!=null?h:"").length>=I?"maxed-out":""}}});
qG.prototype.freeTextValueChanged=qG.prototype.freeTextValueChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],qG.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],qG.prototype,"freeTextValue",void 0);_.R([_.lH("#user-input"),_.n("design:type",HTMLTextAreaElement)],qG.prototype,"input",void 0);
_.R([_.P("freeTextValue"),_.n("design:type",Object),_.n("design:paramtypes",[])],qG.prototype,"characterLimitClass",null);_.R([_.q5("freeTextValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qG.prototype,"freeTextValueChanged",null);_.R([_.g8({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],qG);
_.J(qG,"yt-free-text-input-flow-step-renderer",function(){if(dPF===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;P98===void 0&&(P98=document.createElement("template"));var h=P98;I.call(b,h.content.cloneNode(!0),G.content.firstChild);dPF=G}G=dPF;return G},{mode:2});var jr=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return G};
_.M(jr,_.a);jr.prototype.handleFreeTextFlowStepInputChanged=function(G){_.wL(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:G}}])};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],jr.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],jr.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],jr.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],jr);
_.J(jr,"ytd-free-text-input-flow-step-renderer",function(){if(iUD!==void 0)return iUD;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return iUD=G},{mode:1});var yZW;var rZW;var F$F=function(){return _.a.apply(this,arguments)||this};
_.M(F$F,_.a);_.R([_.H(),_.n("design:type",Object)],F$F.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],F$F);
_.J(F$F,"ytd-metadata-line-renderer",function(){if(rZW!==void 0)return rZW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rZW=G},{mode:1});var lJ=function(){return _.a.apply(this,arguments)||this};
_.M(lJ,_.a);lJ.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],lJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lJ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],lJ.prototype,"isMasthead",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],lJ);
_.J(lJ,"ytd-media-product-renderer",function(){if(yZW!==void 0)return yZW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return yZW=G},{mode:1});var HUc;var md=function(){return _.a.apply(this,arguments)||this};
_.M(md,_.a);md.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
md.prototype.onBillboardImageLoaded=function(){_.O3(this.hostElement,"yt-refit")};
md.prototype.onBillboardImageLoaded=md.prototype.onBillboardImageLoaded;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],md.prototype,"data",void 0);_.R([_.lH("#billboardImage"),_.n("design:type",Object)],md.prototype,"billboardImage",void 0);_.R([_.hI("yt-img-shadow-loaded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],md.prototype,"onBillboardImageLoaded",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],md);
_.J(md,"ytd-billboard-masthead-renderer",function(){if(HUc!==void 0)return HUc;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return HUc=G},{mode:1});var W$K;var er=function(){var G=_.a.apply(this,arguments)||this;G.smallSize=!1;return G};
_.M(er,_.a);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],er.prototype,"ytComponentBehaviorType",void 0);_.R([_.H(),_.n("design:type",Object)],er.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],er.prototype,"smallSize",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],er);
_.J(er,"ytd-bullet-formatted-string",function(){if(W$K!==void 0)return W$K;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return W$K=G},{mode:1});var aE1;var VH=function(){return _.a.apply(this,arguments)||this};
_.M(VH,_.a);VH.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],VH.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],VH);
_.J(VH,"ytd-offer-detail-renderer",function(){if(aE1!==void 0)return aE1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return aE1=G},{mode:1});var NKF;var Dq=function(){return _.a.apply(this,arguments)||this};
_.M(Dq,_.a);Dq.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Dq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Dq.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Dq);
_.J(Dq,"ytd-offer-detail-step-renderer",function(){if(NKF!==void 0)return NKF;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return NKF=G},{mode:1});var YSa;var cl=function(){var G=_.a.apply(this,arguments)||this;G.isInOfferModule=!1;return G};
_.M(cl,_.a);_.m=cl.prototype;_.m.computeHasEndpoint=function(){var G;return!((G=this.data)==null||!G.onClickCommand)};
_.m.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")};
_.m.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)};
_.m.handleClickEvent=function(){var G;if((G=this.data)==null?0:G.onClickCommand){var b;this.componentBehavior.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}};
_.m.onContentKeyDown=function(G){G.key==="Enter"?this.handleClickEvent(G):G.key===" "&&G.preventDefault()};
_.m.onContentKeyUp=function(G){G.key===" "&&this.handleClickEvent(G)};
cl.prototype.dataChanged=cl.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],cl.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],cl.prototype,"data",void 0);_.R([_.H({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],cl.prototype,"hasEndpoint",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],cl.prototype,"isInOfferModule",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cl.prototype,"dataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],cl);
_.J(cl,"ytd-channel-masthead-renderer",function(){if(YSa!==void 0)return YSa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YSa=G},{mode:1});var C9F;var k5=function(){var G=_.a.apply(this,arguments)||this;G.thumbnailObjectFit="CONTAIN";G.thumbnailObjectPosition="LEFT";G.isExpanded=!1;return G};
_.M(k5,_.a);_.m=k5.prototype;_.m.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.m.dataChanged=function(){this.resetStates()};
_.m.computeisTapOnOfferInfoContainerEnabled=function(){var G;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.m.onExpandBtnClick=function(){var G,b=_.g((G=this.data)==null?void 0:G.showMoreButtonRenderer,jW9);b&&_.yw(_.qo(),b.trackingParams);this.isExpanded=!this.isExpanded};
_.m.onOfferInfoClick=function(G){this.isTapOnOfferInfoContainerEnabled&&(_.NK(_.Wy(G)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Yo(_.Wy(G)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.m.onBottomBarClick=function(){this.executeTapCommand()};
_.m.executeTapCommand=function(){var G,b=(G=this.data)==null?void 0:G.tapCommand;b&&this.ytComponentBehavior.resolveCommand(b)};
_.m.resetStates=function(){this.isExpanded=!1};
_.kV.Object.defineProperties(k5.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),b,I,h;return((b=this.data)==null?void 0:b.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&G&&!!((I=this.data)==null?0:(h=I.benefits)==null?0:h.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,b,I;return((b=_.g((G=this.data)==null?void 0:G.showMoreButtonRenderer,jW9))==null?void 0:b.showMoreButtonTitle)||((I=this.data)==null?void 0:I.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return((b=_.g((G=this.data)==null?void 0:G.showMoreButtonRenderer,jW9))==null?void 0:b.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 b;return(b=this.showMoreButtonTitle)!=null?b:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((b=this.data)==null?0:b.footerTitle)||((I=this.data)==null?0:I.footerSubtitle))}}});
k5.prototype.dataChanged=k5.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],k5.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",String)],k5.prototype,"thumbnailObjectFit",void 0);
_.R([_.H(),_.n("design:type",String)],k5.prototype,"thumbnailObjectPosition",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.n("design:type",Boolean)],k5.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.R([_.H(),_.n("design:type",Object)],k5.prototype,"isExpanded",void 0);_.R([_.H(),_.n("design:type",Object)],k5.prototype,"data",void 0);_.R([_.H({computed:"computeIcon_(data.footerIcon)"}),_.n("design:type",String)],k5.prototype,"icon",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],k5.prototype,"dataChanged",null);_.R([_.P("data.thumbnail"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],k5.prototype,"hasThumbnail",null);_.R([_.P("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],k5.prototype,"enableExpandButton",null);
_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],k5.prototype,"enableOfferContentIcon",null);_.R([_.P("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.n("design:type",Object),_.n("design:paramtypes",[])],k5.prototype,"showMoreButtonTitle",null);_.R([_.P("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.n("design:type",Object),_.n("design:paramtypes",[])],k5.prototype,"showLessButtonTitle",null);
_.R([_.P("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.n("design:type",String),_.n("design:paramtypes",[])],k5.prototype,"expandedBtnText",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],k5.prototype,"enableBottomBar",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],k5);
_.J(k5,"ytd-offer-card-renderer",function(){if(C9F!==void 0)return C9F;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return C9F=G},{mode:1});var JZj;var vl=function(){return _.a.apply(this,arguments)||this};
_.M(vl,_.a);vl.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"}}}};
vl.prototype.onClick=function(G){if(!_.NK(G.composedPath()||[],this.hostElement,["A".toString()])){var b,I;if((G=(I=_.g((b=this.data)==null?void 0:b.actionButton,_.bz))==null?void 0:I.command)&&!this.ytComponentBehavior.resolveCommand(G)){var h;(h=_.qo())==null||h.clickCommand(G);_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}})}}};
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],vl.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],vl.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],vl.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],vl);
_.J(vl,"ytd-offer-content-renderer",function(){if(JZj!==void 0)return JZj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return JZj=G},{mode:1});var K$K;var LZ=function(){return _.a.apply(this,arguments)||this};
_.M(LZ,_.a);LZ.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.kV.Object.defineProperties(LZ.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var G,b;return!((G=this.data)==null||!G.title)||!((b=this.data)==null||!b.description)}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],LZ.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],LZ.prototype,"hasHeaderData",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],LZ);
_.J(LZ,"ytd-offer-section-renderer",function(){if(K$K!==void 0)return K$K;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return K$K=G},{mode:1});var uTc;var QH=function(){return _.a.apply(this,arguments)||this};
_.M(QH,_.a);
QH.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],QH.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],QH);
_.J(QH,"ytd-offer-selection-step-renderer",function(){if(uTc!==void 0)return uTc;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return uTc=G},{mode:1});var RZW;var x5=function(){return _.a.apply(this,arguments)||this};
_.M(x5,_.a);x5.prototype.computeStyle=function(G){return G};
x5.prototype.computeImageWidth=function(G){return G==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.R([_.H({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.n("design:type",String)],x5.prototype,"containerStyle",void 0);_.R([_.H({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.n("design:type",String)],x5.prototype,"imageWidth",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],x5.prototype,"data",void 0);
_.R([_.N({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],x5);
_.J(x5,"ytd-confirmation-masthead-renderer",function(){if(RZW!==void 0)return RZW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return RZW=G},{mode:1});var nP8;var fZ=function(){return _.a.apply(this,arguments)||this};
_.M(fZ,_.a);fZ.prototype.computeStyle=function(G){return G};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fZ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.n("design:type",String)],fZ.prototype,"containerStyle",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],fZ);
_.J(fZ,"ytd-purchase-complete-detail-renderer",function(){if(nP8!==void 0)return nP8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return nP8=G},{mode:1});var OUW;var T6=function(){var G=_.a.apply(this,arguments)||this;G.scriptsAppended=!1;return G};
_.M(T6,_.a);T6.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"}}}};
T6.prototype.onDataChanged=function(){var G=this.get("data.gtmId");G&&(_.WQ(G,_.wy("GL","")),this.setupConversionTracking())};
T6.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}};
T6.prototype.onDataChanged=T6.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],T6.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],T6.prototype,"scriptsAppended",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],T6.prototype,"onDataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],T6);
_.J(T6,"ytd-purchase-complete-step-renderer",function(){if(OUW!==void 0)return OUW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return OUW=G},{mode:1});var wTF;var Bl=function(){return _.a.apply(this,arguments)||this};
_.M(Bl,_.a);Bl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Bl.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Bl);
_.J(Bl,"ytd-ypc-transaction-error-message-renderer",function(){if(wTF!==void 0)return wTF;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return wTF=G},{mode:1});var EP5;var pTW;var U_=function(){var G=_.a.apply(this,arguments)||this;G.handlePhoneVerificationSuccess=function(b){if(G.isValidPhoneVerificationCompletionMessageEvent(b)){var I;((I=G.data)==null?0:I.nextStepCommand)&&G.ytComponentBehavior.resolveCommand(G.data.nextStepCommand)}};
return G};
_.M(U_,_.a);U_.prototype.isValidPhoneVerificationCompletionMessageEvent=function(G){if(G.data!=="yt-phone-verification-complete")return!1;G=_.VE(G.origin);return G!==null&&G.includes("youtube.com")};
U_.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
U_.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],U_.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],U_.prototype,"data",void 0);_.R([_.g8({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],U_);
_.J(U_,"yt-feature-enablement-soft-entry-renderer",function(){if(pTW===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;EP5===void 0&&(EP5=document.createElement("template"));var h=EP5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);pTW=G}G=pTW;return G},{mode:1});var SSW;var XT3;var $OL;var Gie;var bw5=function(){return _.a.apply(this,arguments)||this};
_.M(bw5,_.a);_.R([_.H(),_.n("design:type",Object)],bw5.prototype,"data",void 0);_.R([_.g8({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],bw5);
_.J(bw5,"yt-benefits-item-renderer",function(){if(Gie===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;$OL===void 0&&($OL=document.createElement("template"));var h=$OL;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Gie=G}G=Gie;return G},{mode:2});var I08;var hAf;var s_=function(){return _.a.apply(this,arguments)||this};
_.M(s_,_.a);s_.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
s_.prototype.computeisWithoutPadding=function(){var G;return((G=this.data)==null?void 0:G.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],s_.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.n("design:type",Boolean)],s_.prototype,"isWithoutPadding",void 0);_.R([_.g8({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],s_);
_.J(s_,"yt-benefits-section-renderer",function(){if(hAf===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;I08===void 0&&(I08=document.createElement("template"));var h=I08;I.call(b,h.content.cloneNode(!0),G.content.firstChild);hAf=G}G=hAf;return G},{mode:2});var gw=function(){return _.a.apply(this,arguments)||this};
_.M(gw,_.a);gw.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
gw.prototype.computeisUsingLargeWidth=function(){var G;return((G=this.data)==null?void 0:G.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],gw.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.n("design:type",Boolean)],gw.prototype,"isUsingLargeWidth",void 0);_.R([_.g8({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],gw);
_.J(gw,"yt-benefits-flow-step-renderer",function(){if(XT3===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;SSW===void 0&&(SSW=document.createElement("template"));var h=SSW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);XT3=G}G=XT3;return G},{mode:2});var qb5;var joc;var AD=function(){return _.a.apply(this,arguments)||this};
_.M(AD,_.a);AD.prototype.checkIsUsingLargeWidth=function(){var G;return((G=this.data)==null?void 0:G.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.R([_.H(),_.n("design:type",Object)],AD.prototype,"data",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.R([_.H({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.n("design:type",Boolean)],AD.prototype,"isUsingLargeWidth",void 0);_.R([_.g8({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],AD);
_.J(AD,"yt-confirmation-flow-step-renderer",function(){if(joc===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;qb5===void 0&&(qb5=document.createElement("template"));var h=qb5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);joc=G}G=joc;return G},{mode:2});var l0W;var mOD;var eAL=function(){return _.a.apply(this,arguments)||this};
_.M(eAL,_.a);_.R([_.H(),_.n("design:type",Object)],eAL.prototype,"data",void 0);_.R([_.g8({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],eAL);
_.J(eAL,"yt-info-flow-step-renderer",function(){if(mOD===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;l0W===void 0&&(l0W=document.createElement("template"));var h=l0W;I.call(b,h.content.cloneNode(!0),G.content.firstChild);mOD=G}G=mOD;return G},{mode:2});var Vnf;var DOf;var cQW=function(){return _.a.apply(this,arguments)||this};
_.M(cQW,_.a);_.R([_.H(),_.n("design:type",Object)],cQW.prototype,"data",void 0);_.R([_.g8({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],cQW);
_.J(cQW,"yt-info-list-flow-step-renderer",function(){if(DOf===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Vnf===void 0&&(Vnf=document.createElement("template"));var h=Vnf;I.call(b,h.content.cloneNode(!0),G.content.firstChild);DOf=G}G=DOf;return G},{mode:2});var ki1=_.C(function(G){var b=G.data;return _.v("styled-text-view-model",{class:_.pG("ytStyledTextViewModelHost",function(){return jLK(b().fontAttributes)},function(){return qiF(b().color)})},_.v(_.IS,{text:function(){return b().text},
ariaLabel:function(){var I,h,q;return(q=(I=b().accessibility)==null?void 0:(h=I.accessibilityData)==null?void 0:h.label)!=null?q:""}}))},"uh");
ki1.idomCompat=!0;var vSD=_.C(function(G){var b=function(){var q,l,V,D;return(D=(V=(q=G.alt)==null?void 0:q.call(G))!=null?V:(l=G.data().accessibilityData)==null?void 0:l.label)!=null?D:""},I=function(){return G.data().imageWidth},h=function(){return G.data().imageHeight};
return _.v("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.v(_.Q,{cond:function(){var q=G.data();if(q){var l,V,D;var k=((l=_.LL().resolve(_.vf(_.Pv)))==null?0:l())?(V=q.imageDark)!=null?V:q.imageLight:(D=q.imageLight)!=null?D:q.imageDark}else k=void 0;return k},
then:function(q){return _.v(_.Fu,Object.assign({},G,{data:q,alt:b,targetWidth:I,targetHeight:h,preserveHeight:!0,preserveWidth:!0}))}}))},"vh");
vSD.idomCompat=!0;var MG=_.C(function(G){var b=G.data;G=_.a9(function(){return b().slots},[]);
var I=_.a9(function(){return b().layoutProperties},{}),h=_.LL().resolve(_.yB);
return _.v("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:$hW(I,h)},_.v(_.aj,{each:G,keyBy:"INDEX"},function(q){return _.v("div",{class:"ytContainerLayoutViewModelSlot",style:$hW(function(){return q().layoutProperties},h)},_.v(_.VX,{data:function(){return q().contents}},{containerLayoutViewModel:MG,
badgeViewModel:_.Db,buttonViewModel:_.sQ,styledTextViewModel:ki1,contentPreviewImageViewModel:function(l){return _.v(_.B_,{data:l.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(l){return _.v(vSD,{data:l.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"wh");
MG.idomCompat=!0;var LsW=_.C(function(G){var b=G.data;var I=G.stateFns;var h=function(){var L=b(),x=L.productId;return!(!L.clearGroupId&&!x)},q=function(){var L=b(),x=L.clearGroupId;
return(L=L.productId)?I().isProductSelected(L):x?I().getSelectedProductByGroupId(x)==null:!1},l=function(L){var x=b(),f=x.clearGroupId;
if(x=x.productId)I().onProductSelected(x),L==null||L.forEach(function(T){_.Zm(T)});
else if(f)I().onClearGroupSelected(f)},V=function(){var L=b(),x=L.clearGroupId;
if(L=L.productId){var f;return"group:"+(((f=I().getProductById(L))==null?void 0:f.groupId)||"")}return x?"group:"+x:""},D=_.a9(function(){return b().header},[]),k=_.a9(function(){return b().body},[]);
return _.v("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.v(_.Q,{cond:function(){return D().length>0||h()},
then:function(){return _.v("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.v("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.v(_.VX,{data:D},{containerLayoutViewModel:function(L){return _.v("div",{class:"ytPdpCardSectionViewModelContentItem"},_.v(MG,{data:L.data}))},
styledTextViewModel:function(L){return _.v("div",{class:"ytPdpCardSectionViewModelContentItem"},_.v(ki1,{data:L.data}))}})),_.v(_.Q,{cond:h,
then:function(){return _.v("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.v(_.$h,{checked:q,name:V,onChange:function(){l(b().onSelect)}}))}}))}}),_.v(_.Q,{cond:function(){return k().length>0},
then:function(){return _.v("div",null,_.v(_.VX,{data:k},{containerLayoutViewModel:function(L){return _.v("div",{class:"ytPdpCardSectionViewModelContentItem"},_.v(MG,{data:L.data}))}}))}}))},"xh");
LsW.idomCompat=!0;var Qoe=_.C(function(G){var b=G.data;var I=G.stateFns;return _.v("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.v(_.Q,{cond:function(){return b().banner},
then:function(h){return _.v("div",{class:"ytPdpCardViewModelBanner"},_.v(_.IS,{text:h}))}}),_.v(_.VX,{data:function(){return b().sections}},{pdpCardSectionViewModel:function(h){h=h.data;
var q={};return _.v("div",{class:_.pG("ytPdpCardViewModelSectionContainer",(q.ytPdpCardViewModelShowDividers=function(){return b().showDividers},q))},_.v(LsW,{data:h,
stateFns:I}))}}))},"yh");
Qoe.idomCompat=!0;var xOc=_.C(function(G){var b=G.data;var I=G.isOverlay;G={};return _.v("pdp-masthead-view-model",{class:_.pG("ytPdpMastheadViewModelHost",(G.ytPdpMastheadViewModelIsOverlay=I,G))},_.v(_.VX,{data:function(){return b().image}},{contentPreviewImageViewModel:_.B_,
themedImageViewModel:function(h){return _.v(vSD,{data:h.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.v(_.Q,{cond:function(){return b().title},
then:function(h){return _.v("h1",{class:"ytPdpMastheadViewModelHeading"},_.v(_.IS,{text:h,isOverlay:I}))}}),_.v(_.aj,{each:function(){var h;
return(h=b().finePrint)!=null?h:[]}},function(h){return _.v("div",{class:"ytPdpMastheadViewModelFinePrint"},_.v(_.IS,{text:h,
isOverlay:I}))}))},"zh");
xOc.idomCompat=!0;var f0e=_.C(function(G){var b=G.data;var I=G.stateFns;var h=function(){return"pdp-pricing-group-selector-"+b().pricingGroupAttributeIds},q=_.a9(function(){return b().pricingGroupSelectorSectionHeader});
return _.v("pdp-pricing-group-selector-view-model",null,_.v(_.Q,{cond:function(){return!!q()},
then:function(){return _.v(_.VX,{data:q},{sectionHeaderViewModel:function(l){l=l.data;var V={};return _.v("div",{class:_.pG("ytPdpPricingGroupSelectorViewModelSectionHeader",(V.ytPdpPricingGroupSelectorViewModelFullBleed=!0,V.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,V))},_.v(_.dn,{data:l}))}})}}),_.v("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.v(_.aj,{each:function(){var l=I().getSelectedProductByGroupId(b().groupId);
if(!l)return _.u6(Error("Zj`"+b().groupId)),[];var V,D=(V=b().pricingGroupAttributeIds)!=null?V:[],k;if((k=l.pricingGroups)==null||!k.length||!D.length)return[];V=l.pricingGroups.filter(function(T){return D.length?T.pricingGroupAttributes.every(function(B){return D.includes(B)}):!1});
l=[];if(D.length>0){V=[].concat(_.Nz(V));k=_.e(D);for(var L=k.next(),x={};!L.done;x={targetAttrId:void 0},L=k.next())x.targetAttrId=L.value,L=V.findIndex(function(T){return function(B){return B.pricingGroupAttributes.includes(T.targetAttrId)}}(x)),L!==-1&&(l.push(V[L]),V.splice(L,1))}var f=I().getSelectedPricingGroupAttributesByGroupId(b().groupId);
return l.map(function(T){var B=!1;f&&T.pricingGroupAttributes&&(B=uw(T.pricingGroupAttributes,f));return{pricingGroup:T,isSelected:B}})},
keyBy:function(l){return l.pricingGroup.pricingGroupId}},function(l){return _.v("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.v("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.v(_.VX,{data:function(){return l().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:MG})),_.v("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.v(_.$h,{checked:function(){return l().isSelected},
name:h,onClick:function(){var V=l().pricingGroup;I().onPricingGroupSelected(V.pricingGroupId);if(V=_.s0(V.onSelectPricingGroup)){var D;(D=_.LL().resolve(_.xW))==null||D.resolveCommand(V)}}})))})))},"Ah");
f0e.idomCompat=!0;var T43=_.C(function(G){var b=G.data;var I=G.stateFns;var h=function(){var V=I().getSelectedPricingOptions().map(function(L){return L.pricingOptionId}),D=I().getSelectedProductByGroupId(b().groupId);
if(!D)return _.u6(Error("$j`"+b().groupId)),[];var k=I().getSelectedPricingGroupAttributesByGroupId(b().groupId);return VWF(D.pricingOptions,k,V)},q=_.a9(function(){return b().pricingOptionSelectorSectionHeader}),l=function(){return h().length>1};
return _.v("pdp-pricing-option-selector-view-model",null,_.v(_.Q,{cond:function(){return!!q()&&l()},
then:function(){return _.v(_.VX,{data:q},{sectionHeaderViewModel:function(V){V=V.data;var D={};return _.v("div",{class:_.pG("ytPdpPricingOptionSelectorViewModelSectionHeader",(D.ytPdpPricingOptionSelectorViewModelFullBleed=!0,D.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,D))},_.v(_.dn,{data:V}))}})}}),_.v(_.Q,{cond:l,
then:function(){return _.v("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.v(_.aj,{each:h,keyBy:"INDEX"},function(V){return _.v("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.v("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.v(_.VX,{data:function(){return V().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:MG})),_.v("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.v(_.$h,{checked:function(){return V().isSelected},
onClick:function(){I().onPricingOptionSelected(V().pricingOption.pricingOptionId);var D=V().pricingOption.onSelectPricingOption;if(D=_.s0(D)){var k;(k=_.LL().resolve(_.xW))==null||k.resolveCommand(D)}}})))}))}}))},"Bh");
T43.idomCompat=!0;var B48=_.C(function(G){var b=G.data;var I=G.stateFns;return _.v("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.v(_.VX,{data:function(){var h,q;return(q=(h=I().getSelectedPricingOptions()[0])==null?void 0:h.primaryButton)!=null?q:b().emptyStateButton}},{buttonViewModel:_.sQ}))},"Ch");
B48.idomCompat=!0;var UOc=_.C(function(G){var b=G.stateFns;return _.v("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.v(_.VX,{data:function(){return b().getSelectedPricingOptions().flatMap(function(I){return I.summaryLines}).filter(function(I){return!!I})}},{containerLayoutViewModel:function(I){return _.v("div",{class:"ytPdpSummaryViewModelLineItem"},_.v(MG,{data:I.data}))}}))},"Dh");
UOc.idomCompat=!0;var soa=_.C(function(G){function b(A){var t=V();_.W5(_.BR("pdpStateEntity",t,{key:t,selectedPricingOptions:A}))}
var I=G.data;var h=G.internalScrolling;var q=G.stateFnsForTesting;var l=_.a9(function(){return I().allProducts},[]),V=_.a9(function(){return I().pdpStateEntityKey},""),D=_.lA(DhF,V),k=_.P$(function(){_.n0(!0);
var A;return(A=q==null?void 0:q())!=null?A:kbD(D,l,b)},void 0,"Pzdsic"),L=_.a9(function(){return I().body},[]),x=_.a9(function(){return I().columnBreakHints},[]),f=function(){return I().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},T=function(){return f()||I().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},B=_.P$(function(){var A=_.iA(I().background),t;
if(A==null?0:(t=A.sources)==null?0:t.length){var y=y===void 0?!0:y;A=_.DUd(void 0,A.sources,void 0,y,y?1E3:void 0,y?void 0:1E3)}else A=null;return A},void 0,"RDPOae");
_.K3(function(){var A=I().onStartCommand;if(A&&(A=_.s0(A))){var t;(t=_.LL().resolve(_.xW))==null||t.resolveCommand(A)}});
G={};return _.v("pdp-view-model",{class:_.pG("ytPdpViewModelHost",(G.ytPdpViewModelHasBackground=function(){return T()||!!B()},G.ytPdpViewModelHasDarkBackground=T,G.ytPdpViewModelHasScrim=f,G.ytPdpViewModelInternalScrolling=h,G)),
style:_.Ir({"--pdp-view-model-background":function(){return B()?"url("+B()+")":void 0}})},_.v("div",{class:"ytPdpViewModelColumnContainer"},_.v(_.aj,{each:function(){return vV3(L(),x())},
keyBy:"INDEX"},function(A){return _.v("div",{class:"ytPdpViewModelColumn"},_.v(_.VX,{data:A},{containerLayoutViewModel:function(t){return _.v(Zq,null,_.v(MG,{data:t.data}))},
dividerViewModel:function(t){return _.v(Zq,{fullBleed:!0},_.v(_.maB,{data:t.data}))},
pdpCardViewModel:function(t){return _.v(Zq,null,_.v(Qoe,{data:t.data,stateFns:k}))},
pdpMastheadViewModel:function(t){return _.v(Zq,null,_.v(xOc,{data:t.data,isOverlay:T}))},
pdpPricingGroupSelectorViewModel:function(t){return _.v(Zq,null,_.v(f0e,{data:t.data,stateFns:k}))},
pdpPricingOptionSelectorViewModel:function(t){return _.v(Zq,null,_.v(T43,{data:t.data,stateFns:k}))},
pdpPrimaryButtonViewModel:function(t){return _.v(Zq,null,_.v(B48,{data:t.data,stateFns:k}))},
pdpSummaryViewModel:function(t){return _.v(Zq,null,_.v(UOc,{data:t.data,stateFns:k}))},
sectionHeaderViewModel:function(t){return _.v(Zq,{fullBleed:!0,noVerticalPadding:!0},_.v(_.dn,{data:t.data}))}}))})))},"Eh");
soa.idomCompat=!0;var Zq=_.C(function(G){var b={};return _.v("div",{class:_.pG("ytPdpViewModelItem",(b.ytPdpViewModelFullBleed=G.fullBleed,b.ytPdpViewModelNoVerticalPadding=G.noVerticalPadding,b))},G.children)},"Fh");_.JN(soa,"pdp-view-model",{props:{data:_.hV,stateFnsForTesting:_.No,internalScrolling:_.No}});var gS1=_.C(function(G){var b=G.data;var I=G.className;var h=_.lA(_.aG,function(){return b().flowStateEntityKey});
return _.v("ytm-premium-purchase-button-renderer",{class:_.pG("ytPremiumPurchaseButtonRendererHost",I)},_.v(_.VX,{data:function(){var q;return(q=_.g(h(),QLc))==null?void 0:q.primaryButtonOverride}},{buttonRenderer:function(q){return _.v(_.Vo,{data:q.data,
className:I})},
buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,className:I})}}))},"Gh");
gS1.idomCompat=!0;var AQc=_.C(function(G){var b=G.data;G=G.className;var I=function(){return LHj(b().style)},h=_.pG("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I),q=_.pG("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I);
return _.v("yt-flow-bottom-bar-renderer",{class:_.pG("yt-flow-bottom-bar-renderer",G,I)},_.v(_.VX,{data:function(){return b().secondaryButton}},{buttonRenderer:function(l){return _.v(_.Vo,{data:l.data,
className:q})},
buttonViewModel:function(l){return _.v(_.sQ,{data:l.data,className:q})},
premiumPurchaseButtonRenderer:function(l){return _.v(gS1,{data:l.data,className:q})}}),_.v(_.VX,{data:function(){return b().primaryButton}},{buttonRenderer:function(l){return _.v(_.Vo,{data:l.data,
className:h})},
buttonViewModel:function(l){return _.v(_.sQ,{data:l.data,className:h})},
premiumPurchaseButtonRenderer:function(l){return _.v(gS1,{data:l.data,className:h})}}))},"Hh");
AQc.idomCompat=!0;_.JN(AQc,"yt-flow-bottom-bar-renderer",{props:{data:_.hV,className:_.hV}});var MnW=_.C(function(G){var b=_.pG(G.className,"ytOfferSummaryRendererHost");return _.v("yt-offer-summary-renderer",{class:b},_.v("div",{class:"ytOfferSummaryRendererTextContainer"},_.v("div",{class:"ytOfferSummaryRendererEyebrowText"},_.v(_.IS,{text:function(){return G.data().eyebrowText}})),_.v("div",{class:"ytOfferSummaryRendererTitle"},_.v(_.IS,{text:function(){return G.data().title}})),_.v("div",{class:"ytOfferSummaryRendererSubtitle"},_.v(_.IS,{text:function(){return G.data().subtitle}})),_.v("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.v(_.aj,{each:function(){var I;
return(I=G.data().featureListData)!=null?I:[]}},function(I){var h;
return _.v("div",{class:"ytOfferSummaryRendererFeatureList"},_.v(_.ha,{icon:(h=I.icon)==null?void 0:h.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"}}}),_.v("div",{class:"ytOfferSummaryRendererFeatureListText"},_.v(_.IS,{text:I.text,
className:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.v("div",{class:"ytOfferSummaryRendererDescription"},_.v(_.IS,{text:function(){return G.data().description}}))))},"Ih");_.JN(_.C(function(G){var b={};b=_.pG("ytOfferSummaryFlowStepRendererHost",(b.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=G.shouldDisableHeaderTopMargin,b));return _.v("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:b},_.v("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.v("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.v(_.IS,{text:function(){return G.data().header}})),_.v("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.v(_.IS,{text:function(){return G.data().subtitle}}))),_.v("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.v(_.VX,{data:function(){return G.data().offerSummary}},{offerSummaryRenderer:function(I){return _.v(MnW,{data:I.data,
className:G.flowClassName})}})))},"Jh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.No,
flowClassName:_.No,flowStateEntityKey:_.No,shouldDisableHeaderTopMargin:_.No}});var Zwa=_.C(function(G){var b=G.data;var I=G.className;var h=G.flowStateEntityKey;var q=G.selectionStepStyle;G=_.Xu(function(k){var L=b(),x=h==null?void 0:h();k.target&&(k.stopPropagation(),k=x||"",x=_.aG(_.H5().getState(),k),L=Object.assign({},x,{premiumPurchaseFlowState:{selectedOptionId:L.optionId,primaryButtonOverride:L.primaryButtonOverride}}),_.H5().dispatch(_.Da("flowStateEntity",k,L)));return!1});
var l=function(){return(h==null?void 0:h())||""},V=_.lA(_.aG,l);
_.K3(function(){var k=b(),L=l(),x=V();k.defaultSelected&&L!==""&&k.primaryButtonOverride&&xha(k.optionId||"",L,k.primaryButtonOverride,x)});
var D={};return _.v("ytm-option-item-renderer",{"on:click":G,class:_.pG(I,"ytm-option-item-renderer",(D["ytm-option-item-renderer--lp2-style"]=function(){return(q==null?void 0:q())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},D))},_.v("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.v("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var k=b(),L=l(),x=V();x=_.g(x,QLc);return(x?(x==null?void 0:x.selectedOptionId)||"":k.defaultSelected&&L!==""?(k==null?void 0:k.optionId)||"":"")===b().optionId},
name:("input"+_.W0(_.Sj)).toString()})),_.v("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.v(_.VX,{data:function(){return b().titleBadge}},{badgeViewModel:function(k){return _.v(_.Db,{data:k.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.v(_.Q,{cond:function(){return b().eyebrowText},
then:function(){return _.v("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.v(_.IS,{text:function(){return b().eyebrowText}}))}}),_.v("div",{class:"ytm-option-item-renderer__option-item-title"},_.v(_.IS,{text:function(){return b().title}})),_.v("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.v(_.IS,{text:function(){return b().subtitle}})),_.v(_.Q,{cond:function(){return b().featureListData},
then:function(){return _.v("div",{class:"ytm-option-item-renderer__feature-list-data"},_.v(_.aj,{each:function(){return b().featureListData||[]}},function(k){var L,x=(L=k.icon)==null?void 0:L.iconType;
a:switch(k.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":L="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":L="ytm-option-item-renderer__feature-list-icon-small";break a;default:L="ytm-option-item-renderer__feature-list-icon-default"}return _.v("div",{class:"ytm-option-item-renderer__feature-list"},_.v(_.ha,{icon:x,className:L,active:function(){return k.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.v("div",{class:"ytm-option-item-renderer__feature-list-text"},_.v(_.IS,{text:k.text,
className:function(){return k.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.v("div",{class:"ytm-option-item-renderer__option-item-description"},_.v(_.IS,{text:function(){return b().description}}))))},"Kh");var tnj=_.C(function(G){var b=G.data;var I=G.flowClassName;var h=G.flowStateEntityKey;var q=G.selectionStepStyle;return _.v("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.v("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.v("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.v(_.IS,{text:function(){return b().title}}),_.v(_.VX,{data:function(){return b().titleBadge}},{badgeViewModel:function(l){return _.v(_.Db,{data:l.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.v(_.Q,{cond:function(){return b().subtitle},
then:function(){return _.v("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.v(_.IS,{text:function(){return b().subtitle}}))}}),_.v(_.Q,{cond:function(){return b().featureListData},
then:function(l){return _.v("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.v(_.aj,{each:l},function(V){var D;return _.v("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.v(_.ha,{icon:(D=V.icon)==null?void 0:D.iconType,active:function(){return V.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(V.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"}}}),_.v("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.v(_.IS,{text:V.text,
className:function(){return V.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.v(_.Q,{cond:function(){return b().secondaryTitle},
then:function(){return _.v("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.v(_.IS,{text:function(){return b().secondaryTitle}}))}}),_.v(_.aj,{each:function(){return b().sectionDisclaimers||[]}},function(l){return _.v("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.v(_.IS,{text:l}))})),_.v(_.VX,{data:function(){return b().optionItems}},{optionItemRenderer:function(l){return _.v("div",{class:"ytOptionSectionRendererOptionItem"},_.v(Zwa,{data:l.data,
className:I,flowStateEntityKey:h,selectionStepStyle:q}))}}),_.v(_.Q,{cond:function(){return b().offerText},
then:function(){return _.v("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.v(_.IS,{text:function(){return b().offerText}}))}}))},"Lh");
tnj.idomCompat=!0;var zA3=_.C(function(G){var b=G.data;var I=G.flowClassName;var h=G.flowStateEntityKey;G=G.isDesktop;var q=_.ee("div"),l=function(){var x;return(x=b().flowStateEntityKey)!=null?x:h==null?void 0:h()},V=function(){return(l==null?void 0:l())||""},D=function(){return b().style},k=_.lA(_.aG,V);
_.K3(function(){f19(b(),V(),k());setTimeout(function(){var x;(x=q.value)==null||x.focus()})});
var L={};return _.v("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.pG("ytm-option-selection-flow-step-renderer",(L["ytm-option-selection-flow-step-renderer--desktop"]=G,L["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return b().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},L))},_.v("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"},
_.v("div",{el:q,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.v(_.IS,{text:function(){return b().header}})),_.v("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.v(_.IS,{text:function(){return b().subtitle}}))),_.v(_.VX,{data:function(){return b().optionItems||[]}},{optionItemRenderer:function(x){return _.v("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.v(Zwa,{data:x.data,
className:I,flowStateEntityKey:l,selectionStepStyle:D}))},
optionSectionRenderer:function(x){return _.v("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.v(tnj,{data:x.data,flowClassName:I,flowStateEntityKey:l,selectionStepStyle:D}))}}))},"Mh");
zA3.idomCompat=!0;_.JN(zA3,"yt-option-selection-flow-step-renderer",{props:{data:_.hV,flowClassName:_.hV,flowStateEntityKey:_.hV,isDesktop:_.hV}});_.tD=_.C(function(G){var b=_.N5(G,{type:1,disablePadding:!1,disablePrimaryButton:!1}),I=b.data,h=b.type;G=b.disablePadding;var q=b.disablePrimaryButton,l=b.onClickPrimaryButton,V=function(){return I().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},D=function(){return{disabled:q(),
state:q()?"disabled":"active"}},k=function(){return I().leadingLabel||I().trailingLabel};
b={};return _.v("yt-panel-footer-view-model",{class:_.pG("yt-panel-footer-view-model",(b["yt-panel-footer-view-model--hide-divider"]=function(){return I().shouldHideDivider},b["yt-panel-footer-view-model--disable-padding"]=G,b))},_.v(_.Q,{cond:k,
then:function(){var L={},x={};return _.v("div",{class:_.pG("yt-panel-footer-view-model__text-row",(L["yt-panel-footer-view-model--row-bottom-padding"]=function(){var f=I();return!(!f.leadingLabel&&!f.trailingLabel||!f.primaryButton&&!f.secondaryButton)},L))},_.v(_.IS,{text:function(){return I().leadingLabel},
className:_.pG((x["yt-panel-footer-view-model--text-padding"]=k,x))}),_.v(_.IS,{text:function(){return I().trailingLabel}}))}}),_.v(_.Q,{cond:V,
then:function(){var L={};return _.v("div",{class:"yt-panel-footer-view-model__button-stack"},_.v("div",{class:_.pG("yt-panel-footer-view-model__primary-button",(L["yt-panel-footer-view-model__button-stack--top-button"]=function(){return I().secondaryButton},L))},_.v(_.VX,{data:function(){return I().primaryButton}},{buttonViewModel:function(x){return _.v(_.sQ,{data:x.data,
buttonOverrides:D,onClick:l})}})),_.v(_.VX,{data:function(){return I().secondaryButton}},{buttonViewModel:_.sQ}))}}),_.v(_.Q,{cond:function(){return!V()},
then:function(){var L={},x={},f={};return _.v("div",{class:_.pG("yt-panel-footer-view-model__button-row",(L["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===h()},L))},_.v("div",{class:_.pG("yt-panel-footer-view-model__button-row--left-button",(x["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===h()},x["yt-panel-footer-view-model__button-row--hidden"]=function(){return!I().secondaryButton||0===h()},x["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===h()},x))},_.v(_.VX,{data:function(){return I().secondaryButton}},{buttonViewModel:_.sQ})),_.v("div",{class:_.pG("yt-panel-footer-view-model__primary-button",(f["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===h()||1===h()},f["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===h()},f))},_.v(_.VX,{data:function(){return I().primaryButton}},{buttonViewModel:function(T){return _.v(_.sQ,{data:T.data,
buttonOverrides:D,onClick:l})}})))}}))},"Nh");
_.tD.idomCompat=!0;_.oSW=_.C(function(G){G=_.N5(G,{disablePadding:!1});var b=G.data,I=G.disablePadding;G=_.kjB(function(){return b().formId});
var h=G.submitForm,q=G.isValid,l=G.isSubmitting;return _.v("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.v(_.VX,{data:function(){return b().panelFooter}},{panelFooterViewModel:function(V){return _.v(_.tD,{data:V.data,
onClickPrimaryButton:function(){h()},
disablePrimaryButton:function(){return!q()||l()},
disablePadding:I})}}))},"Oh");_.JN(_.oSW,"yt-form-footer-view-model",{props:{data:_.hV,disablePadding:_.hV}});var iw9=_.C(function(G){var b=_.U("enable_user_rating_web");return _.v("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.v("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.v(_.Q,{cond:function(){var I;return(I=G.data())==null?void 0:I.image},
then:function(I){return _.v(_.Fu,{data:I,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.v("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.v(_.IS,{text:function(){var I;
return(I=G.data())==null?void 0:I.title}})),_.v("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.v(_.IS,{text:function(){var I;
return(I=G.data())==null?void 0:I.subtitle}})),_.v(_.Q,{cond:function(){return!b},
then:function(){return _.v(_.VX,{data:function(){var I;return(I=G.data())==null?void 0:I.viewTipsButton}},{buttonViewModel:function(I){return _.v(_.sQ,{data:I.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Ph");_.JN(iw9,"yt-contributor-zero-state-view-model",{props:{data:_.hV}});var Pm8=_.C(function(G){var b=function(){var I;return(I=G.data())==null?void 0:I.image};
return _.v("yt-featured-content-item-view-model",{class:_.pG("ytFeaturedContentItemViewModelHost")},_.v("div",{class:_.pG(function(){return b()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.v("div",{class:function(){return b()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.v(_.Q,{cond:b,
then:function(){return _.v("div",{class:"ytFeaturedContentItemViewModelImage"},_.v(_.VX,{data:function(){return G.data().image}},{themedImageViewModel:function(I){return _.v(vSD,{data:I.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.v(_.Q,{cond:function(){var I;
return!b()&&((I=G.data())==null?void 0:I.iconName)},
then:function(){return _.v("div",{class:"ytFeaturedContentItemViewModelIcon"},_.v(_.ha,{icon:function(){return G.data().iconName}}))}}),_.v("div",{class:"ytFeaturedContentItemViewModelContent"},_.v(_.Q,{cond:function(){var I;
return(I=G.data())==null?void 0:I.title},
then:function(){return _.v("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.v(_.IS,{text:function(){return G.data().title}}))}}),_.v(_.Q,{cond:function(){var I;
return(I=G.data())==null?void 0:I.body},
then:function(){return _.v("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.v(_.IS,{text:function(){return G.data().body}}))}})))))},"Qh");var dOK=_.C(function(G){var b=function(){var q;return T2j((q=G.data())==null?void 0:q.titleFontSize)},I=function(){var q;
return B2K((q=G.data())==null?void 0:q.descriptionFontSize)},h=function(){var q;
return((q=G.data())==null?void 0:q.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.v("yt-landing-page-view-model",{class:_.pG("ytLandingPageViewModelHost",G.className)},_.v("div",{class:"ytLandingPageViewModelHeader"},_.v(_.Q,{cond:function(){var q;return(q=G.data())==null?void 0:q.bannerImage},
then:function(q){return _.v("div",{class:"ytLandingPageViewModelHeaderImage"},_.v(_.VX,{data:function(){return q()}},{imageBannerViewModel:function(l){return _.v(_.j1,{data:l.data,
isPositionRelative:!0})}}))}}),_.v(_.Q,{cond:function(){var q;
return(q=G.data())==null?void 0:q.bannerAnimation},
then:function(q){return _.v(_.zV,{data:function(){var l=q();if(l==null?0:l.url){var V;l={path:(V=l==null?void 0:l.url)!=null?V:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(l==null?0:l.payload){var D;l={animationData:JSON.parse((D=l==null?void 0:l.payload)!=null?D:""),autoplay:!0,loop:!0,renderer:"svg"}}else l=void 0;return{animationConfig:l}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.v("div",{class:"ytLandingPageViewModelHeaderTitle"},_.v(_.Q,{cond:function(){var q;
return(q=G.data())==null?void 0:q.title},
then:function(q){return _.v("div",{class:_.pG("ytLandingPageViewModelHeaderTitleContent",b)},_.v(_.IS,{text:function(){return q()}}))}}),_.v(_.Q,{cond:function(){var q;
return(q=G.data())==null?void 0:q.description},
then:function(q){var l={};return _.v(_.IS,{className:_.pG("ytLandingPageViewModelHeaderTitleDescription",I,(l.ytLandingPageViewModelHeaderTitleDescriptionMargin=h,l)),text:function(){return q()}})}}))),_.v(_.Q,{cond:function(){var q,l;
return(q=G.data())==null?void 0:(l=q.featuredContentList)==null?void 0:l.length},
then:function(){return _.v("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.v(_.VX,{data:function(){return G.data().featuredContentList}},{featuredContentItemViewModel:function(q){return _.v(Pm8,{data:q.data})}}))}}),_.v(_.Q,{cond:function(){var q,l;
return(q=G.data())==null?void 0:(l=q.expandableContentList)==null?void 0:l.length},
then:function(){return _.v("div",{class:"ytLandingPageViewModelFaqSection"},_.v(_.VX,{data:function(){return G.data().expandableContentList}},{faqEntryViewModel:function(q){return _.v("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.v(_.utb,{data:q.data}))}}))}}),_.v("div",{class:"ytLandingPageViewModelFooter"},_.v(_.Q,{cond:function(){var q;
return(q=G.data())==null?void 0:q.legalCopy},
then:function(q){return _.v("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.v(_.IS,{text:function(){return q()}}))}}),_.v(_.Q,{cond:function(){var q;
return(q=G.data())==null?void 0:q.actions},
then:function(q){return _.v("div",null,_.v(_.VX,{data:function(){return q()}},{flexibleActionsViewModel:function(l){return _.v(_.ET,{data:l.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Rh");_.JN(_.C(function(G){return _.v("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.v("div",{class:"ytLpSectionGroupViewModelContainer"},_.v(_.VX,{data:function(){return G.data().sections}},{landingPageViewModel:function(b){return _.v(dOK,{data:b.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Sh"),"yt-lp-section-group-view-model",{props:{data:_.hV}});var yQY=_.C(function(G){var b=G.data;var I=G.selectedKey;var h=G.onSelected;var q=G.groupName;var l=function(){return b().text},V=function(){return b().attributedText},D=function(){return b().subtext},k=function(){return b().attributedSubtext},L=_.v("div",{class:"ytRadioButtonItemViewModelLabel"},_.v(_.Q,{cond:l,
then:function(){return _.v("div",null,l)}}),_.v(_.Q,{cond:V,
then:function(){return _.v(_.IS,{text:V})}}),_.v(_.Q,{cond:D,
then:function(){return _.v("div",{class:"ytRadioButtonItemViewModelSubText"},D)}}),_.v(_.Q,{cond:k,
then:function(){return _.v("div",{class:"ytRadioButtonItemViewModelSubText"},_.v(_.IS,{text:k}))}})),x=function(){if(V()){var T;
return(T=V())==null?void 0:T.content}return l()},f=function(){if(k()){var T;
return(T=k())==null?void 0:T.content}return D()};
G={};return _.v("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.v(_.$h,{name:q,checked:function(){return!(I==null||!I()||b().key!==(I==null?void 0:I()))},
onChange:function(T){h==null||h(T.target,b(),q==null?void 0:q())},
labelRenderable:function(){return L},
ariaLabel:function(){return f()?x()+", "+f():x()},
className:_.pG((G.ytRadioButtonItemViewModelSubTitle=function(){return!!b().subtext},G))}))},"Th");_.rQ8=_.C(function(G){var b=G.data;var I=function(){var h;return _.U2((h=b())==null?void 0:h.rendererContext)};
G={};return _.v("content-list-item-view-model",{el:_.Wv(_.s2(function(){return b().rendererContext})),
class:_.pG("ytContentListItemViewModelHost",(G.ytContentListItemViewModelTappable=I,G)),role:function(){return I()?"listitem":void 0},
tabindex:function(){return I()?0:void 0}},_.v("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.v("div",{class:"ytContentListItemViewModelImageContainer"},_.v(_.Q,{cond:function(){return b().image},
then:function(h){return _.v(_.Fu,{data:h,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.v(_.VX,{data:function(){var h;
return(h=b())==null?void 0:h.avatar}},{avatarViewModel:_.Om})),_.v("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.v("div",{class:_.pG("ytContentListItemViewModelTitle",function(){a:{switch(b().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var h="ytContentListItemViewModelProminentTitle";
break a}h=void 0}return h})},_.v(_.IS,{text:function(){return b().title}})),_.v("div",{class:"ytContentListItemViewModelMetadata"},_.v(_.VX,{data:function(){return b().metadata}},{contentMetadataViewModel:function(h){return _.v(_.sR,{data:h.data,
layout:1})}})))),_.v("div",{class:"ytContentListItemViewModelActionButton"},_.v(_.VX,{data:function(){var h;
return(h=b())==null?void 0:h.actionButton}},{buttonViewModel:_.sQ,
toggleButtonViewModel:_.YK})))},"Uh");var FsW=_.C(function(G){var b=G.data,I=function(){var q;return(q=b())==null?void 0:q.description},h=function(){var q;
return(q=b())==null?void 0:q.title};
return _.v("ytfc-youth-basic-section-header-view-model",{class:_.pG("ytfcYouthBasicSectionHeaderViewModelHost",G.className)},_.v("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.v(_.VX,{data:function(){var q;return(q=b())==null?void 0:q.avatar}},{avatarViewModel:_.Om}),_.v(_.Q,{cond:function(){var q;
return _.iA((q=b())==null?void 0:q.themedImage)},
then:function(q){return _.v(_.Fu,{data:q,alt:function(){var l,V;return(V=(l=h())==null?void 0:l.content)!=null?V:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.v("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.v(_.Q,{cond:h,
then:function(){return _.v(_.IS,{text:h,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.v("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.v(_.VX,{data:function(){var q;
return(q=b())==null?void 0:q.bottomBadge}},{badgeViewModel:function(q){return _.v("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.v(_.Db,{data:q.data}))}}),_.v(_.Q,{cond:I,
then:function(){return _.v(_.IS,{text:I,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Vh");var Hwa=_.C(function(G){var b=G.data;return _.v("ytfc-youth-section-body-view-model",{class:_.pG("ytfcYouthSectionBodyViewModelHost",G.className)},_.v(_.VX,{data:function(){var I;return(I=b())==null?void 0:I.topContent}},{avatarStackViewModel:function(I){return _.v(_.Em,{data:I.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.v(_.IS,{text:function(){var I;
return(I=b())==null?void 0:I.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Wh");var Ws9=_.C(function(G){var b=_.e(_.ZZ(!1,void 0,"SrK51e")),I=b.next().value,h=b.next().value,q=function(){return G.data().inlineExpansionEntityKey},l=_.lA(H8j,q),V=function(){if(G.isSelected!==void 0)return G.isSelected();
if(q()){var k;return(k=l())==null?void 0:k.expanded}return I()};
b={};var D={};return _.v("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.Xu(function(){G.isSelected!==void 0||q()||h(!I())})},_.v("div",{class:"ytInlineExpanderViewModelHeader"},_.v(_.VX,{data:function(){return G.data().headerContent}},{youthBasicSectionHeaderViewModel:FsW}),_.v("div",{class:_.pG("ytInlineExpanderViewModelButton",(b.ytInlineExpanderViewModelButtonExpanded=V,b))},_.v(_.TV,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:V(),accessibilityLabel:V()?_.qP("SHOW_LESS",void 0,"Show Less"):_.qP("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.v("div",{class:_.pG("ytInlineExpanderViewModelBody",(D.ytInlineExpanderViewModelBodyExpanded=V,D)),"aria-hidden":function(){return!V()}},_.v("div",{class:"ytInlineExpanderViewModelBodyContent"},_.v(_.VX,{data:function(){return G.data().bodyContent}},{youthSectionBodyViewModel:Hwa}))))},"Xh");var a01=new _.q3("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.N4W=_.C(function(G){var b=function(){return G.data().background},I=function(){return G.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},h=function(){return G.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},q=_.LL().resolve(_.vf(a01)),l={};
return _.v("yt-card-view-model",{el:_.Wv(_.s2(function(){return G.data().rendererContext})),
class:_.pG("ytCardViewModelHost",G.className,(l.ytCardViewModelClickable=function(){return _.BH(G.data().rendererContext)},l))},_.v(_.gB,{contentId:function(){return G.data().contentId}},function(){var V={};
return _.v("div",{class:_.pG("ytCardViewModelCardViewModelInner",function(){var D;return UhK(G.data().cardStyle,(D=G.isSelected)==null?void 0:D.call(G))},function(){if(G.isSelected===void 0){var D;
a:{switch((D=G.data().cardState)==null?void 0:D.selectionState){case "CARD_SELECTION_STATE_SELECTED":D="ytCardViewModelSelected";break a}D=void 0}return D}})},_.v(_.VX,{data:b},{cinematicContainerViewModel:function(D){return _.v(_.hB9,{data:D.data})}}),_.v("div",{class:"ytCardViewModelContentWrapper"},_.v(_.Q,{cond:function(){return!I()},
then:function(){var D={},k={};return _.v("div",{class:"ytCardViewModelTopContentContainer"},_.v("div",{class:_.pG("ytCardViewModelTopContent",(D.ytCardViewModelInnerPadding=function(){return!G.data().disableTopContentPadding&&G.data().topContent},D))},_.v(_.VX,{data:function(){return G.data().topContent}},{contentListItemViewModel:function(L){return _.v(_.rQ8,{data:L.data})},
basicContentViewModel:_.xa5,linearLayoutViewModel:_.IY})),_.v("div",{class:_.pG("ytCardViewModelInlineTrailingAction",(k.ytCardViewModelInlineCenterTrailingAction=h,k.ytCardViewModelInlineTrailingActionMargin=function(){return G.data().trailingAction},k))},_.v(_.VX,{data:function(){return G.data().trailingAction}},{buttonViewModel:function(L){return _.v(_.sQ,{data:L.data})}})))}}),_.v("div",{class:_.pG((V.ytCardViewModelInnerPadding=function(){return!G.data().disableBodyContentPadding&&G.data().bodyContent},
V))},_.v(_.VX,{data:function(){return G.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.YYj,
contentListItemViewModel:_.rQ8,descriptionPreviewViewModel:_.Pe,inlineExpanderViewModel:function(D){return _.v(Ws9,{data:D.data,isSelected:G.isSelected})},
linearLayoutViewModel:_.IY,listItemViewModel:_.G2},q&&{contentSectionViewModel:q})))),_.v(_.Q,{cond:function(){return I()},
then:function(){return _.v("div",{class:"ytCardViewModelOverlayTrailingAction"},_.v(_.VX,{data:function(){return G.data().trailingAction}},{buttonViewModel:function(D){return _.v(_.sQ,{data:D.data})}}))}}))}))},"Yh");var Yb3=_.C(function(G){var b=G.data,I=G.onSelected,h=G.selectedKey,q=G.groupName;G=G.className;var l=_.e(_.ZZ(!1,void 0,"mDtSad")),V=l.next().value,D=l.next().value,k=function(){if(h!==void 0){var L=h();return!(!L||b().key!==L)}return V()};
l=_.Xu(function(L){I?I(L.currentTarget,b(),q==null?void 0:q()):D(!V())});
return _.v("yt-selectable-item-view-model",{class:_.pG("ytSelectableItemViewModelHost",G,"ytSelectableItemViewModelContainer"),"on:click":l,"prop:checked":k},_.v(_.VX,{data:function(){return b().content}},{cardViewModel:function(L){return _.v(_.N4W,{data:L.data,
isSelected:k})}}))},"Zh");_.Cmf=_.C(function(G){var b=G.data;var I=G.onSelected;var h=G.selectedKey;var q=G.groupName;var l=function(){return(q==null?void 0:q())||b().key};
return _.v("yt-radio-button-group-view-model",{class:_.pG("ytRadioButtonGroupViewModelHost",G.className)},_.v("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.v(_.VX,{data:function(){return b().radioButtons}},{radioButtonItemViewModel:function(V){return _.v(yQY,{data:V.data,
onSelected:I,selectedKey:h,groupName:l})},
selectableItemViewModel:function(V){return _.v(Yb3,{data:V.data,onSelected:I,selectedKey:h,groupName:l})}})))},"$h");var JQY=_.C(function(G){_.K3(function(){if(G.controlledMode()&&G.data().defaultSelected)_.K1(Error("ak"));else{var l;!G.controlledMode()&&((l=G.selected)==null?0:l.call(G))&&_.K1(Error("bk"))}});
var b=_.e(_.bk(function(){if(!G.controlledMode())return G.data().defaultSelected})),I=b.next().value,h=b.next().value,q=function(){if(!G.controlledMode())return I();
var l;return(l=G.selected)==null?void 0:l.call(G)};
return _.v("yt-checkbox-item-view-model",{class:_.pG("ytCheckboxItemViewModelHost",G.className)},_.v(_.G2,{data:function(){var l=G.data(),V=q();return{title:l.text,subtitle:l.subtext,superlabel:l.superlabel,isSelected:!!V,isDisabled:l.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!G.controlledMode()&&h(!I());var l,V;(V=G.onTap)==null||V.call(G,!!q(),G.data(),(l=G.groupName)==null?void 0:l.call(G))},
isCompact:G.isCompact}))},"ai");var Ksa=_.C(function(G){var b=G.data;var I=G.controlledMode;var h=G.selectedKeys;var q=G.onItemTap;var l=G.groupName;var V=function(){return(l==null?void 0:l())||b().key};
_.K3(function(){I()&&b().defaultSelectedKeys?_.K1(Error("ck")):!I()&&(h==null?0:h())&&_.K1(Error("dk"))});
G=_.e(_.bk(function(){if(!I())return b().defaultSelectedKeys}));
var D=G.next().value,k=G.next().value,L=function(x,f,T){x=[];!I()&&f.key&&(x=sLa(f.key,D()||[]),k(x));q==null||q(f,x,T)};
return _.v("yt-checkbox-group-view-model",{class:_.pG("ytCheckboxGroupViewModelHost")},_.v("fieldset",{class:_.pG("ytCheckboxGroupViewModelFieldset")},_.v(_.VX,{data:function(){return b().checkboxes}},{checkboxItemViewModel:function(x){var f=x.data;
return _.v(JQY,{data:f,controlledMode:!0,selected:function(){var T=I()?(h==null?void 0:h())||[]:D()||[],B=f().key;return B?T.includes(B):!1},
onTap:L,groupName:V})}})))},"bi");var z6=_.C(function(G){var b=_.lA(gVW,_.a9(function(){var D;return(D=G.data())==null?void 0:D.noteFeedEntityKey},"")),I=_.lA(Yzf,_.a9(function(){var D;
return(D=G.data())==null?void 0:D.userRatingEntityKey},"")),h=_.U("enable_user_rating_web"),q=function(){var D,k,L;
return((D=b())==null?0:D.contributorNote)?(k=b())==null?void 0:k.contributorNote:(L=G.data())==null?void 0:L.existingNote},l=function(){var D,k;
return!!I()&&!!Ab9((D=I())==null?void 0:D.helpfulnessValue,(k=G.data())==null?void 0:k.noteData)};
if(h){var V={};return _.v("yt-note-view-model",{class:_.pG("ytNoteViewModelHostUserRating",(V.ytNoteViewModelHostUserRatingPublishedNote=function(){var D,k,L,x;return((D=G.data())==null?void 0:(k=D.noteData)==null?void 0:k.isPublished)&&!((L=G.data())==null?0:(x=L.noteData)==null?0:x.isUserRatingForm)},V))},_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.v(_.Q,{cond:function(){var D,k;
return(D=G.data())==null?void 0:(k=D.noteData)==null?void 0:k.isPinned},
then:function(){return _.v(_.ha,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.v(_.Q,{cond:function(){var D,k;return(D=G.data())==null?void 0:(k=D.noteData)==null?void 0:k.isPublished},
then:function(){return _.v(_.ha,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.v(_.VX,{data:function(){var D;
return(D=G.data())==null?void 0:D.metadata}},{contentMetadataViewModel:_.sR}),_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var D,k;
return(k=_.g((D=G.data())==null?void 0:D.metadata,_.g95))==null?void 0:k.delimiter}),_.v(_.IS,{text:function(){var D;
return(D=q())==null?void 0:D.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.v(_.Q,{cond:function(){var D,k;return!((D=G.data())==null?0:(k=D.noteData)==null?0:k.isUserRatingForm)},
then:function(){return _.v(_.VX,{data:function(){var D,k,L,x,f,T,B,A=!!((D=G.data())==null?0:(k=D.noteData)==null?0:k.isPinned);D=l();k=(L=G.data())==null?void 0:L.noteData;L=(x=b())==null?void 0:(f=x.contributorNote)==null?void 0:f.deleteAction;x=(T=G.data())==null?void 0:T.overflowButtonNoteWithRatingOnTapOverride;T=(B=G.data())==null?void 0:B.overflowButton;var t;B=(t=_.g(T,_.j6))==null?void 0:t.accessibilityText;return A?MW1(k,L,B):D?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:x,accessibilityText:B}}:T}},{buttonViewModel:function(D){return _.v(_.sQ,{data:D.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.v("div",{class:"ytNoteViewModelNoteContent"},_.v(_.IS,{text:function(){var D;
return(D=q())==null?void 0:D.text}})),_.v(_.Q,{cond:function(){var D,k,L,x;
return!((D=G.data())==null?0:(k=D.noteData)==null?0:k.isPinned)&&!((L=G.data())==null?0:(x=L.noteData)==null?0:x.isUserRatingForm)},
then:function(){return _.v(_.Q,{cond:l,then:function(){return _.v("div",{class:"ytNoteViewModelUserRatingContainer"},_.v(_.IS,{text:function(){var D,k;return Ab9((D=I())==null?void 0:D.helpfulnessValue,(k=G.data())==null?void 0:k.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.v(_.VX,{data:function(){var D;return(D=G.data())==null?void 0:D.userRatingButton}},{buttonViewModel:function(D){return _.v(_.sQ,{data:D.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.v(_.Q,{cond:function(){var D,k,L,x;
return!((D=G.data())==null?0:(k=D.noteData)==null?0:k.ignoreDivider)&&!((L=G.data())==null?0:(x=L.noteData)==null?0:x.isUserRatingForm)},
then:function(){return _.v("div",{class:"ytNoteViewModelDivider"},_.v(_.VX,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(D){return _.v(_.maB,{data:D.data})}}))}}))}return _.v("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.v(_.Q,{cond:function(){var D,k;return(D=G.data())==null?void 0:(k=D.noteData)==null?void 0:k.isPinned},
then:function(){return _.v(_.ha,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.v(_.Q,{cond:function(){var D,k;return(D=G.data())==null?void 0:(k=D.noteData)==null?void 0:k.isPublished},
then:function(){return _.v(_.ha,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.v(_.Q,{cond:function(){return h},
then:function(){return _.v(_.VX,{data:function(){var D;return(D=G.data())==null?void 0:D.metadata}},{contentMetadataViewModel:function(D){return _.v(_.sR,{data:D.data})}})}}),_.v(_.IS,{text:function(){var D,k;
return(D=G.data())==null?void 0:(k=D.noteData)==null?void 0:k.headerText}}),_.v("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.v(_.IS,{text:function(){var D,k;
return(D=G.data())==null?void 0:(k=D.noteData)==null?void 0:k.delimiter}})),_.v(_.IS,{text:function(){var D,k;
return(D=b())==null?void 0:(k=D.contributorNote)==null?void 0:k.publishedTimeText}})),_.v(_.VX,{data:function(){var D,k,L;
return MW1((D=G.data())==null?void 0:D.noteData,(k=b())==null?void 0:(L=k.contributorNote)==null?void 0:L.deleteAction)}},{buttonViewModel:function(D){return _.v(_.sQ,{data:D.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.v("div",{class:"ytNoteViewModelNoteContent"},_.v(_.IS,{text:function(){var D,k;
return(D=b())==null?void 0:(k=D.contributorNote)==null?void 0:k.text}})))},"ci");
z6.idomCompat=!0;_.JN(_.C(function(G){var b=_.a9(function(){var W;return(W=G.data())==null?void 0:W.flowStateEntityKey},""),I=_.lA(_.aG,b),h=_.lA(gVW,_.a9(function(){var W;
return(W=G.data())==null?void 0:W.noteFeedEntityKey},"")),q=_.e(_.bk(function(){var W;
return(W=_.g(G.data().helpfulnessValue,_.pB))==null?void 0:W.defaultSelectedKey})),l=q.next().value,V=q.next().value;
q=_.e(_.bk(function(){var W,O,K;return(K=_.g((W=_.g(G.data().helpfulnessValue,_.pB))==null?void 0:(O=W.radioButtons)==null?void 0:O.find(function(u){var w;return((w=_.g(u,bU8))==null?void 0:w.key)===l()}),bU8))==null?void 0:K.value}));
var D=q.next().value,k=q.next().value;q=_.e(_.bk(function(){var W;return(W=_.g(G.data().helpfulReasons,GmK))==null?void 0:W.defaultSelectedKeys}));
var L=q.next().value,x=q.next().value;q=_.e(_.bk(function(){var W;return(W=_.g(G.data().notHelpfulReasons,GmK))==null?void 0:W.defaultSelectedKeys}));
var f=q.next().value,T=q.next().value,B=function(W,O){V(O.key);k(O.value);x([]);T([])},A=function(){var W,O;
return((W=D())==null?void 0:W.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((O=D())==null?void 0:O.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},t=function(){var W,O;
return((W=D())==null?void 0:W.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((O=D())==null?void 0:O.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},y=function(W){ZJf(W.key,L,x)},F=function(W){ZJf(W.key,f,T)};
_.K3(function(){var W,O,K;a83((W=G.data())==null?void 0:(O=W.userRatingFormSchema)==null?void 0:O.id,{isValid:function(){return!!l()},
formData:function(){var u=D(),w=zDL(L(),_.g(G.data().helpfulReasons,GmK)),$a=zDL(f(),_.g(G.data().notHelpfulReasons,GmK));u={helpfulnessValue:u==null?void 0:u.noteHelpfulnessValue};if(w){u.helpfulReasons=[];w=_.e(w);for(var ev=w.next();!ev.done;ev=w.next()){ev=ev.value;var LO=void 0;if((LO=ev)==null?0:LO.noteHelpfulReason)LO=void 0,u.helpfulReasons.push((LO=ev)==null?void 0:LO.noteHelpfulReason)}}if($a)for(u.notHelpfulReasons=[],$a=_.e($a),w=$a.next();!w.done;w=$a.next())if(w=w.value,ev=void 0,(ev=
w)==null?0:ev.noteNotHelpfulReason)ev=void 0,u.notHelpfulReasons.push((ev=w)==null?void 0:ev.noteNotHelpfulReason);return{userRatingFormData:u}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(K=_.g(I(),J_3))==null?void 0:K.submitFormParams},onSubmitResult:function(){var u,w=(u=_.g(I(),J_3))==null?void 0:u.userRatingEntityKey,$a;u={key:w,helpfulnessValue:($a=D())==null?void 0:$a.noteHelpfulnessValue};w&&_.W5(_.Da("contextNoteUserRatingEntityPayload",w,u));var ev;w=(ev=G.data())==null?void 0:ev.viewNoteFlowStepId;var LO;if((LO=h())==null||!LO.contributorNote){var td;w=(td=G.data())==null?void 0:td.zeroStateFlowStepId}(ev=
Object.assign({},I()))&&w&&(ev.currentStepId=w,ev.stepIdStack=[w],_.W5(_.Da("flowStateEntity",b(),ev)));var xa;(ev=(xa=G.data())==null?void 0:xa.ratingSubmittedSnackbarCommand)&&_.Zm(ev)},
disableDuringSubmission:!0})});
return _.v("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.v(_.VX,{data:function(){var W=_.g(I(),J_3);if(W){var O;var K={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:W==null?void 0:(O=W.note)==null?void 0:O.headerText}]}],delimiter:"\u2022"}},existingNote:W.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else K=void 0;return K}},{noteViewModel:function(W){return _.v("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.v(z6,{data:W.data}))}}),_.v(_.VX,{data:function(){var W;
return(W=G.data())==null?void 0:W.helpfulnessValue}},{radioButtonGroupViewModel:function(W){return _.v("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.v(_.Cmf,{data:W.data,
onSelected:B,selectedKey:l}))}}),_.v(_.Q,{cond:A,
then:function(){return _.v("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.v("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.v(_.IS,{text:function(){var W;return(W=G.data())==null?void 0:W.helpfulReasonQuestion}})),_.v(_.VX,{data:function(){var W;
return(W=G.data())==null?void 0:W.helpfulReasons}},{checkboxGroupViewModel:function(W){return _.v(Ksa,{data:W.data,
onItemTap:y,selectedKeys:L,controlledMode:!0})}}))}}),_.v(_.Q,{cond:t,
then:function(){return _.v("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.v("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.v(_.IS,{text:function(){var W;return(W=G.data())==null?void 0:W.notHelpfulReasonQuestion}})),_.v(_.VX,{data:function(){var W;
return(W=G.data())==null?void 0:W.notHelpfulReasons}},{checkboxGroupViewModel:function(W){return _.v(Ksa,{data:W.data,
onItemTap:F,selectedKeys:f,controlledMode:!0})}}))}}),_.v(_.Q,{cond:function(){return!A()&&!t()},
then:function(){return _.v(_.VX,{data:function(){var W;return(W=G.data())==null?void 0:W.helpfulNoteFeatures}},{alertBannerViewModel:function(W){return _.v("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.v(_.Lx8,{data:W.data}))}})}}))},"di"),"yt-note-user-rating-view-model",{props:{data:_.hV}});_.JN(z6,"yt-note-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=_.lA(gVW,_.a9(function(){var I;return(I=G.data())==null?void 0:I.noteFeedEntityKey},""));
return _.v("yt-notes-wrapper-view-model",{class:_.pG("ytNotesWrapperViewModelHost")},_.v(_.Q,{cond:function(){var I,h,q;return!((I=G.data())==null||!I.existingNotes)||!((h=G.data())==null||!h.currentNote)&&!((q=b())==null||!q.contributorNote)},
then:function(){return _.v(_.xz,null,_.v(_.VX,{data:function(){var I,h,q,l;return((h=_.g((I=G.data())==null?void 0:I.currentNote,KLL))==null?0:(q=h.noteData)==null?0:q.isPublished)?(l=G.data())==null?void 0:l.currentNote:void 0}},{noteViewModel:function(I){return _.v(z6,{data:I.data})}}),_.v(_.VX,{data:function(){var I;
return(I=G.data())==null?void 0:I.existingNotes}},{noteViewModel:function(I){var h=I.data;
return _.v(_.Q,{cond:function(){var q,l;return(q=h())==null?void 0:(l=q.noteData)==null?void 0:l.isPublished},
then:function(){return _.v(z6,{data:h})}})}}),_.v(_.VX,{data:function(){var I,h,q,l,V;
return((h=_.g((I=G.data())==null?void 0:I.currentNote,KLL))==null?0:(q=h.noteData)==null?0:q.isPublished)||(l=b())==null||!l.contributorNote?void 0:(V=G.data())==null?void 0:V.currentNote}},{noteViewModel:function(I){return _.v(z6,{data:I.data})}}),_.v(_.VX,{data:function(){var I;
return(I=G.data())==null?void 0:I.existingNotes}},{noteViewModel:function(I){var h=I.data;
return _.v(_.Q,{cond:function(){var q,l;return!((q=h())==null?0:(l=q.noteData)==null?0:l.isPublished)},
then:function(){return _.v(z6,{data:h})}})}}))},
else:function(){return _.v(_.VX,{data:function(){var I;return(I=G.data())==null?void 0:I.zeroStateData}},{contributorZeroStateViewModel:iw9})}}))},"ei"),"yt-notes-wrapper-view-model",{props:{data:_.hV}});var oh=_.C(function(G){var b=_.N5(G,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),I=b.label,h=b.text,q=b.placeholder,l=b.hint;G=b.rows;var V=b.overflowStyle,D=b.outline,k=b.disabled,L=b.disableNewLines,x=b.characterLimit,f=b.validation,T=b.onInput,B=_.ee("textarea");b=_.e(_.bk(function(){return h()}));
var A=b.next().value,t=b.next().value;b=_.e(_.ZZ(!1,void 0,"u9PDq"));var y=b.next().value,F=b.next().value,W=function(){F(!0)},O=function(){F(!1)};
_.K3(function(){var W2=B.value,is=V(),su=A();is==="expand-vertically"&&su&&oV3(W2);B.value.addEventListener("focusin",W);B.value.addEventListener("focusout",O)});
_.uI(function(){B.value.removeEventListener("focusin",W);B.value.removeEventListener("focusout",O)});
var K=function(){var W2;return(W2=f())==null?void 0:W2.validate(A())},u=function(){return x()&&!K()&&A().length>x().maxChars},w=function(){return!!K()||u()};
b=_.Xu(function(W2){if(!W2.currentTarget)return!1;W2=W2.currentTarget;t(W2.value);V()==="expand-vertically"&&oV3(W2);T==null||T(W2.value);return!0});
var $a=_.Xu(function(W2){L()&&W2.key==="Enter"&&W2.preventDefault();return!1}),ev=_.Xu(function(){B.value.focus()}),LO=function(){return q()||I()},td={},xa={},Uj={};
return _.v("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.v("div",{class:_.pG("ytStandardsTextareaShapeTextareaContainer",(td.ytStandardsTextareaShapeTextareaContainerOutline=D,td.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=k,td.ytStandardsTextareaShapeTextareaContainerOutlineError=w,td)),"on:click":ev},_.v("label",{class:_.pG("ytStandardsTextareaShapeLabel",(xa.ytStandardsTextareaShapeLabelFocused=y,xa.ytStandardsTextareaShapeLabelDisabled=k,xa.ytStandardsTextareaShapeLabelError=
function(){return w()&&!k()},xa.ytStandardsTextareaShapeLabelHidden=function(){return!y()&&!A()&&!!LO()},xa))},I),_.v("div",{class:_.pG("ytStandardsTextareaShapePlaceholder",(Uj.ytStandardsTextareaShapePlaceholderVisible=function(){return!y()&&!A()},Uj)),
"aria-hidden":"true"},LO),_.v("textarea",{el:B,class:"ytStandardsTextareaShapeTextarea",rows:G,disabled:k,placeholder:LO,"on:input":b,"on:keydown":$a},A)),_.v(_.Q,{cond:function(){return l()&&!w()},
then:function(){var W2={};return _.v("div",{class:_.pG("ytStandardsTextareaShapeHint",(W2.ytStandardsTextareaShapeHintDisabled=k,W2))},_.v("div",{class:"ytStandardsTextareaShapeHintHintMessage"},l))}}),_.v(_.Q,{cond:K,
then:function(){return _.v(uoL,{disabled:k},_.v("div",{class:"ytStandardsTextareaShapeErrorMessage"},K))}}),_.v(_.Q,{cond:x,
then:function(W2){return _.v(_.Q,{cond:u,then:function(){return _.v(uoL,{disabled:k},_.v("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return W2().errorMessage}),_.v("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return A().length+"/"+W2().maxChars}))}})}}))},"fi");
oh.idomCompat={callbacks:{onInput:!0}};var uoL=_.C(function(G){var b={};return _.v("div",{class:_.pG("ytStandardsTextareaShapeError",(b.ytStandardsTextareaShapeErrorDisabled=G.disabled,b)),role:"alert"},_.v(_.ha,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),G.children)},"gi");_.RA9=_.C(function(G){var b=G.data;return _.v("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.v(oh,{text:G.text,label:function(){var I;return(I=b().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=b().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=b().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=b().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=b().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:G.disabled,disableNewLines:function(){var I;return(I=b().displayProperties)==null?void 0:I.disableNewLines},
onInput:G.onInput,characterLimit:G.characterLimit,validation:G.validation,rows:function(){var I;return(I=b().displayProperties)==null?void 0:I.rows}}))},"hi");_.nSj=_.C(function(G){var b=G.data;return _.v("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.v(oh,{text:G.text,label:function(){var I;return(I=b().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=b().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=b().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=b().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=b().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var I;return(I=b().displayProperties)==null?void 0:I.disableNewLines},
onInput:G.onInput,characterLimit:G.characterLimit,validation:G.validation,rows:function(){var I;return(I=b().displayProperties)==null?void 0:I.rows}}))},"ii");var Owj=_.C(function(G){var b=_.e(_.bk(function(){var LO,td;return((LO=G.data().structuredContextNoteFormSchema)==null?0:(td=LO.initialValues)==null?0:td.noteBody)?G.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),I=b.next().value,h=b.next().value;
b=_.e(_.bk(function(){G.data();return!1}));
var q=b.next().value,l=b.next().value;b=_.e(_.bk(function(){G.data();return!1}));
var V=b.next().value,D=b.next().value;b=_.e(_.bk(function(){var LO,td;return((LO=G.data().structuredContextNoteFormSchema)==null?0:(td=LO.initialValues)==null?0:td.timestamp)?G.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var k=b.next().value,L=b.next().value;b=_.e(_.bk(function(){G.data();return!1}));
var x=b.next().value,f=b.next().value;b=_.e(_.bk(function(){var LO,td;return((LO=G.data().structuredContextNoteFormSchema)==null?0:(td=LO.initialValues)==null?0:td.sources)?[G.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var T=b.next().value,B=b.next().value;b=_.e(_.bk(function(){G.data();return!1}));
var A=b.next().value,t=b.next().value;b=_.e(_.bk(function(){return!1}));
var y=b.next().value,F=b.next().value;_.K3(function(){var LO;_.Naa((LO=G.data().structuredContextNoteFormSchema)==null?void 0:LO.id,{isSubmitting:y,onSubmit:function(){F(!0);var td=a18(I(),k(),T(),G.data()),xa=_.LL().resolve(_.xW);td&&xa&&xa.resolveCommand(td,{commandController:{onSuccess:function(){F(!1)}}})},
isValid:function(){return q()&&!V()&&!x()&&!A()}})});
var W=function(LO){if(LO!==void 0&&(h(LO),!q()&&LO.length>0&&l(!0),q())){var td=dhL(G.data());if(td){var xa=td.minLength;td=td.maxLength;xa&&LO.length<xa?D(!0):td&&LO.length>td?D(!0):D(!1)}}},O=function(LO){if(LO!==void 0){L(LO);
if(LO.length>0){var td,xa,Uj,W2,is=rbf((td=G.data())==null?void 0:(xa=td.structuredContextNoteFormSchema)==null?void 0:(Uj=xa.fieldSchemas)==null?void 0:(W2=Uj.timestamp)==null?void 0:W2.validationSchema);if(is&&(td=is.regex)&&!(new RegExp(td)).test(LO)){f(!0);return}}f(!1)}},K=function(LO){if(LO!==void 0){var td=LO.split(/[ \n]/).map(function(xa){return xa.trim()});
B(td);if(LO.length>0)for(LO=_.e(td),td=LO.next();!td.done;td=LO.next())if(!WH9(td.value)){t(!0);return}t(!1)}},u=function(){return{validate:function(LO){if(q()){var td=dhL(G.data());
if(td){var xa=td.minLength;td=td.translations;if(xa&&LO.length<xa)return td==null?void 0:td.minLengthErrorMessage}}}}},w=function(){var LO=dhL(G.data()),td=LO==null?void 0:LO.maxLength,xa;
LO=LO==null?void 0:(xa=LO.translations)==null?void 0:xa.maxLengthErrorMessage;if(td&&LO)return{maxChars:td,errorMessage:LO}},$a=function(){return{validate:function(LO){if(LO){var td,xa,Uj,W2,is=rbf((td=G.data())==null?void 0:(xa=td.structuredContextNoteFormSchema)==null?void 0:(Uj=xa.fieldSchemas)==null?void 0:(W2=Uj.timestamp)==null?void 0:W2.validationSchema);
if(is&&(td=is.regex,is=is.translations,td&&!(new RegExp(td)).test(LO)))return is==null?void 0:is.regexErrorMessage}}}},ev=function(){return{validate:function(LO){if(LO){var td,xa,Uj,W2,is=HJL((td=G.data())==null?void 0:(xa=td.structuredContextNoteFormSchema)==null?void 0:(Uj=xa.fieldSchemas)==null?void 0:(W2=Uj.sources)==null?void 0:W2.validationSchema);
if(is&&(td=is.translations,td==null?0:td.selectedErrorMessage))for(LO=LO.split(/[ \n]/).map(function(su){return su.trim()}),LO=_.e(LO),xa=LO.next();!xa.done;xa=LO.next())if(!WH9(xa.value))return LO=void 0,(LO=td)==null?void 0:LO.selectedErrorMessage}}}};
return _.v("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.v("div",{class:"ytStructuredContextNoteViewModelTextField"},_.v(_.VX,{data:function(){var LO;return(LO=G.data())==null?void 0:LO.noteContents}},{textFormFieldViewModel:function(LO){return _.v(_.nSj,{data:LO.data,
onInput:W,validation:u,characterLimit:w})},
textFieldViewModel:function(LO){return _.v(_.RA9,{data:LO.data,onInput:W,validation:u,characterLimit:w})}})),_.v("div",{class:"ytStructuredContextNoteViewModelTextField"},_.v(_.VX,{data:function(){var LO;
return(LO=G.data())==null?void 0:LO.noteTimestamp}},{textFormFieldViewModel:function(LO){return _.v(_.nSj,{data:LO.data,
onInput:O,validation:$a})},
textFieldViewModel:function(LO){return _.v(_.RA9,{data:LO.data,onInput:O,validation:$a})}})),_.v("div",{class:"ytStructuredContextNoteViewModelTextField"},_.v(_.VX,{data:function(){var LO;
return(LO=G.data())==null?void 0:LO.noteSources}},{textFormFieldViewModel:function(LO){return _.v(_.nSj,{data:LO.data,
onInput:K,validation:ev})},
textFieldViewModel:function(LO){return _.v(_.RA9,{data:LO.data,onInput:K,validation:ev})}})))},"ji");
Owj.idomCompat=!0;_.JN(Owj,"yt-structured-context-note-view-model",{props:{data:_.hV}});var wje=_.C(function(G){var b=_.e(_.bk(function(){var l;if((l=G.controlled)==null?0:l.call(G))return[];var V;return(((V=G.data())==null?void 0:V.chips)||[]).map(function(D){D=_.g(D,_.lz);if(D==null?0:D.selected)return N29(D.chipValue)}).filter(function(D){return D!==void 0})})),I=b.next().value,h=b.next().value,q=function(l){var V=N29(l.chipValue);
if(V!==void 0){var D;if((D=G.controlled)==null?0:D.call(G))return void G.controlled().onTap(V);l=I().includes(V)?[].concat(_.Nz(I().filter(function(L){return L!==V}))):[].concat(_.Nz(I()),[V]);
h(l);var k;if((k=G.uncontrolled)==null?0:k.call(G))G.uncontrolled().onUpdate(l)}};
return _.v("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.v(_.aj,{each:function(){return G.data().chips||[]}},function(l){return _.v("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.v(_.r9O,{data:function(){return _.g(l,_.lz)},
selected:function(){var V;if(V=_.g(l,_.lz)){var D=N29(V.chipValue);if(D!==void 0){var k;V=((k=G.controlled)==null?0:k.call(G))?G.controlled().selectedValues.includes(D):I().includes(D)}else V=void 0}else V=!1;return V},
callback:q}))}))},"ki");var ESK=_.C(function(G){var b=G.data;var I=function(){var D;return((D=b())==null?void 0:D.flowStateKey)||""},h=_.lA(_.aG,I),q=function(){var D;
return(D=_.g(h(),u8a))==null?void 0:D.chips},l=function(D){if(D!==void 0){var k=q()||[];
k=k.find(function(L){return L===D})?k.filter(function(L){return L!==D}):[].concat(_.Nz(k),[D]);
k=Object.assign({},h(),{feedbackFormFlowState:Object.assign({},_.g(h(),u8a),{chips:k})});_.W5(_.Da("flowStateEntity",I(),k))}},V=function(){var D;
return _.g((D=b())==null?void 0:D.inputBox,R3a)};
G=_.A8(function(D){var k=V();k=!(k==null?0:k.maxChars)||D.length<=k.maxChars;D=Object.assign({},h(),{feedbackFormFlowState:Object.assign({},_.g(h(),u8a),{detail:D}),abuseReportFlowState:Object.assign({},_.g(h(),E7),{navigationEnabled:k})});_.W5(_.Da("flowStateEntity",I(),D))},150);
return _.v("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.v("div",{class:"ytFeedbackFormViewModelChips"},_.v(_.VX,{data:function(){var D;return(D=b())==null?void 0:D.chipSelection}},{chipSelectionFormFieldViewModel:function(D){return _.v(wje,{data:D.data,
controlled:function(){return{selectedValues:q()||[],onTap:l}}})}})),_.v("div",{class:"ytFeedbackFormViewModelInputBox"},_.v(oh,{text:function(){var D;
return(D=_.g(h(),u8a))==null?void 0:D.detail},
placeholder:function(){var D;return((D=V())==null?void 0:D.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var D=V();if(D&&D.maxChars)return{maxChars:D.maxChars,errorMessage:D.maxCharsExceededErrorMessage||""}},
onInput:G})),_.v("div",{class:"ytFeedbackFormViewModelFooterText"},_.v(_.IS,{text:function(){return b().footerText}})))},"li");
ESK.idomCompat=!0;_.JN(ESK,"yt-feedback-form-view-model",{props:{data:_.hV}});var pjL=_.C(function(G){var b=G.data;var I=_.lA(Wtj,function(){return b().flowStateKey||""}),h=function(){var q;
_.Zm((q=_.g(I(),E7))==null?void 0:q.navigationCommand)};
return _.v("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.v("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.v(_.VX,{data:function(){return b().cancelButton}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:h})}}),_.v(_.VX,{data:function(){var q;
if(b().navButton){var l=Object;var V=l.assign,D=_.g(b().navButton,_.j6),k=((q=_.g(I(),E7))==null?0:q.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",L,x;q=_.g((L=_.g(I(),E7))==null?void 0:L.navigationCommand,_.U0);L=(x=_.g(q,_.bx))==null?void 0:x.url;l={buttonViewModel:V.call(l,{},D,{state:k,iconName:L?"OPEN_IN_NEW":""})}}else l=void 0;return l}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:h})}})))},"mi");
pjL.idomCompat=!0;_.JN(pjL,"yt-report-form-bottom-bar-view-model",{props:{data:_.hV}});var SbY=_.C(function(G){var b=G.nextStep;return _.v("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.v("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.v(_.ha,{icon:function(){return b().iconName||""}})),_.v("div",null,_.v(_.IS,{text:function(){return b().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ni"),XjF=_.C(function(G){var b=G.data;
var I,h=(I=_.LL().resolve(_.vf(_.Pv)))==null?void 0:I(),q=_.lA(_.aG,function(){return b().flowStateKey||""});
return _.v("yt-report-form-confirmation-page-view-model",{class:function(){var l;return((l=_.g(q(),E7))==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.v("div",{class:function(){var l;
return((l=_.g(q(),E7))==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.v(_.Fu,{data:function(){return h&&b().imageDark?b().imageDark:b().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.v("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.v("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return b().confirmationHeader}),_.v("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.v(_.IS,{text:function(){return b().confirmationText}})),_.v("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.v(_.IS,{text:function(){return b().lawEnforcementText}})),
_.v("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return b().whatToExpectHeader}),_.v(_.Q,{cond:function(){return b().nextSteps},
then:function(l){return _.v("div",null,_.v(_.aj,{each:l},function(V){return _.v(SbY,{nextStep:V})}))}}),_.v(_.Q,{cond:function(){return b().legalReportText},
then:function(l){return _.v("div",null,_.v(_.IS,{text:l,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"oi");
XjF.idomCompat=!0;_.JN(XjF,"yt-report-form-confirmation-page-view-model",{props:{data:_.hV}});var $e8=_.C(function(G){var b=G.data;var I=function(){var l;return((l=_.g(b().inputBox,R3a))==null?void 0:l.maxChars)||500},h=function(){return b().flowStateKey||""},q=_.lA(_.aG,h);
G=_.A8(function(l){l=Object.assign({},q(),{flowFormState:{isValid:l.length<=I()},abuseReportFlowState:{userComments:l,navigationEnabled:!(l.length>I()),isReportFormDirty:!0}});_.H5().dispatch(_.BR("flowStateEntity",h(),l))},150);
_.K3(function(){var l=Object.assign({},q(),{flowFormState:{isValid:!0}});_.H5().dispatch(_.BR("flowStateEntity",h(),l))});
return _.v("yt-report-form-details-page-view-model",{class:function(){var l;return((l=_.g(q(),E7))==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.v("h1",{class:function(){var l;
return((l=_.g(q(),E7))==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return b().detailsPageHeader}),_.v("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.v(_.IS,{text:function(){return b().bodyText}})),_.v("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.v(oh,{label:function(){var l;
return((l=_.g(b().inputBox,R3a))==null?void 0:l.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var l;return{errorMessage:((l=_.g(b().inputBox,R3a))==null?void 0:l.maxCharsExceededErrorMessage)||"",maxChars:I()}},
onInput:G})))},"pi");
$e8.idomCompat=!0;_.JN($e8,"yt-report-form-details-page-view-model",{props:{data:_.hV}});var G91=_.C(function(G){var b=G.data;var I=function(){return b().flowStateKey||""},h=_.lA(_.aG,I),q=function(){return _.g(h(),E7)};
return _.v("yt-report-form-reason-select-page-view-model",{class:function(){var l;return((l=q())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.v("h1",{class:function(){var l;
return((l=q())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return b().pageHeader}),_.v("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.v(_.IS,{text:function(){return b().bodyText}})),_.v("div",{class:function(){var l;
return((l=q())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.v(_.Cmf,{data:function(){return _.g(b().radioButtonGroup,_.pB)},
onSelected:function(l,V){l=Object.assign({},h(),{abuseReportFlowState:Object.assign({},q(),{reasonKey:V.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:V.command})});_.W5(_.Da("flowStateEntity",I(),l))},
selectedKey:function(){var l;return(l=q())==null?void 0:l.reasonKey},
groupName:"report-form-reason-select-page"})))},"qi");
G91.idomCompat=!0;_.JN(G91,"yt-report-form-reason-select-page-view-model",{props:{data:_.hV}});var bXD=_.C(function(G){var b=G.data;var I,h=(I=_.LL().resolve(_.vf(_.Pv)))==null?void 0:I();return _.v("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.v("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.v(_.Fu,{data:function(){return h&&b().imageDark?b().imageDark:b().image},
alt:""})),_.v("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.v("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return b().header}),_.v(_.IS,{text:function(){return b().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"ri");
bXD.idomCompat=!0;_.JN(bXD,"yt-report-form-sign-in-page-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;var I=_.m2(_.ajW.talkToRecsStateSelector),h=function(){return b().titleSuperscript},q=function(){return b().answersShelf},l=function(){return b().videoShelf},V=function(){var $a;
return($a=b().textInputPlaceholder)==null?void 0:$a.content},D=function(){return b().showOpenTextInput},k=function(){var $a;
return($a=b().textInputValue)==null?void 0:$a.content},L=function(){return b().isMultiTurnFlow?b().resetButtonViewModel:void 0},x="",f=function(){return b().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
G=_.e(_.ZZ("",void 0,"wOgRlf"));var T=G.next().value,B=G.next().value;G=_.e(_.ZZ(!1,void 0,"TYP5Ff"));var A=G.next().value,t=G.next().value,y=function(){return{state:A()||T()?"active":"disabled",disabled:!(A()||T())}};
_.JC(function(){if(D()){k()&&B(k());var $a;if(!L()&&(($a=I())==null?0:$a.stepStates)){var ev;$a=Object.keys((ev=I())==null?void 0:ev.stepStates);ev=$a[$a.length-1];var LO,td;ev=(LO=I().stepStates[ev])==null?void 0:(td=LO.userQuery)==null?void 0:td.userQuery;_.W5(_.aPc());ev&&F(ev)}}});
var F=function($a){var ev=b().onUpdateText;ev&&_.Zm(ev,{form:{userQuery:$a}});B($a)},W=_.A8(function($a){F($a.target.value.trim())},150),O=_.Xu(function($a){var ev;
x=(ev=$a.target.value)==null?void 0:ev.trim();W($a);return!1}),K=_.Xu(function($a){$a.key==="Enter"&&(A()||T())&&(F($a.target.value.trim()),w());
return!1}),u=function($a,ev){t(ev);
if(ev){if(b().isMultiTurnFlow&&!x){var LO;F((LO=$a==null?void 0:$a.text)!=null?LO:"")}b().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&w()}else B(x)},w=function(){var $a=void 0,ev=_.g(b().nextButtonViewModel,_.j6),LO,td;
if(ev==null?0:(LO=ev.loggingDirectives)==null?0:(td=LO.clientVeSpec)==null?0:td.uiType){var xa,Uj;$a=_.Xs((xa=ev.loggingDirectives)==null?void 0:(Uj=xa.clientVeSpec)==null?void 0:Uj.uiType)}(ev=b().onNextStepCommand)&&_.Zm(ev,{clickedVisualElement:$a})};
G={};return _.v("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.v("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.v(_.VX,{data:function(){return b().topCornerButton}},{buttonViewModel:_.sQ})),_.v("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.v("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.v(_.IS,{text:function(){return b().title}}),_.v(_.Q,{cond:h,
then:function(){return _.v("sup",{class:"ytwTalkToRecsSuperScript"},_.v(_.IS,{text:h}))}})),_.v("div",{class:"ytwTalkToRecsSubtitle"},_.v(_.IS,{text:function(){return b().subtitle}})),_.v("div",{class:"ytwTalkToRecsResultsShelf"},_.v(_.Q,{cond:q,
then:function(){return _.v(_.VX,{data:q},{chipsShelfViewModel:function($a){return _.v("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.v(_.de,{data:$a.data,callback:u,selectionBehavior:f}))}})}}),_.v(_.Q,{cond:l,
then:function(){return _.v(_.VX,{data:l},{horizontalShelfViewModel:function($a){return _.v("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.v(_.qF,{data:$a.data,thumbnailAspectRatio:0}))}})}})),_.v("div",{class:_.pG("ytwTalkToRecsRefinementContainer",(G.ytwTalkToRecsBottomMargin=function(){return b().isMultiTurnFlow},G))},_.v(_.Q,{cond:D,
then:function(){return _.v("div",{class:"ytwTalkToRecsUserInputBox"},_.v("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:V,value:T,"on:input":O,"on:keyup":K,maxlength:200}))}}),_.v(_.VX,{data:function(){return b().isMultiTurnFlow?b().nextButtonViewModel:void 0}},{buttonViewModel:function($a){return _.v("div",{class:"ytwTalkToRecsFlowControlButtons"},_.v(_.sQ,{data:$a.data,
buttonOverrides:y}))}}),_.v(_.VX,{data:L},{buttonViewModel:function($a){return _.v("div",{class:"ytwTalkToRecsFlowControlButtons"},_.v(_.sQ,{data:$a.data,
onClick:function(){var ev=_.g(b().resetButtonViewModel,_.j6);F(T());(ev=ev==null?void 0:ev.onTap)&&_.Zm(ev)}}))}}))))},"ti"),"yt-talk-to-recs-view-model",{props:{data:_.hV}});var YiK={sources:[{clientResource:{imageName:"CHECK"}}]};_.ILf=_.C(function(G){var b=_.ee("div");G=_.N5(G,{error:void 0});var I=G.data,h=G.error,q=G.onSelected;G=_.e(_.bk(function(){return KH9(I())}));
var l=G.next().value,V=G.next().value;OJ3(I,function(T){V(T);var B,A,t=JbF((B=I().options)==null?void 0:(A=B[T])==null?void 0:A.value,I().type);q==null||q(t);b.value.focus()});
G=_.Xu(function(){if(!I().disabled){var T=I(),B=l(),A=b.value;T.options&&(T=C41(T.options,B,T.label),_.LL().resolve(_.K9).openSheet({viewModel:T},A))}});
var D=_.J0O(),k=function(){return!!h()},L=function(){return!!I().disabled},x={},f={};
return _.v("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.v("div",{class:_.pG("ytDropdownViewModelDropdownContainer",(x.ytDropdownViewModelDropdownContainerErrorBorder=k,x.ytDropdownViewModelDropdownContainerDisabled=L,x)),"on:click":G,el:b,role:"combobox",tabindex:0,"on:keydown":D,"aria-invalid":k,"aria-disabled":L,"aria-describedby":function(){return k()?"dropdown-view-model-error":void 0}},_.v("div",{class:"ytDropdownViewModelText"},uIW(I,k,l),RDK(I,l)),_.v("div",{class:_.pG("ytDropdownViewModelChevronDown",
(f.ytDropdownViewModelChevronDownDisabled=L,f))},_.v(_.ha,{icon:"CHEVRON_DOWN"}))),nVj(I,h))},"ui");_.JN(_.C(function(G){var b=G.data;var I=function(q){var l=EVa(b());l.videoMetadata||(l.videoMetadata={});l.videoMetadata.sponsorshipsMetadata||(l.videoMetadata.sponsorshipsMetadata={});l.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(q)},h=function(q){var l=EVa(b());
l.scheduledRedirectMetadata||(l.scheduledRedirectMetadata={});l.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(q)};
return _.v("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.v("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.v("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.v(_.IS,{text:function(){return b().title}}),_.v(_.ha,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.v(_.IS,{text:function(){return b().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.v(_.VX,{data:function(){return b().tierChoices}},{dropdownViewModel:function(q){return _.v("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.v(_.ILf,{data:q.data,
onSelected:I}))}}),_.v(_.VX,{data:function(){return b().startTimeChoices}},{dropdownViewModel:function(q){return _.v("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.v(_.ILf,{data:q.data,
onSelected:h}))}}),_.v(_.IS,{text:function(){return b().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.v("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.v(_.VX,{data:function(){return b().scheduleButton}},{panelFooterViewModel:_.tD})))},"vi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;G=G.className===void 0?"":G.className;var I=_.lA(Wtj,function(){return b().flowStateEntityKey||""}),h={};
h=_.pG("ytFlowBottomBarViewModelFlowBottomBarButtons",(h.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},h));
var q={},l=_.pG("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",h,(q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},q));
q={};var V=_.pG("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",h,(q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},q));
h={};h=_.pG("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(h.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},h.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},h.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
h));
G=_.pG("ytFlowBottomBarViewModelHost",G);return _.v("yt-flow-bottom-bar-view-model",{class:G},_.v(_.Q,{cond:function(){var D;return(D=b())==null?void 0:D.textSection},
then:function(D){return _.v("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.v(_.IS,{text:D}))}}),_.v("div",{class:h},_.v(_.VX,{data:function(){return b().secondaryButton}},{buttonViewModel:function(D){return _.v(_.sQ,{data:D.data,
className:V})}}),_.v(_.VX,{data:function(){return b().primaryButton}},{buttonViewModel:function(D){return _.v(_.sQ,{data:D.data,
className:l,buttonOverrides:function(){var k;return{disabled:!((k=I())==null||!k.primaryButtonDisabled)}}})}})))},"wi"),"yt-flow-bottom-bar-view-model",{props:{data:_.hV,
className:_.No}});var hha="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),iJ=function(){var G=_.a.apply(this,arguments)||this;G.enableScrollingFix=!0;G.bottomBar=!1;G.fitContent=!1;return G};
_.M(iJ,_.a);_.m=iJ.prototype;_.m.ready=function(){_.U("enable_pdp_icon_prefetch")&&_.FL8(_.LL().resolve(_.Vr),0,hha)};
_.m.focus=function(G){this.topBar?_.jG(this.topBar,G):this.paperDialog.focus(G)};
_.m.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19443_scroller&&(this.JSC$19443_scroller.dialogElement=this.paperDialog,this.JSC$19443_scroller.attached&&typeof this.JSC$19443_scroller.attached==="function"&&this.JSC$19443_scroller.attached())};
_.m.onDataChanged=function(){var G;this.fitContent=!((G=this.data)==null||!G.fitContent);var b;this.bottomBar=!((b=this.data)==null||!b.bottomBar)};
_.m.onProgressChanged=function(){var G,b,I=((b=(G=this.data)==null?void 0:G.progress)!=null?b:0)*100;this.progressElement.style.width=I+"%"};
_.m.isProgressHidden=function(){var G;return!((G=this.data)==null?0:G.progress)};
_.m.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"}}}}}};
iJ.prototype.onProgressChanged=iJ.prototype.onProgressChanged;iJ.prototype.onDataChanged=iJ.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],iJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],iJ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],iJ.prototype,"enableScrollingFix",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],iJ.prototype,"bottomBar",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],iJ.prototype,"fitContent",void 0);_.R([_.lH("#progress"),_.n("design:type",HTMLElement)],iJ.prototype,"progressElement",void 0);_.R([_.lH("#scroller"),_.n("design:type",Object)],iJ.prototype,"JSC$19443_scroller",void 0);_.R([_.lH("ytd-flow-top-bar-renderer"),_.n("design:type",HTMLElement)],iJ.prototype,"topBar",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iJ.prototype,"onDataChanged",null);_.R([_.q5("data.progress"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iJ.prototype,"onProgressChanged",null);_.R([_.N({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],iJ);
_.J(iJ,"ytd-flow-step-renderer",function(){if(zZK!==void 0)return zZK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return zZK=G},{mode:1});var Pl=function(G){this.resolveCommand=G;this.steps={}},qo3=function(G,b){b=_.e(b||[]);
for(var I=b.next();!I.done;I=b.next()){I=I.value;var h=Object.values(I)[0],q=void 0;if((q=h)==null?0:q.stepId)G.steps[h.stepId]=I}},lLW=function(G,b){var I,h,q,l,V;
return _.c(function(D){if((I=G.state)==null||!I.currentStepId)return D.return(void 0);h=G.getCurrentStep();if(!h)return D.return(j_8(G));if(q=_.g(h,_.Yf))G.logVEScreen(q),((l=q)==null?0:l.onStepStartCommand)&&G.resolveCommand((V=q)==null?void 0:V.onStepStartCommand,{});q&&b&&(G.logFlowEvent(q,b),b.steps&&!b.steps.includes(h)&&b.steps.push(h));return D.return(h)})};
Pl.prototype.back=function(){var G;(G=this.state)!=null&&G.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Pl.prototype.handleUpdateFlowCommand=function(G){G.steps&&qo3(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)};
Pl.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var j_8=function(G){return _.c(function(b){return G.getFlowContinuationCommand?b.return(new Promise(function(I){G.awaitFlowContinuation=I;G.getFlowContinuationCommand&&G.resolveCommand(G.getFlowContinuationCommand,{flow_state:G.state})})):b.return(Promise.resolve(void 0))})};
Pl.prototype.getCurrentStep=function(){var G;if((G=this.state)!=null&&G.currentStepId)return this.steps[this.state.currentStepId]};
Pl.prototype.logVEScreen=function(G){var b;((b=G.screenLoggingData)==null?0:b.screenVeType)&&_.oa(_.qo(),G.screenLoggingData.screenVeType)};
Pl.prototype.logFlowEvent=function(G,b){var I,h,q,l;((I=b.flowLoggingData)==null?0:I.eventNamespace)&&((h=G.flowEventData)==null?0:h.eventType)&&((q=G.flowEventData)==null?0:q.eventMetadata)&&((l=b.flowLoggingData)==null?0:l.flowType)&&(G=_.bg(b.flowLoggingData.eventNamespace,G.flowEventData.eventType,G.flowEventData.eventMetadata),_.I_().logFlowEvent(G,b.flowLoggingData.flowType))};
_.kV.Object.defineProperties(Pl.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(b,I){I.key&&I.value&&(b[I.key]=I.value);return b},{})}}});var dw=function(){var G=_.a.apply(this,arguments)||this;G.flowState=_.U("web_use_flow_state_manager")?void 0:new Pl(function(b,I){I=I===void 0?{}:I;_.Xv.instance.resolveCommand(b,{form:{form:I,element:G.hostElement}})});
G.JSC$19454_flowStateManager=_.U("web_use_flow_state_manager")?_.LL().resolve(_.Pu):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};
_.M(dw,_.a);_.m=dw.prototype;_.m.onPopupClosed=function(G){if(!G||this.hostElement===G.detail.popupRenderer){if(this.JSC$19454_flowStateManager){var b;((b=this.data)==null?0:b.flowStateEntityKey)&&this.JSC$19454_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.m.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"}}}};
_.m.focus=function(G){var b=this;_.iH(function(){var I=_.Eo(b.hostElement).querySelector("ytd-flow-step-renderer");(I==null?0:I.topBar)?I.focus(G):b.topBar&&_.jG(b.topBar,G)},1)};
_.m.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.m.computeTopBarHidden=function(G){var b;return!((b=_.g(G,_.Yf))==null||!b.topBarOverride)};
_.m.onCurrentFlowChange=function(){if(this.JSC$19454_flowStateManager&&this.data&&this.flow){var G=oc8(this.JSC$19454_flowStateManager,this.data),b;G&&((b=this.flow)==null?0:b.currentStepId)&&(di8(G,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.m.observeData=function(){var G=this;if(this.JSC$19454_flowStateManager){var b=this.currentTargetId,I,h,q=(h=(I=this.data)==null?void 0:I.targetId)!=null?h:"";b!==q&&b&&ivY(this.JSC$19454_flowStateManager,b);this.currentTargetId=q;this.data&&PUc(oc8(this.JSC$19454_flowStateManager,this.data),function(l){l&&(G.initialState=!1,G.currentFlowStep={flowStepRenderer:l},G.isLoading=!G.currentFlowStep,G.autofocusAndRefit(),G.updateContainsTalkToRecs(),G.logVEScreen(),G.logFlowEvent())})}};
_.m.dataChanged=function(){var G=this,b,I;return _.c(function(h){if(h.nextAddress==1){if(!G.flowState)return h.return();((b=G.data)==null?0:b.steps)&&qo3(G.flowState,G.data.steps);if((I=G.data)==null?0:I.flowContinuationCommand){var q=G.flowState,l=G.data.flowContinuationCommand;l&&(q.getFlowContinuationCommand=l)}return h.yield(lLW(G.flowState,G.data),2)}G.currentFlowStep=h.yieldResult;_.ip(h)})};
_.m.flowChanged=function(){var G=this,b;return _.c(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(lLW(G.flowState,G.data),2)}b=I.yieldResult;if(!b||G.flow.isLoading)return I.return();G.currentFlowStep=b;G.initialState=!1;G.isLoading=!1;G.autofocusAndRefit();G.updateContainsTalkToRecs();_.ip(I)})};
_.m.logVEScreen=function(){var G,b,I=(G=_.g(this.currentFlowStep,_.Yf))==null?void 0:(b=G.screenLoggingData)==null?void 0:b.screenVeType;I&&_.oa(_.LL().resolve(_.aS),I)};
_.m.logFlowEvent=function(){var G=_.g(this.currentFlowStep,_.Yf),b,I,h,q,l,V;(this==null?0:(b=this.data)==null?0:(I=b.flowLoggingData)==null?0:I.eventNamespace)&&(this==null?0:(h=this.data)==null?0:(q=h.flowLoggingData)==null?0:q.flowType)&&(G==null?0:(l=G.flowEventData)==null?0:l.eventType)&&(G==null?0:(V=G.flowEventData)==null?0:V.eventMetadata)&&(G=_.bg(this.data.flowLoggingData.eventNamespace,G.flowEventData.eventType,G.flowEventData.eventMetadata),_.I_().logFlowEvent(G,this.data.flowLoggingData.flowType))};
_.m.updateContainsTalkToRecs=function(){var G,b=(G=_.g(this.currentFlowStep,_.Yf))==null?void 0:G.content;this.containsTalkToRecs=!!b&&!!_.g(b,S3Y)};
_.m.autofocusAndRefit=function(){var G=this,b=_.LL().resolve(_.vf(_.v6)),I=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),h=document.querySelector("yt-report-form-confirmation-page-view-model"),q=document.querySelector("yt-report-form-details-page-view-model"),l=document.querySelector("yt-report-form-reason-select-page-view-model"),V=document.querySelector("yt-contributor-zero-state-view-model"),
D=document.querySelector("yt-structured-context-note-view-model"),k=document.querySelector("yt-note-view-model");(!I&&b&&b.isKeyBoardInUse()||h||!I&&q||!I&&l||!I&&(V||D||k))&&_.l6(this.hostElement);_.D1(this,function(){_.O3(G.hostElement,"yt-refit")})};
_.m.handleUpdateFlowCommand=function(G){this.flowState?this.data&&(G=_.g(G,_.DZn),G.targetId===this.data.targetId&&(G.flowContinuationCommand&&(this.data.flowContinuationCommand=G.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(G),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(G)};
_.m.handleFlowNextStepCommand=function(G){this.JSC$19454_flowStateManager?this.ytComponentBehavior.resolveCommand(G):this.data&&this.flow&&this.flow.key&&(G=_.g(G,_.lfb),G.targetId===this.data.targetId&&(G=G.stepId||"",this.ytdReduxBehavior.dispatch(_.BR("flowStateEntity",this.flow.key,{currentStepId:G,stepIdStack:(this.flow.stepIdStack||[]).concat(G)}))))};
_.m.handleFlowPrevStepCommand=function(G){if(this.JSC$19454_flowStateManager)this.ytComponentBehavior.resolveCommand(G);else if(this.data&&this.flow&&this.flow.key&&(G=_.g(G,_.mZA),G.targetId===this.data.targetId)){var b=[].concat(_.Nz(this.flow.stepIdStack||[]));b.length>1?(b.pop(),this.ytdReduxBehavior.dispatch(_.BR("flowStateEntity",this.flow.key,{currentStepId:b[b.length-1],stepIdStack:b}))):G.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(G.onFirstStepCommand)}};
_.m.handleYpcCancelRecurrenceCommand=function(G){if(this.data&&this.flow&&this.flow.key&&(G=_.g(G,IEe),G.targetId===this.data.targetId&&G.endpointCommand)){var b=_.g(this.flow,hZj);b&&_.g(G.endpointCommand,_.ssn)&&(_.g(G.endpointCommand,_.ssn).feedbackData=b.surveyFeedback);this.ytComponentBehavior.resolveCommand(G.endpointCommand)}};
_.m.handlePartialUpdateFlowStateEntity=function(G){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.BR("flowStateEntity",this.flow.key,G,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
dw.prototype.flowChanged=dw.prototype.flowChanged;dw.prototype.dataChanged=dw.prototype.dataChanged;dw.prototype.observeData=dw.prototype.observeData;dw.prototype.onCurrentFlowChange=dw.prototype.onCurrentFlowChange;dw.prototype.onPopupClosed=dw.prototype.onPopupClosed;_.R([_.z(_.wN),_.n("design:type",Object)],dw.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],dw.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],dw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],dw.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],dw.prototype,"initialState",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],dw.prototype,"isLoading",void 0);_.R([_.H(),_.n("design:type",Object)],dw.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],dw.prototype,"currentFlowStep",void 0);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],dw.prototype,"onPopupClosed",null);
_.R([_.H({selectorArgs:["data.flowStateEntityKey"],selector:Wtj}),_.n("design:type",Object)],dw.prototype,"flow",void 0);_.R([_.lH("ytd-flow-top-bar-renderer"),_.n("design:type",HTMLElement)],dw.prototype,"topBar",void 0);_.R([_.q5("data","flow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dw.prototype,"onCurrentFlowChange",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dw.prototype,"observeData",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],dw.prototype,"dataChanged",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],dw.prototype,"containsTalkToRecs",void 0);_.R([_.Dd("flow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],dw.prototype,"flowChanged",null);_.R([_.N({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],dw);
_.me8=_.R9()(dw,"ytd-flow-root-renderer",function(){if(tX8!==void 0)return tX8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return tX8=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var ehf;var O7=null;_.JN(_.C(function(G){return _.v("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.v("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.v(_.IS,{text:function(){return G.data().text}}),_.v("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"xi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.hV}});var VLe=_.C(function(G){var b=G.playerControlsProps;var I=G.isShortsPage;return _.v("yt-bigboard",null,_.v(_.Q,{cond:function(){return b().isDragging},
then:function(){return _.v("div",{class:"ytBigboardStoryboardHost"},_.v(_.pzW,{progressBarProps:b,isShortsPage:I}))}}))},"yi");
VLe.idomCompat=!0;_.yH={ACCOUNT_LABEL:wf("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:wf("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:wf("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:wf("AD_BADGE_HINT"),AD_BADGE_TEXT:wf("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:wf("ALL_CHANNELS_LABEL"),AMBIENT_MODE:wf("AMBIENT_MODE"),AMBIENT_MODE_OFF:wf("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:wf("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:wf("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:wf("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:wf("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:wf("APP_UPSELL_TITLE"),AUDIO_TRACK:wf("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:wf("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:wf("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:wf("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:wf("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:wf("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:wf("AUTO_ZOOM","Auto zoom"),BACK:wf("BACK"),CANCEL:wf("CANCEL"),CHANNEL_SWITCHER_LABEL:wf("CHANNEL_SWITCHER_LABEL"),CLOSE:wf("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:wf("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:wf("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:wf("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:wf("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:wf("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:wf("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:wf("COMMENT_MODAL_CONTENT"),CONFIRM_OK:wf("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:wf("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:wf("COPIED_TO_CLIPBOARD"),COPY:wf("COPY"),COPY_DEBUG_INFO:wf("COPY_DEBUG_INFO"),COPY_EMBED_CODE:wf("COPY_EMBED_CODE"),
COPY_LINK_LABEL:wf("COPY_LINK_LABEL"),COPY_VIDEO_URL:wf("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:wf("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:wf("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:wf("DELETE_FROM_DOWNLOADS"),DIALOG:wf("DIALOG"),DONE:wf("DONE"),DOWNLOAD:wf("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:wf("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:wf("FLAG_CONFIRM"),FLAG_CONTENT:wf("FLAG_CONTENT"),FLAG_LABEL:wf("FLAG_LABEL"),FLAG_TITLE:wf("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:wf("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:wf("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:wf("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:wf("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:wf("HIDE_SEARCH_FILTERS_LABEL"),HOME:wf("HOME","Home"),INVALID_RESPONSE_RECEIVED:wf("INVALID_RESPONSE_RECEIVED"),LIBRARY:wf("LIBRARY","Library"),LISTENING:wf("LISTENING"),LOADING:wf("LOADING"),LONG_PRESS_MIC_TO_SPEAK:wf("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:wf("LOOP"),MENU_DESKTOP:wf("MENU_DESKTOP"),
MENU_EXIT:wf("MENU_EXIT"),MENU_FEEDBACK:wf("MENU_FEEDBACK"),MENU_HELP:wf("MENU_HELP"),MENU_IMPRESSUM:wf("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:wf("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:wf("MENU_SETTINGS"),MENU_SIGN_IN:wf("MENU_SIGN_IN"),MENU_TITLE:wf("MENU_TITLE"),MENU_YOUR_DATA:wf("MENU_YOUR_DATA"),MORE_INFO:wf("MORE_INFO"),MORE_OPTIONS:wf("MORE_OPTIONS"),MUTE_VOLUME:wf("MUTE_VOLUME"),NEW_PLAYLIST:wf("NEW_PLAYLIST"),NEXT_VIDEO:wf("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:wf("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:wf("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:wf("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:wf("NOT_FOUND_TITLE"),NO_DOWNLOADS:wf("NO_DOWNLOADS"),NO_MIC_INPUT:wf("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:wf("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:wf("OOPS_MESSAGE"),OPEN_APP:wf("OPEN_APP"),OPEN_YOUTUBE:wf("OPEN_YOUTUBE"),PAUSE:wf("PAUSE"),PLAY:wf("PLAY"),PLAYER_CAPTION:wf("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:wf("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:wf("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:wf("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:wf("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:wf("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:wf("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:wf("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:wf("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:wf("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:wf("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:wf("PLAYER_MINIMIZE"),PLAYER_NEXT:wf("PLAYER_NEXT"),PLAYER_PAUSE:wf("PLAYER_PAUSE"),PLAYER_PLAY:wf("PLAYER_PLAY"),
PLAYER_PREVIOUS:wf("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:wf("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:wf("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:wf("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:wf("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:wf("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:wf("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:wf("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:wf("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:wf("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:wf("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:wf("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:wf("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:wf("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:wf("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:wf("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:wf("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:wf("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:wf("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:wf("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:wf("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:wf("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:wf("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:wf("PLAY_ALL"),PLEASE_FIX_ERRORS:wf("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:wf("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:wf("PREVIOUS_VIDEO"),PRIVACY_POLICY:wf("PRIVACY_POLICY"),RELOAD:wf("RELOAD"),REQUIRED_LABEL:wf("REQUIRED_LABEL"),SAVE_PLAYLIST:wf("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:wf("SCRUB_SLIDE_USER_EDU"),SEARCH:wf("SEARCH","Search"),
SEARCH_APPEND_LABEL:wf("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:wf("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:wf("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:wf("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:wf("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:wf("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:wf("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:wf("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:wf("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:wf("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:wf("SEEK_SLIDER"),SETTINGS_LABEL:wf("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:wf("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:wf("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:wf("SHOW_LESS"),SHOW_MORE:wf("SHOW_MORE"),SHOW_PLAYER_CONTROLS:wf("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:wf("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:wf("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:wf("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:wf("SIGN_IN_ON_WEB"),STABLE_VOLUME:wf("STABLE_VOLUME"),STABLE_VOLUME_OFF:wf("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:wf("STABLE_VOLUME_ON"),STATS_FOR_NERDS:wf("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:wf("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:wf("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:wf("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:wf("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:wf("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:wf("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:wf("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:wf("TIMESTAMP_SECONDS"),TOGGLE_OFF:wf("TOGGLE_OFF"),TOGGLE_ON:wf("TOGGLE_ON"),TRENDING:wf("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:wf("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:wf("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:wf("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:wf("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:wf("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:wf("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:wf("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:wf("VIDEO_LINK_LABEL")};var Dea=_.C(function(G){var b=G.playerApi;G=_.ee("button",function(h){_.df(h,36843)});
var I=wf("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.v("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.v("button",{el:G,class:"ytPlayerControlsJumpForwardButtonButton",title:I,"aria-label":I,"on:click":_.Xu(function(){_.yr(36843);b&&b().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.v("span",null,_.v(_.ha,{icon:"FAST_FORWARD"}))))},"zi");var cLf=_.C(function(G){var b=G.appApi;G=_.ee("button",function(h){_.df(h,62946)});
var I=wf("OPEN_IN_MINIPLAYER");return _.v("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.v("button",{el:G,class:"ytMiniplayerButtonButton",title:I,"aria-label":I,"on:click":_.Xu(function(){_.yr(62946);var h,q;(q=(h=b()).openInMiniplayer)==null||q.call(h);return!1})},_.v(_.ha,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Ai");var k9c=_.C(function(G){var b=G.playerApi;G=_.ee("button",function(l){_.df(l,142812)});
var I=_.e(_.ZZ(!1,void 0,"eOMRAb")),h=I.next().value,q=I.next().value;I=function(){return wf("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(h()?1:2)})};
return _.v("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.v("button",{el:G,class:"ytPlaybackSpeedButtonButton",title:I,"aria-label":I,"on:click":_.Xu(function(){_.yr(142812);if(b){var l=b(),V=h();l.setPlaybackRate(V?1:2);q(!h())}return!1})},_.v("span",null,_.v(_.ha,{icon:function(){return h()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Bi");var vne=_.C(function(G){var b=G.title;var I=G.ariaLabel;var h=G.icon;var q=G.command;var l=G.visualElementId;G=_.ee("button",function(V){l&&_.df(V,l())});
return _.v("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.v("button",{el:G,class:"ytdThumbnailOverlayButtonButton",title:b,"aria-label":I,"on:click":_.Xu(function(){l&&_.yr(l());q&&_.LL().resolve(_.xW).resolveCommand(q())})},_.v(_.ha,{icon:h})))},"Ci");var NN="";var LuY=_.C(function(G){var b=G.playerControlsProps,I=G.onClickFn;G=_.P$(function(){var l=b(),V=-1;l.captionsAvailable&&(V=l.captionsEnabled?1:0);return V},void 0,"MZ0Wqe");
var h=_.P$(function(){var l=b();return l.captionsAvailable?_.qP(l.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.qP("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),q=_.P$(function(){var l=b();
l=l.captionsAvailable?l.captionsEnabled:void 0;return l},void 0,"fhuQRe");
return _.v("yt-closed-captions-toggle-button",null,_.v(_.FtW,{captionIconType:G,ariaLabel:h,ariaPressed:q,onClick:function(l){var V=b();if(V.captionsAvailable){var D=V.playerApi;if(D){var k=V.playerApi;if(k){var L=NN;if(L){k=k.getOption("captions","track");var x;NN=(x=k?k.displayName:null)!=null?x:L}else _.P9(k)?(L=_.iIO(k),NN=L.length?(x=Cxe(L))?x.displayName:L[0].displayName:""):NN=""}JUe(D);_.U("mweb_disable_set_state_captions_killswitch")&&V.setState({captionsEnabled:!V.captionsEnabled})}}var f,
T;(T=(f=V.appApi).showCaptionsToggleToast)==null||T.call(f,V);I==null||I(l)},
isOverlay:!0}))},"Di");var Q_Y=_.C(function(G){var b=G.data;return _.v("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.v(_.$9,{data:function(){return{type:17,text:_.WcX(b().label)}}}))},"Ei");var xej=_.C(function(G){var b=_.pG("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 _.v("animated-seek-arrows",{class:_.pG("ytPlayerControlsAnimatedSeekArrowsHost")},_.v("span",{class:b}),_.v("span",{class:b}),_.v("span",{class:b}))},"Fi");
xej.idomCompat=!0;var fLe=_.C(function(){var G=_.qP("PLAYER_SECONDS",{seconds_placeholder:"30"}),b=_.e(_.ZZ(!1,void 0,"iRJu8c")),I=b.next().value,h=b.next().value,q=_.e(_.ZZ(!1,void 0,"MPnizf"));b=q.next().value;var l=q.next().value;q={};var V=_.pG("jumpForwardOverlayOverlay",(q.jumpForwardOverlayOverlayHidden=b,q));_.K3(function(){var D=null,k=null,L=function(){D!==null&&_.fW().cancelJob(D);k!==null&&_.fW().cancelJob(k);l(!0);h(!0);_.O0(_.fW(),function(){l(!1)});
D=_.O0(_.fW(),function(){l(!0);k=_.O0(_.fW(),function(){h(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",L);_.uI(function(){window.removeEventListener("jump-forward-clicked",L)})});
return _.v("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.v(_.Q,{cond:I,then:function(){return _.v("div",{class:V},_.v(xej,{direction:1,size:"large"}),_.v("div",null,G))}}))},"Gi");var TqL=_.yH.MUTE_VOLUME,Bqj=_.yH.UNMUTE_VOLUME,UeK=_.C(function(G){var b=G.muteIconType;var I=G.onClick;var h=G.useOutlineIcon;var q=G.useDelhiIcons;G=_.ee("button",function(D){_.df(D,28662)});
var l=function(){var D=b(),k=h==null?void 0:h(),L=q==null?void 0:q(),x="",f="";switch(D){case -1:case 0:x=k?"VOLUME_OFF":L?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";f=Bqj;break;case 1:x=k?"VOLUME_UP_OUTLINE":L?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";f=TqL;break;case 2:x=k?"VOLUME_DOWN_OUTLINE":L?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";f=TqL;break;default:_.Eu(D)}return{iconName:x,ariaLabel:f}},V=function(){return l().ariaLabel};
return _.v("ytm-mute-button",{class:"ytmMuteButtonHost"},_.v("button",{el:G,class:"ytmMuteButtonButton",title:V,"aria-label":V,"on:click":_.Xu(function(D){_.yr(28662);I==null||I(D);return!1})},_.v("span",null,_.v(_.ha,{icon:function(){return l().iconName}}))))},"Hi");var s_3=_.C(function(G){var b=G.volumeProps;var I=G.onClickFn;var h=G.useOutlineIcon;var q=G.useDelhiIcons;return _.v("yt-mute-toggle-button",null,_.v(UeK,{muteIconType:function(){var l=b();return l.volumeMuted||l.volume===0?0:l.volume>50?1:2},
onClick:function(l){var V=b().playerApi;V&&(V.isMuted()?V.unMute():V.mute(!1));I==null||I(l)},
useOutlineIcon:function(){return!(h==null||!h())},
useDelhiIcons:function(){return!(q==null||!q())}}))},"Ii");
s_3.idomCompat=!0;var gnL=_.C(function(G){var b=G.data;var I=_.ee("ytm-paid-content-overlay-renderer");return _.v("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:I,"on:animationend":_.Xu(function(){I.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.v(_.LP,{command:function(){return b().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.v(_.Q,{cond:function(){var h;return(h=b().icon)==null?void 0:h.iconType},
then:function(){return _.v("span",null,_.v(_.ha,{icon:function(){var h;return(h=b().icon)==null?void 0:h.iconType}}))}}),_.v("div",{class:"ytmPaidContentOverlayText"},_.v(_.IS,{text:function(){return b().text}})),_.v(_.Q,{cond:function(){return b().navigationEndpoint},
then:function(){return _.v(_.ha,{icon:"CHEVRON_RIGHT"})}})))},"Ji");
gnL.idomCompat=!0;var c_L=[].concat(_.Nz([{register:function(G){var b=s3D(G),I;(I=G().playerApi)==null||I.addEventListener("onVolumeChange",b);return function(){}}},
{register:function(G){var b=gcD(G);G=G().playerApi;G==null||G.addEventListener("captionschanged",b);G==null||G.addEventListener("captionssettingschanged",b);G==null||G.addEventListener("onCaptionsTrackListChanged",b);return function(){}}}]),[{register:function(G){var b=fPe(G),I;
(I=G().playerApi)==null||I.addEventListener("onStateChange",b);return function(){}}},
{register:function(G){var b=TL1(G),I;(I=G().playerApi)==null||I.addEventListener("onPlaybackRateChange",b);return function(){}}},
{register:function(G){var b=BLL(G),I;(I=G().playerApi)==null||I.addEventListener("onVideoDataChange",b);return function(){}}},
{register:function(G){var b=Ui1(G),I,h;(I=G())==null||(h=I.playerApi)==null||h.addEventListener("onVideoProgress",b);return function(){}}}]);var AL5=_.C(function(G){var b=G.data;var I=function(){return _.qP("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+b().playbackRate})};
return _.v(_.Q,{cond:function(){return b().playbackRate&&b().playbackRate!==1},
then:function(){return _.v("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.v("div",{class:"ytPlaybackRateOverlayOverlay"},_.v(xej,{direction:1,size:"small"}),_.v("div",{class:"ytPlaybackRateOverlayLabel"},I)))}})},"Li");var MLa=_.C(function(G){var b=G.data;return _.v("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.v(_.Q,{cond:function(){var I,h=(I=b())==null?void 0:I.playerResponse,q;return h==null?void 0:(q=h.paidContentOverlay)==null?void 0:q.paidContentOverlayRenderer},
then:function(I){return _.v(gnL,{data:I})}}))},"Ni"),ZXW=_.C(function(G){var b=G.props;
var I=G.data;var h=G.options;var q=function(){var L,x,f,T;return(L=I())==null?void 0:(x=L.playerResponse)==null?void 0:(f=x.playerConfig)==null?void 0:(T=f.inlinePlaybackConfig)==null?void 0:T.showAudioControls},l=function(){var L,x;
if(q()&&((L=h())==null?void 0:(x=L.additionalButton)==null?void 0:x.button)!==void 0){var f,T,B;L=(f=I())==null?void 0:(T=f.playerApi)==null?void 0:(B=T.getSize())==null?void 0:B.height;if(!(L===void 0||L<180)){var A,t;return(A=h())==null?void 0:(t=A.additionalButton)==null?void 0:t.button}}},V=function(){var L,x;
return(L=h())==null?void 0:(x=L.additionalButton)==null?void 0:x.thumbnailOverlayButtonRenderers},D=function(){var L,x;
return(L=h())==null?void 0:(x=L.additionalButton)==null?void 0:x.thumbnailOverlayButtonViewModels},k=function(){var L=[_.v(s_3,{volumeProps:b})],x;
((x=h())==null?0:x.hideCaptionsToggleButton)||L.push(_.v(LuY,{playerControlsProps:b}));l()===1&&L.push(_.v(Dea,{playerApi:function(){return b().playerApi}}));
l()===2&&L.push(_.v(cLf,{appApi:function(){return b().appApi}}));
l()===3&&L.push(_.v(k9c,{playerApi:function(){return b().playerApi}}));
x=V();if(l()===4&&x){x=_.e(x);for(var f=x.next(),T={};!f.done;T={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$50:void 0,command$jscomp$603:void 0},f=x.next()){f=f.value;T.tooltip$jscomp$2=f.tooltip;var B=void 0,A=void 0;T.ariaLabel$jscomp$19=((B=f.accessibility)==null?void 0:(A=B.accessibilityData)==null?void 0:A.label)||T.tooltip$jscomp$2;B=void 0;T.icon$jscomp$50=(B=f.icon)==null?void 0:B.iconType;T.command$jscomp$603=f.command;T.tooltip$jscomp$2&&T.ariaLabel$jscomp$19&&T.icon$jscomp$50&&
L.push(_.v(vne,{title:function(t){return function(){return t.tooltip$jscomp$2}}(T),
ariaLabel:function(t){return function(){return t.ariaLabel$jscomp$19}}(T),
icon:function(t){return function(){return t.icon$jscomp$50}}(T),
command:function(t){return function(){return t.command$jscomp$603}}(T)}))}}x=D();
if(l()===4&&x)for(x=_.e(x),f=x.next(),T={};!f.done;T={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$604:void 0,trackingParamsVeType:void 0},f=x.next())f=f.value,T.tooltip$jscomp$3=f.title,T.ariaLabel$jscomp$20=f.accessibilityText||T.tooltip$jscomp$3,T.icon$jscomp$51=f.iconName,T.command$jscomp$604=_.s0(f.onTap),A=B=void 0,T.trackingParamsVeType=((B=f.loggingDirectives)==null?0:B.trackingParams)?(A=pqD(_.Sv(f.loggingDirectives.trackingParams)))==null?void 0:
_.LT(A,2):void 0,T.tooltip$jscomp$3&&T.ariaLabel$jscomp$20&&T.icon$jscomp$51&&L.push(_.v(vne,{title:function(t){return function(){return t.tooltip$jscomp$3}}(T),
ariaLabel:function(t){return function(){return t.ariaLabel$jscomp$20}}(T),
icon:function(t){return function(){return t.icon$jscomp$51}}(T),
command:function(t){return function(){return t.command$jscomp$604}}(T),
visualElementId:function(t){return function(){return t.trackingParamsVeType}}(T)}));
return L};
return _.v(_.Q,{cond:q,then:function(){return _.v("div",{class:"ytInlinePlayerControlsTopRightControls"},_.v(_.aj,{each:k},function(L){return _.v("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.v("div",{class:"ytInlinePlayerControlsButtonIcon"},L))}))}})},"Oi"),onj=_.C(function(G){var b=G.props;
var I=G.data;var h=G.options;G={};G=_.pG("ytInlinePlayerControlsBottomRightControls",(G.ytInlinePlayerControlsBottomRightControlsHidden=function(){var q;return Mu5(I(),h())&&((q=h())==null?void 0:q.insetProgressBar)&&(b().isHovering||b().isDragging)},G));
return _.v("div",{class:G},_.v(tLF,{data:I}),_.v(_.Q,{cond:function(){var q;return!((q=h())==null?0:q.hideTimeDisplay)},
then:function(){return _.v(zhc,{props:b,data:I})}}))},"Pi"),tLF=_.C(function(G){var b=G.data;
return _.v(_.VX,{data:function(){var I;return Vua((I=b())==null?void 0:I.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Q_Y})},"Qi"),zhc=_.C(function(G){var b=G.props;
var I=G.data;return _.v(_.Q,{cond:function(){return b().isLive},
then:function(){return _.v(iX9,{props:b,data:I})},
else:function(){return _.v(PgF,{props:b,data:I})}})},"Ri"),PgF=_.C(function(G){var b=G.props;
var I=G.data;var h=_.P$(function(){var q;return DiF((q=I())==null?void 0:q.thumbnailOverlays)},void 0,"AFvHu");
return _.v("div",{class:_.pG("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.yH.PLAYER_TIME_ELAPSED+" "+_.Ghr(b().playedTime)}},_.v(_.$9,{data:function(){var q=_.Ghr(b().videoDuration-b().playedTime);
return Object.assign({},{type:17,text:q},h())}}))},"Si"),deF=_.C(function(G){G=G.badgeShapeData;
return _.v("div",{class:_.pG("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.v(_.$9,{data:G}))},"Ti"),iX9=_.C(function(G){var b=G.data;
G=_.P$(function(){if(_.U("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var h,q;return(h=b())==null?void 0:(q=h.thumbnailOverlays)==null?void 0:q.find(function(l){return l.thumbnailOverlayTimeStatusRenderer||l.thumbnailOverlayBadgeViewModel})}},void 0,"y9XYN");
var I=_.P$(function(){var h,q,l,V,D,k;return _.Ylj((h=b())==null?void 0:(q=h.playerApi)==null?void 0:(l=q.getSize())==null?void 0:l.width,(V=b())==null?void 0:(D=V.playerApi)==null?void 0:(k=D.getSize())==null?void 0:k.height)},void 0,"anNoxe");
return _.v(_.Q,{cond:G,then:function(h){return _.v(_.VX,{data:h},{thumbnailOverlayTimeStatusRenderer:function(q){var l=q.data;q=_.P$(function(){return _.oH2(l(),0)},void 0,"Ncdcme");
return _.v(deF,{badgeShapeData:q})},
thumbnailOverlayBadgeViewModel:function(q){return _.v(_.PVu,{data:q.data,thumbnailSize:I})}})},
else:function(){var h={type:18,text:_.yH.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.v(deF,{badgeShapeData:function(){return h}})}})},"Ui"),yLY=_.C(function(G){var b=G.props;
var I=G.data;var h=G.options;return _.v(_.I53,{progressBarProps:b,config:function(){var q,l=_.g((q=I())==null?void 0:q.multiMarkersPlayerBar,_.Oqn),V;q=((V=h())==null?0:V.insetProgressBar)?2:1;var D;V=(D=h())==null?void 0:D.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:q,chapterData:l,isInlinePlayback:!0,doSeekOnClick:V,playheadDotBehavior:V?1:0}}})},"Vi");_.JN(_.C(function(G){var b=G.data;var I=G.appApi;var h=G.options;var q=xie(b,A_j(I));G={};I={};return _.v("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.v("div",{class:_.pG("ytInlinePlayerControlsDarkenedOverlay",(G.ytInlinePlayerControlsDarkenedOverlayShow=function(){return q().isHovering},G))}),_.v(fLe,null),_.v(AL5,{data:q}),_.v(MLa,{data:b}),_.v(VLe,{playerControlsProps:q,
isShortsPage:!1}),_.v("div",{class:_.pG((I.ytInlinePlayerControlsControlsHidden=function(){return q().isDragging},I))},_.v(ZXW,{props:q,
data:b,options:h}),_.v(onj,{props:q,data:b,options:h})),_.v(_.Q,{cond:function(){return Mu5(b(),h())},
then:function(){return _.v(yLY,{props:q,data:b,options:h})}}))},"Mi"),"yt-inline-player-controls",{props:{data:_.hV,
appApi:_.No,options:_.hV}});var rw=function(){var G=_.a.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$19497_playerPromise=null;G.player=null;G.enableAudioControls=!1;G.hasBeenUnmuted=!1;G.captionsHaveBeenTurnedOff=!1;G.JSC$19497_playerEvents=new Map;G.videoPreviewFetchRequest=null;G.scheduledPreviewEndJobId=null;G.JSC$19497_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};
_.M(rw,_.a);_.m=rw.prototype;
_.m.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"}}}};
_.m.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19497_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19497_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19497_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19497_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.I9(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.I9(this,this.onScroll))};
_.m.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.I9(this,this.onScroll))};
_.m.onPageTypeChange=function(){this.deactivate()};
_.m.onWindowResized=function(){this.deactivate()};
_.m.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.m.onCaptionsChanged=function(G){G=!!G.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!G);this.setCaptionSize()};
_.m.setCaptionSize=function(){var G;if(this.active&&!this.captionsHaveBeenTurnedOff&&((G=this.player)==null?0:G.getCaptionWindowContainerId())){var b;(b=this.player)==null||b.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.m.currentPageAllowed=function(){return!this.isWatchPage};
_.m.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.U("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var G=this.positionData,b=G.initialTopPosition,I=G.initialHorizontalPosition;_.G8(this.hostElement,{"--ytd-video-preview-translate-left":G.finalHorizontalPosition-I+"px","--ytd-video-preview-translate-top":G.finalTopPosition-b+"px","--ytd-video-preview-original-top-position":b+
"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};
_.m.isOutOfBounds=function(G){var b=G.initialHorizontalPosition+12;G=b+G.videoPreviewWidth>window.innerWidth;return b<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&b<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&b<72||G};
_.m.handleOpenVideoPreviewAction=function(G){var b=this,I;return _.c(function(h){if(!b.currentPageAllowed())return h.return(0);b.opts=G;return(I=b.alignVideoPreviewForAnimation(G.thumbnail))?h.return(b.activate()):h.return(0)})};
_.m.onMouseLeave=function(G){var b,I;(b=this.opts)==null||(I=b.mouseleaveCallback)==null||I.call(b);this.shouldDeactivateOnMouseLeave(G)&&this.deactivate()};
_.m.onScroll=function(){var G,b;((G=this.opts)==null?0:G.isAutoplay)&&((b=this.opts)==null?0:b.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.m.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.uu.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.m.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.m.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",rw.JSC$19496_DEFAULT_CLICK_LOCATION_BEHAVIOR,rw.JSC$19496_CLICK_LOCATION_ID_MAP)};
_.m.shouldDeactivateOnMouseLeave=function(G){G=G.relatedTarget;if(!G)return!0;var b;return(b=this.opts)!=null&&b.mediaRenderer?!_.pX(this.opts.mediaRenderer).contains(G):!0};
_.m.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.m.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$19497_preventProgressSaveTimer=
_.O0(_.uu,function(){G.resetPreventProgressSaveTimer()},1E4);
var b;if((b=this.opts)==null?0:b.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.O0(_.uu,function(){G.hasMultipleVideoPreviews()?G.startPlaybackForNextVideo():G.deactivate()},this.opts.videoPreviewDurationMs);
var I;this.player.setGlobalCrop(((I=this.opts)==null?0:I.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.m.getRoundedCornersSize=function(){var G;if((G=this.opts)==null?0:G.roundedCornersSize){var b;return(b=this.opts)==null?void 0:b.roundedCornersSize}var I;if((I=this.opts)==null?0:I.enableRounding){var h;if(((h=this.opts)==null?void 0:h.thumbnailSize)==="small")return 1;var q;if(((q=this.opts)==null?void 0:q.thumbnailSize)==="medium")return 2;var l;if(((l=this.opts)==null?void 0:l.thumbnailSize)==="large")return 3}return _.U("web_imp_inset_progress_bar")?3:0};
_.m.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.m.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.m.onMediaContainerClick=function(G){this.isShortcutClick(G)||(this.navigateToWatch(G),G.preventDefault(),G.stopPropagation())};
_.m.activate=function(){var G=this,b,I,h,q,l,V,D,k,L;return _.c(function(x){switch(x.nextAddress){case 1:if(!G.currentPageAllowed())return x.return(0);I=(b=G.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint;h=_.ik.instance;if(!I||!h)return x.return(0);G.playbackIntentTriggered=!0;((q=G.opts)==null?0:q.mediaRenderer)&&((l=G.opts)==null||!l.isAutoplay)&&j3j(G.opts.mediaRenderer,function(){G.deactivate()});
_.D1(G,function(){G.revealPreviewUi()});
V={};_.U("enable_unknown_lact_fix_on_html5")&&(_.LL().resolve(_.VO),V.lact=_.vA());G.videoPreviewFetchRequest=$iF(h,G.getInlinePlaybackRequestData(G.videoPreviewData),V);_.gm(x,2);return x.yield(G.videoPreviewFetchRequest,4);case 4:D=x.yieldResult;if(((k=D)==null?void 0:(L=k.playabilityStatus)==null?void 0:L.status)==="OK")return x.return(G.handlePlayerResponse(D));throw Error("fk");case 2:_.zf(x),G.deactivate();case 3:return x.return(1)}})};
_.m.getInlinePlaybackRequestData=function(G){var b,I=_.U("web_imp_player_mute_params")?((b=this.opts)==null?void 0:b.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:G.inlinePlaybackEndpoint,startPlaybackInMutedState:I}};
_.m.handlePlayerResponse=function(G){var b=this,I,h,q,l,V,D,k,L,x,f,T,B,A,t;return _.c(function(y){if(y.nextAddress==1){I=b.getInlinePlaybackVideoId();if(!(((h=G)==null?0:(q=h.videoDetails)==null?0:q.videoId)&&b.currentPageAllowed()&&b.playbackIntentTriggered&&b.opts&&I))return b.deactivate(),y.return(0);if(G.videoDetails.videoId!==I)return y.return(0);b.enableAudioControls=!!((l=G.playerConfig)==null?0:(V=l.inlinePlaybackConfig)==null?0:V.showAudioControls);G.trackingParams=b.getInlinePlaybackTrackingParams();
if(!b.inlinePlayer)return y.return(0);D={};if(L=_.g((k=b.videoPreviewData)==null?void 0:k.inlinePlaybackEndpoint,_.Wq))D.watch_endpoint=L;if(b.videoPreviewData){var F,W=(F=_.g(b.videoPreviewData.inlinePlaybackEndpoint,_.Wq))==null?void 0:F.startTimeSeconds;W!==void 0&&(G.playerConfig||(G.playerConfig={}),G.playerConfig.playbackStartConfig||(G.playerConfig.playbackStartConfig={}),G.playerConfig.playbackStartConfig.startPosition||(G.playerConfig.playbackStartConfig.startPosition={}),G.playerConfig.playbackStartConfig.startSeconds=
W,G.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(W*1E3))}b.inlinePlayer.loadVideoWithPlayerResponse(G,D);if(b.JSC$19497_playerPromise)return y.jumpTo(2);b.JSC$19497_playerPromise=b.inlinePlayer.getPlayerPromise();return y.yield(b.JSC$19497_playerPromise,3)}y.nextAddress!=2&&(x=y.yieldResult,x.setInlinePreview(!0),f=!_.U("web_imp_theater_bugfix"),x.setSizeStyle(!1,f),b.ytPlayerListenerBehavior.listenToPlayerEvents(x,b.JSC$19497_playerEvents),b.player=x,_.O3(b.hostElement,
"player-api-ready"));((T=b.opts)==null?0:T.showPlayerControls)&&b.videoPreviewData&&b.player&&(b.playerControlsData={playerResponse:G,isInlinePlayback:!0,thumbnailOverlays:b.videoPreviewData.thumbnailOverlays,playerApi:b.player},b.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!b.unroundCornersForPlayback,additionalButton:b.getAdditionalButtonType(b.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(B=b.opts)==null?void 0:B.hideTimeDisplay,hideScrubbingControls:(A=b.opts)==
null?void 0:A.hideScrubber,hideCaptionsToggleButton:(t=b.opts)==null?void 0:t.hideCaptionsToggleButton});return y.return(2)})};
_.m.revealPreviewUi=function(){var G=this;this.playbackIntentTriggered&&_.LIO(this,function(){G.hasThumbnailPositionChangedSinceTriggered()||(G.updateActiveState(!0),G.noAnimation=!1)})};
_.m.hasThumbnailPositionChangedSinceTriggered=function(){var G=this.positionData,b=this.getThumbnailPositionData();return(G==null?void 0:G.initialTopPosition)!==(b==null?void 0:b.initialTopPosition)||(G==null?void 0:G.initialHorizontalPosition)!==(b==null?void 0:b.initialHorizontalPosition)};
_.m.getThumbnailPositionData=function(){var G,b;if((b=this.opts)==null||!b.thumbnail)return null;b=this.opts.thumbnail;var I=((G=this.opts)==null?0:G.cropPlayerToFillThumbnailHorizontally)?!1:!0;var h=b.getBoundingClientRect();G=h.width;b=h.height;var q=h.top+window.scrollY;h=h.left+window.scrollX;var l=I?Math.ceil(G):G;I=I?Math.ceil(b):b;var V=G/l;G={initialScale:V,initialTopPosition:q-12*V,finalTopPosition:q-12-(I-b)/2,initialHorizontalPosition:h-(12+(l-G)/2),finalHorizontalPosition:h-12-(l-G)/
2,videoPreviewWidth:l,videoPreviewHeight:I};return G};
_.m.updateActiveState=function(G){this.active=G;this.ytdReduxBehavior.dispatch(_.wK({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:G}))};
_.m.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&&(_.uu.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.m.deactivate=function(G){G=G===void 0?{}:G;G=G.resetWatchEndpointStartTime===void 0?!1:G.resetWatchEndpointStartTime;O7&&(O7.disconnect(),O7=null);this.stopPlayer({resetWatchEndpointStartTime:G});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.m.isValidThumbnailOverlayButton=function(G,b){G=G.thumbnailOverlayButtonRenderer;var I;return!!G&&!!G.tooltip&&!((I=G.icon)==null||!I.iconType)&&b.includes(G.icon.iconType)};
_.m.isValidThumbnailOverlayButtonViewModel=function(G,b){var I;G=_.g((I=G.thumbnailOverlayButtonViewModel)==null?void 0:I.overlayButton,_.j6);return!!G&&!!G.title&&!!G.iconName&&b.includes(G.iconName)};
_.m.getAdditionalButtonType=function(G){var b=this;if(_.U("web_imp_fastforward_button"))return{button:1};if(_.U("web_imp_miniplayer_button"))return{button:2};if(_.U("web_imp_playback_speed_button"))return{button:3};var I=["BOX_STACK_3"],h=(G||[]).filter(function(l){return b.isValidThumbnailOverlayButton(l,I)}).map(function(l){return l.thumbnailOverlayButtonRenderer});
if(h.length)return{button:4,thumbnailOverlayButtonRenderers:h};var q=["BOX_STACK_3"];G=(G||[]).filter(function(l){return b.isValidThumbnailOverlayButtonViewModel(l,q)}).map(function(l){return _.g(l.thumbnailOverlayButtonViewModel.overlayButton,_.j6)});
if(G.length)return{button:4,thumbnailOverlayButtonViewModels:G}};
_.m.allowCaptions=function(){var G;return!((G=this.opts)==null?0:G.forceCaptionsOff)};
_.m.allowUnmuting=function(){var G;return this.enableAudioControls&&!((G=this.opts)==null?0:G.forceMutedVolume)};
_.m.beginStartTimeUpdater=function(){var G=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.M1(function(){G.updateWatchEndpointStartTime()},1E3)};
_.m.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.m.resetPreventProgressSaveTimer=function(){this.JSC$19497_preventProgressSaveTimer!==null&&(_.uu.cancelJob(this.JSC$19497_preventProgressSaveTimer),this.JSC$19497_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.m.updateWatchEndpointStartTime=function(G){var b=this.videoPreviewData;if(this.player&&b!=null&&b.inlinePlaybackEndpoint&&!this.JSC$19497_preventProgressSaveTimer){G=G?0:Math.floor(this.player.getCurrentTime());var I=_.g(b.navigationEndpoint,_.Wq);I&&(I.startTimeSeconds=G);if(b=_.g(b.inlinePlaybackEndpoint,_.Wq))b.startTimeSeconds=G}};
_.m.isShortcutClick=function(G){return!!G&&(G.ctrlKey||G.shiftKey||G.metaKey)};
_.m.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.m.openInMiniplayer=function(){var G=this,b,I;return _.c(function(h){if(h.nextAddress==1){I=(b=G.videoPreviewData)==null?void 0:b.navigationEndpoint;if(!I)return h.return();_.Ws().lockupActivation=!0;return h.yield(_.p7b(_.LL().resolve(_.zO),I),2)}_.Ws().userActivation=!0;_.ip(h)})};
_.m.navigateToWatch=function(G){var b,I=(b=this.videoPreviewData)==null?void 0:b.navigationEndpoint;if(I){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(I,G,!0);else{var h;_.U("web_thumbnail_to_watch_transition")&&((h=this.opts)==null?0:h.thumbnail)&&_.OKQ(_.LL().resolve(_.a8),this.opts.thumbnail);_.O3(this.hostElement,"yt-navigate",{endpoint:I})}this.deactivate()}};
_.m.getInlinePlaybackVideoId=function(){var G,b;return(b=_.g((G=this.videoPreviewData)==null?void 0:G.inlinePlaybackEndpoint,_.Wq))==null?void 0:b.videoId};
_.m.getInlinePlaybackTrackingParams=function(){var G,b;return(G=this.videoPreviewData)==null?void 0:(b=G.inlinePlaybackEndpoint)==null?void 0:b.clickTrackingParams};
_.m.hasMultipleVideoPreviews=function(){var G;return!!(((G=this.opts)==null?0:G.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.m.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())};
_.kV.Object.defineProperties(rw.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 b;return(b=this.opts)==null?void 0:b.videoPreviewData[this.videoPreviewDataIndex]}var I;return(I=this.opts)==null?void 0:I.videoPreviewData}}});
rw.prototype.onIsAdsVideoChange=rw.prototype.onIsAdsVideoChange;rw.prototype.onInlinePreviewIsEnabledChange=rw.prototype.onInlinePreviewIsEnabledChange;rw.prototype.optsChanged=rw.prototype.optsChanged;rw.prototype.onMouseLeave=rw.prototype.onMouseLeave;rw.prototype.onPersistentPanelVisibleChange=rw.prototype.onPersistentPanelVisibleChange;rw.JSC$19496_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
rw.JSC$19496_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([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],rw.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],rw.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],rw.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],rw.prototype,"componentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],rw.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.vF.YtSparklesClickLocationBehavior),_.n("design:type",Object)],rw.prototype,"ytSparklesClickLocationBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],rw.prototype,"opts",void 0);_.R([_.H(),_.n("design:type",Object)],rw.prototype,"playerControlsData",void 0);_.R([_.H(),_.n("design:type",Object)],rw.prototype,"playerControlsAppApi",void 0);
_.R([_.H(),_.n("design:type",Object)],rw.prototype,"playerControlsOptions",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],rw.prototype,"noAnimation",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],rw.prototype,"hidden",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],rw.prototype,"active",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],rw.prototype,"playing",void 0);
_.R([_.H({selector:_.HPq}),_.n("design:type",Boolean)],rw.prototype,"inlinePreviewIsEnabled",void 0);_.R([_.H(),_.n("design:type",String)],rw.prototype,"pagePath",void 0);_.R([_.H({selector:_.yVO}),_.n("design:type",Boolean)],rw.prototype,"isWatchPage",void 0);_.R([_.H({selector:_.PH.persistentPanelVisibleSelector}),_.n("design:type",Object)],rw.prototype,"persistentPanelVisible",void 0);
_.R([_.P("videoPreviewData"),_.n("design:type",Object),_.n("design:paramtypes",[])],rw.prototype,"thumbnailData",null);_.R([_.P("opts","active"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],rw.prototype,"hidePlayerControls",null);_.R([_.P("opts"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],rw.prototype,"isAdsVideo",null);
_.R([_.P("opts"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],rw.prototype,"roundedCornersSmall",null);_.R([_.P("opts"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],rw.prototype,"roundedCornersMedium",null);_.R([_.P("opts"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],rw.prototype,"roundedCornersLarge",null);
_.R([_.P("opts"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],rw.prototype,"unroundCornersForPlayback",null);_.R([_.P("opts","videoPreviewDataIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],rw.prototype,"videoPreviewData",null);_.R([_.H(),_.n("design:type",Object)],rw.prototype,"videoPreviewDataIndex",void 0);_.R([_.lH("#inline-player"),_.n("design:type",Object)],rw.prototype,"inlinePlayer",void 0);
_.R([_.q5("persistentPanelVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rw.prototype,"onPersistentPanelVisibleChange",null);_.R([_.hI("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[MouseEvent]),_.n("design:returntype")],rw.prototype,"onMouseLeave",null);_.R([_.Dd("opts"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rw.prototype,"optsChanged",null);
_.R([_.Dd("inlinePreviewIsEnabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rw.prototype,"onInlinePreviewIsEnabledChange",null);_.R([_.q5("isAdsVideo"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rw.prototype,"onIsAdsVideoChange",null);_.R([_.N({is:"ytd-video-preview",disableElementRegistration:!0})],rw);
_.J(rw,"ytd-video-preview",function(){if(ehf!==void 0)return ehf;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ehf=G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var skv,gpv,A4l;skv=function(G){return _.U("kevlar_watch_cinematics_invisible")||G.fullscreen&&_.U("kevlar_watch_cinematics_invisible_in_fullscreen")||G.theater&&!G.fullscreen&&_.U("kevlar_watch_cinematics_invisible_in_theater")};
gpv=function(){var G=document.createElement("canvas"),b=G.getContext("2d");if(!b)throw Error("Ro");_.Nw(G,{position:"absolute",width:"100%",height:"100%"});return{element:G,context:b}};
A4l=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.U("kevlar_watch_cinematics_css_blur")};
_.MSK=function(G,b,I){return Math.abs(G-b)<=(I||1E-6)};
_.Zyh=function(G,b){return G==b?!0:G&&b?G.width==b.width&&G.height==b.height:!1};_.tSI=new _.hu("notificationActionRenderer");var zLg=function(G){var b=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.G9;this.element.addEventListener("load",function(){b.loaded=!0;b.resolver.resolve(b.element)});
this.element.addEventListener("error",function(){b.failed=!0});
this.element.src=G};var opo=function(G,b){this.image=G;this.frame=b};
opo.prototype.drawToCanvas=function(G,b){var I=this.frame.width/this.frame.columns,h=this.frame.height/this.frame.rows,q=b.offsetX,l=b.offsetY;skv(b)?(G.fillStyle=b.fullscreen?"#000":"#0f0f0f",G.fillRect(q,l,(b==null?void 0:b.width)||I,(b==null?void 0:b.height)||h)):G.drawImage(this.image,this.frame.column*I,this.frame.row*h,I,h,q,l,(b==null?void 0:b.width)||I,(b==null?void 0:b.height)||h)};
var iyE=function(G){this.color=G};
iyE.prototype.drawToCanvas=function(G,b){var I=b.offsetX,h=b.offsetY,q=b.width,l=b.height;G.fillStyle=skv(b)?b.fullscreen?"#000":"#0f0f0f":this.color;G.fillRect(I,h,q,l)};var Qe=function(G,b){_.XC.call(this);this.playerApi=b;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Pa(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();PeK(this,G);dbh(this);this.update()};
_.M(Qe,_.XC);Qe.prototype.addEventListeners=function(){var G=this,b=function(){G.update()},I=function(q){G.paused||(q.type==="newdata"&&(G.mosaics.clear(),y4I(G),xJ(G)),dbh(G),G.update())},h=function(){G.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",b);this.playerApi.addEventListener("onVideoDataChange",I);this.playerApi.addEventListener("onStateChange",h);this.addOnDisposeCallback(function(){G.playerApi.removeEventListener("onVideoProgress",b);G.playerApi.removeEventListener("onVideoDataChange",I);G.playerApi.removeEventListener("onStateChange",h)})};
var PeK=function(G,b){G.cinematicContainerRenderer!==b&&(G.cinematicContainerRenderer=b,y4I(G),xJ(G),G.colorStoreUpdateJobId=_.uu.addLowPriorityJob(function(){var I;if((I=G.cinematicContainerRenderer.colorStore)!=null&&I.sampledColors){I=Infinity;for(var h=_.e(G.cinematicContainerRenderer.colorStore.sampledColors),q=h.next();!q.done;q=h.next()){q=q.value;var l=Number(q.key);l!==0&&l<I&&(I=l);l=_.so(q.value);G.colorStore.set(q.key,l)}G.colorStoreTimeInterval=I}}))},y4I=function(G){G.colorStoreUpdateJobId&&
(_.uu.cancelJob(G.colorStoreUpdateJobId),G.colorStoreUpdateJobId=void 0);
G.colorStore.clear();G.currentStoryboardColor=void 0},r4I=function(G,b){var I;
return(I=G.getStoryboardFrame(b))==null?void 0:I.url};
Qe.prototype.onPlayerStateChange=function(){this.update()};
Qe.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var dbh=function(G){var b=G.getStoryboardFrame(0);b&&(b=new _.Pa(b.width/b.columns,b.height/b.rows),_.Zyh(G.currentStoryboardSize,b)||(G.currentStoryboardSize=b,G.publish("STORYBOARD_SIZE_CHANGED",G.currentStoryboardSize)))},Fng=function(G,b){G.currentStoryboardIndex=b;
G.pendingStoryboardIndex=NaN;b=G.getStoryboardFrame(G.currentStoryboardIndex);G.currentStoryboard=new opo(G.mosaics.get(b.url).element,b);G.publish("STORYBOARD_CHANGED",G.currentStoryboard);G.lastUpdateTime=(0,_.Li)()};
Qe.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var xJ=function(G){G.currentStoryboardIndex=NaN;G.pendingStoryboardIndex=NaN;G.currentStoryboard&&(G.currentStoryboard=void 0,G.publish("STORYBOARD_CHANGED",void 0));G.lastUpdateTime=NaN};
Qe.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)xJ(this);else{var G=this.playerApi.getPlayerState(1);if(G===-1||G===5||G===0)xJ(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Li)()<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 b=this.colorStore.get(G);b?b!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=b,this.currentStoryboard=new iyE(b),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Li)()):(_.RB(new _.Wf("Could not find color for timestamp: "+G,this.cinematicContainerRenderer)),xJ(this))}else xJ(this);else Hyo(this,G)}};
var Hyo=function(G,b){var I=G.getStoryboardFrameIndex(b);if(I!==G.currentStoryboardIndex&&I!==G.pendingStoryboardIndex){b=r4I(G,I);var h=G.mosaics.get(b);h?h.loaded&&Fng(G,I):(G.pendingStoryboardIndex=I,I=new zLg(b),G.mosaics.set(b,I),I.resolver.promise.then(function(){if(!G.isDisposed()&&!G.paused&&!isNaN(G.pendingStoryboardIndex)){var q=r4I(G,G.pendingStoryboardIndex);if(q){var l;(l=G.mosaics.get(q))!=null&&l.loaded&&Fng(G,G.pendingStoryboardIndex)}else xJ(G)}}))}};
Qe.prototype.getStoryboardFrameIndex=function(G){var b=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(G,b)};
Qe.prototype.getStoryboardFrame=function(G){var b=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,I,h;return((h=(I=this.playerApi).getStoryboardFrame)==null?void 0:h.call(I,G,b))||null};
Qe.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Tn=function(G,b,I,h){h=h===void 0?!1:h;_.FN.call(this);this.cinematicContainerRenderer=b;this.playerApi=I;this.theater=this.fullscreen=!1;var q;this.ambientLightThemeEnabled=!h&&!!(b==null?0:(q=b.config)==null?0:q.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=h)&&!0;this.container=document.createElement("div");G.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);Wnv(this);this.backCanvas=
gpv();this.frontCanvas=gpv();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new Qe(b,this.playerApi);_.M2(this,this.storyboardManager);this.addEventListeners();azI(this)?NVK(this,100+fe(this)*3*2,100+fe(this)*3*2):YgM(this);Ceo(this,this.storyboardManager.currentStoryboard)};
_.M(Tn,_.FN);
var Wnv=function(G){var b=G.playerApi.getVideoAspectRatio();_.Nw(G.container,{"aspect-ratio":""+b,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var I;var h;if((G.fullscreen||G.theater)&&((I=G.cinematicContainerRenderer.config)==null?0:(h=I.watchFullscreenConfig)==null?0:h.colorSourceWidthMultiplier))I=G.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var q;I=(q=
G.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?q:G.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var l,V;if((G.fullscreen||G.theater)&&((l=G.cinematicContainerRenderer.config)==null?0:(V=l.watchFullscreenConfig)==null?0:V.colorSourceHeightMultiplier))q=G.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var D;q=(D=G.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?D:G.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.Nw(G.innerContainer,
{"aspect-ratio":""+b,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+I+", "+q+")"});A4l()&&_.Nw(G.innerContainer,"filter","blur("+_.Te("cinematic_watch_css_filter_blur_strength",40)+"px)")};
Tn.prototype.setFullscreen=function(G,b){this.fullscreen=G;this.theater=!!b;Wnv(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,J4d(this),G&&KnA(this,G)};
Tn.prototype.addEventListeners=function(){var G=this,b=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(q){Ceo(G,q)}),I=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){YgM(G)});
this.addOnDisposeCallback(function(){G.storyboardManager.unsubscribeByKey(b);G.storyboardManager.unsubscribeByKey(I)});
var h=function(){Wnv(G)};
this.playerApi.addEventListener("onVideoDataChange",h);this.addOnDisposeCallback(function(){G.playerApi.removeEventListener("onVideoDataChange",h)})};
var YgM=function(G){if(!azI(G)){var b=G.storyboardManager.currentStoryboardSize;isNaN(b.width)||isNaN(b.height)||NVK(G,Number(b.width)+fe(G)*3*2,Number(b.height)+fe(G)*3*2)}},NVK=function(G,b,I){G.backCanvas.element.width=b;
G.backCanvas.element.height=I;G.frontCanvas.element.width=b;G.frontCanvas.element.height=I},azI=function(G){return G.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Ceo=function(G,b,I){I=I===void 0?!1:I;
var h=G.frontCanvas.element.getAnimations()[0];h?(h.pause(),G.backCanvas.context.globalAlpha=Number(getComputedStyle(G.frontCanvas.element).opacity),G.frontCanvas.element.style.opacity="0",h.finish()):G.backCanvas.context.globalAlpha=1;G.backCanvas.context.drawImage(G.frontCanvas.element,0,0,G.backCanvas.element.width,G.backCanvas.element.height);J4d(G);b&&KnA(G,b);b=b?G.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Te("cinematic_watch_fade_out_duration",500);h=_.Te("cinematic_watch_transition_frame_rate")/
1E3;var q={};h&&(q={easing:"steps("+Math.round(b*h)+")"});(I===void 0?0:I)||G.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:b,iterations:1},q));G.frontCanvas.element.style.opacity="1"},J4d=function(G){var b=G.ambientLightThemeEnabled||G.ambientTheaterModeEnabled,I=G.ambientLightThemeEnabled||G.ambientFullscreenEnabled;
G.frontCanvas.context.fillStyle=G.theater&&b||G.fullscreen&&I?"#000":"#0f0f0f";A4l()||(G.frontCanvas.context.filter="blur(0)");G.frontCanvas.context.fillRect(0,0,G.frontCanvas.element.width,G.frontCanvas.element.height)},KnA=function(G,b){A4l()||(G.frontCanvas.context.filter="blur("+fe(G)+"px)");
G.frontCanvas.context.globalAlpha=G.fullscreen&&G.ambientFullscreenEnabled||G.theater&&G.ambientTheaterModeEnabled?_.Te("cinematic_watch_effect_letterbox_opacity",.4):_.Te("cinematic_watch_effect_opacity",.4);var I={offsetX:fe(G)*3,offsetY:fe(G)*3,theater:G.theater,fullscreen:G.fullscreen};azI(G)&&(I.width=100,I.height=100);b.drawToCanvas(G.frontCanvas.context,I);G.frontCanvas.context.globalAlpha=1},fe=function(G){var b;
return(b=G.cinematicContainerRenderer.config.blurStrength)!=null?b:5};
Tn.prototype.disposeInternal=function(){_.FN.prototype.disposeInternal.call(this);this.container.remove()};
Tn.prototype.clear=function(){Ceo(this,void 0,!0)};
Tn.prototype.pause=function(){this.storyboardManager.pause()};var u0A;u0A=_.gt(function(){var G,b,I=!((b=(G=document.createElement("canvas")).getContext)==null||!b.call(G,"2d")),h;G=!((h=CSS)==null||!h.supports("filter: blur(0)"));h=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var q;return I&&G&&h&&!((q=CSS)==null||!q.supports("aspect-ratio: 1 / 1"))});
_.B7=function(G,b){_.XC.call(this);this.container=G;this.playerApi=b;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=RLA(this);this.update()};
_.M(_.B7,_.XC);_.npI=function(G){var b=document.documentElement.hasAttribute("dark");G.isDarkModeEnabled=b;G.update()};
_.Oyg=function(G,b){G.settingEnabled=b;G.update()};
_.B7.prototype.setFullscreen=function(G,b){this.fullscreen=G;this.theater=!!b;this.update()};
_.wah=function(G,b){G.cinematicContainerRenderer=b;G.cinematicContainerRenderer&&(G.cinematicsVe=_.Xs(G.isShorts()?227858:159022),_.iz(_.qo(),G.cinematicsVe),G.loggingClientData={watchCinematicContainerData:{presentationStyle:G.cinematicContainerRenderer.presentationStyle}});G.update()};
_.B7.prototype.isShorts=function(){var G,b;return((G=this.cinematicContainerRenderer)==null?void 0:(b=G.config)==null?void 0:b.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.B7.prototype.isAllowed=function(){var G;if(G=u0A()){var b,I,h;G=((I=this.cinematicContainerRenderer)==null?void 0:I.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((h=this.cinematicContainerRenderer)==null||!h.colorStore)||((b=this.cinematicContainerRenderer)==null?void 0:b.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(G)if(_.U("web_cinematics_pausing")){var q,l;G=this.isDarkModeEnabled||!!((q=this.cinematicContainerRenderer)==
null?0:(l=q.config)==null?0:l.enableInLightTheme)}else{var V,D;q=!!((V=this.cinematicContainerRenderer)==null?0:(D=V.config)==null?0:D.enableInLightTheme)&&(_.wy("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);G=this.isDarkModeEnabled||q}if(V=G){var k,L;V=!((L=(k=this.prefersReducedMotionQuery)==null?void 0:k.matches)!=null&&L)}return V};
_.EpK=function(G){(G=G.currentCinematicEffect)!=null&&(G=G.storyboardManager,G.paused=!1,dbh(G),G.update())};
_.B7.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var RLA=function(G){if(!_.U("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var b=window.matchMedia("(prefers-reduced-motion: reduce)"),I=function(){G.update()};
b.addListener(I);G.addOnDisposeCallback(function(){b.removeListener(I)});
return b}};
_.B7.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 Tn(this.container,G,this.playerApi,this.isDarkModeEnabled),_.M2(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var b=this.currentCinematicEffect;b.cinematicContainerRenderer!==
G&&(b.cinematicContainerRenderer=G,PeK(b.storyboardManager,G),Wnv(b));G=_.m$();_.eX(0,194,!0);G.save();G=_.gL();this.cinematicsVe&&G&&_.FT(G,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(G=_.gL(),this.cinematicsVe&&G&&_.HT(G,[this.cinematicsVe],!1,this.loggingClientData),_.VQ(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.kV.Object.defineProperties(_.B7.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var wpK;var ETM;_.fn({_template:function(){if(ETM!==void 0)return ETM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=
G.content,I=b.insertBefore;wpK===void 0&&(wpK=document.createElement("template"));var h=wpK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return ETM=G},
is:"tp-yt-iron-pages",behaviors:[_.Y6,_.yx],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Rea;_.n3I=function(){if(_.U("kevlar_home_skeleton")&&!Rea){var G=document.querySelector("#home-page-skeleton");G&&(_.sS("hgcr"),_.iG(G),Rea=!0)}};
Rea=!1;_.$L=new _.hu("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var zWK,iQI,PnK,d8z,y5A,r5l,FOA,WOK,Nzd,J57,uJd,nbl,KOg,Yua,CnE,EbI;_.rl=function(G){var b=G.clientMessageId;var I=G.playerOffsetMs;var h=G.pageContext;G=G.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:b},!!I&&{playerOffsetMs:I},!!h&&{pageContext:h},!!G&&{userInputText:G})}};
_.tBd=function(G,b,I){b=b===void 0?5:b;if(b!==0){var h=typeof G==="function"?G():document.querySelector(G);h?(I==null?0:I.enableSmartFocus)?_.uUr(h):h.focus():setTimeout(function(){_.tBd(G,b-1,I)},500)}};
zWK=function(G){return String.raw.apply(String,[{raw:G}].concat(_.Nz(_.RI.apply(1,arguments).map(function(b){return b instanceof Array?b.join(""):b}))))};
iQI=function(G){var b=_.RI.apply(1,arguments),I=b.length;if(!Array.isArray(G)||!Array.isArray(G.raw)||G.length!==G.raw.length||!_.nIB&&G===G.raw||!(_.nIB&&!_.OAi||_.rd(G))||I+1!==G.length)throw new TypeError("$");return new obl(Object.freeze({strings:Object.freeze(G),args:Object.freeze(b)}))};
PnK=function(G){return _.nrO(_.R6s(G&16777215))<.5};
d8z=function(G,b,I){var h=I.minimumRowsOfVideosBetweenSections===void 0?1:I.minimumRowsOfVideosBetweenSections;return G<(I.minimumRowsOfVideosAtStart===void 0?2:I.minimumRowsOfVideosAtStart)||b!==null&&G-b<=h?!1:!0};
y5A=function(G,b){var I=0,h=0;G=_.e(G);for(var q=G.next();!q.done;q=G.next()){var l=q.value;if(l.richItemRenderer)l.richItemRenderer.rowIndex=h,l.richItemRenderer.colIndex=I++,I===b&&(I=0,h++);else if(l.richGroupRenderer&&l.richGroupRenderer.numColumns!==void 0)l.richGroupRenderer.rowIndex=h,l.richGroupRenderer.colIndex=I,I+=l.richGroupRenderer.numColumns,I===b&&(I=0,h++);else if(l.richSectionRenderer){var V=q=void 0;if(l=_.g((q=l)==null?void 0:(V=q.richSectionRenderer)==null?void 0:V.content,_.zqu))l.rowIndex=
h++}}};
r5l=function(G,b){var I=b.contentElement;b=b.rendererToTagNameMap;if(I&&b&&b.size!==0){for(var h=new Map,q=_.e(I.children),l=q.next();!l.done;l=q.next()){l=l.value;var V=l.tagName.toLowerCase(),D=h.get(V);D||(D=[],h.set(V,D));D.push(l)}if(h.size!==0)for(q=Math.min(G.length,I.children.length),l=new Map,V=0;V<q;V++){D=Object.keys(G[V])[0];D=b.get(D);if(!D)break;var k=l.get(D);k===void 0&&(k=0,l.set(D,k));var L=h.get(D);if(!L||k>=L.length)break;l.set(D,k+1);D=L[k];k=I.children[V];k!==D&&(_.YQ=!0,_.CG.set(D,
!0),I.insertBefore(D,k),_.CG.delete(D),_.YQ=!1)}}};
FOA=function(G,b,I,h,q,l,V){h=h===void 0?{}:h;if(!G||!G.length)return{orderedContent:[]};G=G.slice();var D=[],k=[];q=null;for(var L=0,x=function(O){k.sort(function(w,$a){return $a.skippedOnRow-w.skippedOnRow});
for(var K,u=(K=k.shift())==null?void 0:K.content;u;)!u.richSectionRenderer&&O||D.push(u),K=void 0,u=(K=k.shift())==null?void 0:K.content},f=void 0,T=void 0,B=new Set;G.length>0||k.length>0;){for(var A=[],t=b;t>0;){var y=void 0,F=void 0,W=(F=k[0]&&k[0].skippedOnRow<L?(y=k.shift())==null?void 0:y.content:void 0)!=null?F:G.shift();
if(!W)break;if(W.richItemRenderer)y=W.richItemRenderer.targetId,F=void 0,y&&((F=V)==null?0:F.has(y))&&(F=V.get(y),!f||F&&F.timestamp>f.timestamp)&&(f=F,T&&B.add(T),T=y),A.push(W),t--;else if(W.richGroupRenderer&&W.richGroupRenderer.numColumns!==void 0)W.richGroupRenderer.numColumns<=t?(A.push(W),t-=W.richGroupRenderer.numColumns):t===b&&W.richGroupRenderer.numColumns>b?(A.push({richGroupRenderer:Object.assign({},W.richGroupRenderer,{numColumns:b})}),t=0):k.push({content:W,skippedOnRow:L});else if(W.richSectionRenderer)if(d8z(L,
q,h)&&t===b){D.push(W);q=L;L++;continue}else k.push({content:W,skippedOnRow:L});else if(W.continuationItemRenderer){x(!0);D.push(W);t=0;break}if(t===0)D.push.apply(D,_.Nz(A));else if(!I&&G.length===0){x(!1);D.push.apply(D,_.Nz(A));t=0;break}}L++;f&&(D.push(f.content),L++);T=f=void 0}y5A(D,b);l&&r5l(D,l);return{orderedContent:D,pinnedContentNotShownTargetIds:B}};
_.HQv=function(G){return{continuationCommand:{token:G,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
WOK=function(){return _.RI.apply(0,arguments).flat().filter(function(G){return G}).join(";")};
Nzd=function(){return iQI(aea,WOK.apply(null,_.Nz(_.RI.apply(0,arguments))))};
J57=function(G,b){if(b){var I=_.Cw().getState().entities.flowStateEntity,h=Yua(G),q=[b];h&&h!==b&&q.push(h);var l=!0,V;if(I&&G.flowStateEntityKey&&((V=I[G.flowStateEntityKey])==null?void 0:V.primaryButtonDisabled)!==void 0){var D;l=!((D=I[G.flowStateEntityKey])==null||!D.primaryButtonDisabled)}CnE(G,h!=null?h:b,q,l)}};
uJd=function(G){return _.Nj(_.Cw(),function(b){return b.entities.flowStateEntity},function(b,I){if(G.flowStateEntityKey){var h,q=b==null?void 0:(h=b[G.flowStateEntityKey])==null?void 0:h.currentStepId,l;
I=I==null?void 0:(l=I[G.flowStateEntityKey])==null?void 0:l.currentStepId;l=_.Cw().getState().talkToRecs;if(q&&q!==I){var V;b=(b==null?void 0:(V=b[G.flowStateEntityKey])==null?void 0:V.stepIdStack)||Object.keys(l.stepStates);V=!KOg(l==null?void 0:l.stepStates[q]);CnE(G,q,b,V)}}})};
nbl=function(G){return _.Nj(_.Cw(),RWd,function(b){var I=Yua(G);if(I){var h=Object.keys(b.stepStates);b=!KOg(b==null?void 0:b.stepStates[I]);CnE(G,I,h,b)}})};
KOg=function(G){var b=Object.keys((G==null?void 0:G.selectionStates)||{}).reduce(function(l,V){return l||(G==null?void 0:G.selectionStates[V].isSelected)},!1),I,h,q=!!(G==null?0:(I=G.userQuery)==null?0:(h=I.userQuery)==null?0:h.trim());
return b||q};
Yua=function(G){if(G.flowStateEntityKey){var b,I,h=(b=_.Cw().getState().entities.flowStateEntity)==null?void 0:(I=b[G.flowStateEntityKey])==null?void 0:I.currentStepId;if(h)return h}};
CnE=function(G,b,I,h){_.Cw().dispatch(_.Da("flowStateEntity",G.flowStateEntityKey,{currentStepId:b,stepIdStack:I,key:G.flowStateEntityKey,primaryButtonDisabled:h}))};
_.OQI=function(G,b){return _.Gi(G.entities,"youchatPendingResponseEntity",b)};
_.wXK=function(G){return function(b){_.W5(_.Da("youchatPendingResponseEntity",G,{entityKey:G,isPendingResponse:b}))}};
EbI=function(G){G==null||G.addEventListener("DOMLoaded",function(){G.goToAndPlay(G.totalFrames-48,!0)})};
_.v3=function(G){this.__isSoyCss=!0;this.css=zWK.apply(null,[G.strings].concat(_.Nz(G.args)))};
_.v3.prototype.toString=function(){return this.css};
var obl=function(){_.v3.apply(this,arguments)};
_.M(obl,_.v3);var aea=_.WP(["",""]);var pXd;var Sul;_.fn({_template:function(){if(Sul!==void 0)return Sul;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var b=G.content,I=b.insertBefore;pXd===void 0&&(pXd=document.createElement("template"));var h=pXd;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return Sul=G},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var XXa=new _.hu("flowRootRenderer");var $fz=new _.hu("chipsShelfViewModel");var Gao=new _.hu("responsiveContainerConfiguration");_.bDI=new _.hu("engagementPanelSectionListRenderer");var IYz=function(){this.horizontal=!1},heI=function(G,b){G.horizontal=b};
IYz.prototype.position=function(G,b,I,h){h=h===void 0?1:h;G=this.delta(G)*h+b;h=Math.max(b,I);return G>=Math.min(b,I)&&G<=h?G:I};
IYz.prototype.axis=function(G){G=this.direction(G);return G==="up"||G==="down"?"Y":"X"};var FM=function(G,b,I){b=b===void 0?_.dZ():b;this.target=G;this.manager=b;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(){}};
FM.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(_.Nz(this.events)));for(var G=_.e(this.events),b=G.next();!b.done;b=G.next())this.listen(b.value)}};
FM.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Nz(this.events)));for(var G=_.e(this.events),b=G.next();!b.done;b=G.next())this.unlisten(b.value)}};
FM.prototype.listen=function(G){this.eventMap[G]&&this.target.addEventListener(G,this.eventMap[G])};
FM.prototype.unlisten=function(G){this.eventMap[G]&&this.target.removeEventListener(G,this.eventMap[G])};var Hx=function(){IYz.apply(this,arguments)};
_.M(Hx,IYz);Hx.prototype.direction=function(G){var b=G.detail;G=b.deltaY;b=b.deltaX;return G&&!this.horizontal?G>0?"down":"up":b&&this.horizontal?b>0?"right":"left":"none"};
Hx.prototype.distance=function(G){return Math.abs(this.delta(G))};
Hx.prototype.delta=function(G){var b=this.direction(G),I=G.detail;G=I.deltaX;I=I.deltaY;return b==="up"||b==="down"?I||0:G||0};
Hx.prototype.velocity=function(G){var b=this.direction(G),I=G.detail;G=I.velocityX;I=I.velocityY;return Math.abs(b==="up"||b==="down"?I||0:G||0)};_.Wx=function(G,b,I,h,q,l){q=q===void 0?new Hx:q;l=l===void 0?_.dZ():l;FM.call(this,b,l,h);var V=this;this.element=G;this.target=b;this.config=I;this.input=q;this.manager=l;this.events=["panstart","panmove","panend"];this.onPanStart=function(){V.config.draggingClass&&V.element.classList.add(V.config.draggingClass);V.config.startAction&&V.config.startAction()};
this.onPanMove=function(D){var k=q1o(V,D);if(k){V.move(D,k);k.fade&&V.fade(D,k);var L=V.input.direction(D);k.moveAction&&k.moveAction(j5E(V,D,k),L)}};
this.onPanEnd=function(D){var k,L,x,f,T,B;return _.c(function(A){if(A.nextAddress==1){V.animationRequestId&&cancelAnimationFrame(V.animationRequestId);V.animationRequestId=void 0;k=q1o(V,D);if(!k)return A.return();L=k;x=L.triggerAction;f=L.fade;T=L.disableFinish;B=L.translateBack;var t=V.input.velocity(D),y=V.input.distance(D),F=V.threshold(k);return t>.3&&y>10||y>F?T?A.jumpTo(6):f?A.yield(lYa(V,D),6):A.yield(mfh(V,D,k),6):B?A.yield(V.translateBack(D),3):A.jumpTo(3)}A.nextAddress!=3&&x&&x();V.config.draggingClass&&
V.element.classList.remove(V.config.draggingClass);V.reset();_.ip(A)})};
G=Object.keys(I.triggers);this.directions=new Set(G);heI(this.input,this.directions.has("right")||this.directions.has("left"))};
_.M(_.Wx,FM);_.Wx.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var q1o=function(G,b){b=G.input.direction(b);return G.config.triggers[b]};
_.Wx.prototype.move=function(G,b){var I=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var h=I.input.axis(G),q=I.input.position(G,I.config.startPosition,b.endPosition,b.moveRatio||1);I.element.style.transform="translate"+h+"("+q+"px)";I.animationRequestId=void 0}))};
var j5E=function(G,b,I){var h=I.moveRatio||1;I=Math.abs(G.config.startPosition-I.endPosition);return Math.min(G.input.distance(b)*h,I)/I};
_.Wx.prototype.fade=function(G,b){var I=b.endOpacity;G=j5E(this,G,b);G>0&&(this.element.style.opacity=""+(((I||0)-1)*G+1))};
_.Wx.prototype.threshold=function(G){return G.threshold?G.threshold:Math.abs(G.endPosition-this.config.startPosition)/3};
var mfh=function(G,b,I){var h,q,l,V,D,k,L;return _.c(function(x){if(x.nextAddress==1)return h=G.input.delta(b)+G.config.startPosition,q=G.input.axis(b),l=I,V=l.endPosition,D=l.transitionEndPosition,L=(k=D)!=null?k:V,x.yield(G.element.animate([{transform:"translate"+q+"("+h+"px)"},{transform:"translate"+q+"("+L+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.element.style.transform="translate"+q+"("+L+"px)";_.ip(x)})};
_.Wx.prototype.translateBack=function(G){var b=this,I,h;return _.c(function(q){if(q.nextAddress==1){if(!b.element.style.transform)return q.return();I=b.input.axis(G);h=b.config.startPosition;return q.yield(b.element.animate([{transform:b.element.style.transform},{transform:"translate"+I+"("+h+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}b.element.style.transform="translate"+I+"("+h+"px)";_.ip(q)})};
var lYa=function(G,b){var I,h,q,l;return _.c(function(V){if(V.nextAddress==1)return I=G.input.delta(b)+G.config.startPosition,h=G.input.axis(b),q=I+70,l=G.element.style.opacity===""?1:G.element.style.opacity,V.yield(G.element.animate([{transform:"translate"+h+"("+I+"px)",opacity:l},{transform:"translate"+h+"("+q+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.element.style.transform="translate"+h+"("+q+"px)";G.element.style.opacity="0";_.ip(V)})};var ai=function(){var G=_.eH.apply(this,arguments)||this;G._noAccessors=!0;G.scrollRate=3;G.autoScrollAnimationStart=0;G.autoScrollPaused=!1;G.autoScrollRafId=0;return G};
_.M(ai,_.eH);_.m=ai.prototype;_.m.created=function(){var G=this;this.boundAutoScrollHandler=function(b){G.autoScroll(b)}};
_.m.detached=function(){this.hostElement.removeEventListener("mouseout",_.I9(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.I9(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.I9(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.m.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.I9(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.I9(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.I9(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.I9(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.I9(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.I9(this,this.endAutoScroll)),this.endAutoScroll())};
_.m.autoScroll=function(G){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=G);var b;if(b=!this.autoScrollPaused&&this.scrollTarget)b=this.scrollTarget,b=b.scrollHeight-b.scrollTop!==b.clientHeight;b&&(b=1E3/this.scrollRate,G-=this.autoScrollAnimationStart,G>b&&(this.scrollTarget.scrollTop+=Math.ceil(G/b),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.m.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.m.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
ai.prototype.autoScrollEnabledChanged=ai.prototype.autoScrollEnabledChanged;_.R([_.H(),_.n("design:type",Object)],ai.prototype,"scrollRate",void 0);_.R([_.H(),_.n("design:type",Object)],ai.prototype,"scrollTarget",void 0);_.R([_.H(),_.n("design:type",Boolean)],ai.prototype,"autoScrollEnabled",void 0);_.R([_.q5("autoScrollEnabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ai.prototype,"autoScrollEnabledChanged",null);_.R([_.Vx()],ai);_.eeI=[ai.prototype];var V8h;var NX=function(){var G=_.a.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};
_.M(NX,_.a);_.m=NX.prototype;_.m.computeUrlImg=function(G){if(G)return _.u$(G.thumbnails)};
_.m.getLogoHeight=function(G){return this.logoWithPadding(G)?"31":"24"};
_.m.getLogoClassName=function(G){return this.logoWithPadding(G)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.m.logoWithPadding=function(G){var b,I;return(G=(b=G.thumbnails)==null?void 0:(I=b[0])==null?void 0:I.height)&&G%31===0?!0:!1};
_.m.sendImpressionEndpoints=function(G){G.impressionEndpoints&&_.pv(this.hostElement,G.impressionEndpoints)};
_.m.observeBasicPalette=function(){var G,b,I=(G=this.data)==null?void 0:(b=G.colorData)==null?void 0:b.basicColorPaletteData;I?_.vN(this.hostElement,I):_.vN(this.hostElement,{})};
_.m.observeDataChanged=function(){var G;this.dynamicTextHeight=((G=this.data)==null?0:G.supplementalText)?74:94;var b;this.hasSupplementalText=!((b=this.data)==null||!b.supplementalText);var I,h,q,l;G=(I=this.data)==null?void 0:(h=I.actionButton)==null?void 0:(q=h.buttonRenderer)==null?void 0:(l=q.colorData)==null?void 0:l.basicColorPaletteData;var V,D,k;if(!((V=this.data)==null?0:(D=V.actionButton)==null?0:(k=D.buttonRenderer)==null?0:k.style)&&G){this.computeIsInfeedModernization(this.data)||(G.borderColor=
G.foregroundTitleColor);var L,x;this.set("data.actionButton.buttonRenderer",_.Cy.unsafeClone((L=this.data)==null?void 0:(x=L.actionButton)==null?void 0:x.buttonRenderer))}};
_.m.observeDataForCounterfactual=function(){if(_.U("kevlar_banner_cf_extra_logging")){var G;((G=this.data)==null?0:G.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.m.computeSupplementalStyle=function(){var G;if((G=this.data)!=null&&G.supplementalText){var b,I,h;if((b=this.data)==null?0:(I=b.colorData)==null?0:(h=I.basicColorPaletteData)==null?0:h.foregroundActivatedColor)return G=_.Uo(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;"}};
_.m.computeForcedDarkTheme=function(){var G,b,I,h=(G=this.data)==null?void 0:(b=G.actionButton)==null?void 0:(I=b.buttonRenderer)==null?void 0:I.style,q,l,V;G=PnK(((q=this.data)==null?void 0:(l=q.colorData)==null?void 0:(V=l.basicColorPaletteData)==null?void 0:V.backgroundColor)||0);return h&&G};
_.m.computeForcedLightTheme=function(){var G,b,I,h=(G=this.data)==null?void 0:(b=G.actionButton)==null?void 0:(I=b.buttonRenderer)==null?void 0:I.style,q,l,V;G=!PnK(((q=this.data)==null?void 0:(l=q.colorData)==null?void 0:(V=l.basicColorPaletteData)==null?void 0:V.backgroundColor)||0);return h&&G};
_.m.computeHasOverflowButton=function(G){return!!G.overflowButton};
_.m.computeHasTitle=function(G){return!!G.title};
_.m.computeTitleMaxFontSize=function(G){return this.computeHasOverflowButton(G)?28:64};
_.m.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.m.computeIsInfeedModernization=function(){var G,b,I,h,q=(G=this.data)==null?void 0:(b=G.actionButton)==null?void 0:(I=b.buttonRenderer)==null?void 0:(h=I.colorData)==null?void 0:h.basicColorPaletteData;return(q==null?void 0:q.backgroundColor)===452984831||(q==null?void 0:q.backgroundColor)===218103808};
NX.prototype.observeDataForCounterfactual=NX.prototype.observeDataForCounterfactual;NX.prototype.observeDataChanged=NX.prototype.observeDataChanged;NX.prototype.observeBasicPalette=NX.prototype.observeBasicPalette;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],NX.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],NX.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],NX.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],NX.prototype,"hasSupplementalText",void 0);_.R([_.H(),_.n("design:type",Object)],NX.prototype,"dismissButtonOverrides",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.n("design:type",Boolean)],NX.prototype,"hasTitle",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.n("design:type",Object)],NX.prototype,"forceDarkTheme",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.n("design:type",Object)],NX.prototype,"forceLightTheme",void 0);_.R([_.H(),_.n("design:type",Object)],NX.prototype,"dynamicTextHeight",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.n("design:type",Object)],NX.prototype,"hasOverflowButton",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.n("design:type",Object)],NX.prototype,"isInfeedModernization",void 0);_.R([_.q5("data.colorData.basicColorPaletteData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NX.prototype,"observeBasicPalette",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NX.prototype,"observeDataChanged",null);_.R([_.q5("data.isVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NX.prototype,"observeDataForCounterfactual",null);_.R([_.N({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],NX);
_.J(NX,"ytd-banner-promo-renderer",function(){if(V8h!==void 0)return V8h;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden$="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return V8h=G},{mode:1});var Dfh;var ccg;var kaz;var v3z=function(){return _.a.apply(this,arguments)||this};
_.M(v3z,_.a);_.R([_.H(),_.n("design:type",Object)],v3z.prototype,"data",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],v3z.prototype,"ytRendererBehavior",void 0);_.R([_.N({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],v3z);
_.J(v3z,"ytd-hashtag-grid-tile-renderer",function(){if(kaz!==void 0)return kaz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return kaz=G},{mode:1});var Yw=function(){return _.a.apply(this,arguments)||this};
_.M(Yw,_.a);Yw.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Yw.prototype.updateRichGridTrendingHashtagsVisibility=function(){var G,b;if(((G=this.data)==null||!G.isExpanded)&&(b=this.data)!=null&&b.tiles){G=this.data.tiles.length;b=G>this.richGridItemsPerRow?this.richGridItemsPerRow+1:G;var I=Math.ceil(G/b);this.fullyVisibleRows=G%b===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
Yw.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Yw.prototype.updateRichGridTrendingHashtagsVisibility=Yw.prototype.updateRichGridTrendingHashtagsVisibility;_.R([_.H(),_.n("design:type",Object)],Yw.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Number)],Yw.prototype,"fullyVisibleRows",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Yw.prototype,"isShowMoreVisible",void 0);_.R([_.H({selector:_.sb,value:0}),_.n("design:type",Number)],Yw.prototype,"richGridItemsPerRow",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Yw.prototype,"ytdReduxBehavior",void 0);_.R([_.q5("data","richGridItemsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Yw.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.R([_.N({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Yw);
_.J(Yw,"ytd-hashtag-grid-shelf-renderer",function(){if(ccg!==void 0)return ccg;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ccg=G},{mode:1});var L9l;var Q5d;var CI=function(){var G=_.a.apply(this,arguments)||this;G.visibleVideos=[];G.hiddenVideos=[];G.modern=_.U("web_modern_buttons");G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.M(CI,_.a);_.m=CI.prototype;_.m.attached=function(){var G=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.onDarkModeToggledAction(G)};
_.m.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"}}}};
_.m.dataChanged=function(){var G=this;this.requestElementsPerRow();var b,I;this.currentColorPalette=this.isDarkTheme?(b=this.data)==null?void 0:b.darkColorData:(I=this.data)==null?void 0:I.lightColorData;var h;if((h=this.currentColorPalette)==null?0:h.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.D1(this,function(){G.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.m.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.m.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.m.computeIsFirstFeedItem=function(G){return G};
_.m.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G);this.data&&(this.currentColorPalette=G?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.m.getCurrentLogo=function(G,b){if(G)return b?G.darkLogoImage:G.lightLogoImage};
_.m.computeTitleStyle=function(G){var b;if((b=this.data)!=null&&b.title&&G&&G.textPrimary!==void 0)return"color:"+_.Uo(G.textPrimary)+";"};
_.m.computeSubtitleStyle=function(G){var b;if((b=this.data)!=null&&b.subtitle&&G&&G.textSecondary!==void 0)return"color:"+_.Uo(G.textSecondary)+";"};
_.m.computeDismissIconStyle=function(G){if(this.data&&this.data.dismissButton&&G&&G.textPrimary!==void 0)return"--yt-button-color:"+_.Uo(G.textPrimary)+";"};
_.m.computeOverflowButtonStyle=function(G){if(this.data&&this.data.overflowButton&&G&&G.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Uo(G.textPrimary)+";--yt-spec-icon-active-other:"+_.Uo(G.textPrimary)+";"};
_.m.computeBackgroundStyle=function(G){if(G&&this.data){var b="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.u$((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&(b+='background-image:url("'+I+'");')}G.backgroundColor!==void 0&&(b+="background-color:"+_.so(G.backgroundColor)+";");return b}};
_.m.computeButton=function(){var G,b=Object.assign({},_.g((G=this.data)==null?void 0:G.showMoreButton,_.bz));if(this.modern&&b){b.style="STYLE_MONO_OUTLINE";var I;if(G=(I=this.currentColorPalette)==null?void 0:I.textPrimary)b.colorData={basicColorPaletteData:{foregroundTitleColor:G,borderColor:G}}}return b};
_.m.shouldShowBottomButton=function(G,b){return!(G==null?0:G.header)&&!(G==null||!G.primaryButton)&&b<3};
_.m.checkExpanded=function(G){this.isExpanded=G&&G.content?this.hiddenVideos.length===0:!0};
_.m.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.m.getLogoHeight=function(G){return this.logoWithPadding(G)?"26":"20"};
_.m.getLogoImageId=function(G){return this.logoWithPadding(G)?"logo-image-with-padding":"logo-image"};
_.m.computeHasSectionHeader=function(G){return!!G.header};
_.m.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 b;((b=this.data.dismissButton)==null?0:b.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var I,h;((I=this.data)==null?0:(h=I.primaryButton)==null?0:h.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.m.setVisibleVideos=function(G){if(this.data&&this.data.content)if(this.data.content.length){var b=this.data.content.length;this.data.header?G?(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.slimItemsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow-1),b))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.m.setHasMovieRenderer=function(){var G;if((G=this.data)!=null&&G.content){var b;this.hasMovieRenderer=!!_.g((b=this.data)==null?void 0:b.content[0],_.HRz)}else this.hasMovieRenderer=!1};
_.m.requestElementsPerRow=function(){_.O3(this.hostElement,"yt-request-elements-per-row")};
_.m.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var G=_.e(this.hiddenMediaRenderers),b=G.next();!b.done;b=G.next())b.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(G=_.Eo(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&G.focus()}};
_.m.updateTitleSpec=function(){var G;(G=this.data)!=null&&G.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.m.logoWithPadding=function(G){var b,I,h;return(G=(b=this.getCurrentLogo(G,this.isDarkTheme))==null?void 0:(I=b.thumbnails)==null?void 0:(h=I[0])==null?void 0:h.height)&&G%31===0?!0:!1};
_.m.onUpdateElementsPerRowAction=function(G,b,I){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G);I&&this.slimItemsPerRow!==I&&(this.slimItemsPerRow=I)};
CI.prototype.slimItemsPerRowChanged=CI.prototype.slimItemsPerRowChanged;CI.prototype.elementsPerRowChanged=CI.prototype.elementsPerRowChanged;CI.prototype.dataChanged=CI.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],CI.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],CI.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],CI.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],CI.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],CI.prototype,"currentColorPalette",void 0);_.R([_.H(),_.n("design:type",Array)],CI.prototype,"visibleVideos",void 0);_.R([_.H(),_.n("design:type",Array)],CI.prototype,"hiddenVideos",void 0);
_.R([_.H(),_.n("design:type",Object)],CI.prototype,"primaryButton",void 0);_.R([_.H({reflectToAttribute:!0,value:3}),_.n("design:type",Number)],CI.prototype,"elementsPerRow",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],CI.prototype,"isDarkTheme",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],CI.prototype,"isExpanded",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],CI.prototype,"largeTitle",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],CI.prototype,"hasMovieRenderer",void 0);_.R([_.H(),_.n("design:type",Number)],CI.prototype,"slimItemsPerRow",void 0);_.R([_.H(),_.n("design:type",Boolean)],CI.prototype,"showLightVideoMetadata",void 0);_.R([_.H(),_.n("design:type",Boolean)],CI.prototype,"showDarkVideoMetadata",void 0);_.R([_.H(),_.n("design:type",Number)],CI.prototype,"videoMetadataColor",void 0);
_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],CI.prototype,"miniMode",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.n("design:type",Boolean)],CI.prototype,"isFirstFeedItem",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.n("design:type",Boolean)],CI.prototype,"hasSectionHeader",void 0);
_.R([_.H({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],CI.prototype,"roundedContainer",void 0);_.R([_.mN("#visible-video-container ytd-rich-grid-media"),_.n("design:type",Array)],CI.prototype,"visibleMediaRenderers",void 0);_.R([_.mN("#hidden-video-container ytd-rich-grid-media"),_.n("design:type",Array)],CI.prototype,"hiddenMediaRenderers",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],CI.prototype,"modern",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CI.prototype,"dataChanged",null);_.R([_.q5("elementsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CI.prototype,"elementsPerRowChanged",null);_.R([_.q5("slimItemsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CI.prototype,"slimItemsPerRowChanged",null);
_.R([_.N({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],CI);
_.J(CI,"ytd-brand-video-shelf-renderer",function(){if(Q5d!==void 0)return Q5d;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Q5d=G},{mode:1});var xfh;var JR=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.M(JR,_.a);_.m=JR.prototype;_.m.attached=function(){var G=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.onDarkModeToggledAction(G)};
_.m.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"}}}};
_.m.dataChanged=function(){this.requestElementsPerRow();var G,b;this.currentColorPalette=this.isDarkTheme?(G=this.data)==null?void 0:G.darkColorData:(b=this.data)==null?void 0:b.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.m.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.m.computeIsFirstFeedItem=function(G){return G};
_.m.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())};
_.m.shouldShowThumbnailInMetadata=function(G){return G<=1};
_.m.computeVideoMetadataColor=function(){if(this.data){var G;if((G=this.currentColorPalette)==null?0:G.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.m.computeTitleStyle=function(G){var b;if((b=this.data)!=null&&b.title&&G&&G.textPrimary!==void 0)return"color:"+_.Uo(G.textPrimary)+";"};
_.m.computeSubtitleStyle=function(G){var b;if((b=this.data)!=null&&b.subtitle&&G&&G.textSecondary!==void 0)return"color:"+_.Uo(G.textSecondary)+";"};
_.m.computeOverflowButtonStyle=function(G){if(this.data&&this.data.overflowButton&&G.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Uo(G.textPrimary)+";--yt-spec-icon-active-other:"+_.Uo(G.textPrimary)+";"};
_.m.computeBackgroundStyle=function(G){if(G&&this.data){var b="";G.backgroundColor!==void 0&&(b+="background-color:"+_.so(G.backgroundColor)+";");return b}};
_.m.computeHasOverflowButton=function(G){return!!G.overflowButton};
_.m.updateButtonPalette=function(){if(this.data){var G;if((G=this.data.primaryButton)==null?0:G.buttonRenderer){var b;if((b=this.currentColorPalette)==null?0:b.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)})}}};
_.m.requestElementsPerRow=function(){_.O3(this.hostElement,"yt-request-elements-per-row")};
_.m.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")};
_.m.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
JR.prototype.elementsPerRowChanged=JR.prototype.elementsPerRowChanged;JR.prototype.dataChanged=JR.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],JR.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],JR.prototype,"ytdDismissibleItemBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],JR.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],JR.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],JR.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],JR.prototype,"currentColorPalette",void 0);_.R([_.H(),_.n("design:type",Object)],JR.prototype,"primaryButton",void 0);
_.R([_.H({reflectToAttribute:!0,value:3}),_.n("design:type",Number)],JR.prototype,"elementsPerRow",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],JR.prototype,"isDarkTheme",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],JR.prototype,"titleSize",void 0);_.R([_.H(),_.n("design:type",Number)],JR.prototype,"videoMetadataColor",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],JR.prototype,"miniMode",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.n("design:type",Boolean)],JR.prototype,"isFirstFeedItem",void 0);_.R([_.H({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],JR.prototype,"roundedContainer",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.n("design:type",Boolean)],JR.prototype,"hasOverflowButton",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JR.prototype,"dataChanged",null);_.R([_.q5("elementsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JR.prototype,"elementsPerRowChanged",null);_.R([_.N({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],JR);
_.J(JR,"ytd-brand-video-singleton-renderer",function(){if(xfh!==void 0)return xfh;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return xfh=G},{mode:_.nn("kevlar_poly_si_batch_j070")?1:2});var fYa;var TjI=_.C(function(G){var b=G.data;return _.v(_.Fu,{data:function(){return b().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(b().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 b().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Im"),Ufg=_.C(function(G){var b=G.metadataRow;
var I=G.delimiter;return _.v(_.aj,{each:function(){return b().textParts||[]},
keyBy:"INDEX"},function(h,q){return _.v(_.xz,null,_.v(_.IS,{text:h,noWrap:!0,userInput:!0}),_.v(Bjo,{delimiter:I,max:function(){return b().textParts.length},
index:q}))})},"Jm"),Bjo=_.C(function(G){var b=G.delimiter;
var I=G.max;var h=G.index;return _.v(_.Q,{cond:function(){return(b==null?void 0:b())&&I()-1>h()},
then:function(){return _.v("span",null,b)}})},"Km"),s5o=_.C(function(G){var b=G.data;
G={};return _.v("yt-profile-page-header-information-view-model",{class:_.pG("profilePageHeaderInformationViewModelHost",(G.profilePageHeaderInformationViewModelMobile=!1,G))},_.v(_.Q,{cond:function(){return b().onTap},
then:function(){return _.v(_.LP,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.s0(b().onTap)}},_.v(_.VX,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:TjI}))},
else:function(){return _.v("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.v(_.VX,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:TjI}))}}),_.v("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.v(_.Q,{cond:function(){return b().onTap},
then:function(){return _.v(_.VX,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(I){var h=I.data;
return _.v(_.LP,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.s0(h().onTap)}},_.v(_.IS,{text:function(){return h().title}}))}})},
else:function(){return _.v(_.VX,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(I){var h=I.data;
return _.v(_.IS,{text:function(){return h().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.v(_.VX,{data:function(){return b().metadata}},{profilePageHeaderMetadataViewModel:function(I){var h=I.data;
return _.v(_.Q,{cond:function(){return h().metadataRows},
then:function(q){return _.v("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.v(_.aj,{each:q,keyBy:"INDEX"},function(l,V){return _.v(_.xz,null,_.v(Ufg,{metadataRow:l,delimiter:" \u2022 "}),_.v(Bjo,{delimiter:" \u2022 ",max:function(){return q().length},
index:V}))}))}})}})))},"Lm");
s5o.idomCompat=!0;_.JN(s5o,"yt-profile-page-header-information-view-model",{props:{data:_.hV}});var KI=function(){return _.a.apply(this,arguments)||this};
_.M(KI,_.a);KI.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],KI.prototype,"data",void 0);_.R([_.N({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],KI);
_.J(KI,"ytd-effect-pivot-header-view-model",function(){if(fYa!==void 0)return fYa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return fYa=
G},{mode:1});var g3o;var uq=function(){return _.a.apply(this,arguments)||this};
_.M(uq,_.a);uq.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],uq.prototype,"data",void 0);_.R([_.N({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],uq);
_.J(uq,"ytd-source-pivot-header-renderer",function(){if(g3o!==void 0)return g3o;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return g3o=G},{mode:1});_.JN(_.N4W,"yt-card-view-model",{props:{data:_.hV,className:_.hV,isSelected:_.hV}});var RWd=_.ajW.talkToRecsStateSelector;_.JN(_.C(function(G){var b=function(){return _.g(G.data().flowRoot,XXa)};
_.K3(function(){var I=b(),h=function(){},q=function(){};
if(I){var l,V,D,k=((D=_.g((l=b())==null?void 0:(V=l.steps)==null?void 0:V[0],_.Yf))==null?void 0:D.stepId)||"";J57(I,k);h=uJd(I);q=nbl(I)}_.uI(function(){var L=b();L&&_.Cw().dispatch(_.Da("flowStateEntity",L.flowStateEntityKey));h();h=function(){};
q();q=function(){};
_.W5(_.aPc())})});
return _.v("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.v(_.gB,{contentId:function(){return G.data().contentId}},function(){return _.v("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.v(_.Q,{cond:b,
then:function(I){return _.v(_.me8,{data:I})}}))}))},"Mm"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.hV}});_.JN(_.C(function(){return _.v("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.v("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.v("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.v(_.Hnj,null)),_.v(_.SkQ,{data:{rows:1},isExploreHub:!0}))},"Nm"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.JN(_.C(function(G){var b=G.data;var I=G.standardUnitMinWidth;G=_.e((0,_.bjz)(b));var h=G.next().value,q=G.next().value,l=function(){var D,k=(D=h())==null?void 0:D.contents;return k==null||k.length===0},V=function(){q(Object.assign({},h(),{contents:[]}))};
return _.v("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.Wv(_.L8({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var D=_.g(b().chipsShelf,$fz);if(D!=null&&D!=null&&D.autoselectChipOnVisible){var k,L,x=_.g(D==null?void 0:(k=D.contents)==null?void 0:k[(L=D.autoselectedChipIndex)!=null?L:0],_.lz);x&&x.tapCommand&&_.Zm(x.tapCommand)}}}))},_.v(_.gB,{contentId:function(){return b().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.v("div",null,_.v("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.v(_.VX,{data:function(){return b().header}},{sectionHeaderViewModel:function(D){return _.v(_.dn,{data:D.data,
disableHorizontalPadding:!0})}})),_.v("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.v(_.VX,{data:function(){return b().chipsShelf}},{chipsShelfViewModel:function(D){return _.v(_.de,{data:D.data,
callback:V,selectionBehavior:1})}})),_.v("div",null,_.v(_.Q,{cond:l,
then:function(){return _.v("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.v(_.SkQ,{data:{rows:1},isExploreHub:!0}))}}),_.v(_.VX,{data:function(){var D;
return(D=h())==null?void 0:D.contents}},{richShelfRenderer:function(D){return _.v(_.knz,{data:D.data,
isInnerShelf:!0,standardUnitMinWidth:I})}})))}))},"Om"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.hV,
standardUnitMinWidth:_.hV}});var Ri=function(){return _.a.apply(this,arguments)||this};
_.M(Ri,_.a);
Ri.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}}};
Ri.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.R([_.z(_.wN),_.n("design:type",Object)],Ri.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.mD),_.n("design:type",Object)],Ri.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ri.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Number)],Ri.prototype,"standardUnitMinWidth",void 0);_.R([_.N({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Ri);
_.J(Ri,"ytd-rich-section-renderer",function(){if(L9l!==void 0)return L9l;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return L9l=G},{mode:_.nn("kevlar_poly_si_batch_j029")?
1:2});_.JN(_.TK1,"yt-profile-identity-info-view-model",{props:{data:_.hV,hideDivider:_.hV,isChannelInfoCard:_.hV}});_.JN(_.cdF,"yt-page-header-view-model",{props:{data:_.hV,noPadding:_.hV,enableBanner:_.hV,cinematicContainerTopbarOffset:_.hV,allowCinematicContainerOverflow:_.hV,displayAsSidebar:_.hV,displayAsPanel:_.hV,alwaysUseMediumTextDescription:_.hV}});_.JN(_.C(function(G){var b=G.data;var I=function(){var q;return(q=b().numColumns)!=null?q:2},h=function(){return I()>1?3:2};
G={};return _.v("ytd-rich-grid-group",{class:_.pG("ytdRichGridGroupHost",(G.ytdRichGridGroupHostFirstColumn=function(){return b().colIndex===0},G)),
style:_.Ir({"--ytd-rich-grid-group-num-columns":I,"--ytd-rich-grid-items-per-group":h})},_.v("div",{class:"ytdRichGridGroupContents"},_.v(_.VX,{data:function(){var q;return(q=b().contents)==null?void 0:q.slice(0,h())}},{richItemRenderer:function(q){return _.v(_.D78,{data:q.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Pm"),"ytd-rich-grid-group",{props:{data:_.hV}});var nI=function(){var G=_.a.apply(this,arguments)||this;G.resizeOnObserverInit=!1;G.isInlinePreviewDisabled=_.U("web_disable_inline_preview");G.disableStickyFilterBar=!1;G.transparentBackgroundChipsBar=!1;G.hideChipsBar=!1;G.collapseFeedCustomizationForm=!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(b){var I=_.e(b);b=I.next().value;I=I.next().value;return[b,I.component]}));
G.insertedContent=new Map;return G};
_.M(nI,_.a);_.m=nI.prototype;_.m.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var G=_.e(_.Eo(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),b=G.next();!b.done;b=G.next())b.value.useCompactList=this.useCompactList};
_.m.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var G=_.e(_.Eo(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),b=G.next();!b.done;b=G.next())b=b.value,b.sizing=this.sizing,b.typographyBump=this.typographyBump};
_.m.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.m.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]]"}}}};
_.m.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]",collapseFeedCustomizationForm:"[[collapseFeedCustomizationForm]]"}},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}}};
_.m.attached=function(){document.addEventListener("yt-page-type-changed",_.I9(this,this.onPageChange));document.addEventListener("scroll",_.I9(this,this.onScroll));document.addEventListener("yt-feed-customization-scroll-up",_.I9(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$22314_throttledOnResize=new _.GB(this.resizeObserved,_.Te("rich_grid_resize_delay_ms",50),this)};
_.m.detached=function(){var G;(G=this.resizeObserver)==null||G.disconnect();document.removeEventListener("yt-page-type-changed",_.I9(this,this.onPageChange));document.removeEventListener("scroll",_.I9(this,this.onScroll));document.removeEventListener("yt-feed-customization-scroll-up",_.I9(this,this.onFeedCustomizationScrollUp))};
_.m.insertRichSection=function(G){var b=G.richItemTargetId;G=G.richSectionRendererToInsert;b&&G&&(this.insertedContent.set(b,{content:G,timestamp:Date.now()}),this.reflowContent())};
_.m.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.m.computeIsInlinePreviewEnabled=function(G,b,I){return _.U("web_disable_inline_preview")?!1:!I&&_.ZvW({miniplayerIsActive:G,miniplayerPlaybackState:b})};
_.m.computeSizing=function(){var G=_.atO(this.data);if(G||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return G?this.useCompactList?"COMPACT":G:this.miniMode?"COMPACT":"STANDARD"};
_.m.updateItemMinAndMaxWidth=function(){var G=_.Te("rich_grid_max_item_width",500);G>0&&_.G8(this.hostElement,{"--ytd-rich-grid-item-max-width":G+"px"});var b;G=this.getRichItemMinWidth((b=this.hostElement)==null?void 0:b.clientWidth);G>0&&_.G8(this.hostElement,{"--ytd-rich-grid-item-min-width":G+"px"})};
_.m.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.m.resizeObserved=function(){_.E3(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.m.onPageChange=function(){var G=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.E3(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.uu.addJob(function(){G.pageLoadingFromNavigation=!1;G.setMasthead();G.maybeSetBigYoodle();G.forceRefreshAndLog();G.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.m.dataChanged=function(){var G=this;_.E3(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.D1(this,function(){G.updateRichItemGridPositions();G.contentsElement&&_.G8(G.hostElement,{"--ytd-rich-grid-content-offset-top":G.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.m.initResizeObserver=function(){var G=this;if(window.ResizeObserver){var b;(b=this.resizeObserver)==null||b.disconnect();var I=!1;this.resizeObserver=new ResizeObserver(function(){if(I){var h;(h=G.resizeObserver)==null||h.disconnect();var q;(q=G.JSC$22314_throttledOnResize)==null||q.fire();requestAnimationFrame(function(){var V;(V=G.JSC$22314_throttledOnResize)==null||V.fire();G.initResizeObserver()})}else if(I=!0,G.resizeOnObserverInit){var l;
(l=G.JSC$22314_throttledOnResize)==null||l.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.m.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.E3(this.hostElement,"ytd-rich-item-index-update-action")};
_.m.updateElementsPerRow=function(){_.E3(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.wK({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.wK({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.m.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.m.onRichShelfRendererCollapse=function(G){if(this.shownItems){var b=G.detail;G=this.shownItems.findIndex(function(h){var q,l;return((l=_.g(h==null?void 0:(q=h.richSectionRenderer)==null?void 0:q.content,_.zqu))==null?void 0:l.trackingParams)===b});
var I=G+1;G<0||I>=this.contentsElement.children.length||!this.shownItems[I].richItemRenderer||this.contentsElement.children[I].scrollIntoView({behavior:"smooth",block:"start"})}};
_.m.onSoftReloadPage=function(){this.scrollUpToTop()};
_.m.handleRerenderDownloadsData=function(){_.U("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.m.handlePlaylistRemoveVideosAction=function(G){var b;if(((b=_.g(G,_.uHW))==null?0:b.setVideoIds)&&this.data&&this.data.contents){G=_.g(G,_.uHW).setVideoIds;for(b=this.data.contents.length-1;b>=0;){var I=_.g(this.data.contents[b],_.NZ);(I=I&&_.g(I.content,_.$F))&&I.setVideoId&&G.includes(I.setVideoId)&&this.splice("data.contents",b,1);b--}this.updateIndices()}};
_.m.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",_.ao(String(G+1)))};
_.m.hasTopRowInlinePlayableVideoWithEndorsement=function(G){var b;return!((b=G.slice(0,this.getItemsPerRow()))==null||!b.some(function(I){var h;I=_.g(I==null?void 0:(h=I.richItemRenderer)==null?void 0:h.content,_.he);var q;return(I==null?void 0:I.inlinePlaybackEndpoint)&&(I==null?void 0:(q=I.thumbnailOverlays)==null?void 0:q.some(function(l){return l.thumbnailOverlayEndorsementRenderer}))}))};
_.m.refreshGridLayoutNew=function(G,b,I,h){var q=h.postsPerRow;var l=h.slimItemsPerRow;var V=h.gameCardsPerRow;h=h.miniGameCardsPerRow;var D;if((D=this.data)==null||!D.contents||!this.containerWidth)return!1;var k;if((k=this.data.responsiveContainerConfiguration)==null?0:k.responsiveSize){var L=_.BEq(this.data.responsiveContainerConfiguration,this.containerWidth,2),x;D=_.zZ(Object.assign({},L,{standardUnitMinWidth:(x=this.data)==null?void 0:x.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&L.isCompactList)}else D=_.zZ({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(L=this.data)==null?void 0:L.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=D.typographyBump;x=!1;if(G||this.elementsPerRow!==D.numItems||this.postsPerRow!==q||this.slimItemsPerRow!==l||this.gameCardsPerRow!==
V||this.miniGameCardsPerRow!==h||this.gutter!==D.gutter)x=this.elementsPerRow!==D.numItems,this.elementsPerRow=D.numItems,this.postsPerRow=q,this.slimItemsPerRow=l,this.gameCardsPerRow=V,this.miniGameCardsPerRow=h,this.gutter=D.gutter,this.itemWidth=D.itemWidth,this.reflowContent(b),_.G8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":D.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(I);this.ytdReduxBehavior.dispatch(_.wK({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:D.maxContainerWidth}));return x};
_.m.refreshGridLayout=function(G,b){var I,h=(I=this.hostElement)==null?void 0:I.clientWidth;this.containerWidth=this.adjustRichGridWidth(h,!0);var q;if((q=this.data)==null||!q.contents||!this.containerWidth)return G&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(G=!0,this.pendingForceReflow=!1);I=this.getRichItemMinWidth(h);var l=this.isShortsPanel?146:194,V=this.getMiniGameCardMinWidth(),D=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.Te("rich_grid_default_max_items_per_row",
6);h=I=this.calcElementsPerRow(I,D);(q=I<=3&&this.miniModeAllowed())&&(I=this.calcElementsPerRow(240,4));var k=this.calcMaxSlimElementsPerRow(I,D,this.isDefaultGrid);D=this.calcElementsPerRow(l,k);var L=this.calcElementsPerRow(this.isCompactGrid?l:154,k);l=this.calcElementsPerRow(this.isCompactGrid?l:V,k);V=!1;if(this.sizing)return this.refreshGridLayoutNew(G,b,q,{postsPerRow:h,slimItemsPerRow:D,gameCardsPerRow:L,miniGameCardsPerRow:l});if(G||this.elementsPerRow!==I||this.postsPerRow!==h||this.slimItemsPerRow!==
D||this.gameCardsPerRow!==L||this.miniGameCardsPerRow!==l)V=this.elementsPerRow!==I,this.elementsPerRow=I,this.postsPerRow=h,this.slimItemsPerRow=D,this.gameCardsPerRow=L,this.miniGameCardsPerRow=l,this.reflowContent(b),this.updateElementsPerRow(),_.G8(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)&&_.G8(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(q);_.E3(this.hostElement,"yt-rich-grid-layout-refreshed");return V};
_.m.getRichItemMinWidth=function(G){var b=_.Te("rich_grid_min_item_width",310);if(!_.U("kevlar_disable_min_width_override")){var I,h;b=(h=(I=this.data)==null?void 0:I.minItemWidth)!=null?h:b}return b+_.dmO(G)};
_.m.calcMaxSlimElementsPerRow=function(G,b,I){return(I===void 0?0:I)?G===1?2:G%2===0?G/2*3:G+2:b*2};
_.m.adjustRichGridWidth=function(G,b){var I=_.U("disable_rich_grid_guide_compensation");if(!this.isWatch&&!I){I=_.LL().resolve(_.vf(_.$E));var h=I==null?void 0:I.guideElement;if(!(!I||I.getData()||h!=null&&h.opened||I.getMiniGuideVisible()))if(I.canFitPersistentGuide(G)&&I.getGuideExpandsAutomatically()){var q,l,V=Number((q=window.getComputedStyle(this.hostElement))==null?void 0:(l=q.getPropertyValue("--app-drawer-width"))==null?void 0:l.replace("px",""));G-=V||0}else if(I.canFitMiniGuide(G)){var D;
q=Number((V=window.getComputedStyle(this.hostElement))==null?void 0:(D=V.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:D.replace("px",""));G-=q||0}}G>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(G-=b?32:48));return G};
_.m.calcElementsPerRow=function(G,b){var I=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),h=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((I+h)/(G+h))||1,b)};
_.m.reflowContent=function(G){var b=this;if(!this.isReflowing){this.isReflowing=!0;var I,h,q=!!((I=this.data)==null?0:(h=I.contents)==null?0:h.some(function(D){return _.g(D,_.Yg)}));
I=this.getItemsPerRow();var l;h=(l=this.data)==null?void 0:l.reflowOptions;G&&(_.sS("rgr_s"),_.D1(this,function(){_.sS("rgr_nrf")}));
G={};(l=_.Eo(this.hostElement).querySelector("#contents"))&&(G={contentElement:l,rendererToTagNameMap:this.rendererToTagNameMap});l=(l=this.data.contents)?l.slice():[];q=FOA(l,I,q,h,this.getRichGridStyle(),G,this.insertedContent);var V=q.orderedContent;if(q=q.pinnedContentNotShownTargetIds)for(q=_.e(q),I=q.next();!I.done;I=q.next())this.insertedContent.delete(I.value);q=function(){b.shownItems=V;b.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(V),_.D1(this,q)):q()}};
_.m.getFirstRowItems=function(G){for(var b=[],I=0;I<G.length;I++){var h=void 0,q=void 0,l=void 0,V=void 0,D=void 0,k=void 0;if(((h=G[I])==null?void 0:(q=h.richItemRenderer)==null?void 0:q.rowIndex)===0||((l=G[I])==null?void 0:(V=l.richGroupRenderer)==null?void 0:V.rowIndex)===0||((D=G[I])==null?void 0:(k=D.richSectionRenderer)==null?void 0:k.rowIndex)===0)b.push(G[I]);else break}return b};
_.m.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.m.resetInsertedContentIfNeeded=function(){(_.U("web_explore_hub_on_hover")||_.U("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.m.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.m.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()};
_.m.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.m.terminateVideoPreview=function(){_.E3(this.hostElement,"yt-terminate-video-preview-action")};
_.m.updateRichItemGridPositions=function(){var G={gridData:{gridColumnCount:this.elementsPerRow}},b;((b=this.data)==null?0:b.trackingParams)&&(b=_.gL())&&_.NP(b,_.VB(this.data.trackingParams),G);_.E3(this.hostElement,"ytd-rich-item-index-update-action")};
_.m.miniModeAllowed=function(){return this.isChannelPage};
_.m.getMiniGameCardMinWidth=function(){return 154};
_.m.updateMiniMode=function(G){this.miniMode=this.miniModeAllowed()&&G;this.ytdReduxBehavior.dispatch(_.wK({type:"SET_RICH_GRID_MINI_MODE",payload:G}))};
_.m.isCurrentPage=function(){return location.pathname===this.pagePath};
_.m.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var G=_.LL().resolve(_.Ck).getCurrentPage();G&&G.setScrollTop(0)}};
_.m.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.m.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.m.maybeSetBigYoodle=function(){var G,b=(G=this.data)==null?void 0:G.bigYoodle;this.bigYoodleData!==b&&(this.bigYoodleData=b)};
_.m.setMasthead=function(){var G;((G=this.data)==null?0:G.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.m.getRichGridStyle=function(){var G,b;return(b=(G=this.data)==null?void 0:G.style)!=null?b:"RICH_GRID_STYLE_UNKNOWN"};
_.m.onIsShortsGridChange=function(){var G=this.ytdReduxBehavior,b=G.dispatch,I=this.getRichGridStyle();b.call(G,_.wK({type:"SET_RICH_GRID_STYLE",payload:I}))};
_.m.onScroll=function(){this.collapseFeedCustomizationForm=window.scrollY>20};
_.m.onFeedCustomizationScrollUp=function(){this.collapseFeedCustomizationForm=!1;this.scrollUpToTop()};
_.kV.Object.defineProperties(nI.prototype,{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=_.LL().resolve(_.Ck).getCurrentPage(),b,I,h;return(((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_audio_pivot"||_.U("web_enable_channel_pivot_panel")&&((I=this.data)==null?void 0:I.targetId)==="browse-feedFEsfv_channel_pivot"||_.U("web_enable_effect_pivot_panel")&&((h=this.data)==null?void 0:h.targetId)==="browse-feedFEsfv_effect_pivot")&&(G==null?void 0:G.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.U("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=_.LL().resolve(_.Ck).getCurrentPage())==null?void 0:G.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var G;return((G=_.LL().resolve(_.Ck).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,b,I;return((G=this.data)==null?0:G.enableContentSpecificAspectRatio)||((b=this.data)==null?0:(I=b.responsiveContainerConfiguration)==null?0:I.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Te("web_continuation_handler_margin",0):0}}});
nI.prototype.onIsShortsGridChange=nI.prototype.onIsShortsGridChange;nI.prototype.onReloadContinuationFinish=nI.prototype.onReloadContinuationFinish;nI.prototype.reflowContent=nI.prototype.reflowContent;nI.prototype.handleRerenderDownloadsData=nI.prototype.handleRerenderDownloadsData;nI.prototype.onRichShelfRendererCollapse=nI.prototype.onRichShelfRendererCollapse;nI.prototype.onRequestElementsPerRow=nI.prototype.onRequestElementsPerRow;nI.prototype.contentLengthChanged=nI.prototype.contentLengthChanged;
nI.prototype.dataChanged=nI.prototype.dataChanged;nI.prototype.onSizingChange=nI.prototype.onSizingChange;nI.prototype.onUseCompactListChange=nI.prototype.onUseCompactListChange;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.Y6),_.n("design:type",Object)],nI.prototype,"ironResizableBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],nI.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.mD),_.n("design:type",Object)],nI.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],nI.prototype,"componentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],nI.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],nI.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],nI.prototype,"miniMode",void 0);_.R([_.H({value:[]}),_.n("design:type",Array)],nI.prototype,"shownItems",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],nI.prototype,"isReflowing",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],nI.prototype,"isFilteredFeed",void 0);_.R([_.H({selector:_.PDr}),_.n("design:type",Boolean)],nI.prototype,"guideIsExpanded",void 0);
_.R([_.H({selectorArgs:["entitySelectorType"],selector:function(G,b){if(_.U("kevlar_modern_downloads_page")&&b&&b!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(b){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":b=G.entities;var I=_.fw(b),h=_.Ti(b),q=_.EKO(G),l=_.w6O(G),V=_.p6B(G),D=_.UDa(b),k=_.D0(I),L=_.Bj(b);return _.kKs(I,h,D,_.Mdu(b),q,l,k,L,V,_.X6B(G),_.MO(G));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return G=_.fw(G.entities),_.LKv(G);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return G=
_.fNa(G.entities),_.Q7a(G);default:_.RB(new _.Wf("Error: entitySelectorType defined but not matched in selector.",G,b))}}}),
_.n("design:type",Object)],nI.prototype,"entityDrivenRichGridData",void 0);_.R([_.H(),_.n("design:type",Object)],nI.prototype,"resizeOnObserverInit",void 0);_.R([_.H(),_.n("design:type",Object)],nI.prototype,"bigYoodleData",void 0);_.R([_.H(),_.n("design:type",Object)],nI.prototype,"mastheadData",void 0);_.R([_.H(),_.n("design:type",Boolean)],nI.prototype,"isInlinePreviewDisabled",void 0);_.R([_.H(),_.n("design:type",Object)],nI.prototype,"disableStickyFilterBar",void 0);
_.R([_.H(),_.n("design:type",Object)],nI.prototype,"transparentBackgroundChipsBar",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],nI.prototype,"hideChipsBar",void 0);_.R([_.H(),_.n("design:type",Object)],nI.prototype,"collapseFeedCustomizationForm",void 0);_.R([_.H(),_.n("design:type",Object)],nI.prototype,"isWatchDefaultLayout",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],nI.prototype,"continuationShowButton",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],nI.prototype,"rowReducedHorizontalMargin",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],nI.prototype,"useCompactList",void 0);_.R([_.H({selector:function(G){return _.Ti(G.entities).length>0}}),
_.n("design:type",Object)],nI.prototype,"manualDownloadsPresent",void 0);_.R([_.H({selector:function(G){return _.fw(G.entities).length>0}}),
_.n("design:type",Object)],nI.prototype,"smartDownloadsPresent",void 0);_.R([_.H({selector:_.MO}),_.n("design:type",Object)],nI.prototype,"isOnline",void 0);_.R([_.H({selector:_.w6O}),_.n("design:type",Object)],nI.prototype,"shouldRenderDownloadsBanner",void 0);_.R([_.H({selector:_.X6B}),_.n("design:type",Object)],nI.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.R([_.H({selector:_.EKO}),_.n("design:type",Object)],nI.prototype,"hasOptedIntoSmartDownloads",void 0);
_.R([_.q5("useCompactList"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nI.prototype,"onUseCompactListChange",null);_.R([_.q5("sizing","typographyBump"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nI.prototype,"onSizingChange",null);_.R([_.H({selector:_.WkO}),_.n("design:type",Number)],nI.prototype,"miniplayerPlaybackState",void 0);_.R([_.H({selector:_.g4}),_.n("design:type",Boolean)],nI.prototype,"miniplayerIsActive",void 0);
_.R([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.n("design:type",Boolean)],nI.prototype,"isInlinePreviewEnabled",void 0);_.R([_.H({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.n("design:type",String)],nI.prototype,"sizing",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],nI.prototype,"elementsPerRow",void 0);
_.R([_.H(),_.n("design:type",Object)],nI.prototype,"typographyBump",void 0);_.R([_.H(),_.n("design:type",Number)],nI.prototype,"itemWidth",void 0);_.R([_.lH("#header"),_.n("design:type",HTMLElement)],nI.prototype,"headerElement",void 0);_.R([_.lH("#contents"),_.n("design:type",HTMLElement)],nI.prototype,"contentsElement",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nI.prototype,"dataChanged",null);
_.R([_.Dd("data.contents.length"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nI.prototype,"contentLengthChanged",null);_.R([_.hI("yt-request-elements-per-row"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nI.prototype,"onRequestElementsPerRow",null);
_.R([_.hI("yt-rich-shelf-renderer-collapse"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nI.prototype,"onRichShelfRendererCollapse",null);_.R([_.Dd("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nI.prototype,"handleRerenderDownloadsData",null);
_.R([_.P("data"),_.n("design:type",String),_.n("design:paramtypes",[])],nI.prototype,"entitySelectorType",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.targetId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"isSub",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.targetId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"isWatch",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data.targetId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"isShortsPanel",null);_.R([_.H({reflectToAttribute:!0}),_.P("isWatch"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"reducedTopMargin",null);_.R([_.H({reflectToAttribute:!0}),_.P("data","isWatch","isWatchDefaultLayout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"noTopMargin",null);
_.R([_.H({reflectToAttribute:!0}),_.P("isInlinePreviewEnabled","shownItems"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"topRowEndorsement",null);_.R([_.P("data.header"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"hideHeader",null);_.R([_.hI("yt-rich-grid-reflow"),_.n("design:type",Function),_.n("design:paramtypes",[Boolean]),_.n("design:returntype")],nI.prototype,"reflowContent",null);
_.R([_.hI("yt-reload-continuation-finish"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nI.prototype,"onReloadContinuationFinish",null);_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"isSlimGrid",null);_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"isShortsGrid",null);
_.R([_.P("data","isSlimGrid","isShortsGrid"),_.H(),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"noRichItemGutterMargins",null);_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"isShortsGridSlim",null);_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"isCompactGrid",null);
_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"isDefaultGrid",null);_.R([_.P("data.targetId"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"hideChipsBarOnWatch",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nI.prototype,"onIsShortsGridChange",null);
_.R([_.P("data.enableContentSpecificAspectRatio"),_.H(),_.n("design:type",Boolean),_.n("design:paramtypes",[])],nI.prototype,"force16By9ThumbnailAspectRatio",null);_.R([_.P("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],nI.prototype,"continuationTriggerOffset",null);_.R([_.N({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],nI);
_.J(nI,"ytd-rich-grid-renderer",function(){if(Dfh!==void 0)return Dfh;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Dfh=G},{mode:2});var Acg=_.C(function(G){return _.v("yt-feedback-prompt-view-model",{class:_.pG("ytFeedbackPromptViewModelHost",G.className)},_.v(_.Q,{cond:function(){return G.data().text},
then:function(b){return _.v(_.IS,{text:b,className:"ytFeedbackPromptViewModelPrompt"})}}),_.v(_.VX,{data:function(){return G.data().likeButton}},{likeButtonViewModel:function(b){return _.v(_.SJ,{data:b.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.v(_.VX,{data:function(){return G.data().dislikeButton}},{dislikeButtonViewModel:_.p9}))},"Qm");var M8v=_.C(function(G){var b=void 0,I=function(){return G.data()},h=function(){return!!_.Lc(_.kg(I())).optionColor},q=_.e(_.ZZ(-1,void 0,"WFh1pc")),l=q.next().value,V=q.next().value,D=function(T){return l()===T},k=function(T){return I().correctAnswerIndex===T},L=function(){return l()!==-1};
q=_.e(_.ZZ("",void 0,"Vi7Gfe"));var x=q.next().value,f=q.next().value;return _.v("yoututor-quiz-view-model",{class:_.pG("learningQuizComponentHost","learningYoututorQuizHost",G.className),style:_.Ir({background:function(){return _.Lc(_.kg(I())).backgroundColor}})},_.v("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},x),_.v("div",{class:"learningQuizComponentQuizContainer"},_.v("div",{class:"learningQuizComponentQuiz"},_.v("div",{class:"learningQuizComponentQuizContent"},_.v(_.Q,{cond:function(){return!!I().aiGeneratedQuizLabel},
then:function(){return _.v("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.v(_.IS,{text:function(){return I().aiGeneratedQuizLabel}}))}}),_.v("div",{class:"learningQuizComponentQuizHeader"},_.v("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.v("div",{class:"learningYoututorQuizText",
style:_.Ir({color:function(){return _.Lc(_.kg(I())).primaryTextColor}})},_.v(_.IS,{text:function(){return I().questionHeaderText}}))))),_.v("div",{role:"group",
class:_.pG("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.v(_.aj,{each:function(){return I().optionsData||[]}},function(T,B){var A={};
return _.v("button",{class:_.pG("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(A.learningQuizComponentQuizHover=function(){return!L()},A.learningQuizComponentQuizOptionWithCustomColor=h,A.learningYoututorQuizOptionSelectedCorrectOutline=function(){return L()&&k(B())},A.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return l()!==I().correctAnswerIndex&&D(B())},A.learningQuizComponentQuizIncorrectShake=function(){return l()!==
I().correctAnswerIndex&&D(B())},A)),
"on:click":_.Xu(function(){if(L())return!1;V(B());f(k(B())?I().correctAnswerAriaLabel||"":I().incorrectAnswerAriaLabel||"");return!1}),
style:_.Ir({background:"transparent"}),"aria-description":function(){return L()?k(B())?I().correctAnswerAriaLabel:I().incorrectAnswerAriaLabel:""},
"aria-disabled":L,el:_.Wv(function(t){_.Qq(271905,t,b,function(y){b=y})}),
"client-ve-type":271905},_.v("div",{class:"learningQuizComponentQuizOptionContainer"},_.v(_.IS,{text:T.optionText}),_.v(_.Q,{cond:function(){var t=B();return L()&&(D(t)||k(t))},
then:function(){var t={};return _.v(_.ha,{className:_.pG("learningYoututorQuizOptionIcon",(t.learningQuizComponentQuizPulse=function(){return l()===I().correctAnswerIndex&&k(B())},t)),
size:24,icon:function(){return k(B())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.v(_.Q,{cond:L,
then:function(){return _.v("div",{class:"learningYoututorQuizExplanationContainer"},_.v("div",{class:"learningYoututorQuizExplanationText"},_.v(_.IS,{text:function(){return I().explanationHeaderText}})),_.v(_.IS,{text:function(){return I().optionsData[l()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Rm");
M8v.idomCompat=!0;var ZDK=_.C(function(G){var b=G.thumbsUp,I=G.thumbsDown,h=G.rightAlignThumbs;G=_.e(_.ZZ(!1,void 0,"OxPsH"));var q=G.next().value,l=G.next().value;G=_.e(_.ZZ(!1,void 0,"V5vWne"));var V=G.next().value,D=G.next().value;G={};return _.v("div",{class:_.pG("ytwThumbsUpDownThumbs",(G.ytwThumbsUpDownRightAlign=function(){return h==null?void 0:h()},G))},_.v(_.YK,{data:b,
onToggle:function(k){l(k);V()&&D(!1)},
buttonShapeOverrides:function(){return{toggled:q()}}}),_.v(_.YK,{data:I,
onToggle:function(k){D(k);q()&&l(!1)},
buttonShapeOverrides:function(){return{toggled:V()}}}))},"Sm");
ZDK.idomCompat=!0;var zel=_.C(function(G){var b=function(){return G.data().pendingStateEntityKey||""},I=_.lA(_.OQI,b),h=function(){var D;
if(!(D=G.disabled())){var k;D=!((k=I())==null||!k.isPendingResponse)}return D},q=_.e(_.ZZ(Nzd(""),void 0,"Q6q6y")),l=q.next().value,V=q.next().value;
_.JC(function(){requestAnimationFrame(function(){var D=G.data().onShowAnimationMs||0;D=D>0?Nzd("--chip-animation-duration: "+D+"ms;"):Nzd("");V(D)})});
return _.v("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:l},_.v(_.aj,{each:function(){return G.data().chipData||[]},
keyBy:"REFERENCE"},function(D){return _.v(t8a,{data:D,disabled:h,pendingStateKey:b,onError:G.onError})}))},"Um"),t8a=_.C(function(G){var b=_.VF("button"),I=_.e(_.ZZ(!0,void 0,"baSFEf")),h=I.next().value,q=I.next().value,l=function(){return G.data().text.content},V=function(){return G.data().transparentWhenLoading},D=_.m2(_.PH.currentPageSubTypeSelector),k=function(){var x;
return(x=_.LL().resolve(_.vf(_.YB)))==null?void 0:_.qg1(x,D())},L=_.Xu(function(x){var f,T,B,A,t,y,F,W;
return _.c(function(O){switch(O.nextAddress){case 1:x.stopPropagation();if(G.disabled())return O.return();T=String(Math.floor(((f=_.GZ())==null?void 0:f.getCurrentTime())||0)*1E3);B="youchat-"+Date.now();A=function(){_.g5(G.data().onClick||{});var K=_.HQv(G.data().continuation),u=_.rl({clientMessageId:B,playerOffsetMs:T,pageContext:k()});return new Promise(function(w,$a){_.g5(K,{form:{formData:u},commandController:{onSuccess:function(ev,LO){w(LO)},
onServerError:function(ev,LO){$a(LO.error)}}})})};
t=_.wXK(G.pendingStateKey());t(!0);_.tBd("#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");q(!1);_.gm(O,2);return O.yield(A(),4);case 4:_.hF(O,3);break;case 2:y=_.zf(O),(W=(F=G).onError)==null||W.call(F,y);case 3:t(!1),_.ip(O)}})});
return _.v(_.Q,{cond:h,then:function(){return _.v("div",{class:"ytwYouChatChipsDataChipWrapper"},_.v("button",{el:b,class:"ytwYouChatChipsDataChip","data-disabled":G.disabled,"data-transparent-loading":V,"on:click":L,tabindex:0},l))}})},"Vm");var o37=_.C(function(G){var b=G.data;var I=G.initiallyExpanded;var h=function(){var L;return(L=b().conversationResourceData)==null?void 0:L.learningGuideData};
G=_.e(_.bk(function(){var L;return(L=I==null?void 0:I())!=null?L:!1}));
var q=G.next().value,l=G.next().value,V=function(){l(!0)},D=_.P$(function(){var L,x;
return(x=(L=h())==null?void 0:L.sections)!=null?x:[]},void 0,"QxyRyf"),k=_.P$(function(){return D().length>4},void 0,"MEbwoe");
G=_.P$(function(){var L;return!q()&&k()&&(L=h())!=null&&L.expandButton?D().slice(0,4):D()},void 0,"hIE70b");
return _.v("yt-conversation-resource-view-model",{class:_.pG("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.v(_.VX,{data:G},{expandableMetadataViewModel:_.eTW}),_.v(_.Q,{cond:function(){return k()&&!q()},
then:function(){return _.v("div",{id:"showMoreButton"},_.v(_.VX,{data:function(){var L;return(L=h())==null?void 0:L.expandButton}},{buttonViewModel:function(L){return _.v(_.sQ,{data:L.data,
onClick:V})}}))}}))},"Wm");var iDh=_.C(function(G){var b=function(){var W;return(W=G.data().text)==null?void 0:W.content},I=function(){var W,O;
return(W=G.data().webData)==null?void 0:(O=W.textResult)==null?void 0:O.content},h=_.LL().resolve(_.yB),q=_.IZ(),l=function(){return G.data().chatResponseStyle},V=function(){return!G.data().transparentBackground},D=function(){return G.data().rightAlignThumbs},k=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"},L=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:k()?"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"}}},x=function(){var W;
return G.data().webData||((W=G.data().text)==null?void 0:W.content)||G.data().videoResultsData||G.data().conversationResourceViewModel||G.data().quiz||G.data().yoututorQuiz||G.data().richContent},f=function(){return!!G.data().sectionHeader||x()},T=function(){var W;
return(W=G.data().videoResultsData)==null?void 0:W.videoShelf},B=function(){var W;
return(W=G.data().webData)==null?void 0:W.sourcesShelf},A=function(){return l()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||l()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:G.data().thumbsDownViewModel&&G.data().thumbsUpViewModel},t=function(){return _.g(G.data().thumbsUpViewModel,_.mS)},y=function(){return _.g(G.data().thumbsDownViewModel,_.mS)};
_.JC(function(){requestAnimationFrame(function(){var W;(W=G.shouldAnimateIcon)!=null&&W.call(G)&&EbI(q.lottieEl)})});
var F={};return _.v("you-chat-item-view-model",{class:_.pG("ytwYouChatItemViewModelYouChatItemViewModel",(F.ytwYouChatItemViewModelColumnLayout=function(){return k()},F)),
style:_.Ir({"min-height":function(){var W,O;return _.FNF((W=G.containerHeight)==null?void 0:W.call(G),(O=G.isLastItem)==null?void 0:O.call(G))}}),
"data-target-id":function(){return G.data().id||""}},_.v(_.Q,{cond:function(){return G.data().removeIcon?!1:f()},
then:function(){var W={};return _.v("div",{"aria-hidden":"true"},_.v(_.zV,{className:_.pG("ytwYouChatItemViewModelIcon",(W.ytwYouChatItemViewModelRtl=h==="rtl",W.ytwYouChatItemViewModelHidden=function(){return!(G.data().hideIcon||l()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||l()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:f())},W)),
animationName:"YOUCHAT_ICON",data:L,animationRef:q}))}}),_.v(_.Q,{cond:f,
then:function(){var W={};return _.v("div",{class:_.pG("ytwYouChatItemViewModelHost",(W.ytwYouChatItemViewModelHostNoPadding=function(){return!!G.data().sectionHeader&&!x()},W.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return l()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},W.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return l()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},W.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return l()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
W.ytwYouChatItemViewModelGradientBackground=V,W.ytwYouChatItemViewModelHostAlignStart=function(){return!k()},W.ytwYouChatItemViewModelHostDefaultFlex=function(){return!k()},W)),
role:"alert"},_.v(_.Q,{cond:b,then:function(O){return _.v(_.lb,{text:O,wrapCodeBlocks:!0})}}),_.v(_.VX,{data:function(){return G.data().sectionHeader}},{sectionHeaderViewModel:function(O){var K={};
return _.v(_.dn,{data:O.data,className:_.pG("ytwYouChatItemViewModelSectionHeader",(K.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!G.data().sectionHeader&&!x()},K)),
forceSmallLayout:!0})}}),_.v(_.Q,{cond:I,
then:function(O){return _.v(_.lb,{text:O,wrapCodeBlocks:!0})}}),_.v(_.Q,{cond:T,
then:function(){return _.v("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.v(_.VX,{data:function(){var O;return(O=G.data().videoResultsData)==null?void 0:O.videoShelf}},{horizontalShelfViewModel:function(O){return _.v(_.qF,{data:O.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.v(_.Q,{cond:B,
then:function(){return _.v("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.v(_.VX,{data:function(){var O;return(O=G.data().webData)==null?void 0:O.sourcesShelf}},{horizontalShelfViewModel:function(O){return _.v(_.qF,{data:O.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.v(_.VX,{data:function(){return G.data().conversationResourceViewModel}},{conversationResourceViewModel:o37}),_.v(_.VX,{data:function(){return G.data().quiz}},{learningJourneyQuizViewModel:_.KxB}),_.v(_.VX,{data:function(){return G.data().yoututorQuiz}},{yoututorQuizViewModel:M8v}),_.v(_.VX,{data:function(){return G.data().richContent}},{cardViewModel:_.N4W,
linearLayoutViewModel:_.IY}),_.v(_.Q,{cond:A,then:function(){return _.v(ZDK,{thumbsUp:t,thumbsDown:y,rightAlignThumbs:D})}}))}}),_.v(_.Q,{cond:function(){return G.data().chipsData},
then:function(W){return _.v(zel,{data:W,disabled:G.pending,onError:G.onError})}}))},"Ym");
iDh.idomCompat={callbacks:{onError:!0,onSend:!0}};var PFa=_.C(function(G){var b=function(){return G.data().choiceSelectedText},I=function(){return G.data().hasGradientBackground},h={};
return _.v("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.Ir({"min-height":function(){var q,l;return _.FNF((q=G.containerHeight)==null?void 0:q.call(G),(l=G.isLastItem)==null?void 0:l.call(G))}}),
"data-target-id":function(){var q;return(q=G.data().itemTargetId)!=null?q:""}},_.v(_.Q,{cond:b,
then:function(){return _.v("div",{class:"ytYouChatUserTurnChoiceSelected"},_.v(_.IS,{text:b}))}}),_.v("div",{class:_.pG("ytYouChatUserTurnUserMessage",(h.ytYouChatUserTurnGradientContainer=I,h.ytYouChatUserTurnDefaultContainer=function(){return!I()},h))},function(){return G.data().text}))},"Zm");var dfI=_.C(function(G){var b=_.e((0,_.qIu)(G.data)).next().value,I=function(){var h,q;return(q=(h=b().contents)==null?void 0:h.length)!=null?q:0};
return _.v("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return G.data().targetId||""},
"aria-busy":function(){var h,q;return(q=(h=b().contents)==null?void 0:h.some(function(l){return!!l.chatLoadingViewModel}))!=null?q:!1}},_.v(_.VX,{data:function(){return G.data().header}},{chipBarViewModel:_.lhz,
sectionHeaderViewModel:_.dn}),_.v(_.VX,{data:function(){return b().contents}},{accordionViewModel:_.OHu,
alertBannerViewModel:_.Lx8,chatLoadingViewModel:function(h,q){return _.v(_.WN8,{data:h.data,containerHeight:G.containerHeight,isLastItem:function(){return q()===I()-1}})},
chatUserTurnViewModel:function(h,q){return _.v(PFa,{data:h.data,containerHeight:G.containerHeight,isLastItem:function(){return q()===I()-1}})},
feedbackPromptViewModel:Acg,gridShelfViewModel:function(h){return _.v(_.khO,{data:h.data,shouldUseOwnContainerSize:!0,marginSettings:G.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.YXW,linearLayoutViewModel:_.IY,lockupViewModel:function(h){return _.v(_.tE,{data:h.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:G.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.dn,videoOverviewViewModel:_.Ira,youChatItemViewModel:function(h,q){return _.v(iDh,{data:h.data,pending:!1,containerHeight:G.containerHeight,isLastItem:function(){return q()===I()-1}})}}))},"$m");_.JN(_.C(function(G){var b=_.e((0,_.qIu)(G.data)).next().value,I=_.e(_.Vq()),h=I.next().value;I=I.next().value;var q=_.Wv(I);I=_.e(_.ZZ(void 0,void 0,"fqbUqd"));var l=I.next().value,V=I.next().value,D=function(){var k;return _.g((k=G.data().sectionListLayoutConfiguration)==null?void 0:k.layoutConfiguration,Gao)};
_.K3(function(){var k,L=(k=q.value)==null?void 0:k.clientWidth;k=D()?_.bjX(L,D()):void 0;V(k)});
I={};return _.v("yt-section-list-renderer",{class:_.pG("ytSectionListRendererHost",G.className,(I.ytSectionListRendererHostOverscrollContain=function(){var k;return(k=G.overscrollContain)==null?void 0:k.call(G)},I)),
el:q,"data-target-id":function(){return G.data().targetId||""}},_.v(_.VX,{data:function(){return b().contents}},{itemSectionRenderer:function(k){return _.v(dfI,{data:k.data,
containerLayoutConfig:l,marginSettings:G.marginSettings,containerHeight:function(){return h.height()}})}}))},"an"),"yt-section-list-renderer",{props:{data:_.hV,
className:_.No,marginSettings:_.hV,overscrollContain:_.hV}});var ycI;var rcI;var F9o=function(){return _.a.apply(this,arguments)||this};
_.M(F9o,_.a);_.R([_.H(),_.n("design:type",Object)],F9o.prototype,"data",void 0);_.R([_.g8({is:"yt-alert-renderer",disableElementRegistration:!0})],F9o);
_.J(F9o,"yt-alert-renderer",function(){if(rcI===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;ycI===void 0&&(ycI=document.createElement("template"));var h=ycI;I.call(b,h.content.cloneNode(!0),G.content.firstChild);rcI=G}G=rcI;return G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var rL1;rL1=function(G,b,I,h){I||(G?h&&(h.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||h.WINDOW_SIZE_CHANGED&&(b.width!==window.innerWidth||b.height!==window.innerHeight)||h.SAFARI_ABORTED_BY_NEW_TRANSITION&&G instanceof DOMException&&G.name==="AbortError"&&G.message.includes("Old view transition aborted by new view transition"))||_.K1(G):_.K1(Error("wj")))};
_.Fue=function(G,b){b=b===void 0?{}:b;var I,h,q,l,V,D,k,L,x,f,T,B,A;return _.c(function(t){switch(t.nextAddress){case 1:I=b;h=I.shouldWrap===void 0?!0:I.shouldWrap;q=I.skipTransitionTimeoutMs===void 0?300:I.skipTransitionTimeoutMs;l=I.beforeTransition;V=I.afterTransition;if(!h||!document.startViewTransition||document.visibilityState==="hidden")return t.return(G());D={width:window.innerWidth,height:window.innerHeight};k=!1;(L=l)==null||L();_.gm(t,2);x=document.startViewTransition(G);f=setTimeout(function(){x.skipTransition();
k=!0},q);
return t.yield(x.ready,4);case 4:return clearTimeout(f),t.yield(x.finished,5);case 5:clearTimeout(f);(T=V)==null||T();_.hF(t,0);break;case 2:B=_.zf(t),(A=V)==null||A(),rL1(B,D,k,b.ignoredErrors),_.ip(t)}})};
_.HX3=function(G,b){var I=_.eMX(b);I!=="javascript:"&&I!=="data:"&&G.setAttribute("href",b)};
_.FC=function(){for(var G=Array(36),b=0,I,h=0;h<36;h++)h==8||h==13||h==18||h==23?G[h]="-":h==14?G[h]="4":(b<=2&&(b=33554432+Math.random()*16777216|0),I=b&15,b>>=4,G[h]=_.J8u[h==19?I&3|8:I]);return G.join("")};
_.WuL=function(G,b,I){G.persistentPanelContainerMap.set(I,b)};/*

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 aL9=_.WP(['<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>']),
Nq5=_.uvW(aL9);Nq5.setAttribute("style","display: none;");document.head.appendChild(Nq5.content);_.Hl=_.kvB(function(G){var b=_.ol("DIV");G&&(b.className=G);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";G=_.ol("DIV");_.KnQ(G,"200px","200px");b.appendChild(G);document.body.appendChild(b);G=b.offsetWidth-b.clientWidth;_.iG(b);return G});var Yo5;var CgD;var Wl=function(){var G=_.a.apply(this,arguments)||this;G.icon=null;return G};
_.M(Wl,_.a);Wl.prototype.dismiss=function(){_.O3(this.hostElement,"yt-live-chat-error-message-dismiss")};
Wl.prototype.computeIcon=function(G){return G&&G.iconType?"yt-icons:"+G.iconType.toLowerCase():"yt-icons:close"};
_.R([_.H(),_.n("design:type",Object)],Wl.prototype,"data",void 0);_.R([_.H({computed:"computeIcon(data.icon)"}),_.n("design:type",Object)],Wl.prototype,"icon",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Wl);
_.J(Wl,"yt-live-chat-error-message-renderer",function(){if(CgD===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Yo5===void 0&&(Yo5=document.createElement("template"));var h=Yo5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);CgD=G}G=CgD;return G},{mode:0});
}catch(e){_._DumpException(e)}
try{
var EuA,pro,S8E,XrI,IZ7,jJg,lZz,mQh,eCo,VTI,DQK,cfI,kto,P7,v8g,LT7,QJv,xQv,fZ7,Tvl,BvA,UQE,sJa,Afh,MTl,Z0v,tTv,zCv,o8l,i07,PII,dQg,yfA,rfl,FTA,H0z,WTa,aZl,CIg,KTE,RCo,n8I,O0z,w$7,NvK,YMl,SMh,X$I,$cl,GFI,b3K,IpI,hTh,qBz,E87;EuA=function(G,b){return _.Gi(G.entities,"timedMarkersListSyncEntity",b)};
pro=function(G,b){return _.Gi(G.entities,"liveReactionsDataEntity",b)};
S8E=function(G,b){G=_.Gi(G.entities,"booleanEntity",b);return!(!G||!G.value)};
XrI=function(G,b){var I=_.gL();I&&G&&_.dK(I,_.VB(G),b)};
_.$Ql=function(G){return G.watch.isWatchActive};
_.GtE=function(G){return _.BN(G)||_.Ud(G)||_.q7q(G)};
_.b0l=function(G){return!_.GtE(G)};
_.iE=function(G){return G.watch.watchScrollTop};
IZ7=function(G){return G.watch.isLiveChatCollapsed};
_.hCl=function(){_.U("web_watch_log_theater_mode")&&_.ziO("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.qMK=function(G,b,I){if(!G.includes("START_TIME_PLACEHOLDER")||!G.includes("END_TIME_PLACEHOLDER"))return G;var h=new Date(0),q=new Date(0);h.setUTCMilliseconds(b);q.setUTCMilliseconds(I);return G.replace("START_TIME_PLACEHOLDER",_.Fo(h,7)).replace("END_TIME_PLACEHOLDER",_.Fo(q,7))};
jJg=function(G){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:G}}]}}}};
lZz=function(G,b,I){var h=_.U("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;b=Object.assign({},{text:b,hasGradientBackground:I},h&&{itemTargetId:h});h=_.U("web_enable_chat_autoscroll_to_user_turn")&&h?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:h,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:b}],insertByPositionInSection:{sectionTargetId:G,
position:"INSERTION_POSITION_LAST"}}}]},h?{scrollConfig:h}:{})}}};
mQh=function(G,b){return _.Gi(G.entities,"booleanEntity",b)};
eCo=function(){return function(G){_.W5(_.Da("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:G}))}};
VTI=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}};
DQK=function(G,b,I){var h=_.s0(I);G&&b&&h&&G.getPlayerPromise().then(function(q){_.yDO(h)&&_.JM();(new _.ur(q)).executeCommand(h,b);_.U("continue_playback_on_desktop_companion_click")||q.pauseVideo()})};
cfI=function(G){var b=_.Kk(),I;if(I=_.Ge("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var h;I=(h=I())==null?void 0:h.layoutId}else I=null;DQK(b,I,G)};
kto=function(G){var b=_.Kk(),I;if(I=_.Ge("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var h;I=(h=I())==null?void 0:h.layoutId}else I=null;DQK(b,I,G)};
P7=function(G,b){var I=G<0?"-":"";G=Math.abs(G);var h=Math.floor(G/3600),q=Math.floor(G)%3600,l=Math.floor(q/60);q=Math.floor(q)%60;var V="";(b===void 0?0:b)&&(V="."+Math.round((G-Math.floor(G))*10));return h>0?I+h+":"+(l<10?"0"+l:""+l)+":"+(q<10?"0"+q:""+q)+V:I+l+":"+(q<10?"0"+q:""+q)+V};
v8g=function(G){var b=G.match(/[^0-9:\.]/g);if(b&&b.length>0)return null;G=G.split(":");if(G.length===0||G.length>3)return null;b=1;for(var I=0;G.length>0;){var h=G.pop();if(h===void 0)break;var q=Number(h);if(h===""||isNaN(q))return null;I+=q*b;b*=60}return I};
LT7=function(G,b,I,h){G=Math.max(I,G);b=Math.min(b,h-I);G+b>h?(I=h,G=I-b):I=G+b;return{start:G,end:I}};
QJv=function(G,b,I,h,q,l){G<I?G=I:G+q>h&&(G=h-q);b>h&&(b=h);b=Math.min(G+l,Math.max(G+q,b));return{start:G,end:b}};
xQv=function(G,b,I,h,q,l){b>h?b=h:b-q<I&&(b=I+q);G<I&&(G=I);G=Math.min(b-q,Math.max(b-l,G));return{start:G,end:b}};
fZ7=function(G){return _.U("web_transcript_cue_id_killswitch")?String(G):"ytd-transcript-renderer_"+G};
Tvl=function(G){return _.U("web_transcript_cue_id_killswitch")?!0:G.startsWith("ytd-transcript-renderer")};
BvA=function(G){var b=_.Kk(),I;if(I=_.Ge("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var h;I=(h=I())==null?void 0:h.layoutId}else I=null;DQK(b,I,G)};
UQE=function(G){G.style.height="auto";G.style.height=Math.min(G.scrollHeight||20,80)+"px"};
sJa=function(){var G;return String(Math.floor(((G=_.GZ())==null?void 0:G.getCurrentTime())||0)*1E3)};
Afh=function(G){if(G.onWelcomeCommand)return _.s0(G.onWelcomeCommand);G=_.g(G.inputComposerViewModel,g8o);if(G==null?0:G.welcomeFeatureContinuation)return _.HQv(G.welcomeFeatureContinuation)};
MTl=function(G){var b=_.Kk(),I;I=(I=_.Ge("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;DQK(b,I,G)};
Z0v=function(G){var b=_.Kk(),I;I=(I=_.Ge("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;DQK(b,I,G)};
tTv=function(G){if(G.simpleText)return[{text:G.simpleText}];var b;return(b=G.runs)!=null?b:[]};
zCv=function(G){var b=G.startEndTimeTemplate,I=G.startTimeUtcMillis;G=G.endTimeUtcMillis;if(b&&I&&G)return _.ao(_.qMK(_.NO(b),Number(I),Number(G)))};
o8l=function(G,b){var I,h,q=G==null?void 0:(I=G.viewCount)==null?void 0:(h=I.videoViewCountRenderer)==null?void 0:h.shortViewCount;if(!b&&q)return q;var l,V;return G==null?void 0:(l=G.viewCount)==null?void 0:(V=l.videoViewCountRenderer)==null?void 0:V.viewCount};
i07=function(G,b){var I=G==null?void 0:G.relativeDateText;return!b&&I?[I,!0]:[G==null?void 0:G.dateText,!1]};
PII=function(G,b,I,h,q){h=h===void 0?"":h;q=q===void 0?!1:q;var l=o8l(G,b),V=_.e(i07(G,b)),D=V.next().value;V=V.next().value;b=b?G==null?void 0:G.sponsorsOnlyFirstTimeLongText:G==null?void 0:G.sponsorsOnlyFirstTimeShortText;var k=[];I&&l&&k.push(l);!I&&V||!D||k.push(D);G=[q?G==null?void 0:G.subtitle:void 0].concat(_.Nz(k),[b,G==null?void 0:G.stationName,G==null?void 0:G.rating,G?zCv(G):void 0,G==null?void 0:G.upNextProgramText,G==null?void 0:G.superTitleLink]).filter(function(L){return!!L});
I={runs:[]};for(q=0;q<G.length;q++)I.runs.push.apply(I.runs,_.Nz(tTv(G[q]))),q<G.length-1&&I.runs.push({text:" "+h+" "});return I};
dQg=function(G){return G.filter(function(b){return!_.g(b,_.w0)})};
yfA=function(G){var b,I,h,q;if(G=G==null?void 0:(b=G.contents)==null?void 0:(I=b.twoColumnWatchNextResults)==null?void 0:(h=I.results)==null?void 0:(q=h.results)==null?void 0:q.contents){var l,V;return(V=(l=G.find(function(D){return!!D.videoPrimaryInfoRenderer}))==null?void 0:l.videoPrimaryInfoRenderer)==null?void 0:V.updatedMetadataEndpoint}};
rfl=function(G,b){var I;return(I=G.sourceConfigs)==null?void 0:I.find(function(h){return h.videoId===b})};
FTA=function(G){return G==="End of video"||G==="End of playlist"};
H0z=function(G){var b,I,h,q;return(b=G.getWatchNextResponse())==null?void 0:(I=b.contents)==null?void 0:(h=I.twoColumnWatchNextResults)==null?void 0:(q=h.playlist)==null?void 0:q.playlist};
WTa=function(G){var b,I,h,q,l,V;return(b=H0z(G))==null?void 0:(I=b.playlistButtons)==null?void 0:(h=I.menuRenderer)==null?void 0:(q=h.topLevelButtons)==null?void 0:(l=q[0])==null?void 0:(V=l.playlistLoopButtonRenderer)==null?void 0:V.playlistLoopStateEntityKey};
aZl=function(G){var b=_.LL().resolve(_.jm),I;return(b=(I=_.g(b.getAutoplayEndpoint(),_.Wq))==null?void 0:I.playlistId)&&b===G};
CIg=function(G,b,I,h,q){function l(){_.uu.cancelJob(d9);var V=NvK(b,I/G.getPlaybackRate()),D=V.hours,k=V.minutes;V=(V.seconds*1E3||6E4)/G.getPlaybackRate();G.setVideoTimeLeft(YMl(D,k));h&&G.getPlayerState()!==0&&G.setSleepTimerTimeLeft(YMl(D,k,!0));(D>0||k>0)&&!q&&(d9=_.vH(_.uu,l,V))}
_.uu.cancelJob(d9);d9=_.vH(_.uu,l)};
KTE=function(G,b,I){function h(){_.uu.cancelJob(Jf7);var q=NvK(b,I),l=q.hours;q=q.minutes;var V=6E4/G.getPlaybackRate();if(l>0||q>0)G.setSleepTimerTimeLeft(YMl(l,q,!0)),Jf7=_.vH(_.uu,h,V)}
_.uu.cancelJob(Jf7);Jf7=_.vH(_.uu,h)};
RCo=function(G,b){var I=G.getVolume()/(b/500),h=function(q){_.uu.cancelJob(uqA);var l=Math.floor(q-I);G.setVolume(l,!1);l>0&&(uqA=_.vH(_.uu,function(){h(l)},500))};
_.uu.cancelJob(uqA);uqA=_.vH(_.uu,function(){h(G.getVolume())})};
n8I=function(G,b){_.uu.cancelJob(uqA);b&&G.syncVolume()};
O0z=function(){var G={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.qP("SLEEP_TIMER_DISRUPTED")}}}}};_.LL().resolve(_.xW).resolveCommand(G)};
w$7=function(G){return(G.getDuration()-G.getProgressState().current)*1E3};
NvK=function(G,b){G=G+b-(0,_.Li)();if(G<=0)return{hours:0,minutes:0,seconds:0};var I=new E87(0,0,0,0,0,0,G);G=I.getHours();b=I.getMinutes();I=I.getSeconds();I!==0&&b++;b!==0&&b%60===0&&(G++,b=0);return{hours:G,minutes:b,seconds:I}};
YMl=function(G,b,I){return G>0&&b>0?I?_.qP("TIME_LEFT_HOURS_MINUTES",{hours:G.toString(),minutes:b.toString()}):_.qP("TIME_HOURS_MINUTES",{hours:G.toString(),minutes:b.toString()}):G>0?I?_.jX("TIME_LEFT_HOURS",G):_.jX("TIME_HOURS",G):I?_.qP("TIME_LEFT_MINUTES",{minutes:b.toString()}):_.qP("TIME_MINUTES",{minutes:b.toString()})};
SMh=function(G,b){if(G.timelyActions)return G.timelyActions.find(function(I){var h;return((h=_.g(I,p$o))==null?void 0:h.cueRangeId)===b})};
X$I=function(G){var b=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.v0(G);G.keyMap_.forEach(function(I,h){_.Ya(b,h)||this.remove(h)},G)};
$cl=function(G,b){G.reloadContinuationItemsCommandMatcher=b};
GFI=function(G,b){var I;return _.c(function(h){return h.nextAddress==1?b&&G.lastWelcomeContinuationSent!==b?_.a5j(G)?h.yield(G.panelController.isVisible("PAai_companion"),3):h.jumpTo(2):h.return(!1):h.nextAddress==2||(I=h.yieldResult,I)?h.return(!0):h.return(!1)})};
b3K=function(G){var b,I,h,q,l;return _.c(function(V){if(V.nextAddress==1){if(!G.welcomeOptions)return V.return();b=G.welcomeOptions;I=b.command;h=b.setPending;if(I){var D;var k=(D=_.g(I,_.Aa))==null?void 0:D.token}else k=void 0;q=k;return V.yield(GFI(G,q),2)}if(!V.yieldResult)return V.return();G.lastWelcomeContinuationSent=q;(l=h)==null||l(!0);k="youchat-"+Date.now();D=(D=_.GZ())?String(Math.floor(D.getCurrentTime())*1E3):void 0;_.g5(I,{form:{formData:_.rl({clientMessageId:k,playerOffsetMs:D,pageContext:_.qg1(G,
G.pageSubtype)})}});_.ip(V)})};
IpI=function(G,b){_.c(function(I){G.welcomeOptions=b;return I.yield(b3K(G),0)})};
_.ye=function(G,b){G.insertBefore(b,G.childNodes[0]||null)};
hTh=function(G){if(G>=48&&G<=57||G>=96&&G<=106||G>=65&&G<=90||_.$Y&&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 _.XE;default:return!1}};
qBz=function(G){if(G.altKey&&!G.ctrlKey||G.metaKey||G.keyCode>=112&&G.keyCode<=123)return!1;if(hTh(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!_.XE;default:return G.keyCode<166||G.keyCode>183}};
E87=function(G,b,I,h,q,l,V){this.date=typeof G==="number"?new Date(G,b||0,I||1,h||0,q||0,l||0,V||0):new Date(G&&G.getTime?G.getTime():_.nW())};
_.OE(E87,_.dI);_.m=E87.prototype;_.m.getHours=function(){return this.date.getHours()};
_.m.getMinutes=function(){return this.date.getMinutes()};
_.m.getSeconds=function(){return this.date.getSeconds()};
_.m.getMilliseconds=function(){return this.date.getMilliseconds()};
_.m.getUTCDay=function(){return this.date.getUTCDay()};
_.m.getUTCHours=function(){return this.date.getUTCHours()};
_.m.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.m.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.m.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.m.setHours=function(G){this.date.setHours(G)};
_.m.setMinutes=function(G){this.date.setMinutes(G)};
_.m.setSeconds=function(G){this.date.setSeconds(G)};
_.m.setMilliseconds=function(G){this.date.setMilliseconds(G)};
_.m.setUTCHours=function(G){this.date.setUTCHours(G)};
_.m.setUTCMinutes=function(G){this.date.setUTCMinutes(G)};
_.m.setUTCSeconds=function(G){this.date.setUTCSeconds(G)};
_.m.setUTCMilliseconds=function(G){this.date.setUTCMilliseconds(G)};
_.m.add=function(G){_.dI.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)};
_.m.JSC$11399_toIsoString=function(G){var b=_.dI.prototype.JSC$11399_toIsoString.call(this,G);return G?b+"T"+_.jE(this.getHours(),2)+":"+_.jE(this.getMinutes(),2)+":"+_.jE(this.getSeconds(),2):b+"T"+_.jE(this.getHours(),2)+_.jE(this.getMinutes(),2)+_.jE(this.getSeconds(),2)};
_.m.equals=function(G){return this.getTime()==G.getTime()};
_.m.toString=function(){return this.JSC$11399_toIsoString()};
_.m.clone=function(){var G=new E87(this.date);G.firstDayOfWeek_=this.firstDayOfWeek_;G.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return G};
_.jjl=function(G){return _.wK({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:G}})};var lpI=new _.hu("imageTileRenderer");var mcd=new _.hu("promotedSparklesWebRenderer");var eTa=new _.hu("adGridCardCollectionViewModel");var Vkv=new _.hu("carouselTitleViewModel");var DcK=new _.hu("ctaCarouselItemViewModel");var cCh=new _.hu("textFieldViewModel");_.kFv=new _.hu("engagementPanelHeaderShowNavigationButtonCommand");var vzl=new _.hu("hideEngagementPanelScrimAction");var L7z=new _.hu("setActivePanelItemAction");var Qjg=new _.hu("showEngagementPanelScrimAction");var xc7=new _.hu("updateEngagementPanelAction");var fpz=new _.hu("updateSearchInVideoResultsAction");var Tyv=new _.hu("transcriptCueGroupRenderer");var Byz=new _.hu("transcriptCueRenderer");var Ucz=new _.hu("transcriptFooterRenderer");var sjh=new _.hu("engagementPanelAdSubtitleRenderer");var gzK=new _.hu("videoDescriptionFantasySectionViewModel");var ACo=new _.hu("deleteClipEngagementPanelCommand");var MkK=new _.hu("loopCommand");var Z3z=new _.hu("changeCreatorEndscreenVisibilityCommand");var tkK=new _.hu("liveChatCallForQuestionsRenderer");var zTM=new _.hu("updateTimedMarkersSyncObserverCommand");var p$o=new _.hu("timelyActionViewModel");var ozK=new _.hu("timelyActionsOverlayViewModel");var i3g=new _.hu("repeatChapterCommand");var PMM=new _.hu("watchPlayerOverflowMenuCommand");var dcA=new _.hu("compositeVideoOverlayRenderer");var yCa=new _.hu("sortFilterSubMenuRenderer");var rCh=new _.hu("switchListItemViewModel");var g8o=new _.hu("inputComposerViewModel");var F7E=new _.hu("transcriptEditSegmentCommand");var H3I=new _.hu("transcriptUpdateSegmentTextCommand");var W7o=new _.hu("transcriptSearchBoxRenderer");var apl=new _.hu("transcriptSegmentListRenderer");var NyK=new _.hu("transcriptSegmentRenderer");_.YBE=new _.hu("updateDateTextAction");var CMl=new _.hu("updateTitleAction");var JCa=new _.hu("updateViewershipAction");var K7E=new _.hu("relatedChipCommand");var ujl=new _.hu("carouselLockupRenderer");var r9=new _.hu("expandableVideoDescriptionBodyRenderer");var RTa=new _.hu("videoDescriptionHeaderRenderer");var nz7=new _.hu("videoDescriptionYouchatSectionViewModel");_.FX=_.Te("kevlar_watch_page_horizontal_margin",24);_.O3K=_.Te("kevlar_watch_page_columns_top_padding",24);_.w3E=426+_.FX*2;_.H7=_.Te("kevlar_watch_two_column_width_threshold",1E3);_.Ezz=_.FX*2;_.p3K=_.Te("kevlar_watch_secondary_width",402);_.SBI=_.Te("kevlar_watch_max_player_width",1280);_.X3h=_.Te("kevlar_watch_flexy_metadata_height",136);_.$1I=_.Ezz+310+_.FX;_.GeI=_.Ezz+360+_.FX;var bLh={PAUSE_CHAT:18};var IUv;var hph;var W7=function(){return _.a.apply(this,arguments)||this};
_.M(W7,_.a);W7.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
W7.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var G=_.g(this.data.button,_.j6);G&&(G.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.kV.Object.defineProperties(W7,{template:{configurable:!0,enumerable:!0,get:function(){if(hph===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;IUv===void 0&&(IUv=document.createElement("template"));var h=IUv;I.call(b,h.content.cloneNode(!0),G.content.firstChild);hph=G}G=hph;return G}}});
_.R([_.z(_.ON),_.n("design:type",Object)],W7.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H({selectorArgs:["data.enabledEntityKey"],selector:S8E,observer:"onEnabledChange"}),_.n("design:type",Boolean)],W7.prototype,"enabled",void 0);_.R([_.H(),_.n("design:type",Object)],W7.prototype,"data",void 0);_.R([_.g8({is:"yt-disableable-button-view-model",noInjection:!0})],W7);var qGo;var jNM;var lUd=["transVert01","transVert02","transVert03"],m1o="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),aK=function(){var G=_.a.apply(this,arguments)||this;G.emojiManager=_.I4;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};G.reactionBuckets=[];G.noEmojiIdentifier="NO_EMOJI";return G};
_.M(aK,_.a);_.m=aK.prototype;_.m.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.m.desktopFountainEmojiSizePxChanged=function(){_.G8(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.m.createUserReactionAnimation=function(G){this.createEmojiAnimation(G,!0)};
_.m.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var G;((G=this.data)==null?0:G.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Da("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Nz(this.emojiContainer.children)).forEach(function(b){b.remove()})};
_.m.detached=function(){this.cleanupFountain()};
_.m.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var G;this.reactionBuckets=_.Cy.unsafeClone((G=this.emojiFountainData)==null?void 0:G.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.m.processEmojiBucket=function(G){var b=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 h;if(I==null?0:(h=I.duration)==null?0:h.seconds)this.emojiBucketTimerId=setTimeout(function(){b.processEmojiBucket(G+1)},Number(I.duration.seconds)*1E3)}}};
_.m.generateEmojiAnimations=function(G){var b=this,I=this.getRandomEmojiIdFromBucketWithOverride(G);if(I&&I!==this.noEmojiIdentifier){var h=0;G.targetEps?(h=this.linearInterpolateBounded(1,20,100,12,G.emojiSizeIndex||0),this.createEmojiAnimation(I,!1,G.emojiAnimationMs,h),h=this.getEmojiDelayMsFromTargetEps(G.targetEps)):(this.createEmojiAnimation(I),h=this.getEmojiDelayMsFromDistribution(G.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){b.generateEmojiAnimations(G)},h)}};
_.m.getRandomEmojiIdFromBucketWithOverride=function(G){if(!(G&&G.reactionsData&&G.reactionsData.length&&G.totalReactions))return this.noEmojiIdentifier;for(var b=G.totalReactions,I=1,h=_.e(G.reactionsData),q=h.next();!q.done;q=h.next())q=q.value,(q.reactionWeightOverride||q.reactionWeightOverride===0)&&q.reactionCount&&(b-=q.reactionCount,I-=q.reactionWeightOverride);h=!0;I<0&&(h=!1,b=G.totalReactions,I=1);if(h&&I>0&&b===0)if(I===1){q=0;for(var l=_.e(G.reactionsData),V=l.next();!V.done;V=l.next())V=
V.value,V.reactionCount&&V.reactionCount>0&&q++;q=1/q;l=_.e(G.reactionsData);for(V=l.next();!V.done;V=l.next())V.value.reactionWeightOverride=q}else for(q=1/(1-I),l=_.e(G.reactionsData),V=l.next();!V.done;V=l.next())V=V.value,V.reactionWeightOverride&&(V.reactionWeightOverride*=q);q=Math.random();l=0;V=_.e(G.reactionsData);for(var D=V.next();!D.done;D=V.next())if(D=D.value,D.reactionCount&&(l=(D.reactionWeightOverride||D.reactionWeightOverride===0)&&h?l+D.reactionWeightOverride:l+I*D.reactionCount/
b,l>q&&(D.reactionCount--,G.totalReactions--,D=this.reactionItemToEmojiString(D),D!==this.noEmojiIdentifier)))return D;return this.noEmojiIdentifier};
_.m.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};
_.m.createEmojiAnimation=function(G,b,I,h){b=b===void 0?!1:b;this.lastEmojiRequestedForTesting=G;var q=G.startsWith("yt-icons:"),l=_.GN(this.emojiManager,G);if(l||q){var V=document.createElement("emoji");V.classList.add("yt-emoji-fountain-view-model");V.classList.add(lUd[Math.floor(Math.random()*lUd.length)]);var D=document.createElement("div");D.classList.add("yt-emoji-fountain-view-model");D.classList.add("horizontal-container");D.classList.add(m1o[Math.floor(Math.random()*m1o.length)]);b?(I=document.createElement("div"),
I.classList.add("user-reaction-bubble"),I.classList.add("yt-emoji-fountain-view-model"),D.appendChild(I)):(I&&(V.style.animationDuration=I+"ms",D.style.animationDuration=I+"ms"),h&&(V.style.width=h+"px",V.style.height=h+"px"));q?(q=document.createElement("yt-icon"),q.polymerController.icon=G,h&&(q.style.width=h+"px",q.style.height=h+"px"),G=q):G=this.emojiManager.createEmoji(l,!1);G.classList.add("yt-emoji-fountain-view-model");D.appendChild(G);V.appendChild(D);this.emojiContainer.appendChild(V);
V.addEventListener("animationend",function(){V.remove()});
var k,L;if((k=this.data)==null?0:(L=k.loggingDirectives)==null?0:L.trackingParams)b=b?_.Xs(183501):_.Xs(183500),XrI(this.data.loggingDirectives.trackingParams,b),_.QDp(b);setTimeout(function(){V&&V.remove()},2E3)}};
_.m.getEmojiDelayMsFromDistribution=function(G){return Math.random()*(G||1)*1E3};
_.m.getEmojiDelayMsFromTargetEps=function(G){return Math.random()*2*(1/G)*1E3};
_.m.linearInterpolateBounded=function(G,b,I,h,q){q=Math.min(Math.max(q,G),I);return(b*(I-q)+h*(q-G))/(I-G)};
aK.prototype.onEmojiFountainDataEntityUpdate=aK.prototype.onEmojiFountainDataEntityUpdate;aK.prototype.desktopFountainEmojiSizePxChanged=aK.prototype.desktopFountainEmojiSizePxChanged;aK.prototype.isActiveChanged=aK.prototype.isActiveChanged;_.R([_.H(),_.n("design:type",_.$k)],aK.prototype,"emojiManager",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.ON),_.n("design:type",Object)],aK.prototype,"ytLiveChatReduxBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],aK.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],aK.prototype,"data",void 0);_.R([_.H({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(G,b){return _.Gi(G.entities,"emojiFountainDataEntity",b)}}),
_.n("design:type",Object)],aK.prototype,"emojiFountainData",void 0);_.R([_.H(),_.n("design:type",Boolean)],aK.prototype,"isActive",void 0);_.R([_.q5("isActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aK.prototype,"isActiveChanged",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],aK.prototype,"isDarkTheme",void 0);_.R([_.H(),_.n("design:type",String)],aK.prototype,"lastEmojiRequestedForTesting",void 0);
_.R([_.H({value:function(){return _.Te("desktop_fountain_emoji_size_px",20)}}),
_.n("design:type",Number)],aK.prototype,"desktopFountainEmojiSizePx",void 0);_.R([_.q5("desktopFountainEmojiSizePx"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aK.prototype,"desktopFountainEmojiSizePxChanged",null);_.R([_.lH("#emoji-container"),_.n("design:type",HTMLElement)],aK.prototype,"emojiContainer",void 0);
_.R([_.q5("emojiFountainData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],aK.prototype,"onEmojiFountainDataEntityUpdate",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],aK);
_.J(aK,"yt-emoji-fountain-view-model",function(){if(jNM===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;qGo===void 0&&(qGo=document.createElement("template"));var h=qGo;I.call(b,h.content.cloneNode(!0),G.content.firstChild);jNM=G}G=jNM;return G},{mode:0});var epg;var VOd;var N7=function(){return _.a.apply(this,arguments)||this};
_.M(N7,_.a);N7.prototype.onChoiceChanged=function(){this.data&&_.G8(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
N7.prototype.onChoiceChanged=N7.prototype.onChoiceChanged;_.R([_.H(),_.n("design:type",Object)],N7.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N7.prototype,"onChoiceChanged",null);_.R([_.N({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],N7);
_.J(N7,"yt-live-chat-banner-poll-choice",function(){if(VOd===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;epg===void 0&&(epg=document.createElement("template"));var h=epg;I.call(b,h.content.cloneNode(!0),G.content.firstChild);VOd=G}G=VOd;return G},{mode:0});var D1A;var cBE;var YJ=function(){var G=_.a.apply(this,arguments)||this;G.modern=_.U("web_button_rework_with_live");G.small=!1;return G};
_.M(YJ,_.a);YJ.prototype.computeIsSmall=function(){var G;return((G=this.buttonOverrides)==null?void 0:G.size)==="S"};
YJ.prototype.computeId=function(){return this.data&&this.data.targetId};
_.R([_.z(_.wZ.YtLiveChatTooltipTargetingBehavior),_.n("design:type",Object)],YJ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.R([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.n("design:type",String)],YJ.prototype,"id",void 0);_.R([_.H(),_.n("design:type",Object)],YJ.prototype,"buttonOverrides",void 0);_.R([_.H(),_.n("design:type",Object)],YJ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],YJ.prototype,"modern",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.n("design:type",Object)],YJ.prototype,"small",void 0);_.R([_.N({disableElementRegistration:!0,is:"yt-live-chat-button"})],YJ);
_.J(YJ,"yt-live-chat-button",function(){if(cBE===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;D1A===void 0&&(D1A=document.createElement("template"));var h=D1A;I.call(b,h.content.cloneNode(!0),G.content.firstChild);cBE=G}G=cBE;return G},{mode:0});var kel;var vWK;var Ce=function(){var G=_.a.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};
_.M(Ce,_.a);_.m=Ce.prototype;_.m.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]]"}}}}}};
_.m.onContextMenuButtonClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
_.m.onYtRendererstamperFinished=function(){this.menuButton=_.Eo(this.hostElement).querySelector("#menu-button")};
_.m.dataChanged=function(){var G,b;if((b=_.g((G=this.data)==null?void 0:G.overflowMenuButton,_.bz))==null?0:b.command)this.data.contextMenuEndpoint=_.g(this.data.overflowMenuButton,_.bz).command};
_.m.onButtonClick=function(){var G,b=_.g((G=this.data)==null?void 0:G.askQuestionButton,_.bz);if(b){if(b.trackingParams&&(G=_.VB(b.trackingParams))){var I=_.gL();I&&_.WT(I,G)}_.O3(this.hostElement,"innertube-command",b.command)}};
Ce.prototype.onYtRendererstamperFinished=Ce.prototype.onYtRendererstamperFinished;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.ON),_.n("design:type",Object)],Ce.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],Ce.prototype,"ytLiveChatItemBehavior",void 0);_.R([_.H({observer:"dataChanged"}),_.n("design:type",Object)],Ce.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ce.prototype,"inCollapsedBanner",void 0);_.R([_.H(),_.n("design:type",Object)],Ce.prototype,"buttonOverrides",void 0);_.R([_.H(),_.n("design:type",Object)],Ce.prototype,"questionButtonOverrides",void 0);_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ce.prototype,"onYtRendererstamperFinished",null);
_.R([_.N({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Ce);
_.J(Ce,"yt-live-chat-call-for-questions-renderer",function(){if(vWK===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;kel===void 0&&(kel=document.createElement("template"));var h=kel;I.call(b,h.content.cloneNode(!0),G.content.firstChild);vWK=G}G=vWK;return G},{mode:0});var LEd={};LEd.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 b=_.C0n(G.hostElement);b.length&&b[b.length-1].focus()})},
isAttachedChanged_:function(G,b){G?this.focusChild_():b&&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||_.Wy(G).indexOf(this.hostElement)!==-1||(G.stopPropagation(),this.focusChild_())}};var QNI;var x1o;var Ji=function(){return _.a.apply(this,arguments)||this};
_.M(Ji,_.a);Ji.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ji.prototype.onClick=function(G){G.target!==this.confirmButton&&G.target!==this.cancelButton&&(this.hidden=!0)};
_.R([_.lH("#confirm_button"),_.n("design:type",Object)],Ji.prototype,"confirmButton",void 0);_.R([_.lH("#cancel_button"),_.n("design:type",Object)],Ji.prototype,"cancelButton",void 0);_.R([_.H(),_.n("design:type",fU7)],Ji.prototype,"data",void 0);_.R([_.H({value:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],Ji.prototype,"hidden",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(LEd.YtLiveChatDialogBehavior),_.n("design:type",Object)],Ji.prototype,"ytLiveChatDialogBehavior",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Ji);
var fU7=_.J(Ji,"yt-live-chat-dialog-renderer",function(){if(x1o===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;QNI===void 0&&(QNI=document.createElement("template"));var h=QNI;I.call(b,h.content.cloneNode(!0),G.content.firstChild);x1o=G}G=x1o;return G},{mode:0});var TiI;var Bid,U1E=function(){if(Bid!==void 0)return Bid;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;TiI===void 0&&(TiI=document.createElement("template"));var h=TiI;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return Bid=G};var sNg;var gWA;var Ke=function(){var G=_.a.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};
_.M(Ke,_.a);_.m=Ke.prototype;
_.m.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,_.$y)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var b;if((b=this.data)==null?0:b.disabled)this.disabled=!0};
_.m.computeId=function(G){return G};
_.m.computeIcon=function(G,b){if(!G)return"";if(this.useToggledActiveState)return"yt-icons:"+G.toLowerCase();var I,h;return b&&((I=this.data)==null?0:(h=I.toggledIcon)==null?0:h.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+G.toLowerCase()};
_.m.logPDGEntryPoint=function(){_.IbO(_.bg("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")};
_.m.immediatelyShowTooltip=function(){var G=_.Eo(this.hostElement).querySelector("#tooltip");G.animationDelay=0;G.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};G.show()};
_.m.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.m.onClick=function(G){var b;((b=this.data)==null?0:b.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(),_.O3(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.m.computeShowTooltip=function(G,b){return!!(G&&G.tooltip&&b)};
_.m.maybeUpdateTooltipText=function(){var G=this,b;if((b=this.data)==null?0:b.tooltip){var I=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.$y)(G.tooltip).textContent=I},250)}};
_.m.handleLiveChatActions=function(G){var b=this;G.length&&(this.id!=="creator"&&this.id!=="product-picker"||G.forEach(function(I){(I=b.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",I))&&I.durationSec===I.fullDurationSec&&b.startBubble(b.colorFromDecimal(I.startBackgroundColor))}))};
_.m.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.m.startBubble=function(G){_.G8(this.hostElement,{"--yt-live-chat-monetization-button-glow":G});this.hostElement.setAttribute("bubble","")};
_.m.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.m.colorFromDecimal=function(G){typeof G==="string"&&(G=Number(G));return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
Ke.prototype.onAnimationEnd=Ke.prototype.onAnimationEnd;Ke.prototype.disabledChanged=Ke.prototype.disabledChanged;Ke.prototype.dataChanged=Ke.prototype.dataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Ke.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.wZ.YtLiveChatTooltipTargetingBehavior),_.n("design:type",Object)],Ke.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ke.prototype,"data",void 0);_.R([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.n("design:type",Object)],Ke.prototype,"id",void 0);_.R([_.H({notify:!0,reflectToAttribute:!0}),_.n("design:type",Object)],Ke.prototype,"active",void 0);
_.R([_.H({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.n("design:type",Object)],Ke.prototype,"icon",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ke.prototype,"disabled",void 0);_.R([_.H({computed:"computeShowTooltip(data, disabled)"}),_.n("design:type",Object)],Ke.prototype,"showTooltip",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ke.prototype,"useToggledActiveState",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ke.prototype,"dataChanged",null);_.R([_.q5("disabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ke.prototype,"disabledChanged",null);_.R([_.hI("animationend"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Ke.prototype,"onAnimationEnd",null);
_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Ke);
_.J(Ke,"yt-live-chat-icon-toggle-button-renderer",function(){if(gWA===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;sNg===void 0&&(sNg=document.createElement("template"));var h=sNg;I.call(b,h.content.cloneNode(!0),G.content.firstChild);gWA=G}G=gWA;return G},{mode:0});var AB7;var MOE;var uE=function(){return _.a.apply(this,arguments)||this};
_.M(uE,_.a);uE.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([_.H(),_.n("design:type",Object)],uE.prototype,"data",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],uE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.N({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],uE);
_.J(uE,"yt-live-chat-message-input-prompt-header-renderer",function(){if(MOE===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;AB7===void 0&&(AB7=document.createElement("template"));var h=AB7;I.call(b,h.content.cloneNode(!0),G.content.firstChild);MOE=G}G=MOE;return G},{mode:0});var ZLd;var tOg;var zpz;var oWI;var iLl;var PBh;var d1I=function(){return _.a.apply(this,arguments)||this};
_.M(d1I,_.a);_.R([_.H(),_.n("design:type",Object)],d1I.prototype,"data",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],d1I);
_.J(d1I,"yt-live-chat-message-subtext-renderer",function(){if(PBh===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;iLl===void 0&&(iLl=document.createElement("template"));var h=iLl;I.call(b,h.content.cloneNode(!0),G.content.firstChild);PBh=G}G=PBh;return G},{mode:0});var RK=function(){var G=_.a.apply(this,arguments)||this;G.subtextOnBottom=!1;G.buttonOverrides={style:"mono",type:"tonal"};return G};
_.M(RK,_.a);RK.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],RK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],RK.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],RK.prototype,"subtextOnBottom",void 0);_.R([_.H(),_.n("design:type",Object)],RK.prototype,"buttonOverrides",void 0);
_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],RK);
_.J(RK,"yt-live-chat-message-renderer",function(){if(oWI===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;zpz===void 0&&(zpz=document.createElement("template"));var h=zpz;I.call(b,h.content.cloneNode(!0),G.content.firstChild);oWI=G}G=oWI;return G},{mode:0});var yBM;var rBd;var ne=function(){var G=_.a.apply(this,arguments)||this;G.isRemovable=!1;G.hasPrefilledText=!1;G.isInputDirty=!1;G.overCharacterLimit=!1;G.underCharacterLimit=!1;G.showErrorMessage=!1;return G};
_.M(ne,_.a);_.m=ne.prototype;_.m.computeId=function(){return this.data.id};
_.m.computeInputData=function(){return this.data.inputData};
_.m.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.m.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.m.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.m.getLiveChatRichMessageInput=function(){return _.Eo(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.m.clearInput=function(){_.Eo(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.m.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.m.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.m.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.m.handleTextInputCharCountChanged=function(G){G=G.detail&&G.detail.characterCount;G!==void 0&&(this.characterCount=G,G!==0&&(this.isInputDirty=!0))};
_.m.onInputFocusOut=function(){this.isInputDirty=!0};
_.m.onClickCloseButton=function(){_.O3(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
ne.prototype.handleTextInputCharCountChanged=ne.prototype.handleTextInputCharCountChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ne.prototype,"data",void 0);_.R([_.H({computed:"computeId(data.id)"}),_.n("design:type",String)],ne.prototype,"id",void 0);_.R([_.H({computed:"computeInputData(data.inputData)"}),_.n("design:type",Object)],ne.prototype,"inputData",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.n("design:type",Object)],ne.prototype,"isRemovable",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.n("design:type",Object)],ne.prototype,"hasPrefilledText",void 0);_.R([_.H({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.n("design:type",Number)],ne.prototype,"charactersRemaining",void 0);
_.R([_.H(),_.n("design:type",Number)],ne.prototype,"characterCount",void 0);_.R([_.H(),_.n("design:type",Object)],ne.prototype,"isInputDirty",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.n("design:type",Object)],ne.prototype,"overCharacterLimit",void 0);_.R([_.H({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.n("design:type",Object)],ne.prototype,"underCharacterLimit",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.n("design:type",Object)],ne.prototype,"showErrorMessage",void 0);_.R([_.hI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ne.prototype,"handleTextInputCharCountChanged",null);
_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],ne);
_.J(ne,"yt-live-chat-poll-editor-input",function(){if(rBd===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;yBM===void 0&&(yBM=document.createElement("template"));var h=yBM;I.call(b,h.content.cloneNode(!0),G.content.firstChild);rBd=G}G=rBd;return G},{mode:0});var FEg;var HLv;var WEE={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Os=function(){var G=_.a.apply(this,arguments)||this;G.modern=_.U("web_button_rework_with_live");G.closeButtonOverrides={iconPosition:"icon-only"};G.startButtonOverrides={style:"mono",type:"filled"};G.addOptionButtonOverrides={style:"mono",type:"text"};return G};
_.M(Os,_.a);_.m=Os.prototype;
_.m.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"}}}}};
_.m.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var G;_.g((G=this.data)==null?void 0:G.startButton,_.bz)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.m.computeId=function(){return this.data&&this.data.id||""};
_.m.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.m.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.m.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.m.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.m.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var G=0;G<this.pollEditorInfoWithDefaults.minPollOptions;G++)this.addPollOptionData()};
_.m.getIsValidPoll=function(){var G=this;if(!this.pollEditorInfoWithDefaults)return!1;var b=this.pollEditorInfoWithDefaults,I=b.minPollOptionChars,h=b.maxPollOptionChars,q=b.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>b.maxPollQuestionChars)return!1;b=_.Eo(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(b).every(function(l,V){l=l.characterCount;!l&&q[V]&&(l=G.ytRendererBehavior.getSimpleString(q[V]).length);return l!==void 0&&l>=I&&l<=h})};
_.m.isValidPollChanged=function(){var G;_.g((G=this.data)==null?void 0:G.startButton,_.bz)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.m.addPollOptionData=function(){var G=this.pollEditorInfoWithDefaults,b=G.maxPollOptionChars,I=G.optionPlaceholderText,h=G.customOptionPlaceholderText,q=G.pollOptionData;this.currentNumPollOptions>=G.maxPollOptions||(G={liveChatPollOptionInput:{inputData:{placeholder:h[this.currentNumPollOptions]||I,maxCharacterLimit:b},maxCharacterLimit:b,minCharacterLimit:G.minPollOptionChars,hasPrefilledText:!!h[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=G.minPollOptions}},q.charCountErrorText&&
(G.liveChatPollOptionInput.charCountErrorText=q.charCountErrorText),q.charsRemainingAltLabel&&(G.liveChatPollOptionInput.charsRemainingAltLabel=q.charsRemainingAltLabel),q.removeOptionAltText&&(G.liveChatPollOptionInput.removeOptionAltText=q.removeOptionAltText),this.push("pollOptionsData",G),q=Array.from(_.Eo(_.Eo(this.hostElement).querySelector("#poll-options")).children),q.forEach(function(l,V){l.polymerController.set("data.id",V)}),_.Eo(q[q.length-1]).querySelector("#input").focus())};
_.m.getPollOptionInputValues=function(){var G=this,b=[],I=_.Eo(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),h=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(I).forEach(function(q,l){var V=null;q=q.getLiveChatRichMessageInput();var D;(q==null?0:(D=q.textSegments)==null?0:D.length)?V=_.ta(q):h[l]&&(V=G.formattedStringToLiveChatRichMessageInput(h[l]));b.push(V)});
return b};
_.m.requestCreateAndStartPoll=function(G){var b=this.getPollOptionInputValues();if(!b.some(function(h){return!h})){b={optionText:b};
var I=_.Eo(_.Eo(this.hostElement).querySelector("#poll-question")).firstChild;I&&I.liveChatRichMessageInput&&(b.questionText=_.ta(I.liveChatRichMessageInput));_.pv(this.hostElement,[G,b])}};
_.m.selectedChanged=function(){if(this.selected){var G=_.Eo(_.Eo(this.hostElement).querySelector("#start-button")).firstElementChild;if(G){var b;(b=_.Eo(G).querySelector("#button")||_.pX(G).querySelector("button"))==null||b.focus()}}};
_.m.handleTextInputChanged=function(G){var b;((b=G.target)==null?void 0:b.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=G.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.m.handleStartButtonAction=function(G){G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),(G=G.detail.args[1])&&this.requestCreateAndStartPoll(G))};
_.m.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.m.handleServiceRequestCompleted=function(G){this.createPollRequestInFlight=!1;(G=G.detail&&G.detail.data)&&G.success&&(_.O3(this.hostElement,"picker-cancelled"),_.wL(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.m.onCloseClick=function(){_.O3(this.hostElement,"picker-cancelled");_.wL(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.m.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.m.handlePollEditorInputClosed=function(G){var b=this.pollOptionsData.findIndex(function(I){return I.liveChatPollOptionInput.id===G.detail.id});
this.splice("pollOptionsData",b,1);this.isValidPoll=this.getIsValidPoll()};
_.m.onPickerCancelled=function(){this.reset()};
_.m.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var G=_.Eo(_.Eo(this.hostElement).querySelector("#poll-question")).firstChild;G&&G.setLiveChatRichMessageInput(null);if(G=_.Eo(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){G=_.e(Array.from(G));for(var b=G.next();!b.done;b=G.next())b.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.m.formattedStringToLiveChatRichMessageInput=function(G){return G.simpleText?{text_segments:[G.simpleText]}:{text_segments:G.runs}};
_.kV.Object.defineProperties(Os.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(WEE,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Os.prototype.onPickerCancelled=Os.prototype.onPickerCancelled;Os.prototype.handlePollEditorInputClosed=Os.prototype.handlePollEditorInputClosed;Os.prototype.handleServiceRequestCompleted=Os.prototype.handleServiceRequestCompleted;Os.prototype.handleServiceRequestSent=Os.prototype.handleServiceRequestSent;Os.prototype.handleTextInputChanged=Os.prototype.handleTextInputChanged;Os.prototype.selectedChanged=Os.prototype.selectedChanged;Os.prototype.isValidPollChanged=Os.prototype.isValidPollChanged;
Os.prototype.shouldInitializePollChanged=Os.prototype.shouldInitializePollChanged;Os.prototype.dataChanged=Os.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Os.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Os.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Os.prototype,"modern",void 0);
_.R([_.H(),_.n("design:type",Object)],Os.prototype,"closeButtonOverrides",void 0);_.R([_.H(),_.n("design:type",Object)],Os.prototype,"startButtonOverrides",void 0);_.R([_.H(),_.n("design:type",Object)],Os.prototype,"addOptionButtonOverrides",void 0);_.R([_.H({computed:"computeId(data.id)",reflectToAttribute:!0}),_.n("design:type",String)],Os.prototype,"id",void 0);_.R([_.H({value:function(){return[]}}),
_.n("design:type",Array)],Os.prototype,"pollOptionsData",void 0);_.R([_.P("pollEditorInfoWithDefaults"),_.n("design:type",Object),_.n("design:paramtypes",[])],Os.prototype,"pollQuestionData",null);_.R([_.H({value:0}),_.n("design:type",Number)],Os.prototype,"pollQuestionCharacterCount",void 0);_.R([_.P("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.n("design:type",Object),_.n("design:paramtypes",[])],Os.prototype,"pollQuestionCharactersRemaining",null);
_.R([_.H({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.n("design:type",Boolean)],Os.prototype,"overQuestionCharacterLimit",void 0);_.R([_.P("data.pollEditorInfo"),_.n("design:type",Object),_.n("design:paramtypes",[])],Os.prototype,"pollEditorInfoWithDefaults",null);_.R([_.H({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.n("design:type",Number)],Os.prototype,"currentNumPollOptions",void 0);
_.R([_.H({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Os.prototype,"hasMaxNumPollOptions",void 0);_.R([_.P("pollEditorInfoWithDefaults","pollOptionsData"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Os.prototype,"shouldInitializePoll",null);_.R([_.H(),_.n("design:type",Object)],Os.prototype,"isValidPoll",void 0);
_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Os.prototype,"createPollRequestInFlight",void 0);_.R([_.H(),_.n("design:type",Object)],Os.prototype,"selected",void 0);_.R([_.H({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.n("design:type",Boolean)],Os.prototype,"showQuestionErrorMessage",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Os.prototype,"dataChanged",null);_.R([_.q5("shouldInitializePoll"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Os.prototype,"shouldInitializePollChanged",null);_.R([_.q5("isValidPoll"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Os.prototype,"isValidPollChanged",null);
_.R([_.q5("selected"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Os.prototype,"selectedChanged",null);_.R([_.hI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Os.prototype,"handleTextInputChanged",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Os.prototype,"handleServiceRequestSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Os.prototype,"handleServiceRequestCompleted",null);
_.R([_.hI("yt-live-chat-poll-editor-input-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],Os.prototype,"handlePollEditorInputClosed",null);_.R([_.hI("picker-cancelled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Os.prototype,"onPickerCancelled",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Os);
_.J(Os,"yt-live-chat-poll-editor-panel-renderer",function(){if(HLv===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;FEg===void 0&&(FEg=document.createElement("template"));var h=FEg;I.call(b,h.content.cloneNode(!0),G.content.firstChild);HLv=G}G=HLv;return G},{mode:0});var aUK;var Nih;var w9=function(){return _.a.apply(this,arguments)||this};
_.M(w9,_.a);w9.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
w9.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.kV.Object.defineProperties(w9.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var G,b;return(G=this.data)==null?void 0:(b=G.title)==null?void 0:b.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 _.s0((G=this.data)==null?void 0:G.onTapCommand)}}});
_.R([_.z(_.ZN.YtEndpointBehavior),_.n("design:type",Object)],w9.prototype,"ytEndpointBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],w9.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],w9.prototype,"itemId",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],w9.prototype,"hasPromotion",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],w9.prototype,"innertubeCommand",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],w9);
_.J(w9,"yt-live-chat-product-picker-panel-item-view-model",function(){if(Nih===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;aUK===void 0&&(aUK=document.createElement("template"));var h=aUK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Nih=G}G=Nih;return G},{mode:0});var YGI;var CBh;var Es=function(){var G=_.a.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};
_.M(Es,_.a);_.m=Es.prototype;_.m.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.m.observeSelected=function(){this.selected&&this.hostElement.focus();var G=_.Eo(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");G.length&&G[0].focus()};
_.m.onCloseBuyFlow=function(){_.O3(this.hostElement,"picker-cancelled")};
_.m.onCloseClick=function(){_.O3(this.hostElement,"picker-cancelled");var G;((G=this.data)==null?0:G.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.g(this.data.closeButton,_.j6))};
_.m.onCloseEngageWithAudienceEditorPanels=function(){_.O3(this.hostElement,"picker-cancelled")};
Es.prototype.observeSelected=Es.prototype.observeSelected;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Es.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Es.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Es.prototype,"id",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Es.prototype,"selected",void 0);_.R([_.H(),_.n("design:type",Object)],Es.prototype,"closeButtonId",void 0);_.R([_.q5("selected"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Es.prototype,"observeSelected",null);
_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Es);
_.J(Es,"yt-live-chat-product-picker-panel-view-model",function(){if(CBh===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;YGI===void 0&&(YGI=document.createElement("template"));var h=YGI;I.call(b,h.content.cloneNode(!0),G.content.firstChild);CBh=G}G=CBh;return G},{mode:0});var JBA;var KEa;var pe=function(){var G=_.a.apply(this,arguments)||this;G.iconId="";G.icon="";G.disabled=!1;G.systemIcons=_.U("kevlar_system_icons");return G};
_.M(pe,_.a);_.m=pe.prototype;_.m.computeIconId=function(G){return G&&G.icon&&G.icon.iconType?G.icon.iconType.toLowerCase():""};
_.m.computeIcon=function(G){return G&&G.icon&&G.icon.iconType?(G=G.icon.iconType.toLowerCase(),(G.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+G):""};
_.m.computeDisabled=function(G){return!!G};
_.m.computeCommand=function(G,b){return b?void 0:G};
_.m.computeTooltip=function(G,b){return b&&G?G:""};
_.m.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.kV.Object.defineProperties(pe.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var G="",b,I,h;if((b=this.data)==null?0:(I=b.text)==null?0:(h=I.runs)==null?0:h.length)G=this.data.text.runs[0].text||"";else{var q,l;if((q=this.data)==null?0:(l=q.text)==null?0:l.simpleText)G=this.data.text.simpleText}var V,D,k;if((V=this.data)==null?0:(D=V.subtext)==null?0:(k=D.runs)==null?0:k.length)G&&(G+=". "),G+=this.data.subtext.runs[0].text||"";else{var L,x;if((L=this.data)==null?0:(x=L.subtext)==
null?0:x.simpleText)G&&(G+=". "),G+=this.data.subtext.simpleText}return G}}});
_.R([_.z(_.ZN.YtEndpointBehavior),_.n("design:type",Object)],pe.prototype,"ytEndpointBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],pe.prototype,"data",void 0);_.R([_.H({computed:"computeIconId(data)",reflectToAttribute:!0}),_.n("design:type",Object)],pe.prototype,"iconId",void 0);
_.R([_.H({computed:"computeIcon(data)",reflectToAttribute:!0}),_.n("design:type",Object)],pe.prototype,"icon",void 0);_.R([_.H({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.n("design:type",Object)],pe.prototype,"disabled",void 0);_.R([_.H({computed:"computeCommand(data.command, disabled)"}),_.n("design:type",Object)],pe.prototype,"command",void 0);_.R([_.H({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.n("design:type",String)],pe.prototype,"tooltip",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],pe.prototype,"systemIcons",void 0);_.R([_.P("data.text","data.subtext"),_.H(),_.n("design:type",String),_.n("design:paramtypes",[])],pe.prototype,"ariaLabel",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],pe);
_.J(pe,"yt-live-chat-product-button-renderer",function(){if(KEa===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;JBA===void 0&&(JBA=document.createElement("template"));var h=JBA;I.call(b,h.content.cloneNode(!0),G.content.firstChild);KEa=G}G=KEa;return G},{mode:0});var uUE;var Rpo;var SV=function(){var G=_.a.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};
_.M(SV,_.a);_.m=SV.prototype;_.m.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"}}}};
_.m.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.m.computeId=function(G){return G.id||""};
_.m.onCloseClick=function(){_.O3(this.hostElement,"picker-cancelled")};
_.m.observeSelected=function(){this.selected&&this.hostElement.focus();var G=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");G.length&&G[0].focus()};
_.m.onCloseBuyFlow=function(){_.O3(this.hostElement,"picker-cancelled")};
_.m.onCloseEngageWithAudienceEditorPanels=function(){_.O3(this.hostElement,"picker-cancelled")};
SV.prototype.observeSelected=SV.prototype.observeSelected;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],SV.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],SV.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],SV.prototype,"data",void 0);
_.R([_.H({computed:"computeId(data)",reflectToAttribute:!0}),_.n("design:type",String)],SV.prototype,"id",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],SV.prototype,"selected",void 0);_.R([_.q5("selected"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SV.prototype,"observeSelected",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],SV);
_.J(SV,"yt-live-chat-product-picker-renderer",function(){if(Rpo===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;uUE===void 0&&(uUE=document.createElement("template"));var h=uUE;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Rpo=G}G=Rpo;return G},{mode:0});var nWI;var OLA;var wfI;var EWg;var XX=function(){return _.a.apply(this,arguments)||this};
_.M(XX,_.a);XX.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()};
XX.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
XX.prototype.created=function(){this.ids={background:_.FC(),maskOne:_.FC(),maskTwo:_.FC(),gradient:_.FC(),largeBackground:_.FC(),largeGradientOne:_.FC(),largeGradientTwo:_.FC(),largeGradientPath:_.FC()}};
XX.prototype.maybeLoadAnimationBackground=XX.prototype.maybeLoadAnimationBackground;_.R([_.H({value:!1}),_.n("design:type",Boolean)],XX.prototype,"useLargeBackground",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],XX.prototype,"useAnimationBackground",void 0);_.R([_.H({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.n("design:type",Boolean)],XX.prototype,"useRegularBackground",void 0);
_.R([_.H(),_.n("design:type",Object)],XX.prototype,"ids",void 0);_.R([_.H(),_.n("design:type",Object)],XX.prototype,"lottieAnimation",void 0);_.R([_.lH("#animation-background"),_.n("design:type",HTMLDivElement)],XX.prototype,"animationBackground",void 0);_.R([_.q5("useAnimationBackground"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],XX.prototype,"maybeLoadAnimationBackground",null);
_.R([_.g8({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],XX);
_.J(XX,"yt-live-interactivity-component-background",function(){if(EWg===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;wfI===void 0&&(wfI=document.createElement("template"));var h=wfI;I.call(b,h.content.cloneNode(!0),G.content.firstChild);EWg=G}G=EWg;return G},{mode:0});var $v=function(){var G=_.a.apply(this,arguments)||this;G.characterCount=0;G.showInputErrorMessage=!1;G.startQnaRequestInFlight=!1;G.modern=_.U("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};
_.M($v,_.a);_.m=$v.prototype;
_.m.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]]"}}}}}};
_.m.onCharacterCountChanged=function(G){var b,I,h,q,l=(I=_.g(this==null?void 0:(b=this.data)==null?void 0:b.creatorCallForQuestions,tkK))==null?void 0:(h=I.inputField)==null?void 0:(q=h.liveChatTextInputFieldRenderer)==null?void 0:q.maxCharacterLimit,V,D;l!=null&&(G==null?void 0:(V=G.detail)==null?void 0:V.characterCount)!=null&&_.g(this==null?void 0:(D=this.data)==null?void 0:D.startButton,_.bz)&&(b=G.detail.characterCount>l,this.set("data.startButton.buttonRenderer.isDisabled",G.detail.characterCount===
0||b),this.showInputErrorMessage=b)};
_.m.onCloseClick=function(){_.O3(this.hostElement,"picker-cancelled");_.wL(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.m.onPickerCancelled=function(){var G=_.Eo(this.hostElement).querySelector("#qna-creator-text-input-field");G&&G.setLiveChatRichMessageInput(null)};
_.m.handleOpenQnaStartPanel=function(){var G=_.Eo(this.hostElement).querySelector("#qna-creator-text-input-field");G&&G.focus()};
_.m.handleStartButtonAction=function(G){var b=this;if(G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),G=G.detail.args[1])){var I=_.Eo(this.hostElement).querySelector("#qna-creator-text-input-field"),h;(I==null?0:(h=I.liveChatRichMessageInput)==null?0:h.textSegments)&&I.liveChatRichMessageInput.textSegments.length!==0&&(h={rich_message:_.ta(I.liveChatRichMessageInput)},_.pv(this.hostElement,[G,h]).then(function(){_.O3(b.hostElement,"picker-cancelled")}))}};
_.m.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.m.handleServiceRequestCompleted=function(G){var b;G=G==null?void 0:(b=G.detail)==null?void 0:b.data;(G==null?0:G.actions)&&G.actions.length>0?this.startQnaRequestInFlight=!1:_.wL(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.m.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
$v.prototype.handleServiceRequestError=$v.prototype.handleServiceRequestError;$v.prototype.handleServiceRequestCompleted=$v.prototype.handleServiceRequestCompleted;$v.prototype.handleServiceRequestSent=$v.prototype.handleServiceRequestSent;$v.prototype.onPickerCancelled=$v.prototype.onPickerCancelled;$v.prototype.onCharacterCountChanged=$v.prototype.onCharacterCountChanged;_.R([_.H(),_.n("design:type",Object)],$v.prototype,"characterCount",void 0);
_.R([_.H(),_.n("design:type",Object)],$v.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$v.prototype,"showInputErrorMessage",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$v.prototype,"startQnaRequestInFlight",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$v.prototype,"modern",void 0);_.R([_.H(),_.n("design:type",Object)],$v.prototype,"buttonOverrides",void 0);
_.R([_.H(),_.n("design:type",Object)],$v.prototype,"closeButtonOverrides",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.ON),_.n("design:type",Object)],$v.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.z(_.hy.YtLiveChatItemBehavior),_.n("design:type",_.qT)],$v.prototype,"ytLiveChatItemBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],$v.prototype,"ytActionHandlerBehavior",void 0);_.R([_.hI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],$v.prototype,"onCharacterCountChanged",null);_.R([_.hI("picker-cancelled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$v.prototype,"onPickerCancelled",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$v.prototype,"handleServiceRequestSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],$v.prototype,"handleServiceRequestCompleted",null);
_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],$v.prototype,"handleServiceRequestError",null);_.R([_.N({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],$v);
_.J($v,"yt-live-chat-qna-start-panel-renderer",function(){if(OLA===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;nWI===void 0&&(nWI=document.createElement("template"));var h=nWI;I.call(b,h.content.cloneNode(!0),G.content.firstChild);OLA=G}G=OLA;return G},{mode:0});var pfI;var SGK;var G1=function(){return _.a.apply(this,arguments)||this};
_.M(G1,_.a);G1.prototype.dismiss=function(){_.O3(this.hostElement,"yt-live-chat-error-message-dismiss")};
G1.prototype.edit=function(){_.O3(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.R([_.H(),_.n("design:type",Object)],G1.prototype,"data",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],G1);
_.J(G1,"yt-live-chat-text-actions-error-message-renderer",function(){if(SGK===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;pfI===void 0&&(pfI=document.createElement("template"));var h=pfI;I.call(b,h.content.cloneNode(!0),G.content.firstChild);SGK=G}G=SGK;return G},{mode:0});var Xfh;var $9M;var Gvo;var bio;var ba=function(){var G=_.a.apply(this,arguments)||this;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.newnessDotEligible=!1;return G};
_.M(ba,_.a);ba.prototype.sendReaction=function(){var G,b,I=((G=this.data)==null?void 0:G.emojiId)||((b=this.data)==null?void 0:b.emoteId),h;I&&((h=this.data)==null?0:h.shouldTriggerAnimation)&&_.wL(this.hostElement,"yt-create-user-reaction-animation",[I]);var q;(G=_.s0((q=this.data)==null?void 0:q.onTap))&&_.$Q(G,this.hostElement);this.showNewnessDot&&_.wL(this.hostElement,"yt-hide-newness-dot")};
ba.prototype.onClick=function(G){(!G||G.clientX||G.clientY)&&this.sendReaction()};
ba.prototype.onKeyDown=function(G){G.key!=="Enter"&&G.key!==" "||G.repeat||this.sendReaction()};
_.kV.Object.defineProperties(ba.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,b;return!!(((G=this.data)==null?0:G.emojiId)||((b=this.data)==null?0:b.emoteId))}}});
_.R([_.H(),_.n("design:type",Object)],ba.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ba.prototype,"isDarkTheme",void 0);_.R([_.H(),_.n("design:type",Object)],ba.prototype,"newnessDotEligible",void 0);_.R([_.P("data.maybeShowNewnessDot"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ba.prototype,"showNewnessDot",null);_.R([_.P("data.emojiId","data.emoteId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ba.prototype,"useYtImage",null);
_.R([_.g8({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],ba);
_.J(ba,"yt-reaction-control-panel-button-view-model",function(){if(bio===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Gvo===void 0&&(Gvo=document.createElement("template"));var h=Gvo;I.call(b,h.content.cloneNode(!0),G.content.firstChild);bio=G}G=bio;return G},{mode:0});var IOv;var hjA;var IU=function(){var G=_.a.apply(this,arguments)||this;G.reactionControlPanelExpanded=!1;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.newnessDotEligible=!1;return G};
_.M(IU,_.a);_.m=IU.prototype;_.m.expandedButtonsChanged=function(){var G,b;_.G8(this.hostElement,{"--expanded-buttons-height":((b=(G=this.expandedButtonsData)==null?void 0:G.length)!=null?b:0)*36+"px"})};
_.m.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}}};
_.m.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.m.onMouseLeave=function(){var G=this;this.collapseTimer=setTimeout(function(){G.reactionControlPanelExpanded=!1},500)};
_.m.onFocusIn=function(){this.onMouseEnter()};
_.m.onFocusOut=function(){this.onMouseLeave()};
_.m.onCollapsedButtonFocusIn=function(){var G=this;setTimeout(function(){var b;(b=G.expandedButtons.querySelector("button"))==null||b.focus()},100)};
_.m.onCollapsedButtonFocusOut=function(G){G.stopPropagation()};
_.kV.Object.defineProperties(IU.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var G,b;return _.Cy.unsafeClone((G=this.liveReactionsData)==null?void 0:G.emojiButtonData)||((b=this.data)==null?void 0:b.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var G;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((G=this.data)==null||!G.maybeShowNewnessDot)}}});
IU.prototype.expandedButtonsChanged=IU.prototype.expandedButtonsChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.ON),_.n("design:type",Object)],IU.prototype,"ytLiveChatReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],IU.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],IU.prototype,"reactionControlPanelExpanded",void 0);_.R([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:pro}),_.n("design:type",Object)],IU.prototype,"liveReactionsData",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],IU.prototype,"isDarkTheme",void 0);_.R([_.H(),_.n("design:type",Object)],IU.prototype,"newnessDotEligible",void 0);
_.R([_.P("liveReactionsData","data.expandedButtons"),_.n("design:type",Object),_.n("design:paramtypes",[])],IU.prototype,"expandedButtonsData",null);_.R([_.P("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.H({reflectToAttribute:!0}),_.n("design:type",Object),_.n("design:paramtypes",[])],IU.prototype,"showNewnessDot",null);_.R([_.lH("#expanded-buttons"),_.n("design:type",HTMLElement)],IU.prototype,"expandedButtons",void 0);
_.R([_.q5("expandedButtonsData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],IU.prototype,"expandedButtonsChanged",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],IU);
_.J(IU,"yt-reaction-control-panel-view-model",function(){if(hjA===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;IOv===void 0&&(IOv=document.createElement("template"));var h=IOv;I.call(b,h.content.cloneNode(!0),G.content.firstChild);hjA=G}G=hjA;return G},{mode:0});var hY=new _.EA("yt-live-chat"),qAA=Date.parse("2024-7-24"),q6=function(){var G=_.a.apply(this,arguments)||this;G.emojiManager=_.I4;G.newnessDotEligible=!1;G.newnessDotImpressionCounted=!1;G.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return G};
_.M(q6,_.a);_.m=q6.prototype;_.m.emojiCustomizationEnabledChanged=function(){var G;((G=this.data)==null?0:G.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((G=hY.getCreationTime("emoji-customization-count"))&&G<qAA&&hY.set("emoji-customization-count","0"),G=Number(hY.get("emoji-customization-count"))||0,G<3&&(this.newnessDotEligible=!0,hY.set("emoji-customization-count",(G+1).toString())),this.newnessDotImpressionCounted=!0)};
_.m.hideNewnessDot=function(){this.newnessDotEligible=!1;hY.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.m.handleReactionsMute=function(G){var b=_.gL(),I=_.Xs(206221),h={checkboxData:{state:G?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};b&&_.WT(b,I,h);this.reactionsMuted=G};
_.m.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.m.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}}};
_.kV.Object.defineProperties(q6.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var G;return(!((G=this.liveReactionsData)==null||!G.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
q6.prototype.liveReactionsSettingChanged=q6.prototype.liveReactionsSettingChanged;q6.prototype.emojiCustomizationEnabledChanged=q6.prototype.emojiCustomizationEnabledChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.ON),_.n("design:type",Object)],q6.prototype,"ytLiveChatReduxBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],q6.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],q6.prototype,"data",void 0);_.R([_.H(),_.n("design:type",_.$k)],q6.prototype,"emojiManager",void 0);_.R([_.H(),_.n("design:type",Object)],q6.prototype,"newnessDotEligible",void 0);_.R([_.H(),_.n("design:type",Object)],q6.prototype,"newnessDotImpressionCounted",void 0);
_.R([_.H({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:S8E}),_.n("design:type",Boolean)],q6.prototype,"liveReactionsSetting",void 0);_.R([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:pro}),_.n("design:type",Object)],q6.prototype,"liveReactionsData",void 0);_.R([_.H({value:function(){var G=_.U("enable_lwe_web_mute"),b=hY.get("allow-reactions");return b===void 0?!1:!b&&G}}),
_.n("design:type",Boolean)],q6.prototype,"reactionsMuted",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],q6.prototype,"liveReactionsEnabled",null);_.R([_.q5("data.emojiCustomizationEnabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q6.prototype,"emojiCustomizationEnabledChanged",null);
_.R([_.q5("liveReactionsEnabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q6.prototype,"liveReactionsSettingChanged",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],q6);
_.J(q6,"yt-reaction-control-panel-overlay-view-model",function(){if($9M===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Xfh===void 0&&(Xfh=document.createElement("template"));var h=Xfh;I.call(b,h.content.cloneNode(!0),G.content.firstChild);$9M=G}G=$9M;return G},{mode:0});var jbI={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(G){var b=this.$.pickers.selected;if(b){_.Eo(this.hostElement).removeAttribute(b+"-open");var I="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(I="#picker-buttons",b==="emoji"&&_.Eo(this.hostElement).querySelector("#emoji-picker-button")&&(I="#emoji-picker-button"));if(I=_.Eo(this.hostElement).querySelector(I).querySelector("#"+b))I.active=!1}I=G;b==G&&(I=null);b!=
G&&_.Eo(this.hostElement).setAttribute(G+"-open","");this.$.pickers.selected=I;_.wL(this.hostElement,"yt-live-chat-picker-changed",[I])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var jQ=function(){var G=_.a.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=_.U("kevlar_system_icons");G.tallerEmojiPicker=_.U("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};
_.M(jQ,_.a);_.m=jQ.prototype;
_.m.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"}}}};
_.m.attached=function(){window.addEventListener("resize",this.onResize)};
_.m.detached=function(){window.removeEventListener("resize",this.onResize)};
_.m.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.m.sendMessage=function(){var G=this,b,I,h,q;return _.c(function(l){if(G.sendDisabled)return l.return();G.isTooltipVisible&&_.wL(G.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(G.data.sendButton&&G.data.sendButton.buttonRenderer){G.input.completeEmojis();b=G.data.sendButton.buttonRenderer.serviceEndpoint;if(!b)return l.return();h=((I=_.g(b,_.gFe))==null?void 0:I.clientIdPrefix)||"";q={client_message_id:h+String(G.numSentMessages++),rich_message:_.ta(G.input.liveChatRichMessageInput)};
G.pendingMessageId=q.client_message_id;G.inReplyPanel&&(G.sendReplyMessageInFlight=!0);_.pv(G.hostElement,[b,q]);G.input.setLiveChatRichMessageInput(null)}_.ip(l)})};
_.m.handleSendButtonAction=function(G){G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),this.sendMessage())};
_.m.onSendCompleted=function(G,b){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(G=this.get("timeoutDurationUsec",b.data))&&this.handleTimeout(Number(G)/1E3);this.errorMessage=this.get("errorMessage",b.data);this.pendingMessageId=""};
_.m.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.wL(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.m.handlePickerButtonToggle=function(G){G=G.detail.targetId;this.ytPickerBehavior.togglePicker_(G);if(G==="emoji")this.input.focus();else if(G==="qna-start-panel"){var b,I;(b=_.Eo(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(I=b.querySelector("#qna-creator-text-input-field"))==null||I.focus()}};
_.m.onComponentReplaced=function(G){var b,I;G.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((b=G.replacement.liveChatMessageInputRenderer)==null?0:(I=b.headerRenderer)==null?0:I.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.m.onEmojiSelect=function(G){this.input.focus();this.input.insertEmoji(G.detail)};
_.m.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.m.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.wL(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.wL(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.m.onOpenPopupAction=function(G,b){var I=this;b===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.wL(I.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.m.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.m.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.m.focusChanged=function(){this.maybeToggleCharacterCount()};
_.m.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};
_.m.computeId=function(){return this.data&&this.data.targetId||""};
_.m.computeSendDisabled=function(G,b,I,h){G=!!(!G||b&&G>b||h);(b=_.Eo(this.hostElement).querySelector("#send-button"))&&b.children.length&&(b.children[0].disabled=G);return G};
_.m.handleTimeout=function(G){this.timeoutDurationMs=this.timeoutMs=G;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.m.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};
_.m.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.m.onErrorMessageEdit=function(G){this.input.setLiveChatRichMessageInput(G.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.m.errorMessageChanged=function(){var G=this;_.iH(function(){_.wL(G.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.m.computeAuthorNameColor=function(G){var b;if(_.U("live_chat_author_name_color_usernames")&&(G==null?0:(b=G.authorName)==null?0:b.simpleText))return _.TOj(_.BOX(G.authorName.simpleText));if(_.U("live_chat_seed_color_usernames")&&(G==null?0:G.authorSeedColorArgb))return _.TOj(_.w8(G.authorSeedColorArgb));if(_.U("live_chat_colored_usernames"))return"#cc0000";var I;return _.U("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")?_.w8(G.authorUsernameColorDark):_.w8(G.authorUsernameColorLight):""};
_.m.onIsTooltipVisibleChanged=function(){var G=_.Eo(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){G.hidden=!1;G.setAttribute("role","alert")},0):(G.hidden=!0,G.removeAttribute("role"))};
_.m.onFocusedChanged=function(G){this.inputFocused=G.detail.value};
_.kV.Object.defineProperties(jQ.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,b;return((G=this.data)==null?void 0:(b=G.pickers)==null?void 0:b.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)}}});
jQ.prototype.onIsTooltipVisibleChanged=jQ.prototype.onIsTooltipVisibleChanged;jQ.prototype.errorMessageChanged=jQ.prototype.errorMessageChanged;jQ.prototype.onErrorMessageEdit=jQ.prototype.onErrorMessageEdit;jQ.prototype.onErrorMessageDismiss=jQ.prototype.onErrorMessageDismiss;jQ.prototype.focusChanged=jQ.prototype.focusChanged;jQ.prototype.characterCountChanged=jQ.prototype.characterCountChanged;jQ.prototype.onEmojiSelect=jQ.prototype.onEmojiSelect;jQ.prototype.handlePickerButtonToggle=jQ.prototype.handlePickerButtonToggle;
jQ.prototype.onSendError=jQ.prototype.onSendError;jQ.prototype.onSendCompleted=jQ.prototype.onSendCompleted;jQ.prototype.sendMessage=jQ.prototype.sendMessage;jQ.prototype.dataChanged=jQ.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],jQ.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(jbI.YtPickerBehavior),_.n("design:type",Object)],jQ.prototype,"ytPickerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wZ.YtLiveChatTooltipTargetingBehavior),_.n("design:type",Object)],jQ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"hasFiredInitialFocusActions",void 0);
_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"isBeforeFocusEnabled",void 0);_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"data",void 0);_.R([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.n("design:type",Object)],jQ.prototype,"id",void 0);_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"characterCount",void 0);_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"maxCharacterLimit",void 0);
_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"remainingCharacterCount",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],jQ.prototype,"inputExpanded",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],jQ.prototype,"inputFocused",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],jQ.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.R([_.H(),_.n("design:type",_.mU)],jQ.prototype,"participantsManager",void 0);
_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"buttonOverrides",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],jQ.prototype,"inReplyPanel",void 0);_.R([_.P("characterCount, maxCharacterLimit, countdownActive"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],jQ.prototype,"sendDisabled",null);_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"countdownRatio",void 0);
_.R([_.P("countdownRatio"),_.n("design:type",Number),_.n("design:paramtypes",[])],jQ.prototype,"countdownStrokeDashOffset",null);_.R([_.P("countdownRatio"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],jQ.prototype,"countdownActive",null);_.R([_.P("data.interactionMessage"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],jQ.prototype,"hasInteractionMessage",null);
_.R([_.P("data.emojiPickerButton"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],jQ.prototype,"hasEmojiPickerButton",null);_.R([_.P("data, characterCount"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],jQ.prototype,"showAvatar",null);_.R([_.P("data.pickers"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],jQ.prototype,"hasProductPickerPanelViewModel",null);
_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"errorMessage",void 0);_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"genericErrorMessage",void 0);_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"isTooltipVisible",void 0);_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"tooltipTimeout",void 0);_.R([_.P("data.onInitialFocusCommand"),_.n("design:type",String),_.n("design:paramtypes",[])],jQ.prototype,"tooltipMessage",null);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],jQ.prototype,"systemIcons",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],jQ.prototype,"tallerEmojiPicker",void 0);_.R([_.P("data"),_.n("design:type",String),_.n("design:paramtypes",[])],jQ.prototype,"authorNameColor",null);_.R([_.H(),_.n("design:type",Object)],jQ.prototype,"sendReplyMessageInFlight",void 0);_.R([_.lH("#input"),_.n("design:type",_.IB8)],jQ.prototype,"input",void 0);
_.R([_.lH("#count"),_.n("design:type",HTMLElement)],jQ.prototype,"count",void 0);_.R([_.lH("#input-container"),_.n("design:type",HTMLElement)],jQ.prototype,"inputContainer",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jQ.prototype,"dataChanged",null);_.R([_.hI("yt-live-chat-send-message"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],jQ.prototype,"sendMessage",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[Event,_.WN]),_.n("design:returntype")],jQ.prototype,"onSendCompleted",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jQ.prototype,"onSendError",null);
_.R([_.hI("yt-live-chat-icon-toggle-button-renderer-toggle"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],jQ.prototype,"handlePickerButtonToggle",null);_.R([_.hI("yt-emoji-select"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],jQ.prototype,"onEmojiSelect",null);
_.R([_.q5("characterCount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jQ.prototype,"characterCountChanged",null);_.R([_.q5("inputFocused"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jQ.prototype,"focusChanged",null);_.R([_.hI("yt-live-chat-error-message-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jQ.prototype,"onErrorMessageDismiss",null);
_.R([_.hI("yt-live-chat-error-message-edit"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],jQ.prototype,"onErrorMessageEdit",null);_.R([_.q5("errorMessage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jQ.prototype,"errorMessageChanged",null);_.R([_.q5("isTooltipVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jQ.prototype,"onIsTooltipVisibleChanged",null);
_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],jQ);
_.J(jQ,"yt-live-chat-message-input-renderer",function(){if(tOg===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;ZLd===void 0&&(ZLd=document.createElement("template"));var h=ZLd;I.call(b,h.content.cloneNode(!0),G.content.firstChild);tOg=G}G=tOg;return G},{mode:0});var lOK;var m9l;var la=function(){var G=_.a.apply(this,arguments)||this;G.systemIcons=_.U("kevlar_system_icons");G.firedOnClickCommand=!1;G.inReplyPanel=!1;return G};
_.M(la,_.a);
la.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"}}}};
la.prototype.onButtonToggle=function(G){G.target.disabled||this.ytPickerBehavior.togglePicker_(G.detail.targetId)};
la.prototype.onClick=function(){var G=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.wL(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return G.firedOnClickCommand=!1},5E3))};
_.kV.Object.defineProperties(la.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?void 0:(b=G.panels)==null?void 0:b.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}}});
la.prototype.onButtonToggle=la.prototype.onButtonToggle;_.R([_.z(jbI.YtPickerBehavior),_.n("design:type",Object)],la.prototype,"ytPickerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],la.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],la.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],la.prototype,"systemIcons",void 0);_.R([_.H({reflectToAttribute:!1}),_.n("design:type",Object)],la.prototype,"firedOnClickCommand",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],la.prototype,"inReplyPanel",void 0);_.R([_.P("data.pickers"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],la.prototype,"hasProductPickerPanelViewModel",null);
_.R([_.hI("yt-live-chat-icon-toggle-button-renderer-toggle"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],la.prototype,"onButtonToggle",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],la);
_.J(la,"yt-live-chat-restricted-participation-renderer",function(){if(m9l===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;lOK===void 0&&(lOK=document.createElement("template"));var h=lOK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);m9l=G}G=m9l;return G},{mode:0});var m_=function(){var G=_.a.apply(this,arguments)||this;G.genericErrorMessage=_.ao("Error, try again.");G.inReplyPanel=!1;G.hideBorder=!1;return G};
_.M(m_,_.a);m_.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}}}}}};
_.kV.Object.defineProperties(m_,{template:{configurable:!0,enumerable:!0,get:function(){return U1E()}}});
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],m_.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],m_.prototype,"genericErrorMessage",void 0);_.R([_.H(),_.n("design:type",Object)],m_.prototype,"inReplyPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],m_.prototype,"hideBorder",void 0);
_.R([_.g8({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],m_);_.J(m_,"yt-live-chat-engagement-panel-input-renderer",function(){return U1E()},{mode:0});var ejv,Vyo;ejv=_.Xs(115994);Vyo=_.Xs(115993);_.eQ=function(G,b,I){var h=this;var q=I.dragDownAction;this.layer=0;this.JSC$22931_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return h.dragDownAction()}}}};
this.JSC$22931_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return h.dragDownAction()}}}};
this.fullscreen=!1;var l=_.qo();_.Ps(l,ejv,this.layer);_.Ps(l,Vyo,this.layer);this.dragDownAction=function(){q();_.or(l,{visualElement:h.fullscreen?ejv:Vyo})};
this.gesture=new _.Wx(G,b,this.getConfig(!1),"pandown");this.attach()};
_.eQ.prototype.attach=function(){this.gesture.attach()};
_.eQ.prototype.detach=function(){this.gesture.detach()};
_.eQ.prototype.update=function(G){this.fullscreen=G;var b=this.gesture;G=this.getConfig(G);b.config=G};
_.eQ.prototype.getConfig=function(G){return G?this.JSC$22931_watchFullScreenConfig:this.JSC$22931_watchConfig};var D9v={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(G){if(G&&G.length==1&&Array.isArray(G[0].loggingUrls)){G=_.Cy.unsafeClone(G[0]);var b=this.macros||{},I=this.getAdModuleClient_();if(!I)return _.X8();G.loggingUrls.forEach(function(h){if(h.baseUrl){var q=h.baseUrl;var l=b;l=l===void 0?{}:l;q=I.getOptions().includes("replaceUrlMacros")?_.s7z(I,"replaceUrlMacros",{url:q,additionalMapping:l}):q;h.baseUrl=q}},this);
G=[G]}return _.pv(this.hostElement,G)},
getAdModuleClient_:function(){var G=_.Kk(this);return G?(G=G.getPlayer())?new _.ur(G):null:null}}]};var cFg;var kvK;var V3=function(){return _.a.apply(this,arguments)||this};
_.M(V3,_.a);V3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],V3.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],V3.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],V3);
_.J(V3,"ytd-compact-tvfilm-entry-point-renderer",function(){if(kvK!==void 0)return kvK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return kvK=G},{mode:1});var v_K;var L0z;var Qbv;var Dw=function(){return _.a.apply(this,arguments)||this};
_.M(Dw,_.a);Dw.prototype.ready=function(){this.initializeDefs()};
Dw.prototype.initializeDefs=function(){var G=this.meta.byKey("yt-icons"),b=_.Eo(G).querySelector("#star"),I=_.Eo(G).querySelector("#star_half");G=_.Eo(G).querySelector("#star_border");b&&this.defs.appendChild(b.cloneNode(!0));I&&this.defs.appendChild(I.cloneNode(!0));G&&this.defs.appendChild(G.cloneNode(!0))};
Dw.prototype.percentChanged=function(){for(var G=this.rating;G.firstChild;)G.removeChild(G.firstChild);var b=Math.round(this.percent/10);G=Math.floor(b/2);b%=2;var I=5-G-b;this.appendStars("star",G,0);this.appendStars("star_half",b,G);this.appendStars("star_border",I,G+b)};
Dw.prototype.appendStars=function(G,b,I){for(var h=0;h<b;h++){var q=(18+this.spacing)*(h+I),l=document.createElementNS("http://www.w3.org/2000/svg","use");_.HX3(l,"#"+G);l.setAttribute("x",""+q);l.setAttribute("y","0");this.rating.appendChild(l)}};
Dw.prototype.percentChanged=Dw.prototype.percentChanged;_.R([_.lH("#defs"),_.n("design:type",HTMLElement)],Dw.prototype,"defs",void 0);_.R([_.lH("#rating"),_.n("design:type",HTMLElement)],Dw.prototype,"rating",void 0);_.R([_.H(),_.n("design:type",Number)],Dw.prototype,"percent",void 0);_.R([_.H({value:6}),_.n("design:type",Number)],Dw.prototype,"spacing",void 0);_.R([_.H({value:_.Pn.create("iron-meta",{type:"iconset"})}),_.n("design:type",_.HO)],Dw.prototype,"meta",void 0);
_.R([_.q5("percent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dw.prototype,"percentChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-ratings"})],Dw);
_.J(Dw,"ytd-ratings",function(){if(Qbv!==void 0)return Qbv;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Qbv=G},{mode:1});var x9M=function(){return _.a.apply(this,arguments)||this};
_.M(x9M,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],x9M.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],x9M.prototype,"data",void 0);_.R([_.N({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],x9M);
_.J(x9M,"ytd-offer-review-renderer",function(){if(L0z!==void 0)return L0z;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return L0z=G},{mode:1});var cY=function(){var G=_.a.apply(this,arguments)||this;G.badges=[{textBadge:{label:_.ao("CC")}}];return G};
_.M(cY,_.a);_.m=cY.prototype;_.m.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.m.dataChanged=function(){var G=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(G&&G.commandMetadata&&_.g(G.commandMetadata,_.aV)&&_.g(G.commandMetadata,_.aV).fireAutomatically)_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}});else{var b;G&&((b=_.g(G,_.aV))==null?0:b.fireAutomatically)&&_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}})}};
_.m.isEmptyContent=function(G){return this.isStorefrontEntryPointEmpty(G)&&this.shouldHideOfferModule(G)};
_.m.isStorefrontEntryPointEmpty=function(G){return!G||!G.storefrontEntryPoint};
_.m.shouldHideOfferModule=function(G){return!!G.hideVideoDetails};
_.m.isOfferModuleNavigationInactive=function(G){return!G.navigationEndpoint&&!G.serviceEndpoint};
_.m.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.LL().resolve(_.xW).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
cY.prototype.dataChanged=cY.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],cY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],cY.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.n("design:type",Boolean)],cY.prototype,"hidden",void 0);
_.R([_.H(),_.n("design:type",Object)],cY.prototype,"badges",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cY.prototype,"dataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],cY);
_.J(cY,"ytd-movie-offer-module-renderer",function(){if(v_K!==void 0)return v_K;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return v_K=G},{mode:1});var fOI;var Thz=function(){return _.a.apply(this,arguments)||this};
_.M(Thz,_.a);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Thz.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Thz.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Thz);
_.J(Thz,"ytd-media-masthead-renderer",function(){if(fOI!==void 0)return fOI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fOI=G},{mode:1});var Bha;_.JN(_.mrK,"course-metadata-view-model",{props:{data:_.No,isOverlay:_.No}});var kv=function(){var G=_.a.apply(this,arguments)||this;G.isMetadataVisible=!1;G.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return G};
_.M(kv,_.a);_.m=kv.prototype;
_.m.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"}}}}};
_.m.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.m.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.m.expanderChanged=function(){var G;if((G=this.data)==null?0:G.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.m.isExpandButtonToggled=function(){var G,b;return(b=_.g((G=this.data)==null?void 0:G.expandMetadataButton,_.mS))==null?void 0:b.isToggled};
_.m.onVisibilityButtonClick=function(){var G;if((G=this.data)==null?0:G.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.m.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
kv.prototype.expanderChanged=kv.prototype.expanderChanged;kv.prototype.dataChanged=kv.prototype.dataChanged;kv.prototype.descriptionChanged=kv.prototype.descriptionChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z([_.tV.YtActionHandlerBehavior]),_.n("design:type",Object)],kv.prototype,"actionHandlerBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],kv.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],kv.prototype,"isMetadataVisible",void 0);_.R([_.lH("#expander"),_.n("design:type",Object)],kv.prototype,"expander",void 0);_.R([_.q5("data.description"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kv.prototype,"descriptionChanged",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kv.prototype,"dataChanged",null);_.R([_.q5("isMetadataVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kv.prototype,"expanderChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],kv);
_.J(kv,"ytd-tvfilm-offer-module-renderer",function(){if(Bha!==void 0)return Bha;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Bha=G},{mode:2});var U9h;var vY=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return G};
_.M(vY,_.a);vY.prototype.dataChanged=function(){this.hostElement.hidden=!1};
vY.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
vY.prototype.onThumbnailTap=function(G){this.data&&this.data.serviceEndpoint&&(_.LL().resolve(_.xW).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),G.stopPropagation())};
vY.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
vY.prototype.dataChanged=vY.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],vY.prototype,"rendererBehaviors",void 0);_.R([_.z([_.tV.YtActionHandlerBehavior]),_.n("design:type",Object)],vY.prototype,"actionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],vY.prototype,"data",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vY.prototype,"dataChanged",null);_.R([_.N({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],vY);
_.J(vY,"ytd-unlimited-offer-module-renderer",function(){if(U9h!==void 0)return U9h;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return U9h=G},{mode:1});var sbd;var g_a;var Ld=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return G};
_.M(Ld,_.a);Ld.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Ld.prototype.handleRelatedChipCommand=function(G){G=_.g(G,K7E);var b=G.contents;b?_.E3(this.hostElement,"yt-item-section-replace-action",[b,G.targetSectionIdentifier]):_.E3(this.hostElement,"yt-item-section-continuation-action",[G.continuationData,G.targetSectionIdentifier])};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Ld.prototype,"actionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ld.prototype,"data",void 0);_.R([_.g8({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Ld);
_.J(Ld,"yt-related-chip-cloud-renderer",function(){if(g_a===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;sbd===void 0&&(sbd=document.createElement("template"));var h=sbd;I.call(b,h.content.cloneNode(!0),G.content.firstChild);g_a=G}G=g_a;return G},{mode:2});var Q3=function(){var G=_.a.apply(this,arguments)||this;G.isTwoColumns=!0;G.watchFeedBigThumbs=_.U("kevlar_watch_feed_big_thumbs");G.watchFeedBigThumbsOnLockup=_.U("web_watch_next_big_thumbs");G.watchNextGridHideChips=_.U("kevlar_watch_grid_hide_chips");G.eligibleToSwitchToGrid=!0;G.disableShortsShelfHeightOverride=_.U("web_shorts_wn_shelf_ratio_tuning");G.isWatchNextGrid=!1;G.reuseComponents=!_.U("kevlar_watch_grid");G.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return G};
_.M(Q3,_.a);_.m=Q3.prototype;
_.m.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:!_.U("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}}};
_.m.getItemsPath=function(){return"data.results"};
_.m.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.m.created=function(){this.ytLazyListBehavior.initialCount=1};
_.m.ready=function(){_.G8(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.m.resultsChanged=function(){if(this.data&&this.data.results){for(var G=this.data.results,b=null,I=null,h=0;h<G.length;h++)G[h].relatedChipCloudRenderer?b=G[h].relatedChipCloudRenderer:G[h].itemSectionRenderer&&(I=G[h].itemSectionRenderer);if(b&&I)for(this.set("data.continuations",[]),G=_.g(b.content,_.kNi).chips,b=0;b<G.length;b++)if(h=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",G[b]),h.loadCached||!h.contents){h.contents=I.contents;break}}};
_.m.dataChanged=function(){var G=this,b;if((b=this.data)!=null&&b.results&&this.hasAllowedInstreamAd(this.playerData)){if(b=this.data.results.filter(function(D){return!!D.promotedSparklesWebRenderer})){for(var I=0;I<b.length;I++){var h=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",b[I]);
if(h)for(var q=0;q<h.length;q++)h[q]&&h[q].baseUrl&&_.Gs(h[q].baseUrl)}this.set("data.results",this.data.results.filter(function(D){return!D.promotedSparklesWebRenderer}))}if(b=this.data.results.filter(function(D){return!!G.getSparklesAd(D)})){b=_.e(b);
for(q=b.next();!q.done;q=b.next())if(h=I=void 0,q=(I=this.getSparklesAd(q.value))==null?void 0:(h=I.errorCommand)==null?void 0:h.loggingUrls)for(I=_.e(q),h=I.next();!h.done;h=I.next())(h=h.value)&&h.baseUrl&&_.Gs(h.baseUrl);var l,V;this.set("data.results",(l=this.data)==null?void 0:(V=l.results)==null?void 0:V.filter(function(D){return!D.adSlotRenderer}))}}};
_.m.getSparklesAd=function(G){var b,I;G=_.g((b=G.adSlotRenderer)==null?void 0:(I=b.fulfillmentContent)==null?void 0:I.fulfilledLayout,_.WMX);return _.g(G==null?void 0:G.renderingContent,mcd)};
_.m.hasAllowedInstreamAd=function(G){G=this.get("adPlacements",G)||[];for(var b=0;b<G.length;b++){var I=this.get("adPlacementRenderer.config.adPlacementConfig",G[b]);if(I&&I.suppressDisplayAd)return!0}return!1};
_.m.computeHideUnlimitedOfferModule=function(G,b){return G&&G.offerModule&&b&&G.offerModule.unlimitedOfferModuleRenderer&&G.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(b)?!0:!1};
_.m.hideUnlimitedOfferModuleChanged=function(){var G=_.Eo(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");G&&(G.hidden=this.hideUnlimitedOfferModule)};
_.m.updateLockupContainerTypes=function(G){if(this.eligibleToSwitchToGrid){var b;(b=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||b.forEach(function(I){I.containerType=G})}};
_.m.computeHideTvfilmOfferModule=function(G,b){var I,h;return!!((G==null?0:(I=G.offerModule)==null?0:(h=I.tvfilmOfferModuleRenderer)==null?0:h.clientShouldSuppressIfCompanionAdDisplayed)&&b&&this.hasCompanionAds(b))};
_.m.hideTvfilmOfferModuleChanged=function(){var G=_.Eo(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");G&&(G.hidden=this.hideTvfilmOfferModule)};
_.m.hasCompanionAds=function(G){G=this.get("adPlacements",G)||[];for(var b=0;b<G.length;b++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",G[b]))return!0;var I=void 0,h=void 0,q=void 0;if(!_.U("web_watch_top_banner_companion_check_killswitch")&&((I=G[b])==null?0:(h=I.adPlacementRenderer)==null?0:(q=h.renderer)==null?0:q.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.m.hasSuppressedResults=function(G){return G==null?!0:G.filter(function(b){return!b.continuationItemRenderer&&!b.compactPromotedVideoRenderer&&!b.promotedSparklesWebRenderer}).length===0};
_.m.computeShowButton=function(G,b){return this.isWatchNextGrid?G:G||this.hasSuppressedResults(b)};
_.m.showButtonChanged=function(){if(this.isWatchNextGrid){var G=_.Eo(this.hostElement).querySelector("ytd-rich-grid-renderer");G&&this.showButton!==null&&(G.continuationShowButton=this.showButton)}else{G=_.Eo(this.hostElement).querySelector("yt-next-continuation");var b=_.Eo(this.hostElement).querySelector("ytd-continuation-item-renderer"),I=_.Eo(this.hostElement).querySelector("ytd-item-section-renderer");G&&(G.showButton=this.showButton);b&&(b.showButton=this.showButton);I&&(I.continuationShowButton=
this.showButton)}};
_.m.continuationTap=function(G){var b;if(((b=this.data)==null?void 0:b.continuations)!=null&&G.target.tagName==="TP-YT-PAPER-BUTTON")for(G=this.data.continuations,b=0;b<G.length;b++)G[b].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(G[b].nextContinuationData||{})};
_.m.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("shown-items-changed",this.shownItems))};
_.kV.Object.defineProperties(Q3.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(b){return!!b.lockupViewModel||b.compactVideoRenderer}))}}});
Q3.prototype.shownItemsChangedForBinding=Q3.prototype.shownItemsChangedForBinding;Q3.prototype.showButtonChanged=Q3.prototype.showButtonChanged;Q3.prototype.hideTvfilmOfferModuleChanged=Q3.prototype.hideTvfilmOfferModuleChanged;Q3.prototype.updateLockupContainerTypes=Q3.prototype.updateLockupContainerTypes;Q3.prototype.hideUnlimitedOfferModuleChanged=Q3.prototype.hideUnlimitedOfferModuleChanged;Q3.prototype.dataChanged=Q3.prototype.dataChanged;Q3.prototype.resultsChanged=Q3.prototype.resultsChanged;
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.L9.YtLazyListBehavior),_.n("design:type",Object)],Q3.prototype,"ytLazyListBehavior",void 0);_.R([_.z(_.eC.YtNextContinuationBehavior),_.n("design:type",Object)],Q3.prototype,"ytNextContinuationBehavior",void 0);
_.R([_.z(_.mD),_.n("design:type",Object)],Q3.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Q3.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Q3.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Q3.prototype,"playerData",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],Q3.prototype,"autoFill",void 0);_.R([_.H({value:60}),_.n("design:type",Number)],Q3.prototype,"targetFramerate",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Q3.prototype,"isTwoColumns",void 0);_.R([_.H(),_.n("design:type",Object)],Q3.prototype,"shownItems",void 0);_.R([_.H({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.n("design:type",Boolean)],Q3.prototype,"hideUnlimitedOfferModule",void 0);_.R([_.H({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.n("design:type",Boolean)],Q3.prototype,"hideTvfilmOfferModule",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Q3.prototype,"watchFeedBigThumbs",void 0);_.R([_.H(),_.n("design:type",Object)],Q3.prototype,"watchFeedBigThumbsOnLockup",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Q3.prototype,"watchNextGridHideChips",void 0);_.R([_.H(),_.n("design:type",Object)],Q3.prototype,"eligibleToSwitchToGrid",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Q3.prototype,"disableShortsShelfHeightOverride",void 0);
_.R([_.H({selector:_.sd,reflectToAttribute:!0}),_.n("design:type",Object)],Q3.prototype,"isGridViewEnabled",void 0);_.R([_.H({selector:_.h7a,reflectToAttribute:!0}),_.n("design:type",Object)],Q3.prototype,"isSwatcherooActive",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Q3.prototype,"showMoreButton",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Q3.prototype,"isWatchNextGrid",void 0);
_.R([_.H({computed:"computeShowButton(showMoreButton, data.results)"}),_.n("design:type",Boolean)],Q3.prototype,"showButton",void 0);_.R([_.Dd("data.results.*"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q3.prototype,"resultsChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q3.prototype,"dataChanged",null);
_.R([_.q5("hideUnlimitedOfferModule"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q3.prototype,"hideUnlimitedOfferModuleChanged",null);_.R([_.P("isGridViewEnabled","containsLockups","data"),_.H({reflectToAttribute:!0}),_.n("design:type",Number),_.n("design:paramtypes",[])],Q3.prototype,"lockupContainerType",null);
_.R([_.q5("lockupContainerType","data"),_.n("design:type",Function),_.n("design:paramtypes",[Number]),_.n("design:returntype")],Q3.prototype,"updateLockupContainerTypes",null);_.R([_.q5("hideTvfilmOfferModule"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q3.prototype,"hideTvfilmOfferModuleChanged",null);_.R([_.q5("showButton"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q3.prototype,"showButtonChanged",null);
_.R([_.q5("shownItems"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q3.prototype,"shownItemsChangedForBinding",null);_.R([_.P("shownItems"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Q3.prototype,"containsLockups",null);
_.J(Q3,"ytd-watch-next-secondary-results-renderer",function(){if(cFg===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);cFg=G}G=cFg;return G},{mode:1});var AFg;var xv=function(){var G=_.a.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};
_.M(xv,_.a);_.m=xv.prototype;_.m.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.m.onDonateTap=function(){var G=this.get("data.donateButton.buttonRenderer.command");if(G){var b=_.gL(),I=this.get("data.donateButton.buttonRenderer.trackingParams");b&&I&&_.WT(b,_.VB(I));this.ytOpenPopupBehavior.openPopup(G)}};
_.m.onShowMore=function(){this.isCollapsed=!1;var G=_.gL(),b=this.get("data.expandButton.buttonRenderer.trackingParams");G&&b&&_.WT(G,_.VB(b))};
_.m.onShowLess=function(){this.isCollapsed=!0};
_.m.dataChanged=function(){_.G8(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.m.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.m.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()};
_.m.handleOpenPopupAction=function(G){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",G)&&_.wL(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.m.computeHeaderBackgroundUrl=function(G,b){if(G)return b?G.headerBackgroundDarkUrl:G.headerBackgroundUrl};
_.m.isProgressBarVisible=function(G){return!(!G||G.progress===void 0)};
_.m.headerBackgroundClass=function(){return _.wy("HTML_DIR")==="rtl"?"flip":""};
xv.prototype.dataChanged=xv.prototype.dataChanged;_.R([_.z(_.MD.YtOpenPopupBehavior),_.n("design:type",Object)],xv.prototype,"ytOpenPopupBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],xv.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],xv.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],xv.prototype,"isCollapsed",void 0);_.R([_.H({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.n("design:type",String)],xv.prototype,"headerBackgroundUrl",void 0);_.R([_.H(),_.n("design:type",Boolean)],xv.prototype,"isDarkTheme",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xv.prototype,"dataChanged",null);
_.R([_.N({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],xv);
_.J(xv,"ytd-donation-shelf-renderer",function(){if(AFg!==void 0)return AFg;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return AFg=G},{mode:1});var Myl;var Zil=function(){return _.a.apply(this,arguments)||this};
_.M(Zil,_.a);_.R([_.H(),_.n("design:type",Object)],Zil.prototype,"data",void 0);_.R([_.N({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Zil);
_.J(Zil,"ytd-donation-unavailable-renderer",function(){if(Myl!==void 0)return Myl;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Myl=G},{mode:1});var tyI;var fd=function(){return _.a.apply(this,arguments)||this};
_.M(fd,_.a);fd.prototype.computeIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fd.prototype,"data",void 0);_.R([_.N({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],fd);
_.J(fd,"ytd-limited-state-message-renderer",function(){if(tyI!==void 0)return tyI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return tyI=G},{mode:1});var zjK;var T1=function(){return _.a.apply(this,arguments)||this};
_.M(T1,_.a);T1.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
T1.prototype.onTap=function(G){var b=this.data&&this.data.endpoint;b&&!_.NK(_.Wy(G),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.O3(this.hostElement,"yt-navigate",{endpoint:b})};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],T1.prototype,"data",void 0);_.R([_.N({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],T1);
_.J(T1,"ytd-autotagging-metadata-renderer",function(){if(zjK!==void 0)return zjK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return zjK=G},{mode:1});var o_a;var BY=function(){return _.a.apply(this,arguments)||this};
_.M(BY,_.a);BY.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],BY.prototype,"data",void 0);_.R([_.N({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],BY);
_.J(BY,"ytd-autotagging-metadata-row-renderer",function(){if(o_a!==void 0)return o_a;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return o_a=G},{mode:1});var iil;var PuI;var UJ=function(){var G=_.a.apply(this,arguments)||this;G.engagementPanelContent=!1;return G};
_.M(UJ,_.a);UJ.prototype.computeHasDividerLine=function(G,b){return G&&!b};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],UJ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.n("design:type",Boolean)],UJ.prototype,"hasDividerLine",void 0);_.R([_.H(),_.n("design:type",Object)],UJ.prototype,"engagementPanelContent",void 0);
_.R([_.N({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],UJ);
_.J(UJ,"ytd-metadata-row-header-renderer",function(){if(PuI!==void 0)return PuI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return PuI=G},{mode:1});var d9A;var sJ=function(){return _.a.apply(this,arguments)||this};
_.M(sJ,_.a);sJ.prototype.computeHasDividerLine=function(G){return G};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],sJ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.n("design:type",Boolean)],sJ.prototype,"hasDividerLine",void 0);_.R([_.N({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],sJ);
_.J(sJ,"ytd-metadata-row-renderer",function(){if(d9A!==void 0)return d9A;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return d9A=G},{mode:1});var yFg;var rFA=function(){return _.a.apply(this,arguments)||this};
_.M(rFA,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rFA.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],rFA.prototype,"data",void 0);_.R([_.N({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],rFA);
_.J(rFA,"ytd-metadata-with-image-row-renderer",function(){if(yFg!==void 0)return yFg;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return yFg=G},{mode:1});var F0K;var gM=function(){var G=_.a.apply(this,arguments)||this;G.rounded=!0;G.fixie=!1;G.fullWidth=!1;return G};
_.M(gM,_.a);_.m=gM.prototype;_.m.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.m.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(b){G.onEndpointLinkKeyPress(b)}))};
_.m.onEndpointLinkKeyPress=function(G){G.target===this.endpointLink&&G.keyCode===13&&_.O3(this.hostElement,"click")};
_.m.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var G;if((G=this.data)==null?0:G.endpoint)_.Su(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.m.onYtNavigate=function(G){this.endpointHref||(G.stopPropagation(),G.preventDefault())};
_.m.onInformationButtonContainerClick=function(G){G.target.id!=="information-button-container"&&(G.stopPropagation(),G.preventDefault())};
_.m.computeStyle=function(G){return G};
_.m.computeIsThumbnailStyle=function(G){return G==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.m.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}};
_.m.computeThumbnailObjectFit=function(G){switch(G){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.kV.Object.defineProperties(gM.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}}});
gM.prototype.onYtNavigate=gM.prototype.onYtNavigate;gM.prototype.onClick=gM.prototype.onClick;gM.prototype.onDataChanged=gM.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],gM.prototype,"componentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],gM.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],gM.prototype,"componentStyle",void 0);_.R([_.H({computed:"computeIsThumbnailStyle(data.style)"}),_.n("design:type",Boolean)],gM.prototype,"isThumbnailStyle",void 0);_.R([_.H({computed:"computeThumbnailObjectFit(data.style)"}),_.n("design:type",String)],gM.prototype,"thumbnailObjectFit",void 0);
_.R([_.H({computed:"computeThumbnailWidth(data.style)"}),_.n("design:type",Number)],gM.prototype,"thumbnailWidth",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],gM.prototype,"rounded",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],gM.prototype,"fixie",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],gM.prototype,"fullWidth",void 0);_.R([_.lH("#endpoint-link"),_.n("design:type",HTMLAnchorElement)],gM.prototype,"endpointLink",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gM.prototype,"onDataChanged",null);_.R([_.P("data.endpoint"),_.n("design:type",Object),_.n("design:paramtypes",[])],gM.prototype,"endpointHref",null);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],gM.prototype,"onClick",null);
_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],gM.prototype,"onYtNavigate",null);_.R([_.N({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],gM);
_.J(gM,"ytd-rich-metadata-renderer",function(){if(F0K!==void 0)return F0K;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return F0K=G},{mode:_.nn("kevlar_poly_si_batch_j075")?1:2});var Hiv;var AY=function(){var G=_.a.apply(this,arguments)||this;G.fixie=!1;G.fullWidth=!1;return G};
_.M(AY,_.a);AY.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
AY.prototype.computeHasDividerLine=function(G){return G};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],AY.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.n("design:type",Boolean)],AY.prototype,"hasDividerLine",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],AY.prototype,"fixie",void 0);_.R([_.H(),_.n("design:type",Object)],AY.prototype,"fullWidth",void 0);
_.R([_.N({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],AY);
_.J(AY,"ytd-rich-metadata-row-renderer",function(){if(Hiv!==void 0)return Hiv;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Hiv=G},{mode:1});var M6=function(){var G=_.a.apply(this,arguments)||this;G.engagementPanelContent=!1;G.fixie=!1;G.fullWidth=!1;return G};
_.M(M6,_.a);
M6.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"}}}};
M6.prototype.computeCollapsibleItems=function(G,b,I){return G===void 0||b===void 0||I===void 0||I?[]:G.slice(b)};
M6.prototype.computeAlwaysShownItems=function(G,b){return G&&G.length?G.slice(0,b):[]};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],M6.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],M6.prototype,"collapsed",void 0);
_.R([_.H({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.n("design:type",Array)],M6.prototype,"alwaysShownItems",void 0);_.R([_.H({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.n("design:type",Array)],M6.prototype,"collapsibleItems",void 0);_.R([_.H(),_.n("design:type",Object)],M6.prototype,"engagementPanelContent",void 0);_.R([_.H(),_.n("design:type",Object)],M6.prototype,"fixie",void 0);
_.R([_.H(),_.n("design:type",Object)],M6.prototype,"fullWidth",void 0);_.R([_.N({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],M6);
_.J(M6,"ytd-metadata-row-container-renderer",function(){if(iil!==void 0)return iil;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return iil=G},{mode:1});var W0K;var Zw=function(){var G=_.a.apply(this,arguments)||this;G.currentPageUrl="";G.baseUrl="";G.isHiddenByUser=null;G.hidden=!1;G.showAboveScrim=!1;G.watchNextGrid=_.U("kevlar_watch_grid");G.modernButtons=_.U("web_modern_buttons");G.roundedContainer=!0;G.noBorder=!1;G.roundBackground=!_.U("live_chat_round_background_killswitch");G.overflowHideChat=_.U("live_chat_overflow_hide_chat");G.forceDarkTheme=!1;G.theaterWatchWhile=!1;G.isListeningForPlayerProgress=!1;G.JSC$23002_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};
_.M(Zw,_.a);_.m=Zw.prototype;_.m.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.E3(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.m.created=function(){var G=this;this.handleIframeEventListener=function(b){G.handleIframeEvent(b)};
this.handleKeyboardEventListener=function(b){G.handleKeyboardEvent(b)};
this.JSC$23002_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23002_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23002_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23002_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23002_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.m.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()};
_.m.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};
_.m.computeBaseUrl=function(G){var b="/live_chat";this.isChatReplay()&&(b="/live_chat_replay");return _.eP(_.mQ(_.lW(_.Gt(G),b),null),"").toString()};
_.m.dataChanged=function(){_.U("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.m.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var G=this.url;if(this.isChatReplay()&&this.player){var b=Math.floor(this.player.getProgressState().current*1E3);G=_.IJ(_.Gt(G),"playerOffsetMs",b.toString()).toString()}b=this.chatframe;try{var I=G==="about:blank"?_.wgW:_.KA(G),h=b.contentDocument.location,q=_.nA(I);q!==void 0&&h.replace(q)}catch(l){b.src=G}}};
_.m.collapsedChanged=function(){_.O3(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.m.handleIframeEvent=function(G){if(G&&this.baseUrl.startsWith(G.origin)&&G.source===this.chatframe.contentWindow&&_.Oj(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 b=_.LL().resolve(_.vf(_.Kh3));if(b){var I=G.ports,h;I&&I.length&&(h=function(){I[0].postMessage({})});
G=G.data["yt-show-feedback-dialog"];b.showFeedbackDialog(G.customProductData,G.feedbackContent,h,G.bucket)}}else if(G.data["yt-show-survey"])_.O3(this.hostElement,"yt-show-survey",G.data["yt-show-survey"]);else if(G.data["yt-purchase-membership"])_.LL().resolve(_.xW).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"])_.k2();
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&&(b={cpn:this.player.getVideoData().cpn},_.C1("liveChatBeingModerated",b))};
_.m.attachLiveChatResponseVeTrackingParams=function(G){G=_.VB(G);var b=_.gL(),I=_.Ge("liveChatRenderer.trackingParams",this.data);b&&I&&_.dK(b,_.VB(I),G)};
_.m.handleBuyflowMessages=function(G){var b=G.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,I=G.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,h=G.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.R12(_.Jx(_.Hy),b.replace(/-/g,"+").replace(/_/g,"/"),function(q){G.ports[0].postMessage({success:!0,buyFlowResponse:q})},void 0,function(q){G.ports[0].postMessage({success:!1,
error:q&&q.message||"Buyflow rejected without error."})},_.m$().get("hl"),void 0,function(){G.ports[0].postMessage({closed:!0})},I,h)};
_.m.setupPlayerProgressRelay=function(){var G=this;if(!this.isListeningForPlayerProgress){var b=_.uk();b!=null&&b.getPlayerPromise&&(b.getPlayerPromise().then(function(I){G.playerApiReady(I)}),this.isListeningForPlayerProgress=!0)}};
_.m.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.m.playerApiReady=function(G){this.setPlayer(G)};
_.m.playerProgressHandler=function(){if(this.player){var G=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":G.current})}};
_.m.playerAdStartHandler=function(G){this.postToContentWindow({"yt-player-ad-start":G})};
_.m.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.m.playerStateChangeHandler=function(G){this.postToContentWindow({"yt-player-state-change":G})};
_.m.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23002_playerEvents);G&&(this.player=G,this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$23002_playerEvents),_.O3(this.hostElement,"player-api-ready"))};
_.m.liveChatPageUrl=function(G,b,I,h){return!I||b?"about:blank":I.liveChatRenderer?(b=_.Gt(this.currentPageUrl).JSC$10105_queryData_,X$I(b),G=_.Gt(G),b.add("continuation",I.liveChatRenderer.continuations[0].reloadContinuationData.continuation),I=_.o_()==="USER_INTERFACE_THEME_DARK",(h||I)&&b.add("dark_theme","true"),_.mQ(G,b),h=_.Gt(G.toString()),I=h.JSC$10105_queryData_,"SESSION_INDEX"in _.n3&&(I.add("authuser",_.wy("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.n3&&I.add("pageId",_.wy("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.n3&&I.add("sdc",_.wy("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),h.toString()):""};
_.m.isCollapsed=function(G,b){return b!==null?b:this.isChatReplay()||G&&G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage?!0:G?G.liveChatRenderer?G.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.U("live_chat_hide_premiere_replay_message")||G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.m.isHidden=function(G,b,I){var h=b&&b.conversationBarRenderer&&b.conversationBarRenderer.availabilityMessage,q=b&&b.liveChatRenderer&&b.liveChatRenderer.showHideButton,l=b&&b.liveChatRenderer&&b.liveChatRenderer.showButton;return I&&G&&!h&&!l||!I&&G&&!h&&!q?!0:b&&b.liveChatRenderer&&b.liveChatRenderer.initialDisplayState?b.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.m.computeButtonOverride=function(G,b){if(G&&b)return{type:"outline"}};
_.m.setCollapsedState=function(G){_.g(G,_.N0O)&&((this.isHiddenByUser=!!_.g(G,_.N0O).collapsed)||_.wL(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.m.forwardReduxActionToIframe=function(G){this.postToContentWindow({"yt-live-chat-forward-redux-action":G})};
_.m.onLoopRangeChange=function(G){this.showAboveScrim=!(G==null||!G.postId)};
_.m.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.m.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.m.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.m.sendDarkThemePostMessage=function(G){this.postToContentWindow({"yt-live-chat-set-dark-theme":G})};
_.m.onLiveChatBuyFlowCallback=function(G){this.postToContentWindow({"yt-live-chat-buy-flow-callback":G})};
_.m.handleKeyboardEvent=function(G){(0,_.Cy.containsValue)(bLh,G.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:G.type,keyCode:G.keyCode}})};
_.m.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.m.postToContentWindow=function(G){if(this.isFrameReady)try{var b=window.location.protocol+"//"+window.location.host,I;(I=this.chatframe)!=null&&I.contentWindow?this.chatframe.contentWindow.postMessage(G,b):_.RB(new _.Wf("Tried posting a message to an iframe with no content window",G))}catch(h){_.K1(h)}};
_.m.shouldHideChatFrame=function(G){return G&&_.U("hide_live_chat_button_when_collapsed")};
_.kV.Object.defineProperties(Zw.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.U("live_chat_overflow_hide_chat")||_.U("web_watch_chat_hide_button_killswitch"))return _.U("live_chat_overflow_hide_chat");var G,b,I,h;return!!((G=this.data)==null?0:(b=G.liveChatRenderer)==null?0:(I=b.header)==null?0:(h=I.liveChatHeaderRenderer)==null?0:h.collapseButton)}}});
Zw.prototype.collapsedChanged=Zw.prototype.collapsedChanged;Zw.prototype.urlChanged=Zw.prototype.urlChanged;Zw.prototype.dataChanged=Zw.prototype.dataChanged;Zw.prototype.onShowHideChat=Zw.prototype.onShowHideChat;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Zw.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Zw.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],Zw.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.z(_.MD.YtOpenPopupBehavior),_.n("design:type",Object)],Zw.prototype,"ytOpenPopupBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Zw.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Zw.prototype,"currentPageUrl",void 0);
_.R([_.H({computed:"computeBaseUrl(currentPageUrl,data)"}),_.n("design:type",Object)],Zw.prototype,"baseUrl",void 0);_.R([_.H({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.n("design:type",String)],Zw.prototype,"url",void 0);_.R([_.H(),_.n("design:type",Object)],Zw.prototype,"isHiddenByUser",void 0);_.R([_.H({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.n("design:type",Object)],Zw.prototype,"hidden",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.n("design:type",Boolean)],Zw.prototype,"collapsed",void 0);_.R([_.H({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.n("design:type",Boolean)],Zw.prototype,"hideChatFrame",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zw.prototype,"showAboveScrim",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zw.prototype,"watchNextGrid",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Zw.prototype,"modernButtons",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zw.prototype,"roundedContainer",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zw.prototype,"noBorder",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Zw.prototype,"roundBackground",void 0);
_.R([_.H({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.n("design:type",Object)],Zw.prototype,"toggleButtonOverride",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Zw.prototype,"overflowHideChat",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zw.prototype,"forceDarkTheme",void 0);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Zw.prototype,"enableShowWithoutHideChatButton",null);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zw.prototype,"theaterWatchWhile",void 0);_.R([_.lH("#chatframe"),_.n("design:type",HTMLIFrameElement)],Zw.prototype,"chatframe",void 0);_.R([_.hI("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zw.prototype,"onShowHideChat",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zw.prototype,"dataChanged",null);
_.R([_.q5("url"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zw.prototype,"urlChanged",null);_.R([_.q5("collapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zw.prototype,"collapsedChanged",null);_.R([_.N({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Zw);
_.J(Zw,"ytd-live-chat-frame",function(){if(W0K!==void 0)return W0K;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return W0K=G},{mode:1});var aOK;var tY=function(){var G=_.a.apply(this,arguments)||this;G.modern=_.U("web_modern_buttons");G.buttonOverrides={style:"call-to-action",type:"filled"};return G};
_.M(tY,_.a);tY.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=_.Uo(this.data.backgroundColor)))};
tY.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var G=this.getFormattedStringLoggingDirectives(this.data.headline);G&&this.rendererBehavior.logExplicitClick(G)}};
tY.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var G=this.getFormattedStringLoggingDirectives(this.data.description);G&&this.rendererBehavior.logExplicitClick(G)}};
tY.prototype.getFormattedStringLoggingDirectives=function(G){return G&&G.runs&&G.runs.length>0&&G.runs[0]&&G.runs[0].loggingDirectives?G.runs[0].loggingDirectives:null};
tY.prototype.dataChanged=tY.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],tY.prototype,"rendererBehavior",void 0);_.R([_.z(D9v.YtMacroReplacementBehavior),_.n("design:type",Object)],tY.prototype,"macroReplacementBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],tY.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],tY.prototype,"navigationEndpoint",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],tY.prototype,"enableColors",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tY.prototype,"modern",void 0);_.R([_.H(),_.n("design:type",Object)],tY.prototype,"buttonOverrides",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tY.prototype,"dataChanged",null);_.R([_.N({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],tY);
_.J(tY,"ytd-action-basic-immersive-content-renderer",function(){if(aOK!==void 0)return aOK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return aOK=G},{mode:1});var NhK;var YAK;var z1=function(){return _.a.apply(this,arguments)||this};
_.M(z1,_.a);z1.prototype.dataChanged=function(){var G;((G=this.data)==null?void 0:G.backgroundColor)!==void 0&&_.G8(this.hostElement,{"--bgu-color":_.Uo(this.data.backgroundColor)})};
z1.prototype.onImageTileClick=function(){var G;((G=this.data)==null?0:G.navigationEndpoint)&&_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var b;((b=this.data)==null?0:b.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.kV.Object.defineProperties(z1.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,b,I;if(((G=this.data)==null?void 0:(b=G.detailsLine)==null?void 0:b.texts)!=null&&((I=this.data)==null?void 0:I.detailsLine.texts.length)>0){var h;return(h=this.data)==null?void 0:h.detailsLine.texts.map(function(q){return q.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var G,b,I;if(((G=this.data)==null?void 0:(b=G.optionalDetailsLine)==null?void 0:b.texts)!=null&&((I=this.data)==null?void 0:I.optionalDetailsLine.texts.length)>0){var h;return(h=this.data)==null?void 0:h.optionalDetailsLine.texts.map(function(q){return q.text}).join("")}return null}}});
z1.prototype.dataChanged=z1.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],z1.prototype,"rendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],z1.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],z1.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.backgroundColor"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],z1.prototype,"hasBackgroundColor",null);
_.R([_.P("data.objectFit"),_.n("design:type",Object),_.n("design:paramtypes",[])],z1.prototype,"getObjectFit",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.tileRenderingStyle"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],z1.prototype,"hasTileMetadata",null);_.R([_.P("data.detailsLine"),_.n("design:type",Object),_.n("design:paramtypes",[])],z1.prototype,"getSecondaryDetails",null);
_.R([_.P("data.optionalDetailsLine"),_.n("design:type",Object),_.n("design:paramtypes",[])],z1.prototype,"getOptionalDetails",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],z1.prototype,"dataChanged",null);_.R([_.N({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],z1);
_.J(z1,"ytd-image-tile-renderer",function(){if(YAK!==void 0)return YAK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YAK=G},{mode:1});var Cuv;var oU=function(){return _.a.apply(this,arguments)||this};
_.M(oU,_.a);oU.prototype.getOpenLinkIcon=function(){return _.U("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
oU.prototype.onSitelinkTap=function(){_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.U("kevlar_command_handler_migration_killswitch"))_.Su(this.hostElement,this.data.clickCommands,this.hostElement);else for(var G=_.e(this.data.clickCommands),b=G.next();!b.done;b=G.next())this.ytComponentBehavior.resolveCommand(b.value)};
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],oU.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],oU.prototype,"rendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],oU.prototype,"data",void 0);_.R([_.N({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],oU);
_.J(oU,"ytd-sitelink-renderer",function(){if(Cuv!==void 0)return Cuv;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Cuv=G},{mode:1});var ia=function(){var G=_.a.apply(this,arguments)||this;G.paddingFix=_.U("enable_ads_web_ep_buenos_aires_and_padding_fix");return G};
_.M(ia,_.a);ia.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"}}}};
ia.prototype.dataChanged=function(){var G=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;G.ytMacroReplacementBehavior.sendServiceRequestAction([b])})};
ia.prototype.shouldHideFooter=function(G){return!(G&&_.U("use_ads_engagement_panel_desktop_footer_cta"))};
_.kV.Object.defineProperties(ia.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?void 0:G.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var h;return(h=_.g(I,lpI))==null?void 0:h.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?void 0:G.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var h;return((h=_.g(I,lpI))==null?void 0:h.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
ia.prototype.dataChanged=ia.prototype.dataChanged;_.R([_.z(D9v.YtMacroReplacementBehavior),_.n("design:type",Object)],ia.prototype,"ytMacroReplacementBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ia.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ia.prototype,"paddingFix",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.imageTileRenderers"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ia.prototype,"removeBorderFromImageTiles",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.imageTileRenderers"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ia.prototype,"useFooteredMetadataRenderingStyle",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ia.prototype,"dataChanged",null);_.R([_.N({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],ia);
_.J(ia,"ytd-action-engagement-panel-content-renderer",function(){if(NhK!==void 0)return NhK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return NhK=G},{mode:1});var JFg;var K0d=_.C(function(G){var b=G.data;var I=G.customCommandResolver;return _.v("ad-grid-card-image-full-metadata-view-model",{class:function(){var h;return((h=b().interaction)==null?0:h.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.Wv(_.L8({visibilityCallback:function(h){var q,l=(q=b().interaction)==null?void 0:q.onFirstVisible;h&&l&&_.Zm(l)},
showOption:_.xr}),_.tW(function(){return b().interaction},I)),
"aria-label":function(){var h,q;return(h=b().interaction)==null?void 0:(q=h.accessibility)==null?void 0:q.label}},_.v("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.v(_.VX,{data:function(){return b().adImage}},{adImageViewModel:function(h){return _.v(_.aE,{data:h.data,
customCommandResolver:I})}})),_.v("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.v(_.Q,{cond:function(){return b().headline},
then:function(h){return _.v(_.IS,{text:h,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.v(_.Q,{cond:function(){return b().detailsLine},
then:function(h){return _.v("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.v(_.VX,{data:h},{adDetailsLineViewModel:function(q){return _.v(_.MI,{data:q.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.v(_.Q,{cond:function(){return b().secondaryDetailsLine},
then:function(h){return _.v("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.v(_.VX,{data:h},{adDetailsLineViewModel:function(q){return _.v(_.MI,{data:q.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"un");var u5A=_.C(function(G){var b=G.data;var I=G.customCommandResolver;return _.v("ad-grid-card-image-view-model",{class:function(){var h;return((h=b().interaction)==null?0:h.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.Wv(_.L8({visibilityCallback:function(h){var q,l=(q=b().interaction)==null?void 0:q.onFirstVisible;h&&l&&_.Zm(l)},
showOption:_.xr}),_.tW(function(){return b().interaction},I)),
"aria-label":function(){var h,q;return(h=b().interaction)==null?void 0:(q=h.accessibility)==null?void 0:q.label}},_.v(_.VX,{data:function(){return b().adImage}},{adImageViewModel:function(h){return _.v(_.aE,{data:h.data,
customCommandResolver:I})}}),_.v("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.v(_.VX,{data:function(){return b().adCardBadge}},{adCardBadgeViewModel:_.EiX})))},"vn");var Rjo=_.C(function(G){var b=G.data;var I=G.customCommandResolver;return _.v("ad-grid-card-text-view-model",{class:function(){var h;return((h=b().interaction)==null?0:h.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.Wv(_.L8({visibilityCallback:function(h){var q,l=(q=b().interaction)==null?void 0:q.onFirstVisible;h&&l&&_.Zm(l)},
showOption:_.xr}),_.tW(function(){return b().interaction},I)),
"aria-label":function(){var h,q;return(h=b().interaction)==null?void 0:(q=h.accessibility)==null?void 0:q.label}},_.v("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.v(_.Q,{cond:function(){return b().title},
then:function(h){return _.v(_.IS,{text:h,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.v("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.v(_.aj,{each:function(){var h;
return((h=b())==null?void 0:h.descriptions)||[]},
keyBy:"INDEX"},function(h){return _.v(_.IS,{text:h,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.v("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.v(_.VX,{data:function(){return b().moreInfoButton}},{adButtonViewModel:function(h){return _.v(_.TC,{data:h.data,
customCommandResolver:I})}})))},"wn");var n_M=_.C(function(G){var b=G.data;var I=G.customCommandResolver;var h=G.adGridCardCollectionStyle;return _.v("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.Wv(_.L8({visibilityCallback:function(q){var l,V=(l=b().interaction)==null?void 0:l.onFirstVisible;q&&V&&_.Zm(V)},
showOption:_.xr})),style:function(){return"grid-template-columns: repeat("+VTI(h?h():b().style)+", minmax(0, 1fr));"}},_.v(_.VX,{data:function(){var q;
return(q=b())==null?void 0:q.gridCards}},{adGridCardImageViewModel:function(q){return _.v(u5A,{data:q.data,
customCommandResolver:I})},
adGridCardImageFullMetadataViewModel:function(q){return _.v(K0d,{data:q.data,customCommandResolver:I})},
adGridCardTextViewModel:function(q){return _.v(Rjo,{data:q.data,customCommandResolver:I})}}))},"xn");_.JN(_.C(function(G){var b=G.data;return _.v("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.Wv(_.L8({visibilityCallback:function(I){var h,q=(h=b().interaction)==null?void 0:h.onFirstVisible;I&&q&&_.Zm(q)},
showOption:_.xr}),_.tW(function(){return b().interaction},cfI))},_.v("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.v(_.Q,{cond:_.AGO("(min-width: "+((0,_.Hl)()+_.H7)+"px)"),
then:function(){return _.v(_.VX,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.v(n_M,{data:I.data,
customCommandResolver:cfI})}})},
else:function(){return _.v(_.VX,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.v(n_M,{data:I.data,
customCommandResolver:cfI,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.v("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.v(_.VX,{data:function(){return b().adButton}},{adButtonViewModel:function(I){return _.v(_.TC,{data:I.data,
customCommandResolver:cfI})}})))},"yn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;return _.v("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.Wv(_.L8({visibilityCallback:function(I){var h,q=(h=b().interaction)==null?void 0:h.onFirstVisible;I&&q&&_.Zm(q)},
showOption:_.xr}),_.tW(function(){return b().interaction},kto))},_.v("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.v(_.VX,{data:function(){if(_.AGO("(min-width: "+((0,_.Hl)()+_.H7)+"px)")())var I=b().adGridCardCollection;
else{I=Object.assign({},_.g(b().adGridCardCollection,eTa));var h;I.gridCards!==void 0&&((h=I.gridCards)==null?void 0:h.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 _.v(n_M,{data:I.data,
customCommandResolver:kto})}})),_.v("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.v(_.VX,{data:function(){return b().adButton}},{adButtonViewModel:function(I){return _.v(_.TC,{data:I.data,
customCommandResolver:kto})}})))},"zn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.hV}});var PY=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return G};
_.M(PY,_.a);_.m=PY.prototype;_.m.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"}}}};
_.m.attached=function(){this.getDataFromPlayerAndRender()};
_.m.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.m.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.m.getDataFromPlayerAndRender=function(){var G=this,b=_.Kk(this.hostElement);b&&b.getPlayerPromise().then(function(I){G.getCachedDataAndListen(I)})};
_.m.getCachedDataAndListen=function(G){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=G)};
_.m.resolveCachedActions=function(){var G=_.Ge("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(G=G&&G())&&!_.Cy.isEmpty(G)&&this.sendUpdateEngagementPanelAction(G);(G=(G=_.Ge("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&G())&&!_.Cy.isEmpty(G)&&this.sendChangeEngagementPanelVisibilityAction(G);(G=(G=_.Ge("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&G())&&!_.Cy.isEmpty(G)&&this.sendScrollToEngagementPanelCommand(G)};
_.m.sendUpdateEngagementPanelAction=function(G){var b;_.wL(this.hostElement,"yt-update-engagement-panel-action",[(b=_.Cy.get(G,"action"))!=null?b:G])};
_.m.sendChangeEngagementPanelVisibilityAction=function(G){_.wL(this.hostElement,"yt-change-engagement-panel-visibility-action",[G])};
_.m.sendScrollToEngagementPanelCommand=function(G){_.wL(this.hostElement,"yt-scroll-to-engagement-panel-command",[G])};
_.m.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.U("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.RB(Error("ap"))};
PY.prototype.dataChanged=PY.prototype.dataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],PY.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],PY.prototype,"componentBehavior",void 0);_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],PY.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],PY.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],PY.prototype,"player",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PY.prototype,"dataChanged",null);_.R([_.N({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],PY);
_.J(PY,"ytd-ads-engagement-panel-content-renderer",function(){if(JFg!==void 0)return JFg;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return JFg=G},{mode:1});var Oil;var dM=function(){var G=_.a.apply(this,arguments)||this;G.player=null;G.JSC$23039_playerEvents=new Map;G.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return G};
_.M(dM,_.a);_.m=dM.prototype;_.m.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]]"}}}}}};
_.m.created=function(){this.player=null;this.JSC$23039_playerEvents=new Map;this.JSC$23039_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23039_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23039_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23039_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.m.attached=function(){var G=this,b=_.Kk();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));b&&b.getPlayerPromise().then(function(I){G.setPlayer(I);G.set("isPageLoad",!1)})};
_.m.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23039_playerEvents);this.set("player",G);G&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$23039_playerEvents),G.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.m.onLoopRangeChange=function(G){var b=_.LL().resolve(_.vf(_.Ck));if((!b||b.isOnWatch())&&this.hostElement.clientHeight){var I;!G&&((I=this.data)==null?0:I.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.m.onVideoProgress=function(G){var b,I,h=((b=this.player)==null?void 0:(I=b.getPresentingPlayerType)==null?void 0:I.call(b))===2;this.isAdPlaying!==h&&this.set("isAdPlaying",h);var q;if(!h&&(q=this.player)!=null&&q.getLoopRange()){I=this.player.getLoopRange();b=I.startTimeMs;I=I.endTimeMs;h=this.player.getProgressState(1).seekableStart;var l;b<h*1E3&&((l=this.data)==null?0:l.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
G=I<G*1E3;var V;((V=this.player)==null?0:V.getLoopRange())&&G&&this.player.seekTo(b/1E3)}};
_.m.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.m.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.m.onYtDeleteClipEngagementPanelCommand=function(G){_.g(G,ACo).command&&this.ytComponentBehavior.resolveCommand(_.g(G,ACo).command)};
_.kV.Object.defineProperties(dM.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.ao("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([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],dM.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],dM.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],dM.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],dM.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],dM.prototype,"isAdPlaying",void 0);_.R([_.H({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],dM.prototype,"isPageLoad",void 0);_.R([_.H({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],dM.prototype,"isDarkTheme",void 0);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],dM.prototype,"voteCount",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],dM.prototype,"channelEndpoint",null);_.R([_.P("channelEndpoint"),_.n("design:type",Object),_.n("design:paramtypes",[])],dM.prototype,"channelHref",null);_.R([_.N({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],dM);
_.J(dM,"ytd-clip-attribution-renderer",function(){if(Oil!==void 0)return Oil;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Oil=G},{mode:1});var wzd;var y3=function(){var G=_.a.apply(this,arguments)||this;G.player=null;G.JSC$23044_playerEvents=new Map;return G};
_.M(y3,_.a);_.m=y3.prototype;_.m.created=function(){this.player=null;this.JSC$23044_playerEvents=new Map;this.JSC$23044_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23044_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23044_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.m.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.m.attached=function(){var G=this,b=_.Kk();b&&b.getPlayerPromise().then(function(I){G.setPlayer(I);G.set("isPageLoad",!1)})};
_.m.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23044_playerEvents);this.set("player",G);if(G){this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$23044_playerEvents);var b;(G==null?void 0:(b=G.getPresentingPlayerType)==null?void 0:b.call(G))===2&&this.playerAdStartHandler()}};
_.m.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.m.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.m.onVideoProgress=function(){var G,b,I=((G=this.player)==null?void 0:(b=G.getPresentingPlayerType)==null?void 0:b.call(G))===2;this.isAdPlaying!==I&&this.set("isAdPlaying",I)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],y3.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],y3.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],y3.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],y3.prototype,"isAdPlaying",void 0);
_.R([_.H({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],y3.prototype,"isPageLoad",void 0);_.R([_.N({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],y3);
_.J(y3,"ytd-clip-section-footer-renderer",function(){if(wzd!==void 0)return wzd;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return wzd=G},{mode:1});var E_o;var pza;var SAK=function(){return _.a.apply(this,arguments)||this};
_.M(SAK,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],SAK.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],SAK.prototype,"data",void 0);_.R([_.N({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],SAK);
_.J(SAK,"ytd-clip-ad-state-renderer",function(){if(pza!==void 0)return pza;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return pza=G},{mode:1});var Xza;var rM=function(){var G=_.a.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};
_.M(rM,_.a);_.m=rM.prototype;_.m.detached=function(){this.userChangedValue=!1};
_.m.handleKeyDown=function(G){if(_.XE)var b=13;else _.EaQ&&_.$Y?b=13:b=13;G.keyCode===b&&G.preventDefault()};
_.m.handleInput=function(){var G=_.Eo(this.hostElement).querySelector("#title");if(G){var b=(G.value||"").replace(/\r|\n/g," ");this.set("value",b);G.value=b;this.valid=G.validate();this.userChangedValue=!0}};
_.m.handleBlur=function(){this.valid=_.Eo(this.hostElement).querySelector("#title").validate()};
_.m.onValueChanged=function(){_.O3(this.hostElement,"title-changed",{title:this.value})};
_.m.onValidChanged=function(){_.O3(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.m.setInput=function(G,b){var I=_.Eo(this.hostElement).querySelector("#title");I&&(I.value=G,this.handleInput(),b&&(I.invalid=!1,this.valid=!0))};
_.m.onClipCreationDisable=function(){this.set("disabled",!0)};
_.m.onClipCreationEnable=function(){this.set("disabled",!1)};
_.m.onClipCreationVisibilityChange=function(G){var b=this;G.visible?requestAnimationFrame(function(){var I;((I=_.Eo(b.hostElement).querySelector("#title"))==null?void 0:I.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
rM.prototype.onValidChanged=rM.prototype.onValidChanged;rM.prototype.onValueChanged=rM.prototype.onValueChanged;rM.prototype.handleBlur=rM.prototype.handleBlur;rM.prototype.handleInput=rM.prototype.handleInput;rM.prototype.handleKeyDown=rM.prototype.handleKeyDown;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],rM.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],rM.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],rM.prototype,"value",void 0);_.R([_.H(),_.n("design:type",Object)],rM.prototype,"valid",void 0);_.R([_.H(),_.n("design:type",Object)],rM.prototype,"userChangedValue",void 0);_.R([_.H(),_.n("design:type",Object)],rM.prototype,"disabled",void 0);_.R([_.hI("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],rM.prototype,"handleKeyDown",null);
_.R([_.hI("input"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rM.prototype,"handleInput",null);_.R([_.hI("blur"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rM.prototype,"handleBlur",null);_.R([_.q5("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rM.prototype,"onValueChanged",null);
_.R([_.q5("valid"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rM.prototype,"onValidChanged",null);_.R([_.N({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],rM);
_.J(rM,"ytd-clip-creation-text-input-renderer",function(){if(Xza!==void 0)return Xza;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Xza=G},{mode:1});var $Bz;var Gso;var b17;var I5I;var h2h;var Ft=function(){var G=_.a.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};
_.M(Ft,_.a);_.m=Ft.prototype;_.m.attached=function(){var G=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(b){b=_.e(["screen and (min-resolution: "+b+")","screen and (max-resolution: "+b+")"]);for(var I=b.next();!I.done;I=b.next()){I=I.value;var h=window.matchMedia(I);h&&(G.mediaListeners_[I]=G.updatePixelRatio_.bind(G),h.addEventListener?h.addEventListener("change",G.mediaListeners_[I]):h.addListener?h.addListener(G.mediaListeners_[I]):delete G.mediaListeners_[I])}})};
_.m.detached=function(){this.setPlayer(null);for(var G=_.e(Object.keys(this.mediaListeners_)),b=G.next();!b.done;b=G.next()){var I=b.value;b=this.mediaListeners_[I];(I=window.matchMedia(I))&&(I.removeEventListener?I.removeEventListener("change",b):I.removeListener&&I.removeListener(b))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.m.onVisibilityChangedAction_=function(G){var b=this;G.visible&&!this.player_&&(G=_.Kk())&&G.getPlayerPromise().then(function(I){b.setPlayer(I)})};
_.m.setPlayer=function(G){G&&this.set("player_",G)};
_.m.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.m.setUpCanvas_=function(){var G=this.rulerWidth,b=this.devicePixelRatio_,I=this.visible;this.set("canvasReady_",!1);if(I&&b!==0){I=this.aboveRulerHeight+this.rulerHeight;var h=_.Eo(this.hostElement).querySelector("#ticks");h.width=G*b;h.height=I*b;h.style.width=G+"px";h.style.height=I+"px";h.getContext("2d").scale(b,b);this.set("canvasReady_",!0)}};
_.m.drawRuler_=function(G,b,I,h,q,l,V,D,k,L,x,f){G&&I&&b&&(G=_.Eo(this.hostElement).querySelector("#ticks"),b=G.getContext("2d"),b.clearRect(0,0,G.width,G.height),b.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),b.lineWidth=2,b.beginPath(),b.moveTo(0,this.aboveRulerHeight),b.lineTo(G.width,this.aboveRulerHeight),b.moveTo(0,G.height),b.lineTo(G.width,G.height),b.stroke(),this.drawRulerTicks_(G,l,q,h),this.drawStoryboardImages_(G,I,l,q,h),b.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
b.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(V-l,h,!1),this.rulerHeight),I=this.timeToPixels_(D-l,h,!1),b.fillRect(I,this.aboveRulerHeight,G.width-I,this.rulerHeight),this.drawSpeedLines_(G,l,f))};
_.m.drawRulerTicks_=function(G,b,I,h){var q=G.getContext("2d");q.save();q.lineWidth=1;for(var l=Math.floor(Math.max(0,b-this.tickLabelInterval));l<b+I;l++){q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var V=(l-b)*h;q.beginPath();q.moveTo(V,G.height);var D=this.smallTickHeight;l%this.largeTickInterval===0?D=this.largeTickHeight:l%this.mediumTickInterval===0&&(D=this.mediumTickHeight);q.lineTo(V,G.height-D);q.stroke();l%this.tickLabelInterval===0&&(q.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),q.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),q.fillText(P7(l),V+4,12),q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),q.moveTo(V,0),q.lineTo(V,this.aboveRulerHeight),q.stroke())}q.restore()};
_.m.percentToHex_=function(G){G=Math.round(G*255).toString(16);G.length<2&&(G="0"+G);return G};
_.m.drawSpeedLines_=function(G,b,I){var h=G.getContext("2d");h.save();var q=Math.min(25,Math.abs(I)-15)/25,l=G.width*.3*q,V=G.width*-.3,D=G.width*1.3,k=this.aboveRulerHeight;G=G.height;var L=Math.round(4*q),x=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");x.length<7&&(x="#"+x.substring(1,4).repeat(2));var f=this.percentToHex_(.5+q/2);f=x+f;x+="00";if(q>0)for(q=0;q<L;q++){var T=V+Math.random()*(D-V),B=k+Math.random()*(G-k),A=l+b%l,t=h.createLinearGradient(T,B,T+A,B);
I<0?(t.addColorStop(0,f),t.addColorStop(.4,f),t.addColorStop(.9,x)):(t.addColorStop(.1,x),t.addColorStop(.6,f),t.addColorStop(1,f));h.strokeStyle=t;h.lineWidth=1;h.beginPath();h.moveTo(T,B);h.lineTo(T+A,B);h.stroke()}h.restore()};
_.m.getStoryboardForTime_=function(G,b,I){I===void 0&&(I=b.getNumberOfStoryboardLevels()-1);G=b.getStoryboardFrameIndex(G,I);return b.getStoryboardFrame(G,I)};
_.m.drawStoryboardImages_=function(G,b,I,h,q){if(!this.disabled){G=G.getContext("2d");var l=this.getStoryboardForTime_(0,b);if(l){var V=l.width/l.columns;l=l.height/l.rows;var D=V/l,k=this.rulerHeight*D;k=this.tickLabelInterval*(D<this.tickLabelInterval*q/this.rulerHeight?1/Math.floor(this.tickLabelInterval*q/k):Math.round(k/(this.tickLabelInterval*q)));var L=k*q,x=this.rulerHeight,f=L/this.rulerHeight,T=Math.floor(Math.max(0,I-k));for(T-=T%k;T<I+h;T+=k){var B=this.getStoryboardForTime_(T,b),A=this.getPreloadedStoryboard_(B.url);
if(A){var t=(T-I)*q,y=this.aboveRulerHeight,F=B.column*V,W=B.row*l;if(D<f){var O=x/(L/D);B=V;O*=l;W+=(l-O)/2}else B=L/(x*D)*V,O=l,F+=(V-B)/2;G.drawImage(A,F,W,B,O,t,y,L,x)}else this.fetchStoryboardImage_(B)}}}};
_.m.getPreloadedStoryboard_=function(G){return this.storyboardImages_.find(function(b){if(b.src==G)return!0;var I=b.src.indexOf(G);return I!=-1&&I==b.src.length-G.length})};
_.m.fetchStoryboardImage_=function(G){var b=this,I=this.getPreloadedStoryboard_(G.url),h=this.pendingStoryboardImages_[G.url];I||h!==void 0||(I=new Promise(function(q){var l=new Image(G.width,G.height);l.src=G.url;l.onload=function(){q(l)};
l.onerror=function(){q(null)}}),this.pendingStoryboardImages_[G.url]=I,I.then(function(q){q&&b.push("storyboardImages_",q);
return q}).finally(function(){delete b.pendingStoryboardImages_[G.url]}))};
_.m.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.m.timeToPixels_=function(G,b,I){G*=b;return I===void 0||I?G+"px":G};
_.m.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Ft.prototype.drawRuler_=Ft.prototype.drawRuler_;Ft.prototype.setUpCanvas_=Ft.prototype.setUpCanvas_;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Ft.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],Ft.prototype,"start",void 0);_.R([_.H({value:30}),_.n("design:type",Number)],Ft.prototype,"end",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],Ft.prototype,"visible",void 0);_.R([_.H(),_.n("design:type",Object)],Ft.prototype,"player_",void 0);_.R([_.H(),_.n("design:type",Number)],Ft.prototype,"tickSpacing",void 0);_.R([_.H(),_.n("design:type",Number)],Ft.prototype,"windowSizeSec",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],Ft.prototype,"rulerWidth",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],Ft.prototype,"rulerShift",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],Ft.prototype,"canvasReady_",void 0);_.R([_.H({value:function(){return[]}}),
_.n("design:type",Array)],Ft.prototype,"storyboardImages_",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Ft.prototype,"disabled",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],Ft.prototype,"forceRender_",void 0);_.R([_.H({value:1}),_.n("design:type",Number)],Ft.prototype,"devicePixelRatio_",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],Ft.prototype,"windowSpeed",void 0);
_.R([_.q5("visible","devicePixelRatio_","rulerWidth"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ft.prototype,"setUpCanvas_",null);
_.R([_.q5("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.n("design:type",Function),_.n("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.n("design:returntype")],Ft.prototype,"drawRuler_",null);_.R([_.g8({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Ft);
_.J(Ft,"yt-clip-creation-scrubber-canvas",function(){if(h2h===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);h2h=G}G=h2h;return G},
{mode:2});var qYh;var jBz;var HY=function(){var G=_.a.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};
_.M(HY,_.a);_.m=HY.prototype;
_.m.created=function(){var G=this;this.JSC$23057_playerEvents=new Map;this.JSC$23057_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23057_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23057_playerEvents.set("onStateChange",this.onStateChange_);var b={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(b).forEach(function(I){G.boundHandlers_[I]=b[I].bind(G)})};
_.m.attached=function(){this.activeLoopRange_=!1;_.Eo(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Eo(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Xs(156731)};
_.m.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Eo(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Eo(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.m.onVisibilityChangedAction_=function(G){var b=this;G.visible&&!this.player_&&(G=_.Kk())&&G.getPlayerPromise().then(function(I){b.setPlayer(I)})};
_.m.setPlayer=function(G){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23057_playerEvents);G&&(this.set("player_",G),this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$23057_playerEvents))};
_.m.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.m.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.m.beginHandleDrag_=function(G){this.disabled||(G.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=G.clientX,G.target===_.Eo(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():G.target===_.Eo(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.m.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.m.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.m.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.m.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_())};
_.m.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.m.beginWindowScroll_=function(){var G=this;this.scrollInterval_=setInterval(function(){var b=G.windowSlideSpeed;if(b=_.MSK(G.start,G.boundedRulerStartLimit_())?b-.1:_.MSK(G.end,G.boundedRulerEndLimit_())?b+.1:0){var I=G.capRulerOffset_(G.rulerShift_+b);I==G.rulerShift_?b=0:(G.set("rulerShift_",I),_.O3(G.hostElement,"set-fixed-length-range",{start:G.start+b,duration:G.end-G.start}))}G.set("windowSlideSpeed",b)},33)};
_.m.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.m.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))};
_.m.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.m.updateRulerSize_=function(){this.set("rulerWidth_",_.Eo(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.m.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))};
_.m.handleRulerDrag_=function(G){G=this.pixelsToTime_(G.clientX-this.rulerDragMouseStart_);G=this.capRulerOffset_(this.rulerDragRulerStart_-G);this.set("rulerShift_",G);var b=this.rulerDragStartTime_-(this.rulerDragRulerStart_-G);_.O3(this.hostElement,"set-fixed-length-range",{start:b,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-G)-b})};
_.m.handleWindowDrag_=function(G){var b=G.clientX-this.dragMouseLastX_;this.dragMouseLastX_=G.clientX;G=this.pixelsToTime_(b);_.O3(this.hostElement,"set-fixed-length-range",{start:this.start+G,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.m.capRulerOffset_=function(G){var b=this.seekableStart-this.pixelsToTime_(16),I=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(b,G),I)};
_.m.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.m.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.m.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.m.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.m.handleWindowHandleDrag_=function(G){var b=G.clientX-this.dragMouseLastX_;this.dragMouseLastX_=G.clientX;G=this.pixelsToTime_(b);if(this.draggingLeft_){var I=this.start+G;var h=this.end}else this.draggingRight_&&(I=this.start,h=this.end+G);_.O3(this.hostElement,"set-range",{start:I,end:h,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.m.onVideoProgress_=function(G){this.disabled||(G=this.timeToPixels_(G-this.rulerShift_,this.tickSpacing_),_.Eo(this.hostElement).querySelector("#playhead").style.transform="translateX("+G+")")};
_.m.onClipCreationDisable_=function(){this.endDrag_()};
_.m.timeToPixels_=function(G,b,I){G*=b;return I===void 0||I?G+"px":G};
_.m.pixelsToTime_=function(G){return G/this.tickSpacing_};
_.m.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.m.centerRuler_=function(G,b,I){this.set("rulerShift_",this.capRulerOffset_(G+(b-G)/2-I/2))};
_.m.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.m.updateLoopRange_=function(G,b,I,h,q,l,V){G&&(b&&h&&!I?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(G.pauseVideo(),G.seekTo(q,!1,void 0,void 0,50)):this.draggingRight_?(G.pauseVideo(),G.seekTo(l-.1,!1,void 0,void 0,50)):(V!==void 0?G.seekTo(V,!0,void 0,void 0,50):(b=G.getCurrentTime(),b<q||b>l?G.seekTo(q,!0,void 0,void 0,50):G.seekTo(b,!0,void 0,void 0,50)),G.playVideo()),G.setLoopRange({startTimeMs:q*1E3,endTimeMs:l*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(G.getCurrentTime())):
this.activeLoopRange_&&(G.setLoopRange(null),this.activeLoopRange_=!1))};
_.m.updateHandles_=function(){_.Eo(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Eo(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.m.updateRuler_=function(){var G=this.end,b=this.start,I=this.draggableStartLimit_(),h=this.draggableEndLimit_();(b<I-.001||G>h+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.m.computeDurationLabel_=function(G,b){return G?G.replace("$clip_length",parseFloat(b).toFixed(1)):""};
_.m.computeDuration_=function(G,b){return this.isValidTime_(G)&&this.isValidTime_(b)&&G<b?b-G:0};
_.m.isValidTime_=function(G){return isNaN(parseFloat(G))||G<0?!1:this.player_?G>=this.seekableStart&&G<=this.seekableEnd:!0};
_.m.computeWindowSizeSec_=function(G,b,I){return Math.min((G||12E4)/1E3,I-b)};
_.m.computeTickSpacing_=function(G,b){return b?b/G:1};
_.m.onDragStateChanged_=function(){_.O3(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.m.centerRangeOnTime_=function(G){var b=this.duration;G=LT7(G-b/2,b,this.seekableStart,this.seekableEnd);_.O3(this.hostElement,"set-fixed-length-range",{start:G.start,duration:G.end-G.start})};
_.m.nearlyLessThan_=function(G,b,I){return G+(I===void 0?1E-6:I)<b};
_.m.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)}};
_.m.onStateChange_=function(G){this.visible&&!this.disabled&&G==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.m.computeDragState_=function(G,b,I,h){return G?"left":b?"right":I?"ruler":h?"window":"none"};
_.m.logClick=function(){var G=_.gL(),b=_.s3();G&&b&&this.scrubberVe_&&(_.U("combine_ve_grafts")?_.iz(_.qo(),this.scrubberVe_,b):_.dK(G,b,this.scrubberVe_),_.WT(G,this.scrubberVe_))};
HY.prototype.onDragStateChanged_=HY.prototype.onDragStateChanged_;HY.prototype.updateRuler_=HY.prototype.updateRuler_;HY.prototype.updateHandles_=HY.prototype.updateHandles_;HY.prototype.onUpdateLoopRange=HY.prototype.onUpdateLoopRange;HY.prototype.onInitializedChanged_=HY.prototype.onInitializedChanged_;HY.prototype.onVisibleChanged_=HY.prototype.onVisibleChanged_;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],HY.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",Object)],HY.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"start",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"end",void 0);_.R([_.H({computed:"computeDuration_(start, end)"}),_.n("design:type",Number)],HY.prototype,"duration",void 0);
_.R([_.H(),_.n("design:type",String)],HY.prototype,"lengthTemplate",void 0);_.R([_.H({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.n("design:type",String)],HY.prototype,"durationLabel",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"visible",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"player_",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"draggingLeft_",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"draggingRight_",void 0);
_.R([_.H(),_.n("design:type",Object)],HY.prototype,"draggingRuler_",void 0);_.R([_.H({value:!1}),_.n("design:type",Object)],HY.prototype,"draggingWindow_",void 0);_.R([_.H({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.n("design:type",Number)],HY.prototype,"tickSpacing_",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"seekableStart",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"seekableEnd",void 0);
_.R([_.H(),_.n("design:type",Number)],HY.prototype,"windowSizeMs",void 0);_.R([_.H({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.n("design:type",Number)],HY.prototype,"windowSizeSec_",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"rulerWidth_",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"rulerShift_",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"windowSlideSpeed",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],HY.prototype,"disabled",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"initialized",void 0);_.R([_.H(),_.n("design:type",Object)],HY.prototype,"durationAccessibilityLabel",void 0);_.R([_.H({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.n("design:type",String)],HY.prototype,"dragState",void 0);
_.R([_.q5("visible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HY.prototype,"onVisibleChanged_",null);_.R([_.q5("initialized"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HY.prototype,"onInitializedChanged_",null);_.R([_.q5("player_","visible","disabled","initialized","start","end"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HY.prototype,"onUpdateLoopRange",null);
_.R([_.q5("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HY.prototype,"updateHandles_",null);_.R([_.q5("start","end"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HY.prototype,"updateRuler_",null);
_.R([_.q5("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HY.prototype,"onDragStateChanged_",null);_.R([_.g8({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],HY);
_.J(HY,"yt-clip-creation-scrubber-view",function(){if(jBz===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;qYh===void 0&&(qYh=document.createElement("template"));var h=qYh;I.call(b,h.content.cloneNode(!0),G.content.firstChild);jBz=G}G=jBz;return G},{mode:2});var WY=function(){var G=_.a.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};
_.M(WY,_.a);_.m=WY.prototype;_.m.attached=function(){var G=this;this.startInput.addEventListener("input",function(b){return G.handleStartInput_(b)});
this.endInput.addEventListener("input",function(b){return G.handleEndInput_(b)});
this.startInput.addEventListener("focusout",function(b){return G.handleStartBlur_(b)});
this.endInput.addEventListener("focusout",function(b){return G.handleEndBlur_(b)})};
_.m.setPlayer=function(G){this.set("player_",G)};
_.m.onSetFixedLengthRange_=function(G){var b=G.detail;G=b.start;var I=b.duration,h=b.startLimit;b=b.endLimit;h||(h=this.seekableStart_);b||(b=this.seekableEnd_);G=LT7(G,I,h,b);this.start=G.start;this.end=G.end};
_.m.onSetRange_=function(G){var b=G.detail;G=b.start;var I=b.end,h=b.startLimit;b=b.endLimit;h||(h=this.seekableStart_);b||(b=this.seekableEnd_);if(G=QJv(G,I,h,b,this.minLengthSec,this.maxLengthSec))this.start=G.start,this.end=G.end};
_.m.updateInputs_=function(){var G=this.end,b=this.start;this.startInput.focused||(this.startInput.value=P7(b,!0));this.endInput.focused||(this.endInput.value=P7(G,!0))};
_.m.handleStartInput_=function(G){G=v8g(G.target.value);if(G===null)this.set("startValid",!1);else{var b=this.end,I=QJv(G,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("endWillUpdate",I.end!==b),this.set("startValid",I.start===G)):this.set("startValid",!1)}};
_.m.handleEndInput_=function(G){G=v8g(G.target.value);if(G===null)this.set("endValid",!1);else{var b=this.start,I=xQv(this.start,G,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("startWillUpdate",I.start!==b),this.set("endValid",I.end===G)):this.set("endValid",!1)}};
_.m.handleStartBlur_=function(G){G=v8g(G.target.value);G===null?this.startInput.value=P7(this.start,!0):this.forceUpdateInputs_(QJv(G,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.m.handleEndBlur_=function(G){G=v8g(G.target.value);G===null?this.endInput.value=P7(this.end,!0):this.forceUpdateInputs_(xQv(this.start,G,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.m.forceUpdateInputs_=function(G){G&&(this.start=G.start,this.end=G.end);this.startInput.value=P7(this.start,!0);this.endInput.value=P7(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.m.initializeClipRange_=function(){var G=this.seekableEnd_,b=this.seekableStart_,I=this.visible_,h=this.player_;if(!h||!I||b===null||!G)this.set("initialized",!1);else if(!this.initialized){var q=h.getCurrentTime(),l=this.getDefaultLengthSec_();I=h.getVideoData();var V=h.getPlayerState()==1,D=I.isLive;l=Math.min(l,G-b);q=Math.max(0,q);G=D?xQv(q-l,q,b,G,this.minLengthSec,this.maxLengthSec):V?LT7(q-l/2,l,b,G):LT7(q,l,b,G);this.start=G.start;this.end=G.end;this.set("initialized",!0);I.isLive&&h.seekTo(G.start);
this.startInput.value=P7(this.start,!0);this.endInput.value=P7(this.end,!0)}};
_.m.onStartChanged_=function(){var G=this;_.O3(this.hostElement,"start-changed",{start:this.start});var b;isNaN((b=this.oldStart)!=null?b:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){G.set("highlightStart",!1);G.startHighlightTimeout=0;G.oldStart=G.start},3E3))};
_.m.onEndChanged_=function(){var G=this;_.O3(this.hostElement,"end-changed",{end:this.end});var b;isNaN((b=this.oldEnd)!=null?b:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){G.set("highlightEnd",!1);G.endHighlightTimeout=0;G.oldEnd=G.end},3E3))};
_.m.onVisibilityChangedAction_=function(G){var b=this;this.set("visible_",G.visible);this.visible_&&!this.player_&&(G=_.Kk())&&G.getPlayerPromise().then(function(I){b.setPlayer(I)})};
_.m.computeMinLengthSec_=function(G){return G/1E3||5};
_.m.computeMaxLengthSec_=function(G){return G/1E3||60};
_.m.computeDefaultLengthSec_=function(G){return G/1E3};
_.m.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.m.computeSeekableStart_=function(G,b){return G&&b?G.getProgressState(1).seekableStart:0};
_.m.computeSeekableEnd_=function(G,b){return G&&b?G.getProgressState(1).seekableEnd:0};
_.m.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.m.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.m.onDragState_=function(G){this.set("highlightStart",G.detail.startChanging);this.set("highlightEnd",G.detail.endChanging)};
WY.prototype.onDragState_=WY.prototype.onDragState_;WY.prototype.onEndChanged_=WY.prototype.onEndChanged_;WY.prototype.onStartChanged_=WY.prototype.onStartChanged_;WY.prototype.initializeClipRange_=WY.prototype.initializeClipRange_;WY.prototype.updateInputs_=WY.prototype.updateInputs_;WY.prototype.onSetRange_=WY.prototype.onSetRange_;WY.prototype.onSetFixedLengthRange_=WY.prototype.onSetFixedLengthRange_;
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],WY.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],WY.prototype,"data",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],WY.prototype,"start",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],WY.prototype,"startValid",void 0);
_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],WY.prototype,"startWillUpdate",void 0);_.R([_.H({value:30}),_.n("design:type",Number)],WY.prototype,"end",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],WY.prototype,"endValid",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],WY.prototype,"endWillUpdate",void 0);_.R([_.H({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.n("design:type",Number)],WY.prototype,"minLengthSec",void 0);
_.R([_.H({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.n("design:type",Number)],WY.prototype,"maxLengthSec",void 0);_.R([_.H({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.n("design:type",Number)],WY.prototype,"defaultLengthSec",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],WY.prototype,"visible_",void 0);_.R([_.H(),_.n("design:type",Object)],WY.prototype,"player_",void 0);
_.R([_.H({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.n("design:type",Number)],WY.prototype,"seekableStart_",void 0);_.R([_.H({computed:"computeSeekableEnd_(player_, visible_)"}),_.n("design:type",Number)],WY.prototype,"seekableEnd_",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],WY.prototype,"initialized",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],WY.prototype,"disabled",void 0);
_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],WY.prototype,"highlightStart",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],WY.prototype,"highlightEnd",void 0);_.R([_.lH("#start"),_.n("design:type",HTMLInputElement)],WY.prototype,"startInput",void 0);_.R([_.lH("#end"),_.n("design:type",HTMLInputElement)],WY.prototype,"endInput",void 0);
_.R([_.hI("set-fixed-length-range"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],WY.prototype,"onSetFixedLengthRange_",null);_.R([_.hI("set-range"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],WY.prototype,"onSetRange_",null);_.R([_.q5("start","end"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],WY.prototype,"updateInputs_",null);
_.R([_.q5("player_","visible_","seekableStart_","seekableEnd_"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],WY.prototype,"initializeClipRange_",null);_.R([_.q5("start"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],WY.prototype,"onStartChanged_",null);_.R([_.q5("end"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],WY.prototype,"onEndChanged_",null);
_.R([_.hI("clips-drag-state"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],WY.prototype,"onDragState_",null);_.R([_.g8({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],WY);
_.J(WY,"yt-clip-creation-scrubber-renderer",function(){if(I5I===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;b17===void 0&&(b17=document.createElement("template"));var h=b17;I.call(b,h.content.cloneNode(!0),G.content.firstChild);I5I=G}G=I5I;return G},{mode:2});var aU=function(){var G=_.a.apply(this,arguments)||this;G.player_=null;G.JSC$23071_playerEvents=new Map;G.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return G};
_.M(aU,_.a);_.m=aU.prototype;_.m.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"}}}};
_.m.created=function(){this.JSC$23071_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23071_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23071_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23071_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.m.detached=function(){this.setPlayer(null)};
_.m.onVisibilityChangedAction_=function(G){var b=this,I;if((I=this.data)==null?0:I.externalVideoId){var h;this.videoId=(h=this.data)==null?void 0:h.externalVideoId}this.getPlayer().then(function(q){if(G.visible)b.returnTime=q.getCurrentTime(),b.isAtLiveHead=q.getProgressState().isAtLiveHead;else{var l=b.returnTime;b.isAtLiveHead&&(l=Number.POSITIVE_INFINITY);q.seekTo(l,void 0,void 0,void 0,51)}})};
_.m.getPlayer=function(){var G=this;if(!this.player_){var b=_.Kk();if(b)return b.getPlayerPromise().then(function(I){G.setPlayer(I);return I})}return Promise.resolve(this.player_)};
_.m.setPlayer=function(G){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23071_playerEvents);if(G){this.player_=G;var b;((b=this.data)==null?0:b.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),_.wL(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$23071_playerEvents)}};
_.m.ready=function(){_.Eo(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.m.onTitleChanged_=function(G){this.set("titleValue",G.detail.title)};
_.m.onStartChanged_=function(G){this.set("start",G.detail.start)};
_.m.onEndChanged_=function(G){this.set("end",G.detail.end)};
_.m.onTitleValidChanged_=function(G){this.set("titleValid",G.detail.valid)};
_.m.onStartValidChanged_=function(G){this.set("startValid",G.detail.valid)};
_.m.onEndValidChanged_=function(G){this.set("endValid",G.detail.valid)};
_.m.onVideoDataChange_=function(){var G;if((G=this.data)==null||!G.externalVideoId){var b;this.set("videoId",((b=this.player_)==null?void 0:b.getVideoData().video_id)||"")}};
_.m.computeFormValid_=function(G,b,I,h){return!!(G&&b&&I&&h)};
_.m.computeCancelButton_=function(G,b,I){return G&&_.g(G,_.bz)?{buttonRenderer:Object.assign({},_.g(G,_.bz),{isDisabled:b||I})}:null};
_.m.computeSubmitButton_=function(G,b,I){return G&&_.g(G,_.bz)?{buttonRenderer:Object.assign({},_.g(G,_.bz),{command:void 0,isDisabled:!this.formValid||b||I})}:null};
_.m.computeSubmitCommand_=function(G){return G||null};
_.m.onSubmit_=function(G){var b=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),_.pv(this.hostElement,[this.submitCommand_,G]).then(function(){b.set("isLoading_",!1)},function(){b.set("isLoading_",!1)}))};
_.m.playerAdStartHandler_=function(){_.wL(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.m.playerAdEndHandler_=function(){_.wL(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.m.onVideoProgress_=function(){var G=this;this.getPlayer().then(function(b){var I,h=(b==null?void 0:(I=b.getPresentingPlayerType)==null?void 0:I.call(b))===2;G.isAdPlaying!==h&&(h?G.playerAdStartHandler_():G.playerAdEndHandler_())})};
aU.prototype.onEndValidChanged_=aU.prototype.onEndValidChanged_;aU.prototype.onStartValidChanged_=aU.prototype.onStartValidChanged_;aU.prototype.onTitleValidChanged_=aU.prototype.onTitleValidChanged_;aU.prototype.onEndChanged_=aU.prototype.onEndChanged_;aU.prototype.onStartChanged_=aU.prototype.onStartChanged_;aU.prototype.onTitleChanged_=aU.prototype.onTitleChanged_;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],aU.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",Object)],aU.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],aU.prototype,"data",void 0);_.R([_.H({value:""}),_.n("design:type",String)],aU.prototype,"titleValue",void 0);
_.R([_.H({value:!1}),_.n("design:type",Boolean)],aU.prototype,"titleValid",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],aU.prototype,"start",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],aU.prototype,"startValid",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],aU.prototype,"end",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],aU.prototype,"endValid",void 0);_.R([_.H({value:""}),_.n("design:type",String)],aU.prototype,"videoId",void 0);
_.R([_.H({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.n("design:type",Boolean)],aU.prototype,"formValid",void 0);_.R([_.H({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.n("design:type",Object)],aU.prototype,"submitButton_",void 0);_.R([_.H({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.n("design:type",Object)],aU.prototype,"submitCommand_",void 0);
_.R([_.H({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.n("design:type",Object)],aU.prototype,"cancelButton_",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],aU.prototype,"isLoading_",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],aU.prototype,"isAdPlaying",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],aU.prototype,"returnTime",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],aU.prototype,"isAtLiveHead",void 0);
_.R([_.hI("title-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],aU.prototype,"onTitleChanged_",null);_.R([_.hI("start-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],aU.prototype,"onStartChanged_",null);_.R([_.hI("end-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],aU.prototype,"onEndChanged_",null);
_.R([_.hI("title-valid-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],aU.prototype,"onTitleValidChanged_",null);_.R([_.hI("start-valid-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],aU.prototype,"onStartValidChanged_",null);_.R([_.hI("end-valid-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],aU.prototype,"onEndValidChanged_",null);
_.R([_.g8({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],aU);
_.J(aU,"yt-clip-creation-renderer",function(){if(Gso===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;$Bz===void 0&&($Bz=document.createElement("template"));var h=$Bz;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Gso=G}G=Gso;return G},{mode:2});var N6=function(){return _.a.apply(this,arguments)||this};
_.M(N6,_.a);N6.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"}}}};
N6.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(G){return G.hasOwnProperty("clipCreationRenderer")})&&_.wL(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
N6.prototype.onPanelContentVisibleChanged=N6.prototype.onPanelContentVisibleChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],N6.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.X6.YtVisibilityBehavior),_.n("design:type",Object)],N6.prototype,"ytVisibilityBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],N6.prototype,"ytdReduxBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],N6.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],N6.prototype,"panelContentVisible",void 0);_.R([_.q5("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N6.prototype,"onPanelContentVisibleChanged",null);_.R([_.N({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],N6);
_.J(N6,"ytd-clip-section-renderer",function(){if(E_o!==void 0)return E_o;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return E_o=G},{mode:1});var l5o;var Yv=function(){return _.a.apply(this,arguments)||this};
_.M(Yv,_.a);_.m=Yv.prototype;
_.m.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=_.Ak(this.highlightedIndex,-1,this.snippetElements.length);G=this.snippetElements.length;var b=this.highlightedIndex%G;this.highlightedIndex=b*G<0?b+G:b;G=this.snippetElements[this.highlightedIndex];this.highlightSnippet(G);this.ensureVisible(G)}};
_.m.onKeyUp=function(G){var b=this;qBz(G)&&(G.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.uu.cancelJob(this.inputTimerId),this.inputTimerId=_.uu.addLowPriorityJob(function(){b.typedValue&&(b.fetchSnippets(b.typedValue),b.logInputGesture(b.data))},1E3))};
_.m.onClick=function(G){(G=_.NVe(G.target,null,"snippet-item"))&&this.selectSnippet(G)};
_.m.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.m.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.m.ready=function(){var G=this;this.inputElement.addEventListener("focus",function(){G.snippetsWrapper.style.removeProperty("display")})};
_.m.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.m.getSourceTimelines=function(){if(!this.data)return[];var G=[];if(this.data.searchInVideoSources)for(var b=_.e(this.data.searchInVideoSources),I=b.next();!I.done;I=b.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};
_.m.fetchSnippets=function(G){var b=_.wL(this.hostElement,"yt-get-current-video-id-action")[0],I=this.getSourceTimelines();G={getSearchInVideoCommand:{externalVideoId:b,query:G!=null?G:"",sourceTimelines:I},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}})};
_.m.filterSnippets=function(G,b){var I=this;if(b){this.filteredSnippets=(0,_.Cy.unsafeClone)(G);var h=RegExp(_.t0p(b),"i");this.filteredSnippets=this.filteredSnippets.filter(function(V){return h.test(I.ytRendererBehavior.getSimpleString(V.snippet))});
G=_.e(this.filteredSnippets);for(var q=G.next();!q.done;q=G.next()){q=q.value;var l=this.ytRendererBehavior.getSimpleString(q.snippet);q.snippet={runs:[{text:l.substring(0,l.toLowerCase().indexOf(b))},{text:l.substring(l.toLowerCase().indexOf(b),l.toLowerCase().indexOf(b)+b.length),bold:!0},{text:l.substring(l.toLowerCase().indexOf(b)+b.length,l.length)}]}}}else this.filteredSnippets=G};
_.m.onUpdateSearchInVideoResults=function(G){if(!(this.snippets.length>0)){var b,I,h;if((h=(b=_.g(G,fpz))==null?void 0:(I=b.results)==null?void 0:I.length)!=null&&h){var q;this.filteredSnippets=this.snippets=((q=_.g(G,fpz))==null?void 0:q.results).map(function(l){var V,D,k;return{startMs:l==null?void 0:(V=l.searchInVideoResultRenderer)==null?void 0:V.startMs,startTimeText:l==null?void 0:(D=l.searchInVideoResultRenderer)==null?void 0:D.startTimeText,snippet:l==null?void 0:(k=l.searchInVideoResultRenderer)==
null?void 0:k.snippet}})}}};
_.m.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};
_.m.highlightSnippet=function(G){G.classList.add("highlighted")};
_.m.removeSnippetHighlight=function(G){G.classList.remove("highlighted")};
_.m.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)};
_.m.ensureVisible=function(G){var b=this.snippetsWrapper.scrollTop,I=b+this.snippetsWrapper.clientHeight,h=G.offsetTop-this.snippetsWrapper.offsetTop;G=h+G.clientHeight;h<b?this.snippetsWrapper.scrollTop-=b-h:G>I&&(this.snippetsWrapper.scrollTop+=G-I)};
_.m.seekPlayer=function(G){var b,I;return _.c(function(h){if(h.nextAddress==1){if(!G)return h.jumpTo(0);b=Number(G.dataset.startOffset);return h.yield(_.uk().getPlayerPromise(),3)}I=h.yieldResult;I.seekTo(b/1E3,!0);I.wakeUpControls();_.ip(h)})};
_.m.logInputGesture=function(G){var b=_.gL();b&&(G==null?0:G.trackingParams)&&_.aW(b,_.VB(G.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.m.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("typed-value-changed",this.typedValue))};
_.m.updateTypedValueFromBinding=function(G){this.typedValue=G.currentTarget.value};
Yv.prototype.typedValueChangedForBinding=Yv.prototype.typedValueChangedForBinding;Yv.prototype.dataChanged=Yv.prototype.dataChanged;Yv.prototype.panelContentVisibleChanged=Yv.prototype.panelContentVisibleChanged;Yv.prototype.onClick=Yv.prototype.onClick;Yv.prototype.onKeyUp=Yv.prototype.onKeyUp;Yv.prototype.onKeyDown=Yv.prototype.onKeyDown;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Yv.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Yv.prototype,"data",void 0);_.R([_.H({value:[]}),_.n("design:type",Array)],Yv.prototype,"snippets",void 0);_.R([_.H({value:[]}),_.n("design:type",Array)],Yv.prototype,"filteredSnippets",void 0);_.R([_.H({value:[]}),_.n("design:type",Array)],Yv.prototype,"snippetElements",void 0);
_.R([_.lH("#siv-input"),_.n("design:type",HTMLElement)],Yv.prototype,"inputElement",void 0);_.R([_.lH("#siv-snippets-wrapper"),_.n("design:type",HTMLElement)],Yv.prototype,"snippetsWrapper",void 0);_.R([_.H(),_.n("design:type",String)],Yv.prototype,"typedValue",void 0);_.R([_.H({value:-1}),_.n("design:type",Number)],Yv.prototype,"highlightedIndex",void 0);_.R([_.hI("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[_.sn]),_.n("design:returntype")],Yv.prototype,"onKeyDown",null);
_.R([_.hI("keyup"),_.n("design:type",Function),_.n("design:paramtypes",[_.sn]),_.n("design:returntype")],Yv.prototype,"onKeyUp",null);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Yv.prototype,"onClick",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Yv.prototype,"panelContentVisible",void 0);
_.R([_.q5("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Yv.prototype,"panelContentVisibleChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Yv.prototype,"dataChanged",null);_.R([_.q5("typedValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Yv.prototype,"typedValueChangedForBinding",null);
_.R([_.N({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Yv);
_.J(Yv,"ytd-search-in-video-renderer",function(){if(l5o!==void 0)return l5o;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return l5o=G},{mode:1});var mB7;var Cd=function(){return _.a.apply(this,arguments)||this};
_.M(Cd,_.a);Cd.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Cd.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]]"}}}}}};
Cd.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var G,b,I,h,q=(b=_.g((G=this.data)==null?void 0:G.onClickCommand,_.i6J))==null?void 0:(I=b.item)==null?void 0:(h=I.notificationTextRenderer)==null?void 0:h.successResponseText;q&&_.Lyd(this.hostElement,q)}};
_.kV.Object.defineProperties(Cd.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,b,I,h;return this.isProductPlaceholder&&((G=this.data)==null?void 0:(b=G.hiddenProductOptions)==null?void 0:b.showDropCountdown)&&!!((I=this.data)==null?0:(h=I.hiddenProductOptions)==null?0:h.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,b;return!((G=this.data)==null?0:G.priceReplacementText)&&!((b=this.data)==null||!b.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Cd.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Cd.prototype,"componentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Cd.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Cd.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("isProductPlaceholder"),_.n("design:type",Object),_.n("design:paramtypes",[])],Cd.prototype,"useCenterLayoutContainer",null);_.R([_.H({computed:"computeButtonOverride(data)"}),_.n("design:type",Object)],Cd.prototype,"buttonOverride",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Cd.prototype,"isProductPlaceholder",null);
_.R([_.P("isProductPlaceholder"),_.n("design:type",Object),_.n("design:paramtypes",[])],Cd.prototype,"showDropCountdown",null);_.R([_.P("isProductPlaceholder","data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Cd.prototype,"showBrandName",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Cd.prototype,"showPriceReplacementText",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Cd.prototype,"showPrice",null);
_.R([_.P("isProductPlaceholder"),_.n("design:type",Object),_.n("design:paramtypes",[])],Cd.prototype,"showMetadata",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Cd);
_.J(Cd,"ytd-product-list-item-renderer",function(){if(mB7!==void 0)return mB7;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mB7=G},{mode:1});var e2l;var JY=function(){return _.a.apply(this,arguments)||this};
_.M(JY,_.a);JY.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
JY.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
JY.prototype.panelContentVisibleChanged=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return G.playerApi?I.jumpTo(2):I.yield(_.uk().getPlayerPromise(),3);I.nextAddress!=2&&(G.playerApi=I.yieldResult);(b=G.playerApi)==null||b.productsInVideoVisibilityUpdated(!!G.panelContentVisible);_.ip(I)})};
JY.prototype.panelContentVisibleChanged=JY.prototype.panelContentVisibleChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],JY.prototype,"panelContentVisible",void 0);_.R([_.H(),_.n("design:type",Object)],JY.prototype,"data",void 0);
_.R([_.q5("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],JY.prototype,"panelContentVisibleChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],JY);
_.J(JY,"ytd-product-list-renderer",function(){if(e2l!==void 0)return e2l;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return e2l=G},{mode:1});var VGa;var Kd=function(){var G=_.a.apply(this,arguments)||this;G.hideTimestamps=!!_.Q4("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};
_.M(Kd,_.a);_.m=Kd.prototype;_.m.hideTimestampsChanged=function(){_.LX("hide-transcript-timestamps",this.hideTimestamps)};
_.m.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.m.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.m.dataChanged=function(){var G;if((G=this.data)!=null&&G.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;G=_.e(this.data.cueGroups);for(var b=G.next();!b.done;b=G.next()){b=_.e(_.g(b.value,Tyv).cues);for(var I=b.next();!I.done;I=b.next())this.flatCues.push(Number(_.g(I.value,Byz).startOffsetMs))}}};
_.m.onYtPlayerTimeChanged=function(G){if(!(G<0)){for(var b=this.currentCueIndex,I=b;;){var h=I>=0?this.flatCues[I]/1E3:-1;if(G+.5<h)--I;else if(h=I+1<this.flatCues.length?this.flatCues[I+1]/1E3:Infinity,G+.5>h)I+=1;else break}I!==b&&(b>=0&&((G=this.getCueElement(b))&&G.classList.remove("active"),(b=this.getCueGroupElement(b))&&b.classList.remove("active")),(b=this.getCueElement(I))&&b.classList.add("active"),(b=this.getCueGroupElement(I))&&b.classList.add("active"),this.currentCueIndex=I,this.isHovered||
this.scrollElementToTop(I))}};
_.m.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)};
_.m.getCueElement=function(G){return _.Eo(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[G]+'"]')};
_.m.getCueGroupElement=function(G){return(G=this.getCueElement(G))&&G.parentElement?G.parentElement.parentElement:null};
_.m.onTap=function(G){var b=_.a_(G);G.target.classList.contains("cue")&&this.seekCueElement(b)};
_.m.onKeyPress=function(G){G.keyCode==13&&(G=_.NVe(G.target,null,"cue"))&&this.seekCueElement(G)};
_.m.seekCueElement=function(G){G=Number(G.getAttribute("start-offset"));_.wL(this.hostElement,"yt-transcript-player-seek",[G/1E3])};
_.m.onMouseEnter=function(){this.isHovered=!0};
_.m.onMouseLeave=function(){this.isHovered=!1};
Kd.prototype.onMouseLeave=Kd.prototype.onMouseLeave;Kd.prototype.onMouseEnter=Kd.prototype.onMouseEnter;Kd.prototype.onKeyPress=Kd.prototype.onKeyPress;Kd.prototype.onTap=Kd.prototype.onTap;Kd.prototype.dataChanged=Kd.prototype.dataChanged;Kd.prototype.hideTimestampsChanged=Kd.prototype.hideTimestampsChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Kd.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Kd.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Kd.prototype,"hideTimestamps",void 0);_.R([_.H(),_.n("design:type",Boolean)],Kd.prototype,"isHovered",void 0);_.R([_.q5("hideTimestamps"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Kd.prototype,"hideTimestampsChanged",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Kd.prototype,"dataChanged",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Kd.prototype,"onTap",null);_.R([_.hI("keypress"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Kd.prototype,"onKeyPress",null);
_.R([_.hI("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Kd.prototype,"onMouseEnter",null);_.R([_.hI("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Kd.prototype,"onMouseLeave",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Kd);
_.J(Kd,"ytd-transcript-body-renderer",function(){if(VGa!==void 0)return VGa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VGa=G},{mode:1});var DBE;var ua=function(){var G=_.a.apply(this,arguments)||this;G.darkerPanels=_.U("web_watch_darker_panels");return G};
_.M(ua,_.a);ua.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ua.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ua.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ua.prototype,"darkerPanels",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],ua);
_.J(ua,"ytd-transcript-footer-renderer",function(){if(DBE!==void 0)return DBE;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return DBE=G},{mode:1});var cMK;var ksE;var RU=function(){var G=_.a.apply(this,arguments)||this;G.systemIcons=_.U("kevlar_system_icons");G.showClearButton=!1;return G};
_.M(RU,_.a);_.m=RU.prototype;_.m.handleInput=function(G){var b=this;G.target.value.length?_.P5(this,"ytdTranscriptSearchBoxSearch",function(){b.emitSearchEvent(G)},500):(_.Mj2(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=G.target.value.length>0};
_.m.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.m.handleClick=function(){var G,b=(G=this.data)==null?void 0:G.trackingParams;b&&_.yw(_.qo(),b)};
_.m.handleClear=function(){_.Mj2(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var G,b,I=(b=_.g((G=this.data)==null?void 0:G.clearButton,_.bz))==null?void 0:b.trackingParams;I&&_.yw(_.qo(),I);this.clear()};
_.m.emitSearchEvent=function(G){_.O3(this.hostElement,"yt-transcript-search-box-search",{query:G.target.value});var b,I;(G=(I=_.g((b=this.data)==null?void 0:b.searchButton,_.bz))==null?void 0:I.trackingParams)&&_.yw(_.qo(),G)};
_.m.emitClearEvent=function(){_.O3(this.hostElement,"yt-transcript-search-box-clear")};
_.kV.Object.defineProperties(RU.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Eo(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],RU.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],RU.prototype,"systemIcons",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],RU);
_.J(RU,"ytd-transcript-search-box-renderer",function(){if(ksE!==void 0)return ksE;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ksE=G},{mode:1});var v2I;var LGK;var nd=function(){return _.a.apply(this,arguments)||this};
_.M(nd,_.a);nd.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var G,b;this.sectionHeaderAriaLabel=(G=this.data)==null?void 0:(b=G.accessibility)==null?void 0:b.accessibilityData.label}};
nd.prototype.fireSelectedEvent=function(G){_.O3(this.hostElement,"ytd-transcript-section-header",{startMs:G})};
nd.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
nd.prototype.handleKeyPress=function(G){this.data&&G.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.kV.Object.defineProperties(nd.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var G,b;return(b=(G=this.data)==null?void 0:G.enableTappableTranscriptHeader)!=null?b:!1}}});
nd.prototype.dataChanged=nd.prototype.dataChanged;_.R([_.H(),_.n("design:type",Object)],nd.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],nd.prototype,"sectionHeaderAriaLabel",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],nd.prototype,"enableTappableTranscriptHeader",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nd.prototype,"dataChanged",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],nd);
_.J(nd,"ytd-transcript-section-header-renderer",function(){if(LGK!==void 0)return LGK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return LGK=G},{mode:1});var QBd;var xBa;var OJ=function(){var G=_.a.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:_.qP("suggest_correction",void 0,"Edit caption"),suggested_caption:_.qP("suggested_caption",void 0,"Suggested caption"),submit_correction:_.qP("submit_correction",void 0,"Submit for review"),cancel_correction:_.qP("cancel_correction",
void 0,"Cancel"),replay_segment:_.qP("replay_segment",void 0,"Re-play segment"),delete_correction:_.qP("delete_correction",void 0,"Delete correction")};G.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return G};
_.M(OJ,_.a);_.m=OJ.prototype;_.m.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)};
_.m.handleDelete=function(G){if(this.deleteCaptionCorrectionPopupCommand){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);b&&this.ytdOpenPopupBehavior.openPopup(b);G.stopPropagation()}};
_.m.handleSubmit=function(G){if(this.data&&this.data.submitCaptionCorrectionCommand&&(G.stopPropagation(),this.textChanged)){var b;G=(b=_.g(this.data.submitCaptionCorrectionCommand,_.WrJ))==null?void 0:b.params;b=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:G,correctionText:String(this.ironTextAreaElement.value),originalText:_.NO(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(b);this.isEditMode=!1}};
_.m.handleUpdateSegmentText=function(G){(G=_.g(G,H3I))&&G.targetId&&this.data&&G.targetId===this.data.targetId&&(G.userCorrection&&(this.editedText=G.userCorrection),G.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.NO(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))};
_.m.handleCancel=function(G){this.isEditMode=!1;G.stopPropagation();this.logClientVe(159409)};
_.m.handleEditSegmentCommand=function(G){(G=_.g(G,F7E))&&G.targetId&&this.data&&G.targetId===this.data.targetId&&this.handleEdit()};
_.m.handleEditButtonClick=function(G){this.data&&(this.handleEdit(),G.stopPropagation())};
_.m.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)}};
_.m.handleMouseEnter=function(){this.mouseOver=!0};
_.m.handleMouseLeave=function(){this.mouseOver=!1};
_.m.handleReplay=function(G){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),G.stopPropagation(),this.logClientVe(159408))};
_.m.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()))};
_.m.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))};
_.m.handleTextboxClick=function(G){G.stopPropagation()};
_.m.handleTextboxKeydown=function(G){this.isControlEnterPress(G)?this.handleSubmit(G):G.key==="Escape"&&this.handleCancel(G)};
_.m.handleTextboxKeyup=function(){this.textChanged=_.NO(this.latestText)!==String(this.ironTextAreaElement.value)};
_.m.fireSelectedEvent=function(G){_.O3(this.hostElement,"yt-transcript-segment-selected",{startMs:G})};
_.m.fireReplayEvent=function(G,b){_.O3(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(G-100,0),endMs:b})};
_.m.fireEditEvent=function(G,b){_.O3(this.hostElement,"yt-transcript-segment-edit",{startMs:G,endMs:b})};
_.m.isEnterPress=function(G){return G.key==="Enter"||G.code==="Enter"||G.code==="NumpadEnter"||G.keyCode===13?!0:!1};
_.m.isControlEnterPress=function(G){var b=G.key==="Enter"||G.code==="Enter"||G.code==="NumpadEnter"||G.keyCode===13;return(G.ctrlKey||G.metaKey)&&b};
_.m.isCopyPress=function(G){var b=G.ctrlKey;return G.key==="c"&&b};
_.m.logClick=function(){var G,b=(G=this.data)==null?void 0:G.trackingParams;b&&_.yw(_.qo(),b)};
_.m.logClientVe=function(G){_.dS(_.qo(),_.Xs(G))};
_.kV.Object.defineProperties(OJ.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}}});
OJ.prototype.handleMouseLeave=OJ.prototype.handleMouseLeave;OJ.prototype.handleMouseEnter=OJ.prototype.handleMouseEnter;OJ.prototype.dataChanged=OJ.prototype.dataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],OJ.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],OJ.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],OJ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],OJ.prototype,"isEditMode",void 0);_.R([_.H(),_.n("design:type",Object)],OJ.prototype,"touchCaptionsEnabled",void 0);_.R([_.H(),_.n("design:type",Object)],OJ.prototype,"editedText",void 0);_.R([_.H(),_.n("design:type",Object)],OJ.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.R([_.H(),_.n("design:type",Object)],OJ.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.R([_.H(),_.n("design:type",String)],OJ.prototype,"segmentAriaLabel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],OJ.prototype,"roundedContainer",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],OJ.prototype,"mouseOver",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],OJ.prototype,"textChanged",void 0);_.R([_.H(),_.n("design:type",Object)],OJ.prototype,"messages",void 0);
_.R([_.lH("#suggestion"),_.n("design:type",Object)],OJ.prototype,"ironTextAreaElement",void 0);_.R([_.P("data","editedText"),_.n("design:type",Object),_.n("design:paramtypes",[])],OJ.prototype,"latestText",null);_.R([_.P("touchCaptionsEnabled","isEditMode"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],OJ.prototype,"enableEditButton",null);
_.R([_.P("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],OJ.prototype,"enableUndoButton",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OJ.prototype,"dataChanged",null);_.R([_.hI("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OJ.prototype,"handleMouseEnter",null);
_.R([_.hI("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OJ.prototype,"handleMouseLeave",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],OJ);
_.J(OJ,"ytd-transcript-segment-renderer",function(){if(xBa!==void 0)return xBa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xBa=G},{mode:1});var wM=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};G.isError=!1;G.darkerPanels=_.U("web_watch_darker_panels");G.useParentMaxHeight=_.U("web_watch_transscript_use_parent_max_height");G.segmentOffsets=[];G.segmentIndex=-1;return G};
_.M(wM,_.a);_.m=wM.prototype;_.m.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"}}}}};
_.m.segmentsChanged=function(){this.updateOffsets()};
_.m.onYtPlayerTimeChanged=function(G){for(var b=this.segmentIndex,I=b;;){if(I>=0){var h=this.segmentOffsets[I].start;var q=this.segmentOffsets[I].isAutoScrollable}else h=-1,q=!0;var l=G+.5;if(!q){h=I+1<this.segmentOffsets.length?this.segmentOffsets[I+1].start:Infinity;if(l>=h){I+=1;continue}I=-1;break}if(l<h)h=I-1>=0&&this.segmentOffsets[I-1].isAutoScrollable,q=I===0||h?1:2,I-=q;else if(q=I+1<this.segmentOffsets.length&&this.segmentOffsets[I+1].isAutoScrollable?1:2,h=I+q<this.segmentOffsets.length?
this.segmentOffsets[I+q].start:Infinity,l>h)I+=q;else{if(I<0)break;I<this.segmentOffsets.length&&l>this.segmentOffsets[I].end&&(I=-1);break}}if(b!==I){if(b>=0){var V;(V=this.getSegmentElement(b))==null||V.classList.remove("active")}this.segmentIndex=I;if(!(I<0)){var D;(D=this.getSegmentElement(I))==null||D.classList.add("active");this.isHovered||this.scrollElementToTop(I)}}};
_.m.handleSegmentEdit=function(G){G.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=G.target,_.wL(this.hostElement,"yt-transcript-player-edit",[G.detail.startMs/1E3,G.detail.endMs/1E3]))};
_.m.handleSegmentSelected=function(G){_.wL(this.hostElement,"yt-transcript-player-seek",[G.detail.startMs/1E3])};
_.m.handleSegmentReplay=function(G){_.wL(this.hostElement,"yt-transcript-player-replay",[G.detail.startMs/1E3,G.detail.endMs/1E3])};
_.m.handleSectionHeaderSelected=function(G){_.wL(this.hostElement,"yt-transcript-player-seek",[G.detail.startMs/1E3])};
_.m.onMouseEnter=function(){this.isHovered=!0};
_.m.onMouseLeave=function(){this.isHovered=!1};
_.m.onRetryButtonClick=function(){_.O3(this.hostElement,"transcript-retry-button-click")};
_.m.getSegmentElement=function(G){return _.Eo(this.hostElement).querySelector(":nth-child("+(G+1)+")")};
_.m.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)};
_.m.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(G){var b,I=(b=G.transcriptSegmentRenderer)!=null?b:G.transcriptSectionHeaderRenderer;return{start:Number(I.startMs)/1E3,end:Number(I.endMs)/1E3,isAutoScrollable:G.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.m.clearHighlightedSegments=function(){var G=_.Eo(this.hostElement);G=_.e(G.querySelectorAll("ytd-transcript-segment-renderer"));for(var b=G.next();!b.done;b=G.next())b.value.classList.remove("active")};
_.kV.Object.defineProperties(wM.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?void 0:G.searchResultSegments)||((b=this.data)==null?void 0:b.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
wM.prototype.onMouseLeave=wM.prototype.onMouseLeave;wM.prototype.onMouseEnter=wM.prototype.onMouseEnter;wM.prototype.handleSectionHeaderSelected=wM.prototype.handleSectionHeaderSelected;wM.prototype.handleSegmentReplay=wM.prototype.handleSegmentReplay;wM.prototype.handleSegmentSelected=wM.prototype.handleSegmentSelected;wM.prototype.handleSegmentEdit=wM.prototype.handleSegmentEdit;wM.prototype.segmentsChanged=wM.prototype.segmentsChanged;
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],wM.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],wM.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],wM.prototype,"isError",void 0);
_.R([_.H(),_.n("design:type",Object)],wM.prototype,"noResultLabel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],wM.prototype,"darkerPanels",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],wM.prototype,"useParentMaxHeight",void 0);_.R([_.P("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],wM.prototype,"segments",null);
_.R([_.P("segments","noResultLabel"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wM.prototype,"displayNoResults",null);_.R([_.q5("segments"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wM.prototype,"segmentsChanged",null);_.R([_.hI("yt-transcript-segment-edit"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],wM.prototype,"handleSegmentEdit",null);
_.R([_.hI("yt-transcript-segment-selected"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],wM.prototype,"handleSegmentSelected",null);_.R([_.hI("yt-transcript-segment-replay"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],wM.prototype,"handleSegmentReplay",null);
_.R([_.hI("ytd-transcript-section-header"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],wM.prototype,"handleSectionHeaderSelected",null);_.R([_.hI("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wM.prototype,"onMouseEnter",null);_.R([_.hI("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wM.prototype,"onMouseLeave",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],wM);
_.J(wM,"ytd-transcript-segment-list-renderer",function(){if(QBd!==void 0)return QBd;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return QBd=G},{mode:1});var EJ=function(){var G=_.a.apply(this,arguments)||this;G.hideTimestamps=!!_.Q4("hide-transcript-timestamps");G.isLoadingTranscripts=!1;G.darkerPanels=_.U("web_watch_darker_panels");G.isError=!1;G.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return G};
_.M(EJ,_.a);_.m=EJ.prototype;_.m.headerChanged=function(){var G,b;this.baseGetTranscriptsCommand=(b=_.g((G=this.data)==null?void 0:G.header,W7o))==null?void 0:b.onTextChangeCommand};
_.m.bodyChanged=function(){var G=this.getBodyRenderer();G&&(G.initialSegments&&(this.initialTranscriptsRenderer=G),G.noResultLabel&&(this.noResultLabel=G.noResultLabel),G.retryLabel&&(this.retryLabel=G.retryLabel))};
_.m.detached=function(){this.clearSearchBoxText()};
_.m.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.m.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"}}}};
_.m.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.m.fireSearch=function(G){var b=this;if(G){var I=G.detail.query;if(this.baseGetTranscriptsCommand){var h;G=(h=_.g(this.baseGetTranscriptsCommand,_.Fln))==null?void 0:h.params;var q;h=_.g((q=this.data)==null?void 0:q.footer,Ucz);var l;if((q=(l=_.g(h==null?void 0:h.languageMenu,yCa))==null?void 0:l.subMenuItems)&&q.length>0&&(l=q.find(function(k){return k.selected}))){var V,D;
G=(V=l.continuation)==null?void 0:(D=V.reloadContinuationData)==null?void 0:D.continuation}V=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:G,searchQuery:I}});this.ytComponentBehavior.resolveCommand(V,{commandController:{onServerError:function(){b.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});$cl(this.ytContinuationHandlerBehavior,function(){return I===b.getCurrentSearchBoxText()})}}};
_.m.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.m.onRetryButtonClick=function(){this.isError=!1;var G={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:G}))};
_.m.hideTimestampsChanged=function(){_.LX("hide-transcript-timestamps",this.hideTimestamps)};
_.m.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.m.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.m.handleSignalActionCopyTranscript=function(){var G=this,b=this.getBodyRenderer();b&&(b=((b==null?void 0:b.searchResultSegments)||(b==null?void 0:b.initialSegments)||[]).map(function(I){return _.g(I,NyK)}).filter(function(I){return!!I}).map(function(I){return{snippet:I.snippet||{runs:[{text:""}]},
startTimeText:I.startTimeText||{simpleText:""}}}).map(function(I){var h=(I.snippet.runs||[]).reduce(function(q,l){return q+l.text},"");
return G.hideTimestamps?h:I.startTimeText.simpleText+" "+h}).join("\n"),this.copyToClipboard(b))};
_.m.copyToClipboard=function(G){navigator.clipboard&&navigator.clipboard.writeText(G)};
_.m.getCurrentSearchBoxText=function(){var G;return(G=this.searchBox)==null?void 0:G.value};
_.m.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.m.getBodyRenderer=function(){var G;return _.g((G=this.data)==null?void 0:G.body,apl)};
_.m.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.kV.Object.defineProperties(EJ.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Eo(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
EJ.prototype.hideTimestampsChanged=EJ.prototype.hideTimestampsChanged;EJ.prototype.searchCleared=EJ.prototype.searchCleared;EJ.prototype.fireSearch=EJ.prototype.fireSearch;EJ.prototype.onReloadContinuationFinish=EJ.prototype.onReloadContinuationFinish;EJ.prototype.bodyChanged=EJ.prototype.bodyChanged;EJ.prototype.headerChanged=EJ.prototype.headerChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],EJ.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],EJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.mD),_.n("design:type",Object)],EJ.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],EJ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],EJ.prototype,"hideTimestamps",void 0);
_.R([_.H(),_.n("design:type",Object)],EJ.prototype,"isLoadingTranscripts",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],EJ.prototype,"darkerPanels",void 0);_.R([_.H(),_.n("design:type",Object)],EJ.prototype,"isError",void 0);_.R([_.q5("data.header"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],EJ.prototype,"headerChanged",null);
_.R([_.Dd("data.body"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],EJ.prototype,"bodyChanged",null);_.R([_.hI("yt-reload-continuation-finish"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],EJ.prototype,"onReloadContinuationFinish",null);_.R([_.hI("yt-transcript-search-box-search"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],EJ.prototype,"fireSearch",null);
_.R([_.hI("yt-transcript-search-box-clear"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],EJ.prototype,"searchCleared",null);_.R([_.q5("hideTimestamps"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],EJ.prototype,"hideTimestampsChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],EJ);
_.J(EJ,"ytd-transcript-search-panel-renderer",function(){if(v2I!==void 0)return v2I;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return v2I=G},{mode:1});var pd=function(){var G=_.a.apply(this,arguments)||this;G.player=null;G.playerPollJobId=0;return G};
_.M(pd,_.a);_.m=pd.prototype;_.m.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.m.onLoadReloadContinuation=function(G){_.U("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}}},_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}}))};
_.m.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"}}}};
_.m.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.m.attached=function(){this.updatePlayerListening()};
_.m.detached=function(){this.updatePlayerListening()};
_.m.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.m.startPlayerListening=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return(b=_.Kk())?I.yield(b.getPlayerPromise(),2):I.return();G.player=I.yieldResult;G.playerPollJobId=_.uu.addLowPriorityJob(function(){G.getPlayerVideoProgress()},1E3);
G.player.addEventListener("onCueRangeEnter",function(h){G.onCueRangeEnter(h)});
G.player.addEventListener("onCueRangeExit",function(h){G.onCueRangeExit(h)});
G.player.addEventListener("onStateChange",function(h){G.onPlayerStateChange(h)});
G.player.addEventListener("SEEK_TO",function(h){G.onPlayerSeek(h)});
_.ip(I)})};
_.m.getPlayerVideoProgress=function(){var G=this;_.uu.cancelJob(this.playerPollJobId);if(this.player){var b=this.player.getCurrentTime();_.wL(this.hostElement,"yt-player-time-changed",[b])}this.playerPollJobId=_.uu.addLowPriorityJob(function(){G.getPlayerVideoProgress()},1E3)};
_.m.stopPlayerListening=function(){this.player=null;_.uu.cancelJob(this.playerPollJobId)};
_.m.onPlayerStateChange=function(G){G===2&&this.removePendingCue()};
_.m.onPlayerSeek=function(G){var b;if(b=this.pendingReplayCueId)b=this.pendingReplayCueId,b=G===(_.U("web_transcript_cue_id_killswitch")?Number(b):Number(b.split("_")[1]));b||this.removePendingCue()};
_.m.onCueRangeEnter=function(G){Tvl(G)&&(this.pendingReplayCueId=G)};
_.m.onCueRangeExit=function(G){Tvl(G)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.m.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.m.onYtTranscriptPlayerSeek=function(G){this.player&&this.player.seekTo(G,!0)};
_.m.onYtTranscriptPlayerReplay=function(G,b){this.player&&(this.player.addCueRange(fZ7(G),G,b),this.player.seekTo(G,!0),this.player.playVideo())};
_.m.onYtTranscriptPlayerEdit=function(G,b){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(fZ7(G),G,b),this.player.seekTo(G,!0))};
pd.prototype.onLoadReloadContinuation=pd.prototype.onLoadReloadContinuation;pd.prototype.panelContentVisibleChanged=pd.prototype.panelContentVisibleChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],pd.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],pd.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],pd.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],pd.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],pd.prototype,"panelContentVisible",void 0);_.R([_.q5("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pd.prototype,"panelContentVisibleChanged",null);
_.R([_.hI("yt-load-reload-continuation"),_.n("design:type",Function),_.n("design:paramtypes",[Object]),_.n("design:returntype")],pd.prototype,"onLoadReloadContinuation",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],pd);
_.J(pd,"ytd-transcript-renderer",function(){if(cMK!==void 0)return cMK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return cMK=G},{mode:1});var f5l;var THK;var SQ=function(){return _.a.apply(this,arguments)||this};
_.M(SQ,_.a);SQ.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Su(this.hostElement,[this.data.clickCommand],this.hostElement))};
SQ.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Hl)()+_.H7)+"px)"};
SQ.prototype.updateShouldHideFromBinding=function(G){this.shouldHide=G.detail.value};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],SQ.prototype,"rendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],SQ.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],SQ.prototype,"shouldHide",void 0);_.R([_.N({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],SQ);
_.J(SQ,"ytd-ad-engagement-panel-banner-renderer",function(){if(THK!==void 0)return THK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return THK=G},{mode:_.nn("kevlar_poly_si_batch_j070")?1:2});var BHa;var Xt=function(){var G=_.a.apply(this,arguments)||this;G.buttonUpdate=_.U("web_modern_buttons");G.adsSemanticText=_.U("enable_ads_web_ep_buenos_aires_and_padding_fix");return G};
_.M(Xt,_.a);Xt.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.R([_.H(),_.n("design:type",Object)],Xt.prototype,"data",void 0);_.R([_.H({computed:"computeHideDefaultAdBadge(data)"}),_.n("design:type",Boolean)],Xt.prototype,"hideDefaultAdBadge",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Xt.prototype,"buttonUpdate",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Xt.prototype,"adsSemanticText",void 0);_.R([_.N({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Xt);
_.J(Xt,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(BHa!==void 0)return BHa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return BHa=G},{mode:1});var UB7;var $Z=function(){var G=_.a.apply(this,arguments)||this;G.darkerPanels=_.U("web_watch_darker_panels");G.enableSqueezebackPanels=_.U("web_shorts_enable_squeezeback_panels");G.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");G.headerClickListener=function(b){G.onHeaderClick(b)};
G.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return G};
_.M($Z,_.a);_.m=$Z.prototype;_.m.computeAdsInfoButton=function(){if(_.U("web_modern_buttons")){var G,b;return(b=_.g((G=this.data)==null?void 0:G.subtitleComplex,sjh))==null?void 0:b.adInfoRenderer}};
_.m.updateHeaderClickListener=function(){var G,b,I;((G=this.data)==null?0:G.navigationEndpoint)||((b=this.data)==null?0:b.onClickCommand)||_.g((I=this.data)==null?void 0:I.visibilityButton,_.Ia)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.m.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}}}}}};
_.m.collapsedChanged=function(){var G;(G=this.data)!=null&&G.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.U("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.m.focus=function(G){var b=this;this.titleElement&&_.uu.addJob(function(){_.jG(b.titleElement,G)},0,500)};
_.m.computeTitleAriaLabel=function(G){var b=[];if(G.title){var I,h;b.push(this.ytRendererBehavior.getSimpleString(G.title)||((I=G.title.accessibility)==null?void 0:(h=I.accessibilityData)==null?void 0:h.label))}G.contextualInfo&&b.push(this.ytRendererBehavior.getSimpleString(G.contextualInfo));return b.join(" ")};
_.m.onHeaderClick=function(G){this.shouldTriggerHeaderClick(G)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Su(this.hostElement,[this.data.onClickCommand],this.hostElement)):(G=this.getVisibilityToggleButton())&&G.click())};
_.m.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var G=_.g(this.data.visibilityButton,_.bz)||_.g(this.data.visibilityButton,_.Ia);G&&this.ytRendererBehavior.logExplicitClick(G)}};
_.m.getVisibilityToggleButton=function(){var G=_.Eo(this.hostElement).querySelector("#visibility-button").firstElementChild;return(G==null?void 0:G.is)==="ytd-toggle-button-renderer"?G:null};
_.m.shouldTriggerHeaderClick=function(G){return!_.NK(_.Wy(G),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.m.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(G){G=_.g(G,_.kFv);this.targetId&&(G==null?void 0:G.targetId)===this.targetId&&(G=G.navigationButton)&&this.set("data.navigationButton",G)};
_.kV.Object.defineProperties($Z.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.U("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)}}});
$Z.prototype.collapsedChanged=$Z.prototype.collapsedChanged;$Z.prototype.updateHeaderClickListener=$Z.prototype.updateHeaderClickListener;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],$Z.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],$Z.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],$Z.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],$Z.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],$Z.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],$Z.prototype,"targetId",void 0);_.R([_.H(),_.n("design:type",Boolean)],$Z.prototype,"collapsed",void 0);_.R([_.H(),_.n("design:type",Boolean)],$Z.prototype,"hideActionButton",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],$Z.prototype,"shortsPanel",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],$Z.prototype,"liveChatEngagementPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],$Z.prototype,"learningChatEngagementPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$Z.prototype,"darkerPanels",void 0);_.R([_.lH("#title"),_.n("design:type",HTMLElement)],$Z.prototype,"titleElement",void 0);_.R([_.lH("#header"),_.n("design:type",HTMLElement)],$Z.prototype,"headerElement",void 0);
_.R([_.H({computed:"computeAdsInfoButton(data)"}),_.n("design:type",Object)],$Z.prototype,"adsInfoButton",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$Z.prototype,"enableSqueezebackPanels",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$Z.prototype,"enableAnchoredPanel",void 0);_.R([_.H({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(G,b){return _.Gi(G.entities,"engagementPanelTitleHeaderEntity",b)}}),
_.n("design:type",Object)],$Z.prototype,"entity",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("targetId"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$Z.prototype,"adsSemanticText",null);_.R([_.q5("data","data.navigationEndpoint","data.onClickCommand"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$Z.prototype,"updateHeaderClickListener",null);
_.R([_.Dd("collapsed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$Z.prototype,"collapsedChanged",null);_.R([_.P("entity","hideActionButton"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],$Z.prototype,"isActionButtonHidden",null);_.R([_.N({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],$Z);
_.J($Z,"ytd-engagement-panel-title-header-renderer",function(){if(UB7!==void 0)return UB7;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return UB7=G},{mode:1});var sBl;var Gh=function(){return _.a.apply(this,arguments)||this};
_.M(Gh,_.a);Gh.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Gh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Gh.prototype,"data",void 0);_.R([_.N({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Gh);
_.J(Gh,"ytd-macro-markers-info-item-renderer",function(){if(sBl!==void 0)return sBl;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return sBl=G},{mode:1});var g2M;var bv=function(G,b,I,h,q,l){_.FN.call(this);var V=this;this.JSC$23172_containerElement=G;this.hostElement=b;this.supportedSyncItems=I;this.syncEntityKey=h;this.options=q;this.renderLazyListItems=l;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;AMl(this);MGh(this);this.JSC$23172_scrollAnimation=new _.Vb(function(D){G.scrollTop=D});
_.M2(this,this.JSC$23172_scrollAnimation);this.addOnDisposeCallback(function(){Z1M(V,!1);V.activeItem&&V.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.M(bv,_.FN);var AMl=function(G){var b=_.Nj(_.LL().resolve(_.nR),function(I){return I.entities.markersEngagementPanelSyncEntity||{}},function(I,h){var q;
if(I[G.syncEntityKey]!==h[G.syncEntityKey]&&((q=I[G.syncEntityKey])==null?void 0:q.activeItemIndex)!==void 0)if(h=I[G.syncEntityKey].activeItemIndex,I=G.getItemByIndex(h)){if(tGA(G,I),G.contentVisible)if(G.browsingMode){var l;((l=G.options)==null?void 0:l.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(l=z2K(G),I.offsetTop<G.JSC$23172_containerElement.clientHeight+G.JSC$23172_containerElement.scrollTop&&l&&!G.activeItemBelowSyncPosition&&Z1M(G,!1));o2M(G)}else G.scrollToItem(I)}else _.RB(new _.Wf("Could not find "+
G.supportedSyncItems+" sync child to set active.",h,G.JSC$23172_containerElement.querySelectorAll(G.supportedSyncItems).length))});
G.unsubscribeFromTimedMarkersListSyncEntity=b;G.addOnDisposeCallback(b);i1z(G)},i1z=function(G){var b=_.LL().resolve(_.nR);
b=_.xnu(b.getState(),G.syncEntityKey);(b==null?void 0:b.activeItemIndex)!==void 0&&(b=G.getItemByIndex(b.activeItemIndex))&&tGA(G,b)},MGh=function(G){var b=new _.GB(G.onScroll,50,G);
_.M2(G,b);var I=function(){b.fire()};
G.JSC$23172_containerElement.addEventListener("scroll",I);G.addOnDisposeCallback(function(){G.JSC$23172_containerElement.removeEventListener("scroll",I)})};
bv.prototype.getItemByIndex=function(G){var b;(b=this.renderLazyListItems)==null||b.call(this,G);b=this.JSC$23172_containerElement.querySelectorAll(this.supportedSyncItems);if(b.length>G)return b[G]};
var tGA=function(G,b){G.activeItem&&G.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));b.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));G.activeItem=b};
bv.prototype.scrollToItem=function(G){G=this.getScrollPositionForItem(G);this.JSC$23172_containerElement.scrollTop!==G&&this.JSC$23172_scrollAnimation.start(this.JSC$23172_containerElement.scrollTop,G,300)};
bv.prototype.getScrollPositionForItem=function(G){if(this.JSC$23172_containerElement.querySelectorAll(this.supportedSyncItems)[0]===G)return 0;var b,I=((b=this.options)==null?0:b.percentOffset)?this.JSC$23172_containerElement.clientHeight*this.options.percentOffset:0;G=_.Og(G).y+this.JSC$23172_containerElement.scrollTop-(_.Og(this.JSC$23172_containerElement).y+I);return Math.max(0,Math.min(G,this.JSC$23172_containerElement.scrollHeight-this.JSC$23172_containerElement.offsetHeight))};
bv.prototype.onScroll=function(){this.activeItemBelowSyncPosition=z2K(this);if(this.activeItem&&!this.JSC$23172_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23172_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var G;switch((G=this.options)==null?void 0:G.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":P6h(this,!dBa(this));o2M(this);break;default:P6h(this,!0)}}};
var P6h=function(G,b){var I,h;_.c(function(q){if(q.nextAddress==1){if(G.browsingMode)return q.return();G.browsingMode=!0;b&&G.hostElement.classList.add("browsing-mode");G.playerExitBrowsingModeListener=function(){Z1M(G,!1)};
return q.yield(_.$U(),2)}I=q.yieldResult;(h=I)==null||h.addEventListener("SEEK_TO",G.playerExitBrowsingModeListener);_.ip(q)})},Z1M=function(G,b){b=b===void 0?!0:b;
G.browsingMode&&(G.browsingMode=!1,G.hostElement.classList.remove("browsing-mode"),b&&G.scrollToItem(G.activeItem),yMh(G))},yMh=function(G){var b,I;
_.c(function(h){if(h.nextAddress==1)return G.playerExitBrowsingModeListener?h.yield(_.$U(),3):h.jumpTo(0);b=h.yieldResult;(I=b)==null||I.removeEventListener("SEEK_TO",G.playerExitBrowsingModeListener);G.playerExitBrowsingModeListener=void 0;_.ip(h)})},o2M=function(G){var b;
((b=G.options)==null?void 0:b.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(dBa(G)?G.hostElement.classList.remove("browsing-mode"):G.activeItem&&G.hostElement.classList.add("browsing-mode"))},z2K=function(G){if(!G.activeItem)return!1;
var b,I=((b=G.options)==null?0:b.percentOffset)?G.JSC$23172_containerElement.clientHeight*G.options.percentOffset:0;return G.activeItem.offsetTop>=G.JSC$23172_containerElement.scrollTop+I},dBa=function(G){if(!G.activeItem)return!1;
var b=G.activeItem.offsetTop+14<=G.JSC$23172_containerElement.scrollTop+G.JSC$23172_containerElement.clientHeight;return G.activeItem.offsetTop+G.activeItem.clientHeight-14>=G.JSC$23172_containerElement.scrollTop&&b};
bv.prototype.panelContentVisibleChanged=function(G){(this.contentVisible=G)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var rMK=function(G,b){G.syncEntityKey=b;var I;(I=G.unsubscribeFromTimedMarkersListSyncEntity)==null||I.call(G);AMl(G)},FGl=function(G,b){G.options=b};var Ig=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return G};
_.M(Ig,_.a);_.m=Ig.prototype;_.m.detached=function(){var G;(G=this.scrollController)==null||G.dispose();this.scrollController=void 0};
_.m.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"}}}};
_.m.dataChanged=function(){var G=this;_.D1(this,function(){if(G.scrollController){var b;(b=G.scrollController)==null||Z1M(b,!1);var I,h,q;(h=G.scrollController)==null||rMK(h,(q=(I=G.data)==null?void 0:I.syncModelEntityKey)!=null?q:"default-macro-markers-list-renderer-entity-key");var l,V,D;(D=G.scrollController)==null||FGl(D,{percentOffset:(l=G.data)==null?void 0:l.selectedItemAlignmentPercentOffset,floatingPillType:(V=G.data)==null?void 0:V.floatingPillType})}else{var k,L,x,f;G.scrollController=
new bv(G.contents,G.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(f=(k=G.data)==null?void 0:k.syncModelEntityKey)!=null?f:"default-macro-markers-list-renderer-entity-key",{percentOffset:(L=G.data)==null?void 0:L.selectedItemAlignmentPercentOffset,floatingPillType:(x=G.data)==null?void 0:x.floatingPillType},function(T){G.renderLazyListItems(T)})}G.scrollController.panelContentVisibleChanged(!!G.panelContentVisible)})};
_.m.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)}};
_.m.renderLazyListItems=function(G){for(var b=this.contents.children,I=0,h=0;h<b.length;h++){var q=void 0;(q=b[h].ytLazyListBehavior)==null||q.fillRemainingListItems();var l=void 0,V=void 0;q=_.g((l=this.data)==null?void 0:(V=l.contents)==null?void 0:V[h],_.xTz);V=l=void 0;if((l=q)==null?0:(V=l.contents)==null?0:V.length)I+=q.contents.length;if(I>=G)break}};
_.m.handleSetActivePanelItemAction=function(G){if((G=_.g(G,L7z))&&this.panelTargetId===G.panelTargetId){G=G.itemIndex;var b,I,h=(I=(b=this.data)==null?void 0:b.syncModelEntityKey)!=null?I:"default-macro-markers-list-renderer-entity-key",q;((q=this.syncEntity)==null?void 0:q.activeItemIndex)!==G&&this.ytdReduxBehavior.dispatch(_.Da("markersEngagementPanelSyncEntity",h,{key:h,activeItemIndex:G}))}};
_.m.onSyncClick=function(){var G;(G=this.scrollController)==null||Z1M(G)};
_.m.panelContentVisibleChanged=function(){var G;(G=this.scrollController)==null||G.panelContentVisibleChanged(!!this.panelContentVisible)};
Ig.prototype.panelContentVisibleChanged=Ig.prototype.panelContentVisibleChanged;Ig.prototype.dataChanged=Ig.prototype.dataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Ig.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],Ig.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ig.prototype,"data",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Ig.prototype,"useCustomColors",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],Ig.prototype,"panelTargetId",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ig.prototype,"panelContentVisible",void 0);
_.R([_.lH("#contents"),_.n("design:type",HTMLElement)],Ig.prototype,"contents",void 0);_.R([_.H({selectorArgs:["data.syncModelEntityKey"],selector:_.xnu}),_.n("design:type",Object)],Ig.prototype,"syncEntity",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ig.prototype,"dataChanged",null);
_.R([_.q5("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ig.prototype,"panelContentVisibleChanged",null);_.R([_.N({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Ig);
_.J(Ig,"ytd-macro-markers-list-renderer",function(){if(g2M!==void 0)return g2M;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return g2M=G},{mode:1});var H1I;var hp=function(){return _.a.apply(this,arguments)||this};
_.M(hp,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],hp.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],hp.prototype,"data",void 0);_.R([_.N({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],hp);
_.J(hp,"ytd-error-corrections-section-item-renderer",function(){if(H1I!==void 0)return H1I;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return H1I=G},{mode:1});var WGz;var qa=function(){return _.a.apply(this,arguments)||this};
_.M(qa,_.a);qa.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],qa.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],qa.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],qa.prototype,"data",void 0);_.R([_.N({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],qa);
_.J(qa,"ytd-error-corrections-section-renderer",function(){if(WGz!==void 0)return WGz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return WGz=G},{mode:1});var a5d;var j2=function(){return _.a.apply(this,arguments)||this};
_.M(j2,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],j2.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],j2.prototype,"data",void 0);_.R([_.N({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],j2);
_.J(j2,"ytd-topic-link-renderer",function(){if(a5d!==void 0)return a5d;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return a5d=G},{mode:1});var NHI;var lv=function(){var G=_.a.apply(this,arguments)||this;G.modernLockupV2=_.U("modernize_structured_description_playlist_lockups_v2");return G};
_.M(lv,_.a);lv.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lv.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],lv.prototype,"modernLockupV2",void 0);_.R([_.N({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],lv);
_.J(lv,"ytd-video-description-course-section-renderer",function(){if(NHI!==void 0)return NHI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return NHI=G},{mode:1});var YYd;var mx=function(){return _.a.apply(this,arguments)||this};
_.M(mx,_.a);mx.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],mx.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],mx.prototype,"data",void 0);_.R([_.N({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],mx);
_.J(mx,"ytd-video-description-files-section-renderer",function(){if(YYd!==void 0)return YYd;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return YYd=G},{mode:1});var C6o;var e2=function(){return _.a.apply(this,arguments)||this};
_.M(e2,_.a);e2.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],e2.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],e2.prototype,"data",void 0);_.R([_.N({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],e2);
_.J(e2,"ytd-video-description-gaming-section-renderer",function(){if(C6o!==void 0)return C6o;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return C6o=G},{mode:1});var JMI;var VZ=function(){var G=_.a.apply(this,arguments)||this;G.isExpanded=!1;return G};
_.M(VZ,_.a);VZ.prototype.computeHasDefaultMetadataEndpoint=function(G){var b;G=G==null?void 0:(b=G.defaultMetadata)==null?void 0:b.runs;return!(!G||G.length!==1||!G[0].navigationEndpoint)};
VZ.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.kV.Object.defineProperties(VZ.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],VZ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],VZ.prototype,"isExpanded",void 0);_.R([_.H({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],VZ.prototype,"hasDefaultMetadataEndpoint",void 0);
_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],VZ.prototype,"isExpandable",null);_.R([_.P("data","isExpandable","isExpanded"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],VZ.prototype,"showExpandedMetadata",null);_.R([_.N({is:"ytd-info-row-renderer",disableElementRegistration:!0})],VZ);
_.J(VZ,"ytd-info-row-renderer",function(){if(JMI!==void 0)return JMI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return JMI=G},{mode:1});var KGA;var Dh=function(){var G=_.a.apply(this,arguments)||this;G.currentIndex=0;G.supportComponentResize=!0;G.JSC$23201_lastScrollContainerWidth=NaN;return G};
_.M(Dh,_.a);_.m=Dh.prototype;
_.m.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"}}}};
_.m.getItemsPath=function(){return"videoLockups"};
_.m.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.m.onIronResize=function(){this.updateVideoLockupStyles()};
_.m.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.m.updateVideoLockupStyles=function(){var G;this.JSC$23201_scrollContainer!==void 0&&(G=this.videoLockups)!=null&&G.length&&(G=this.JSC$23201_scrollContainer.clientWidth,G!==this.JSC$23201_lastScrollContainerWidth&&(this.JSC$23201_lastScrollContainerWidth=G,_.G8(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(G*.8,415)+"px"}),_.O3(this.hostElement,"iron-resize")))};
_.kV.Object.defineProperties(Dh.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var G=[],b;if((b=this.data)==null||!b.carouselLockups)return G;b=_.e(this.data.carouselLockups);for(var I=b.next();!I.done;I=b.next()){I=I.value;var h=void 0;((h=_.g(I,ujl))==null?0:h.videoLockup)&&G.push(_.g(I,ujl).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=[],b;if((b=this.data)==null||!b.carouselLockups)return G;var I;return(I=_.g(this.data.carouselLockups[this.scrollCount],ujl))==null?void 0:I.infoRows}}});
Dh.prototype.dataChanged=Dh.prototype.dataChanged;Dh.prototype.onIronResize=Dh.prototype.onIronResize;Dh.prototype.hiddenChanged=Dh.prototype.hiddenChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Dh.prototype,"componentBehavior",void 0);_.R([_.z(_.Qk.YtdHorizontalListBehavior),_.n("design:type",Object)],Dh.prototype,"ytdHorizontalListBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Dh.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Dh.prototype,"inlineStructuredDescription",void 0);_.R([_.H({value:2}),_.n("design:type",Number)],Dh.prototype,"initialCount",void 0);_.R([_.H(),_.n("design:type",Object)],Dh.prototype,"currentIndex",void 0);
_.R([_.H(),_.n("design:type",Number)],Dh.prototype,"scrollCount",void 0);_.R([_.H(),_.n("design:type",Object)],Dh.prototype,"supportComponentResize",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Dh.prototype,"contentHidden",void 0);_.R([_.lH("#scroll-container"),_.n("design:type",HTMLDivElement)],Dh.prototype,"JSC$23201_scrollContainer",void 0);
_.R([_.q5("contentHidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dh.prototype,"hiddenChanged",null);_.R([_.P("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],Dh.prototype,"videoLockups",null);_.R([_.P("videoLockups"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Dh.prototype,"hasVideoLockups",null);
_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dh.prototype,"onIronResize",null);_.R([_.P("data","scrollCount"),_.n("design:type",Object),_.n("design:paramtypes",[])],Dh.prototype,"infoRows",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dh.prototype,"dataChanged",null);_.R([_.N({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Dh);
_.J(Dh,"ytd-video-description-music-section-renderer",function(){if(KGA!==void 0)return KGA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return KGA=G},{mode:_.nn("kevlar_poly_si_batch_j081")?1:2});var uQa;var cb=function(){return _.a.apply(this,arguments)||this};
_.M(cb,_.a);cb.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.R([_.H({}),_.n("design:type",Object)],cb.prototype,"data",void 0);_.R([_.N({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],cb);
_.J(cb,"ytd-video-description-transcript-section-renderer",function(){if(uQa!==void 0)return uQa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return uQa=G},{mode:1});var R2v;_.JN(_.C(function(G){var b=_.lA(_.BAv,function(){return G.data().firstProviderLinkStatusEntityKey}),I=_.lA(_.BAv,function(){return G.data().secondProviderLinkStatusEntityKey}),h=function(){var q,l;
return((q=b())==null?void 0:q.linked)||((l=I())==null?void 0:l.linked)};
return _.v("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.v(_.IS,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return G.data().sectionTitle}}),_.v(_.IS,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return h()?G.data().connectedMessage:G.data().notConnectedMessage}}),_.v(_.Q,{cond:h,
then:function(){return _.v(_.VX,{data:function(){return G.data().connectedButton}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.v(_.Q,{cond:function(){return!h()},
then:function(){return _.v(_.VX,{data:function(){return G.data().notConnectedButton}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"An"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;return _.v("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.v("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.v(_.IS,{text:function(){return b().sectionTitle}})),_.v("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.v(_.IS,{text:function(){return b().bodyHeader}})),_.v("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.v(_.IS,{text:function(){return b().bodyText}})),_.v(_.Q,{cond:function(){return b().attributionText},
then:function(){return _.v("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.v(_.IS,{text:function(){return b().attributionText}}))}}))},"Bn"),"how-this-was-made-section-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){return _.v("yt-video-description-youchat-section-view-model",{class:_.pG("ytVideoDescriptionYouchatSectionViewModelHost")},_.v("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.v(_.IS,{text:function(){return G.data().sectionTitle}})),_.v("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.v(_.IS,{text:function(){return G.data().subHeaderText}})),_.v("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.v(_.sQ,{data:function(){return _.g(G.data().primaryButton,
_.j6)}})))},"Cn"),"yt-video-description-youchat-section-view-model",{props:{data:_.hV}});var kZ=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return G};
_.M(kZ,_.a);_.m=kZ.prototype;
_.m.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}}}}}};
_.m.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.m.dataChanged=function(){var G,b;this.hasDescriptionOnly=!(((G=this.data)==null?void 0:(b=G.items)==null?void 0:b.length)!==1||!_.g(this.data.items[0],r9))};
_.m.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.m.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.m.autoFocusDescription=function(){var G;((G=_.LL().resolve(_.vf(_.v6)))==null?0:G.isKeyBoardInUse())&&this.description&&_.l6(this.description)};
_.m.resize=function(){if(_.U("kevlar_disable_sd_resize"))this.JSC$23209_cardList&&_.O3(this.JSC$23209_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.O3(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.O3(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.m.scrollToSection=function(G){if(G=this.getSectionElement(G))_.wL(this.hostElement,"yt-scroll-to-watch-element",[G]),G.focus()};
_.m.getSectionElement=function(G){switch(G){case "infocards-item-section":var b;return(b=this.infocardsSection)!=null?b:null;case "transcript-item-section":var I;return(I=this.transcriptSection)!=null?I:null;case "how-this-was-made-section-item-section":var h;return(h=this.howThisWasMadeSection)!=null?h:null;case "files-item-section":var q;return(q=this.filesSection)!=null?q:null;default:return null}};
_.m.handleSetActiveItemAction=function(G){var b=_.g(G,L7z),I=b&&(b==null?void 0:b.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23209_cardList;if(b&&I){G=this.currentActiveChapter;var h=this.currentActiveProblem;b=I==null?void 0:I.getItemByIndex(b.itemIndex);var q=I=!0;b&&(b.active=!0,b.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(I=G!==b,q=!1,this.currentActiveChapter=b):(b==null?void 0:b.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(I=!1,q=h!==b,this.currentActiveProblem=b));G&&I&&(G.active=!1);h&&q&&(h.active=!1)}};
_.kV.Object.defineProperties(kZ.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.U("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
kZ.prototype.onYtExpanderMoreTapped=kZ.prototype.onYtExpanderMoreTapped;kZ.prototype.onHiddenChanged=kZ.prototype.onHiddenChanged;kZ.prototype.dataChanged=kZ.prototype.dataChanged;kZ.prototype.panelContentVisibleChanged=kZ.prototype.panelContentVisibleChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kZ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],kZ.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],kZ.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.Y6),_.n("design:type",Object)],kZ.prototype,"ironResizableBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],kZ.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],kZ.prototype,"panelContentVisible",void 0);_.R([_.H(),_.n("design:type",Boolean)],kZ.prototype,"hasDescriptionOnly",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],kZ.prototype,"inlineStructuredDescription",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],kZ.prototype,"hidden",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],kZ.prototype,"shortsPanel",void 0);_.R([_.H(),_.n("design:type",Object)],kZ.prototype,"videoSummary",void 0);_.R([_.H(),_.n("design:type",Object)],kZ.prototype,"merchShelf",void 0);
_.R([_.P("videoSummary"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],kZ.prototype,"showVideoSummary",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],kZ.prototype,"engagementPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],kZ.prototype,"watchWhileSdp",void 0);_.R([_.lH("ytd-expandable-video-description-body-renderer"),_.n("design:type",Object)],kZ.prototype,"description",void 0);
_.R([_.lH("ytd-horizontal-card-list-renderer"),_.n("design:type",Object)],kZ.prototype,"JSC$23209_cardList",void 0);_.R([_.lH("ytd-horizontal-card-list-renderer[center-items]"),_.n("design:type",Object)],kZ.prototype,"problemWalkthroughCardList",void 0);_.R([_.lH("ytd-shelf-renderer"),_.n("design:type",Object)],kZ.prototype,"shelfSection",void 0);_.R([_.lH("ytd-video-description-music-section-renderer"),_.n("design:type",Object)],kZ.prototype,"musicMetadataSection",void 0);
_.R([_.lH("ytd-video-description-infocards-section-renderer"),_.n("design:type",Object)],kZ.prototype,"infocardsSection",void 0);_.R([_.lH("ytd-video-description-transcript-section-renderer"),_.n("design:type",Object)],kZ.prototype,"transcriptSection",void 0);_.R([_.lH("how-this-was-made-section-view-model"),_.n("design:type",Object)],kZ.prototype,"howThisWasMadeSection",void 0);_.R([_.lH("ytd-video-description-files-section-renderer"),_.n("design:type",Object)],kZ.prototype,"filesSection",void 0);
_.R([_.q5("panelContentVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kZ.prototype,"panelContentVisibleChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kZ.prototype,"dataChanged",null);_.R([_.q5("hidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kZ.prototype,"onHiddenChanged",null);
_.R([_.hI("yt-expander-more-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kZ.prototype,"onYtExpanderMoreTapped",null);_.R([_.N({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],kZ);
_.J(kZ,"ytd-structured-description-content-renderer",function(){if(R2v!==void 0)return R2v;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return R2v=G},{mode:2});var n2v;var O1z;var vb=function(){return _.a.apply(this,arguments)||this};
_.M(vb,_.a);vb.prototype.computeAriaLabel=function(G){var b,I;return(G==null?void 0:(b=G.accessibility)==null?void 0:(I=b.accessibilityData)==null?void 0:I.label)||_.qP("LOADING",void 0,"Loading")};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],vb.prototype,"data",void 0);_.R([_.H({computed:"computeAriaLabel(data)"}),_.n("design:type",String)],vb.prototype,"ariaLabel",void 0);_.R([_.g8({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],vb);
_.J(vb,"yt-content-loading-renderer",function(){if(O1z===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;n2v===void 0&&(n2v=document.createElement("template"));var h=n2v;I.call(b,h.content.cloneNode(!0),G.content.firstChild);O1z=G}G=O1z;return G},{mode:_.nn("kevlar_poly_si_batch_j043")?1:2});_.JN(_.C(function(G){var b=_.e(_.ZZ(!1,void 0,"OZMtVb")),I=b.next().value,h=b.next().value;b=_.e(_.ZZ(!1,void 0,"qWERsf"));var q=b.next().value,l=b.next().value;_.K3(function(){var k=_.g(G.data().collaboratePlaylistCollaborationSetting,rCh);k&&h(k.switchedOnByDefault);var L=_.g(G.data().allowNewCollaboratorsPlaylistCollaborationSetting,rCh);L&&l(L.switchedOnByDefault);if(!k&&!L||!k&&G.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")h(!0),l(!0)});
var V=function(k){h(k);l(k);var L=G.data().playlistCollaborationEntityKey||"";var x=_.H5().getState();(x=_.Gi(x.entities,"playlistCollaborationEntity",L))&&(x==null?void 0:x.isCollaborative)===k||_.H5().dispatch(_.Da("playlistCollaborationEntity",L,Object.assign({},x,{isCollaborative:k})))},D=function(k){l(k)};
return _.v("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.v("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.v(_.VX,{data:function(){return G.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(k){return _.v(_.t2J,{data:k.data,
onSwitch:V})}})),_.v(_.Q,{cond:I,
then:function(){return _.v(_.xz,null,_.v("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.v(_.VX,{data:function(){return G.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(k){return _.v(_.t2J,{data:k.data,
onSwitch:D,overrideDisabled:!1})}})),_.v(_.Q,{cond:q,
then:function(){return _.v("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.v(_.VX,{data:function(){return G.data().copyLinkButton}},{buttonViewModel:_.sQ}))}}),_.v("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.v(_.VX,{data:function(){return G.data().playlistCollaborators}},{contentListItemViewModel:_.rQ8})))}}))},"Dn"),"playlist-collaboration-view-model",{props:{data:_.hV}});var wAE=_.C(function(G){var b=G.data;var I=G.customCommandResolver;return _.v(_.xz,null,_.v("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.v(_.VX,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(h){return _.v(_.wGe,{data:h.data,
customCommandResolver:I})}})),_.v("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.v(_.Q,{cond:function(){return b().headline},
then:function(h){return _.v(_.IS,{text:h,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.v("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.v(_.VX,{data:function(){return b().adBadge}},{adBadgeViewModel:function(h){return _.v(_.AE,{data:h.data,
hasDot:function(){return b().primaryDetailsLine!==void 0},
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.v(_.VX,{data:function(){return b().primaryDetailsLine}},{adDetailsLineViewModel:function(h){return _.v(_.MI,{data:h.data,
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"En"),E2o=_.C(function(G){var b=G.data;
var I=G.customCommandResolver;return _.v("ad-avatar-lockup-view-model",{class:function(){var h;return((h=b().interaction)==null?0:h.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.Wv(_.L8({visibilityCallback:function(h){var q,l=(q=b().interaction)==null?void 0:q.onFirstVisible;h&&l&&_.Zm(l)},
showOption:_.xr}),_.tW(function(){return b().interaction},I)),
"aria-label":function(){var h,q;return(h=b().interaction)==null?void 0:(q=h.accessibility)==null?void 0:q.label}},_.v(_.Nc,null,_.v(_.H3,{when:function(){return b().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.v(wAE,{data:b,
customCommandResolver:I})}),_.v(_.W3,null,function(){return null})))},"Fn");_.JN(_.C(function(G){var b=G.data;var I=G.panelContentVisibility;G=_.L8({visibilityCallback:function(l){var V,D=(V=b().interaction)==null?void 0:V.onFirstVisible;l&&D&&_.Zm(D)},
showOption:_.xr});var h=_.tW(function(){return b().interaction},BvA);
_.Jf(function(){var l,V;if(V=_.Ge("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var D;V=(D=V())==null?void 0:D.onLayoutVisibleCallback}else V=null;(l=V)==null||l()},"Gn");
var q=function(){return I()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.v("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.Wv(G,h)},_.v("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.v("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.v(_.Q,{cond:_.AGO("(min-width: "+((0,_.Hl)()+_.H7)+"px) or (max-width: 600px)"),then:function(){return _.v(_.VX,{data:function(){return b().adImage}},{adImageViewModel:function(l){return _.v(_.aE,{data:l.data,
targetHeight:80,customCommandResolver:BvA})}})}})),_.v("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.v("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.v(_.VX,{data:function(){return b().adAvatarLockup}},{adAvatarLockupViewModel:function(l){return _.v(E2o,{data:l.data,
customCommandResolver:BvA})}})),_.v(_.Q,{cond:q,
then:function(){return _.v(_.VX,{data:function(){return b().adButton}},{adButtonViewModel:function(l){return _.v(_.TC,{data:l.data,
customCommandResolver:BvA})}})},
else:function(){return _.v(_.VX,{data:function(){return b().menu}},{buttonViewModel:_.sQ})}}),_.v("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.v(_.VX,{data:function(){var l=_.g(b().toggleButton,_.mS);
return{toggleButtonViewModel:Object.assign({},l,{isTogglingDisabled:!0,isToggled:q()})}}},{toggleButtonViewModel:_.YK})))))},"Hn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.hV,
panelContentVisibility:_.hV}});_.JN(_.C(function(G){var b=function(){return _.g(G.data().inputComposerViewModel,g8o)},I=_.m2(_.PH.currentPageSubTypeSelector),h=_.m2(_.PH.persistentPanelVisibleSelector),q=_.e(_.ZZ(!1,void 0,"IASwBb")),l=q.next().value,V=q.next().value;
q=_.e(_.ZZ(!1,void 0,"GdQ0qf"));var D=q.next().value,k=q.next().value,L=function(){t(!0);var Uj;_.Zm(((Uj=b())==null?void 0:Uj.onSubmitCommand)||{})},x=function(){if(h()&&!D()){var Uj;
(Uj=_.GZ())==null||Uj.removeCueRange("aic-proactive");V(!1);k(!0);L();_.g5(_.HQv(b().endOfVideoContinuation),{form:{formData:_.rl({clientMessageId:"youchat-"+Date.now(),pageContext:td()})},commandController:{onSuccess:function(){t(!1)},
onServerError:function(){_.g5(jJg(O()));t(!1)}}})}},f=function(){var Uj=_.GZ();
if(Uj&&!l()&&!D()){var W2=Uj.getDuration();W2>60&&(Uj.addCueRange("aic-proactive",W2-60,W2-20),V(!0))}},T=function(){var Uj;
return((Uj=b())==null?void 0:Uj.youchatPendingResponseEntityKey)||""},B=_.lA(_.OQI,T),A=function(){var Uj;
return!((Uj=B())==null||!Uj.isPendingResponse)},t=function(Uj){_.wXK(T())(Uj)};
q=_.e(_.ZZ(!0,void 0,"n0Jijf"));var y=q.next().value,F=q.next().value,W=function(){var Uj,W2;var is=_.g((W2=b())==null?void 0:W2.inputFormField,cCh);return is==null?void 0:(Uj=is.contentProperties)==null?void 0:Uj.placeholderText},O=function(){return b().sectionTargetId||"youchat_messages_section"};
q=_.VF("yt-chat-input-view-model");var K=_.ee("textarea"),u=_.lA(mQh,"chat_input_view_model_state"),w=eCo(),$a=function(){var Uj;return!((Uj=u())==null||!Uj.value)},ev=function(){return G.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},LO=function(){var Uj;
(Uj=_.GZ())==null||Uj.removeCueRange("aic-proactive");V(!1);k(!1);var W2;_.U("enable_navigational_proactive_messages_on_ai_companion")&&((W2=b())==null?0:W2.navigationContinuation)&&h()&&(L(),_.g5(_.HQv(b().navigationContinuation),{form:{formData:_.rl({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:sJa(),pageContext:td()})},commandController:{onSuccess:function(){t(!1)},
onServerError:function(){_.g5(jJg(O()));t(!1)}}}))},td=function(){var Uj;
return(Uj=_.LL().resolve(_.vf(_.YB)))==null?void 0:_.qg1(Uj,I())};
_.K3(function(){if(_.U("enable_ai_chat_controller")){var Uj;(Uj=_.LL().resolve(_.vf(_.YB)))==null||Uj.init(G.data().environment)}else if(Uj=Afh(G.data()),!$a()&&Uj){var W2;((W2=b())==null?0:W2.setPendingResponseOnWelcome)&&t(!0);_.g5(Uj,{form:{formData:_.rl({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:sJa(),pageContext:td()})}});w(!0)}var is=O(),su=_.LL().resolve(_.vf(_.id)),an=function(){_.eK.remove(is);if(_.U("enable_ai_chat_controller")){var XO;(XO=_.LL().resolve(_.vf(_.YB)))!=null&&XO.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(XO.lastWelcomeContinuationSent=void 0)}else w(!1)},A5=function(){_.MQ(function(){if(ev()&&(LO(is),I()==="watch")){var XO=_.GZ();
XO&&(XO.addEventListener("onStateChange",f),XO.addEventListener("onCueRangeEnter",x))}})};
W2=_.U("enable_ai_companion")?!ev():!0;su==null||su.addEventListener("yt-navigate-start",an,{once:W2});su==null||su.addEventListener("yt-navigate-finish",A5,{once:W2});_.uI(function(){su==null||su.removeEventListener("yt-navigate-start",an);su==null||su.removeEventListener("yt-navigate-finish",A5);var XO=_.GZ();XO&&(XO.removeEventListener("onCueRangeEnter",x),XO.removeEventListener("onStateChange",f),XO.removeCueRange("aic-proactive"))})});
_.K0(function(){if(_.U("enable_ai_chat_controller")){var Uj=Afh(G.data());if(Uj){var W2,is=((W2=b())==null?0:W2.setPendingResponseOnWelcome)?t:void 0,su;(su=_.LL().resolve(_.vf(_.YB)))==null||IpI(su,{command:Uj,setPending:is})}}},"Z4XQCb");
var xa=function(){var Uj=K.value.value;K.value.value="";UQE(K.value);var W2,is=((W2=b())==null?void 0:W2.enableGradientColorBg)||!1;W2=lZz(O(),Uj,is);_.g5(W2);L();var su,an,A5;W2=(A5=_.s0((su=G.data())==null?void 0:su.sendUserQueryCommand))!=null?A5:_.HQv((an=b())==null?void 0:an.continuation);_.g5(W2,{form:{formData:_.rl({clientMessageId:"youchat-"+Date.now(),userInputText:Uj,playerOffsetMs:sJa(),pageContext:td()})},commandController:{onSuccess:function(){t(!1)},
onServerError:function(){_.g5(jJg(O()));t(!1)}}})};
return _.v("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:q},_.v("div",{class:"chatInputViewModelChatInputWrapper"},_.v("form",{class:"chatInputViewModelChatInputForm"},_.v("textarea",{class:"chatInputViewModelChatInput",el:K,"on:keydown":_.Xu(function(Uj){var W2=A()||!1;UQE(K.value);W2||Uj.key!=="Enter"||Uj.shiftKey||(Uj.preventDefault(),xa());return!1}),
"on:keyup":_.Xu(function(){F(K.value.value.length===0);return!1}),
"aria-label":function(){return A()?G.data().loadingAnimationA11yLabel||"":W()},
placeholder:W,rows:1}),_.v(_.sQ,{data:function(){return _.g(G.data().sendButton,_.j6)},
onClick:function(Uj){Uj.preventDefault();xa();F(K.value.value.length===0)},
buttonOverrides:function(){return{disabled:y()||A()}}})),_.v(_.IS,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Uj;return(Uj=_.g(G.data().disclaimer,_.f95))==null?void 0:Uj.text}})))},"Jn"),"yt-chat-input-view-model",{props:{data:_.hV}});var pAA=["engagement-panel-clip-create","engagement-panel-clip-view"],SYv=0,LH=function(){var G=_.a.apply(this,arguments)||this;var b;G.headerData=(b=G.data)==null?void 0:b.header;G.darkerPanels=_.U("web_watch_darker_panels");G.matchContentTheme=_.U("web_watch_panel_content_match_theme");G.disableAutoFill=!1;G.isFullscreen=!1;G.isTheaterMode=!1;G.liveChatReplyPanel=!1;G.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");G.disableBackdropFilter=_.U("web_disable_backdrop_filter");G.isPersistentPanel=
!1;G.trackEngagementPanelVisibility=_.U("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};
_.M(LH,_.a);_.m=LH.prototype;
_.m.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 b;return(G==null?void 0:(b=G.webComponentHint)==null?void 0:b.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"}}}};
_.m.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)};
_.m.detached=function(){this.updateTheaterDisablement()};
_.m.showPanel=function(){var G=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.uu.addJob(function(){G.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.m.maybeScrollToItemSection=function(G){var b=this,I,h=G==null?void 0:(I=G.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;h&&_.uu.addJob(function(){var q;(q=b.sectionListRendererElement)==null||q.scrollToItemSection(h)},8)};
_.m.hidePanel=function(){var G=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.uu.addJob(function(){G.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.m.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.m.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.m.updatePanel=function(G,b,I,h){var q=this;if((G=G==null?void 0:G.engagementPanelSectionListRenderer)||h){if(G){h=G.header;var l=G.content,V=G.footer;(G=G.targetId)&&this.set("data.targetId",G);h&&this.set("data.header",h);l&&this.set("data.content",l);V&&this.set("data.footer",V)}else h&&(G=h.content,l=h.secondaryHeaderContent,V=h.targetId,h=h.loggingDirectives,V&&this.set("data.targetId",V),G&&this.set("data.content",G),h&&_.U("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
h),l&&(this.secondaryHeaderData=l));this.updateChildVisibilityProperties();if(b){var D;_.U("kevlar_update_panel_focus_scroll_killswitch")||(D={preventScroll:!0});this.focus(D)}_.D1(this,function(){_.O3(q.hostElement,"yt-refit");q.maybeScrollToItemSection(I)})}};
_.m.computeHeaderData=function(){var G,b=(0,_.Cy.unsafeClone)((G=this.data)==null?void 0:G.header);if(b){G=new _.hu(Object.keys(b)[0]);var I=_.g(b,G),h=_.g(this.secondaryHeaderData,G);h&&_.xQ(b,G,Object.assign({},h,I))}return b};
_.m.getReloadContinuation=function(){var G,b,I,h=_.e(((G=this.data)==null?void 0:(b=G.content)==null?void 0:(I=b.sectionListRenderer)==null?void 0:I.continuations)||[]);for(G=h.next();!G.done;G=h.next())if(G=G.value,G.reloadContinuationData)return G.reloadContinuationData.continuation};
_.m.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)};
_.m.forwardPopupClosedToFlowRootRenderer=function(){var G=_.Eo(this.hostElement).querySelector("ytd-flow-root-renderer");if(G&&this.hostElement.closest("ytd-popup-container"))G.onPopupClosed()};
_.m.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var G;if(!pAA.includes((G=this.theaterDisablementPanelIdentifier)!=null?G:""))if(G=_.U("web_watch_imax_theater_mode")&&this.isTheaterMode,G=_.U("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||G,_.U("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||G){var b;this.visibility=(b=this.data)==null?void 0:b.visibility;var I;this.trackEngagementPanelVisibility&&((I=this.data)==null?void 0:I.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var h,q,l,V;this.contentEmpty=!!(((h=this.data)==null?0:(q=h.content)==null?0:q.structuredDescriptionContentRenderer)&&Object.keys((l=this.data)==null?void 0:(V=l.content)==null?void 0:
V.structuredDescriptionContentRenderer).length===0);(b=_.LL().resolve(_.Jo))&&b.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.m.isTheaterModeChanged=function(){_.U("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.m.isFullscreenChanged=function(){_.U("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.m.focus=function(G){if(this.header)this.header.focus(G);else{var b;(b=_.Eo(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||b.focus(G)}};
_.m.visibilityChanged=function(){if(!_.U("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var G=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",I=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",h=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",q=h||!this.lastVisibility,l,V,D,k=((l=this.data)==null?void 0:(V=l.identifier)==null?void 0:
V.tag)||((D=this.data)==null?void 0:D.panelIdentifier);if(G&&q){var L;((L=this.data)==null?0:L.onShowCommands)&&_.Su(this.hostElement,this.data.onShowCommands,this.hostElement);k&&_.Cw().dispatch(_.wK({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:k}}))}else if(b&&I){var x;((x=this.data)==null?0:x.onHideCommands)&&_.Su(this.hostElement,this.data.onHideCommands,this.hostElement);k&&_.Cw().dispatch(_.wK({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:k}}))}G&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*SYv++));_.U("kevlar_watch_focus_on_engagement_panels")&&G&&h&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.m.notifyVisibilityChanged=function(G){var b;_.E3(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,G,(b=this.data)==null?void 0:b.targetId]);if(_.U("autonav_pause_for_comments_ep")){var I;_.O3(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(I=this.data)==null?void 0:I.targetId})}};
_.m.updateTheaterDisablement=function(){if(!_.U("kevlar_watch_theater_disablement_killswitch")){var G=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&pAA.includes(G)&&!_.U("watch_next_grid_ignore_disallowed_panels")){var b=_.BN(_.Cw().getState()),I=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";G!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():I?(this.originalTheaterState===void 0&&(this.originalTheaterState=b,this.theaterDisablementPanelIdentifier=
G),b&&_.wL(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.m.clearTheaterDisablement=function(){_.wL(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.m.updateChildVisibilityProperties=function(){this.hostElement||_.U("kevlar_panel_property_init_killswitch")||this._enableProperties();var G=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=G);var b,I=(b=this.headerElement)==null?void 0:b.firstElementChild;if(I&&!this.adHeaderImageLockupViewModel){b=G==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";I.collapsed=b;I=_.Eo(I).querySelector("#visibility-button");if(!I)return;(I=I.firstElementChild)&&
I.polymerController.is==="ytd-toggle-button-renderer"&&I.polymerController.data.isToggled!==b&&I.polymerController.set("data.isToggled",b)}var h;if(b=(h=this.contentElement)==null?void 0:h.firstElementChild)if(G&&G!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")b.removeAttribute("panel-content-visible");else{b.setAttribute("panel-content-visible","");var q;(q=b.markDirty)==null||q.call(b)}};
_.m.onYtChangeEngagementPanelVisibilityAction=function(G){var b=this,I,h=(I=this.data)==null?void 0:I.targetId,q,l,V;I=((q=this.data)==null?void 0:(l=q.identifier)==null?void 0:l.tag)||((V=this.data)==null?void 0:V.panelIdentifier);var D=_.g(G,_.Yce),k;G=h&&(D==null?void 0:D.targetId)===h||I&&(D==null?void 0:(k=D.panelIdentifier)==null?void 0:k.tag)===I;this.dialog&&G&&(D==null?void 0:D.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(h==="engagement-panel-comments-section"?_.wL(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.wL(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",I]));!_.U("kevlar_use_engagement_panel_management_component")&&G&&(h=D.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!h?_.uu.addJob(function(){b.visibility=D.visibility},2,this.hideDelayMs):this.visibility=D.visibility,D.visibility&&this.notifyVisibilityChanged(D.visibility))};
_.m.onYtScrollToEngagementPanelCommand=function(G){var b,I=(b=this.data)==null?void 0:b.targetId,h,q,l;b=((h=this.data)==null?void 0:(q=h.identifier)==null?void 0:q.tag)||((l=this.data)==null?void 0:l.panelIdentifier);G=_.g(G,_.Xnn);var V;(I&&(G==null?void 0:G.targetId)===I||b&&(G==null?void 0:(V=G.panelIdentifier)==null?void 0:V.tag)===b)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.wL(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.m.attachVEs=function(G){var b,I;(G==null?0:(b=G.content)==null?0:(I=b.productListRenderer)==null?0:I.trackingParams)&&_.qo().graftServerVe(G.content.productListRenderer.trackingParams);var h,q;(G==null?0:(h=G.content)==null?0:(q=h.transcriptRenderer)==null?0:q.trackingParams)&&_.qo().graftServerVe(G.content.transcriptRenderer.trackingParams)};
_.m.onYtUpdateEngagementPanelAction=function(G){var b,I=(b=this.data)==null?void 0:b.targetId;G=_.g(G,xc7);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))};
_.m.onYtShowEngagementPanelScrimAction=function(G){var b,I=(b=this.data)==null?void 0:b.targetId;G=_.g(G,Qjg);I&&(G==null?void 0:G.engagementPanelTargetId)===I&&(this.scrimmed=!0)};
_.m.onYtHideEngagementPanelScrimAction=function(G){var b,I=(b=this.data)==null?void 0:b.targetId;G=_.g(G,vzl);I&&(G==null?void 0:G.engagementPanelTargetId)===I&&(this.scrimmed=!1)};
_.m.getIdentifier=function(){var G,b,I;return((G=this.data)==null?void 0:G.panelIdentifier)||((b=this.data)==null?void 0:(I=b.identifier)==null?void 0:I.tag)};
_.m.getSurface=function(){var G,b;return(G=this.data)==null?void 0:(b=G.identifier)==null?void 0:b.surface};
_.kV.Object.defineProperties(LH.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"}}});
LH.prototype.visibilityChanged=LH.prototype.visibilityChanged;LH.prototype.isFullscreenChanged=LH.prototype.isFullscreenChanged;LH.prototype.isTheaterModeChanged=LH.prototype.isTheaterModeChanged;LH.prototype.dataChanged=LH.prototype.dataChanged;LH.prototype.forwardPopupClosedToFlowRootRenderer=LH.prototype.forwardPopupClosedToFlowRootRenderer;LH.prototype.onYtRendererstamperFinished=LH.prototype.onYtRendererstamperFinished;
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],LH.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],LH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],LH.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],LH.prototype,"ytEventForwardingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],LH.prototype,"data",void 0);
_.R([_.H({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.n("design:type",Object)],LH.prototype,"headerData",void 0);_.R([_.H(),_.n("design:type",Object)],LH.prototype,"secondaryHeaderData",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],LH.prototype,"visibility",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],LH.prototype,"contentEmpty",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],LH.prototype,"scrimmed",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],LH.prototype,"dialog",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],LH.prototype,"dropdown",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],LH.prototype,"darkerPanels",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],LH.prototype,"matchContentTheme",void 0);_.R([_.H(),_.n("design:type",Object)],LH.prototype,"disableAutoFill",void 0);
_.R([_.H({reflectToAttribute:!0,value:_.U("optimal_reading_width_comments_ep")}),_.n("design:type",Boolean)],LH.prototype,"optimalReadingWidthComments",void 0);_.R([_.H(),_.n("design:type",Number)],LH.prototype,"hideDelayMs",void 0);_.R([_.H({selector:_.Ud,reflectToAttribute:!0}),_.n("design:type",Object)],LH.prototype,"isFullscreen",void 0);_.R([_.H({selector:_.BN,reflectToAttribute:!0}),_.n("design:type",Object)],LH.prototype,"isTheaterMode",void 0);
_.R([_.H(),_.n("design:type",Number)],LH.prototype,"showDelayMs",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.targetId"),_.n("design:type",Object),_.n("design:paramtypes",[])],LH.prototype,"targetId",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],LH.prototype,"webSize",null);_.R([_.H(),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],LH.prototype,"hideFooterBorder",null);
_.R([_.H(),_.n("design:type",Object)],LH.prototype,"isWatch",void 0);_.R([_.H(),_.n("design:type",Object)],LH.prototype,"originalTheaterState",void 0);_.R([_.H(),_.n("design:type",Object)],LH.prototype,"theaterDisablementPanelIdentifier",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],LH.prototype,"isWatchWhilePanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],LH.prototype,"shortsPanel",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],LH.prototype,"liveChatEngagementPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],LH.prototype,"learningChatEngagementPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],LH.prototype,"liveChatReplyPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],LH.prototype,"enableAnchoredPanel",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],LH.prototype,"disableBackdropFilter",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],LH.prototype,"isPersistentPanel",void 0);_.R([_.H(),_.n("design:type",Object)],LH.prototype,"trackEngagementPanelVisibility",void 0);_.R([_.H(),_.n("design:type",Object)],LH.prototype,"overscrollContain",void 0);_.R([_.lH("#header"),_.n("design:type",HTMLElement)],LH.prototype,"headerElement",void 0);
_.R([_.lH("#header > *"),_.n("design:type",HTMLElement)],LH.prototype,"header",void 0);_.R([_.lH("ytd-section-list-renderer"),_.n("design:type",Object)],LH.prototype,"sectionListRendererElement",void 0);_.R([_.lH("panel-ad-header-image-lockup-view-model"),_.n("design:type",HTMLElement)],LH.prototype,"adHeaderImageLockupViewModel",void 0);_.R([_.lH("#content"),_.n("design:type",HTMLElement)],LH.prototype,"contentElement",void 0);
_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LH.prototype,"onYtRendererstamperFinished",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LH.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.R([_.Dd("data","isFullscreen","isTheaterMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LH.prototype,"dataChanged",null);
_.R([_.q5("isTheaterMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LH.prototype,"isTheaterModeChanged",null);_.R([_.q5("isFullscreen"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LH.prototype,"isFullscreenChanged",null);_.R([_.q5("visibility"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LH.prototype,"visibilityChanged",null);
_.R([_.N({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],LH);
_.J(LH,"ytd-engagement-panel-section-list-renderer",function(){if(f5l!==void 0)return f5l;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return f5l=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var XAK;var QZ=function(){var G=_.a.apply(this,arguments)||this;G.lastRenderedPanelIds=new Set;G.visiblePanels=[];G.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return G};
_.M(QZ,_.a);_.m=QZ.prototype;_.m.dataChanged=function(){if(this.data){for(var G=[],b=_.e(this.data),I=b.next();!I.done;I=b.next()){I=I.value;var h=void 0,q=void 0,l=(h=I)==null?void 0:(q=h.engagementPanelSectionListRenderer)==null?void 0:q.visibility;q=h=void 0;((h=I)==null?0:(q=h.engagementPanelSectionListRenderer)==null?0:q.targetId)&&l!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&G.push(I)}this.visiblePanels=G}else this.visiblePanels=[]};
_.m.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}}};
_.m.withoutVisiblePanelById=function(G){return this.visiblePanels.filter(function(b){var I;return((I=b.engagementPanelSectionListRenderer)==null?void 0:I.targetId)!==G})};
_.m.onYtChangeEngagementPanelVisibilityAction=function(G){var b=this,I=_.g(G,_.Yce);if(this.data&&(I==null?0:I.targetId)&&(I==null?0:I.visibility)){var h,q=(h=this.data.find(function(V){var D;return((D=V.engagementPanelSectionListRenderer)==null?void 0:D.targetId)===I.targetId}))==null?void 0:h.engagementPanelSectionListRenderer;
if(q){var l=this.withoutVisiblePanelById(I.targetId);I.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(G=this.data.find(function(V){var D;return((D=V.engagementPanelSectionListRenderer)==null?void 0:D.targetId)===I.targetId}))&&(l=[G].concat(_.Nz(l)));
this.hideDelayMs&&I.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&l.length===0?_.uu.addJob(function(){q.visibility=I.visibility;b.visiblePanels=l},10,this.hideDelayMs):(q.visibility=I.visibility,this.visiblePanels=l);
_.E3(this.hostElement,"yt-engagement-panels-visible-changed",[l])}}};
_.m.onRendererstamperFinished=function(){var G=new Set(this.visiblePanels.map(function(b){var I;return(I=b.engagementPanelSectionListRenderer)==null?void 0:I.targetId}));
this.handlePanelVisibilityChange(G,this.lastRenderedPanelIds);this.lastRenderedPanelIds=G};
_.m.handlePanelVisibilityChange=function(G,b){G=G===void 0?new Set:G;b=b===void 0?new Set:b;if(this.data)for(var I=_.e(this.data),h=I.next();!h.done;h=I.next()){h=h.value;var q=void 0,l=void 0,V=(q=h)==null?void 0:(l=q.engagementPanelSectionListRenderer)==null?void 0:l.targetId;if(V&&(q=b.has(V),l=G.has(V),V=void 0,!q&&l?(l=q=void 0,V=(q=h)==null?void 0:(l=q.engagementPanelSectionListRenderer)==null?void 0:l.onShowCommands):q&&!l&&(l=q=void 0,V=(q=h)==null?void 0:(l=q.engagementPanelSectionListRenderer)==
null?void 0:l.onHideCommands),V))for(h=_.e(V),V=h.next();!V.done;V=h.next())this.ytComponentBehavior.resolveCommand(V.value)}};
QZ.prototype.onRendererstamperFinished=QZ.prototype.onRendererstamperFinished;QZ.prototype.dataChanged=QZ.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],QZ.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],QZ.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],QZ.prototype,"lastRenderedPanelIds",void 0);_.R([_.H(),_.n("design:type",Number)],QZ.prototype,"hideDelayMs",void 0);_.R([_.H(),_.n("design:type",Array)],QZ.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Array)],QZ.prototype,"visiblePanels",void 0);_.R([_.H(),_.n("design:type",Boolean)],QZ.prototype,"isWatchWhilePanel",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],QZ.prototype,"dataChanged",null);_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],QZ.prototype,"onRendererstamperFinished",null);_.R([_.N({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],QZ);
_.J(QZ,"ytd-watch-engagement-panels",function(){if(XAK!==void 0)return XAK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return XAK=G},{mode:1});var $yh;var xZ=function(){return _.a.apply(this,arguments)||this};
_.M(xZ,_.a);xZ.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.ec(_.Eo(this.hostElement).querySelector("#text"),_.byX(_.qgu,this.data.companionLegalText))};
xZ.prototype.computeAutoScrollEnabled=function(G,b){return G&&!b};
xZ.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
xZ.prototype.onToggleTap=function(){this.expanded=!this.expanded};
xZ.prototype.expandedChanged=xZ.prototype.expandedChanged;xZ.prototype.dataChanged=xZ.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.eeI),_.n("design:type",Object)],xZ.prototype,"ytdAutoScrollBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],xZ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],xZ.prototype,"expanded",void 0);
_.R([_.H({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.n("design:type",Boolean)],xZ.prototype,"autoScrollEnabled",void 0);_.R([_.H(),_.n("design:type",String)],xZ.prototype,"expanderIcon",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xZ.prototype,"dataChanged",null);
_.R([_.q5("expanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xZ.prototype,"expandedChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],xZ);
_.J(xZ,"ytd-companion-legal-text-renderer",function(){if($yh!==void 0)return $yh;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $yh=G},{mode:1});var GXo;var fH=function(){var G=_.a.apply(this,arguments)||this;G.buttonUpdate=_.U("web_modern_buttons");G.kevlarWatchGrid=_.U("kevlar_watch_grid");G.centerAlignDescription=_.U("action_companion_center_align_description");G.truncateDomain=_.U("action_companion_truncate_domain");G.enableMonoStyle=_.U("enable_default_mono_cta_migration_web_client");return G};
_.M(fH,_.a);_.m=fH.prototype;_.m.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.m.getOnLayoutVisibleCallback=function(){var G=_.Ge("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.m.getLayoutId=function(){var G=_.Ge("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.m.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",fH.JSC$23254_DEFAULT_AD_BADGE_RENDERER);var G=this.getOnLayoutVisibleCallback();G&&G()}};
_.m.getButtonRenderer=function(G){return G.actionButton&&_.g(G.actionButton,_.bz)?(delete _.g(G.actionButton,_.bz).navigationEndpoint,_.g(G.actionButton,_.bz)):{}};
_.m.onClick=function(G){var b=this;if((!_.U("web_modern_buttons")||!_.NK(_.Wy(G),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){G=_.Kk();var I=this.getLayoutId();G&&I&&_.U("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(h){(new _.ur(h)).executeCommand(b.data.navigationEndpoint,I)}):_.U("kevlar_companion_resolve_command_killswitch")?_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.wL(this.hostElement,"yt-companion-ad-clicked",["action-companion",I])}};
_.kV.Object.defineProperties(fH.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return((G=this.data)==null?0:(b=G.detailsLine)==null?0:(I=b.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,b,I,h;return((G=this.data)==null?0:(b=G.detailsLine)==null?0:(I=b.adRating)==null?0:(h=I.ratingIcon)==null?0:h.iconType)?_.pn(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h;return((G=this.data)==null?0:(b=G.detailsLine)==null?0:(I=b.texts)==null?0:(h=I[0])==null?0:h.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,b;return((G=this.data)==null?0:(b=G.description)==null?0:b.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=_.Ge("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}}});
fH.prototype.onClick=fH.prototype.onClick;fH.prototype.dataChanged=fH.prototype.dataChanged;fH.JSC$23254_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.qP("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],fH.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],fH.prototype,"rendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fH.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],fH.prototype,"buttonUpdate",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],fH.prototype,"kevlarWatchGrid",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],fH.prototype,"centerAlignDescription",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],fH.prototype,"truncateDomain",void 0);
_.R([_.H({computed:"computeButtonOverride(buttonUpdate)"}),_.n("design:type",Object)],fH.prototype,"buttonOverride",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],fH.prototype,"enableMonoStyle",void 0);_.R([_.P("data.detailsLine.adRating.ratingText"),_.n("design:type",Object),_.n("design:paramtypes",[])],fH.prototype,"getRating",null);_.R([_.P("getRating"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],fH.prototype,"computeRatingHidden",null);
_.R([_.P("data.detailsLine.adRating.ratingIcon.iconType"),_.n("design:type",Object),_.n("design:paramtypes",[])],fH.prototype,"iconType",null);_.R([_.P("data.detailsLine.texts.0.text"),_.n("design:type",Object),_.n("design:paramtypes",[])],fH.prototype,"getDetailsLine",null);_.R([_.P("getDetailsLine"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],fH.prototype,"computeDetailsLineHidden",null);
_.R([_.P("data.description.text"),_.n("design:type",Object),_.n("design:paramtypes",[])],fH.prototype,"getDescriptionText",null);_.R([_.P("getDescriptionText"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],fH.prototype,"computeDescriptionTextHidden",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],fH.prototype,"interactionLoggingClientData",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],fH.prototype,"hideBanner",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fH.prototype,"dataChanged",null);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],fH.prototype,"onClick",null);_.R([_.N({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],fH);
_.J(fH,"ytd-action-companion-ad-renderer",function(){if(GXo!==void 0)return GXo;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return GXo=G},{mode:_.nn("kevlar_poly_si_batch_j067")?1:2});var b87;var I8M;var Th=function(){var G=_.a.apply(this,arguments)||this;G.buttonUpdate=_.U("web_modern_buttons");G.hideLegacyBanner=_.U("enable_dsa_one_click_ata_translators_infeed_elements");G.adInfoButtonStyle="mono";G.adInfoButtonType="text";G.noDotAdBadge=!0;return G};
_.M(Th,_.a);_.m=Th.prototype;_.m.getOnLayoutVisibleCallback=function(){var G=_.Ge("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.m.getLayoutId=function(){var G=_.Ge("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.m.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?_.KA(G.url):void 0;this.imageWidth=G.width||0;this.imageHeight=G.height||0}this.data.clickthroughEndpoint&&_.g(this.data.clickthroughEndpoint,_.bx)&&(G=_.g(this.data.clickthroughEndpoint,_.bx).url,_.U("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
G||"":G?(G=_.KA(G),this.clickThroughUrl=_.aI(G)):this.clickThroughUrl=void 0);(G=this.getOnLayoutVisibleCallback())&&G()}};
_.m.onClick=function(G){_.NK(_.Wy(G),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(G)};
_.m.handleClick=function(){var G=this;this.data&&this.data.clickthroughEndpoint&&(_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(b){G.macroReplacementBehavior.sendServiceRequestAction([b])}),_.wL(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.m.onLoad=function(){_.E3(this.hostElement,"yt-refit-popups-action")};
_.kV.Object.defineProperties(Th.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var G=_.Ge("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.Ge("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}}});
Th.prototype.onLoad=Th.prototype.onLoad;Th.prototype.onClick=Th.prototype.onClick;Th.prototype.dataChanged=Th.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Th.prototype,"rendererBehavior",void 0);_.R([_.z(D9v.YtMacroReplacementBehavior),_.n("design:type",Object)],Th.prototype,"macroReplacementBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Th.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Th.prototype,"buttonUpdate",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Th.prototype,"hideLegacyBanner",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Th.prototype,"adInfoButtonStyle",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Th.prototype,"adInfoButtonType",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Th.prototype,"macros",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Th.prototype,"interactionLoggingClientData",null);_.R([_.H(),_.n("design:type",String)],Th.prototype,"clickThroughUrl",void 0);_.R([_.H(),_.n("design:type",_.Fa)],Th.prototype,"imageSrc",void 0);_.R([_.H(),_.n("design:type",Number)],Th.prototype,"imageWidth",void 0);_.R([_.H(),_.n("design:type",Number)],Th.prototype,"imageHeight",void 0);_.R([_.H(),_.n("design:type",Object)],Th.prototype,"noDotAdBadge",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Th.prototype,"dataChanged",null);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Th.prototype,"onClick",null);_.R([_.hI("load"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Th.prototype,"onLoad",null);_.R([_.N({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Th);
_.J(Th,"ytd-image-companion-renderer",function(){if(I8M!==void 0)return I8M;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return I8M=G},{mode:_.nn("kevlar_poly_si_batch_j067")?1:2});var hxv;var Bb=function(){return _.a.apply(this,arguments)||this};
_.M(Bb,_.a);_.m=Bb.prototype;_.m.dataChanged=function(){this.set("data.adBadge",Bb.JSC$23263_DEFAULT_AD_BADGE_RENDERER);if(this.data){var G=this.getOnLayoutVisibleCallback();G&&G()}};
_.m.getOnLayoutVisibleCallback=function(){var G=_.Ge("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.m.getLayoutId=function(){var G=_.Ge("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.m.onCompanionClicked=function(G){this.data&&(G.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.wL(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.m.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var G=_.Kk(),b=this.getLayoutId(),I=this.data.clickToAdvSiteEndpoint;G&&b&&_.U("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(h){(new _.ur(h)).executeCommand(I,b)}):_.O3(this.hostElement,"yt-navigate",{endpoint:I})}};
_.m.sendTrackingPings=function(G){if(G&&G.length!==0&&G[0].loggingUrls&&(G=G[0].loggingUrls.map(this.getBaseUrl)))for(var b=0;b<G.length;b++)_.Gs(G[b])};
_.m.getBaseUrl=function(G){return G.baseUrl||""};
_.kV.Object.defineProperties(Bb.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.Ge("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}}});
Bb.prototype.onCompanionClicked=Bb.prototype.onCompanionClicked;Bb.prototype.dataChanged=Bb.prototype.dataChanged;Bb.JSC$23263_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.qP("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Bb.prototype,"data",void 0);_.R([_.lH("#title"),_.n("design:type",HTMLElement)],Bb.prototype,"shopTitle",void 0);
_.R([_.Dd("data.impressionEndpoints"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Bb.prototype,"dataChanged",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Bb.prototype,"interactionLoggingClientData",null);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Bb.prototype,"onCompanionClicked",null);
_.R([_.N({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Bb);
_.J(Bb,"ytd-shopping-companion-renderer",function(){if(hxv!==void 0)return hxv;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return hxv=G},{mode:1});_.JN(_.C(function(G){var b=G.data;G=_.L8({visibilityCallback:function(h){var q,l=(q=b().interaction)==null?void 0:q.onFirstVisible;h&&l&&_.Zm(l)},
showOption:_.xr});var I=_.tW(function(){return b().interaction},MTl);
_.Jf(function(){var h,q;q=(q=_.Ge("yt.www.ads.eventcache.getLastCompanionData"))?(q=q())&&q.onLayoutVisibleCallback:null;(h=q)==null||h()},"Kn");
return _.v("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Xu(function(h){_.E3(h.currentTarget,"yt-refit-popups-action")}),
el:_.Wv(G,I),"aria-label":function(){var h,q;return(h=b().interaction)==null?void 0:(q=h.accessibility)==null?void 0:q.label}},_.v("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.v(_.VX,{data:function(){return b().adImage}},{adImageViewModel:function(h){return _.v(_.aE,{data:h.data,
targetHeight:80,customCommandResolver:MTl})}})),_.v("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.v("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.v(_.VX,{data:function(){return b().adBadge}},{adBadgeViewModel:function(h){return _.v(_.AE,{data:h.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.v("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.v(_.VX,{data:function(){return b().menu}},{buttonViewModel:_.sQ}))))},"Ln"),"banner-image-layout-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;G=_.L8({visibilityCallback:function(h){var q,l=(q=b().interaction)==null?void 0:q.onFirstVisible;h&&l&&_.Zm(l)},
showOption:_.xr});var I=_.tW(function(){return b().interaction},Z0v);
_.Jf(function(){var h,q;q=(q=_.Ge("yt.www.ads.eventcache.getLastCompanionData"))?(q=q())&&q.onLayoutVisibleCallback:null;(h=q)==null||h()},"Mn");
return _.v("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.Wv(G,I)},_.v("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.v(_.VX,{data:function(){return b().adImage}},{adImageViewModel:function(h){return _.v(_.aE,{data:h.data,
targetHeight:80,customCommandResolver:Z0v})}})),_.v("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.v("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.v(_.VX,{data:function(){return b().adAvatarLockup}},{adAvatarLockupViewModel:function(h){return _.v(E2o,{data:h.data,
customCommandResolver:Z0v})}})),_.v(_.VX,{data:function(){return b().adButton}},{adButtonViewModel:function(h){return _.v(_.TC,{data:h.data,
customCommandResolver:Z0v})}}),_.v("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.v(_.VX,{data:function(){return b().menu}},{buttonViewModel:_.sQ}))))},"Nn"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.hV}});var qza={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"},UX=function(){var G=_.a.apply(this,arguments)||this;G.updateCompanionDataJobId=0;G.contentVideoId=null;G.player=null;G.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return G};
_.M(UX,_.a);_.m=UX.prototype;_.m.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:qza}}};
_.m.attached=function(){var G=this,b=_.Kk();b&&b.getPlayerPromise().then(function(I){G.getCachedDataAndListen(I)})};
_.m.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.m.updateRendererStamper=function(){var G={};if(this.data)for(var b in qza)if(this.data[b]){G[b]=this.data[b];break}if(this.oneofRenderer!=void 0||Object.keys(G).length)this.oneofRenderer=G};
_.m.getCachedDataAndListen=function(G){var b=this.retrieveCachedCompanionData();b&&Object.keys(b).length&&this.receiveCompanionData(b);this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=G};
_.m.retrieveCachedCompanionData=function(){return _.hd.yt&&_.hd.yt.www&&_.hd.yt.www.ads&&_.hd.yt.www.ads.eventcache&&_.hd.yt.www.ads.eventcache.getLastCompanionData?_.hd.yt.www.ads.eventcache.getLastCompanionData():null};
_.m.receiveCompanionData=function(G){G&&Object.keys(G).length?(this.contentVideoId=G.contentVideoId,this.setCompanionData(G)):this.setCompanionData(G)};
_.m.setCompanionData=function(G){this.cancelPendingCompanionAdJobs();if(G){this.updateCompanionDataJobId=0;for(var b in qza)qza.hasOwnProperty(b)&&(this.data[b]=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),_.E3(this.hostElement,
"yt-hide-unlimited-offer-module"),_.E3(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()}};
_.m.dataChanged=function(){var G=this,b=_.Kk();b?b.getPlayerPromise().then(function(I){G.contentVideoId&&I.getVideoUrl().includes("v="+G.contentVideoId)||(G.cancelPendingCompanionAdJobs(),G.updateRendererStamper())}):_.bB(Error("bp"))};
_.m.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.uu.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.m.handleCompanionAdClicked=function(G,b){this.player.onAdUxClicked(G,b);this.player.pauseVideo()};
UX.prototype.dataChanged=UX.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],UX.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],UX.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],UX.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],UX.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],UX.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],UX.prototype,"oneofRenderer",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],UX.prototype,"dataChanged",null);_.R([_.N({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],UX);
_.J(UX,"ytd-companion-slot-renderer",function(){if(b87!==void 0)return b87;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return b87=G},{mode:_.nn("kevlar_poly_si_batch_j067")?
1:2});var j1z;var sX=function(){return _.a.apply(this,arguments)||this};
_.M(sX,_.a);sX.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
sX.prototype.dataChanged=sX.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],sX.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],sX.prototype,"companionSlotData",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sX.prototype,"dataChanged",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],sX);
_.J(sX,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(j1z!==void 0)return j1z;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return j1z=G},{mode:1});var l8A;var gg=function(){var G=_.a.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,_.D1(G,function(){var b=G.COMPACT_EVENT_COUNT-1,I;(I=_.Eo(G.hostElement).querySelector("#event-"+b))==null||I.focus()}))};
return G};
_.M(gg,_.a);_.m=gg.prototype;_.m.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.m.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.m.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.I9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.I9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.I9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.I9(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.I9(this.infoTooltip,this.infoTooltip.hide))};
_.m.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.I9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.I9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.I9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.I9(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.I9(this.infoTooltip,this.infoTooltip.hide))};
_.m.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)};
_.m.onShowingMoreChanged=function(){var G;this.showingMoreChanged((G=this.showingMore)!=null?G:!1)};
_.m.showingMoreChanged=function(G){var b=this.get("data.events")||[];this.set("restEvents",b.slice(1,G?b.length:this.COMPACT_EVENT_COUNT).map(function(I){return I.ticketEventRenderer}));
b.slice(0,G?b.length:this.COMPACT_EVENT_COUNT).forEach(function(I){var h=_.gL();I=I.ticketEventRenderer.trackingParams;_.s3()&&h&&I&&(I=_.VB(I),h&&_.rK(h,I))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.m.computeAriaLabel=function(G){return G.subtitle1+", "+G.subtitle2};
_.m.logTap=function(G){_.s3()&&this.ytRendererBehavior.logExplicitClick(G)};
_.m.isKeyboardAction=function(G){return this.get("detail.x",G)===0&&this.get("detail.y",G)===0};
_.m.onFirstEventTap=function(G){G.target&&this.handleTap(G.target,this.firstEvent,this.isKeyboardAction(G))};
_.m.onTicketLinkTap=function(G){G.target&&this.handleTap(G.target,G.model.item,this.isKeyboardAction(G))};
_.m.handleTap=function(G,b,I){if(b.buttonCommand)if(b.hasMultipleOffers)Object.assign(_.g(b.buttonCommand,_.WB),{properties:{source:I?"keyboard":"tap"}}),this.logTap(b),this.popupPositionTarget=G,_.Su(this.hostElement,[b.buttonCommand],this.hostElement);else{var h;if((h=_.g(b.buttonCommand,_.bx))==null?0:h.url)this.logTap(b),_.bp(window,_.g(b.buttonCommand,_.bx).url)}};
gg.prototype.onShowingMoreChanged=gg.prototype.onShowingMoreChanged;gg.prototype.dataChanged=gg.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],gg.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],gg.prototype,"firstEvent",void 0);_.R([_.H(),_.n("design:type",Object)],gg.prototype,"restEvents",void 0);_.R([_.H(),_.n("design:type",String)],gg.prototype,"imageUrl",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],gg.prototype,"showingMore",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],gg.prototype,"canShowMore",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],gg.prototype,"skinnyMode",void 0);_.R([_.H(),_.n("design:type",HTMLElement)],gg.prototype,"popupPositionTarget",void 0);_.R([_.lH("#banner-info-tooltip"),_.n("design:type",Object)],gg.prototype,"infoTooltip",void 0);
_.R([_.lH("#info-container"),_.n("design:type",HTMLElement)],gg.prototype,"infoContainer",void 0);_.R([_.lH("#shelf-toggler"),_.n("design:type",HTMLElement)],gg.prototype,"shelfToggleButton",void 0);_.R([_.lH("#separator"),_.n("design:type",HTMLDivElement)],gg.prototype,"separator",void 0);_.R([_.H(),_.n("design:type",String)],gg.prototype,"shelfTogglerLabelText",void 0);_.R([_.H(),_.n("design:type",String)],gg.prototype,"shelfTogglerIcon",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gg.prototype,"dataChanged",null);_.R([_.Dd("showingMore"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gg.prototype,"onShowingMoreChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],gg);
_.J(gg,"ytd-ticket-shelf-renderer",function(){if(l8A!==void 0)return l8A;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return l8A=G},{mode:1});var myK;var exl;var Vev=function(){return _.a.apply(this,arguments)||this};
_.M(Vev,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Vev.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Vev.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Vev);
_.J(Vev,"ytd-comments-entry-point-message-renderer",function(){if(exl!==void 0)return exl;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return exl=G},{mode:1});var Dyz;var Ap=function(){return _.a.apply(this,arguments)||this};
_.M(Ap,_.a);_.kV.Object.defineProperties(Ap.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.teaserAvatar)}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ap.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ap.prototype,"hasAvatar",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Ap);
_.J(Ap,"ytd-comments-entry-point-teaser-renderer",function(){if(Dyz!==void 0)return Dyz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Dyz=G},{mode:1});var cU7;var kXg=function(){return _.a.apply(this,arguments)||this};
_.M(kXg,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kXg.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],kXg.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],kXg);
_.J(kXg,"ytd-comments-simplebox-renderer",function(){if(cU7!==void 0)return cU7;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return cU7=G},{mode:1});var Ma=function(){var G=_.a.apply(this,arguments)||this;G.fullHeight=!_.U("comment_teaser_full_height_kill_switch")&&_.U("kevlar_watch_grid");return G};
_.M(Ma,_.a);Ma.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"}}}};
Ma.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Ma.prototype.onTap=function(){var G=this.tapCommand;G&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(G))};
Ma.prototype.onKeyUp=function(G){if(G.keyCode===13)this.onTap()};
_.kV.Object.defineProperties(Ma.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.onTap)return this.data.onTap;var b,I;if(((b=this.data)==null?0:b.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}}});
Ma.prototype.onKeyUp=Ma.prototype.onKeyUp;Ma.prototype.onTap=Ma.prototype.onTap;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ma.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Ma.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ma.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ma.prototype,"fullHeight",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ma.prototype,"tapCommand",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ma.prototype,"simpleboxPlaceholder",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ma.prototype,"hasSimpleboxPlaceholder",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ma.prototype,"simpleboxAvatar",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ma.prototype,"teaserContent",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ma.prototype,"hasTeaserContent",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ma.prototype,"teaserAvatar",null);
_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ma.prototype,"hasTeaserAvatar",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ma.prototype,"messageText",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ma.prototype,"contentRenderer",null);_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ma.prototype,"hasContents",null);
_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Ma.prototype,"hasContentRenderer",null);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ma.prototype,"onTap",null);_.R([_.hI("keypress"),_.n("design:type",Function),_.n("design:paramtypes",[_.sn]),_.n("design:returntype")],Ma.prototype,"onKeyUp",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Ma);
_.J(Ma,"ytd-comments-entry-point-header-renderer",function(){if(myK!==void 0)return myK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return myK=G},{mode:1});var vGo;_.JN(_.u3n,"yt-animated-rolling-number",{props:{numberText:_.hV,numberValue:_.hV,heightPx:_.hV,fontSizeMultiplier:_.hV,shouldAnimate:_.hV,forceRollUp:_.hV}});var Ltv=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Q1v={numberText:"",heightPx:2*Ltv,shouldAnimate:!1},Zh=function(){var G=_.a.apply(this,arguments)||this;G.usingAnimatedComponents=!0;G.wasDetailed=!1;G.JSC$23300_browserSupportsAnimation=_.U("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=Q1v;G.dateTextProps=
Q1v;G.metadataBadgesInDescription=_.U("web_metadata_badges_in_description");return G};
_.M(Zh,_.a);_.m=Zh.prototype;_.m.attached=function(){var G=this;_.LL().resolve(_.BU).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(b){G.set("videoPrimaryInfoRenderer.subtitle",b)})};
_.m.detached=function(){_.LL().resolve(_.BU).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.m.resetAnimationState=function(){this.shouldAnimate=!1};
_.m.updateDynamicMetadata=function(){if(this.JSC$23300_browserSupportsAnimation){if(!this.detailed){var G,b,I,h;var q=(G=this.videoPrimaryInfoRenderer)==null?void 0:(b=G.viewCount)==null?void 0:(I=b.videoViewCountRenderer)==null?void 0:(h=I.extraShortViewCount)==null?void 0:h.simpleText;var l,V,D,k;var L=(l=this.videoPrimaryInfoRenderer)==null?void 0:(V=l.viewCount)==null?void 0:(D=V.videoViewCountRenderer)==null?void 0:(k=D.shortViewCount)==null?void 0:k.simpleText}if(!L){var x,f,T,B;q=(x=this.videoPrimaryInfoRenderer)==
null?void 0:(f=x.viewCount)==null?void 0:(T=f.videoViewCountRenderer)==null?void 0:(B=T.unlabeledViewCountValue)==null?void 0:B.simpleText;var A,t,y,F;L=(A=this.videoPrimaryInfoRenderer)==null?void 0:(t=A.viewCount)==null?void 0:(y=t.videoViewCountRenderer)==null?void 0:(F=y.viewCount)==null?void 0:F.simpleText}var W,O,K;G=Number((W=this.videoPrimaryInfoRenderer)==null?void 0:(O=W.viewCount)==null?void 0:(K=O.videoViewCountRenderer)==null?void 0:K.originalViewCount);var u,w;W=(u=this.videoPrimaryInfoRenderer)==
null?void 0:(w=u.relativeDateText)==null?void 0:w.simpleText;var $a;u=!(($a=this.videoPrimaryInfoRenderer)==null||!$a.relativeDateText);if(q&&L&&G&&(W||!u)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;$a=L.split(new RegExp("("+q+")"));q=_.ao($a[0]);var ev;L={numberText:(ev=$a[1])!=null?ev:"",numberValue:G,heightPx:2*Ltv,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var LO;ev=((LO=$a[2])!=null?LO:"")+"  ";this.setViewCount(L,q,_.ao(ev));
if(!this.detailed&&u){q=W.split(/(\d+)/);LO=_.ao(q[0]);var td;ev={numberText:(td=q[1])!=null?td:"",heightPx:2*Ltv,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var xa;td=((xa=q[2])!=null?xa:"")+"  ";this.setDateText(ev,LO,_.ao(td))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.m.setViewCount=function(G,b,I){_.NO(b)!==_.NO(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=b);this.viewCountProps.numberText!==(G==null?void 0:G.numberText)&&(this.viewCountProps=G||Q1v);_.NO(I)!==_.NO(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=I)};
_.m.setDateText=function(G,b,I){_.NO(b)!==_.NO(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=b);this.dateTextProps.numberText!==(G==null?void 0:G.numberText)&&(this.dateTextProps=G||Q1v);_.NO(I)!==_.NO(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=I)};
_.m.onYtUpdateViewershipAction=function(G){this.videoPrimaryInfoRenderer&&(_.g(G,JCa).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.g(G,JCa).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.g(G,JCa).viewCount)))};
_.m.onYtUpdateDateTextAction=function(G){if(this.videoPrimaryInfoRenderer){G=_.g(G,_.YBE).dateText;this.shouldAnimate=!0;var b;((b=this.videoPrimaryInfoRenderer)==null?0:b.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",G):this.set("videoPrimaryInfoRenderer.dateText",G)}};
_.kV.Object.defineProperties(Zh.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return PII(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.NO(PII(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.NO(this.viewCountPreNumberText),this.viewCountProps.numberText,_.NO(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.NO(this.dateTextPreNumberText),this.dateTextProps.numberText,_.NO(this.dateTextPostNumberText)].join("")}}});
Zh.prototype.updateDynamicMetadata=Zh.prototype.updateDynamicMetadata;Zh.prototype.resetAnimationState=Zh.prototype.resetAnimationState;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Zh.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Zh.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Zh.prototype,"videoPrimaryInfoRenderer",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zh.prototype,"detailed",void 0);_.R([_.H(),_.n("design:type",Object)],Zh.prototype,"shouldAnimate",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zh.prototype,"viewCountPreNumberText",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zh.prototype,"viewCountProps",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zh.prototype,"viewCountPostNumberText",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zh.prototype,"dateTextPreNumberText",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zh.prototype,"dateTextProps",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zh.prototype,"dateTextPostNumberText",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zh.prototype,"metadataBadgesInDescription",void 0);_.R([_.P("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.n("design:type",Object),_.n("design:paramtypes",[])],Zh.prototype,"infoText",null);
_.R([_.P("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.n("design:type",String),_.n("design:paramtypes",[])],Zh.prototype,"descriptionInfoTooltipText",null);_.R([_.P("detailed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Zh.prototype,"showDescriptionInfoTooltip",null);
_.R([_.P("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.n("design:type",String),_.n("design:paramtypes",[])],Zh.prototype,"animatedViewCountAccessibilityLabel",null);_.R([_.P("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.n("design:type",String),_.n("design:paramtypes",[])],Zh.prototype,"animatedDateTextAccessibilityLabel",null);
_.R([_.q5("videoPrimaryInfoRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zh.prototype,"resetAnimationState",null);_.R([_.q5("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zh.prototype,"updateDynamicMetadata",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Zh);
_.J(Zh,"ytd-watch-info-text",function(){if(vGo!==void 0)return vGo;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vGo=G},{mode:1});var xyI;var f8I="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var Tal=_.C(function(G){var b=G.data;var I=G.setTapCommand;_.K0(function(){var h=_.s0(b().onTap);I(h)},"CLm0Xe");
return _.v("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.v(_.VX,{data:function(){return b().avatar}},{avatarViewModel:_.Om}),_.v("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.v("span",null,function(){return b().simpleboxText})))},"Pn");var BaE=_.C(function(G){return _.v("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.v(_.Q,{cond:function(){return _.g(G.data().avatar,_.AW)},
then:function(b){return _.v(_.Om,{data:b,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.v("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.v(_.IS,{text:function(){return G.data().teaserText}})))},"Qn");var Uy7=_.C(function(G){var b=G.data;var I=G.setTapCommand;_.K0(function(){var h=_.s0(b().onTap);I(h)},"qxjCCd");
return _.v("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.v(_.VX,{data:function(){return b().teasers}},{commentsEntryPointTeaserViewModel:BaE}))},"Sn");var s1d=_.C(function(G){var b=G.data;var I=G.setTapCommand;_.K0(function(){var h=_.s0(b().onTap);I(h)},"CRZByf");
return _.v("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.v(_.IS,{text:function(){return b().messageText}}))},"Un");var gGd=_.C(function(G){var b=G.data;var I=G.setTapCommand;var h=G.isDisabled;_.K0(function(){var q=(h==null?0:h())?void 0:_.s0(b().onTap);I(q)},"GZxRqd");
return _.v("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.v(_.ha,{icon:function(){return b().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.v(_.Q,{cond:function(){return b().image},
then:function(q){return _.v(_.Fu,{data:q,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.v(_.IS,{text:function(){return b().text},
className:function(){return b().image||b().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.v(_.VX,{data:function(){return b().button}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:h==null?void 0:h()}}})}}))},"Wn");var AUI=_.C(function(G){var b=G.data;var I=G.itemIndex;var h=G.selectedIndex;var q=G.indexUpdatedCallback;var l=G.observer;G=G.title;var V=_.ee("yt-carousel-item-view-model",function(f){l&&l().observe(f)}),D=function(f){I()===h()&&q(f)},k=_.m2(IZ7),L=_.m2(_.jtr),x=function(){var f,T,B,A,t;
return((f=b())==null?void 0:f.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!k()||((T=b())==null?void 0:T.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((B=L())==null?void 0:B.includes("PAposts_by_host"))||((A=b())==null?void 0:A.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((t=L())==null?void 0:t.includes("PAyouchat"))};
return _.v("yt-carousel-item-view-model",{el:V,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":G},_.v(_.VX,{data:function(){var f,T;return(T=(f=_.g(b().carouselItem,DcK))==null?void 0:f.textCarousel)!=null?T:b().carouselItem}},{textCarouselItemViewModel:function(f){return _.v(gGd,{data:f.data,
setTapCommand:D,isDisabled:x})},
commentTeaserCarouselItemViewModel:function(f){return _.v(Uy7,{data:f.data,setTapCommand:D})},
commentInputBoxCarouselItemViewModel:function(f){return _.v(Tal,{data:f.data,setTapCommand:D})},
commentsEntryPointMessageViewModel:function(f){return _.v(s1d,{data:f.data,setTapCommand:D})}}))},"Xn");var Meo=_.C(function(G){var b=G.numDots;var I=G.activeIndex;return _.v("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.v(_.aj,{each:function(){return Array.from({length:b()})},
keyBy:"INDEX"},function(h,q){return _.v("div",{class:function(){var l={};return _.xU("ytCarouselDotsShapeDot",(l.ytCarouselDotsShapeDotActive=q===I(),l))}})}))},"Yn");var Z8K=_.C(function(G){var b=G.data;var I=G.handleCarouselNavigation;var h=G.numItems;var q=G.selectedIndex;var l=function(){return{disabled:q()===0}},V=function(){return{disabled:q()===h()-1}};
return _.v("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.v("div",null,_.v("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return b().title}),_.v(_.Q,{cond:function(){return b().subtitle},
then:function(D){return _.v("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return b().subtitleAccessibilityText}},D)}})),_.v(_.Q,{cond:function(){return h()>1},
then:function(){return _.v("div",{class:"ytCarouselTitleViewModelNavigation"},_.v(Meo,{numDots:h,activeIndex:q}),_.v(_.Q,{cond:function(){return b().previousButton},
then:function(D){return _.v(_.VX,{data:D},{buttonViewModel:function(k){return _.v(_.sQ,{data:k.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(-1)},
buttonOverrides:l})}})}}),_.v(_.Q,{cond:function(){return b().nextButton},
then:function(D){return _.v(_.VX,{data:D},{buttonViewModel:function(k){return _.v(_.sQ,{data:k.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(1)},
buttonOverrides:V})}})}}))}}))},"Zn");_.JN(_.C(function(G){var b=G.data;var I,h=_.ee("yt-video-metadata-carousel-view-model"),q=_.ee("div",function(u){var w=function(){var $a=u.offsetWidth*t(),ev=24*(t()-1);T($a+ev)};
w();window.ResizeObserver&&(I=new ResizeObserver(w),I.observe(u))}),l=_.wy("HTML_DIR")==="rtl",V=!1,D=0,k=0;
G=_.e(_.ZZ(0,void 0,"M49TDf"));var L=G.next().value,x=G.next().value;G=_.e(_.ZZ(0,void 0,"zLIok"));var f=G.next().value,T=G.next().value;G=_.e(_.ZZ(!1,void 0,"bhelhc"));var B=G.next().value,A=G.next().value,t=function(){var u,w,$a;return($a=(u=b())==null?void 0:(w=u.carouselTitles)==null?void 0:w.length)!=null?$a:0},y=function(){q.value&&q.value.scrollLeft!==D&&x((l?q.value.scrollLeft<D:q.value.scrollLeft>D)?Math.min(L()+1,t()-1):Math.max(L()-1,0))},F;
window.IntersectionObserver&&(F=new IntersectionObserver(function(u){u=_.e(u);for(var w=u.next();!w.done;w=u.next())if(w.value.isIntersecting){if(V){V=!1;break}y()}else x(k)},{threshold:.2}));
_.K0(function(){if(q.value){var u=(l?-1:1)*(f()/t()+12)*(B()&&F?k:L());typeof q.value.scrollTo==="function"?q.value.scrollTo({left:u,behavior:"smooth"}):q.value.scrollLeft=u;D=u;k=B()&&F?k:L()}},"s9rbgc");
var W,O=function(u){W=u};
_.uI(function(){var u;(u=I)==null||u.disconnect();var w;(w=F)==null||w.disconnect()});
var K=function(u){u=L()+u;u>=0&&u<t()&&(V=!0,x(u))};
return _.v("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:h,"on:click":_.Xu(function(u){if(_.TZ(_.fM(u),h.value,["BUTTON".toString()])||!W)return!1;_.LL().resolve(_.xW).resolveCommand(W,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Xu(function(){A(!0);return!1}),
"on:touchend":_.Xu(function(){F||y();A(!1);return!1}),
hidden:function(){var u,w;return!((u=b())==null?0:(w=u.carouselItems)==null?0:w.length)}},_.v("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.v(_.Q,{cond:function(){return b().carouselTitles},
then:function(u){return _.v(_.VX,{data:function(){return u()[B()&&F?k:L()]}},{carouselTitleViewModel:function(w){return _.v(Z8K,{data:w.data,
handleCarouselNavigation:K,numItems:t,selectedIndex:L})}})}})),_.v("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:q},_.v("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+f()+"px;"}},_.v(_.Q,{cond:function(){return b().carouselItems},
then:function(u){return _.v(_.aj,{each:u},function(w,$a){return _.v(_.VX,{data:function(){return w}},{carouselItemViewModel:function(ev){return _.v(AUI,{data:ev.data,
itemIndex:$a,selectedIndex:L,indexUpdatedCallback:O,observer:F,title:function(){a:{var LO=$a();var td,xa=(td=b())==null?void 0:td.carouselTitles;if(xa&&(LO=xa[LO])){var Uj;LO=(Uj=_.g(LO,Vkv))==null?void 0:Uj.title;break a}LO=void 0}return LO}})}})})}}))))},"ao"),"yt-video-metadata-carousel-view-model",{props:{data:_.hV}});var teg=_.U("web_action_buttons_update_owner_width")?32:12,tp=function(){var G=_.a.apply(this,arguments)||this;G.isHovering=!1;G.enableColorSampling=_.U("web_delhi_colorful_sd");G.metadataBadgesInDescription=_.U("web_metadata_badges_in_description");G.descriptionCollapsed=!0;G.useFadedScrimDescription=_.U("kevlar_enable_faded_scrim_on_description");G.skinnyMode=!1;G.playlist=!1;G.isDark=document.documentElement.hasAttribute("dark");G.disableVideoOwnerOnTap=_.U("swatchie_video_owner_on_tap_ks");G.swatcherooDelayLoad=
_.U("swatcheroo_enable_ghost_cards");G.primaryMenuWidth=0;G.videoId="";G.titleHeadlineXs=_.U("web_watch_typography_title_headline_xs");G.titleHeadlineS=_.U("web_watch_typography_title_headline_s");G.titleHeadlineM=_.U("web_watch_typography_title_headline_m");G.titleHashtagBlackLinkified=_.U("web_title_hashtag_black_linkified");G.titleHashtagGreyLinkified=_.U("web_title_hashtag_grey_linkified");G.actionButtonsUpdateOwnerWidth=_.U("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};
_.M(tp,_.a);_.m=tp.prototype;_.m.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.m.updateOwnerAndDescriptionPosition=function(){_.U("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.ye(this.bottomRowElement,this.ownerElement)):(_.ye(this.bottomRowElement,this.descriptionElement),_.ye(this.topRowElement,this.ownerElement)))};
_.m.titleOnTap=function(G){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.NK(_.Wy(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||this.handleExpandDescriptionCommands()}};
_.m.videoOwnerOnTap=function(G){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.NK(_.Wy(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.m.detached=function(){var G=this,b;return _.c(function(I){(b=G.resizeObserver)==null||b.disconnect();_.ip(I)})};
_.m.maybeAttachResizeObserver=function(){var G=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.GB(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){G.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.m.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var G=this.hostElement.clientWidth,b=Math.max(this.largerItemWrap?400:350,G/2-teg);_.U("web_action_buttons_update_owner_width")&&(b=this.ownerElement.clientWidth+teg);this.actionsOnSeparateLine=this.primaryMenuWidth>G-b?!0:!1}};
_.m.stripAttributedDescription=function(G){return{content:G.content.replace(/[\r\n]{2,}/g,"\n")}};
_.m.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.U("web_modern_buttons"),forceIconButton:!_.U("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:_.U("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"}}}};
_.m.videoPrimaryInfoRendererChanged=function(){var G;if((G=this.videoPrimaryInfoRenderer)==null?0:G.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.m.videoSecondaryInfoRendererChanged=function(){var G,b;(G=this.descriptionInlineExpander)==null||(b=G.collapse)==null||b.call(G);this.descriptionExpandClientVe=_.Xs(110509);this.descriptionCollapseClientVe=_.Xs(110510);G=_.gL();b=_.s3();G&&b&&(_.U("combine_ve_grafts")?(_.iz(_.qo(),this.descriptionExpandClientVe,b),_.iz(_.qo(),this.descriptionCollapseClientVe,b)):_.yn(G,b,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.m.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.m.updateTopLevelIconsOnly=function(){var G=this;_.U("top_level_update_killswitch")||this.menu&&_.uu.addLowPriorityJob(function(){G.menu.topLevelIconsOnly=G.skinnyMode},_.Te("swathceroo_delay_flexible_menu_update",100))};
_.m.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.U("web_action_buttons_minimize_subscribe")};
_.m.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.m.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.m.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.m.onYtTextInlineExpanderExpandedChanged=function(){if(!_.U("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var G,b;(b=(G=this.structuredDescriptionContentRendererElement).resize)==null||b.call(G)}};
_.m.onRenderStamperFinished=function(G){(G==null?void 0:G.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.m.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.m.onYtExpanderLessTapped=function(){var G,b=(G=this.videoSecondaryInfoRenderer)==null?void 0:G.showLessCommand;b&&this.ytComponentBehavior.resolveCommand(b)};
_.m.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.m.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.m.onDescriptionClick=function(G){if(!_.NK(_.Wy(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.U("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.m.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.m.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.m.logCollapseClick=function(){var G=_.gL();G&&this.descriptionCollapseClientVe&&_.WT(G,this.descriptionCollapseClientVe)};
_.m.logExpandClick=function(){var G=_.gL();G&&this.descriptionExpandClientVe&&_.WT(G,this.descriptionExpandClientVe)};
_.m.collapseDescription=function(){this.descriptionCollapsed=!0};
_.m.scrollToTopOfContainer=function(){_.wL(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.m.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.m.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.m.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.m.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var G,b;(b=(G=this.descriptionInlineExpander).resize)==null||b.call(G)}else _.RB(new _.Wf("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()}};
_.m.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var G,b,I,h,q=_.U("web_action_buttons_update_owner_width")?(I=(G=_.Eo(this.menu).querySelector("#button-shape"))==null?void 0:G.clientWidth)!=null?I:0:(h=(b=_.Eo(this.menu).querySelector("#button"))==null?void 0:b.clientWidth)!=null?h:0,l,V;G=((V=(l=_.Eo(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:l.clientWidth)!=null?V:0)+8+q;var D,k;q=(k=(D=_.Eo(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:D.children.length)!=null?k:2;G<=8*q||(this.primaryMenuWidth=G)}};
_.m.onYtUpdateTitleAction=function(G){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.g(G,CMl).title)};
_.m.onYtUpdateDescriptionAction=function(G){if(G=_.g(G,_.JXO)){var b,I=!((b=this.videoSecondaryInfoRenderer)==null||!b.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",
_.fG(G.description)):this.set("videoSecondaryInfoRenderer.description",G.description))}};
_.m.onYtDarkModeToggledAction=function(G){this.isDark=G};
_.m.registerPanel=function(){if(!_.U("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var G=_.U("web_watch_imax_theater_mode")&&this.isTheaterMode;G=_.U("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||G;var b=_.LL().resolve(_.Jo);b&&!G&&b.registerPanel("engagement-panel-structured-description",this)}};
_.m.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.m.parseColorSamplingData=function(){var G;if(_.U("web_delhi_colorful_sd")&&((G=this.structuredDescriptionContentRenderer)==null?0:G.items)&&(G=this.structuredDescriptionContentRenderer.items.find(function(q){return!!_.g(q,r9)}))){var b,I;
this.hoverColor={lightTheme:(b=_.g(G,r9))==null?void 0:b.lightThemeColorPalette,darkTheme:(I=_.g(G,r9))==null?void 0:I.darkThemeColorPalette};var h;this.hoverText=(h=_.g(G,r9))==null?void 0:h.colorSampledDescriptionBodyText}};
_.m.updateHoverColor=function(){if(_.U("web_delhi_colorful_sd")){var G=this.hoverColor,b={},I;G=(I=this.isDark?G==null?void 0:G.darkTheme:G==null?void 0:G.lightTheme)!=null?I:{};I=_.e(f8I);for(var h=I.next();!h.done;h=I.next()){h=h.value;var q=G[h];b["--yt-saturated-"+_.qi(h)]=q?_.so(q):"initial"}_.G8(this.hostElement,b)}};
_.m.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.m.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.m.showPanel=function(G){this.expandDescription();var b=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;b.resize();var I,h=G==null?void 0:(I=G.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;h?_.uu.addJob(function(){b==null||b.scrollToSection(h)},8):this.scrollToTopOfContainer()};
_.m.isVisible=function(){return!this.descriptionCollapsed};
_.m.getReloadContinuation=function(){};
_.m.hidePanel=function(){};
_.m.updatePanel=function(){};
_.kV.Object.defineProperties(tp.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var G;return _.U("web_delhi_colorful_sd")&&(G=this.structuredDescriptionContentRenderer)!=null&&G.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(b){return!_.g(b,r9)&&!_.g(b,RTa)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.structuredDescriptionContentRendererComputed)!=null&&G.items){var b;G=_.e((b=this.structuredDescriptionContentRendererComputed)==null?void 0:b.items);for(b=G.next();!b.done;b=G.next())if(b=_.g(b.value,_.ynz))return b}}},
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,b,I;return!!((G=this.videoSecondaryInfoRenderer)==null?0:(b=G.owner)==null?0:(I=b.videoOwnerRenderer)==null?0:I.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var G,b;if((G=this.videoSecondaryInfoRenderer)==null?0:(b=G.attributedDescription)==null?0:b.content){var I,h;return(h=this.stripAttributedDescription((I=this.videoSecondaryInfoRenderer)==null?void 0:I.attributedDescription))!=null?h:{runs:[]}}}if(_.U("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var q,l,V,D;return(D=(V=(q=this.videoSecondaryInfoRenderer)==
null?void 0:q.description)!=null?V:(l=this.videoSecondaryInfoRenderer)==null?void 0:l.attributedDescription)!=null?D:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var G,b;return(b=(G=this.videoSecondaryInfoRenderer)==null?void 0:G.headerRuns)!=null?b:[]}},
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?_.Te("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var G,b,I=Object.assign({},(G=this.videoSecondaryInfoRenderer)==null?void 0:(b=G.metadataRowContainer)==null?void 0:b.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,b,I=Object.assign({},(G=this.videoSecondaryInfoRenderer)==null?void 0:(b=G.metadataRowContainer)==null?void 0:b.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,b;return!!((G=this.structuredDescriptionContentRendererComputed)==null?0:(b=G.items)==null?0:b.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,b,I;return((G=this.videoSecondaryInfoRenderer)==null?0:(b=G.owner)==null?0:(I=b.videoOwnerRenderer)==null?0:I.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h;return!!((G=this.videoPrimaryInfoRenderer)==null?0:(b=G.videoActions)==null?0:(I=b.menuRenderer)==null?0:(h=I.flexibleItems)==null?0:h.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.d5(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.d5(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(_.U("web_title_hashtag_grey_delinkified")){var b,I=_.Cy.unsafeClone((b=this.videoPrimaryInfoRenderer)==null?void 0:b.title);(b=I==null?void 0:I.runs)&&b.forEach(function(h){if(h==null?0:h.navigationEndpoint)h.textColor=4284506208,G.isDark&&(h.textColor=4289374890)});
return I}return(I=this.videoPrimaryInfoRenderer)==null?void 0:I.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.U("web_title_hashtag_black_delinkified")||_.U("web_title_hashtag_grey_delinkified")}}});
tp.prototype.updateHoverColor=tp.prototype.updateHoverColor;tp.prototype.parseColorSamplingData=tp.prototype.parseColorSamplingData;tp.prototype.resetDescriptionState=tp.prototype.resetDescriptionState;tp.prototype.registerPanel=tp.prototype.registerPanel;tp.prototype.onYtExpanderLessTapped=tp.prototype.onYtExpanderLessTapped;tp.prototype.onYtExpanderMoreTapped=tp.prototype.onYtExpanderMoreTapped;tp.prototype.onRenderStamperFinished=tp.prototype.onRenderStamperFinished;
tp.prototype.onYtTextInlineExpanderExpandedChanged=tp.prototype.onYtTextInlineExpanderExpandedChanged;tp.prototype.onYtTextInlineExpanderCollapseClicked=tp.prototype.onYtTextInlineExpanderCollapseClicked;tp.prototype.onYtTextInlineExpanderExpandClicked=tp.prototype.onYtTextInlineExpanderExpandClicked;tp.prototype.moveActionsElement=tp.prototype.moveActionsElement;tp.prototype.updateShouldForceIconOnly=tp.prototype.updateShouldForceIconOnly;tp.prototype.updateTopLevelIconsOnly=tp.prototype.updateTopLevelIconsOnly;
tp.prototype.structuredDescriptionContentRendererChanged=tp.prototype.structuredDescriptionContentRendererChanged;tp.prototype.videoSecondaryInfoRendererChanged=tp.prototype.videoSecondaryInfoRendererChanged;tp.prototype.videoPrimaryInfoRendererChanged=tp.prototype.videoPrimaryInfoRendererChanged;tp.prototype.maybeUpdateActionsOnSeparateLine=tp.prototype.maybeUpdateActionsOnSeparateLine;tp.prototype.updateOwnerAndDescriptionPosition=tp.prototype.updateOwnerAndDescriptionPosition;
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],tp.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],tp.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],tp.prototype,"ytdReduxBehavior",void 0);_.R([_.lH("#above-the-fold"),_.n("design:type",HTMLElement)],tp.prototype,"aboveTheFoldContainer",void 0);_.R([_.lH("#menu ytd-menu-renderer"),_.n("design:type",Object)],tp.prototype,"menu",void 0);_.R([_.lH("#description-inline-expander"),_.n("design:type",Object)],tp.prototype,"descriptionInlineExpander",void 0);
_.R([_.lH("#faded-structured-description"),_.n("design:type",Object)],tp.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.R([_.lH("#structured-description"),_.n("design:type",Object)],tp.prototype,"structuredDescriptionContentRendererElement",void 0);_.R([_.lH("#title"),_.n("design:type",HTMLElement)],tp.prototype,"titleElement",void 0);_.R([_.lH("#description"),_.n("design:type",HTMLElement)],tp.prototype,"descriptionElement",void 0);
_.R([_.lH("#description-interaction"),_.n("design:type",Object)],tp.prototype,"descriptionInteraction",void 0);_.R([_.lH("#owner"),_.n("design:type",HTMLElement)],tp.prototype,"ownerElement",void 0);_.R([_.lH("#top-row"),_.n("design:type",HTMLElement)],tp.prototype,"topRowElement",void 0);_.R([_.lH("#bottom-row"),_.n("design:type",HTMLElement)],tp.prototype,"bottomRowElement",void 0);_.R([_.lH("#actions"),_.n("design:type",HTMLElement)],tp.prototype,"actionsElement",void 0);
_.R([_.lH("#bottom-actions"),_.n("design:type",HTMLElement)],tp.prototype,"bottomActionsElement",void 0);_.R([_.lH("#ytd-watch-info-text"),_.n("design:type",Object)],tp.prototype,"watchInfoTextElement",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"videoPrimaryInfoRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"videoSecondaryInfoRenderer",void 0);
_.R([_.H(),_.n("design:type",Object)],tp.prototype,"commentsEntryPointHeaderRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"videoMetadataCarousel",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"structuredDescriptionContentRenderer",void 0);_.R([_.P("structuredDescriptionContentRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"structuredDescriptionContentRendererComputed",null);
_.R([_.H(),_.n("design:type",Object)],tp.prototype,"videoSummary",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"merchShelf",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"infoPanelBelowMetadata",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"hoverColor",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"hoverText",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"isHovering",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"enableColorSampling",void 0);_.R([_.P("structuredDescriptionContentRendererComputed"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"productShelf",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"metadataBadgesInDescription",void 0);_.R([_.P("videoPrimaryInfoRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"shouldHideBadges",null);
_.R([_.P("productShelf","descriptionCollapsed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tp.prototype,"shouldShowProductShelf",null);_.R([_.H(),_.n("design:type",Boolean)],tp.prototype,"isWatchFlexy",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"descriptionCollapsed",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],tp.prototype,"useFadedScrimDescription",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"skinnyMode",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("videoSecondaryInfoRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"largerItemWrap",null);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"playlist",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"clarifyBox",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"playerAds",void 0);
_.R([_.H(),_.n("design:type",Boolean)],tp.prototype,"isDark",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],tp.prototype,"actionsOnSeparateLine",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"disableVideoOwnerOnTap",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"swatcherooDelayLoad",void 0);_.R([_.H(),_.n("design:type",Boolean)],tp.prototype,"suppressTopLevelMetadataRows",void 0);
_.R([_.H(),_.n("design:type",Object)],tp.prototype,"primaryMenuWidth",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"videoId",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"titleHeadlineXs",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"titleHeadlineS",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"titleHeadlineM",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"titleHashtagBlackLinkified",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"titleHashtagGreyLinkified",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.R([_.H(),_.n("design:type",Object)],tp.prototype,"shouldForceIconOnly",void 0);
_.R([_.Dd("skinnyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"updateOwnerAndDescriptionPosition",null);_.R([_.Dd("skinnyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.R([_.P("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"descriptionText",null);_.R([_.P("videoSecondaryInfoRenderer.headerRuns"),_.n("design:type",Array),_.n("design:paramtypes",[])],tp.prototype,"headerRuns",null);
_.R([_.H({value:!1}),_.P("commentsEntryPointHeaderRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"hasTeaser",null);_.R([_.H({value:!1,reflectToAttribute:!0}),_.P("videoMetadataCarousel"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"hasTeaserCarousel",null);_.R([_.H({value:3}),_.P("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"descriptionMaxLines",null);
_.R([_.P("videoSecondaryInfoRenderer.metadataRowContainer"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"collapsibleMetadataRows",null);_.R([_.P("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"alwaysVisibleMetadataRows",null);
_.R([_.P("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tp.prototype,"hasInlineStructuredDescription",null);_.R([_.P("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tp.prototype,"showInlineStructuredDescription",null);
_.R([_.P("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"descriptionExpandCommand",null);_.R([_.P("videoSecondaryInfoRenderer.owner"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"videoOwnerCommand",null);_.R([_.H({reflectToAttribute:!0}),_.P("videoPrimaryInfoRenderer.videoActions"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tp.prototype,"flexMenuEnabled",null);
_.R([_.H({selector:_.Ud,reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"isFullscreen",void 0);_.R([_.H({selector:_.BN,reflectToAttribute:!0}),_.n("design:type",Object)],tp.prototype,"isTheaterMode",void 0);_.R([_.P("descriptionText","useFadedScrimDescription"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tp.prototype,"showAttributedStringDescription",null);
_.R([_.P("descriptionText","useFadedScrimDescription"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tp.prototype,"showFormattedStringDescription",null);_.R([_.P("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],tp.prototype,"showFadedStructuredDescription",null);
_.R([_.Dd("videoPrimaryInfoRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"videoPrimaryInfoRendererChanged",null);_.R([_.P("videoPrimaryInfoRenderer.title"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"videoTitle",null);_.R([_.P("videoPrimaryInfoRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],tp.prototype,"noEndpoints",null);
_.R([_.Dd("videoSecondaryInfoRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"videoSecondaryInfoRendererChanged",null);_.R([_.q5("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"structuredDescriptionContentRendererChanged",null);
_.R([_.q5("skinnyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"updateTopLevelIconsOnly",null);_.R([_.q5("skinnyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"updateShouldForceIconOnly",null);_.R([_.q5("skinnyMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"moveActionsElement",null);
_.R([_.hI("yt-text-inline-expander-expand-clicked"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"onYtTextInlineExpanderExpandClicked",null);_.R([_.hI("yt-text-inline-expander-collapse-clicked"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.R([_.hI("yt-text-inline-expander-expanded-changed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],tp.prototype,"onRenderStamperFinished",null);
_.R([_.hI("yt-expander-more-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"onYtExpanderMoreTapped",null);_.R([_.hI("yt-expander-less-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"onYtExpanderLessTapped",null);
_.R([_.q5("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"registerPanel",null);_.R([_.q5("videoSecondaryInfoRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"resetDescriptionState",null);
_.R([_.q5("structuredDescriptionContentRenderer"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"parseColorSamplingData",null);_.R([_.q5("hoverColor","isDark"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tp.prototype,"updateHoverColor",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-watch-metadata"})],tp);
_.J(tp,"ytd-watch-metadata",function(){if(xyI!==void 0)return xyI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return xyI=G},{mode:2});_.Fta=function(G){_.FN.call(this);this.JSC$23325_watchApi=G;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;zxh(this);oGv(this);i8o(this);Pxh(this);dyE(this);yU7(this);rUl(this)};
_.M(_.Fta,_.FN);var i8o=function(G){var b=function(){_.U("kevlar_is_pupi_enabled")||zh(G)};
G.JSC$23325_watchApi.getRoot().addEventListener("yt-player-updated",b);G.addOnDisposeCallback(function(){G.JSC$23325_watchApi.getRoot().removeEventListener("yt-player-updated",b)})},dyE=function(G){if(_.U("kevlar_endscreen_auto_theater_mode")){var b=G.JSC$23325_watchApi.subscribeToActiveChanged(function(){H8d(G)},!1);
G.addOnDisposeCallback(b)}},zxh=function(G){var b,I,h,q,l;
_.c(function(V){if(V.nextAddress==1)return V.yield(G.JSC$23325_watchApi.playerApi,2);b=V.yieldResult;I=function(D){D=!!D;Wtd(G)&&(D=D?2:1,_.TW.getInstance().setState(D,!0,!1))};
h=function(D){D&&_.b0l(_.Cw().getState())&&(_.wL(G.JSC$23325_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),G.temporaryTheaterMode=!0)};
q=function(D){_.U("kevlar_player_update_autonav_on_new_data")&&D.type==="newdata"&&(_.U("kevlar_is_pupi_enabled")||zh(G))};
l=function(D){G.onPlayerStateChange(D)};
_.U("kevlar_endscreen_auto_theater_mode")&&b.addEventListener("onAutonavCancelled",h);b.addEventListener("onAutonavChangeRequest",I);b.addEventListener("onVideoDataChange",q);b.addEventListener("onStateChange",l);G.addOnDisposeCallback(function(){b.removeEventListener("onAutonavChangeRequest",I);b.removeEventListener("onVideoDataChange",q);b.removeEventListener("onStateChange",l);_.U("kevlar_endscreen_auto_theater_mode")&&b.removeEventListener("onAutonavCancelled",h)});
_.ip(V)})},oGv=function(G){G.JSC$23325_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){G.autonavCancelledBySignal=!0;
_.U("kevlar_is_pupi_enabled")||zh(G)});
G.JSC$23325_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(b,I,h){I&&zh(G,h)});
G.JSC$23325_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Wtd(G)&&_.TW.getInstance().setState(2,!0,!0)});
G.JSC$23325_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Wtd(G)&&_.TW.getInstance().setState(1,!0,!0)});
G.addOnDisposeCallback(function(){G.JSC$23325_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");G.JSC$23325_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");G.JSC$23325_watchApi.unregisterActionHandler("yt-enable-autoplay-command");G.JSC$23325_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},Pxh=function(G){var b=G.JSC$23325_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){rUl(G)}),I=G.JSC$23325_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){yU7(G)});
G.addOnDisposeCallback(function(){G.JSC$23325_watchApi.unsubscribeByKey(b);G.JSC$23325_watchApi.unsubscribeByKey(I)})},rUl=function(G){G.autonavCancelledBySignal=!1;
_.U("kevlar_is_pupi_enabled")||zh(G)},yU7=function(G){var b=G.JSC$23325_watchApi.getWatchNextResponse(),I,h;
var q=(b=(h=_.g(b==null?void 0:(q=b.playerOverlays)==null?void 0:(I=q.playerOverlayRenderer)==null?void 0:I.autonavToggle,_.n9u))==null?void 0:h.enabled)?2:1;_.U("kevlar_is_pupi_enabled")?_.TW.getInstance().setState(q,!1,!1):zh(G);_.U("web_persist_server_autonav_state_on_client")&&typeof b==="boolean"&&_.VIu(q===2)},Wtd=function(G){if(G.autonavCancelledBySignal)return!1;
var b,I,h,q;return!!((b=G.JSC$23325_watchApi.getWatchNextResponse())==null?0:(I=b.contents)==null?0:(h=I.twoColumnWatchNextResults)==null?0:(q=h.autoplay)==null?0:q.autoplay)};
_.Fta.prototype.onPlayerStateChange=function(G){if(G===0){G=!_.TW.getInstance().isAutoplaySetExplicitly();var b=this.JSC$23325_watchApi.getWatchNextResponse(),I,h,q,l;b=_.g(b==null?void 0:(I=b.contents)==null?void 0:(h=I.twoColumnWatchNextResults)==null?void 0:(q=h.autoplay)==null?void 0:(l=q.autoplay)==null?void 0:l.autoplayExplicitChoiceDialogRenderer,_.mTn);Wtd(this)&&G&&b&&_.Xv.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:b},popupType:"DIALOG"}})}else H8d(this)};
var H8d=function(G){G.temporaryTheaterMode&&(G.temporaryTheaterMode=!1,_.wL(G.JSC$23325_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},zh=function(G,b){b=b===void 0?!1:b;
var I;_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23325_watchApi.playerApi,2);I=h.yieldResult;Wtd(G)?I.setAutonavState(_.TW.getInstance().getState(),b):I.setAutonavState(1,b);_.ip(h)})};var a8I={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"};_.YzE=function(G){_.FN.call(this);var b=this;this.JSC$23330_watchApi=G;var I=this.JSC$23330_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Na7(b)});
this.addOnDisposeCallback(function(){b.JSC$23330_watchApi.unsubscribeByKey(I)});
Na7(this)};
_.M(_.YzE,_.FN);var Na7=function(G){var b=G.JSC$23330_watchApi.getPlayerResponse(),I=G.JSC$23330_watchApi.getWatchNextResponse();if(!_.OKO(b==null?void 0:b.playabilityStatus,I==null?void 0:I.playerOverlays)){var h;var q=b==null?void 0:(h=b.playabilityStatus)==null?void 0:h.errorScreen}G.JSC$23330_watchApi.provideRenderingData("ERROR_SCREEN",q)};var CxK=_.C(function(G){var b=G.data;G=_.U("web_watch_video_details_hide_subtitle");var I=_.U("web_watch_video_details_single_line_title"),h=_.Xu(function(){var D=b().onTap;D&&_.LL().resolve(_.xW).resolveCommand(D)}),q={},l={},V={};
return _.v("yt-player-overlay-video-details-renderer",{class:_.pG("ytPlayerOverlayVideoDetailsRendererHost",(q.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.U("web_watch_video_details_transparent_background"),q)),"on:click":h,role:"button"},_.v("h2",{class:_.pG("ytPlayerOverlayVideoDetailsRendererTitle",(l.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return I},l))},_.v(_.IS,{text:function(){return b().title}})),_.v("div",{class:_.pG("ytPlayerOverlayVideoDetailsRendererSubtitle",
(V.ytPlayerOverlayVideoDetailsRendererHideSubtitle=G,V))},_.v(_.IS,{text:function(){return b().subtitle}})))},"bo");var og={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},JUK=_.C(function(G){var b=G.data;var I=_.m2(_.Ud),h=_.U("web_watch_action_bar_resize_buttons"),q=_.U("web_watch_video_action_dsdvb"),l=_.U("delhi_modern_web_player_icons")&&!_.U("enable_web_delhi_icons");G=_.U("delhi_modern_web_player_disable_frosted_glass");var V=_.U("delhi_modern_web_player_compact_video_actions_controls"),
D=_.U("web_player_quick_action_buttons_icon_only"),k=function(){var x=h&&!I(),f={};V?f.size="S":x&&(f.size="M");D&&(f.iconPosition="icon-only");if(Object.keys(f).length!==0)return f},L={};
return _.v("yt-player-quick-action-buttons",{class:_.pG("ytPlayerQuickActionButtonsHost",(L.ytPlayerQuickActionButtonsHostCompactControls=function(){return!I()||V},L.ytPlayerQuickActionButtonsHostDisableBackdropFilter=G,L))},_.v(_.aj,{each:function(){var x=b();
if(l){x=JSON.parse(JSON.stringify(x));for(var f=_.e(x),T=f.next();!T.done;T=f.next()){var B=T.value,A=void 0;T=_.g((A=_.g(B,_.EU))==null?void 0:A.toggleButtonViewModel,_.mS);var t=void 0;A=_.g((t=_.g(B,_.w0))==null?void 0:t.toggleButtonViewModel,_.mS);t=_.g(B,_.j6);B=_.g(B,_.mS);if(T)A=_.g(T.defaultButtonViewModel,_.j6),T=_.g(T.toggledButtonViewModel,_.j6),A&&A.iconName&&(A.iconName=og[A.iconName]),T&&T.iconName&&(T.iconName=og[T.iconName]);else if(A)T=_.g(A.defaultButtonViewModel,_.j6),A=_.g(A.toggledButtonViewModel,
_.j6),T&&T.iconName&&(T.iconName=og[T.iconName]),A&&A.iconName&&(A.iconName=og[A.iconName]);else if(t)t.iconName&&(t.iconName=og[t.iconName]);else if(B){T=_.g(B.defaultButtonViewModel,_.j6);A=_.g(B.toggledButtonViewModel,_.j6);B=void 0;if((B=T)==null?0:B.iconName)T.iconName=og[T.iconName];T=void 0;if((T=A)==null?0:T.iconName)A.iconName=og[A.iconName]}}}q&&(x=dQg(x));return x}},function(x){return _.v(_.VX,{data:function(){return x}},{buttonViewModel:function(f){return _.v(_.sQ,{data:f.data,
buttonOverrides:k})},
likeButtonViewModel:function(f){return _.v(_.SJ,{data:f.data,buttonShapeOverrideables:k})},
dislikeButtonViewModel:function(f){return _.v(_.p9,{data:f.data,buttonShapeOverrideables:k})},
toggleButtonViewModel:function(f){return _.v(_.YK,{data:f.data,buttonShapeOverrides:k})}})}))},"co");_.upI=function(G){_.FN.call(this);var b=this;this.JSC$23334_watchApi=G;G=_.e(_.ZZ({},void 0,"n9wCVe"));this.quickActionsViewModel=G.next().value;this.setQuickActionsViewModel=G.next().value;G=_.e(_.ZZ({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=G.next().value;this.setPlayerOverlayVideoDetailsRenderer=G.next().value;var I=this.JSC$23334_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ktl(b)});
this.addOnDisposeCallback(function(){b.JSC$23334_watchApi.unsubscribeByKey(I)});
Ktl(this)};
_.M(_.upI,_.FN);
var Ktl=function(G){var b,I,h,q,l,V,D,k,L,x,f,T,B,A;_.c(function(t){if(t.nextAddress==1)return t.yield(G.JSC$23334_watchApi.playerApi,2);b=t.yieldResult;I=G.JSC$23334_watchApi.getWatchNextResponse();l=(h=I)==null?void 0:(q=h.playerOverlays)==null?void 0:q.playerOverlayRenderer;D=_.g((V=l)==null?void 0:V.fullscreenQuickActionsBar,_.Kk5);(L=(k=G).setQuickActionsViewModel)==null||L.call(k,D||{});D&&RxM(G,b);T=(x=l)==null?void 0:(f=x.videoDetails)==null?void 0:f.playerOverlayVideoDetailsRenderer;(A=(B=
G).setPlayerOverlayVideoDetailsRenderer)==null||A.call(B,T||{});T&&nGh(G,b);_.ip(t)})},RxM=function(G,b){if(!G.quickActionButtonsContainer)if(b.setFullscreenQuickActions){G.quickActionButtonsContainer=document.createElement("div");
b.setFullscreenQuickActions(G.quickActionButtonsContainer);var I=function(){return G.quickActionsViewModel().quickActionButtons||[]},h=_.C3(G.quickActionButtonsContainer,function(){return _.v(JUK,{data:I})},"eo");
G.addOnDisposeCallback(function(){b.setFullscreenQuickActions(void 0);h()})}else _.RB(new _.Wf("setFullscreenQuickActions not defined",{playerApi:Object.keys(b),
isReady:b.isReady(),appState:b.getAppState()}))},nGh=function(G,b){if(!G.playerOverlayVideoDetailsRendererContainer)if(b.setPlayerOverlayVideoDetailsRenderer){G.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
b.setPlayerOverlayVideoDetailsRenderer(G.playerOverlayVideoDetailsRendererContainer);var I=_.C3(G.playerOverlayVideoDetailsRendererContainer,function(){return _.v(CxK,{data:G.playerOverlayVideoDetailsRenderer})},"fo");
G.addOnDisposeCallback(function(){b.setPlayerOverlayVideoDetailsRenderer(void 0);I()})}else _.RB(new _.Wf("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(b),
isReady:b.isReady(),appState:b.getAppState()}))};_.iv=function(G){_.FN.call(this);var b=this;this.JSC$23340_watchApi=G;this.JSC$23340_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;G=_.Nj(_.Cw(),_.Ud,function(I){b.onFullscreenChanged(I)});
this.addOnDisposeCallback(G);G=_.Nj(_.Cw(),_.iE,function(I){b.onWatchScroll(I)});
this.addOnDisposeCallback(G);_.U("kevlar_watch_while_v2")&&(G=_.Nj(_.Cw(),_.g4,function(I){O8K(b,I)}),this.addOnDisposeCallback(G));
wwh(this);EGI(this);pwI();this.onWatchScroll(_.iE(_.Cw().getState()));_.Sk("START_IN_FULL_WINDOW_MODE")&&this.JSC$23340_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.M(_.iv,_.FN);var wwh=function(G){G.JSC$23340_watchApi.registerActionHandler("yt-fullscreen-change-action",function(b){var I=G.JSC$23340_watchApi.isActive();b&&!I||_.Cw().dispatch(_.wK({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!b}}))});
G.addOnDisposeCallback(function(){G.JSC$23340_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},EGI=function(G){var b,I;
_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23340_watchApi.playerApi,2);b=h.yieldResult;I=function(){G.onFullerscreenEduClicked()};
b.addEventListener("onFullerscreenEduClicked",I);G.addOnDisposeCallback(function(){b.removeEventListener("onFullerscreenEduClicked",I)});
_.ip(h)})};
_.iv.prototype.onFullscreenChanged=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return b.isFullscreen=!!_.Kv(),h.yield(b.JSC$23340_watchApi.playerApi,2);I=h.yieldResult;b.JSC$23340_miniplayerActive||I.setFauxFullscreen(b.isFullscreen);if(G&&(b.JSC$23340_watchApi.focusOnPlayer(),!b.fullerscreenEduButtonShownThisPlayback)){b.fullerscreenEduButtonShownThisPlayback=!0;var q=_.Q4("yt-fullerscreen-edu-button-shown-count")||0;_.LX("yt-fullerscreen-edu-button-shown-count",q+1,31536E3);
b.updateFullerscreenEduButtonSubtleModeState()}_.ip(h)})};
var O8K=function(G,b){var I;_.c(function(h){if(h.nextAddress==1)return G.JSC$23340_miniplayerActive=b,h.yield(G.JSC$23340_watchApi.playerApi,2);I=h.yieldResult;I.setFauxFullscreen(!G.JSC$23340_miniplayerActive&&G.isFullscreen);_.ip(h)})};
_.iv.prototype.onWatchScroll=function(G){var b=this,I,h;return _.c(function(q){if(q.nextAddress==1)return _.U("external_fullscreen_with_edu")?q.yield(b.JSC$23340_watchApi.playerApi,2):q.return();I=q.yieldResult;h=G<=0;b.shouldShowFullerscreenEdu!==h&&(b.shouldShowFullerscreenEdu=h,I.updateFullerscreenEduButtonVisibility(!b.shouldShowFullerscreenEdu));_.ip(q)})};
_.iv.prototype.onFullerscreenEduClicked=function(){this.JSC$23340_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var G=_.Q4("yt-fullerscreen-edu-button-click-count")||0;_.LX("yt-fullerscreen-edu-button-click-count",G+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.iv.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var G=this,b,I,h,q,l,V;return _.c(function(D){if(D.nextAddress==1)return b=_.Q4("yt-fullerscreen-edu-button-click-count")||0,I=_.Q4("yt-fullerscreen-edu-button-shown-count")||0,h=_.Te("external_fullscreen_button_click_threshold"),q=_.Te("external_fullscreen_button_shown_threshold"),l=b>=h||I>=q,D.yield(G.JSC$23340_watchApi.playerApi,2);V=D.yieldResult;V.updateFullerscreenEduButtonSubtleModeState(l);_.ip(D)})};
_.iv.prototype.disposeInternal=function(){_.FN.prototype.disposeInternal.call(this);var G=_.Kv();_.U("kevlar_exit_fullscreen_leaving_watch")&&G&&_.uU(G)};
var pwI=function(){if(_.U("web_watch_add_viewport_meta_tag")){var G=document.querySelector("meta[name=viewport]"),b=document.head;b&&!G&&(G=document.createElement("meta"),G.name="viewport",G.content="width=device-width, initial-scale=1.0, viewport-fit=cover",b.appendChild(G))}};_.Xwo=function(G){_.FN.call(this);var b=this;this.JSC$23343_watchApi=G;this.jobId=0;this.pendingRequestId=void 0;var I=this.JSC$23343_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){SzK(b)});
this.addOnDisposeCallback(function(){b.JSC$23343_watchApi.unsubscribeByKey(I)});
SzK(this)};
_.M(_.Xwo,_.FN);var $ha=function(G){_.uu.cancelJob(G.jobId);G.pendingRequestId=void 0},SzK=function(G){$ha(G);
var b=yfA(G.JSC$23343_watchApi.getWatchNextResponse());if(b){var I=250,h,q=(h=_.g(b,_.Che))==null?void 0:h.initialDelayMs;_.U("web_watch_updated_metadata_server_initial_delay")&&q&&(I=q);G.jobId=_.uu.addLowPriorityJob(function(){return G.fetchUpdatedMetadata(b)},I)}};
_.Xwo.prototype.fetchUpdatedMetadata=function(G,b){var I=this,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F;return _.c(function(W){switch(W.nextAddress){case 1:b&&(h={continuation:b});if(!_.U("web_get_updated_metadata_fantasy_panel_continuation_params")){W.jumpTo(2);break}q=_.LL().resolve(_.Jo);l="PAsports_fantasy";return W.yield(q.isVisible(l,!0),3);case 3:W.yieldResult&&(L=(D=(V=q).getUpdatePanelContinuationData)==null?void 0:(k=D.call(V,l))==null?void 0:k.updatePanelContinuationRequest)&&(h||(h={}),h.clientParams=
{panelContinuationParams:{panelContinuation:L}});case 2:x=_.LL().resolve(_.kn);if(!x)return _.K1(Error("cp")),W.return();f={};I.pendingRequestId=f;return W.yield(_.dR(x,G,h),4);case 4:T=W.yieldResult;if(f!==I.pendingRequestId)return W.return();t=(B=T)==null?void 0:(A=B.continuation)==null?void 0:A.timedContinuationData;((y=t)==null?0:y.continuation)&&((F=t)==null?0:F.timeoutMs)&&(I.jobId=_.uu.addLowPriorityJob(function(){return I.fetchUpdatedMetadata(G,t.continuation)},t.timeoutMs));
_.ip(W)}})};
_.Xwo.prototype.disposeInternal=function(){_.FN.prototype.disposeInternal.call(this);$ha(this)};var Gbz=_.C(function(G){var b=_.Xu(function(){var h=G.data().videoId;if(G.active())h=_.u9(h),_.LL().resolve(_.xW).resolveCommand(h);else{var q=G.playerApi(),l=q.getAvailableAudioTracks(),V,D,k=(V=G.sourceVideoConfig().audioTracks)==null?void 0:(D=V.find(function(L){return L.isDefaultForSource}))==null?void 0:D.id;
if(l=l.find(function(L){return L.getLanguageInfo().getId()===k}))q.setAudioTrack(l,!0),q.setCompositeParam({activeVideoId:h}),G.setActiveSourceId(h)}}),I={};
return _.v("ytw-composite-source-video-overlay",{class:_.pG("ytwCompositeSourceVideoOverlayHost",(I.ytwCompositeSourceVideoOverlayActive=G.active,I.ytwCompositeSourceVideoOverlayInteracting=G.interacting,I)),style:_.Ir({left:function(){var h;return((h=G.data().topLeftCornerX)!=null?h:0)*100+"%"},
top:function(){var h;return((h=G.data().topLeftCornerY)!=null?h:0)*100+"%"},
width:function(){var h;return((h=G.data().width)!=null?h:0)*100+"%"},
height:function(){var h;return((h=G.data().height)!=null?h:0)*100+"%"}}),
"on:click":b},_.v("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"go");var bJM=_.C(function(G){var b=_.e(_.bk(function(){var V,D=(V=G.data().sources)==null?void 0:V.find(function(k){return k.isActive});
if(D)return D.videoId})),I=b.next().value,h=b.next().value;
b=_.e(_.ZZ(!1,void 0,"rmRJ8d"));var q=b.next().value,l=b.next().value;return _.v("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Xu(function(){l(!0)}),
"on:mouseout":_.Xu(function(){l(!1)})},_.v(_.Q,{cond:function(){return G.data().sources},
then:function(V){return _.v(_.aj,{each:V},function(D){return _.v(Gbz,{data:D,active:function(){return D.videoId===I()},
setActiveSourceId:h,interacting:q,playerApi:G.playerApi,sourceVideoConfig:function(){return rfl(G.compositeVideoConfig(),D.videoId)}})})}}))},"ho");_.qil=function(G){_.FN.call(this);this.JSC$23359_watchApi=G;G=_.e(_.ZZ({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=G.next().value;this.setCompositeVideoOverlayRenderer=G.next().value;G=_.e(_.ZZ({},void 0,"OlaJpc"));this.compositeVideoConfig=G.next().value;this.setCompositeVideoConfig=G.next().value;I1z(this);hDK(this)};
_.M(_.qil,_.FN);var I1z=function(G){var b=G.JSC$23359_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){hDK(G)});
G.addOnDisposeCallback(function(){G.JSC$23359_watchApi.unsubscribeByKey(b)})},jLM=function(G){var b;
return _.c(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23359_watchApi.playerApi,2);b=I.yieldResult;b.setCompositeVideoOverlayRendererComponent(G.container);_.ip(I)})},l1I=function(G){var b;
return _.c(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23359_watchApi.playerApi,2);b=I.yieldResult;b.setCompositeVideoOverlayRendererComponent(void 0);_.ip(I)})},mhv=function(G){var b,I;
return _.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23359_watchApi.playerApi,2);b=h.yieldResult;G.container=document.createElement("div");I=_.C3(G.container,function(){return _.v(bJM,{data:G.compositeVideoOverlayRenderer,compositeVideoConfig:G.compositeVideoConfig,playerApi:b})},"io");
G.addOnDisposeCallback(I);_.ip(h)})},hDK=function(G){var b,I,h,q,l,V,D,k;
_.c(function(L){return L.nextAddress==1?(b=G.JSC$23359_watchApi.getPlayerResponse(),l=_.g((I=b)==null?void 0:(h=I.overlay)==null?void 0:(q=h.playerControlsOverlayRenderer)==null?void 0:q.compositeVideoOverlay,dcA),k=(V=b)==null?void 0:(D=V.playerConfig)==null?void 0:D.compositeVideoConfig,l&&G.setCompositeVideoOverlayRenderer(l),k&&G.setCompositeVideoConfig(k),l&&k?G.container?L.jumpTo(6):L.yield(mhv(G),6):eD7(G)?L.yield(l1I(G),0):L.jumpTo(0)):eD7(G)?L.jumpTo(0):L.yield(jLM(G),0)})},eD7=function(G){var b;
return!((b=G.container)==null||!b.parentElement)};
_.qil.prototype.disposeInternal=function(){eD7(this)&&l1I(this);_.FN.prototype.disposeInternal.call(this)};_.vVI=function(G){_.FN.call(this);var b=this;this.JSC$23365_watchApi=G;var I=this.JSC$23365_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var h=b.JSC$23365_watchApi.getPlayerResponse();if(h){var q,l;if(h=_.g((q=h.endscreen)==null?void 0:(l=q.endscreenRenderer)==null?void 0:l.hideButton,_.mS)){var V;(V=b.setEndscreenHideButton)==null||V.call(b,h);VWl(b)}}});
this.addOnDisposeCallback(function(){b.JSC$23365_watchApi.unsubscribeByKey(I)});
G=_.e(_.ZZ({},void 0,"ER3tqb"));this.endscreenHideButton=G.next().value;this.setEndscreenHideButton=G.next().value;Dhl(this);cbg(this);kbA(this)};
_.M(_.vVI,_.FN);
var VWl=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return G.creatorEndscreenHideButtonContainer?h.return():h.yield(G.JSC$23365_watchApi.playerApi,2);b=h.yieldResult;G.creatorEndscreenHideButtonContainer=document.createElement("div");_.hf(G.creatorEndscreenHideButtonContainer,!1);b.setCreatorEndscreenHideButton(G.creatorEndscreenHideButtonContainer);I=_.C3(G.creatorEndscreenHideButtonContainer,function(){return _.v(_.YK,{data:G.endscreenHideButton,useOutlinedIcon:!0})},"jo");
G.addOnDisposeCallback(function(){I();var q;(q=b)==null||q.setCreatorEndscreenHideButton(void 0)});
_.ip(h)})},Dhl=function(G){var b,I;
_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23365_watchApi.playerApi,2);b=h.yieldResult;I=function(){G.creatorEndscreenHideButtonContainer&&_.hf(G.creatorEndscreenHideButtonContainer,!0)};
b.addEventListener("endscreenelementshown",I);G.addOnDisposeCallback(function(){var q;(q=b)==null||q.removeEventListener("endscreenelementshown",I)});
_.ip(h)})},cbg=function(G){var b=function(){G.creatorEndscreenHideButtonContainer&&_.hf(G.creatorEndscreenHideButtonContainer,!1)},I=G.JSC$23365_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",b),h=G.JSC$23365_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",b);
G.addOnDisposeCallback(function(){G.JSC$23365_watchApi.unsubscribeByKey(I);G.JSC$23365_watchApi.unsubscribeByKey(h)})},kbA=function(G){G.JSC$23365_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(b){var I=_.g(b,Z3z);
G.JSC$23365_watchApi.playerApi.then(function(h){h==null||h.setCreatorEndscreenVisibility(!!I.hide)})});
G.addOnDisposeCallback(function(){G.JSC$23365_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.QLz=function(G){_.FN.call(this);this.JSC$23371_watchApi=G;LHd(this)};
_.M(_.QLz,_.FN);var LHd=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23371_watchApi.playerApi,2);b=h.yieldResult;I=function(q){_.Cw().dispatch(_.wK({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:q}}))};
b.addEventListener("onRetroModeChanged",I);G.addOnDisposeCallback(function(){b.removeEventListener("onRetroModeChanged",I)});
_.ip(h)})};var Jf7=0,d9=0,uqA=0;var xh7;xh7=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Pb=function(G){_.FN.call(this);this.JSC$23376_watchApi=G;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;f1h(this)};
_.M(_.Pb,_.FN);
var f1h=function(G){var b,I,h;_.c(function(q){if(q.nextAddress==1)return q.yield(G.JSC$23376_watchApi.playerApi,2);b=q.yieldResult;if(G.isDisposed())return q.return();G.sessionStorage=_.D1D("yt-sleep-timer");G.sessionStorage||_.RB(new _.Wf("SessionStorage for Sleep Timer is undefined."));((I=G.sessionStorage)==null?void 0:I.get("yt-sleep-timer"))==="true"&&(O0z(),(h=G.sessionStorage)==null||h.remove("yt-sleep-timer"),b.syncVolume());T2d(G,b);B2M(G,b);UhM(G,b);_.ip(q)})},T2d=function(G,b){var I=function(L){G.onSleepTimerSettingsChanged(L,
b)},h=function(L){G.onPlayerStateChange(L,b)},q=function(){G.onLoopChange(b)},l=function(){G.onCloseMiniplayer(b)},V=function(){CIg(b,(0,_.Li)(),w$7(b),G.selectedOption==="End of video",b.getPlayerState()!==1)},D=function(){G.onSeekComplete(b)},k=function(){_.uu.cancelJob(d9);
var L=b.getCurrentTime()>=b.getDuration(),x=G.selectedOption==="End of video"||G.selectedOption==="End of playlist"&&!aZl(G.playlistId);L&&x&&sL7(G,b)};
b.addEventListener("onSleepTimerSettingsChanged",I);b.addEventListener("onLoopChange",q);b.addEventListener("onLoopRangeChange",q);b.addEventListener("onStateChange",h);b.addEventListener("onCloseMiniplayer",l);b.addEventListener("onSleepTimerFeatureAvailable",V);b.addEventListener("SEEK_COMPLETE",D);b.addEventListener("onAdStart",k);G.addOnDisposeCallback(function(){b.removeEventListener("onSleepTimerSettingsChanged",I);b.removeEventListener("onLoopChange",q);b.removeEventListener("onLoopRangeChange",
q);b.removeEventListener("onStateChange",h);b.removeEventListener("onCloseMiniplayer",l);b.removeEventListener("onSleepTimerFeatureAvailable",V);b.removeEventListener("SEEK_COMPLETE",D);b.removeEventListener("onAdStart",k)})},B2M=function(G,b){var I=G.JSC$23376_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var h=b.getVideoData().video_id,q,l=(q=H0z(G.JSC$23376_watchApi))==null?void 0:q.playlistId;
G.pauseAutonavPlayback&&(b.pauseVideo(),b.syncVolume(),G.pauseAutonavPlayback=!1);if(G.selectedOption==="End of video"&&h!==G.videoId)dg(G,b);else{if(G.selectedOption==="End of playlist"){q=aZl(G.playlistId);if(l!==G.playlistId){dg(G,b);break a}q?q&&gVa(G,b):Abh(G,b)}G.videoId=h;G.playlistId=l}}});
G.addOnDisposeCallback(function(){G.JSC$23376_watchApi.unsubscribeByKey(I)})},UhM=function(G,b){var I=_.LL().resolve(_.nR),h=_.Nj(I,_.rVj,function(l){l&&G.selectedOption!=="Off"&&dg(G,b)}),q=G.JSC$23376_watchApi.subscribeToActiveChanged(function(l){var V,D;
return _.c(function(k){if(k.nextAddress==1)return k.yield(_.Ws().navigationFinishPromise,2);V=!_.ml8();D=_.LL().resolve(_.zO).isMiniplayerActive();l||!FTA(G.selectedOption)||D||V||dg(G,b);_.ip(k)})},!1);
I=_.Nj(I,function(l){return l.entities.playlistLoopStateEntity||{}},function(l){l=l===void 0?{}:l;
var V=WTa(G.JSC$23376_watchApi);if(V){var D;((D=l[V])==null?void 0:D.state)==="PLAYLIST_LOOP_STATE_ALL"&&FTA(G.selectedOption)&&dg(G,b)}});
G.addOnDisposeCallback(h);G.addOnDisposeCallback(I);G.addOnDisposeCallback(q)};
_.Pb.prototype.onSleepTimerSettingsChanged=function(G,b){switch(G){case "Off":this.selectedOption!=="Off"&&dg(this,b);break;case "End of video":case "End of playlist":MWv(this,G,b);break;default:MWv(this,G,b,xh7.get(G))}};
_.Pb.prototype.onLoopChange=function(G){(G.getLoopVideo()||G.getLoopRange())&&FTA(this.selectedOption)&&dg(this,G)};
_.Pb.prototype.onCloseMiniplayer=function(G){FTA(this.selectedOption)&&dg(this,G)};
var MWv=function(G,b,I,h){ZJE(G,I);G.selectedOption=b;G.videoId=I.getVideoData().video_id;G.playlistId="";var q;(q=G.sessionStorage)==null||q.set("yt-sleep-timer","true");G.adjustmentsCount++;CIg(I,(0,_.Li)(),w$7(I),G.selectedOption==="End of video");if(G.selectedOption==="End of video")Abh(G,I),tWv(G,I);else if(G.selectedOption==="End of playlist"){tWv(G,I);var l,V;G.playlistId=(V=(l=H0z(G.JSC$23376_watchApi))==null?void 0:l.playlistId)!=null?V:"";aZl(G.playlistId)||Abh(G,I)}else h&&(G.presetFadeSchedulerId=
_.vH(_.uu,function(){RCo(I,15E3)},h-15E3),G.presetPauseSchedulerId=_.vH(_.uu,function(){sL7(G,I)},h),KTE(I,(0,_.Li)(),h))},sL7=function(G,b){if(G.JSC$23376_watchApi.isActive()){var I={dismissDialogEndpoint:{}};
var h={commandExecutorCommand:{commands:[I,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};I={buttonViewModel:{title:_.qP("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:I}}};h={buttonViewModel:{title:_.qP("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:h}}};var q={dialogHeaderViewModel:{headline:{content:_.qP("SLEEP_TIMER_ENDED_TITLE")}}},
l={basicContentViewModel:{paragraphs:[{text:{content:_.qP("SLEEP_TIMER_ENDED_TEXT")}}]}};I={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:q,content:l,footer:{panelFooterViewModel:{primaryButton:I,secondaryButton:h,shouldHideDivider:!0}}}}}}};_.LL().resolve(_.xW).resolveCommand(I,{form:{element:G}})}else O0z();zDg(G,!1);oVI(G,b);b.pauseVideo();_.TW.getInstance().getState()===2&&b.getPlayerState()===5&&(G.pauseAutonavPlayback=!0)},dg=function(G,b){zDg(G,!0);
oVI(G,b);O0z()},oVI=function(G,b){ZJE(G,b);
G.selectedOption="Off";G.videoId="";G.playlistId="";G.adjustmentsCount=0;var I;(I=G.sessionStorage)==null||I.remove("yt-sleep-timer");_.uu.cancelJob(Jf7);b.resetSleepTimerMenuSettings()},zDg=function(G,b){b={timer_length_adjustment_times_during_session:G.adjustmentsCount-1,
is_session_cancelled:b};switch(G.selectedOption){case "Off":b.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":b.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":b.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:b.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",b.option_duration_in_minutes=xh7.get(G.selectedOption)/6E4}_.C1("sleepTimerSessionFinishEvent",b)};
_.Pb.prototype.onPlayerStateChange=function(G,b){G===1?CIg(b,(0,_.Li)(),w$7(b),this.selectedOption==="End of video"):G===0?(_.uu.cancelJob(d9),b.setVideoTimeLeft(YMl(0,0))):G===2&&_.uu.cancelJob(d9);this.selectedOption==="End of video"?G===0?sL7(this,b):G===2&&n8I(b):this.selectedOption!=="End of playlist"||aZl(this.playlistId)||(G===0?sL7(this,b):G===2&&n8I(b))};
_.Pb.prototype.onSeekComplete=function(G){G.getPlayerState()===2&&CIg(G,(0,_.Li)(),w$7(G),this.selectedOption==="End of video",!0)};
_.Pb.prototype.onCueRangeEnter=function(G,b){G==="sleep-timer-fade-audio"&&RCo(b,(b.getDuration()-b.getProgressState().current)*1E3)};
_.Pb.prototype.onCueRangeExit=function(G,b){G==="sleep-timer-fade-audio"&&b.getPlayerState()!==0&&n8I(b,!0)};
var Abh=function(G,b){b.addCueRange("sleep-timer-fade-audio",b.getDuration()-15,b.getDuration());b.addEventListener("onCueRangeEnter",function(I){G.onCueRangeEnter(I,b)});
b.addEventListener("onCueRangeExit",function(I){G.onCueRangeExit(I,b)})},gVa=function(G,b){b.removeCueRange("sleep-timer-fade-audio");
b.removeEventListener("onCueRangeEnter",function(I){G.onCueRangeEnter(I,b)});
b.removeEventListener("onCueRangeExit",function(I){G.onCueRangeExit(I,b)})},ZJE=function(G,b){FTA(G.selectedOption)?gVa(G,b):(_.uu.cancelJob(G.presetPauseSchedulerId),_.uu.cancelJob(G.presetFadeSchedulerId),G.presetPauseSchedulerId=0,G.presetFadeSchedulerId=0);
n8I(b,!0)},tWv=function(G,b){b.setLoop(!1);
b.setLoopVideo(!1);b.setLoopRange(null);(G=WTa(G.JSC$23376_watchApi))&&_.LL().resolve(_.nR).dispatch(_.Da("playlistLoopStateEntity",G,{key:G,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.ybv=function(G){_.FN.call(this);var b=this;this.JSC$23379_watchApi=G;iJI(this);P4K(this);dhg(this);var I=this.JSC$23379_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.Te("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.di.get("wide",void 0)==="1"&&_.yE("wide","1",_.Te("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){b.JSC$23379_watchApi.unsubscribeByKey(I)});
G=G.getRoot();if(G.is==="ytd-watch-flexy"||G.is==="ytd-watch-grid")G.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.hCl();_.U("web_watch_log_theater_mode_cookie_state")&&_.di.get("wide","0")==="1"&&_.ziO("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.M(_.ybv,_.FN);var iJI=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23379_watchApi.playerApi,2);b=h.yieldResult;I=function(q){rbE(G,!!q)};
b.addEventListener("SIZE_CLICKED",I);G.addOnDisposeCallback(function(){b.removeEventListener("SIZE_CLICKED",I)});
_.ip(h)})},P4K=function(G){G.JSC$23379_watchApi.registerActionHandler("yt-toggle-theater-mode",function(b,I){rbE(G,b,I===void 0?!0:I)});
G.addOnDisposeCallback(function(){G.JSC$23379_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.ybv.prototype.getState=function(){return _.BN(_.Cw().getState())};
var rbE=function(G,b,I){I=I===void 0?!0:I;var h,q,l,V=_.U("enable_player_resize_transition")&&!!G.JSC$23379_watchApi.getWatchNextResponse()&&!((h=G.JSC$23379_watchApi.getWatchNextResponse())==null?0:(q=h.contents)==null?0:(l=q.twoColumnWatchNextResults)==null?0:l.conversationBar);_.Fue(function(){_.Cw().dispatch(_.wK({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:b}}));_.U("theater_mode_scroll_to_top_killswitch")||G.JSC$23379_watchApi.scrollWatchTo(0,!1);_.Kv()&&_.U("external_fullscreen")&&_.uU(document.documentElement);
dhg(G);I&&_.yE("wide",b?"1":"0",_.Te("theater_mode_cookie_max_age_seconds",-1));_.wL(G.JSC$23379_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);G.JSC$23379_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:b});b&&_.hCl()},{shouldWrap:V})},dhg=function(G){var b;
_.c(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23379_watchApi.playerApi,2);b=I.yieldResult;b.setSizeStyle(!0,G.getState());_.ip(I)})};var WHh=function(G){_.FN.call(this);var b=this;this.playerApi=G;this.timeToPanelSyncKeyMap={};var I;if(G==null?0:(I=G.isReady)==null?0:I.call(G)){I=_.Nj(_.LL().resolve(_.nR),function(q){return q.entities.timedMarkersListSyncEntity||{}},function(q,l){q=q===void 0?{}:q;
l=l===void 0?{}:l;for(var V=_.e(Object.keys(l)),D=V.next();!D.done;D=V.next())D=D.value,q[D]!==l[D]&&FHv(b,l[D]);l=_.e(Object.keys(q));for(V=l.next();!V.done;V=l.next())V=V.value,D=q[V],b.timeToPanelSyncKeyMap[V]&&HJg(b,D)});
this.addOnDisposeCallback(I);var h=function(q){b.onCueRangeEnter(q)};
G.addEventListener("onCueRangeEnter",h);this.addOnDisposeCallback(function(){var q;(q=G.removeEventListener)==null||q.call(G,"onCueRangeEnter",h)})}};
_.M(WHh,_.FN);
var HJg=function(G,b){var I,h;if((I=G.playerApi)==null?0:(h=I.isReady)==null?0:h.call(I)){var q;if((I=b==null?void 0:(q=b.timedListData)==null?void 0:q.sections)&&b!=null&&b.key)for(q=_.e(I),I=q.next();!I.done;I=q.next())if(I=I.value,I.timedSyncDataList&&I.sectionId)for(h=0;h<I.timedSyncDataList.length;h++){var l=I.timedSyncDataList[h];l.syncItemId&&G.playerApi.addCueRange(I.sectionId+"_"+b.key+"_"+l.syncItemId,Number(l.videoTimeMs)/1E3,h===I.timedSyncDataList.length-1?0x8000000000000:Number(I.timedSyncDataList[h+
1].videoTimeMs)/1E3)}}},FHv=function(G,b){var I,h;
if((I=G.playerApi)==null?0:(h=I.isReady)==null?0:h.call(I)){var q;if((I=b==null?void 0:(q=b.timedListData)==null?void 0:q.sections)&&b!=null&&b.key)for(q=_.e(I),I=q.next();!I.done;I=q.next())if(I=I.value,I.timedSyncDataList&&I.sectionId){h=_.e(I.timedSyncDataList);for(var l=h.next();!l.done;l=h.next())l=l.value,l.syncItemId&&G.playerApi.removeCueRange(I.sectionId+"_"+b.key+"_"+l.syncItemId)}}};
WHh.prototype.onCueRangeEnter=function(G){for(var b=_.e(Object.keys(this.timeToPanelSyncKeyMap)),I=b.next();!I.done;I=b.next()){I=I.value;var h=_.e(G.split("_"+I+"_")),q=h.next().value;h=h.next().value;if(q&&h){G=_.LL().resolve(_.nR);b=this.timeToPanelSyncKeyMap[I];var l=_.xnu(G.getState(),b);I=a1o(I,q,h);if(I===-1)break;I={activeSyncId:h,activeItemIndex:I,activeSectionInfo:{sectionIdentifier:q}};l?G.dispatch(_.BR("markersEngagementPanelSyncEntity",b,I)):G.dispatch(_.Da("markersEngagementPanelSyncEntity",
b,Object.assign({},{key:b},I)));break}}};
var a1o=function(G,b,I){var h=_.LL().resolve(_.nR),q,l;G=(q=EuA(h.getState(),G))==null?void 0:(l=q.timedListData)==null?void 0:l.sections;if(!G)return-1;q=0;l=_.e(G);for(G=l.next();!G.done;G=l.next()){G=G.value;h=G.timedSyncDataList||[];if(G.sectionId===b)return b=h.findIndex(function(V){return V.syncItemId===I}),b===-1?b:q+b;
q+=h.length}return-1};_.C4v=function(G){_.FN.call(this);var b=this;this.JSC$23392_watchApi=G;this.unresolvedCommands=[];this.JSC$23392_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(I){N2h(b,I)});
this.addOnDisposeCallback(function(){b.JSC$23392_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
YiM(this)};
_.M(_.C4v,_.FN);var YiM=function(G){var b;_.c(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23392_watchApi.playerApi,2);b=I.yieldResult;if(G.isDisposed())return I.return();G.timedSyncObserver=new WHh(b);G.unresolvedCommands.length&&(G.unresolvedCommands.forEach(function(h){return N2h(G,h)}),G.unresolvedCommands=[]);
_.M2(G,G.timedSyncObserver);_.ip(I)})},N2h=function(G,b){if(G.timedSyncObserver){var I=_.g(b,zTM);
if(I&&I.timedSyncEntityKey&&I.panelSyncEntityKey){G=G.timedSyncObserver;b=I.timedSyncEntityKey;var h=I.panelSyncEntityKey;I=!!I.isEnabled;I=I===void 0?!0:I;var q=_.LL().resolve(_.nR);q=EuA(q.getState(),b);I?G.timeToPanelSyncKeyMap[b]||(G.timeToPanelSyncKeyMap[b]=h,HJg(G,q)):(delete G.timeToPanelSyncKeyMap[b],FHv(G,q))}}else G.unresolvedCommands.push(b)};var Jbl=_.C(function(G){var b=G.data,I=G.maybeLogSmartSkipClientData,h=null,q=null,l=_.U("web_enable_auto_focus_for_timely_action_button"),V=function(){h=document.activeElement},D=function(){b().smartSkipMetadata&&(h=document.activeElement,_.tBd(function(){return q}))},k=function(x){if(b().smartSkipMetadata&&(!x||x.key!=="Enter")){h&&h.isConnected&&(_.tBd(function(){return h}),h=null);
var f;(f=q)==null||f.blur()}};
G=_.Xu(function(){I==null||I(!0,b());return!1});
var L=_.Wv(_.s2(function(){return b().rendererContext},{onTap:function(x,f){f({disableClickTracking:!0})}}),_.L8({visibilityCallback:function(x){if(l)x?q&&b().smartSkipMetadata&&(D(),document.addEventListener("focusin",V)):(document.removeEventListener("focusin",V),k());
else if(x){x=_.BH(b().rendererContext);var f=Number(b().maxVisibleDurationMilliseconds),T,B=(T=_.g(b().rendererContext,_.DA))==null?void 0:T.label;x&&f&&B&&(T={label:B,command:x,durationMs:f},_.LL().resolve(_.c9).enqueue(T))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.JC(function(){if(l){var x;if((q=(x=L.value)==null?void 0:x.querySelector("button"))&&b().smartSkipMetadata){var f;(f=L.value)==null||f.addEventListener("keydown",k)}}});
_.uI(function(){l&&(q&&b().smartSkipMetadata&&q.removeEventListener("keydown",k),document.removeEventListener("focusin",V),k())});
return _.v("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:L,"on:click":G},_.v(_.VX,{data:function(){return b().content}},{buttonViewModel:_.sQ}))},"lo");var KHh=_.C(function(G){var b=G.data,I=G.playerApi,h=_.LL().resolve(_.db9);G=_.e(_.bk(function(){b()}));
var q=G.next().value,l=G.next().value,V=function(){return SMh(b(),q())},D=function(L,x){var f,T,B=(f=_.g(x==null?void 0:x.rendererContext,_.jA))==null?void 0:(T=f.loggingDirectives)==null?void 0:T.trackingParams;
if((x=x==null?void 0:x.smartSkipMetadata)&&x.loggingData&&(T=x.loggingData,x=T.algorithmId,f=T.startMilliseconds,T=T.endMilliseconds,x&&f!==void 0&&T!==void 0)){var A,t;L={smartSkipData:Object.assign({},{versionName:x,startMediaTimeMs:f,endMediaTimeMs:T},L&&{userInteractionMediaTimeMs:(Math.floor(((A=_.Kk())==null?void 0:(t=A.getPlayer())==null?void 0:t.getCurrentTime())||0)*1E3).toString()})};A=_.gL();var y;B&&(y=_.VB(B));A&&y&&_.NP(A,y,L)}},k=function(L,x){var f=SMh(b(),L);
if(f){var T=_.g(f,p$o),B;if(B=x)B=I(),f=_.g(f,p$o),B=f!=null&&f.smartSkipMetadata?!(B==null?0:B.isSameMarkerTypeVisible((f==null?void 0:f.smartSkipMetadata.markerKey)||"")):!0;if(B){var A,t;(T==null?0:(A=T.smartSkipMetadata)==null?0:(t=A.loggingData)==null?0:t.isCounterfactual)||(D(!1,T),l(L))}else x||q()!==L||l(void 0)}};
_.K0(function(){var L=b().timelyActions;if(L){L=_.e(L);for(var x=L.next();!x.done;x=L.next()){x=_.g(x.value,p$o);var f=void 0;(f=x)!=null&&f.cueRangeId&&h.timelyActionsMap.set(x.cueRangeId,k)}_.uI(function(){h.timelyActionsMap.clear()})}},"l2RtC");
return _.v("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.v(_.VX,{data:V},{timelyActionViewModel:function(L){return _.v(Jbl,{data:L.data,maybeLogSmartSkipClientData:function(){D(!0,_.g(V(),p$o))}})}}))},"no");_.RDM=function(G){_.FN.call(this);this.JSC$23404_watchApi=G;G=_.e(_.ZZ({},void 0,"UN7k5e"));this.timelyActionsOverlay=G.next().value;this.setTimelyActionsOverlay=G.next().value;uIa(this)};
_.M(_.RDM,_.FN);var uIa=function(G){var b,I,h,q;_.c(function(l){if(l.nextAddress==1)return nVd(G),OJI(G),G.timelyActionsContainer=document.createElement("div"),l.yield(G.JSC$23404_watchApi.playerApi,2);b=l.yieldResult;(h=(I=b).insertTimelyActionUi)==null||h.call(I,G.timelyActionsContainer);q=_.C3(G.timelyActionsContainer,function(){return _.v(KHh,{data:G.timelyActionsOverlay,playerApi:b})},"oo");
G.addOnDisposeCallback(q);_.ip(l)})},OJI=function(G){var b=G.JSC$23404_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){nVd(G)});
G.addOnDisposeCallback(function(){G.JSC$23404_watchApi.unsubscribeByKey(b)})},nVd=function(G){var b=G.JSC$23404_watchApi.getWatchNextResponse();
if(b){var I,h;if(b=_.g((I=b.playerOverlays)==null?void 0:(h=I.playerOverlayRenderer)==null?void 0:h.timelyActionsOverlayViewModel,ozK)){var q;(q=G.setTimelyActionsOverlay)==null||q.call(G,b)}}};_.EV7=function(G){_.FN.call(this);this.JSC$23408_watchApi=G;who(this)};
_.M(_.EV7,_.FN);var who=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23408_watchApi.playerApi,2);b=h.yieldResult;I=function(q){_.Xv.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.g(q,_.tSI)},popupType:"TOAST"}})};
b.addEventListener("onYtShowToast",I);G.addOnDisposeCallback(function(){b.removeEventListener("onYtShowToast",I)});
_.ip(h)})};var phA,$il,q3g,Sia,Xhh,h3M,bvM,IPI,j3d,miK;phA=!1;_.GgK=function(G){_.FN.call(this);this.JSC$23411_watchApi=G;this.fullscreen=this.theater=!1;Sia(this);Xhh(this);$il(this)};
_.M(_.GgK,_.FN);$il=function(G){var b,I,h;_.c(function(q){if(q.nextAddress==1)return q.yield(G.JSC$23411_watchApi.playerApi,2);b=q.yieldResult;if(G.isDisposed())return q.return();I=G.JSC$23411_watchApi.getElement("CINEMATICS");if(!I)return q.return();G.JSC$23411_cinematicController=new _.B7(I,b);_.M2(G,G.JSC$23411_cinematicController);_.npI(G.JSC$23411_cinematicController);bvM(G,_.jds());h=G.JSC$23411_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(l){IPI(G,l)});
G.addOnDisposeCallback(function(){G.JSC$23411_watchApi.unsubscribeByKey(h)});
h3M(G);IPI(G,G.JSC$23411_cinematicController.isAllowed());q3g(G);j3d(G);_.ip(q)})};
q3g=function(G){G.fullscreen=_.Ud(_.Cw().getState());G.theater=_.BN(_.Cw().getState());_.lPI(G,G.fullscreen,G.theater);var b=_.Nj(_.Cw(),_.Ud,function(h){G.fullscreen=h;_.lPI(G,G.fullscreen,G.theater)}),I=_.Nj(_.Cw(),_.BN,function(h){G.theater=h;
_.lPI(G,G.fullscreen,G.theater)});
G.addOnDisposeCallback(b);G.addOnDisposeCallback(I)};
Sia=function(G){var b=G.JSC$23411_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){h3M(G)});
G.addOnDisposeCallback(function(){G.JSC$23411_watchApi.unsubscribeByKey(b)})};
Xhh=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23411_watchApi.playerApi,2);b=h.yieldResult;I=function(q){bvM(G,q)};
b.addEventListener("cinematicSettingsToggleChange",I);G.addOnDisposeCallback(function(){b.removeEventListener("cinematicSettingsToggleChange",I)});
_.ip(h)})};
h3M=function(G){var b=G.JSC$23411_watchApi.getWatchNextResponse(),I;b=_.g(b==null?void 0:(I=b.pageVisualEffects)==null?void 0:I[0],_.$L);var h;(h=G.JSC$23411_cinematicController)==null||_.wah(h,b)};
bvM=function(G,b){var I;(I=G.JSC$23411_cinematicController)==null||_.Oyg(I,b);miK(G)};
IPI=function(G,b){var I;_.c(function(h){if(h.nextAddress==1)return _.U("kevlar_watch_cinematics_invisible")&&(b=!1),h.yield(G.JSC$23411_watchApi.playerApi,2);I=h.yieldResult;I.updateCinematicSettings(b);miK(G);_.ip(h)})};
j3d=function(G){var b=_.m$();if(_.U("kevlar_measure_ambient_mode_idle")&&!b.getFlag(192)&&!phA){phA=!0;var I=_.FQ(_.uu,function(){_.LL().resolve(_.epL).start(1E4)},5E3);
G.addOnDisposeCallback(function(){_.uu.cancelJob(I);_.LL().resolve(_.epL).stop()})}};
_.lPI=function(G,b,I){G.fullscreen=b;G.theater=I;var h;(h=G.JSC$23411_cinematicController)==null||h.setFullscreen(G.fullscreen,G.theater);if(_.U("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(G.theater||G.fullscreen){var q;(q=G.JSC$23411_cinematicController)==null||_.EpK(q)}else if((G=G.JSC$23411_cinematicController)!=null){var l;(l=G.currentCinematicEffect)==null||l.pause()}};
miK=function(G){var b;G.JSC$23411_watchApi.getRoot().toggleCinematicsActive(!((b=G.JSC$23411_cinematicController)==null||!b.isEnabled()))};_.c_g=function(G){_.FN.call(this);var b=this;this.JSC$23414_watchApi=G;this.commentsReady=!1;this.setCommentsJobId=0;G=_.Nj(_.Cw(),_.iE,function(){e3d(b)});
this.addOnDisposeCallback(G);var I=this.JSC$23414_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Vu7(b)}),h=this.JSC$23414_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){Vu7(b)});
this.addOnDisposeCallback(function(){b.JSC$23414_watchApi.unsubscribeByKey(I);b.JSC$23414_watchApi.unsubscribeByKey(h)});
var q=function(){_.U("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Dil(b,"false")};
this.JSC$23414_watchApi.getRoot().addEventListener("yt-page-data-will-update",q);this.addOnDisposeCallback(function(){b.JSC$23414_watchApi.getRoot().removeEventListener("yt-page-data-will-update",q)});
Vu7(this)};
_.M(_.c_g,_.FN);var Vu7=function(G){G.commentsReady=!1;_.uu.cancelJob(G.setCommentsJobId);G.setCommentsJobId=_.FQ(_.uu,function(){e3d(G)},1E3)},e3d=function(G){if(!G.commentsReady){_.sS("cmi");
_.uu.cancelJob(G.setCommentsJobId);var b,I,h,q,l=(b=G.JSC$23414_watchApi.getWatchNextResponse())==null?void 0:(I=b.contents)==null?void 0:(h=I.twoColumnWatchNextResults)==null?void 0:(q=h.results)==null?void 0:q.results.contents;b=void 0;if(l&&l.length)for(l=_.e(l),I=l.next();!I.done;I=l.next())if(I=I.value,q=h=void 0,((h=I)==null?void 0:(q=h.itemSectionRenderer)==null?void 0:q.sectionIdentifier)==="comment-item-section"){_.U("web_watch_provide_undefined_comments")?b=I.itemSectionRenderer:G.JSC$23414_watchApi.provideRenderingData("COMMENTS",
I.itemSectionRenderer);Dil(G,"true");break}_.U("web_watch_provide_undefined_comments")&&G.JSC$23414_watchApi.provideRenderingData("COMMENTS",b);G.commentsReady=!0;G.JSC$23414_watchApi.dispatchEvent("yt-watch-comments-ready")}},Dil=function(G,b){var I;
(I=G.JSC$23414_watchApi.getElement("COMMENTS"))==null||I.setAttribute("canScheduleJobs",b)};_.xiK=function(G){_.FN.call(this);var b=this;this.JSC$23417_watchApi=G;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.U("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.U("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.U("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Te("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)kg7(this);
else{var I=this.JSC$23417_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){vch(b);yZ(b)}),h=this.JSC$23417_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){rg(b);
yZ(b)});
this.JSC$23417_watchApi.getRoot().is==="ytd-watch-grid"&&_.U("swatcheroo_pbs_load_grid")&&(LLI(this),Q3K(this));this.addOnDisposeCallback(function(){b.JSC$23417_watchApi.unsubscribeByKey(I);b.JSC$23417_watchApi.unsubscribeByKey(h);_.uu.cancelJob(b.provideRichGridJobId)});
vch(this);rg(this)}};
_.M(_.xiK,_.FN);var kg7=function(G){var b=G.JSC$23417_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){G.providePlayerJobId=_.q_(_.uu,function(){vch(G);yZ(G)},G.provideAllDataDelayMs)}),I=G.JSC$23417_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){G.provideWatchNextJobId=_.q_(_.uu,function(){rg(G);
yZ(G)},G.provideAllDataDelayMs)}),h=G.JSC$23417_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){G.provideWatchNextJobId=_.q_(_.uu,function(){rg(G);
yZ(G)},G.provideAllDataDelayMs)});
G.JSC$23417_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.FQ(_.uu,function(){vch(G);rg(G);yZ(G)},100)});
G.JSC$23417_watchApi.addPageDisposeJob(function(){_.uu.cancelJob(G.provideWatchNextJobId);_.uu.cancelJob(G.providePlayerJobId)});
G.addOnDisposeCallback(function(){G.JSC$23417_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");G.JSC$23417_watchApi.unsubscribeByKey(b);G.JSC$23417_watchApi.unsubscribeByKey(I);G.JSC$23417_watchApi.unsubscribeByKey(h);_.uu.cancelJob(G.providePlayerJobId);_.uu.cancelJob(G.provideWatchNextJobId)});
vch(G);rg(G)},vch=function(G){var b=G.JSC$23417_watchApi.getPlayerResponse(),I,h,q=(h=b==null?void 0:(I=b.playabilityStatus)==null?void 0:I.messageRenderers)!=null?h:[],l,V;
b=(V=b==null?void 0:(l=b.playabilityStatus)==null?void 0:l.messages)!=null?V:[];l=_.e(b);for(V=l.next();!V.done;V=l.next())q.push({alertRenderer:{text:_.ao(V.value),type:"WARNING"}});G.JSC$23417_watchApi.provideRenderingData("ALERTS",q)},rg=function(G){var b=[],I,h,q,l=G.JSC$23417_watchApi.getWatchNextResponse(),V,D,k,L,x=l==null?void 0:(V=l.contents)==null?void 0:(D=V.twoColumnWatchNextResults)==null?void 0:(k=D.results)==null?void 0:(L=k.results)==null?void 0:L.contents;
if(x)for(V=_.e(x),D=V.next();!D.done;D=V.next())if(D=D.value,D.videoPrimaryInfoRenderer)var f=D;else if(D.videoSecondaryInfoRenderer){var T=D;L=k=void 0;D=Object.assign({},(k=D.videoSecondaryInfoRenderer)==null?void 0:(L=k.metadataRowContainer)==null?void 0:L.metadataRowContainerRenderer);if(D.rows&&D.collapsedItemCount!==void 0){D.rows=D.rows.slice(0,D.collapsedItemCount).filter(function(I5){return!!I5.richMetadataRowRenderer});
D.collapsedItemCount=D.rows.length;var B={metadataRowContainerRenderer:D}}}else if(D.merchandiseShelfRenderer)var A=D;else if(D.ticketShelfRenderer)var t=D;else if(D.expandableMetadataRenderer)var y=D;else if(D.itemSectionRenderer)if(k=D.itemSectionRenderer.contents,L=void 0,G.directlyProvideComments&&((L=D.itemSectionRenderer)==null?void 0:L.sectionIdentifier)==="comment-item-section")_.sS("cmi"),G.JSC$23417_watchApi.provideRenderingData("COMMENTS",D.itemSectionRenderer);else if(k)for(D=_.e(k),k=
D.next();!k.done;k=D.next())if(k=k.value,k.commentsEntryPointHeaderRenderer)var F=k;else if(k.clarificationRenderer||k.infoPanelContainerRenderer||k.infoPanelContentRenderer||k.emergencyOneboxRenderer){b.push(k);var W=W||!!T}else k.limitedStateMessageRenderer?h=k:k.videoMetadataCarouselViewModel&&(q=k);if(_.U("web_watch_merch_in_sd_when_ticket_shelf_present")&&A&&t){var O=A;A=void 0}if(G.provideWatchNextSecondaryResults){var K,u,w;G.JSC$23417_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
l==null?void 0:(K=l.contents)==null?void 0:(u=K.twoColumnWatchNextResults)==null?void 0:(w=u.secondaryResults)==null?void 0:w.secondaryResults)}if(G.JSC$23417_watchApi.getRoot().is==="ytd-watch-grid"){var $a,ev;G.JSC$23417_watchApi.provideRenderingData("LIVE_CHAT",l==null?void 0:($a=l.contents)==null?void 0:(ev=$a.twoColumnWatchNextResults)==null?void 0:ev.conversationBar)}var LO,td,xa,Uj;(K=l==null?void 0:(LO=l.contents)==null?void 0:(td=LO.twoColumnWatchNextResults)==null?void 0:(xa=td.secondaryResults)==
null?void 0:(Uj=xa.secondaryResults)==null?void 0:Uj.offerModule)&&(K.donationShelfRenderer||K.donationUnavailableRenderer)&&G.JSC$23417_watchApi.getRoot().is!=="ytd-watch-grid"&&(I=K);LO=G.JSC$23417_watchApi.getPlayerResponse();if(!LO||!_.OKO(LO.playabilityStatus,l==null?void 0:l.playerOverlays)){var W2;if(l==null?0:(W2=l.contents)==null?0:W2.singleColumnWatchNextResults){var is,su;var an=l==null?void 0:(is=l.contents.singleColumnWatchNextResults.results)==null?void 0:(su=is.results)==null?void 0:
su.contents}else{var A5,XO,kb,rz;W2=!!(x==null?0:(A5=x[0])==null?0:(XO=A5.itemSectionRenderer)==null?0:(kb=XO.contents)==null?0:(rz=kb[0])==null?0:rz.backgroundPromoRenderer);var on,Ac;A5=!!(l==null?0:(on=l.contents)==null?0:(Ac=on.twoColumnWatchNextResults)==null?0:Ac.secondaryResults);W2&&!A5&&(an=x)}}x=b[0];on=b[1];W&&b.length===1&&(on=x,x=void 0);G.JSC$23417_watchApi.provideRenderingData("PRIMARY_INFO",f);G.JSC$23417_watchApi.provideRenderingData("SECONDARY_INFO",T);G.JSC$23417_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
F);G.JSC$23417_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",q);G.JSC$23417_watchApi.provideRenderingData("CLARIFICATION",x);G.JSC$23417_watchApi.provideRenderingData("RICH_METADATA",B);G.JSC$23417_watchApi.provideRenderingData("MERCH_SHELF",A);_.U("web_watch_merch_in_sd_when_ticket_shelf_present")&&G.JSC$23417_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",O);G.JSC$23417_watchApi.provideRenderingData("TICKET_SHELF",t);G.JSC$23417_watchApi.provideRenderingData("LIMITED_STATE",h);G.JSC$23417_watchApi.getRoot().is!==
"ytd-watch-grid"&&G.JSC$23417_watchApi.provideRenderingData("DONATION_SHELF",I);G.JSC$23417_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",an);G.JSC$23417_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",on);G.JSC$23417_watchApi.provideRenderingData("EXPANDABLE_METADATA",y);if(G.swatcherooProvideAllDataOnScheduledJob){var U1,mp,bn,xb,j8,BX;f=l==null?void 0:(U1=l.contents)==null?void 0:(mp=U1.twoColumnWatchNextResults)==null?void 0:(bn=mp.secondaryResults)==null?void 0:(xb=bn.secondaryResults)==
null?void 0:(j8=xb.results)==null?void 0:(BX=j8[0])==null?void 0:BX.richGridRenderer;G.JSC$23417_watchApi.provideRenderingData("RICH_GRID_RENDERER",f)}};
_.xiK.prototype.hasCompanionAds=function(G){var b,I;return(I=G==null?void 0:(b=G.adPlacements)==null?void 0:b.some(function(h){var q,l,V,D;return(h==null?void 0:(q=h.adPlacementRenderer)==null?void 0:(l=q.renderer)==null?void 0:l.actionCompanionAdRenderer)||(h==null?void 0:(V=h.adPlacementRenderer)==null?void 0:(D=V.renderer)==null?void 0:D.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?I:!1};
var yZ=function(G){if(!_.U("swaterdoo_ps_wn_handle_ks")){G.swatcherooProvideAllDataOnScheduledJob||Q3K(G,3E3);var b=G.JSC$23417_watchApi.getPlayerResponse(),I,h,q,l,V,D=(I=G.JSC$23417_watchApi.getWatchNextResponse())==null?void 0:(h=I.contents)==null?void 0:(q=h.twoColumnWatchNextResults)==null?void 0:(l=q.secondaryResults)==null?void 0:(V=l.secondaryResults)==null?void 0:V.offerModule;b=G.hasCompanionAds(b);var k,L;I=(D==null?void 0:(k=D.tvfilmOfferModuleRenderer)==null?void 0:k.clientShouldSuppressIfCompanionAdDisplayed)||
(D==null?void 0:(L=D.unlimitedOfferModuleRenderer)==null?void 0:L.suppressIfCompanionAds);k=b&&I;G.JSC$23417_watchApi.getRoot().is==="ytd-watch-grid"&&G.JSC$23417_watchApi.provideRenderingData("OFFER_MODULE",k?void 0:D)}},Q3K=function(G,b){_.U("swatcheroo_pbs_load_grid")&&(G.provideRichGridJobId&&_.uu.cancelJob(G.provideRichGridJobId),G.provideRichGridJobId=_.q_(_.uu,function(){G.provideRichGridJobId=0;
var I,h,q,l,V,D,k,L=(I=G.JSC$23417_watchApi.getWatchNextResponse())==null?void 0:(h=I.contents)==null?void 0:(q=h.twoColumnWatchNextResults)==null?void 0:(l=q.secondaryResults)==null?void 0:(V=l.secondaryResults)==null?void 0:(D=V.results)==null?void 0:(k=D[0])==null?void 0:k.richGridRenderer;L&&G.JSC$23417_watchApi.provideRenderingData("RICH_GRID_RENDERER",L)},b))},LLI=function(G){var b,I;
_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23417_watchApi.playerApi,2);b=h.yieldResult;I=function(){G.onPlaybackStart()};
b.addEventListener("onPlaybackStartExternal",I);G.addOnDisposeCallback(function(){b.removeEventListener("onPlaybackStartExternal",I)});
_.ip(h)})};
_.xiK.prototype.onPlaybackStart=function(){Q3K(this)};_.TLv=function(G){_.FN.call(this);var b=this;this.JSC$23430_watchApi=G;G.playerApi.then(function(I){b.player=I});
this.gestures=new _.eQ(this.JSC$23430_watchApi.getRoot(),G.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.$Ql(_.Cw().getState())&&_.iE(_.Cw().getState())<=0)if(_.Ud(_.Cw().getState())){var I;(I=b.player)==null||I.toggleFullscreen()}else _.wL(b.JSC$23430_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
fPK(this)};
_.M(_.TLv,_.FN);var fPK=function(G){var b=_.Nj(_.Cw(),_.Ud,function(I){G.onFullscreenChanged(I)});
G.addOnDisposeCallback(b);b=_.Nj(_.Cw(),_.iE,function(I){G.gestures&&(I>0?G.gestures.detach():G.gestures.attach())});
G.addOnDisposeCallback(b)};
_.TLv.prototype.onFullscreenChanged=function(G){this.gestures&&this.gestures.update(G)};var BLg;BLg=["PLAYLIST"];_.s3A=function(G){_.FN.call(this);var b=this;this.JSC$23433_watchApi=G;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(G.subscribeToActiveChanged(function(I){b.onActiveChanged(I)}));
Uiv(this)};
_.M(_.s3A,_.FN);var gcA=function(G){G.pageDisposalDataTypes=Object.values(a8I).filter(function(b){return!BLg.includes(b)})},Uiv=function(G){if(_.U("swatcheroo_enable_ghost_cards")||_.U("web_watch_clear_data_on_page_dispose"))gcA(G),G.JSC$23433_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.uu.cancelJob(G.clearDataJobId);
G.clearDataJobId=0}),G.runPageDisposeJob=function(){var b=_.LL().resolve(_.Ck).getDestinationPageType()==="watch";
G.clearDataJobId=_.q_(_.uu,G.runClearDataJob,b?0:_.Te("web_watch_delay_page_dispose_ms",1E4))},G.runClearDataJob=function(){A_d(G)},G.runOnYtNavigateAwayFinish=function(){G.clearDataJobId&&(_.uu.cancelJob(G.clearDataJobId),G.clearDataJobId=0,A_d(G))},document.addEventListener("yt-navigate-finish",G.runOnYtNavigateAwayFinish),G.JSC$23433_watchApi.addPageDisposeJob(G.runPageDisposeJob),G.addOnDisposeCallback(function(){G.JSC$23433_watchApi.removePageDisposeJob(G.runPageDisposeJob);
G.JSC$23433_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",G.runOnYtNavigateAwayFinish)})},A_d=function(G){G.pageDisposalDataTypes.forEach(function(b){G.JSC$23433_watchApi.provideRenderingData(b,void 0)});
G.clearDataJobId=0};
_.s3A.prototype.onActiveChanged=function(G){G&&((G=document.querySelector("#watch-page-skeleton"))&&_.iG(G),MuI(this),document.body.removeAttribute("no-y-overflow"),_.Sk("IS_SHELL_LOAD")&&_.n3I())};
var MuI=function(G){_.c(function(b){if(b.nextAddress==1)return b.yield(G.JSC$23433_watchApi.playerApi,2);_.PR();_.ip(b)})};var Zva;Zva=_.U("kevlar_watch_while_counterfactual")?0:.25;_.ivK=function(G){_.FN.call(this);this.JSC$23436_watchApi=G;this.JSC$23436_watchWhileEnabled=_.U("kevlar_watch_while_v2");this.pipEnabled=_.U("web_enable_pip_on_miniplayer");tuK(this);z3A(this);oco(this)};
_.M(_.ivK,_.FN);var tuK=function(G){G.JSC$23436_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){PUz(G)});
G.addOnDisposeCallback(function(){G.JSC$23436_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},z3A=function(G){var b,I;
_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23436_watchApi.playerApi,2);b=h.yieldResult;I=function(){PUz(G)};
b.addEventListener("onCollapseMiniplayer",I);G.addOnDisposeCallback(function(){b.removeEventListener("onCollapseMiniplayer",I)});
_.ip(h)})},oco=function(G){var b=G.JSC$23436_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&b&&G.JSC$23436_watchWhileEnabled&&(G.playerIntersectionObserver=new IntersectionObserver(function(I){G.handleIntersect(I)},{threshold:[Zva]}),G.playerIntersectionObserver.observe(b),G.addOnDisposeCallback(function(){var I;
(I=G.playerIntersectionObserver)==null||I.disconnect()}))},PUz=function(G){var b,I,h;
_.c(function(q){if(q.nextAddress==1){b=_.LL().resolve(_.Ck);I=b.data;h=_.gP(I.response,!1,I.playerResponse);_.Ws().miniplayerButtonActivation=!0;if(G.pipEnabled)return _.Ws().watchPipActivation=!0,q.jumpTo(2);_.LL().resolve(_.zO).collapse();return q.yield(_.Ws().navigationFinishPromise,2)}if(q.nextAddress!=4)return _.Ws().currentEndpoint=h.watchEndpoint||null,q.yield(_.LL().resolve(_.zO).activate(G.JSC$23436_watchApi.getElement("PLAYER"),h,I),4);_.Ws().userActivation=!0;_.ip(q)})};
_.ivK.prototype.handleIntersect=function(G){dio(this,G[G.length-1])};
var dio=function(G,b){G.watchWhileJobId&&_.uu.cancelJob(G.watchWhileJobId);G.watchWhileJobId=_.uu.addLowPriorityJob(function(){var I,h;return _.c(function(q){if(q.nextAddress==1)return G.watchWhileJobId=void 0,I=_.LL().resolve(_.zO),b.intersectionRatio>Zva?I.isMiniplayerActive()?q.yield(I.deactivate(),0):q.jumpTo(0):(h=!I.isMiniplayerActive())?q.yield(y_d(G),5):q.jumpTo(4);q.nextAddress!=4&&(h=q.yieldResult);if(!h)return q.jumpTo(0);_.Ws().watchWhileActivation=!0;return q.yield(r_M(G),0)})},100)},
y_d=function(G){return _.c(function(b){return b.nextAddress==1?_.U("kevlar_watch_while_paused")?b.return(!0):b.yield(G.isPlayerPlaying(),2):b.return(b.yieldResult)})};
_.ivK.prototype.isPlayerPlaying=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23436_watchApi.playerApi,2);b=I.yieldResult;return I.return(b.getPlayerStateObject().isPlaying)})};
var r_M=function(G){var b,I;return _.c(function(h){b=_.LL().resolve(_.Ck).data;I=_.gP(b.response,!1,b.playerResponse);_.Ws().currentEndpoint=I.watchEndpoint||null;return h.yield(_.LL().resolve(_.zO).activate(G.JSC$23436_watchApi.getElement("PLAYER"),I,b),0)})};_.WLd=function(G){_.FN.call(this);this.JSC$23440_watchApi=G;FLo(this);HvK(this)};
_.M(_.WLd,_.FN);var HvK=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23440_watchApi.playerApi,2);b=h.yieldResult;I=function(q){var l;q.sessionData&&q.sessionData.itct&&(l=q.sessionData.itct);var V=q.watchEndpoint;if(V&&q.sessionData&&q.sessionData.autonav)V=_.Jms(V,l);else{var D;V=_.u9(q.videoId,(D=q.listId)!=null?D:void 0,l)}l={endpoint:V};q.sessionData&&(l.tempData=q.sessionData);G.JSC$23440_watchApi.dispatchEvent("yt-navigate",l)};
b.addEventListener("onPlayVideo",I);G.addOnDisposeCallback(function(){b.removeEventListener("onPlayVideo",I)});
_.ip(h)})},FLo=function(G){var b=function(I){G.onYtNavigate(I)};
G.JSC$23440_watchApi.getRoot().addEventListener("yt-navigate",b);G.addOnDisposeCallback(function(){G.JSC$23440_watchApi.getRoot().removeEventListener("yt-navigate",b)})};
_.WLd.prototype.onYtNavigate=function(G){var b=this,I,h,q,l,V,D,k,L,x;return _.c(function(f){if(f.nextAddress==1){if(!((I=G.detail)==null?0:(h=I.endpoint)==null?0:h.watchEndpoint))return f.return();q=G.detail.endpoint.watchEndpoint;l=b.JSC$23440_watchApi.getWatchNextResponse();D=_.g((V=l)==null?void 0:V.currentVideoEndpoint,_.Wq);if(!D)return f.return();if(q.videoId!==D.videoId||q.playlistId&&q.playlistId!==D.playlistId||typeof q.startTimeSeconds!=="number")return f.jumpTo(0);G.stopPropagation();
(k=_.U("kevlar_watch_while_v2")&&!_.U("kevlar_watch_while_counterfactual"))&&_.LL().resolve(_.zO).isMiniplayerActive()||b.JSC$23440_watchApi.scrollWatchTo(0,!0);return f.yield(b.JSC$23440_watchApi.playerApi,3)}L=f.yieldResult;x=q.startTimeSeconds;L.seekTo(x,void 0,void 0,void 0,84);L.wakeUpControls();x<L.getDuration()&&L.playVideo();_.ip(f)})};_.NLA=function(G){_.FN.call(this);var b=this;this.JSC$23443_watchApi=G;var I=this.JSC$23443_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){aPz(b)});
this.addOnDisposeCallback(function(){b.JSC$23443_watchApi.unsubscribeByKey(I)});
aPz(this);_.U("enable_ai_companion")&&(G=this.JSC$23443_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.WuL(_.LL().resolve(_.RF),G,"WATCH")};
_.M(_.NLA,_.FN);var aPz=function(G){var b=G.JSC$23443_watchApi.getWatchNextResponse();if(b){var I,h=[].concat(_.Nz((I=b==null?void 0:b.engagementPanels)!=null?I:[]));h.unshift.apply(h,_.Nz(Y3I(b)));G.JSC$23443_watchApi.provideRenderingData("ENGAGEMENT_PANELS",h)}},CUI=function(G){var b,I,h,q=(b=G.engagementPanels)==null?void 0:(I=b.find(function(B){var A;
return((A=B.engagementPanelSectionListRenderer)==null?void 0:A.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(h=I.engagementPanelSectionListRenderer.content)==null?void 0:h.structuredDescriptionContentRenderer,l;
if(_.g(q==null?void 0:(l=q.items)==null?void 0:l.find(function(B){return!!_.g(B,nz7)}),nz7))return!0;
var V,D,k,L;if(G=(((V=G.contents)==null?void 0:(D=V.twoColumnWatchNextResults)==null?void 0:(k=D.results)==null?void 0:(L=k.results)==null?void 0:L.contents)||[]).find(function(B){return B.videoPrimaryInfoRenderer})){var x,f,T;
return(((x=G.videoPrimaryInfoRenderer)==null?void 0:(f=x.videoActions)==null?void 0:(T=f.menuRenderer)==null?void 0:T.flexibleItems)||[]).some(function(B){B=_.g(B,_.Vt8);if(!B)return!1;var A,t;B=(A=B.topLevelButton)==null?void 0:(t=A.buttonViewModel)==null?void 0:t.onTap;if(!B)return!1;A=_.s0(B);if(!A)return!1;var y;return((y=_.g(A,_.UE))==null?void 0:y.panelIdentifier)==="PAyouchat"})}return!1},Y3I=function(G){var b=[];
if(!_.U("web_watch_inject_placeholder_fantasy_panel_killswitch")){var I,h,q,l=(I=G.engagementPanels)==null?void 0:(h=I.find(function(D){var k;return((k=D.engagementPanelSectionListRenderer)==null?void 0:k.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(q=h.engagementPanelSectionListRenderer.content)==null?void 0:q.structuredDescriptionContentRenderer,V;
_.g(l==null?void 0:(V=l.items)==null?void 0:V.find(function(D){return!!_.g(D,gzK)}),gzK)&&(I=_.twB("PAsports_fantasy"),I.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b.push(I))}CUI(G)&&(G=_.twB("PAyouchat"),G.engagementPanelSectionListRenderer.targetId="PAyouchat",G.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b.push(G));
return b};_.KLg=function(G){_.FN.call(this);this.JSC$23446_watchApi=G;J_I(this)};
_.M(_.KLg,_.FN);var J_I=function(G){G.JSC$23446_watchApi.registerActionHandler("yt-loop-command",function(b){u87(G,b)});
G.JSC$23446_watchApi.registerActionHandler("yt-repeat-chapter-command",function(b){R37(G,b)});
G.addOnDisposeCallback(function(){G.JSC$23446_watchApi.unregisterActionHandler("yt-loop-command");G.JSC$23446_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},u87=function(G,b){var I;
_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23446_watchApi.playerApi,2);I=h.yieldResult;_.g(b,MkK).loop?(I.setLoopRange({startTimeMs:Number(_.g(b,MkK).startTimeMs),endTimeMs:Number(_.g(b,MkK).endTimeMs),postId:_.g(b,MkK).postId,type:"clips"}),I.playVideo()):I.setLoopRange(null);_.ip(h)})},R37=function(G,b){var I,h;
_.c(function(q){if(q.nextAddress==1)return q.yield(G.JSC$23446_watchApi.playerApi,2);I=q.yieldResult;h=_.g(b,i3g).repeat;h==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(I.setLoopRange({startTimeMs:Number(_.g(b,i3g).startTimeMs),endTimeMs:Number(_.g(b,i3g).endTimeMs),type:"repeatChapter"}),I.playVideo()):h==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&I.setLoopRange(null);_.ip(q)})};_.OvM=function(G){_.FN.call(this);this.JSC$23451_watchApi=G;ncM(this)};
_.M(_.OvM,_.FN);var ncM=function(G){G.JSC$23451_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(b){wql(G,b)});
G.addOnDisposeCallback(function(){G.JSC$23451_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},wql=function(G,b){var I,h,q,l,V,D,k,L,x,f,T;
_.c(function(B){if(B.nextAddress==1)return B.yield(G.JSC$23451_watchApi.playerApi,2);I=B.yieldResult;if(l=(q=(h=_.g(b,PMM))==null?void 0:h.highlightedMenuItemKey)!=null?q:"")(D=(V=I).highlightSettingsMenuItem)==null||D.call(V,l);if(x=(L=(k=_.g(b,PMM))==null?void 0:k.openMenuItemKey)!=null?L:"")(T=(f=I).openSettingsMenuItem)==null||T.call(f,x);_.ip(B)})};var EcK=_.$S("/youtube/app/watch/player_state","playerStateEntity");_.FP=function(G){_.FN.call(this);this.JSC$23454_watchApi=G;pqA(this)};
_.M(_.FP,_.FN);var S3K=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"}},pqA=function(G){var b,I,h,q,l;
_.c(function(V){if(V.nextAddress==1)return V.yield(G.JSC$23454_watchApi.playerApi,2);b=V.yieldResult;if(G.isDisposed())return V.return();I=function(D){G.onPlayerStateChange(D)};
h=function(D){G.onAdStateChange(D)};
q=function(){G.onAdSkip()};
l=function(D){G.onVideoDataChange(D)};
b.addEventListener("onStateChange",I);b.addEventListener("onAdStateChange",h);b.addEventListener("onAdSkip",q);b.addEventListener("onVideoDataChange",l);G.addOnDisposeCallback(function(){b.removeEventListener("onStateChange",I);b.removeEventListener("onAdStateChange",h);b.removeEventListener("onAdSkip",q);b.removeEventListener("onVideoDataChange",l)});
_.ip(V)})},XqI=function(G){var b=_.H5(),I=b.dispatch;
a:switch(G.adsState){case -1:case 0:var h="ADS_STATE_NONE";break a;case 1:case 2:case 3:h="ADS_STATE_PLAYING";break a;default:h="ADS_STATE_UNKNOWN"}I.call(b,_.Da("playerStateEntity",EcK,{key:EcK,playerState:S3K(G.playerState),adsState:h,videoId:G.videoId}))};
_.FP.prototype.onPlayerStateChange=function(G){var b=this,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(b.JSC$23454_watchApi.playerApi,2);I=h.yieldResult;if(b.isDisposed())return h.return();b.playerState=G;b.videoId=I.getVideoData().video_id;XqI(b);_.ip(h)})};
_.FP.prototype.onAdStateChange=function(G){this.adsState=G;XqI(this)};
_.FP.prototype.onAdSkip=function(){this.adsState=0;XqI(this)};
_.FP.prototype.onVideoDataChange=function(G){G.type==="newdata"&&(this.adsState=-1,XqI(this))};_.GmM=function(G){_.FN.call(this);var b=this;this.JSC$23458_watchApi=G;this.enableExternalPlaylistPanelInPlayer=_.U("delhi_web_player_use_external_playlist_panel");_.LL().resolve(_.jm).setPlayer(this.JSC$23458_watchApi.getElement("PLAYER"));G=this.JSC$23458_watchApi.subscribeToActiveChanged(function(I){b.onActiveChanged(I)});
this.addOnDisposeCallback(G);$Pd(this)};
_.M(_.GmM,_.FN);var $Pd=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return G.enableExternalPlaylistPanelInPlayer?h.yield(G.JSC$23458_watchApi.playerApi,2):h.return();b=h.yieldResult;I=function(){if(G.playlistPanelElement)G.playlistPanelElement.onToggleExpanded()};
b.addEventListener("onToggleExternalPlaylistPanel",I);G.addOnDisposeCallback(function(){b.removeEventListener("onToggleExternalPlaylistPanel",I)});
_.ip(h)})};
_.GmM.prototype.onActiveChanged=function(G){var b=this,I=_.LL().resolve(_.jm),h=function(){bUo(b)};
G?(this.playlistPanelElement=this.JSC$23458_watchApi.getElement("PLAYLIST_PANEL"))?(I.setPlaylistComponent(this.playlistPanelElement),I.addEventListener("yt-playlist-data-updated",h),this.addOnDisposeCallback(function(){I.removeEventListener("yt-playlist-data-updated",h)}),bUo(this)):_.bB(Error("dp")):(I.removeEventListener("yt-playlist-data-updated",h),I.cancelVideoSkip())};
var bUo=function(G){var b=_.LL().resolve(_.jm);G.JSC$23458_watchApi.provideRenderingData("PLAYLIST",b.getPlaylistData())};_.Hb=function(G){_.FN.call(this);var b=this;this.JSC$23461_watchApi=G;this.onPageScroll=function(){b.scrollThrottle.fire();b.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.GB(this.onThrottledScroll,200,this);_.M2(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.GB(this.onMastheadThrottledScroll,50,this);_.M2(this,this.mastheadScrollThrottle);this.animation=new _.Vb(function(I){b.JSC$23461_watchApi.getRoot().setScrollTop(I)});
G=_.Nj(_.Cw(),_.Ud,function(){b.onFullscreenChanged()});
this.addOnDisposeCallback(G);IEK(this);hZd(this);this.onThrottledScroll()};
_.M(_.Hb,_.FN);
_.Hb.prototype.onFullscreenChanged=function(){var G=this,b=this.JSC$23461_watchApi.getRoot();!this.pageScrollElement&&b.pageScrollElement?(this.pageScrollElement=b.pageScrollElement,b.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){G.pageScrollElement&&G.pageScrollElement.removeEventListener("scroll",G.onPageScroll)})):this.pageScrollElement&&!b.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var IEK=function(G){window.addEventListener("scroll",G.onPageScroll);G.addOnDisposeCallback(function(){window.removeEventListener("scroll",G.onPageScroll)})},hZd=function(G){G.JSC$23461_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(b){a:{var I;
if(I=G.JSC$23461_watchApi.getRoot().contains(b)&&!G.animation.isAnimating()){I=b.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var h,q,l=(b==null?void 0:(h=b.parentElement)==null?void 0:(q=h.parentElement)==null?void 0:q.id)==="fixed-secondary";I=!(I&&l)}if(I){if(_.U("kevlar_watch_scroll_manager_absolute_offset_killswitch"))h=b.offsetTop;else for(h=0,q=b;q!==null;)h+=q.offsetTop,h-=q.scrollTop,q=q.offsetParent;q=h;h=q-24;b=q+b.offsetHeight+24;q=G.JSC$23461_watchApi.getRoot().getPageScrollingElement();
I=G.JSC$23461_watchApi.getRoot().getScrollTop();l=I+q.clientHeight-56;if(h<I+56)b=h-56;else if(b>l)b-=q.clientHeight;else break a;G.scrollWatchTo(Math.max(0,b),!0)}}});
G.addOnDisposeCallback(function(){G.JSC$23461_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.Hb.prototype.onThrottledScroll=function(){var G=_.Cw(),b=G.dispatch,I=this.JSC$23461_watchApi.getRoot().getScrollTop();b.call(G,_.wK({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:I}}))};
_.Hb.prototype.onMastheadThrottledScroll=function(){this.JSC$23461_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23461_watchApi.getRoot().getScrollTop())};
_.Hb.prototype.scrollWatchTo=function(G,b){(b===void 0?0:b)?this.animation.start(this.JSC$23461_watchApi.getRoot().getScrollTop(),Math.max(0,G),500):this.JSC$23461_watchApi.getRoot().setScrollTop(G)};_.lE7=function(G){_.FN.call(this);var b=this;this.JSC$23464_watchApi=G;var I=this.JSC$23464_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){qSv(b)}),h=this.JSC$23464_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jWh(b)});
this.addOnDisposeCallback(function(){b.JSC$23464_watchApi.unsubscribeByKey(I);b.JSC$23464_watchApi.unsubscribeByKey(h)});
qSv(this);jWh(this)};
_.M(_.lE7,_.FN);
var qSv=function(G){var b,I,h,q=(h=(b=G.JSC$23464_watchApi.getPlayerResponse())==null?void 0:(I=b.videoDetails)==null?void 0:I.title)!=null?h:"";G.JSC$23464_watchApi.dispatchEvent("yt-update-title",q)},jWh=function(G){var b,I,h,q,l,V,D,k=(D=((V=(b=G.JSC$23464_watchApi.getWatchNextResponse())==null?void 0:(I=b.contents)==null?void 0:(h=I.twoColumnWatchNextResults)==null?void 0:(q=h.results)==null?void 0:(l=q.results)==null?void 0:l.contents)!=null?V:[]).find(function(L){return!!L.videoPrimaryInfoRenderer}))==null?
void 0:D.videoPrimaryInfoRenderer;
(b=_.NO(k==null?void 0:k.title))&&G.JSC$23464_watchApi.dispatchEvent("yt-update-title",b)};_.eZA=function(G){_.FN.call(this);this.JSC$23467_watchApi=G;mPI(this)};
_.M(_.eZA,_.FN);var mPI=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$23467_watchApi.playerApi,2);b=h.yieldResult;I=function(){G.onYpcContentRequest()};
b.addEventListener("onYpcContentRequest",I);G.addOnDisposeCallback(function(){b.removeEventListener("onYpcContentRequest",I)});
_.ip(h)})};
_.eZA.prototype.onYpcContentRequest=function(){var G,b,I,h,q,l=(G=this.JSC$23467_watchApi.getWatchNextResponse())==null?void 0:(b=G.contents)==null?void 0:(I=b.twoColumnWatchNextResults)==null?void 0:(h=I.secondaryResults)==null?void 0:(q=h.secondaryResults)==null?void 0:q.offerModule,V,D,k,L;G=(L=(k=(D=(V=l==null?void 0:l.episodeOfferModuleRenderer)!=null?V:l==null?void 0:l.movieOfferModuleRenderer)!=null?D:l==null?void 0:l.unlimitedOfferModuleRenderer)!=null?k:l==null?void 0:l.liveOfferModuleRenderer)!=
null?L:l==null?void 0:l.tvfilmOfferModuleRenderer;var x,f,T;l=(T=l==null?void 0:(x=l.tvfilmOfferModuleRenderer)==null?void 0:(f=x.actionButtons)==null?void 0:f.length)!=null?T:0;f=Math.max(l-1,0);var B,A,t;x=(t=G==null?void 0:(B=G.offerButton)==null?void 0:B.buttonRenderer)!=null?t:G==null?void 0:(A=G.actionButtons)==null?void 0:A[f].buttonRenderer;var y,F;(B=(F=(y=x==null?void 0:x.navigationEndpoint)!=null?y:x==null?void 0:x.serviceEndpoint)!=null?F:x==null?void 0:x.command)&&_.Xv.instance.resolveCommand(B)};
}catch(e){_._DumpException(e)}
try{
var AIe,U5L,T8W;_.B8f=function(){var G=_.Cy.clone(fda),b;return(new _.MB(function(I,h){G.onSuccess=function(q){_.qSj(q)?I(new T8W(q)):h(new _.ww("Request failed, status="+_.gi(q),"net.badstatus",q))};
G.onError=function(q){h(new _.ww("Unknown request error","net.unknown",q))};
G.onTimeout=function(q){h(new _.ww("Request timed out","net.timeout",q))};
b=_.ze("//googleads.g.doubleclick.net/pagead/id",G)})).thenCatch(function(I){if(I instanceof _.zI){var h;
(h=b)==null||h.abort()}return _.vv(I)})};
_.s95=function(G){a:{var b="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var I=G.raw_embedded_player_response;if(!I&&(G=G.embedded_player_response))try{I=JSON.parse(G)}catch(q){break a}if(I)b:for(var h in U5L)if(U5L[h]==I.embeddedPlayerMode){b=U5L[h];break b}}return b==="EMBEDDED_PLAYER_MODE_PFL"};
_.gyY=function(){if(_.U("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.uZq())return Error("wf");var G=_.wy("PLAYER_VARS",{});if(_.Cy.get(G,"privembed",!1)=="1")return Error("xf");if(_.s95(G))return Error("yf")};
AIe=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:_.Eu(G,"unknown result type")}};
_.MHL=function(G,b,I){b=_.GCa[b];I={detected:G===0,source:b.p6M,detectionResult:AIe(G),contentCpn:I};_.C1("biscottiBasedDetection",I);_.G2e.increment(b.p6M,G);b.m0p!==void 0&&_.OB("CATSTAT",_.XcB(G,b))};
_.E_=function(G,b){var I={};I.key=G;I.value=b;return _.ssO().then(function(h){return new Promise(function(q,l){try{var V=h.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(I);V.onsuccess=function(){q()};
V.onerror=function(){l()}}catch(D){l(D)}})})};
_.tHW=function(){var G=_.Te("user_engagement_experiments_rate_limit_ms"),b=Znf.get("last-user-engagement-exp-trigger-timestamp");return!b||(0,_.Li)()>=b+G?(Znf.set("last-user-engagement-exp-trigger-timestamp",(0,_.Li)()),!0):!1};
_.pZ=function(G,b,I,h,q){b=b===void 0?null:b;I=I===void 0?null:I;h=h===void 0?null:h;q=q===void 0?null:q;G={youThereEventType:G};I&&(G.lactThresholdMs=I.lactThresholdMs,G.mediaPosSec=I.promptDelaySec,G.lactServerRequestMs=I.lactServerRequestMs,G.triggerReason=I.triggerReason);q!=null&&(G.renderingMediaPosSec=Math.round(q));b||(b=_.gL());b&&(G.clientScreenNonce=b);h&&(G.clientPlaybackNonce=h);_.C1("youThere",G)};
U5L={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"};T8W=function(G){this.xhr=G};
_.ww=function(G,b,I){_.bs.call(this,G+", errorCode="+b);this.errorCode=b;this.xhr=I;this.name="PromiseAjaxError"};
_.M(_.ww,_.bs);var fda={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Znf=new _.EA("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.x5j=function(G){return _.wK({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:G})};
}catch(e){_._DumpException(e)}
try{
var Jp,aEv,YS7,C9l,JZd,K$M,RZa,GiK,bwI,I0o,uTz,NKl,EPI,wTl,joz;_.W$M=function(){var G=window.location.hash;G.charAt(0)==="#"&&(G=G.charAt(1)==="!"?G.substring(2):G.substring(1));return _.q1(G)};
Jp=function(G,b,I){var h;return _.c(function(q){if(q.nextAddress==1)return q.yield(b(),2);h=q.yieldResult;I(h,G);_.ip(q)})};
aEv=function(){return _.c(function(G){return G.nextAddress==1?G.yield((_.gyY()!==void 0?_.vv(Error("zf")):_.B8f()).then(function(){return 1},function(b){if(b.message==="Biscotti id is disabled")return 3;
_.RB("Failed fetching bid");return 0}),2):G.return(G.yieldResult)})};
YS7=function(){var G=_.Ro("dC1oYXZlbi1lbWJlZC1wbGF5ZXIjdGZoNTIzbTh2cjRheQ=="),b=_.Ro("b3k4ZXl5ZjA4bWlmcmFtZSNmdQ==");return document.querySelector(b+NKl+G)?0:1};
C9l=function(){return _.N1q(_.vQ)};
JZd=function(){return _.YmO()===0?0:_.Cod()};
K$M=function(){return _.n9j(_.lsO([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
RZa=function(){return _.PoO(uTz)};
_.nPo=function(G){_.c(function(b){switch(b.nextAddress){case 1:return b.yield(Jp("b.f_",aEv,G),2);case 2:return b.yield(Jp("j.s_",_.o9u,G),3);case 3:return b.yield(Jp("r.s_",_.Zqp,G),4);case 4:return b.yield(Jp("e.h_",RZa,G),5);case 5:if(!_.U("ab_det_sc_inj")){b.jumpTo(6);break}return b.yield(Jp("s.i_",_.WrO,G),6);case 6:if(_.U("ab_deg_unex_thr")){b.jumpTo(8);break}return b.yield(Jp("a.o_",_.FrB,G),8);case 8:if(_.U("ks_get_o_pp")){b.jumpTo(10);break}return b.yield(Jp("g.o_",_.rXO,G),10);case 10:if(_.U("ks_det_gpbl")){b.jumpTo(12);
break}return b.yield(Jp("p.i_",_.yXB,G),12);case 12:return b.yield(Jp("f.i_",_.Lrr,G),14);case 14:return b.yield(Jp("a.b_",_.AXs,G),15);case 15:return b.yield(Jp("p.m_",_.fsj,G),16);case 16:if(!_.U("ab_det_el_h_v2")){b.jumpTo(17);break}return b.yield(Jp("n.h_",K$M,G),17);case 17:return b.yield(Jp("o.p_",C9l,G),19);case 19:return b.yield(Jp("e.i_",YS7,G),20);case 20:if(_.U("ab_det_apm"))return b.yield(Jp("o.a_",JZd,G),0);b.jumpTo(0)}})};
_.OUa=function(G,b){G={videoId:G};b&&(G.playlistId=b);return G};
_.pTa=function(){if(_.uZq()){var G=_.wy("PLAYER_VARS",{});if(_.Cy.get(G,"privembed",!1)!="1"&&!_.s95(G)){var b=function(){wTl=!0;"google_ad_status"in window?_.OB("DCLKSTAT",1):_.OB("DCLKSTAT",2)};
try{_.iU(_.hMf,b)}catch(I){}EPI.push(_.uu.addLowPriorityJob(function(){if(!(wTl||"google_ad_status"in window)){try{_.HYs(_.hMf.toString(),b)}catch(I){}wTl=!0;_.OB("DCLKSTAT",3)}},5E3))}}};
_.SSa=function(G,b,I){I=I===void 0?!1:I;var h=Math.max(G.width,_.w3E);if(_.U("kevlar_watch_feed_big_thumbs")&&G.width>=1550-_.Hl()&&G.height>=800)h-=_.GeI;else if(G.width>=_.H7){var q=_.Ezz+_.p3K+_.FX;_.U("kevlar_watch_feed_big_thumbs")&&(q=_.$1I);h-=q}else h-=_.Ezz;h=Math.min(h,_.SBI);q=240;I&&(q=380);b<.5624||(!_.U("kevlar_watch_flexy_disable_small_window_sizing")&&(G.height<630&&G.width>=657||G.height>=630&&G.width>=_.H7&&G.width<1327)?q=360:!_.U("kevlar_watch_flexy_disable_large_window_sizing")&&
G.height>=630&&G.width>=1327&&(q=480));var l=Math.min(h*b,G.height-(56+_.O3K+_.X3h));l=Math.max(l,q);b<1?h=l/b:G.width>=_.H7&&(h=_.SSa(G,.5625,I).width);return new _.Pa(Math.round(h),Math.round(l))};
_.XTI=function(G){var b=0;G.indexOf("h")!=-1&&(G=G.split("h"),b=G[0]*60*60,G=G[1]);G.indexOf("m")!=-1&&(G=G.split("m"),b=G[0]*60+b,G=G[1]);G.indexOf("s")!=-1?(G=G.split("s"),b=G[0]*1+b):b=G*1+b;return b};
_.$Og=function(){_.Te("service_worker_push_logged_out_prompt_watches")!=-1&&_.at("WatchCount").then(function(G){G>=100||_.E_("WatchCount",G+1)})};
GiK=function(G){var b=G.externalVideoId||"";return b?G.isShortsEligible?"https://www.youtube.com/shorts/"+b:"https://www.youtube.com/watch?v="+b:""};
bwI=function(G){var b=[];G.viewCount&&b.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:G.viewCount});G.likeCount&&b.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:G.likeCount});return b};
I0o=function(G){var b,I,h={"@context":"https://schema.org","@type":"VideoObject",description:_.NO(G.description),duration:"PT"+(G.lengthSeconds||"0")+"S",embedUrl:G.embed?G.embed.iframeUrl:"",name:_.NO(G.title),thumbnailUrl:((b=G.thumbnail)==null?void 0:(I=b.thumbnails)==null?void 0:I.map(function(x){return x&&x.url||""}))||[],
uploadDate:G.publishDate};_.U("mweb_video_schema_id_killswitch")||(h["@id"]=GiK(G));b=bwI(G);b.length&&(h.interactionStatistic=b);G.category&&(h.genre=G.category);G.ownerChannelName&&(h.author=G.ownerChannelName);G.liveBroadcastDetails&&(h.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:G.liveBroadcastDetails.startTimestamp,endDate:G.liveBroadcastDetails.endTimestamp}]);if(G.learningResource){G=G.learningResource;h["@type"]=["VideoObject","LearningResource"];var q;if((q=G.learningResourceType)==
null?0:q.length)h.learningResourceType=G.learningResourceType[0];var l;if((l=G.educationalAlignment)==null?0:l.length)h.educationalAlignment={"@type":"AlignmentObject",targetName:G.educationalAlignment[0]};var V;if((V=G.educationalLevel)==null?0:V.length){q=G.educationalLevel[0];var D;if((D=G.educationalLevelCountry)==null?0:D.length)q+=" ("+G.educationalLevelCountry+")";h.educationalLevel=q}var k,L;if(((k=G.learningResourceType)==null?0:k.length)&&G.learningResourceType[0]==="Problem walkthrough"&&
((L=G.problemDescriptions)==null?0:L.length))for(h.hasPart=[],D=_.e(G.problemDescriptions),k=D.next();!k.done;k=D.next())q=k.value,k=q.problemDescriptionText,L=q.startOffset,q=q.url,k&&L!==void 0&&q&&h.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:k,text:k,startOffset:L,url:q})}return h};
_.hAE=function(G){return _.wK({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:G}})};
uTz=[[["bWx4YWFnY3ByaW1hcnkjNnBibjY=",null,null],[null,["cmVyIzYxcWtlbG5uYnBpNHl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRl","LXNjb3BlIzJjemd0NGtvM2NoOHN0eWxl"],null],["ZWFkLWFkI2I5MWI0czVpdTN2cm1hc3Ro",["LXJpY2gtZ3JpZC1yZW5kZXJlciMxcXhkdGVyOTN6dTR5dGQ="],null],[null,["LXJpY2gtZ3JpZC1yZW5kZXJlciNucXFhenZnemI0azJ5dGQ=","LXNjb3BlI2FqNW5mNjhpd2ZyZHN0eWxl"],null],[null,["ci1wcm9tby1yZW5kZXJlciMycThuNTlkcGl6NjF5dGQtYmFubmU=","LXNjb3BlIzNudzA4M2x0Zmd2NnN0eWxl"],null],[null,["eXl0ZC1hZC1zbG90LXJlbmRlcmVyI2x1OGo4Mmd1YjVi"],
null]],[["YXllci1hZHMjbHNsMWtoZ2RudWpicGw=",null,null]],[[null,null,"bm5lci1jdGEtcmVuZGVyZXIjZXVha3o1dWVkd3ZteXRsci1iYQ=="]]];NKl="#";EPI=[];wTl=!1;_.qbI=["engagement-panel-ads"];joz=new _.hu("updateSentimentBarStateCommand");_.l0a=new _.hu("showSurveyCommand");_.KH=new _.hu("changeMarkersVisibilityCommand");var eAg,VnE,vSA,kiv,cQa,uv;_.mOA=function(G,b){this.playerProvider_=G;this.actionSenderElement_=b;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.mOA.prototype.reset=function(){eAg(this);this.isUserPredictedAbsent_=!1};
eAg=function(G,b){!G.youThereData_||G.showWarningJob_||b!==void 0&&b||(_.pZ("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.gL(),G.youThereData_,G.clientPlaybackNonce_),_.JM());_.uu.cancelJob(G.showWarningJob_);G.showWarningJob_=0;_.uu.cancelJob(G.showBlockingWarningJob_);G.showBlockingWarningJob_=0;_.uu.cancelJob(G.pausePlaybackJob_);G.pausePlaybackJob_=0;G.youThereData_=null;G.clientPlaybackNonce_=void 0;G.inYouThereFlow_=!1};
_.DOE=function(G,b){var I,h,q;_.c(function(l){if(l.nextAddress==1)return G.reset(),l.yield(G.playerProvider_().getPlayerPromise(),2);I=l.yieldResult;G.clientPlaybackNonce_=I.getVideoData().cpn;G.youThereData_=b.configData.youThereData;if(!G.youThereData_)return l.return();if(G.youThereData_.triggerReason&&G.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.tHW())return _.pZ("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.gL(),G.youThereData_,G.clientPlaybackNonce_),l.return();h=G.youThereData_.promptDelaySec;
q=I.getCurrentTime();G.showWarningJob_=_.uu.addLowPriorityJob(function(){return _.c(function(V){G.showWarningJob_=0;return V.yield(VnE(G),0)})},Math.max(h-q,0)*1E3);
_.ip(l)})};
VnE=function(G){var b,I,h,q,l,V;return _.c(function(D){if(D.nextAddress==1)return D.yield(G.playerProvider_().getPlayerPromise(),2);if(D.nextAddress!=3)return b=D.yieldResult,I=b.getCurrentTime(),D.yield(cQa(G),3);h=D.yieldResult;if(!h||!G.youThereData_)return D.return();if(_.U("check_user_lact_at_prompt_shown_time_on_web")&&(q=parseInt(G.youThereData_.lactThresholdMs,10),_.vA()<q))return _.pZ("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.gL(),G.youThereData_,G.clientPlaybackNonce_),D.return();if(G.youThereData_.playbackPauseDelayMs<=
0)return kiv(G),D.return();!_.U("external_fullscreen")&&(l=_.Kv())&&(G.ignoreFullscreenExitUserActivity_=!0,_.uu.addLowPriorityJob(function(){G.ignoreFullscreenExitUserActivity_=!1},2E3),_.uU(l));
G.youThereData_.showToastWarningPrompt&&(uv(G,G.youThereData_.showWarningActions),G.inYouThereFlow_=!0,_.pZ("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.gL(),G.youThereData_,G.clientPlaybackNonce_,I),_.pZ("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.gL(),G.youThereData_,G.clientPlaybackNonce_,I));V=0;G.youThereData_.blockingPromptDelayMs&&(V=G.youThereData_.blockingPromptDelayMs);G.showBlockingWarningJob_=_.uu.addLowPriorityJob(function(){return _.c(function(k){G.showBlockingWarningJob_=0;return k.yield(vSA(G),
0)})},V);
_.ip(D)})};
vSA=function(G){var b,I,h;return _.c(function(q){if(q.nextAddress==1)return q.yield(cQa(G),2);b=q.yieldResult;if(!G.youThereData_)return q.return();b&&(G.youThereData_.showBlockingWarningAction&&(_.pZ("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.gL(),G.youThereData_,G.clientPlaybackNonce_),(I=_.g(G.youThereData_.showBlockingWarningAction,_.$P))?uv(G,I.commands):uv(G,[G.youThereData_.showBlockingWarningAction]),G.inYouThereFlow_=!0),h=G.youThereData_.playbackPauseDelayMs,G.pausePlaybackJob_=
_.uu.addLowPriorityJob(function(){return _.c(function(l){G.pausePlaybackJob_=0;return l.yield(kiv(G),0)})},h));
_.ip(q)})};
kiv=function(G){var b;return _.c(function(I){if(I.nextAddress==1)return I.yield(cQa(G),2);b=I.yieldResult;if(!G.youThereData_)return I.return();b&&(_.pZ("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.gL(),G.youThereData_,G.clientPlaybackNonce_),uv(G,G.youThereData_.showPausedActions),G.inYouThereFlow_=!0);_.ip(I)})};
_.mOA.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var G=_.g(this.youThereData_.userActiveDuringFlowAction,_.$P);G?uv(this,G.commands):uv(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.pZ("YOU_THERE_EVENT_TYPE_LACT_RESET",_.gL(),this.youThereData_,this.clientPlaybackNonce_),_.JM());eAg(this,!0)}_.Lsa(this,!1)};
_.QoK=function(G){_.pZ("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.gL(),G.youThereData_,G.clientPlaybackNonce_)};
cQa=function(G){var b,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(G.playerProvider_().getPlayerPromise(),2);b=h.yieldResult;I=b.getPlayerState();return h.return(I==-1||I==1||I==3)})};
_.Lsa=function(G,b){var I;_.c(function(h){if(h.nextAddress==1){if(G.isUserPredictedAbsent_==b)return h.jumpTo(0);G.isUserPredictedAbsent_=b;return h.yield(G.playerProvider_().getPlayerPromise(),3)}I=h.yieldResult;I.setUserEngagement(b);b&&_.pZ("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.gL(),G.youThereData_,G.clientPlaybackNonce_);_.ip(h)})};
uv=function(G,b){if(_.U("handle_service_request_actions")||_.U("kevlar_youthere_service_endpoint_actions_killswitch"))_.Su(G.actionSenderElement_,b,G.actionSenderElement_);else{b=_.e(b);for(var I=b.next();!I.done;I=b.next())I=I.value,I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.sendPost?_.pv(G.actionSenderElement_,[I]):_.Su(G.actionSenderElement_,[I],G.actionSenderElement_)}};var xOz;var f0K;var Rg=function(){var G=_.a.apply(this,arguments)||this;G.systemIcons=_.U("kevlar_system_icons");G.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return G};
_.M(Rg,_.a);Rg.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);_.Eo(this.hostElement).querySelector("#like-bar").style.width=G+"%"}};
Rg.prototype.handleUpdateSentimentBarStateCommand=function(G){this.data&&this.set("data.likeStatus",_.g(G,joz).likeStatus)};
Rg.prototype.observeLikeStatus=Rg.prototype.observeLikeStatus;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Rg.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Rg.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Rg.prototype,"activated",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Rg.prototype,"systemIcons",void 0);_.R([_.q5("data.likeStatus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rg.prototype,"observeLikeStatus",null);_.R([_.N({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Rg);
_.J(Rg,"ytd-sentiment-bar-renderer",function(){if(f0K!==void 0)return f0K;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return f0K=G},{mode:1});var T4I;var nH=function(){var G=_.a.apply(this,arguments)||this;G.small=!0;return G};
_.M(nH,_.a);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],nH.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],nH.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],nH.prototype,"small",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],nH);
_.J(nH,"ytd-video-view-count-renderer",function(){if(T4I!==void 0)return T4I;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return T4I=G},{mode:_.nn("kevlar_poly_si_batch_j080")?1:2});var OX=function(){var G=_.a.apply(this,arguments)||this;G.infoFormattedStrings=[];G.wrapVideoActions=_.U("kevar_watch_wrap_video_actions");G.hideSentimentBar=_.U("kevlar_watch_hide_sentiment_bar");G.actionMap={};return G};
_.M(OX,_.a);_.m=OX.prototype;_.m.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.U("web_modern_buttons"),forceIconButton:!_.U("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.m.dataChanged=function(){_.U("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.m.computeInfoFormattedStrings=function(G){if(!G)return[];var b=[];G.dateText&&b.push(G.dateText);G.stationName&&b.push(G.stationName);G.rating&&b.push(G.rating);G.startEndTimeTemplate&&G.startTimeUtcMillis&&G.endTimeUtcMillis&&b.push(_.ao(_.qMK(_.NO(G.startEndTimeTemplate),Number(G.startTimeUtcMillis),Number(G.endTimeUtcMillis))));G.upNextProgramText&&b.push(G.upNextProgramText);return b};
_.m.scheduleInitialUpdatedMetadataRequest=function(){var G,b=(G=this.data)==null?void 0:G.updatedMetadataEndpoint;if(b){var I;G=Number((I=_.g(b,_.Che))==null?void 0:I.initialDelayMs);I=isNaN(G)?250:G;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),I)}};
_.m.setSentimentBarWidth=function(){var G=this;_.D1(this,function(){var b=_.Eo(G.hostElement).querySelector("ytd-menu-renderer");if(b){b=b.topLevelButtons;for(var I=0,h=0;h<b.length;h++){var q=b[h],l=G.get("toggleButtonSupportedData.toggleButtonIdData.id",q.data);if(l==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||l==="TOGGLE_BUTTON_ID_TYPE_LIKE")I+=q.clientWidth+8;else break}I&&(G.sentiment.style.width=I-8+" px")}})};
_.m.fetchUpdatedMetadata=function(G){var b;G&&(b={continuation:G});var I;(G=(I=this.data)==null?void 0:I.updatedMetadataEndpoint)&&_.LL().resolve(_.xW).resolveCommand(G,{form:Object.assign({},b,{element:this.hostElement})})};
_.m.onYtServiceRequestSent=function(G,b){b.endpoint&&_.g(b.endpoint,_.tx)&&(this.hasUpdateSentimentBarStateCommands()&&!_.U("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.g(b.endpoint,_.tx).status),this.setSentimentBarWidth())};
_.m.hasUpdateSentimentBarStateCommands=function(){var G,b,I,h,q=(h=(G=this.data)==null?void 0:(b=G.videoActions)==null?void 0:(I=b.menuRenderer)==null?void 0:I.topLevelButtons)!=null?h:[];G=_.e(q);for(b=G.next();!b.done;b=G.next()){b=b.value;q=h=I=void 0;var l=(I=b.toggleButtonRenderer)==null?void 0:(h=I.toggleButtonSupportedData)==null?void 0:(q=h.toggleButtonIdData)==null?void 0:q.id;if(l==="TOGGLE_BUTTON_ID_TYPE_LIKE"||l==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){h=I=void 0;b=(h=_.g((I=b.toggleButtonRenderer)==
null?void 0:I.defaultServiceEndpoint,_.$P))==null?void 0:h.commands;if(!b)break;b=_.e(b);for(I=b.next();!I.done;I=b.next())if(_.g(I.value,joz))return!0}}return!1};
_.m.onYtServiceRequestCompleted=function(G,b){var I;(G=(I=b.data)==null?void 0:I.loggingDirectives)&&_.$6O(_.qo(),G);this.get("continuation.timedContinuationData",b.data)&&this.data&&this.data.updatedMetadataEndpoint&&(b=b.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,b.continuation),b.timeoutMs))};
_.m.computeHasDateText=function(G){return!!G&&!!G.dateText};
_.kV.Object.defineProperties(OX.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h;return!((h=(G=this.data)==null?void 0:(b=G.videoActions)==null?void 0:(I=b.menuRenderer)==null?void 0:I.flexibleItems)==null||!h.length)}}});
OX.prototype.onYtServiceRequestCompleted=OX.prototype.onYtServiceRequestCompleted;OX.prototype.onYtServiceRequestSent=OX.prototype.onYtServiceRequestSent;OX.prototype.dataChanged=OX.prototype.dataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],OX.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],OX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.ed.YtTaskEmitterBehavior),_.n("design:type",Object)],OX.prototype,"ytTaskEmitterBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],OX.prototype,"data",void 0);_.R([_.H({computed:"computeInfoFormattedStrings(data)"}),_.n("design:type",Array)],OX.prototype,"infoFormattedStrings",void 0);
_.R([_.H({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],OX.prototype,"hasDateText",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],OX.prototype,"wrapVideoActions",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],OX.prototype,"hideSentimentBar",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],OX.prototype,"flexMenuEnabled",null);
_.R([_.lH("#sentiment"),_.n("design:type",Object)],OX.prototype,"sentiment",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],OX.prototype,"dataChanged",null);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],OX.prototype,"onYtServiceRequestSent",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],OX.prototype,"onYtServiceRequestCompleted",null);
_.J(OX,"ytd-video-primary-info-renderer",function(){if(xOz===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);xOz=G}G=xOz;return G},{mode:1});var B4o;var wg=function(){var G=_.a.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};
_.M(wg,_.a);_.m=wg.prototype;_.m.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"}}}};
_.m.dataChanged=function(){var G;this.descriptionToggled=!((G=this.data)==null||!G.defaultExpanded);var b;this.collapsed=this.descriptionAlwaysCollapsed||!((b=this.data)==null?0:b.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Xs(110509);this.showLessClientVe=_.Xs(110510);G=_.gL();b=_.s3();G&&b&&_.yn(G,b,[this.showMoreClientVe,this.showLessClientVe])};
_.m.onYtExpanderMoreTapped=function(){var G,b=(G=this.data)==null?void 0:G.showMoreCommand;b&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(b);(G=_.gL())&&this.showMoreClientVe&&_.WT(G,this.showMoreClientVe)};
_.m.onYtExpanderLessTapped=function(){var G=_.gL();G&&this.showLessClientVe&&_.WT(G,this.showLessClientVe);var b;(G=(b=this.data)==null?void 0:b.showLessCommand)&&this.componentBehavior.resolveCommand(G)};
_.m.handleUpdateDateTextAction=function(G){this.data&&this.data.dateText&&this.set("data.dateText",_.g(G,_.YBE).dateText)};
_.m.handleUpdateDescriptionAction=function(G){if(G=_.g(G,_.JXO))G.isEmpty||!G.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.fG(G.description)):this.set("data.description",G.description)};
_.m.onYtChangeEngagementPanelVisibilityAction=function(G){if(_.U("web_structured_description_show_more")||_.U("web_engagement_panel_open_description")){var b,I=(b=_.g(G,_.Yce))==null?void 0:b.targetId,h;G=((h=_.g(G,_.Yce))==null?void 0:h.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";I==="engagement-panel-structured-description"&&G&&(this.descriptionToggled=!0)}};
_.m.updateCollapsedFromBinding=function(G){this.collapsed=G.detail.value};
_.m.updateDescriptionToggledFromBinding=function(G){this.descriptionToggled=G.detail.value};
_.m.updateCanCollapseFromBinding=function(G){this.canCollapse=G.detail.value};
_.kV.Object.defineProperties(wg.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var G,b,I=(G=this.data)==null?void 0:(b=G.metadataRowContainer)==null?void 0:b.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}}});
wg.prototype.onYtExpanderLessTapped=wg.prototype.onYtExpanderLessTapped;wg.prototype.onYtExpanderMoreTapped=wg.prototype.onYtExpanderMoreTapped;wg.prototype.dataChanged=wg.prototype.dataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],wg.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],wg.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],wg.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],wg.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],wg.prototype,"collapsed",void 0);_.R([_.H(),_.n("design:type",Boolean)],wg.prototype,"descriptionToggled",void 0);
_.R([_.H(),_.n("design:type",Boolean)],wg.prototype,"canCollapse",void 0);_.R([_.H(),_.n("design:type",Object)],wg.prototype,"subscribeButtonData",void 0);_.R([_.H(),_.n("design:type",Number)],wg.prototype,"descriptionCollapsedHeight",void 0);_.R([_.H(),_.n("design:type",Object)],wg.prototype,"structuredDescriptionContentRenderer",void 0);_.R([_.H({value:function(){return _.U("web_watch_description_always_collapsed")}}),
_.n("design:type",Boolean)],wg.prototype,"descriptionAlwaysCollapsed",void 0);_.R([_.lH("#description"),_.n("design:type",HTMLDivElement)],wg.prototype,"description",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wg.prototype,"dataChanged",null);_.R([_.hI("yt-expander-more-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wg.prototype,"onYtExpanderMoreTapped",null);
_.R([_.hI("yt-expander-less-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wg.prototype,"onYtExpanderLessTapped",null);_.R([_.P("data.metadataRowContainer"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wg.prototype,"metadataCollapsible",null);_.R([_.P("data","structuredDescriptionContentRenderer"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wg.prototype,"hasInlineStructuredDescription",null);
_.R([_.P("data.attributedDescription"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wg.prototype,"hasAttributedDescription",null);_.R([_.P("hasInlineStructuredDescription","collapsed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wg.prototype,"loadStructuredDescription",null);_.R([_.P("data","structuredDescriptionContentRenderer","collapsed"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wg.prototype,"showInlineStructuredDescription",null);
_.R([_.P("data","hasInlineStructuredDescription","metadataCollapsible"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wg.prototype,"descriptionAlwaysCollapsible",null);
_.J(wg,"ytd-video-secondary-info-renderer",function(){if(B4o===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden$="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);B4o=G}G=B4o;return G},{mode:2});var UOz;var EX=function(){return _.a.apply(this,arguments)||this};
_.M(EX,_.a);EX.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:_.U("web_modern_buttons"),forceIconButton:!_.U("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
EX.prototype.activate=function(G){G.appendTo(this.player);G.getPlayerPromise().then(function(b){b.setMinimized(!0)});
this.active=!0};
EX.prototype.deactivate=function(){var G=this.player.firstElementChild;G.getPlayerPromise().then(function(b){b.setMinimized(!1)});
this.active=!1;return G};
EX.prototype.onScrollUpTap=function(){var G=_.LL().resolve(_.Ck).getCurrentPage();G&&G.setScrollTop(0)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],EX.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],EX.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],EX.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],EX.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],EX.prototype,"active",void 0);
_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.n("design:type",Boolean)],EX.prototype,"darkLaunch",void 0);_.R([_.lH("#player"),_.n("design:type",HTMLDivElement)],EX.prototype,"player",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],EX);
_.J(EX,"ytd-miniplayer-bar-renderer",function(){if(UOz!==void 0)return UOz;var G=document.createElement("template");_.Z(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(_.E().content.cloneNode(!0),
G.content.firstChild);return UOz=G},{mode:1});_.JN(_.C(function(G){var b=_.ee("script");_.K0(function(){var I;if(I=JSON)I=I0o(G.data()),I=_.qz(JSON.stringify(I).replace(/</g,"\\u003C"));var h=G.data(),q=_.NO(h.title).trim().length===0,l=!h.publishDate||h.publishDate.trim().length===0,V,D,k,L,x=!((V=h.thumbnail)==null?0:(D=V.thumbnails)==null?0:D.length)||!((k=h.thumbnail)==null?0:k.thumbnails[0].url)||((L=h.thumbnail)==null?void 0:L.thumbnails[0].url.trim().length)===0;b.value&&I&&!(q||l||x)&&_.lp(b.value,I)},"Vy9K7b");
return _.v("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.v("script",{el:b,type:"application/ld+json"}))},"qo"),"player-microformat-renderer",{props:{data:_.No}});
}catch(e){_._DumpException(e)}
try{
var DPK,cZh,vPM;_.VXI=function(G){return G.watch.watchWindowSize};
DPK=function(G,b){var I=document.querySelector(G);I?b(I):setTimeout(function(){DPK(G,b)},1E3)};
cZh=function(G,b,I,h){if(G.isLockupToWatchTransitionEnabled){if(b){var q={};q=(q["watch-next-appears"]="player-watch-next-loaded",q);q["lockup-to-watch"]=G.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";G.viewTransitionCoordinator.registerElement(b,q)}I&&(b={},G.viewTransitionCoordinator.registerElement(I,(b["lockup-to-watch"]="below-lockup-to-watch",b["watch-next-appears"]="below-watch-next-loaded",b)));h&&(I={},G.viewTransitionCoordinator.registerElement(h,
(I["watch-next-appears"]="secondary-watch-next-loaded",I)))}};
_.kmM=function(G){return _.wK({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:G}})};
vPM=new _.hu("webWatchNextResponseExtensionData");var QWK=function(G){_.FN.call(this);var b=this;this.JSC$23471_watchApi=G;this.observer=null;var I=this.JSC$23471_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){L$I(b)});
this.addOnDisposeCallback(function(){b.JSC$23471_watchApi.unsubscribeByKey(I);b.observer&&(b.observer.disconnect(),b.observer=null)});
L$I(this)};
_.M(QWK,_.FN);
var L$I=function(G){var b,I,h,q,l;_.c(function(V){if(V.nextAddress==1){G.observer&&(G.observer.disconnect(),G.observer=null);b=G.JSC$23471_watchApi.getWatchNextResponse();if(!b)return V.return();I=_.g(b,vPM);return((h=I)==null?0:h.enableCreatorChatbot)&&I.creatorChannelId?_.U("enable_creator_chatbot_link_out")?V.yield((0,_.bcp)("NSzT5"),6):V.yield((0,_.bcp)("NSzT5"),5):V.jumpTo(0)}if(V.nextAddress!=6)return q=_.xPI,q(I.creatorChannelId),DPK("ytd-watch-metadata",function(D){G.observer=new MutationObserver(function(){var k,
L;(k=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(L=k.closest("yt-button-view-model.ytd-menu-renderer"))==null||L.remove()});
G.observer.observe(D,{childList:!0,subtree:!0})}),V.jumpTo(0);
l=_.fEh;l(I.creatorChannelId);_.ip(V)})};var Wb=function(G){_.FN.call(this);this.JSC$23475_watchApi=G;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;TKv(this)};
_.M(Wb,_.FN);var TKv=function(G){_.c(function(b){if(b.nextAddress==1)return b.yield(BKI(G),2);UPg(G);_.ip(b)})},BKI=function(G){var b,I,h,q,l,V,D,k,L;
return _.c(function(x){if(x.nextAddress==1)return x.yield(G.JSC$23475_watchApi.playerApi,2);b=x.yieldResult;G.JSC$23475_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){sW7(G)});
G.JSC$23475_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){G.isShelfVisible?gPl(G):ag(G)});
I=_.Cw().subscribe(function(){G.isTheaterMode=_.BN(_.Cw().getState());G.isTheaterMode?ag(G):AZg(G)});
h=G.JSC$23475_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){UPg(G)});
q=function(f){G.onCueRangeEnter(f)};
b.addEventListener("onCueRangeEnter",q);l=function(f){G.onCueRangeExit(f)};
b.addEventListener("onCueRangeExit",l);V=function(){G.isSeeking=!0};
b.addEventListener("SEEK_TO",V);D=function(){G.onSeekComplete()};
b.addEventListener("SEEK_COMPLETE",D);k=function(){G.onAdStart()};
b.addEventListener("onAdStart",k);L=function(){G.onAdComplete()};
b.addEventListener("onAdComplete",L);G.addOnDisposeCallback(function(){I();G.JSC$23475_watchApi.unsubscribeByKey(h);b.removeEventListener("onCueRangeEnter",q);b.removeEventListener("onCueRangeExit",l);b.removeEventListener("SEEK_TO",V);b.removeEventListener("SEEK_COMPLETE",D);b.removeEventListener("onAdStart",k);b.removeEventListener("onAdComplete",L)});
_.ip(x)})},MXh=function(G){var b,I,h,q,l,V,D,k,L;
return(l=(b=G.contents)==null?void 0:(I=b.twoColumnWatchNextResults)==null?void 0:(h=I.results)==null?void 0:(q=h.results)==null?void 0:q.contents)==null?void 0:(V=l.find(function(x){var f,T,B;return(f=x.itemSectionRenderer)==null?void 0:(T=f.contents)==null?void 0:(B=T[0])==null?void 0:B.shoppingTimelyShelfViewModel}))==null?void 0:(D=V.itemSectionRenderer)==null?void 0:(k=D.contents)==null?void 0:(L=k[0])==null?void 0:L.shoppingTimelyShelfViewModel},UPg=function(G){var b;
_.c(function(I){if(I.nextAddress==1)return(b=G.JSC$23475_watchApi.getWatchNextResponse())?I.yield(sW7(G),2):I.return();G.shoppingTimelyShelfViewModel=MXh(b);ZUd(G);tXo(G);_.ip(I)})},ZUd=function(G){var b,I=(b=G.shoppingTimelyShelfViewModel)==null?void 0:b.offerIdToVariants;
I&&(b=I.filter(function(h){return h.key&&h.value}).map(function(h){return[h.key,
h.value]}),G.variantsMap=new Map(b))},tXo=function(G){var b,I,h,q,l,V;
_.c(function(D){if(D.nextAddress==1)return(I=(b=G.shoppingTimelyShelfViewModel)==null?void 0:b.cueRanges)?D.yield(G.JSC$23475_watchApi.playerApi,2):D.return();h=D.yieldResult;G.cueRanges=I;q=_.e(I);for(l=q.next();!l.done;l=q.next())V=l.value,V.startTime!==void 0&&V.endTime!==void 0&&V.id!==void 0&&h.addCueRange("shopping_timely_shelf"+V.id,zZM(V.startTime),zZM(V.endTime));_.ip(D)})},zZM=function(G){return Number(G.seconds||0)+(G.nanos||0)/1E9};
Wb.prototype.onCueRangeEnter=function(G){if(G.startsWith("shopping_timely_shelf")&&(this.activeCueId=G,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){G=G.substring(21);var b,I,h=(b=this.variantsMap)==null?void 0:(I=b.get(G))==null?void 0:I.shelf;h&&(this.JSC$23475_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",h),gPl(this))}};
Wb.prototype.onCueRangeExit=function(G){G.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||ag(this))};
Wb.prototype.onSeekComplete=function(){this.isSeeking=!1;AZg(this)};
var gPl=function(G){G.shoppingTimelyShelfViewModel&&(G.isShelfVisible=!0,_.I1.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},ag=function(G){G.shoppingTimelyShelfViewModel&&(G.isShelfVisible=!1,_.I1.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},sW7=function(G){var b,I,h,q,l;
return _.c(function(V){if(V.nextAddress==1)return V.yield(G.JSC$23475_watchApi.playerApi,2);b=V.yieldResult;if(G.cueRanges)for(I=_.e(G.cueRanges),h=I.next();!h.done;h=I.next())q=h.value,q.id&&(l="shopping_timely_shelf"+q.id,b.removeCueRange(l));G.JSC$23475_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});ag(G);G.shoppingTimelyShelfViewModel=void 0;G.cueRanges=void 0;G.variantsMap=void 0;G.isSeeking=!1;G.activeCueId=void 0;_.ip(V)})};
Wb.prototype.onAdStart=function(){this.isAdPlaying=!0;ag(this)};
Wb.prototype.onAdComplete=function(){this.isAdPlaying=!1;AZg(this)};
var AZg=function(G){if(G.activeCueId)G.onCueRangeEnter(G.activeCueId);else ag(G)};var yZa=function(G){_.FN.call(this);var b=this;this.JSC$23482_watchApi=G;G=_.Nj(_.Cw(),_.q7q,function(){oPM(b)});
this.addOnDisposeCallback(G);G=_.Nj(_.Cw(),_.VXI,function(){oPM(b)});
this.addOnDisposeCallback(G);iUA(this);P9o(this);dPl()};
_.M(yZa,_.FN);var iUA=function(G){var b=function(h){_.Cw().dispatch(_.jjl(h.matches))},I=window.matchMedia("(max-width: "+(999+_.Hl())+"px)");
I.addListener(b);G.addOnDisposeCallback(function(){I.removeListener(b)});
b(I)},P9o=function(G){G.JSC$23482_watchApi.registerActionHandler("yt-window-resized",function(){dPl()});
G.addOnDisposeCallback(function(){G.JSC$23482_watchApi.unregisterActionHandler("yt-window-resized")})},dPl=function(){var G=_.eL();
_.Cw().dispatch(_.wK({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:G.width,height:G.height}}}))},oPM=function(G){var b;
_.c(function(I){if(I.nextAddress==1)return I.yield(G.JSC$23482_watchApi.playerApi,2);b=I.yieldResult;b.setSize(NaN,NaN);_.ip(I)})};var rZa=function(G){_.FN.call(this);var b=_.LL().resolve(_.a8);cZh(b,G.getElement("PLAYER_CONTAINER"),G.getElement("BELOW_THE_PLAYER"),G.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var I=G.getElement("PLAYER_CONTAINER"),h=G.getElement("BELOW_THE_PLAYER"),q=G.getElement("SECONDARY");b.isLockupToWatchTransitionEnabled&&(I&&_.Za(b.viewTransitionCoordinator,I),h&&_.Za(b.viewTransitionCoordinator,h),q&&_.Za(b.viewTransitionCoordinator,q))})};
_.M(rZa,_.FN);_.Na=function(G){_.XC.call(this);var b=this;this.rootElement=G;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return b.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(I){b.initOrDisposeActiveModules(I)}));
this.onAttached()};
_.M(_.Na,_.XC);_.m=_.Na.prototype;_.m.getRoot=function(){return this.rootElement};
_.m.getElement=function(G){return this.rootElement.getElement(G)};
_.m.setPlayerResponse=function(G){this.playerResponse=G;this.publish("PLAYER_RESPONSE_UPDATED",G)};
_.m.getPlayerResponse=function(){return this.playerResponse};
_.m.setWatchNextResponse=function(G){this.watchNextResponse===G?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=G,this.publish("WATCH_NEXT_RESPONSE_UPDATED",G))};
_.m.getWatchNextResponse=function(){return this.watchNextResponse};
_.m.registerActionHandler=function(G,b){var I=this;if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var h={};_.je(_.I1.getInstance(),(h[G]=b,h),this.getRoot())}else this.actionHandlers.has(G)||(this.actionHandlers.set(G,[]),h={},_.je(_.I1.getInstance(),(h[G]=function(){var q=_.RI.apply(0,arguments);return(I.actionHandlers.get(G)||[]).map(function(l){return l.apply(null,_.Nz(q))})},h),this.getRoot())),this.actionHandlers.get(G).push(b)};
_.m.unregisterActionHandler=function(G){if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.lx(_.I1.getInstance(),(b[G]=!0,b),this.getRoot())}else(b=this.actionHandlers.get(G))?(b.pop(),b.length===0&&(b={},_.lx(_.I1.getInstance(),(b[G]=!0,b),this.getRoot()),this.actionHandlers.delete(G))):_.RB(new _.Wf("Attempted to unregister an action handler which is not registered.",G))};
_.m.addPageDisposeJob=function(G){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.iOr(this.rootElement.pageDisposeJobs,G)};
_.m.removePageDisposeJob=function(G){this.rootElement.pageDisposeJobs&&_.CO(this.rootElement.pageDisposeJobs,G)};
_.m.dispatchEvent=function(G,b){_.O3(this.rootElement,G,b)};
_.m.provideRenderingData=function(G,b){this.rootElement.provideRenderingData(G,b)};
_.m.scrollWatchTo=function(G,b){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(G,b)};
_.m.focusOnPlayer=function(){var G=this.getElement("PLAYER");_.D1(G,function(){if(G&&G.firstElementChild){var b=G.querySelector(".html5-video-player");b&&(_.kE(_.LL().resolve(_.VO)),b.focus())}else _.RB(Error("ep"))})};
_.m.subscribeToActiveChanged=function(G,b){b=b===void 0?!0:b;var I=_.Nj(_.Cw(),_.$Ql,function(h){G(h)});
b&&G(_.$Ql(_.Cw().getState()));return I};
_.m.isActive=function(){return _.$Ql(_.Cw().getState())};
_.m.onAttached=function(){var G=_.U("external_fullscreen");_.U("use_unified_flag_accessor")&&(G=_.LL().resolve(_.K7f).retriever.getFlag(_.o_J));(G||_.Sk("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var F$l=function(G){return G.getRoot().is==="ytd-watch-flexy"||G.getRoot().is==="ytd-watch-grid"},YZ=function(G){return G.getRoot().is==="ytd-watch-fixie"};
_.Na.prototype.initPersistentModules=function(){if(YZ(this)||F$l(this)&&_.U("kevlar_watch_flexy_theater_manager")){var G=new _.ybv(this);_.M2(this,G)}G=new _.s3A(this);_.M2(this,G);G=new _.iv(this);_.M2(this,G);G=new _.xiK(this);_.M2(this,G);G=new _.FP(this);_.M2(this,G);G=new _.Pb(this);_.M2(this,G);if(YZ(this)||F$l(this)&&_.U("kevlar_watch_flexy_playlist_manager"))G=new _.GmM(this),_.M2(this,G);_.U("web_thumbnail_to_watch_transition")&&(G=new rZa(this),_.M2(this,G))};
_.Na.prototype.initOrDisposeActiveModules=function(G){G?(this.watchScrollManager=new _.Hb(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.WLd(this)),_.U("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new Wb(this)),this.activeModules.push(new _.Fta(this)),YZ(this)&&this.activeModules.push(new yZa(this)),this.activeModules.push(new _.lE7(this)),this.activeModules.push(new _.ivK(this)),(YZ(this)||_.U("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.YzE(this)),this.activeModules.push(new _.KLg(this)),(YZ(this)||_.U("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.eZA(this)),(YZ(this)||_.U("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.EV7(this)),_.U("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.GgK(this),this.activeModules.push(this.watchCinematicManager)),_.U("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.OvM(this)),_.U("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.TLv(this)),G=_.U("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.U("kevlar_watch_flexy_comments_manager")&&!G&&this.activeModules.push(new _.c_g(this)),_.U("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Xwo(this)),this.activeModules.push(new _.C4v(this)),this.activeModules.push(new _.NLA(this)),_.U("web_enable_timely_actions")&&this.activeModules.push(new _.RDM(this)),_.U("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.vVI(this)),_.U("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.qil(this)),_.U("web_fullscreen_components")&&this.activeModules.push(new _.upI(this)),_.U("web_player_rtr_ctrls")&&this.activeModules.push(new _.QLz(this)),(_.U("enable_creator_chatbot")||_.U("enable_creator_chatbot_link_out"))&&this.activeModules.push(new QWK(this))):(_.DC(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Na.prototype.disposeInternal=function(){_.XC.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.kV.Object.defineProperties(_.Na.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var wLo,bt,E3A,pLM,XLh,$EA,S1K,G7o;wLo=function(){var G=_.Vn();G.info||(G.info={});return G.info};
bt=function(G){return Math.round(_.vT()+G)};
E3A=function(){var G;if(_.U("csi_use_performance_navigation_timing")){var b,I,h,q=_.kP==null?void 0:(G=_.kP.getEntriesByType)==null?void 0:(b=G.call(_.kP,"navigation"))==null?void 0:(I=b[0])==null?void 0:(h=I.toJSON)==null?void 0:h.call(I);q?(q.requestStart=bt(q.requestStart),q.responseEnd=bt(q.responseEnd),q.redirectStart=bt(q.redirectStart),q.redirectEnd=bt(q.redirectEnd),q.domainLookupEnd=bt(q.domainLookupEnd),q.connectStart=bt(q.connectStart),q.connectEnd=bt(q.connectEnd),q.responseStart=bt(q.responseStart),
q.secureConnectionStart=bt(q.secureConnectionStart),q.domainLookupStart=bt(q.domainLookupStart),q.isPerformanceNavigationTiming=!0,G=q):G=_.kP.timing}else G=_.U("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.kP.timing)):_.kP.timing;return G};
pLM=function(){if(_.kP.getEntriesByType){var G=_.kP.getEntriesByType("paint");if(G=_.FO(G,function(I){return I.name==="first-paint"}))return bt(G.startTime)}var b;
_.U("csi_use_performance_navigation_timing")?b=_.kP.getEntriesByType("first-paint")[0].startTime:b=_.kP.timing.msFirstPaint;return b?Math.max(0,b):0};
XLh=function(){var G=window.location.protocol,b=_.kP.getEntriesByType("resource");b=_.EE(b,function(I){return I.name.indexOf(G+"//fonts.gstatic.com/s/")===0});
(b=S1K(b,function(I,h){return h.duration>I.duration?h:I}))&&b.startTime>0&&b.responseEnd>0&&(_.LU("wffs",bt(b.startTime)),_.LU("wffe",bt(b.responseEnd)))};
$EA=function(G,b){G=document.querySelector(G);if(!G)return!1;var I="",h=G.nodeName;h==="SCRIPT"?(I=G.src,I||(I=G.getAttribute("data-timing-href"))&&(I=window.location.protocol+I)):h==="LINK"&&(I=G.href);_.I$(document)&&G.setAttribute("nonce",_.I$(document));return I?(G=_.kP.getEntriesByName(I))&&G[0]&&(G=G[0],I=_.vT(),_.LU("rsf_"+b,I+Math.round(G.fetchStart)),_.LU("rse_"+b,I+Math.round(G.responseEnd)),G.transferSize!==void 0&&G.transferSize===0)?!0:!1:!1};
_.bAI=function(G,b){_.$W(function(){_.cT("").info.actionType=G;b&&_.OB("TIMING_AFT_KEYS",b);_.OB("TIMING_ACTION",G);var I=_.F4q(_.wy("TIMING_INFO",{}));Object.keys(I).length>0&&_.Qn(I);I={isNavigation:!0,actionType:_.sV2(_.wy("TIMING_ACTION"))};var h=_.wy("PREVIOUS_ACTION");h&&(I.previousAction=_.sV2(h));if(h=_.wy("CLIENT_PROTOCOL"))I.httpProtocol=h;if(h=_.wy("CLIENT_TRANSPORT"))I.transportProtocol=h;(h=_.gL())&&h!=="UNDEFINED_CSN"&&(I.clientScreenNonce=h);h=_.rsj();if(h===1||h===-1)I.isVisible=!0;
h=_.vfO().loadType==="cold";var q=wLo();h||(h=q.yt_lt==="cold");if(h){I.loadType="cold";h=wLo();q=E3A();var l=_.vT(),V=_.wy("CSI_START_TIMESTAMP_MILLIS",0);V>0&&!_.U("embeds_web_enable_csi_start_override_killswitch")&&(l=V);l&&(_.LU("srt",q.responseStart),h.prerender!==1&&_.tIO(l));h=pLM();h>0&&_.LU("fpt",h);h=E3A();h.isPerformanceNavigationTiming&&_.Qn({performanceNavigationTiming:!0},void 0);_.LU("nreqs",h.requestStart,void 0);_.LU("nress",h.responseStart,void 0);_.LU("nrese",h.responseEnd,void 0);
h.redirectEnd-h.redirectStart>0&&(_.LU("nrs",h.redirectStart,void 0),_.LU("nre",h.redirectEnd,void 0));h.domainLookupEnd-h.domainLookupStart>0&&(_.LU("ndnss",h.domainLookupStart,void 0),_.LU("ndnse",h.domainLookupEnd,void 0));h.connectEnd-h.connectStart>0&&(_.LU("ntcps",h.connectStart,void 0),_.LU("ntcpe",h.connectEnd,void 0));h.secureConnectionStart>=_.vT()&&h.connectEnd-h.secureConnectionStart>0&&(_.LU("nstcps",h.secureConnectionStart,void 0),_.LU("ntcpe",h.connectEnd,void 0));_.kP&&"getEntriesByType"in
_.kP&&XLh();h=[];if(document.querySelector&&_.kP&&_.kP.getEntriesByName)for(var D in G7o)G7o.hasOwnProperty(D)&&(q=G7o[D],$EA(D,q)&&h.push(q));if(h.length>0)for(I.resourceInfo=[],D=_.e(h),h=D.next();!h.done;h=D.next())I.resourceInfo.push({resourceCache:h.value})}_.Qn(I);I=_.DE();I.preLoggedGelInfos||(I.preLoggedGelInfos=[]);D=I.preLoggedGelInfos;I=_.QVO();h=void 0;for(q=0;q<D.length;q++)if(l=D[q],l.loadType){h=l.loadType;break}if(_.vfO().loadType==="cold"&&(I.loadType==="cold"||h==="cold")){h=_.L42();
q=_.DE();q=q.gelTicks?q.gelTicks:q.gelTicks={};for(var k in h)if(!(k in q))if(typeof h[k]==="number")_.LU(k,_.xP(k));else if(_.U("log_repeated_ytcsi_ticks"))for(l=_.e(h[k]),V=l.next();!V.done;V=l.next())V=V.value,_.LU(k.slice(1),V);k={};h=!1;D=_.e(D);for(q=D.next();!q.done;q=D.next())h=q.value,_.t_(I,h),_.t_(k,h),h=!0;h&&_.Qn(k)}_.N0p(!0);k=_.wy("TIMING_ACTION");_.Ge("ytglobal.timingready_")&&k&&_.wBs()&&_.afO()&&_.dZr()})()};
S1K=function(G,b){return Array.prototype.reduce.call(G,b,{duration:0})};
G7o={'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 IKI={};IKI.YtVisibilityRootBehavior=[_.AHO.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.VQ(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.wy("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var G=_.wy("INNERTUBE_CLIENT_NAME")!=="WEB";_.U("kevlar_use_vimio_behavior")&&G&&_.K1B()}}];_.Id={};_.Id.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}}],
IKI.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.yO();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(G){var b=this;this.pageCount+=1;_.U("kevlar_use_vimio_behavior")&&(_.wy("INNERTUBE_CLIENT_NAME")==="WEB"?_.uu.addJob(function(){b.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(G)},
loadPage_:function(G){this.data=G},
ytPageBehaviorActiveObserver_:function(G){var b=this;_.U("kevlar_use_vimio_behavior")&&(G?_.wy("INNERTUBE_CLIENT_NAME")==="WEB"?_.uu.addJob(function(){b.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(G){if(!this.setScrollTopJobId_){var b=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){b.setScrollTopJobId_=0;var I=_.LL().resolve(_.vf(_.VO));I&&_.kE(I);this.getPageScrollingElement().scrollTop=G}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.oe(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var ODl;var GR=function(){var G=_.a.apply(this,arguments)||this;G.playerListenerConfig=null;G.actionMap={"yt-show-watch-page-survey":"openSurvey"};return G};
_.M(GR,_.a);_.m=GR.prototype;_.m.dataChanged=function(){var G=this,b=_.Kk();b&&b.getPlayerPromise().then(function(h){G.maybeRemovePlayerListeners(h)});
var I=this.data&&this.data.survey;I&&((I=(I=I.singleOptionSurveyRenderer||I.checkboxSurveyRenderer||I.multiStageSurveyRenderer)&&I.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(b,I):this.openSurvey())};
_.m.triggerWatchPageSurvey=function(G,b){var I=this,h,q,l,V,D,k,L,x,f;return _.c(function(T){if(T.nextAddress==1)return G?T.yield(G.getPlayerPromise(),2):T.return();I.player=T.yieldResult;if(!I.player)return T.return();h={};q=_.e(b);for(l=q.next();!l.done;l=q.next())V=l.value,D=_.e(I.createEventListenerPair(V)),k=D.next().value,L=D.next().value,x=k,f=L,x&&f&&(h[x]=f,I.ytPlayerListenerBehavior.listenToPlayerEvent(I.player,x,f));I.playerListenerConfig=h;_.ip(T)})};
_.m.createEventListenerPair=function(G){var b=G.playbackEventTrigger;return b?this.handlePlaybackTrigger(b):(G=G.watchTimeTrigger)?this.handleWatchTimeTrigger(G):[void 0,void 0]};
_.m.handleWatchTimeTrigger=function(G){var b=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var I=G.videoWatchFraction,h=G.watchTimeSec;return h&&I?["onVideoProgress",function(){b.player&&b.isWatchTimeConditionMet(b.player,I,h)&&b.showSurvey()}]:[void 0,
void 0]};
_.m.isWatchTimeConditionMet=function(G,b,I){var h=G.getProgressState(),q=h.current-this.lastKnownPlaybackPosition;q<5&&(this.accumulatedMediaTime+=q);this.lastKnownPlaybackPosition=h.current;h=Math.round(this.accumulatedMediaTime/h.duration*1E3)/1E3;return G.getPresentingPlayerType&&G.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>I||h>b)};
_.m.handlePlaybackTrigger=function(G){var b=this;G=G.playbackEvent;if(G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var I="onStateChange";var h=function(q){q===0&&b.showSurvey()}}else G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(I="onVideoProgress",h=function(q){b.player&&b.player.getPresentingPlayerType&&b.player.getPresentingPlayerType()===1&&q&&b.showSurvey()}):G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(I="onAdEnd",h=this.showSurvey);
return[I,h]};
_.m.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.m.openSurvey=function(){var G=this,b=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.x5j(!!b));_.uu.addJob(function(){G.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:b}})},0,0)};
_.m.maybeRemovePlayerListeners=function(G){if(this.playerListenerConfig){for(var b=_.e(Object.keys(this.playerListenerConfig)),I=b.next();!I.done;I=b.next())I=I.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(G,I,this.playerListenerConfig[I]);this.playerListenerConfig=null}};
GR.prototype.dataChanged=GR.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],GR.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],GR.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],GR.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],GR.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],GR.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],GR.prototype,"playerListenerConfig",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],GR.prototype,"lastKnownPlaybackPosition",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],GR.prototype,"accumulatedMediaTime",void 0);_.R([_.H(),_.n("design:type",Object)],GR.prototype,"player",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],GR.prototype,"dataChanged",null);_.R([_.N({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],GR);
_.J(GR,"ytd-survey-trigger-renderer",function(){if(ODl!==void 0)return ODl;var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ODl=G},{mode:1});
}catch(e){_._DumpException(e)}
try{
var d51;_.hT=function(G){var b=document.createElement("link");_.DJ(b,G,"stylesheet");document.head.appendChild(b)};
_.qu=function(G,b){var I,h;return _.c(function(q){I=document.createElement("div");I.id=G.id;G.className&&(I.className=G.className);h=G.element;if(!h)throw Error("gk");if(G.location==="prepend")h.prepend(I);else if(G.location==="appendChild")h.appendChild(I);else if(G.location==="after")h.after(I);else throw Error("hk");return q.return(_.C3(I,b,"Xi"))})};
_.j4=function(G){var b;return _.c(function(I){(b=document.getElementById(G))&&b.remove();_.ip(I)})};
_.ly=function(G,b){var I=document.querySelector(G);I?b(I):setTimeout(function(){_.ly(G,b)},1E3)};
_.yIj=function(G,b,I){var h;_.c(function(q){if(q.nextAddress==1)return(h=document.getElementById(G))?q.jumpTo(2):q.yield(d51(G,b,I),2);if(h=document.getElementById(G))h.style.display="block";_.ip(q)})};
d51=function(G,b,I){return _.c(function(h){return h.return(new Promise(function(q){_.ly("div #panels",function(l){_.qu({element:l,location:"appendChild",id:G,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+I},b);q()})}))})};_.mm=_.C(function(G){var b=G.text;var I=G.onClick;var h=G.color;var q=G.backgroundColor;var l=G.buttonSize;var V=G.disabled;var D=G.iconName;var k=G.iconSize;var L=G.className;var x=G.iconClassName;G=_.Xu(function(T){I(T)});
var f={};return _.v("button",{class:_.pG("ytpStandardButtonsHost",(f.ytpStandardButtonsLarge=function(){return(l==null?void 0:l())==="large"},f),L),
"on:click":G,style:_.Ir({color:h,"background-color":q}),disabled:V}," ",_.v(_.Q,{cond:D,then:function(){return _.v(_.ha,{className:_.pG("ytpStandardButtonsIconContainer",x),icon:D,size:k})}}),b)},"Wi");_.rIY=_.C(function(G){var b,I,h={};return _.v("div",{class:_.pG("ytprototypesEngagementPanelComponentHost",(h.ytprototypesEngagementPanelComponentHostMweb=G.isMweb,h),G.className),id:G.id},_.v("div",{class:_.pG("ytprototypesEngagementPanelComponentEngagementPanelHeader",G.headerClassName)},_.v("div",null,G.header()),_.v("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.v("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(b=G.HeaderButton)==null?void 0:b.call(G)),
_.v(_.mm,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){var q;(q=G.onHide)==null||q.call(G);var l;if((l=G.preventDefault)==null||!l.call(G))if(q=G.id(),q=document.getElementById(q))q.style.display="none"}}))),_.v("div",{class:_.pG("ytprototypesEngagementPanelComponentEngagementPanelContent",G.contentClassName),
style:function(){var q,l;return"height: "+(((q=G.height)==null?0:q.call(G))||((l=G.isMweb)==null?0:l.call(G))?"100%":"800px")+";"}},G.content()),_.v("div",null,(I=G.Footer)==null?void 0:I.call(G)))},"Yi");
}catch(e){_._DumpException(e)}
try{
var HDa=new _.hu("replaceFeedContentAction");var W9g;var aYl;var NjA=function(){return _.a.apply(this,arguments)||this};
_.M(NjA,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],NjA.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],NjA.prototype,"data",void 0);_.R([_.N({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],NjA);
_.J(NjA,"ytd-sub-feed-option-renderer",function(){if(aYl!==void 0)return aYl;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return aYl=G},{mode:1});var Y1o;var OP=function(){return _.a.apply(this,arguments)||this};
_.M(OP,_.a);OP.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],OP.prototype,"ytRendererStamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],OP.prototype,"data",void 0);_.R([_.N({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],OP);
_.J(OP,"ytd-sub-feed-selector-renderer",function(){if(Y1o!==void 0)return Y1o;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Y1o=G},{mode:1});var wl=function(){return _.a.apply(this,arguments)||this};
_.M(wl,_.a);
wl.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],wl.prototype,"data",void 0);_.R([_.N({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],wl);
_.J(wl,"ytd-browse-feed-actions-renderer",function(){if(W9g!==void 0)return W9g;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return W9g=G},{mode:1});var CFg;var Jc7;var EP=function(){return _.a.apply(this,arguments)||this};
_.M(EP,_.a);EP.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],EP.prototype,"data",void 0);_.R([_.N({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],EP);
_.J(EP,"ytd-mini-channel-renderer",function(){if(Jc7!==void 0)return Jc7;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Jc7=G},{mode:1});var K9d;var pI=function(){return _.a.apply(this,arguments)||this};
_.M(pI,_.a);pI.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],pI.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],pI);
_.J(pI,"ytd-vertical-channel-section-renderer",function(){if(K9d!==void 0)return K9d;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return K9d=G},{mode:1});var Sw=function(){return _.a.apply(this,arguments)||this};
_.M(Sw,_.a);Sw.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Sw.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Sw.prototype,"data",void 0);_.R([_.N({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Sw);
_.J(Sw,"ytd-browse-secondary-contents-renderer",function(){if(CFg!==void 0)return CFg;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return CFg=G},{mode:1});var uWd;var XM=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};G.notActive=!1;G.isConstrainedList=!1;G.marginSettings=0;return G};
_.M(XM,_.a);_.m=XM.prototype;
_.m.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 b;return(G==null?void 0:(b=G.webComponentHint)==null?void 0:b.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}}}}};
_.m.getPath=function(G,b){var I="data.tabs.#"+b+".";G.tabs[b].tabRenderer?I+="tabRenderer.":G.tabs[b].expandableTabRenderer&&(I+="expandableTabRenderer.");return I+"content.sectionListRenderer"};
_.m.computeDisplayedContent=function(G){this.unlinkPaths("content");if(G&&G.tabs)for(var b=G.tabs.length,I=0;I<b;I++){var h=G.tabs[I].tabRenderer||G.tabs[I].expandableTabRenderer;if(h.selected&&h.content)return this.linkPaths("content",this.getPath(G,I)),h.content}return null};
_.m.computeHasSecondaryColumnData=function(G){return!!G&&!!G.secondaryContents};
_.m.onRetrieveLocation=function(G,b){b.locationRetrieved(b.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);G.stopPropagation()};
_.m.onYtServiceRequestSent=function(G,b){_.U("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(b)};
_.m.onYtServiceRequestCompleted=function(G,b){_.U("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(b)};
_.m.onReplaceFeedContentAction=function(G){if(!_.U("replace_feed_content_action_killswitch")&&!this.notActive){var b;(G=(b=_.g(G,HDa))==null?void 0:b.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(G)}};
_.m.handleServiceRequestActions=function(G){if(G=G.actions){G=_.e(G);for(var b=G.next();!b.done;b=G.next()){b=b.value;var I=void 0;((I=_.g(b,HDa))==null?0:I.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.g(b,HDa).items)}}};
XM.prototype.onYtServiceRequestCompleted=XM.prototype.onYtServiceRequestCompleted;XM.prototype.onYtServiceRequestSent=XM.prototype.onYtServiceRequestSent;XM.prototype.onRetrieveLocation=XM.prototype.onRetrieveLocation;_.R([_.z(_.Xl),_.n("design:type",Object)],XM.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],XM.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],XM.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],XM.prototype,"data",void 0);_.R([_.H({computed:"computeDisplayedContent(data)"}),_.n("design:type",Object)],XM.prototype,"content",void 0);
_.R([_.H({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],XM.prototype,"hasSecondaryColumnData",void 0);_.R([_.H({value:function(){return window.outerHeight>1024?3:2}}),
_.n("design:type",Number)],XM.prototype,"initialCount",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],XM.prototype,"pageSubtype",void 0);_.R([_.lH("ytd-section-list-renderer"),_.n("design:type",Object)],XM.prototype,"listRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],XM.prototype,"notActive",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],XM.prototype,"isConstrainedList",void 0);
_.R([_.H(),_.n("design:type",String)],XM.prototype,"responsiveSizing",void 0);_.R([_.H(),_.n("design:type",Number)],XM.prototype,"marginSettings",void 0);_.R([_.hI("yt-retrieve-location"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],XM.prototype,"onRetrieveLocation",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],XM.prototype,"onYtServiceRequestSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],XM.prototype,"onYtServiceRequestCompleted",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],XM);
_.J(XM,"ytd-two-column-browse-results-renderer",function(){if(uWd!==void 0)return uWd;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return uWd=G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var so7=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 b="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":b="%";break a}b=void 0}return b?""+G.value+b:"initial"};_.JN(_.C(function(G){var b=G.data;G=_.e(_.ZZ(!1,void 0,"F8nCEc"));var I=G.next().value,h=G.next().value;_.K3(function(){_.I1.getInstance().triggerAction("yt-request-timely-shelf-state")});
var q=_.P$(function(){var D,k,L=(D=_.g(b().rendererContext,_.jA))==null?void 0:(k=D.loggingDirectives)==null?void 0:k.trackingParams;if(L)return _.VB(L)},void 0,"ngvA8c");
_.je(_.I1.getInstance(),{"yt-hide-shopping-timely-shelf":function(){h(!1);var D=_.gL(),k=q();D&&k&&_.HT(D,[k])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){h(!0);var D=_.gL(),k=q();D&&k&&_.FT(D,[k])})}});
var l=function(){var D;return((D=b().image)==null?void 0:D.height)||40},V=function(){var D;
return(D=b().image)==null?void 0:D.backgroundColor};
G={};return _.v("yt-shopping-timely-shelf-content-view-model",{el:_.Wv(_.s2(function(){return b().rendererContext})),
class:_.pG("ytShoppingTimelyShelfContentViewModelHost",(G.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(b().image||b().avatar||b().line1)&&I()},G)),
style:_.Ir({"--shopping-timely-shelf-content-padding-top":function(){var D;return so7((D=b().padding)==null?void 0:D.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var D;return so7((D=b().padding)==null?void 0:D.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var D;return so7((D=b().padding)==null?void 0:D.start)},
"--shopping-timely-shelf-content-padding-end":function(){var D;return so7((D=b().padding)==null?void 0:D.end)},
"--yt-shopping-timely-shelf-background-color":function(){return b().backgroundColor!==void 0?_.so(b().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var D,k;return((k=(D=b().image)==null?void 0:D.cornerRadius)!=null?k:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return V()!==void 0?_.so(V()):"initial"}})},_.v(_.Q,{cond:function(){var D;
return(D=b().image)==null?void 0:D.image},
then:function(D){return _.v(_.Fu,{preserveHeight:!0,preserveWidth:!0,height:l,data:D,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.v(_.VX,{data:function(){return b().avatar}},{avatarViewModel:_.Om}),_.v("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.v(_.VX,{data:function(){return b().line1}},{shoppingContentLineViewModel:function(D){return _.v(_.e1,{data:D.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.v(_.VX,{data:function(){return b().line2}},{shoppingContentLineViewModel:function(D){return _.v(_.e1,{data:D.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.v("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.v(_.VX,{data:function(){var D;
return(D=b().button)!=null?D:[]}},{buttonViewModel:function(D){var k=D.data;
return _.v(_.sQ,{data:k,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(L){k().onTap&&L.stopPropagation()}})}})))},"ro"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.hV}});_.gSv={};
_.gSv.YtdWatchBehavior=[_.p.YtRendererBehavior,_.jJ.YtPlayerListenerBehavior,_.kK.YtRendererstamperBehavior,_.tV.YtActionHandlerBehavior,_.Id.YtPageBehavior,_.ZN.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 _.Sk("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.U("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 _.Sk("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 _.U("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.U("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 _.Te("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Te("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 _.U("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.U("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.U("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.U("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("swatcheroo_enable_ghost_cards")||_.U("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 _.U("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 _.U("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("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 _.U("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,b,I){return G&&(b||!I)},
computeShowGhostRelated_:function(G,b,I){return G&&(b||!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:_.z_(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.z_(["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"||_.U("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(){_.U("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;_.U("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.U("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.mOA(function(){return _.Ja(G)},this.hostElement);
this.pageDisposeJobs.push(function(){G.youThereManager_.reset()});
_.U("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){G.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.fY;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;_.U("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));_.U("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.I9(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){_.U("kevlar_watch_flexy_theater_manager")&&(this.theater=G,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(G){!_.U("kevlar_watch_while_v2")&&!_.U("web_watch_pip")||G||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(G){this.active!==void 0&&(this.fullscreen=G,_.U("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(G){this.active!==void 0&&(_.O3(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.U("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 b=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&&_.Tm({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.sS("nw");this.loading=!1;_.FQ(_.uu,function(){b.initDclkstatus_();var h,q=((h=b.player)==null?void 0:h.getVideoData().cpn)||"";_.nPo(function(l,V){_.MHL(l,V,q)})})},
onPageLoadWithSameData_:function(){_.U("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(_.U("kevlar_watch_frame0_loading_state")){var b,I,h;G=(b=this.loadingData)==null?void 0:(I=b.endpoint)==null?void 0:(h=I.watchEndpoint)==null?void 0:h.videoId;var q;G&&(q="https://i.ytimg.com/vi/"+G+"/frame0.jpg");_.Eo(this.hostElement).querySelector("#player").style.backgroundImage=q?"url("+q+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var G=_.Eo(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 b,I;(I=(b=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(b);var h,q;(q=(h=this.watchMetadata).resize)==null||q.call(h)}_.U("kevlar_watch_frame0_loading_state")&&(_.Eo(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(G){var b=_.Eo(this.hostElement).querySelector(G);b?_.R3(b,!1):_.RB(new _.Wf("Overscroll monitor not found for component: ",G))},
removeSplitScrollMouseTrap:function(G){var b=_.Eo(this.hostElement).querySelector(G);b?_.nv(b):_.RB(new _.Wf("Disposal component for  overscroll monitoring not found: ",G))},
onLoadingChanged_:function(G){G?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.U("web_thumbnail_to_watch_transition")&&!_.Vy8||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.U("web_thumbnail_to_watch_transition")&&!_.Vy8||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(G){var b=this;G?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.uu.addLowPriorityJob(function(){b.onWindowResized_(_.eL(!0))})},
updateTheaterModeState_:function(G){if(!_.U("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&&_.hCl()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var G=this.fullBleedPlayer?_.Eo(this.hostElement).querySelector("#player-full-bleed-container"):_.Eo(this.hostElement).querySelector("#player-container-inner");var b=this.getPlayerContainer(),I=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip");b.parentElement!==G&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.Ja(this).appendTo(G,b))},
updateErrorScreenLocation:function(){var G=_.Eo(this.hostElement).querySelector("#error-screen"),b=this.fullBleedPlayer?_.Eo(this.hostElement).querySelector("#player-full-bleed-container"):_.Eo(this.hostElement).querySelector("#player");G.parentElement!==b&&b.appendChild(G)},
deactivateMiniplayerAndResetPlayer:function(){var G=this;return _.c(function(b){if(b.nextAddress==1)return b.yield(_.LL().resolve(_.zO).deactivate(),2);G.updatePlayerLocation();_.ip(b)})},
updateCinematicsLocation:function(){var G=this.getElement("CINEMATICS");if(G){var b=this.getCinematicsLocationContainer();G.parentElement!==b&&b.appendChild(G)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.Eo(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Eo(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(G,b,I){var h=document.documentElement.hasAttribute("dark"),q=!h&&this.cinematicLightTheme;return I||G&&h||b&&h||(b||G)&&q},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var G=this,b;(b=this.watchController)==null||b.setWatchNextResponse(this.data);_.U("kevlar_watch_flexy_comments_manager")||this.initComments_();_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.LL().resolve(_.jm).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.U("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.uu.addLowPriorityJob(function(){_.E3(G.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.U("web_watch_start_chat_in_theater_mode")){var I,h,q;if((I=this.data)==null?0:(h=I.contents)==null?0:(q=h.twoColumnWatchNextResults)==null?0:q.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var l,V;((l=this.data)==null?0:(V=l.contents)==null?0:V.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(G){var b;(b=this.watchController)==null||b.setPlayerResponse(this.playerData);G&&G.playabilityStatus&&(b=this.isVideoPlayable_(G.playabilityStatus,this.getPlayerOverlays_(this.data)),G=this.isLiveStreamOffline_(G.playabilityStatus),b&&!G||_.D1(this,function(){_.sS("pbu")}));
this.setPlayerAds_();_.E3(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(G,b){if((_.U("kevlar_watch_while_v2")||_.U("web_watch_pip"))&&this.playerData&&b)return this.playerData.videoDetails},
watchPageActiveChanged_:function(G){_.Cw().dispatch(_.kmM(this.active));G?this.activate_():this.deactivate_()},
attached:function(){var G=this;this.watchController=new _.Na(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);_.U("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var b=_.Ja(this);_.U("kevlar_disable_prepare_player")||
b.preparePlayer();_.U("kevlar_watch_flexy_playlist_manager")||_.LL().resolve(_.jm).setPlayer(b);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();b={"--ytd-watch-flexy-scrollbar-width":_.Hl()+"px"};this.is==="ytd-watch-grid"&&(_.Cw().dispatch(_.wK({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),b["--ytd-watch-flexy-sidebar-width"]=_.p3K+"px",b["--ytd-watch-grid-horizontal-page-margins"]=_.FX+"px",b["--ytd-watch-grid-columns-top-margins"]=
_.O3K+"px",b["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Te("kv_pl_mx_sz_ks")&&_.Te("kevlar_watch_max_player_width")&&(b["--ytd-watch-flexy-max-player-width-wide-screen"]=_.SBI+"px");_.Te("kevlar_watch_flexy_metadata_height")&&(b["--ytd-watch-flexy-space-below-player"]=_.X3h+"px");this.safeUpdateStyles(b);_.U("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.eQ(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return G.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Eo(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var G=_.Hl(),b=_.H7+G,I=b;this.fixedPanels&&(b+=_.p3K);var h=657+G;G=1327+G;_.Eo(this.hostElement).querySelector("#two-column-query").query="(min-width: "+b+"px)";_.Eo(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(h+"px), (min-height: 630px) and (min-width: ")+(b+"px) and (max-width: ")+(G+"px)");_.Eo(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(G+"px)");
_.Eo(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+I+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var G=_.Eo(this.hostElement).querySelector("#miniplayer-bar").firstChild,b=this.squeezeback&&!_.U("web_watch_squeezeback_player_size_killswitch");return G&&G.active||this.theater||_.U("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||b||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.Pa(NaN,NaN):_.SSa(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.SSa(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.VQ(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var G=this;this.onWindowResized_(_.eL());_.U("browse_skeleton_removal_on_watch_killswitch")||_.Sk("IS_SHELL_LOAD")&&_.n3I();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var b=_.Ja(this);b.addEventListener("yt-player-updated",_.I9(this,this.onPlayerUpdated_));b.getPlayerPromise().then(function(I){G.playerApiReady_(I)});
_.U("kevlar_watch_flexy_playlist_manager")||(b=_.LL().resolve(_.jm),_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&b.addEventListener("yt-navigate",_.I9(this,this.onYtNavigate_)),b.setPlaylistComponent(_.Eo(this.hostElement).querySelector("#playlist")),b.addEventListener("yt-playlist-data-updated",_.I9(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.uu.addLowPriorityJob(function(){_.O3(G.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Ja(this).removeEventListener("yt-player-updated",_.I9(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.U("kevlar_watch_flexy_playlist_manager")){var G=_.LL().resolve(_.jm);_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&G.removeEventListener("yt-navigate",_.I9(this,this.onYtNavigate_));
G.cancelVideoSkip();G.removeEventListener("yt-playlist-data-updated",_.I9(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.O3(this.hostElement,"yt-autonav-pause-player",!1);G=_.Kv();_.U("kevlar_exit_fullscreen_leaving_watch")&&G&&_.uU(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,b){b.hasComments?b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):b.locationRetrieved("/related_ajax",void 0);G.stopPropagation()},
onSubscriptionChanged_:function(G,b){this.player&&(b?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.bAI("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Eo(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Eo(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_();_.U("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.U("kevlar_unified_player")||_.U("kevlar_player_new_bootstrap_adoption"))&&_.PR()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(G,b){b=b===void 0?!0:b;_.Kv()&&_.U("external_fullscreen")&&_.uU(document.documentElement);this.theaterRequested_=G;b&&_.yE("wide",G?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.wL(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.O3(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){_.n1(G,typeof this.player),this.player&&_.n1(G,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var G;((G=this.player)==null?0:G.isFullscreen())?this.player.toggleFullscreen():_.wL(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(G,b){return this.loading?b:!!Object.keys(G).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(G){if(G){G=_.e(G);for(var b=G.next();!b.done;b=G.next())b=b.value,b.youThereRenderer&&_.DOE(this.youThereManager_,b.youThereRenderer)}},
setPlaylistData_:function(G){return G||{}},
userEngagementConfigDataChanged_:function(G){if(G)if(G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var b=this.youThereManager_;_.vA()<G.lowEngagementThresholdMs||_.Lsa(b,!0)}else G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.wL(this.hostElement,"yt-autonav-pause-user-engagement",[G])},
isPlayerUnavailable_:function(G,b,I){return!!G&&!this.isVideoPlayable_(G,I)&&!b},
getPlayerOverlays_:function(G){return(G==null?void 0:G.playerOverlays)||null},
isVideoPlayable_:function(G,b){if(!G)return!1;var I=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",h=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",G)||this.get("errorScreen.ypcTrailerRenderer",G);G=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",G);var q;b=b==null?void 0:(q=b.playerOverlayRenderer)==null?void 0:q.gatedActionsOverlayRenderer;return!!I||!!h||!!G||!!b},
hasWatchNextResponseErrorRenderer:function(G){var b=this.getPageContents(G),I,h,q,l,V;return!(G==null?0:(I=G.contents)==null?0:(h=I.twoColumnWatchNextResults)==null?0:h.secondaryResults)&&!!((q=b[0])==null?0:(l=q.itemSectionRenderer)==null?0:(V=l.contents[0])==null?0:V.backgroundPromoRenderer)},
isLiveStreamOffline_:function(G){return G?G.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(G,b,I){var h=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b),q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];q=_.U("web_no_skip_video_on_verification_checks")?(G==null?void 0:G.status)&&q.includes(G.status):G&&G.status==="AGE_CHECK_REQUIRED";var l=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",G);l==void 0&&(l=!0);!I||this.isVideoPlayable_(G,this.getPlayerOverlays_(b))||
h||q||!l||_.LL().resolve(_.jm).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.$Og()},
onPlayerFeedbackStartRequest_:function(G){_.wL(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:G}])},
onPlayerFeedbackArticleRequest_:function(G){_.wL(this.hostElement,"yt-help-dialog-requested",[G])},
onPlayerYpcContentRequest_:function(){var G,b,I,h,q,l,V,D,k=((G=this.data)==null?NaN:(b=G.contents)==null?NaN:(I=b.twoColumnWatchNextResults)==null?NaN:(h=I.secondaryResults)==null?NaN:(q=h.secondaryResults)==null?NaN:(l=q.offerModule)==null?NaN:(V=l.tvfilmOfferModuleRenderer)==null?NaN:(D=V.actionButtons)==null?NaN:D.length)-1;G=[".offerButton.buttonRenderer.",".actionButtons."+(k>=0?k:0)+".buttonRenderer."];b=_.e(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=b.next();!I.done;I=b.next())for(I=I.value,h=_.e(G),q=h.next();!q.done;q=h.next())if(q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+q.value,q=this.get(q+"navigationEndpoint",this.data)||this.get(q+"serviceEndpoint",this.data)||this.get(q+"command",this.data)){_.$Q(q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(G){_.O3(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:_.O3(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(G)},
setPlayerState:function(G){_.Cw().dispatch(_.eNQ(G))},
onPlayerSubscribe_:function(G){_.wL(this.hostElement,"yt-player-subscribe",[G])},
onPlayerUnsubscribe_:function(G){_.wL(this.hostElement,"yt-player-unsubscribe",[G])},
onPlayerAdYtShowToast_:function(G){_.wL(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!_.U("web_watch_move_summary_to_sd")&&!!G},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.U("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var G,b,I,h;this.watchNextSecondaryResults=(G=this.data)==null?void 0:(b=G.contents)==null?void 0:(I=b.twoColumnWatchNextResults)==null?void 0:(h=I.secondaryResults)==null?void 0:h.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var G,b=(G=this.data)==null?void 0:G.engagementPanels;if(b==null?0:b.length){G=null;b=_.e(b);for(var I=b.next();!I.done;I=b.next()){I=I.value;var h=void 0;if(((h=I.engagementPanelSectionListRenderer)==null?void 0:h.targetId)==="engagement-panel-structured-description"){G=I;break}}var q,l,V;G=(q=G)==null?void 0:(l=q.engagementPanelSectionListRenderer)==null?void 0:(V=l.content)==null?void 0:V.structuredDescriptionContentRenderer;if(G==null?0:G.items){q=
[];l=_.e(G.items);for(V=l.next();!V.done;V=l.next()){V=V.value;if(!_.U("sd_horizontal_list_show_nav_killswitch")){var D=h=I=b=G=void 0,k=void 0,L=(G=V.horizontalCardListRenderer)==null?void 0:(b=G.header)==null?void 0:(I=b.richListHeaderRenderer)==null?void 0:(h=I.navigationButton)==null?void 0:(D=h.buttonRenderer)==null?void 0:(k=D.command)==null?void 0:k.commandExecutorCommand;L&&L.commands&&(L.commands=L.commands.filter(function(x){return!_.g(x,_.kFv)}))}(!V.expandableVideoDescriptionBodyRenderer&&
!V.videoDescriptionHeaderRenderer||_.U("web_delhi_colorful_sd"))&&q.push(V)}return{items:q}}}},
constructWarning_:function(G){return{text:_.ao(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;_.O3(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var b=this.getScrollTop()>0;this.gestures_&&(b?this.gestures_.detach():this.gestures_.attach());b!==this.showFullerscreenEdu_&&_.U("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=b,_.Ja(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(G.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.O3(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var G=this;this.commentsReady=!1;_.uu.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.FQ(_.uu,function(){G.setComments_()},1E3)},
setComments_:function(){if(!_.U("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.sS("cmi");_.uu.cancelJob(this.setCommentsJobId_);var G=this.getPageContents(this.data);if(G&&G.length){G=_.e(G);for(var b=G.next();!b.done;b=G.next())if(b=b.value,this.get("itemSectionRenderer.sectionIdentifier",b)==="comment-item-section"){this.comments=b.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.O3(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.U("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.sS("cmc")},
doRemoveComments_:function(){this.comments={};_.U("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.uu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.uu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(G,b){var I=_.g(b.endpoint,_.Wq);I&&(!(b=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==b.videoId||I.playlistId&&I.playlistId!==b.playlistId||I.index!==void 0&&I.index!==b.index||typeof I.startTimeSeconds!=="number"||(G.stopPropagation(),this.setScrollTop(0),_.Ja(this).getPlayerPromise().then(function(h){var q=I.startTimeSeconds;h.seekTo(q);h.wakeUpControls();q<h.getDuration()&&h.playVideo()})))},
updatePlayerStartTime_:function(){var G=_.W$M();"t"in G&&(G=_.XTI(G.t),this.player.seekTo(G,!0))},
updateTitleFromWatchNext:function(G){G=this.getPageContents(G);var b,I;(G=_.NO(G==null?void 0:(b=G[0])==null?void 0:(I=b.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.O3(this.hostElement,"yt-update-title",G)},
updateTitle_:function(G){G=this.get("videoDetails.title",G)||"";_.O3(this.hostElement,"yt-update-title",G)},
syncWithRemoteVideo_:function(G,b,I){if(this.active&&this.player){var h=this.player.getVideoData();if(h.video_id===I&&(I=h.list,_.U("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),h.video_id!==G||I!=b)){var q;_.U("kevlar_player_watch_endpoint_navigation")?q=_.Jms(_.OUa(G,b)):q=this.buildWatchEndpoint_(G,b);_.O3(this.hostElement,"yt-navigate",{endpoint:q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(G,b,I){return _.u9(G,b,I)},
initDclkstatus_:function(){_.pTa()},
attachWatchPageSkeleton_:function(){var G=document.querySelector("#watch-page-skeleton");if(G){var b=G.querySelector("#primary-info"),I=G.querySelector("#secondary-info"),h=G.querySelector("#related");b&&_.Eo(this.hostElement).querySelector("#info-skeleton").appendChild(b);I&&_.Eo(this.hostElement).querySelector("#meta-skeleton").appendChild(I);h&&(_.Eo(this.hostElement).querySelector("#related-skeleton").appendChild(h),this.watchNextSkeletonEl_=h);_.iG(G)}},
handlePlayerUpdated_:function(){_.Ja(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(G,b){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof b!=="undefined"){var I=this.watchNextSkeletonEl_.children,h=G&&G.indexSplices.length?G.indexSplices[0].index:0;G=Math.min(this.watchNextShownItems.length,I.length);b||(h=0,G=I.length);if(!this.ghostCardsEnabled)for(b=h;b<G;b++)I[b].classList.add("hidden")}},
onPlayerFullscreenChange_:function(G){_.U("external_fullscreen")||_.wL(this.hostElement,"yt-player-fullscreen",[G.fullscreen])},
onFullscreenChange_:function(G){this.fullscreen=G;this.gestures_&&this.gestures_.update(this.fullscreen);var b=_.Ja(this);b.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.Kv())});
this.updateFullBleedElementLocations();G&&(b.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(G,b){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!b},
computeIsDonationShelfCollapsed_:function(G){return G},
computeShouldShowMerchShelf:function(G,b){return b&&!!G},
computeResponseHasComments:function(G){var b,I,h,q,l;return!!(G==null?0:(b=G.contents)==null?0:(I=b.twoColumnWatchNextResults)==null?0:(h=I.results)==null?0:(q=h.results)==null?0:(l=q.contents)==null?0:l.some(function(V){var D;return(V==null?void 0:(D=V.itemSectionRenderer)==null?void 0:D.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(G,b,I,h){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&h?!1:!!G&&!!Object.keys(G).length&&!b},
identity:_.H2,onWindowResized_:function(G){this.windowSize_=G;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(G){var b=this;G&&G.type!=="dataloaded"&&G.type!=="dataupdated"||_.Ja(this).getPlayerPromise().then(function(I){var h=I.getPlayerState();h!==5&&h!==0&&(I=1/I.getVideoAspectRatio(),b.videoHeightToWidthRatio_!==I&&(b.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(G){var b=this,I=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip"),h=function(){if(b.watchMetadata){var q,l;(l=(q=b.watchMetadata).resize)==null||l.call(q)}_.Ja(b).getPlayerPromise().then(function(V){if(_.U("kevlar_set_internal_player_size")){if(!I||!b.isMiniplayerActive()){var D=b.calculateCurrentPlayerSize_();V.setInternalSize(D.width,D.height)}}else V.setSize(NaN,NaN);_.U("kevlar_watch_while")&&b.updateWatchWhileScrollThreshold_()})};
G?h():_.q_(_.uu,h)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(G){this.set("data.survey",G.detail)},
onYtShowSurveyCommand_:function(G){this.set("data.survey",_.g(G,_.l0a).survey)},
onDownloadedVideoDeleted:function(G){var b=this,I,h;return _.c(function(q){if(q.nextAddress==1){if(!b.active||(I=b.playerData)==null||!I.offlineState||b.videoId!==G)return q.return();(h=b.player)==null||h.stopVideo();_.Ws().navigatingAwayFromWatchDeletedVideo=!0;_.$Q(_.Ser,b.hostElement);return q.yield(_.Ws().navigationFinishPromise,2)}_.Ws().navigatingAwayFromWatchDeletedVideo=!1;_.ip(q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var G;this.theater?G=_.Ak(.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=_.Eo(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&G){var b=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!G.active&&b&&I>=this.watchWhileScrollThreshold_?(G.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):G.active&&(!b||I<this.watchWhileScrollThreshold_&&!_.Kv())&&(G.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var G=_.Eo(this.hostElement).querySelector("#secondary-inner");if(G){var b=_.Eo(this.hostElement).querySelector("#below"),I=_.Eo(this.hostElement).querySelector("#secondary"),h=_.Eo(this.hostElement).querySelector("#comments");h&&I&&b&&(this.defaultTwoColumnLayout?(G.appendChild(h),I.appendChild(G)):(b.appendChild(h),_.ye(b,G)))}}},
isTwoColumnsChanged_:function(G,b){if(G!==!0||b!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(G=_.Eo(this.hostElement).querySelector("#secondary-inner"))){b=_.Eo(this.hostElement).querySelector("#below");var I=_.Eo(this.hostElement).querySelector("#secondary"),h=_.Eo(this.hostElement).querySelector("#comments");h&&I&&b&&(this.isTwoColumns_?(G.appendChild(h),I.appendChild(G)):(b.appendChild(h),_.ye(b,G)))}}else{G=!_.U("web_watch_enable_fs_squeezeback_panels");
b=_.Eo(this.hostElement).querySelector("#panels");var q=_.Eo(this.hostElement).querySelector("#alerts"),l=_.Eo(this.hostElement).querySelector("#shopping-timely-shelf");I=_.Eo(this.hostElement).querySelector("#playlist");h=_.Eo(this.hostElement).querySelector("#related");var V=_.Eo(this.hostElement).querySelector("#donation-shelf"),D=_.Eo(this.hostElement).querySelector("#comments"),k=_.Eo(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(q=_.Eo(this.hostElement).querySelector("#secondary-inner"),
G&&(q.appendChild(b),q.appendChild(I),this.aiCompanionEnabled&&k&&q.appendChild(k)),q.appendChild(V),q.appendChild(h)):(G&&(_.rt(b,q),_.rt(I,q),this.aiCompanionEnabled&&k&&_.rt(k,q),_.rt(l,I)),_.rt(V,q),D&&_.rt(h,D));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.U("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.U("web_watch_enable_fs_squeezeback_panels")&&_.U("web_watch_theater_chat")){var G=_.Eo(this.hostElement).querySelector("#chat-container"),b=this.theater&&!this.fullscreen||_.U("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&b?(b=_.Eo(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==b&&b.append(G),this.fixedPanels=!0):(this.fixedPanels=
!1,b=_.Eo(this.hostElement).querySelector("#playlist"),G&&b?_.Fi(G,b):_.RB(new _.Wf("Missing element when updating chat location",{"chatContainer defined":!!G,"playlist defined":!!b})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(G,b){return _.U("sw_metadata_vis_toggle_ks")?!0:!!G||!!b},
computeForceDarkPanelTheme:function(G){return _.U("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&G:!1},
safeUpdateStyles:function(G){try{_.G8(this.hostElement,G)}catch(b){_.RB(b)}},
videoHeightToWidthRatioChanged_:function(G,b){b&&(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&&_.Ja(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Ja(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.QoK(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(G){var b=_.Q4(G)||0;_.LX(G,b+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var G=_.Q4("yt-fullerscreen-edu-button-click-count")||0,b=_.Q4("yt-fullerscreen-edu-button-shown-count")||0,I=_.Te("external_fullscreen_button_shown_threshold"),h=G>=_.Te("external_fullscreen_button_click_threshold")||b>=I;_.Ja(this).getPlayerPromise().then(function(q){q.updateFullerscreenEduButtonSubtleModeState(h)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(G,b){return b},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.LL().resolve(_.jm).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var G=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.uu.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.uu.addLowPriorityJob(function(){G.fullHeightPanelPositionUpdateJobId=0;var b=_.Eo(G.hostElement).querySelector("#secondary"),I=_.Eo(G.hostElement).querySelector("#fixed-secondary");b=b.getBoundingClientRect();var h=b.width;G.swatcherooSqueezeback&&
(h+=_.FX);if(G.swatcherooSqueezeback){var q=_.Eo(G.hostElement).querySelector("#squeezeback-constraining-container");q.style.width=h+"px";q.style.flex="0 0 "+h+"px"}I.style.width=h+"px";I.style.left=b.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var G=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.uu.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.uu.addLowPriorityJob(function(){G.panelMaxHeightUpdateJob_=0;var b;!G.isTwoColumns_||G.theater||G.fullscreen?b=460:b=G.calculateNormalPlayerSize_().height;var I=b+"px";_.U("live_chat_taller_height")&&!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.U("live_chat_medium_height")&&!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.U("live_chat_scaled_height")&&!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");G.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":b+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":b+"px","--ytd-watch-flexy-comments-panel-max-height":b+"px","--ytd-comments-engagement-panel-content-height":b+"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_&&_.Su(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(G){var b=_.Eo(this.hostElement).querySelector("#engagement-panel-scrim");G?b.addEventListener("tap",_.I9(this,this.onEngagementPanelScrimClick_)):b.removeEventListener("tap",_.I9(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(G){if(this.hostElement.contains(G)&&!this.scrollToAnimation_.isAnimating()){var b=G.offsetTop-24;G=G.offsetTop+G.offsetHeight+24;var I=this.getPageScrollingElement(),h=this.getScrollTop(),q=h+I.clientHeight-56;if(b<h+56)b-=56;else if(G>q)b=G-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtSignalActionScrollToComments:function(){var G=this.hostElement.querySelector("#comments");if(G&&!this.scrollToAnimation_.isAnimating()){G=G.offsetTop-56-24;if(_.U("kevlar_comment_teaser_scroll_to_midpoint")&&(G-=_.dV().height/3,G<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtEngagementPanelVisibleChanged:function(G,b,I){if(this.active&&this.trackEngagementPanelVisibility&&!_.qbI.includes(I)){if(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.E3(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var h=_.LL().resolve(_.Jo);this.visiblePanelIdentifiers_.forEach(function(q){q!==I&&h.hidePanel({identifier:q})})}this.visiblePanelIdentifiers_.add(I)}b!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&b!=="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,b){return b&&!G},
computeFullBleedPlayer:function(G,b,I){return _.U("external_fullscreen")&&G||b||I},
computeDefaultLayout:function(G){return!G},
computeDefaultTwoColumnLayout:function(G,b){return!G&&b},
updatePanelsLocation:function(){if(_.U("web_watch_enable_fs_squeezeback_panels")){var G=_.Eo(this.hostElement).querySelector("#below"),b=_.Eo(this.hostElement).querySelector("#panels"),I=_.Eo(this.hostElement).querySelector("#playlist"),h=_.Eo(this.hostElement).querySelector("#chat-container"),q=_.Eo(this.hostElement).querySelector("#panels-full-bleed-container"),l=_.Eo(this.hostElement).querySelector("#secondary-inner"),V=_.Eo(this.hostElement).querySelector("#shopping-timely-shelf"),D=_.Eo(this.hostElement).querySelector("#persistent-panel-container");
if(G&&b&&I&&h&&q&&l&&V&&(this.aiCompanionEnabled?D:1)){var k=this.fullscreen||this.theater&&this.iMaxTheaterMode,L=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;L?(L=_.Eo(this.hostElement).querySelector("#columns"),(h==null?void 0:h.parentElement)!==L&&L.append(h),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):k?q.appendChild(h):this.isTwoColumns_?_.ye(l,h):_.ye(G,h);k?(q.appendChild(b),q.appendChild(I),
this.aiCompanionEnabled&&D&&q.appendChild(D)):(this.isTwoColumns_?(_.ye(l,b),_.ye(l,I),this.aiCompanionEnabled&&D&&_.ye(l,D)):(_.ye(G,b),_.ye(G,I),this.aiCompanionEnabled&&D&&_.ye(G,D)),_.ye(G,V))}}},
swatcherooUpdatePanelsLocation:function(G,b,I,h,q,l){if(this.is==="ytd-watch-grid"){b=G&&!b;this.swatcherooSplitScroll&&(b?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));I=_.Eo(this.hostElement).querySelector("#panels");var V=_.Eo(this.hostElement).querySelector("#playlist"),D=_.Eo(this.hostElement).querySelector("#persistent-panel-container"),
k=_.Eo(this.hostElement).querySelector("#fixed-secondary"),L=_.Eo(this.hostElement).querySelector("#fixed-below"),x=_.Eo(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),f=_.Eo(this.hostElement).querySelector("#chat-container");l&&(G?(k.appendChild(I),this.aiCompanionEnabled&&D&&k.appendChild(D)):(L.appendChild(I),this.aiCompanionEnabled&&D&&L.appendChild(D)));q?G?k.appendChild(f):L.appendChild(f):_.Fi(f,x);h?G?k.appendChild(V):L.appendChild(V):_.Fi(V,
x);this.swatcherooSplitScroll&&(G=_.Eo(this.hostElement).querySelector("#secondary"),h=_.Eo(this.hostElement).querySelector("#columns"),q=_.Eo(this.hostElement).querySelector("#fixed-columns-secondary"),b?q.appendChild(G):h.appendChild(G))}},
computeMetadataSkinnyMode:function(G,b,I){return this.is!=="ytd-watch-grid"?!1:G?I:b},
computeWatchWhilePanelsActive:function(G,b){return G||b},
computeNoBorderOnChat:function(G){return _.U("web_watch_theater_chat_no_border")&&G},
computeLiveChatPresentAndExpanded:function(G,b){return G&&!b},
computePanelExpanded:function(G,b,I){return G||b||I},
computeSqueezeback:function(G,b,I,h){if(_.U("web_watch_enable_fs_squeezeback_panels")){var q=this.iMaxTheaterMode&&this.theater,l=this.theater&&!this.iMaxTheaterMode;return(G||b||I)&&(q||h)||b&&l}},
computeSwatcherooSqueezeback:function(G,b,I){return this.is!=="ytd-watch-grid"||_.U("ww_squeezeback_killswitch")?!1:G&&b&&I},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(G){_.Ja(this).getPlayerPromise().then(function(b){var I;(I=b.changeMarkerVisibility)==null||I.call(b,_.g(G,_.KH).isVisible||!1,_.g(G,_.KH).entityKeys||[],_.g(G,_.KH).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(G){this.liveChatCollapsed=G.detail;_.Cw().dispatch(_.hAE(G.detail));if(!this.liveChatCollapsed&&this.squeezeback){var b=_.LL().resolve(_.Jo);this.visiblePanelIdentifiers_.forEach(function(I){b.hidePanel({identifier:I})})}},
onSetPlaylistCollapsed:function(G){_.U("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!G)},
provideRenderingData:function(G,b){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=b;break;case "PRIMARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=b);this.videoPrimaryInfoRendererValue=b==null?void 0:b.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=b);this.videoSecondaryInfoRendererValue=b==null?void 0:b.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
b;break;case "CLARIFICATION":this.clarifyBoxValue=b;break;case "LIVE_CHAT":this.conversationBar=b;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=b;break;case "PLAYLIST":this.externalPlaylistData_=b!=null?b:{};break;case "MERCH_SHELF":this.merchShelfValue=b==null?void 0:b.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=b;break;case "TICKET_SHELF":this.ticket=b;break;case "OFFER_MODULE":this.offerModule=b;break;case "LIMITED_STATE":this.limitedStateValue=
b;break;case "DONATION_SHELF":this.donation=b;break;case "ALERTS":this.alertsValue=b;break;case "COMMENTS":this.comments=b;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=b;break;case "ENGAGEMENT_PANELS":this.engagementPanels=b;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=b;break;case "RICH_GRID_RENDERER":this.richGridRendererData=b;break;case "EXPANDABLE_METADATA":this.expandableMetadata=b;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
b;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=b;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=b}},
toggleCinematicsActive:function(G){this.cinematicsActive=G},
isMiniplayerActive:function(){return _.LL().resolve(_.zO).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var oyW;_.zrW=function(G){if(!(0,_.gbB)(G))throw Error("K``"+String(G));};
_.in1=function(G){return G.findIndex(function(b){return oyW.indexOf(b.tagName)>-1})>-1};
_.PHK=function(){var G=_.LL().resolve(_.o0);_.lmv(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(G.isFullscreenEnabled()?_.uU(document.documentElement):_.SKO(document.documentElement))};
oyW=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.$$=new Map;_.$$.set(32,59972);_.$$.set(27,50765);_.$$.set(70,60102);_.$$.set(76,60221);_.$$.set(77,60222);_.$$.set(74,60223);_.$$.set(84,60224);_.$$.set(38,61941);_.$$.set(40,61942);_.$$.set(73,62521);_.$$.set(67,62522);_.$$.set(80,63390);_.$$.set(78,63397);_.$$.set(75,59972);_.$$.set(188,63385);_.$$.set(190,63384);_.$$.set(36,63387);
_.$$.set(35,63386);_.$$.set(37,63388);_.$$.set(39,63389);_.$$.set(79,63423);_.$$.set(87,63424);_.$$.set(107,63426);_.$$.set(109,63425);_.$$.set(65,63428);_.$$.set(83,63430);_.$$.set(68,63429);_.$$.set(221,63431);_.$$.set(219,63432);_.$$.set(97,63439);_.$$.set(98,63440);_.$$.set(99,63441);_.$$.set(100,63442);_.$$.set(101,63443);_.$$.set(102,63444);_.$$.set(103,63445);_.$$.set(104,63446);_.$$.set(105,63447);_.Gj=new Map;_.Gj.set(80,63390);_.Gj.set(78,63397);_.Gj.set(188,63400);_.Gj.set(190,63401);
_.Gj.set(191,60765);_.Gj.set(13,247917);_.by=new Map;_.Iy=new Map;
}catch(e){_._DumpException(e)}
try{
var nnY,En3,pyD,So9;_.JL1=function(G){return G.ui.guideIsVisibleButNotPersistent};
_.KuK=function(G){return G.ui.tabGesturesIsActive};
_.uAD=function(){var G=_.UG("service_worker_scope");try{return navigator.serviceWorker.getRegistration(G)}catch(b){return Promise.reject(b)}};
_.Rhe=function(G){return!(!G||!G.pushManager)};
nnY=function(){return _.uAD().then(_.Rhe).catch(function(){return!1})};
_.OX3=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?nnY():Promise.resolve(!1)};
_.wyW=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
En3=function(){var G,b,I;return _.c(function(h){switch(h.nextAddress){case 1:return h.yield(_.nm.getInstance(),2);case 2:G=h.yieldResult;if(!G){b=void 0;h.jumpTo(3);break}return h.yield(G.get("lmqf"),4);case 4:b=h.yieldResult;case 3:switch((I=b)||(I="SD"),I){case "HD":return h.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return h.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return h.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return h.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return h.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
pyD=function(G){var b,I,h;return _.c(function(q){if(q.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.U("disable_av1_setting")){var l=window.localStorage["yt-player-av1-pref"];l=l==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":l==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else l="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(b=G===l)return q.jumpTo(2);h=I=G;return q.yield(En3(),3)}q.nextAddress!=2&&(b=h===q.yieldResult);return q.return(b)})};var Xy8;var $5j=_.rr.IronButtonState,G8W=(0,_.iY)(HTMLElement);
_.fn({_template:function(){if(Xy8!==void 0)return Xy8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;So9===void 0&&(So9=document.createElement("template"));var h=So9;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return Xy8=G},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[$5j,_.dr,_.FZ,_.au],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 b=(0,_.yF)(this);b.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:G});b.shadowRoot.appendChild(G);return G8W.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=_.kc(this.$.content).getDistributedNodes(),b=0,I=G.length;b<I;b++)if(G[b].nodeType===Node.ELEMENT_NODE)return G[b]},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 b="";G?b=G.label||G.getAttribute("label")||G.textContent.trim():b="";this.value=b;this._setSelectedItemLabel(b)},
_computeMenuVerticalOffset:function(G,b){return b?b:G?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var G=this.opened?"true":"false",b=this.contentElement;b&&b.setAttribute("aria-expanded",G)}});_.ah=new _.hu("navigateAction");var bn3=new _.hu("formRenderer");var NG=function(){var G=_.eH.apply(this,arguments)||this;G.showInput=!1;return G};
_.M(NG,_.eH);_.m=NG.prototype;_.m.detached=function(){this.showInput&&window.removeEventListener("click",_.I9(this,this.closeOnOutsideClick_))};
_.m.stopPropagation_=function(G){this.showInput&&G.stopPropagation()};
_.m.closeOnOutsideClick_=function(G){this.closeOnOutsideClickCondition(G)&&(this.showInput=!1,window.removeEventListener("click",_.I9(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.m.closeOnOutsideClickCondition=function(){return!0};
_.m.closeOnOutsideClickHandler=function(){};
_.m.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.I9(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.m.openOnClickHandler=function(){};
_.m.showInputChanged=function(){};
_.m.setShowInput=function(G){this.showInput=G};
NG.prototype.setShowInput=NG.prototype.setShowInput;NG.prototype.showInputChanged=NG.prototype.showInputChanged;NG.prototype.openOnClickHandler=NG.prototype.openOnClickHandler;NG.prototype.openOnClick_=NG.prototype.openOnClick_;NG.prototype.closeOnOutsideClickHandler=NG.prototype.closeOnOutsideClickHandler;NG.prototype.closeOnOutsideClickCondition=NG.prototype.closeOnOutsideClickCondition;NG.prototype.closeOnOutsideClick_=NG.prototype.closeOnOutsideClick_;NG.prototype.stopPropagation_=NG.prototype.stopPropagation_;
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],NG.prototype,"showInput",void 0);_.R([_.hI("click"),_.hI("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],NG.prototype,"stopPropagation_",null);_.R([_.q5("showInput"),_.n("design:type",Function),_.n("design:paramtypes",[Boolean]),_.n("design:returntype")],NG.prototype,"showInputChanged",null);_.R([_.Vx()],NG);_.Id3=[NG.prototype];var hr3;var qh9;var Y5=function(){return _.a.apply(this,arguments)||this};
_.M(Y5,_.a);_.m=Y5.prototype;_.m.computePreselectedOption=function(G,b){return b===this.itemSelected_?G:void 0};
_.m.dataChanged_=function(){var G=this;this.preselectedSubreason=this.itemSelected_=-1;var b;(b=this.data)!=null&&b.key&&_.D1(this,function(){var I,h=Number((I=G.data)==null?void 0:I.key);!Number.isNaN(h)&&(G.itemSelected_=h,I=(I=(G.data.items||[])[h])&&I.optionSelectableItemRenderer&&I.optionSelectableItemRenderer.preselectedIndex)&&(G.preselectedSubreason=I)})};
_.m.isSubReasonHidden_=function(G,b){return G!=b};
_.m.onTopItemSelected_=function(G,b){for(var I=_.Eo(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),h=0,q=I.length;h<q;h++)I[h].select(0);_.wL(this.hostElement,"yt-report-form-update",[b.item.value]);G.stopPropagation()};
_.m.onItemSelected_=function(G,b){_.wL(this.hostElement,"yt-report-form-update",[b.item.value]);G.stopPropagation()};
_.m.getItem_=function(G){return G.serviceItem?G.serviceItem:G.navigationItem?G.navigationItem:G.optionSelectableItemRenderer?G.optionSelectableItemRenderer:null};
_.m.computeText_=function(G){return(G=this.getItem_(G))?this.ytRendererBehavior.getSimpleString(G.text):null};
_.m.validate=function(){return this.itemSelected_!==-1};
_.m.computeAriaLabel_=function(G){var b=_.NO(G.text);(G=G.accessibility&&G.accessibility.accessibilityData&&G.accessibility.accessibilityData.label)&&(b+=". "+G);return b};
_.m.computeItemSelected_=function(G){return G};
_.m.preventSelection_=function(G){G.stopPropagation();this.tooltipTapped=!0};
_.m.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.m.updateItemSelectedFromBinding=function(G){this.itemSelected_=G.detail.value};
_.m.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)||_.pv(this.hostElement,[G.optionSelectableItemRenderer.submitEndpoint])))};
Y5.prototype.onPaperRippleTransitionEnd_=Y5.prototype.onPaperRippleTransitionEnd_;Y5.prototype.dataChanged_=Y5.prototype.dataChanged_;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Y5.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Y5.prototype,"data",void 0);_.R([_.H({value:-1}),_.n("design:type",Number)],Y5.prototype,"itemSelected_",void 0);
_.R([_.H({computed:"computeItemSelected_(itemSelected_)"}),_.n("design:type",Number)],Y5.prototype,"value",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Y5.prototype,"restoreFocusOnClose",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Y5.prototype,"tooltipTapped",void 0);_.R([_.H({value:-1}),_.n("design:type",Number)],Y5.prototype,"preselectedSubreason",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Y5.prototype,"dataChanged_",null);_.R([_.hI("transitionend"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Y5.prototype,"onPaperRippleTransitionEnd_",null);_.R([_.g8({is:"yt-options-renderer",disableElementRegistration:!0})],Y5);
_.J(Y5,"yt-options-renderer",function(){if(qh9===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;hr3===void 0&&(hr3=document.createElement("template"));var h=hr3;I.call(b,h.content.cloneNode(!0),G.content.firstChild);qh9=G}G=qh9;return G},{mode:2});var j95;var lda;var m5K;var erY;var VHF;var D58;var CZ=function(){return _.a.apply(this,arguments)||this};
_.M(CZ,_.a);CZ.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
CZ.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
CZ.prototype.onTap=function(G){if(this.hostElement.classList.contains("selected")||_.wL(this.hostElement,"yt-share-panel-can-select-contact-action")[0])G&&G.detail&&(G.detail.x||G.detail.y)&&_.Eo(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)},_.wL(this.hostElement,"yt-share-panel-select-contact-action",[G])};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.R([_.H({observer:"onDataChanged"}),_.n("design:type",Object)],CZ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.n("design:type",String)],CZ.prototype,"componentTitle",void 0);_.R([_.lH("#thumbnail"),_.n("design:type",Object)],CZ.prototype,"thumbnail",void 0);_.R([_.g8({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],CZ);
_.J(CZ,"yt-enrolled-contact-renderer",function(){if(D58===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;VHF===void 0&&(VHF=document.createElement("template"));var h=VHF;I.call(b,h.content.cloneNode(!0),G.content.firstChild);D58=G}G=D58;return G},{mode:2});var cIK;var k8f;var JD=function(){return _.a.apply(this,arguments)||this};
_.M(JD,_.a);JD.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
JD.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
JD.prototype.onTap=function(G){if(this.hostElement.classList.contains("selected")||_.wL(this.hostElement,"yt-share-panel-can-select-contact-action")[0])G&&G.detail&&(G.detail.x||G.detail.y)&&_.Eo(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)},_.wL(this.hostElement,"yt-share-panel-select-contact-action",[G])};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],JD.prototype,"ytRendererBehavior",void 0);_.R([_.H({observer:"onDataChanged"}),_.n("design:type",Object)],JD.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.n("design:type",String)],JD.prototype,"componentTitle",void 0);_.R([_.lH("#thumbnail"),_.n("design:type",Object)],JD.prototype,"thumbnail",void 0);_.R([_.g8({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],JD);
_.J(JD,"yt-suggested-contact-renderer",function(){if(k8f===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;cIK===void 0&&(cIK=document.createElement("template"));var h=cIK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);k8f=G}G=k8f;return G},{mode:2});var KZ=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-share-panel-reset-action":"onReset"};return G};
_.M(KZ,_.a);KZ.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"}}}}}};
KZ.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.wL(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
KZ.prototype.onReset=function(){for(var G=_.Eo(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),b=G.length-1;b>=0;b--)G[b].classList.toggle("selected")};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],KZ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],KZ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H({observer:"onDataChanged"}),_.n("design:type",Object)],KZ.prototype,"data",void 0);
_.R([_.g8({is:"yt-contact-section-renderer",disableElementRegistration:!0})],KZ);
_.J(KZ,"yt-contact-section-renderer",function(){if(erY===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;m5K===void 0&&(m5K=document.createElement("template"));var h=m5K;I.call(b,h.content.cloneNode(!0),G.content.firstChild);erY=G}G=erY;return G},{mode:2});var uJ=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return G};
_.M(uJ,_.a);_.m=uJ.prototype;_.m.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"}}}};
_.m.onYtRefreshFormCommand=function(G){var b;(G=_.g((b=_.g(G,_.pnn))==null?void 0:b.formRenderer,bn3))&&this.set("data",G)};
_.m.reset=function(){var G=_.Eo(this.hostElement).querySelector("#fields").children;G=_.e(G);for(var b=G.next();!b.done;b=G.next())b=b.value,b.reset&&b.reset()};
_.m.getForm=function(){var G={},b=_.Eo(this.hostElement).querySelector("#fields").children;b=_.e(b);for(var I=b.next();!I.done;I=b.next()){I=I.value;if(!I.validate())return null;G[I.data.key]=I.value}return G};
_.m.submitFormFields=function(){if(this.fields)for(var G=_.e(this.fields),b=G.next();!b.done;b=G.next())b=b.value,b.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?b.save():b.nodeName==="YT-OPTIONS-RENDERER"&&b.save()};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],uJ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],uJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],uJ.prototype,"data",void 0);_.R([_.mN("#fields > *"),_.n("design:type",Array)],uJ.prototype,"fields",void 0);
_.R([_.g8({is:"yt-form-renderer",disableElementRegistration:!0})],uJ);
_.J(uJ,"yt-form-renderer",function(){if(lda===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;j95===void 0&&(j95=document.createElement("template"));var h=j95;I.call(b,h.content.cloneNode(!0),G.content.firstChild);lda=G}G=lda;return G},{mode:2});var vye;var Rh=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return G};
_.M(Rh,_.a);Rh.prototype.onCheckboxChange=function(G){this.data&&(G=(this.checked=_.a_(G).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}})};
Rh.prototype.handleUpdateCheckboxCommand=function(G){(G=_.g(G,_.v6O))&&this.data&&this.data.id===G.id&&(this.set("data.disabled",G.disabled),this.set("data.title",G.title))};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Rh.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Rh.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],Rh.prototype,"checked",void 0);_.R([_.N({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Rh);
_.J(Rh,"ytd-settings-checkbox-renderer",function(){if(vye!==void 0)return vye;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return vye=G},{mode:1});var LN5;var nZ=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return G};
_.M(nZ,_.a);nZ.prototype.dataChanged=function(){var G=this,b;return _.c(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"||_.wyW()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(b=G.data&&G.data.id)?I.yield(pyD(G.data.id),4):I.jumpTo(3):(G.set("data.hidden",!0),I.jumpTo(0));I.nextAddress!=3&&(b=I.yieldResult);b&&_.wL(G.hostElement,"yt-select-settings-radio-option",[G.data.id]);_.ip(I)})};
nZ.prototype.onButtonChanged=function(G){_.a_(G).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.LL().resolve(_.xW).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.wL(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
nZ.prototype.onSelectOption=function(G){this.data&&this.data.id&&(this.data.id===G?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
nZ.prototype.dataChanged=nZ.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],nZ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.lH("#radio"),_.n("design:type",Object)],nZ.prototype,"radio",void 0);_.R([_.H(),_.n("design:type",Object)],nZ.prototype,"data",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],nZ.prototype,"dataChanged",null);_.R([_.N({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],nZ);
_.J(nZ,"ytd-settings-radio-option-renderer",function(){if(LN5!==void 0)return LN5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return LN5=G},{mode:1});var Q9a;var O_=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return G};
_.M(O_,_.a);
O_.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"}}}};
O_.prototype.handleUpdateTextCommand=function(G){(G=_.g(G,_.Llb))&&this.data&&this.data.id===G.id&&this.set("data",G)};
O_.prototype.handleUpdateConnectedAppRendererCommand=function(G){if(_.g(G,_.fin)&&this.data){var b,I;if(G=(b=_.g(G,_.fin))==null?void 0:(I=b.newConnectedAppRenderer)==null?void 0:I.connectedAppRenderer)this.data=G}};
O_.prototype.computeConnectedAppStyle=function(G){return G.style?G.style.toLowerCase().replace(/_/g,"-"):""};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],O_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],O_.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],O_.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.n("design:type",String)],O_.prototype,"connectedAppStyle",void 0);_.R([_.N({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],O_);
_.J(O_,"ytd-connected-app-renderer",function(){if(Q9a!==void 0)return Q9a;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Q9a=G},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.KT("iuT5Oc");

_.uG();
}catch(e){_._DumpException(e)}
try{
_.KT("NSzT5");
var N4a=function(){var G;return _.c(function(b){if(b.nextAddress==1)return b.yield(_.LL().resolve(_.wR),2);(G=b.yieldResult)&&G.pauseVideo();_.ip(b)})};var YbI=_.WP(["https://portraits.google.com"]),CmE=_.WP(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),JQK=_.WP(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),Ks7=_.Ba(YbI),uog=_.C(function(G){function b(x){var f;if(x=(f=x.detail)==null?void 0:f.endpoint){f=_.g(x,_.jL);var T;f&&((T=f.browseId)==null?0:T.startsWith("UC"))&&f.browseId!==q()&&(_.j4("creator_chatbots-panel-persistent"),k.removeEventListener("yt-navigate-start",b))}}
var I=G.usePlayerHeight;var h=G.isPersistentPanel;var q=G.creatorChannelId;var l=_.Wv(function(x){var f=q();f=_.Ba(CmE,f);_.Gf(x,1,f)}),V=function(){var x,f,T;
return _.c(function(B){return B.nextAddress==1?B.yield(_.LL().resolve(_.wR),2):(x=B.yieldResult)?B.return({video_id:(T=(f=x.getVideoData())==null?void 0:f.video_id)!=null?T:"",timestamp_sec:x.getCurrentTime().toString()}):B.return({})})};
_.kG("message",function(x){var f,T,B,A,t;return _.c(function(y){if(y.nextAddress==1){if(x.origin!==Ks7.toString())return console.warn("Received message from untrusted origin:",x.origin),y.return();f=x.data;if(typeof f!=="object"||f===null||!f.action)return y.return();if(f.action==="pause")return y.yield(N4a(),0);if(f.action!=="getYouTubeContext"||!x.source)return y.jumpTo(0);T=x.source;B=T.postMessage;A=JSON;t=A.stringify;return y.yield(V(),7)}B.call(T,t.call(A,{youTubeContext:y.yieldResult}),{targetOrigin:x.origin});
return y.jumpTo(0)})});
var D=function(){var x,f;(x=l.value)==null||(f=x.contentWindow)==null||f.postMessage("ep_closed",Ks7.toString())};
_.kG("yt-page-type-changed",function(){if(h==null?0:h()){var x;((x=_.LL().resolve(_.Ck).getCurrentPage())==null?void 0:x.pageSubtype)!=="channels"&&(x=document.getElementById("creator_chatbots-panel-persistent"))&&(x.style.display="none")}});
var k=_.LL().resolve(_.id),L;(L=k)==null||L.addEventListener("yt-navigate-start",b);_.uI(function(){var x;(x=k)==null||x.removeEventListener("yt-navigate-start",b)});
return _.v("div",{class:"ytprotoCreatorChatbotsAppHost",style:_.Ir({height:function(){return(I==null?0:I())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.v(_.rIY,{id:function(){return(h==null?0:h())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:D,header:function(){return _.v("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.v("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.v(_.$9,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.v(_.mm,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){var x=_.YI("https://portraits.google.com/gallery?ytChannelId="+q());x&&_.bp(window,x,"_blank");D()}})},
content:function(){return _.v("iframe",{el:l,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+Ks7.toString()})}}))},"so"),RAh=_.C(function(G){var b=G.creatorChannelId;
var I=_.Wv(function(h){var q=b();q=_.Ba(JQK,q);_.Gf(h,1,q)});
return _.v("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.v(_.rIY,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.v("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.v("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},
"Talk to the Creator"),_.v(_.$9,{data:{text:"AI experiment",type:0}}))},
content:function(){return _.v("iframe",{el:I,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.v("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.v(_.mm,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var h=_.YI("https://portraits.google.com/gallery?ytChannelId="+b());h&&_.bp(window,h,"_blank");N4a()}}),_.v("div",null,"This will take you to Google Portraits"))}}))},"to");var nSd,Owd,wjK;nSd=_.WP(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);Owd=_.Ba(nSd);
_.xPI=function(G){G=G===void 0?"":G;_.j4("creator_chatbots-entry-point");_.j4("creator_chatbots-panel");_.hT(Owd);_.ly("ytd-watch-metadata #top-level-buttons-computed",function(b){document.getElementById("creator_chatbots-entry-point")||(_.qu({element:b,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.v(wjK,{creatorChannelId:G})}),_.yIj("creator_chatbots-panel",function(){return _.v(uog,{usePlayerHeight:!0,
creatorChannelId:G})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};
_.fEh=function(G){G=G===void 0?"":G;_.j4("creator_chatbots-panel");_.ly("ytd-watch-metadata #top-level-buttons-computed",function(){_.yIj("creator_chatbots-panel",function(){return _.v(RAh,{creatorChannelId:G})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
wjK=_.C(function(G){var b=G.creatorChannelId;var I=function(){_.yIj("creator_chatbots-panel",function(){return _.v(uog,{usePlayerHeight:!0,creatorChannelId:b})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.v("div",{class:"ytd-menu-renderer"},_.v(_.TV,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:I}},
icon:function(){return _.v(_.ha,{icon:"SPARK"})}}))},"uo");
_.KEW=function(G){G=G===void 0?"":G;var b;return _.c(function(I){return(b=document.getElementById("creator_chatbots-panel-persistent"))?(b.style.display==="none"&&(b.style.display="block"),I.jumpTo(0)):I.yield(new Promise(function(h){_.ly("ytd-app",function(q){_.qu({element:q,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.v(uog,{isPersistentPanel:!0,
creatorChannelId:G})});
h()})}),0)})};
_.uG();
}catch(e){_._DumpException(e)}
try{
_.KT("L3n37");
var iwh=function(G){return G.watch.isLearningJourneyActive},Pmo=_.Xs(115994),dOM=_.Xs(115993),yQK=function(G,b,I){var h=this;
var q=I.dragDownAction;this.layer=0;this.JSC$23550_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return h.dragDownAction()}}}};
this.JSC$23550_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return h.dragDownAction()}}}};
this.fullscreen=!1;var l=_.qo();_.Ps(l,Pmo,this.layer);_.Ps(l,dOM,this.layer);this.dragDownAction=function(){q();_.or(l,{visualElement:h.fullscreen?Pmo:dOM})};
this.gesture=new _.Wx(G,b,this.getConfig(!1),"pandown");this.attach()};
yQK.prototype.attach=function(){this.gesture.attach()};
yQK.prototype.detach=function(){this.gesture.detach()};
yQK.prototype.update=function(G){this.fullscreen=G;var b=this.gesture;G=this.getConfig(G);b.config=G};
yQK.prototype.getConfig=function(G){return G?this.JSC$23550_watchFullScreenConfig:this.JSC$23550_watchConfig};var rQo=function(G){_.XC.call(this);var b=this;this.rootElement=G;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return b.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(I){b.initOrDisposeActiveModules(I)}));
this.onAttached()};
_.M(rQo,_.XC);_.m=rQo.prototype;_.m.getRoot=function(){return this.rootElement};
_.m.getElement=function(G){return this.rootElement.getElement(G)};
_.m.setPlayerResponse=function(G){this.playerResponse=G;this.publish("PLAYER_RESPONSE_UPDATED",G)};
_.m.getPlayerResponse=function(){return this.playerResponse};
_.m.setWatchNextResponse=function(G){this.watchNextResponse===G?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=G,this.publish("WATCH_NEXT_RESPONSE_UPDATED",G))};
_.m.getWatchNextResponse=function(){return this.watchNextResponse};
_.m.registerActionHandler=function(G,b){var I=this;if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var h={};_.je(_.I1.getInstance(),(h[G]=b,h),this.getRoot())}else this.actionHandlers.has(G)||(this.actionHandlers.set(G,[]),h={},_.je(_.I1.getInstance(),(h[G]=function(){var q=_.RI.apply(0,arguments);return(I.actionHandlers.get(G)||[]).map(function(l){return l.apply(null,_.Nz(q))})},h),this.getRoot())),this.actionHandlers.get(G).push(b)};
_.m.unregisterActionHandler=function(G){if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.lx(_.I1.getInstance(),(b[G]=!0,b),this.getRoot())}else(b=this.actionHandlers.get(G))?(b.pop(),b.length===0&&(b={},_.lx(_.I1.getInstance(),(b[G]=!0,b),this.getRoot()),this.actionHandlers.delete(G))):_.RB(new _.Wf("Attempted to unregister an action handler which is not registered.",G))};
_.m.addPageDisposeJob=function(G){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.iOr(this.rootElement.pageDisposeJobs,G)};
_.m.removePageDisposeJob=function(G){this.rootElement.pageDisposeJobs&&_.CO(this.rootElement.pageDisposeJobs,G)};
_.m.dispatchEvent=function(G,b){_.O3(this.rootElement,G,b)};
_.m.provideRenderingData=function(G,b){this.rootElement.provideRenderingData(G,b)};
_.m.scrollWatchTo=function(G,b){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(G,b)};
_.m.focusOnPlayer=function(){var G=this.getElement("PLAYER");_.D1(G,function(){if(G&&G.firstElementChild){var b=G.querySelector(".html5-video-player");b&&(_.kE(_.LL().resolve(_.VO)),b.focus())}else _.RB(Error("ep"))})};
var Fsa=function(G){var b=!!G.rootElement.theater,I=!!G.rootElement.fullscreen,h;(h=G.watchCinematicManager)==null||_.lPI(h,I,b)};
_.m=rQo.prototype;_.m.subscribeToActiveChanged=function(G,b){b=b===void 0?!0:b;var I=_.Nj(_.Cw(),iwh,function(h){G(h)});
b&&G(iwh(_.Cw().getState()));return I};
_.m.isActive=function(){return iwh(_.Cw().getState())};
_.m.onAttached=function(){var G=_.U("external_fullscreen");_.U("use_unified_flag_accessor")&&(G=_.LL().resolve(_.K7f).retriever.getFlag(_.o_J));(G||_.Sk("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.m.initPersistentModules=function(){if(_.U("kevlar_watch_flexy_theater_manager")){var G=new _.ybv(this);_.M2(this,G)}G=new _.s3A(this);_.M2(this,G);G=new _.iv(this);_.M2(this,G);G=new _.xiK(this);_.M2(this,G);G=new _.FP(this);_.M2(this,G);G=new _.Pb(this);_.M2(this,G);_.U("kevlar_watch_flexy_playlist_manager")&&(G=new _.GmM(this),_.M2(this,G))};
_.m.initOrDisposeActiveModules=function(G){G?(this.watchScrollManager=new _.Hb(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.WLd(this)),this.activeModules.push(new _.Fta(this)),this.activeModules.push(new _.lE7(this)),this.activeModules.push(new _.ivK(this)),_.U("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.YzE(this)),this.activeModules.push(new _.KLg(this)),_.U("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.eZA(this)),
_.U("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.EV7(this)),_.U("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.GgK(this),this.activeModules.push(this.watchCinematicManager),Fsa(this)),_.U("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.OvM(this)),_.U("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.TLv(this)),G=_.U("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.U("kevlar_watch_flexy_comments_manager")&&
!G&&this.activeModules.push(new _.c_g(this)),_.U("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Xwo(this)),this.activeModules.push(new _.C4v(this)),this.activeModules.push(new _.NLA(this)),_.U("web_enable_timely_actions")&&this.activeModules.push(new _.RDM(this)),_.U("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.vVI(this)),_.U("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.qil(this)),_.U("web_fullscreen_components")&&
this.activeModules.push(new _.upI(this)),_.U("web_player_rtr_ctrls")&&this.activeModules.push(new _.QLz(this))):(_.DC(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.m.disposeInternal=function(){_.XC.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.kV.Object.defineProperties(rQo.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var Hw7={},Wsh=["learning-journey-engagement-panel","PAlearning_chat"];
Hw7.YtdLearningJourneyWatchBehavior=[_.p.YtRendererBehavior,_.jJ.YtPlayerListenerBehavior,_.kK.YtRendererstamperBehavior,_.tV.YtActionHandlerBehavior,_.Id.YtPageBehavior,_.ZN.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 _.Sk("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.U("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 _.Sk("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 _.U("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.U("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 _.Te("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Te("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 _.U("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 _.U("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("web_watch_rounded_player_large")||_.U("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 _.U("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.U("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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:_.z_(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.z_(["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(){_.U("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;_.U("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.U("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.mOA(function(){return _.Ja(G)},
this.hostElement);
this.pageDisposeJobs.push(function(){G.youThereManager_.reset()});
_.U("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){G.resetFullerscreenEduButtonForNewPlayback_()}));
_.U("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.fY;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;_.U("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.U("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));_.U("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.I9(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){_.U("kevlar_watch_flexy_theater_manager")&&(this.theater=G,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.U("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(G){!_.U("kevlar_watch_while_v2")&&!_.U("web_watch_pip")||G||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(G){this.active!==void 0&&(this.fullscreen=G,_.U("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(G){this.active!==void 0&&(_.O3(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.U("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 b=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&&_.Tm({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.sS("nw");this.loading=!1;_.FQ(_.uu,function(){b.initDclkstatus_();var h,q=((h=b.player)==null?void 0:h.getVideoData().cpn)||"";_.nPo(function(l,V){_.MHL(l,V,q)})})},
onPageLoadWithSameData_:function(){_.U("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 b,I,h;G=(b=this.loadingData)==null?void 0:(I=b.endpoint)==null?void 0:(h=I.watchEndpoint)==null?void 0:h.videoId;var q;G&&(q="https://i.ytimg.com/vi/"+G+"/frame0.jpg");_.Eo(this.hostElement).querySelector("#player").style.backgroundImage=q?"url("+q+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var G=_.Eo(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 b,I;(I=(b=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(b);var h,q;(q=(h=this.watchMetadata).resize)==null||q.call(h)}_.Eo(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(G){var b=_.Eo(this.hostElement).querySelector(G);b?_.R3(b,!1):_.RB(new _.Wf("Overscroll monitor not found for component: ",G))},
removeSplitScrollMouseTrap:function(G){var b=_.Eo(this.hostElement).querySelector(G);b?_.nv(b):_.RB(new _.Wf("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 b=this;G?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.uu.addLowPriorityJob(function(){b.onWindowResized_(_.eL(!0))})},
updateTheaterModeState_:function(G){if(!_.U("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&&_.hCl()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var G=this.theater;_.U("external_fullscreen")&&this.fullscreen&&(G=!0);G=G?_.Eo(this.hostElement).querySelector("#player-full-bleed-container"):_.Eo(this.hostElement).querySelector("#player-container-inner");var b=this.getPlayerContainer(),I=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip");b.parentElement!==G&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Ja(this).appendTo(G,b),G.appendChild(_.Eo(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var G=this;return _.c(function(b){if(b.nextAddress==1)return b.yield(_.LL().resolve(_.zO).deactivate(),2);G.updatePlayerLocation();_.ip(b)})},
updateCinematicsLocation:function(){var G=this.getElement("CINEMATICS");if(G){var b=this.getCinematicsLocationContainer();G.parentElement!==b&&b.appendChild(G);var I;(I=this.watchController)==null||Fsa(I)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Eo(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Eo(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(G,b){var I=document.documentElement.hasAttribute("dark"),h=!I&&this.cinematicLightTheme;return G&&I||b&&I||(b||G)&&h},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data);_.U("kevlar_watch_flexy_comments_manager")||this.initComments_();_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.LL().resolve(_.jm).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.U("web_watch_start_chat_in_theater_mode")){var b,
I,h;if((b=this.data)==null?0:(I=b.contents)==null?0:(h=I.twoColumnWatchNextResults)==null?0:h.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var q,l;((q=this.data)==null?0:(l=q.contents)==null?0:l.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(G){var b;(b=this.watchController)==null||b.setPlayerResponse(this.playerData);G&&G.playabilityStatus&&(b=this.isVideoPlayable_(G.playabilityStatus,this.getPlayerOverlays_(this.data)),G=this.isLiveStreamOffline_(G.playabilityStatus),b&&!G||_.D1(this,function(){_.sS("pbu")}));
this.setPlayerAds_();_.E3(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(G){_.Cw().dispatch(_.wK({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));G?this.activate_():this.deactivate_()},
attached:function(){var G=this;this.watchController=new rQo(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.U("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var b=_.Ja(this);_.U("kevlar_disable_prepare_player")||b.preparePlayer();_.U("kevlar_watch_flexy_playlist_manager")||_.LL().resolve(_.jm).setPlayer(b);this.updatePageMediaQueries();b={"--ytd-watch-flexy-scrollbar-width":_.Hl()+
"px"};!_.Te("kv_pl_mx_sz_ks")&&_.Te("kevlar_watch_max_player_width")&&(b["--ytd-watch-flexy-max-player-width-wide-screen"]=_.SBI+"px");_.Te("kevlar_watch_flexy_metadata_height")&&(b["--ytd-watch-flexy-space-below-player"]=_.X3h+"px");this.safeUpdateStyles(b);_.U("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new yQK(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return G.onPlayerTouchPanDown_()}}));
_.U("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Eo(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var G=_.Hl(),b=_.H7+G,I=b;this.fixedPanels&&(b+=_.p3K);var h=657+G;G=1327+G;_.Eo(this.hostElement).querySelector("#two-column-query").query="(min-width: "+b+"px)";_.Eo(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(h+"px), (min-height: 630px) and (min-width: ")+(b+"px) and (max-width: ")+(G+"px)");_.Eo(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(G+"px)");
_.Eo(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+I+"px)"},
calculateCurrentPlayerSize_:function(){var G=_.Eo(this.hostElement).querySelector("#miniplayer-bar").firstChild;return G&&G.active||this.theater||_.U("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Pa(NaN,NaN):_.SSa(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.SSa(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.VQ(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var G=this;this.onWindowResized_(_.eL());_.U("browse_skeleton_removal_on_watch_killswitch")||_.Sk("IS_SHELL_LOAD")&&_.n3I();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var b=_.Ja(this);b.addEventListener("yt-player-updated",_.I9(this,this.onPlayerUpdated_));b.getPlayerPromise().then(function(I){G.playerApiReady_(I)});
_.U("kevlar_watch_flexy_playlist_manager")||(b=_.LL().resolve(_.jm),_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&b.addEventListener("yt-navigate",_.I9(this,this.onYtNavigate_)),b.setPlaylistComponent(_.Eo(this.hostElement).querySelector("#playlist")),b.addEventListener("yt-playlist-data-updated",_.I9(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.uu.addLowPriorityJob(function(){_.O3(G.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Ja(this).removeEventListener("yt-player-updated",_.I9(this,this.onPlayerUpdated_));if(!_.U("kevlar_watch_flexy_playlist_manager")){var G=_.LL().resolve(_.jm);_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&G.removeEventListener("yt-navigate",_.I9(this,this.onYtNavigate_));G.cancelVideoSkip();G.removeEventListener("yt-playlist-data-updated",_.I9(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.U("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.O3(this.hostElement,"yt-autonav-pause-player",!1);G=_.Kv();_.U("kevlar_exit_fullscreen_leaving_watch")&&G&&_.uU(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,b){b.hasComments?b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):b.locationRetrieved("/related_ajax",void 0);G.stopPropagation()},
onSubscriptionChanged_:function(G,b){this.player&&(b?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.bAI("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Eo(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Eo(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_();_.U("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.U("kevlar_unified_player")||_.U("kevlar_player_new_bootstrap_adoption"))&&_.PR()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(G,b){b=b===void 0?!0:b;_.Kv()&&_.U("external_fullscreen")&&_.uU(document.documentElement);this.theaterRequested_=G;b&&_.yE("wide",G?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.U("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.wL(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.O3(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){_.n1(G,typeof this.player),this.player&&_.n1(G,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var G;((G=this.player)==null?0:G.isFullscreen())?this.player.toggleFullscreen():_.wL(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(G,b){return this.loading?b:!!Object.keys(G).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(G){if(G){G=_.e(G);for(var b=G.next();!b.done;b=G.next())b=b.value,b.youThereRenderer&&_.DOE(this.youThereManager_,b.youThereRenderer)}},
setPlaylistData_:function(G){return G||{}},
userEngagementConfigDataChanged_:function(G){if(G)if(G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var b=this.youThereManager_;_.vA()<G.lowEngagementThresholdMs||_.Lsa(b,!0)}else G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.wL(this.hostElement,"yt-autonav-pause-user-engagement",[G])},
isPlayerUnavailable_:function(G,b,I){return!!G&&!this.isVideoPlayable_(G,I)&&!b},
getPlayerOverlays_:function(G){return(G==null?void 0:G.playerOverlays)||null},
isVideoPlayable_:function(G,b){if(!G)return!1;var I=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",h=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",G)||this.get("errorScreen.ypcTrailerRenderer",G);G=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",G);var q;b=b==null?void 0:(q=b.playerOverlayRenderer)==null?void 0:q.gatedActionsOverlayRenderer;return!!I||!!h||!!G||!!b},
hasWatchNextResponseErrorRenderer:function(G){var b=this.getPageContents(G),I,h,q,l,V;return!(G==null?0:(I=G.contents)==null?0:(h=I.twoColumnWatchNextResults)==null?0:h.secondaryResults)&&!!((q=b[0])==null?0:(l=q.itemSectionRenderer)==null?0:(V=l.contents[0])==null?0:V.backgroundPromoRenderer)},
isLiveStreamOffline_:function(G){return G?G.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(G,b,I){var h=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b),q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];q=_.U("web_no_skip_video_on_verification_checks")?(G==null?void 0:G.status)&&q.includes(G.status):G&&G.status==="AGE_CHECK_REQUIRED";var l=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",G);l==void 0&&(l=!0);!I||this.isVideoPlayable_(G,this.getPlayerOverlays_(b))||
h||q||!l||_.LL().resolve(_.jm).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.$Og()},
onPlayerFeedbackStartRequest_:function(G){_.wL(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:G}])},
onPlayerFeedbackArticleRequest_:function(G){_.wL(this.hostElement,"yt-help-dialog-requested",[G])},
onPlayerYpcContentRequest_:function(){var G,b,I,h,q,l,V,D,k=((G=this.data)==null?NaN:(b=G.contents)==null?NaN:(I=b.twoColumnWatchNextResults)==null?NaN:(h=I.secondaryResults)==null?NaN:(q=h.secondaryResults)==null?NaN:(l=q.offerModule)==null?NaN:(V=l.tvfilmOfferModuleRenderer)==null?NaN:(D=V.actionButtons)==null?NaN:D.length)-1;G=[".offerButton.buttonRenderer.",".actionButtons."+(k>=0?k:0)+".buttonRenderer."];b=_.e(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=b.next();!I.done;I=b.next())for(I=I.value,h=_.e(G),q=h.next();!q.done;q=h.next())if(q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+q.value,q=this.get(q+"navigationEndpoint",this.data)||this.get(q+"serviceEndpoint",this.data)||this.get(q+"command",this.data)){_.$Q(q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(G){_.O3(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:_.O3(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(G)},
setPlayerState:function(G){_.Cw().dispatch(_.eNQ(G))},
onPlayerSubscribe_:function(G){_.wL(this.hostElement,"yt-player-subscribe",[G])},
onPlayerUnsubscribe_:function(G){_.wL(this.hostElement,"yt-player-unsubscribe",[G])},
onPlayerAdYtShowToast_:function(G){_.wL(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!_.U("web_watch_move_summary_to_sd")&&!!G},
computeWatchMetadataRefresh:function(){return _.U("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var G,b,I,h;this.watchNextSecondaryResults=(G=this.data)==null?void 0:(b=G.contents)==null?void 0:(I=b.twoColumnWatchNextResults)==null?void 0:(h=I.secondaryResults)==null?void 0:h.secondaryResults}},
setRichGridRendererData:function(G){this.richGridRendererData=G},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var G,b=(G=this.data)==null?void 0:G.engagementPanels;if(b==null?0:b.length){G=null;b=_.e(b);for(var I=b.next();!I.done;I=b.next()){I=I.value;var h=void 0;if(((h=I.engagementPanelSectionListRenderer)==null?void 0:h.targetId)==="engagement-panel-structured-description"){G=I;break}}var q,l,V;G=(q=G)==null?void 0:(l=q.engagementPanelSectionListRenderer)==null?void 0:(V=l.content)==null?void 0:V.structuredDescriptionContentRenderer;if(G==null?0:G.items){q=
[];l=_.e(G.items);for(V=l.next();!V.done;V=l.next()){V=V.value;if(!_.U("sd_horizontal_list_show_nav_killswitch")){var D=h=I=b=G=void 0,k=void 0,L=(G=V.horizontalCardListRenderer)==null?void 0:(b=G.header)==null?void 0:(I=b.richListHeaderRenderer)==null?void 0:(h=I.navigationButton)==null?void 0:(D=h.buttonRenderer)==null?void 0:(k=D.command)==null?void 0:k.commandExecutorCommand;L&&L.commands&&(L.commands=L.commands.filter(function(x){return!_.g(x,_.kFv)}))}V.expandableVideoDescriptionBodyRenderer||
V.videoDescriptionHeaderRenderer||q.push(V)}return{items:q}}}},
constructWarning_:function(G){return{text:_.ao(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;_.O3(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var b=this.getScrollTop()>0;this.gestures_&&(b?this.gestures_.detach():this.gestures_.attach());b!==this.showFullerscreenEdu_&&_.U("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=b,_.Ja(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(G.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.O3(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var G=this;this.commentsReady=!1;_.uu.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.FQ(_.uu,function(){G.setComments_()},1E3)},
setComments_:function(){if(!_.U("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.sS("cmi");_.uu.cancelJob(this.setCommentsJobId_);var G=this.getPageContents(this.data);if(G&&G.length){G=_.e(G);for(var b=G.next();!b.done;b=G.next())if(b=b.value,this.get("itemSectionRenderer.sectionIdentifier",b)==="comment-item-section"){this.comments=b.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.O3(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.U("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.sS("cmc")},
doRemoveComments_:function(){this.comments={};_.U("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.uu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.uu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(G,b){var I=_.g(b.endpoint,_.Wq);I&&(!(b=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==b.videoId||I.playlistId&&I.playlistId!==b.playlistId||I.index!==void 0&&I.index!==b.index||typeof I.startTimeSeconds!=="number"||(G.stopPropagation(),this.setScrollTop(0),_.Ja(this).getPlayerPromise().then(function(h){var q=I.startTimeSeconds;h.seekTo(q);h.wakeUpControls();q<h.getDuration()&&h.playVideo()})))},
updatePlayerStartTime_:function(){var G=_.W$M();"t"in G&&(G=_.XTI(G.t),this.player.seekTo(G,!0))},
updateTitleFromWatchNext:function(G){G=this.getPageContents(G);var b,I;(G=_.NO(G==null?void 0:(b=G[0])==null?void 0:(I=b.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.O3(this.hostElement,"yt-update-title",G)},
updateTitle_:function(G){G=this.get("videoDetails.title",G)||"";_.O3(this.hostElement,"yt-update-title",G)},
syncWithRemoteVideo_:function(G,b,I){if(this.active&&this.player){var h=this.player.getVideoData();if(h.video_id===I&&(I=h.list,_.U("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),h.video_id!==G||I!=b)){var q;_.U("kevlar_player_watch_endpoint_navigation")?q=_.Jms(_.OUa(G,b)):q=this.buildWatchEndpoint_(G,b);_.O3(this.hostElement,"yt-navigate",{endpoint:q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(G,b,I){return _.u9(G,b,I)},
initDclkstatus_:function(){_.pTa()},
attachWatchPageSkeleton_:function(){var G=document.querySelector("#watch-page-skeleton");if(G){var b=G.querySelector("#primary-info"),I=G.querySelector("#secondary-info"),h=G.querySelector("#related");b&&_.Eo(this.hostElement).querySelector("#info-skeleton").appendChild(b);I&&_.Eo(this.hostElement).querySelector("#meta-skeleton").appendChild(I);h&&(_.Eo(this.hostElement).querySelector("#related-skeleton").appendChild(h),this.watchNextSkeletonEl_=h);_.iG(G)}},
handlePlayerUpdated_:function(){_.Ja(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(G,b){if(this.watchNextSkeletonEl_&&typeof b!=="undefined"){var I=this.watchNextSkeletonEl_.children,h=G&&G.indexSplices.length?G.indexSplices[0].index:0;G=Math.min(this.watchNextShownItems.length,I.length);b||(h=0,G=I.length);for(b=h;b<G;b++)I[b].classList.add("hidden")}},
onPlayerFullscreenChange_:function(G){_.U("external_fullscreen")||_.wL(this.hostElement,"yt-player-fullscreen",[G.fullscreen])},
onFullscreenChange_:function(G){this.fullscreen=G;this.gestures_&&this.gestures_.update(this.fullscreen);var b=_.Ja(this);b.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.Kv())});
this.updateFullBleedElementLocations();G&&(b.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(G,b){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!b},
computeIsDonationShelfCollapsed_:function(G){return G},
computeShouldShowMerchShelf:function(G,b){return b&&!!G},
computeResponseHasComments:function(G){var b,I,h,q,l;return!!(G==null?0:(b=G.contents)==null?0:(I=b.twoColumnWatchNextResults)==null?0:(h=I.results)==null?0:(q=h.results)==null?0:(l=q.contents)==null?0:l.some(function(V){var D;return(V==null?void 0:(D=V.itemSectionRenderer)==null?void 0:D.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(G,b){this.responseHasComments=this.computeResponseHasComments(this.data);return!!G&&!!Object.keys(G).length&&!b},
identity:_.H2,onWindowResized_:function(G){this.windowSize_=G;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.U("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(G){var b=this;G&&G.type!=="dataloaded"&&G.type!=="dataupdated"||_.Ja(this).getPlayerPromise().then(function(I){var h=I.getPlayerState();h!==5&&h!==0&&(I=1/I.getVideoAspectRatio(),b.videoHeightToWidthRatio_!==I&&(b.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(G){var b=this,I=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip"),h=function(){if(b.watchMetadata){var q,l;(l=(q=b.watchMetadata).resize)==null||l.call(q)}_.Ja(b).getPlayerPromise().then(function(V){if(_.U("kevlar_set_internal_player_size")){if(!I||!b.isMiniplayerActive()){var D=b.calculateCurrentPlayerSize_();V.setInternalSize(D.width,D.height)}}else V.setSize(NaN,NaN);_.U("kevlar_watch_while")&&b.updateWatchWhileScrollThreshold_()})};
G?h():_.q_(_.uu,h)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(G){this.set("data.survey",G.detail)},
onYtShowSurveyCommand_:function(G){this.set("data.survey",_.g(G,_.l0a).survey)},
onDownloadedVideoDeleted:function(G){var b=this,I,h;return _.c(function(q){if(q.nextAddress==1){if(!b.active||(I=b.playerData)==null||!I.offlineState||b.videoId!==G)return q.return();(h=b.player)==null||h.stopVideo();_.Ws().navigatingAwayFromWatchDeletedVideo=!0;_.$Q(_.Ser,b.hostElement);return q.yield(_.Ws().navigationFinishPromise,2)}_.Ws().navigatingAwayFromWatchDeletedVideo=!1;_.ip(q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var G;this.theater?G=_.Ak(.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=_.Eo(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&G){var b=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!G.active&&b&&I>=this.watchWhileScrollThreshold_?(G.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):G.active&&(!b||I<this.watchWhileScrollThreshold_&&!_.Kv())&&(G.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(G,b){if(G!==!0||b!==void 0){G=!_.U("live_chat_over_engagement_panels");b=_.Eo(this.hostElement).querySelector("#chat-container");var I=_.Eo(this.hostElement).querySelector("#plj-sidebar"),h=_.Eo(this.hostElement).querySelector("#panels"),q=_.Eo(this.hostElement).querySelector("#plj-panels"),l=_.Eo(this.hostElement).querySelector("#plj-playlist"),V=_.Eo(this.hostElement).querySelector("#alerts"),D=_.Eo(this.hostElement).querySelector("#playlist"),k=_.Eo(this.hostElement).querySelector("#related"),
L=_.Eo(this.hostElement).querySelector("#donation-shelf"),x=_.Eo(this.hostElement).querySelector("#comments");this.isTwoColumns_?(V=_.Eo(this.hostElement).querySelector("#secondary-inner"),V.appendChild(I),I.appendChild(l),l.appendChild(D),I.appendChild(q),G&&V.appendChild(h),_.U("web_watch_theater_chat")||V.appendChild(b),G||V.appendChild(h),V.appendChild(L),V.appendChild(k)):(G&&_.rt(h,V),_.rt(D,V),_.U("web_watch_theater_chat")||_.rt(b,V),G||_.rt(h,V),_.rt(L,V),x&&(q&&_.rt(q,x),_.rt(k,x)));_.U("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.U("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.U("web_watch_theater_chat")){var G=_.Eo(this.hostElement).querySelector("#chat-container"),b=this.theater&&!this.fullscreen||_.U("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&b?_.U("web_watch_theater_chat_beside_player")?(b=_.Eo(this.hostElement).querySelector("#panels-full-bleed-container"),(G==null?void 0:G.parentElement)!==b&&b.append(G),this.panelsBesidePlayer=!0):_.U("web_watch_theater_fixed_chat")&&
(b=_.Eo(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==b&&b.append(G),this.fixedPanels=!0):(_.U("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.U("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),b=_.Eo(this.hostElement).querySelector("#playlist"),G&&b?_.Fi(G,b):_.RB(new _.Wf("Missing element when updating chat location",{"chatContainer defined":!!G,"playlist defined":!!b})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(G,b){return _.U("sw_metadata_vis_toggle_ks")?!0:!!G||!!b},
computeForceDarkPanelTheme:function(G){return _.U("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&G:!1},
safeUpdateStyles:function(G){try{_.G8(this.hostElement,G)}catch(b){_.RB(b)}},
videoHeightToWidthRatioChanged_:function(G,b){b&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.U("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&&_.Ja(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Ja(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.QoK(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(G){var b=_.Q4(G)||0;_.LX(G,b+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var G=_.Q4("yt-fullerscreen-edu-button-click-count")||0,b=_.Q4("yt-fullerscreen-edu-button-shown-count")||0,I=_.Te("external_fullscreen_button_shown_threshold"),h=G>=_.Te("external_fullscreen_button_click_threshold")||b>=I;_.Ja(this).getPlayerPromise().then(function(q){q.updateFullerscreenEduButtonSubtleModeState(h)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(G,b){return b},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.LL().resolve(_.jm).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var G=this;this.panelMaxHeightUpdateJob_&&_.uu.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.uu.addLowPriorityJob(function(){G.panelMaxHeightUpdateJob_=0;var b;!G.isTwoColumns_||G.theater||G.fullscreen?b=460:b=G.calculateNormalPlayerSize_().height;var I=b+"px";_.U("live_chat_taller_height")&&!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.U("live_chat_medium_height")&&
!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.U("live_chat_scaled_height")&&!G.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");G.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":b+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":b+"px","--ytd-watch-flexy-comments-panel-max-height":b+"px","--ytd-comments-engagement-panel-content-height":b+"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_&&_.Su(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(G){var b=_.Eo(this.hostElement).querySelector("#engagement-panel-scrim");G?b.addEventListener("tap",_.I9(this,this.onEngagementPanelScrimClick_)):b.removeEventListener("tap",_.I9(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(G){if(this.hostElement.contains(G)&&!this.scrollToAnimation_.isAnimating()){var b=G.offsetTop-24;G=G.offsetTop+G.offsetHeight+24;var I=this.getPageScrollingElement(),h=this.getScrollTop(),q=h+I.clientHeight-56;if(b<h+56)b-=56;else if(G>q)b=G-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtSignalActionScrollToComments:function(){var G=this.hostElement.querySelector("#comments");if(G&&!this.scrollToAnimation_.isAnimating()){G=G.offsetTop-56-24;if(_.U("kevlar_comment_teaser_scroll_to_midpoint")&&(G-=_.dV().height/3,G<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtEngagementPanelVisibleChanged:function(G,b,I){this.active&&this.trackEngagementPanelVisibility&&!_.qbI.includes(I)&&(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(I),b!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&b!=="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,b){return G||b},
computeDefaultLayout:function(G){return!G},
computeDefaultTwoColumnLayout:function(G,b){return!G&&b},
computeWatchWhilePanelsActive:function(G,b){return G||b},
computeNoBorderOnChat:function(G){return _.U("web_watch_theater_chat_no_border")&&G},
computeLiveChatPresentAndExpanded:function(G,b){return G&&!b},
computePanelExpanded:function(G,b,I){return G||b||I},
onChangeMarkersVisibility:function(G){_.Ja(this).getPlayerPromise().then(function(b){var I;(I=b.changeMarkerVisibility)==null||I.call(b,_.g(G,_.KH).isVisible||!1,_.g(G,_.KH).entityKeys||[],_.g(G,_.KH).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(G){this.liveChatCollapsed=G.detail;_.Cw().dispatch(_.hAE(G.detail))},
provideRenderingData:function(G,b){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=b;break;case "PRIMARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=b);this.videoPrimaryInfoRendererValue=b==null?void 0:b.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=b);this.videoSecondaryInfoRendererValue=b==null?void 0:b.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
b;break;case "CLARIFICATION":this.clarifyBoxValue=b;break;case "LIVE_CHAT":this.conversationBar=b;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=b;break;case "PLAYLIST":this.externalPlaylistData_=b!=null?b:{};break;case "MERCH_SHELF":this.merchShelfValue=b==null?void 0:b.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=b;break;case "OFFER_MODULE":this.offerModule=b;break;case "LIMITED_STATE":this.limitedStateValue=b;break;case "DONATION_SHELF":this.donation=b;break;
case "ALERTS":this.alertsValue=b;break;case "COMMENTS":this.comments=b;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=b;break;case "ENGAGEMENT_PANELS":this.engagementPanels=b;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=b;break;case "RICH_GRID_RENDERER":this.richGridRendererData=b;break;case "EXPANDABLE_METADATA":this.expandableMetadata=b;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=b}},
toggleCinematicsActive:function(G){this.cinematicsActive=G},
isMiniplayerActive:function(){return _.LL().resolve(_.zO).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(G){return Wsh.map(function(b){return G.find(function(I){var h;return(I==null?void 0:(h=I.engagementPanelSectionListRenderer)==null?void 0:h.targetId)===b})}).filter(function(b){return b!==void 0})},
getNonLearningJourneyEngagementPanels:function(G){return G.filter(function(b){var I;return!Wsh.includes((b==null?void 0:(I=b.engagementPanelSectionListRenderer)==null?void 0:I.targetId)||"")})}}];var a0v;var XP=function(){var G=_.a.apply(this,arguments)||this;G.flexy=!0;G.learningJourney=!0;G.viewTransitionEnabled=_.U("enable_player_resize_transition");G.smallerChatMinHeight=_.U("live_chat_smaller_min_height");G.isDarkTheme=document.documentElement.hasAttribute("dark");G.theaterLargerPlayer=_.U("web_watch_theater_larger_player");G.defaultCollapsePlaylist=_.U("web_watch_default_collapse_playlist");G.enableCanvasLayout=_.U("web_enable_canvas_on_learning_journey");return G};
_.M(XP,_.a);_.m=XP.prototype;_.m.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.m.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.m.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.m.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.m.ready=function(){var G=this,b=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.m.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.m.updateIsTwoColumnsFromBinding=function(G){_.U("web_watch_update_narrow_width_killswitch")||_.Cw().dispatch(_.jjl(!G.detail.value));this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.m.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.m.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.m.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.m.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.m.updateShownItemsFromBinding=function(G){G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value};
_.m.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23559_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23559_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.kV.Object.defineProperties(XP.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 b=0;b<this.data.pageVisualEffects.length;b++)if(G=_.g(this.data.pageVisualEffects[b],_.$L))return b=void 0,(b=G.config)==null?void 0:b.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,b=(G=this.learningJourneyEngagementPanels)==null?void 0:G.find(function(T){var B;return(T==null?void 0:(B=T.engagementPanelSectionListRenderer)==null?void 0:B.panelIdentifier)==="learning-journey-engagement-panel"});
if(b){var I,h,q,l,V,D,k,L,x;if(G=(L=((k=(V=((l=b==null?void 0:(I=b.engagementPanelSectionListRenderer)==null?void 0:(h=I.content)==null?void 0:(q=h.sectionListRenderer)==null?void 0:q.contents)!=null?l:[])[0])==null?void 0:(D=V.itemSectionRenderer)==null?void 0:D.contents)!=null?k:[])[0])==null?void 0:(x=L.accordionViewModel)==null?void 0:x.onTitleTap){var f=_.s0(G);if(f)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Xv.instance.resolveCommand(f)}}}}}}});
_.kV.Object.defineProperties(XP,{template:{configurable:!0,enumerable:!0,get:function(){if(a0v===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="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(_.E().content.cloneNode(!0),G.content.firstChild);a0v=G}G=a0v;return G}}});
XP.prototype.updateMiniplayerIsActiveValue=XP.prototype.updateMiniplayerIsActiveValue;XP.prototype.updateScrollTopValue=XP.prototype.updateScrollTopValue;XP.prototype.updateFullscreenValue=XP.prototype.updateFullscreenValue;XP.prototype.updateTheaterValue=XP.prototype.updateTheaterValue;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],XP.prototype,"ytComponentBehavior",void 0);
_.R([_.z(Hw7.YtdLearningJourneyWatchBehavior),_.n("design:type",Object)],XP.prototype,"ytdWatchBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],XP.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],XP.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],XP.prototype,"playerData",void 0);_.R([_.H(),_.n("design:type",Object)],XP.prototype,"browseData",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],XP.prototype,"flexy",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],XP.prototype,"learningJourney",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],XP.prototype,"viewTransitionEnabled",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],XP.prototype,"smallerChatMinHeight",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],XP.prototype,"isDarkTheme",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],XP.prototype,"theaterLargerPlayer",void 0);_.R([_.H(),_.n("design:type",Object)],XP.prototype,"defaultCollapsePlaylist",void 0);_.R([_.H(),_.n("design:type",Object)],XP.prototype,"enableCanvasLayout",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("playerData","browseData","enableCanvasLayout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],XP.prototype,"showBrowseResponse",null);
_.R([_.H({reflectToAttribute:!0}),_.P("playerData","enableCanvasLayout"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],XP.prototype,"showWatchResponse",null);_.R([_.H({selector:_.BN}),_.n("design:type",Object)],XP.prototype,"theaterValue",void 0);_.R([_.H({selector:_.Ud}),_.n("design:type",Object)],XP.prototype,"fullscreenValue",void 0);_.R([_.H({selector:_.iE}),_.n("design:type",Object)],XP.prototype,"scrollTopValue",void 0);
_.R([_.H({selector:_.g4}),_.n("design:type",Object)],XP.prototype,"miniplayerIsActiveValue",void 0);_.R([_.lH("#ytd-plj-player"),_.n("design:type",HTMLElement)],XP.prototype,"ytdPlayer",void 0);_.R([_.lH("#playlist"),_.n("design:type",HTMLElement)],XP.prototype,"JSC$23559_ytdPlaylistPanelRenderer",void 0);_.R([_.Sr("ytd-comments"),_.n("design:type",HTMLElement)],XP.prototype,"ytdComments",void 0);_.R([_.lH("#primary"),_.n("design:type",HTMLElement)],XP.prototype,"primary",void 0);
_.R([_.lH("#secondary"),_.n("design:type",HTMLElement)],XP.prototype,"secondary",void 0);_.R([_.lH("#player-container"),_.n("design:type",HTMLElement)],XP.prototype,"playerContainer",void 0);_.R([_.lH("#cinematics"),_.n("design:type",HTMLElement)],XP.prototype,"JSC$23559_cinematics",void 0);_.R([_.q5("theaterValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],XP.prototype,"updateTheaterValue",null);
_.R([_.q5("fullscreenValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],XP.prototype,"updateFullscreenValue",null);_.R([_.q5("scrollTopValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],XP.prototype,"updateScrollTopValue",null);_.R([_.q5("miniplayerIsActiveValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],XP.prototype,"updateMiniplayerIsActiveValue",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],XP.prototype,"cinematicLightTheme",null);_.R([_.H({reflectToAttribute:!0}),_.P("learningJourneyEngagementPanels"),_.n("design:type",Object),_.n("design:paramtypes",[])],XP.prototype,"hasLearningJourneyPanels",null);_.R([_.P("learningJourneyEngagementPanels"),_.n("design:type",Object),_.n("design:paramtypes",[])],XP.prototype,"backButtonData",null);_.R([_.N({is:"ytd-watch-learning-journey"})],XP);_.EQ.registerService(_.UaO,XP);
_.uG();
}catch(e){_._DumpException(e)}
try{
_.KT("Tm0L3c");
var Mna;var Zw7;var tnd=function(){return _.a.apply(this,arguments)||this};
_.M(tnd,_.a);_.R([_.N({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],tnd);
_.J(tnd,"ytd-ghost-comments-renderer",function(){if(Zw7===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);Zw7=G}G=Zw7;return G},{mode:1});var zAI;var oSa=function(){return _.a.apply(this,arguments)||this};
_.M(oSa,_.a);_.R([_.N({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],oSa);
_.J(oSa,"ytd-ghost-watch-metadata-renderer",function(){if(zAI===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);zAI=G}G=zAI;return G},{mode:1});var S2=function(){var G=_.a.apply(this,arguments)||this;G.ghostGridRenderer={rows:6};G.smallerChatMinHeight=_.U("live_chat_smaller_min_height");G.darkerPanels=_.U("web_watch_darker_panels");G.isDarkTheme=document.documentElement.hasAttribute("dark");return G};
_.M(S2,_.a);_.m=S2.prototype;_.m.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.m.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.m.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.m.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.m.ready=function(){var G=this,b=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.m.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.m.updateIsTwoColumnsFromBinding=function(G){this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.m.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.m.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.m.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.m.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.m.updateShownItemsFromBinding=function(G){_.U("swatcheroo_direct_use_rich_grid")||(G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value)};
_.m.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23547_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23547_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.kV.Object.defineProperties(S2.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(G=_.g(this.data.pageVisualEffects[b],_.$L))return b=void 0,(b=G.config)==null?void 0:b.enableInLightTheme;return!1}}});
S2.prototype.updateMiniplayerIsActiveValue=S2.prototype.updateMiniplayerIsActiveValue;S2.prototype.updateScrollTopValue=S2.prototype.updateScrollTopValue;S2.prototype.updateFullscreenValue=S2.prototype.updateFullscreenValue;S2.prototype.updateTheaterValue=S2.prototype.updateTheaterValue;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],S2.prototype,"ytComponentBehavior",void 0);
_.R([_.z(_.gSv.YtdWatchBehavior),_.n("design:type",Object)],S2.prototype,"ytdWatchBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],S2.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],S2.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],S2.prototype,"ghostGridRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],S2.prototype,"playerData",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],S2.prototype,"smallerChatMinHeight",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],S2.prototype,"darkerPanels",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],S2.prototype,"isDarkTheme",void 0);_.R([_.H({selector:_.BN}),_.n("design:type",Object)],S2.prototype,"theaterValue",void 0);_.R([_.H({selector:_.Ud}),_.n("design:type",Object)],S2.prototype,"fullscreenValue",void 0);_.R([_.H({selector:_.iE}),_.n("design:type",Object)],S2.prototype,"scrollTopValue",void 0);
_.R([_.H({selector:_.g4}),_.n("design:type",Object)],S2.prototype,"miniplayerIsActiveValue",void 0);_.R([_.lH("#ytd-player"),_.n("design:type",HTMLElement)],S2.prototype,"ytdPlayer",void 0);_.R([_.lH("#playlist"),_.n("design:type",HTMLElement)],S2.prototype,"JSC$23547_ytdPlaylistPanelRenderer",void 0);_.R([_.lH("#ytd-comments"),_.n("design:type",HTMLElement)],S2.prototype,"ytdComments",void 0);_.R([_.lH("#primary"),_.n("design:type",HTMLElement)],S2.prototype,"primary",void 0);
_.R([_.lH("#secondary"),_.n("design:type",HTMLElement)],S2.prototype,"secondary",void 0);_.R([_.lH("#player-container"),_.n("design:type",HTMLElement)],S2.prototype,"playerContainer",void 0);_.R([_.lH("#cinematics"),_.n("design:type",HTMLElement)],S2.prototype,"JSC$23547_cinematics",void 0);_.R([_.q5("theaterValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],S2.prototype,"updateTheaterValue",null);
_.R([_.q5("fullscreenValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],S2.prototype,"updateFullscreenValue",null);_.R([_.q5("scrollTopValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],S2.prototype,"updateScrollTopValue",null);_.R([_.q5("miniplayerIsActiveValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],S2.prototype,"updateMiniplayerIsActiveValue",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],S2.prototype,"cinematicLightTheme",null);
_.J(S2,"ytd-watch-grid",function(){if(Mna===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="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(_.E().content.cloneNode(!0),
G.content.firstChild);Mna=G}G=Mna;return G},{mode:2});_.EQ.registerService(_.BgX,S2);
_.uG();
}catch(e){_._DumpException(e)}
try{
_.KT("CF909");
var AQz;var pH=function(){var G=_.a.apply(this,arguments)||this;G.viewTransitionEnabled=_.U("enable_player_resize_transition");G.smallerChatMinHeight=_.U("live_chat_smaller_min_height");G.isDarkTheme=document.documentElement.hasAttribute("dark");G.defaultCollapsePlaylist=_.U("web_watch_default_collapse_playlist");G.retroModeReduxValue=!1;G.persistentPanelVisibleValue=!1;return G};
_.M(pH,_.a);_.m=pH.prototype;_.m.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.m.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.m.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.m.updateRetroModeReduxValue=function(){_.U("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.m.updatePersistentPanelVisibleValue=function(){_.U("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.m.ready=function(){var G=this,b=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.m.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.m.updateIsTwoColumnsFromBinding=function(G){_.U("web_watch_update_narrow_width_killswitch")||_.Cw().dispatch(_.jjl(!G.detail.value));this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.m.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.m.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.m.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.m.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.m.updateShownItemsFromBinding=function(G){G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value};
_.m.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23542_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23542_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}};
_.kV.Object.defineProperties(pH.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(G=_.g(this.data.pageVisualEffects[b],_.$L))return b=void 0,(b=G.config)==null?void 0:b.enableInLightTheme;return!1}}});
_.kV.Object.defineProperties(pH,{template:{configurable:!0,enumerable:!0,get:function(){if(AQz===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="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(_.E().content.cloneNode(!0),G.content.firstChild);AQz=G}G=AQz;return G}}});
pH.prototype.updatePersistentPanelVisibleValue=pH.prototype.updatePersistentPanelVisibleValue;pH.prototype.updateRetroModeReduxValue=pH.prototype.updateRetroModeReduxValue;pH.prototype.updateScrollTopValue=pH.prototype.updateScrollTopValue;pH.prototype.updateFullscreenValue=pH.prototype.updateFullscreenValue;pH.prototype.updateTheaterValue=pH.prototype.updateTheaterValue;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],pH.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.gSv.YtdWatchBehavior),_.n("design:type",Object)],pH.prototype,"ytdWatchBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],pH.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],pH.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],pH.prototype,"playerData",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],pH.prototype,"viewTransitionEnabled",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],pH.prototype,"smallerChatMinHeight",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],pH.prototype,"isDarkTheme",void 0);_.R([_.H(),_.n("design:type",Object)],pH.prototype,"defaultCollapsePlaylist",void 0);_.R([_.H({selector:_.BN}),_.n("design:type",Object)],pH.prototype,"theaterValue",void 0);
_.R([_.H({selector:_.Ud}),_.n("design:type",Object)],pH.prototype,"fullscreenValue",void 0);_.R([_.H({selector:_.iE}),_.n("design:type",Object)],pH.prototype,"scrollTopValue",void 0);_.R([_.H({selector:_.g4}),_.n("design:type",Object)],pH.prototype,"miniplayerIsActive",void 0);_.R([_.H({selector:function(G){return G.watch.isWatchRetroMode}}),
_.n("design:type",Object)],pH.prototype,"retroModeReduxValue",void 0);_.R([_.H({selector:_.PH.persistentPanelVisibleSelector}),_.n("design:type",Object)],pH.prototype,"persistentPanelVisibleValue",void 0);_.R([_.Sr("ytd-player"),_.n("design:type",HTMLElement)],pH.prototype,"ytdPlayer",void 0);_.R([_.lH("#playlist"),_.n("design:type",HTMLElement)],pH.prototype,"JSC$23542_ytdPlaylistPanelRenderer",void 0);_.R([_.Sr("ytd-comments"),_.n("design:type",HTMLElement)],pH.prototype,"ytdComments",void 0);
_.R([_.lH("#primary"),_.n("design:type",HTMLElement)],pH.prototype,"primary",void 0);_.R([_.lH("#secondary"),_.n("design:type",HTMLElement)],pH.prototype,"secondary",void 0);_.R([_.lH("#player-container"),_.n("design:type",HTMLElement)],pH.prototype,"playerContainer",void 0);_.R([_.lH("#below"),_.n("design:type",HTMLElement)],pH.prototype,"below",void 0);_.R([_.lH("#cinematics"),_.n("design:type",HTMLElement)],pH.prototype,"JSC$23542_cinematics",void 0);
_.R([_.lH("#persistent-panel-container"),_.n("design:type",HTMLElement)],pH.prototype,"persistentPanelContainer",void 0);_.R([_.q5("theaterValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pH.prototype,"updateTheaterValue",null);_.R([_.q5("fullscreenValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pH.prototype,"updateFullscreenValue",null);
_.R([_.q5("scrollTopValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pH.prototype,"updateScrollTopValue",null);_.R([_.q5("retroModeReduxValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pH.prototype,"updateRetroModeReduxValue",null);_.R([_.q5("persistentPanelVisibleValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pH.prototype,"updatePersistentPanelVisibleValue",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],pH.prototype,"cinematicLightTheme",null);_.R([_.N({is:"ytd-watch-flexy"})],pH);_.EQ.registerService(_.Tgd,pH);
_.uG();
}catch(e){_._DumpException(e)}
try{
_.KT("nmfa2d");
var HUz;var CH=function(){var G=_.a.apply(this,arguments)||this;G.hidden=!1;G.errorScreen=null;G.playlistData={};return G};
_.M(CH,_.a);_.m=CH.prototype;_.m.getPlayer=function(){return this.ytdPlayer};
_.m.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:_.z_(["aa","eocs"])}}};
_.m.onActiveChanged=function(){_.Cw().dispatch(_.kmM(this.ytPageBehavior.active))};
_.m.playerDataChanged=function(){var G;(G=this.watchController)==null||G.setPlayerResponse(this.playerData)};
_.m.dataChanged=function(){var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)};
_.m.sizeChanged=function(){var G,b;(b=(G=this.metadata).resize)==null||b.call(G)};
_.m.attached=function(){this.watchController=new _.Na(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.m.detached=function(){_.VQ(this.watchController);this.watchController=void 0};
_.m.getPlayerContainer=function(){return this.playerContainer};
_.m.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.m.provideRenderingData=function(G,b){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=b;break;case "ERROR_SCREEN":this.errorScreen=b!=null?b:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=b;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=b;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=b;break;case "RICH_METADATA":this.richMetadataRowContainer=b;break;case "CLARIFICATION":this.clarificationData=b;break;case "PLAYLIST":this.playlistData=
b!=null?b:{};break;case "MERCH_SHELF":this.merchShelf=b;break;case "TICKET_SHELF":this.ticketShelf=b;break;case "LIMITED_STATE":this.limitedState=b;break;case "DONATION_SHELF":this.donationShelf=b;break;case "ALERTS":this.alerts=b}};
_.kV.Object.defineProperties(CH.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,b,I;return!this.hidden&&!!((G=this.data)==null?0:(b=G.contents)==null?0:(I=b.twoColumnWatchNextResults)==null?0:I.conversationBar)}}});
CH.prototype.sizeChanged=CH.prototype.sizeChanged;CH.prototype.dataChanged=CH.prototype.dataChanged;CH.prototype.playerDataChanged=CH.prototype.playerDataChanged;CH.prototype.onActiveChanged=CH.prototype.onActiveChanged;_.R([_.z(_.Id.YtPageBehavior),_.n("design:type",Object)],CH.prototype,"ytPageBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],CH.prototype,"ytComponentBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],CH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],CH.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"playerData",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],CH.prototype,"hidden",void 0);_.R([_.lH("#ytd-player"),_.n("design:type",HTMLElement)],CH.prototype,"ytdPlayer",void 0);_.R([_.lH("#player-container"),_.n("design:type",HTMLElement)],CH.prototype,"playerContainer",void 0);_.R([_.lH("#metadata"),_.n("design:type",Object)],CH.prototype,"metadata",void 0);_.R([_.lH("#playlist"),_.n("design:type",HTMLElement)],CH.prototype,"playlistPanel",void 0);
_.R([_.H({selector:_.b0l,reflectToAttribute:!0}),_.n("design:type",Object)],CH.prototype,"fixie",void 0);_.R([_.H({selector:_.GtE,reflectToAttribute:!0}),_.n("design:type",Object)],CH.prototype,"singleColumn",void 0);_.R([_.H({selector:function(G){return _.BN(G)&&!_.Ud(G)},
reflectToAttribute:!0}),_.n("design:type",Object)],CH.prototype,"theater",void 0);_.R([_.H({selector:_.Ud,reflectToAttribute:!0}),_.n("design:type",Object)],CH.prototype,"fullscreen",void 0);_.R([_.H({selector:_.VXI}),_.n("design:type",Object)],CH.prototype,"windowSize",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"singleColumnContents",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"errorScreen",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"playlistData",void 0);
_.R([_.H(),_.n("design:type",Object)],CH.prototype,"videoPrimaryInfoRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"videoSecondaryInfoRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"richMetadataRowContainer",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"clarificationData",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"commentsEntryPointHeaderRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"ticketShelf",void 0);
_.R([_.H(),_.n("design:type",Object)],CH.prototype,"merchShelf",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"donationShelf",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"limitedState",void 0);_.R([_.H(),_.n("design:type",Object)],CH.prototype,"alerts",void 0);_.R([_.P("playlistData"),_.n("design:type",Object),_.n("design:paramtypes",[])],CH.prototype,"hasPlaylistData",null);
_.R([_.P("data","hidden"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],CH.prototype,"hasChat",null);_.R([_.q5("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CH.prototype,"onActiveChanged",null);_.R([_.q5("playerData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CH.prototype,"playerDataChanged",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CH.prototype,"dataChanged",null);_.R([_.q5("windowSize","singleColumn"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CH.prototype,"sizeChanged",null);
_.J(CH,"ytd-watch-fixie",function(){if(HUz===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);HUz=G}G=HUz;return G},{mode:1});_.EQ.registerService(_.fh2,CH);
_.uG();
}catch(e){_._DumpException(e)}
try{
_.KT("xwEKAe");
var paK=function(G){G=G.command;var b=_.g(G,_.V4);return{command:G,reelPlayerOverlayRenderer:_.g(b==null?void 0:b.overlay,_.I9b),thumbnail:b==null?void 0:b.thumbnail,videoId:b.videoId}},SgI=function(G){G=G.command;
var b=_.g(G,_.X_);return{command:G,reelNonVideoContentRenderer:_.g(b==null?void 0:b.renderer,_.GW)}},Xah=function(G){return G.entries?G.entries.map(function(b){return _.g(b==null?void 0:b.command,_.V4)?paK(b):SgI(b)}):[]},$2z=function(G){return G.prevEntries?G.prevEntries.map(function(b){return _.g(b==null?void 0:b.command,_.V4)?paK(b):SgI(b)}):[]},GxA=function(G){return _.mG(G)?G.getAttribute("jsname")==="coFSxe":!1},bTv=function(G,b){b.id||(b.id="ow"+_.Ej(b));
G.setAttribute("jsowner",b.id);G.__owner=b;var I=_.wV(b,GxA);I&&(_.KLX.has(I)||_.KLX.set(I,[]),_.KLX.get(I).push(G));(I=_.J_b.get(b))||_.J_b.set(b,I=[]);I.includes(G)||I.push(G);b.setAttribute("__IS_OWNER",!0)},ICa=function(){var G=_.Thd(1);
G=_.VA(G,_.Mys);if(!(_.fOa(G)||G[_.fPB]&&!G.__hasBeenSet))return G.value},h8K=function(G){return(G=_.qHr(G))?_.lVj(G):0},q8I=function(G){return G.shorts.isSmallScreenSqueezeback},jlA=function(G){return G.shorts.isPlaybackStarted},lCo=function(G){var b=_.m$();
if(b.getFlag(202))b=b.getFlag(201);else{var I;b=(G==null?void 0:(I=G.config)==null?void 0:I.settingOnByDefault)!==void 0?G.config.settingOnByDefault:!_.U("web_shorts_cinematics_disabled_by_default")}return b},m2E=function(G){var b=_.m$();
_.eX(0,201,G);_.eX(0,202,!0);b.save()},D2g=function(G){var b=_.Thd(2),I=new Set;
_.uI(function(){return void I.forEach(function(h){return void h()})});
return function(h){var q=_.eT(b);try{var l=e8v(Val(G),h);I.add(l);return function(){l();I.delete(l)}}finally{_.eT(q)}}},c2o=function(G){var b=G.children;
var I=G.root;_.JC(function(){var h=D2g(I)(b);_.uI(h)});
return document.createTextNode("")},e8v=function(G,b){var I=kxa(G);
(G=ICa())&&bTv(I,G);_.Mc.setUp();b=_.e(_.CAq(b,!0));G=b.next().value;var h=b.next().value;b=_.e(G);for(G=b.next();!G.done;G=b.next())I.appendChild(G.value);_.Mc.log(I);_.Mc.tearDown();return function(){h();I.remove()}},Val=function(G){if(typeof G==="string")return G=document.querySelector(G),_.zrW(G),G;
if(_.TF(G)&&G.nodeType===Node.ELEMENT_NODE)return G;if(!G.__value&&!G.__optional){var b=_.BL2.USE_ELEMENT_NOT_ASSIGNED(G.__expectedTagName);G.__hasErrored=!0;throw b;}return G.value},kxa=function(G){var b=document.createElementNS(G.namespaceURI,G.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return G.appendChild(b)},vuK=function(G,b,I,h){G=b-G;
I=h-I;return Math.sqrt(G*G+I*I)},LFE=function(G){var b=G>>8&255,I=G&255;
return"#"+(G>>16&255).toString(16).padStart(2,"0")+b.toString(16).padStart(2,"0")+I.toString(16).padStart(2,"0")},Qlv=function(G,b){G&&_.LL().resolve(_.xW).resolveCommand(G,{forceClickLogging:!0,
form:{element:b}})},x2v=function(){return _.LL().resolve(_.o0).dismissedIndices},fCv=function(G,b){var I,h,q,l,V,D,k,L,x;
return _.c(function(f){if(f.nextAddress==1){I=_.LL().resolve(_.ZV);l=(h=I)==null?void 0:(q=h.reelWatchEndpointMap)==null?void 0:q.reelWatchSequence;D=(V=G.innertubeTransportService)!=null?V:_.LL().resolve(_.kn);if(!l)return f.jumpTo(2);k=l();return(L=k.JSC$14237_getRequest(b,{}))?f.yield(_.qS(D,L.innerTubeRequest,L.input,b.clickTrackingParams,L.config),4):f.jumpTo(2)}return f.nextAddress!=2?(x=f.yieldResult,f.return(x)):f.return(void 0)})},Tkv=function(G,b,I){var h,q=(h=_.g(b,_.V4))==null?void 0:
h.videoId;
h=!(!q||!G.find(function(V){return V.videoId&&V.videoId===q}));
var l=!!G.find(function(V){var D;return((D=_.g(V.command,_.V4))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
G=!!G.find(function(V){return!!_.g(V.command,_.X_)&&!!_.g(b,_.X_)&&V.command===b});
return I?h||G:h||l||G},Bkv=function(G,b,I){var h=[].concat(_.Nz(G)),q=0,l=I?Xah(I):[];
I=I?$2z(I):[];b&&!Tkv(G,b.command)&&h.unshift(b);l.length&&!Tkv(G,l[0].command,!0)&&h.push.apply(h,_.Nz(l));b&&I.length&&!Tkv(G,I[0].command)&&(h.unshift.apply(h,_.Nz(I.reverse())),q=I.length);return{newContentList:h,indexChange:q}},U2E=function(G){return _.wK({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:G}})},slI=function(G){return _.wK({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:G}})},guI=function(G){return _.wK({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:G}})};var Us=function(G,b){if(G instanceof Us)this.array_=G.array_;else{var I;if(I=_.KO(G))a:{for(var h=I=0;h<G.length;h++){if(!_.KO(G[h])||I>0&&G[h].length!=I){I=!1;break a}for(var q=0;q<G[h].length;q++)if(typeof G[h][q]!=="number"){I=!1;break a}I==0&&(I=G[h].length)}I=I!=0}if(I)this.array_=_.Jd(G);else if(G instanceof _.Pa)this.array_=A2d(G.height,G.width);else if(typeof G==="number"&&typeof b==="number"&&G>0&&b>0)this.array_=A2d(G,b);else throw Error("So");}this.size_=new _.Pa(this.array_[0].length,
this.array_.length)},Mav=function(G,b,I){for(var h=0;h<G.getSize().height;h++)for(var q=0;q<G.getSize().width;q++)b.call(I,G.array_[h][q],h,q,G)},ZTo=function(G,b){var I=new Us(G.getSize());
Mav(G,function(h,q,l){I.array_[q][l]=b.call(void 0,h,q,l,G)});
return I},A2d=function(G,b){for(var I=[],h=0;h<G;h++){I[h]=[];
for(var q=0;q<b;q++)I[h][q]=0}return I};
Us.prototype.add=function(G){if(!_.Zyh(this.size_,G.getSize()))throw Error("To");return ZTo(this,function(b,I,h){return b+G.array_[I][h]})};
Us.prototype.equals=function(G,b){if(this.size_.width!=G.size_.width||this.size_.height!=G.size_.height)return!1;b=b||0;for(var I=0;I<this.size_.height;I++)for(var h=0;h<this.size_.width;h++)if(!_.MSK(this.array_[I][h],G.array_[I][h],b))return!1;return!0};
Us.prototype.getSize=function(){return this.size_};
var ss=function(G,b,I){return b>=0&&b<G.size_.height&&I>=0&&I<G.size_.width?G.array_[b][I]:null};
Us.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var taI=function(G,b,I,h){if(!(b>=0&&b<G.size_.height&&I>=0&&I<G.size_.width))throw Error("Uo`"+b+"`"+I+"`"+G.size_.height+"`"+G.size_.width);G.array_[b][I]=h};
Us.prototype.multiply=function(G){if(G instanceof Us){if(this.size_.width!=G.getSize().height)throw Error("Vo");return z8I(this,G)}if(typeof G==="number")return ouI(this,G);throw Error("Wo");};
var z8I=function(G,b){var I=new Us(G.size_.height,b.getSize().width);Mav(I,function(h,q,l){for(var V=h=0;V<this.size_.width;V++)h+=ss(this,q,V)*ss(b,V,l);taI(I,q,l,h)},G);
return I},ouI=function(G,b){return ZTo(G,function(I){return I*b})};var iTl=new _.hu("inlineSurveyRenderer");var PGl=new _.hu("interstitialViewModel");var d2a=new _.hu("reelNavigateCommand");var y27=new _.hu("reelNonVideoContentDismissalCommand");var r2l=new _.hu("showReelsCommentsOverlayCommand");var FFE=new _.hu("videoInteractionPopUpRenderer");var HTg=new _.hu("pollChoiceData");var WFh;var aCM;var Nkh;var g9=function(){var G=_.a.apply(this,arguments)||this;G.ctaVisualElement=null;G.currentCsn=null;return G};
_.M(g9,_.a);_.m=g9.prototype;_.m.onDataChanged=function(){this.maybeLogShows()};
_.m.computeButtonShape=function(){var G=this;if(this.data)return{buttonText:_.NO(this.data.text),state:"active",onTap:function(){G.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.m.maybeCreateCtaVe=function(){var G;if((G=this.data)!=null&&G.badgeInteractionLogging){var b;if(G=(b=this.data.badgeInteractionLogging)==null?void 0:b.trackingParams)this.ctaVisualElement=_.VB(G)}};
_.m.maybeLogClicks=function(){this.currentCsn=_.gL(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.WT(this.currentCsn,this.ctaVisualElement)};
_.m.maybeLogShows=function(){this.currentCsn=_.gL(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.FT(this.currentCsn,[this.ctaVisualElement])};
_.m.onTap=function(){var G;if((G=this.data)!=null&&G.onClickCommand){var b;this.ytComponentBehavior.resolveCommand((b=this.data)==null?void 0:b.onClickCommand);this.maybeLogClicks()}};
g9.prototype.onDataChanged=g9.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],g9.prototype,"ytComponentBehavior",void 0);_.R([_.H({}),_.n("design:type",Object)],g9.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],g9.prototype,"onDataChanged",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],g9);
_.J(g9,"ytd-shopping-overlay-badge-renderer",function(){if(Nkh!==void 0)return Nkh;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Nkh=G},{mode:1});_.JN(_.DcY,"reel-sound-metadata-view-model",{props:{data:_.No,overlayDensity:_.No}});_.JN(_.l58,"player-disclosure-view-model",{props:{data:_.hV,extractOverlay:_.hV}});_.JN(_.GGn,"pivot-button-view-model",{props:{data:_.No,className:_.No}});_.JN(_.bui,"reel-action-bar-view-model",{props:{data:_.hV,buttonShapeOverrideables:_.hV}});_.JN(_.cMY,"yt-reel-metapanel-view-model",{props:{data:_.hV,overlayDensity:_.hV,extractOverlay:_.hV}});var Y8I=_.C(function(G){var b=G.children;var I=G.region;G=_.e(_.ZZ(void 0,void 0,"flxBBc"));var h=G.next().value,q=G.next().value;G=_.e(_.ZZ("0px",void 0,"IAR7k"));var l=G.next().value,V=G.next().value;G=_.e(_.ZZ("0px",void 0,"QV4iWb"));var D=G.next().value,k=G.next().value;G=_.e(_.ZZ(0,void 0,"Q2oK6b"));var L=G.next().value,x=G.next().value;G=_.e(_.ZZ(0,void 0,"hYKowe"));var f=G.next().value,T=G.next().value,B=function(){var O=h();if(O){var K;if(((K=_.GZ())==null?void 0:K.getPlayerState())!==-1){O.style.display=
"inherit";var u;(u=_.GZ())==null||u.removeEventListener("onStateChange",B)}else O.style.display="none";t()}},A=function(){var O;
return(O=_.Kk())==null?void 0:O.querySelector("video")},t=function(){var O=A();
if(O){x(O.getBoundingClientRect().width);T(O.getBoundingClientRect().height);var K;V((O==null?void 0:(K=O.style)==null?void 0:K.left)||"0px");var u;k((O==null?void 0:(u=O.style)==null?void 0:u.top)||"0px")}};
_.K0(function(){var O=h();if(O){var K,u,w;if(((K=_.GZ())==null?void 0:K.getPlayerState())===-1&&Math.round(((w=(u=_.GZ())==null?void 0:u.getVideoAspectRatio())!=null?w:0)*100)!==Math.round(L()/f()*100)){O.style.display="none";var $a,ev;T(L()/((ev=($a=_.GZ())==null?void 0:$a.getVideoAspectRatio())!=null?ev:1))}}},"N29KDe");
var y=function(){t()},F;
_.JC(function(){t();var O;if(!(I==null?0:(O=I())==null?0:O.transformationMatrix))throw Error("$o");var K;(K=_.GZ())==null||K.addEventListener("onStateChange",B);if(window.ResizeObserver){if(O=A())F=new ResizeObserver(y),F.observe(O)}else window.addEventListener("resize",t);_.uI(function(){var u;(u=_.GZ())==null||u.removeEventListener("onStateChange",B);F?F.disconnect():window.removeEventListener("resize",t)})});
var W=function(){var O,K,u=(K=I==null?void 0:(O=I())==null?void 0:O.transformationMatrix)!=null?K:[];O=L();K=f();for(var w=[],$a=0,ev=-1;$a<u.length;$a++)$a%3===0&&(ev++,w[ev]=[]),w[ev].push(u[$a]);u=new Us(w);w=new Us([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);w=u.multiply(w);u=new Us([[0,0],[0,0],[0,0],[0,0]]);for($a=0;$a<w.getSize().width;$a++){ev=ss(w,0,$a);var LO=ss(w,1,$a);if(ev===null||LO===null)throw Error("Zo`"+($a+1).toString());taI(u,$a,0,ev*O);taI(u,$a,1,LO*K)}O=ss(u,0,0);$a=ss(u,1,0);K=ss(u,0,
1);ev=ss(u,1,1);if(O===null||$a===null||K===null||ev===null)throw Error("Xo");w=vuK(O,$a,K,ev);LO=ss(u,3,0);u=ss(u,3,1);if(LO===null||u===null)throw Error("Yo");u=vuK(O,LO,K,u);ev=(Number((ev*-1).toFixed(2))-Number((K*-1).toFixed(2)))/(Number($a.toFixed(2))-Number(O.toFixed(2)));LO=Math.atan(ev)*180/Math.PI;$a=ev===Number.POSITIVE_INFINITY?-90:ev===Number.NEGATIVE_INFINITY?90:Object.is(ev,-0)?180:ev===0?0:ev>0?LO*-1:O<$a?LO*-1:Math.abs(LO)+180;return"left:calc("+O+"px + "+l()+"); top:calc("+(K+"px + "+
D()+"); width:")+(w+"px; height:")+(u+"px; transform:rotate(")+($a+"deg);\n        --sticker-width:"+w+";")};
return _.v(c2o,{root:"#sticker-layer"},function(){return _.v("yt-overlay-sticker",{el:_.Wv(q),style:W,class:"ytOverlayStickerHost"},b)})},"mn");var CG7=_.C(function(G){function b(){var B,A,t,y,F=(A=_.g((B=k())==null?void 0:B.command,_.i6J))==null?void 0:(t=A.item)==null?void 0:(y=t.notificationTextRenderer)==null?void 0:y.successResponseText;if(F)B=_.Kw(F),_.wL(h.value,"yt-open-popup-action",[B,h.value]);else if(L())Qlv(L(),h.value);else{var W;Qlv((W=k())==null?void 0:W.command,h.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var I=G.data;var h=_.ee("svg"),q=_.e(_.ZZ(!1,void 0,"e9onLe"));G=q.next().value;var l=q.next().value,V=_.e(_.ZZ(!1,void 0,"ptnIQd"));q=V.next().value;var D=V.next().value,k=function(){var B;return _.g((B=I())==null?void 0:B.popUp,FFE)},L=function(){var B;
return(B=I())==null?void 0:B.command},x=function(){return _.g(L(),_.cH)!==void 0};
V=_.Xu(function(){b();return!1});
var f={},T={};return _.v("svg",{"on:mouseover":_.Xu(function(){x()&&l(!0);D(!0);return!1}),
"on:mouseout":_.Xu(function(){l(!1);D(!1);return!1}),
"on:keydown":_.Xu(function(B){B.key==="Enter"&&b();return!1}),
"on:focus":_.Xu(function(){x()&&l(!0);return!1}),
"on:blur":_.Xu(function(){x()&&l(!1);return!1}),
el:h,tabindex:0,"aria-label":function(){var B;return(B=I())==null?void 0:B.a11yString},
id:"player-overlay-video-interaction-svg",class:_.pG("ytPlayerOverlayInteractionInteractionsSvg",(f.ytPlayerOverlayInteractionInteractionsSvgHover=G,f),(T.ytPlayerOverlayInteractionInteractionsSvgHideOutline=q,T)),role:"button","on:click":V})},"pn");_.JN(_.C(function(G){var b=G.data;_.JC(function(){var I;if((I=b())==null?0:I.trackingParams){var h;_.qo().graftServerVe((h=b().trackingParams)!=null?h:"")}});
return _.v("yt-player-overlay-interaction",null,_.v(Y8I,{region:function(){var I,h;return(I=b())==null?void 0:(h=I.regions)==null?void 0:h[0]}},_.v(CG7,Object.assign({},G))))},"on"),"yt-player-overlay-interaction",{props:{data:_.hV}});var J2v=_.C(function(G){var b=G.data;var I=G.index;var h=G.selectedChoice;var q=function(){var l;return _.g((l=b())==null?void 0:l.renderer,HTg)};
G={};return _.v("yt-overlay-poll-sticker-choice",{class:_.pG("ytOverlayPollStickerChoiceHost"),style:_.Ir({"--displayed-percentage":function(){var l,V,D,k;return""+Math.ceil(Number((h==null?void 0:h())===I()?(l=q())==null?void 0:(V=l.selected)==null?void 0:V.progressBarWidth:(D=q())==null?void 0:(k=D.unselected)==null?void 0:k.progressBarWidth)*100)}})},_.v("div",{class:_.pG("ytOverlayPollStickerChoicePollChoice",(G.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(h==null?void 0:h())!==
void 0},G.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(h==null?void 0:h())===I()},G))},_.v("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var l;
return((l=q())==null?void 0:l.text)||""}),_.v("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(h==null?void 0:h())==="undefined")var l="";
else{var V,D,k,L;l=(h==null?void 0:h())===I()?(V=q())==null?void 0:(D=V.selected)==null?void 0:D.votePercentage:(k=q())==null?void 0:(L=k.unselected)==null?void 0:L.votePercentage}return l})))},"qn");var KFd=_.C(function(G){var b=G.data;var I=_.m2(function(q){var l,V=((l=b())==null?void 0:l.postPollStateEntityKey)||"";q=_.Gi(q.entities,"postPollStateEntity",V);var D;return((D=b())==null?0:D.viewerIsOwner)?Object.assign({},q,{selectedOptionId:-1,voted:!0}):q}),h=_.LL().resolve(_.xW);
return _.v("yt-overlay-poll-sticker",null,_.v(Y8I,{region:function(){var q,l;return(q=b())==null?void 0:(l=q.region)==null?void 0:l.interactionRegion}},_.v("div",{class:_.pG("ytOverlayPollStickerHost"),
style:_.Ir({"--original-height":function(){var q;return""+(((q=b())==null?void 0:q.mainBodyHeight)||1)},
"--original-width":function(){var q;return""+(((q=b())==null?void 0:q.mainBodyWidth)||1)},
"--scaled-width":function(){var q;return""+(((q=b())==null?void 0:q.mainBodyWidth)||1)},
"--primary-surface":function(){var q,l;return LFE(((q=b())==null?void 0:(l=q.theme)==null?void 0:l.primarySurface)||0)},
"--raised-surface":function(){var q,l;return LFE(((q=b())==null?void 0:(l=q.theme)==null?void 0:l.raisedSurface)||0)},
"--secondary-surface":function(){var q,l;return LFE(((q=b())==null?void 0:(l=q.theme)==null?void 0:l.secondarySurface)||0)},
"--primary-text":function(){var q,l;return LFE(((q=b())==null?void 0:(l=q.theme)==null?void 0:l.primaryText)||0)},
"--secondary-text":function(){var q,l;return LFE(((q=b())==null?void 0:(l=q.theme)==null?void 0:l.secondaryText)||0)}})},_.v("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return b().questionText}," "),_.v(_.aj,{each:function(){return b().pollChoiceConfigs||[]}},function(q,l){return _.v("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.Xu(function(){var V=l(),D;if((D=b())==null||!D.viewerIsOwner){var k,L;D=(k=b())==null?void 0:(L=k.pollChoiceConfigs)==null?void 0:L[V];if(L=(D==null?0:D.renderer)?_.g(D.renderer,HTg):void 0){var x;k=((x=I())==null?void 0:x.selectedOptionId)!==V;var f;if(x=(f=k?L.selectedPollCommand:L.deselectedPollCommand)==null?void 0:f.innertubeCommand){h.resolveCommand(x);var T,B;_.H5().dispatch(_.Da("postPollStateEntity",((T=I())==null?void 0:T.key)||"",{key:((B=I())==null?void 0:B.key)||"",selectedOptionId:k?
V:-1,voted:k}))}}}})},_.v(J2v,{data:q,
index:l,selectedChoice:function(){var V,D;return((V=I())==null?0:V.voted)?(D=I())==null?void 0:D.selectedOptionId:void 0}}))}),_.v("div",{class:"ytOverlayPollStickerVoteCount"},function(){var q,l;
return((q=I())==null?0:q.voted)&&((l=I())==null?void 0:l.selectedOptionId)!==-1?b().postVoteCountText:b().preVoteCountText}))))},"rn");_.JN(_.C(function(G){var b=G.data;return _.v("yt-stickers-layer",null,_.v(_.aj,{each:function(){var I;return((I=b())==null?void 0:I.stickers)||[]}},function(I){return _.v(_.Q,{cond:function(){return _.U("enable_shorts_poll_stickers_web")},
then:function(){return _.v(_.Q,{cond:function(){return I==null?void 0:I.pollSticker},
then:function(h){return _.v(KFd,{data:h})}})}})}))},"sn"),"yt-stickers-layer",{props:{data:_.hV}});var Ai=function(){var G=_.a.apply(this,arguments)||this;G.showScrubber=!1;G.isWatchWhileMode=!1;G.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");G.enablePollStickers=_.U("enable_shorts_poll_stickers_web");G.enableShortsModernControls=_.U("web_shorts_modern_controls");G.anchoredPanelActive=!1;G.enableLivingroomLayout=_.U("reels_enable_livingroom_layout");G.enablePlayerMetadataContainer=_.U("reels_web_enable_metadata_container");G.enableSqueezebackPanels=_.U("web_shorts_enable_squeezeback_panels");
G.useAspectRatio=_.U("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 b;G.set("isImmersive",((b=window.getComputedStyle(G.hostElement))==null?void 0:b.getPropertyValue("--immersive-mode-on"))==="1");G.set("isImmersiveHorizontal",G.isImmersive&&G.enableLivingroomLayout&&!G.isWatchWhileMode)};
return G};
_.M(Ai,_.a);_.m=Ai.prototype;_.m.updateIsOverlay=function(G){this.isOverlay=G.detail.value};
_.m.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.m.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.m.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.m.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.m.onOverlayDensityChange=function(){var G=_.Eo(this.hostElement).querySelector("ytd-info-panel-container-renderer");G&&(G.set("extractOverlay",this.extractOverlay),G.set("roundedContainer",this.extractOverlay))};
_.m.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.m.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.m.ready=function(){(_.U("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"))&&(!_.U("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.UG("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.UG("reels_action_justified_content")||"flex-start")};
_.m.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}}};
_.m.setFakeLoadingButtons=function(){_.U("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.qP("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.qP("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.qP("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.qP("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.qP("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()};
_.m.setEmptyOverlayMetadata=function(){_.U("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}))};
_.kV.Object.defineProperties(Ai.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.infoPanel)}}});
Ai.prototype.onOverlayDensityChange=Ai.prototype.onOverlayDensityChange;Ai.prototype.onIsActiveChanged=Ai.prototype.onIsActiveChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Ai.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Ai.prototype,"ytdReduxBehavior",void 0);
_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],Ai.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ai.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],Ai.prototype,"isActive",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],Ai.prototype,"hidden",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],Ai.prototype,"useShortsIcon",void 0);
_.R([_.H({value:"left"}),_.n("design:type",String)],Ai.prototype,"buttonTooltipPosition",void 0);_.R([_.H({value:_.U("reels_enable_livingroom_layout")?"top":"left"}),_.n("design:type",String)],Ai.prototype,"likeButtonTooltipPosition",void 0);_.R([_.H({value:"none"}),_.n("design:type",String)],Ai.prototype,"textTransform",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"showScrubber",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"isWatchWhileMode",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.infoPanel"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ai.prototype,"hasInfoPanel",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"enableAnchoredPanel",void 0);_.R([_.H(),_.n("design:type",Object)],Ai.prototype,"enablePollStickers",void 0);
_.R([_.H(),_.n("design:type",Object)],Ai.prototype,"enableShortsModernControls",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"anchoredPanelActive",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"enableLivingroomLayout",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ai.prototype,"enablePlayerMetadataContainer",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"enableSqueezebackPanels",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"useAspectRatio",void 0);_.R([_.H({selector:_.OhX,reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"isSqueezebackActive",void 0);_.R([_.H({selector:q8I,reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"smallScreenSqueezeback",void 0);
_.R([_.H({selector:jlA}),_.n("design:type",Object)],Ai.prototype,"isPlayerStarted",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"overlayDensity",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"extractOverlay",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"extractActionBar",void 0);_.R([_.H(),_.n("design:type",Object)],Ai.prototype,"isOverlay",void 0);
_.R([_.H(),_.n("design:type",Object)],Ai.prototype,"isImmersive",void 0);_.R([_.H(),_.n("design:type",Object)],Ai.prototype,"isImmersiveHorizontal",void 0);_.R([_.H({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.n("design:type",Boolean)],Ai.prototype,"isShortsImmersive",void 0);_.R([_.H({computed:"computeButtonOverride(extractActionBar)"}),_.n("design:type",Object)],Ai.prototype,"buttonOverride",void 0);
_.R([_.H({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.n("design:type",Object)],Ai.prototype,"actionBarButtonOverride",void 0);_.R([_.H({selector:_.nM,reflectToAttribute:!0}),_.n("design:type",Object)],Ai.prototype,"isFullscreen",void 0);_.R([_.q5("isActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ai.prototype,"onIsActiveChanged",null);
_.R([_.q5("extractOverlay"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ai.prototype,"onOverlayDensityChange",null);_.R([_.N({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Ai);
_.J(Ai,"ytd-reel-player-overlay-renderer",function(){if(aCM!==void 0)return aCM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &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(_.E().content.cloneNode(!0),
G.content.firstChild);return aCM=G},{mode:1});var uN7;var M7=function(){var G=_.a.apply(this,arguments)||this;G.videoDuration=0;G.playedTime=0;G.isActive=!1;G.JSC$22750_playerEvents=new Map;return G};
_.M(M7,_.a);_.m=M7.prototype;_.m.created=function(){this.JSC$22750_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22750_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.m.attached=function(){this.getPlayerAndInitializeListeners()};
_.m.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22750_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.I9(this,this.onPageChanged))};
_.m.getPlayerAndInitializeListeners=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return b=_.Kk(),b?I.yield(b.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.I9(G,G.onPageChanged)),I.jumpTo(0));G.player=I.yieldResult;G.initializePlayerListeners();_.ip(I)})};
_.m.onPageChanged=function(G){var b=this;return _.c(function(I){if(I.nextAddress==1)return G.detail.newPageType!=="ytd-shorts"?I.return():I.yield(_.uk().getPlayerPromise(),2);b.player=I.yieldResult;b.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.I9(b,b.onPageChanged));_.ip(I)})};
_.m.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22750_playerEvents)};
_.m.onVideoDataChange=function(G){var b=this;return _.c(function(I){if(!b.player||G.type!=="newdata")return I.return();b.videoDuration=_.U("web_shorts_use_progress_state_for_gapless")?b.player.getProgressState(G.playertype).seekableEnd:b.player.getDuration(G.playertype);b.playedTime=0;_.ip(I)})};
_.m.onVideoProgress=function(G){var b=this,I,h;return _.c(function(q){if(!b.player)return q.return();I=b.player.getPresentingPlayerType();h=b.player.getPlayerState();b.videoDuration=_.U("web_shorts_use_progress_state_for_gapless")?b.player.getProgressState(I).seekableEnd:b.player.getDuration(I);b.playedTime=h===0?b.videoDuration:G;_.ip(q)})};
_.m.getPercentPlayed=function(G,b){return G?_.Ak(b/G,0,1):0};
_.kV.Object.defineProperties(M7.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([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],M7.prototype,"componentBehavior",void 0);_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],M7.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],M7.prototype,"player",void 0);_.R([_.H(),_.n("design:type",Object)],M7.prototype,"videoDuration",void 0);_.R([_.H(),_.n("design:type",Object)],M7.prototype,"playedTime",void 0);_.R([_.H(),_.n("design:type",Object)],M7.prototype,"isActive",void 0);
_.R([_.P("videoDuration","playedTime"),_.n("design:type",Number),_.n("design:paramtypes",[])],M7.prototype,"percentPlayed",null);_.R([_.P("videoDuration","playedTime"),_.n("design:type",Object),_.n("design:paramtypes",[])],M7.prototype,"percentPlayedStyle",null);_.R([_.P("videoDuration","isActive"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],M7.prototype,"hideProgressBar",null);
_.J(M7,"ytd-progress-bar-line",function(){if(uN7===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);uN7=G}G=uN7;return G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var R8I;_.JN(_.FtW,"ytm-closed-captioning-button",{props:{captionIconType:_.hV,onClick:_.No,ariaLabel:_.hV,ariaPressed:_.hV,isOverlay:_.No,isModern:_.No}});_.JN(_.jBc,"desktop-shorts-volume-controls",{props:{orientation:_.hV}});var ZH=function(){var G=_.a.apply(this,arguments)||this;G.playerState=null;G.isMuted=!1;G.shortsModernControlsEnabled=_.U("web_shorts_modern_controls");G.volumeControlsOrientationState="horizontal_right";G.isOverlay=!0;G.isAdsOverlay=!1;G.captionIconType=-1;G.ariaLabel="";G.overlayDensity=0;G.JSC$22753_playerEvents=new Map;G.onClosedCaptionsButtonClick=function(){G.player&&_.P9(G.player)&&(G.player.toggleSubtitles(),G.updateCaptionIconType())};
return G};
_.M(ZH,_.a);_.m=ZH.prototype;_.m.created=function(){this.JSC$22753_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22753_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22753_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.m.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Xs(28662);this.playPauseButtonClientVE=_.Xs(36842);this.fullscreenButtonToggleOffClientVE=_.Xs(222256);this.fullscreenButtonToggleOnClientVE=_.Xs(222257);var G=_.gL(),b=_.s3();G&&b&&(_.U("combine_ve_grafts")?(_.iz(_.qo(),this.muteButtonClientVE,b),_.iz(_.qo(),this.playPauseButtonClientVE,b)):_.yn(G,b,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.m.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22753_playerEvents),this.player=null)};
_.m.updateCaptionIconType=function(){var G=-1,b=void 0,I=_.qP("CLOSED_CAPTIONS_DISABLED");this.player&&_.P9(this.player)&&(_.gGj(this.player)?(b=!0,I=_.qP("CLOSED_CAPTIONS_ON"),G=1):(b=!1,I=_.qP("CLOSED_CAPTIONS_OFF"),G=0));this.captionIconType=G;this.ariaPressedState=b;this.ariaLabel=I};
_.m.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.m.getPlayerAndInitializeListeners=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return b=_.Kk(),b?I.yield(b.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.I9(G,G.onPageChanged)),I.jumpTo(0));G.player=I.yieldResult;G.initializePlayerListeners();_.ip(I)})};
_.m.onPageChanged=function(G){var b=this;return _.c(function(I){if(I.nextAddress==1)return G.detail.newPageType!=="ytd-shorts"?I.return():I.yield(_.uk().getPlayerPromise(),2);b.player=I.yieldResult;b.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.I9(b,b.onPageChanged));_.ip(I)})};
_.m.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22753_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.m.onPlayerStateChange=function(G){this.playerState=G};
_.m.onPlayerVolumeChange=function(G){this.isMuted=G.muted};
_.m.onPlayPauseButtonClick=function(){var G=this,b,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(_.uk().getPlayerPromise(),2);b=h.yieldResult;(I=_.gL())&&G.playPauseButtonClientVE&&_.WT(I,G.playPauseButtonClientVE);b.getPlayerState()!==1?b.playVideo():b.pauseVideo();_.ip(h)})};
_.m.computePlayPauseIcon=function(G){return G===2||G===-1||G===5?_.U("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.U("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.U("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.m.computeFullscreenLabel=function(G){return G?_.qP("FULLSCREEN_EXIT_LABEL"):_.qP("FULLSCREEN_ENTER_LABEL")};
_.m.computePlayPauseLabel=function(G){return G===1||G===3?_.qP("PLAYER_LABEL_PAUSE"):_.qP("PLAYER_LABEL_PLAY")};
_.m.onMuteButtonClick=function(){var G=this,b,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(_.uk().getPlayerPromise(),2);b=h.yieldResult;(I=_.gL())&&G.muteButtonClientVE&&_.WT(I,G.muteButtonClientVE);b.isMuted()?b.unMute(!0):b.mute(!0);_.ip(h)})};
_.m.computeMuteIcon=function(G){return G?"miniplayer:volume-off":"miniplayer:volume-up"};
_.m.computeMuteLabel=function(G){return G?_.qP("PLAYER_LABEL_UNMUTE"):_.qP("PLAYER_LABEL_MUTE")};
_.m.onFullscreenButtonClick=function(){var G=_.gL();G&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.WT(G,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.WT(G,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.PHK()};
_.kV.Object.defineProperties(ZH.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?_.U("web_shorts_modern_controls")?"player_full_exit_alt":_.U("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.U("web_shorts_modern_controls")?"player_full_enter_alt":_.U("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],ZH.prototype,"componentBehavior",void 0);_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],ZH.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],ZH.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ZH.prototype,"player",void 0);_.R([_.H(),_.n("design:type",Object)],ZH.prototype,"playerState",void 0);_.R([_.H(),_.n("design:type",Object)],ZH.prototype,"isMuted",void 0);
_.R([_.H({computed:"computePlayPauseIcon(playerState)"}),_.n("design:type",String)],ZH.prototype,"playPauseIcon",void 0);_.R([_.H({computed:"computeMuteIcon(isMuted)"}),_.n("design:type",String)],ZH.prototype,"muteIcon",void 0);_.R([_.H({selector:_.nM}),_.n("design:type",Boolean)],ZH.prototype,"isFullscreen",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ZH.prototype,"shortsModernControlsEnabled",void 0);
_.R([_.H(),_.n("design:type",Object)],ZH.prototype,"volumeControlsOrientationState",void 0);_.R([_.H(),_.n("design:type",Object)],ZH.prototype,"isOverlay",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ZH.prototype,"isAdsOverlay",void 0);_.R([_.H(),_.n("design:type",Object)],ZH.prototype,"captionIconType",void 0);_.R([_.H(),_.n("design:type",Object)],ZH.prototype,"ariaLabel",void 0);_.R([_.H(),_.n("design:type",Object)],ZH.prototype,"ariaPressedState",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],ZH.prototype,"overlayDensity",void 0);_.R([_.H(),_.n("design:type",Object)],ZH.prototype,"data",void 0);_.R([_.H({computed:"computeActionBarButtonOverride()"}),_.n("design:type",Object)],ZH.prototype,"actionBarButtonOverride",void 0);_.R([_.P("playerState"),_.n("design:type",Object),_.n("design:paramtypes",[])],ZH.prototype,"playPauseButtonData",null);
_.R([_.P("isFullscreen"),_.n("design:type",Object),_.n("design:paramtypes",[])],ZH.prototype,"fullscreenButtonData",null);_.R([_.H(),_.n("design:type",Object)],ZH.prototype,"onClosedCaptionsButtonClick",void 0);_.R([_.P("isFullscreen"),_.n("design:type",String),_.n("design:paramtypes",[])],ZH.prototype,"fullscreenIcon",null);
_.J(ZH,"ytd-shorts-player-controls",function(){if(R8I===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<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(_.E().content.cloneNode(!0),
G.content.firstChild);R8I=G}G=R8I;return G},{mode:1});var nuK;_.JN(_.pg5,"yt-interstitial-view-model",{props:{data:_.hV}});var OT7=_.C(function(G){var b=G.data;return _.v("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.v("h1",{class:"reelWatchBreakViewModelHostTitle"},_.v(_.IS,{text:function(){return b().title}})),_.v("h2",{class:"reelWatchBreakViewModelHostBody"},_.v(_.IS,{text:function(){return b().body},
isOverlay:!0})),_.v(_.VX,{data:function(){return b().buttons}},{buttonViewModel:function(I,h){return _.v("div",{class:function(){return h()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.v(_.sQ,{data:I.data}))}}))},"tn");
OT7.idomCompat=!0;_.JN(OT7,"reel-watch-break-view-model",{props:{data:_.hV}});var ti=function(){return _.a.apply(this,arguments)||this};
_.M(ti,_.a);ti.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}}};
_.kV.Object.defineProperties(ti.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.g((G=this.data)==null?void 0:G.renderer,iTl)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.g((G=this.data)==null?void 0:G.renderer,PGl)}}});
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ti.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],ti.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],ti.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ti.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("data.renderer"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ti.prototype,"isSurvey",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.renderer"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],ti.prototype,"isInterstitialViewModel",null);_.R([_.N({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],ti);
_.J(ti,"ytd-reel-non-video-content-renderer",function(){if(nuK!==void 0)return nuK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return nuK=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var wrh;_.JN(_.qY9,"desktop-shorts-player-controls",{});var zn=function(){var G=_.a.apply(this,arguments)||this;G.isPlayerPaused=!1;G.isPlayerStarted=!1;G.showPlayerControls=!1;G.showScrubber=!1;G.autoHideJobId=0;G.overlayType=_.UG("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=_.U("desktop_shorts_v2_anchored_panel");G.enablePersistentAnchoredPanel=_.U("desktop_shorts_v2_persistent_anchored_panel");G.hideWatchWhilePanel=
_.U("web_shorts_hide_watch_while_panel");G.useAspectRatio=_.U("web_use_aspect_ratio");G.enableShortsModernControls=_.U("web_shorts_modern_controls");G.isPersistentPanelActive=!1;G.anchoredPanelActive=!1;G.isShortsPipActive=!1;G.smallScreenSqueezeback=!1;G.enableFlexibleOverlay=_.U("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(){_.P5(G,"calculateOverlayDensity",function(){G.calculateOverlayDensity()},100)};
return G};
_.M(zn,_.a);_.m=zn.prototype;_.m.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.m.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.m.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var G=_.LL().resolve(_.Jo);this.isWatchWhileMode&&_.uu.addJob(function(){G.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.m.handleShowReelsCommentsOverlayCommand=function(G){G=_.g(G,r2l);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))};
_.m.updateEngagementPanelVisibility=function(G,b){G&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:b?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:G}})};
_.m.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.m.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.LL().resolve(_.o0).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.m.handleWatchWhilePanelScrimClick=function(){var G=_.LL().resolve(_.Jo);this.activeWatchWhilePanel&&(G.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.m.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.m.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}}};
_.m.handlePlayerClick=function(G){var b=this,I,h;if((h=(I=window).matchMedia)!=null&&h.call(I,"(any-pointer: coarse)").matches||!G)this.showPlayerControls=!0,_.uu.cancelJob(this.autoHideJobId),this.autoHideJobId=_.FQ(_.uu,function(){b.showPlayerControls=!1},4E3)};
_.m.isFirstReel=function(){return this.index===0};
_.m.handleMouseenter=function(){_.uu.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.m.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.m.handleScrubberEnter=function(){this.showScrubber=!0};
_.m.handleScrubberLeave=function(){this.showScrubber=!1};
_.m.maybeLogNonDefaultAspectRatio=function(){var G;(G=this.data)!=null&&G.thumbnail&&this.isActive&&.5625!==h8K(this.data.thumbnail)&&_.ziO("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.m.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var G=document.querySelector("#shorts-container");if(G){var b=!1,I,h=this.playerContainer.offsetWidth,q=this.playerContainer.offsetHeight;G=G.offsetWidth/2-h/2;G>=368?(G=1,b=I=!0):G>=72?(G=0,I=!0):(G=2,I=!1);h>=600&&q>=840?G=1:window.innerWidth<=599&&(G=2,I=b=!1);this.isPersistentPanelActive&&(G=0,b=!1);this.extractActionBar=I;_.U("web_enable_flexible_overlay")&&(this.overlayDensity=G,this.extractOverlay=
b);var l;(l=this.onOverlayDensityChanged)==null||l.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.m.onOverlayDensityChange=function(){var G;(G=this.onOverlayDensityChanged)==null||G.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(G=_.Eo(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};
_.m.isVideoContent=function(G){_.LL().resolve(_.o0);return!!_.g(G,_.V4)};
_.m.isNonVideoContent=function(G){_.LL().resolve(_.o0);return!!_.g(G,_.X_)};
_.m.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.kV.Object.defineProperties(zn.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,b;return _.U("web_enable_format_first")||((G=this.data)==null?void 0:G.adsOverlay)&&_.U("web_enable_format_first_ads_only")||((b=this.data)==null?void 0:b.reelPlayerOverlayRenderer)&&_.U("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.U("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 b,I;if(((b=this.data)==null?0:b.adsOverlay)&&Object.keys((I=this.data)==null?void 0:I.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var h,q;if(((h=this.data)==null?0:h.reelPlayerOverlayRenderer)&&Object.keys((q=this.data)==null?void 0:q.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
zn.prototype.onOverlayDensityChange=zn.prototype.onOverlayDensityChange;zn.prototype.calculateOverlayDensity=zn.prototype.calculateOverlayDensity;zn.prototype.maybeLogNonDefaultAspectRatio=zn.prototype.maybeLogNonDefaultAspectRatio;zn.prototype.onEngagementPanelsChanged=zn.prototype.onEngagementPanelsChanged;zn.prototype.onScrubberDataChange=zn.prototype.onScrubberDataChange;zn.prototype.updateShouldHideOverlay=zn.prototype.updateShouldHideOverlay;
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],zn.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],zn.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],zn.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Number)],zn.prototype,"index",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],zn.prototype,"isActive",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],zn.prototype,"isHiddenInDom",void 0);_.R([_.H(),_.n("design:type",Object)],zn.prototype,"isPlayerPaused",void 0);_.R([_.H({selector:jlA}),_.n("design:type",Object)],zn.prototype,"isPlayerStarted",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"showPlayerControls",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"showScrubber",void 0);_.R([_.H(),_.n("design:type",Object)],zn.prototype,"autoHideJobId",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"overlayType",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],zn.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],zn.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],zn.prototype,"watchWhileEngagementPanels",void 0);_.R([_.H(),_.n("design:type",Object)],zn.prototype,"panelData",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"isWatchWhileMode",void 0);_.R([_.H(),_.n("design:type",String)],zn.prototype,"activeWatchWhilePanel",void 0);_.R([_.H(),_.n("design:type",Object)],zn.prototype,"hasError",void 0);_.R([_.H(),_.n("design:type",Object)],zn.prototype,"panelShowDelayMs",void 0);
_.R([_.H(),_.n("design:type",Object)],zn.prototype,"scrubberComponent",void 0);_.R([_.H({selector:_.nM,reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"isFullscreen",void 0);_.R([_.H(),_.n("design:type",Object)],zn.prototype,"shouldHideOverlay",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"enableAnchoredPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"enablePersistentAnchoredPanel",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"hideWatchWhilePanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"useAspectRatio",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"enableShortsModernControls",void 0);_.R([_.H({selector:_.OhX,reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"isPersistentPanelActive",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"anchoredPanelActive",void 0);_.R([_.H({selector:_.O2,reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"isShortsPipActive",void 0);_.R([_.H({selector:q8I,reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"smallScreenSqueezeback",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.adsOverlay"),_.n("design:type",Object),_.n("design:paramtypes",[])],zn.prototype,"isAdsOverlay",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],zn.prototype,"enableFormatFirst",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"enableFlexibleOverlay",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"overlayDensity",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"extractOverlay",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],zn.prototype,"extractActionBar",void 0);_.R([_.H(),_.n("design:type",Function)],zn.prototype,"onOverlayDensityChanged",void 0);_.R([_.H(),_.P("isActive","hasError","isPlayerStarted"),_.n("design:type",Object),_.n("design:paramtypes",[])],zn.prototype,"shouldRenderPlayerElements",null);_.R([_.H(),_.P("isActive","isWatchWhileMode"),_.n("design:type",Object),_.n("design:paramtypes",[])],zn.prototype,"watchWhileOrPersistentActive",null);
_.R([_.q5("isActive","hasError","showingExpandedOverlay"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zn.prototype,"updateShouldHideOverlay",null);_.R([_.H({reflectToAttribute:!0}),_.P("isActive","isPlayerStarted","data"),_.n("design:type",Object),_.n("design:paramtypes",[])],zn.prototype,"shouldRenderScrubber",null);
_.R([_.q5("shouldRenderScrubber"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zn.prototype,"onScrubberDataChange",null);_.R([_.P("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.n("design:type",Object),_.n("design:paramtypes",[])],zn.prototype,"overlayComponent",null);_.R([_.q5("watchWhileEngagementPanels"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zn.prototype,"onEngagementPanelsChanged",null);
_.R([_.lH("#player-container"),_.n("design:type",HTMLElement)],zn.prototype,"playerContainer",void 0);_.R([_.lH("#cinematic-container"),_.n("design:type",HTMLElement)],zn.prototype,"cinematicContainer",void 0);_.R([_.q5("isPersistentPanelActive","data.thumbnail"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zn.prototype,"maybeLogNonDefaultAspectRatio",null);
_.R([_.q5("isPersistentPanelActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zn.prototype,"calculateOverlayDensity",null);_.R([_.q5("overlayDensity","extractOverlay","extractActionBar"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zn.prototype,"onOverlayDensityChange",null);_.R([_.N({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],zn);
_.J(zn,"ytd-reel-video-renderer",function(){if(wrh!==void 0)return wrh;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div 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(_.E().content.cloneNode(!0),G.content.firstChild);return wrh=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var oK=function(){var G=_.a.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=_.U("shorts_in_playlists_web");G.shortsPipEnabled=_.U("web_shorts_pip");G.isDark=document.documentElement.hasAttribute("dark");G.shortsViewTransitions=_.U("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=_.U("web_scroll_into_view_center");G.formatFirst=_.U("web_enable_format_first")||_.U("web_enable_format_first_ads_only")||_.U("web_enable_format_first_organic_only");G.enableFlexibleOverlay=_.U("web_enable_flexible_overlay");G.extractOverlay=!1;G.useAspectRatio=_.U("web_use_aspect_ratio");
G.enableShortsSequenceRefactorUnify=_.U("web_enable_shorts_sequence_refactor_unify");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=_.Xs(56921);G.prevReelVe=_.Xs(56922);G.loopToggleOffVe=_.Xs(198013);G.loopToggleOnVe=_.Xs(198014);G.ambientModeToggleVe=_.Xs(227860);G.reelPlayerPausedStateRendererVe=_.Xs(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(b,I,h,q){b=G.getActiveReelVideo(b);G.extractOverlay=!!h;b==null||b.setAttribute("overlay-density",String(I));h===void 0||b!=null&&b.toggleAttribute("extract-overlay",
h);q===void 0||b!=null&&b.toggleAttribute("extract-action-bar",q)};
return G};
_.M(oK,_.a);_.m=oK.prototype;_.m.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.m.setShortsContentList=function(){var G=this,b=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.Nz(this.shortsContentList)):[],I=this.firstShortsData;if(I){var h=this.reelWatchSequenceResponse;if(I=this.shortsController==null?void 0:Bkv(b,I,h!=null?h:null)){h=I.newContentList;var q=I.indexChange;if(h.length!==b.length){var l;(l=this.intersectionObserver)==null||l.disconnect();this.shortsContentList=h;q!==0&&(this.index=q,_.q_(_.uu,function(){var V;(V=G.getActiveReelVideo(q))==
null||V.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"});G.movePlayerToVideo(q)},100));
_.uu.addLowPriorityJob(function(){G.observeShorts()},500)}}}};
_.m.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.m.onResize=function(){var G=_.Cw(),b=G.dispatch,I=this.calculateIsSmallWidth();b.call(G,_.wK({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:I}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.m.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}}};
_.m.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var G=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,b=G,I=0;G<250&&(b=G+this.shortsInnerContainer.clientWidth,I=24);_.G8(this.hostElement,{"--ytd-shorts-header-width":b+"px","--ytd-shorts-top-spacing":I+"px"})}};
_.m.isFirstShorts=function(G){return G&&!this.enableShortsSequenceRefactorUnify?this.index===-G.length:this.index===0};
_.m.isActiveReel=function(G,b,I){I&&(b=this.calculatePrevIndex(b,I));return G===b};
_.m.onFullscreenChange=function(){_.U("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.LL().resolve(_.zO).close(!0))};
_.m.engagementPanelsChanged=function(){var G;this.watchWhileEngagementPanels=(G=this.data)==null?void 0:G.engagementPanels};
_.m.unregisterPanels=function(){var G=_.LL().resolve(_.Jo);if(this.watchWhileEngagementPanels)for(var b=_.e(this.watchWhileEngagementPanels),I=b.next();!I.done;I=b.next()){var h=I.value,q=void 0,l=void 0;I=(q=h.engagementPanelSectionListRenderer)==null?void 0:(l=q.identifier)==null?void 0:l.tag;h=this.getPanelIdentifier(h.engagementPanelSectionListRenderer);G&&(I&&G.panelMap.delete(I),h&&_.U("web_shorts_panel_caching_bugfix")&&(q=I=void 0,(q=(I=G).unregisterPanelContent)==null||q.call(I,h)))}};
_.m.isVideoContent=function(G){return this.isVideoContentCommand(G==null?void 0:G.command)};
_.m.getActiveReelVideo=function(G){return _.Eo(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+G+'"]')};
_.m.calculatePrevIndex=function(G,b){return b?G-((b==null?void 0:b.length)||0):-1};
_.m.onKeydown=function(G){var b=_.Wy(G)||[];if(!_.in1(b))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")&&_.U("web_shorts_keyboard_enable_seek_shortcuts")){var I;(I=this.player)==null||I.seekBy(-5)}else if((G.code==="KeyD"||G.code===
"ArrowRight")&&_.U("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var h;(h=this.player)==null||h.seekBy(5)}};
_.m.onServiceRequestCompleted=function(G,b){G=b.data;if(this.enableShortsSequenceRefactorUnify){if(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)};
_.m.handleEngagementPanelVisibilityChanged=function(G,b){var I=_.LL().resolve(_.Jo);if(G&&I){var h=this.getPanelIdentifier(G);if(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==h){I.hidePanel({identifier:this.activePanel});var q;this.activePanel=((q=G.identifier)==null?void 0:q.tag)||G.panelIdentifier}else this.isPersistentPanelActive=!0,_.Cw().dispatch(U2E(!0)),this.anchoredPanelActive=!0,this.activePanel=h;else b==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===h&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Cw().dispatch(U2E(!1)))}};
_.m.handlePanelScrimClick=function(){var G=_.LL().resolve(_.Jo);this.activePanel&&(G.hidePanel({identifier:this.activePanel}),_.Cw().dispatch(U2E(!1)))};
_.m.getShortsLoopSetting=function(){var G,b,I,h,q;return _.c(function(l){switch(l.nextAddress){case 1:return _.U("kevlar_shorts_auto_advance")?l.yield(_.nm.getInstance(),2):l.return(!0);case 2:return(G=l.yieldResult)?l.yield(G.get("sfvles"),3):l.return(!0);case 3:return I=(b=l.yieldResult)!=null?b:!1,l.yield(G.get("sfvle"),4);case 4:return q=(h=l.yieldResult)!=null?h:!0,I?l.return(q):l.return(!0)}})};
_.m.handleSignalActionToggleLoopShortsOff=function(){var G=this,b,I,h;return _.c(function(q){switch(q.nextAddress){case 1:if(!G.player)return q.return();G.player.setLoopVideo(!1);b=_.qo();_.dS(b,G.loopToggleOffVe);return q.yield(_.nm.getInstance(),2);case 2:return(I=q.yieldResult)?q.yield(I.set("sfvle",!1),3):q.return();case 3:return q.yield(I.set("sfvles",!0),4);case 4:h=_.m$(),_.eX(0,203,!1),_.eX(0,204,!0),h.save(),_.ip(q)}})};
_.m.handleSignalActionToggleLoopShortsOn=function(){var G=this,b,I,h;return _.c(function(q){switch(q.nextAddress){case 1:if(!G.player)return q.return();G.player.setLoopVideo(!0);b=_.qo();_.dS(b,G.loopToggleOnVe);return q.yield(_.nm.getInstance(),2);case 2:return(I=q.yieldResult)?q.yield(I.set("sfvle",!0),3):q.return();case 3:return q.yield(I.set("sfvles",!0),4);case 4:h=_.m$(),_.eX(0,203,!0),_.eX(0,204,!0),h.save(),_.ip(q)}})};
_.m.handleSignalActionToggleCinematicShortsOn=function(){m2E(!0);var G;(G=this.JSC$22777_cinematicController)==null||_.Oyg(G,!0);_.dS(_.qo(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.m.handleSignalActionToggleCinematicShortsOff=function(){m2E(!1);var G;(G=this.JSC$22777_cinematicController)==null||_.Oyg(G,!1);_.dS(_.qo(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.m.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.m.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.m.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var G=this.overlayContainer.querySelector("#experiment-overlay");G&&_.uu.addLowPriorityJob(function(){G.style.display="unset"},100)}};
_.m.getCurrentShort=function(){if(this.currentEndpoint){var G=this.currentEndpoint;if(this.isNonVideoContentCommand(G)){var b=_.g(G,_.X_);return{reelNonVideoContentRenderer:_.g(b==null?void 0:b.renderer,_.GW),command:G}}if(this.data){var I;b=(I=_.g(this.currentEndpoint,_.V4))==null?void 0:I.thumbnail;var h;I=(h=this.data.overlay)==null?void 0:h.reelPlayerOverlayRenderer;_.LL().resolve(_.o0);G=this.data;var q,l;h=(q=G.overlay)==null?void 0:(l=q.shortsAdsRenderer)==null?void 0:l.adSlots;if(h!==void 0)h.length===
0?(_.dQ("Shorts ads returned no ad slots."),G=void 0):(h.length>1&&_.dQ("Shorts ads has more than one ad slots."),G=_.g(h[0],_.NYb));else{var V,D;G=_.g((V=G.overlay)==null?void 0:(D=V.shortsAdsRenderer)==null?void 0:D.overlay,_.NYb)}V=G;G=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.g(this.currentEndpoint,_.V4),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var k;return{reelPlayerOverlayRenderer:I,thumbnail:b,command:G,adsOverlay:V,
videoId:(k=_.g(this.currentEndpoint,_.V4))==null?void 0:k.videoId}}}};
_.m.created=function(){var G=this;this.scrollToVideoThrottle=new _.GB(function(b,I){I=I===void 0?"smooth":I;var h;(h=G.getActiveReelVideo(b))==null||h.scrollIntoView({behavior:I,block:"nearest",inline:G.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.LL().resolve(_.o0);this.maybeCreateIntersectionObserver()};
_.m.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.m.attached=function(){var G=this;_.LL().resolve(_.o0).registerRootElement(this);this.pageScrollElement=_.Eo(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.I9(this,this.processResetAction));_.U("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"}))};
_.m.updateReelWatchSequenceResponse=function(){var G=this,b;if(_.U("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((b=_.g(this.currentEndpoint,_.V4))==null?0:b.sequenceParams)&&!this.reelWatchSequenceResponse){var I;(I=this.shortsController)==null||fCv(I,this.currentEndpoint).then(function(h){h&&(G.reelWatchSequenceResponse=h,_.uu.addLowPriorityJob(function(){G.observeShorts()}))})}};
_.m.calculateSqueezebackPanelSize=function(){var G=this,b=window.innerWidth-456-(window.innerHeight-106)*.5625;_.uu.addLowPriorityJob(function(){b<360?_.Cw().dispatch(slI(!0)):(G.hostElement.style.setProperty("--anchored-panel-width",Math.min(b,480)+"px"),_.Cw().dispatch(slI(!1)))})};
_.m.detached=function(){var G=_.LL().resolve(_.o0);G.rootElement=void 0;var b;(b=G.unsubscribeFromStore)==null||b.call(G);G.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.I9(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.m.onResizeFinished=function(G,b){var I=this,h=new ResizeObserver(function(){I.shortsContainer.style.overflowY="hidden";_.uu.addLowPriorityJob(function(){b()},100)});
h.observe(G);return h};
_.m.resetDocumentScrollTop=function(){var G,b;if((G=document)==null?0:(b=G.scrollingElement)==null?0:b.scrollTop)document.scrollingElement.scrollTop=0};
_.m.loadPage_=function(G){var b=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=_.g(this.currentEndpoint,_.V4))==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(){b.isPlayerStarted&&
(b.handleOnPlaybackCommand(),b.afterPlayerStarted=function(){})};
this.registerPanel(G)}};
_.m.afterPlayerStarted=function(){};
_.m.handleOnPlaybackCommand=function(){if(_.U("web_shorts_comment_stickers")&&this.isPlayerStarted){var G,b=(G=_.g(this.currentEndpoint,_.V4))==null?void 0:G.onPlaybackCommand;b&&this.ytComponentBehavior.resolveCommand(b)}};
_.m.maybeCreateIntersectionObserver=function(){var G=this,b=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==b){this.intersectionObserverThreshold=b;var I={rootMargin:"0px",threshold:b},h;(h=this.intersectionObserver)==null||h.disconnect();this.intersectionObserver=new IntersectionObserver(function(q){q=_.e(q);for(var l=q.next();!l.done;l=q.next())if(l=l.value,l.intersectionRatio>b){l=Number(l.target.id);if(isNaN(l))break;if(l===G.index)break;
_.RGv();G.loadVideo(l);_.ZE("r_vtc")}},I);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.m.observeShorts=function(){var G,b,I,h=this.enableShortsSequenceRefactorUnify?((G=this.shortsContentList)==null?void 0:G.length)||0:(((b=this.shortsProcessedPrevSequence)==null?void 0:b.length)||0)+(((I=this.shortsProcessedSequence)==null?void 0:I.length)||0);this.carouselContainers.length<h&&(this.carouselContainers=[].concat(_.Nz(_.Eo(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))));G=_.e(this.carouselContainers);for(b=G.next();!b.done;b=G.next())b=b.value,I=void 0,(I=this.intersectionObserver)==
null||I.observe(b)};
_.m.initCsi=function(){_.bAI("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"}},b,I;if((b=this.playerData)==null?0:(I=b.cacheMetadata)==null?0:I.isCacheHit)G.isCacheHit=!0;var h;if(b=(h=_.g(this.currentEndpoint,_.V4))==null?void 0:
h.prefetchTaskId)G.prefetchInfo={taskId:b};_.Tm(G)};
_.m.isAd=function(){var G,b;return!!((G=_.g(this.currentEndpoint,_.V4))==null?0:(b=G.adClientParams)==null?0:b.isAd)};
_.m.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.m.getPlayerContainer=function(){var G;return(G=_.Eo(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:G.playerContainer};
_.m.onPlayerStateChange=function(G){var b=this;this.isPlayerPaused=G===2;G!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?G===1&&this.index===0&&(this.isPlayerStarted||_.Cw().dispatch(guI(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Cw().dispatch(guI(!0)));this.player&&!this.player.getLoopVideo()&&_.uu.addLowPriorityJob(function(){b.getShortsLoopSetting().then(function(I){var h;(h=b.player)==null||h.setLoopVideo(I)})});
this.isPlayerPaused&&_.U("web_shorts_paused_state_logging")&&_.FT(_.gL(),[this.reelPlayerPausedStateRendererVe])};
_.m.isShortPlayable=function(){if(_.U("kevlar_playable_short_killswitch"))return!0;var G;return(G=this.playerData)!=null&&G.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.m.setNormalPlaybackSpeed=function(){var G=this,b,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(G.getPlayer().getPlayerPromise(),2);b=h.yieldResult;I=b.getPlaybackRate();I!==1&&(G.storedPlaybackSpeed=I,b.setPlaybackRate(1));_.ip(h)})};
_.m.restorePlaybackSpeed=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1)return G.storedPlaybackSpeed===null?I.jumpTo(0):I.yield(G.getPlayer().getPlayerPromise(),3);b=I.yieldResult;b.setPlaybackRate(G.storedPlaybackSpeed);G.storedPlaybackSpeed=null;_.ip(I)})};
_.m.playerDataChanged=function(){var G=this,b,I,h,q,l,V,D,k,L;return _.c(function(x){if(x.nextAddress==1){b=G.getPlayer();G.enableShortsSequenceRefactorUnify||(I=G.intersectionObserver)==null||I.disconnect();if(G.playerData){if(((h=G.playerData.videoDetails)==null?void 0:h.videoId)!==((q=b.getPlayer())==null?void 0:q.getVideoData().video_id)){l={};if(V=_.g(G.currentEndpoint,_.V4))l.watch_endpoint=V,V.endTimeSeconds&&(l.end=V.endTimeSeconds);b.loadVideoWithPlayerResponse(G.playerData,l)}}else return x.return();
return G.player?x.jumpTo(2):x.yield(b.getPlayerPromise(),3)}x.nextAddress!=2&&(G.player=x.yieldResult,G.JSC$22777_playerStateChangeListener=G.onPlayerStateChange.bind(G),G.player.addEventListener("onStateChange",G.JSC$22777_playerStateChangeListener),_.U("kevlar_client_enable_shorts_player_bootstrap")&&_.PR(),G.scrollToVideoThrottle.fire(G.index),G.movePlayerToVideo(G.index),_.uu.addLowPriorityJob(function(){G.getShortsLoopSetting().then(function(f){var T;(T=G.player)==null||T.setLoopVideo(f)})}),
_.Sx8.resolve(G.player),G.player.syncVolume(),G.getPlayer().focusOnPlayer());
G.enableShortsSequenceRefactorUnify||_.uu.addLowPriorityJob(function(){G.observeShorts()},100);
D=G.player.getPlayerState(G.player.getPresentingPlayerType());D!==1||G.isPlayerStarted||_.Cw().dispatch(guI(!0));G.updateBackNavContainerWidth();k=_.g(G.currentEndpoint,_.V4);((L=k)==null?0:L.startTimeSeconds)&&G.player.seekTo(k.startTimeSeconds);if(G.JSC$22777_cinematicController||G.cinematicsInitializeJobId)return x.return();G.cinematicsInitializeJobId=_.uu.addLowPriorityJob(function(){G.initCinematicController();G.cinematicsInitializeJobId=void 0});
_.ip(x)})};
_.m.onShortUndoDismiss=function(){var G=this,b=x2v().pop();b!==void 0&&(_.D1(this,function(){G.showCardWithIndex(b)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.m.onShortsDismiss=function(G){if(G=G.detail.reelDismissalActionRenderer)(G=_.g(G.onDismissalCompletionRenderer,_.tSI))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:G}}}),this.scrollAndDismissCard()};
_.m.processReelNonVideoContentDismissalCommand=function(G){var b=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);G=_.g(G,y27);this.activeDimissalTimeout=setTimeout(function(){b.scrollAndDismissCard()},Number(G==null?void 0:G.delayMs))};
_.m.scrollAndDismissCard=function(){var G=this,b=this.index;x2v().push(b);_.D1(this,function(){var I=G.getPlayableNextIndex();I!==null&&(G.hideCardWithIndex(b),G.scrollToVideoThrottle.fire(I))})};
_.m.hideCardWithIndex=function(G){if(G=this.getActiveReelVideo(G))G.hidden=!0};
_.m.showCardWithIndex=function(G){if(G=this.getActiveReelVideo(G))G.hidden=!1};
_.m.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.m.activeChanged=function(G){_.Cw().dispatch(_.wK({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:G}}));if(G)document.addEventListener("keydown",_.I9(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var b;(b=this.player)==null||b.sendAbandonmentPing()}var I;(I=this.player)==null||I.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.I9(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.m.graftClientVisualElements=function(){if(this.data){var G=_.qo();_.O_z(G,_.X8({response:this.reelWatchSequenceResponse}));_.iz(G,this.nextReelVe);_.iz(G,this.prevReelVe);_.U("kevlar_shorts_auto_advance")&&(_.iz(G,this.loopToggleOffVe),_.iz(G,this.loopToggleOnVe));_.iz(G,this.ambientModeToggleVe);_.FT(_.gL(),[this.nextReelVe,this.prevReelVe]);_.U("web_shorts_paused_state_logging")&&_.iz(G,this.reelPlayerPausedStateRendererVe)}};
_.m.graftNvcRenderer=function(){var G,b,I,h,q,l,V=this.enableShortsSequenceRefactorUnify?(G=this.shortsContentList)==null?void 0:(b=G[this.index])==null?void 0:b.command:this.index<0?(I=this.shortsProcessedPrevSequence)==null?void 0:(h=I[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:h.command:(q=this.shortsProcessedSequence)==null?void 0:(l=q[this.index])==null?void 0:l.command;if(V&&this.isNonVideoContentCommand(V)){G=_.g(V,_.X_);var D,k;(G=(D=_.g(G==null?void 0:G.renderer,_.GW))==
null?void 0:(k=D.loggingDirectives)==null?void 0:k.trackingParams)&&_.qo().graftServerVe(G)}};
_.m.setActiveIndex=function(){_.LL().resolve(_.o0).setActiveIndex(this.index)};
_.m.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.m.lazyUpdateMiniplayerData=function(){var G=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.uu.addLowPriorityJob(function(){G.updateMiniplayerData();G.updateMiniplayerDataJobId=void 0}))};
_.m.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.uu.cancelJob(this.updateMiniplayerDataJobId)};
_.m.updateMiniplayerData=function(){var G,b,I,h=_.LL().resolve(_.zO),q={shortsData:this.getCurrentShort(),previousButtonDisabled:!((G=this.prevButtonData)==null||!G.isDisabled),nextButtonDisabled:!((b=this.nextButtonData)==null||!b.isDisabled),playabilityStatus:(I=this.playerData)==null?void 0:I.playabilityStatus};_.ZB(h,q)};
_.m.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)};
_.m.movePlayerToVideo=function(G,b){var I=this;b=b===void 0?!0:b;var h=this.getActiveReelVideo(G),q=this.getPlayer();if(h){this.overlayContainer?h.appendChild(this.overlayContainer):(this.overlayContainer=_.Eo(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,h.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||q.appendTo(this.overlayContainer.playerContainer,void 0,!0));var l;(l=this.player)==null||l.setSize(NaN,NaN);this.isActive||_.FQ(_.uu,function(){I.isActive=
!0});
q.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.U("reels_web_disable_rtr_tick")||_.U("reels_web_use_pbs_first_shorts")&&G===0||_.sS("r_tr");this.currentPlayerIndex=G;h.appendChild(this.errorScreenContainer);var V;(V=this.JSC$22777_cinematicController)==null||_.EpK(V)}else b?_.uu.addLowPriorityJob(function(){I.movePlayerToVideo(I.index,!1)}):Math.random()<=_.Te("web_shorts_error_logging_threshold")&&_.u6(new _.Wf("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:b,
index:G}))};
_.m.enableFormatFirst=function(G){return _.U("web_enable_format_first")||G.adsOverlay&&_.U("web_enable_format_first_ads_only")||G.reelPlayerOverlayRenderer&&_.U("web_enable_format_first_organic_only")};
_.m.getAspectRatio=function(G){if(this.enableFormatFirst(G))return(G==null?0:G.thumbnail)&&h8K(G.thumbnail)?"--ytd-shorts-player-ratio: "+h8K(G.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.m.getBackgroundImage=function(G){if(G!=null&&G.thumbnail)return(G=_.u$(G.thumbnail.thumbnails))?'background-image:url("'+G+'");':"background-color:black;"};
_.m.onPersistentPanelActiveChanged=function(){var G=this.getCurrentShort();if(G&&this.enableFormatFirst(G)&&(G==null?0:G.thumbnail)&&h8K(G.thumbnail)!==.5625){var b;(b=this.player)==null||b.setSize(NaN,NaN)}};
_.m.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.m.moveCinematicsToVideo=function(){var G=_.Eo(this.hostElement).querySelector("ytd-reel-video-renderer");(G==null?0:G.cinematicContainer)&&G.cinematicContainer!==this.shortsCinematicContainer.parentElement&&G.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.m.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.m.updatePrevButtonData=function(){var G=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);G?this.prevButtonData=G=Object.assign({},G,{accessibility:{label:_.qP("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.qP("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=G=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.m.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.m.updateNextButtonData=function(){var G=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);G&&(this.nextButtonData=G=Object.assign({},G,{accessibility:{label:_.qP("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.qP("NEXT_VIDEO_LABEL")||""}))};
_.m.getPlayablePreviousIndex=function(){for(var G,b=this.index-1;b>=-(((G=this.prevShortsSequence)==null?void 0:G.length)||0);b--)if(!x2v().includes(b))return b;return null};
_.m.getIndexInSequence=function(G,b){return G.findIndex(function(I){var h;return((h=_.g(I.command,_.V4))==null?void 0:h.videoId)===b})};
_.m.handlePrevButtonClick=function(G){var b=this,I,h;return _.c(function(q){I=b.getPlayablePreviousIndex();if(I===null)return q.return();b.gestureType=((h=G)==null?void 0:h.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";I===0&&(b.hidePreviousButtonImmediately=!0);if(b.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){b.scrollToVideoThrottle.fire(I,"auto")}),q.return();
b.scrollToVideoThrottle.fire(I);_.ip(q)})};
_.m.getPlayableNextIndex=function(){for(var G,b,I=this.index+1;I<(this.enableShortsSequenceRefactorUnify?(G=this.shortsContentList)==null?void 0:G.length:((b=this.shortsProcessedSequence)==null?void 0:b.length)||0);I++)if(!x2v().includes(I))return I;return null};
_.m.handleNextButtonClick=function(G,b){var I=this,h,q;return _.c(function(l){h=I.getPlayableNextIndex();if(h===null)return l.return();h===1&&(I.showPreviousButtonImmediately=!0);I.gestureType=((q=G)==null?void 0:q.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";b&&(I.gestureType=b);if(I.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){I.scrollToVideoThrottle.fire(h,"auto")}),l.return();
I.scrollToVideoThrottle.fire(h);_.ip(l)})};
_.m.handleReelNavigateCommand=function(G,b,I){(G=_.g(G,d2a))&&b&&G.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(I)};
_.m.loadVideo=function(G,b){b=b===void 0?!1:b;if(G!==this.currentPlayerIndex){_.Cw().dispatch(guI(!1));if(this.isAd()&&!b){var I;(I=this.player)==null||I.notifyShortsAdSwipeEvent()}if((b=this.JSC$22777_cinematicController)!=null){var h;(h=b.currentCinematicEffect)==null||h.pause()}if((h=this.JSC$22777_cinematicController)!=null){var q;(q=h.currentCinematicEffect)==null||q.clear()}h=G>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(h));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var l,V,D,k,L,x;q=this.enableShortsSequenceRefactorUnify?(l=this.shortsContentList)==null?void 0:(V=l[G])==null?void 0:V.command:G<0?(D=this.shortsProcessedPrevSequence)==null?void 0:(k=D[this.shortsProcessedPrevSequence.length+G])==null?void 0:k.command:(L=this.shortsProcessedSequence)==null?void 0:(x=L[G])==
null?void 0:x.command;this.index=G;this.gestureType||(this.gestureType=h?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");q&&this.isVideoContentCommand(q)&&(this.ytComponentBehavior.resolveCommand(q,{form:{createScreenConfig:{clickedVisualElement:h?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(q&&this.isNonVideoContentCommand(q)){this.currentEndpoint=q;this.data=void 0;l=_.qo();V=_.g(q,_.X_);var f,T;(V=(f=
_.g(V==null?void 0:V.renderer,_.GW))==null?void 0:(T=f.screenLoggingData)==null?void 0:T.screenVeType)&&_.oa(l,V);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(f=this.getActiveReelVideo(G))&&f.appendChild(this.overlayContainer)}var B,A;f=this.enableShortsSequenceRefactorUnify?((B=this.shortsContentList)==null?void 0:B.length)===G+1:((A=this.reelWatchSequenceResponse)==null?void 0:A.entries)&&G===this.reelWatchSequenceResponse.entries.length-1;var t;if(((t=
this.reelWatchSequenceResponse)==null?0:t.continuationEndpoint)&&f){var y,F;B={contentPlaybackContext:_.pc({},(F=_.g((y=this.currentEndpoint)==null?void 0:y.commandMetadata,_.IW))==null?void 0:F.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:B})}var W,O;G=this.enableShortsSequenceRefactorUnify?G===0:G===-(((W=this.reelWatchSequenceResponse)==null?void 0:(O=W.prevEntries)==null?void 0:O.length)||0);var K,u;((K=this.reelWatchSequenceResponse)==
null?0:K.prevContinuationEndpoint)&&((u=this.reelWatchSequenceResponse)==null?0:u.prevEntries)&&G&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.m.setMiniplayerPreview=function(G){G=(G===void 0?0:G)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var b,I,h,q,l=_.LL().resolve(_.zO),V={shortsData:void 0,shortsPreviewThumbnail:G?this.enableShortsSequenceRefactorUnify?(b=this.shortsContentList)==null?void 0:(I=b[G])==null?void 0:I.thumbnail:(h=this.shortsProcessedSequence)==null?void 0:(q=h[G])==null?void 0:q.thumbnail:void 0};_.ZB(l,V)};
_.m.updateTitle=function(G){var b,I;G=(G==null?0:G.adSlots)?"":(I=G==null?void 0:(b=G.videoDetails)==null?void 0:b.title)!=null?I:"";_.O3(this.hostElement,"yt-update-title",G)};
_.m.registerPanel=function(G){var b=_.LL().resolve(_.Jo);if(b){G=_.e(G.engagementPanels||[]);for(var I=G.next();!I.done;I=G.next()){I=I.value;var h=this.getPanelIdentifier(I.engagementPanelSectionListRenderer),q=void 0,l=void 0;(l=(q=b).registerPanelContent)==null||l.call(q,h,I)}}};
_.m.getPanelIdentifier=function(G){var b;return(G==null?void 0:(b=G.identifier)==null?void 0:b.tag)||(G==null?void 0:G.panelIdentifier)||(G==null?void 0:G.targetId)};
_.m.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.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Cw().dispatch(guI(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=[];_.Cw().dispatch(U2E(!1));
var G;(G=this.shortsController)!=null&&(G.dismissedIndices=[]);var b;(b=this.shortsController)!=null&&b.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.LL().resolve(_.zO).close(!0)};
_.m.processAppendReelWatchSequenceContinuationEntriesAction=function(G){var b=this,I;(I=this.intersectionObserver)==null||I.disconnect();G=G.appendReelWatchSequenceContinuationEntriesAction;if(G==null?0:G.entries){var h;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Nz(((h=this.reelWatchSequenceResponse)==null?void 0:h.entries)||[]),_.Nz(G.entries)),continuationEndpoint:G.continuationEndpoint})}else if(G==null?0:G.prevEntries){var q;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Nz(((q=this.reelWatchSequenceResponse)==null?void 0:q.prevEntries)||[]),_.Nz(G.prevEntries)),prevContinuationEndpoint:G.prevContinuationEndpoint});_.uu.addLowPriorityJob(function(){b.movePlayerToVideo(b.index);b.scrollToVideoThrottle.fire(b.index,"instant")})}else return;
_.uu.addLowPriorityJob(function(){b.observeShorts()},100)};
_.m.processWatchSequence=function(G){var b=this;return G.map(function(I){I=I.command;if(b.isVideoContentCommand(I)){var h=_.g(I,_.V4);return{reelPlayerOverlayRenderer:_.g(h==null?void 0:h.overlay,_.I9b),thumbnail:h.thumbnail,command:I}}return b.isNonVideoContentCommand(I)?(h=_.g(I,_.X_),{reelNonVideoContentRenderer:_.g(h==null?void 0:h.renderer,_.GW),command:I}):{command:I}})};
_.m.calculateIntersectionObserverThreshold=function(){var G=_.Eo(this.hostElement).querySelector("ytd-reel-video-renderer"),b=1;(G==null?0:G.offsetHeight)&&(G==null?0:G.offsetWidth)&&(b=Math.min(G.offsetHeight,this.shortsContainer.offsetHeight)/G.offsetHeight*(Math.min(G.offsetWidth,this.shortsContainer.offsetWidth)/G.offsetWidth));return Math.round(b*.6*10)/10};
_.m.isVideoContentCommand=function(G){_.LL().resolve(_.o0);return!!_.g(G,_.V4)};
_.m.isNonVideoContentCommand=function(G){_.LL().resolve(_.o0);return!!_.g(G,_.X_)};
_.m.initCinematicController=function(){var G=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22777_cinematicController=new _.B7(this.shortsCinematicContainer,this.player);var b,I=_.g((b=this.data)==null?void 0:b.background,_.$L);_.wah(this.JSC$22777_cinematicController,I);_.Oyg(this.JSC$22777_cinematicController,lCo(I));_.npI(this.JSC$22777_cinematicController);_.uu.addLowPriorityJob(function(){G.moveCinematicsToVideo()})}};
_.m.handleMiniplayerNavigateShorts=function(G){G==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():G==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.m.handleSignalActionToggleShortsPictureInPicture=function(){if(_.LL().resolve(_.zO).pictureInPictureSupported()){var G=_.LL().resolve(_.o0);if(_.U("web_shorts_pip")){var b=_.LL().resolve(_.zO);G.isShortsPipActive()?b.deactivate():b.isMiniplayerActive()||(_.Ws().shortsPipActivation=!0,_.QBj(b))}}else(G=this.player)==null||G.togglePictureInPicture()};
_.kV.Object.defineProperties(oK.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.reelWatchSequenceResponse)!=null&&G.prevEntries)return this.processWatchSequence([].concat(_.Nz(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(_.Nz(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 b;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((b=this.shortsProcessedSequence)==null?void 0:b.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var I;b=_.g((I=this.firstShortsData)==null?void 0:I.command,_.V4);if(b==null||!b.videoId)return this.shortsProcessedSequence;I=this.getIndexInSequence(this.shortsSequence,
b.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,_.uu.addLowPriorityJob(function(){G.scrollToVideoThrottle.fire(G.index,"auto");G.movePlayerToVideo(G.index)}));
return[].concat(_.Nz(this.shortsSequence))}_.q_(_.uu,function(){G.observeShorts()},100);
return[this.firstShortsData].concat(_.Nz(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 b,I;return this.index===((b=this.reelWatchSequenceResponse)==null?void 0:(I=b.entries)==null?void 0:I.length)}var h;return!((h=this.reelWatchSequenceResponse)==null?0:h.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,b,I;return this.isShortPlayable()||((b=_.g((G=this.data)==null?void 0:G.watchStatus,_.cyX))==null?void 0:(I=b.style)==null?void 0:I.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var G=this,b=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),I;if((this.data||b)&&(((I=this.data)==null?0:I.engagementPanels)||this.isAd()||b)){b=!1;this.activePanel="shorts-comments-panel";var h;I=_.e(((h=this.data)==null?void 0:h.engagementPanels)||[]);for(h=I.next();!h.done;h=I.next())if(this.getPanelIdentifier(h.value.engagementPanelSectionListRenderer)===this.activePanel){b=!0;break}if(this.isPersistentPanelActive){var q=
_.LL().resolve(_.Jo);_.FQ(_.uu,function(){q.showPanel({identifier:G.activePanel,target:null})},100)}var l;
h=[].concat(_.Nz(Object.values(((l=this.data)==null?void 0:l.engagementPanels)||{})));l=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);I=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return l===void 0&&I===void 0||(l==null?0:l.isDisabled)||(I==null?void 0:I.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!b?(b=h==null?void 0:h.findIndex(function(V){var D,k;return((D=V.engagementPanelSectionListRenderer)==null?void 0:(k=D.identifier)==null?void 0:k.tag)==="shorts-comments-panel"}),b===-1||b===void 0||h!=null&&h.splice(b,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.qP("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.qP("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:_.qP("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.qP("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(_.Nz(Object.values(h||
{})))):h}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var G=this,b,I,h;if((b=this.playerData)==null?0:(I=b.playabilityStatus)==null?0:(h=I.errorScreen)==null?0:h.playerInterstitialRenderer)return _.uu.addLowPriorityJob(function(){G.movePlayerToVideo(G.index)}),this.playerData.playabilityStatus.errorScreen;
var q,l;return((q=this.data)==null?void 0:q.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((l=this.data)==null?0:l.watchStatus)&&_.g(this.data.watchStatus,_.ysn)?(_.uu.addLowPriorityJob(function(){G.movePlayerToVideo(G.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.kV.Object.defineProperties(oK,{template:{configurable:!0,enumerable:!0,get:function(){if(WFh===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <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(_.E().content.cloneNode(!0),G.content.firstChild);WFh=G}G=WFh;return G}}});
oK.prototype.onNextButtonDataChange=oK.prototype.onNextButtonDataChange;oK.prototype.onPrevButtonDataChange=oK.prototype.onPrevButtonDataChange;oK.prototype.onPersistentPanelActiveChanged=oK.prototype.onPersistentPanelActiveChanged;oK.prototype.lazyUpdateMiniplayerData=oK.prototype.lazyUpdateMiniplayerData;oK.prototype.onShortsPipActiveChanged=oK.prototype.onShortsPipActiveChanged;oK.prototype.setActiveIndex=oK.prototype.setActiveIndex;oK.prototype.graftNvcRenderer=oK.prototype.graftNvcRenderer;
oK.prototype.graftClientVisualElements=oK.prototype.graftClientVisualElements;oK.prototype.onActiveChanged=oK.prototype.onActiveChanged;oK.prototype.onShortsDismiss=oK.prototype.onShortsDismiss;oK.prototype.onShortUndoDismiss=oK.prototype.onShortUndoDismiss;oK.prototype.playerDataChanged=oK.prototype.playerDataChanged;oK.prototype.afterPlayerStarted=oK.prototype.afterPlayerStarted;oK.prototype.updateReelWatchSequenceResponse=oK.prototype.updateReelWatchSequenceResponse;
oK.prototype.unhideCurrentOverlay=oK.prototype.unhideCurrentOverlay;oK.prototype.onServiceRequestCompleted=oK.prototype.onServiceRequestCompleted;oK.prototype.engagementPanelsChanged=oK.prototype.engagementPanelsChanged;oK.prototype.onFullscreenChange=oK.prototype.onFullscreenChange;oK.prototype.onResize=oK.prototype.onResize;oK.prototype.setShortsContentList=oK.prototype.setShortsContentList;oK.prototype.setFirstShortsData=oK.prototype.setFirstShortsData;
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],oK.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.Id.YtPageBehavior),_.n("design:type",Object)],oK.prototype,"ytPageBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],oK.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.Y6),_.n("design:type",Object)],oK.prototype,"ironResizableBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],oK.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],oK.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],oK.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],oK.prototype,"playerData",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"reelWatchSequenceResponse",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"cachedReelWatchSequenceResponse",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"cachedSequenceParams",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"cachedSequenceProvider",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"currentEndpoint",void 0);
_.R([_.H(),_.n("design:type",Object)],oK.prototype,"nextButtonData",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"prevButtonData",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"isPreviousPageShorts",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"index",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"delayedActiveIndex",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"playablePreviousIndex",void 0);
_.R([_.H(),_.n("design:type",Object)],oK.prototype,"player",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"isPlayerPaused",void 0);_.R([_.H({selector:jlA}),_.n("design:type",Object)],oK.prototype,"isPlayerStarted",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"intersectionObserver",void 0);_.R([_.H(),_.n("design:type",Number)],oK.prototype,"cinematicsInitializeJobId",void 0);_.R([_.H(),_.n("design:type",Number)],oK.prototype,"updateMiniplayerDataJobId",void 0);
_.R([_.H(),_.n("design:type",Object)],oK.prototype,"fitToVisibleBounds",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"pageSubtype",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],oK.prototype,"enablePreviousContinuation",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"shortsPipEnabled",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"isDark",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"shortsViewTransitions",void 0);_.R([_.H({selector:_.nM,reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"isFullscreen",void 0);_.R([_.H({selector:_.O2,reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"isShortsPipActive",void 0);_.R([_.lH("#shorts-inner-container"),_.n("design:type",HTMLElement)],oK.prototype,"shortsInnerContainer",void 0);
_.R([_.lH("#back-nav-button ytd-button-renderer"),_.n("design:type",_.L5)],oK.prototype,"backNavButton",void 0);_.R([_.lH("#shorts-container"),_.n("design:type",HTMLElement)],oK.prototype,"shortsContainer",void 0);_.R([_.Sr("error-screen"),_.n("design:type",HTMLElement)],oK.prototype,"errorScreenContainer",void 0);_.R([_.Sr("player"),_.n("design:type",Object)],oK.prototype,"playerElement",void 0);
_.R([_.Sr("shorts-cinematic-container"),_.n("design:type",HTMLElement)],oK.prototype,"shortsCinematicContainer",void 0);_.R([_.Sr("initial-player-container"),_.n("design:type",HTMLElement)],oK.prototype,"initialPlayerContainer",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"buttonOverride",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"anchoredPanelActive",void 0);_.R([_.H(),_.n("design:type",String)],oK.prototype,"activePanel",void 0);
_.R([_.H(),_.n("design:type",Object)],oK.prototype,"isActive",void 0);_.R([_.H({selector:q8I,reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"smallScreenPersistentPanel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"isPersistentPanelActive",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"smallScreenSqueezeBack",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"enableScrollIntoViewCenter",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"formatFirst",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"enableFlexibleOverlay",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"extractOverlay",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"useAspectRatio",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],oK.prototype,"enableShortsSequenceRefactorUnify",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"shortsController",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"panelContainer",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"overlayContainer",void 0);_.R([_.H(),_.n("design:type",Array)],oK.prototype,"carouselContainers",void 0);
_.R([_.H(),_.n("design:type",Object)],oK.prototype,"isShortsInitialized",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"firstShortsData",void 0);_.R([_.H(),_.n("design:type",Object)],oK.prototype,"firstShortsDataModel",void 0);_.R([_.H(),_.n("design:type",Array)],oK.prototype,"shortsContentList",void 0);_.R([_.P("reelWatchSequenceResponse"),_.n("design:type",Object),_.n("design:paramtypes",[])],oK.prototype,"prevShortsSequence",null);
_.R([_.P("data","prevShortsSequence"),_.P("data","prevShortsSequence"),_.n("design:type",Object),_.n("design:paramtypes",[])],oK.prototype,"shortsProcessedPrevSequence",null);_.R([_.P("reelWatchSequenceResponse"),_.n("design:type",Object),_.n("design:paramtypes",[])],oK.prototype,"shortsSequence",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"setFirstShortsData",null);
_.R([_.q5("reelWatchSequenceResponse","firstShortsData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"setShortsContentList",null);_.R([_.P("data","shortsSequence","firstShortsData"),_.n("design:type",Object),_.n("design:paramtypes",[])],oK.prototype,"shortsProcessedSequence",null);
_.R([_.H({reflectToAttribute:!0}),_.P("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],oK.prototype,"isUpArrowHidden",null);_.R([_.H({reflectToAttribute:!0}),_.P("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],oK.prototype,"isDownArrowHidden",null);
_.R([_.H(),_.P("index"),_.n("design:type",Number),_.n("design:paramtypes",[])],oK.prototype,"activeIndex",null);_.R([_.P("isShortPlayable","data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],oK.prototype,"shouldRenderOfflineContent",null);_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"onResize",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],oK.prototype,"anchoredEngagementPanels",null);
_.R([_.H(),_.n("design:type",Object)],oK.prototype,"watchWhileEngagementPanels",void 0);_.R([_.q5("isFullscreen"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"onFullscreenChange",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"engagementPanelsChanged",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],oK.prototype,"onServiceRequestCompleted",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"unhideCurrentOverlay",null);_.R([_.q5("currentEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"updateReelWatchSequenceResponse",null);
_.R([_.q5("isPlayerStarted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"afterPlayerStarted",null);_.R([_.P("playerData","reelWatchSequenceResponse","data"),_.n("design:type",Object),_.n("design:paramtypes",[])],oK.prototype,"errorScreen",null);_.R([_.P("errorScreen"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],oK.prototype,"hasError",null);
_.R([_.q5("playerData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],oK.prototype,"playerDataChanged",null);_.R([_.hI("yt-dismissible-item-undo-feedback"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"onShortUndoDismiss",null);_.R([_.hI("yt-disable-lockup-interaction"),_.n("design:type",Function),_.n("design:paramtypes",[Object]),_.n("design:returntype")],oK.prototype,"onShortsDismiss",null);
_.R([_.Dd("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"onActiveChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"graftClientVisualElements",null);_.R([_.q5("currentPlayerIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"graftNvcRenderer",null);
_.R([_.q5("index"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"setActiveIndex",null);_.R([_.q5("isShortsPipActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"onShortsPipActiveChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"lazyUpdateMiniplayerData",null);
_.R([_.H(),_.n("design:type",Object)],oK.prototype,"onOverlayDensityChanged",void 0);_.R([_.q5("isPersistentPanelActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"onPersistentPanelActiveChanged",null);_.R([_.q5("index","data","isUpArrowHidden"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"onPrevButtonDataChange",null);
_.R([_.q5("index","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],oK.prototype,"onNextButtonDataChange",null);_.R([_.N({is:"ytd-shorts"})],oK);_.EQ.registerService(_.xad,oK);
_.uG();
}catch(e){_._DumpException(e)}
try{
_.KT("JzFVk");
var pph;var SZv;var $J=function(){return _.a.apply(this,arguments)||this};
_.M($J,_.a);$J.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$J.prototype.computeBlueBottomLink=function(G){return G};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],$J.prototype,"data",void 0);_.R([_.H({computed:"computeIcon_(data.bottomIcon)"}),_.n("design:type",String)],$J.prototype,"bottomIcon",void 0);
_.R([_.H({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.n("design:type",Boolean)],$J.prototype,"enableBlueBottomLink",void 0);_.R([_.N({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],$J);
_.J($J,"ytd-web-answer-renderer",function(){if(SZv!==void 0)return SZv;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return SZv=G},{mode:_.nn("kevlar_poly_si_batch_j035")?1:2});var Xpa;var Gn=function(){var G=_.a.apply(this,arguments)||this;G.hasChipBar=!1;return G};
_.M(Gn,_.a);Gn.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}}};
Gn.prototype.computeHasChipBar=function(G){return!(G==null||!G.chipBar)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Gn.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.n("design:type",Object)],Gn.prototype,"hasChipBar",void 0);_.R([_.N({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Gn);
_.J(Gn,"ytd-search-header-renderer",function(){if(Xpa!==void 0)return Xpa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Xpa=G},{mode:1});var $bg;var bE=function(){return _.a.apply(this,arguments)||this};
_.M(bE,_.a);bE.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],bE.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-page-continuation"})],bE);
_.J(bE,"ytd-page-continuation",function(){if($bg!==void 0)return $bg;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return $bg=G},{mode:1});var GlA;var byg;var Iz7;var hLg=function(){return _.a.apply(this,arguments)||this};
_.M(hLg,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],hLg.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],hLg.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],hLg);
_.J(hLg,"ytd-watch-card-one-vs-one-event",function(){if(Iz7!==void 0)return Iz7;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Iz7=G},{mode:1});var qgv=function(){return _.a.apply(this,arguments)||this};
_.M(qgv,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],qgv.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],qgv.prototype,"data",void 0);_.R([_.N({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],qgv);
_.J(qgv,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(byg!==void 0)return byg;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return byg=G},{mode:1});var jka;var lz7=function(){return _.a.apply(this,arguments)||this};
_.M(lz7,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],lz7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lz7.prototype,"data",void 0);_.R([_.N({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],lz7);
_.J(lz7,"ytd-banner-and-box-hero-image-renderer",function(){if(jka!==void 0)return jka;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jka=G},{mode:1});var mbK;var IK=function(){var G=_.a.apply(this,arguments)||this;G.modern=_.U("web_modern_buttons");return G};
_.M(IK,_.a);IK.prototype.computeIcon=function(){var G,b,I=(G=this.data)==null?void 0:(b=G.icon)==null?void 0:b.iconType;if(I)return _.pn(I)};
IK.prototype.computeButtonShape=function(){var G;return{buttonText:_.NO((G=this.data)==null?void 0:G.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.kV.Object.defineProperties(IK.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],IK.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],IK.prototype,"modern",void 0);_.R([_.H({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.P("data.style"),_.n("design:type",Object),_.n("design:paramtypes",[])],IK.prototype,"buttonColor",null);
_.R([_.N({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],IK);
_.J(IK,"ytd-call-to-action-button-renderer",function(){if(mbK!==void 0)return mbK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mbK=G},{mode:1});var eLa;var hi=function(){return _.a.apply(this,arguments)||this};
_.M(hi,_.a);hi.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Eo(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.KG(this.data.leftThumbnail.thumbnails,216)+")")};
hi.prototype.onLeftThumbnailChanged=hi.prototype.onLeftThumbnailChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],hi.prototype,"data",void 0);_.R([_.q5("data.leftThumbnail"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],hi.prototype,"onLeftThumbnailChanged",null);_.R([_.N({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],hi);
_.J(hi,"ytd-collage-hero-image-renderer",function(){if(eLa!==void 0)return eLa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return eLa=G},{mode:1});var VSa;var q7=function(){return _.a.apply(this,arguments)||this};
_.M(q7,_.a);q7.prototype.computeStyle=function(G){return G};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],q7.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.n("design:type",String)],q7.prototype,"componentStyle",void 0);_.R([_.N({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],q7);
_.J(q7,"ytd-single-hero-image-renderer",function(){if(VSa!==void 0)return VSa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VSa=G},{mode:1});var DbM;var jV=function(){return _.a.apply(this,arguments)||this};
_.M(jV,_.a);_.m=jV.prototype;
_.m.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:_.U("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.m.computeSubtitle=function(G){if(this.data){var b;if(this.data.upcomingEventData){G=_.NO(G.subtitle);var I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(b=_.ao(_.LM(G,I)))}else b=G.subtitle;return b}};
_.m.onHeroTap=function(G){G.preventDefault();var b=this.data&&this.data.navigationEndpoint;!b||!_.NK(_.Wy(G),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.NK(_.Wy(G),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.U("kevlar_watchcard_hero_video_renderer_killswitch")?_.O3(this.hostElement,"yt-navigate",{navigationEndpoint:b}):this.ytComponentBehavior.resolveCommand(b))};
_.m.computeHeroTabIndex=function(G){return G&&G.simpleText?-1:0};
_.m.computeHeroRole=function(G){return G&&G.simpleText?"":"link"};
_.m.computeIsReminderButtonPresent=function(G){return!(!G||!G.reminderButton)};
_.m.computeHideBottomItems=function(G){return!(this.computeIsReminderButtonPresent(G)||G.subtitle)};
_.m.dataChanged=function(){var G=this.get("data.buttons.buttonRenderer.serviceEndpoint"),b;((b=_.g(G==null?void 0:G.commandMetadata,_.aV))==null?0:b.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(G)};
jV.prototype.dataChanged=jV.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],jV.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],jV.prototype,"data",void 0);
_.R([_.H({computed:"computeSubtitle(data)"}),_.n("design:type",String)],jV.prototype,"subtitle",void 0);_.R([_.H({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],jV.prototype,"isReminderButtonPresent",void 0);_.R([_.H({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],jV.prototype,"hideBottomItems",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jV.prototype,"dataChanged",null);_.R([_.N({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],jV);
_.J(jV,"ytd-watch-card-hero-video-renderer",function(){if(DbM!==void 0)return DbM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return DbM=G},{mode:1});var c4o;var lE=function(){return _.a.apply(this,arguments)||this};
_.M(lE,_.a);_.m=lE.prototype;_.m.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"}}}};
_.m.computeTitleBadges=function(G){return G?[G]:[]};
_.m.computeHeaderStyle=function(G){return G?G.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.m.computeAvatarAriaLabel=function(G){if(G){var b,I,h,q;return(q=(b=G.avatar)==null?void 0:(I=b.accessibility)==null?void 0:(h=I.accessibilityData)==null?void 0:h.label)!=null?q:_.NO(G==null?void 0:G.title)}};
_.m.computeAvatarHeight=function(G){return G==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.m.computeBadgeRowClass=function(G){return(G==null?0:G[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],lE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lE.prototype,"data",void 0);_.R([_.H({computed:"computeTitleBadges(data.titleBadge)"}),_.n("design:type",Array)],lE.prototype,"titleBadges",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.n("design:type",String)],lE.prototype,"headerStyle",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.n("design:type",String)],lE.prototype,"badgeRowClass",void 0);_.R([_.N({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],lE);
_.J(lE,"ytd-watch-card-rich-header-renderer",function(){if(c4o!==void 0)return c4o;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return c4o=G},{mode:1});var kl7;var vpM;var m3=function(){return _.a.apply(this,arguments)||this};
_.M(m3,_.a);m3.prototype.onMetadataTap=function(G){var b=this.data&&this.data.navigationEndpoint;b&&!_.NK(_.Wy(G),this.hostElement,["A".toString()])&&_.O3(this.hostElement,"yt-navigate",{endpoint:b})};
_.kV.Object.defineProperties(m3.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 b=_.NO(this.data.subtitle),I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(G=_.ao(_.LM(b,I)))}else G=this.data.subtitle;return G}}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],m3.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data.style"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],m3.prototype,"isCondensed",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],m3.prototype,"subtitle",null);
_.R([_.N({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],m3);
_.J(m3,"ytd-watch-card-compact-video-renderer",function(){if(vpM!==void 0)return vpM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vpM=G},{mode:1});var LnE;var Qk7=function(){return _.a.apply(this,arguments)||this};
_.M(Qk7,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Qk7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Qk7.prototype,"data",void 0);_.R([_.N({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Qk7);
_.J(Qk7,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(LnE!==void 0)return LnE;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return LnE=G},{mode:1});var eV=function(){return _.a.apply(this,arguments)||this};
_.M(eV,_.a);eV.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],eV.prototype,"ytRendererStamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],eV.prototype,"data",void 0);_.R([_.N({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],eV);
_.J(eV,"ytd-vertical-watch-card-list-renderer",function(){if(kl7!==void 0)return kl7;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return kl7=G},{mode:1});var xbM;var Ve=function(){var G=_.a.apply(this,arguments)||this;G.ariaExpanded="false";return G};
_.M(Ve,_.a);_.m=Ve.prototype;_.m.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.m.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])};
_.m.computeEpisodesInfo=function(G,b,I){if(G!==void 0&&b.length===G.length)return G[I]};
_.m.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.m.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.m.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.m.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.m.getUppercaseSimpleString=function(G){return this.ytRendererBehavior.getSimpleString(G).toUpperCase()};
_.m.updateCurrentSeasonIndexFromBinding=function(G){this.currentSeasonIndex=G.detail.value};
Ve.prototype.onIronOverlayClosed=Ve.prototype.onIronOverlayClosed;Ve.prototype.currentSeasonIndexChanged=Ve.prototype.currentSeasonIndexChanged;Ve.prototype.dataChanged=Ve.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ve.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",String)],Ve.prototype,"label",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],Ve.prototype,"currentSeasonIndex",void 0);_.R([_.H({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.n("design:type",Object)],Ve.prototype,"episodesInfo",void 0);_.R([_.H({value:"false"}),_.n("design:type",Object)],Ve.prototype,"ariaExpanded",void 0);_.R([_.lH("#lists"),_.n("design:type",Object)],Ve.prototype,"lists",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ve.prototype,"dataChanged",null);_.R([_.Dd("currentSeasonIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ve.prototype,"currentSeasonIndexChanged",null);_.R([_.hI("iron-overlay-closed"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],Ve.prototype,"onIronOverlayClosed",null);
_.R([_.N({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Ve);
_.J(Ve,"ytd-watch-card-section-dropdown-renderer",function(){if(xbM!==void 0)return xbM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xbM=G},{mode:1});var fzI;var DH=function(){var G=_.a.apply(this,arguments)||this;G.isSearch=!1;return G};
_.M(DH,_.a);DH.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],DH.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],DH.prototype,"isSearch",void 0);_.R([_.N({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],DH);
_.J(DH,"ytd-watch-card-section-sequence-renderer",function(){if(fzI!==void 0)return fzI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return fzI=G},{mode:1});var TVa=_.C(function(G){return _.v("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.v(_.VX,{data:function(){return G.data().ctaButton}},{buttonViewModel:_.sQ}),_.v(_.IS,{text:function(){return G.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"fn");
TVa.idomCompat=!0;_.JN(TVa,"ytd-button-banner-view-model",{props:{data:_.hV}});var c7=function(){var G=_.a.apply(this,arguments)||this;G.isSearch=!1;return G};
_.M(c7,_.a);
c7.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],c7.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],c7.prototype,"rounded",void 0);_.R([_.H(),_.n("design:type",Object)],c7.prototype,"isSearch",void 0);
_.R([_.N({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],c7);
_.J(c7,"ytd-universal-watch-card-renderer",function(){if(GlA!==void 0)return GlA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return GlA=G},{mode:1});var BVo;_.JN(_.C(function(G){var b=G.data;var I;G=!((I=_.LL().resolve(_.vf(_.Pv)))==null||!I());I={};return _.v("overview-message-view-model",{class:_.pG("ytwOverviewMessageViewModelHost",(I.ytwOverviewMessageViewModelDarkBackground=G,I.ytwOverviewMessageViewModelLightBackground=!G,I))},_.v(_.Q,{cond:function(){return b().primaryImage},
then:function(h){return _.v(_.Fu,{data:h,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.v(_.Q,{cond:function(){return b().primaryText},
then:function(){return _.v("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.v(_.IS,{text:function(){return b().primaryText}}))}}),_.v(_.Q,{cond:function(){return b().secondaryText},
then:function(){return _.v("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.v(_.IS,{text:function(){return b().secondaryText}}))}}))},"gn"),"overview-message-view-model",{props:{data:_.hV}});_.JN(_.fr5,"ytd-overview-answer-view-model",{props:{data:_.hV}});var kJ=function(){return _.a.apply(this,arguments)||this};
_.M(kJ,_.a);kJ.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"}}}};
kJ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.mD),_.n("design:type",Object)],kJ.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],kJ.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],kJ.prototype,"isSearch",void 0);
_.R([_.N({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],kJ);
_.J(kJ,"ytd-secondary-search-container-renderer",function(){if(BVo!==void 0)return BVo;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return BVo=G},{mode:1});var Ubh;var v7=function(){var G=_.a.apply(this,arguments)||this;G.renderSecondarySearchContainer=!1;G.isSearch=!1;return G};
_.M(v7,_.a);_.m=v7.prototype;_.m.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"}}}};
_.m.created=function(){var G=this;this.boundStampSecondarySearchContainerIfFits=function(){G.stampSecondarySearchContainerIfFits()};
_.OB("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.m.computeIsSearchFrictionPage=function(G){var b,I,h,q,l;G=G==null?void 0:(b=G.primaryContents)==null?void 0:(I=b.sectionListRenderer)==null?void 0:(h=I.contents)==null?void 0:(q=h[0])==null?void 0:(l=q.itemSectionRenderer)==null?void 0:l.contents;if(!G)return!1;b=_.e(G);for(I=b.next();!I.done;I=b.next())if(h=void 0,(h=I.value)==null?0:h.searchFrictionViewModel)return!0;return!1};
_.m.computeShowSecondaryColumn=function(G,b){return!!(b&&b.secondaryContents&&G)};
_.m.activeChanged=function(){var G=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.I9(this,this.debounceStampSecondarySearchContainerIfFits)),_.iH(function(){G.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.I9(this,this.debounceStampSecondarySearchContainerIfFits))};
_.m.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.m.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.m.debounceStampSecondarySearchContainerIfFits=function(){_.P5(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.m.onRetrieveLocation=function(G,b){b.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);G.stopPropagation()};
_.m.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
v7.prototype.dataChanged=v7.prototype.dataChanged;v7.prototype.onRetrieveLocation=v7.prototype.onRetrieveLocation;v7.prototype.persistentGuideChanged=v7.prototype.persistentGuideChanged;v7.prototype.activeChanged=v7.prototype.activeChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],v7.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.z(_.Y6),_.n("design:type",Object)],v7.prototype,"ironResizableBehavior",void 0);_.R([_.H(),_.n("design:type",Boolean)],v7.prototype,"active",void 0);_.R([_.H(),_.n("design:type",Object)],v7.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.n("design:type",Boolean)],v7.prototype,"useBiggerThumbs",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.UG("desktop_search_bigger_thumbs_style")}}),
_.n("design:type",String)],v7.prototype,"biggerThumbsStyle",void 0);_.R([_.H(),_.n("design:type",Object)],v7.prototype,"renderSecondarySearchContainer",void 0);_.R([_.H({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.n("design:type",Boolean)],v7.prototype,"showSecondaryColumn",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.n("design:type",Boolean)],v7.prototype,"isSearchFrictionPage",void 0);
_.R([_.H(),_.n("design:type",Object)],v7.prototype,"isSearch",void 0);_.R([_.q5("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],v7.prototype,"activeChanged",null);_.R([_.q5("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],v7.prototype,"persistentGuideChanged",null);
_.R([_.hI("yt-retrieve-location"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],v7.prototype,"onRetrieveLocation",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],v7.prototype,"dataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],v7);
_.J(v7,"ytd-two-column-search-results-renderer",function(){if(Ubh!==void 0)return Ubh;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Ubh=G},{mode:1});var Le=function(){var G=_.a.apply(this,arguments)||this;G.hasSearchHeader=!1;G.hasSecondaryContent=!1;G.hasBiggerThumbs=_.U("enable_desktop_search_bigger_thumbs");G.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return G};
_.M(Le,_.a);_.m=Le.prototype;_.m.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:_.z_(["aa","eocs"])}}};
_.m.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.m.loadPage_=function(G){this.initCsi();G&&(this.data=G,_.OB("REFINEMENTS_TUPLE",["FromSearchResponse",G.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.l6(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.m.initCsi=function(){_.bAI("results",["ol","cpt"])};
_.m.updateTitle=function(){var G=_.XN(window.location.href,"q");G||(G=_.XN(window.location.href,"search_query"));_.O3(this.hostElement,"yt-update-title",G||"")};
_.m.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.m.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.U("web_srp_data_changed_terminate_imp_killswitch")||_.wL(this.hostElement,"yt-terminate-video-preview-action")};
_.m.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.m.computeHasSearchHeader=function(G){var b;G=G==null?void 0:(b=G.header)==null?void 0:b.searchHeaderRenderer;return!!G&&(!!G.searchFilterButton||!!G.chipBar)};
_.m.computeHasSecondaryContent=function(G){var b,I;return!!(G==null?0:(b=G.contents)==null?0:(I=b.twoColumnSearchResultsRenderer)==null?0:I.secondaryContents)};
_.kV.Object.defineProperties(Le,{template:{configurable:!0,enumerable:!0,get:function(){if(pph===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);pph=G}G=pph;return G}}});
Le.prototype.onReloadContinuationFinish=Le.prototype.onReloadContinuationFinish;Le.prototype.dataChanged=Le.prototype.dataChanged;_.R([_.z(_.Id.YtPageBehavior),_.n("design:type",Object)],Le.prototype,"ytPageBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Le.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.mD),_.n("design:type",Object)],Le.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Le.prototype,"data",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],Le.prototype,"monitorScroll",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Le.prototype,"hasSearchHeader",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Le.prototype,"hasSecondaryContent",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Le.prototype,"hasBiggerThumbs",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Le.prototype,"dataChanged",null);
_.R([_.hI("yt-reload-continuation-finish"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Le.prototype,"onReloadContinuationFinish",null);_.R([_.N({is:"ytd-search"})],Le);_.EQ.registerService(_.Qgr,Le);
_.uG();
}catch(e){_._DumpException(e)}
try{
_.KT("h8y2qb");
var hKd=function(G){if(G=_.qHr(G)){var b;(b=G.sources)!=null&&b[0]?(b=_.lVj(G),b=b<1?"VERTICAL":b>1?"HORIZONTAL":"SQUARE"):b=void 0;return b}},h9=function(G){_.t$.call(this,"upload");
this.opts.query=G},jIM=function(G,b){return _.v(qvI,{data:G,
onYtNavigate:b})},lKd=function(G,b){return _.Gi(G.entities,"pageHeaderEntity",b)},eKK=function(G,b){return G.map(function(I){if(I.tabRenderer)return mEv(I.tabRenderer);
if(I.expandableTabRenderer&&b){var h=I.expandableTabRenderer;return{customTabRenderable:function(){return b(h)}}}return{}})},mEv=function(G){return{identifier:G.tabIdentifier,
aTagConfig:_.AN({innertubeCommand:G.endpoint,forceNewState:!0}),title:G.title,selected:G.selected,disabled:G.unselectable,icon:G.icon}},Voh=function(G){return _.wK({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:G})},DEl=function(G){if(!_.Rr(document,"gtm-noscript")){var b=document.createElement("noscript");
b.id="gtm-noscript";b.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+G+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(b)}};_.OE(h9,_.t$);h9.prototype.JSC$10147_setLabel=function(G){h9.superClass_.JSC$10147_setLabel.call(this,G);return this};
h9.prototype.addUploadMetadata=function(G,b){h9.superClass_.addUploadMetadata.call(this,G,b);return this};var czl=function(G){if(G!=="youtubebanner"&&G!=="youtube-channel-banner")throw Error("Oo");h9.call(this,G)};
_.M(czl,h9);czl.prototype.JSC$10147_setLabel=function(G){h9.prototype.JSC$10147_setLabel.call(this,G);return this};
czl.prototype.addUploadMetadata=function(G,b){h9.prototype.addUploadMetadata.call(this,G,b);return this};var k7d=[_.Y6,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(G){_.kc(G).path[0]!==this&&(this.resetLayout(),G.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var G=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Q2(this._layoutDebouncer,_.kQ,G);_.xj(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 vI7=[_.hbi,{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,b){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,b||{});G.setUp();return G},
_effectsChanged:function(G,b,I){this._tearDownEffects();G&&I&&(G.split(" ").forEach(function(h){var q;h!==""&&((q=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[h])?this._effects.push(this._boundEffect(q,b[h])):console.warn(this._getUndefinedMsg(h)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(G,b){b=b||{};var I=parseFloat(b.startsAt||0),h=parseFloat(b.endsAt||1),q=h-I,l=function(){};
h=I===0&&h===1?G.run:function(V,D){G.run.call(this,Math.max(0,(V-I)/q),D)};
return{setUp:G.setUp?G.setUp.bind(this,b):l,run:G.run?h.bind(this):l,tearDown:G.tearDown?G.tearDown.bind(this):l}},
_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,b){this._effectsRunFn&&this._effectsRunFn.forEach(function(I){I(G,b)})},
_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("Po`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 b={};G=parseFloat(G.scalar);b.background=this._getDOMRef("background");b.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");b.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");b.deltaBg=b.backgroundFrontLayer.offsetHeight-b.background.offsetHeight;b.deltaBg===0?(isNaN(G)&&(G=.8),b.deltaBg=(this._dHeight||0)*G):(isNaN(G)&&(G=
1),b.deltaBg*=G);this._fxParallaxBackground=b},
run:function(G){var b=this._fxParallaxBackground;this.transform("translate3d(0px, "+b.deltaBg*Math.min(1,G)+"px, 0px)",b.backgroundFrontLayer);b.backgroundRearLayer&&this.transform("translate3d(0px, "+b.deltaBg*Math.min(1,G)+"px, 0px)",b.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var LhA;var QIh;var xEv=function(){};
_.m=xEv.prototype;_.m._scrollTargetChanged=function(){};
_.m.scroll=function(){};
_.m._isValidScrollTarget=function(){};
_.m._toggleScrollListener=function(){};
_.m.toggleScrollListener=function(){};
_.m.createEffect=function(){};
_.m._effectsChanged=function(){};
_.m._layoutIfDirty=function(){};
_.m._boundEffect=function(){};
_.m._setUpEffect=function(){};
_.m._tearDownEffects=function(){};
_.m._runEffects=function(){};
_.m._scrollHandler=function(){};
_.m._scrollStateChanged=function(){};
_.m._getUndefinedMsg=function(){};
_.m.notifyResize=function(){};
_.m.assignParentResizable=function(){};
_.m.stopResizeNotificationsFor=function(){};
_.m._subscribeIronResize=function(){};
_.m._unsubscribeIronResize=function(){};
_.m.resizerShouldNotify=function(){};
_.m._onDescendantIronResize=function(){};
_.m._fireResize=function(){};
_.m._onIronRequestResizeNotifications=function(){};
_.m._parentResizableChanged=function(){};
_.m._notifyDescendant=function(){};
_.m._requestResizeNotifications=function(){};
_.m._findParent=function(){};
_.m._appResetLayoutHandler=function(){};
_.m.resetLayout=function(){};
_.m._notifyLayoutChanged=function(){};
_.m._notifyDescendantResize=function(){};
_.m._setThresholdTriggered=function(){};
xEv=_.fn({_template:function(){if(QIh!==void 0)return QIh;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;LhA===void 0&&(LhA=document.createElement("template"));var h=LhA;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return QIh=G},
is:"tp-yt-app-header",behaviors:[vI7,k7d],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=_.kc(this.$.slot).getDistributedNodes(),b=0,I;I=G[b];b++)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,b=this._height===0||G===0,I=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;b||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();b?this._updateScrollState(G,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=I}},
_updateScrollState:function(G,b){if(this._height!==0){var I=0,h=this._top;var q=this._maxHeaderTop;var l=G-this._lastScrollTop,V=Math.abs(l),D=G>this._lastScrollTop,k=performance.now();this._mayMove()&&(I=this._clamp(this.reveals?h+l:G,0,q));G>=this._dHeight&&(I=this.condenses&&!this.fixed?Math.max(this._dHeight,I):I,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&V<100){if(k-this._initTimestamp>300||this._wasScrollingDown!==D)this._initScrollTop=G,this._initTimestamp=k;G>=q&&
(Math.abs(this._initScrollTop-G)>30||V>10?(D&&G>=q?I=q:!D&&G>=this._dHeight&&(I=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((I-h)/(l/(k-this._lastTimestamp)),0,300)+"ms"):I=this._top)}q=this._dHeight===0?G>0?1:0:I/this._dHeight;b||(this._lastScrollTop=G,this._top=I,this._wasScrollingDown=D,this._lastTimestamp=k);if(b||q!==this._progress||h!==I||G===0)this._progress=q,this._runEffects(q,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,b,I){return Math.min(I,Math.max(b,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),_.kc(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 _.kc(this).querySelector("[main-title]");case "condensedTitle":return _.kc(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var fKE;var TdM;_.fn({_template:function(){if(TdM!==void 0)return TdM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;fKE===void 0&&(fKE=document.createElement("template"));var h=fKE;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return TdM=G},
is:"tp-yt-app-header-layout",behaviors:[k7d],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.kc(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates: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 b=this.getBoundingClientRect(),I=document.documentElement.clientWidth-b.right;G.style.left=b.left+"px";G.style.right=I+"px"}b=this.$.contentContainer.style;I=G.offsetHeight;G.fixed&&!G.condenses&&this.hasScrollingRegion?(b.marginTop=I+"px",b.paddingTop=""):(b.paddingTop=I+"px",b.marginTop="")}}});var BdA=new _.hu("alertCommand");var UEv=new _.hu("manageLabsStateCommand");var sIK=new _.hu("inlineFormRenderer");var gII=new _.hu("playlistSidebarPrimaryInfoRenderer");var Azh=new _.hu("productDetailsThumbnailRenderer"),MoK=new _.hu("productDetailsVariantRenderer"),ZAa=new _.hu("productDetailsVariantOptionRenderer"),tog=new _.hu("productDetailsOffersContainerRenderer"),zK7=new _.hu("productDetailsOfferRenderer");var oIl=new _.hu("shoppingFlaggingRenderer");var iAv=new _.hu("playlistBylineRenderer");var Pl7=new _.hu("insertChannelTabCommand");var qq=function(){return _.eH.apply(this,arguments)||this};
_.M(qq,_.eH);_.m=qq.prototype;_.m.activeChanged=function(){if(this.active){var G=_.Eo(this.hostElement).querySelector("#header");G&&_.O3(G,"iron-resize");window.addEventListener("scroll",_.I9(this,this.onScroll))}else window.removeEventListener("scroll",_.I9(this,this.onScroll)),_.O3(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.m.guideVisibleChanged=function(){var G=_.Eo(this.hostElement).querySelector("#header");G&&_.O3(G,"iron-resize")};
_.m.onScroll=function(){var G=this;_.P5(this,"onScroll",function(){var b=_.Eo(G.hostElement).querySelector("#header");b&&b.polymerController&&(b=b.polymerController.getScrollState().progress===1?"standard":"seamed",_.O3(G.hostElement,"yt-request-panel-mode-change",{mode:b}))},10)};
_.m.tabsChanged=function(){if(this.tabs){for(var G=null,b=0,I=this.tabs.length;b<I;++b){var h=this.tabs[b].tabRenderer;if(h&&h.selected){G=b;break}}this.selected=G}};
_.m.onTabsActivate=function(G){_.O3(this.hostElement,"yt-navigate",{endpoint:this.tabs[G.detail.selected].tabRenderer.endpoint})};
qq.prototype.tabsChanged=qq.prototype.tabsChanged;qq.prototype.guideVisibleChanged=qq.prototype.guideVisibleChanged;qq.prototype.activeChanged=qq.prototype.activeChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],qq.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.H(),_.n("design:type",Array)],qq.prototype,"tabs",void 0);
_.R([_.H(),_.n("design:type",Object)],qq.prototype,"selected",void 0);_.R([_.H(),_.n("design:type",Boolean)],qq.prototype,"active",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],qq.prototype,"disableHeaderFluidWidth",void 0);_.R([_.q5("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qq.prototype,"activeChanged",null);
_.R([_.q5("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qq.prototype,"guideVisibleChanged",null);_.R([_.q5("tabs"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qq.prototype,"tabsChanged",null);_.R([_.Vx()],qq);var dEI=[_.p.YtRendererBehavior,_.GJ.YtdGuideStateAwareBehavior,qq.prototype];var yz7=2/3,rzv=_.Xs(130749),FhE=function(G,b){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:yz7,moveAction:function(h){I.moveAction(h)},
triggerAction:function(){I.element.isReloading=!0;_.or(_.qo(),{visualElement:rzv});_.Xv.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:I.element}})}}}};
_.Ps(_.qo(),rzv,this.layer);this.gesture=new _.Wx(G,b,this.refreshConfig,"pan-down");this.attach()};
_.m=FhE.prototype;_.m.attach=function(){this.gesture.attach()};
_.m.detach=function(){this.gesture.detach()};
_.m.reset=function(){this.element.close()};
_.m.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.m.moveAction=function(G){this.element.rotation=G*360};var HAA=_.Xs(130750),aKo=function(G,b,I,h,q){var l=this;this.element=G;this.parent=I;this.channelHeader=h;this.ytdReduxDispatch=q;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){l.tabsStartAtInPx=l.channelHeader.clientHeight-48;var V;(V=l.selectedTab)!=null&&V.title&&(V=_.LL().resolve(_.vf(_.Ck)))&&(V=V.getCurrentPage(),l.lastVisitedTabScrollPosition=V.getScrollTop(),l.previousTab&&
((l.lastVisitedTabScrollPosition===void 0?0:l.lastVisitedTabScrollPosition<l.channelHeader.clientHeight-48)?l.scrollPositionForTabs.has(l.selectedTab.title)&&l.scrollPositionForTabs.delete(l.selectedTab.title):l.scrollPositionForTabs.set(l.selectedTab.title,V.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Whg(),triggerAction:function(){l.navigate(l.previousTab)},
moveAction:function(V,D){l.moveAction(V,D)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Whg(),triggerAction:function(){l.navigate(l.nextTab)},
moveAction:function(V,D){l.moveAction(V,D)}}}};
_.Ps(_.qo(),HAA,this.layer);this.gesture=new _.Wx(G,b,this.tabConfig);this.attach()};
_.m=aKo.prototype;_.m.attach=function(){this.gesture.attach()};
_.m.detach=function(){this.gesture.detach()};
_.m.tabsChanged=function(G){if(G){var b=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;G=_.e(G);for(var I=G.next();!I.done;I=G.next()){I=I.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=I);var h=void 0;if((h=I)==null?0:h.selected)this.previousTab=b,this.selectedTab=I;b=I}b=this.gesture;G=this.getConfig();b.config=G;this.scrollPositionNeedsUpdate=!0}};
_.m.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}})};
_.m.moveAction=function(G,b){if(!this.tabsElement){var I;this.tabsElement=(I=this.parent.header)==null?void 0:I.tabsElement;b==="right"&&this.previousTab?(I=this.previousTab.endpoint,_.vue(_.LL().resolve(_.LW),I,{},"")):b==="left"&&this.nextTab&&(I=this.nextTab.endpoint,_.vue(_.LL().resolve(_.LW),I,{},""));if(!this.tabsElement)return}I=this.tabsElement._pos;b==="right"&&(G*=-1);this.tabsElement._positionBar(I.width,I.left*1+I.width*G)};
var Whg=function(){var G,b;return(b=(G=_.LL().resolve(_.Ck).getCurrentPage())==null?void 0:G.clientWidth)!=null?b:0};
aKo.prototype.navigate=function(G){this.element.data=void 0;if(G=G==null?void 0:G.endpoint)this.ytdReduxDispatch(Voh(!0)),_.or(_.qo(),{visualElement:HAA}),_.Xv.instance.resolveCommand({navigateAction:{endpoint:G}},{form:{element:this.element}})};var Ndh;var YvA;var jY=function(){return _.a.apply(this,arguments)||this};
_.M(jY,_.a);jY.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],jY.prototype,"data",void 0);_.R([_.N({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],jY);
_.J(jY,"ytd-labs-edit-renderer",function(){if(YvA!==void 0)return YvA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YvA=G},{mode:1});var ClK;var lt=function(){var G=_.a.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};
_.M(lt,_.a);lt.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
lt.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.setBackgroundImage(G);this.dark=G};
lt.prototype.onDarkModeToggledAction=function(G){this.setBackgroundImage(G);this.dark=G};
lt.prototype.setBackgroundImage=function(G){_.G8(this.hostElement,{"--yt-labs-header-background":"url("+(G?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],lt.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lt.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],lt.prototype,"dark",void 0);
_.R([_.N({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],lt);
_.J(lt,"ytd-labs-header-renderer",function(){if(ClK!==void 0)return ClK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ClK=G},{mode:1});var JzI;var mP=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return G};
_.M(mP,_.a);mP.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"}}}}}};
mP.prototype.onYtToggleButton=function(G){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",G.detail.toggled)};
mP.prototype.onManageLabsState=function(G){if(G=_.g(G,UEv))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"?_.wL(this.hostElement,"yt-check-labs-opted-in-state").some(function(b){return b})&&this.data.confirmationDialogCommand?_.Su(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.LL().resolve(_.xW).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"&&(_.LL().resolve(_.xW).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
mP.prototype.onCheckLabsOptedInState=function(){var G=this.get("data.primaryButton.toggleButtonRenderer");return G?G.isToggled:!1};
_.kV.Object.defineProperties(mP.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
mP.prototype.onYtToggleButton=mP.prototype.onYtToggleButton;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],mP.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],mP.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],mP.prototype,"itemStyle",null);_.R([_.hI("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],mP.prototype,"onYtToggleButton",null);_.R([_.N({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],mP);
_.J(mP,"ytd-labs-item-renderer",function(){if(JzI!==void 0)return JzI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return JzI=G},{mode:1});var KhI;var uao;var RKv=function(){return _.a.apply(this,arguments)||this};
_.M(RKv,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],RKv.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],RKv.prototype,"data",void 0);_.R([_.N({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],RKv);
_.J(RKv,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(uao!==void 0)return uao;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return uao=G},{mode:1});var nIo;var eY=function(){return _.a.apply(this,arguments)||this};
_.M(eY,_.a);eY.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)};_.G8(this.hostElement,G)}};
eY.prototype.colorFromDecimal=function(G){return _.so(Number(G||0))};
eY.prototype.observeSuperchatChip=eY.prototype.observeSuperchatChip;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],eY.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eY.prototype,"observeSuperchatChip",null);_.R([_.N({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],eY);
_.J(eY,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(nIo!==void 0)return nIo;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return nIo=G},{mode:1});var VJ=function(){return _.a.apply(this,arguments)||this};
_.M(VJ,_.a);VJ.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"}}}};
_.kV.Object.defineProperties(VJ.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p5),_.n("design:type",Object)],VJ.prototype,"ytdDismissibleItemBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],VJ.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],VJ.prototype,"hideMessageBlock",null);
_.R([_.N({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],VJ);
_.J(VJ,"ytd-live-chat-history-entry-renderer",function(){if(KhI!==void 0)return KhI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return KhI=G},{mode:1});var OAM;var wgK=function(){return _.a.apply(this,arguments)||this};
_.M(wgK,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],wgK.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],wgK.prototype,"data",void 0);_.R([_.N({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],wgK);
_.J(wgK,"ytd-channel-options-renderer",function(){if(OAM!==void 0)return OAM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return OAM=G},{mode:1});var EIv;var Dj=function(){return _.a.apply(this,arguments)||this};
_.M(Dj,_.a);Dj.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Dj.prototype,"data",void 0);_.R([_.N({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Dj);
_.J(Dj,"ytd-settings-email-item-renderer",function(){if(EIv!==void 0)return EIv;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return EIv=G},{mode:1});var pgI;var cS=function(){return _.a.apply(this,arguments)||this};
_.M(cS,_.a);cS.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"}}}};
cS.prototype.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
cS.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.kV.Object.defineProperties(cS.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],cS.prototype,"data",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],cS.prototype,"expanded",void 0);_.R([_.P("expanded"),_.n("design:type",String),_.n("design:paramtypes",[])],cS.prototype,"emailListExpanded",null);
_.R([_.lH("#options"),_.n("design:type",Object)],cS.prototype,"options",void 0);_.R([_.N({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],cS);
_.J(cS,"ytd-settings-email-list-renderer",function(){if(pgI!==void 0)return pgI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return pgI=G},{mode:1});var Svg;var kL=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return G};
_.M(kL,_.a);kL.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"}}}};
kL.prototype.handleSignalActionSubmitForm=function(){var G,b=(G=this.formRenderer)==null?void 0:G.getForm();b&&this.data.serviceEndpoint&&_.LL().resolve(_.xW).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},b,{element:this.hostElement})})};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],kL.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],kL.prototype,"data",void 0);_.R([_.lH("yt-form-renderer"),_.n("design:type",Object)],kL.prototype,"formRenderer",void 0);
_.R([_.N({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],kL);
_.J(kL,"ytd-settings-gaia-link-renderer",function(){if(Svg!==void 0)return Svg;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Svg=G},{mode:1});var Xga;var vS=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return G};
_.M(vS,_.a);vS.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.wyW()&&this.set("data.hidden",!1)};
vS.prototype.onSwitchReady=function(){var G=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.U("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.OX3().then(function(b){b&&(Notification.permission==="default"?G.set("data.hidden",!1):Notification.permission==="granted"&&_.at("NotificationsDisabled").then(function(I){I||_.wL(G.hostElement,"yt-toggle-settings-switch",[G.data.id,!I]);G.set("data.hidden",!1)}).catch(function(){}))})})};
vS.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}}}}};
vS.prototype.handleUpdateOptionsCommand=function(G){(G=_.g(G,_.Qui))&&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",[]))};
vS.prototype.onSwitchReady=vS.prototype.onSwitchReady;vS.prototype.dataChanged=vS.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],vS.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],vS.prototype,"data",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vS.prototype,"dataChanged",null);_.R([_.hI("yt-settings-switch-ready"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vS.prototype,"onSwitchReady",null);_.R([_.N({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],vS);
_.J(vS,"ytd-settings-options-renderer",function(){if(Xga!==void 0)return Xga;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Xga=G},{mode:1});var $zI;var LK=function(){return _.a.apply(this,arguments)||this};
_.M(LK,_.a);LK.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
LK.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
LK.prototype.onYtExpanderMoreTapped=LK.prototype.onYtExpanderMoreTapped;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],LK.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],LK.prototype,"data",void 0);
_.R([_.hI("yt-expander-more-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],LK.prototype,"onYtExpanderMoreTapped",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],LK);
_.J(LK,"ytd-product-details-description-renderer",function(){if($zI!==void 0)return $zI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $zI=G},{mode:1});var Gfo;var QJ=function(){var G=_.a.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};
_.M(QJ,_.a);QJ.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.kV.Object.defineProperties(QJ.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?void 0:(b=G.offerData)==null?void 0:b.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?void 0:G.purchaseButtonRenderers)!==void 0&&((b=this.data)==null?void 0:b.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var G,b;return!((G=this.data)==null||!G.formattedFromMerchantText)&&(!((b=this.data)==null||!b.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],QJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],QJ.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],QJ.prototype,"data",void 0);
_.R([_.H({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.n("design:type",Object)],QJ.prototype,"shippingIcon",void 0);_.R([_.H({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.n("design:type",Object)],QJ.prototype,"shippingAddressIcon",void 0);_.R([_.H({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.n("design:type",Object)],QJ.prototype,"googleGuaranteeIcon",void 0);
_.R([_.H({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.n("design:type",Object)],QJ.prototype,"returnPolicyIcon",void 0);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],QJ.prototype,"showAdditionalFees",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],QJ.prototype,"showMultiPurchaseButtons",null);
_.R([_.P("data","showMultiPurchaseButtons"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],QJ.prototype,"showPurchaseData",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],QJ);
_.J(QJ,"ytd-product-details-hero-offer-renderer",function(){if(Gfo!==void 0)return Gfo;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Gfo=G},{mode:1});var bNo;var IJo;var xL=function(){return _.a.apply(this,arguments)||this};
_.M(xL,_.a);_.m=xL.prototype;_.m.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.m.onKeyDown=function(G){G=G.keyCode;G!==13&&G!==32||this.handleSelection()};
_.m.onMouseEnterImage=function(){var G;((G=this.data)==null?void 0:G.thumbnailDetails)!==void 0&&_.E3(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.m.onMouseLeaveImage=function(){_.E3(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.m.handleSelection=function(){this.data&&_.O3(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.kV.Object.defineProperties(xL.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isSelected)}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],xL.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],xL.prototype,"isSelected",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],xL);
_.J(xL,"ytd-product-details-thumbnail-renderer",function(){if(IJo!==void 0)return IJo;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return IJo=G},{mode:1});var fK=function(){var G=_.a.apply(this,arguments)||this;var b={};G.actionMap=(b["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",b["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",b);G.selectedThumbnailIndex=0;G.selectItem=function(I){I.target.onKeyDown(I)};
return G};
_.M(fK,_.a);_.m=fK.prototype;_.m.handlePreviewImageSelect=function(G){this.hoverThumbnail=G};
_.m.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.m.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.m.onThumbnailSelected=function(G,b){this.selectedThumbnailIndex=b};
_.m.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.m.updateOffset=function(){var G=_.Eo(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-G));this.ytdHorizontalListBehavior.reposition_()};
_.kV.Object.defineProperties(fK.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.imageRenderer){var b,I;return((b=this.data)==null?void 0:(I=b.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 b;return(b=_.g(this.data.imageRenderer[this.selectedThumbnailIndex],Azh))==null?void 0:b.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var G=this,b,I,h,q=(h=(b=this.data)==null?void 0:(I=b.imageRenderer)==null?void 0:I.map(function(l,V){return{productDetailsThumbnailRenderer:Object.assign({},_.g(l,Azh),{index:V,isSelected:V===G.selectedThumbnailIndex})}}))!=null?h:[];
return Object.assign({},this.data,{imageRenderer:q})}}});
fK.prototype.updateOffset=fK.prototype.updateOffset;fK.prototype.dataChanged=fK.prototype.dataChanged;fK.prototype.onThumbnailSelected=fK.prototype.onThumbnailSelected;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.Qk.YtdHorizontalListBehavior),_.n("design:type",Object)],fK.prototype,"ytdHorizontalListBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],fK.prototype,"componentBehavior",void 0);_.R([_.z([_.tV.YtActionHandlerBehavior]),_.n("design:type",Object)],fK.prototype,"actionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fK.prototype,"data",void 0);_.R([_.H({value:"$.items.children"}),_.n("design:type",String)],fK.prototype,"itemsPath",void 0);_.R([_.H({value:3}),_.n("design:type",Number)],fK.prototype,"initialCount",void 0);
_.R([_.lH("#items"),_.n("design:type",Object)],fK.prototype,"items",void 0);_.R([_.H(),_.n("design:type",Object)],fK.prototype,"selectedThumbnailIndex",void 0);_.R([_.H(),_.n("design:type",Object)],fK.prototype,"hoverThumbnail",void 0);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],fK.prototype,"showThumbnails",null);
_.R([_.hI("ytd-product-details-thumbnail-renderer-selected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Number]),_.n("design:returntype")],fK.prototype,"onThumbnailSelected",null);_.R([_.P("data","selectedThumbnailIndex","hoverThumbnail"),_.n("design:type",Object),_.n("design:paramtypes",[])],fK.prototype,"thumbnailDetails",null);_.R([_.P("data","selectedThumbnailIndex"),_.n("design:type",Object),_.n("design:paramtypes",[])],fK.prototype,"populatedData",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fK.prototype,"dataChanged",null);_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fK.prototype,"updateOffset",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],fK);
_.J(fK,"ytd-product-details-image-carousel-renderer",function(){if(bNo!==void 0)return bNo;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return bNo=G},{mode:_.nn("kevlar_poly_si_batch_j079")?1:2});var hME;var TR=function(){return _.a.apply(this,arguments)||this};
_.M(TR,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],TR.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],TR.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],TR.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],TR);
_.J(TR,"ytd-product-details-offer-renderer",function(){if(hME!==void 0)return hME;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return hME=G},{mode:1});var qZA;var BS=function(){var G=_.a.apply(this,arguments)||this;G.isOffersHidden=!0;return G};
_.M(BS,_.a);BS.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var G,b=_.g((G=this.data)==null?void 0:G.viewOffersButton,_.bz);b&&this.ytRendererBehavior.logExplicitClick(b)};
BS.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.kV.Object.defineProperties(BS.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h;return(I=_.g((G=this.data)==null?void 0:(b=G.offers)==null?void 0:b[0],zK7))==null?void 0:(h=I.offerData)==null?void 0:h.vendorLogoUrl}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],BS.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],BS.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],BS.prototype,"isOffersHidden",void 0);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],BS.prototype,"firstOfferVendorLogoUrl",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],BS);
_.J(BS,"ytd-product-details-offers-container-renderer",function(){if(qZA!==void 0)return qZA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return qZA=G},{mode:1});var j$l;var lJI;var UF=function(){return _.a.apply(this,arguments)||this};
_.M(UF,_.a);UF.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
UF.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.E3(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
UF.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.E3(this,"ytd-product-details-variant-image-unselect")};
_.kV.Object.defineProperties(UF.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,b,I;return((G=this.data)==null?void 0:G.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((b=this.data)==null?void 0:b.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,b;return this.isUnavailable?(G=this.data)==null?void 0:G.variantOptionUnavailableAccessibilityLabel:(b=this.data)==null?void 0:b.variantOptionAccessibilityLabel}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],UF.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],UF.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],UF.prototype,"displayType",void 0);
_.R([_.P("displayType","data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],UF.prototype,"isImageButton",null);_.R([_.P("displayType","data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],UF.prototype,"isPillButton",null);_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],UF.prototype,"isActive",null);
_.R([_.P("data"),_.H({reflectToAttribute:!0}),_.n("design:type",Boolean),_.n("design:paramtypes",[])],UF.prototype,"isUnavailable",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],UF.prototype,"thumbnailDetails",null);_.R([_.P("isUnavailable","data"),_.n("design:type",Object),_.n("design:paramtypes",[])],UF.prototype,"accessibilityLabel",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],UF);
_.J(UF,"ytd-product-details-variant-option-renderer",function(){if(lJI!==void 0)return lJI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return lJI=G},{mode:1});var mz7;var sF=function(){var G=_.a.apply(this,arguments)||this;G.variantsExpanded=!1;G.hideShowMoreLessVariantButton=!0;G.initialized=!1;G.computeVariantsDebouncer=null;G.computeVariants=function(b){b=b===void 0?!1:b;G.variantsExpanded||G.showOptions()||!b||(G.variantsExpanded=!0);if(G.variantsExpanded){b=_.e(G.items.children);for(var I=b.next();!I.done;I=b.next())I.value.hidden=!1}G.initialized=!0};
return G};
_.M(sF,_.a);_.m=sF.prototype;_.m.ready=function(){var G=this;setTimeout(function(){G.computeVariants(!0)})};
_.m.showOptions=function(){for(var G=_.e(this.items.children),b=G.next();!b.done;b=G.next())b.value.hidden=!0;var I=this.container.getBoundingClientRect().width,h=0,q=G=0;b=!1;for(var l=_.e(this.items.children),V=l.next();!V.done;V=l.next()){V=V.value;V.hidden=!1;var D=V.getBoundingClientRect().width;if(h+D<I)h+=D;else if(++q<2)h=D;else break;G+=1;V.hasAttribute("is-active")&&(b=!0)}for(I=G;I<this.items.children.length;I++)this.items.children[I].hidden=!0;this.hideShowMoreLessVariantButton=G===this.items.children.length;
return b};
_.m.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Q2(this.computeVariantsDebouncer,_.hw.after(100),this.computeVariants)};
_.m.onShowMoreLessVariantsButtonClick=function(){var G;(G=this.data)!=null&&G.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.m.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.kV.Object.defineProperties(sF.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var G,b,I=(G=this.data)==null?void 0:(b=G.variantOptionRenderers)==null?void 0:b.find(function(l){return _.g(l,ZAa).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),h,q;
return(q=(h=_.g(I,ZAa))==null?void 0:h.name)!=null?q:""}},
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"}}}});
sF.prototype.debouncedComputeVariants=sF.prototype.debouncedComputeVariants;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],sF.prototype,"componentBehavior",void 0);_.R([_.z(_.Y6),_.n("design:type",Object)],sF.prototype,"ironResizableBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],sF.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],sF.prototype,"variantsExpanded",void 0);_.R([_.H(),_.n("design:type",Object)],sF.prototype,"hideShowMoreLessVariantButton",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],sF.prototype,"initialized",void 0);_.R([_.lH("#items"),_.n("design:type",HTMLDivElement)],sF.prototype,"items",void 0);_.R([_.lH("#container"),_.n("design:type",HTMLDivElement)],sF.prototype,"container",void 0);
_.R([_.lH("#more-variants-button"),_.n("design:type",HTMLElement)],sF.prototype,"moreVariantsButton",void 0);_.R([_.P("data"),_.n("design:type",String),_.n("design:paramtypes",[])],sF.prototype,"selectedOptionName",null);_.R([_.q5("data","variantsExpanded"),_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sF.prototype,"debouncedComputeVariants",null);
_.R([_.P("data"),_.n("design:type",String),_.n("design:paramtypes",[])],sF.prototype,"displayType",null);_.R([_.P("displayType"),_.n("design:type",Object),_.n("design:paramtypes",[])],sF.prototype,"variantItemsClassname",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],sF);
_.J(sF,"ytd-product-details-variant-renderer",function(){if(mz7!==void 0)return mz7;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mz7=G},{mode:1});var gD=function(){return _.a.apply(this,arguments)||this};
_.M(gD,_.a);
gD.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"}}}};
_.kV.Object.defineProperties(gD.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,b,I=(b=_.g((G=this.data)==null?void 0:G.offersContainerRenderer,tog))==null?void 0:b.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,b,I;return((I=(G=this.data)==null?void 0:(b=G.variants)==null?void 0:b.map(function(h){var q,l;h=(l=(q=_.g(h,MoK))==null?void 0:q.variantOptionRenderers)==null?void 0:l.find(function(D){var k;return((k=_.g(D,ZAa))==null?void 0:k.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var V;return(V=_.g(h,ZAa))==null?void 0:V.name}).filter(function(h){return typeof h==="string"}))!=null?I:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var G,b,I,h=(b=_.g((G=this.data)==null?void 0:G.shoppingFlaggingRenderer,oIl))==null?void 0:(I=b.reportButton)==null?void 0:I.buttonRenderer;if(h)return{text:h.text,command:h.command,icon:{iconType:"FLAG"},accessibilityData:h.accessibilityData,trackingParams:h.trackingParams,loggingDirectives:h.loggingDirectives}}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],gD.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],gD.prototype,"data",void 0);_.R([_.lH("#image-carousel-renderer"),_.n("design:type",Object)],gD.prototype,"imageCarouselRenderer",void 0);
_.R([_.lH("#hero-offer-renderer"),_.n("design:type",Object)],gD.prototype,"productDetailsHeroOfferRenderer",void 0);_.R([_.lH("#variants"),_.n("design:type",Object)],gD.prototype,"productDetailsVariantRenderer",void 0);_.R([_.lH("#offers"),_.n("design:type",Object)],gD.prototype,"productDetailsOffersContainerRenderer",void 0);_.R([_.lH("#description-renderer"),_.n("design:type",Object)],gD.prototype,"productDetailsDescriptionRenderer",void 0);
_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],gD.prototype,"showPurchaseData",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],gD.prototype,"showHeroOfferRenderer",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],gD.prototype,"showBrandText",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],gD.prototype,"showOffers",null);
_.R([_.P("showOffers","showPurchaseData"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],gD.prototype,"showBuySeparator",null);_.R([_.P("showOffers","showPurchaseData"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],gD.prototype,"showBuyCard",null);_.R([_.P("data"),_.n("design:type",String),_.n("design:paramtypes",[])],gD.prototype,"selectedVariantsText",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],gD.prototype,"shoppingReportingButtonData",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],gD);
_.J(gD,"ytd-product-details-renderer",function(){if(j$l!==void 0)return j$l;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return j$l=G},{mode:1});var eMd;var VcK;var DzK;var A9=function(){return _.a.apply(this,arguments)||this};
_.M(A9,_.a);A9.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.kV.Object.defineProperties(A9.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],A9.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],A9.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],A9.prototype,"formattedAmount",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],A9.prototype,"ariaLabel",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("data.style"),_.n("design:type",String),_.n("design:paramtypes",[])],A9.prototype,"vcBalanceWidgetStyle",null);_.R([_.g8({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],A9);
_.J(A9,"yt-vc-balance-renderer",function(){if(DzK===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;VcK===void 0&&(VcK=document.createElement("template"));var h=VcK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);DzK=G}G=DzK;return G},{mode:2});_.QO("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Mq=function(){return _.a.apply(this,arguments)||this};
_.M(Mq,_.a);_.kV.Object.defineProperties(Mq.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Mq.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Mq.prototype,"data",void 0);_.R([_.H({selectorArgs:["data.vcBalanceEntityKey"],selector:function(G,b){return _.Gi(G.entities,"vcBalanceEntity",b)}}),
_.n("design:type",Object)],Mq.prototype,"vcBalanceEntity",void 0);_.R([_.P("vcBalanceEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],Mq.prototype,"formattedAmount",null);_.R([_.P("vcBalanceEntity"),_.n("design:type",String),_.n("design:paramtypes",[])],Mq.prototype,"vcBalanceAriaLabel",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Mq);
_.J(Mq,"ytd-vc-balance-renderer",function(){if(eMd!==void 0)return eMd;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return eMd=G},{mode:1});var cjl;var Zj=function(){var G=_.a.apply(this,arguments)||this;G.rotation=0;G.isReloading=!1;return G};
_.M(Zj,_.a);Zj.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Zj.prototype.reset=function(){this.hostElement.style.opacity=""};
Zj.prototype.close=function(){var G=this;return _.c(function(b){if(b.nextAddress==1)return b.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";_.ip(b)})};
Zj.prototype.rotationChanged=Zj.prototype.rotationChanged;_.R([_.H(),_.n("design:type",Object)],Zj.prototype,"rotation",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Zj.prototype,"isReloading",void 0);_.R([_.lH("#icon"),_.n("design:type",HTMLElement)],Zj.prototype,"icon",void 0);_.R([_.q5("rotation"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zj.prototype,"rotationChanged",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-refresh"})],Zj);
_.J(Zj,"ytd-refresh",function(){if(cjl!==void 0)return cjl;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return cjl=G},{mode:1});var kfv;var t9=function(){return _.a.apply(this,arguments)||this};
_.M(t9,_.a);t9.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"}}}};
t9.prototype.dataChanged=function(){if(this.data){var G=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var b=_.KG(this.data.banner.thumbnails,this.hostElement.clientWidth);b&&(b.indexOf("//")===0&&(b="https:"+b),this.hasBannerArt=!0,_.G8(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+b+")"}))}this.hasBannerArt!==G&&_.Eo(this.hostElement).querySelector("#header").fire("iron-resize")}};
t9.prototype.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
t9.prototype.dataChanged=t9.prototype.dataChanged;_.R([_.z(dEI),_.n("design:type",Object)],t9.prototype,"ytdTabbedHeaderBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.Xl),_.n("design:type",Object)],t9.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],t9.prototype,"ytdGuideStateAwareBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],t9.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],t9.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Number)],t9.prototype,"selected",void 0);_.R([_.H(),_.n("design:type",Boolean)],t9.prototype,"active",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],t9.prototype,"hasBannerArt",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],t9.prototype,"dataChanged",null);_.R([_.N({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],t9);
_.J(t9,"ytd-interactive-tabbed-header-renderer",function(){if(kfv!==void 0)return kfv;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout 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(_.E().content.cloneNode(!0),
G.content.firstChild);return kfv=G},{mode:1});var vTg;var zR=function(){return _.a.apply(this,arguments)||this};
_.M(zR,_.a);zR.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zR.prototype.computeActionsAlignment=function(G){return(G==null?void 0:G.actionsAlignment)||""};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],zR.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],zR.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],zR.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.n("design:type",String)],zR.prototype,"actionsAlignment",void 0);_.R([_.N({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],zR);
_.J(zR,"ytd-page-footer-renderer",function(){if(vTg!==void 0)return vTg;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vTg=G},{mode:1});var Lfl;var Q$I;var od=function(){var G=_.a.apply(this,arguments)||this;G.isEditing=!1;G.useSlot=!1;G.isMultiline=!1;return G};
_.M(od,_.a);_.m=od.prototype;_.m.onKeydown=function(G){if(G.keyCode===13&&!this.isMultiline)this.onSave();else if(G.keyCode===27)this.onCancel()};
_.m.computeComponentStyle=function(G){return(G==null?0:G.style)?G.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.m.computeisMultiline=function(G){if(this.multilineOverride!==void 0)return this.multilineOverride;var b,I;return!!(G==null?0:(b=G.formField)==null?0:(I=b.textInputFormFieldRenderer)==null?0:I.isMultiline)};
_.m.computeTextDisplayed=function(G,b){if(G)return G;if(b)return b};
_.m.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.m.onSave=function(){if(this.textForm.validate()){this.textForm.save();var G=this.textForm.value;if(G)this.set("data.textDisplayed",_.ao(G));else{var b;((b=this.data)==null?0:b.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.lh("inline-form-changed",this.data));this.isEditing=!1}};
_.m.onCancel=function(){var G=_.NO(this.data.textDisplayed);G===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(G);this.isEditing=!1};
od.prototype.onKeydown=od.prototype.onKeydown;_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],od.prototype,"ytEventForwardingBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],od.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],od.prototype,"isEditing",void 0);_.R([_.H(),_.n("design:type",Object)],od.prototype,"useSlot",void 0);_.R([_.H(),_.n("design:type",Boolean)],od.prototype,"multilineOverride",void 0);_.R([_.H(),_.n("design:type",Boolean)],od.prototype,"enableOverlayTheme",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.n("design:type",String)],od.prototype,"componentStyle",void 0);
_.R([_.H({computed:"computeisMultiline(data)"}),_.n("design:type",Object)],od.prototype,"isMultiline",void 0);_.R([_.lH("#text-form"),_.n("design:type",Object)],od.prototype,"textForm",void 0);_.R([_.hI("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],od.prototype,"onKeydown",null);_.R([_.N({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],od);
_.J(od,"ytd-inline-form-renderer",function(){if(Q$I!==void 0)return Q$I;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Q$I=G},{mode:1});var xzd;var PS=function(){var G=_.a.apply(this,arguments)||this;G.previousSelectValue=void 0;G.selectedItemMessage=void 0;return G};
_.M(PS,_.a);PS.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
PS.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var G,b,I,h,q=(G=this.data)==null?void 0:(b=G.dropdown)==null?void 0:(I=b.dropdownRenderer)==null?void 0:(h=I.entries)==null?void 0:h.map(function(D){return D.privacyDropdownItemRenderer});
G=_.e(q!=null?q:[]);for(b=G.next();!b.done;b=G.next())if((b=b.value)&&b.int32Value===this.selectedValue){this.selectedItemMessage=b.itemMessage;break}}else this.selectedItemMessage=void 0;var l;(l=this.onValueChanged)==null||l.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var V;(V=this.data)!=null&&V.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
PS.prototype.onValueChangedForSelectedValue=function(G){this.selectedValue=G.detail.value};
PS.prototype.selectedValueChanged=PS.prototype.selectedValueChanged;_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],PS.prototype,"ytEventForwardingBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],PS.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],PS.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],PS.prototype,"theme",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Number)],PS.prototype,"selectedValue",void 0);_.R([_.H(),_.n("design:type",Function)],PS.prototype,"onValueChanged",void 0);
_.R([_.Dd("selectedValue"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PS.prototype,"selectedValueChanged",null);_.R([_.N({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],PS);
_.J(PS,"ytd-dropdown-form-field-renderer",function(){if(xzd!==void 0)return xzd;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xzd=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var fJo;var dD=function(){return _.a.apply(this,arguments)||this};
_.M(dD,_.a);_.kV.Object.defineProperties(dD.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var G=[],b=_.e(this.data||[]),I=b.next();!I.done;I=b.next())(I=_.g(I.value,iAv))&&G.push(I);return G}}});
_.R([_.H(),_.n("design:type",Array)],dD.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],dD.prototype,"byline",null);_.R([_.N({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],dD);
_.J(dD,"ytd-playlist-byline-renderer",function(){if(fJo!==void 0)return fJo;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fJo=G},{mode:1});var Tmd;var yJ=function(){var G=_.a.apply(this,arguments)||this;G.rtlBullet=_.U("web_playlist_stats_rtl_bullet_icon_killswitch");G.modern=_.U("web_modern_buttons");G.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return G};
_.M(yJ,_.a);_.m=yJ.prototype;_.m.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"}}}}};
_.m.attached=function(){};
_.m.computeIsCustomThumbnail=function(G){return G?!!G.playlistCustomThumbnailRenderer:!1};
_.m.onYtNavigate=function(G,b){if(b&&b.actions&&b.actions.indexOf("shuffle")>-1){G=_.LL().resolve(_.jm);var I=b.tempData||{};I.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);b.tempData=I;G.isShuffleNextPlaylist=!0}};
_.m.onUpdatePlaylistAction=function(G){var b;G=(b=_.g(G,_.RaO))==null?void 0:b.updatedRenderer;if(b=_.g(G,gII))this.data=b};
_.m.computeStyleType=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.m.computeThumbnailWidth=function(G){return G==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.m.computeHideThumbnailAria=function(G){if(G==null?0:G.thumbnailOverlays)for(var b=0;b<G.thumbnailOverlays.length;b++){var I=void 0;if((I=G.thumbnailOverlays[b])==null?0:I.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
yJ.prototype.onYtNavigate=yJ.prototype.onYtNavigate;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],yJ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],yJ.prototype,"ytComponentBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],yJ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],yJ.prototype,"rtlBullet",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.n("design:type",String)],yJ.prototype,"styleType",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.n("design:type",Number)],yJ.prototype,"thumbnailWidth",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],yJ.prototype,"modern",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.n("design:type",Boolean)],yJ.prototype,"isCustomThumbnail",void 0);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[Event,Object]),_.n("design:returntype")],yJ.prototype,"onYtNavigate",null);_.R([_.N({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],yJ);
_.J(yJ,"ytd-playlist-sidebar-primary-info-renderer",function(){if(Tmd!==void 0)return Tmd;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Tmd=G},{mode:1});var BmM;var rD=function(){return _.a.apply(this,arguments)||this};
_.M(rD,_.a);rD.prototype.computeOwnerVisibility=function(G){return!(!G.videoOwner&&!G.button)};
rD.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],rD.prototype,"data",void 0);_.R([_.N({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],rD);
_.J(rD,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(BmM!==void 0)return BmM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return BmM=G},{mode:1});var Uzl;var Fx=function(){var G=_.a.apply(this,arguments)||this;G.expanded=!1;G.isCompact=!1;return G};
_.M(Fx,_.a);_.m=Fx.prototype;_.m.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.m.dataChanged=function(){this.data&&_.ec(_.Eo(this.text),_.byX(_.qgu,_.NO(this.data.text||null)))};
_.m.computeAutoScrollEnabled=function(G,b){return G&&!b};
_.m.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.m.toggleOnTap=function(){this.expanded=!this.expanded};
Fx.prototype.expandedChanged=Fx.prototype.expandedChanged;Fx.prototype.dataChanged=Fx.prototype.dataChanged;_.R([_.z(_.eeI),_.n("design:type",Object)],Fx.prototype,"ytdAutoScrollBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Fx.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Fx.prototype,"expanded",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Fx.prototype,"isCompact",void 0);_.R([_.H({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.n("design:type",Boolean)],Fx.prototype,"autoScrollEnabled",void 0);_.R([_.lH("#text"),_.n("design:type",Object)],Fx.prototype,"text",void 0);_.R([_.lH("#expander-icon"),_.n("design:type",Object)],Fx.prototype,"expanderIcon",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fx.prototype,"dataChanged",null);_.R([_.q5("expanded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Fx.prototype,"expandedChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Fx);
_.J(Fx,"ytd-channel-legal-info-renderer",function(){if(Uzl!==void 0)return Uzl;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Uzl=G},{mode:1});var s$I;var gTI=_.qP("DOWNLOAD",{},"Download"),AjK=_.qP("DOWNLOADING",{},"Downloading"),McI=_.qP("DOWNLOADED",{},"Downloaded"),HS=function(){var G=_.a.apply(this,arguments)||this;G.downloadProgress=0;G.isDownloadComplete=!1;G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.M(HS,_.a);_.m=HS.prototype;_.m.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.m.dataChanged=function(){var G;(G=this.data)!=null&&G.tooltip||(G=_.tQ(_.Cw().getState(),this.playlistId),this.updateButtonState(G))};
_.m.computePlaylistId=function(G){return G};
_.m.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.m.updateButtonState=function(G){if(this.data&&(this.data.tooltip!==AjK||!_.Vg(G))){this.isDownloadComplete=!1;switch(G){case "TRANSFER_STATE_UNKNOWN":G=gTI;var b="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":G=McI;b="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=AjK;b="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";
break;default:G=gTI,b="OFFLINE_DOWNLOAD",I="ACTION_ADD"}var h=Object.assign({},this.data);h.tooltip=G;h.accessibilityData={accessibilityData:{label:G}};h.icon={iconType:b};h.size="SIZE_DEFAULT";_.g(h.command,_.jK)&&(_.g(h.command,_.jK).action=I);this.set("data",h)}};
_.m.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 b;G!==((b=this.data.icon)==null?void 0:b.iconType)&&(b=Object.assign({},this.data),b.tooltip=AjK,b.accessibilityData={accessibilityData:{label:AjK}},b.icon={iconType:G},_.g(b.command,_.jK)&&(_.g(b.command,_.jK).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",b))}};
HS.prototype.updateProgress=HS.prototype.updateProgress;HS.prototype.onTransferStateChanged=HS.prototype.onTransferStateChanged;HS.prototype.dataChanged=HS.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],HS.prototype,"ytdReduxBehavior",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],HS.prototype,"forceIconButton",void 0);
_.R([_.H({value:!0}),_.n("design:type",Boolean)],HS.prototype,"forceIconOnly",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],HS.prototype,"overrides",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],HS.prototype,"buttonTooltipPosition",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],HS.prototype,"styleActionButton",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],HS.prototype,"disableTextTransform",void 0);
_.R([_.H({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.n("design:type",String)],HS.prototype,"playlistId",void 0);_.R([_.H(),_.n("design:type",Object)],HS.prototype,"data",void 0);_.R([_.H({selector:_.uGq,selectorArgs:["playlistId"]}),_.n("design:type",Object)],HS.prototype,"downloadProgress",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],HS.prototype,"isDownloadComplete",void 0);
_.R([_.H({selector:_.tQ,selectorArgs:["playlistId"]}),_.n("design:type",String)],HS.prototype,"transferState",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],HS.prototype,"showTooltips",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],HS.prototype,"sendCommandWhenDisabled",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],HS.prototype,"disabled",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HS.prototype,"dataChanged",null);_.R([_.Dd("transferState"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HS.prototype,"onTransferStateChanged",null);_.R([_.Dd("downloadProgress"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HS.prototype,"updateProgress",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],HS);
_.J(HS,"ytd-download-playlist-button-renderer",function(){if(s$I!==void 0)return s$I;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return s$I=G},{mode:1});var ZNo;_.JN(_.Zaz,"thumbnail-overlay-button-view-model",{props:{data:_.hV,lockupExperiments:_.hV}});var WS=function(){var G=_.a.apply(this,arguments)||this;G.isSquare=!1;G.isVertical=!1;return G};
_.M(WS,_.a);WS.prototype.computeIsSquare=function(G){return G!=null&&G.thumbnail?hKd(G.thumbnail)==="SQUARE":!1};
WS.prototype.computeIsVertical=function(G){return G!=null&&G.thumbnail?hKd(G.thumbnail)==="VERTICAL":!1};
WS.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.n("design:type",Object)],WS.prototype,"isSquare",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.n("design:type",Object)],WS.prototype,"isVertical",void 0);
_.R([_.H(),_.n("design:type",Object)],WS.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],WS);
_.J(WS,"ytd-hero-playlist-thumbnail-renderer",function(){if(ZNo!==void 0)return ZNo;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ZNo=G},{mode:1});var ad=function(){var G=_.a.apply(this,arguments)||this;G.isDarkTheme=!1;G.isUltraWide=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return G};
_.M(ad,_.a);_.m=ad.prototype;_.m.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.LL();var G;(G=_.LL().resolve(_.vf(_.aP)))!=null&&(G.headerElement=this.hostElement)};
_.m.detached=function(){var G;(G=_.LL().resolve(_.vf(_.aP)))!=null&&(G.headerElement=void 0)};
_.m.onUpdateHeader=function(G){(G=G.detail)&&this.set("data",G)};
_.m.computeTextDisplayed=function(G){if(G)return G.textDisplayed?G.textDisplayed:G.placeholder};
_.m.gradientColorToLinearGradientStop=function(G){var b=this.isDarkTheme?G.darkThemeColor:G.lightThemeColor;return b?_.so(b)+" "+((G==null?void 0:G.startLocation)||0)*100+"%":"transparent"};
_.m.onWindowResize=function(){var G;((G=this.data)==null?0:G.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.m.onIronResize=function(G){this.isUltraWide=!G.detail.value};
_.m.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.m.onUpdatePlaylistName=function(G){var b=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},G.detail.value));_.D1(this,function(){var I;(I=b.editableTitle)==null||I.resize()})};
_.m.onUpdatePlaylistDescription=function(G){var b=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},G.detail.value));_.D1(this,function(){var I;(I=b.editableDescriptionInlineExpander)==null||I.resize()})};
_.m.getCinematicData=function(G){return _.g(G==null?void 0:G.cinematicContainer,_.$L)};
_.kV.Object.defineProperties(ad.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,b=(G=this.getCinematicData(this.data))==null?void 0:G.config;return(G=this.isDarkTheme?b==null?void 0:b.darkThemeBackgroundColor:b==null?void 0:b.lightThemeBackgroundColor)?"background-color:"+_.Uo(G)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var G;return _.g((G=this.data)==null?void 0:G.descriptionForm,sIK)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var G=this,b,I,h;return"background:linear-gradient(to bottom, "+(((h=(b=this.getCinematicData(this.data))==null?void 0:(I=b.gradientColorConfig)==null?void 0:I.map(function(q){return G.gradientColorToLinearGradientStop(q)}))==null?void 0:h.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var G;return _.NO((G=this.data)==null?void 0:G.descriptionTapText)}}});
ad.prototype.onUpdateHeader=ad.prototype.onUpdateHeader;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],ad.prototype,"actionHandlerBehavior",void 0);_.R([_.lH("#description-inline-expander"),_.n("design:type",Object)],ad.prototype,"descriptionInlineExpander",void 0);
_.R([_.lH("#editable-description-inline-expander"),_.n("design:type",Object)],ad.prototype,"editableDescriptionInlineExpander",void 0);_.R([_.H(),_.n("design:type",Object)],ad.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],ad.prototype,"isUltraWide",void 0);_.R([_.lH("#editable-title-display"),_.n("design:type",Object)],ad.prototype,"editableTitle",void 0);_.R([_.P("isUltraWide"),_.n("design:type",Object),_.n("design:paramtypes",[])],ad.prototype,"maxDescriptionLines",null);
_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ad.prototype,"noCinematicData",null);_.R([_.hI("yt-new-playlist-header"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ad.prototype,"onUpdateHeader",null);_.R([_.P("data","isDarkTheme"),_.n("design:type",Object),_.n("design:paramtypes",[])],ad.prototype,"backgroundStyle",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ad.prototype,"descriptionFormData",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ad.prototype,"getDropdownTheme",null);_.R([_.P("data","isDarkTheme"),_.n("design:type",String),_.n("design:paramtypes",[])],ad.prototype,"gradientStyle",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],ad.prototype,"descriptionTapText",null);
_.R([_.N({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],ad);
_.J(ad,"ytd-playlist-header-renderer",function(){if(Lfl!==void 0)return Lfl;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Lfl=G},{mode:_.nn("kevlar_poly_si_batch_j078")?1:2});var tcz;var zMI;var Nq=function(){return _.a.apply(this,arguments)||this};
_.M(Nq,_.a);Nq.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Nq.prototype,"data",void 0);_.R([_.N({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Nq);
_.J(Nq,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(zMI!==void 0)return zMI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return zMI=G},{mode:1});var YL=function(){return _.a.apply(this,arguments)||this};
_.M(YL,_.a);
YL.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}}}}};
YL.prototype.computeUsePremiumShowStyle=function(G){if(!G||!G.items)return!1;for(var b=0;b<G.items.length;b++)if(_.g(G.items[b],gII)){var I=void 0;return((I=_.g(G.items[b],gII))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],YL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],YL.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.n("design:type",Boolean)],YL.prototype,"usePremiumShowStyle",void 0);
_.R([_.N({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],YL);
_.J(YL,"ytd-playlist-sidebar-renderer",function(){if(tcz!==void 0)return tcz;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return tcz=G},{mode:1});var oTM;var iNl;var PpK=function(G,b,I,h,q,l,V,D){this.minWidth=G;this.minHeight=b;this.recommendedWidth=I;this.recommendedHeight=h;this.JSC$22554_maxFileSize=q;this.title=l;this.bannerGalleryTitle=V;this.channelId=D;this.picker_=null;G=_.kCs("yt-banner");b=G.addView;I=(new czl("youtubebanner")).addUploadMetadata("silo_id","19");I.opts.ytMaxFileSize=this.JSC$22554_maxFileSize;h=this.recommendedHeight;I.opts.ytRecWidth=this.recommendedWidth;I.opts.ytRecHeight=h;b.call(G,I);G.addView(new _.iW);b=G.addView;I=new _.iW;
I.opts.type="ytbanner";b.call(G,I.JSC$10147_setLabel(this.bannerGalleryTitle));b=G.setTitle(this.title).setSize(1E3);b.urlParamMap_.set("thumbs","orig");I=this.minWidth;h=this.minHeight;if(isNaN(I)||isNaN(h))throw Error("gb`"+I+"`"+h);b.urlParamMap_.set("minSize",I+"x"+h);b.urlParamMap_.set("cropMode","ytcb");this.builder_=G};
PpK.prototype.open=function(){var G=this;return new _.MB(function(b,I){_.CxW(G.builder_,function(h){h.action=="picked"?b(h):h.action=="cancel"&&I(Error("Qo"))});
G.picker_&&G.picker_.dispose();G.picker_=G.builder_.build();G.picker_.setVisible(!0)})};
PpK.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var dzz=function(G){this.channelId=G};
dzz.prototype.upload=function(G){var b="";G.viewToken&&(b=G.viewToken[2].type);var I=G.docs[0];G=I.crop;b={channel_id:this.channelId,fife_url:I.thumbnails[0].url,photo_id:I.id,is_gallery_image:b=="ytbanner"};G&&(b.crop_top=G.top,b.crop_right=G.right,b.crop_bottom=G.bottom,b.crop_left=G.left);return _.UkX("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:b})};var CK=function(){var G=_.a.apply(this,arguments)||this;G.ariaLabel=null;return G};
_.M(CK,_.a);_.m=CK.prototype;_.m.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.m.detached=function(){this.picker&&this.picker.dispose()};
_.m.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.m.computeAriaLabel=function(G){return G};
_.m.onTap=function(){var G=this,b;if((b=this.data)==null||!b.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new PpK(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(h){G.handleBannerPicked(h)},function(){})}};
_.m.handleBannerPicked=function(G){var b=this;this.uploader||(this.uploader=new dzz(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(G).then(function(I){b.handleBannerUploadSucceeded(I)},function(I){b.handleBannerUploadFailed(I)})};
_.m.handleBannerUploadSucceeded=function(G){G&&G.errors?this.handleBannerUploadFailed(G):(_.O3(this.hostElement,"yt-banner-updated",G),this.message=null)};
_.m.handleBannerUploadFailed=function(G){this.message=G&&G.errors&&G.errors.length?G.errors[0]:null};
CK.prototype.dataChanged=CK.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],CK.prototype,"componentBehavior",void 0);_.R([_.z(_.Jr),_.n("design:type",Object)],CK.prototype,"ironButtonState",void 0);_.R([_.H(),_.n("design:type",Object)],CK.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.n("design:type",Object)],CK.prototype,"ariaLabel",void 0);
_.R([_.H(),_.n("design:type",Object)],CK.prototype,"message",void 0);_.R([_.H(),_.n("design:type",Object)],CK.prototype,"picker",void 0);_.R([_.H(),_.n("design:type",Object)],CK.prototype,"uploader",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],CK.prototype,"dataChanged",null);_.R([_.N({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],CK);
_.J(CK,"ytd-channel-banner-editor-renderer",function(){if(iNl!==void 0)return iNl;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return iNl=G},{mode:1});var yjM;var rjM=_.WP(["#"]),J9=function(){return _.a.apply(this,arguments)||this};
_.M(J9,_.a);J9.prototype.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G,!0)||_.lJa(rjM)};
J9.prototype.dataChanged=function(){var G=this.data;G&&G.targetId&&_.Fzz(_.PQ(),G.targetId,this.moreIcon)};
J9.prototype.dataChanged=J9.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],J9.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],J9.prototype,"data",void 0);_.R([_.lH("#more-icon"),_.n("design:type",Object)],J9.prototype,"moreIcon",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],J9.prototype,"dataChanged",null);
_.R([_.N({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],J9);
_.J(J9,"ytd-channel-tagline-renderer",function(){if(yjM!==void 0)return yjM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return yjM=G},{mode:1});var FfI;var KK=function(){return _.a.apply(this,arguments)||this};
_.M(KK,_.a);_.m=KK.prototype;_.m.ready=function(){var G=this;_.Eo(this.hostElement).querySelector("#form").addEventListener("submit",function(b){G.onSubmit(b)})};
_.m.onDataChanged=function(){var G;((G=this.data)==null?0:G.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.m.onIconButtonKeydown=function(G){G.keyCode===13&&this.iconButton.click()};
_.m.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.m.openOnClickHandler=function(){this.input.focus()};
_.m.onSubmit=function(G){G.preventDefault();return!1};
_.m.submitOnEnterKeyUp=function(G){var b;if(G.keyCode===13&&((b=this.data)==null?0:b.expandedText)){G=this.data.endpoint;b=_.Cy.unsafeClone(G);var I;((I=_.g(b==null?void 0:b.commandMetadata,_.IW))==null?0:I.url)?(_.g(b.commandMetadata,_.IW).url=_.EY(_.g(b.commandMetadata,_.IW).url,"query",this.data.expandedText),_.g(b,_.jL)&&(_.g(b,_.jL).query=this.data.expandedText),_.O3(this.hostElement,"yt-navigate",{endpoint:b,tempData:{disableCache:!0}})):(I=new _.Wf("Error: Trying to navigate to an endpoint without url",
G),_.K1(I))}};
_.m.updateDataExpandedTextFromBinding=function(G){this.set("data.expandedText",G.detail.value)};
_.kV.Object.defineProperties(KK.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
KK.prototype.onDataChanged=KK.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.Id3),_.n("design:type",Object)],KK.prototype,"ytdExpandableInputBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],KK.prototype,"data",void 0);_.R([_.lH("#input"),_.n("design:type",Object)],KK.prototype,"input",void 0);_.R([_.lH("#icon-button"),_.n("design:type",HTMLElement)],KK.prototype,"iconButton",void 0);
_.R([_.H(),_.n("design:type",String),_.n("design:paramtypes",[])],KK.prototype,"searchIcon",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],KK.prototype,"onDataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],KK);
var qvI=_.R9()(KK,"ytd-expandable-tab-renderer",function(){if(FfI===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);FfI=G}G=FfI;return G},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var HNg;var ut=function(){var G=_.a.apply(this,arguments)||this;G.avatarSize=80;G.ariaLabel=_.qP("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return G};
_.M(ut,_.a);ut.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
ut.prototype.computeHref=function(G){var b;return((b=_.g(G,_.bx))==null?0:b.url)?this.componentBehavior.computeHref_(G):null};
ut.prototype.onTap=function(){var G,b;(G=this.data)==null||!G.editAvatarServiceEndpoint||((b=_.g(this.data.editAvatarServiceEndpoint,_.bx))==null?0:b.url)||_.LL().resolve(_.xW).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.R([_.z(_.Jr),_.n("design:type",Object)],ut.prototype,"ironButtonState",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],ut.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ut.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],ut.prototype,"avatarSize",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],ut.prototype,"ariaLabel",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],ut);
_.J(ut,"ytd-channel-avatar-editor",function(){if(HNg!==void 0)return HNg;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return HNg=G},{mode:1});var Wfh=_.C(function(G){var b=G.data;var I=G.noPadding;var h=G.enableBanner;var q=G.cinematicContainerTopbarOffset;var l=G.allowCinematicContainerOverflow;var V=G.displayAsSidebar;G=G.className;_.K0(function(){b().tagManagerId&&(_.WQ(b().tagManagerId,_.wy("GL")),DEl(b().tagManagerId))},"vUc8md");
var D=_.lA(lKd,function(){return b().pageHeaderEntityKey});
return _.v("yt-page-header-renderer",{class:_.pG("pageHeaderRendererHost",G)},_.v(_.VX,{data:function(){var k;return((k=D())==null?0:k.header)?D().header:(V==null?0:V())&&b().sidebarContent?b().sidebarContent:b().content}},{pageHeaderViewModel:function(k){return _.v(_.cdF,{data:k.data,
noPadding:I,enableBanner:h,cinematicContainerTopbarOffset:q,allowCinematicContainerOverflow:l,displayAsSidebar:function(){return(V==null?void 0:V())&&b().enableSidebarView}})}}))},"cn");
Wfh.idomCompat=!0;_.JN(Wfh,"yt-page-header-renderer",{props:{data:_.hV,noPadding:_.hV,enableBanner:_.hV,cinematicContainerTopbarOffset:_.hV,allowCinematicContainerOverflow:_.hV,displayAsSidebar:_.hV,className:_.hV}});_.JN(_.j1,"yt-image-banner-view-model",{props:{data:_.hV,isPositionRelative:_.hV}});_.JN(_.Pse,"yt-tab-group-shape",{props:{shape:_.hV}});var aJv=_.PH.persistentPanelVisibleSelector,Rd=function(){var G=_.a.apply(this,arguments)||this;G.expandableCustomTabRenderable=function(b){return jIM(b,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.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return G};
_.M(Rd,_.a);_.m=Rd.prototype;_.m.computeHeaderDisabled=function(G,b){return b||!G||this.tabsHidden};
_.m.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.m.computeIsRichGridShorts=function(G){return G==="RICH_GRID_STYLE_SHORTS_GRID"||G==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.m.computeImageBannerViewModel=function(){var G,b;return _.g((b=_.g((G=this.data)==null?void 0:G.content,_.M$X))==null?void 0:b.banner,_.fsu)};
_.m.computeHasCinematicContainer=function(){var G,b;return!((b=_.g((G=this.data)==null?void 0:G.content,_.M$X))==null||!b.background)};
_.m.handleHeaderResize=function(){var G=_.Eo(this.hostElement).querySelector("#header");G&&_.O3(G,"iron-resize")};
_.m.handleInsertTabCommand=function(G){var b=_.g(G,Pl7);b&&(b.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(I){return I.tabRenderer&&I.tabRenderer.tabIdentifier===b.tabIdentifier})||this.splice("tabs",b.tabIndex||-1,0,b.tab))};
_.m.handleRefreshChannelTabAction=function(G){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===G&&_.O3(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.m.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.m.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.G8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.m.observerRichGridSlimItemsPerRow=function(){_.G8(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.m.updateCssVars=function(){this.richGridItemsPerRow&&_.G8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Te("rich_grid_max_item_width",500))+16)-16+"px"})};
_.m.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.G8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.m.onDataChanged=function(){this.handleHeaderResize()};
_.m.onWindowResize=function(){this.handleHeaderResize()};
_.m.onFocusedChanged=function(G){(G=_.a_(G))&&G.is==="tp-yt-paper-tab"&&G.hasRipple()&&(G.getRipple().holdDown=!G.pointerDown&&G.focused)};
_.m.updateSelectedFromBinding=function(G){this.ytdTabbedHeaderBehavior.selected=G.detail.value};
_.m.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.kV.Object.defineProperties(Rd.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:eKK(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"}}});
Rd.prototype.onDataChanged=Rd.prototype.onDataChanged;Rd.prototype.updateCssVarsForResponsiveGrid=Rd.prototype.updateCssVarsForResponsiveGrid;Rd.prototype.updateCssVars=Rd.prototype.updateCssVars;Rd.prototype.observerRichGridSlimItemsPerRow=Rd.prototype.observerRichGridSlimItemsPerRow;Rd.prototype.observerRichGridItemsPerRow=Rd.prototype.observerRichGridItemsPerRow;Rd.prototype.persistentPanelVisibleChanged=Rd.prototype.persistentPanelVisibleChanged;
_.R([_.z(_.Xl),_.n("design:type",Object)],Rd.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.z(dEI),_.n("design:type",Object)],Rd.prototype,"ytdTabbedHeaderBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Rd.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Rd.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],Rd.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Rd.prototype,"ytdReduxBehavior",void 0);_.R([_.lH("#tabs"),_.n("design:type",Object)],Rd.prototype,"tabsElement",void 0);_.R([_.H(),_.n("design:type",Array)],Rd.prototype,"tabs",void 0);_.R([_.H(),_.n("design:type",Object)],Rd.prototype,"expandableCustomTabRenderable",void 0);
_.R([_.P("tabs.*"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rd.prototype,"tabGroupShape",null);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Rd.prototype,"isRichGrid",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Rd.prototype,"isConstrainedList",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Object)],Rd.prototype,"richGridMiniMode",void 0);_.R([_.H({selector:function(G){return G.ui.richGridStyle}}),
_.n("design:type",Object)],Rd.prototype,"richGridStyle",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.n("design:type",Object)],Rd.prototype,"isRichGridShorts",void 0);_.R([_.H({selector:_.sb}),_.n("design:type",Number)],Rd.prototype,"richGridItemsPerRow",void 0);_.R([_.H({selector:function(G){return G.ui.richGridContainerWidth}}),
_.n("design:type",Number)],Rd.prototype,"richGridContainerWidth",void 0);_.R([_.H({selector:_.iPp}),_.n("design:type",Number)],Rd.prototype,"richGridSlimItemsPerRow",void 0);_.R([_.H(),_.n("design:type",Object)],Rd.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Rd.prototype,"responsiveSizing",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Rd.prototype,"disableGridStateAware",void 0);
_.R([_.H({computed:"computeImageBannerViewModel(data)"}),_.n("design:type",Object)],Rd.prototype,"imageBannerViewModel",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.n("design:type",Boolean)],Rd.prototype,"hasCinematicContainer",void 0);_.R([_.H({selector:_.JL1,reflectToAttribute:!0}),_.n("design:type",Boolean)],Rd.prototype,"guideIsVisibleButNotPersistent",void 0);
_.R([_.H({selector:aJv}),_.n("design:type",Boolean)],Rd.prototype,"persistentPanelVisible",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("imageBannerViewModel"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rd.prototype,"hasBanner",null);_.R([_.H({reflectToAttribute:!0}),_.P("imageBannerViewModel"),_.n("design:type",Object),_.n("design:paramtypes",[])],Rd.prototype,"hasInsetBanner",null);
_.R([_.H({computed:"computeTabsHidden(tabs)",value:!0}),_.n("design:type",Boolean)],Rd.prototype,"tabsHidden",void 0);_.R([_.q5("persistentPanelVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rd.prototype,"persistentPanelVisibleChanged",null);_.R([_.q5("richGridItemsPerRow","isRichGrid"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rd.prototype,"observerRichGridItemsPerRow",null);
_.R([_.q5("richGridSlimItemsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rd.prototype,"observerRichGridSlimItemsPerRow",null);_.R([_.q5("richGridItemsPerRow","richGridMiniMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rd.prototype,"updateCssVars",null);
_.R([_.q5("richGridContainerWidth"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rd.prototype,"updateCssVarsForResponsiveGrid",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rd.prototype,"onDataChanged",null);_.R([_.N({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Rd);
_.J(Rd,"ytd-tabbed-page-header",function(){if(oTM!==void 0)return oTM;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout 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(_.E().content.cloneNode(!0),
G.content.firstChild);return oTM=G},{mode:1});var NmA;var nK=function(){return _.a.apply(this,arguments)||this};
_.M(nK,_.a);nK.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.G8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.kV.Object.defineProperties(nK.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var G,b;return this.componentBehavior.computeIcon_(((b=_.g((G=this.data)==null?void 0:G.badge,_.o6u))==null?void 0:b.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var G,b;return(b=_.g((G=this.data)==null?void 0:G.badge,_.o6u))==null?void 0:b.label}}});
nK.prototype.observerRichGridItemsPerRow=nK.prototype.observerRichGridItemsPerRow;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],nK.prototype,"componentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],nK.prototype,"ytdReduxBehavior",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.Ub}),_.n("design:type",Boolean)],nK.prototype,"richGridMiniMode",void 0);
_.R([_.H({selector:_.sb}),_.n("design:type",Number)],nK.prototype,"richGridItemsPerRow",void 0);_.R([_.H(),_.n("design:type",Object)],nK.prototype,"data",void 0);_.R([_.q5("richGridItemsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],nK.prototype,"observerRichGridItemsPerRow",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],nK.prototype,"badgeIconName",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],nK.prototype,"badgeLabel",null);_.R([_.N({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],nK);
_.J(nK,"ytd-member-hub-profile-renderer",function(){if(NmA!==void 0)return NmA;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return NmA=G},{mode:1});var YZK;var OF=function(){return _.a.apply(this,arguments)||this};
_.M(OF,_.a);OF.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],OF.prototype,"data",void 0);_.R([_.N({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],OF);
_.J(OF,"ytd-settings-sidebar-renderer",function(){if(YZK!==void 0)return YZK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YZK=G},{mode:1});var CpK;var wD=function(){var G=_.a.apply(this,arguments)||this;G.expandableCustomTabRenderable=function(b){return jIM(b,function(){return void G.onSearchNavigate()})};
return G};
_.M(wD,_.a);wD.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
wD.prototype.onSearchNavigate=function(){this.selected=void 0};
wD.prototype.onTabsChange=function(){var G,b=(G=this.tabs)==null?void 0:G.findIndex(function(I){var h;return I==null?void 0:(h=I.tabRenderer)==null?void 0:h.selected});
b!==void 0&&(this.selected=b)};
wD.prototype.onTabsActive=function(G){if(this.tabs!==void 0){var b,I;(G=(b=this.tabs[G.detail.selected])==null?void 0:(I=b.tabRenderer)==null?void 0:I.endpoint)&&_.O3(this.hostElement,"yt-navigate",{endpoint:G})}};
_.kV.Object.defineProperties(wD.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:eKK(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
wD.prototype.onTabsChange=wD.prototype.onTabsChange;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.Xl),_.n("design:type",Object)],wD.prototype,"ytdGridStateAwareBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],wD.prototype,"ytdGuideStateAwareBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],wD.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Array)],wD.prototype,"tabs",void 0);_.R([_.H(),_.n("design:type",Number)],wD.prototype,"selected",void 0);_.R([_.P("tabs.*"),_.n("design:type",Object),_.n("design:paramtypes",[])],wD.prototype,"tabGroupShape",null);_.R([_.H(),_.n("design:type",Object)],wD.prototype,"expandableCustomTabRenderable",void 0);
_.R([_.P("tabs"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wD.prototype,"tabsEnabled",null);_.R([_.Dd("tabs"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wD.prototype,"onTabsChange",null);_.R([_.N({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],wD);
_.J(wD,"ytd-topic-channel-details-renderer",function(){if(CpK!==void 0)return CpK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return CpK=G},{mode:1});var JjI;var EF=function(){var G=_.a.apply(this,arguments)||this;G.disableGridStateAware=!1;return G};
_.M(EF,_.a);EF.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]]"}}}}}};
EF.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
EF.prototype.updateCssVars=function(){_.G8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Te("rich_grid_max_item_width",500))+16)-16+"px"})};
EF.prototype.updateCssVars=EF.prototype.updateCssVars;EF.prototype.activeChanged=EF.prototype.activeChanged;_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],EF.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],EF.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],EF.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Array)],EF.prototype,"tabs",void 0);_.R([_.H(),_.n("design:type",Boolean)],EF.prototype,"active",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],EF.prototype,"disableGridStateAware",void 0);
_.R([_.H({selector:_.sb}),_.n("design:type",Number)],EF.prototype,"richGridItemsPerRow",void 0);_.R([_.H({selector:_.Ub}),_.n("design:type",Boolean)],EF.prototype,"richGridMiniMode",void 0);_.R([_.lH("ytd-carousel-item-renderer"),_.n("design:type",Object)],EF.prototype,"carousel",void 0);_.R([_.q5("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],EF.prototype,"activeChanged",null);
_.R([_.q5("richGridItemsPerRow","richGridMiniMode"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],EF.prototype,"updateCssVars",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],EF);
_.J(EF,"ytd-carousel-header-renderer",function(){if(JjI!==void 0)return JjI;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return JjI=G},{mode:1});var KfK;var uDl=_.WP(["https://www.google-analytics.com/analytics.js"]),pK=function(){var G=_.a.apply(this,arguments)||this;G.scriptAnalyticsAdded=!1;return G};
_.M(pK,_.a);pK.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var G,b=(G=this.data)==null?void 0:G.tagManagerId;b&&(_.WQ(b,_.wy("GL")),DEl(b))};
pK.prototype.sendGoogleAnalyticsPageview=function(G){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var I=_.RI.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(I)};
var b=window.ga;b("set","page",window.location.pathname);b.l=+new Date;b("set","forceSSL",!0);b("create",G,"'auto'");b("send","pageview")};
pK.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var G=_.ol("SCRIPT");G.name="ga-analytics";var b=_.Ba(uDl);_.mf(G,b);G.async=!0;_.Eo(this.hostElement).appendChild(G)};
pK.prototype.dataChanged=pK.prototype.dataChanged;_.R([_.H(),_.n("design:type",Object)],pK.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pK.prototype,"dataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],pK);
_.J(pK,"ytd-channel-metadata-renderer",function(){if(KfK!==void 0)return KfK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return KfK=G},{mode:1});var RM7;var nTv;var SY=function(){var G=_.a.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};
_.M(SY,_.a);_.m=SY.prototype;_.m.attached=function(){this.requestElementsPerRow()};
_.m.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_]]"}}}}}};
_.m.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
_.m.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.m.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.m.computeAlertStyle_=function(G){return G};
_.m.observerElementsPerRow=function(){this.elementsPerRow&&_.G8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.m.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.m.requestElementsPerRow=function(){_.O3(this.hostElement,"yt-request-elements-per-row")};
SY.prototype.onIsVisibleChanged_=SY.prototype.onIsVisibleChanged_;SY.prototype.observerElementsPerRow=SY.prototype.observerElementsPerRow;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],SY.prototype,"actionHandlerBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],SY.prototype,"data",void 0);_.R([_.H({value:6,reflectToAttribute:!0}),_.n("design:type",Number)],SY.prototype,"elementsPerRow",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],SY.prototype,"wrapButtons",void 0);_.R([_.H({value:_.wy("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.n("design:type",Boolean)],SY.prototype,"isMusic",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.n("design:type",String)],SY.prototype,"alertStyle",void 0);_.R([_.H({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.n("design:type",Function)],SY.prototype,"dismissBoundButtonTap_",void 0);_.R([_.H({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.n("design:type",Function)],SY.prototype,"acceptBoundButtonTap_",void 0);_.R([_.q5("elementsPerRow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SY.prototype,"observerElementsPerRow",null);_.R([_.q5("data.isVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SY.prototype,"onIsVisibleChanged_",null);_.R([_.g8({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],SY);
_.J(SY,"yt-alert-with-actions-renderer",function(){if(nTv===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;RM7===void 0&&(RM7=document.createElement("template"));var h=RM7;I.call(b,h.content.cloneNode(!0),G.content.firstChild);nTv=G}G=nTv;return G},{mode:2});var ONo=_.C(function(G){var b={};return _.v(_.IS,{text:G.text,className:_.pG("ytPersonalGreetingViewModelHeadline",(b.ytPersonalGreetingViewModelHeadlineSmall=G.isSmallHeadline,b))})},"en");_.JN(_.C(function(G){var b=_.s2(function(){var T;return(T=G.data())==null?void 0:T.rendererContext},void 0,void 0,void 0,!0),I=function(){return G.data().canvasPromoData},h=function(){var T;
return(T=G.data().bannerHeight)!=null?T:56},q=_.e(_.Vq({throttleMs:100})),l=q.next().value;
q=q.next().value;var V=_.e(_.Vq({throttleMs:100})),D=V.next().value;V=V.next().value;var k=_.e(_.Vq({throttleMs:100})),L=k.next().value;k=k.next().value;var x=function(){return D.width()-l.width()>1},f=function(){return h()===48};
return _.v("yt-personal-greeting-view-model",{el:_.Wv(b,q),"aria-hidden":x,class:_.pG(G.className,"ytPersonalGreetingViewModelHost"),style:_.Ir({height:(0,_.Xr)(function(){return x()?0:h()})})},_.v(_.Q,{cond:function(){return G.data().avatar&&!(L.width()+(G.data().avatar?48:0)-l.width()>1)},
then:function(){return _.v(_.VX,{data:function(){return G.data().avatar}},{decoratedAvatarViewModel:function(T){return _.v(_.w1,{data:T.data,
className:_.pG("ytPersonalGreetingViewModelAvatar")})}})}}),_.v("h1",null,_.v(ONo,{text:function(){var T;
return(I==null?void 0:(T=I())==null?void 0:T.headline)||(L.width()+(G.data().avatar?48:0)-l.width()>1?G.data().shorterGreeting:G.data().greeting)},
isSmallHeadline:f})),_.v("span",{el:_.Wv(k),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.v(ONo,{text:function(){return G.data().greeting},
isSmallHeadline:f})),_.v("span",{el:_.Wv(V),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.v(ONo,{text:function(){return G.data().shorterGreeting},
isSmallHeadline:f})))},"dn"),"yt-personal-greeting-view-model",{props:{data:_.hV,
className:_.hV}});var Xx=function(){var G=_.a.apply(this,arguments)||this;G.hidden=!1;G.isConstrainedList=!1;G.responsiveSizing="COMPACT";G.attachedPlayers=_.U("kevlar_channel_trailer_multi_attach")?[]:void 0;G.player=null;G.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return G};
_.M(Xx,_.a);_.m=Xx.prototype;
_.m.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}}}}};
_.m.created=function(){var G=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){G.disposeMastheadAd()}]};
_.m.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new FhE(this.refresh,this.contents))};
_.m.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.m.activeChanged=function(){var G=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=G)};
_.m.tabsChanged=function(){var G=this,b,I;if(this.pageSubtype==="channels"||_.U("kevlar_tab_gestures_for_tabbed_header_data")&&((b=this.data)==null?0:(I=b.header)==null?0:I.carouselHeaderRenderer))this.tabGestures=new aKo(this.contents,this.contents,this.hostElement,this.header,function(V){G.ytdReduxBehavior.dispatch(V)});
var h,q,l;b=(h=this.data)==null?void 0:(q=h.contents)==null?void 0:(l=q.twoColumnBrowseResultsRenderer)==null?void 0:l.tabs;this.tabGestures&&this.tabGestures.tabsChanged(b)};
_.m.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.m.engagementPanelsChanged=function(){var G=_.LL().resolve(_.Jo);if(G){if(this.engagementPanels)for(var b=_.e(this.engagementPanels),I=b.next();!I.done;I=b.next()){var h=void 0;(I=(h=I.value.identifier)==null?void 0:h.tag)&&G.panelMap.delete(I)}this.engagementPanels=[];var q;b=_.e(((q=this.data)==null?void 0:q.panels)||[]);for(q=b.next();!q.done;q=b.next()){q=_.g(q.value,_.bDI);var l=I=void 0,V=void 0,D=void 0;if(h=((I=q)==null?void 0:I.targetId)||((l=q)==null?void 0:l.panelIdentifier)||((V=q)==
null?void 0:(D=V.identifier)==null?void 0:D.tag))l=I=void 0,(l=(I=G).registerPanelContent)==null||l.call(I,h,{engagementPanelSectionListRenderer:q}),this.engagementPanels.push(q)}}};
_.m.onStampFinished=function(){var G=this;_.D1(this,function(){if(G.tabGestures){var b=G.tabGestures;if(b.scrollPositionNeedsUpdate){var I=_.LL().resolve(_.vf(_.Ck)),h;if((h=b.selectedTab)!=null&&h.title&&I&&(h=I.getCurrentPage())){if(b.scrollPositionForTabs.has(b.selectedTab.title)){var q,l;I=(l=(q=I.getCurrentPage())==null?void 0:q.clientHeight)!=null?l:0;q=b.scrollPositionForTabs.get(b.selectedTab.title);h.setScrollTop(q);I>q+100&&(b.scrollPositionNeedsUpdate=!1)}else h.setScrollTop(Math.min(b.lastVisitedTabScrollPosition!==
void 0?b.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,b.tabsStartAtInPx)),b.scrollPositionNeedsUpdate=!1;b.ytdReduxDispatch(Voh(!1))}}}})};
_.m.loadPage_=function(G){this.initCsi();G&&(this.data=G);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.m.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 _.NO(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 _.NO(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",G));var b,I;return(G==null?0:(b=G.header)==null?0:(I=b.pageHeaderRenderer)==null?0:I.pageTitle)?G.header.pageHeaderRenderer.pageTitle:""};
_.m.updateTitle=function(G){_.O3(this.hostElement,"yt-update-title",this.getTitle(G))};
_.m.initCsi=function(){_.bAI(this.pageSubtype||"browse",["ol","cpt"])};
_.m.getPlayer=function(){if(_.U("kevlar_channel_trailer_multi_attach")){for(var G=_.e(this.attachedPlayers),b=G.next();!b.done;b=G.next())if(b=b.value,b.isConnected||_.Sa(this.hostElement,b))return b;return null}return this.player};
_.m.getPlayerContainer=function(){return null};
_.m.onPlayerAttached=function(G,b){_.U("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(b):this.player=b};
_.m.onPlayerDetached=function(G,b){_.U("kevlar_channel_trailer_multi_attach")?(G=this.attachedPlayers.indexOf(b),G<0||this.attachedPlayers.splice(G,1)):this.player=null};
_.m.getServiceTrackingParams=function(){var G,b;return((G=this.data)==null?void 0:(b=G.responseContext)==null?void 0:b.serviceTrackingParams)||[]};
_.m.setMastheadAd=function(G){G&&G.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=G&&G.mastheadAd};
_.m.dataChanged=function(){var G=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.n3I();_.D1(this,function(){_.E3(G.hostElement,"ytd-update-grid-state-action")})};
_.m.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.m.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var G=this.data.alerts;return G&&G.find(function(b){return!!b.alertWithActionsRenderer})}};
_.m.computeGreetingData=function(){if(this.data&&this.data.alerts){var G=this.data.alerts;return G&&G.find(function(b){return!!b.personalGreetingViewModel})}};
_.m.computeHasMemberHubProfileRenderer=function(G){var b;return!!(G==null?0:(b=G.header)==null?0:b.memberHubProfileRenderer)};
_.m.handleAlertCommand=function(G){this.get("alertCommand.alert.alertWithActionsRenderer",G)&&(G=_.g(G,BdA),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",G.alert))};
_.m.handleYtPlaylistDeletionRedirect=function(G){G=this.get("playlistDeletionRedirectCommand.redirectEndpoint",G);_.O3(this.hostElement,"yt-navigate",{endpoint:G})};
_.m.computeFluidWidth=function(G,b,I){if(b==="mini_app"||I)return!0;var h,q,l;G=G==null?void 0:(h=G.contents)==null?void 0:(q=h.twoColumnBrowseResultsRenderer)==null?void 0:(l=q.tabs)==null?void 0:l.find(function(k){var L;return k==null?void 0:(L=k.tabRenderer)==null?void 0:L.selected});
if(!G)return!1;var V,D;return!!((V=G.tabRenderer)==null?0:(D=V.content)==null?0:D.richGridRenderer)&&!["channel","channels","playables"].includes(b)};
_.m.computeHeaderFluidWidth=function(G){return G==="hashtag-landing-page"};
_.m.computeHasSidebar=function(G){var b;return!!(G.sidebar||((b=G.header)==null?0:b.playlistHeaderRenderer))};
_.m.computeHasPageHeaderSidebar=function(G){var b,I;return!!((b=G.header)==null?0:(I=b.pageHeaderRenderer)==null?0:I.enableSidebarView)};
_.m.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 b=0;b<G.items.length;b++)if(_.g(G.items[b],gII)){var I=void 0;return((I=_.g(G.items[b],gII))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.m.computeIsConstrainedList=function(G){return _.U("web_enable_constrained_list_subscriptions_channels")&&G==="subscriptions-channels"};
_.m.computeResponsiveSizing=function(G){return G==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.kV.Object.defineProperties(Xx.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var G,b;return((G=this.data)==null?0:(b=G.header)==null?0:b.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var G,b;if(!((G=this.data)==null?0:(b=G.sidebar)==null?0:b.playlistSidebarRenderer))return!1;var I;return(I=this.data)!=null&&I.header?!1:!0}}});
_.kV.Object.defineProperties(Xx,{template:{configurable:!0,enumerable:!0,get:function(){if(Ndh===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);Ndh=G}G=Ndh;return G}}});
Xx.prototype.dataChanged=Xx.prototype.dataChanged;Xx.prototype.onPlayerDetached=Xx.prototype.onPlayerDetached;Xx.prototype.onPlayerAttached=Xx.prototype.onPlayerAttached;Xx.prototype.onStampFinished=Xx.prototype.onStampFinished;Xx.prototype.engagementPanelsChanged=Xx.prototype.engagementPanelsChanged;Xx.prototype.scrollAtTopChanged=Xx.prototype.scrollAtTopChanged;Xx.prototype.tabsChanged=Xx.prototype.tabsChanged;Xx.prototype.activeChanged=Xx.prototype.activeChanged;
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Xx.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],Xx.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Xx.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.Id.YtPageBehavior),_.n("design:type",Object)],Xx.prototype,"ytPageBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],Xx.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Xx.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Xx.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Xx.prototype,"hidden",void 0);
_.R([_.H(),_.n("design:type",Object)],Xx.prototype,"mastheadAdData",void 0);_.R([_.H({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.n("design:type",Object)],Xx.prototype,"alertBannerData",void 0);_.R([_.H({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.n("design:type",Object)],Xx.prototype,"greetingData",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],Xx.prototype,"pageSubtype",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.n("design:type",Boolean)],Xx.prototype,"hasMemberHubProfileRenderer",void 0);_.R([_.H({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Xx.prototype,"hasSidebar",void 0);_.R([_.H({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Xx.prototype,"hasPageHeaderSidebar",void 0);
_.R([_.H({reflectToAttribute:!0,value:!0}),_.n("design:type",Boolean)],Xx.prototype,"roundedContainer",void 0);_.R([_.H({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],Xx.prototype,"useUnifiedShowPageLayout",void 0);_.R([_.H({computed:"computeIsConstrainedList(pageSubtype)"}),_.n("design:type",Object)],Xx.prototype,"isConstrainedList",void 0);
_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Xx.prototype,"usePlaylistHeaderRenderer",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Xx.prototype,"useOldPlaylistSidebarRenderer",null);_.R([_.H({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.n("design:type",Boolean)],Xx.prototype,"fluidWidth",void 0);_.R([_.H({selector:function(G){return G.ui.scrollAtTop}}),
_.n("design:type",Boolean)],Xx.prototype,"scrollAtTop",void 0);_.R([_.H({selector:_.KuK}),_.n("design:type",Boolean)],Xx.prototype,"tabGesturesIsActive",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.n("design:type",Boolean)],Xx.prototype,"disableHeaderFluidWidth",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.n("design:type",String)],Xx.prototype,"responsiveSizing",void 0);
_.R([_.lH("ytd-two-column-browse-results-renderer"),_.n("design:type",HTMLElement)],Xx.prototype,"contents",void 0);_.R([_.lH("#header"),_.n("design:type",HTMLElement)],Xx.prototype,"header",void 0);_.R([_.lH("ytd-refresh"),_.n("design:type",Object)],Xx.prototype,"refresh",void 0);_.R([_.q5("active"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xx.prototype,"activeChanged",null);
_.R([_.q5("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xx.prototype,"tabsChanged",null);_.R([_.q5("scrollAtTop"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xx.prototype,"scrollAtTopChanged",null);_.R([_.H(),_.n("design:type",Object)],Xx.prototype,"engagementPanels",void 0);
_.R([_.q5("data.panels"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xx.prototype,"engagementPanelsChanged",null);_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xx.prototype,"onStampFinished",null);_.R([_.hI("yt-player-attached"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Element]),_.n("design:returntype")],Xx.prototype,"onPlayerAttached",null);
_.R([_.hI("yt-player-detached"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Element]),_.n("design:returntype")],Xx.prototype,"onPlayerDetached",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xx.prototype,"dataChanged",null);_.R([_.N({is:"ytd-browse"})],Xx);_.EQ.registerService(_.Lxr,Xx);
_.uG();
}catch(e){_._DumpException(e)}
try{
_.KT("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 e4,adY,N8L,Yhf,CHW,JIa,KND,uve,Rrc,ny1,OnD,w59,p51,Sh8,$oD,G35,bG5,hca,q0a,jMW,lm8,V7,ecK,D6,VA9,Do3,cNa,k3j,vQ5,QM8,fmF,L6e,Ey3,T5K,B59,Uof,sM3,gQ1,AN5,MAe,ZGL,tA5,oQ3,iGK,doa,rNF,F6W,HGD,amj,Y08,C$1,JNF,K6W,uua,Rcc,nQ1,OGF,wvW,EQe,pvf,S01,$K3,GBa,bkc,IG1,hu1,qd5,jr3,lG1,eu3,Vh8,DKK,caD,kBW,voK,L2e,QrW,xKY,fG9,TRD,BRf,UKF,sr3,goW,Aa3,Mh5,Zka,the,zuF,ooF,ikL,Pk5,dKa,BM,yaK,ra8,W21,noj,pND,Sdj,Ia3,hm9,bMj,$te,mtF,Dt5,xte,XNc,kZK,em9,Z6,TQe,sZF,MKK,gUj,AWW,ZMK,iMF,zmj,PAe,dtY,oUK,tKe,yWe,iy,PM,
NQc,Y29,d6,CAa,JWf,KAf,EU9,pHj,y7,r6,XH1,S2a,$AD,GI5,bc9,F2,HM,WM,ay,VNL,DAY,cxe,Y$,xAc,kID,QGL,fAD,vg1,BcY,LaF,ggY,UAW,sGc,Ct,MNf,Ax8,og3,yxW,Ry,nt,PPY,Fae,dAW,rx3,w6,pt,S4,X2,I_1,ngW,jA9,l_L,m_c,ez1,D_1,CP1,Jxa,bf,ue5,$H,Go,RQ8,Vfc,hzK,Ka3,h0,sAY,Ake,Mff,gxD,f_F,tff,iW9,QA8,vxF,Lb1,ykj,x_5,mJ,oxW,TP8,zzc,U_F,kOf,BP9,Fba,HWD,Wbe,NP3,CXW,Jk5,Kb1,uE1,nxf,Rz1,wPY,Exc,SE1,XPc,GdL,bpe,Iu5,hbK,q5Y,jRL,luY,ebj,mCf,VRK,cJL,kd8,D3,vYK,LI5,QRe,xCF,fu3,TU8,BUj,UCD,sR8,gYL,AJc,ZpD,tRa,zbj,oYe,dC5,rJa,FIY,WIe,
Hpc,au8,NU8,Y5L,JJY,KIY,uc5,RbF,nY5,Opf,w85,EYY,p81,S53,X83,$wK,hw1,qp5,bfF,IIa,Gw8,jeF,ewD,lIa,mwj,c89,VE3,Dw8,kw1,v4F,Le8,Qef,fID,Ttc,Btf,seY,g4K,ME1,tEF,o49,P0D,y81,FeF,WeY,Nte,J8K,Ke5,uiK,n4D,Rwf,wmj,E4a,pmW,SpK,kH,XmD,$L5,GyD,ky8,LXj,QTW,BpD,Q5,UL3,sTa,g1Y,Mge,AKj,Z4F,tgW,zR3,o1K,i48,UV,P1F,dLc,if5,yK5,rKj,yN8,FX3,H4D,WXW,a$f,NpK,Yne;
e4=function(G){if(!G)return"browse";var b=G.page,I=G.url,h,q,l,V=(h=G.response)==null?void 0:(q=h.responseContext)==null?void 0:(l=q.webResponseContextExtensionData)==null?void 0:l.pageTheme;if(V)b=V.toLowerCase().replace(/_/g,"-");else if(b!=="watch"&&b!=="learning_journey_watch"){var D,k;if((b==="browse"||b==="settings")&&((D=G.response)==null?0:(k=D.sidebar)==null?0:k.settingsSidebarRenderer))b="WEB_PAGE_TYPE_SETTINGS";else{var L,x;b==="browse"&&((L=G.response)==null?0:(x=L.metadata)==null?0:x.channelMetadataRenderer)?
b="channel":I&&(b=_.lbp(I)||b)}}return b};
adY=function(){var G=_.Ge("yt.aba.att");return G?G:_.i2.instance!==void 0?_.i2.instance.dJh.bind(_.i2.instance):null};
N8L=function(G,b){var I;return _.c(function(h){return(I=adY())?h.return(I(G,b,6E4)):h.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
Yhf=function(G,b,I,h,q){b=b===void 0?[]:b;q=q?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:q}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.RW(G),dialogMessages:b.map(function(l){return _.RW(l)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.RW(I),serviceEndpoint:q}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.RW(h)}}}}}};
CHW=function(G,b,I){I=I===void 0?!1:I;var h=_.Ws(),q=!!_.Dg().queueProxy,l,V,D;G=G==null?void 0:(l=G.response)==null?void 0:(V=l.currentVideoEndpoint)==null?void 0:(D=V.watchEndpoint)==null?void 0:D.playlistId;if((q||G)&&!_.U("web_watch_disable_playlist_auto_miniplayer"))return I&&(h.playlistWatchPageActivation=!0),!0;switch(e4(b)){case "yts-products":return I&&(h.productDetailsPageActivation=!0),!0;case "mini_app":return I&&(h.miniAppPageActivation=!0),!0;case "playables":return I&&(h.playablesDestPageActivation=
!0),!0;case "companion-canvas":return I&&(h.companionCanvasActivation=!0),!0;default:return!1}};
JIa=function(G){G=_.lra(G);G.length>0&&G[0].focus()};
KND=function(G,b,I){for(var h=typeof G==="string"?G.split(""):G,q=G.length-1;q>=0;--q)q in h&&b.call(I,h[q],q,G)};
uve=function(G,b){b=_.zBO(G,b);b>=0&&_.PsB(G,b)};
Rrc=function(G){return Array.prototype.concat.apply([],arguments)};
ny1=function(G){var b=0;b=b===void 0?0:b;if(!_.hc(G))throw _.GA("uint64");var I=typeof G;switch(b){case 512:switch(I){case "string":return _.Pnr(G);case "bigint":return String((0,_.fD)(64,G));default:return _.obs(G)}case 1024:switch(I){case "string":return _.d8d(G);case "bigint":return _.N8((0,_.fD)(64,G));default:return _.iQa(G)}case 0:switch(I){case "string":return _.Pnr(G);case "bigint":return _.N8((0,_.fD)(64,G));default:return _.zWr(G)}default:return _.Eu(b,"Unknown format requested type for int64")}};
OnD=function(G){G!=null&&(G=G.JSC$8893_value_||"",G=typeof G==="string"?G:new Uint8Array(G));return G};
w59=function(G,b){if(/-[a-z]/.test(b))return null;if(_.fCu&&G.dataset){if(_.TXB()&&!(b in G.dataset))return null;G=G.dataset[b];return G===void 0?null:G}return G.getAttribute("data-"+_.qi(b))};
p51=function(){var G=Ey3;_.Ge("yt.ads.biscotti.getId_")||_.cz("yt.ads.biscotti.getId_",G)};
Sh8=function(G){_.cz("yt.ads.biscotti.lastId_",G)};
$oD=function(){var G={};for(_.JB=new X5W(G.handleError===void 0?_.u6:G.handleError,G.logEvent===void 0?_.C1:G.logEvent);_.KL.length>0;)switch(G=_.KL.shift(),G.type){case "ERROR":_.JB.logError(G.payload);break;case "EVENT":_.JB.logEvent(G.eventType,G.payload)}};
G35=function(G,b,I){return _.mOO(function(h){return I?h.userIdentifier!==void 0&&!G.includes(h.userIdentifier)&&I.includes(h.publicName):h.userIdentifier!==void 0&&!G.includes(h.userIdentifier)},b)};
bG5=function(G){var b,I;return _.c(function(h){if(h.nextAddress==1)return b=_.FU("YtIdbMeta hasAnyMeta other"),h.yield(_.mOO(function(q){return q.userIdentifier!==void 0&&q.userIdentifier!==b},G),2);
I=h.yieldResult;return h.return(I.length>0)})};
hca=function(G,b){Imf||(Imf=_.uu.addLowPriorityJob(function(){var I,h,q,l,V;return _.c(function(D){switch(D.nextAddress){case 1:return D.yield(_.k_(),2);case 2:I=D.yieldResult;if(!I)return D.return();h=!0;_.gm(D,3);return D.yield(G35(G,I,b),5);case 5:q=D.yieldResult;if(!q.length){h=!1;D.jumpTo(6);break}l=q[0];return D.yield(_.q9(l.actualName),7);case 7:return D.yield(_.m0(l.actualName,I),6);case 6:_.hF(D,4);break;case 3:V=_.zf(D),_.uB(V),h=!1;case 4:_.uu.cancelJob(Imf),Imf=0,h&&hca(G,b),_.ip(D)}})}))};
q0a=function(){var G;return _.c(function(b){return b.nextAddress==1?b.yield(_.k_(),2):(G=b.yieldResult)?b.return(bG5(G)):b.return(!1)})};
jMW=function(G){var b=100;b=b===void 0?500:b;var I,h,q,l,V,D;return _.c(function(k){return k.nextAddress==1?(I=_.wy("INNERTUBE_CONTEXT_CLIENT_NAME",0),h=[I,(0,_.Li)()-2592E6],q=[I,(0,_.Li)()],l=IDBKeyRange.bound(h,q),k.yield(_.rIr(G),2)):k.nextAddress!=3?(V=k.yieldResult,D=[],k.yield(_.lu(V,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(L){D.length=0;return _.Qz(L.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:l,direction:"prev"},function(x){if(x.getValue()&&D.length<
b)return D.push(x.getValue()),x.delete().then(function(){return x.continue()})})}),3)):k.return(D)})};
lm8=function(){var G;return _.c(function(b){if(b.nextAddress==1)return b.yield(_.k_(),2);G=b.yieldResult;if(!G||!_.Hf()&&!_.U("nwl_init_require_datasync_id_killswitch")||!_.$oO())return b.jumpTo(0);_.bGO=!0;_.G3O.isNwlInitialized=_.bGO;return b.yield(_.FsJ().awaitInitialization(),0)})};
V7=function(G,b){_.T5u[G]=!0;var I=_.L1();I&&I.publish.apply(I,arguments);_.T5u[G]=!1};
ecK=function(){if(_.Ena()&&!mo5){var G=function(I){I=I.data;if(I.op==="serializedGelBatch"){var h=_.BRr.get(I.key);h&&(_.sra(I.serializedBatch,h.client,h.resolve,h.networklessOptions,h.isIsolated,h.useVSSEndpoint,h.dangerousLogToVisitorSession,h.requestsOutstanding),_.BRr.delete(I.key))}},b=_.wyO();
b&&(b.addEventListener("message",G),b.onerror=function(){_.BRr.clear()});
mo5=!0}};
D6=function(){this.relativeTimeStart_=_.nW()};
VA9=function(G,b){G!=null&&this.append.apply(this,arguments)};
Do3=function(){return _.zg("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
cNa=function(G,b,I){I=I===void 0?!1:I;var h,q,l,V,D;return _.c(function(k){switch(k.nextAddress){case 1:_.yE("SOCS",G,34128E3,"youtube.com",!0);if(_.b3)return q=fetch(b,{method:"POST",mode:_.rL(b),credentials:_.yf(b),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),l=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.rL("/upgrade_visitor_cookie?eom=1"),credentials:_.yf("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),k.yield(Promise.all([q,l]).then(function(L){return L[1]}),5);
fetch(b,{method:"POST",mode:_.rL(b),credentials:_.yf(b),cache:"no-store",headers:{"Content-Type":"text/plain"}});return k.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.rL("/upgrade_visitor_cookie?eom=1"),credentials:_.yf("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:h=k.yieldResult;k.jumpTo(3);break;case 5:h=V=k.yieldResult;case 3:if(!h.ok)throw Error("uf");return k.yield(h.text(),7);case 7:D=k.yieldResult,
!D.includes('"state_switch":true')&&!I||D.includes("skip_reload_for_test")||window.location.reload(),_.ip(k)}})};
k3j=function(G){return _.c(function(b){return b.nextAddress==1?b.yield(cNa(G.socsCookie,G.savePreferenceUrl,!0),2):b.return()})};
vQ5=function(G){return _.c(function(b){return b.nextAddress==1?b.yield(cNa(G.socsCookie,G.savePreferenceUrl),2):b.return()})};
QM8=function(G){G=G.xhr.responseText;if(!_.jv(G,")]}'"))throw new cM;G=JSON.parse(G.substr(4));if((G.type||1)>1)throw new cM;G=G.id;Sh8(G);k$=_.kF(G);L6e(18E5,2);return G};
fmF=function(G,b){b=new xo9(b);Sh8("");k$=_.NBJ(b);G>0&&L6e(12E4,G-1);throw b;};
L6e=function(G,b){_.AB(function(){_.B8f().then(QM8,function(I){return fmF(b,I)}).thenCatch(_.sp)},G)};
Ey3=function(){var G=_.gyY();if(G!==void 0)return _.vv(G);k$||(k$=_.B8f().then(QM8).thenCatch(function(b){return fmF(2,b)}));
return k$};
T5K=function(){var G=document;return _.FO(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in G})};
B59=function(G){G.addEventListener("click",function(b){var I=b.target;I&&I.getAttribute("href")&&(I=I.getAttribute("href"),_.bp(window,I,"_blank"),b.preventDefault(),b.stopImmediatePropagation())})};
Uof=function(G){var b,I,h,q=(h=(I=((b=G.mainDownloadsListEntity)!=null?b:{})[_.sSj])==null?void 0:I.refresh)!=null?h:"",l;G=(l=G.refresh)==null?void 0:l[q];q=G!=null?G:{};return(q==null?0:q.refreshTime)?Number(q==null?void 0:q.refreshTime):0};
sM3=function(G,b){var I=_.Qg(G);return b.every(function(h){var q;h=h==null?void 0:(q=h.playbackDataEntity)==null?void 0:q.key;if(!h)return!1;q=_.$S(_.pU(h).entityId,"mainVideoEntity");return!!I[q]})};
gQ1=function(G){G=_.cj(G.entities);return _.HRX(G).length};
AN5=function(G,b){if(b){var I;G=(I=_.Gi(G.entities,"downloadQualityPickerEntity",b))!=null?I:void 0}else G=void 0;return G};
MAe=function(G){var b=document.getElementsByTagName("ytd-enforcement-message-view-model");b.length===0||getComputedStyle(b[0]).display==="none"?G(0,"p.h_"):G(1,"p.h_")};
ZGL=function(){vM=0;var G=[_.eL(!0)];Lt&&_.E3(Lt,"yt-window-resized",G)};
tA5=function(){vM||(vM=_.uu.addLowPriorityJob(ZGL,200))};
oQ3=function(){Q7=0;zce=_.TVJ(document);var G=[zce];Lt&&_.E3(Lt,"yt-window-scrolled",G)};
iGK=function(){Q7||(Q7=_.uu.addLowPriorityJob(oQ3,200))};
doa=function(G){G=G===void 0?null:G;P$5.push(_.D5(window,"resize",tA5));P$5.push(_.D5(window,"scroll",iGK));G&&(Lt=G)};
rNF=function(){var G=_.vy.getLocalStorage();G&&yN8(G,G.mechanism.__iterator__(!0))};
F6W=function(G){_.c(function(b){if(b.nextAddress==1)return b.yield(G.delete("yt-appshell-assets"),2);_.ip(b)})};
HGD=function(G){return _.jy((0,_.uYn)(),G)};
amj=function(){var G;_.c(function(b){return b.nextAddress==1?b.yield(x$.getInstance(),2):(G=b.yieldResult)?b.yield(W6D(G),0):b.jumpTo(0)})};
Y08=function(){var G;_.c(function(b){return b.nextAddress==1?b.yield(ft.getInstance(),2):(G=b.yieldResult)?b.yield(N55(G),0):b.jumpTo(0)})};
C$1=function(G){F6W(G);amj();Y08()};
JNF=function(G){var b,I;return _.c(function(h){if(h.nextAddress==1)return h.yield(_.orX(G),2);if(b=h.yieldResult){var q;a:{if(b.headers&&(q=b.headers.get("date"))&&(q=Date.parse(q),!isNaN(q))){q=Math.round((0,_.Li)()-q);break a}q=-1}I=q;if(I>-1)return h.return(I)}return h.return(-1)})};
K6W=function(){var G=_.hd.caches,b=_.Sk("IS_SHELL_LOAD"),I,h;_.c(function(q){if(q.nextAddress==1)return I=-1,b?q.yield(JNF(G),3):(h=_.vT(),I=Math.round((0,_.Li)()-h),q.jumpTo(2));q.nextAddress!=2&&(I=q.yieldResult);I>=0&&I<2147483648&&_.Tm({appInstallDataAgeMs:I});_.ip(q)})};
uua=function(G){var b=_.Gt(_.hd.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(h){var q=b.JSC$10105_queryData_.getValues(h);if(q==null?0:q.length)I[h]=q});
return _.Ug(G,new Map(Object.entries(I)))};
Rcc=function(G){G=G.match(/(.*)::.*::.*/);if(G!==null)return G[1]};
nQ1=function(G){if(_.OoO()){var b=Object.keys(window.localStorage);b=_.e(b);for(var I=b.next();!I.done;I=b.next()){I=I.value;var h=Rcc(I);h===void 0||G.includes(h)||self.localStorage.removeItem(I)}}};
OGF=function(){if(!_.OoO())return!1;var G=_.FU(),b=Object.keys(window.localStorage);b=_.e(b);for(var I=b.next();!I.done;I=b.next())if(I=Rcc(I.value),I!==void 0&&I!==G)return!0;return!1};
wvW=function(G){return _.E_("NotificationsDisabled",G)};
EQe=function(){return Notification.permission!="granted"?Promise.resolve():_.uAD().then(function(G){return G?G.pushManager.getSubscription().then(function(b){if(b)return Promise.resolve();b={userVisibleOnly:!0,applicationServerKey:_.Sv("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return G.pushManager.subscribe(b).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
pvf=function(G){return _.uAD().then(function(b){if(!b||!b.active)return Promise.reject(new _.Wf("serviceworker.postMessage",G,b));try{return b.active.postMessage(G),Promise.resolve()}catch(I){return Promise.reject(I)}})};
S01=function(){pvf({type:"notifications_register",data:_.wy("ID_TOKEN")})};
$K3=function(){var G={isWide:_.di.get("wide","0")==="1"},b=_.m$();if(b=b.getFlag(165)||b.getFlag(174))G.theme=_.o_(!0);if(_.cAv()){var I=_.z9()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";G.systemTheme=I}!b&&_.U("parent_tools_enable_app_settings")&&_.jO(window.location.href).theme!==void 0&&(G.theme=_.o_());if((b=Tj)?!_.Cy.equals(b,G):G)b={currentValue:G},Xve&&(b.timeSinceLastSnapshotSecs=Math.round(((0,_.Li)()-Xve)/1E3)),Tj&&(b.previousValue=Tj),_.C1("appSettingsCaptured",b),Tj=G,Xve=
(0,_.Li)()};
GBa=function(){if(!_.Sk("LOGGED_IN"))return Promise.resolve(!1);var G=_.UG("service_worker_push_force_notification_prompt_tag");return G?_.at("PromptTags").then(function(b){if(!b)return!0;var I=[];try{I=JSON.parse(b)}catch(h){return!1}return I&&I.indexOf(G)==-1}):Promise.resolve(!1)};
bkc=function(){var G=_.Te("service_worker_push_prompt_delay_microseconds");return G?_.at("PromptTime").then(function(b){return Promise.resolve(Date.now()-G>(b||0))}):Promise.resolve(!0)};
IG1=function(){var G=_.Te("service_worker_push_logged_out_prompt_watches");return G==-1?Promise.resolve(!1):_.at("WatchCount").then(function(b){return b>=G})};
hu1=function(){var G=_.Rr(document,"yt-push-prompt-modal-bg");G&&_.iG(G)};
qd5=function(){return _.Te("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.at("PromptCount").then(function(G){G||(G=0);return Promise.resolve(G<_.Te("service_worker_push_prompt_cap"))})};
jr3=function(G){return _.Sk("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Sk("LOGGED_IN")&&(G===void 0?0:G)?GBa().then(function(b){if(b)return!0;b=[qd5(),bkc()];_.Sk("LOGGED_IN")||b.push(IG1());return Promise.all(b).then(function(I){return I.every(function(h){return h})})}):Promise.resolve(!1)};
lG1=function(){_.at("PromptCount").then(function(G){return _.E_("PromptCount",G+1)}).then(function(){return _.E_("PromptTime",Date.now())}).then(function(){var G=_.UG("service_worker_push_force_notification_prompt_tag");
if(G)return _.at("PromptTags").then(function(b){var I=[];if(b)try{I=JSON.parse(b)}catch(h){return!1}I||(I=[]);I.push(G);return _.E_("PromptTags",JSON.stringify(I))})})};
eu3=function(){mKe||hu1()};
Vh8=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"};
DKK=function(){var G=_.Rr(document,"yt-push-prompt-modal-bg");mKe=_.U("service_worker_push_prompt_modal_ignore_click");G?Vh8(G):(G=_.i0("div",{id:"yt-push-prompt-modal-bg"}),Vh8(G),document.body.appendChild(G),_.vQO(document,"click",eu3))};
caD=function(){var G=arguments;_.U("service_worker_push_prompt_modal_enable")&&DKK();return Notification.requestPermission().then(function(b){hu1();var I=document.getElementById("ticker");I&&(I.className=I.classList.remove("show"));if(b=="granted")return EQe().then(function(){wvW(!1);S01();return Promise.resolve(!0)});
b=="denied"&&S01();return Promise.resolve(!1)}).catch(function(){hu1();
return Promise.reject.apply(Promise,_.Nz(G))})};
kBW=function(G){G=G===void 0?!1:G;var b=_.xVd().client;if(b&&b.browserVersion){var I=b.browserVersion,h=b.browserName=="CHROME"&&_.Qu(I,"50.0.0")<0;b=b.browserName=="OPERA"&&_.Qu(I,"42.0.0")<0;if(h||b)return Promise.resolve()}return _.OX3().then(function(q){if(!q)return Promise.resolve();q=EQe().then(function(){return pvf({type:"notifications_check_registration",data:_.wy("ID_TOKEN")})});
return Notification.permission!="default"?q.catch(function(){}):q.then(function(){return jr3(G)}).then(function(l){if(l)return lG1(),caD().then(function(){})}).catch(function(){})})};
voK=function(G){return _.Rhe(G)?kBW():Promise.resolve()};
L2e=function(G){var b=G.installing||G.waiting;return G.active||!b?Promise.resolve(G):new Promise(function(I){var h=function(q){q=q.target;if(q.state==="activated"||q.state==="redundant")b.removeEventListener("statechange",h),I(G)};
b.addEventListener("statechange",h)})};
QrW=function(){var G=new _.g6v("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.bX(G,{mainAppWeb:_.y4()});var b=_.D$z;_.U("service_worker_forward_exp_params")&&(b=uua(b));try{var I=_.B$s(b).catch(function(){_.IA(G,"FAILURE");return new Promise(function(){})});
_.U("service_worker_push_enabled")&&I.then(function(h){_.IA(G,"SUCCESS");return h}).then(L2e).then(voK)}catch(h){if(_.IA(G,"FAILURE"),h.name!=="SecurityError")throw h;
}};
xKY=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&QrW()};
fG9=function(G,b){var I={};b&&(I.serializedYpcFamilyCreateLoggingParams=b);_.C1(G,I);_.JM()};
TRD=function(G,b){var I={};I.serializedYpcRefundFlowLoggingParams=b;G&&(I.eventType=G);_.C1("ypcRefundFlowEvent",I);_.JM()};
BRf=function(G){G&&_.sE2("transactionFlowSucceeded",G)};
UKF=function(G){G&&_.tm("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
sr3=function(G){var b,I,h,q,l,V,D;_.c(function(k){if(k.nextAddress==1)return k.yield(_.Ioq(),2);if(k.nextAddress!=3){if(!k.yieldResult)return k.return(!1);b=[];return k.yield(_.w5.keys(),3)}I=k.yieldResult;h=_.e(I);for(q=h.next();!q.done;q=h.next())l=q.value,V=_.GHO(l),D=V.datasyncId,!D||G.includes(D)||b.push(_.w5.delete(l));return k.return(Promise.all(b).then(function(L){return L.some(function(x){return x})}))})};
goW=function(){var G,b,I,h,q,l,V;return _.c(function(D){if(D.nextAddress==1)return D.yield(_.Ioq(),2);if(D.nextAddress!=3){if(!D.yieldResult)return D.return(!1);G=_.FU("cache contains other");return D.yield(_.w5.keys(),3)}b=D.yieldResult;I=_.e(b);for(h=I.next();!h.done;h=I.next())if(q=h.value,l=_.GHO(q),(V=l.datasyncId)&&V!==G)return D.return(!0);return D.return(!1)})};
Aa3=function(){var G=_.LL().resolve(_.vf(_.DuJ));return G?G.getCurrentTime():0};
Mh5=function(){var G,b,I,h,q,l,V,D,k,L,x,f,T,B;return _.c(function(A){switch(A.nextAddress){case 1:G={},b=_.lqO(),I=_.e(Object.entries(b)),h=I.next();case 4:if(h.done){A.jumpTo(3);break}q=h.value;l=_.e(q);V=l.next().value;D=l.next().value;k=V;L=D;if(!L){A.jumpTo(5);break}return A.yield(L(),8);case 8:G[k]=A.yieldResult;case 5:h=I.next();A.jumpTo(4);break;case 2:x=_.e(),f=x.next();case 9:if(f.done){A.jumpTo(3);break}T=f.value;B=b[T];if(!B){A.jumpTo(10);break}return A.yield(B(),13);case 13:G[T]=A.yieldResult;
case 10:f=x.next();A.jumpTo(9);break;case 3:return A.return(G)}})};
Zka=function(){var G;_.c(function(b){if(b.nextAddress==1)return b.yield(Mh5(),2);G=b.yieldResult;return b.yield(navigator.clipboard.writeText(JSON.stringify(G,null,2)),0)})};
the=function(G,b){return _.Gi(G.entities,"superThanksSelectedTierEntity",b)};
zuF=function(G,b){return{popup:{searchSuggestionReportDialog:{searchQuery:G,title:_.qP("SBOX_INAPPROPRIATE_TITLE"),suggestions:b,categoryLabel:_.qP("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.qP("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.qP("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.qP("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.qP("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.qP("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.qP("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.qP("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.qP("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.qP("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
ooF=function(G){var b,I,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O;return _.c(function(K){switch(K.nextAddress){case 1:return K.yield(_.hQ(),2);case 2:return(b=K.yieldResult)?K.yield(_.BDu(b),3):K.return();case 3:I=K.yieldResult;if(!I)return K.return();q=((h=I.offlineVideos)==null?void 0:h.length)||0;V=((l=I.offlinePlaylists)==null?void 0:l.length)||0;if(q===0&&V===0)return K.return();D=0;if(I.offlineVideos)for(k=_.e(I.offlineVideos),L=k.next();!L.done;L=k.next())x=L.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
x.videoState&&(D+=1);G.offline_videos_count=q.toString();_.U("kevlar_log_offline_current_network_type_ks")||(G.offline_current_network_type=(f=_.HUd())!=null?f:"CONN_INVALID");_.U("kevlar_log_updated_time_for_smart_downloads")&&(T=_.Cw().getState().entities,B=_.Bj(T),A=Uof(T),G.offline_smart_downloads_last_sync_time_ms=B.toString(),G.offline_smart_downloads_next_sync_time_ms=A.toString());G.offline_videos_playable=D.toString();G.offline_playlists_count=V.toString();I.offlineVideos&&(t=I.offlineVideos.reduce(function(u,
w){w.downloadedBytes&&(u+=Number(w.downloadedBytes));return u},0).toString())&&(G.offline_used_disk_space_bytes=t);
if(!((y=navigator)==null?0:(F=y.storage)==null?0:F.estimate)){K.jumpTo(4);break}return K.yield(navigator.storage.estimate(),5);case 5:W=K.yieldResult,G.offline_free_disk_space_bytes=(((O=W)==null?void 0:O.quota)||0).toString();case 4:G.offline_client_state=JSON.stringify(I),_.ip(K)}})};
ikL=function(G){G=G.match(/(.*)::.*::.*/);if(G!==null)return G[1]};
Pk5=function(G){if(_.YsB()){var b=Object.keys(window.sessionStorage);b=_.e(b);for(var I=b.next();!I.done;I=b.next()){I=I.value;var h=ikL(I);h===void 0||G.includes(h)||self.sessionStorage.removeItem(I)}}};
dKa=function(){if(!_.YsB())return!1;var G=_.FU(),b=Object.keys(window.sessionStorage);b=_.e(b);for(var I=b.next();!I.done;I=b.next())if(I=ikL(I.value),I!==void 0&&I!==G)return!0;return!1};
BM=function(G,b,I){(_.U("desktop_keyboard_shortcut_usage_log")||I&&_.U("web_shorts_keyboard_shortcut_usage_log"))&&(b?_.Gj.get(G):_.$$.get(G))&&(G=b?_.Iy.get(G):_.by.get(G))&&_.WT(_.gL(),G)};
yaK=function(G,b){return G.findIndex(function(I){return I.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(b.keyCode):!1};
ra8=function(G,b){b.stack&&(G.stack+="\n"+b.stack);return G};
W21=function(G){var b=UV(G,"Content-Type");if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new F2L:new _.LY;if(b.startsWith("application/x-protobuf")){G=UV(G,"Content-Transfer-Encoding");if(!G)return new sV;if(G.toLowerCase()=="base64")return new Hk5}return null};
noj=function(G,b,I,h){var q=new aGY(function(D,k){return NRY.has(k)?D.sentinel==="gal"&&D.event!==void 0:!1},function(D){D.event?(D=Yd1(D.event),D=!D||CkF(h,D)?!0:_.Vt(G.lastEvent,g6,2,AT)?!_.Vt(D,Mu,1,AT)&&!_.Vt(D,g6,2,AT):!_.Vt(D,Mu,1,AT)&&!_.Vt(D,g6,3,AT)):D=!0;
return D});
I=_.Ug(G.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Jac(I)]]));if(G.nestedOrigins!==void 0)for(var l=_.e(G.nestedOrigins),V=l.next();!V.done;V=l.next())I=_.Ug(I,new Map([["origin",V.value]]));return K28(q,I,b).then(function(D){D=us9(D.event);if(_.Vt(D,Mu,1,AT)){var k,L=(k=_.Zu(D,Mu,1,AT))==null?void 0:_.gU(k,2);L&&h.JSC$19772_logErrorEvent(RuD(L));k=_.Zu(D,Mu,1,AT);_.gU(k,2)===4?(D=_.Zu(D,Mu,1,AT),D={statusCode:11,statusMessage:_.U5(D,
3)}):(D=_.Zu(D,Mu,1,AT),D={statusCode:12,statusMessage:_.U5(D,3)});return D}_.Vt(D,g6,3,AT)?(D=_.Zu(D,g6,3,AT),D={statusCode:1,consentLanguageKeys:_.U5(D,2)}):D={statusCode:1};return D}).catch(function(D){return D.errorCode!==void 0?{statusCode:D.errorCode,
statusMessage:D.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
pND=function(G){var b={};if(G===void 0||G===null)return b;G.getToken()!==void 0&&Ok8(G.getToken())&&Ok8(G.getToken()).length>0&&(b.scopes=new Set(Ok8(G.getToken())));G.getToken()!==void 0&&wN3(G.getToken())&&wN3(G.getToken()).length>0&&(b.capabilities=new Set(wN3(G.getToken())));_.U5(G,3)!==void 0&&(b.consistencyKey=_.U5(G,3));G.getName()!==void 0&&G.getName()!==""&&(b.linkName=G.getName());_.eR(G,Eof,4)&&(G=_.fi(G,Eof,4),G=Object.assign({},_.U5(G,1)&&{userId:_.U5(G,1)},_.U5(G,2)&&{displayName:_.U5(G,
2)},_.U5(G,3)&&{email:_.U5(G,3)},_.U5(G,5)&&{username:_.U5(G,5)},_.U5(G,4)&&{profilePicture:_.U5(G,4)}),b.profile=G);return b};
Sdj=function(G,b){var I=G.flowParams,h;return{serviceId:I.serviceId,sessionId:I.sessionId,currentFlow:G.currentFlow,googleScopesString:b,linkingSessionSerialized:G.session.serialize(),consentLanguageKeys:I.consentLanguageKeys,callerState:G.callerState,dynamicUrlParameters:I.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(h=I.partnerConfigMinReadTimestamp)==null?void 0:h.serialize()}};
Ia3=function(G){var b=G.googleScopes!==void 0?Array.from(G.googleScopes).join(","):"";XNc(Sdj(G,b));b=$te(G);return b===null?Promise.resolve(GZF):b.start().then(function(I){var h,q=(h=I.link)==null?void 0:h.consistencyKey;return I.statusCode===1&&G.googleScopes!==void 0&&G.googleScopes.size>0&&q!==void 0?(h=G.flowParams,bMj(h.serviceId,h.sessionId,G.googleScopes,q,h.galService,G.config,I)):I})};
hm9=function(G){var b=$te(G);return b===null?Promise.resolve(Z6({statusCode:7,statusMessage:"Failed to create flow object"},G.callerState)):b.complete().then(function(I){var h,q=(h=I.link)==null?void 0:h.consistencyKey;return I.statusCode===1&&G.googleScopes!==void 0&&G.googleScopes.size>0&&q!==void 0?(h=G.flowParams,bMj(h.serviceId,h.sessionId,G.googleScopes,q,h.galService,G.config,I)):Z6(I,G.callerState)},function(I){return Z6({statusCode:12,
statusMessage:"Failed to complete the flow: "+I.message},G.callerState)})};
bMj=function(G,b,I,h,q,l,V){return q25(q,{serviceId:G,sessionId:b,googleScopes:I,consistencyKey:h}).then(function(){return V},function(D){return q.deleteLink({serviceId:G,
sessionId:b,accountLinkingEntryPoint:l.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+D.message}},function(k){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+k.message}})})};
$te=function(G){switch(G.currentFlow){case 1:var b=G.flowParams;G=_.fi(G.session,jZK,1);return tT.createOAuthFlow(b,G);case 2:case 3:return b=G.flowParams,G=_.fi(G.session,la9,6),zj.createStreamlinedFlow(b,G);default:return null}};
mtF=function(G,b){G===2&&(G=3);var I=0;oy.indexOf(G)!==-1&&(I=oy.indexOf(G)+1);for(G=I;G<oy.length;G++)if(b.has(oy[G]))return oy[G]};
Dt5=function(G){var b=G.serviceId;var I=G.sessionId;var h=G.config;var q=G.galService;var l=G.capabilities;var V=G.scopes;var D=G.loginHint;var k=G.callerState;var L=G.consentLanguageKeys;var x=G.linkName;var f=G.dynamicUrlParameters;var T=G.partnerConfigMinReadTimestamp;G=h.dataUsageNoticeConfig?h.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return q.startLinkingSession({serviceId:b,sessionId:I,capabilities:l,scopes:V,loginHint:D,callerState:k,supportedFlows:em9(h.supportedFlows),completionUrl:h.completionUrl,
accountLinkingEntryPoint:h.accountLinkingEntryPoint,consentLanguageKeys:L,dataUsageNoticeConfig:G,linkName:x,dynamicUrlParameters:f,partnerConfigMinReadTimestamp:T}).then(function(B){return new VKj(b,I,h,q,B,void 0,k,L,f,T)})};
xte=function(G,b,I){var h=(new cWK).getSession(G);if(h===null)return Promise.resolve({statusCode:2});kZK(G);var q=vUY(h.linkingSessionSerialized),l=h.googleScopesString!==""&&h.googleScopesString!==void 0?new Set(h.googleScopesString.split(",")):void 0,V=h.partnerConfigMinReadTimestampSerialized?LAL(h.partnerConfigMinReadTimestampSerialized):void 0;return QZW(new VKj(G,h.sessionId,b,I,q,l,h.callerState,h.consentLanguageKeys,h.dynamicUrlParameters,V),h.currentFlow,h.consentLanguageKeys)};
XNc=function(G){var b=new cWK;b.storage!==null&&b.storage.set("SAVED_SESSION",G)};
kZK=function(G){var b=new cWK;if(b.storage!==null){var I=b.storage.get("SAVED_SESSION");I!==void 0&&I.serviceId===G&&b.storage.remove("SAVED_SESSION")}};
em9=function(G){var b=new Set;G=_.e(G);for(var I=G.next();!I.done;I=G.next())I=I.value,I!==1&&fac.has(I)&&b.add(fac.get(I));return b};
Z6=function(G,b){b!==void 0&&(G.callerState=b);return G};
TQe=function(G){switch(G){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
sZF=function(G){return new BQ1(G,new Ute(G))};
MKK=function(G,b){b=b===void 0?!1:b;var I=document.createElement("div");G&&(I.style.transform="scaleX(-1)");I.style.backgroundColor=b?"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=gUj();G.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";G.style.left="-145.166611%";var h=AWW(b);h.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";G.appendChild(h);I.appendChild(G);G=gUj();G.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";G.style.left="-54.888891%";b=AWW(b);b.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
G.appendChild(b);I.appendChild(G);return I};
gUj=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};
AWW=function(G){var b=document.createElement("span");b.style.borderTop=G?"4px solid #669df6":"4px solid #4285f4";b.style.display="inline-block";b.style.position="absolute";b.style.width="100%";return b};
ZMK=function(G){return G==null?void 0:_.ZTB(G).valueOf()};
iMF=function(G){var b=document.body,I=!1,h=function(){I||(I=!0,tKe(q,l),setTimeout(function(){b.removeChild(l);b.removeChild(q)},150))},q=zmj(G,getComputedStyle(b).direction==="rtl",h),l=oUK(h);
tKe(q,l);b.appendChild(l);b.appendChild(q);window.requestAnimationFrame(function(){l.style.opacity="1";q.style.opacity="1";q.style.transform="translate(-50%, -50%) scale(1)";q.children[0].focus()})};
zmj=function(G,b,I){var h=document.createElement("div");h.style.position="fixed";h.style.alignItems="center";h.style.backgroundColor=G?"rgb(32, 33, 36)":"white";h.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";h.style.display="flex";h.style.flexDirection="column";h.style.justifyContent="center";h.style.left="50%";h.style.top="50%";h.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";h.style.zIndex="2002";document.body.clientWidth>=
660?(h.style.borderRadius="8px",h.style.minHeight="220px",h.style.maxHeight="90%",h.style.maxWidth="90%",h.style.minWidth="540px"):(h.style.height="100%",h.style.width="100%");h.setAttribute("aria-label","Error");h.setAttribute("aria-modal","true");h.setAttribute("role","alertdialog");h.addEventListener("keydown",function(l){l.key==="Escape"&&I()});
b=PAe(G,b,I);h.appendChild(dtY(b));h.appendChild(b);var q=document.createElement("img");q.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";q.style.height="72px";q.style.width="72px";q.style.color="#9aa0a6";q.setAttribute("alt","");h.appendChild(q);q=document.createElement("h1");q.textContent="Something went wrong.  Try again.";
q.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";q.style.lineHeight="24px";q.style.fontSize="16px";q.style.textAlign="center";q.style.letterSpacing="0.1px";q.style.color=G?"rgb(232,234,237)":"#3c4043";h.appendChild(q);h.appendChild(dtY(b));return h};
PAe=function(G,b,I){var h=document.createElement("button");h.style.backgroundColor="transparent";h.style.border="none";h.style.borderRadius="50%";h.style.cursor="pointer";h.style.outline="none";h.style.padding="12px";h.setAttribute("aria-label","Close dialog");h.style.position="absolute";h.style.top="0";b?h.style.right="0":h.style.left="0";h.addEventListener("focus",function(){h.style.backgroundColor=G?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
h.addEventListener("blur",function(){h.style.backgroundColor="transparent"});
h.addEventListener("mouseenter",function(){h.style.backgroundColor=G?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
h.addEventListener("mouseleave",function(){h.style.backgroundColor="transparent"});
h.addEventListener("click",I);h.addEventListener("keydown",function(q){q.key!=="Enter"&&q.key!=="Space"||I()});
b=document.createElement("img");b.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";b.style.display="block";b.style.height="24px";b.style.width="24px";b.setAttribute("alt","");h.appendChild(b);return h};
dtY=function(G){var b=document.createElement("div");b.setAttribute("tabindex","0");b.setAttribute("aria-hidden","true");b.addEventListener("focus",function(){return void G.focus()});
return b};
oUK=function(G){var b=document.createElement("div");b.style.backgroundColor="rgba(32,33,36,0.6)";b.style.bottom="0";b.style.left="0";b.style.position="fixed";b.style.right="0";b.style.top="0";b.style.transition=" opacity 150 ms linear";b.style.zIndex="2001";b.addEventListener("click",G);return b};
tKe=function(G,b){b.style.opacity="0";G.style.opacity="0";G.style.transform="translate(-50%, -50%) scale(0.8)"};
yWe=function(G,b){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=b};
iy=function(G){rW9.call(this,G)};
PM=function(G,b){b=b===void 0?!1:b;this.parsedImageUrl_=null;G instanceof FA1||(HMD==void 0&&(HMD=new WAa),G=HMD.parse(G.toString(),b));G=this.parsedImageUrl_=G;G.JSC$19984_parsedOptions_==void 0&&((b=G.getOptions())||(b=""),G.JSC$19984_parsedOptions_=(new aaF).parse(b));rW9.call(this,G.JSC$19984_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;G=this.parsedImageUrl_;b=G.uri_.JSC$10105_port_;this.JSC$19986_domain_=G.uri_.JSC$10105_domain_+(b?":"+b:"");this.JSC$19986_query_=
this.parsedImageUrl_.uri_.JSC$10105_queryData_.toString()};
NQc=function(G){this.mode=4;this.data=G;this.parsedData=[];G=0;for(var b=this.data.length;G<b;G++){var I=[],h=this.data.charCodeAt(G);h>65536?(I[0]=240|(h&1835008)>>>18,I[1]=128|(h&258048)>>>12,I[2]=128|(h&4032)>>>6,I[3]=128|h&63):h>2048?(I[0]=224|(h&61440)>>>12,I[1]=128|(h&4032)>>>6,I[2]=128|h&63):h>128?(I[0]=192|(h&1984)>>>6,I[1]=128|h&63):I[0]=h;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))};
Y29=function(G){this.typeNumber=0;this.errorCorrectLevel=G===void 0?2:G;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
d6=function(G,b){if(G.length==void 0)throw Error("Pk`"+G.length+"`"+b);for(var I=0;I<G.length&&G[I]==0;)I++;this.num=Array(G.length-I+b);for(b=0;b<G.length-I;b++)this.num[b]=G[b+I]};
CAa=function(G,b){this.totalCount=G;this.dataCount=b};
JWf=function(){this.buffer=[];this.length=0};
KAf=function(){var G=!1;if(_.gaa()){G=_.Tq();var b="";_.ZOr()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(G=b.exec(G))?G[1]:"0.0"):_.dX()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(G=b.exec(G))&&G[1].replace(/_/g,".")):_.Mvp()?(b=/Mac OS X ([0-9_.]+)/,b=(G=b.exec(G))?G[1].replace(/_/g,"."):"10"):_.ka(_.Tq(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(G=b.exec(G))&&G[1]):_.gaa()?(b=/Android\s+([^\);]+)(\)|;)/,b=(G=b.exec(G))&&G[1]):_.tvd()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(G=b.exec(G))&&G[1]);G=
b||""}return G};
EU9=function(G,b){this.JSC$20009__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(b)for(var I in b)this.JSC$20009__htOption[I]=b[I];this.JSC$20009__htOption.useSVG&&(umD=RmK);this.JSC$20009__android=KAf();this.JSC$20009__el=G;this._oQRCode=null;this._oDrawing=new umD(this.JSC$20009__el,this.JSC$20009__htOption);this.JSC$20009__htOption.text&&(G=this.JSC$20009__htOption.text,this._oQRCode=new Y29(this.JSC$20009__htOption.correctLevel),nU1(this._oQRCode,
G),b=this._oQRCode,OMK(b,!1,wH5(b)),this.JSC$20009__el.title=G,this._oDrawing.draw(this._oQRCode),this.makeImage())};
pHj=function(G,b,I,h,q){G.save();var l=new Path2D;l.roundRect(b,I,h*7,h*7,h*2);l.roundRect(b+h,I+h,h*5,h*5,h*1.3);l.roundRect(b+2*h,I+2*h,h*3,h*3,h);G.clip(l,"evenodd");G.fillStyle=q;G.fillRect(0,0,G.canvas.width,G.canvas.height);G.restore()};
y7=function(G,b){if(typeof G!=="function")throw Error("Sk");return _.hd.setTimeout(function(){G()},b)};
r6=function(){};
XH1=function(G,b,I,h,q){(new r6).debug("TestLoadImageWithRetries: "+q);if(h==0)I(!1);else{var l=q||0;h--;S2a(G,b,function(V){V?I(!0):_.hd.setTimeout(function(){XH1(G,b,I,h,l)},l)})}};
S2a=function(G,b,I){var h=new r6;h.debug("TestLoadImage: loading "+G);var q=new Image;q.onload=function(){try{h.debug("TestLoadImage: loaded"),$AD(q),I(!0)}catch(l){}};
q.onerror=function(){try{h.debug("TestLoadImage: error"),$AD(q),I(!1)}catch(l){}};
q.onabort=function(){try{h.debug("TestLoadImage: abort"),$AD(q),I(!1)}catch(l){}};
q.ontimeout=function(){try{h.debug("TestLoadImage: timeout"),$AD(q),I(!1)}catch(l){}};
_.hd.setTimeout(function(){if(q.ontimeout)q.ontimeout()},b);
q.src=G};
$AD=function(G){G.onload=null;G.onerror=null;G.onabort=null;G.ontimeout=null};
GI5=function(){this.front_=[];this.back_=[]};
bc9=function(G,b){this.action=G;this.params=b||{}};
F2=function(G,b){_.FN.call(this);this.delay_=new _.al(this.JSC$20135_onTick_,0,this);_.M2(this,this.delay_);this.JSC$20133_interval_=5E3;this.nextTickTime_=0;if(typeof G==="function")b&&(G=(0,_.Hr)(G,b));else if(G&&typeof G.handleEvent==="function")G=(0,_.Hr)(G.handleEvent,G);else throw Error("ya");this.JSC$20135_listener_=G};
HM=function(G,b,I,h,q,l,V,D,k,L,x,f,T,B,A){var t=this;I=I===void 0?!1:I;h=h===void 0?function(){return""}:h;
q=q===void 0?!1:q;l=l===void 0?!1:l;V=V===void 0?!1:V;D=D===void 0?function(){return _.X8({})}:D;
k=k===void 0?!1:k;x=x===void 0?!1:x;f=f===void 0?!1:f;T=T===void 0?!1:T;B=B===void 0?!1:B;this.JSC$20136_pathPrefix_=G;this.defaultQueryParams_=b;this.pubsub_=new _.iB;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!A)?A(function(){t.safeReconnect_()}):new F2(this.safeReconnect_,this);
this.JSC$20136_channel_=null;this.JSC$20136_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20136_pendingMessages_=[];this.enableAsyncTest_=I;this.JSC$20136_getXsrfToken_=h;this.useAsyncBrowserChannelHandler_=l;this.getAuthorizationHeader_=D;this.getAuthorizationHeaderSync_=L;this.enableCachedUpdateAuthorizationHeader_=V;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.X8();this.enableLoungeTokenRefresh_=q;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
k;this.disableMdxAuthForNonPlaybackMessages_=x;this.disableMdxAuthForAdMessages_=f;this.enableMdxAuthForConnectionOnly_=T;this.disableMdxAuthForShortsMessages_=B;this.JSC$20136_channelOpenedCounter=new IAW;this.JSC$20136_channelClosedCounter=new hQF;this.channelMessageSentCounter=new q4j;this.JSC$20136_channelMessageReceivedCounter=new jGL;this.JSC$20136_channelErrorCounter=new lAD;this.pendingMapsOnClosedCounter=new mA9;this.undeliveredMapsOnClosedCounter=new eQK};
WM=function(G){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;G=G||document.location.href;var b=Number(_.eO(G)[4]||null)||"";b&&(this.port=":"+b);this.domain=_.VE(G)||"";G=_.Tq();G.search("MSIE")>=0&&_.Qu(G.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
ay=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||""};
VNL=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(G){var b=Math.random()*16|0;return(G=="x"?b:b&3|8).toString(16)})};
DAY=function(G){return _.Ky(G,function(b){return{key:b.id,name:b.name}})};
cxe=function(G,b){return _.FO(G,function(I){return I||b?!I!=!b?!1:I.id==b.id:!0})};
Y$=function(G,b){return _.FO(G,function(I){return Nu(I,b)})};
xAc=function(){var G=kID(),b=vg1();if(LaF()){var I=G,h=_.HOX(I,b);h<0&&_.ydq(I,-(h+1),0,b)}G=QGL(G);if(G.length==0)try{_.dPs("remote_sid")}catch(q){}else try{_.yE("remote_sid",G.join(","),-1)}catch(q){}};
kID=function(){var G=_.Q4("yt-remote-connected-devices")||[];G.sort(_.FpO);return G};
QGL=function(G){if(G.length==0)return[];var b=G[0].indexOf("#"),I=b==-1?G[0]:G[0].substring(0,b);return _.Ky(G,function(h,q){return q==0?h:h.substring(I.length)})};
fAD=function(G){_.LX("yt-remote-connected-devices",G,86400)};
vg1=function(){if(Tcc)return Tcc;var G=_.Q4("yt-remote-device-id");G||(G=VNL(),_.LX("yt-remote-device-id",G,31536E3));for(var b=kID(),I=1,h=G;_.Ya(b,h);)I++,h=G+"#"+I;return Tcc=h};
BcY=function(){return _.Q4("yt-remote-session-browser-channel")};
LaF=function(){return _.Q4("yt-remote-session-screen-id")};
ggY=function(G){G.length>5&&(G=G.slice(G.length-5));var b=_.Ky(UAW(),function(h){return h.loungeToken}),I=_.Ky(G,function(h){return h.loungeToken});
_.unv(I,function(h){return!_.Ya(b,h)})&&sGc();
_.LX("yt-remote-local-screens",G,31536E3)};
UAW=function(){return _.Q4("yt-remote-local-screens")||[]};
sGc=function(){_.LX("yt-remote-lounge-token-expiration",!0,86400)};
Ct=function(G){G||(_.xn("yt-remote-session-screen-id"),_.xn("yt-remote-session-video-id"));xAc();G=kID();_.CO(G,vg1());fAD(G)};
MNf=function(){Ax8();return JT?!!JT.get("yt-remote-use-staging-server"):!1};
Ax8=function(){if(!JT){var G=_.C9s();G&&(JT=new _.aN(G))}};
og3=function(G,b,I,h,q){I=I===void 0?function(){return""}:I;
var l=function(){return new HM(Kt(G,"/bc"),b,!1,I,h)};
return _.U("enable_mdx_web_channel_desktop")?new Zcj(function(){return new tNK(Kt(G,"/wc"),b,I)}):new zQ9(l,q)};
yxW=function(){var G=icj;PPY();uy.push(G);dAW()};
Ry=function(G,b){PPY();var I=rx3(G,String(b));uy.length==0?Fae(I):(dAW(),_.hB(uy,function(h){h(I)}))};
nt=function(G){Ry("CP",G)};
PPY=function(){uy||(uy=_.Ge("yt.mdx.remote.debug.handlers_")||[],_.cz("yt.mdx.remote.debug.handlers_",uy))};
Fae=function(G){var b=(OV+1)%50;OV=b;HcD[b]=G;Wa1||(Wa1=b==49)};
dAW=function(){var G=uy;if(HcD[0]){var b=Wa1?OV:-1,I={};do I={record$jscomp$15:void 0},b=(b+1)%50,I.record$jscomp$15=HcD[b],_.hB(G,function(h){return function(q){q(h.record$jscomp$15)}}(I));
while(b!=OV);HcD=Array(50);OV=-1;Wa1=!1}};
rx3=function(G,b){var I=(Date.now()-aA1)/1E3;I.toFixed&&(I=I.toFixed(3));var h=[];h.push("[",I+"s","] ");h.push("[","yt.mdx.remote","] ");h.push(G+": "+b,"\n");return h.join("")};
w6=function(G){_.XC.call(this);this.JSC$20161_logName_=G;this.screens=[]};
pt=function(G){w6.call(this,"LocalScreenService");this.JSC$20168_http_=G;this.loungeTokenRefreshTimer_=NaN;EV(this);this.info("Initializing with "+Nce(this.screens))};
S4=function(G,b){b=b===void 0?!1:b;w6.call(this,"ScreenService");this.JSC$20174_http_=G;this.disableAutomaticScreenCache_=b;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};Y45(this)};
X2=function(G,b,I){_.XC.call(this);this.JSC$20178_logName_=I;this.JSC$20178_screenService_=G;this.receiver_=b;this.screen_=null};
I_1=function(G,b,I){I.disableCastApi?$H("Cannot initialize because disabled by Mdx config."):CP1()?Jxa(G,I)&&(Ka3(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?ue5(b):(window.__onGCastApiAvailable=function(h,q){h?ue5(b):(Go("Failed to load cast API: "+q),RQ8(!1),Ka3(!1),_.xn("yt-remote-cast-available"),_.xn("yt-remote-cast-receiver"),ngW(),b(!1))},I.loadCastApiSetupScript?_.iU(Oca):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
wRe()>=60&&Ega():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?pRD():wRe()>=89?S45():(XR9(),$_e(GOa.map(bWL))))):$H("Cannot initialize because not running Chrome")};
ngW=function(){$H("dispose");var G=bf();G&&G.dispose();_.cz("yt.mdx.remote.cloudview.instance_",null);hzK(!1);_.B5p(qEF);qEF.length=0};
jA9=function(){return!!_.Q4("yt-remote-cast-installed")};
l_L=function(){var G=_.Q4("yt-remote-cast-receiver");return G?G.friendlyName:null};
m_c=function(){$H("clearCurrentReceiver");_.xn("yt-remote-cast-receiver")};
ez1=function(){return jA9()?bf()?bf().getCastSession():(Go("getCastSelector: Cast is not initialized."),null):(Go("getCastSelector: Cast API is not installed!"),null)};
D_1=function(G,b){Vfc()?bf().setConnectedScreenStatus(G,b):Go("setConnectedScreenStatus called before ready.")};
CP1=function(){var G=_.Tq().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.IR||G};
Jxa=function(G,b){var I=!1;bf()||(G=new I2(G,b),G.subscribe("yt-remote-cast2-availability-change",function(h){_.LX("yt-remote-cast-available",h);V7("yt-remote-cast2-availability-change",h)}),G.subscribe("yt-remote-cast2-receiver-selected",function(h){$H("onReceiverSelected: "+h.friendlyName);
_.LX("yt-remote-cast-receiver",h);V7("yt-remote-cast2-receiver-selected",h)}),G.subscribe("yt-remote-cast2-receiver-resumed",function(h){$H("onReceiverResumed: "+h.friendlyName);
_.LX("yt-remote-cast-receiver",h);V7("yt-remote-cast2-receiver-resumed",h)}),G.subscribe("yt-remote-cast2-session-change",function(h){$H("onSessionChange: "+ckK(h));
h||_.xn("yt-remote-cast-receiver");V7("yt-remote-cast2-session-change",h)}),_.cz("yt.mdx.remote.cloudview.instance_",G),I=!0);
$H("cloudview.createSingleton_: "+I);return I};
bf=function(){return _.Ge("yt.mdx.remote.cloudview.instance_")};
ue5=function(G){RQ8(!0);Ka3(!1);bf().init(!1,function(b){b?(hzK(!0),_.Uor("yt-remote-cast2-api-ready")):(Go("Failed to initialize cast API."),RQ8(!1),_.xn("yt-remote-cast-available"),_.xn("yt-remote-cast-receiver"),ngW());G(b)})};
$H=function(G){Ry("cloudview",G)};
Go=function(G){Ry("cloudview",G)};
RQ8=function(G){$H("setCastInstalled_ "+G);_.LX("yt-remote-cast-installed",G)};
Vfc=function(){return!!_.Ge("yt.mdx.remote.cloudview.apiReady_")};
hzK=function(G){$H("setApiReady_ "+G);_.cz("yt.mdx.remote.cloudview.apiReady_",G)};
Ka3=function(G){_.cz("yt.mdx.remote.cloudview.initializing_",G)};
h0=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)};
sAY=function(G){Ax8();if(!JT||!JT.get("yt-remote-disable-remote-module-for-dev")){G=_.wy("MDX_CONFIG")||G;rNF();xAc();qx||(qx=new WM(G?G.loungeApiHost:void 0),MNf()&&(qx.basePath="/api/loungedev"));j5||(j5=_.Ge("yt.mdx.remote.deferredProxies_")||[],_.cz("yt.mdx.remote.deferredProxies_",j5));kOf();var b=vxF();if(!b){var I=new S4(qx,G?G.disableAutomaticScreenCache||!1:!1);_.cz("yt.mdx.remote.screenService_",I);b=vxF();var h={};G&&(h={appId:G.appId,disableDial:G.disableDial,theme:G.theme,loadCastApiSetupScript:G.loadCastApiSetupScript,
disableCastApi:G.disableCastApi,enableDialLoungeToken:G.enableDialLoungeToken,enableCastLoungeToken:G.enableCastLoungeToken,forceMirroring:G.forceMirroring});_.cz("yt.mdx.remote.enableConnectWithInitialState_",G?G.enableConnectWithInitialState||!1:!1);I_1(I,function(l){l?Lb1()&&D_1(Lb1(),"YouTube TV"):I.subscribe("onlineScreenChange",function(){V7("yt-remote-receiver-availability-change")})},h)}if(G&&!_.Ge("yt.mdx.remote.initialized_")){_.cz("yt.mdx.remote.initialized_",!0);
QA8("Initializing: "+(0,_.yP)(G));lf.push(_.f1("yt-remote-cast2-api-ready",function(){V7("yt-remote-api-ready")}));
lf.push(_.f1("yt-remote-cast2-availability-change",function(){V7("yt-remote-receiver-availability-change")}));
lf.push(_.f1("yt-remote-cast2-receiver-selected",function(){x_5();V7("yt-remote-auto-connect","cast-selector-receiver")}));
lf.push(_.f1("yt-remote-cast2-receiver-resumed",function(){V7("yt-remote-receiver-resumed","cast-selector-receiver")}));
lf.push(_.f1("yt-remote-cast2-session-change",f_F));lf.push(_.f1("yt-remote-connection-change",function(l){l?D_1(Lb1(),"YouTube TV"):TP8()||(D_1(null,null),m_c())}));
lf.push(_.f1("yt-remote-cast2-session-failed",function(){V7("yt-remote-connection-failed")}));
h=BP9();G.isAuto&&(h.id+="#dial");var q=G.capabilities||[];q.length>0&&(h.capabilities=q);h.name=G.device;h.app=G.app;(G=G.theme)&&(h.theme=G);QA8(" -- with channel params: "+(0,_.yP)(h));h?(_.LX("yt-remote-session-app",h.app),_.LX("yt-remote-session-name",h.name)):(_.xn("yt-remote-session-app"),_.xn("yt-remote-session-name"));_.cz("yt.mdx.remote.channelParams_",h);b.start();Lb1()||U_F()}}};
Ake=function(){var G=vxF().instance_.$_gos();var b=gxD();b&&mJ()&&(cxe(G,b)||G.push(b));return DAY(G)};
Mff=function(){var G=Ake(),b=gxD();b||(b=TP8());return _.FO(G,function(I){return b&&Nu(b,I.key)?!0:!1})};
gxD=function(){var G=Lb1();if(!G)return null;var b=vxF().getScreens();return Y$(b,G)};
f_F=function(G){QA8("remote.onCastSessionChange_: "+ckK(G));if(G){var b=gxD();if(b&&b.id==G.id){if(D_1(b.id,"YouTube TV"),G.idType=="shortLived"&&(G=G.token))ZW9&&(ZW9.token=G),(b=mJ())&&b.setLoungeToken(G)}else b&&tff(),zzc(G,1)}else mJ()&&tff()};
tff=function(){Vfc()?bf().stopSession():Go("stopSession called before API ready.");var G=mJ();G&&(G.disconnect(1),oxW(null))};
iW9=function(){var G=mJ();return G&&G.getProxyState()!=3?new e5(mJ(),void 0):null};
QA8=function(G){Ry("remote",G)};
vxF=function(){if(!PX1){var G=_.Ge("yt.mdx.remote.screenService_");PX1=G?new d_e(G):null}return PX1};
Lb1=function(){return _.Ge("yt.mdx.remote.currentScreenId_")};
ykj=function(G){_.cz("yt.mdx.remote.currentScreenId_",G)};
x_5=function(){_.cz("yt.mdx.remote.connectData_",null)};
mJ=function(){return _.Ge("yt.mdx.remote.connection_")};
oxW=function(G){var b=mJ();x_5();G||ykj("");_.cz("yt.mdx.remote.connection_",G);j5&&(_.hB(j5,function(I){I(G)}),j5.length=0);
b&&!G?V7("yt-remote-connection-change",!1):!b&&G&&V7("yt-remote-connection-change",!0)};
TP8=function(){var G=LaF();if(!G)return null;var b=vxF();if(!b)return null;b=b.getScreens();return Y$(b,G)};
zzc=function(G,b){rkK?ZW9=G:(ykj(G.id),G=new V5(qx,G,BP9(),_.Ge("yt.mdx.remote.enableConnectWithInitialState_")||!1),G.connect(b,_.Ge("yt.mdx.remote.connectData_")),G.subscribe("beforeDisconnect",function(I){V7("yt-remote-before-disconnect",I)}),G.subscribe("beforeDispose",function(){mJ()&&oxW(null)}),G.subscribe("browserChannelAuthError",function(){var I=gxD();
I&&I.idType=="shortLived"&&(Vfc()?bf().handleBrowserChannelAuthError():Go("refreshLoungeToken called before API ready."))}),oxW(G))};
U_F=function(){var G=TP8();G?(QA8("Resume connection to: "+ckK(G)),zzc(G,0)):(Ct(),m_c(),QA8("Skipping connecting because no session screen found."))};
kOf=function(){var G=BP9();if(_.Cy.isEmpty(G)){G=vg1();var b=_.Q4("yt-remote-session-name")||"",I=_.Q4("yt-remote-session-app")||"";G={device:"REMOTE_CONTROL",id:G,name:b,app:I,mdxVersion:3};G.authuser=String(_.wy("SESSION_INDEX","0"));(b=_.wy("DELEGATED_SESSION_ID"))&&(G.pageId=String(b));_.cz("yt.mdx.remote.channelParams_",G)}};
BP9=function(){return _.Ge("yt.mdx.remote.channelParams_")||{}};
Fba=function(){var G,b;return _.c(function(I){if(I.nextAddress==1)return(_.Imr()||_.U("use_new_nwl"))&&_.X5O().isNetworkAvailable()?I.yield(_.k_(),2):I.return();if(I.nextAddress!=3)return(G=I.yieldResult)?I.yield(jMW(G),3):I.return();b=I.yieldResult;if(!b.length)return I.return();b.forEach(function(h){var q={timestamp:h.timestamp};h=h.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:h.appShellAssetLoadReport,options:q}:h.clientError?{payloadName:"clientError",payload:h.clientError,
options:q}:void 0;h&&_.C1(h.payloadName,h.payload,h.options)});
b.length===100&&_.uu.addLowPriorityJob(Fba);_.ip(I)})};
HWD=function(G){if(G.playerResponse){if(G=G.playerResponse,G.messages&&G.messages.length>0&&(G=G.messages.find(function(b){return!(!b||!b.mealbarPromoRenderer)}))&&G.mealbarPromoRenderer)return G.mealbarPromoRenderer}else if(G.response&&(G=G.response)&&G.overlay&&G.overlay.mealbarPromoRenderer)return G.overlay.mealbarPromoRenderer};
Wbe=function(G){if(G.response){var b=G.response;if(b&&b.overlay&&b.overlay.tooltipRenderer)return b.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};
NP3=function(G){if(!a_K&&(G=G||_.wy("ZWIEBACK_PING_URLS"))&&G.length){a_K=!0;for(var b=0;b<G.length;b++)_.Gs(G[b])}};
CXW=function(G){if(_.Cy.get(_.wy("PLAYER_VARS",{}),"privembed",!1)!="1"){G&&p51();try{YEK().then(function(){},function(){}),_.AB(CXW,18E5)}catch(b){_.Xj(b)}}};
Jk5=function(){var G=_.m$(),b=G.getFlag(119),I=window.devicePixelRatio>1;document.body&&_.On(document.body,"exp-invert-logo")&&(I&&!_.On(document.body,"inverted-hdpi")?_.Hv(document.body,"inverted-hdpi"):!I&&_.On(document.body,"inverted-hdpi")&&_.r5(document.body,"inverted-hdpi"));b!=I&&(_.eX(0,119,I),G.save())};
Kb1=function(G){return G.filter(function(b){return"ypcGetCartEndpoint"in b||"ypcFixInstrumentEndpoint"in b})};
uE1=function(G){return G.filter(function(b){return!_.g(b,_.AE8)})};
nxf=function(G,b){var I,h,q,l,V,D,k;_.c(function(L){switch(L.nextAddress){case 1:I=_.dq.getInstance();h=_.Xv.instance;q=_.ik.instance;if(!q)return Rz1(G,h,b),L.return();_.gm(L,2);G.onLoadingCommand&&h.resolveCommand(G.onLoadingCommand);return L.yield(I.getCurrentPositionFromGeolocation(),4);case 4:l=L.yieldResult;if(!G.resolveLocationCommand){L.jumpTo(5);break}V=I.createLocationInfo(l);return L.yield(_.dR(q,G.resolveLocationCommand,{locationInfo:V}),6);case 6:D=L.yieldResult;if(!D||"error"in D&&D.error||
D.errorMetadata)return Rz1(G,h,b),L.return();var x;if(D==null?0:(x=D.onResponseReceivedActions)==null?0:x.length){x=_.e(D.onResponseReceivedActions);for(var f=x.next();!f.done;f=x.next())h.resolveCommand(f.value)}(_.g(G.onSuccessCommand,_.Wq)||_.g(G.onSuccessCommand,_.jL))&&_.O3(b.hostElement,"yt-navigate",{endpoint:G.onSuccessCommand,reload:!0});case 5:_.hF(L,0);break;case 2:k=_.zf(L);if(k instanceof GeolocationPositionError&&k.code===GeolocationPositionError.PERMISSION_DENIED)return G.onDeniedCommand&&
h.resolveCommand(G.onDeniedCommand),L.return();Rz1(G,h,b);_.ip(L)}})};
Rz1=function(G,b,I){G.onFailureCommand&&(b.resolveCommand(G.onFailureCommand),_.wL(I.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
wPY=function(G,b){var I=_.g(G,_.nje);if(I&&b){G=I.videoIds||[I.videoId];var h;b=(h=_.O3(b,"yt-lockup-requested",{videoIds:G}).detail)==null?void 0:h.returnValue;var q;I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?q=b?b:G.map(function(l){return{videoId:l,navigationEndpoint:I.videoCommand}}):b&&(q=b);
q&&(h=q.map(function(l){var V=Object,D=V.assign;var k=l.navigationEndpoint;if(!_.g(k,_.V4)){var L=_.g(k,_.Wq);if(L){if(delete L.index,delete L.playlistId,L=_.g(k==null?void 0:k.commandMetadata,_.IW),L==null?0:L.url){var x=L.url;x=_.J_(x,"list");x=_.J_(x,"index");L.url=x}}else k=void 0}return D.call(V,{},l,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:k})}),OWD(h,I))}};
Exc=function(G){var b=_.Dg();if(G=_.g(G,_.OFn))G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&b.clearQueue(),G.closeMiniplayer&&_.LL().resolve(_.zO).close(!0)};
SE1=function(G){pPK(_.Dg(),G)};
XPc=function(G){var b;(G=(b=_.g(G,_.uHW))==null?void 0:b.setVideoIds)&&G.forEach(function(I){_.Nn5(_.Dg(),I)})};
GdL=function(G){$Cc(_.Dg(),G)};
bpe=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(G){return!1}};
Iu5=function(G){var b=["h","m","s"],I=_.Jd(b);I.reverse();var h={};G=(G.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(V){var D=(V.match(/[hms]/)||[""])[0];return D?(h[D]=parseInt(V.match(/\d+/)[0],10),!1):!0});
for(G.reverse();G.length&&I.length;){var q=I.shift();q in h||(h[q]=parseInt(G.shift(),10))}if(G.length||h.s>59||h.m>59||h.h>9)return null;var l="";b.forEach(function(V){h[V]&&(l+=""+h[V]+V)});
return l||null};
hbK=function(G,b){var I=_.LMu(b,{},G,!0);return new Promise(function(h,q){I.listenOnce("n",function(){q(Error("Dl`"+I.JSC$29908_getErrorDescription()))});
I.listenOnce("l",function(){var l=I.getResponseCode();if(l!==200)q(Error("El`"+b+"`"+G.type+"`"+G.size+"`"+l));else try{h(JSON.parse(I.getResponseText()).encryptedBlobId)}catch(V){q(V)}});
I.run()})};
q5Y=function(G){return G.substring(G.indexOf(":")+1,G.indexOf(";"))};
jRL=function(G){return new Promise(function(b,I){var h=new FileReader;h.onloadend=function(){try{var q=new Uint8Array(h.result);q.length<8&&I(void 0);var l=q.subarray(0,8);q="";for(var V=0;V<l.length;V++)q+=("0"+l[V].toString(16)).substr(-2);q.startsWith("ffd8ff")?b("image/jpeg"):q.startsWith("47494638")?b("image/gif"):q.startsWith("89504e470d0a1a0a")?b("image/png"):q.startsWith("424d")?b("image/bmp"):b(void 0)}catch(D){I(D)}};
h.onerror=I;h.readAsArrayBuffer(G)})};
luY=function(G){return new Promise(function(b,I){var h=new Image;h.crossOrigin="anonymous";h.onload=function(){var q=document.createElement("canvas");q.width=h.naturalWidth;q.height=h.naturalHeight;var l=q.getContext("2d");if(!l)throw Error("Fl");l.drawImage(h,0,0);l=q5Y(G);q.toBlob(function(V){V?b(V):I()},l)};
h.src=G})};
ebj=function(G,b){var I;if(((I=_.g(G,_.V4))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var h;_.O3((h=b.hostElement)!=null?h:b,"yt-shorts-reset");_.D2L(_.LL().resolve(_.o0),G).then(function(l){mCf(l,b,G)})}else{var q;
_.pv((q=b.hostElement)!=null?q:b,[G]).then(function(l){l&&mCf(l.data,b,G)})}};
mCf=function(G,b,I){if(G){var h=_.g(G.replacementEndpoint,_.V4);if(h){G.sequenceContinuation&&(h.sequenceParams=G.sequenceContinuation);var q;_.O3((q=b.hostElement)!=null?q:b,"yt-navigate",{endpoint:G.replacementEndpoint})}else if((G==null?void 0:G.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(G==null?0:G.watchStatus)&&_.g(G.watchStatus,_.ysn)){var l;_.O3((l=b.hostElement)!=null?l:b,"yt-navigate",{endpoint:I})}}};
VRK=function(G){var b=_.LL().resolve(_.nR),I=_.PH.currentPageTypeSelector(b.getState())||"";b=_.PH.currentPageSubTypeSelector(b.getState())||"";I=I==="ytd-browse"&&b==="home";return _.U("web_guide_entry_enable_cache_for_non_home_pages")?(G=(G==null?void 0:G.navigationEndpoint)&&_.qe(G.navigationEndpoint)==="home",{disableCache:I&&G}):{disableCache:I}};
cJL=function(G,b,I,h){if(b!=null&&b.isPrimary){a:{var q=b.formattedTitle,l=h===1?b.navigationEndpoint:void 0;if(I&&I.length){var V={};if(q){var D=void 0;l&&(D={commandContext:{onTap:{innertubeCommand:l||{}}}});V.header={panelHeaderViewModel:{title:_.fG(q),rendererContext:D}}}q=[];I=_.e(I);for(l=I.next();!l.done;l=I.next()){l=_.g(l.value,DCW);var k=void 0,L=void 0;D=((k=l)==null?0:k.formattedTitle)?_.fG((L=l)==null?void 0:L.formattedTitle):void 0;k=void 0;L=(k=l)==null?void 0:k.isPrimary;if(l&&D&&
!L){D={title:D};l.navigationEndpoint&&(D.rendererContext={commandContext:{onTap:{innertubeCommand:l.navigationEndpoint}}});k=[];var x=L=void 0;if(((L=l)==null?0:(x=L.thumbnail)==null?0:x.thumbnails)&&l.thumbnail.thumbnails.length>0){L=_.e(l.thumbnail.thumbnails);for(x=L.next();!x.done;x=L.next())k.push({url:x.value.url});D.leadingAccessory={avatarViewModel:{image:{sources:k},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(L=void 0,(L=l.icon)==null?0:L.iconType)k.push({clientResource:{imageName:l.icon.iconType||
""}}),D.leadingImage={sources:k};L=k=void 0;((k=l)==null?0:(L=k.badges)==null?0:L.liveBroadcasting)?(D.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",D.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},D.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):l.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?D.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":l.count&&(D.trailingLabel={content:l.count.toString()});
q.push({listItemViewModel:D})}}q.length!==0?(V.content={listViewModel:{listItems:q}},V.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}}):V=void 0;if(V){q=void 0;h===0&&(q={preventCloseWhileHovered:!0,hideDelayMs:3E3});V={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:V}},contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:q}}};break a}}V=void 0}h===1&&V?(b.serviceEndpoint=V,b.navigationEndpoint=void 0):h===0&&V&&(b.mouseEnterEndpoint=
V,b.mouseLeaveEndpoint={hideSheetCommand:{}});G.push({guideEntryRenderer:b})}};
kd8=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(b){return!1}return kd8(G.parentNode)};
D3=function(G){return G?G.tagName==="A"&&G.href&&G.classList.contains("yt-simple-endpoint"):!1};
vYK=function(G){return G?G.tagName==="IMG"&&G.classList.contains("emoji"):!1};
LI5=function(G,b,I){if(!G)return null;var h=D3(G);if(h&&I)return b=G.pathname.substring(G.pathname.indexOf("/channel/")+9),document.createTextNode("@"+b);if(h&&!I)return document.createTextNode("");if(vYK(G))return I=G.alt,G=G.dataset.emojiId,!G&&b&&(b=_.E2(b,I))&&b.isCustomEmoji&&(G=b.emojiId),G?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+G+">"):document.createTextNode(I);h=G.cloneNode(!1);for(var q=0;q<G.childNodes.length;++q){var l=LI5(G.childNodes[q],b,I);l&&h.appendChild(l)}return h};
QRe=function(G){return G?D3(G)?G:QRe(G.lastChild):null};
xCF=function(G){return G?D3(G)?G:xCF(G.firstChild):null};
fu3=function(G){if(!G)return null;for(var b=G.previousSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.previousSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.previousSibling;else break;(b=QRe(b))?G=b:G=(G=G.parentNode)?QRe(G.previousElementSibling):null;return G};
TU8=function(G){if(!G)return null;for(var b=G.nextSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.nextSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.nextSibling;else break;return(b=xCF(b))?b:TU8(G.parentNode)};
BUj=function(G){var b=_.SK(),I=b.JSC$11416_getStartNode();if(!kd8(I.parentNode))return null;b=b.JSC$11416_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var h=_.wV(I,D3);if(h){if(G&&b===0||!G&&b===I.length)return h}else{if(G&&b===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.Xm(I.nextElementSibling,"display")==="block"?null:xCF(I.nextElementSibling);if(!G&&b===0)return I?QRe(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(G){if(0<=b&&b<I.childNodes.length)return xCF(I.childNodes[b])}else if(0<
b&&b<=I.childNodes.length)return QRe(I.childNodes[b-1]);return null};
UCD=function(G,b,I){if(!G)return null;if(G.nodeType===Node.TEXT_NODE)if(I){var h=fu3(G);if(h&&!/^\s+\S/.test(G.wholeText.substr(0,b)))return h}else if((h=TU8(G))&&!/\S\s+/.test(G.wholeText.substr(b,G.wholeText.length)))return h;return G.nodeType===Node.ELEMENT_NODE?I?fu3(G.childNodes[b]):TU8(G.childNodes[b]):UCD(G.parentNode,b,I)};
sR8=function(G){if(G.hasChildNodes())switch(G.tagName){case "DIV":case "A":case "SPAN":var b="";for(G=G.firstChild;G;G=G.nextSibling)b+=sR8(G);return b;default:return""}else switch(G.nodeType){case 3:return G.textContent;default:return""}};
gYL=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"}};
AJc=function(G){return G.map(function(b){return{settingsRadioOptionRenderer:{title:_.OS(b.name),asideText:_.OS(b.approximateSize),id:gYL(b.format)}}})};
ZpD=function(G){if(G&&G.length!==0)return G.filter(MRD()).map(function(b){return{settingsRadioOptionRenderer:{title:b.name,asideText:b.approximateSize,id:gYL(b.formatType)}}})};
tRa=function(G){if(G)return G.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
zbj=function(G,b){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(b)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
oYe=function(G){var b=G.indexOf("(");return b!==-1?G.substring(b+1,G.length-1):G};
_.P3Y=function(G,b,I,h,q){I||(I=ipj);var l;(l=_.g(I.commandMetadata,_.IW))!=null&&l.url||(I=Error("Kl`"+JSON.stringify(I)),_.K1(I),I=ipj);I=_.Cy.unsafeClone(I);l=_.EY(_.g(I.commandMetadata,_.IW).url,"search_query",G);_.XN(location.href,"sv")==="1"&&(_.g(I,_.lg).params="EgOAAgE%3D",l=_.EY(l,"sv","1"));_.g(I,_.lg)&&(_.g(I,_.lg).query=G);l=l.replace(/%20/g,"+");_.g(I.commandMetadata,_.IW).url=l;q=_.U("desktop_enable_entity_suggest")?{entityMid:q}:{};_.LL().resolve(_.xW).resolveCommand(I,{form:{tempData:Object.assign({},
{gs_l:b,oq:h!=null?h:G},q),isFromShorts:_.WH()==="shorts"}})};
dC5=function(G){switch(G){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
rJa=function(G,b,I,h,q,l){var V=_.Cy.clone(yJ9);V.locale=_.wy("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;V.report={description:q||"<empty>"};q=_.wy("SBOX_SETTINGS",{});b=b.join(",");var D=Date.now();G={choice_cc:h,choice_id_cc:I,choices_sc:b,gl:q.REQUEST_DOMAIN,hl:q.REQUEST_LANGUAGE,query:G,time:D};l&&(G.choice_additional_comment_cc=l);_.BY8(V,G)};
FIY=function(G){var b=new Map;b.set("authuser",_.wy("SESSION_INDEX","0"));return _.Ug(G,b)};
WIe=function(G){var b;return _.c(function(I){switch(I.nextAddress){case 1:if(!G||!Hpc(G))return I.return(null);b=null;switch(_.wy("INNERTUBE_CLIENT_NAME")){case "WEB":return I.jumpTo(2);case "WEB_REMIX":b=G.getPlayer()}I.jumpTo(3);break;case 2:return I.yield(G.getPlayerPromise(),4);case 4:b=I.yieldResult;I.jumpTo(3);break;case 3:return I.return(b)}})};
Hpc=function(G){return["ytd-player","ytmusic-player"].includes(String(G.tagName||"").toLowerCase())};
au8=function(G){G=Math.round(G);return G%2?G-1:G};
NU8=function(G){G=Math.round(G);return G%2===0?G-1:G};
Y5L=function(G){var b,I,h;if(G=(b=G.createPlaylistDialogFormSchema)==null?void 0:(I=b.fieldSchemas)==null?void 0:(h=I.title)==null?void 0:h.validationSchema)for(b=[G.syncStep,G.asyncStep].filter(function(q){return q!==void 0}),b=_.e(b),I=b.next();!I.done;I=b.next()){I=I.value.rules;
if(!I)break;I=_.e(I);for(I=I.next();!I.done;I=I.next())return _.g(I.value,_.P4e)}};
JJY=function(G){var b,I,h;if(G=(b=G.createPlaylistDialogFormSchema)==null?void 0:(I=b.fieldSchemas)==null?void 0:(h=I.visibility)==null?void 0:h.validationSchema)for(b=[G.syncStep,G.asyncStep].filter(function(q){return q!==void 0}),b=_.e(b),I=b.next();!I.done;I=b.next()){I=I.value.rules;
if(!I)break;I=_.e(I);for(h=I.next();!h.done;h=I.next())if(h=_.g(h.value,C3j))return b=void 0,(b=h.translations)==null?void 0:b.visibilityNotValidErrorMessage}};
KIY=function(){var G,b;return(b=(G=_.LL().resolve(_.vf(_.Pv)))==null?void 0:G())!=null?b:!1};
uc5=function(G){var b=21;if(!G)return b;b+=G.headerTitle?27:0;b+=G.headerTitle&&G.hasHeaderActionHeader?4:0;return b+=G.headerTitle&&G.headerSubtitle?16:0};
RbF=function(G){var b=0;if(!G)return b;b+=G.hasFooterPrimaryButton||G.hasFooterSecondaryButton?48:0;b+=G.footerTrailingLabel||G.footerLeadingLabel?30:0;return b+=G.hasFooterPrimaryButton||G.hasFooterSecondaryButton||!G.footerTrailingLabel&&!G.footerLeadingLabel?0:12};
nY5=function(G){var b=new _.iB,I=G;return{subscribe:function(h){b.subscribe("changed",h)},
dispatch:function(h,q){var l=I;if(h==="Touch Start")I=Object.assign({},l,{isAnimating:!1,initialY:q.event.touches[0].clientY});else if(h==="Touch Move"){h=q.contentScrollable?-1*(l.initialY-24):0;var V,D=(V=q.headerDivHeight)!=null?V:uc5(q.header),k;V=(k=q.footerDivHeight)!=null?k:RbF(q.footer);k=Math.min(q.fullContentWrapperHeight,q.heightMap[q.contentWrapperId]+D-V);I=Object.assign({},l,{currentY:Math.max(h,q.event.touches[0].clientY-l.initialY),maxHeightForContentWrapper:Math.min(k,Math.max(0,
(l.isFullScreen?k:q.contentWrapperHeight)-l.currentY))})}else I=h==="Snap To Full Screen"?Object.assign({},l,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:q.maxHeight}):h==="Snap To Neutral Position"?Object.assign({},l,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:q.maxHeight}):h==="Close Sheet"?Object.assign({},l,{isAnimating:!0,currentY:q.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:q.maxHeight}):l;b.publish("changed",I)}}};
Opf=function(G){return _.Xu(function(b){G(b);return!1})};
w85=function(){_.LL().resolve(_.K9).closeSheet()};
EYY=function(G){var b,I,h,q,l,V,D,k,L,x,f;return{headerTitle:(b=G.headerTitle)==null?void 0:b.call(G),headerSubtitle:(I=G.headerSubtitle)==null?void 0:I.call(G),headerActionHeader:G.headerActionHeader,footerPrimaryButton:G.footerPrimaryButton,footerSecondaryButton:G.footerSecondaryButton,footerButtonType:(h=G.footerButtonType)==null?void 0:h.call(G),footerLeadingLabel:(q=G.footerLeadingLabel)==null?void 0:q.call(G),footerTrailingLabel:(l=G.footerTrailingLabel)==null?void 0:l.call(G),shouldShowIcons:(V=
G.shouldShowIcons)==null?void 0:V.call(G),skipContentClick:(D=G.skipContentClick)==null?void 0:D.call(G),additionalClassName:(k=G.additionalClassName)==null?void 0:k.call(G),onClosedCallback:G.onClosedCallback,focusOnClose:(L=G.focusOnClose)==null?void 0:L.call(G),isDisabled:(x=G.isDisabled)==null?void 0:x.call(G),disabledCommand:(f=G.disabledCommand)==null?void 0:f.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()}};
p81=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""}};
S53=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""}};
X83=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""}};
$wK=function(G,b,I){b.forEach(function(h){_.yw(_.LL().resolve(_.aS),h)});
_.wL(G,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",I])};
hw1=function(G,b,I,h){var q=_.g(I,_.e6).commandLifeCycleConfig;q&&q.onStartCommand&&_.Su(G,[q.onStartCommand],b);_.oG(b);var l=_.ik.instance;l&&_.PN(l,I)?_.dR(l,I,h).then(function(V){if(!V||(V==null?0:V.error))return V=_.g(I,_.e6).serializedTransactionFlowLoggingParams,_.iP(b),_.vv(new ct("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",V));_.iP(b);return{data:V}}).then(function(V){_.iP(b);
Gw8(V.data);var D=V.data.command;D&&_.Su(G,[D],b);D=bfF(I,V.data);if(!D){var k=V.data;V=!1;if(k&&k.command&&_.g(k.command,_.$P)){var L;k=((L=_.g(k.command,_.$P))==null?void 0:L.commands)||[];for(L=0;L<k.length;L++)if(_.g(k[L],_.lbO)){V=!0;break}}V||_.aC('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!D&&q&&q.onSuccessCommand?_.Su(G,[q.onSuccessCommand],b):D&&q&&q.onFailureCommand&&_.Su(G,[q.onFailureCommand],b)},function(){_.iP(b);
q&&q.onFailureCommand&&_.Su(G,[q.onFailureCommand],b);IIa(I)}):_.K1(Error("Wl"),"ERROR")};
qp5=function(G,b,I){var h=[b];I&&h.push(I);return _.pv(G,h).then(function(q){var l=_.g(b,_.e6).serializedTransactionFlowLoggingParams,V=q.data,D=bfF(b,V);D?q=_.vv(new ct(D,l)):Gw8(V);return q},function(){var q=_.g(b,_.e6).serializedTransactionFlowLoggingParams;
IIa(b);return _.vv(new ct("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",q))})};
bfF=function(G,b){G=_.g(G,_.e6).serializedTransactionFlowLoggingParams;var I=null;switch(b.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?_.FA(I,G):BRf(G);return I};
IIa=function(G){_.FA("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.g(G,_.e6).serializedTransactionFlowLoggingParams)};
Gw8=function(G){if(G.trackingParams){var b=_.gL(),I=_.s3();b&&I&&_.dK(b,I,_.VB(G.trackingParams))}};
jeF=function(G,b,I){var h=_.ik.instance,q=_.JRr(_.wy("YPC_MB_URL")),l=(new _.YPB).init(),V=_.CqO(),D=_.g(I,_.IbQ).languageCode;D===void 0?_.K1(Error("Ii"),"ERROR"):_.oT([l,q]).then(function(){var k={ctk:_.Cc.payments.business.integration.ClientTokenFactory.createClientToken(D,V)};h&&_.PN(h,I)?_.dR(h,I,k).then(function(L){return{data:L}}).then(function(L){_.O3(b,"yt-service-request-completed",L);
L.code!=="ERROR"&&(L=L.data.command)&&_.Su(G,[L],b)}):_.K1(Error("Wl"),"ERROR")})};
ewD=function(G,b,I,h){var q=_.ik.instance;q&&_.PN(q,I)?_.dR(q,I,h).then(function(l){return{data:l}}).then(function(l){lIa(G,b,I,l)},function(){mwj(I)}):(q=_.LL().resolve(_.vf(_.cy)))&&q.requestDataForServiceEndpoint(I,h).then(function(l){lIa(G,b,I,l)},function(){mwj(I)})};
lIa=function(G,b,I,h){_.O3(b,"yt-service-request-completed",h);if(h.code&&h.code=="ERROR")mwj(I);else{(h=h.data.commands)&&_.Su(G,h,b);var q;(G=(q=_.g(I,_.e68))==null?void 0:q.serializedYpcPauseFlowLoggingParams)&&G&&_.tm("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",G)}};
mwj=function(G){var b;(G=(b=_.g(G,_.e68))==null?void 0:b.serializedYpcPauseFlowLoggingParams)&&G&&_.tm("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
c89=function(G,b,I){var h=_.ik.instance;h&&_.PN(h,I)?_.dR(h,I).then(function(q){return{data:q}}).then(function(q){VE3(G,b,I,q)},function(){Dw8(I)}):(h=_.LL().resolve(_.vf(_.cy)))&&h.requestDataForServiceEndpoint(I).then(function(q){VE3(G,b,I,q)},function(){Dw8(I)})};
VE3=function(G,b,I,h){_.O3(b,"yt-service-request-completed",h);h.code&&h.code=="ERROR"?Dw8(I):((h=h.data.commands)&&_.Su(G,h,b),(G=_.g(I,_.VlB).serializedYpcResumeFlowLoggingParams)&&G&&_.tm("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",G))};
Dw8=function(G){(G=_.g(G,_.VlB).serializedYpcResumeFlowLoggingParams)&&G&&_.tm("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
kw1=function(G){G=G===void 0?{}:G;_.LL().resolve(_.Kh3).showFeedbackDialog(G.customProductData,G.feedbackContent,G.onFeedbackSubmitted,G.bucket)};
v4F=function(G){G=G===void 0?{}:G;_.LL().resolve(_.Kh3).showHelpDialog(G.helpContext,G.articleId,G.productData)};
Le8=function(){v4F()};
Qef=function(){kw1()};
fID=function(G,b,I){var h,q,l,V,D,k,L;return _.c(function(x){switch(x.nextAddress){case 1:h=_.g(G,xw3);if((q=h)==null?0:q.productId){k={productId:h.productId,bucket:h.bucket,enableAnonymousFeedback:(D=h.enableAnonymousFeedback)!=null?D:!0,allowNonLoggedInFeedback:!0};L={feedbackChoice:I.feedbackChoice};if(!_.U("web_collect_offline_state")){x.jumpTo(8);break}_.gm(x,9);return x.yield(ooF(L),11)}V={bucket:(l=h)==null?void 0:l.bucket};if(!_.U("web_collect_offline_state")){x.jumpTo(4);break}V.customProductData=
{};_.gm(x,5);return x.yield(ooF(V.customProductData),7);case 7:_.hF(x,4);break;case 5:_.zf(x);case 4:kw1(V);x.jumpTo(0);break;case 11:_.hF(x,8);break;case 9:_.zf(x);case 8:_.z_O(L),_.tzO("GFEEDBACK",L),h.productId==="5295751"&&(L.client_attestation=Number(_.wy("CATSTAT",0))),h.productId==="5295751"&&(L.client_time=Date.now()/1E3/3600),h.productId==="5295751"&&(L.original_playback_id=_.peB||""),_.BY8(k,L),_.ip(x)}})};
Ttc=function(G){if(G=_.g(G,_.Zxu)){var b={bucket:G.bucketIdentifier};G.additionalDatas&&(b.customProductData={},G.additionalDatas.forEach(function(I){if(I=I.userFeedbackEndpointProductSpecificValueData)b.customProductData[I.key]=I.value}));
kw1(b)}};
Btf=function(G){var b=_.I1.getInstance();var I=_.qP("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var h=_.qP("DELETE",void 0,"Delete"),q=_.qP("CANCEL",void 0,"Cancel");I=Yhf(I,void 0,h,q,{signal:"DELETE_ALL_DOWNLOADS"});_.Yl(b,[{openPopupAction:I}],G)};
seY=function(){return _.c(function(G){return G.nextAddress==1?G.yield(_.LL().resolve(_.Xf),2):G.yield(Uwa(),0)})};
g4K=function(G){var b,I;return _.c(function(h){return h.nextAddress==1?(I=(b=_.g(G,_.$G))==null?void 0:b.targetId)?h.yield(_.LL().resolve(_.Xf),3):h.jumpTo(0):h.yield(_.LL().resolve(_.S9).deleteVideo(I),0)})};
ME1=function(G){var b,I;return _.c(function(h){return h.nextAddress==1?(I=(b=_.g(G,_.$G))==null?void 0:b.targetId)?h.yield(_.LL().resolve(_.Xf),3):h.jumpTo(0):h.yield(A88(_.LL().resolve(_.S9),I),0)})};
tEF=function(G){var b,I;return _.c(function(h){return(I=(b=_.g(G,_.$G))==null?void 0:b.targetId)?h.yield(Zf1(I),0):h.jumpTo(0)})};
o49=function(){_.U("kevlar_woffle_refresh_dl_load_killswitch")||zwe()};
P0D=function(){_.U("kevlar_woffle")&&_.Py.instance&&if5()};
y81=function(G){var b;if((b=_.g(G,_.qt))==null||!b.videoId)return!1;dwD(_.LL().resolve(_.S9),_.g(G,_.qt),G.clickTrackingParams);return!0};
FeF=function(G){var b;if((b=_.g(G,_.jK))==null||!b.playlistId)return!1;r8D(_.LL().resolve(_.S9),_.g(G,_.jK),G.clickTrackingParams);return!0};
WeY=function(G){var b=_.g(G,_.KUn);(b==null?void 0:b.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(b==null?void 0:b.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||HfF(_.LL().resolve(_.S9),_.g(G,_.KUn))};
Nte=function(G){G=_.g(G,_.UDb);var b;(G==null?0:(b=G.actions)==null?0:b.length)&&aIL(G)};
J8K=function(G){var b,I;return _.c(function(h){b=_.g(G,Yp1);return(I=b)!=null&&I.localWatchHistoryCommandType?h.yield(C0F(b),0):h.return()})};
Ke5=function(G){setTimeout(function(){requestAnimationFrame(G)},80)};
uiK=function(G){return Object.entries(G).map(function(b){return b.join(":")}).join(";")};
n4D=function(G){var b,I,h;_.c(function(q){if(q.nextAddress==1)return q.yield(Rwf(),2);b=q.yieldResult;I=_.Xv.instance;switch(b){case "granted":h=G.getLocationCommand;break;case "denied":h=G.openDeniedDialogAction;break;case "prompt":h=G.openCollectionDialogAction;break;default:h=G.openCollectionDialogAction}h&&I.resolveCommand(h);_.ip(q)})};
Rwf=function(){var G,b;return _.c(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&&(b=I.yieldResult,G=b.state);return I.return(G)})};
wmj=function(){_.c(function(G){return G.yield(_.OfD(),0)})};
E4a=function(){var G,b,I;return _.c(function(h){if(h.nextAddress==1)return G=_.LL().resolve(_.kn),G?h.yield(_.dR(G,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.RB(Error("Zl")),h.return(void 0));if(b=h.yieldResult){if(b.errorMetadata)return _.RB(Error("$l`"+b.errorMetadata.status+"`"+b.error)),h.return(void 0);I=b.datasyncIds;_.Iza=I.length;return h.return(I)}_.RB(Error("am"));return h.return(void 0)})};
pmW=function(){E4a().then(function(G){G&&(hca(G),sr3(G),nQ1(G),Pk5(G))})};
SpK=function(G){_.uu.addLowPriorityJob(function(){var b,I,h,q,l;return _.c(function(V){switch(V.nextAddress){case 1:if(_.U("ytidb_clear_optimizations_killswitch")){V.jumpTo(2);break}b=_.FU("clear");if(b.startsWith("V")&&b.endsWith("||")){var D=[b];hca(D);sr3(D);nQ1(D);Pk5(D);return V.return()}I=OGF();h=dKa();return V.yield(goW(),3);case 3:return q=V.yieldResult,V.yield(q0a(),4);case 4:if(l=V.yieldResult,!(I||h||q||l))return V.return();case 2:G.isNetworkAvailable()?pmW():G.listenOnce("publicytnetworkstatus-online",
pmW),_.ip(V)}})})};
kH=function(G){G={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.ao(G)}}}};_.Xv.instance&&_.Xv.instance.resolveCommand(G)};
XmD=function(G){if(G){var b=_.qo();_.oa(b,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=_.IM(b,{veType:I}))&&_.dS(b,G)}};
$L5=function(G){if(G){var b=_.qo();_.oa(b,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=_.IM(b,{veType:I}))&&_.dS(b,G)}};
GyD=function(G){switch(G.latencyType){case 0:_.US("consent_primitive_flow");_.sS("cpit",G.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.sS("cpist",G.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.sS("cprtif",G.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.sS("cprtli",G.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.sS("cprt",G.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.sS("cpdt",G.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.sS("cpjct",G.timestampEpochMillis,"consent_primitive_flow")}};
ky8=function(G,b){var I,h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u;return _.c(function(w){switch(w.nextAddress){case 1:_.gm(w,2);(h=(I=_.g(G,b4D))==null?void 0:I.serializedConsentRequest)||(h=(q=_.g(G,I$1))==null?void 0:q.serializedConsentRequest);h&&(l=hRK(_.Sv(h)));if(l===void 0)return w.return();V=qnc(l);V.latencyCallback=GyD;b&&jT9(V,function(){b.then(function($a){$a.pauseVideo();(new l$8).increment()})});
return((D=_.g(G,b4D))==null?void 0:D.consentAction)==="CONSENT_ACTION_PREWARM"||((k=_.g(G,I$1))==null?void 0:k.consentAction)==="CONSENT_ACTION_PREWARM"?w.yield(mL3(V),5):w.yield(eRL(V),6);case 6:L=w.yieldResult;x=_.kY(L,vt);if(x===1){if(((f=_.Zu(L,Vgf,1,vt))==null?void 0:_.gU(f,1))===1||((T=_.Zu(L,Vgf,1,vt))==null?void 0:_.gU(T,1))===2||((B=_.Zu(L,Vgf,1,vt))==null?void 0:_.gU(B,1))===3)_.g(G,I$1)?kH(_.qP("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
kH(_.qP("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));XmD((A=_.Zu(L,Vgf,1,vt))==null?void 0:_.gU(A,1),_.ku(L,DLa,3,_.vr()))}else x===2?(((t=cKe(L))==null?void 0:_.gU(t,1))===5?_.g(G,I$1)?kH(_.qP("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):kH(_.qP("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((y=cKe(L))==null?void 0:_.gU(y,1))===1||((F=cKe(L))==null?void 0:_.gU(F,1))===4?
kH(_.qP("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((W=cKe(L))==null?void 0:_.gU(W,1))===7&&((O=l)==null?void 0:(K=_.fi(O,Lr,4))==null?void 0:_.gU(K,4))!==1&&kH(_.qP("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),$L5((u=cKe(L))==null?void 0:_.gU(u,1))):kH(_.qP("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));w.jumpTo(5);break;case 5:_.hF(w,0);break;case 2:_.zf(w),kH(_.qP("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.ip(w)}})};
LXj=function(){if(!v19.has("Worker")){v19.set("Worker",!0);var G={api:"BROWSER_API_WEB_WORKER"};G.available="Worker"in window?!0:!1;_.C1("apiTest",G)}};
QTW=function(G){return typeof G==="undefined"?"-1":String(Math.ceil(G/1048576))};
BpD=function(G,b){xLD(new f$j(_.g(b,Tpa).addToken,_.g(b,Tpa).commonToken)).then(function(){_.O3(G,"yt-invoke-instrument-manager-action-completed")},function(I){_.O3(G,"yt-invoke-instrument-manager-action-error",I)})};
Q5=function(){return _.wy("HTML_DIR")==="rtl"};
UL3=function(){var G,b;return(b=(G=window).matchMedia)==null?void 0:b.call(G,"(prefers-reduced-motion: reduce)").matches};
sTa=function(G){var b=_.LL().resolve(_.vf(_.a8));if(b&&b.isAnyTransitionEnabled){var I={};b.viewTransitionCoordinator.registerElement(G,(I.slide="miniplayer-page-transition",I["lockup-to-watch"]="miniplayer-page-transition",I["learning-journey"]="miniplayer-page-transition",I))}};
g1Y=function(G,b,I){return{horizontalAlignment:G.x+I.width/2<b.width/2?"west":"east",verticalAlignment:G.y+I.height/2<b.height/2?"north":"south"}};
Mge=function(G,b,I,h,q){q=q===void 0?new _.ue(0,0):q;G=AKj(G,b,I,h,!1);return new _.ue(G.x+q.x,G.y+q.y)};
AKj=function(G,b,I,h,q){q=(q===void 0?0:q)?400:0;return new _.ue(G==="west"?16+(Q5()?q:0):I.width-h.width-16-(Q5()?0:q),b==="north"?16:I.height-h.height-16)};
Z4F=function(G,b){var I=0;G&&(I+=76);b&&(I+=285);return I};
tgW=function(G){return _.P8(G)};
zR3=function(G){var b=1;G=G.split(":");for(var I=[];b>0&&G.length;)I.push(G.shift()),b--;G.length&&I.push(G.join(":"));return I};
o1K=function(G){var b=new _.vZ;return _.tJ(b,11,G)};
i48=function(G){var b={};G=G.getAllResponseHeaders().split("\r\n");for(var I=0;I<G.length;I++)if(!_.Dr(G[I])){var h=zR3(G[I]),q=h[0];h=h[1];if(typeof h==="string"){h=h.trim();var l=b[q]||[];b[q]=l;l.push(h)}}return _.Cy.map(b,function(V){return V.join(", ")})};
UV=function(G,b){return G.JSC$9869_xhr_?G.JSC$9869_xhr_.getResponseHeader(b):null};
P1F=function(G,b){if(G.isDisposed())throw Error("Ea");G.zS.rn("n");var I=_.WZ(G.zS,function(){return G.r4X([b.fQ,b.rGV,b.e9a,b.cyC])},"n");
G.zS.mbp(I.length);G.zS.xN();return I};
dLc=function(G,b,I){Array.isArray(I)||(I=[String(I)]);_.AMn(G.JSC$10105_queryData_,b,I);return G};
if5=function(){var G=_.Py.instance;_.c(function(b){return G.deferredInstallPrompt?b.yield(G.deferredInstallPrompt.prompt(),0):b.jumpTo(0)})};
yK5=function(G,b,I){if(_.KO(G))_.hB(G,b,I);else for(G=_.rZJ(G);;){var h=G.next();if(h.done)break;b.call(I,h.value,void 0,G)}};
rKj=function(G,b){var I=[];yK5(b,function(h){try{var q=_.si.prototype.getWrapper.call(this,h,!0)}catch(l){if(l=="Storage: Invalid value was encountered")return;throw l;}q===void 0?I.push(h):_.yZJ(q)&&I.push(h)},G);
return I};
yN8=function(G,b){rKj(G,b).forEach(function(I){_.si.prototype.remove.call(this,I)},G)};
FX3=function(G){var b=_.GQ;b._minimumZ=Math.max(b._minimumZ,G)};
H4D=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];WXW=function(G,b){_.VQ(G.vm);G.vm=b};
a$f=function(G,b,I,h){G.setState(5);var q=!!G.cBs&&H4D.includes(_.VE(G.cBs)||"");try{var l=new _.aT({program:b,globalName:I,aKh:{disable:!_.U("att_web_record_metrics")||!_.U("att_skip_metrics_for_cookieless_domains_ks")&&q,y6:"aGIf"}});l.qhz.then(function(){G.setState(6);h&&h(b)});
WXW(G,l)}catch(V){G.setState(7),V instanceof Error&&_.RB(V)}};
NpK=function(G,b,I,h,q,l){var V=V===void 0?"trayride":V;I?(G.setState(2),_.iU(_.N2(I),function(){if(window[V])a$f(G,h,V,q);else{G.setState(3);var D=_.WlO(I),k=document.getElementById(D);k&&(_.gQj(D),k.parentNode.removeChild(k));_.RB(new _.Wf("BL:ULB",I))}},l)):b?(l=_.ol("SCRIPT"),b instanceof _.hj?_.lp(l,b):l.textContent=b,l.nonce=_.I$(document),document.head.appendChild(l),document.head.removeChild(l),window[V]?a$f(G,h,V,q):(G.setState(4),_.RB(new _.Wf("BL:ULBJ")))):_.RB(new _.Wf("BL:ULV"))};
Yne=function(){this.state=1;this.vm=null;this.cBs=void 0};
_.m=Yne.prototype;_.m.initialize=function(G,b,I,h){this.cBs=h;if(G.program){var q;h=(q=G.interpreterUrl)!=null?q:null;if(G.interpreterSafeScript)q=_.uAO(G.interpreterSafeScript);else{var l;q=(l=G.interpreterScript)!=null?l:null}G.interpreterSafeUrl&&(h=_.Rb(G.interpreterSafeUrl).toString());NpK(this,q,h,G.program,b,I)}else _.RB(Error("sf"))};
_.m.isInitialized=function(){return!!this.vm};
_.m.getState=function(){return this.state};
_.m.isLoading=function(){return this.state===2};
_.m.invoke=function(G){G=G===void 0?{}:G;var b;this.vm?b=P1F(this.vm,{fQ:G}):b=null;return b};
_.m.dispose=function(){WXW(this,null);this.setState(8)};
_.m.setState=function(G){this.state=G};
var C1L=function(G,b){return G.vm.snapshot(b)},JKK=function(G,b){var I=_.Te("botguard_async_snapshot_timeout_ms",3E3);
b=b===void 0?{}:b;I=I===void 0?3E3:I;return G.vm?new Promise(function(h,q){var l=!1,V=_.uu.addJob(function(){l=!0;q(Error("tf"))},1,I);
G.vm?C1L(G,{fQ:b}).then(function(D){_.uu.cancelJob(V);l||h(D)}).catch(function(D){_.uu.cancelJob(V);
l||q(D)}):(_.uu.cancelJob(V),h(null))}):Promise.resolve(null)},KXL=["att/log"],ipj;
ipj={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var u7D={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},RRj=function(G,b){return _.lm(G,{mode:"readwrite",enableRetries:!0},function(I){return _.USO(I,b,"settingEntity")})},n1L=function(G,b,I){return _.lm(G,{mode:"readonly",
enableRetries:!0},function(h){return _.PRA(h,b,I)})},O45=function(G){if(!G.storage)return!1;
a:{if(G.storage){try{var b=G.storage.get("TLPQtimestamp")}catch(I){}G=Number(b);if(!isNaN(G))break a}G=void 0}return G?Date.now()-G<864E5:!1},wZ5=function(G){if(G.storage){try{var b=G.storage.get("TLPQindex")}catch(I){}G=Number(b);
if(!isNaN(G))return G}},E1K=function(G,b){G.queueProxy&&b.forEach(function(I){if(I.videoId&&I.trackingParams&&G.queueProxy instanceof _.IC){var h=_.gL();
G.queueProxy.attributionData.set(I.videoId,{enqueueingVe:_.VB(I.trackingParams).getAsJson(),enqueueingCsn:h?h:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Li)()).toString()})}})},pZ1=function(G){var b=_.Lz8(G);
b!=G.currentSnapState_&&(G.currentSnapState_=b,G.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},xH=function(G){this.JSC$13291_networkManager_=G;
this.partCallbacks_=[]};
xH.prototype.getCacheKeyForEndpoint=function(G){return _.cEX(G,!1)};
xH.prototype.onPartsCallback_=function(G){this.partCallbacks_.forEach(function(b){G&&b(G)})};
var fr=function(G,b,I){xH.call(this,G);this.player_=b;this.autoplayData_=I};
_.M(fr,xH);fr.prototype.getCacheKeyForEndpoint=function(G){return _.cEX(G,!!this.autoplayData_)};
fr.prototype.getTempData=function(G,b){b=b.timeBeforeNextVideo;G={itct:G.clickTrackingParams,lact:_.vA(),pbis:b,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(G.autonav=1);return G};
fr.prototype.getXhrParams=function(G){return Object.assign({pbj:"prefetch"},G)};
fr.prototype.getParams=function(G){G={frags:G.fragmentsRequested.join(",")};_.U("kevlar_droppable_prefetchable_requests")&&(G.prefetch=1);return G};
var SnK=function(G){G.playerEvents_.forEach(function(b){G.player.removeEventListener(b.eventName,b.callback)});
G.playerEvents_.length=0},XZF=function(G,b,I){this.player=G;
this.JSC$13301_taskManager=b;this.prefetchDelay=I;this.completionResolver_=null;this.playerEvents_=[]};
XZF.prototype.start=function(){var G=this;this.completionResolver_=_.yO();_.i1(this.completionResolver_.promise,function(){SnK(G);G.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var $Rc=function(G,b,I){G.player.addEventListener(b,I);G.playerEvents_.push({eventName:b,callback:I})},GrY={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},bEY={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},Icc=function(G,b,I){XZF.call(this,G,b,I);this.cueId_="playbackTrigger-"+Math.random()};
_.M(Icc,XZF);
Icc.prototype.prepareTrigger=function(G){var b=this,I=this.player.getDuration(),h=this.player.getVideoData(),q=h.isLive&&h.hasProgressBarBoundaries;if(q&&h.progressBarEndPositionUtcTimeMillis){var l=h.progressBarEndPositionUtcTimeMillis/1E3;isNaN(l)||(I=l)}var V=0;this.prefetchDelay>=0?q?h.progressBarStartPositionUtcTimeMillis&&(h=h.progressBarStartPositionUtcTimeMillis/1E3,isNaN(h)||(V=h+this.prefetchDelay)):V=this.prefetchDelay:V=I+this.prefetchDelay;q?this.player.addUtcCueRange(this.cueId_,V,I):
this.player.addCueRange(this.cueId_,V,I);_.i1(G.promise,function(){b.player.removeCueRange(b.cueId_)});
$Rc(this,"onCueRangeEnter",function(D){D==b.cueId_&&G.resolve(I-V)})};
var hg9=function(G,b){G.fragmentConfiguration_[b].requiredKeys.every(function(I){return!!G.prefetchedData_[I]})&&(G.validatedFragments_.push(b),b=G.missingFragments_.indexOf(b),b!==-1&&G.missingFragments_.splice(b,1))},q$3=function(G){G.prefetchedFragments_.forEach(function(b){hg9(G,b)})},jve=function(G,b,I){this.pageFragments_=G;
this.prefetchedFragments_=b;this.fragmentConfiguration_=bEY;this.prefetchedData_=I;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;q$3(this)},lcj=function(){},mRj=function(G){this.JSC$13315_playlistManager_=G};
_.M(mRj,lcj);mRj.prototype.getPrefetchEndpoint=function(){return this.JSC$13315_playlistManager_.getAutoplayEndpoint()};
var egY=function(G){this.autonavEndpoints_=G};
_.M(egY,lcj);egY.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var VP8=function(G,b,I,h,q){this.autonavEndpoints=G;this.foregroundTrigger=b;this.backgroundTrigger=I;this.pageType=h;this.isInPlaylist=q},DRL=function(G,b){if(G.webPrefetchData&&G.webPrefetchData.navigationEndpoints&&G.webPrefetchData.navigationEndpoints.length){G=G.webPrefetchData.navigationEndpoints;
var I=_.g(G[0],_.Wq);if(I.watchEndpointSupportedPrefetchConfig&&I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var h=I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;I=h.playbackRelativeSecondsPrefetchCondition;I=typeof I==="number"&&Math.abs(I)<b.videoDuration?I:void 0;h=h.countdownUiRelativeSecondsPrefetchCondition;h=typeof h!=="number"||_.U("prefetch_job_config_cleanup_ks")&&b.inPlaylist?void 0:h;if(typeof h==="number")return new VP8(G,b.makeUpNextTrigger(h),b.makePlaybackTrigger(h),
"watch",b.inPlaylist);if(typeof I==="number")return new VP8(G,b.makePlaybackTrigger(I),null,"watch",b.inPlaylist)}}},c$D=function(G){return G.prefetchJobConfig_.backgroundTrigger?_.$W(_.rsj)()==0?G.prefetchJobConfig_.backgroundTrigger:G.prefetchJobConfig_.foregroundTrigger:G.prefetchJobConfig_.foregroundTrigger},krL=function(G){_.ML(document,"visibilitychange",G.onVisibilityChange_,!1,G)},To=function(G){xH.call(this,G)};
_.M(To,xH);To.prototype.getCacheKeyForEndpoint=function(G){return xH.prototype.getCacheKeyForEndpoint.call(this,G)};
To.prototype.getTempData=function(){return{}};
To.prototype.getXhrParams=function(G){return G};
To.prototype.getParams=function(){return{}};
var vmc=function(G,b,I){var h=G.prefetchDelay*1E3;if(Math.abs(h)>b)I.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var q=h,l=b-h;h<0&&(q=b+h,l=Math.abs(h));var V=G.JSC$13301_taskManager.addJob(function(){I.resolve(l/1E3)},10,q);
I.promise.thenCatch(function(){G.JSC$13301_taskManager.cancelJob(V)})}},LQ3=function(G,b,I){XZF.call(this,G,b,I)};
_.M(LQ3,XZF);LQ3.prototype.prepareTrigger=function(G){var b=this;$Rc(this,"onAutonavCoundownStarted",function(I){vmc(b,I,G)})};
var Qvc=function(G){G.pendingPrefetchJob_&&(G.pendingPrefetchJob_.cancel(),G.pendingPrefetchJob_=null)},xR9=function(G,b,I){if(!G.triggeredTargets.has(b)){var h=_.r7J(G,b);
h.action=I;_.dFi(G,b,h)}},fcD=function(G){_.AtW();
_.Obr("cpt")&&_.RB(Error("lh"));_.hd.requestAnimationFrame(function(){_.hd.setTimeout(function(){_.sS("cpt");var b=_.tZ("vpl"),I=_.tZ("cpt");b&&I&&_.sS("ol",Math.max(b,I))})});
try{_.sS("fr_s"),G()}catch(b){_.K1(b)}_.hd.requestAnimationFrame(function(){_.sS("bcp")})},TuY=function(G,b){G.serviceEndpointHandlers.push(b)},BuK=function(G,b){b=G.pendingPages_.indexOf(b);
b>-1&&G.pendingPages_.splice(b,1)},sv3=function(G,b){var I=_.S_X.indexOf(b);
I>-1&&_.S_X.splice(I,1);G.targetPage_==b?(G.abort(),_.$uJ(G)):BuK(G,b)},gm3=function(G,b,I,h){b={challenge:b};
I&&(b.webResponse=I);return _.qS(G.innertubeTransportService,b,_.JQ(KXL),h)},A$f=function(G,b,I){if(!b.challenge)throw Error("qi");
if(b.botguardData&&b.botguardData.program){var h=new Yne;h.initialize(b.botguardData,function(){JKK(h,{atr_challenge:b.challenge}).then(function(q){if(!q)throw Error("ri");return gm3(G,b.challenge,q,I)}).catch(function(q){_.RB(q);
return gm3(G,b.challenge,void 0,I)})},void 0)}else gm3(G,b.challenge,void 0,I)},MP1=function(G,b,I){var h={};
b.ids&&(h.ids=[].concat(_.Nz(b.ids)));b.engagementType&&(h.engagementType=b.engagementType);return _.qS(G.innertubeTransportService,h,_.JQ(_.w_W),I).then(function(q){if(!q)throw new _.Wf("GetAttestationChallenge returned falsy");A$f(G,q,I)}).thenCatch(function(q){_.K1(q)})},ZEY=function(G,b,I){return new _.MB(function(h,q){var l;
return _.c(function(V){if(V.nextAddress==1){var D=V.yield,k=b.engagementType,L=b.ids,x={};L=_.e(L!=null?L:[]);for(var f=L.next();!f.done;f=L.next())f=f.value,f.encryptedVideoId?x.encryptedVideoId=f.encryptedVideoId:f.externalChannelId?x.externalChannelId=f.externalChannelId:f.commentId?x.commentId=f.commentId:f.externalOwnerId?x.externalOwnerId=f.externalOwnerId:f.artistId?x.artistId=f.artistId:f.playlistId?x.playlistId=f.playlistId:f.externalPostId?x.externalPostId=f.externalPostId:f.shareId&&(x.shareId=
f.shareId);return D.call(V,N8L(k,x),2)}l=V.yieldResult;if(!l.challenge)return _.RB(Error("si")),MP1(G,b,I).then(h,q),V.return();D=l;k={challenge:D.challenge};k.webResponse=D.webResponse;k.engagementType=b.engagementType;k.ids=b.ids;_.qS(G.innertubeTransportService,k,_.JQ(KXL),I).then(h,q);_.ip(V)})})},$Cc=function(G,b){var I,h,q,l;
_.c(function(V){if(V.nextAddress==1){I=_.g(b,_.EjX);if(!(I&&I.listId&&G.response&&G.response.playingVideoId)||G.listId!==I.listId)return V.return();G.index===void 0&&(G.index=0);return V.yield(_.xdJ(G.JSC$13154_playlistNetworkManager,I.listId,G.index,G.response.playingVideoId),2)}h=V.yieldResult;if(!h)return V.return();q=h.playlistId;l=h.playlistPanelRenderer;G.setPlaylistData(q,l,h.autoplayRenderer);_.ip(V)})},tP8=function(G,b,I){var h=G.getParams(I),q=_.$tB(b,h),l=G.getTempData(b,I);
l.endpoint=JSON.stringify(b);_.U("enable_unknown_lact_fix_on_html5")&&(_.LL().resolve(_.VO),l.lact=_.vA());var V={headers:{"X-YouTube-STS":_.wy("STS"),"x-youtube-csoc":1}};_.Cv(q,l);return new _.MB(function(D,k){var L=G.getXhrParams(h),x;_.U("kevlar_cache_on_ttl_player")&&(x=_.LL().resolve(_.LW));x&&_.m2f(x,b)?_.vue(x,b,l,window.location.href).then(function(f){f?D(f):k()},k):_.OxA(G.JSC$13291_networkManager_,b,L,G.onPartsCallback_.bind(G),V).then(function(f){f?D(f):k()},k)})},zg3=function(G,b){G.triggerPromise_=
b.start();
G.triggerPromise_.then(function(I){var h=G.prefetchEndpointProvider_.getPrefetchEndpoint();if(h){var q=GrY[G.prefetchJobConfig_.pageType].prefetchedFragments;G.prefetchRequestPromise_=tP8(G.JSC$13327_networkPrefetchRequest_,h,{fragmentsRequested:q,timeBeforeNextVideo:I});G.prefetchResponseCacheKey_=G.JSC$13327_networkPrefetchRequest_.getCacheKeyForEndpoint(h);krL(G);G.prefetchRequestPromise_.then(function(l){G.storePrefetchedDataCallback_(G.prefetchResponseCacheKey_,l);if(_.U("web_prefetch_preload_video")&&
q.length===1&&q[0]==="pl"&&l&&!l.playerAds&&!l.adPlacements){var V=_.g(h,_.V4),D=V!=null,k={raw_player_response:l,watch_endpoint:V};(l=_.LL().resolve(D?_.XIX:_.wR))&&h&&l.then(function(L){D&&_.U("web_queue_preload_video")?(k.prefer_gapless=!0,L.queueNextVideo(k)):L.preloadVideoByPlayerVars(k)})}})}})},Bt=function(G,b,I,h){this.prefetchEndpointProvider_=G;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=b;this.prefetchJobConfig_=I;this.JSC$13327_networkPrefetchRequest_=h;this.prefetchResponseCacheKey_=null};
Bt.prototype.enqueue=function(){this.triggerPromise_||(zg3(this,c$D(this)),_.cv(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Bt.prototype.resolve=function(){this.cancel()};
Bt.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.");krL(this)};
Bt.prototype.onVisibilityChange_=function(){var G=this;_.$W(_.rsj)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){G.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||zg3(this,c$D(this))};
var ome=function(G,b,I,h,q){b&&(b==null?0:b.videoId)&&I&&I.entries&&_.U("kevlar_enable_shorts_prefetch_in_sequence")&&(Qvc(G),b=I.entries.map(function(l){var V;return(V=_.g(l.command,_.V4))==null?void 0:V.videoId}).indexOf(b.videoId),I=I.entries[b+1],I!=null&&I.command&&!_.g(I==null?void 0:I.command,_.X_)&&(h=new VP8([I.command],new Icc(h,_.uu,1),null,"shorts",!1),G.pendingPrefetchJob_=new Bt(new egY(h.autonavEndpoints),function(){return!1},h,new To(q)),G.pendingPrefetchJob_.enqueue()))},iE5=function(G,
b,I,h,q,l){var V=_.TW.getInstance();
if(!_.U("block_all_player_prefetch_requests")){Qvc(G);var D=!!I.getPlaylistId(),k=I.getVideoData().isLive&&I.getVideoData().hasProgressBarBoundaries;if((V.getState()==2||D||k)&&(!I.getVideoData().isLive||k)){V={inPlaylist:D,videoDuration:I.getDuration(),makeUpNextTrigger:function(x){return new LQ3(I,_.uu,x)},
makePlaybackTrigger:function(x){return new Icc(I,_.uu,x)}};
var L=DRL(b,V);L&&(G.pendingPrefetchJob_=new Bt(L.isInPlaylist?new mRj(q):new egY(L.autonavEndpoints),function(x,f){f=new jve(GrY[L.pageType].pageFragments,GrY[L.pageType].prefetchedFragments,f);return _.ghX(f)?(G.prefetchCache_.set(x,f),!0):!1},L,new fr(h,I,l,q)),G.pendingPrefetchJob_.enqueue())}}},PWY=function(){var G=_.Dg();
G.signals.parkOrScheduleJob(function(){var b=G.storage;if(b.storage)if(O45(b)){var I=b.getPlaylistId();b=wZ5(b);I=!!I&&b!==void 0}else b.clear(),I=!1;else I=!1;if(I){I=G.JSC$13154_pageManager.isOnWatch();a:{var h=G.storage;if(h.storage&&O45(h)&&(b=h.getPlaylistId(),h=wZ5(h),b&&h!==void 0)){I={recoverPlaylistCommand:{listId:b,index:h,openMiniplayer:!I,openListPanel:I,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}I=void 0}I&&_.Yl(G.JSC$13154_actionRouter,[I],null)}},0,"ma")},dRK=function(G,b,I,
h,q,l){var V=_.Xs(7111);
_.iz(G.JSC$18662_screenManager,V,l?_.VB(l):void 0);_.dS(G.JSC$18662_screenManager,V,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:h,offlineId:b,offlineabilityFormatType:I,isDefaultFormatType:q==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:q}})},y$K=function(G,b,I,h,q){var l,V,D,k,L;
return _.c(function(x){if(x.nextAddress==1)return x.yield(G.JSC$18662_playerApiPromise,2);l=x.yieldResult;dRK(G,b,I,"OFFLINE_OBJECT_TYPE_PLAYLIST",h,q);if(D=_.avX[G.entityTypeMap.listEntityType])L={},V=(L[D]={maximumDownloadQuality:(k=I)!=null?k:void 0},L);return x.yield(l.queueOfflineAction(b,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",V),0)})},r$F=function(G,b){var I,h,q,l;
return _.c(function(V){if(V.nextAddress==1)return V.yield(G.JSC$18662_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3){I=V.yieldResult;if(!I)return _.RB(new _.Wf("PES is undefined")),V.return();h=_.$S(b,"downloadStatusEntity");return V.yield(n1L(I,h,"downloadStatusEntity"),3)}q=V.yieldResult;return V.return((l=q)==null?void 0:l.downloadState)})},FQa=function(G,b,I,h,q){var l,V,D,k,L,x;
return _.c(function(f){switch(f.nextAddress){case 1:return f.yield(G.JSC$18662_playerApiPromise,2);case 2:l=f.yieldResult;dRK(G,b,I,"OFFLINE_OBJECT_TYPE_VIDEO",h,q);if(D=_.avX[G.entityTypeMap.singleEntityType])L={},V=(L[D]={maximumDownloadQuality:(k=I)!=null?k:void 0},L);return f.yield(r$F(G,b),3);case 3:x=f.yieldResult;if(x!=="DOWNLOAD_STATE_USER_DELETED"){f.jumpTo(4);break}return f.yield(G.deleteVideo(b),4);case 4:return f.yield(l.queueOfflineAction(b,G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
V),0)}})},HEK=function(G,b,I,h,q){return _.c(function(l){return l.nextAddress==1?l.yield(G.deleteVideo(b,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):l.yield(FQa(G,b,I,h,q),0)})},WQY=function(G,b,I){var h,q;
return _.c(function(l){if(l.nextAddress==1)return l.yield(G.JSC$18662_playerApiPromise,2);h=l.yieldResult;q=_.$S(b,"mainVideoDownloadStateEntity");return l.yield(h.updateDownloadState(q,I),0)})},Zf1=function(G){var b=_.LL().resolve(_.S9);
return _.c(function(I){if(I.nextAddress==1)return b.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&b.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?I.jumpTo(2):I.yield(b.resumeVideoDownload(G),2);if(I.nextAddress!=4)return I.yield(WQY(b,G,b.previousDownloadStateForVideo[G]),4);delete b.previousDownloadStateForVideo[G];_.ip(I)})},A88=function(G,b){var I;
return _.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$18662_playerApiPromise,2);I=h.yieldResult;return h.yield(I.queueOfflineAction(b,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},Uwa=function(){var G=_.LL().resolve(_.S9),b,I;
return _.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$18662_playerApiPromise,2);if(h.nextAddress!=3)return b=h.yieldResult,I={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},h.yield(b.queueOfflineAction("!*$_ALL_ENTITIES_!*$",G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",I),3);var q=G.JSC$18662_commandHandler,l=q.resolveCommand,V=_.qP("DELETING_ALL",void 0,"Downloads are being deleted");l.call(q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.RW(V)}},
popupType:"TOAST"}});_.ip(h)})},ac5=function(G,b){var I,h,q,l,V,D;
return _.c(function(k){if(k.nextAddress==1)return k.yield(G.JSC$18662_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3)return I=k.yieldResult,I?k.yield(n1L(I,_.xS,"downloadsPageViewConfigurationEntity"),3):(_.RB(new _.Wf("PES is undefined")),k.return());q=(h=k.yieldResult)!=null?h:{};D=(V=(l=q)==null?void 0:l.downloadsUpsellBannerVisibility)!=null?V:{};return D.visibleWithConnection?k.yield(b.refreshAllStaleEntities(0),0):k.jumpTo(0)})},Nu5=function(G){var b,I;
return _.c(function(h){if(h.nextAddress==1)return h.yield(G.JSC$18662_prefStorage,2);b=h.yieldResult;return h.return((I=b)==null?void 0:I.get("sdois"))})},Y$5=function(G){var b,I,h,q,l,V;
return _.c(function(D){if(D.nextAddress==1)return D.yield(G.JSC$18662_persistentStorePromiseAccessor(),2);if(D.nextAddress!=3){b=D.yieldResult;if(!b)return _.RB(new _.Wf("PES is undefined")),D.return();I=_.$S("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return D.yield(n1L(b,I,"settingEntity"),3)}h=D.yieldResult;return D.return((V=(q=h)==null?void 0:(l=q.settingOptionValue)==null?void 0:l.boolValue)!=null?V:!1)})},CWc=function(G,b){var I,h,q,l;
return _.c(function(V){switch(V.nextAddress){case 1:return((I=b)==null?void 0:I.formatType)===void 0?V.return():V.yield(G.JSC$18662_prefStorage,2);case 2:h=V.yieldResult;if(h===void 0)return V.return();if(((q=b)==null?void 0:q.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return V.yield(h.set("lmqf",b.formatType),8);if(((l=b)==null?void 0:l.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){V.jumpTo(0);break}return V.yield(h.set("lmqf",b.formatType),6);case 6:return V.yield(h.set("lmqflst",
Math.floor((0,_.Li)())),0);case 8:return V.yield(h.remove("lmqflst"),0)}})},J$8=function(G){var b,I;
return _.c(function(h){switch(h.nextAddress){case 1:return h.yield(G.JSC$18662_prefStorage,2);case 2:b=h.yieldResult;if(!b){h.jumpTo(3);break}return h.yield(b.get("lmqflst"),4);case 4:if(I=h.yieldResult,I!==void 0)return h.return(I);case 3:return h.return(0)}})},KQ3=function(G){var b,I;
return _.c(function(h){switch(h.nextAddress){case 1:return h.yield(G.JSC$18662_prefStorage,2);case 2:b=h.yieldResult;if(b===void 0){h.jumpTo(3);break}return h.yield(b.get("lmqf"),4);case 4:if(I=h.yieldResult,I!==void 0)return h.return(I);case 3:return h.return("SD")}})},r8D=function(G,b,I){var h,q,l,V,D,k,L,x;
_.c(function(f){switch(f.nextAddress){case 1:return f.yield(CWc(G,(h=b)==null?void 0:h.actionParams),2);case 2:q=b.playlistId;if(!q)return f.return();if(b.action==="ACTION_ADD")return((V=b.actionParams)==null?0:V.formatType)?f.yield(y$K(G,q,b.actionParams.formatType,(x=b.actionParams)==null?void 0:x.settingsAction,I),0):f.yield(G.offlineWebClientEligibility,14);if(b.action==="ACTION_REMOVE_WITH_PROMPT"){var T=G.JSC$18662_commandHandler,B=T.resolveCommand,A=_.wy("INNERTUBE_CLIENT_NAME");var t=A===
"WEB_REMIX"?_.qP("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.qP("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var y=A==="WEB_REMIX"?[_.qP("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];A=A==="WEB_REMIX"?_.qP("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.qP("DELETE",void 0,"Delete");var F=_.qP("CANCEL",void 0,"Cancel");t=Yhf(t,y,A,F,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:q});B.call(T,{openPopupAction:t});return f.return()}if(b.action===
"ACTION_REMOVE")return f.yield(A88(G,q),0);if(b.action!=="ACTION_SYNC"){f.jumpTo(0);break}return f.yield(G.JSC$18662_playerApiPromise,9);case 9:return l=f.yieldResult,f.yield(l.queueOfflineAction(q,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return D=f.yieldResult,f.yield(KQ3(G),15);case 15:return k=f.yieldResult,f.yield(J$8(G),16);case 16:L=f.yieldResult,b.onAddCommand&&G.JSC$18662_commandHandler.resolveCommand(b.onAddCommand,{form:{preferredFormatType:k,
offlineWebClientEligibility:D,lastOfflineQualitySettingsSavedMs:L.toString()}}),f.jumpTo(0)}})},dwD=function(G,b,I){var h,q,l,V,D,k,L,x,f,T,B,A,t,y,F,W,O,K,u;
_.c(function(w){switch(w.nextAddress){case 1:return w.yield(CWc(G,(h=b)==null?void 0:h.actionParams),2);case 2:q=b.videoId;if(!q)return w.return();if(b.action==="ACTION_REMOVE_WITH_PROMPT"){var $a=G.JSC$18662_commandHandler,ev=$a.resolveCommand,LO=_.wy("INNERTUBE_CLIENT_NAME");var td=LO==="WEB_REMIX"?_.qP("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.qP("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var xa=LO==="WEB_REMIX"?[_.qP("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];LO=LO==="WEB_REMIX"?_.qP("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.qP("DELETE",void 0,"Delete");var Uj=_.qP("CANCEL",void 0,"Cancel");td=Yhf(td,xa,LO,Uj,{signal:"DELETE_DOWNLOAD",targetId:q});ev.call($a,{openPopupAction:td});return w.return()}if(b.action==="ACTION_ADD")return((F=b.actionParams)==null?0:F.formatType)?w.yield(FQa(G,q,b.actionParams.formatType,(u=b.actionParams)==null?void 0:u.settingsAction,I),0):w.yield(G.offlineWebClientEligibility,
27);if(b.action==="ACTION_RETRY")return w.yield(KQ3(G),23);if(b.action==="ACTION_PAUSE")return w.yield(G.pauseVideoDownload(q),0);if(b.action==="ACTION_RESUME")return w.yield(G.resumeVideoDownload(q),0);if(b.action==="ACTION_REMOVE")return w.yield(r$F(G,q),17);if(!_.U("kevlar_enable_download_to_mobile")){w.jumpTo(0);break}l=_.g(b.onAddCommand,_.ar);D=(V=l)==null?void 0:V.isCrossDeviceDownload;if(!b.onAddCommand||!D){w.jumpTo(0);break}k="HD";return w.yield(J$8(G),16);case 16:L=w.yieldResult;G.JSC$18662_commandHandler.resolveCommand(b.onAddCommand,
{form:{preferredFormatType:k,lastOfflineQualitySettingsSavedMs:L.toString()}});w.jumpTo(0);break;case 17:return x=w.yieldResult,G.previousDownloadStateForVideo[q]=(f=x)!=null?f:"DOWNLOAD_STATE_UNKNOWN",w.yield(WQY(G,q,"DOWNLOAD_STATE_USER_DELETED"),18);case 18:if(G.previousDownloadStateForVideo[q]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&G.previousDownloadStateForVideo[q]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){w.jumpTo(19);break}return w.yield(G.pauseVideoDownload(q),19);case 19:$a=_.qP("DELETED_VIDEO",
void 0,"Video deleted from downloads.");ev=_.qP("UNDO_ACTION",void 0,"Undo");td=_.qP("CLOSE",void 0,"Close");T={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.RW($a),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.RW(ev),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",targetId:q}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:$a+
" "+ev}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:q}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:td}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};G.JSC$18662_commandHandler.resolveCommand(T);w.jumpTo(0);break;case 23:B=w.yieldResult;B==="UNKNOWN_FORMAT_TYPE"&&(B="SD");A="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";
if((t=b.actionParams)==null?0:t.formatType)B=b.actionParams.formatType,A=(y=b.actionParams)==null?void 0:y.settingsAction;return w.yield(HEK(G,q,B,A,I),24);case 24:return w.return();case 27:return W=w.yieldResult,w.yield(KQ3(G),28);case 28:return O=w.yieldResult,w.yield(J$8(G),29);case 29:K=w.yieldResult,b.onAddCommand&&G.JSC$18662_commandHandler.resolveCommand(b.onAddCommand,{form:{preferredFormatType:O,offlineWebClientEligibility:W,lastOfflineQualitySettingsSavedMs:K.toString()}}),w.jumpTo(0)}})},
u4a=function(G,b){var I,h,q,l,V,D,k;
return _.c(function(L){if(L.nextAddress==1)return L.yield(G.JSC$18662_persistentStorePromiseAccessor(),2);I=L.yieldResult;if(!I)return _.RB(new _.Wf("PES is undefined")),L.return();if((h=b)==null||!h.settingItemId)return L.return();q=b;l=q.settingItemId;V=q.boolValue;D=_.$S(l,"settingEntity");k={key:D,settingOptionValue:{boolValue:V}};return L.yield(RRj(I,k),0)})},Rg8=function(G,b){var I,h,q,l,V,D,k;
return _.c(function(L){switch(L.nextAddress){case 1:return L.yield(G.JSC$18662_prefStorage,2);case 2:return I=L.yieldResult,h=_.m$(),L.yield(G.JSC$18662_persistentStorePromiseAccessor(),3);case 3:return q=L.yieldResult,I?q?L.yield(I.get("sdois"),4):(_.RB(new _.Wf("PES is undefined")),L.return()):(_.RB(new _.Wf("prefStorage is undefined")),L.return());case 4:l=L.yieldResult;D=(V=b)==null?void 0:V.boolValue;D===void 0||_.U("kevlar_set_sd_enabled_flag_killswitch")||_.eX(0,197,!0);l===void 0&&D===void 0&&
(D=!1);if(D===void 0){L.jumpTo(0);break}return L.yield(I.set("sdois",D),6);case 6:return _.U("kevlar_set_sd_enabled_flag_killswitch")||(_.eX(0,196,D),h.save()),k={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:D},L.yield(u4a(G,k),0)}})},nmW=function(G,b,I){var h,q,l,V,D;
return _.c(function(k){switch(k.nextAddress){case 1:return k.yield(Nu5(G),2);case 2:return h=k.yieldResult,k.yield(Rg8(G,I),3);case 3:return k.yield(Nu5(G),4);case 4:return q=k.yieldResult,l=q!==h,k.yield(Y$5(G),5);case 5:V=k.yieldResult&&!_.U("kevlar_modern_downloads_page");if((D=!q&&!V)||l)return k.yield(b.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);k.jumpTo(0)}})},zwe=function(){var G=_.LL().resolve(_.S9),
b;
_.c(function(I){switch(I.nextAddress){case 1:return I.yield(G.JSC$18662_playerApiPromise,2);case 2:b=I.yieldResult;if(!_.U("kevlar_force_refresh_smart_downloads")){I.jumpTo(3);break}return I.yield(b.refreshAllStaleEntities(0),4);case 4:return I.return();case 3:return I.yield(b.refreshAllStaleEntities(),5);case 5:return I.yield(nmW(G,b),6);case 6:if(_.U("enable_download_pep_for_premium_countries_web"))return I.yield(ac5(G,b),0);I.jumpTo(0)}})},HfF=function(G,b){var I,h;
_.c(function(q){switch(q.nextAddress){case 1:return q.yield(G.JSC$18662_playerApiPromise,2);case 2:I=q.yieldResult;switch((h=b)==null?void 0:h.settingItemId){case "SMART_DOWNLOADS_ENABLED":return q.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return q.jumpTo(4)}q.jumpTo(0);break;case 3:return q.yield(nmW(G,I,b),6);case 6:q.jumpTo(0);break;case 4:return q.yield(u4a(G,b),7);case 7:q.jumpTo(0)}})},OEj=function(G,b){var I,h,q;
return _.c(function(l){if(l.nextAddress==1)return l.yield(G.JSC$18662_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3){I=l.yieldResult;if(!I)return _.RB(new _.Wf("PES is undefined")),l.return(!1);if(!b)return l.return(!1);h=_.$S(b,"mainVideoEntity");return l.yield(n1L(I,h,"mainVideoEntity"),3)}q=l.yieldResult;return l.return(q!==void 0)})},aIL=function(G){var b=_.LL().resolve(_.S9),I,h,q,l,V,D,k,L,x,f,T;
_.c(function(B){switch(B.nextAddress){case 1:return B.yield(b.JSC$18662_playerApiPromise,2);case 2:I=B.yieldResult;q=(h=G)==null?void 0:h.actions;if(!q)return B.return();l=_.e(q);V=l.next();case 3:if(V.done){B.jumpTo(0);break}D=V.value;L=k=void 0;if(!(((k=D)==null?0:k.entityKey)&&((L=D)==null?0:L.actionType))){B.jumpTo(4);break}x=_.pU(D.entityKey);f=x.entityId;T=x.entityType;return B.yield(I.queueOfflineAction(f,T,D.actionType),4);case 4:V=l.next(),B.jumpTo(3)}})},w0a=function(G,b){var I,h,q,l,V;
return _.c(function(D){if(D.nextAddress==1)return D.yield(G.JSC$18662_prefStorage,2);if(D.nextAddress!=3)return(I=D.yieldResult)?D.yield(I.get("psi"),3):D.return();h=D.yieldResult;V={isPaused:b,lastSyncTimestamp:(l=(q=h)==null?void 0:q.lastSyncTimestamp)!=null?l:"0"};return D.yield(I.set("psi",V),0)})},C0F=function(G){var b=_.LL().resolve(_.S9),I,h,q,l,V,D,k,L;
return _.c(function(x){switch(x.nextAddress){case 1:return x.yield(b.JSC$18662_playerApiPromise,2);case 2:I=x.yieldResult;q=((h=G)==null?void 0:h.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((D=G)==null?void 0:D.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":l="!*$_ALL_ENTITIES_!*$";V="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return x.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return x.jumpTo(4)}x.jumpTo(5);break;case 3:return x.yield(w0a(b,q),6);case 6:x.jumpTo(5);break;case 4:return x.yield(OEj(b,(k=G)==null?void 0:k.videoId),7);case 7:x.yieldResult&&(l=(L=G)==null?void 0:L.videoId,V="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");x.jumpTo(5);break;case 5:if(l&&V)return x.yield(I.queueOfflineAction(l,"videoPlaybackPositionEntity",V),0);x.jumpTo(0)}})},EmF=function(G,b){var I;
b!==1||((I=G.currentPersistentToast)==null?0:I.isOpened())?G.openToast():G.currentPersistentToast=void 0},p0a=function(G,b){var I;
return(I=G.transitionTasksMap.get(b))!=null?I:[]},S$W=function(G,b){var I=[];
G.elementTasksMap.forEach(function(h){(h=h.get(b))&&I.push(h)});
return I},X0D=function(G,b,I,h,q){q=q===void 0?{}:q;
var l=b.defaultViewTransitionOptions;return Object.assign({},l,q,{beforeTransition:function(){h.forEach(function(L){L.beforeTransition()});
var V;(V=l.beforeTransition)==null||V.call(l);var D,k;(k=(D=q).beforeTransition)==null||k.call(D);I.forEach(function(L){L.beforeTransition()})},
afterTransition:function(){h.forEach(function(L){L.afterTransition()});
var V;(V=l.afterTransition)==null||V.call(l);var D,k;(k=(D=q).afterTransition)==null||k.call(D);I.forEach(function(L){L.afterTransition()})},
ignoredErrors:G.config.ignoredErrors})},$3F=function(G,b,I){G.transitionTasksMap.has(b)?G.transitionTasksMap.get(b).push(I):(G=new _.Wf("Transition task registered for unknown transition type",b),_.K1(G))},Gkf=function(G,b,I){if(G.transitionTasksMap.has(b)){var h=G.transitionTasksMap.get(b).filter(function(q){return q!==I});
G.transitionTasksMap.set(b,h)}},b6L=function(G,b){var I=p0a(G,b);
I=_.e(I);for(var h=I.next();!h.done;h=I.next())h=h.value,h.runOnce&&Gkf(G,b,h);G.elementTasksMap.forEach(function(q,l){q.forEach(function(V,D){V.runOnce&&b===D&&(q.delete(D),q.size===0&&G.elementTasksMap.delete(l))})})},IDW=function(G,b,I){var h,q,l,V,D,k,L,x,f;
_.c(function(T){if(T.nextAddress==1){if(G.config.disableAllTransitions)return T.return(b());if((h=I)==null||!h.transitionType)return T.return(_.Fue(b,Object.assign({},(q=I)==null?void 0:q.viewTransitionOptions,{ignoredErrors:G.config.ignoredErrors})));l=I;V=l.transitionType;D=l.viewTransitionOptions;k=G.config.transitionConfigs.get(V);if(!k)return T.return(b());L=p0a(G,V);x=S$W(G,V);f=_.Fue(b,X0D(G,k,L,x,D));return T.yield(f,2)}b6L(G,V);_.ip(T)})},hlc=function(){var G,b,I,h;
return _.c(function(q){if(q.nextAddress==1)return G=navigator,(b=G.storage)!=null&&b.persisted?q.yield((I=G.storage)==null?void 0:I.persisted(),2):q.return("PERSISTED_STATE_NOT_SUPPORTED");h=q.yieldResult;return q.return(h?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},qa8=function(){var G,b,I,h;
return _.c(function(q){if(q.nextAddress==1)return G=navigator,(b=G.storage)!=null&&b.persist?q.yield((I=G.storage)==null?void 0:I.persist(),2):q.return("PERSISTED_STATE_NOT_SUPPORTED");h=q.yieldResult;return q.return(h?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},jwK=function(){var G,b;
return _.c(function(I){switch(I.nextAddress){case 1:return G="PERSISTED_STATE_NOT_SUPPORTED",_.gm(I,2),I.yield(hlc(),4);case 4:G=I.yieldResult;if(G!=="PERSISTED_STATE_NOT_GRANTED"){I.jumpTo(5);break}return I.yield(qa8(),6);case 6:G=I.yieldResult;case 5:_.hF(I,3);break;case 2:b=_.zf(I),b instanceof Error&&_.K1(b);case 3:return _.C1("persistentStorageStateChecked",{persistedState:G}),I.return(G)}})},lDF=function(G,b){var I=[],h=!1;
b=_.e(b);for(var q=b.next();!q.done;q=b.next()){q=G.moduleRegistry[q.value];var l=void 0,V=void 0;((l=q)==null?0:l.isFetching)&&((V=q)==null?0:V.resolver)?(I.push(q.resolver.promise),h=!0):(q=new _.G9,q.resolve(void 0),I.push(q.promise))}return h?Promise.all(I):void 0},m31=function(G,b,I){if(G.isAnyTransitionEnabled){var h={beforeTransition:function(){I(!0);
b.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){b.style.viewTransitionName&&(b.style.viewTransitionName="",I(!1))}};
$3F(G.viewTransitionCoordinator,"slide",h);$3F(G.viewTransitionCoordinator,"lockup-to-watch",h);$3F(G.viewTransitionCoordinator,"watch-next-appears",h);$3F(G.viewTransitionCoordinator,"learning-journey",h)}},elK=function(G,b){G.isBrowseTransitionEnabled?IDW(G.viewTransitionCoordinator,b,{transitionType:"slide"}):(b(),Promise.resolve())},V08=function(G,b){G.isLockupToWatchTransitionEnabled?IDW(G.viewTransitionCoordinator,b,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){G.registeredLockupThumbnail=void 0;G.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(b(),Promise.resolve())},D3Y=function(G,b){G.isLockupToWatchTransitionEnabled?IDW(G.viewTransitionCoordinator,b,{transitionType:"watch-next-appears"}):(b(),Promise.resolve())},cuF=function(G,b){G.isLearningJourneyTransitionEnabled?IDW(G.viewTransitionCoordinator,b,{transitionType:"learning-journey"}):(b(),Promise.resolve())},kk1=function(G,b,I){if(G.isInitialized()){var h=
e4(I),q=h==="watch";
h=h==="shorts";var l=e4(b)==="watch";if(q)l||(G.backgroundPageData=b),G.watchPipMode&&l||G.deactivate(I.endpoint);else if(h){if(e4(b)!=="shorts"){var V;(V=G.getPlayerElement())==null||V.pause()}}else l&&!G.watchPipMode&&(CHW(b,I,!0)?(G.watchWhileMode&&_.UBa(G,!1),_.LGY(G,b)):G.isMiniplayerActive()&&G.watchWhileMode&&G.deactivate());l&&_.g2K(G);G.shortsPipMode&&!h&&(window.focus(),G.deactivate());if(G.pictureInPictureEnabled())if(h&&G.shortsPipEnabled||q&&G.watchPipEnabled)_.oLO(G.handleMediaSessionPipActivation);
else if(!G.isMiniplayerActive()&&(G.shortsPipEnabled||G.watchPipEnabled)&&window.documentPictureInPicture&&_.zq()&&_.sOB("Chromium")>=120){G=_.z0r().mediaSession;try{G.setActionHandler("enterpictureinpicture",null)}catch(D){}}}},vlj=function(G,b){var I,h;
_.c(function(q){if(q.nextAddress==1){if(!G||!G.navigationEndpoint)return q.return();_.Ws().lockupActivation=!0;var l;b?l=_.ao(_.qP("QUEUE",void 0,"Queue")):l=G.longBylineText;h=(I=l)&&G.title?{miniplayerTitle:G.title,miniplayerSubtitle:I,playlistData:null}:void 0;return q.yield(_.p7b(_.LL().resolve(_.zO),G.navigationEndpoint,!0,h),2)}_.Ws().userActivation=!0;_.ip(q)})},pPK=function(G,b){var I,h,q,l,V,D;
_.c(function(k){if(k.nextAddress==1){I=_.g(b,_.wnb);if(!I||!I.listId)return k.return();G.index=I.index||G.index||0;h=G.response&&G.response.playingVideoId||void 0;return k.yield(_.xdJ(G.JSC$13154_playlistNetworkManager,I.listId,G.index,h),2)}q=k.yieldResult;if(!q)return k.return();l=q.playlistId;V=q.playlistPanelRenderer;!G.queueProxy&&l&&V&&l.startsWith("TLPQ")&&(G.queueProxy=new _.IC(G.JSC$13154_playlistNetworkManager,l,G.setPlaylistData.bind(G),G.clearQueue.bind(G),_.bqv(V),G.storage));if(I.openMiniplayer&&
(D=_.IsX(V))&&!G.JSC$13154_pageManager.isOnWatch()){var L=D,x=I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";G.isMiniplayerActive()?G.openToast(L):vlj(L,x)}G.setPlaylistData(l,V,q.autoplayRenderer);_.ip(k)})},OWD=function(G,b){var I=_.Dg();
I.index===void 0&&(I.index=0);I.temporaryItems.push.apply(I.temporaryItems,_.Nz(G));if((b.videoId||b.videoIds)&&I.index!==void 0&&b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!I.queueProxy){var h=[];if(I.response){var q=_.LL().resolve(_.zO).isMiniplayerActive();if(I.response.playlistPanelRenderer&&I.response.playlistId&&!I.response.playlistId.startsWith("TLPQ")){if(I.JSC$13154_pageManager.isOnWatch()||q)h=_.bqv(I.response.playlistPanelRenderer)}else I.response.playingVideoId&&!b.openMiniplayer?
h.push(I.response.playingVideoId):q&&I.response.playingVideoId&&b.openMiniplayer&&h.push(I.response.playingVideoId)}I.queueProxy=new _.IC(I.JSC$13154_playlistNetworkManager,"",I.setPlaylistData.bind(I),I.clearQueue.bind(I),h,I.storage);I.queueProxy.JSC$13100_setCurrentIndex(I.index)}I.queueProxy.addVideos(b.videoIds||[b.videoId],b)}E1K(I,G);I.response&&_.cQ(I,_.kq(I,I.response.autoplayRenderer));I.JSC$13154_pageManager.isOnWatch()?I.isMiniplayerActive()&&I.openToast(G[0]):(G=G[0],b=b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
I.isMiniplayerActive()?I.openToast(G):vlj(G,b))},LM1=function(G){var b=_.$3(G);
if(b=="object"||b=="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);b=b=="array"?[]:{};for(var I in G)b[I]=LM1(G[I]);return b}return G},Ut=function(G,b){return _.feq(_.mI(G,b,void 0,_.l3))},st=function(G,b){return _.VK(_.mI(G,b,void 0,_.l3))},gA=function(G,b){return _.HQj(_.mI(G,b,void 0,_.l3))},A0=function(G,b){return _.mI(G,b,void 0,_.l3,_.SB)},Qwf=_.cg(function(G,
b,I,h){if(G.nextWireType_!==0)return!1;
_.c8(b,I,h,_.i3(G.decoder_,_.QnO));return!0},_.xI,_.H8),x3a=_.cg(function(G,b,I){if(G.nextWireType_!==1)return!1;
var h=G.decoder_;G=_.dU(h);h=_.dU(h);G=_.KQ(G,h);_.kI(b,I,G);return!0},_.HAO,_.DfO),fD1=_.cg(function(G,b,I){if(G.nextWireType_!==2)return!1;
G=_.wXW(G);_.kI(b,I,G===_.dz()?void 0:G);return!0},_.Clr,_.v35),TYc=_.to2(function(G,b,I){if(G.nextWireType_!==0&&G.nextWireType_!==2)return!1;
b=_.II(b,b[_.q8]|0,I);G.nextWireType_==2?_.Ebb(G,tgW,b):b.push(_.P8(G.decoder_));return!0},function(G,b,I){b=_.ZAO(_.VK,b,!0);
if(b!=null&&b.length){I=_.bDn(G,I);for(var h=0;h<b.length;h++)_.yzq(G.encoder_,b[h]);_.IY5(G,I)}},_.L9n),BYf=_.cg(function(G,b,I,h){if(G.nextWireType_!==0)return!1;
_.c8(b,I,h,_.P8(G.decoder_));return!0},_.Kha,_.L9n),U3D=function(G){return G.previousElementSibling!==void 0?G.previousElementSibling:_.ZyO(G.previousSibling,!1)},swf=function(G,b){var I=[];
for(b=b||0;b<G.length;b+=2)_.LF8(G[b],G[b+1],I);return I.join("&")},glW=function(G,b){var I=arguments.length==2?swf(arguments[1],0):swf(arguments,1);
return _.vuW(G,I)},LAL=_.Az(_.U4),Au9=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Au9,_.eo);Au9.prototype.getTypeName=function(){return _.U5(this,1).split("/").pop()};
Au9.prototype.getValue=function(){var G=_.mI(this,2);if(Array.isArray(G)||G instanceof _.eo)throw Error("W");return _.Du(this,2)};
var IAW=function(){var G=_.pw();this.JSC$9990_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.fT("channel_type"))};
IAW.prototype.increment=function(G){this.JSC$9990_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",G)};
var hQF=function(){var G=_.pw();this.JSC$9993_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.fT("channel_type"))};
hQF.prototype.increment=function(G){this.JSC$9993_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",G)};
var jGL=function(){var G=_.pw();this.JSC$9996_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.fT("channel_type"))};
jGL.prototype.increment=function(G){this.JSC$9996_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",G)};
var q4j=function(){var G=_.pw();this.JSC$9999_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
q4j.prototype.increment=function(){this.JSC$9999_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var lAD=function(){var G=_.pw();this.JSC$10002_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.fT("channel_type"),_.fT("error_type"))};
lAD.prototype.increment=function(G,b){this.JSC$10002_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",G,b)};
var mA9=function(){var G=_.pw();this.JSC$10005_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
mA9.prototype.increment=function(){this.JSC$10005_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var eQK=function(){var G=_.pw();this.JSC$10008_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
eQK.prototype.increment=function(){this.JSC$10008_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var l$8=function(){var G=_.pw();this.JSC$10014_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
l$8.prototype.increment=function(){this.JSC$10014_streamzService.JSC$9860_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var M0Y=function(G){return G.getCount&&typeof G.getCount=="function"?G.getCount():_.KO(G)||typeof G==="string"?G.length:_.Cy.getCount(G)},Z6K=function(G,b){if(typeof G.every=="function")return G.every(b,void 0);
if(_.KO(G)||typeof G==="string")return Array.prototype.every.call(G,b,void 0);for(var I=_.LGe(G),h=_.Iv(G),q=h.length,l=0;l<q;l++)if(!b.call(void 0,h[l],I&&I[l],G))return!1;return!0},t09=function(G,b,I,h){var q=new _.a3(null);
G&&_.h$(q,G);b&&_.qR(q,b);I&&_.jP(q,I);h&&_.lW(q,h);return q},zlj=function(){var G=_.pL&&_.Qu(_.oVb,10)>=0,b;
if(b=_.bQ8)b=_.Qu(_.zDX,10)>=0;var I=_.IR&&_.Qu(_.oVb,85)>=0;return _.XE||G||b||I},ol1=function(G){var b=_.waO(G);
return b&&zlj()?-G.scrollLeft:b&&_.pT(G,"overflowX")!="visible"?G.scrollWidth-G.clientWidth-G.scrollLeft:G.scrollLeft},i6W=function(G,b){b=Math.max(b,0);
_.waO(G)?zlj()?G.scrollLeft=-b:G.scrollLeft=G.scrollWidth-b-G.clientWidth:G.scrollLeft=b},Imf=0,mo5=!1;
D6.prototype.set=function(G){this.relativeTimeStart_=G};
D6.prototype.reset=function(){this.set(_.nW())};
D6.prototype.get=function(){return this.relativeTimeStart_};
var POD=null,d3K=function(){POD||(POD=new D6)},yuc=function(){POD||(POD=new D6)};
_.OE(yuc,d3K);_.m=VA9.prototype;_.m.JSC$11425_buffer_="";_.m.set=function(G){this.JSC$11425_buffer_=""+G};
_.m.append=function(G,b,I){this.JSC$11425_buffer_+=String(G);if(b!=null)for(var h=1;h<arguments.length;h++)this.JSC$11425_buffer_+=arguments[h];return this};
_.m.clear=function(){this.JSC$11425_buffer_=""};
_.m.getLength=function(){return this.JSC$11425_buffer_.length};
_.m.toString=function(){return this.JSC$11425_buffer_};
var ruf=!1,xo9=function(G){_.bs.call(this,G.message||G.description||G.name);this.isMissing=G instanceof cM;this.isTimeout=G instanceof _.ww&&G.errorCode=="net.timeout";this.isCanceled=G instanceof _.zI};
_.M(xo9,_.bs);xo9.prototype.name="BiscottiError";var cM=function(){_.bs.call(this,"Biscotti ID is missing from server")};
_.M(cM,_.bs);cM.prototype.name="BiscottiMissingError";var k$=null,YEK=function(){try{var G=_.Ge("yt.ads.biscotti.getId_");return G?G():Ey3()}catch(b){return _.vv(b)}},FM1=function(G,b){return _.wK({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:G,command:b}})},H6D=function(G){return _.wK({type:"SET_GUIDE_IS_EXPANDED",
payload:G})},WML=function(G){return _.wK({type:"SET_ONLINE_STATUS",
payload:G})},aD8=function(G,b){return _.wK({type:"SET_TRANSCRIPTION_STATE",
payload:{high:G,low:b}})},NY3=function(G){return _.wK({type:"SET_OVERLAY_STATE",
payload:G})},Ya8=0,COK=function(G,b,I){var h=this;
this.priority=b;this.delay=I;this.jobId=0;this.completionCallback=_.sp;this.wrappedJob=function(){G();h.completionCallback()};
this.id=++Ya8};
COK.prototype.enqueue=function(G){this.completionCallback=G;this.jobId=_.uu.addJob(this.wrappedJob,this.priority,this.delay)};
var Mx=function(){_.mM.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.M(Mx,_.mM);Mx.prototype.addJob=function(G,b,I){G=new COK(G,b,I);this.taskIdToTask.set(G.id,G);this.isActive?JuF(this,G):this.suspendedTasks.add(G);return G.id};
var JuF=function(G,b){G.scheduledTasks.add(b);b.enqueue(function(){G.scheduledTasks.delete(b)})};
Mx.prototype.cancelJob=function(G){(G=this.taskIdToTask.get(G))&&(this.scheduledTasks.delete(G)?_.uu.cancelJob(G.jobId):this.suspendedTasks.delete(G))};
Mx.prototype.pause=function(){var G=this;this.isActive=!1;this.scheduledTasks.forEach(function(b){_.uu.cancelJob(b.jobId);G.suspendedTasks.add(b)});
this.scheduledTasks.clear()};
Mx.prototype.start=function(){var G=this;this.isActive=!0;this.suspendedTasks.forEach(function(b){JuF(G,b)});
this.suspendedTasks.clear()};
Mx.prototype.reset=function(){this.scheduledTasks.forEach(function(G){_.uu.cancelJob(G.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var KM1=function(G,b){this.JSC$13280_networkService_=G;this.pageRequestPromise=b};
KM1.prototype.fetchData=function(G){uzF(this,this.JSC$13280_networkService_.fetchData(G))};
KM1.prototype.postData=function(G,b){uzF(this,this.JSC$13280_networkService_.postData(G,b))};
KM1.prototype.requestDataForServiceEndpoint=function(G,b){uzF(this,this.JSC$13280_networkService_.requestDataForServiceEndpoint(G,b))};
var uzF=function(G,b){b.then(G.pageRequestPromise.onSuccess,G.pageRequestPromise.onFailure,G.pageRequestPromise)};
KM1.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var Rlc=function(G){this.buildNetworkRequest_=G;this.pendingRequests_=new Set};
Rlc.prototype.reset=function(){this.pendingRequests_.forEach(function(G){G.cancel()});
this.pendingRequests_.clear()};
Rlc.prototype.fetchData=function(G){var b=nlY(this);b.fetchData(G);return b.pageRequestPromise};
Rlc.prototype.postData=function(G,b){var I=nlY(this);I.postData(G,b);return I.pageRequestPromise};
Rlc.prototype.requestDataForServiceEndpoint=function(G,b){var I=nlY(this);I.requestDataForServiceEndpoint(G,b);return I.pageRequestPromise};
var nlY=function(G){var b=G.buildNetworkRequest_();G.pendingRequests_.add(b);var I=function(){G.pendingRequests_.delete(b)};
b.pageRequestPromise.then(I,I);return b},O6F=function(G){var b=new Mx;
this.JSC$13287_networkService_=G;this.JSC$13287_taskManager_=b;this.JSC$13287_networkManager_=new Rlc(this.networkRequestFactory_.bind(this))};
_.m=O6F.prototype;_.m.networkRequestFactory_=function(){return new KM1(this.JSC$13287_networkService_,new _.zU(this.JSC$13287_taskManager_))};
_.m.reset=function(){this.JSC$13287_taskManager_.reset();this.JSC$13287_networkManager_.reset()};
_.m.start=function(){this.JSC$13287_taskManager_.start()};
_.m.pause=function(){this.JSC$13287_taskManager_.pause()};
_.m.getTaskManager=function(){return this.JSC$13287_taskManager_};
_.m.getNetworkManager=function(){return this.JSC$13287_networkManager_};
var zce=null,P$5=[],vM=0,Q7=0,Lt=null,ft=function(G){this.token=G};
ft.getInstance=function(){var G;return _.c(function(b){if(b.nextAddress==1)return b.yield(_.k_(),2);G=b.yieldResult;if(!G)return b.return();ft.instance||(ft.instance=new ft(G));return b.return(ft.instance)})};
var N55=function(G){var b;return _.c(function(I){if(I.nextAddress==1)return I.yield(HGD(G.token),2);b=I.yieldResult;return I.return(b.clear("resource-manifest-assets"))})},x$=function(G){this.token=G};
x$.getInstance=function(){var G;return _.c(function(b){if(b.nextAddress==1)return b.yield(_.k_(),2);G=b.yieldResult;if(!G)return b.return();x$.instance||(x$.instance=new x$(G));return b.return(x$.instance)})};
var W6D=function(G){var b;return _.c(function(I){if(I.nextAddress==1)return I.yield(HGD(G.token),2);b=I.yieldResult;return I.yield(b.clear("auth"),0)})},woj=!1,Tj=null,Xve=void 0,mKe=!1,Elc=function(G){_.bs.call(this,G)};
_.M(Elc,_.uK5);var wRe=function(){var G=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return G?parseInt(G[1],10):0},pof=function(G){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+G)!=-1||document.currentScript.src.indexOf("&"+G)!=-1)},Sae=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},$_e=function(G){G.length?Xoa(G.shift(),function(){$_e(G)}):pRD()},bWL=function(G){return"chrome-extension://"+G+"/cast_sender.js"},Xoa=function(G,
b,I){var h=document.createElement("script");
h.onerror=b;I&&(h.onload=I);_.mf(h,_.N2(G));(document.head||document.documentElement).appendChild(h)},$HD=function(){var G=wRe(),b=[];
if(G>1){var I=G-1;b.push("//www.gstatic.com/eureka/clank/"+G+"/cast_sender.js");b.push("//www.gstatic.com/eureka/clank/"+I+"/cast_sender.js")}return b},pRD=function(){var G=Sae();
G&&G(!1,"No cast extension found")},XR9=function(){if(GS1){var G=2,b=Sae(),I=function(){G--;
G==0&&b&&b(!0)};
window.__onGCastApiAvailable=I;Xoa("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",pRD,I)}},Ega=function(){XR9();
var G=$HD();G.push("//www.gstatic.com/eureka/clank/cast_sender.js");$_e(G)},S45=function(){XR9();
var G=$HD();G.push.apply(G,_.Nz(GOa.map(bWL)));G.push("//www.gstatic.com/eureka/clank/cast_sender.js");$_e(G)},GS1=pof("loadCastFramework")||pof("loadCastApplicationFramework"),GOa=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var bFK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(bFK,_.eo);var IQY=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(IQY,_.eo);var ha1=function(){var G=new IQY;return _.zd(G,1,3)};var Z3=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Z3,_.eo);var Eof=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Eof,_.eo);var qc8=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(qc8,_.eo);qc8.prototype.getToken=function(){return _.U5(this,1)};
qc8.prototype.setToken=function(G){return _.yq(this,1,G)};
var Ok8=function(G){return _.S8(G,3,_.Mf,_.vr())},wN3=function(G){return _.S8(G,6,_.Mf,_.vr())};var t0=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(t0,_.eo);t0.prototype.getToken=function(){return _.fi(this,qc8,2)};
t0.prototype.setToken=function(G){return _.ZK(this,2,G)};
t0.prototype.getName=function(){return _.U5(this,6)};
var jzL=_.Az(t0);var lQW=function(G,b,I){this.requestMessage=G;this.methodDescriptor=b;this.metadata=I};
lQW.prototype.getMetadata=function(){return this.metadata};var mHY=function(G,b){b=b===void 0?{}:b;this.responseMessage=G;this.metadata=b;this.status=null};
mHY.prototype.getMetadata=function(){return this.metadata};
mHY.prototype.getStatus=function(){return this.status};var zo=function(G,b,I,h,q){this.name=G;this.methodType="unary";this.requestType=b;this.responseType=I;this.requestSerializeFn=h;this.responseDeserializeFn=q},ea8=function(G,b,I){I=I===void 0?{}:I;
return new lQW(b,G,I)};
zo.prototype.getName=function(){return this.name};var o2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(o2,_.eo);o2.prototype.getHeader=function(){return _.fi(this,Z3,1)};
o2.prototype.setHeader=function(G){return _.ZK(this,1,G)};
o2.prototype.hasHeader=function(){return _.eR(this,Z3,1)};var VMF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(VMF,_.eo);var DHD=new zo("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",o2,VMF,function(G){return G.serialize()},_.Az(VMF));var Pt=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Pt,_.eo);Pt.prototype.getHeader=function(){return _.fi(this,Z3,1)};
Pt.prototype.setHeader=function(G){return _.ZK(this,1,G)};
Pt.prototype.hasHeader=function(){return _.eR(this,Z3,1)};var cwL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(cwL,_.eo);var kSK=new zo("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Pt,cwL,function(G){return G.serialize()},_.Az(cwL));var dA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(dA,_.eo);dA.prototype.getHeader=function(){return _.fi(this,Z3,1)};
dA.prototype.setHeader=function(G){return _.ZK(this,1,G)};
dA.prototype.hasHeader=function(){return _.eR(this,Z3,1)};var vj1=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(vj1,_.eo);vj1.prototype.getLink=function(){return _.fi(this,t0,1)};var L83=new zo("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",dA,vj1,function(G){return G.serialize()},_.Az(vj1));var y5=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(y5,_.eo);y5.prototype.getHeader=function(){return _.fi(this,Z3,1)};
y5.prototype.setHeader=function(G){return _.ZK(this,1,G)};
y5.prototype.hasHeader=function(){return _.eR(this,Z3,1)};var QzY=new zo("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",y5,t0,function(G){return G.serialize()},jzL);var xHe=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(xHe,_.eo);var fQW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(fQW,_.eo);fQW.prototype.getUrl=function(){return _.U5(this,2)};
fQW.prototype.setUrl=function(G){return _.yq(this,2,G)};var TIW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(TIW,_.eo);var BIK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(BIK,_.eo);var UHe=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(UHe,_.eo);var la9=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(la9,_.eo);var jZK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(jZK,_.eo);var sz9=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(sz9,_.eo);var vUY=_.Az(sz9);var gjY=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(gjY,_.eo);var Aw8=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Aw8,_.eo);_.m=Aw8.prototype;_.m.getHeader=function(){return _.fi(this,Z3,1)};
_.m.setHeader=function(G){return _.ZK(this,1,G)};
_.m.hasHeader=function(){return _.eR(this,Z3,1)};
_.m.getCompletionUrl=function(){return _.U5(this,6)};
_.m.getDeviceId=function(){return _.U5(this,11)};var MMj=new zo("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Aw8,sz9,function(G){return G.serialize()},vUY);var ZFD=new Set(["SAPISIDHASH","APISIDHASH"]);var tMW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(tMW,_.eo);tMW.prototype.getMessage=function(){return _.U5(this,2)};
var zac=_.Az(tMW);var iF8=function(G,b){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=G.nodeReadableStream;this.grpcResponseDeserializeFn=b;this.xhr=G.xhr;this.xhrNodeReadableStream&&oj1(this)},W8j=function(G,b){var I=new PY8;
_.cv(G.xhr,"complete",function(){if(G.xhr.isSuccess()){var h=G.xhr.getResponseText();var q;if(q=b)q=G.xhr,q.JSC$9869_xhr_&&q.isComplete()?(q=q.JSC$9869_xhr_.getResponseHeader("Content-Type"),q=q===null?void 0:q):q=void 0,q=q==="text/plain";if(q){if(!atob)throw Error("ik");h=atob(h)}try{var l=G.grpcResponseDeserializeFn(h)}catch(D){dHK(G,ra8(new _.dp(13,"Error when deserializing response data; error: "+D+(", response: "+h)),I));return}h=_.ep2(G.xhr.getStatus());yw9(G,rw5(G));h===0?F88(G,l):dHK(G,ra8(new _.dp(h,
"Xhr succeeded but the status code is not 200"),I))}else{h=G.xhr.getResponseText();l=rw5(G);if(h){var V=HFL(G,h);h=V.code;q=V.details;V=V.metadata}else h=2,q="Rpc failed due to xhr error. uri: "+String(G.xhr.JSC$9869_lastUri_)+", error code: "+(G.xhr.JSC$9869_lastErrorCode_+", error: ")+G.xhr.getLastError(),V=l;yw9(G,l);dHK(G,ra8(new _.dp(h,q,V),I))}})},oj1=function(G){G.xhrNodeReadableStream.on("data",function(b){if("1"in b){var I=b["1"];
try{var h=G.grpcResponseDeserializeFn(I)}catch(q){dHK(G,new _.dp(13,"Error when deserializing response data; error: "+q+(", response: "+I)))}h&&F88(G,h)}if("2"in b)for(b=HFL(G,b["2"]),I=0;I<G.onStatusCallbacks.length;I++)G.onStatusCallbacks[I](b)});
G.xhrNodeReadableStream.on("end",function(){yw9(G,rw5(G));for(var b=0;b<G.onEndCallbacks.length;b++)G.onEndCallbacks[b]()});
G.xhrNodeReadableStream.on("error",function(){if(G.onErrorCallbacks.length!==0){var b=G.xhr.JSC$9869_lastErrorCode_;b!==0||G.xhr.isSuccess()||(b=6);var I=-1;switch(b){case 0:var h=2;break;case 7:h=10;break;case 8:h=4;break;case 6:I=G.xhr.getStatus();h=_.ep2(I);break;default:h=14}yw9(G,rw5(G));b=_.nzA(b)+", error: "+G.xhr.getLastError();I!==-1&&(b+=", http status code: "+I);dHK(G,new _.dp(h,b))}})},rw5=function(G){var b={},I=i48(G.xhr);
Object.keys(I).forEach(function(h){b[h]=I[h]});
return b},HFL=function(G,b){var I=2,h={};
try{var q=zac(b);I=_.LT(q,1);var l=q.getMessage();_.ku(q,Au9,3,_.vr()).length&&(h["grpc-web-status-details-bin"]=b)}catch(V){G.xhr&&G.xhr.getStatus()===404?(I=5,l="Not Found: "+String(G.xhr.JSC$9869_lastUri_)):(I=14,l="Unable to parse RpcStatus: "+V)}return{code:I,details:l,metadata:h}};
iF8.prototype.on=function(G,b){G==="data"?this.onDataCallbacks.push(b):G==="metadata"?this.onMetadataCallbacks.push(b):G==="status"?this.onStatusCallbacks.push(b):G==="end"?this.onEndCallbacks.push(b):G==="error"&&this.onErrorCallbacks.push(b);return this};
var aQ9=function(G,b){b=G.indexOf(b);b>-1&&G.splice(b,1)};
iF8.prototype.removeListener=function(G,b){G==="data"?aQ9(this.onDataCallbacks,b):G==="metadata"?aQ9(this.onMetadataCallbacks,b):G==="status"?aQ9(this.onStatusCallbacks,b):G==="end"?aQ9(this.onEndCallbacks,b):G==="error"&&aQ9(this.onErrorCallbacks,b);return this};
iF8.prototype.cancel=function(){this.xhr.abort()};
var F88=function(G,b){for(var I=0;I<G.onDataCallbacks.length;I++)G.onDataCallbacks[I](b)},yw9=function(G,b){for(var I=0;I<G.onMetadataCallbacks.length;I++)G.onMetadataCallbacks[I](b)},dHK=function(G,b){for(var I=0;I<G.onErrorCallbacks.length;I++)G.onErrorCallbacks[I](b)},PY8=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)};
_.M(PY8,Error);var NIK=function(G){this.JSC$19707_worker_=G.worker||null;this.JSC$19707_streamBinaryChunks_=G.streamBinaryChunks||!1;this.JSC$19707_credentialsMode_=void 0};
_.OE(NIK,_.D1O);NIK.prototype.createInstance=function(){var G=new rA(this.JSC$19707_worker_,this.JSC$19707_streamBinaryChunks_);this.JSC$19707_credentialsMode_&&G.setCredentialsMode(this.JSC$19707_credentialsMode_);return G};
NIK.prototype.setCredentialsMode=function(G){this.JSC$19707_credentialsMode_=G};
var rA=function(G,b){_.Z$.call(this);this.JSC$19711_worker_=G;this.JSC$19711_streamBinaryChunks_=b;this.JSC$19711_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$19711_responseHeaders_=null;this.JSC$19711_method_="GET";this.JSC$19711_url_="";this.inProgress_=!1;this.JSC$19711_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.OE(rA,_.Z$);rA.prototype.open=function(G,b){if(this.readyState!=0)throw this.abort(),Error("jk");this.JSC$19711_method_=G;this.JSC$19711_url_=b;this.readyState=1;YcY(this)};
rA.prototype.send=function(G){if(this.readyState!=1)throw this.abort(),Error("kk");if(this.abortController_.signal.aborted)throw this.abort(),Error("lk");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.JSC$19711_method_,credentials:this.JSC$19711_credentialsMode_,cache:void 0,signal:this.abortController_.signal};G&&(b.body=G);(this.JSC$19711_worker_||_.hd).fetch(new Request(this.JSC$19711_url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
rA.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,CYc(this));this.readyState=0};
rA.prototype.handleResponse_=function(G){if(this.inProgress_&&(this.fetchResponse_=G,this.JSC$19711_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19711_responseHeaders_=G.headers,this.readyState=2,YcY(this)),this.inProgress_&&(this.readyState=3,YcY(this),this.inProgress_)))if(this.responseType==="arraybuffer")G.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.hd.ReadableStream!==
"undefined"&&"body"in G){this.currentReader_=G.body.getReader();if(this.JSC$19711_streamBinaryChunks_){if(this.responseType)throw Error("mk");this.response=[]}else this.response=this.responseText="",this.JSC$19711_textDecoder_=new TextDecoder;Jwf(this)}else G.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var Jwf=function(G){G.currentReader_.read().then(G.handleDataFromStream_.bind(G)).catch(G.handleSendFailure_.bind(G))};
rA.prototype.handleDataFromStream_=function(G){if(this.inProgress_){if(this.JSC$19711_streamBinaryChunks_&&G.value)this.response.push(G.value);else if(!this.JSC$19711_streamBinaryChunks_){var b=G.value?G.value:new Uint8Array(0);if(b=this.JSC$19711_textDecoder_.decode(b,{stream:!G.done}))this.response=this.responseText+=b}G.done?CYc(this):YcY(this);this.readyState==3&&Jwf(this)}};
rA.prototype.handleResponseText_=function(G){this.inProgress_&&(this.response=this.responseText=G,CYc(this))};
rA.prototype.handleResponseArrayBuffer_=function(G){this.inProgress_&&(this.response=G,CYc(this))};
rA.prototype.handleSendFailure_=function(){this.inProgress_&&CYc(this)};
var CYc=function(G){G.readyState=4;G.fetchResponse_=null;G.currentReader_=null;G.JSC$19711_textDecoder_=null;YcY(G)};
rA.prototype.setRequestHeader=function(G,b){this.requestHeaders_.append(G,b)};
rA.prototype.getResponseHeader=function(G){return this.JSC$19711_responseHeaders_?this.JSC$19711_responseHeaders_.get(G.toLowerCase())||"":""};
rA.prototype.getAllResponseHeaders=function(){if(!this.JSC$19711_responseHeaders_)return"";for(var G=[],b=this.JSC$19711_responseHeaders_.entries(),I=b.next();!I.done;)I=I.value,G.push(I[0]+": "+I[1]),I=b.next();return G.join("\r\n")};
rA.prototype.setCredentialsMode=function(G){this.JSC$19711_credentialsMode_=G};
var YcY=function(G){G.onreadystatechange&&G.onreadystatechange.call(G)};
Object.defineProperty(rA.prototype,"withCredentials",{get:function(){return this.JSC$19711_credentialsMode_==="include"},
set:function(G){this.setCredentialsMode(G?"include":"same-origin")}});var K81=function(G){var b="";_.Cy.forEach(G,function(I,h){b+=h;b+=":";b+=I;b+="\r\n"});
return b},uHe=function(G,b,I){if(_.Cy.isEmpty(I))return G;
I=K81(I);if(typeof G==="string")return _.Re(G,_.IN(b),I);_.IJ(G,b,I);return G};var Ra9=function(){this.isInputValid_=!0;this.JSC$19717_streamPos_=0;this.leftoverInput_=""};
Ra9.prototype.isInputValid=function(){return this.isInputValid_};
Ra9.prototype.decode=function(G){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("nk`"+this.JSC$19717_streamPos_+"`stream already broken`"+G);this.leftoverInput_+=G;G=Math.floor(this.leftoverInput_.length/4);if(G==0)return null;try{var b=_.Kvs(this.leftoverInput_.slice(0,G*4))}catch(I){throw b=this.leftoverInput_,G=I.message,this.isInputValid_=!1,Error("nk`"+this.JSC$19717_streamPos_+"`"+G+"`"+b);}this.JSC$19717_streamPos_+=G*4;this.leftoverInput_=this.leftoverInput_.slice(G*4);return b};var sV=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19720_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
sV.prototype.isInputValid=function(){return this.state_!=3};
var njY=function(G,b,I,h){G.state_=3;G.errorMessage_="The stream is broken @"+G.JSC$19720_streamPos_+"/"+I+". Error: "+h+". With input:\n"+b;throw Error(G.errorMessage_);};
sV.prototype.acceptsBinaryInput=function(){return!0};
sV.prototype.parse=function(G){function b(k){k&128&&njY(l,V,D,"invalid tag");(k&7)!=2&&njY(l,V,D,"invalid wire type");l.tag_=k>>>3;l.tag_!=1&&l.tag_!=2&&l.tag_!=15&&njY(l,V,D,"unexpected tag");l.state_=1;l.length_=0;l.countLengthBytes_=0}
function I(k){l.countLengthBytes_++;l.countLengthBytes_==5&&k&240&&njY(l,V,D,"message length too long");l.length_|=(k&127)<<(l.countLengthBytes_-1)*7;k&128||(l.state_=2,l.countMessageBytes_=0,typeof Uint8Array!=="undefined"?l.messageBuffer_=new Uint8Array(l.length_):l.messageBuffer_=Array(l.length_),l.length_==0&&q())}
function h(k){l.messageBuffer_[l.countMessageBytes_++]=k;l.countMessageBytes_==l.length_&&q()}
function q(){if(l.tag_<15){var k={};k[l.tag_]=l.messageBuffer_;l.result_.push(k)}l.state_=0}
for(var l=this,V=G instanceof Array?G:new Uint8Array(G),D=0;D<V.length;){switch(l.state_){case 3:njY(l,V,D,"stream already broken");break;case 0:b(V[D]);break;case 1:I(V[D]);break;case 2:h(V[D]);break;default:throw Error("ok`"+l.state_);}l.JSC$19720_streamPos_++;D++}G=l.result_;l.result_=[];return G.length>0?G:null};var Hk5=function(){this.errorMessage_=null;this.JSC$19723_streamPos_=0;this.base64Decoder_=new Ra9;this.pbParser_=new sV};
Hk5.prototype.isInputValid=function(){return this.errorMessage_===null};
var OF5=function(G,b,I){G.errorMessage_="The stream is broken @"+G.JSC$19723_streamPos_+". Error: "+I+". With input:\n"+b;throw Error(G.errorMessage_);};
Hk5.prototype.acceptsBinaryInput=function(){return!1};
Hk5.prototype.parse=function(G){this.errorMessage_!==null&&OF5(this,G,"stream already broken");var b=null;try{var I=this.base64Decoder_.decode(G);b=I===null?null:this.pbParser_.parse(I)}catch(h){OF5(this,G,h.message)}this.JSC$19723_streamPos_+=G.length;return b};var F2L=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19726_streamPos_=0;this.result_=[];this.statusParsed_=!1};
F2L.prototype.isInputValid=function(){return this.errorMessage_===null};
F2L.prototype.acceptsBinaryInput=function(){return!1};
F2L.prototype.parse=function(G){function b(k){l.state_=6;l.errorMessage_="The stream is broken @"+l.JSC$19726_streamPos_+"/"+V+". Error: "+k+". With input:\n";throw Error(l.errorMessage_);}
function I(){l.jsonStreamParser_=new _.LY({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function h(k){if(k)for(var L=0;L<k.length;L++){var x={};x[1]=k[L];l.result_.push(x)}}
function q(k){if(k){(l.statusParsed_||k.length>1)&&b("extra status: "+k);l.statusParsed_=!0;var L={};L[2]=k[0];l.result_.push(L)}}
for(var l=this,V=0;V<G.length;){var D;if(D=l.state_!==2){a:{for(;V<G.length;){if(!_.vO(G[V])){D=!0;break a}V++;l.JSC$19726_streamPos_++}D=!1}D=!D}if(D)return null;switch(l.state_){case 6:b("stream already broken");break;case 0:G[V]==="["?(l.state_=1,V++,l.JSC$19726_streamPos_++):b("unexpected input token");break;case 1:G[V]==="["?(l.state_=2,I()):G[V]===","||G.slice(V,V+5)=="null,"?l.state_=3:G[V]==="]"?(l.state_=5,V++,l.JSC$19726_streamPos_++):b("unexpected input token");break;case 2:D=l.jsonStreamParser_.parse(G.substring(V));
h(D);l.jsonStreamParser_.done()?(l.state_=3,D=l.jsonStreamParser_.JSC$11552_buffer_,l.JSC$19726_streamPos_+=G.length-V-D.length,G=D,V=0):(l.JSC$19726_streamPos_+=G.length-V,V=G.length);break;case 3:G[V]===","||G.slice(V,V+5)=="null,"?(l.state_=4,I(),l.jsonStreamParser_.parse("["),V+=G[V]===","?1:5,l.JSC$19726_streamPos_++):G[V]==="]"&&(l.state_=5,V++,l.JSC$19726_streamPos_++);break;case 4:D=l.jsonStreamParser_.parse(G.substring(V));q(D);l.jsonStreamParser_.done()?(l.state_=5,D=l.jsonStreamParser_.JSC$11552_buffer_,
l.JSC$19726_streamPos_+=G.length-V-D.length,G=D,V=0):(l.JSC$19726_streamPos_+=G.length-V,V=G.length);break;case 5:b("extra input after stream end")}}return l.result_.length>0?(G=l.result_,l.result_=[],G):null};var wn3=function(G){this.JSC$19729_xhr_=G;this.JSC$19729_parser_=null;this.status_=this.JSC$19729_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19729_textDecoder_=null;this.JSC$19729_eventHandler_=new _.Bh(this);this.JSC$19729_eventHandler_.listen(this.JSC$19729_xhr_,"readystatechange",this.JSC$19731_readyStateChangeHandler_)},Fb=function(G,b){G.status_!=b&&(G.status_=b,G.statusHandler_&&G.statusHandler_())},EjL=function(G){G.JSC$19729_eventHandler_.removeAll();
if(G.JSC$19729_xhr_){var b=G.JSC$19729_xhr_;G.JSC$19729_xhr_=null;b.abort();b.dispose()}};
wn3.prototype.getStatus=function(){return this.status_};
wn3.prototype.JSC$19731_readyStateChangeHandler_=function(G){G=G.target;try{if(G==this.JSC$19729_xhr_)a:{var b=_.F7(this.JSC$19729_xhr_),I=this.JSC$19729_xhr_.JSC$9869_lastErrorCode_,h=this.JSC$19729_xhr_.getStatus(),q=this.JSC$19729_xhr_.getResponseText();G=[];if(this.JSC$19729_xhr_.getResponse()instanceof Array){var l=this.JSC$19729_xhr_.getResponse();l.length>0&&l[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,G=l)}if(!(b<3||b==3&&!q&&G.length==0))if(h=h==200||h==206,b==4&&(I==8?Fb(this,
7):I==7?Fb(this,8):h||Fb(this,3)),this.JSC$19729_parser_||(this.JSC$19729_parser_=W21(this.JSC$19729_xhr_),this.JSC$19729_parser_==null&&Fb(this,5)),this.status_>2)EjL(this);else{if(G.length>this.JSC$19729_pos_){var V=G.length;I=[];try{if(this.JSC$19729_parser_.acceptsBinaryInput())for(var D=0;D<V;D++){var k=this.JSC$19729_parser_.parse(Array.from(G[D]));k&&(I=I.concat(k))}else{k="";if(!this.JSC$19729_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("pk");this.JSC$19729_textDecoder_=
new TextDecoder}for(D=0;D<V;D++)k+=this.JSC$19729_textDecoder_.decode(G[D],{stream:b==4&&D==V-1});I=this.JSC$19729_parser_.parse(k)}G.splice(0,V);I&&this.dataHandler_(I)}catch(x){Fb(this,5);EjL(this);break a}}else if(q.length>this.JSC$19729_pos_){D=q.slice(this.JSC$19729_pos_);this.JSC$19729_pos_=q.length;try{var L=this.JSC$19729_parser_.parse(D);L!=null&&this.dataHandler_&&this.dataHandler_(L)}catch(x){Fb(this,5);EjL(this);break a}}b==4?(q.length!=0||this.hasStreamingResponseData_?Fb(this,2):Fb(this,
4),EjL(this)):Fb(this,1)}}}catch(x){Fb(this,6),EjL(this)}};var pnF=function(G){G=this.xhrReader_=G;var b=(0,_.Hr)(this.onData_,this);G.dataHandler_=b;G=this.xhrReader_;b=(0,_.Hr)(this.onStatusChange_,this);G.statusHandler_=b;this.JSC$19733_callbackMap_={};this.callbackOnceMap_={}};
_.m=pnF.prototype;_.m.on=function(G,b){var I=this.JSC$19733_callbackMap_[G];I||(I=[],this.JSC$19733_callbackMap_[G]=I);I.push(b);return this};
_.m.addListener=function(G,b){this.on(G,b);return this};
_.m.removeListener=function(G,b){var I=this.JSC$19733_callbackMap_[G];I&&_.CO(I,b);(G=this.callbackOnceMap_[G])&&_.CO(G,b);return this};
_.m.once=function(G,b){var I=this.callbackOnceMap_[G];I||(I=[],this.callbackOnceMap_[G]=I);I.push(b);return this};
_.m.onData_=function(G){var b=this.JSC$19733_callbackMap_.data;b&&ScD(G,b);(b=this.callbackOnceMap_.data)&&ScD(G,b);this.callbackOnceMap_.data=[]};
var ScD=function(G,b){for(var I={},h=0;h<G.length;I={message$jscomp$1008:void 0},h++)I.message$jscomp$1008=G[h],b.forEach(function(q){return function(l){try{l(q.message$jscomp$1008)}catch(V){}}}(I))};
pnF.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:Xn5(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Xn5(this,"error");break;case 8:Xn5(this,"close");break;case 2:Xn5(this,"end")}};
var Xn5=function(G,b){var I=G.JSC$19733_callbackMap_[b];I&&I.forEach(function(h){try{h()}catch(q){}});
(I=G.callbackOnceMap_[b])&&I.forEach(function(h){h()});
G.callbackOnceMap_[b]=[]};var $s5=function(){var G={format:"jspb"};G=G===void 0?{}:G;this.suppressCorsPreflight=G.suppressCorsPreflight||_.Ge("suppressCorsPreflight",G)||!1;this.withCredentials=G.withCredentials||_.Ge("withCredentials",G)||!1;this.streamInterceptors=G.streamInterceptors||[];this.unaryInterceptors=G.unaryInterceptors||[];this.workerScope=G.workerScope;this.chunkedServerStreaming=G.useFetchDownloadStreams||!1},Iia=function(G,b,I,h,q,l){l=l===void 0?{}:l;
var V=b.substring(0,b.length-q.name.length),D,k=(D=l)==null?void 0:D.signal;return GT9(function(L){return new Promise(function(x,f){if(k==null?0:k.aborted){var T=new _.dp(1,"Aborted");T.cause=k.reason;f(T)}else{var B={},A=bYj(G,L,V);A.on("error",function(t){return void f(t)});
A.on("metadata",function(t){B=t});
A.on("data",function(t){var y=B;y=y===void 0?{}:y;x(new mHY(t,y))});
k&&k.addEventListener("abort",function(){A.cancel();var t=new _.dp(1,"Aborted");t.cause=k.reason;f(t)})}})},G.unaryInterceptors).call(G,ea8(q,I,h)).then(function(L){return L.responseMessage})},hqW=function(G,b,I,h,q,l){l=l===void 0?{}:l;
return Iia(G,b,I,h,q,l)};
$s5.prototype.serverStreaming=function(G,b,I,h){var q=this,l=G.substring(0,G.length-h.name.length);return qK1(function(V){var D=V.methodDescriptor,k=V.getMetadata(),L=ju9(q,!1);k=liL(q,k,L,l+D.getName());var x=msL(L,D.responseDeserializeFn,!0);V=D.requestSerializeFn(V.requestMessage);L.send(k,"POST",V);return x},this.streamInterceptors).call(this,ea8(h,b,I))};
var bYj=function(G,b,I){var h=b.methodDescriptor,q=b.getMetadata(),l=ju9(G,!0);G=liL(G,q,l,I+h.getName());I=msL(l,h.responseDeserializeFn,!1);W8j(I,q["X-Goog-Encode-Response-If-Executable"]==="base64");b=h.requestSerializeFn(b.requestMessage);l.send(G,"POST",b);return I},ju9=function(G,b){b=G.chunkedServerStreaming&&!b;
return G.workerScope||b?new _.rp(new NIK({worker:G.workerScope,streamBinaryChunks:b})):new _.rp},liL=function(G,b,I,h){b["Content-Type"]="application/json+protobuf";
b["X-User-Agent"]="grpc-web-javascript/0.1";var q=b.Authorization;if(q&&ZFD.has(q.split(" ")[0])||G.withCredentials)I.JSC$9869_withCredentials_=!0;if(G.suppressCorsPreflight)h=uHe(h,"$httpHeaders",b);else for(G=_.e(Object.keys(b)),q=G.next();!q.done;q=G.next())q=q.value,I.headers.set(q,b[q]);return h},msL=function(G,b,I){if(I){I=new wn3(G);
var h=new pnF(I)}return new iF8({xhr:G,nodeReadableStream:h},b)},qK1=function(G,b){return b.reduce(function(I,h){return function(q){return h.intercept(q,I)}},G)},GT9=function(G,b){return b.reduce(function(I,h){return function(q){return h.intercept(q,I)}},G)};var eqY=function(G){this.client_=new $s5;this.hostname_=G==void 0?G:G.replace(/\/+$/,"")};
_.m=eqY.prototype;_.m.JSC$19751_depositGoogleCredential=function(G,b,I){return hqW(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",G,b||{},kSK,I)};
_.m.deleteLink=function(G,b,I){return hqW(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",G,b||{},DHD,I)};
_.m.JSC$19751_finishOAuth=function(G,b,I){return hqW(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",G,b||{},L83,I)};
_.m.getLink=function(G,b,I){return hqW(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",G,b||{},QzY,I)};
_.m.startLinkingSession=function(G,b,I){return hqW(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",G,b||{},MMj,I)};var VbW=[0,_.u3,1,TYc,[0,_.wU,[0,_.np,-1]],[0,fD1],[0,_.$4,-1],[0,fD1]];var DsK=function(){this.storage=new Map},kTa=function(G,b,I,h,q){if(!G.storage.has(b))return null;
G=_.e(G.storage.get(b));for(b=G.next();!b.done;b=G.next())if(b=b.value,!q||b.linkName===q)if(I&&b.scopes&&crW(b.scopes,I)||h&&b.capabilities&&crW(b.capabilities,h))return b;return null},v69=function(G,b,I){if(!I)G.storage.delete(b);
else if(G.storage.has(b)){var h=G.storage.get(b).filter(function(q){return q.linkName!==I});
h.length>0?G.storage.set(b,h):G.storage.delete(b)}},crW=function(G,b){b=_.e(b);
for(var I=b.next();!I.done;I=b.next())if(!G.has(I.value))return!1;return!0};var Ll3=function(){var G=_.wy("LINK_GAL_DOMAIN");this.alsDomain1p=_.wy("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},QuK=function(G,b){G.apiKey=b;
return G};
Ll3.prototype.build=function(){var G={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("qk");G.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("rk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("sk");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("tk");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);G.loggerType=this.loggerType;G.clientEnvironment=this.clientEnvironment;G.colorScheme=this.colorScheme;G.showCloseOption=this.showCloseOption;return G};var g6=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(g6,_.eo);var xsW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(xsW,_.eo);var fiF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(fiF,_.eo);var Mu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Mu,_.eo);var Tr1=function(G){return _.gU(G,1)};var BrW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(BrW,_.eo);var us9=_.Az(BrW),AT=[1,2,3,4,5];var Yd1=function(G){try{return us9(G)}catch(b){return null}},Us9=function(){},CkF=function(G,b){switch(_.kY(b,AT)){case 4:return(b=_.Zu(b,fiF,4,AT))&&G.logStateTransition(_.gU(b,1)),!0;
case 5:return(b=_.Zu(b,xsW,5,AT))&&G.logInternalEvent(_.gU(b,1)),!0}return!1},RuD=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:_.Eu(G)}};var aGY=function(G,b){var I=this;this.validator=G;this.messageListener=b;this.dismissCallback=function(){su5(I,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19780_receiveMessage=function(h){h.type==="message"&&(h=h.event_,h!==null&&(new URL(I.iframe.src)).origin===h.origin&&I.validator(h.data,h.origin)&&!I.messageListener(h.data)&&(I.JSC$19780_resolveCb!==void 0&&I.JSC$19780_resolveCb(h.data),g68(I)))}},K28=function(G,b,I){G.uiHandler!==void 0&&su5(G,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(h,q){G.JSC$19780_resolveCb=h;G.JSC$19780_rejectCb=q;G.iframe=document.createElement("iframe");_.$T(G.iframe,b);G.uiHandler=I.displayContent(G.iframe,G.dismissCallback);_.cv(window,"message",G.JSC$19780_receiveMessage,!1,G)})},su5=function(G,b){G.JSC$19780_rejectCb!==void 0&&G.JSC$19780_rejectCb(b);
g68(G)},g68=function(G){G.uiHandler!==void 0&&G.uiHandler.hideContent();
_.ML(window,"message",G.JSC$19780_receiveMessage,!1,G);G.JSC$19780_resolveCb=void 0;G.JSC$19780_rejectCb=void 0;G.uiHandler=void 0;G.iframe=void 0};var Ara=function(G){if(G===2){var b;G=((b=window)==null?0:b.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return G},Jac=function(G){G=Ara(G);
switch(G){case 0:return"light";case 1:return"dark";default:_.Eu(G)}};var NRY=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Mb8=function(G,b){this.JSC$19792_linkingSession=G;this.noticeConfig=b;this.displayInfoMap=new Map;var I=new Map;if(_.eR(this.JSC$19792_linkingSession,TIW,7))for(G=_.fi(this.JSC$19792_linkingSession,TIW,7),G=_.ku(G,fQW,1,_.vr()),G=_.e(G),b=G.next();!b.done;b=G.next())b=b.value,I.set(_.gU(b,1),_.MOr(_.fi(b,_.w1p,3)));if(I.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){b=this.noticeConfig.enabledDataUsageNoticeUis;G=b.has(0)?I.get(1):void 0;b=b.has(1)?I.get(2):void 0;I=G!==void 0&&b!==void 0?I.get(3):void 0;var h=this.noticeConfig.nestedOrigins;var q=new BrW;var l=new g6;q=_.tz(q,2,AT,l);l=new BrW;var V=new g6;l=_.tz(l,3,AT,V);V=[];G!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:G,lastEvent:q,nestedOrigins:h}]),V.push({trustedUrl:G,lastEvent:q,nestedOrigins:h}));b!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:b,lastEvent:l,nestedOrigins:h}]),V.push({trustedUrl:b,lastEvent:l,nestedOrigins:h}));I!==void 0?this.displayInfoMap.set(3,[{trustedUrl:I,lastEvent:l,nestedOrigins:h}]):this.displayInfoMap.set(3,V)}};var ZY5=function(G){var b=new DsK;this.galService=G;this.galCache=b};
ZY5.prototype.getLink=function(G){var b=G.serviceId;var I=G.scopes;var h=G.capabilities;var q=G.linkName;var l=this,V;return _.c(function(D){if(h!==void 0&&I!==void 0)throw Error("uk");V=kTa(l.galCache,b,I,h,q);return V!==null?D.return(V):D.return(l.galService.getLink({serviceId:b,sessionId:Math.floor(Math.random()*2147483648),scopes:I,capabilities:h,linkName:q}).then(function(k){k=pND(k);var L=l.galCache;L.storage.has(b)?L.storage.get(b).push(k):L.storage.set(b,[k]);return k}))})};
ZY5.prototype.deleteLink=function(G,b,I){var h=this;return _.c(function(q){v69(h.galCache,G,I);return q.return(h.galService.deleteLink({serviceId:G,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:b,linkName:I}).then(function(){return!0}))})};var zq1=function(G,b){var I=this;this.validator=G;this.msgHandler=b;this.closedPopupTimeout=this.JSC$19814_rejectCb=this.JSC$19814_resolveCb=this.popup=null;this.JSC$19814_receiveMessage=function(h){if(h!==null&&(h=h.event_,h.source===I.popup)){var q=h.data;if(I.validator(q,h.origin)){var l;(l=I.msgHandler)!=null&&l.call(I,q)||(I.JSC$19814_resolveCb!==null&&I.JSC$19814_resolveCb(q),tbL(I))}}}};
zq1.prototype.open=function(G,b){var I=this;this.popup!==null&&o61(this);return new Promise(function(h,q){I.JSC$19814_resolveCb=h;I.JSC$19814_rejectCb=q;I.popup=_.bp(window,G,"",b);_.cv(window,"message",I.JSC$19814_receiveMessage,!1,I);iYL(I)})};
var o61=function(G,b){G.JSC$19814_rejectCb!==null&&G.JSC$19814_rejectCb(b);tbL(G)},tbL=function(G){G.closedPopupTimeout&&(G.closedPopupTimeout.cancel(),G.closedPopupTimeout=null);
G.popup&&G.popup.close();_.ML(window,"message",G.JSC$19814_receiveMessage,!1,G);G.popup=null;G.JSC$19814_resolveCb=null;G.JSC$19814_rejectCb=null},iYL=function(G){G.closedPopupTimeout=_.CMn(100).then(function(){G.popup?G.popup.closed?PQj(G):iYL(G):o61(G,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},PQj=function(G){G.closedPopupTimeout=_.CMn(100).then(function(){o61(G,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var dsK=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),yrW=function(G,b,I,h,q,l,V,D,k,L){var x=this;this.serviceId=G;this.sessionId=b;this.galService=I;this.oauthDetails=h;this.galLogger=q;this.interactionMode=l;this.redirectServiceUrl=V;this.consentLanguageKeys=D;this.dynamicUrlParameters=k;this.partnerConfigMinReadTimestamp=L;this.started=!1;this.JSC$19820_dataValidator=function(f,
T){var B=dsK.has(T);B||x.redirectServiceUrl===void 0||(B=x.redirectServiceUrl===T);return B?f.sentinel==="gdi":!1}};
yrW.prototype.complete=function(){var G=this,b;return _.c(function(I){if(G.interactionMode!==1)return I.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));b=tT.getRedirectStateFromUri();return b===null?I.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):I.return(rrL(G,b))})};
yrW.prototype.start=function(){var G=this,b;return _.c(function(I){if(G.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.U5(G.oauthDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(G.interactionMode===1)return tT.setLocation(_.U5(G.oauthDetails,1)),I.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));G.started=!0;G.galLogger.logStateTransition(5);
b=tT.getPostMessagePopup(G.JSC$19820_dataValidator);return I.return(b.open(_.U5(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(h){G.started=!1;var q=G.galLogger;if((h==null?void 0:h.error)!==void 0)throw q.logInternalEvent(59),Error("vk");if((h==null?void 0:h.redirect_state)===void 0)throw q.logInternalEvent(131),Error("wk");return rrL(G,h.redirect_state)}).catch(function(h){G.started=
!1;
return h.errorCode!==void 0?{statusCode:h.errorCode,statusMessage:h.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var rrL=function(G,b){return _.c(function(I){return I.return(FlF(G.galService,{serviceId:G.serviceId,sessionId:G.sessionId,dynamicUrlParameters:G.dynamicUrlParameters,redirectState:b,consentLanguageKeys:G.consentLanguageKeys,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp}).then(function(h){var q={statusCode:1,link:pND(h.getLink())};OnD(_.Du(h,3))!==void 0&&(q.callerState=OnD(_.Du(h,3)));G.galLogger.logInternalEvent(134);return q}))})},tT={getPostMessagePopup:function(G){return new zq1(G)},
getRedirectStateFromUri:function(){var G=_.Gt(tT.getLocation()).fragment_;return(new _.Dc(G)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(G){_.xzX(window.location,_.KA(G))},
createOAuthFlow:function(G,b){return new yrW(G.serviceId,G.sessionId,G.galService,b,G.galLogger,G.interactionMode,G.redirectServiceUrl,G.consentLanguageKeys,G.dynamicUrlParameters,G.partnerConfigMinReadTimestamp)}};var HYF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(HYF,_.eo);var WlD=_.Az(HYF);var aie=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),NrW=function(G,b,I,h,q,l,V,D,k){var L=this;this.serviceId=G;this.sessionId=b;this.galService=I;this.gsiWebFlowDetails=h;this.colorScheme=q;this.showCloseOption=l;this.galLogger=V;this.interactionMode=D;this.redirectServiceUrl=k;this.started=!1;this.JSC$19832_dataValidator=function(x,f){var T=aie.has(f);T||L.redirectServiceUrl===
void 0||(T=L.redirectServiceUrl===f);return T?x.sentinel==="gal":!1};
this.logEventProcessor=function(x){return x.result?(x=Yd1(x.result))?CkF(L.galLogger,x):!1:!1}};
NrW.prototype.complete=function(){var G=this,b,I;return _.c(function(h){if(G.interactionMode!==1)return h.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));b=zj.getRedirectStateFromUri();if(b===void 0)return G.galLogger.JSC$19772_logErrorEvent(131),h.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return I=YKK(G,b),h.return(CQ5(G,I))}catch(q){return h.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
NrW.prototype.start=function(){var G=this,b;return _.c(function(I){if(G.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.U5(G.gsiWebFlowDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(G.interactionMode===1)return zj.setLocation(Jr1(G,_.U5(G.gsiWebFlowDetails,1))),I.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
G.started=!0;b=zj.getPostMessagePopup(G.JSC$19832_dataValidator,G.logEventProcessor);return I.return(b.open(Jr1(G,_.U5(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(h){G.started=!1;if((h==null?void 0:h.result)===void 0)throw G.galLogger.JSC$19772_logErrorEvent(131),Error("wk");h=YKK(G,h.result);return CQ5(G,h)}).catch(function(h){G.started=!1;
return h.errorCode!==void 0?{statusCode:h.errorCode,statusMessage:h.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Jr1=function(G,b){G=["result_channel",G.interactionMode===1?"2":"1","color_scheme",Jac(G.colorScheme),"show_close_option",G.showCloseOption];return glW(b,G)},CQ5=function(G,b){if(b!==null&&_.eR(b,Mu,2)){var I,h=b==null?void 0:(I=_.fi(b,Mu,2))==null?void 0:_.gU(I,2);
h&&G.galLogger.JSC$19772_logErrorEvent(RuD(h));return Tr1(_.fi(b,Mu,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:_.U5(b,1)}).then(function(q){q=pND(q);G.galLogger.logInternalEvent(134);return{statusCode:1,link:q}})},YKK=function(G,b){b=WlD(b);
if(!_.eR(b,Mu,2)&&_.U5(b,1)==="")throw G.galLogger.JSC$19772_logErrorEvent(5),Error("xk");return b},zj={getPostMessagePopup:function(G,b){return new zq1(G,b)},
getRedirectStateFromUri:function(){return _.bI(_.Gt(zj.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(G){_.xzX(window.location,_.KA(G))},
createStreamlinedFlow:function(G,b){return new NrW(G.serviceId,G.sessionId,G.galService,b,G.colorScheme,G.showCloseOption,G.galLogger,G.interactionMode,G.redirectServiceUrl)}};var cWK=function(){var G=_.JZX("GAL");this.storage=G?new _.aN(G):null};
cWK.prototype.getSession=function(G){if(this.storage!==null)try{var b=this.storage.get("SAVED_SESSION");if(b===void 0)return null;if(b.serviceId===G)return b}catch(I){}return null};var Klc=function(){};
_.M(Klc,Us9);Klc.prototype.logStateTransition=function(){};
Klc.prototype.logInternalEvent=function(){};
Klc.prototype.JSC$19772_logErrorEvent=function(){};var uZa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(uZa,_.eo);uZa.prototype.getCompletionUrl=function(){return _.U5(this,15)};var Ht=function(G,b,I,h,q,l){this.serviceId=G;this.environment=b;this.sessionId=I;this.colorSchemeSelected=h;this.colorThemeDisplayed=q;this.JSC$19845_transport=l;this.currentState=1};
_.M(Ht,Us9);Ht.prototype.logStateTransition=function(G){var b=Rq3(this);b=_.Tv(b,3,this.currentState);b=_.Tv(b,1,G);this.currentState=G;G=o1K(1);this.dispatch(b,G)};
Ht.prototype.logInternalEvent=function(G){G=o1K(G);this.dispatch(Rq3(this),G)};
Ht.prototype.JSC$19772_logErrorEvent=function(G){var b=Rq3(this);b=_.Tv(b,1,10);G=o1K(G);this.dispatch(b,G)};
var Rq3=function(G){var b=new uZa;b=_.Tv(b,1,G.currentState);b=_.F0(b,7,G.serviceId);var I,h;var q=((I=window)==null?0:(h=I.location)==null?0:h.href)?_.Gt(window.location.href).JSC$10105_domain_:"NO_PACKAGE_NAME";I=_.F0(b,8,q);I=_.Tv(I,6,G.environment);I=_.F0(I,5,"100");I=_.Tv(I,11,G.colorSchemeSelected);return _.Tv(I,12,G.colorThemeDisplayed)};
Ht.prototype.dispatch=function(G,b){b===void 0&&(b=new _.vZ);var I=b;G=G.serialize();I=_.F0(I,8,G);_.y9(I,12,this.sessionId);this.JSC$19845_transport.dispatch(b)};var n6W=function(G,b){this.loggerType=G;this.sessionIndex=b!=null?b:0},OYK;
n6W.prototype.create=function(G,b,I,h,q){switch(this.loggerType){case 0:return new Klc;case 1:return OYK||(OYK=(new _.A2(555,this.sessionIndex.toString())).build()),new Ht(G,b,I,h,q,OYK);default:_.Eu(this.loggerType,"unknown logger type")}};var oy=[6,2,3,1],fac=new Map([[4,1],[1,6],[2,2],[3,3]]),GZF={statusCode:7,statusMessage:"Failed to create flow object"},VKj=function(G,b,I,h,q,l,V,D,k,L){this.serviceId=G;this.sessionId=b;this.config=I;this.galService=h;this.JSC$19852_linkingSession=q;this.googleScopes=l;this.callerState=V;this.consentLanguageKeys=D;this.dynamicUrlParameters=k;this.partnerConfigMinReadTimestamp=L;this.currentFlow=0;h=this.JSC$19852_linkingSession;q=new Set;_.eR(h,jZK,1)&&q.add(1);_.eR(h,UHe,2)&&_.eR(h,la9,6)&&q.add(2);
_.eR(h,BIK,3)&&_.eR(h,la9,6)&&q.add(3);_.eR(h,xHe,4)&&q.add(6);this.supportedFlows=q;h=I.loggerType;q=I.clientEnvironment;a:{l=I.colorScheme;switch(l){case 0:l=1;break a;case 1:l=2;break a;case 2:l=3;break a;default:_.Eu(l)}l=void 0}a:{V=I.colorScheme;V=Ara(V);switch(V){case 0:V=1;break a;case 1:V=2;break a;default:_.Eu(V)}V=void 0}this.galLogger=(new n6W(h,I.authUser)).create(G,q,b,l,V)},E6c=function(G){return new Promise(function(b){var I,h,q,l,V,D,k,L,x,f;
return _.c(function(T){switch(T.nextAddress){case 1:I=mtF(G.currentFlow,G.supportedFlows),h=!1,q=new Mb8(G.JSC$19852_linkingSession,G.config.dataUsageNoticeConfig);case 2:if(I===void 0){T.jumpTo(4);break}_.gm(T,5);var B=q,A=I,t=void 0;h?A===1&&(t=B.displayInfoMap.get(2)):A===2||A===3?t=B.displayInfoMap.get(1):A===1&&(t=B.displayInfoMap.get(3));l=t?t:[];V=G.consentLanguageKeys;D=_.e(l);k=D.next();case 7:if(k.done)return G.currentFlow=I,T.yield(Ia3(wOL(G,V)),11);L=k.value;return T.yield(noj(L,G.config.dataUsageNoticeConfig.uiAdapter,
G.config.colorScheme,G.galLogger),10);case 10:x=T.yieldResult;if(x.statusCode!==1)return kZK(G.serviceId),G.currentFlow=0,b(Z6({statusCode:x.statusCode,statusMessage:x.statusMessage},G.callerState)),T.return();x.consentLanguageKeys!==void 0&&(V=x.consentLanguageKeys);k=D.next();T.jumpTo(7);break;case 11:f=T.yieldResult;if(f.statusCode!==10)return f.statusCode!==6&&(kZK(G.serviceId),G.currentFlow=0),f.statusCode!==1&&G.callerState!==void 0&&(f.callerState=G.callerState),b(f),T.return();_.hF(T,6);break;
case 5:_.zf(T);case 6:I=mtF(G.currentFlow,G.supportedFlows);h=!0;T.jumpTo(2);break;case 4:kZK(G.serviceId),G.currentFlow=0,b(Z6({statusCode:12,statusMessage:"Linking failed"},G.callerState)),_.ip(T)}})})},QZW=function(G,b,I){G.currentFlow=b;
return hm9(wOL(G,I)).then(function(h){return h.statusCode===10&&G.config.interactionMode===1&&mtF(G.currentFlow,G.supportedFlows)!==void 0?E6c(G):h})},wOL=function(G,b){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:b,dynamicUrlParameters:G.dynamicUrlParameters,showCloseOption:G.config.showCloseOption,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp},currentFlow:G.currentFlow,config:G.config,session:G.JSC$19852_linkingSession,googleScopes:G.googleScopes,callerState:G.callerState}};var BQ1=function(G,b){this.config=G;this.galService=b.getService();this.JSC$19865_galRepository=b.JSC$19883_galRepository};
BQ1.prototype.getLink=function(G,b){return pOf(this,G,b)};
var pOf=function(G,b,I){return G.JSC$19865_galRepository.getLink({serviceId:b,scopes:void 0,capabilities:void 0,linkName:I}).then(function(h){return{statusCode:1,link:h}}).catch(function(h){return{statusCode:TQe(h.code),
statusMessage:h.message}})};
BQ1.prototype.deleteLink=function(G,b){return this.JSC$19865_galRepository.deleteLink(G,this.config.accountLinkingEntryPoint,b).then(function(){return{statusCode:1}}).catch(function(I){return{statusCode:TQe(I.code),
statusMessage:I.message}})};
BQ1.prototype.startLinkingSession=function(G){var b=G.serviceId;var I=G.sessionId;return Dt5({serviceId:b,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 Wt=function(G,b,I,h,q,l,V){this.apiKey=b;this.authUser=I;this.oauthToken=h;this.bucket=q;this.locale=l;this.galSdkEventHandler=V;if(h===void 0){if(b===void 0)throw Error("yk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new eqY(G)};
Wt.prototype.deleteLink=function(G){var b=G.serviceId;var I=G.sessionId;var h=G.accountLinkingEntryPoint;var q=G.linkName;var l=this,V;return _.c(function(D){var k=(new o2).setHeader(l.getHeader(I));var L=SK5({serviceId:b,linkName:q});k=_.ZK(k,2,L);V=_.zd(k,3,h);return D.return(l.makeRequest(l.galServiceClient.deleteLink,V,[1,3],[2,4]))})};
var FlF=function(G,b){var I=b.serviceId;var h=b.sessionId;var q=b.dynamicUrlParameters;var l=b.redirectState;var V=b.consentLanguageKeys;var D=b.partnerConfigMinReadTimestamp;var k;return _.c(function(L){var x=(new dA).setHeader(G.getHeader(h,q));x=_.yq(x,2,I);k=_.yq(x,4,l);V!==void 0&&_.yq(k,5,V);D!==void 0&&_.ZK(k,6,D);return L.return(G.makeRequest(G.galServiceClient.JSC$19751_finishOAuth,k,[1,3],[2,4]))})};
Wt.prototype.getLink=function(G){var b=G.serviceId;var I=G.sessionId;var h=G.scopes;var q=G.capabilities;var l=G.consistencyKey;var V=G.linkName;var D=this,k;return _.c(function(L){var x=(new y5).setHeader(D.getHeader(I)),f=SK5({serviceId:b,scopes:h,capabilities:q,linkName:V});k=_.ZK(x,2,f);l!==void 0&&(x=ha1(),x=_.yq(x,2,l),_.ZK(k,3,x));return L.return(D.makeRequest(D.galServiceClient.getLink,k,[1,3],[2,4]))})};
var q25=function(G,b){var I=b.serviceId;var h=b.sessionId;var q=b.googleScopes;var l=b.consistencyKey;var V;return _.c(function(D){var k=(new Pt).setHeader(G.getHeader(h));k=_.yq(k,2,I);var L=Array.from(q.values());k=_.G7(k,3,L,_.Ta);L=ha1();L=_.yq(L,2,l);V=_.ZK(k,4,L);return D.return(G.makeRequest(G.galServiceClient.JSC$19751_depositGoogleCredential,V,[1,3],[2,4]))})};
Wt.prototype.startLinkingSession=function(G){var b=G.serviceId;var I=G.sessionId;var h=G.scopes;var q=G.capabilities;var l=G.loginHint;var V=G.supportedFlows;var D=G.completionUrl;var k=G.usePingPong;var L=G.twoWayLinking;var x=G.accountLinkingEntryPoint;var f=G.callerState;var T=G.consentLanguageKeys;var B=G.googleScopes;var A=G.dataUsageNoticeConfig;var t=G.linkName;var y=G.dynamicUrlParameters;var F=G.partnerConfigMinReadTimestamp;var W=this,O,K;return _.c(function(u){if(q!==void 0&&h!==void 0)throw Error("uk");
var w=(new Aw8).setHeader(W.getHeader(I,y));O=_.yq(w,2,b);t!==void 0&&_.yq(O,14,t);if(q!==void 0){w=O;var $a=Array.from(q.values());_.G7(w,5,$a,_.Ta)}else h!==void 0&&(w=O,$a=Array.from(h.values()),_.G7(w,3,$a,_.Ta));D!==void 0&&_.yq(O,6,D);k!==void 0&&_.fv(O,15,k);V!==void 0&&(w=O,$a=Array.from(V.values()),_.G7(w,4,$a,_.qf));if(L!==void 0){if(L&&(!B||B.size===0))throw Error("zk");_.fv(O,8,L)}x!==void 0&&_.zd(O,9,x);l!==void 0&&_.yq(O,13,l);f!==void 0&&(w=O,$a=(new TextEncoder).encode(f),_.bl(w,12,
_.yi($a,!1),_.dz()));T!==void 0&&_.yq(O,16,T);F!==void 0&&_.ZK(O,18,F);if(A!==void 0&&A.size>0||B!==void 0&&B.size>0)K=new gjY,B!==void 0&&B.size>0&&(w=K,$a=Array.from(B.values()),_.G7(w,1,$a,_.Ta)),A!==void 0&&(A.has(0)&&_.Y1v(K,2,_.qf,1,_.lF),A.has(1)&&_.Y1v(K,2,_.qf,2,_.lF)),_.ZK(O,17,K);return u.return(W.makeRequest(W.galServiceClient.startLinkingSession,O,[1],[2]))})};
Wt.prototype.getMetadata=function(){var G=this,b,I;return _.c(function(h){b={};G.useFpa?(b["X-Goog-Api-Key"]=G.apiKey,b["X-Goog-AuthUser"]=G.authUser!==void 0?G.authUser.toString():"0",(I=_.vyB([]))&&(b.Authorization=I)):b.Authorization="Bearer "+G.oauthToken;G.locale&&(b["accept-language"]=G.locale);return h.return(b)})};
Wt.prototype.makeRequest=function(G,b,I,h){var q=this,l;return _.c(function(V){if(V.nextAddress==1)return V.yield(q.getMetadata(),2);l=V.yieldResult;XOa(q,I);return V.return(G.bind(q.galServiceClient)(b,l).finally(function(){XOa(q,h)}))})};
var XOa=function(G,b){G.galSdkEventHandler!==void 0&&b.forEach(function(I){G.galSdkEventHandler.onEvent(I)})};
Wt.prototype.getHeader=function(G,b){var I=new Z3;G=_.bl(I,2,_.e8(G),0);G=_.zd(G,5,3);b=_.G7(G,8,b,_.Ta);this.bucket!==void 0&&_.yq(b,1,this.bucket);return b};
var SK5=function(G){var b=G.serviceId;var I=G.scopes;var h=G.capabilities;G=G.linkName;if(h!==void 0&&I!==void 0)throw Error("uk");var q=new bFK;b=_.yq(q,1,b);h!==void 0?(I=Array.from(h.values()),_.G7(b,5,I,_.Ta)):I!==void 0&&(I=Array.from(I.values()),_.G7(b,3,I,_.Ta));G!==void 0&&_.yq(b,6,G);return b};var Ute=function(G){this.galService=new Wt(G.alsDomain,G.apiKey,G.authUser,G.oauthToken,G.bucket,G.locale,G.galSdkEventHandler);this.JSC$19883_galRepository=new ZY5(this.galService)};
Ute.prototype.getService=function(){return this.galService};var $Ze=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M($Ze,_.eo);var GQa=function(G){var b=new $Ze;return _.Tv(b,1,G)};
$Ze.prototype.setErrorMessage=function(G){return _.F0(this,2,G)};var bbL=[0,_.Xc,_.RR,_.Xc];var a2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(a2,_.eo);var If8=[0,[1,2,3],_.E5,[0,_.UfX,_.HvY,-1],_.E5,[0,x3a,-1],_.O5];var hG1=[0,_.JJ,1,_.Xc,_.RR,-1,1,_.pp,_.aR,_.Xc,-1,If8];var qUF=[0,_.Xc,[0,_.pp,_.aR,[0,_.RR]],_.Kp,[0,_.Xc,-1]];var Lr=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Lr,_.eo);var jVY=[0,_.RR,_.Xc,-2,_.JJ,_.Xc,_.JJ,_.Xc,-2,1,_.Kp];var lf3=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(lf3,_.eo);var mZa=[0,_.JJ];var eGF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(eGF,_.eo);var VIK=[0,_.Xc,qUF,mZa,jVY,hG1];var hRK=_.T7(eGF,VIK);var DZ5=[0,VbW];var DLa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(DLa,_.eo);var csj=[0,[1,3],BYf,_.Xc,BYf];var Vgf=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Vgf,_.eo);var kQ1=[0,_.Xc];var vfD=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(vfD,_.eo);var cKe=function(G){return _.Zu(G,$Ze,2,vt)},L4L=function(G){var b=new vfD;
return _.tz(b,2,vt,G)},vt=[1,
2];var QVW=[0,vt,_.E5,kQ1,_.E5,bbL,_.wU,csj,1,_.Xc,DZ5];var xZK=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(xZK,_.eo);var T08=function(G){var b=new xZK;return _.tz(b,3,ff8,G)},ff8=[2,
3];var B0K=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(B0K,_.eo);var UZ5=function(G,b){return _.ZK(G,2,b)},sVL=function(G,b){return _.ZK(G,8,b)},gfL=function(G,b){return _.ZK(G,3,b)};var As8=[0,_.Xc,QVW,VIK,_.hK,[0,[5,6,7],[0,_.Xc,-2],[0,_.JJ,_.Xc,_.RR],[0,If8],[0,_.RR,_.Xc,-1,_.IT,_.Xc],_.E5,[0,[0,_.JJ],_.Xc,-1],_.E5,[0,[3,4],_.Xc,-1,_.E5,[0,[0,_.Xc,_.Kp]],_.E5,[0,[0,[0,[1,2,3],_.E5,[0],_.E5,[0],_.E5,[0]]]]],_.E5,[0,_.Xc]],_.hK,-1,[0,ff8,_.Xc,_.E5,kQ1,_.E5,bbL,_.wU,csj,[0,VbW]]];var MIF=_.T7(B0K,As8),ZbW=_.Uv(As8);var tID=function(){_.FN.call(this)};
_.M(tID,_.FN);tID.prototype.init=function(){};
new tID;var zGL=_.WP(["data-"]),of9=_.WP(["aria-"]),ib8=_.WP(["aria-"]),Nx=function(G,b){this.isLatencyMeasurementExperiment=G===void 0?!1:G;this.enableDialogA11yFix=b===void 0?!1:b;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.Van(_.hd.location.href)},jT9=function(G,b){G.onConsentPrimitiveShownCallback=b},PC3=function(G,b){return G.overriddenIframeLoadTimeout?G.overriddenIframeLoadTimeout:b!==void 0?b:5E3},mL3=function(G){if(G.prewarmPromise!==void 0)return G.prewarmPromise;
G.prewarmPromise=new Promise(function(b,I){YH(G,1);dZY(G,ysF(G,!0),rs1(G));G.iframe?G.prewarmChannel||F4a(G,G.iframe,b):I(Error("Ak"))});
G.prewarmPromise.finally(function(){G.prewarmPromise=void 0});
return G.prewarmPromise};
Nx.prototype.showPrimitive=function(){var G=this;if(this.consentPromise!==void 0)return this.consentPromise;var b=Date.now();Hb9(this,b);this.consentPromise=new Promise(function(I,h){YH(G,0,b);var q=G.isDarkTheme();G.isLatencyMeasurementExperiment||G.initialLoadingStrategy===1||G.initialLoadingStrategy===2||(G.loadingBar||(G.loadingBar=MKK(getComputedStyle(document.body).direction==="rtl",q),G.loadingBar.style.position="fixed",G.loadingBar.style.zIndex="15000"),document.body.appendChild(G.loadingBar));
dZY(G,ysF(G),rs1(G));G.iframe?G.channel||W48(G,G.iframe,I,h):(afD(G),h(Error("Ak")))});
this.consentPromise.finally(function(){G.consentPromise=void 0});
return this.consentPromise};
var W48=function(G,b,I,h){var q,l;_.c(function(V){switch(V.nextAddress){case 1:YH(G,3);q=!1;setTimeout(function(){if(!q){afD(G);N09(G);YUK(G);var D=GQa(7).setErrorMessage("Timeout connecting to iframe");I(sVL(UZ5(new B0K,L4L(D)),T08(D)))}},PC3(G,CCe(G)));
if(!G.prewarmPromise){V.jumpTo(2);break}_.gm(V,3);return V.yield(G.prewarmPromise,5);case 5:_.hF(V,2);break;case 3:_.zf(V),l=GQa(4).setErrorMessage("Error while prewarming."),I(sVL(UZ5(new B0K,L4L(l)),T08(l)));case 2:G.prewarmChannel&&G.prewarmChannel.send(ZbW(gfL(new B0K,G.consentPrimitiveRequest))),G.channel=_.Ie({destination:G.win,iframe:b,origin:JsK(G),channelName:"cpw",onEstablished:function(){q=!0;afD(G);G.isLatencyMeasurementExperiment||(G.JSC$19912_previousBodyOverflow=document.body.style.overflow,
G.JSC$19912_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,G.JSC$19912_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 D=G.iframe;D.style.bottom="0";D.style.position="fixed";D.style.right="0";D.style.border="none";D.style.left="0";D.style.top=
"0";D.style.zIndex="5000";D.style.pointerEvents="";D.style.visibility="";G.initialLoadingStrategy===2||G.initialLoadingStrategy===3?YH(G,4):YH(G,6);var k;(k=G.onConsentPrimitiveShownCallback)==null||k.call(G)},
onMessage:function(D){D=MIF(D.data);switch(_.gU(D,1)){case 1:N09(G);var k=ZMK(_.fi(D,_.U4,7));k&&(G.initialLoadingStrategy!==2&&G.initialLoadingStrategy!==3||YH(G,6,k),YH(G,5,k));if(k=ZMK(_.fi(D,_.U4,6)))YH(G,7,k),YH(G,8);var L,x;((L=_.fi(D,vfD,2))==null?void 0:_.kY(L,vt))!==0&&((x=_.fi(D,xZK,8))==null?void 0:_.kY(x,ff8))!==0||h(Error("Bk"));I(D);break;case 2:YUK(G)}}}),_.ip(V)}})},F4a=function(G,b,I){G.prewarmChannel=_.Ie({destination:G.win,
iframe:b,origin:JsK(G),channelName:"pwcp",onEstablished:function(){YH(G,2);I()}})},JsK=function(G){var b=_.yM(G.src).toString();
return b&&b.indexOf("://")<0&&b.indexOf("//")!==0?G.origin:_.Van(b)},ysF=function(G,b){b=b===void 0?!1:b;
var I,h=new Map([["origin",G.origin],["hl",(I=K4c(G))!=null?I:null]]);b&&h.set("pw","1");b=_.e([["cpr",G.consentPrimitiveRequest.serialize()]]);for(I=b.next();!I.done;I=b.next()){var q=_.e(I.value);I=q.next().value;q=q.next().value;h.set(I,q)}G.isDarkTheme()&&h.set("color_scheme","dark");return _.Ug(G.src,h)},afD=function(G){G.isLatencyMeasurementExperiment||G.loadingBar&&document.body.removeChild(G.loadingBar)};
Nx.prototype.getSrc=function(){var G=_.VE(this.origin),b;var I=(b=_.fi(this.consentPrimitiveRequest,lf3,3))==null?void 0:_.LT(b,1);b="consent.google.com";I=I?"/u/"+encodeURIComponent(I.toString()):"";(G==null?0:G.endsWith("youtube.com"))?b="consent.youtube.com":(G=G==null?void 0:G.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(b="consent.google."+((G[1]?"co.":"")+encodeURIComponent(G[2])));return _.Pg("https://"+b+"/signedin"+I+"/landing")};
var dZY=function(G,b,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"),_.$T(G.iframe,b),G.iframe.setAttribute("jsname","C5o1O"),u_D(G.iframe),document.body.appendChild(G.iframe))},u_D=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"},N09=function(G){G.iframe&&(G.isLatencyMeasurementExperiment||(G.JSC$19912_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=G.JSC$19912_previousHtmlOverscroll),G.JSC$19912_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=G.JSC$19912_previousBodyOverscroll),G.JSC$19912_previousBodyOverflow!==
void 0&&(document.body.style.overflow=G.JSC$19912_previousBodyOverflow),G.enableDialogA11yFix&&RG8(G,!1)),u_D(G.iframe))};
Nx.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(RG8(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var RG8=function(G,b){var I,h,q=(I=G.iframe)==null?void 0:(h=I.parentElement)==null?void 0:h.children;if(q)for(I=0;I<q.length;I++)h=q[I],h!==G.iframe&&(b?(h.hasAttribute("aria-hidden")&&_.Vs([_.fy(zGL)],h,"data-old-aria-hidden",h.getAttribute("aria-hidden")),_.Vs([_.fy(of9)],h,"aria-hidden","true")):(h.removeAttribute("aria-hidden"),h.hasAttribute("data-old-aria-hidden")&&(_.Vs([_.fy(ib8)],h,"aria-hidden",h.getAttribute("data-old-aria-hidden")),h.removeAttribute("data-old-aria-hidden"))))},YH=function(G,
b,I){var h;
(h=G.latencyCallback)==null||h.call(G,{latencyType:b,timestampEpochMillis:I!=null?I:Date.now()})};var nfF=function(G,b,I){Nx.call(this,b,I===void 0?!1:I);this.consentPrimitiveRequest=G;G=K4c(this);_.zrW(G);this.src=this.getSrc();var h;this.initialLoadingStrategy=(h=_.fi(this.consentPrimitiveRequest,Lr,4))==null?void 0:_.gU(h,4)},ObY;
_.M(nfF,Nx);var qnc=function(G){var b=_.U("enable_primitive_dialog_aria_hide_siblings");G={request:G,enableDialogA11yFix:b===void 0?!1:b};ObY||(ObY=new nfF(G.request,G.isLatencyMeasurementExperiment||_.gU(G.request,1)===2,G.enableDialogA11yFix));return ObY},K4c=function(G){var b;
return(b=_.fi(G.consentPrimitiveRequest,Lr,4))==null?void 0:_.U5(b,1)},Hb9=function(G,b){if(!_.eR(G.consentPrimitiveRequest,a2,5)){var I=G.consentPrimitiveRequest,h=new a2;
_.ZK(I,5,h)}var q;if((q=_.fi(G.consentPrimitiveRequest,a2,5))==null||_.r5s(_.mI(q,8))==null){var l;(l=_.fi(G.consentPrimitiveRequest,a2,5))!=null&&_.y9(l,8,b)}},rs1=function(G){var b;
return(b=_.fi(G.consentPrimitiveRequest,a2,5))==null?void 0:_.LT(b,1)};
nfF.prototype.isDarkTheme=function(){var G;return((G=_.fi(this.consentPrimitiveRequest,Lr,4))==null?void 0:_.gU(G,2))===2};
var CCe=function(G){var b;return((b=_.fi(G.consentPrimitiveRequest,Lr,4))==null?void 0:_.LT(b,5))||void 0},YUK=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);ObY=void 0},eRL=function(G){return Nx.prototype.showPrimitive.call(G).then(function(b){return _.fi(b,vfD,2)})};for(var Cr={},wBF=(Cr[64]="ma",Cr[73]="ogb",Cr[89]="cr",Cr[21]="test",Cr[0]="unkn",Cr[137]="con",Cr[155]="hl",Cr[78]="yt",Cr[171]="lp",Cr[172]="ap",Cr[177]="amo",Cr[178]="pqe",Cr[74]="gg",Cr[1]="gm",Cr[140]="am",Cr[193]="sc",Cr),Ef1=_.e(Object.keys(wBF)),pBF=Ef1.next();!pBF.done;pBF=Ef1.next());var SU5=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(SU5,_.eo);var XB1=[0,[2,3,4],_.Xc,Qwf,BYf,_.O5];var $jL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M($jL,_.eo);var GWa=_.T7($jL,[0,_.$4,_.RR,_.Xc,_.RR,_.Xc,XB1]);var bmW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(bmW,_.eo);bmW.prototype.getCommand=function(){return _.gU(this,1)};
var IRY=function(){var G=new bmW;return _.zd(G,1,0)};var hX1=_.Uv([0,_.$4,_.RR,[0,_.Xc,_.RR,-1]]);var qL1=new _.BZ("s"),jaY=new _.BZ("t"),lR5=new _.BZ("u"),mjD=new _.BZ("v"),eXL=function(G,b,I){_.Un.call(this,qL1);this.mediaKey=G;this.photoUrl=b;this.photoSource=I};
_.M(eXL,_.Un);var V6j=function(){_.Un.call(this,jaY)};
_.M(V6j,_.Un);var Dj3=function(G){G=G===void 0?!1:G;_.Un.call(this,lR5);this.isError=G};
_.M(Dj3,_.Un);var cea=function(){_.Un.call(this,mjD)};
_.M(cea,_.Un);var kWY=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,xjK=function(G){if(typeof G=="string"){if(G.charAt(0)==".")return vFe(G.substr(1));if(G.charAt(0)=="["){var b=kWY.exec(G);G=G.indexOf("=")==-1?void 0:b[3];return LSY(b[1],G)}return QaF(G)}return G},vFe=function(G){return function(b){return b.getAttribute&&_.On(b,G)}},LSY=function(G,b){return function(I){return b!==void 0?I.getAttribute&&I.getAttribute(G)==b:I.hasAttribute&&I.hasAttribute(G)}},QaF=function(G){G=G.toUpperCase();
return function(b){return(b=b.tagName)&&b.toUpperCase()==G}},fR3=function(){return!0};var J0=function(G,b){this.JSC$19940_key_=G;this.JSC$19940_value_=b},TS1=function(G){throw Error("Ck`"+G.JSC$19940_key_);
},BSY=function(G,b){return new TypeError("Dk`"+b+"`"+G.JSC$19940_key_+"`"+G.JSC$19940_value_+"`"+typeof G.JSC$19940_value_)};
J0.prototype.string=function(G){return arguments.length==0?Uj1(this):sac(this,G)};
var sac=function(G,b){var I;return(I=gFY(G))!=null?I:b},Uj1=function(G){var b=gFY(G);
b===null&&TS1(G);return b},gFY=function(G){var b=G.JSC$19940_value_;
if(b==null)return null;if(typeof b==="string")return b;throw BSY(G,"string");};
J0.prototype.bool=function(G){if(arguments.length==0){var b=this.optionalBool();b===null&&TS1(this)}else{var I;b=(I=this.optionalBool())!=null?I:G}return b};
J0.prototype.optionalBool=function(){var G=this.JSC$19940_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 BSY(this,"boolean");};
J0.prototype.number=function(G){if(arguments.length==0){var b=AeD(this);b===null&&TS1(this)}else b=M68(this,G);return b};
var M68=function(G,b){var I;return(I=AeD(G))!=null?I:b},AeD=function(G){var b=G.JSC$19940_value_;
if(b==null)return null;if(typeof b==="number")return b;if(typeof b==="string"){var I=Number(b);if(!isNaN(I)&&(I!==0||b.trim().length!==0))return I}throw BSY(G,"number");};
J0.prototype.toString=function(){return Uj1(this)};
J0.prototype.enum=function(G,b){var I=!0,h=void 0,q;for(q in G){var l=G[q];I&&(I=!1,h=typeof l==="number"?M68(this,b):sac(this,b));if(l==h)return h}JSON.stringify(G);return h};
J0.prototype.array=function(G){if(arguments.length==0){var b=ZmW(this);b===null&&TS1(this);return b}b=ZmW(this);return b==null?G:b};
var ZmW=function(G){var b=G.JSC$19940_value_;if(b==null)return null;Array.isArray(b)||(typeof b!=="string"?b=[b]:(b=b.trim(),b=b==""?[]:b.split(",").map(function(I){return I.trim()})));
return t65(G,b)},t65=function(G,b){var I=G.JSC$19940_key_+"[";
return Array.from(b,function(h,q){return new J0(I+q+"]",h)})};
J0.prototype.object=function(G){var b=this.JSC$19940_value_;if(b==null)return G===void 0&&TS1(this),G;if(typeof b==="object"&&b.constructor===Object){G={};var I=this.JSC$19940_key_+".",h;for(h in b)G[h]=new J0(I+h,b[h]);return G}throw BSY(this,"object");};var Kr=function(G){this.list_=zXW(G)},zXW=function(G){if(G instanceof Kr)G=G.list_;
else if(G[0]instanceof Kr){for(var b=new Set,I=0;I<G.length;I++)for(var h=_.e(G[I].list_),q=h.next();!q.done;q=h.next())b.add(q.value);G=b}return[].concat(_.Nz(G))};
_.m=Kr.prototype;_.m.each=function(G,b,I){((I===void 0?0:I)?KND:_.hB)(this.list_,G,b);return this};
_.m.size=function(){return this.list_.length};
_.m.isEmpty=function(){return this.list_.length===0};
_.m.get=function(G){return this.list_[G]||null};
_.m.el=function(){return this.list_[0]||null};
_.m.map=function(G,b){return _.Ky(this.list_,G,b)};
_.m.equals=function(G){return this===G||_.pO(this.list_,G.list_)};
_.m.first=function(){return this.list_.length==0?null:new uf(this.list_[0])};
_.m.last=function(){return this.list_.length==0?null:new uf(this.list_[this.list_.length-1])};
_.m.find=function(G){var b=[];this.each(function(I){I=I.querySelectorAll(String(G));for(var h=0;h<I.length;h++)b.push(I[h])});
return new Kr(b)};
_.m.parent=function(){var G=[];this.each(function(b){(b=b.parentElement||null)&&!_.Ya(G,b)&&G.push(b)});
return new Kr(G)};
_.m.children=function(){var G=[];this.each(function(b){b=_.Hm(b);for(var I=0;I<b.length;I++)G.push(b[I])});
return new Kr(G)};
_.m.filter=function(G){G=_.EE(this.list_,xjK(G));return new Kr(G)};
_.m.closest=function(G){var b=[],I=xjK(G),h=function(q){return _.mG(q)&&I(q)};
this.each(function(q){(q=_.wV(q,h,!0))&&!_.Ya(b,q)&&b.push(q)});
return new Kr(b)};
_.m.next=function(G){return oFL(this,_.tSb,G)};
_.m.prev=function(G){return oFL(this,U3D,G)};
var oFL=function(G,b,I){var h=[];var q=I?xjK(I):fR3;G.each(function(l){(l=b(l))&&q(l)&&h.push(l)});
return new Kr(h)};
Kr.prototype.setClass=function(G){return this.each(function(b){_.n4(b,G)})};
var imj=function(G,b){return G.each(function(I){_.Hv(I,b)})},Pz9=function(G,b){return G.each(function(I){_.r5(I,b)})};
Kr.prototype.toggleClass=function(G,b){return b===!0?imj(this,G):b===!1?Pz9(this,G):this.each(function(I){_.On(I,G)?_.r5(I,G):_.Hv(I,G)})};
Kr.prototype.setText=function(G){return this.each(function(b){_.Wm(b,G)})};
var djj=function(G){G.each(function(b){b.removeAttribute("aria-hidden")})};
Kr.prototype.getStyle=function(G){if(this.list_.length>0){var b=this.list_[0],I=b.style[_.ju(G)];return typeof I!=="undefined"?I:b.style[_.Ygi(b,G)]||""}};
Kr.prototype.getData=function(G){if(this.list_.length===0)return new J0(G,null);var b=w59(this.list_[0],G);return new J0(G,b)};
Kr.prototype.focus=function(G){try{G?this.el().focus(G):this.el().focus()}catch(b){}return this};
Kr.prototype.click=function(){var G=_.ny(this.el());if(G.createEvent){var b=G.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,G.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(b)}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 R2=function(G,b,I,h){function q(D,k,L){var x=k;k&&k.parentNode&&(x=k.cloneNode(!0));D(x,L)}
h=h===void 0?!1:h;if(G.list_.length==1){var l=G.list_[0],V=function(D){return b(D,l)};
I instanceof Kr?I.each(V,void 0,h):Array.isArray(I)?(h?KND:_.hB)(I,V):V(I);return G}return G.each(function(D){I instanceof Kr?I.each(function(k){q(b,k,D)}):Array.isArray(I)?_.hB(I,function(k){q(b,k,D)}):q(b,I,D)})};
_.m=Kr.prototype;_.m.append=function(G){return R2(this,function(b,I){b&&I.appendChild(b)},G)};
_.m.appendTo=function(G){(new Kr([G])).append(this);return this};
_.m.remove=function(){return R2(this,function(G,b){_.iG(b)},null)};
_.m.empty=function(){return R2(this,function(G,b){_.yN(b)},null)};
_.m.after=function(G,b){return R2(this,function(I,h){I&&_.Fi(I,h)},G,!(b===void 0||b))};
_.m.before=function(G){return R2(this,function(b,I){b&&_.rt(b,I)},G)};
_.m.replaceWith=function(G){return R2(this,function(b,I){b&&_.A4n(b,I)},G)};
_.m.toggle=function(G){return this.each(function(b){_.hf(b,G)})};
_.m.show=function(){return this.toggle(!0)};
_.m.hide=function(){return this.toggle(!1)};
_.m.trigger=function(G,b,I,h){return yec(this,G,b,I,h)};
var yec=function(G,b,I,h,q){return G.each(function(l){_.Qbj(_.ny(l)).triggerWizEventInternal(l,b,I,h,q)})},uf=function(G,b){G instanceof Kr&&(b=G.list_,G=null);
this.list_=zXW(G!=null?[G]:b)};
_.OE(uf,Kr);_.m=uf.prototype;_.m.children=function(){return new Kr(Array.prototype.slice.call(_.Hm(this.list_[0])))};
_.m.each=function(G,b){G.call(b,this.list_[0],0);return this};
_.m.size=function(){return 1};
_.m.el=function(){return this.list_[0]};
_.m.first=function(){return this};var nr=function(G,b){b=b===void 0?window:b;this.hostId=G;this.win=b;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$19951_previousHtmlOverscroll=this.JSC$19951_previousBodyOverscroll=this.JSC$19951_previousBodyOverflow="";this.eventTarget=new _.Z$;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},Hm9=function(G){var b=
re9(re9(re9(new FS3(78),"po"),"hppp"),"hhc");
b.authUser=Number(_.wy("SESSION_INDEX","0"));b.colorScheme=G;return b};
nr.prototype.getOrigin=function(){return this.origin?this.origin:_.jP(_.qR(_.h$(new _.a3,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
nr.prototype.getTargetOrigin=function(){return _.jP(_.qR(_.h$(new _.a3,this.scheme),this.domain),this.port)};
nr.prototype.preloadIframe=function(G){var b=this;if(this.iframeLoadPromise===void 0){var I=document.createElement("iframe");this.iframe=I;yWe(I,G);this.iframeLoadPromise=new Promise(function(h,q){var l=!1,V=function(D){D.stopPropagation();I.removeEventListener("error",V);I.removeEventListener("securitypolicyviolation",V);q(Error("Ek",{cause:D}))};
I.addEventListener("error",V);I.addEventListener("securitypolicyviolation",V);setTimeout(function(){l||q(Error("Fk"))},3E4);
WS5(b,I,function(){l=!0;I.removeEventListener("error",V);I.removeEventListener("securitypolicyviolation",V);h()})});
aR9(this);G=this.getTargetOrigin().toString();I.setAttribute("allow","camera "+G+"; display-capture "+G);this.parentElement.appendChild(I)}return this.iframeLoadPromise};
var CzL=function(G,b){var I,h;return _.c(function(q){if(q.nextAddress==1)return I=MKK(getComputedStyle(G.parentElement).direction==="rtl"),G.parentElement.appendChild(I),document.activeElement instanceof HTMLElement&&(G.elementToFocusAfterClose=document.activeElement),_.gm(q,2),q.yield(G.preloadIframe(b),4);if(q.nextAddress!=2){G.parentElement.removeChild(I);G.JSC$19951_previousBodyOverflow=G.parentElement.style.overflow;G.JSC$19951_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
G.JSC$19951_previousBodyOverscroll=G.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";G.parentElement.style.overscrollBehavior="contain";G.parentElement.style.overflow="hidden";var l=G.iframe;l.style.bottom="0";l.style.border="none";l.style.height="100%";l.style.left="0";l.style.position=G.iframePosition;l.style.right="0";l.style.top="0";l.style.width="100%";l.style.zIndex="2202";l.setAttribute("aria-hidden","false");l.setAttribute("aria-modal","true");
G.opened=!0;NSe(G);return _.hF(q,0)}h=_.zf(q);G.parentElement.removeChild(I);iMF(G.isDarkTheme());YLK(G,!1);throw Error("Gk",{cause:h});})},YLK=function(G,b){b=b===void 0?!0:b;
G.iframe!==void 0&&(JeY(G),document.documentElement.style.overscrollBehavior=G.JSC$19951_previousHtmlOverscroll,G.parentElement.style.overscrollBehavior=G.JSC$19951_previousBodyOverscroll,G.parentElement.style.overflow=G.JSC$19951_previousBodyOverflow,G.elementToFocusAfterClose!==void 0&&(G.elementToFocusAfterClose.focus(),G.elementToFocusAfterClose=void 0),b?aR9(G):(G.parentElement.removeChild(G.iframe),G.iframe=void 0,G.iframeLoadPromise=void 0,G.mainChannel=void 0),G.opened=!1)},JeY=function(G){G.backgroundElementsAriaHiddenIsNull&&
(djj(G.backgroundElementsAriaHiddenIsNull),G.backgroundElementsAriaHiddenIsNull=void 0);
G.backgroundElementsAriaHiddenIsFalse&&(G.backgroundElementsAriaHiddenIsFalse.each(function(b){b.setAttribute("aria-hidden","false")}),G.backgroundElementsAriaHiddenIsFalse=void 0);
G.backgroundElementsWithoutInert&&(G.backgroundElementsWithoutInert.each(function(b){b.removeAttribute("inert")}),G.backgroundElementsWithoutInert=void 0)},NSe=function(G){G.backgroundElementsAriaHiddenIsNull=(new uf(G.iframe.parentElement)).children().filter(function(b){return b.getAttribute("aria-hidden")===null&&b!==G.iframe});
G.backgroundElementsAriaHiddenIsNull.each(function(b){b.setAttribute("aria-hidden","true")});
G.backgroundElementsAriaHiddenIsFalse=(new uf(G.iframe.parentElement)).children().filter(function(b){return b.getAttribute("aria-hidden")==="false"&&b!==G.iframe});
G.backgroundElementsAriaHiddenIsFalse.each(function(b){b.setAttribute("aria-hidden","true")});
G.backgroundElementsWithoutInert=(new uf(G.iframe.parentElement)).children().filter(function(b){return!b.hasAttribute("inert")&&b!==G.iframe});
G.backgroundElementsWithoutInert.each(function(b){b.setAttribute("inert","true")})},aR9=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")};
nr.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var FS3=function(G,b){nr.call(this,wBF[G],b);this.options=[];this.style=""};
_.M(FS3,nr);var KSY=function(G){G.style="youtube";return G},uge=function(G,b){G.eventTarget.listen(lR5,b);
return G},RXj=function(G,b){G.eventTarget.listen(qL1,b);
return G},re9=function(G,b){G.options.push(b);
return G},nF9=function(G){var b=[G.getOrigin()];
G.ancestorOrigins&&b.push.apply(b,_.Nz(G.ancestorOrigins));var I=new _.a3(G.win.location.href),h=G.startUrl?G.startUrl:G.options.includes("po")?"profile-picture/art":"profile-picture";b=dLc(_.lW(G.getTargetOrigin(),h),"origin",b);G.startUrl&&_.IJ(b,"startPath",G.startUrl);G.authUser>0&&_.IJ(b,"authuser",G.authUser);G.pageId!==void 0&&_.IJ(b,"pageId",G.pageId);_.IJ(b,"hostId",G.hostId);G.jsMode!==void 0&&_.IJ(b,"jsmode",G.jsMode);G.rectangleRatio!==void 0&&_.IJ(b,"rectangleRatio",G.rectangleRatio);
G.options.length>0&&_.IJ(b,"opts",G.options.join(","));try{for(var q=_.e(["utm_source","utm_medium","utm_campaign","utm_content"]),l=q.next();!l.done;l=q.next()){var V=l.value;_.bI(I,V)&&_.IJ(b,V,_.bI(I,V))}var D,k=(D=G.hl)!=null?D:_.bI(I,"hl");k!==void 0&&_.IJ(b,"hl",k)}catch(L){if(!(L instanceof URIError))throw L;}G.colorScheme&&_.IJ(b,"theme",G.colorScheme);G.style&&_.IJ(b,"style",G.style);return b},Om3=function(G,b){G.mainChannel=_.Ie({destination:G.win,
iframe:b,origin:G.getTargetOrigin().toString(),channelName:"ow",onMessage:function(I){I=GWa(I.data);if(b===G.iframe)switch(_.gU(I,1)){case 1:G.eventTarget.dispatchEvent(new Dj3);YLK(G);break;case 2:G.eventTarget.dispatchEvent(new eXL(_.U5(I,4),_.U5(I,2),_.gU(I,5),_.fi(I,SU5,6)));break;case 0:var h;G.eventTarget.dispatchEvent(new V6j(_.U5(I,2),(h=_.gU(I,3))!=null?h:0));break;case 3:G.eventTarget.dispatchEvent(new Dj3(!0));YLK(G,!1);break;case 4:G.eventTarget.dispatchEvent(new cea)}}})},WS5=function(G,
b,I){_.Ie({destination:G.win,
iframe:b,origin:_.jP(_.qR(_.h$(new _.a3,G.scheme),G.domain),G.port).toString(),channelName:"owi",onMessage:function(h){b===G.iframe&&(I!==void 0&&I(),Om3(G,b),G.opened&&G.mainChannel.send(hX1(IRY())),h.reply(),WS5(G,b))}})};
FS3.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?nr.prototype.preloadIframe.call(this,nF9(this).toString()):this.iframeLoadPromise};
FS3.prototype.openPicker=function(G){var b=this;return _.c(function(I){if(I.nextAddress==1)return b.startUrl=G?G:b.options.includes("po")?"profile-picture/art":"profile-picture",I.yield(CzL(b,nF9(b).toString()),2);if(b.mainChannel){var h=b.mainChannel,q=h.send;var l=IRY();l=_.F0(l,2,b.startUrl);q.call(h,hX1(l))}_.ip(I)})};var wsc=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(wsc,_.eo);_.m=wsc.prototype;_.m.getSize=function(){return st(this,1)};
_.m.setSize=function(G){return _.tJ(this,1,G)};
_.m.getWidth=function(){return st(this,12)};
_.m.getHeight=function(){return st(this,13)};
_.m.setCenterCrop=function(G){return _.Tx(this,20,G)};
_.m.getHtml=function(){return _.fp(this,4)};
_.m.getToken=function(){return _.zx(this,24)};
_.m.setToken=function(G){return _.F0(this,24,G)};
_.m.getBackgroundColor=function(){return st(this,87)};
_.m.hasBackgroundColor=function(){return _.VK(_.mI(this,87))!=null};
_.m.getStoryboardLevel=function(){return st(this,109)};var Ot=function(G){this.JSC$19959_value_=void 0;this.childNodes_={};if(G){var b=_.LGe(G);G=_.Iv(G);for(var I=0;I<b.length;I++)this.set(b[I],G[I])}};
Ot.prototype.set=function(G,b){EFa(this,G,b,!1)};
Ot.prototype.add=function(G,b){EFa(this,G,b,!0)};
var EFa=function(G,b,I,h){for(var q=0;q<b.length;q++){var l=b.charAt(q);G.childNodes_[l]||(G.childNodes_[l]=new Ot);G=G.childNodes_[l]}if(h&&G.JSC$19959_value_!==void 0)throw Error("Hk`"+b);G.JSC$19959_value_=I},psj=function(G,b){for(var I=0;I<b.length;I++)if(G=G.childNodes_[b.charAt(I)],!G)return;
return G};
Ot.prototype.get=function(G){return(G=psj(this,G))?G.JSC$19959_value_:void 0};
Ot.prototype.getValues=function(){var G=[];SLK(this,G);return G};
var SLK=function(G,b){G.JSC$19959_value_!==void 0&&b.push(G.JSC$19959_value_);for(var I in G.childNodes_)SLK(G.childNodes_[I],b)};
Ot.prototype.getKeys=function(G){var b=[];if(G){for(var I=this,h=0;h<G.length;h++){var q=G.charAt(h);if(!I.childNodes_[q])return[];I=I.childNodes_[q]}Xsf(I,G,b)}else Xsf(this,"",b);return b};
var Xsf=function(G,b,I){G.JSC$19959_value_!==void 0&&I.push(b);for(var h in G.childNodes_)Xsf(G.childNodes_[h],b+h,I)};
_.m=Ot.prototype;_.m.containsKey=function(G){return this.get(G)!==void 0};
_.m.containsValue=function(G){if(this.JSC$19959_value_===G)return!0;for(var b in this.childNodes_)if(this.childNodes_[b].containsValue(G))return!0;return!1};
_.m.clear=function(){this.childNodes_={};this.JSC$19959_value_=void 0};
_.m.remove=function(G){for(var b=this,I=[],h=0;h<G.length;h++){var q=G.charAt(h);if(!b.childNodes_[q])throw Error("Ik`"+G);I.push([b,q]);b=b.childNodes_[q]}G=b.JSC$19959_value_;for(delete b.JSC$19959_value_;I.length>0;)if(h=I.pop(),b=h[0],h=h[1],b.childNodes_[h].isEmpty())delete b.childNodes_[h];else break;return G};
_.m.clone=function(){return new Ot(this)};
_.m.getCount=function(){return M0Y(this.getValues())};
_.m.isEmpty=function(){return this.JSC$19959_value_===void 0&&_.Cy.isEmpty(this.childNodes_)};var aaF=function(){if(!$S5){var G=$S5=new Ot,b;for(b in GUY)G.add(b,GUY[b])}},$S5,wA=function(G,b){this.types=G;
this.setters=b},GUY={a:new wA([3,
0],[function(G,b){_.Tx(G,21,b)},
function(G,b){_.tJ(G,56,b)}]),
al:new wA([3],[function(G,b){_.Tx(G,74,b)}]),
b:new wA([3,0],[function(G,b){_.Tx(G,23,b)},
function(G,b){_.tJ(G,38,b)}]),
ba:new wA([0],[function(G,b){_.tJ(G,85,b)}]),
bc:new wA([0],[function(G,b){_.tJ(G,87,b)}]),
br:new wA([0],[function(G,b){_.tJ(G,86,b)}]),
c:new wA([3,0],[function(G,b){_.Tx(G,2,b)},
function(G,b){_.tJ(G,39,b)}]),
cc:new wA([3],[function(G,b){_.Tx(G,51,b)}]),
ci:new wA([3],[function(G,b){_.Tx(G,32,b)}]),
ckm:new wA([3],[function(G,b){_.Tx(G,104,b)}]),
cp:new wA([0],[function(G,b){_.tJ(G,92,b)}]),
cr:new wA([3],[function(G,b){_.Tx(G,108,b)}]),
cv:new wA([0],[function(G,b){_.tJ(G,94,b)}]),
d:new wA([3],[function(G,b){_.Tx(G,3,b)}]),
dc:new wA([5],[function(G,b){_.F0(G,99,b)}]),
df:new wA([3],[function(G,b){_.Tx(G,80,b)}]),
dv:new wA([3],[function(G,b){_.Tx(G,90,b)}]),
e:new wA([0],[function(G,b){_.tJ(G,15,b)}]),
em:new wA([0],[function(G,b){_.tJ(G,107,b)}]),
f:new wA([4],[function(G,b){_.F0(G,16,b)}]),
fg:new wA([3],[function(G,b){_.Tx(G,34,b)}]),
fh:new wA([3],[function(G,b){_.Tx(G,30,b)}]),
fm:new wA([3],[function(G,b){_.Tx(G,84,b)}]),
fo:new wA([2],[function(G,b){_.Bz(G,79,_.pQ(b))}]),
ft:new wA([3],[function(G,b){_.Tx(G,50,b)}]),
fv:new wA([3],[function(G,b){_.Tx(G,31,b)}]),
g:new wA([3],[function(G,b){_.Tx(G,14,b)}]),
gce:new wA([4],[function(G,b){_.F0(G,112,b)}]),
gd:new wA([3],[function(G,b){_.Tx(G,83,b)}]),
gm:new wA([3],[function(G,b){_.Tx(G,105,b)}]),
h:new wA([3,0],[function(G,b){_.Tx(G,4,b)},
function(G,b){_.tJ(G,13,b)}]),
i:new wA([3],[function(G,b){_.Tx(G,22,b)}]),
ic:new wA([0],[function(G,b){_.tJ(G,71,b)}]),
id:new wA([3],[function(G,b){_.Tx(G,70,b)}]),
il:new wA([3],[function(G,b){_.Tx(G,96,b)}]),
ip:new wA([3],[function(G,b){_.Tx(G,54,b)}]),
iv:new wA([0],[function(G,b){_.y9(G,75,b)}]),
j:new wA([1],[function(G,b){b=b==null?b:ny1(b);_.Bz(G,29,b)}]),
k:new wA([3,0],[function(G,b){_.Tx(G,17,b)},
function(G,b){_.tJ(G,42,b)}]),
l:new wA([0],[function(G,b){_.tJ(G,44,b)}]),
lf:new wA([3],[function(G,b){_.Tx(G,65,b)}]),
lo:new wA([3],[function(G,b){_.Tx(G,97,b)}]),
m:new wA([0],[function(G,b){_.tJ(G,63,b)}]),
md:new wA([3],[function(G,b){_.Tx(G,91,b)}]),
mm:new wA([4],[function(G,b){_.F0(G,81,b)}]),
mo:new wA([3],[function(G,b){_.Tx(G,73,b)}]),
mp:new wA([0],[function(G,b){_.tJ(G,115,b)}]),
mv:new wA([3],[function(G,b){_.Tx(G,66,b)}]),
n:new wA([3],[function(G,b){G.setCenterCrop(b)}]),
nc:new wA([3],[function(G,b){_.Tx(G,55,b)}]),
nd:new wA([3],[function(G,b){_.Tx(G,53,b)}]),
ng:new wA([3],[function(G,b){_.Tx(G,95,b)}]),
ngm:new wA([3],[function(G,b){_.Tx(G,106,b)}]),
no:new wA([3],[function(G,b){_.Tx(G,37,b)}]),
ns:new wA([3],[function(G,b){_.Tx(G,40,b)}]),
nt0:new wA([4],[function(G,b){_.F0(G,36,b)}]),
ntm:new wA([3],[function(G,b){_.Tx(G,114,b)}]),
nu:new wA([3],[function(G,b){_.Tx(G,46,b)}]),
nw:new wA([3],[function(G,b){_.Tx(G,48,b)}]),
o:new wA([1,3],[function(G,b){b=b==null?b:ny1(b);_.Bz(G,7,b)},
function(G,b){_.Tx(G,27,b)}]),
p:new wA([3,0],[function(G,b){_.Tx(G,19,b)},
function(G,b){_.tJ(G,43,b)}]),
pa:new wA([3],[function(G,b){_.Tx(G,61,b)}]),
pc:new wA([0],[function(G,b){_.tJ(G,88,b)}]),
pd:new wA([3],[function(G,b){_.Tx(G,60,b)}]),
pf:new wA([3],[function(G,b){_.Tx(G,67,b)}]),
pg:new wA([3],[function(G,b){_.Tx(G,72,b)}]),
pi:new wA([2],[function(G,b){_.Bz(G,76,_.pQ(b))}]),
pp:new wA([3],[function(G,b){_.Tx(G,52,b)}]),
pt:new wA([4],[function(G,b){_.F0(G,111,b)}]),
q:new wA([4],[function(G,b){_.F0(G,28,b)}]),
r:new wA([3,0],[function(G,b){_.Tx(G,6,b)},
function(G,b){_.tJ(G,26,b)}]),
ra:new wA([3],[function(G,b){_.Tx(G,103,b)}]),
rf:new wA([3],[function(G,b){_.Tx(G,100,b)}]),
rg:new wA([3],[function(G,b){_.Tx(G,59,b)}]),
rh:new wA([3],[function(G,b){_.Tx(G,49,b)}]),
rj:new wA([3],[function(G,b){_.Tx(G,57,b)}]),
ro:new wA([2],[function(G,b){_.Bz(G,78,_.pQ(b))}]),
rp:new wA([3],[function(G,b){_.Tx(G,58,b)}]),
rw:new wA([3],[function(G,b){_.Tx(G,35,b)}]),
rwa:new wA([3],[function(G,b){_.Tx(G,64,b)}]),
rwu:new wA([3],[function(G,b){_.Tx(G,41,b)}]),
s:new wA([3,0],[function(G,b){_.Tx(G,33,b)},
function(G,b){G.setSize(b)}]),
sb:new wA([0],[function(G,b){_.tJ(G,110,b)}]),
sc:new wA([0],[function(G,b){_.tJ(G,89,b)}]),
sg:new wA([3],[function(G,b){_.Tx(G,82,b)}]),
sl:new wA([0],[function(G,b){_.tJ(G,109,b)}]),
sm:new wA([3],[function(G,b){_.Tx(G,93,b)}]),
t:new wA([4],[function(G,b){G.setToken(b)}]),
tm:new wA([3],[function(G,b){_.Tx(G,113,b)}]),
u:new wA([3],[function(G,b){_.Tx(G,18,b)}]),
ut:new wA([3],[function(G,b){_.Tx(G,45,b)}]),
v:new wA([0],[function(G,b){_.tJ(G,62,b)}]),
vb:new wA([0],[function(G,b){_.y9(G,68,b)}]),
vf:new wA([4],[function(G,b){_.F0(G,102,b)}]),
vl:new wA([0],[function(G,b){_.y9(G,69,b)}]),
vm:new wA([3],[function(G,b){_.Tx(G,98,b)}]),
w:new wA([0],[function(G,b){_.tJ(G,12,b)}]),
x:new wA([0],[function(G,b){_.tJ(G,9,b)}]),
y:new wA([0],[function(G,b){_.tJ(G,10,b)}]),
ya:new wA([2],[function(G,b){_.Bz(G,77,_.pQ(b))}]),
z:new wA([0],[function(G,b){_.tJ(G,11,b)}])};
aaF.prototype.parse=function(G){var b=new wsc,I=new wsc;if(G=="")G=!0;else{G=G.split("-");for(var h=!0,q=0;q<G.length;q++){var l=G[q];if(l.length==0)h=!1;else{var V=l,D=!1;var k=V;var L=V.charAt(0);L!=L.toLowerCase()&&(D=!0,k=V.charAt(0).toLowerCase()+V.substring(1));var x=$S5;for(L=1;L<=k.length;++L){var f=x,T=k.substring(0,L);if(T.length==0?f.isEmpty():!psj(f,T))break}k=L==1?null:(k=x.get(k.substring(0,L-1)))?{option:V.substring(0,L-1),value:V.substring(L-1),signed:D,attributes:k}:null;if(k){V=
[];D=[];L=!1;for(x=0;x<k.attributes.types.length;x++){f=k.attributes.types[x];var B=k.value;T=q;if(k.signed&&f==1)for(var A=B.length;A<12&&T<G.length-1;)B+="-"+G[T+1],A=B.length,++T;else if(f==2)for(;T<G.length-1&&G[T+1].match(/^[\d\.]/);)B+="-"+G[T+1],++T;A=k.attributes.setters[x];B=bR1(this,f)(k.option,B,b,I,A);if(B===null){L=!0;q=T;break}else V.push(f),D.push(B)}if(!L)for(k=0;k<D.length;k++)x=V[k],B=D[k],IgY(this,x)(l,B);h=h&&L}else h=!1}}G=h}return new h4K(b,I,G)};
var qNL=function(G,b,I,h,q,l){q(I,b);G=G.charAt(0);l=l(G==G.toUpperCase());q(h,l)};
_.m=aaF.prototype;_.m.parseAndSetIntOption_=function(G,b,I,h,q){if(b=="")return 0;isFinite(b)&&(b=String(b));b=typeof b==="string"?/^\s*-?0x/i.test(b)?parseInt(b,16):parseInt(b,10):NaN;if(isNaN(b))return 1;qNL(G,b,I,h,q,Number);return null};
_.m.logIntParseError_=function(){};
_.m.parseAndSetFloatOption_=function(G,b,I,h,q){if(b=="")return 0;var l=Number(b);b=l==0&&_.Dr(b)?NaN:l;if(isNaN(b))return 1;qNL(G,b,I,h,q,Number);return null};
_.m.logFloatParseError_=function(){};
_.m.parseAndSetBoolOption_=function(G,b,I,h,q){if(b!="")return 2;qNL(G,!0,I,h,q,Boolean);return null};
_.m.logBoolParseError_=function(){};
_.m.parseAndSetStringOption_=function(G,b,I,h,q){if(b=="")return 0;qNL(G,b,I,h,q,function(l){return l?"1":""});
return null};
_.m.logStringParseError_=function(){};
_.m.parseAndSetUint64Base64Option_=function(G,b,I,h,q){if(b=="")return 0;qNL(G,b,I,h,q,function(l){return l?1:0});
return null};
var bR1=function(G,b){switch(b){case 0:return(0,_.Hr)(G.parseAndSetIntOption_,G);case 2:return(0,_.Hr)(G.parseAndSetFloatOption_,G);case 3:return(0,_.Hr)(G.parseAndSetBoolOption_,G);case 4:return(0,_.Hr)(G.parseAndSetStringOption_,G);case 1:return(0,_.Hr)(G.parseAndSetUint64Base64Option_,G);default:return function(){}}},IgY=function(G,b){switch(b){case 0:return(0,_.Hr)(G.logIntParseError_,G);
case 2:return(0,_.Hr)(G.logFloatParseError_,G);case 3:return(0,_.Hr)(G.logBoolParseError_,G);case 4:case 1:return(0,_.Hr)(G.logStringParseError_,G);default:return function(){}}},h4K=function(G,b,I){this.valueProto_=G;
this.signatureFlagProto_=b;this.JSC$19971_valid_=I};
h4K.prototype.isValid=function(){return this.JSC$19971_valid_};var rW9=function(G){this.JSC$19972_parser_=null;this.JSC$19972_components_=[];this.JSC$19972_parsedOptions_=null;jCW(this,G)},lga=function(G){G.JSC$19972_parser_==null&&(G.JSC$19972_parser_=new aaF);
return G.JSC$19972_parser_},jCW=function(G,b){G.JSC$19972_parsedOptions_=b?typeof b==="string"?lga(G).parse(b):b:lga(G).parse("")},Et=function(G,b){return G==b?!1:!0};
_.m=rW9.prototype;_.m.JSC$19974_setCrop=function(G){G=G||void 0;var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,_.fp(I,2),_.fp(b.signatureFlagProto_,2))&&_.Tx(I,2,G);return this};
_.m.JSC$19974_setCircleCrop=function(G){G=G||void 0;var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,Ut(I,51),Ut(b.signatureFlagProto_,51))&&_.Tx(I,51,G);return this};
_.m.JSC$19974_setImageCrop=function(G){G=G||void 0;var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,Ut(I,32),Ut(b.signatureFlagProto_,32))&&_.Tx(I,32,G);return this};
_.m.JSC$19974_setHeight=function(G){var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,I.getHeight(),b.signatureFlagProto_.getHeight())&&_.tJ(I,13,G);return this};
_.m.setCenterCrop=function(G){G=G||void 0;var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,_.fp(I,20),_.fp(b.signatureFlagProto_,20))&&I.setCenterCrop(G);return this};
_.m.JSC$19974_setSmartCrop=function(G){G=G||void 0;var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,_.fp(I,19),_.fp(b.signatureFlagProto_,19))&&_.Tx(I,19,G);return this};
_.m.JSC$19974_setPad=function(G){G=G||void 0;var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,Ut(I,60),Ut(b.signatureFlagProto_,60))&&_.Tx(I,60,G);return this};
_.m.JSC$19974_setSmartCropUseFace=function(G){G=G||void 0;var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,_.fp(I,67),_.fp(b.signatureFlagProto_,67))&&_.Tx(I,67,G);return this};
_.m.JSC$19974_setSmartCropNoClip=function(G){G=G||void 0;var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,_.fp(I,52),_.fp(b.signatureFlagProto_,52))&&_.Tx(I,52,G);return this};
_.m.setSize=function(G){var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,I.getSize(),b.signatureFlagProto_.getSize())&&I.setSize(G);return this};
_.m.setToken=function(G){G=G||void 0;var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,I.getToken(),b.signatureFlagProto_.getToken())&&I.setToken(G);return this};
_.m.JSC$19974_setWidth=function(G){var b=this.JSC$19972_parsedOptions_,I=b.valueProto_;Et(G,I.getWidth(),b.signatureFlagProto_.getWidth())&&_.tJ(I,12,G);return this};
_.m.clearOptions=function(){jCW(this,"");return this};
_.m.build=function(){this.JSC$19972_components_.length=0;var G=this.JSC$19972_parsedOptions_,b=G.valueProto_;G=G.signatureFlagProto_;pr(this,"s",b.getSize(),G.getSize());pr(this,"w",b.getWidth(),G.getWidth());S5(this,"c",_.fp(b,2),_.fp(G,2));S5(this,"d",_.fp(b,3),_.fp(G,3));pr(this,"h",b.getHeight(),G.getHeight());S5(this,"s",Ut(b,33),Ut(G,33));S5(this,"h",b.getHtml(),G.getHtml());S5(this,"p",_.fp(b,19),_.fp(G,19));S5(this,"pp",_.fp(b,52),_.fp(G,52));S5(this,"pf",_.fp(b,67),_.fp(G,67));S5(this,"n",
_.fp(b,20),_.fp(G,20));pr(this,"r",st(b,26),st(G,26));S5(this,"r",_.fp(b,6),_.fp(G,6));S5(this,"o",Ut(b,27),Ut(G,27));var I=_.xY(b,7,_.l3);Xb(this,"o",I,_.xY(G,7,_.l3));I=_.xY(b,29,_.l3);Xb(this,"j",I,_.xY(G,29,_.l3));pr(this,"x",st(b,9),st(G,9));pr(this,"y",st(b,10),st(G,10));pr(this,"z",st(b,11),st(G,11));S5(this,"g",_.fp(b,14),_.fp(G,14));pr(this,"e",st(b,15),st(G,15));Xb(this,"f",_.zx(b,16),_.zx(G,16));S5(this,"k",Ut(b,17),Ut(G,17));S5(this,"u",Ut(b,18),!0);S5(this,"ut",Ut(b,45),!0);S5(this,"i",
Ut(b,22),!0);S5(this,"a",Ut(b,21),Ut(G,21));S5(this,"b",_.fp(b,23),_.fp(G,23));pr(this,"b",st(b,38),st(G,38));pr(this,"c",st(b,39),st(G,39),16,8);Xb(this,"q",_.zx(b,28),_.zx(G,28));S5(this,"fh",Ut(b,30),Ut(G,30));S5(this,"fv",Ut(b,31),Ut(G,31));S5(this,"fg",_.fp(b,34),_.fp(G,34));S5(this,"ci",Ut(b,32),Ut(G,32));Xb(this,"t",b.getToken(),G.getToken());Xb(this,"nt0",_.zx(b,36),_.zx(G,36));S5(this,"rw",_.fp(b,35),_.fp(G,35));S5(this,"rwu",_.fp(b,41),_.fp(G,41));S5(this,"rwa",_.fp(b,64),_.fp(G,64));S5(this,
"nw",_.fp(b,48),_.fp(G,48));S5(this,"rh",_.fp(b,49),_.fp(G,49));S5(this,"no",_.fp(b,37),_.fp(G,37));S5(this,"ns",Ut(b,40),Ut(G,40));pr(this,"k",st(b,42),st(G,42));pr(this,"p",st(b,43),st(G,43));pr(this,"l",st(b,44),st(G,44));pr(this,"v",st(b,62),st(G,62));S5(this,"nu",Ut(b,46),Ut(G,46));S5(this,"ft",Ut(b,50),Ut(G,50));S5(this,"cc",Ut(b,51),Ut(G,51));S5(this,"nd",Ut(b,53),Ut(G,53));S5(this,"ip",Ut(b,54),Ut(G,54));S5(this,"nc",Ut(b,55),Ut(G,55));pr(this,"a",st(b,56),st(G,56));S5(this,"rj",Ut(b,57),
Ut(G,57));S5(this,"rp",Ut(b,58),Ut(G,58));S5(this,"rg",Ut(b,59),Ut(G,59));S5(this,"pd",Ut(b,60),Ut(G,60));S5(this,"pa",Ut(b,61),Ut(G,61));pr(this,"m",st(b,63),st(G,63));pr(this,"vb",gA(b,68),gA(G,68));pr(this,"vl",gA(b,69),gA(G,69));S5(this,"lf",Ut(b,65),Ut(G,65));S5(this,"mv",Ut(b,66),Ut(G,66));S5(this,"id",Ut(b,70),Ut(G,70));pr(this,"ic",st(b,71),!0);S5(this,"pg",_.fp(b,72),_.fp(G,72));S5(this,"mo",Ut(b,73),Ut(G,73));S5(this,"al",Ut(b,74),Ut(G,74));pr(this,"iv",gA(b,75),gA(G,75));pr(this,"pi",A0(b,
76),A0(G,76));pr(this,"ya",A0(b,77),A0(G,77));pr(this,"ro",A0(b,78),A0(G,78));pr(this,"fo",A0(b,79),A0(G,79));S5(this,"df",Ut(b,80),Ut(G,80));Xb(this,"mm",_.zx(b,81),_.zx(G,81));S5(this,"sg",Ut(b,82),Ut(G,82));S5(this,"gd",Ut(b,83),Ut(G,83));S5(this,"fm",Ut(b,84),Ut(G,84));pr(this,"ba",st(b,85),st(G,85));pr(this,"br",st(b,86),st(G,86));pr(this,"bc",b.getBackgroundColor(),G.getBackgroundColor(),16,8);pr(this,"pc",st(b,88),st(G,88),16,8);pr(this,"sc",st(b,89),st(G,89),16,8);S5(this,"dv",Ut(b,90),Ut(G,
90));S5(this,"md",Ut(b,91),Ut(G,91));pr(this,"cp",st(b,92),st(G,92));S5(this,"sm",Ut(b,93),Ut(G,93));pr(this,"cv",st(b,94),st(G,94));S5(this,"ng",Ut(b,95),Ut(G,95));S5(this,"il",Ut(b,96),Ut(G,96));S5(this,"lo",Ut(b,97),Ut(G,97));S5(this,"vm",Ut(b,98),Ut(G,98));Xb(this,"dc",_.zx(b,99),_.zx(G,99));S5(this,"rf",Ut(b,100),Ut(G,100));Xb(this,"vf",_.zx(b,102),_.zx(G,102));S5(this,"ra",_.fp(b,103),_.fp(G,103));S5(this,"ckm",Ut(b,104),Ut(G,104));S5(this,"gm",Ut(b,105),Ut(G,105));S5(this,"ngm",Ut(b,106),Ut(G,
106));pr(this,"em",st(b,107),st(G,107));S5(this,"cr",Ut(b,108),Ut(G,108));pr(this,"sl",b.getStoryboardLevel(),G.getStoryboardLevel());pr(this,"sb",st(b,110),st(G,110));Xb(this,"pt",_.zx(b,111),_.zx(G,111));Xb(this,"gce",_.zx(b,112),_.zx(G,112));S5(this,"tm",Ut(b,113),Ut(G,113));S5(this,"ntm",Ut(b,114),Ut(G,114));pr(this,"mp",st(b,115),st(G,115));return this.JSC$19972_components_.join("-")};
var pr=function(G,b,I,h,q,l){if(I!=null){var V=q==void 0||q!=10&&q!=16?10:q;I=Number(I).toString(V);q=new VA9;q.append(V==16?"0x":"");V=q.append;l==void 0?l="":(l-=I.length,l=l<=0?"":(0,_.cjn)("0",l));V.call(q,l);q.append(I);mSf(G,b,q.toString(),!!Number(h))}},S5=function(G,b,I,h){I&&mSf(G,b,"",!!h)},Xb=function(G,b,I,h){I&&mSf(G,b,String(I),!!Number(h))},mSf=function(G,b,I,h){h&&(b=b.charAt(0).toUpperCase()+b.substring(1));
G.JSC$19972_components_.push(b+I)};_.OE(iy,rW9);_.m=iy.prototype;_.m.JSC$19974_setCrop=function(G){G&&$D(this);return iy.superClass_.JSC$19974_setCrop.call(this,G)};
_.m.JSC$19974_setHeight=function(G){G=G==null||G<0?void 0:G;G!=null&&this.setSize();return iy.superClass_.JSC$19974_setHeight.call(this,G)};
_.m.JSC$19974_setImageCrop=function(G){G&&$D(this);return iy.superClass_.JSC$19974_setImageCrop.call(this,G)};
_.m.JSC$19974_setCircleCrop=function(G){G&&$D(this);return iy.superClass_.JSC$19974_setCircleCrop.call(this,G)};
_.m.setSize=function(G){_.Oj(G)&&(G=Math.max(G.width,G.height));G=G==null||G<0?void 0:G;G!=null&&(this.JSC$19974_setWidth(),this.JSC$19974_setHeight());return iy.superClass_.setSize.call(this,G)};
_.m.JSC$19974_setSmartCrop=function(G){G&&$D(this);return iy.superClass_.JSC$19974_setSmartCrop.call(this,G)};
_.m.JSC$19974_setSmartCropNoClip=function(G){G&&$D(this);return iy.superClass_.JSC$19974_setSmartCropNoClip.call(this,G)};
_.m.JSC$19974_setSmartCropUseFace=function(G){G&&$D(this);return iy.superClass_.JSC$19974_setSmartCropUseFace.call(this,G)};
_.m.setCenterCrop=function(G){G&&$D(this);return iy.superClass_.setCenterCrop.call(this,G)};
_.m.JSC$19974_setPad=function(G){G&&$D(this);return iy.superClass_.JSC$19974_setPad.call(this,G)};
_.m.JSC$19974_setWidth=function(G){G=G==null||G<0?void 0:G;G!=null&&this.setSize();return iy.superClass_.JSC$19974_setWidth.call(this,G)};
var e41=function(G){G.clearOptions();var b=G.JSC$19972_parsedOptions_,I=b.valueProto_;Et(!0,_.fp(I,3),_.fp(b.signatureFlagProto_,3))&&_.Tx(I,3,!0);return G},$D=function(G){G.setCenterCrop();
G.JSC$19974_setCircleCrop();G.JSC$19974_setCrop();G.JSC$19974_setImageCrop();G.JSC$19974_setPad();G.JSC$19974_setSmartCrop();G.JSC$19974_setSmartCropNoClip();G.JSC$19974_setSmartCropUseFace()};
iy.prototype.build=function(){var G=this.JSC$19972_parsedOptions_.valueProto_;Ut(G,18)||Ut(G,45)?G.getSize()||this.setSize(0):(G=this.JSC$19972_parsedOptions_.valueProto_,G.getSize()||G.getWidth()||G.getHeight()||(this.setSize(),this.JSC$19974_setHeight(),this.JSC$19974_setWidth(),$D(this)));return iy.superClass_.build.call(this)};var VmD=/^[^\/]*\/\//,DSf=function(G,b){b=b===void 0?!1:b;this.original_=G;this.originalPrefix_="";(G=this.original_.match(VmD))&&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_=_.Gt(G,!0);this.isFreeformUrl_=b;this.JSC$19978_valid_=!0;this.obfuscated_=!1},cn3=function(G,b){G.JSC$19980_pathPrefix_=G.JSC$19980_pathPrefix_?G.JSC$19980_pathPrefix_+("/"+b):b},GM=function(G){if(G.JSC$19980_components_==
void 0){var b=G.uri_.getPath().substring(1);
G.JSC$19980_pathPrefix_=null;if(G.isFreeformUrl_){G.JSC$19980_components_=[];if((b.match(/=/g)||[]).length>1)return G.JSC$19978_valid_=!1,G.JSC$19980_components_;var I=b.indexOf("=");I!=-1?(G.JSC$19980_components_.push(b.substr(0,I)),G.JSC$19980_components_.push(b.substr(I+1))):G.JSC$19980_components_.push(b);return G.JSC$19980_components_}G.JSC$19980_components_=b.split("/");b=G.JSC$19980_components_.length;b>2&&G.JSC$19980_components_[0]=="u"&&(cn3(G,G.JSC$19980_components_[0]+"/"+G.JSC$19980_components_[1]),
G.JSC$19980_components_.shift(),G.JSC$19980_components_.shift(),b-=2);if(b==0||b==4||b>7)return G.JSC$19978_valid_=!1,G.JSC$19980_components_;if(b==2)cn3(G,G.JSC$19980_components_[0]);else if(G.JSC$19980_components_[0]=="image")cn3(G,G.JSC$19980_components_[0]);else if(b==7||b==3)return G.JSC$19978_valid_=!1,G.JSC$19980_components_;if(b<=3){G.obfuscated_=!0;b==3&&(cn3(G,G.JSC$19980_components_[1]),G.JSC$19980_components_.shift(),--b);--b;I=G.JSC$19980_components_[b];var h=I.indexOf("=");h!=-1&&(G.JSC$19980_components_[b]=
I.substr(0,h),G.JSC$19980_components_.push(I.substr(h+1)))}}return G.JSC$19980_components_};
DSf.prototype.isValid=function(){GM(this);return this.JSC$19978_valid_};
DSf.prototype.isObfuscated=function(){GM(this);return this.obfuscated_};
var kUc=function(G){GM(G);return G.isFreeformUrl_},bT=function(G){GM(G);
G.JSC$19980_pathPrefix_==void 0&&(G.JSC$19980_pathPrefix_=null);return G.JSC$19980_pathPrefix_},vqD=function(G){switch(GM(G).length){case 7:return!0;
case 6:return bT(G)==null;case 5:return!1;case 3:return!0;case 2:return bT(G)==null;case 1:return!1;default:return!1}},Ip=function(G,b){if(kUc(G))a:{switch(b){case 7:b=0;
break;case 4:if(!vqD(G)){G=null;break a}b=1;break;default:G=null;break a}G=GM(G)[b]}else if(G.isObfuscated())a:{var I=bT(G)!=null?1:0;switch(b){case 6:b=I;break;case 4:if(!vqD(G)){G=null;break a}b=1+I;break;default:G=null;break a}G=GM(G)[b]}else a:{I=bT(G)!=null?1:0;switch(b){case 0:b=I;break;case 1:b=1+I;break;case 2:b=2+I;break;case 3:b=3+I;break;case 4:if(!vqD(G)){G=null;break a}b=4+I;break;case 5:b=vqD(G)?1:0;b=4+I+b;break;default:G=null;break a}G=GM(G)[b]}return G};
DSf.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Ip(this,4));return this.options_};var WAa=function(){};
WAa.prototype.parse=function(G,b){return new FA1(G,b===void 0?!1:b)};
var FA1=function(G,b){DSf.call(this,G,b===void 0?!1:b)};
_.M(FA1,DSf);_.OE(PM,iy);var HMD;PM.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
PM.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var G=PM.superClass_.build.call(this),b=[];bT(this.parsedImageUrl_)!=null&&b.push(bT(this.parsedImageUrl_));var I=kUc(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var h=this.parsedImageUrl_;h.obfuscatedData_==void 0&&(h.obfuscatedData_=Ip(h,6));b.push(h.obfuscatedData_+(G?"="+G:""))}else if(I){h=b.push;var q=this.parsedImageUrl_;q.freeformUrlPath_===void 0&&(q.freeformUrlPath_=Ip(q,
7));h.call(b,q.freeformUrlPath_);G&&b.push(G)}else h=b.push,q=this.parsedImageUrl_,q.obfuscatedGaiaId_==void 0&&(q.obfuscatedGaiaId_=Ip(q,0)),h.call(b,q.obfuscatedGaiaId_),h=b.push,q=this.parsedImageUrl_,q.photoId_==void 0&&(q.photoId_=Ip(q,1)),h.call(b,q.photoId_),h=b.push,q=this.parsedImageUrl_,q.imageVersion_==void 0&&(q.imageVersion_=Ip(q,2)),h.call(b,q.imageVersion_),h=b.push,q=this.parsedImageUrl_,q.signature_==void 0&&(q.signature_=Ip(q,3)),h.call(b,q.signature_),G&&b.push(G),G=b.push,h=this.parsedImageUrl_,
h.filename_==void 0&&(h.filename_=Ip(h,5)),G.call(b,h.filename_);b=I?b.join("="):b.join("/");b=_.Gt(this.protocolPrefix_+this.JSC$19986_domain_+"/"+b+(this.JSC$19986_query_?"?"+this.JSC$19986_query_:"")).toString();b.startsWith("%3a//")&&(b=b.replace("%3a//","://"));return b};var Lq5=_.WP(["viewBox"]),QCf=_.WP(["width"]),xS8=_.WP(["height"]),fgL=_.WP(["fill"]),TZK=_.WP(["id"]),BZW=_.WP(["x"]),USW=_.WP(["y"]);NQc.prototype.getLength=function(){return this.parsedData.length};
NQc.prototype.write=function(G){for(var b=0,I=this.parsedData.length;b<I;b++)G.put(this.parsedData[b],8)};
var nU1=function(G,b){var I=new NQc(b);G.dataList.push(I);I=G.errorCorrectLevel;var h=1,q=encodeURI(b).toString().replace(/%[0-9a-fA-F]{2}/g,"a");b=q.length+(q.length!=b?3:0);q=0;for(var l=hg.length;q<=l;q++){var V=0;switch(I){case 1:V=hg[q][0];break;case 0:V=hg[q][1];break;case 3:V=hg[q][2];break;case 2:V=hg[q][3]}if(b<=V)break;else h++}if(h>hg.length)throw Error("Rk");G.typeNumber=h;G.dataCache=null};
Y29.prototype.isDark=function(G,b){if(G<0||this.moduleCount<=G||b<0||this.moduleCount<=b)throw Error("Jk`"+G+"`"+b);return this.modules[G][b]};
for(var OMK=function(G,b,I){G.moduleCount=G.typeNumber*4+17;G.modules=Array(G.moduleCount);for(var h=0;h<G.moduleCount;h++){G.modules[h]=Array(G.moduleCount);for(var q=0;q<G.moduleCount;q++)G.modules[h][q]=null}sCW(G,0,0);sCW(G,G.moduleCount-7,0);sCW(G,0,G.moduleCount-7);h=gqL[G.typeNumber-1];for(q=0;q<h.length;q++)for(var l=0;l<h.length;l++){var V=h[q],D=h[l];if(G.modules[V][D]==null)for(var k=-2;k<=2;k++)for(var L=-2;L<=2;L++)G.modules[V+k][D+L]=k==-2||k==2||L==-2||L==2||k==0&&L==0?!0:!1}for(h=
8;h<G.moduleCount-8;h++)G.modules[h][6]==null&&(G.modules[h][6]=h%2==0);for(h=8;h<G.moduleCount-8;h++)G.modules[6][h]==null&&(G.modules[6][h]=h%2==0);h=G.errorCorrectLevel<<3|I;for(q=h<<10;qm(q)-qm(1335)>=0;)q^=1335<<qm(q)-qm(1335);h=(h<<10|q)^21522;for(q=0;q<15;q++)l=!b&&(h>>q&1)==1,q<6?G.modules[q][8]=l:q<8?G.modules[q+1][8]=l:G.modules[G.moduleCount-15+q][8]=l;for(q=0;q<15;q++)l=!b&&(h>>q&1)==1,q<8?G.modules[8][G.moduleCount-q-1]=l:q<9?G.modules[8][15-q-1+1]=l:G.modules[8][15-q-1]=l;G.modules[G.moduleCount-
8][8]=!b;if(G.typeNumber>=7){h=G.typeNumber;for(q=h<<12;qm(q)-qm(7973)>=0;)q^=7973<<qm(q)-qm(7973);h=h<<12|q;for(q=0;q<18;q++)l=!b&&(h>>q&1)==1,G.modules[Math.floor(q/3)][q%3+G.moduleCount-8-3]=l;for(q=0;q<18;q++)l=!b&&(h>>q&1)==1,G.modules[q%3+G.moduleCount-8-3][Math.floor(q/3)]=l}if(G.dataCache==null){q=G.typeNumber;l=G.dataList;b=G.errorCorrectLevel;h=AnK(q,b);if(h==void 0)throw Error("Qk`"+q+"`"+b);V=h.length/3;b=[];for(D=0;D<V;D++){k=h[D*3];L=h[D*3+1];for(var x=h[D*3+2],f=0;f<k;f++)b.push(new CAa(L,
x))}h=new JWf;for(V=0;V<l.length;V++)D=l[V],h.put(D.mode,4),h.put(D.getLength(),Mm5(D.mode,q)),D.write(h);for(V=q=0;V<b.length;V++)q+=b[V].dataCount;if(h.length>q*8)throw Error("Kk`"+h.length+"`"+q*8);for(h.length+4<=q*8&&h.put(0,4);h.length%8!=0;)ZRF(h,!1);for(;!(h.length>=q*8);){h.put(236,8);if(h.length>=q*8)break;h.put(17,8)}l=q=L=0;V=Array(b.length);D=Array(b.length);for(k=0;k<b.length;k++){f=b[k].dataCount;var T=b[k].totalCount-f;q=Math.max(q,f);l=Math.max(l,T);V[k]=Array(f);for(x=0;x<V[k].length;x++)V[k][x]=
255&h.buffer[x+L];L+=f;x=T;f=new d6([1],0);for(T=0;T<x;T++)f=f.multiply(new d6([1,tme(T)],0));x=f;f=(new d6(V[k],x.getLength()-1)).mod(x);D[k]=Array(x.getLength()-1);for(x=0;x<D[k].length;x++)T=x+f.getLength()-D[k].length,D[k][x]=T>=0?f.get(T):0}for(x=h=0;x<b.length;x++)h+=b[x].totalCount;h=Array(h);for(x=L=0;x<q;x++)for(k=0;k<b.length;k++)x<V[k].length&&(h[L++]=V[k][x]);for(x=0;x<l;x++)for(k=0;k<b.length;k++)x<D[k].length&&(h[L++]=D[k][x]);G.dataCache=h}b=G.dataCache;h=-1;q=G.moduleCount-1;l=7;V=
0;for(D=G.moduleCount-1;D>0;D-=2)for(D==6&&D--;;){for(k=0;k<2;k++)G.modules[q][D-k]==null&&(L=!1,V<b.length&&(L=(b[V]>>>l&1)==1),z41(I,q,D-k)&&(L=!L),G.modules[q][D-k]=L,l--,l==-1&&(V++,l=7));q+=h;if(q<0||G.moduleCount<=q){q-=h;h=-h;break}}},sCW=function(G,b,I){for(var h=-1;h<=7;h++)if(!(b+h<=-1||G.moduleCount<=b+h))for(var q=-1;q<=7;q++)I+q<=-1||G.moduleCount<=I+q||(G.modules[b+h][I+q]=0<=h&&h<=6&&(q==0||q==6)||0<=q&&q<=6&&(h==0||h==6)||2<=h&&h<=4&&2<=q&&q<=4?!0:!1)},wH5=function(G){for(var b=0,
I=0,h=0;h<8;h++){OMK(G,!0,h);
var q=G;for(var l=q.moduleCount,V=0,D=0;D<l;D++)for(var k=0;k<l;k++){for(var L=0,x=q.isDark(D,k),f=-1;f<=1;f++)if(!(D+f<0||l<=D+f))for(var T=-1;T<=1;T++)k+T<0||l<=k+T||(f!=0||T!=0)&&x==q.isDark(D+f,k+T)&&L++;L>5&&(V+=3+L-5)}for(D=0;D<l-1;D++)for(k=0;k<l-1;k++)if(L=0,q.isDark(D,k)&&L++,q.isDark(D+1,k)&&L++,q.isDark(D,k+1)&&L++,q.isDark(D+1,k+1)&&L++,L==0||L==4)V+=3;for(D=0;D<l;D++)for(k=0;k<l-6;k++)q.isDark(D,k)&&!q.isDark(D,k+1)&&q.isDark(D,k+2)&&q.isDark(D,k+3)&&q.isDark(D,k+4)&&!q.isDark(D,k+5)&&
q.isDark(D,k+6)&&(V+=40);for(k=0;k<l;k++)for(D=0;D<l-6;D++)q.isDark(D,k)&&!q.isDark(D+1,k)&&q.isDark(D+2,k)&&q.isDark(D+3,k)&&q.isDark(D+4,k)&&!q.isDark(D+5,k)&&q.isDark(D+6,k)&&(V+=40);for(k=L=0;k<l;k++)for(D=0;D<l;D++)q.isDark(D,k)&&L++;q=V+=Math.abs(100*L/l/l-50)/5*10;if(h==0||b>q)b=q,I=h}return I},gqL=[[],
[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]],qm=function(G){for(var b=0;G!=0;)b++,G>>>=1;return b},z41=function(G,b,I){switch(G){case 0:return(b+I)%2==0;
case 1:return b%2==0;case 2:return I%3==0;case 3:return(b+I)%3==0;case 4:return(Math.floor(b/2)+Math.floor(I/3))%2==0;case 5:return b*I%2+b*I%3==0;case 6:return(b*I%2+b*I%3)%2==0;case 7:return(b*I%3+(b+I)%2)%2==0;default:throw Error("Lk`"+G);}},Mm5=function(G,b){if(1<=b&&b<10)switch(G){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Mk`"+G);}else if(b<27)switch(G){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Mk`"+G);}else if(b<41)switch(G){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Mk`"+G);}else throw Error("Nk`"+b);},iRL=function(G){if(G<1)throw Error("Ok`"+G);
return oqY[G]},tme=function(G){for(;G<0;)G+=255;
for(;G>=256;)G-=255;return j_[G]},j_=Array(256),oqY=Array(256),PdL=0;PdL<8;PdL++)j_[PdL]=1<<PdL;
for(var lT=8;lT<256;lT++)j_[lT]=j_[lT-4]^j_[lT-5]^j_[lT-6]^j_[lT-8];for(var dSD=0;dSD<255;dSD++)oqY[j_[dSD]]=dSD;d6.prototype.get=function(G){return this.num[G]};
d6.prototype.getLength=function(){return this.num.length};
d6.prototype.multiply=function(G){for(var b=Array(this.getLength()+G.getLength()-1),I=0;I<this.getLength();I++)for(var h=0;h<G.getLength();h++)b[I+h]^=tme(iRL(this.get(I))+iRL(G.get(h)));return new d6(b,0)};
d6.prototype.mod=function(G){if(this.getLength()-G.getLength()<0)return this;for(var b=iRL(this.get(0))-iRL(G.get(0)),I=Array(this.getLength()),h=0;h<this.getLength();h++)I[h]=this.get(h);for(h=0;h<G.getLength();h++)I[h]^=tme(iRL(G.get(h))+b);return(new d6(I,0)).mod(G)};
var ynj=[[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]],AnK=function(G,b){switch(b){case 1:return ynj[(G-1)*4];case 0:return ynj[(G-1)*4+1];case 3:return ynj[(G-1)*4+2];case 2:return ynj[(G-1)*4+3]}};
JWf.prototype.get=function(G){return(this.buffer[Math.floor(G/8)]>>>7-G%8&1)==1};
JWf.prototype.put=function(G,b){for(var I=0;I<b;I++)ZRF(this,(G>>>b-I-1&1)==1)};
var ZRF=function(G,b){var I=Math.floor(G.length/8);G.buffer.length<=I&&G.buffer.push(0);b&&(G.buffer[I]|=128>>>G.length%8);G.length++},hg=[[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]],RmK=function(){var G=function(b,I){this.JSC$20006__el=b;this.JSC$20006__htOption=I};
G.prototype.draw=function(b){function I(x,f){x=document.createElementNS("http://www.w3.org/2000/svg",x);for(var T in f)f.hasOwnProperty(T)&&(T==="href"?_.HX3(x,f[T]):_.Vs([_.fy(Lq5),_.fy(QCf),_.fy(xS8),_.fy(fgL),_.fy(TZK),_.fy(BZW),_.fy(USW)],x,T,f[T]));return x}
var h=this.JSC$20006__htOption,q=this.JSC$20006__el,l=b.moduleCount;this.clear();var V=I("svg",{viewBox:"0 0 "+String(l)+" "+String(l),width:"100%",height:"100%",fill:h.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});q.appendChild(V);V.appendChild(I("rect",{fill:h.colorLight,width:"100%",height:"100%"}));V.appendChild(I("rect",{fill:h.colorDark,width:"1",height:"1",id:"template"}));for(var D=0;D<l;D++)for(var k=0;k<l;k++)if(b.isDark(D,k)){var L=I("use",{x:String(D),y:String(k),href:"#template"});
V.appendChild(L)}};
G.prototype.clear=function(){for(;this.JSC$20006__el.hasChildNodes();)this.JSC$20006__el.removeChild(this.JSC$20006__el.lastChild)};
return G}(),umD=document.documentElement.tagName.toLowerCase()==="svg"?RmK:typeof CanvasRenderingContext2D!="undefined"?function(){var G=function(b,I){this._bIsPainted=!1;
KAf();this.JSC$20006__htOption=I;this._elCanvas=document.createElement("canvas");this._elCanvas.width=I.width;this._elCanvas.height=I.height;b.appendChild(this._elCanvas);this.JSC$20006__el=b;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$20006__el.appendChild(this._elImage);this._bSupportDataURI=null};
G.prototype._onMakeImage=function(){var b=this._elCanvas.toDataURL("image/png");this._elImage.src=b;this._elImage.style.display="block";this._elCanvas.style.display="none"};
G.prototype._safeSetDataURI=function(b,I){var h=this;h._fFail=I;h._fSuccess=b;h._bSupportDataURI===null?(b=_.ol("IMG"),I=function(){h._bSupportDataURI=!1;h._fFail&&h._fFail.call(h)},b.onabort=I,b.onerror=I,b.onload=function(){h._bSupportDataURI=!0;
h._fSuccess&&h._fSuccess.call(h)},b.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):h._bSupportDataURI===!0&&h._fSuccess?h._fSuccess.call(h):h._bSupportDataURI===!1&&h._fFail&&h._fFail.call(h)};
G.prototype.draw=function(b){var I=this._oContext,h=this.JSC$20006__htOption,q=b.moduleCount,l=h.width/q,V=h.height/q,D=Math.round(l),k=Math.round(V);this._elImage.style.display="none";this.clear();for(var L=0;L<q;L++)for(var x=0;x<q;x++){var f=b.isDark(L,x),T=x*l,B=L*V;I.strokeStyle=f?h.colorDark:h.colorLight;I.lineWidth=1;I.fillStyle=f?h.colorDark:h.colorLight;I.fillRect(T,B,l,V);I.strokeRect(Math.floor(T)+.5,Math.floor(B)+.5,D,k);I.strokeRect(Math.ceil(T)-.5,Math.ceil(B)-.5,D,k)}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(b){return b?Math.floor(b*1E3)/1E3:b};
return G}():function(){var G=function(b,I){this.JSC$20006__el=b;
this.JSC$20006__htOption=I};
G.prototype.draw=function(b){for(var I=this.JSC$20006__htOption,h=this.JSC$20006__el,q=b.moduleCount,l=Math.floor(I.width/q),V=Math.floor(I.height/q),D=['<table style="border:0;border-collapse:collapse;">'],k=0;k<q;k++){D.push("<tr>");for(var L=0;L<q;L++)D.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+l+"px;height:"+V+"px;background-color:"+(b.isDark(k,L)?I.colorDark:I.colorLight)+';"></td>');D.push("</tr>")}D.push("</table>");b=D.join("");b=_.byX(_.hLX,b);_.ec(h,b);
b=h.childNodes[0];q=(I.width-b.offsetWidth)/2;l=(I.height-b.offsetHeight)/2;q>0&&l>0&&(b.style.margin=l+"px "+q+"px")};
G.prototype.clear=function(){this.JSC$20006__el.textContent=""};
return G}();
EU9.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20009__android||this.JSC$20009__android>=3)&&this._oDrawing.makeImage()};
EU9.prototype.clear=function(){this._oDrawing.clear()};
_.hd.QRCode=EU9;var rn1={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Fqe=function(){};
Fqe.prototype.stringify=function(G){return _.hd.JSON.stringify(G,void 0)};
Fqe.prototype.parse=function(G){return _.hd.JSON.parse(G,void 0)};var HRj=function(){_.Un.call(this,"z")};
_.OE(HRj,_.Un);var WqF=function(){_.Un.call(this,"y")};
_.OE(WqF,_.Un);var ag3=null,NZc=function(){return ag3=ag3||new _.Z$},YNL=function(G){_.Un.call(this,"serverreachability",G)};
_.OE(YNL,_.Un);var CdK=function(G){var b=NZc();b.dispatchEvent(new YNL(b,G))},Jn9=function(G,b){_.Un.call(this,"statevent",G);
this.stat=b};
_.OE(Jn9,_.Un);var mj=function(G){var b=NZc();b.dispatchEvent(new Jn9(b,G))},Kqj=function(G,b,I,h){_.Un.call(this,"timingevent",G);
this.size=b;this.rtt=I;this.retries=h};
_.OE(Kqj,_.Un);var u69=function(G,b,I){var h=NZc();h.dispatchEvent(new Kqj(h,G,b,I))},R4f=function(G,b){if(typeof G!=="function")throw Error("Sk");
return _.hd.setTimeout(function(){G()},b)};var e_=function(){this.redactEnabled_=!0};
e_.prototype.disableRedact=function(){this.redactEnabled_=!1};
var nqe=function(G,b,I,h,q,l){G.info(function(){if(G.redactEnabled_)if(l){var V="";for(var D=l.split("&"),k=0;k<D.length;k++){var L=D[k].split("=");if(L.length>1){var x=L[0];L=L[1];var f=x.split("_");V=f.length>=2&&f[1]=="type"?V+(x+"="+L+"&"):V+(x+"=redacted&")}}}else V=null;else V=l;return"XMLHTTP REQ ("+h+") [attempt "+q+"]: "+b+"\n"+I+"\n"+V})},OR8=function(G,b,I,h,q,l,V){G.info(function(){return"XMLHTTP RESP ("+h+") [ attempt "+q+"]: "+b+"\n"+I+"\n"+l+" "+V})},Vd=function(G,b,I,h){G.info(function(){return"XMLHTTP TEXT ("+
b+"): "+wQj(G,I)+(h?" "+h:"")})},EqW=function(G,b){G.info(function(){return"TIMEOUT: "+b})};
e_.prototype.debug=function(){};
e_.prototype.info=function(){};
e_.prototype.warning=function(){};
var wQj=function(G,b){if(!G.redactEnabled_)return b;if(!b)return null;try{var I=JSON.parse(b);if(I)for(var h=0;h<I.length;h++)if(Array.isArray(I[h])){var q=I[h];if(!(q.length<2)){var l=q[1];if(Array.isArray(l)&&!(l.length<1)){var V=l[0];if(V!="noop"&&V!="stop"&&V!="close")for(var D=1;D<l.length;D++)l[D]=""}}}return(0,_.yP)(I)}catch(k){return G.debug("Exception parsing expected JS array - probably was not JS"),b}};var Dt=function(G,b,I,h,q){this.JSC$20031_channel_=G;this.JSC$20031_channelDebug_=b;this.sid_=I;this.JSC$20031_rid_=h;this.JSC$20031_retryId_=q||1;this.JSC$20031_eventHandler_=new _.Bh(this);this.timeout_=45E3;this.JSC$20031_extraHeaders_=null;this.JSC$20031_successful_=!1;this.JSC$20031_postData_=this.JSC$20031_requestUri_=this.JSC$20031_baseUri_=this.JSC$20031_type_=this.JSC$20031_requestStartTime_=this.JSC$20031_watchDogTimeoutTime_=this.JSC$20031_watchDogTimerId_=null;this.JSC$20031_pendingMessages_=
[];this.JSC$20031_xmlHttp_=null;this.JSC$20031_xmlHttpChunkStart_=0;this.JSC$20031_lastError_=this.JSC$20031_verb_=null;this.JSC$20031_lastStatusCode_=-1;this.JSC$20031_cancelled_=!1;this.JSC$20031_readyStateChangeThrottleMs_=0;this.JSC$20031_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new pQK},pQK=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},SNF=function(G,b){switch(G){case 0:return"Non-200 return code ("+b+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},XQF={},$DY={};
Dt.prototype.setTimeout=function(G){this.timeout_=G};
var bP9=function(G,b,I){G.JSC$20031_type_=1;G.JSC$20031_baseUri_=_.km(b.clone());G.JSC$20031_postData_=I;G.decodeChunks_=!0;GVf(G,null)},GVf=function(G,b){G.JSC$20031_requestStartTime_=Date.now();
IN9(G);G.JSC$20031_requestUri_=G.JSC$20031_baseUri_.clone();dLc(G.JSC$20031_requestUri_,"t",G.JSC$20031_retryId_);G.JSC$20031_xmlHttpChunkStart_=0;var I=G.JSC$20031_channel_.JSC$20050_supportsCrossDomainXhrs_;G.fetchResponseState_=new pQK;G.JSC$20031_xmlHttp_=hdY(G.JSC$20031_channel_,I?b:null,!G.JSC$20031_postData_);G.JSC$20031_readyStateChangeThrottleMs_>0&&(G.JSC$20031_readyStateChangeThrottle_=new _.GB((0,_.Hr)(G.JSC$20035_xmlHttpHandler_,G,G.JSC$20031_xmlHttp_),G.JSC$20031_readyStateChangeThrottleMs_));
G.JSC$20031_eventHandler_.listen(G.JSC$20031_xmlHttp_,"readystatechange",G.JSC$20035_readyStateChangeHandler_);b=G.JSC$20031_extraHeaders_?_.Cy.clone(G.JSC$20031_extraHeaders_):{};G.JSC$20031_postData_?(G.JSC$20031_verb_||(G.JSC$20031_verb_="POST"),b["Content-Type"]="application/x-www-form-urlencoded",G.JSC$20031_xmlHttp_.send(G.JSC$20031_requestUri_,G.JSC$20031_verb_,G.JSC$20031_postData_,b)):(G.JSC$20031_verb_="GET",G.JSC$20031_xmlHttp_.send(G.JSC$20031_requestUri_,G.JSC$20031_verb_,null,b));CdK(1);
nqe(G.JSC$20031_channelDebug_,G.JSC$20031_verb_,G.JSC$20031_requestUri_,G.JSC$20031_rid_,G.JSC$20031_retryId_,G.JSC$20031_postData_)};
Dt.prototype.JSC$20035_readyStateChangeHandler_=function(G){G=G.target;var b=this.JSC$20031_readyStateChangeThrottle_;b&&_.F7(G)==3?(this.JSC$20031_channelDebug_.debug("Throttling readystatechange."),b.fire()):this.JSC$20035_xmlHttpHandler_(G)};
Dt.prototype.JSC$20035_xmlHttpHandler_=function(G){try{G==this.JSC$20031_xmlHttp_?qQK(this):this.JSC$20031_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.JSC$20031_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),jSL(this)}finally{}};
var qQK=function(G){var b=_.F7(G.JSC$20031_xmlHttp_),I=G.JSC$20031_xmlHttp_.JSC$9869_lastErrorCode_,h=G.JSC$20031_xmlHttp_.getStatus();if(!(b<3||b==3&&!jSL(G))){G.JSC$20031_cancelled_||b!=4||I==7||(I==8||h<=0?CdK(3):CdK(2));lNF(G);var q=G.JSC$20031_xmlHttp_.getStatus();G.JSC$20031_lastStatusCode_=q;I=mDW(G);jSL(G)||G.JSC$20031_channelDebug_.debug(function(){return"No response text for uri "+G.JSC$20031_requestUri_+" status "+q});
G.JSC$20031_successful_=q==200;OR8(G.JSC$20031_channelDebug_,G.JSC$20031_verb_,G.JSC$20031_requestUri_,G.JSC$20031_rid_,G.JSC$20031_retryId_,b,q);if(G.JSC$20031_successful_){if(G.decodeInitialResponse_&&!G.initialResponseDecoded_)if(h=ed9(G))Vd(G.JSC$20031_channelDebug_,G.JSC$20031_rid_,h,"Initial handshake response via X-HTTP-Initial-Response"),G.initialResponseDecoded_=!0,VdD(G,h);else{G.JSC$20031_successful_=!1;G.JSC$20031_lastError_=3;mj(12);G.JSC$20031_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
G.JSC$20031_rid_+")");cC(G);DDL(G);return}G.decodeChunks_?cVj(G,b,I):(Vd(G.JSC$20031_channelDebug_,G.JSC$20031_rid_,I,null),VdD(G,I));b==4&&cC(G);G.JSC$20031_successful_&&!G.JSC$20031_cancelled_&&(b==4?kVW(G.JSC$20031_channel_,G):(G.JSC$20031_successful_=!1,IN9(G)))}else i48(G.JSC$20031_xmlHttp_),q==400&&I.indexOf("Unknown SID")>0?(G.JSC$20031_lastError_=3,mj(12),G.JSC$20031_channelDebug_.warning("XMLHTTP Unknown SID ("+G.JSC$20031_rid_+")")):(G.JSC$20031_lastError_=0,mj(13),G.JSC$20031_channelDebug_.warning("XMLHTTP Bad status "+
q+" ("+G.JSC$20031_rid_+")")),cC(G),DDL(G)}},ed9=function(G){return G.JSC$20031_xmlHttp_&&(G=UV(G.JSC$20031_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Dr(G)?G:null},mDW=function(G){if(!vKa(G))return G.JSC$20031_xmlHttp_.getResponseText();
var b=G.JSC$20031_xmlHttp_.getResponse();if(b==="")return"";var I="",h=b.length,q=_.F7(G.JSC$20031_xmlHttp_)==4;if(!G.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return cC(G),DDL(G),"";G.fetchResponseState_.textDecoder=new _.hd.TextDecoder}for(var l=0;l<h;l++)G.fetchResponseState_.responseArrivedForFetch=!0,I+=G.fetchResponseState_.textDecoder.decode(b[l],{stream:!(q&&l==h-1)});b.length=0;G.fetchResponseState_.responseBuffer+=I;G.JSC$20031_xmlHttpChunkStart_=0;return G.fetchResponseState_.responseBuffer},
jSL=function(G){return G.JSC$20031_xmlHttp_?G.fetchResponseState_.responseArrivedForFetch?!0:!(!G.JSC$20031_xmlHttp_.getResponseText()&&!G.JSC$20031_xmlHttp_.getResponse()):!1},vKa=function(G){return G.JSC$20031_xmlHttp_?G.JSC$20031_verb_=="GET"&&G.JSC$20031_type_!=2&&G.JSC$20031_channel_.usesFetchStreams_:!1},cVj=function(G,b,I){for(var h=!0,q;!G.JSC$20031_cancelled_&&G.JSC$20031_xmlHttpChunkStart_<I.length;)if(q=Lk5(G,I),q==$DY){b==4&&(G.JSC$20031_lastError_=4,mj(14),h=!1);
Vd(G.JSC$20031_channelDebug_,G.JSC$20031_rid_,null,"[Incomplete Response]");break}else if(q==XQF){G.JSC$20031_lastError_=4;mj(15);Vd(G.JSC$20031_channelDebug_,G.JSC$20031_rid_,I,"[Invalid Chunk]");h=!1;break}else Vd(G.JSC$20031_channelDebug_,G.JSC$20031_rid_,q,null),VdD(G,q);vKa(G)&&G.JSC$20031_xmlHttpChunkStart_!=0&&(G.fetchResponseState_.responseBuffer=G.fetchResponseState_.responseBuffer.slice(G.JSC$20031_xmlHttpChunkStart_),G.JSC$20031_xmlHttpChunkStart_=0);b!=4||I.length!=0||G.fetchResponseState_.responseArrivedForFetch||
(G.JSC$20031_lastError_=1,mj(16),h=!1);G.JSC$20031_successful_=G.JSC$20031_successful_&&h;h?I.length>0&&!G.firstByteReceived_&&(G.firstByteReceived_=!0,b=G.JSC$20031_channel_,b.JSC$20050_backChannelRequest_==G&&b.detectBufferingProxy_&&!b.bpDetectionDone_&&(b.JSC$20050_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+I.length),QSF(b),b.bpDetectionDone_=!0,mj(11))):(Vd(G.JSC$20031_channelDebug_,G.JSC$20031_rid_,I,"[Invalid Chunked Response]"),cC(G),DDL(G))},Lk5=function(G,
b){var I=G.JSC$20031_xmlHttpChunkStart_,h=b.indexOf("\n",I);
if(h==-1)return $DY;I=Number(b.substring(I,h));if(isNaN(I))return XQF;h+=1;if(h+I>b.length)return $DY;b=b.slice(h,h+I);G.JSC$20031_xmlHttpChunkStart_=h+I;return b};
Dt.prototype.cancel=function(){this.JSC$20031_cancelled_=!0;cC(this)};
var IN9=function(G){G.JSC$20031_watchDogTimeoutTime_=Date.now()+G.timeout_;xDL(G,G.timeout_)},xDL=function(G,b){if(G.JSC$20031_watchDogTimerId_!=null)throw Error("Tk");
G.JSC$20031_watchDogTimerId_=R4f((0,_.Hr)(G.JSC$20035_onWatchDogTimeout_,G),b)},lNF=function(G){G.JSC$20031_watchDogTimerId_&&(_.hd.clearTimeout(G.JSC$20031_watchDogTimerId_),G.JSC$20031_watchDogTimerId_=null)};
Dt.prototype.JSC$20035_onWatchDogTimeout_=function(){this.JSC$20031_watchDogTimerId_=null;var G=Date.now();G-this.JSC$20031_watchDogTimeoutTime_>=0?(EqW(this.JSC$20031_channelDebug_,this.JSC$20031_requestUri_),this.JSC$20031_type_!=2&&(CdK(3),mj(17)),cC(this),this.JSC$20031_lastError_=2,DDL(this)):(this.JSC$20031_channelDebug_.warning("WatchDog timer called too early"),xDL(this,this.JSC$20031_watchDogTimeoutTime_-G))};
var DDL=function(G){G.JSC$20031_channel_.state_==0||G.JSC$20031_cancelled_||kVW(G.JSC$20031_channel_,G)},cC=function(G){lNF(G);
_.VQ(G.JSC$20031_readyStateChangeThrottle_);G.JSC$20031_readyStateChangeThrottle_=null;G.JSC$20031_eventHandler_.removeAll();if(G.JSC$20031_xmlHttp_){var b=G.JSC$20031_xmlHttp_;G.JSC$20031_xmlHttp_=null;b.abort();b.dispose()}};
Dt.prototype.getLastError=function(){return this.JSC$20031_lastError_};
var VdD=function(G,b){try{var I=G.JSC$20031_channel_;if(I.state_!=0&&(I.JSC$20050_backChannelRequest_==G||fN3(I.forwardChannelRequestPool_,G)))if(!G.initialResponseDecoded_&&fN3(I.forwardChannelRequestPool_,G)&&I.state_==3){try{var h=I.wireCodec_.JSC$20045_parser_.parse(b)}catch(D){h=null}if(Array.isArray(h)&&h.length==3){b=h;if(b[0]==0)a:if(I.JSC$20050_channelDebug_.debug("Server claims our backchannel is missing."),I.JSC$20050_backChannelTimerId_)I.JSC$20050_channelDebug_.debug("But we are currently starting the request.");
else{if(I.JSC$20050_backChannelRequest_)if(I.JSC$20050_backChannelRequest_.JSC$20031_requestStartTime_+3E3<G.JSC$20031_requestStartTime_)TsD(I),BsD(I);else break a;else I.JSC$20050_channelDebug_.warning("We do not have a BackChannel established");UD3(I);mj(18)}else{I.JSC$20050_lastPostResponseArrayId_=b[1];var q=I.JSC$20050_lastPostResponseArrayId_-I.JSC$20050_lastArrayId_;if(0<q){var l=b[2];I.JSC$20050_channelDebug_.debug(l+" bytes (in "+q+" arrays) are outstanding on the BackChannel");l<37500&&
I.enableStreaming_&&I.JSC$20050_backChannelRetryCount_==0&&!I.JSC$20050_deadBackChannelTimerId_&&(I.JSC$20050_deadBackChannelTimerId_=R4f((0,_.Hr)(I.JSC$20052_onBackChannelDead_,I),6E3))}}if(sS1(I.forwardChannelRequestPool_)<=1&&I.forwardChannelFlushedCallback_){try{I.forwardChannelFlushedCallback_()}catch(D){}I.forwardChannelFlushedCallback_=void 0}}else I.JSC$20050_channelDebug_.debug("Bad POST response data returned"),kD(I,11)}else if((G.initialResponseDecoded_||I.JSC$20050_backChannelRequest_==
G)&&TsD(I),!_.Dr(b)){var V=I.wireCodec_.JSC$20045_parser_.parse(b);I.onInput_(V,G)}CdK(4)}catch(D){}};var gKD=function(G,b){this.JSC$20038_mapId=G;this.map=b;this.context=null};var AVa=function(G){this.maxPoolSizeConfigured_=G||10;_.hd.PerformanceNavigationTiming?(G=_.hd.performance.getEntriesByType("navigation"),G=G.length>0&&(G[0].nextHopProtocol=="hq"||G[0].nextHopProtocol=="h2")):G=!!(_.hd.chrome&&_.hd.chrome.loadTimes&&_.hd.chrome.loadTimes()&&_.hd.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20041_maxSize_=G?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20041_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20041_request_=null;this.JSC$20041_pendingMessages_=
[]},MdK=function(G){return G.JSC$20041_request_?!0:G.requestPool_?G.requestPool_.size>=G.JSC$20041_maxSize_:!1},sS1=function(G){return G.JSC$20041_request_?1:G.requestPool_?G.requestPool_.size:0},fN3=function(G,b){return G.JSC$20041_request_?G.JSC$20041_request_==b:G.requestPool_?G.requestPool_.has(b):!1},ZPK=function(G,b){G.requestPool_?G.requestPool_.add(b):G.JSC$20041_request_=b},tdK=function(G,b){G.JSC$20041_request_&&G.JSC$20041_request_==b?G.JSC$20041_request_=null:G.requestPool_&&G.requestPool_.has(b)&&
G.requestPool_.delete(b)};
AVa.prototype.cancel=function(){this.JSC$20041_pendingMessages_=zd8(this);if(this.JSC$20041_request_)this.JSC$20041_request_.cancel(),this.JSC$20041_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var G=_.e(this.requestPool_.values()),b=G.next();!b.done;b=G.next())b.value.cancel();this.requestPool_.clear()}};
var zd8=function(G){if(G.JSC$20041_request_!=null)return G.JSC$20041_pendingMessages_.concat(G.JSC$20041_request_.JSC$20031_pendingMessages_);if(G.requestPool_!=null&&G.requestPool_.size!==0){var b=G.JSC$20041_pendingMessages_;G=_.e(G.requestPool_.values());for(var I=G.next();!I.done;I=G.next())b=b.concat(I.value.JSC$20031_pendingMessages_);return b}return _.Jd(G.JSC$20041_pendingMessages_)},oKf=function(G,b){G.JSC$20041_pendingMessages_=G.JSC$20041_pendingMessages_.concat(b)};var iP9=function(G,b){var I=new e_;I.debug("TestLoadImage: loading "+G);if(_.hd.Image){var h=new Image;h.onload=_.l9(vC,I,"TestLoadImage: loaded",!0,b,h);h.onerror=_.l9(vC,I,"TestLoadImage: error",!1,b,h);h.onabort=_.l9(vC,I,"TestLoadImage: abort",!1,b,h);h.ontimeout=_.l9(vC,I,"TestLoadImage: timeout",!1,b,h);_.hd.setTimeout(function(){if(h.ontimeout)h.ontimeout()},1E4);
h.src=G}else b(!1)},PDf=function(G,b){var I=new e_,h=new AbortController,q=setTimeout(function(){h.abort();
vC(I,"TestPingServer: timeout",!1,b)},1E4);
fetch(G,{signal:h.signal}).then(function(l){clearTimeout(q);l.ok?vC(I,"TestPingServer: ok",!0,b):vC(I,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(q);
vC(I,"TestPingServer: error",!1,b)})},vC=function(G,b,I,h,q){try{G.debug(b),q&&(q.onload=null,q.onerror=null,q.onabort=null,q.ontimeout=null),h(I)}catch(l){}};var dDa=function(){this.JSC$20045_parser_=new Fqe};var yVD=function(G,b,I){return I&&I.internalChannelParams?I.internalChannelParams[G]||b:b},Lg=function(G){this.serverVersion_=0;
this.JSC$20050_outgoingMaps_=[];this.JSC$20050_channelDebug_=new e_;this.JSC$20050_hostPrefix_=this.JSC$20050_backChannelUri_=this.JSC$20050_forwardChannelUri_=this.JSC$20050_path_=this.JSC$20050_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20050_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20050_extraHeaders_=null;this.JSC$20050_nextMapId_=this.JSC$20050_nextRid_=0;this.JSC$20050_failFast_=yVD("failFast",!1,G);this.enableStreaming_=this.JSC$20050_deadBackChannelTimerId_=
this.JSC$20050_backChannelTimerId_=this.JSC$20050_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20050_lastPostResponseArrayId_=this.JSC$20050_lastArrayId_=-1;this.JSC$20050_backChannelAttemptId_=this.JSC$20050_backChannelRetryCount_=this.JSC$20050_forwardChannelRetryCount_=0;this.JSC$20050_baseRetryDelayMs_=yVD("baseRetryDelayMs",5E3,G);this.JSC$20050_retryDelaySeedMs_=yVD("retryDelaySeedMs",1E4,G);this.JSC$20050_forwardChannelMaxRetries_=
yVD("forwardChannelMaxRetries",2,G);this.JSC$20050_forwardChannelRequestTimeoutMs_=yVD("forwardChannelRequestTimeoutMs",2E4,G);this.JSC$20050_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$20050_supportsCrossDomainXhrs_=G&&G.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new AVa(G&&G.concurrentRequestLimit);this.wireCodec_=new dDa;
this.fastHandshake_=G&&G.fastHandshake||!1;this.encodeInitMessageHeaders_=G&&G.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20050_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=G&&G.blockingHandshake||!1;G&&G.disableRedact&&this.JSC$20050_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};
Lg.prototype.JSC$20052_channelVersion_=8;Lg.prototype.state_=1;
Lg.prototype.connect=function(G,b,I,h){this.JSC$20050_channelDebug_.debug("connect()");mj(0);this.JSC$20050_path_=G;this.JSC$20050_extraParams_=b||{};I&&h!==void 0&&(this.JSC$20050_extraParams_.OSID=I,this.JSC$20050_extraParams_.OAID=h);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20050_channelDebug_.debug("connectChannel_()");G=rV1(this,null,this.JSC$20050_path_);this.JSC$20050_channelDebug_.debug("GetForwardChannelUri: "+G);this.JSC$20050_forwardChannelUri_=G;FkK(this)};
Lg.prototype.disconnect=function(){this.JSC$20050_channelDebug_.debug("disconnect()");HPa(this);if(this.state_==3){var G=this.JSC$20050_nextRid_++,b=this.JSC$20050_forwardChannelUri_.clone();_.IJ(b,"SID",this.sid_);_.IJ(b,"RID",G);_.IJ(b,"TYPE","terminate");WkD(this,b);G=new Dt(this,this.JSC$20050_channelDebug_,this.sid_,G);G.JSC$20031_type_=2;G.JSC$20031_baseUri_=_.km(b.clone());b=!1;if(_.hd.navigator&&_.hd.navigator.sendBeacon)try{b=_.hd.navigator.sendBeacon(G.JSC$20031_baseUri_.toString(),"")}catch(I){}!b&&
_.hd.Image&&((new Image).src=G.JSC$20031_baseUri_,b=!0);b||(G.JSC$20031_xmlHttp_=hdY(G.JSC$20031_channel_,null),G.JSC$20031_xmlHttp_.send(G.JSC$20031_baseUri_));G.JSC$20031_requestStartTime_=Date.now();IN9(G)}aNL(this)};
var BsD=function(G){G.JSC$20050_backChannelRequest_&&(QSF(G),G.JSC$20050_backChannelRequest_.cancel(),G.JSC$20050_backChannelRequest_=null)},HPa=function(G){BsD(G);
G.JSC$20050_backChannelTimerId_&&(_.hd.clearTimeout(G.JSC$20050_backChannelTimerId_),G.JSC$20050_backChannelTimerId_=null);TsD(G);G.forwardChannelRequestPool_.cancel();G.JSC$20050_forwardChannelTimerId_&&(typeof G.JSC$20050_forwardChannelTimerId_==="number"&&_.hd.clearTimeout(G.JSC$20050_forwardChannelTimerId_),G.JSC$20050_forwardChannelTimerId_=null)};
Lg.prototype.getState=function(){return this.state_};
var FkK=function(G){MdK(G.forwardChannelRequestPool_)||G.JSC$20050_forwardChannelTimerId_||(G.JSC$20050_forwardChannelTimerId_=!0,_.zy(G.JSC$20052_onStartForwardChannelTimer_,G),G.JSC$20050_forwardChannelRetryCount_=0)},YQK=function(G,b){if(sS1(G.forwardChannelRequestPool_)>=G.forwardChannelRequestPool_.JSC$20041_maxSize_-(G.JSC$20050_forwardChannelTimerId_?1:0))return!1;
if(G.JSC$20050_forwardChannelTimerId_)return G.JSC$20050_channelDebug_.debug("Use the retry request that is already scheduled."),G.JSC$20050_outgoingMaps_=b.JSC$20031_pendingMessages_.concat(G.JSC$20050_outgoingMaps_),!0;if(G.state_==1||G.state_==2||G.JSC$20050_forwardChannelRetryCount_>=(G.JSC$20050_failFast_?0:G.JSC$20050_forwardChannelMaxRetries_))return!1;G.JSC$20050_channelDebug_.debug("Going to retry POST");G.JSC$20050_forwardChannelTimerId_=R4f((0,_.Hr)(G.JSC$20052_onStartForwardChannelTimer_,
G,b),Nsa(G,G.JSC$20050_forwardChannelRetryCount_));G.JSC$20050_forwardChannelRetryCount_++;return!0};
Lg.prototype.JSC$20052_onStartForwardChannelTimer_=function(G){if(this.JSC$20050_forwardChannelTimerId_)if(this.JSC$20050_forwardChannelTimerId_=null,this.JSC$20050_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!G){this.JSC$20050_channelDebug_.debug("open_()");this.JSC$20050_nextRid_=Math.floor(Math.random()*1E5);G=this.JSC$20050_nextRid_++;var b=new Dt(this,this.JSC$20050_channelDebug_,"",G),I=this.JSC$20050_extraHeaders_;this.initHeaders_&&(I?(I=_.Cy.clone(I),_.Cy.extend(I,this.initHeaders_)):
I=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(b.JSC$20031_extraHeaders_=I,I=null);var h;if(this.fastHandshake_)a:{for(var q=h=0;q<this.JSC$20050_outgoingMaps_.length;q++){b:{var l=this.JSC$20050_outgoingMaps_[q];if("__data__"in l.map&&(l=l.map.__data__,typeof l==="string")){l=l.length;break b}l=void 0}if(l===void 0)break;h+=l;if(h>4096){h=q;break a}if(h===4096||q===this.JSC$20050_outgoingMaps_.length-1){h=q+1;break a}}h=1E3}else h=1E3;h=CDj(this,b,h);
q=this.JSC$20050_forwardChannelUri_.clone();_.IJ(q,"RID",G);_.IJ(q,"CVER",22);this.httpSessionIdParam_&&_.IJ(q,"X-HTTP-Session-Id",this.httpSessionIdParam_);WkD(this,q);I&&(this.encodeInitMessageHeaders_?h="headers="+_.IN(K81(I))+"&"+h:this.httpHeadersOverwriteParam_&&uHe(q,this.httpHeadersOverwriteParam_,I));ZPK(this.forwardChannelRequestPool_,b);this.blockingHandshake_&&_.IJ(q,"TYPE","init");this.fastHandshake_?(_.IJ(q,"$req",h),_.IJ(q,"SID","null"),b.decodeInitialResponse_=!0,bP9(b,q,null)):bP9(b,
q,h);this.state_=2}}else this.state_==3&&(G?JV1(this,G):this.JSC$20050_outgoingMaps_.length==0?this.JSC$20050_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):MdK(this.forwardChannelRequestPool_)||(JV1(this),this.JSC$20050_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var JV1=function(G,b){var I;b?I=b.JSC$20031_rid_:I=G.JSC$20050_nextRid_++;var h=G.JSC$20050_forwardChannelUri_.clone();_.IJ(h,"SID",G.sid_);_.IJ(h,"RID",I);_.IJ(h,"AID",G.JSC$20050_lastArrayId_);WkD(G,h);G.httpHeadersOverwriteParam_&&G.JSC$20050_extraHeaders_&&uHe(h,G.httpHeadersOverwriteParam_,G.JSC$20050_extraHeaders_);I=new Dt(G,G.JSC$20050_channelDebug_,G.sid_,I,G.JSC$20050_forwardChannelRetryCount_+1);G.httpHeadersOverwriteParam_===null&&(I.JSC$20031_extraHeaders_=G.JSC$20050_extraHeaders_);
b&&(G.JSC$20050_outgoingMaps_=b.JSC$20031_pendingMessages_.concat(G.JSC$20050_outgoingMaps_));b=CDj(G,I,1E3);I.setTimeout(Math.round(G.JSC$20050_forwardChannelRequestTimeoutMs_*.5)+Math.round(G.JSC$20050_forwardChannelRequestTimeoutMs_*.5*Math.random()));ZPK(G.forwardChannelRequestPool_,I);bP9(I,h,b)},WkD=function(G,b){G.JSC$20050_extraParams_&&_.Cy.forEach(G.JSC$20050_extraParams_,function(I,h){_.IJ(b,h,I)});
G.handler_&&_.Cy.forEach({},function(I,h){_.IJ(b,h,I)})},CDj=function(G,b,I){I=Math.min(G.JSC$20050_outgoingMaps_.length,I);
var h=G.handler_?(0,_.Hr)(G.handler_.JSC$20056_badMapError,G.handler_,G):null;a:{for(var q=G.JSC$20050_outgoingMaps_,l=-1;;){var V=["count="+I];l==-1?I>0?(l=q[0].JSC$20038_mapId,V.push("ofs="+l)):l=0:V.push("ofs="+l);for(var D=!0,k=0;k<I;k++){var L=q[k].JSC$20038_mapId,x=q[k].map;L-=l;if(L<0)l=Math.max(0,q[k].JSC$20038_mapId-100),D=!1;else try{L="req"+L+"_"||"";try{var f=x instanceof Map?x:Object.entries(x);for(var T=_.e(f),B=T.next();!B.done;B=T.next()){var A=_.e(B.value),t=A.next().value,y=A.next().value,
F=y;_.Oj(y)&&(F=(0,_.yP)(y));V.push(L+t+"="+encodeURIComponent(F))}}catch(W){throw V.push(L+"type="+encodeURIComponent("_badmap")),W;}}catch(W){h&&h(x)}}if(D){f=V.join("&");break a}}f=void 0}G=G.JSC$20050_outgoingMaps_.splice(0,I);b.JSC$20031_pendingMessages_=G;return f},Kkc=function(G){G.JSC$20050_backChannelRequest_||G.JSC$20050_backChannelTimerId_||(G.JSC$20050_backChannelAttemptId_=1,_.zy(G.JSC$20052_onStartBackChannelTimer_,G),G.JSC$20050_backChannelRetryCount_=0)},UD3=function(G){if(G.JSC$20050_backChannelRequest_||
G.JSC$20050_backChannelTimerId_||G.JSC$20050_backChannelRetryCount_>=3)return!1;
G.JSC$20050_channelDebug_.debug("Going to retry GET");G.JSC$20050_backChannelAttemptId_++;G.JSC$20050_backChannelTimerId_=R4f((0,_.Hr)(G.JSC$20052_onStartBackChannelTimer_,G),Nsa(G,G.JSC$20050_backChannelRetryCount_));G.JSC$20050_backChannelRetryCount_++;return!0};
Lg.prototype.JSC$20052_onStartBackChannelTimer_=function(){this.JSC$20050_backChannelTimerId_=null;uGa(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20050_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20050_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20050_backChannelRequest_+" "+this.handshakeRttMs_);else{var G=4*this.handshakeRttMs_;this.JSC$20050_channelDebug_.info("BP detection timer enabled: "+G);this.bpDetectionTimerId_=R4f((0,_.Hr)(this.onBpDetectionTimer_,
this),G)}};
Lg.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20050_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20050_backChannelRequest_.JSC$20031_xmlHttp_!=null){var G=this.JSC$20050_backChannelRequest_.JSC$20031_xmlHttp_.getResponseText();G&&this.JSC$20050_channelDebug_.warning("Timer should have been cancelled : "+G)}this.JSC$20050_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;mj(10);BsD(this);uGa(this)}else this.JSC$20050_channelDebug_.warning("Invalid operation.")};
var QSF=function(G){G.bpDetectionTimerId_!=null&&(G.JSC$20050_channelDebug_.debug("Cancel the BP detection timer."),_.hd.clearTimeout(G.bpDetectionTimerId_),G.bpDetectionTimerId_=null)},uGa=function(G){G.JSC$20050_channelDebug_.debug("Creating new HttpRequest");
G.JSC$20050_backChannelRequest_=new Dt(G,G.JSC$20050_channelDebug_,G.sid_,"rpc",G.JSC$20050_backChannelAttemptId_);G.httpHeadersOverwriteParam_===null&&(G.JSC$20050_backChannelRequest_.JSC$20031_extraHeaders_=G.JSC$20050_extraHeaders_);G.JSC$20050_backChannelRequest_.JSC$20031_readyStateChangeThrottleMs_=0;var b=G.JSC$20050_backChannelUri_.clone();_.IJ(b,"RID","rpc");_.IJ(b,"SID",G.sid_);_.IJ(b,"AID",G.JSC$20050_lastArrayId_);_.IJ(b,"CI",G.enableStreaming_?"0":"1");!G.enableStreaming_&&G.longPollingTimeout_&&
_.IJ(b,"TO",G.longPollingTimeout_);_.IJ(b,"TYPE","xmlhttp");WkD(G,b);G.httpHeadersOverwriteParam_&&G.JSC$20050_extraHeaders_&&uHe(b,G.httpHeadersOverwriteParam_,G.JSC$20050_extraHeaders_);G.backChannelRequestTimeoutMs_&&G.JSC$20050_backChannelRequest_.setTimeout(G.backChannelRequestTimeoutMs_);var I=G.JSC$20050_backChannelRequest_,h=G.JSC$20050_hostPrefix_;I.JSC$20031_type_=1;I.JSC$20031_baseUri_=_.km(b.clone());I.JSC$20031_postData_=null;I.decodeChunks_=!0;GVf(I,h);G.JSC$20050_channelDebug_.debug("New Request created")};
Lg.prototype.JSC$20052_onBackChannelDead_=function(){this.JSC$20050_deadBackChannelTimerId_!=null&&(this.JSC$20050_deadBackChannelTimerId_=null,BsD(this),UD3(this),mj(19))};
var TsD=function(G){G.JSC$20050_deadBackChannelTimerId_!=null&&(_.hd.clearTimeout(G.JSC$20050_deadBackChannelTimerId_),G.JSC$20050_deadBackChannelTimerId_=null)},kVW=function(G,b){G.JSC$20050_channelDebug_.debug("Request complete");
var I=null;if(G.JSC$20050_backChannelRequest_==b){TsD(G);QSF(G);G.JSC$20050_backChannelRequest_=null;var h=2}else if(fN3(G.forwardChannelRequestPool_,b))I=b.JSC$20031_pendingMessages_,tdK(G.forwardChannelRequestPool_,b),h=1;else return;if(G.state_!=0)if(b.JSC$20031_successful_)h==1?(u69(b.JSC$20031_postData_?b.JSC$20031_postData_.length:0,Date.now()-b.JSC$20031_requestStartTime_,G.JSC$20050_forwardChannelRetryCount_),FkK(G)):Kkc(G);else{var q=b.JSC$20031_lastStatusCode_,l=b.getLastError();if(l==3||
l==0&&q>0)G.JSC$20050_channelDebug_.debug("Not retrying due to error type"),q>200&&(G.errorResponseStatusCode_=b.JSC$20031_lastStatusCode_);else{G.JSC$20050_channelDebug_.debug(function(){return"Maybe retrying, last error: "+SNF(l,G.errorResponseStatusCode_)});
if(h==1&&YQK(G,b)||h==2&&UD3(G))return;G.JSC$20050_channelDebug_.debug("Exceeded max number of retries")}I&&I.length>0&&oKf(G.forwardChannelRequestPool_,I);G.JSC$20050_channelDebug_.debug("Error: HTTP request failed");switch(l){case 1:kD(G,5);break;case 4:kD(G,10);break;case 3:kD(G,6);break;default:kD(G,2)}}},Nsa=function(G,b){var I=G.JSC$20050_baseRetryDelayMs_+Math.floor(Math.random()*G.JSC$20050_retryDelaySeedMs_);
G.isActive()||(G.JSC$20050_channelDebug_.debug("Inactive channel"),I*=2);return I*b};
Lg.prototype.onInput_=function(G,b){for(var I=0;I<G.length;I++){var h=G[I],q=h[0];if(q<=this.JSC$20050_lastArrayId_)this.JSC$20050_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+q+", lastArrayId: "+this.JSC$20050_lastArrayId_);else if(q>this.JSC$20050_lastArrayId_+1&&this.JSC$20050_lastArrayId_>-1&&this.JSC$20050_channelDebug_.warning("Received non-consecutive message with arrayId: "+q+", lastArrayId: "+this.JSC$20050_lastArrayId_),this.JSC$20050_lastArrayId_=q,
h=h[1],this.state_==2)if(h[0]=="c"){this.sid_=h[1];this.JSC$20050_hostPrefix_=h[2];q=h[3];q!=null&&(this.JSC$20052_channelVersion_=q,this.JSC$20050_channelDebug_.info("VER="+this.JSC$20052_channelVersion_));q=h[4];q!=null&&(this.serverVersion_=q,this.JSC$20050_channelDebug_.info("SVER="+this.serverVersion_));h=h[5];h!=null&&typeof h==="number"&&h>0&&(this.backChannelRequestTimeoutMs_=h*=1.5,this.JSC$20050_channelDebug_.info("backChannelRequestTimeoutMs_="+h));if(h=b.JSC$20031_xmlHttp_){var l=UV(h,
"X-Client-Wire-Protocol");l&&(q=this.forwardChannelRequestPool_,!q.requestPool_&&(_.c2(l,"spdy")||_.c2(l,"quic")||_.c2(l,"h2"))&&(q.JSC$20041_maxSize_=q.maxPoolSizeConfigured_,q.requestPool_=new Set,q.JSC$20041_request_&&(ZPK(q,q.JSC$20041_request_),q.JSC$20041_request_=null)));this.httpSessionIdParam_&&((h=UV(h,"X-HTTP-Session-Id"))?(this.httpSessionId_=h,_.IJ(this.JSC$20050_forwardChannelUri_,this.httpSessionIdParam_,h)):this.JSC$20050_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$20056_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-b.JSC$20031_requestStartTime_,this.JSC$20050_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));h=b;q=rV1(this,this.JSC$20050_supportsCrossDomainXhrs_?this.JSC$20050_hostPrefix_:null,this.JSC$20050_path_);this.JSC$20050_channelDebug_.debug("GetBackChannelUri: "+q);this.JSC$20050_backChannelUri_=q;h.initialResponseDecoded_?(this.JSC$20050_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
tdK(this.forwardChannelRequestPool_,h),q=h,(l=this.backChannelRequestTimeoutMs_)&&q.setTimeout(l),q.JSC$20031_watchDogTimerId_&&(lNF(q),IN9(q)),this.JSC$20050_backChannelRequest_=h):Kkc(this);this.JSC$20050_outgoingMaps_.length>0&&FkK(this)}else h[0]!="stop"&&h[0]!="close"||kD(this,7);else this.state_==3&&(h[0]=="stop"||h[0]=="close"?h[0]=="stop"?kD(this,7):this.disconnect():h[0]!="noop"&&this.handler_&&this.handler_.JSC$20056_channelHandleArray(h),this.JSC$20050_backChannelRetryCount_=0)}};
var kD=function(G,b){G.JSC$20050_channelDebug_.info("Error code "+b);if(b==2){var I=(0,_.Hr)(G.testNetworkCallback_,G),h=G.networkTestUrl_,q=!h;h=new _.a3(h||"//www.google.com/images/cleardot.gif");_.hd.location&&_.hd.location.protocol=="http"||_.h$(h,"https");_.km(h);q?iP9(h.toString(),I):PDf(h.toString(),I)}else mj(2);G.onError_(b)};
Lg.prototype.testNetworkCallback_=function(G){G?(this.JSC$20050_channelDebug_.info("Successfully pinged google.com"),mj(2)):(this.JSC$20050_channelDebug_.info("Failed to ping google.com"),mj(1))};
Lg.prototype.onError_=function(G){this.JSC$20050_channelDebug_.debug("HttpChannel: error - "+G);this.state_=0;this.handler_&&this.handler_.JSC$20056_channelError(G);aNL(this);HPa(this)};
var aNL=function(G){G.state_=0;G.nonAckedMapsAtChannelClose_=[];if(G.handler_){var b=zd8(G.forwardChannelRequestPool_);if(b.length!=0||G.JSC$20050_outgoingMaps_.length!=0)G.JSC$20050_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+b.length+", outgoing: "+G.JSC$20050_outgoingMaps_.length}),_.us(G.nonAckedMapsAtChannelClose_,b),_.us(G.nonAckedMapsAtChannelClose_,G.JSC$20050_outgoingMaps_),G.forwardChannelRequestPool_.JSC$20041_pendingMessages_.length=0,_.Jd(G.JSC$20050_outgoingMaps_),
G.JSC$20050_outgoingMaps_.length=0;
G.handler_.JSC$20056_channelClosed()}},Rda=function(G){if(G.state_==0)return G.nonAckedMapsAtChannelClose_;
var b=[];_.us(b,zd8(G.forwardChannelRequestPool_));_.us(b,G.JSC$20050_outgoingMaps_);return b},rV1=function(G,b,I){var h=_.Gt(I);
h.JSC$10105_domain_!=""?(b&&_.qR(h,b+"."+h.JSC$10105_domain_),_.jP(h,h.JSC$10105_port_)):(h=_.hd.location,h=t09(h.protocol,b?b+"."+h.hostname:h.hostname,+h.port,I));b=G.httpSessionIdParam_;I=G.httpSessionId_;b&&I&&_.IJ(h,b,I);_.IJ(h,"VER",G.JSC$20052_channelVersion_);WkD(G,h);return h},hdY=function(G,b,I){if(b&&!G.JSC$20050_supportsCrossDomainXhrs_)throw Error("Uk");
b=G.usesFetchStreams_&&!G.JSC$20050_xmlHttpFactory_?new _.rp(new NIK({streamBinaryChunks:I})):new _.rp(G.JSC$20050_xmlHttpFactory_);b.JSC$9869_withCredentials_=G.JSC$20050_supportsCrossDomainXhrs_;return b};
Lg.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var nKf=function(){};
_.m=nKf.prototype;_.m.JSC$20056_channelOpened=function(){};
_.m.JSC$20056_channelHandleArray=function(){};
_.m.JSC$20056_channelError=function(){};
_.m.JSC$20056_channelClosed=function(){};
_.m.isActive=function(){return!0};
_.m.JSC$20056_badMapError=function(){};var OP3=function(){},xD=function(G,b){_.Z$.call(this);
this.JSC$20059_channel_=new Lg(b);this.JSC$20059_url_=G;this.messageUrlParams_=b&&b.messageUrlParams||null;G=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(G?_.Cy.set(G,"X-Client-Protocol","webchannel"):G=_.Cy.create("X-Client-Protocol","webchannel"));this.JSC$20059_channel_.JSC$20050_extraHeaders_=G;G=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(G?_.Cy.set(G,"X-WebChannel-Content-Type",b.messageContentType):G=_.Cy.create("X-WebChannel-Content-Type",b.messageContentType));
b&&b.clientProfile&&(G?_.Cy.set(G,"X-WebChannel-Client-Profile",b.clientProfile):G=_.Cy.create("X-WebChannel-Client-Profile",b.clientProfile));this.JSC$20059_channel_.initHeaders_=G;(G=b&&b.httpHeadersOverwriteParam)&&!_.Dr(G)&&(this.JSC$20059_channel_.httpHeadersOverwriteParam_=G);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!_.Dr(b)&&(this.JSC$20059_channel_.httpSessionIdParam_=b,_.Cy.containsKey(this.messageUrlParams_,
b)&&_.Cy.remove(this.messageUrlParams_,b));this.channelHandler_=new Qd(this)};
_.OE(xD,_.Z$);xD.prototype.open=function(){this.JSC$20059_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20059_channel_.JSC$20050_supportsCrossDomainXhrs_=!0);this.JSC$20059_channel_.connect(this.JSC$20059_url_,this.messageUrlParams_||void 0)};
xD.prototype.close=function(){this.JSC$20059_channel_.disconnect()};
xD.prototype.send=function(G){var b=this.JSC$20059_channel_;if(typeof G==="string"){var I={};I.__data__=G;G=I}else this.sendRawJson_&&(I={},I.__data__=(0,_.yP)(G),G=I);b.JSC$20050_outgoingMaps_.push(new gKD(b.JSC$20050_nextMapId_++,G));b.state_==3&&FkK(b)};
xD.prototype.disposeInternal=function(){this.JSC$20059_channel_.handler_=null;delete this.channelHandler_;this.JSC$20059_channel_.disconnect();delete this.JSC$20059_channel_;xD.superClass_.disposeInternal.call(this)};
var w6D=function(G){HRj.call(this);G.__headers__&&(this.headers=G.__headers__,this.statusCode=G.__status__,delete G.__headers__,delete G.__status__);var b=G.__sm__;b?this.data=(this.metadataKey=_.Cy.getAnyKey(b))?_.Cy.get(b,this.metadataKey):b:this.data=G};
_.OE(w6D,HRj);var EK5=function(G){WqF.call(this);this.status=1;this.errorCode=G};
_.OE(EK5,WqF);var Qd=function(G){this.JSC$20066_channel_=G};
_.OE(Qd,nKf);Qd.prototype.JSC$20056_channelOpened=function(){this.JSC$20066_channel_.dispatchEvent("w")};
Qd.prototype.JSC$20056_channelHandleArray=function(G){this.JSC$20066_channel_.dispatchEvent(new w6D(G))};
Qd.prototype.JSC$20056_channelError=function(G){this.JSC$20066_channel_.dispatchEvent(new EK5(G))};
Qd.prototype.JSC$20056_channelClosed=function(){this.JSC$20066_channel_.dispatchEvent("x")};
var p6e=function(G,b){this.transportChannel_=G;this.JSC$20069_channel_=b},SQe=function(G){return Rda(G.JSC$20069_channel_).map(function(b){var I=G.transportChannel_;
b=b.map;"__data__"in b?(b=b.__data__,I=I.sendRawJson_?(0,_.RTJ)(b):b):I=b;return I})};
p6e.prototype.commit=function(G){this.JSC$20069_channel_.forwardChannelFlushedCallback_=G};var fg=function(G){X6e.dispatchEvent(new $Ta(X6e,G))},X6e=new _.Z$,$Ta=function(G,b){_.Un.call(this,"statevent",G);
this.stat=b};
_.M($Ta,_.Un);var TM=function(G,b,I,h,q){this.JSC$20074_channel_=G;this.JSC$20074_channelDebug_=b;this.sid_=I;this.JSC$20074_rid_=h;this.JSC$20074_retryId_=q||1;this.timeout_=45E3;this.JSC$20074_eventHandler_=new _.Bh(this);this.pollingTimer_=new _.Tb;this.pollingTimer_.setInterval(250)};
_.m=TM.prototype;_.m.JSC$20076_extraHeaders_=null;_.m.JSC$20076_successful_=!1;_.m.JSC$20076_watchDogTimerId_=null;_.m.JSC$20076_watchDogTimeoutTime_=null;_.m.JSC$20076_requestStartTime_=null;_.m.JSC$20076_type_=null;_.m.JSC$20076_baseUri_=null;_.m.JSC$20076_requestUri_=null;_.m.JSC$20076_postData_=null;_.m.JSC$20076_xmlHttp_=null;_.m.JSC$20076_xmlHttpChunkStart_=0;_.m.trident_=null;_.m.JSC$20076_verb_=null;_.m.JSC$20076_lastError_=null;_.m.JSC$20076_lastStatusCode_=-1;_.m.sendClose_=!0;
_.m.JSC$20076_cancelled_=!1;_.m.JSC$20076_readyStateChangeThrottleMs_=0;_.m.JSC$20076_readyStateChangeThrottle_=null;var GNW=function(G,b){switch(G){case 0:return"Non-200 return code ("+b+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},b5D={},I93={};
TM.prototype.setTimeout=function(G){this.timeout_=G};
var qqL=function(G,b,I){G.JSC$20076_type_=1;G.JSC$20076_baseUri_=_.km(b.clone());G.JSC$20076_postData_=I;G.decodeChunks_=!0;hPK(G,null)},j4L=function(G,b,I,h,q){G.JSC$20076_type_=1;
G.JSC$20076_baseUri_=_.km(b.clone());G.JSC$20076_postData_=null;G.decodeChunks_=I;q&&(G.sendClose_=!1);hPK(G,h)},hPK=function(G,b){G.JSC$20076_requestStartTime_=Date.now();
l9f(G);G.JSC$20076_requestUri_=G.JSC$20076_baseUri_.clone();dLc(G.JSC$20076_requestUri_,"t",G.JSC$20074_retryId_);G.JSC$20076_xmlHttpChunkStart_=0;G.JSC$20076_xmlHttp_=G.JSC$20074_channel_.JSC$20083_createXhrIo(G.JSC$20074_channel_.JSC$20083_shouldUseSecondaryDomains()?b:null);G.JSC$20076_readyStateChangeThrottleMs_>0&&(G.JSC$20076_readyStateChangeThrottle_=new _.GB((0,_.Hr)(G.JSC$20076_xmlHttpHandler_,G,G.JSC$20076_xmlHttp_),G.JSC$20076_readyStateChangeThrottleMs_));G.JSC$20074_eventHandler_.listen(G.JSC$20076_xmlHttp_,
"readystatechange",G.JSC$20076_readyStateChangeHandler_);b=G.JSC$20076_extraHeaders_?_.Cy.clone(G.JSC$20076_extraHeaders_):{};G.JSC$20076_postData_?(G.JSC$20076_verb_="POST",b["Content-Type"]="application/x-www-form-urlencoded",G.JSC$20076_xmlHttp_.send(G.JSC$20076_requestUri_,G.JSC$20076_verb_,G.JSC$20076_postData_,b)):(G.JSC$20076_verb_="GET",G.sendClose_&&!_.$Y&&(b.Connection="close"),G.JSC$20076_xmlHttp_.send(G.JSC$20076_requestUri_,G.JSC$20076_verb_,null,b));G.JSC$20074_channel_.notifyServerReachabilityEvent(1);
b=G.JSC$20074_channelDebug_;var I=G.JSC$20076_postData_;if(I){var h="";I=I.split("&");for(var q=0;q<I.length;q++){var l=I[q].split("=");if(l.length>1){var V=l[0];l=l[1];var D=V.split("_");h=D.length>=2&&D[1]=="type"?h+(V+"="+l+"&"):h+(V+"=redacted&")}}}else h=null;b.info("XMLHTTP REQ ("+G.JSC$20074_rid_+") [attempt "+G.JSC$20074_retryId_+"]: "+G.JSC$20076_verb_+"\n"+G.JSC$20076_requestUri_+"\n"+h)};
TM.prototype.JSC$20076_readyStateChangeHandler_=function(G){G=G.target;var b=this.JSC$20076_readyStateChangeThrottle_;b&&_.F7(G)==3?(this.JSC$20074_channelDebug_.debug("Throttling readystatechange."),b.fire()):this.JSC$20076_xmlHttpHandler_(G)};
TM.prototype.JSC$20076_xmlHttpHandler_=function(G){try{if(G==this.JSC$20076_xmlHttp_)a:{var b=_.F7(this.JSC$20076_xmlHttp_),I=this.JSC$20076_xmlHttp_.JSC$9869_lastErrorCode_,h=this.JSC$20076_xmlHttp_.getStatus();if(_.$Y&&!_.Gd("420+")){if(b<4)break a}else if(b<3||b==3&&!this.JSC$20076_xmlHttp_.getResponseText())break a;this.JSC$20076_cancelled_||b!=4||I==7||(I==8||h<=0?this.JSC$20074_channel_.notifyServerReachabilityEvent(3):this.JSC$20074_channel_.notifyServerReachabilityEvent(2));mT5(this);var q=
this.JSC$20076_xmlHttp_.getStatus();this.JSC$20076_lastStatusCode_=q;var l=this.JSC$20076_xmlHttp_.getResponseText();l||this.JSC$20074_channelDebug_.debug("No response text for uri "+this.JSC$20076_requestUri_+" status "+q);this.JSC$20076_successful_=q==200;this.JSC$20074_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20074_rid_+") [ attempt "+this.JSC$20074_retryId_+"]: "+this.JSC$20076_verb_+"\n"+this.JSC$20076_requestUri_+"\n"+b+" "+q);if(this.JSC$20076_successful_){b==4&&ePf(this);if(this.decodeChunks_){for(G=
!0;!this.JSC$20076_cancelled_&&this.JSC$20076_xmlHttpChunkStart_<l.length;){var V=Vtf(this,l);if(V==I93){b==4&&(this.JSC$20076_lastError_=4,fg(15),G=!1);DT3(this.JSC$20074_channelDebug_,this.JSC$20074_rid_,null,"[Incomplete Response]");break}else if(V==b5D){this.JSC$20076_lastError_=4;fg(16);DT3(this.JSC$20074_channelDebug_,this.JSC$20074_rid_,l,"[Invalid Chunk]");G=!1;break}else DT3(this.JSC$20074_channelDebug_,this.JSC$20074_rid_,V,null),cyL(this,V)}b==4&&l.length==0&&(this.JSC$20076_lastError_=
1,fg(17),G=!1);this.JSC$20076_successful_=this.JSC$20076_successful_&&G;G||(DT3(this.JSC$20074_channelDebug_,this.JSC$20074_rid_,l,"[Invalid Chunked Response]"),ePf(this),kNK(this))}else DT3(this.JSC$20074_channelDebug_,this.JSC$20074_rid_,l,null),cyL(this,l);this.JSC$20076_successful_&&!this.JSC$20076_cancelled_&&(b==4?this.JSC$20074_channel_.JSC$20083_onRequestComplete(this):(this.JSC$20076_successful_=!1,l9f(this)))}else q==400&&l.indexOf("Unknown SID")>0?(this.JSC$20076_lastError_=3,fg(13),this.JSC$20074_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20074_rid_+")")):(this.JSC$20076_lastError_=0,fg(14),this.JSC$20074_channelDebug_.warning("XMLHTTP Bad status "+q+" ("+this.JSC$20074_rid_+")")),ePf(this),kNK(this)}else this.JSC$20074_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(D){this.JSC$20074_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Vtf=function(G,b){var I=G.JSC$20076_xmlHttpChunkStart_,h=b.indexOf("\n",I);if(h==-1)return I93;I=Number(b.substring(I,h));if(isNaN(I))return b5D;h+=1;if(h+I>b.length)return I93;b=b.slice(h,h+I);G.JSC$20076_xmlHttpChunkStart_=h+I;return b};
TM.prototype.cancel=function(){this.JSC$20076_cancelled_=!0;ePf(this)};
var l9f=function(G){G.JSC$20076_watchDogTimeoutTime_=Date.now()+G.timeout_;vk1(G,G.timeout_)},vk1=function(G,b){if(G.JSC$20076_watchDogTimerId_!=null)throw Error("Tk");
G.JSC$20076_watchDogTimerId_=y7((0,_.Hr)(G.JSC$20076_onWatchDogTimeout_,G),b)},mT5=function(G){G.JSC$20076_watchDogTimerId_&&(_.hd.clearTimeout(G.JSC$20076_watchDogTimerId_),G.JSC$20076_watchDogTimerId_=null)};
TM.prototype.JSC$20076_onWatchDogTimeout_=function(){this.JSC$20076_watchDogTimerId_=null;var G=Date.now();G-this.JSC$20076_watchDogTimeoutTime_>=0?(this.JSC$20074_channelDebug_.info("TIMEOUT: "+this.JSC$20076_requestUri_),this.JSC$20076_type_!=2&&this.JSC$20074_channel_.notifyServerReachabilityEvent(3),ePf(this),this.JSC$20076_lastError_=2,fg(18),kNK(this)):(this.JSC$20074_channelDebug_.warning("WatchDog timer called too early"),vk1(this,this.JSC$20076_watchDogTimeoutTime_-G))};
var kNK=function(G){G.JSC$20074_channel_.JSC$20083_isClosed()||G.JSC$20076_cancelled_||G.JSC$20074_channel_.JSC$20083_onRequestComplete(G)},ePf=function(G){mT5(G);
_.VQ(G.JSC$20076_readyStateChangeThrottle_);G.JSC$20076_readyStateChangeThrottle_=null;G.pollingTimer_.stop();G.JSC$20074_eventHandler_.removeAll();if(G.JSC$20076_xmlHttp_){var b=G.JSC$20076_xmlHttp_;G.JSC$20076_xmlHttp_=null;b.abort();b.dispose()}G.trident_&&(G.trident_=null)};
TM.prototype.getLastError=function(){return this.JSC$20076_lastError_};
var cyL=function(G,b){try{G.JSC$20074_channel_.JSC$20083_onRequestData(G,b),G.JSC$20074_channel_.notifyServerReachabilityEvent(4)}catch(I){}};var DT3=function(G,b,I,h){var q=G.info;a:if(I&&I!="y2f%"){try{var l=JSON.parse(I);if(l)for(var V=0;V<l.length;V++)if(Array.isArray(l[V])){var D=l[V];if(!(D.length<2)){var k=D[1];if(Array.isArray(k)&&!(k.length<1)){var L=k[0];if(L!="noop"&&L!="stop")for(var x=1;x<k.length;x++)k[x]=""}}}var f=(0,_.yP)(l);break a}catch(T){G.debug("Exception parsing expected JS array - probably was not JS");f=I;break a}f=void 0}else f=I;q.call(G,"XMLHTTP TEXT ("+b+"): "+f+(h?" "+h:""))};
r6.prototype.debug=function(G){this.info(G)};
r6.prototype.info=function(){};
r6.prototype.warning=function(){};var LUj=function(G,b){this.JSC$20081_channel_=G;this.JSC$20081_channelDebug_=b;this.JSC$20081_parser_=new Fqe};
_.m=LUj.prototype;_.m.JSC$20083_extraHeaders_=null;_.m.JSC$20083_request_=null;_.m.receivedIntermediateResult_=!1;_.m.JSC$20083_path_=null;_.m.state_=null;_.m.JSC$20083_lastStatusCode_=-1;_.m.JSC$20083_hostPrefix_=null;_.m.blockedPrefix_=null;
_.m.connect=function(G){this.JSC$20083_path_=G;G=Q4j(this.JSC$20081_channel_,this.JSC$20083_path_);fg(3);Date.now();var b=this.JSC$20081_channel_.firstTestResults_;b!=null?(this.JSC$20083_hostPrefix_=b[0],(this.blockedPrefix_=b[1])?(this.state_=1,xTj(this)):(this.state_=2,f9c(this))):(dLc(G,"MODE","init"),this.JSC$20083_request_=new TM(this,this.JSC$20081_channelDebug_),this.JSC$20083_request_.JSC$20076_extraHeaders_=this.JSC$20083_extraHeaders_,j4L(this.JSC$20083_request_,G,!1,null,!0),this.state_=
0)};
var xTj=function(G){var b=TN5(G.JSC$20081_channel_,G.blockedPrefix_,"/mail/images/cleardot.gif");_.km(b);XH1(b.toString(),5E3,(0,_.Hr)(G.checkBlockedCallback_,G),3,2E3);G.notifyServerReachabilityEvent(1)};
LUj.prototype.checkBlockedCallback_=function(G){if(G)this.state_=2,f9c(this);else{fg(4);var b=this.JSC$20081_channel_;b.JSC$20084_channelDebug_.debug("Test Connection Blocked");b.JSC$20088_lastStatusCode_=b.connectionTest_.JSC$20083_lastStatusCode_;BC(b,9)}G&&this.notifyServerReachabilityEvent(2)};
var f9c=function(G){G.JSC$20081_channelDebug_.debug("TestConnection: starting stage 2");var b=G.JSC$20081_channel_.secondTestResults_;b!=null?(G.JSC$20081_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+b?"Buffered":"Unbuffered"),fg(5),b?(fg(11),BNa(G.JSC$20081_channel_,G,!1)):(fg(12),BNa(G.JSC$20081_channel_,G,!0))):(G.JSC$20083_request_=new TM(G,G.JSC$20081_channelDebug_),G.JSC$20083_request_.JSC$20076_extraHeaders_=G.JSC$20083_extraHeaders_,b=UT1(G.JSC$20081_channel_,
G.JSC$20083_hostPrefix_,G.JSC$20083_path_),fg(5),dLc(b,"TYPE","xmlhttp"),j4L(G.JSC$20083_request_,b,!1,G.JSC$20083_hostPrefix_,!1))};
_.m=LUj.prototype;_.m.JSC$20083_createXhrIo=function(G){return this.JSC$20081_channel_.JSC$20083_createXhrIo(G)};
_.m.abort=function(){this.JSC$20083_request_&&(this.JSC$20083_request_.cancel(),this.JSC$20083_request_=null);this.JSC$20083_lastStatusCode_=-1};
_.m.JSC$20083_isClosed=function(){return!1};
_.m.JSC$20083_onRequestData=function(G,b){this.JSC$20083_lastStatusCode_=G.JSC$20076_lastStatusCode_;if(this.state_==0)if(this.JSC$20081_channelDebug_.debug("TestConnection: Got data for stage 1"),b){try{var I=this.JSC$20081_parser_.parse(b)}catch(h){s4D(this.JSC$20081_channel_,this);return}this.JSC$20083_hostPrefix_=I[0];this.blockedPrefix_=I[1]}else this.JSC$20081_channelDebug_.debug("TestConnection: Null responseText"),s4D(this.JSC$20081_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(fg(7),Date.now()):b=="11111"?(fg(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20083_lastStatusCode_=200,this.JSC$20083_request_.cancel(),this.JSC$20081_channelDebug_.debug("Test connection succeeded; using streaming connection"),fg(12),BNa(this.JSC$20081_channel_,this,!0)):(fg(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.m.JSC$20083_onRequestComplete=function(){this.JSC$20083_lastStatusCode_=this.JSC$20083_request_.JSC$20076_lastStatusCode_;this.JSC$20083_request_.JSC$20076_successful_?this.state_==0?(this.JSC$20081_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,xTj(this)):(this.state_=2,f9c(this))):this.state_==2&&(this.JSC$20081_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20081_channelDebug_.debug("Test connection succeeded; using streaming connection"),
fg(12),BNa(this.JSC$20081_channel_,this,!0)):(this.JSC$20081_channelDebug_.debug("Test connection failed; not using streaming"),fg(11),BNa(this.JSC$20081_channel_,this,!1))):(this.JSC$20081_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?fg(9):this.state_==2&&fg(10),s4D(this.JSC$20081_channel_,this,this.JSC$20083_request_.getLastError()))};
_.m.JSC$20083_shouldUseSecondaryDomains=function(){return this.JSC$20081_channel_.JSC$20083_shouldUseSecondaryDomains()};
_.m.isActive=function(){return this.JSC$20081_channel_.isActive()};
_.m.notifyServerReachabilityEvent=function(G){this.JSC$20081_channel_.notifyServerReachabilityEvent(G)};var Uw=function(G,b,I){this.state_=1;this.JSC$20084_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20084_channelDebug_=new r6;this.JSC$20084_parser_=new Fqe;this.firstTestResults_=G||null;this.secondTestResults_=b!=null?b:null;this.asyncTest_=I||!1},gke=function(G,b){this.JSC$20086_mapId=G;
this.map=b;this.context=null};
_.m=Uw.prototype;_.m.JSC$20088_extraHeaders_=null;_.m.JSC$20088_extraParams_=null;_.m.forwardChannelRequest_=null;_.m.JSC$20088_backChannelRequest_=null;_.m.JSC$20088_path_=null;_.m.JSC$20088_forwardChannelUri_=null;_.m.JSC$20088_backChannelUri_=null;_.m.JSC$20088_hostPrefix_=null;_.m.JSC$20088_nextRid_=0;_.m.JSC$20088_nextMapId_=0;_.m.handler_=null;_.m.JSC$20088_forwardChannelTimerId_=null;_.m.JSC$20088_backChannelTimerId_=null;_.m.JSC$20088_deadBackChannelTimerId_=null;_.m.connectionTest_=null;
_.m.useChunked_=null;_.m.JSC$20088_lastArrayId_=-1;_.m.JSC$20088_lastPostResponseArrayId_=-1;_.m.JSC$20088_lastStatusCode_=-1;_.m.JSC$20088_forwardChannelRetryCount_=0;_.m.JSC$20088_backChannelRetryCount_=0;_.m.JSC$20088_channelVersion_=8;var AyL={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},MtY=function(G,b,I,h){_.Un.call(this,"timingevent",G);this.size=b;this.rtt=I;this.retries=h};
_.OE(MtY,_.Un);var Z55=function(G){_.Un.call(this,"serverreachability",G)};
_.OE(Z55,_.Un);Uw.prototype.connect=function(G,b,I,h,q){this.JSC$20084_channelDebug_.debug("connect()");fg(0);this.JSC$20088_path_=b;this.JSC$20088_extraParams_=I||{};h&&q!==void 0&&(this.JSC$20088_extraParams_.OSID=h,this.JSC$20088_extraParams_.OAID=q);this.asyncTest_?(y7((0,_.Hr)(this.connectTest_,this,G),100),tt1(this)):this.connectTest_(G)};
Uw.prototype.disconnect=function(){this.JSC$20084_channelDebug_.debug("disconnect()");zP8(this);if(this.state_==3){var G=this.JSC$20088_nextRid_++,b=this.JSC$20088_forwardChannelUri_.clone();_.IJ(b,"SID",this.sid_);_.IJ(b,"RID",G);_.IJ(b,"TYPE","terminate");ok3(this,b);G=new TM(this,this.JSC$20084_channelDebug_,this.sid_,G);G.JSC$20076_type_=2;G.JSC$20076_baseUri_=_.km(b.clone());(new Image).src=G.JSC$20076_baseUri_.toString();G.JSC$20076_requestStartTime_=Date.now();l9f(G)}i5W(this)};
Uw.prototype.connectTest_=function(G){this.JSC$20084_channelDebug_.debug("connectTest_()");this.connectionTest_=new LUj(this,this.JSC$20084_channelDebug_);this.connectionTest_.JSC$20083_extraHeaders_=this.JSC$20088_extraHeaders_;this.connectionTest_.JSC$20081_parser_=this.JSC$20084_parser_;this.connectionTest_.connect(G)};
var tt1=function(G){G.JSC$20084_channelDebug_.debug("connectChannel_()");G.JSC$20088_ensureInState_(1,0);G.JSC$20088_forwardChannelUri_=Q4j(G,G.JSC$20088_path_);PhK(G)},zP8=function(G){G.connectionTest_&&(G.connectionTest_.abort(),G.connectionTest_=null);
G.JSC$20088_backChannelRequest_&&(G.JSC$20088_backChannelRequest_.cancel(),G.JSC$20088_backChannelRequest_=null);G.JSC$20088_backChannelTimerId_&&(_.hd.clearTimeout(G.JSC$20088_backChannelTimerId_),G.JSC$20088_backChannelTimerId_=null);dTF(G);G.forwardChannelRequest_&&(G.forwardChannelRequest_.cancel(),G.forwardChannelRequest_=null);G.JSC$20088_forwardChannelTimerId_&&(_.hd.clearTimeout(G.JSC$20088_forwardChannelTimerId_),G.JSC$20088_forwardChannelTimerId_=null)},yyF=function(G,b){if(G.state_==0)throw Error("Wk");
G.JSC$20084_outgoingMaps_.length==1E3&&G.JSC$20084_parser_.stringify(b);G.JSC$20084_outgoingMaps_.push(new gke(G.JSC$20088_nextMapId_++,b));G.state_!=2&&G.state_!=3||PhK(G)};
Uw.prototype.JSC$20083_isClosed=function(){return this.state_==0};
Uw.prototype.getState=function(){return this.state_};
var PhK=function(G){G.forwardChannelRequest_||G.JSC$20088_forwardChannelTimerId_||(G.JSC$20088_forwardChannelTimerId_=y7((0,_.Hr)(G.JSC$20088_onStartForwardChannelTimer_,G),0),G.JSC$20088_forwardChannelRetryCount_=0)};
Uw.prototype.JSC$20088_onStartForwardChannelTimer_=function(G){this.JSC$20088_forwardChannelTimerId_=null;ry5(this,G)};
var ry5=function(G,b){G.JSC$20084_channelDebug_.debug("startForwardChannel_");if(G.state_==1){if(!b){G.JSC$20084_channelDebug_.debug("open_()");G.JSC$20088_nextRid_=Math.floor(Math.random()*1E5);b=G.JSC$20088_nextRid_++;var I=new TM(G,G.JSC$20084_channelDebug_,"",b);I.JSC$20076_extraHeaders_=G.JSC$20088_extraHeaders_;var h=FUK(G),q=G.JSC$20088_forwardChannelUri_.clone();_.IJ(q,"RID",b);_.IJ(q,"CVER","1");ok3(G,q);qqL(I,q,h);G.forwardChannelRequest_=I;G.state_=2}}else G.state_==3&&(b?H5F(G,b):G.JSC$20084_outgoingMaps_.length==
0?G.JSC$20084_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):G.forwardChannelRequest_||(H5F(G),G.JSC$20084_channelDebug_.debug("startForwardChannel_ finished, sent request")))},H5F=function(G,b){if(b)if(G.JSC$20088_channelVersion_>6){G.JSC$20084_outgoingMaps_=G.pendingMaps_.concat(G.JSC$20084_outgoingMaps_);
G.pendingMaps_.length=0;var I=G.JSC$20088_nextRid_-1;b=FUK(G)}else I=b.JSC$20074_rid_,b=b.JSC$20076_postData_;else I=G.JSC$20088_nextRid_++,b=FUK(G);var h=G.JSC$20088_forwardChannelUri_.clone();_.IJ(h,"SID",G.sid_);_.IJ(h,"RID",I);_.IJ(h,"AID",G.JSC$20088_lastArrayId_);ok3(G,h);I=new TM(G,G.JSC$20084_channelDebug_,G.sid_,I,G.JSC$20088_forwardChannelRetryCount_+1);I.JSC$20076_extraHeaders_=G.JSC$20088_extraHeaders_;I.setTimeout(1E4+Math.round(1E4*Math.random()));G.forwardChannelRequest_=I;qqL(I,h,
b)},ok3=function(G,b){G.handler_&&(G=G.handler_.JSC$20095_getAdditionalParams())&&_.Cy.forEach(G,function(I,h){_.IJ(b,h,I)})},FUK=function(G){var b=Math.min(G.JSC$20084_outgoingMaps_.length,1E3),I=["count="+b];
if(G.JSC$20088_channelVersion_>6&&b>0){var h=G.JSC$20084_outgoingMaps_[0].JSC$20086_mapId;I.push("ofs="+h)}else h=0;for(var q={},l=0;l<b;q={mapId$jscomp$3:void 0},l++){q.mapId$jscomp$3=G.JSC$20084_outgoingMaps_[l].JSC$20086_mapId;var V=G.JSC$20084_outgoingMaps_[l].map;q.mapId$jscomp$3=G.JSC$20088_channelVersion_<=6?l:q.mapId$jscomp$3-h;try{_.Cy.forEach(V,function(D){return function(k,L){I.push("req"+D.mapId$jscomp$3+"_"+L+"="+encodeURIComponent(k))}}(q))}catch(D){I.push("req"+q.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}G.pendingMaps_=G.pendingMaps_.concat(G.JSC$20084_outgoingMaps_.splice(0,b));
return I.join("&")},WUL=function(G){G.JSC$20088_backChannelRequest_||G.JSC$20088_backChannelTimerId_||(G.JSC$20088_backChannelAttemptId_=1,G.JSC$20088_backChannelTimerId_=y7((0,_.Hr)(G.JSC$20088_onStartBackChannelTimer_,G),0),G.JSC$20088_backChannelRetryCount_=0)},NN1=function(G){if(G.JSC$20088_backChannelRequest_||G.JSC$20088_backChannelTimerId_||G.JSC$20088_backChannelRetryCount_>=3)return!1;
G.JSC$20084_channelDebug_.debug("Going to retry GET");G.JSC$20088_backChannelAttemptId_++;G.JSC$20088_backChannelTimerId_=y7((0,_.Hr)(G.JSC$20088_onStartBackChannelTimer_,G),a9j(G,G.JSC$20088_backChannelRetryCount_));G.JSC$20088_backChannelRetryCount_++;return!0};
Uw.prototype.JSC$20088_onStartBackChannelTimer_=function(){this.JSC$20088_backChannelTimerId_=null;this.JSC$20084_channelDebug_.debug("Creating new HttpRequest");this.JSC$20088_backChannelRequest_=new TM(this,this.JSC$20084_channelDebug_,this.sid_,"rpc",this.JSC$20088_backChannelAttemptId_);this.JSC$20088_backChannelRequest_.JSC$20076_extraHeaders_=this.JSC$20088_extraHeaders_;this.JSC$20088_backChannelRequest_.JSC$20076_readyStateChangeThrottleMs_=0;var G=this.JSC$20088_backChannelUri_.clone();_.IJ(G,
"RID","rpc");_.IJ(G,"SID",this.sid_);_.IJ(G,"CI",this.useChunked_?"0":"1");_.IJ(G,"AID",this.JSC$20088_lastArrayId_);ok3(this,G);_.IJ(G,"TYPE","xmlhttp");j4L(this.JSC$20088_backChannelRequest_,G,!0,this.JSC$20088_hostPrefix_,!1);this.JSC$20084_channelDebug_.debug("New Request created")};
var BNa=function(G,b,I){G.JSC$20084_channelDebug_.debug("Test Connection Finished");G.useChunked_=G.secondTestResults_==null?I:!G.secondTestResults_;G.JSC$20088_lastStatusCode_=b.JSC$20083_lastStatusCode_;G.asyncTest_||tt1(G)},s4D=function(G,b){G.JSC$20084_channelDebug_.debug("Test Connection Failed");
G.JSC$20088_lastStatusCode_=b.JSC$20083_lastStatusCode_;BC(G,2)};
Uw.prototype.JSC$20083_onRequestData=function(G,b){if(this.state_!=0&&(this.JSC$20088_backChannelRequest_==G||this.forwardChannelRequest_==G))if(this.JSC$20088_lastStatusCode_=G.JSC$20076_lastStatusCode_,this.forwardChannelRequest_==G&&this.state_==3)if(this.JSC$20088_channelVersion_>7){try{var I=this.JSC$20084_parser_.parse(b)}catch(h){I=null}if(Array.isArray(I)&&I.length==3)if(b=I,b[0]==0)a:if(this.JSC$20084_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20088_backChannelTimerId_)this.JSC$20084_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20088_backChannelRequest_)if(this.JSC$20088_backChannelRequest_.JSC$20076_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20076_requestStartTime_)dTF(this),this.JSC$20088_backChannelRequest_.cancel(),this.JSC$20088_backChannelRequest_=null;else break a;else this.JSC$20084_channelDebug_.warning("We do not have a BackChannel established");NN1(this);fg(19)}else this.JSC$20088_lastPostResponseArrayId_=b[1],G=this.JSC$20088_lastPostResponseArrayId_-this.JSC$20088_lastArrayId_,0<
G&&(b=b[2],this.JSC$20084_channelDebug_.debug(b+" bytes (in "+G+" arrays) are outstanding on the BackChannel"),b<37500&&this.useChunked_&&this.JSC$20088_backChannelRetryCount_==0&&!this.JSC$20088_deadBackChannelTimerId_&&(this.JSC$20088_deadBackChannelTimerId_=y7((0,_.Hr)(this.JSC$20088_onBackChannelDead_,this),6E3)));else this.JSC$20084_channelDebug_.debug("Bad POST response data returned"),BC(this,11)}else b!="y2f%"&&(this.JSC$20084_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
BC(this,11));else this.JSC$20088_backChannelRequest_==G&&dTF(this),_.Dr(b)||(G=this.JSC$20084_parser_.parse(b),this.onInput_(G))};
Uw.prototype.JSC$20088_onBackChannelDead_=function(){this.JSC$20088_deadBackChannelTimerId_!=null&&(this.JSC$20088_deadBackChannelTimerId_=null,this.JSC$20088_backChannelRequest_.cancel(),this.JSC$20088_backChannelRequest_=null,NN1(this),fg(20))};
var dTF=function(G){G.JSC$20088_deadBackChannelTimerId_!=null&&(_.hd.clearTimeout(G.JSC$20088_deadBackChannelTimerId_),G.JSC$20088_deadBackChannelTimerId_=null)};
Uw.prototype.JSC$20083_onRequestComplete=function(G){this.JSC$20084_channelDebug_.debug("Request complete");if(this.JSC$20088_backChannelRequest_==G){dTF(this);this.JSC$20088_backChannelRequest_=null;var b=2}else if(this.forwardChannelRequest_==G)this.forwardChannelRequest_=null,b=1;else return;this.JSC$20088_lastStatusCode_=G.JSC$20076_lastStatusCode_;if(this.state_!=0)if(G.JSC$20076_successful_)if(b==1){b=G.JSC$20076_postData_?G.JSC$20076_postData_.length:0;G=Date.now()-G.JSC$20076_requestStartTime_;
var I=X6e;I.dispatchEvent(new MtY(I,b,G,this.JSC$20088_forwardChannelRetryCount_));PhK(this);this.handler_&&this.handler_.JSC$20095_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else WUL(this);else{I=G.getLastError();if(I==3||I==7||I==0&&this.JSC$20088_lastStatusCode_>0)this.JSC$20084_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20084_channelDebug_.debug("Maybe retrying, last error: "+GNW(I,this.JSC$20088_lastStatusCode_));var h;if(h=b==1)this.forwardChannelRequest_||
this.JSC$20088_forwardChannelTimerId_||this.state_==1||this.JSC$20088_forwardChannelRetryCount_>=2?h=!1:(this.JSC$20084_channelDebug_.debug("Going to retry POST"),this.JSC$20088_forwardChannelTimerId_=y7((0,_.Hr)(this.JSC$20088_onStartForwardChannelTimer_,this,G),a9j(this,this.JSC$20088_forwardChannelRetryCount_)),this.JSC$20088_forwardChannelRetryCount_++,h=!0);if(h||b==2&&NN1(this))return;this.JSC$20084_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20084_channelDebug_.debug("Error: HTTP request failed");
switch(I){case 1:BC(this,5);break;case 4:BC(this,10);break;case 3:BC(this,6);break;case 7:BC(this,12);break;default:BC(this,2)}}};
var a9j=function(G,b){var I=5E3+Math.floor(Math.random()*1E4);G.isActive()||(G.JSC$20084_channelDebug_.debug("Inactive channel"),I*=2);return I*b};
Uw.prototype.onInput_=function(G){for(var b=0;b<G.length;b++){var I=G[b];this.JSC$20088_lastArrayId_=I[0];I=I[1];this.state_==2?I[0]=="c"?(this.sid_=I[1],this.JSC$20088_hostPrefix_=I[2],I=I[3],I!=null?this.JSC$20088_channelVersion_=I:this.JSC$20088_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20095_channelOpened(),this.JSC$20088_backChannelUri_=UT1(this,this.JSC$20088_hostPrefix_,this.JSC$20088_path_),WUL(this)):I[0]=="stop"&&BC(this,7):this.state_==3&&(I[0]=="stop"?BC(this,7):
I[0]!="noop"&&this.handler_&&this.handler_.JSC$20095_channelHandleArray(I),this.JSC$20088_backChannelRetryCount_=0)}};
Uw.prototype.JSC$20088_ensureInState_=function(G){if(!_.Ya(arguments,this.state_))throw Error("Xk`"+this.state_);};
var BC=function(G,b){G.JSC$20084_channelDebug_.info("Error code "+b);if(b==2||b==9){var I=null;G.handler_&&(I=null);var h=(0,_.Hr)(G.testGoogleComCallback_,G);I||(I=new _.a3("//www.google.com/images/cleardot.gif"),_.km(I));S2a(I.toString(),1E4,h)}else fg(2);G.onError_(b)};
Uw.prototype.testGoogleComCallback_=function(G){G?(this.JSC$20084_channelDebug_.info("Successfully pinged google.com"),fg(2)):(this.JSC$20084_channelDebug_.info("Failed to ping google.com"),fg(1),this.onError_(8))};
Uw.prototype.onError_=function(G){this.JSC$20084_channelDebug_.debug("HttpChannel: error - "+G);this.state_=0;this.handler_&&this.handler_.JSC$20095_channelError(G);i5W(this);zP8(this)};
var i5W=function(G){G.state_=0;G.JSC$20088_lastStatusCode_=-1;if(G.handler_)if(G.pendingMaps_.length==0&&G.JSC$20084_outgoingMaps_.length==0)G.handler_.JSC$20095_channelClosed();else{G.JSC$20084_channelDebug_.debug("Number of undelivered maps, pending: "+G.pendingMaps_.length+", outgoing: "+G.JSC$20084_outgoingMaps_.length);var b=_.Jd(G.pendingMaps_),I=_.Jd(G.JSC$20084_outgoingMaps_);G.pendingMaps_.length=0;G.JSC$20084_outgoingMaps_.length=0;G.handler_.JSC$20095_channelClosed(b,I)}},Q4j=function(G,
b){b=TN5(G,null,b);
G.JSC$20084_channelDebug_.debug("GetForwardChannelUri: "+b);return b},UT1=function(G,b,I){b=TN5(G,G.JSC$20083_shouldUseSecondaryDomains()?b:null,I);
G.JSC$20084_channelDebug_.debug("GetBackChannelUri: "+b);return b},TN5=function(G,b,I){var h=_.Gt(I);
if(h.JSC$10105_domain_!="")b&&_.qR(h,b+"."+h.JSC$10105_domain_),_.jP(h,h.JSC$10105_port_);else{var q=window.location;h=t09(q.protocol,b?b+"."+q.hostname:q.hostname,+q.port,I)}G.JSC$20088_extraParams_&&_.Cy.forEach(G.JSC$20088_extraParams_,function(l,V){_.IJ(h,V,l)});
_.IJ(h,"VER",G.JSC$20088_channelVersion_);ok3(G,h);return h};
Uw.prototype.JSC$20083_createXhrIo=function(G){if(G)throw Error("Uk");G=new _.rp;G.JSC$9869_withCredentials_=!1;return G};
Uw.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Uw.prototype.notifyServerReachabilityEvent=function(G){var b=X6e;b.dispatchEvent(new Z55(b,G))};
Uw.prototype.JSC$20083_shouldUseSecondaryDomains=function(){return!1};
new yuc;var YqK=function(){};
_.m=YqK.prototype;_.m.JSC$20095_channelOpened=function(){};
_.m.JSC$20095_channelHandleArray=function(){};
_.m.JSC$20095_channelSuccess=function(){};
_.m.JSC$20095_channelError=function(){};
_.m.JSC$20095_channelClosed=function(){};
_.m.JSC$20095_getAdditionalParams=function(){return{}};
_.m.isActive=function(){return!0};var ChY=function(G){G.front_.length===0&&(G.front_=G.back_,G.front_.reverse(),G.back_=[])};
_.m=GI5.prototype;_.m.enqueue=function(G){this.back_.push(G)};
_.m.peek=function(){ChY(this);return _.rX(this.front_)};
_.m.getCount=function(){return this.front_.length+this.back_.length};
_.m.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.m.clear=function(){this.front_=[];this.back_=[]};
_.m.contains=function(G){return _.Ya(this.front_,G)||_.Ya(this.back_,G)};
_.m.remove=function(G){var b=this.front_;var I=Array.prototype.lastIndexOf.call(b,G,b.length-1);I>=0?(_.PsB(b,I),b=!0):b=!1;return b||_.CO(this.back_,G)};
_.m.getValues=function(){for(var G=[],b=this.front_.length-1;b>=0;--b)G.push(this.front_[b]);b=this.back_.length;for(var I=0;I<b;++I)G.push(this.back_[I]);return G};var sw=function(G){this.JSC$20099_map_=new _.fY;this.size=0;G&&this.addAll(G)},Jyf=function(G){var b=typeof G;
return b=="object"&&G||b=="function"?"o"+_.Ej(G):b.charAt(0)+G};
_.m=sw.prototype;_.m.getCount=function(){return this.JSC$20099_map_.size};
_.m.add=function(G){this.JSC$20099_map_.set(Jyf(G),G);this.size=this.JSC$20099_map_.size};
_.m.addAll=function(G){G=_.Iv(G);for(var b=G.length,I=0;I<b;I++)this.add(G[I]);this.size=this.JSC$20099_map_.size};
_.m.removeAll=function(G){G=_.Iv(G);for(var b=G.length,I=0;I<b;I++)this.remove(G[I]);this.size=this.JSC$20099_map_.size};
_.m.delete=function(G){G=this.JSC$20099_map_.remove(Jyf(G));this.size=this.JSC$20099_map_.size;return G};
_.m.remove=function(G){return this.delete(G)};
_.m.clear=function(){this.JSC$20099_map_.clear();this.size=0};
_.m.isEmpty=function(){return this.JSC$20099_map_.size===0};
_.m.has=function(G){return this.JSC$20099_map_.containsKey(Jyf(G))};
_.m.contains=function(G){return this.JSC$20099_map_.containsKey(Jyf(G))};
_.m.getValues=function(){return this.JSC$20099_map_.getValues()};
_.m.values=function(){return this.JSC$20099_map_.values()};
_.m.clone=function(){return new sw(this)};
_.m.equals=function(G){return this.getCount()==M0Y(G)&&KU5(this,G)};
var KU5=function(G,b){var I=M0Y(b);if(G.getCount()>I)return!1;!(b instanceof sw)&&I>5&&(b=new sw(b));return Z6K(G,function(h){var q=b;return q.contains&&typeof q.contains=="function"?q.contains(h):q.containsValue&&typeof q.containsValue=="function"?q.containsValue(h):_.KO(q)||typeof q==="string"?_.Ya(q,h):_.Cy.containsValue(q,h)})};
sw.prototype.__iterator__=function(){return this.JSC$20099_map_.__iterator__(!1)};
sw.prototype[Symbol.iterator]=function(){return this.values()};var ul5={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 RPc;var nkj;_.fn({_template:function(){if(nkj!==void 0)return nkj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;RPc===void 0&&(RPc=document.createElement("template"));var h=RPc;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return nkj=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(){_.D1(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 b=G.detail.dx+this._translateOffset,I=this.getWidth();b=this.position==="left"?b>=0||b<=-I:b<=0||b>=I;if(!b){var h=this._trackDetails;this._trackDetails=null;this._flingDrawer(G,h);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");b?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(G,b){for(var I=Date.now(),h=I-100,q,l=0,V=b.length-1;l<=V;){var D=l+V>>1,k=b[D];k.timeStamp>=h?(q=k,V=D-1):l=D+1}return q?(G.detail.dx-q.dx)/(I-q.timeStamp||1):0},
_flingDrawer:function(G,b){b=this._calculateVelocity(G,b);if(!(Math.abs(b)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;G=G.detail.dx+this._translateOffset;var I=this.getWidth(),h=this.position==="left",q=b>0;q?(b=Math.max(b,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(b=Math.min(b,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");b=this._FLING_INITIAL_SLOPE*(!q&&h?-(G+I):q&&!h?I-G:-G)/b;this._styleTransitionDuration(b);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,b)}},
_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 b=this.getWidth();this.position==="left"?(G=Math.max(-b,Math.min(G,0)),this.$.scrim.style.opacity=1+G/b):(G=Math.max(0,Math.min(G,b)),this.$.scrim.style.opacity=1-G/b);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=_.kc(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&&_.kc(G).localTarget===this._firstTabStop&&(G.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.kc(G).localTarget===this._lastTabStop&&(G.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(G,b){this.toggleClass("visible",G&&!b,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 O5D;var ab9;_.fn({_template:function(){if(ab9!==void 0)return ab9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;O5D===void 0&&(O5D=document.createElement("template"));var h=O5D;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return ab9=G},
is:"tp-yt-paper-progress",behaviors:[ul5],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,b){G.style.transform=G.style.webkitTransform="scaleX("+b/100+")"},
_mainRatioChanged:function(G){this._transformProgress(this.$.primaryProgress,G)},
_progressChanged:function(G,b,I,h,q){G=this._clampValue(G);b=this._clampValue(b);var l=this._calcRatio(G)*100,V=this._calcRatio(b)*100;this._setSecondaryRatio(l);this._transformProgress(this.$.secondaryProgress,l);this._transformProgress(this.$.primaryProgress,V);this.secondaryProgress=G;q?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",b);this.setAttribute("aria-valuemin",I);this.setAttribute("aria-valuemax",h)},
_disabledChanged:function(G){this.setAttribute("aria-disabled",G?"true":"false")},
_hideSecondaryProgress:function(G){return G===0}});var NBW;var YR1;var Cra=function(){};
_.m=Cra.prototype;_.m.registered=function(){};
_.m.addOwnKeyBinding=function(){};
_.m.removeOwnKeyBindings=function(){};
_.m.keyboardEventMatchesKeys=function(){};
_.m._collectKeyBindings=function(){};
_.m._prepKeyBindings=function(){};
_.m._addKeyBinding=function(){};
_.m._resetKeyEventListeners=function(){};
_.m._listenKeyEventListeners=function(){};
_.m._unlistenKeyEventListeners=function(){};
_.m._onKeyBindingEvent=function(){};
_.m._triggerKeyHandler=function(){};
_.m._tapHandler=function(){};
_.m._focusChanged=function(){};
_.m._detectKeyboardFocus=function(){};
_.m._userActivate=function(){};
_.m._upHandler=function(){};
_.m._spaceKeyDownHandler=function(){};
_.m._spaceKeyUpHandler=function(){};
_.m._asyncClick=function(){};
_.m._pressedChanged=function(){};
_.m._ariaActiveAttributeChanged=function(){};
_.m._activeChanged=function(){};
_.m._controlStateChanged=function(){};
_.m._changedButtonState=function(){};
_.m._focusBlurHandler=function(){};
_.m._disabledChanged=function(){};
_.m._changedControlState=function(){};
_.m._buttonStateChanged=function(){};
_.m._downHandler=function(){};
_.m.ensureRipple=function(){};
_.m.getRipple=function(){};
_.m.hasRipple=function(){};
_.m._noinkChanged=function(){};
_.m._calcRatio=function(){};
_.m._clampValue=function(){};
_.m._calcStep=function(){};
_.m._validateValue=function(){};
_.m._update=function(){};
_.m._setImmediateValue=function(){};
_.m._setExpand=function(){};
_.m._setDragging=function(){};
_.m._setTransiting=function(){};
_.m._setMarkers=function(){};
_.m._setPressed=function(){};
_.m._setPointerDown=function(){};
_.m._setReceivedFocusFromKeyboard=function(){};
_.m._setFocused=function(){};
_.m._setRatio=function(){};
Cra=_.fn({_template:function(){if(YR1!==void 0)return YR1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;NBW===void 0&&(NBW=document.createElement("template"));var h=NBW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return YR1=G},
is:"tp-yt-paper-slider",behaviors:[_.PO,_.FZ,_.mLb,ul5],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&&_.Oz(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,b,I){this.setAttribute("aria-valuemin",b);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 b=this.$.sliderBar.getBoundingClientRect();b=(G.detail.x-b.left)/this._w*100;this._isRTL&&(b=100-b);var I=this.ratio;this._setTransiting(!0);this._positionKnob(b);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,b,I,h){h||this._setMarkers([]);b=Math.round((I-b)/this.step);b>G&&(b=G);if(b<0||!isFinite(b))b=0;this._setMarkers(Array(b))},
_mergeClasses:function(G){return Object.keys(G).filter(function(b){return G[b]}).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 _.l$B._createRipple.call(this)},
_focusedChanged:function(G){G&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=G?"":"none",this._ripple.holdDown=G)}});var JEa;var K58;var g_=null,un8=function(){};
_.m=un8.prototype;_.m.fit=function(){};
_.m._discoverInfo=function(){};
_.m.resetFit=function(){};
_.m.refit=function(){};
_.m.position=function(){};
_.m.constrain=function(){};
_.m._sizeDimension=function(){};
_.m.__sizeDimension=function(){};
_.m.center=function(){};
_.m.__getNormalizedRect=function(){};
_.m.__getOffscreenArea=function(){};
_.m.__getPosition=function(){};
_.m.notifyResize=function(){};
_.m.assignParentResizable=function(){};
_.m.stopResizeNotificationsFor=function(){};
_.m._subscribeIronResize=function(){};
_.m._unsubscribeIronResize=function(){};
_.m.resizerShouldNotify=function(){};
_.m._onDescendantIronResize=function(){};
_.m._fireResize=function(){};
_.m._onIronRequestResizeNotifications=function(){};
_.m._parentResizableChanged=function(){};
_.m._notifyDescendant=function(){};
_.m._requestResizeNotifications=function(){};
_.m._findParent=function(){};
_.m.toggle=function(){};
_.m.open=function(){};
_.m.close=function(){};
_.m.cancel=function(){};
_.m.invalidateTabbables=function(){};
_.m._ensureSetup=function(){};
_.m._canceledChanged=function(){};
_.m._withBackdropChanged=function(){};
_.m._prepareRenderOpened=function(){};
_.m._finishRenderOpened=function(){};
_.m._finishRenderClosed=function(){};
_.m._preparePositioning=function(){};
_.m._finishPositioning=function(){};
_.m._applyFocus=function(){};
_.m._onCaptureClick=function(){};
_.m._onCaptureFocus=function(){};
_.m._onCaptureEsc=function(){};
_.m._onCaptureTab=function(){};
_.m._onIronResize=function(){};
_.m._onNodesChange=function(){};
_.m.__ensureFirstLastFocusables=function(){};
_.m.__openedChanged=function(){};
_.m.__deraf=function(){};
_.m.__updateScrollObservers=function(){};
_.m.__addScrollListeners=function(){};
_.m.__removeScrollListeners=function(){};
_.m.__isValidScrollAction=function(){};
_.m.__onCaptureScroll=function(){};
_.m.__saveScrollPosition=function(){};
_.m.__restoreScrollPosition=function(){};
_.m._setCanceled=function(){};
un8=_.fn({_template:function(){if(K58!==void 0)return K58;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;JEa===void 0&&(JEa=document.createElement("template"));var h=JEa;I.call(b,h.content.cloneNode(!0),G.content.firstChild);return K58=G},
is:"tp-yt-paper-toast",behaviors:[_.IV],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(){_.Pn._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Sb.requestAvailability()},
show:function(G){typeof G=="string"&&(G={text:G});for(var b in G)b.indexOf("_")===0?_.Pn._warn('The property "'+b+'" is private and was not set.'):b in this?this[b]=G[b]:_.Pn._warn('The property "'+b+'" 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?(g_&&g_!==this&&g_.close(),g_=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):g_===this&&(g_=null);_.bC._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 R6F=new _.hu("disablePersonalizationAction");var b4D=new _.hu("showDmaConsentFlowCommand");var I$1=new _.hu("showMmgNoticeCommand");var nr5=new _.hu("saveConsentAction");var Oo5=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Y3(G)};
_.M(Oo5,_.eo);var w_e=_.nIv(Oo5);var Erc=new _.hu("updateTopbarAvatarAction");var p_j=new _.hu("channelHandleValidationResultRenderer");var SRD=new _.hu("generateHandleFromNameResultRenderer");var X_9=new _.hu("channelHandleInputRenderer");var $Ve=new _.hu("copyLinkRenderer");var G5W=new _.hu("timedCommand");var b$5=new _.hu("clearCookieAction");var IXY=new _.hu("getMultiPageMenuAction");var h93=new _.hu("addToGuideSectionAction"),qCj=new _.hu("removeFromGuideSectionAction");var jED=new _.hu("updateNotificationsUnseenCountAction");var lXj=new _.hu("resetChannelUnreadCountCommand");var mV9=new _.hu("resetSubscriptionsUnreadDotCommand");var e9D=new _.hu("selectLanguageCommand");var xw3=new _.hu("sendFeedbackAction");var VC3=new _.hu("uploadImageToScottyCommand");var DVf=new _.hu("registerPromoCommand");var cA8=new _.hu("setPushNotificationsEnabledCommand");var k5L=new _.hu("desktopTopbarRenderer");var vXK=new _.hu("surveyFollowUpRenderer");var LDL=new _.hu("handlesClaimingRadioOptionRenderer");var QE1=new _.hu("hotkeyDialogRenderer");var xVc=new _.hu("modifyReportFormCommand");var fX3=new _.hu("accountLinkCommand");var T$a=new _.hu("accountUnlinkCommand");var B$F=new _.hu("logAccountLinkingEventCommand");var UV5=new _.hu("guideCollapsibleEntryRenderer");var sEL=new _.hu("guideDownloadsEntryRenderer");var DCW=new _.hu("guideEntryRenderer");var gX8=new _.hu("getLocationCommand");var AA9=new _.hu("locationCollectionCommand");var MCa=new _.hu("storiesItemViewModel");var Z$c=new _.hu("addToRemoteQueueAction");var tCW=new _.hu("insertInRemoteQueueAction");var z9W=new _.hu("removeFromRemoteQueueAction");var oXW=new _.hu("notificationRenderer");var Yp1=new _.hu("localWatchHistoryCommand");var i$9=new _.hu("pdgBuyFlowHeaderRenderer");var Pj8=new _.hu("pdgColorSliderRenderer");var dV9=new _.hu("pdgCommentOptionRenderer");var yAY=new _.hu("pdgCommentPreviewRenderer");var rAa=new _.hu("superVodSelectableItemButtonRenderer");var FDa=new _.hu("switchButtonRenderer");var H$W=new _.hu("upsellDialogRenderer");var WD5=new _.hu("feedbackQuestionRenderer"),aX5=new _.hu("feedbackOptionRenderer");var N$1=new _.hu("sponsorshipsTierRenderer"),YC1=new _.hu("sponsorshipsPromotionChannelRenderer");var Cj3=new _.hu("simpleSurveyMessageRenderer");var Tpa=new _.hu("invokeInstrumentManagerAction");var JA1=new _.hu("logYpcFlowDismissCommand");var KDY=new _.hu("logYpcFlowStartCommand");var uF3=new _.hu("unlimitedCreateFamilyEndpoint");var R9D=new _.hu("iconBadgeRenderer");var C3j=new _.hu("collaborativePlaylistVisibilityValidationRule");var nX5=function(G){_.Un.call(this,"channelMessage");this.message=G};
_.M(nX5,_.Un);var O$f=function(G){_.Un.call(this,"channelError");this.error=G};
_.M(O$f,_.Un);var wVL={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"},EXW={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},pVe={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},SC8={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},XVY={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Ag=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 _.fY;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",$vY(this,G.capabilities||""),GPe(this,
G.compatibleSenderThemes||""),b_5(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")};
Ag.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 Ag(G);G.connected=this.connected;G.remoteControllerUrl=this.remoteControllerUrl;G.localChannelEncryptionKey=this.localChannelEncryptionKey;G.deviceContext=
this.deviceContext;G.castUserId=this.castUserId;return G};
Ag.prototype.equals=function(G){return G?this.id==G.id:!1};
var $vY=function(G,b){G.capabilities.clear();_.EE(b.split(","),_.l9(_.Cy.contains,wVL)).forEach(function(I){G.capabilities.add(I)})},GPe=function(G,b){G.compatibleSenderThemes.clear();
_.EE(b.split(","),_.l9(_.Cy.contains,EXW)).forEach(function(I){G.compatibleSenderThemes.add(I)})},b_5=function(G,b){G.experiments.clear();
b.split(",").forEach(function(I){G.experiments.add(I)})};_.OE(F2,_.FN);_.m=F2.prototype;_.m.JSC$20135_onTick_=function(){this.JSC$20133_interval_=Math.min(3E5,this.JSC$20133_interval_*2);this.JSC$20135_listener_();this.nextTickTime_&&this.start()};
_.m.start=function(){var G=this.JSC$20133_interval_+15E3*Math.random(),b=this.delay_;b.isActive()||b.start(G);this.nextTickTime_=Date.now()+G};
_.m.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.m.isActive=function(){return this.delay_.isActive()};
_.m.reset=function(){this.delay_.stop();this.JSC$20133_interval_=5E3};_.OE(HM,YqK);_.m=HM.prototype;_.m.subscribe=function(G,b,I){return this.pubsub_.subscribe(G,b,I)};
_.m.unsubscribe=function(G,b,I){return this.pubsub_.unsubscribe(G,b,I)};
_.m.unsubscribeByKey=function(G){return this.pubsub_.unsubscribeByKey(G)};
_.m.publish=function(G,b){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.m.dispose=function(){this.JSC$20136_disposed_||(this.JSC$20136_disposed_=!0,_.VQ(this.pubsub_),this.disconnect(),_.VQ(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20136_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.X8({})})};
_.m.isDisposed=function(){return this.JSC$20136_disposed_};
_.m.connect=function(G,b,I){var h=this,q,l,V,D;return _.c(function(k){if(k.nextAddress==1)return _.ZJ(k,2),h.useAsyncBrowserChannelHandler_?k.yield(h.connectPromise_,2):k.jumpTo(2);_.Mz(k);if(h.JSC$20136_disposed_||h.JSC$20136_channel_&&h.JSC$20136_channel_.getState()==2)return k.return();h.sCookie_="";h.reconnectTimer_.stop();h.connectionParams_=G||null;h.connectUi_=b||0;q=h.JSC$20136_pathPrefix_+"/test";l=h.JSC$20136_pathPrefix_+"/bind";V=new Uw(I?I.firstTestResults:null,I?I.secondTestResults:null,
h.enableAsyncTest_);if(D=h.JSC$20136_channel_)D.handler_=null;V.handler_=h;h.JSC$20136_channel_=V;if(h.useAsyncBrowserChannelHandler_)return h.connectPromise_=I49(h).then(function(){return hk3(h,q,l,D,I)}),k.return(h.connectPromise_.then(function(){h.connectPromise_=_.X8()}));
hk3(h,q,l,D,I);return _.tj(k,0)})};
var hk3=function(G,b,I,h,q){qOf(G);if(G.JSC$20136_channel_){var l=_.wy("ID_TOKEN"),V=G.JSC$20136_channel_.JSC$20088_extraHeaders_||{};l?V["x-youtube-identity-token"]=l:delete V["x-youtube-identity-token"];G.JSC$20136_channel_.JSC$20088_extraHeaders_=V}jHc(G);h?(h.getState(),G.JSC$20136_channel_.connect(b,I,G.defaultQueryParams_,h.sid_,h.JSC$20088_lastArrayId_)):q?G.JSC$20136_channel_.connect(b,I,G.defaultQueryParams_,q.sessionId,q.arrayId):G.JSC$20136_channel_.connect(b,I,G.defaultQueryParams_)};
HM.prototype.disconnect=function(G){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.X8())}finally{this.disconnectUi_=G||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),qOf(this),this.JSC$20136_channel_&&(this.JSC$20136_channel_.getState()==3&&ry5(this.JSC$20136_channel_),this.JSC$20136_channel_.disconnect()),this.disconnectUi_=0}};
HM.prototype.sendMessage=function(G,b){var I=this,h;return _.c(function(q){switch(q.nextAddress){case 1:_.ZJ(q,2);if(!I.useAsyncBrowserChannelHandler_){q.jumpTo(2);break}return q.yield(I.connectPromise_,2);case 2:_.Mz(q);if(I.JSC$20136_disposed_)return q.return();h={_sc:G};b&&_.Cy.extend(h,b);if(I.reconnectTimer_.isActive()||(I.JSC$20136_channel_?I.JSC$20136_channel_.getState():0)==2){I.JSC$20136_pendingMessages_.push(h);q.jumpTo(6);break}if(!I.isChannelOpened()){q.jumpTo(6);break}_.ZJ(q,8);if(!I.useAsyncBrowserChannelHandler_||
l4K(I,G)){q.jumpTo(8);break}return q.yield(I49(I),8);case 8:_.Mz(q,0,0,1);I.isChannelOpened()&&(l4K(I,G)||jHc(I),qOf(I),yyF(I.JSC$20136_channel_,h));_.tj(q,6,1);break;case 6:_.tj(q,0)}})};
var l4K=function(G,b){return G.enableMdxAuthForConnectionOnly_?!0:G.disableMdxAuthForAdMessages_?Object.values(pVe).includes(b):G.disableMdxAuthForNonPlaybackMessages_?!Object.values(SC8).includes(b):G.disableMdxAuthForShortsMessages_?Object.values(XVY).includes(b):!1};
HM.prototype.JSC$20095_channelOpened=function(){this.isInitialReconnectTimer_?(_.VQ(this.reconnectTimer_),this.reconnectTimer_=new F2(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20136_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)mvK(this);else{var G=this.JSC$20136_pendingMessages_;this.JSC$20136_pendingMessages_=[];var b=G.length;jHc(this);ekD(this,G,b);VF9(this)}else VF9(this)};
var mvK=function(G){var b,I;_.c(function(h){if(h.nextAddress==1)return _.ZJ(h,2),h.yield(I49(G),2);_.Mz(h);b=G.JSC$20136_pendingMessages_;G.JSC$20136_pendingMessages_=[];I=b.length;ekD(G,b,I);VF9(G);return _.tj(h,0)})},ekD=function(G,b,I){for(var h=0;h<I;++h)yyF(G.JSC$20136_channel_,b[h]);
VF9(G)},VF9=function(G){G.publish("handlerOpened");
G.JSC$20136_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.m=HM.prototype;_.m.JSC$20095_channelError=function(G){var b=G==2&&this.JSC$20136_channel_.JSC$20088_lastStatusCode_==401;G==4||b||this.reconnectTimer_.start();this.publish("handlerError",G,b);b=Object.keys(AyL).find(function(I){return AyL[I]===G});
this.JSC$20136_channelErrorCounter.increment("BROWSER_CHANNEL",b!=null?b:"UNKNOWN")};
_.m.JSC$20095_channelClosed=function(G,b){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(b)for(var I=b.length,h=0;h<I;++h){var q=b[h].map;q&&this.JSC$20136_pendingMessages_.push(q)}this.JSC$20136_channelClosedCounter.increment("BROWSER_CHANNEL");G&&this.pendingMapsOnClosedCounter.JSC$10005_streamzService.JSC$9860_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",G.length);b&&this.undeliveredMapsOnClosedCounter.JSC$10008_streamzService.JSC$9860_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
b.length)};
_.m.JSC$20095_channelSuccess=function(G,b){b!=null&&G!=null&&this.channelMessageSentCounter.increment()};
_.m.JSC$20095_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_&&_.Cy.extend(G,this.connectionParams_);return G};
_.m.JSC$20095_channelHandleArray=function(G){G[0]=="S"?this.sCookie_=G[1]:G[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20136_channel_.disconnect()):this.publish("handlerMessage",new bc9(G[0],G[1]));this.JSC$20136_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.m.isChannelOpened=function(){return!!this.JSC$20136_channel_&&this.JSC$20136_channel_.getState()==3};
var qOf=function(G){if(G.JSC$20136_channel_){var b=G.JSC$20136_getXsrfToken_(),I=G.JSC$20136_channel_.JSC$20088_extraHeaders_||{};b?I["x-youtube-lounge-xsrf-token"]=b:delete I["x-youtube-lounge-xsrf-token"];G.JSC$20136_channel_.JSC$20088_extraHeaders_=I}},I49=function(G){if(G.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.X8();
if(!G.enableCachedUpdateAuthorizationHeader_)return Dvc(G);G.updateAuthorizationHeaderPromise_===null&&(G.updateAuthorizationHeaderPromise_=Dvc(G));return G.updateAuthorizationHeaderPromise_},Dvc=function(G){return _.i1(G.getAuthorizationHeader_().then(function(b){cPa(G,b)}).thenCatch(function(){}),function(){G.updateAuthorizationHeaderPromise_=null})},cPa=function(G,b){if(G.JSC$20136_channel_){var I=G.JSC$20136_channel_.JSC$20088_extraHeaders_||{};
b&&Object.keys(b).length>0?I=Object.assign({},I,b):delete I.Authorization;G.JSC$20136_channel_.JSC$20088_extraHeaders_=I}},jHc=function(G){G.getAuthorizationHeaderSync_&&!G.useAsyncBrowserChannelHandler_&&cPa(G,G.getAuthorizationHeaderSync_())};
_.m=HM.prototype;_.m.setLoungeToken=function(G){(this.defaultQueryParams_.loungeIdToken=G)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20136_channel_){var b=this.JSC$20136_channel_.JSC$20088_extraHeaders_||{};G?b["X-YouTube-LoungeId-Token"]=G:delete b["X-YouTube-LoungeId-Token"];this.JSC$20136_channel_.JSC$20088_extraHeaders_=b}};
_.m.getDeviceId=function(){return this.defaultQueryParams_.id};
_.m.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.m.reconnect=function(){var G=this.reconnectTimer_;G.delay_.fire();G.start()};
_.m.safeReconnect_=function(){var G=this.JSC$20136_channel_,b=0;G.JSC$20088_backChannelRequest_&&b++;G.forwardChannelRequest_&&b++;b==0&&this.connect(this.connectionParams_,this.connectUi_)};var Kt=function(G,b){var I=G.basePath;G.supportCors&&(I=G.scheme+"://"+G.domain+G.port+G.basePath);return _.mE(I+b,{})};
WM.prototype.sendRequest=function(G,b,I,h,q,l,V){G={format:l?"RAW":"JSON",method:G,context:this,timeout:5E3,withCredentials:!!V,onSuccess:_.l9(this.JSC$20142_onSuccess_,h,!l),onError:_.l9(this.onError_,q),onTimeout:_.l9(this.JSC$20142_onTimeout_,q)};I&&(G.postParams=I,G.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.ze(b,G)};
WM.prototype.JSC$20142_onSuccess_=function(G,b,I,h){b?G(h):G({text:I.responseText})};
WM.prototype.onError_=function(G,b){G(Error("Yk`"+b.status))};
WM.prototype.JSC$20142_onTimeout_=function(G){G(Error("Zk"))};var Nu=function(G,b){return!!b&&(G.id==b||G.uuid==b)},kPj=function(G){return{name:G.name,
screenId:G.id,loungeToken:G.token,dialId:G.uuid,screenIdType:G.idType,screenIdSecret:G.secret}},v78=function(G){return new ay(G)},L1a=function(G){return Array.isArray(G)?_.Ky(G,v78):[]},ckK=function(G){if(!G)return"null";
var b=G.token?".."+G.token.slice(-6):"-",I=G.uuid?".."+G.uuid.slice(-6):"-",h=G.secret?".."+G.secret.slice(-6):"-";return'{name:"'+G.name+'",id:'+G.id.substr(0,6)+"..,token:"+(b+",uuid:"+I+",idType:"+G.idType+",secret:")+(h+"}")},Nce=function(G){return Array.isArray(G)?"["+_.Ky(G,ckK).join(",")+"]":"null"};var Tcc="",JT=null;var zQ9=function(G,b){_.Z$.call(this);var I=this;this.handler=G();this.handler.subscribe("handlerOpened",this.JSC$20149_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(h,q){I.onError(q)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=b};
_.M(zQ9,_.Z$);_.m=zQ9.prototype;_.m.connect=function(G,b,I){this.handler.connect(G,b,I)};
_.m.disconnect=function(G){this.handler.disconnect(G)};
_.m.reconnect=function(){this.handler.reconnect()};
_.m.getDeviceId=function(){return this.handler.getDeviceId()};
_.m.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.m.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.m.JSC$20149_onOpened=function(){this.dispatchEvent("channelOpened");var G=this.handler,b=this.currentScreenId;_.LX("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!G.JSC$20136_channel_.useChunked_,sessionId:G.JSC$20136_channel_.sid_,arrayId:G.JSC$20136_channel_.JSC$20088_lastArrayId_});_.LX("yt-remote-session-screen-id",b);G=kID();b=vg1();_.Ya(G,b)||G.push(b);fAD(G);xAc()};
_.m.onClosed=function(){this.dispatchEvent("channelClosed")};
_.m.onMessage=function(G){this.dispatchEvent(new nX5(G))};
_.m.onError=function(G){this.dispatchEvent(new O$f(G?1:0))};
_.m.sendMessage=function(G,b){this.handler.sendMessage(G,b)};
_.m.setLoungeToken=function(G){this.handler.setLoungeToken(G)};
_.m.dispose=function(){this.handler.dispose()};var tNK=function(G,b,I){var h=this;I=I===void 0?function(){return""}:I;
var q=q===void 0?new OP3:q;var l=l===void 0?new _.iB:l;this.pathPrefix=G;this.defaultQueryParams=b;this.getXsrfToken=I;this.JSC$20152_pubsub=l;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new F2(function(){var V;((V=h.channel)==null?void 0:sS1((new p6e(V,V.JSC$20059_channel_)).JSC$20069_channel_.forwardChannelRequestPool_))===0&&h.connect(h.connectionParams,h.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20152_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20152_channelOpenedCounter=new IAW;this.JSC$20152_channelClosedCounter=new hQF;this.JSC$20152_channelMessageReceivedCounter=new jGL;this.JSC$20152_channelErrorCounter=new lAD};
tNK.prototype.connect=function(G,b){G=G===void 0?{}:G;b=b===void 0?0:b;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=G,this.connectUi=b,QHW(this),(G=_.wy("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 xD(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,xv8(this))};
var xv8=function(G){_.cv(G.channel,"w",function(){G.channelState=3;G.reconnectTimer.reset();G.connectionParams=null;G.connectUi=0;for(var b=_.e(G.nonAckedMessagesOnChannelClosed),I=b.next();!I.done;I=b.next())I=I.value,G.channel&&G.channel.send(I);G.nonAckedMessagesOnChannelClosed=[];G.publish("webChannelOpened");G.JSC$20152_channelOpenedCounter.increment("WEB_CHANNEL")});
_.cv(G.channel,"x",function(){G.channelState=0;G.reconnectTimer.isActive()||G.publish("webChannelClosed");var b,I=(b=G.channel)==null?void 0:SQe(new p6e(b,b.JSC$20059_channel_));I&&(G.nonAckedMessagesOnChannelClosed=[].concat(_.Nz(I)));G.JSC$20152_channelClosedCounter.increment("WEB_CHANNEL")});
_.cv(G.channel,"z",function(b){var I=b.data;I[0]==="gracefulReconnect"?(G.reconnectTimer.start(),G.channel&&G.channel.close()):G.publish("webChannelMessage",new bc9(I[0],I[1]));G.lastStatusCode=b.statusCode;G.JSC$20152_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.cv(G.channel,"y",function(){G.lastStatusCode===401||G.reconnectTimer.start();G.publish("webChannelError");G.JSC$20152_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.m=tNK.prototype;_.m.disconnect=function(G){this.disconnectUi=G===void 0?0:G;this.reconnectTimer.stop();QHW(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.m.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.m.reconnect=function(){var G=this.reconnectTimer;G.delay_.fire();G.start()};
_.m.sendMessage=function(G,b){this.channel&&(QHW(this),G=Object.assign({},{_sc:G},b),this.channel.send(G))};
_.m.setLoungeToken=function(G){G||this.reconnectTimer.stop();G?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=G:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var QHW=function(G){var b=G.getXsrfToken();b?G.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=b:delete G.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.m=tNK.prototype;_.m.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.m.publish=function(G){return this.JSC$20152_pubsub.publish.apply(this.JSC$20152_pubsub,[G].concat(_.Nz(_.RI.apply(1,arguments))))};
_.m.subscribe=function(G,b,I){return this.JSC$20152_pubsub.subscribe(G,b,I)};
_.m.unsubscribe=function(G,b,I){return this.JSC$20152_pubsub.unsubscribe(G,b,I)};
_.m.unsubscribeByKey=function(G){return this.JSC$20152_pubsub.unsubscribeByKey(G)};
_.m.dispose=function(){this.JSC$20152_disposed||(this.JSC$20152_disposed=!0,_.VQ(this.JSC$20152_pubsub),this.disconnect(),_.VQ(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.m.isDisposed=function(){return this.JSC$20152_disposed};var Zcj=function(G){_.Z$.call(this);this.webChannelService=G();this.webChannelService.subscribe("webChannelOpened",this.JSC$20160_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.M(Zcj,_.Z$);_.m=Zcj.prototype;_.m.connect=function(G,b){this.webChannelService.connect(G,b)};
_.m.disconnect=function(G){this.webChannelService.disconnect(G)};
_.m.reconnect=function(){this.webChannelService.reconnect()};
_.m.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.m.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.m.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.m.JSC$20160_onOpened=function(){this.dispatchEvent("channelOpened")};
_.m.onClosed=function(){this.dispatchEvent("channelClosed")};
_.m.onMessage=function(G){this.dispatchEvent(new nX5(G))};
_.m.onError=function(){this.dispatchEvent(new O$f(this.webChannelService.lastStatusCode===401?1:0))};
_.m.sendMessage=function(G,b){this.webChannelService.sendMessage(G,b)};
_.m.setLoungeToken=function(G){this.webChannelService.setLoungeToken(G)};
_.m.dispose=function(){this.webChannelService.dispose()};var aA1=Date.now(),uy=null,HcD=Array(50),OV=-1,Wa1=!1;_.OE(w6,_.XC);w6.prototype.getScreens=function(){return this.screens};
w6.prototype.contains=function(G){return!!cxe(this.screens,G)};
w6.prototype.get=function(G){return G?Y$(this.screens,G):null};
var f43=function(G,b){var I=G.get(b.uuid)||G.get(b.id);if(I)return G=I.name,I.id=b.id||I.id,I.name=b.name,I.token=b.token,I.uuid=b.uuid||I.uuid,I.name!=G;G.screens.push(b);return!0},Toc=function(G,b){var I=G.screens.length!=b.length;
G.screens=_.EE(G.screens,function(l){return!!cxe(b,l)});
for(var h=b.length,q=0;q<h;q++)I=f43(G,b[q])||I;return I},BoD=function(G,b){var I=G.screens.length;
G.screens=_.EE(G.screens,function(h){return!(h||b?!h!=!b?0:h.id==b.id:1)});
return G.screens.length<I};
w6.prototype.info=function(G){Ry(this.JSC$20161_logName_,G)};var Uv3=function(G,b,I,h,q){_.XC.call(this);this.JSC$20164_http_=G;this.pairingCode_=b;this.deviceId_=I;this.friendlyName_=h;this.enableShortLivedLoungeToken_=q;this.pollIndex_=0;this.JSC$20164_xhr_=null;this.JSC$20164_timer_=NaN};
_.M(Uv3,_.XC);_.m=Uv3.prototype;_.m.start=function(){!this.JSC$20164_xhr_&&isNaN(this.JSC$20164_timer_)&&this.poll_()};
_.m.stop=function(){this.JSC$20164_xhr_&&(this.JSC$20164_xhr_.abort(),this.JSC$20164_xhr_=null);isNaN(this.JSC$20164_timer_)||(_.ZU(this.JSC$20164_timer_),this.JSC$20164_timer_=NaN)};
_.m.disposeInternal=function(){this.stop();_.XC.prototype.disposeInternal.call(this)};
_.m.poll_=function(){this.JSC$20164_timer_=NaN;this.JSC$20164_xhr_=_.ze(Kt(this.JSC$20164_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Hr)(this.JSC$20166_onSuccess_,this),onError:(0,_.Hr)(this.onError_,this),onTimeout:(0,_.Hr)(this.JSC$20166_onTimeout_,this)})};
_.m.JSC$20166_onSuccess_=function(G,b){this.JSC$20164_xhr_=null;G=b.screen||{};G.dialId=this.deviceId_;G.name=this.friendlyName_;b=-1;this.enableShortLivedLoungeToken_&&G.shortLivedLoungeToken&&G.shortLivedLoungeToken.value&&G.shortLivedLoungeToken.refreshIntervalMs&&(G.screenIdType="shortLived",G.loungeToken=G.shortLivedLoungeToken.value,b=G.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new ay(G),b)};
_.m.onError_=function(G){this.JSC$20164_xhr_=null;G.status&&G.status==404?this.pollIndex_>=sHW.length?this.publish("pairingFailed",Error("$k")):(G=sHW[this.pollIndex_],this.JSC$20164_timer_=_.AB((0,_.Hr)(this.poll_,this),G),this.pollIndex_++):this.publish("pairingFailed",Error("al`"+G.status))};
_.m.JSC$20166_onTimeout_=function(){this.JSC$20164_xhr_=null;this.publish("pairingFailed",Error("bl"))};
var sHW=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.OE(pt,w6);_.m=pt.prototype;_.m.start=function(){EV(this)&&this.publish("screenChange");!_.Q4("yt-remote-lounge-token-expiration")&&g7F(this);_.ZU(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.AB((0,_.Hr)(this.start,this),1E4)};
_.m.add=function(G,b){EV(this);f43(this,G);AP3(this,!1);this.publish("screenChange");b(G);G.token||g7F(this)};
_.m.remove=function(G,b){var I=EV(this);BoD(this,G)&&(AP3(this,!1),I=!0);b(G);I&&this.publish("screenChange")};
_.m.updateName=function(G,b,I,h){var q=EV(this),l=this.get(G.id);l?(l.name!=b&&(l.name=b,AP3(this,!1),q=!0),I(G)):h(Error("cl"));q&&this.publish("screenChange")};
_.m.disposeInternal=function(){_.ZU(this.loungeTokenRefreshTimer_);pt.superClass_.disposeInternal.call(this)};
var g7F=function(G){if(G.screens.length){var b=_.Ky(G.screens,function(h){return h.id}),I=Kt(G.JSC$20168_http_,"/pairing/get_lounge_token_batch");
G.JSC$20168_http_.sendRequest("POST",I,{screen_ids:b.join(",")},(0,_.Hr)(G.handleLoungeTokens_,G),(0,_.Hr)(G.handleLoungeTokenError_,G))}};
pt.prototype.handleLoungeTokens_=function(G){EV(this);var b=this.screens.length;G=G&&G.screens||[];for(var I=G.length,h=0;h<I;++h){var q=G[h],l=this.get(q.screenId);l&&(l.token=q.loungeToken,--b)}AP3(this,!b);b&&Ry(this.JSC$20161_logName_,"Missed "+b+" lounge tokens.")};
pt.prototype.handleLoungeTokenError_=function(G){Ry(this.JSC$20161_logName_,"Requesting lounge tokens failed: "+G)};
var EV=function(G){if(_.U("deprecate_pair_servlet_enabled"))return Toc(G,[]);var b=L1a(UAW());b=_.EE(b,function(I){return!I.uuid});
return Toc(G,b)},AP3=function(G,b){ggY(_.Ky(G.screens,kPj));
b&&sGc()};var Mm=function(G,b){_.XC.call(this);this.getScreensToCheck_=b;b=(b=_.Q4("yt-remote-online-screen-ids")||"")?b.split(","):[];for(var I={},h=this.getScreensToCheck_(),q=h.length,l=0;l<q;++l){var V=h[l].id;I[V]=_.Ya(b,V)}this.screenIdSet_=I;this.JSC$20171_http_=G;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;MFF("Initialized with "+(0,_.yP)(this.screenIdSet_))};
_.M(Mm,_.XC);Mm.prototype.isOnline=function(G){return!!this.screenIdSet_[G]};
Mm.prototype.start=function(){var G=parseInt(_.Q4("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.nW()-144E5<G?0:G)?Z_5(this):(this.fastCheckEndTime_=_.nW()+3E5,_.LX("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Mm.prototype.isEmpty=function(){return _.Cy.isEmpty(this.screenIdSet_)};
Mm.prototype.update=function(){MFF("Updating availability on schedule.");var G=this.getScreensToCheck_(),b=_.Cy.filter(this.screenIdSet_,function(I,h){return I&&!!Y$(G,h)},this);
tFF(this,b)};
var zk8=function(G,b,I){var h=Kt(G.JSC$20171_http_,"/pairing/get_screen_availability");G.JSC$20171_http_.sendRequest("POST",h,{lounge_token:b.token},(0,_.Hr)(function(q){q=q.screens||[];for(var l=q.length,V=0;V<l;++V)if(q[V].loungeToken==b.token){I(q[V].status=="online");return}I(!1)},G),(0,_.Hr)(function(){I(!1)},G))};
Mm.prototype.disposeInternal=function(){_.ZU(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.XC.prototype.disposeInternal.call(this)};
var tFF=function(G,b){a:if(_.Cy.getCount(b)!=_.Cy.getCount(G.screenIdSet_))var I=!1;else{I=_.Cy.getKeys(b);for(var h=I.length,q=0;q<h;++q)if(!G.screenIdSet_[I[q]]){I=!1;break a}I=!0}I||(MFF("Updated online screens: "+(0,_.yP)(G.screenIdSet_)),G.screenIdSet_=b,G.publish("screenChange"));o7W(G)},Z_5=function(G){isNaN(G.refreshTimer_)||_.ZU(G.refreshTimer_);
G.refreshTimer_=_.AB((0,_.Hr)(G.requestScreenAvailability_,G),G.fastCheckEndTime_>0&&G.fastCheckEndTime_<_.nW()?2E4:1E4)};
Mm.prototype.requestScreenAvailability_=function(){_.ZU(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var G=i_a(this);if(_.Cy.getCount(G)){var b=Kt(this.JSC$20171_http_,"/pairing/get_screen_availability"),I={lounge_token:_.Cy.getKeys(G).join(",")};this.currentRequest_=this.JSC$20171_http_.sendRequest("POST",b,I,(0,_.Hr)(this.onScreenAvailability_,this,G),(0,_.Hr)(this.onScreenAvailabilityError_,this))}else tFF(this,{}),Z_5(this)};
Mm.prototype.onScreenAvailability_=function(G,b){this.currentRequest_=null;var I=_.Cy.getKeys(i_a(this));if(_.pO(I,_.Cy.getKeys(G))){b=b.screens||[];I={};for(var h=b.length,q=0;q<h;++q)I[G[b[q].loungeToken]]=b[q].status=="online";tFF(this,I);Z_5(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Mm.prototype.onScreenAvailabilityError_=function(G){this.warn_("Screen availability failed: "+G);this.currentRequest_=null;Z_5(this)};
var MFF=function(G){Ry("OnlineScreenService",G)};
Mm.prototype.warn_=function(G){Ry("OnlineScreenService",G)};
var i_a=function(G){var b={};_.hB(G.getScreensToCheck_(),function(I){I.token?b[I.token]=I.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return b},o7W=function(G){G=_.Cy.getKeys(_.Cy.filter(G.screenIdSet_,function(b){return b}));
G.sort(_.FpO);G.length?_.LX("yt-remote-online-screen-ids",G.join(","),60):_.xn("yt-remote-online-screen-ids")};_.OE(S4,w6);_.m=S4.prototype;_.m.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.m.add=function(G,b,I){this.localScreenService_.add(G,b,I)};
_.m.remove=function(G,b,I){this.localScreenService_.remove(G,b,I);this.onlineScreenService_.update()};
_.m.updateName=function(G,b,I,h){this.localScreenService_.contains(G)?this.localScreenService_.updateName(G,b,I,h):(G="Updating name of unknown screen: "+G.name,Ry(this.JSC$20161_logName_,G),h(Error(G)))};
_.m.getScreens=function(G){return G?this.screens:Rrc(this.screens,_.EE(this.automaticScreens_,function(b){return!this.contains(b)},this))};
_.m.JSC$20176_getOnlineScreens=function(){return _.EE(this.getScreens(!0),function(G){return this.onlineScreenService_.isOnline(G.id)},this)};
var dvf=function(G,b,I,h,q,l){G.info("getAutomaticScreenByIds "+I+" / "+b);I||(I=G.deviceToScreenId_[b]);var V=G.getScreens(),D=I?Y$(V,I):null;I&&(G.disableAutomaticScreenCache_||D)||(D=Y$(V,b));if(D){D.uuid=b;var k=Zt(G,D);zk8(G.onlineScreenService_,k,function(L){q(L?k:null)})}else I?P_c(G,I,(0,_.Hr)(function(L){var x=Zt(this,new ay({name:h,
screenId:I,loungeToken:L,dialId:b||""}));zk8(this.onlineScreenService_,x,function(f){q(f?x:null)})},G),l):q(null)};
S4.prototype.JSC$20176_getScreenByPollingPairingCode=function(G,b,I,h,q,l){var V=this;this.info("getDialScreenByPairingCode "+G+" / "+b);var D=new Uv3(this.JSC$20174_http_,G,b,I,h);D.subscribe("pairingComplete",function(k,L){_.VQ(D);q(Zt(V,k),L)});
D.subscribe("pairingFailed",function(k){_.VQ(D);l(k)});
D.start();return(0,_.Hr)(D.stop,D)};
var yPK=function(G,b){for(var I=G.screens.length,h=0;h<I;++h)if(G.screens[h].name==b)return G.screens[h];return null};
S4.prototype.JSC$20176_getScreenByPairingCode=function(G,b,I,h){_.ze(Kt(this.JSC$20174_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:G},timeout:5E3,onSuccess:(0,_.Hr)(function(q,l){q=new ay(l.screen||{});if(!q.name||yPK(this,q.name)){a:{l=q.name;for(var V=2,D=b(l,V);yPK(this,D);){V++;if(V>20)break a;D=b(l,V)}l=D}q.name=l}I(Zt(this,q))},this),
onError:(0,_.Hr)(function(q){h(Error("dl`"+q.status))},this),
onTimeout:(0,_.Hr)(function(){h(Error("el"))},this)})};
var rPW=function(G,b,I){zk8(G.onlineScreenService_,b,I)};
S4.prototype.disposeInternal=function(){_.VQ(this.localScreenService_);_.VQ(this.onlineScreenService_);S4.superClass_.disposeInternal.call(this)};
var P_c=function(G,b,I,h){G.info("requestLoungeToken_ for "+b);var q={postParams:{screen_ids:b},method:"POST",context:G,onSuccess:function(l,V){l=V&&V.screens||[];l[0]&&l[0].screenId==b?I(l[0].loungeToken):h(Error("fl"))},
onError:function(){h(Error("gl"))}};
_.ze(Kt(G.JSC$20174_http_,"/pairing/get_lounge_token_batch"),q)},F11=function(G){G.screens=G.localScreenService_.getScreens();
for(var b=_.Cy.transpose(G.deviceToScreenId_),I=G.screens.length,h=0;h<I;++h){var q=G.screens[h];q.uuid=b[q.id]||""}G.info("Updated manual screens: "+Nce(G.screens))};
S4.prototype.handleScreenChange_=function(){F11(this);this.publish("screenChange");this.onlineScreenService_.update()};
var Y45=function(G){H_8(G);G.localScreenService_=new pt(G.JSC$20174_http_);G.localScreenService_.subscribe("screenChange",(0,_.Hr)(G.handleScreenChange_,G));F11(G);G.disableAutomaticScreenCache_||(G.automaticScreens_=L1a(_.Q4("yt-remote-automatic-screen-cache")||[]));H_8(G);G.info("Initializing automatic screens: "+Nce(G.automaticScreens_));G.onlineScreenService_=new Mm(G.JSC$20174_http_,(0,_.Hr)(G.getScreens,G,!0));G.onlineScreenService_.subscribe("screenChange",(0,_.Hr)(function(){this.publish("onlineScreenChange")},
G))},Zt=function(G,b){var I=G.get(b.id);
I?(I.uuid=b.uuid,b=I):((I=Y$(G.automaticScreens_,b.uuid))?(I.id=b.id,I.token=b.token,b=I):G.automaticScreens_.push(b),G.disableAutomaticScreenCache_||W1c(G));H_8(G);G.deviceToScreenId_[b.uuid]=b.id;_.LX("yt-remote-device-id-map",G.deviceToScreenId_,31536E3);return b},W1c=function(G){G=_.EE(G.automaticScreens_,function(b){return b.idType!="shortLived"});
_.LX("yt-remote-automatic-screen-cache",_.Ky(G,kPj))},H_8=function(G){G.deviceToScreenId_=_.Q4("yt-remote-device-id-map")||{}};
S4.prototype.dispose=S4.prototype.dispose;_.OE(X2,_.XC);var tg=function(G,b){G.screen_=b;G.publish("sessionScreen",G.screen_)},a4K=function(G,b){G.screen_&&(G.screen_.token=b,Zt(G.JSC$20178_screenService_,G.screen_));
G.publish("sessionScreen",G.screen_)};
X2.prototype.onSessionStopped=function(G){this.isDisposed()||(G&&(zM(this,""+G),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
X2.prototype.info=function(G){Ry(this.JSC$20178_logName_,G)};
var zM=function(G,b){Ry(G.JSC$20178_logName_,b)};
X2.prototype.JSC$20180_getCastSession=function(){return null};
X2.prototype.setDisplayStatus=function(G){var b=this.receiver_;G?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(G,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,(0,_.Hr)(function(){this.info("Updated receiver status for "+b.friendlyName+": "+G)},this),(0,_.Hr)(function(){zM(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
X2.prototype.disposeInternal=function(){this.setDisplayStatus("");X2.superClass_.disposeInternal.call(this)};var op=function(G,b,I){X2.call(this,G,b,"CastSession");var h=this;this.config_=I;this.JSC$20183_session_=null;this.JSC$20183_boundSessionUpdate_=(0,_.Hr)(this.JSC$20185_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Hr)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.AB(function(){No5(h,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20183_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20183_isInitLoungeToken_=!1;this.JSC$20183_lastLoungeTokenRefreshError_="unknown"};
_.M(op,X2);_.m=op.prototype;
_.m.setCastSession=function(G){if(this.JSC$20183_session_){if(this.JSC$20183_session_==G)return;zM(this,"Overriding cast session with new session object");YOF(this);this.JSC$20183_isInitLoungeToken_=!1;this.JSC$20183_lastLoungeTokenRefreshError_="unknown";this.JSC$20183_session_.removeUpdateListener(this.JSC$20183_boundSessionUpdate_);this.JSC$20183_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20183_session_=G;this.JSC$20183_session_.addUpdateListener(this.JSC$20183_boundSessionUpdate_);this.JSC$20183_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);C_Y(this,"getMdxSessionStatus")};
_.m.launchWithParams=function(G){this.info("launchWithParams no-op for Cast: "+(0,_.yP)(G))};
_.m.stop=function(){if(this.JSC$20183_session_)this.JSC$20183_session_.stop((0,_.Hr)(function(){this.onSessionStopped()},this),(0,_.Hr)(function(){this.onSessionStopped(Error("hl"))},this));
else this.onSessionStopped(Error("il"))};
_.m.setDisplayStatus=function(){};
_.m.disposeInternal=function(){this.info("disposeInternal");YOF(this);this.JSC$20183_session_&&(this.JSC$20183_session_.removeUpdateListener(this.JSC$20183_boundSessionUpdate_),this.JSC$20183_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20183_session_=null;X2.prototype.disposeInternal.call(this)};
var K18=function(G,b){_.ZU(G.getLoungeTokenTimeoutKey_);G.getLoungeTokenTimeoutKey_=0;b==0?JPe(G):G.getLoungeTokenTimeoutKey_=_.AB(function(){JPe(G)},b)},JPe=function(G){C_Y(G,"getLoungeToken");
_.ZU(G.onLoungeTokenTimeoutKey_);G.onLoungeTokenTimeoutKey_=_.AB(function(){uwe(G,null)},3E4)},C_Y=function(G,b){G.info("sendYoutubeMessage_: "+b+" "+(0,_.yP)(void 0));
var I={};I.type=b;G.JSC$20183_session_?G.JSC$20183_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",I,function(){},(0,_.Hr)(function(){zM(this,"Failed to send message: "+b+".")},G)):zM(G,"Sending yt message without session: "+(0,_.yP)(I))};
op.prototype.onYoutubeMessage_=function(G,b){if(!this.isDisposed())if(b)if(b=(0,_.xc)(b),_.Oj(b))switch(G=""+b.type,b=b.data||{},this.info("onYoutubeMessage_: "+G+" "+(0,_.yP)(b)),G){case "mdxSessionStatus":No5(this,b);break;case "loungeToken":uwe(this,b);break;default:zM(this,"Unknown youtube message: "+G)}else zM(this,"Unable to parse message.");else zM(this,"No data in message.")};
var RkL=function(G,b){if(b)G.info("onConnectedScreenId_: Received screenId: "+b),G.screen_&&G.screen_.id==b||G.getScreen_(b,function(I){tg(G,I)},function(){return G.onSessionStopped()},5);
else G.onSessionStopped(Error("jl"))},O_j=function(G,b,I){G.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(b));
var h=new ay(b);n79(G,h,function(q){q?(G.JSC$20183_isInitLoungeToken_=!0,Zt(G.JSC$20178_screenService_,h),tg(G,h),G.JSC$20183_lastLoungeTokenRefreshError_="unknown",K18(G,I)):(_.Xj(Error("kl`"+JSON.stringify(b))),G.onSessionStopped())},5)},No5=function(G,b){_.ZU(G.sessionStatusTimeoutKey_);
G.sessionStatusTimeoutKey_=0;if(b)G.config_.enableCastLoungeToken&&b.loungeToken?b.deviceId?G.screen_&&G.screen_.uuid==b.deviceId||(b.loungeTokenRefreshIntervalMs?O_j(G,{name:G.receiver_.friendlyName,screenId:b.screenId,loungeToken:b.loungeToken,dialId:b.deviceId,screenIdType:"shortLived"},b.loungeTokenRefreshIntervalMs):(_.Xj(Error("ml`"+JSON.stringify(b))),RkL(G,b.screenId))):(_.Xj(Error("ll`"+JSON.stringify(b))),RkL(G,b.screenId)):RkL(G,b.screenId);else G.onSessionStopped(Error("jl"))},uwe=function(G,
b){_.ZU(G.onLoungeTokenTimeoutKey_);
G.onLoungeTokenTimeoutKey_=0;var I=null;if(b)if(b.loungeToken){var h;((h=G.screen_)==null?void 0:h.token)==b.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(b)+", error: "+I)),G.JSC$20183_lastLoungeTokenRefreshError_=I,K18(G,3E4)):(a4K(G,b.loungeToken),G.JSC$20183_isInitLoungeToken_=!1,G.JSC$20183_lastLoungeTokenRefreshError_="unknown",K18(G,b.loungeTokenRefreshIntervalMs))};
op.prototype.getScreen_=function(G,b,I,h){_.ZU(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;dvf(this.JSC$20178_screenService_,this.receiver_.label,G,this.receiver_.friendlyName,(0,_.Hr)(function(q){q?b(q):h>=0?(zM(this,"Screen "+G+" appears to be offline. "+h+" retries left."),this.getScreenTimeoutKey_=_.AB((0,_.Hr)(this.getScreen_,this,G,b,I,h-1),300)):I(Error("nl"))},this),I)};
var n79=function(G,b,I,h){_.ZU(G.JSC$20183_checkScreenAvailabilityTimeoutKey_);G.JSC$20183_checkScreenAvailabilityTimeoutKey_=0;rPW(G.JSC$20178_screenService_,b,function(q){q||h<0?I(q):G.JSC$20183_checkScreenAvailabilityTimeoutKey_=_.AB(function(){n79(G,b,I,h-1)},300)})};
op.prototype.JSC$20180_getCastSession=function(){return this.JSC$20183_session_};
op.prototype.JSC$20185_onSessionUpdate_=function(G){this.isDisposed()||G||(zM(this,"Cast session died."),this.onSessionStopped())};
var YOF=function(G){_.ZU(G.getScreenTimeoutKey_);G.getScreenTimeoutKey_=0;_.ZU(G.JSC$20183_checkScreenAvailabilityTimeoutKey_);G.JSC$20183_checkScreenAvailabilityTimeoutKey_=0;_.ZU(G.sessionStatusTimeoutKey_);G.sessionStatusTimeoutKey_=0;_.ZU(G.onLoungeTokenTimeoutKey_);G.onLoungeTokenTimeoutKey_=0;_.ZU(G.getLoungeTokenTimeoutKey_);G.getLoungeTokenTimeoutKey_=0};var iT=function(G,b,I,h){X2.call(this,G,b,"DialSession");this.config_=h;this.JSC$20187_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20187_theme_=I;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20187_deferredLaunchDeadlineTimer_=NaN;this.JSC$20187_boundSessionUpdate_=(0,_.Hr)(this.JSC$20189_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20187_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20187_isInitLoungeToken_=!1;this.JSC$20187_lastLoungeTokenRefreshError_="unknown"};
_.M(iT,X2);iT.prototype.setCastSession=function(G){this.JSC$20187_session_=G;this.JSC$20187_session_.addUpdateListener(this.JSC$20187_boundSessionUpdate_)};
iT.prototype.launchWithParams=function(G){this.connectData_=G;this.deferredLaunch_()};
iT.prototype.stop=function(){wWK(this);if(this.JSC$20187_session_)this.JSC$20187_session_.stop((0,_.Hr)(this.onSessionStopped,this,null),(0,_.Hr)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
iT.prototype.disposeInternal=function(){wWK(this);this.JSC$20187_session_&&this.JSC$20187_session_.removeUpdateListener(this.JSC$20187_boundSessionUpdate_);this.JSC$20187_session_=null;X2.prototype.disposeInternal.call(this)};
var E75=function(G){var b;return!!(G.config_.enableDialLoungeToken&&((b=G.JSC$20187_session_)==null?0:b.getDialAppInfo))},SO3=function(G){G.cancelPolling_=G.JSC$20178_screenService_.JSC$20176_getScreenByPollingPairingCode(G.reversePairingCode_,G.receiver_.label,G.receiver_.friendlyName,E75(G),function(b,I){G.cancelPolling_=function(){};
G.JSC$20187_isInitLoungeToken_=!0;tg(G,b);b.idType=="shortLived"&&I>0&&pWe(G,I)},function(b){G.cancelPolling_=function(){};
G.onSessionStopped(b)})};
iT.prototype.JSC$20189_onSessionUpdate_=function(G){this.isDisposed()||G||(zM(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var XWK=function(G){var b={};b.pairingCode=G.reversePairingCode_;b.theme=G.JSC$20187_theme_;MNf()&&(b.env_useStageMdx=1);return _.oN(b)},$lK=function(G){return new Promise(function(b){G.reversePairingCode_=VNL();
if(G.connectData_){var I=new chrome.cast.DialLaunchResponse(!0,XWK(G));b(I);SO3(G)}else G.deferredLaunch_=function(){_.ZU(G.JSC$20187_deferredLaunchDeadlineTimer_);G.deferredLaunch_=function(){};
G.JSC$20187_deferredLaunchDeadlineTimer_=NaN;var h=new chrome.cast.DialLaunchResponse(!0,XWK(G));b(h);SO3(G)},G.JSC$20187_deferredLaunchDeadlineTimer_=_.AB(function(){G.deferredLaunch_()},100)})},bzD=function(G,b,I){G.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(b));
var h=new ay(b);return(new Promise(function(q){GLD(G,h,function(l){l?(G.JSC$20187_isInitLoungeToken_=!0,Zt(G.JSC$20178_screenService_,h),tg(G,h),pWe(G,I)):_.Xj(Error("pl`"+JSON.stringify(b)));q(l)},5)})).then(function(q){return q?new chrome.cast.DialLaunchResponse(!1):$lK(G)})},IvW=function(G,b){var I=G.launchData_.receiver.label,h=G.receiver_.friendlyName;
return(new Promise(function(q){dvf(G.JSC$20178_screenService_,I,b,h,function(l){l&&l.token&&tg(G,l);q(l)},function(l){zM(G,"Failed to get DIAL screen: "+l);
q(null)})})).then(function(q){return q&&q.token?new chrome.cast.DialLaunchResponse(!1):$lK(G)})},GLD=function(G,b,I,h){_.ZU(G.JSC$20187_checkScreenAvailabilityTimeoutKey_);
G.JSC$20187_checkScreenAvailabilityTimeoutKey_=0;rPW(G.JSC$20178_screenService_,b,function(q){q||h<0?I(q):G.JSC$20187_checkScreenAvailabilityTimeoutKey_=_.AB(function(){GLD(G,b,I,h-1)},300)})},pWe=function(G,b){G.info("getDialAppInfoWithTimeout_ "+b);
E75(G)&&(_.ZU(G.getDialAppInfoTimeoutKey_),G.getDialAppInfoTimeoutKey_=0,b==0?hOD(G):G.getDialAppInfoTimeoutKey_=_.AB(function(){hOD(G)},b))},hOD=function(G){E75(G)&&G.JSC$20187_session_.getDialAppInfo(function(b){G.info("getDialAppInfo dialLaunchData: "+JSON.stringify(b));
b=b.extraData||{};var I=null;if(b.loungeToken){var h;((h=G.screen_)==null?void 0:h.token)==b.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";I?(G.JSC$20187_lastLoungeTokenRefreshError_=I,pWe(G,3E4)):(G.JSC$20187_isInitLoungeToken_=!1,G.JSC$20187_lastLoungeTokenRefreshError_="unknown",a4K(G,b.loungeToken),pWe(G,b.loungeTokenRefreshIntervalMs))},function(b){G.info("getDialAppInfo error: "+b);
G.JSC$20187_lastLoungeTokenRefreshError_="noLoungeTokenResponse";pWe(G,3E4)})},wWK=function(G){_.ZU(G.JSC$20187_checkScreenAvailabilityTimeoutKey_);
G.JSC$20187_checkScreenAvailabilityTimeoutKey_=0;_.ZU(G.getDialAppInfoTimeoutKey_);G.getDialAppInfoTimeoutKey_=0;G.cancelPolling_();G.cancelPolling_=function(){};
_.ZU(G.JSC$20187_deferredLaunchDeadlineTimer_)};var PC=function(G,b){X2.call(this,G,b,"ManualSession");this.JSC$20191_deferredLaunchDeadlineTimer_=_.AB((0,_.Hr)(this.launchWithParams,this,null),150)};
_.M(PC,X2);PC.prototype.stop=function(){this.onSessionStopped()};
PC.prototype.setCastSession=function(){};
PC.prototype.launchWithParams=function(){_.ZU(this.JSC$20191_deferredLaunchDeadlineTimer_);this.JSC$20191_deferredLaunchDeadlineTimer_=NaN;var G=Y$(this.JSC$20178_screenService_.getScreens(),this.receiver_.label);if(G)tg(this,G);else this.onSessionStopped(Error("ql"))};
PC.prototype.disposeInternal=function(){_.ZU(this.JSC$20191_deferredLaunchDeadlineTimer_);this.JSC$20191_deferredLaunchDeadlineTimer_=NaN;X2.prototype.disposeInternal.call(this)};var I2=function(G,b){_.XC.call(this);this.config_=b;this.JSC$20194_screenService_=G;this.JSC$20194_appId_=b.appId||"233637DE";this.JSC$20194_theme_=b.theme||"cl";this.disableDial_=b.disableCastApi||!1;this.forceMirroring_=b.forceMirroring||!1;this.JSC$20194_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Hr)(this.onReceiverAction_,this)};
_.M(I2,_.XC);
I2.prototype.init=function(G,b){chrome.cast.timeout.requestSession=3E4;var I=new chrome.cast.SessionRequest(this.JSC$20194_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.U("desktop_enable_cast_connect")&&(I.androidReceiverCompatible=!0);this.disableDial_||(I.dialRequest=new chrome.cast.DialRequest("YouTube"));var h=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;G=G||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var q=(0,_.Hr)(this.onReceiverUpdated_,
this);I=new chrome.cast.ApiConfig(I,(0,_.Hr)(this.onSessionEstablished_,this),q,h,G);I.customDialLaunchCallback=(0,_.Hr)(this.onDialLaunchRequested_,this);chrome.cast.initialize(I,(0,_.Hr)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),yxW(),this.JSC$20194_screenService_.subscribe("onlineScreenChange",(0,_.Hr)(this.JSC$20196_onScreenChange_,this)),this.customReceivers_=qxW(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Hr)(function(l){this.warn_("Failed to set initial custom receivers: "+(0,_.yP)(l))},this)),this.publish("yt-remote-cast2-availability-change",j83(this)),b(!0))},this),(0,_.Hr)(function(l){this.warn_("Failed to initialize API: "+(0,_.yP)(l));
b(!1)},this))};
I2.prototype.setConnectedScreenStatus=function(G,b){d_("Setting connected screen ID: "+G+" -> "+b);if(this.JSC$20194_session_){var I=this.JSC$20194_session_.screen_;if(!G||I&&I.id!=G)d_("Unsetting old screen status: "+this.JSC$20194_session_.receiver_.friendlyName),yd(this,null)}if(G&&b){if(!this.JSC$20194_session_){G=Y$(this.JSC$20194_screenService_.getScreens(),G);if(!G){d_("setConnectedScreenStatus: Unknown screen.");return}if(G.idType=="shortLived"){d_("setConnectedScreenStatus: Screen with id type to be short lived.");
return}I=lv1(this,G);I||(d_("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,_.Hr)(function(h){this.warn_("Failed to set initial custom receivers: "+(0,_.yP)(h))},this)));
d_("setConnectedScreenStatus: new active receiver: "+I.friendlyName);yd(this,new PC(this.JSC$20194_screenService_,I),!0)}this.JSC$20194_session_.setDisplayStatus(b)}else d_("setConnectedScreenStatus: no screen.")};
var lv1=function(G,b){return b?_.FO(G.customReceivers_,function(I){return Nu(b,I.label)},G):null};
I2.prototype.setLaunchParams=function(G){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20194_session_?this.JSC$20194_session_.launchWithParams(G):this.warn_("Setting connection data without a session")};
I2.prototype.JSC$20196_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20194_session_?(this.JSC$20194_session_.stop(),yd(this,null)):d_("Stopping non-existing session")};
I2.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Hr)(this.onSessionEstablished_,this),(0,_.Hr)(this.onSessionRequestFailed_,this))};
I2.prototype.disposeInternal=function(){this.JSC$20194_screenService_.unsubscribe("onlineScreenChange",(0,_.Hr)(this.JSC$20196_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.CO(_.Ge("yt.mdx.remote.debug.handlers_")||[],icj);_.VQ(this.JSC$20194_session_);_.XC.prototype.disposeInternal.call(this)};
var d_=function(G){Ry("Controller",G)};
I2.prototype.warn_=function(G){Ry("Controller",G)};
var icj=function(G){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(G)},j83=function(G){return G.hasCastReceiver_||!!G.customReceivers_.length||!!G.JSC$20194_session_},yd=function(G,b,I){b!=G.JSC$20194_session_&&(_.VQ(G.JSC$20194_session_),(G.JSC$20194_session_=b)?(I?G.publish("yt-remote-cast2-receiver-resumed",b.receiver_):G.publish("yt-remote-cast2-receiver-selected",b.receiver_),b.subscribe("sessionScreen",(0,_.Hr)(G.onSessionScreen_,G,b)),b.subscribe("sessionFailed",
function(){return mlf(G,b)}),b.screen_?G.publish("yt-remote-cast2-session-change",b.screen_):I&&G.JSC$20194_session_.launchWithParams(null)):G.publish("yt-remote-cast2-session-change",null))},mlf=function(G,b){G.JSC$20194_session_==b&&G.publish("yt-remote-cast2-session-failed")};
_.m=I2.prototype;_.m.onSessionScreen_=function(G,b){this.JSC$20194_session_==G&&(b||yd(this,null),this.publish("yt-remote-cast2-session-change",b))};
_.m.onReceiverAction_=function(G,b){if(!this.isDisposed())if(G)switch(G.friendlyName=chrome.cast.unescape(G.friendlyName),d_("onReceiverAction_ "+G.label+" / "+G.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20194_session_)if(this.JSC$20194_session_.receiver_.label!=G.label)d_("onReceiverAction_: Stopping active receiver: "+this.JSC$20194_session_.receiver_.friendlyName),this.JSC$20194_session_.stop();else{d_("onReceiverAction_: Casting to active receiver.");this.JSC$20194_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20194_session_.screen_);break}switch(G.receiverType){case chrome.cast.ReceiverType.CUSTOM:yd(this,new PC(this.JSC$20194_screenService_,G));break;case chrome.cast.ReceiverType.DIAL:yd(this,new iT(this.JSC$20194_screenService_,G,this.JSC$20194_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:yd(this,new op(this.JSC$20194_screenService_,G,this.config_));break;default:this.warn_("Unknown receiver type: "+G.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20194_session_&&
this.JSC$20194_session_.receiver_.label==G.label?this.JSC$20194_session_.stop():this.warn_("Stopping receiver w/o session: "+G.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.m.onDialLaunchRequested_=function(G){if(this.isDisposed())return Promise.reject(Error("rl"));var b=G.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var I=this.JSC$20194_session_?this.JSC$20194_session_.receiver_:null;if(!I||I.label!=b.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("sl"));if(I&&I.label==b.label&&I.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20194_session_.screen_)return d_("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20194_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+I.receiverType+'" to "dial" for '+b.friendlyName);yd(this,new iT(this.JSC$20194_screenService_,b,this.JSC$20194_theme_,this.config_))}b=this.JSC$20194_session_;b.launchData_=G;b.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(G=b.launchData_.extraData||{},I=G.screenId||null,E75(b)&&G.loungeToken?G.loungeTokenRefreshIntervalMs?G=bzD(b,{name:b.receiver_.friendlyName,screenId:G.screenId,loungeToken:G.loungeToken,dialId:b.launchData_.receiver.label,screenIdType:"shortLived"},G.loungeTokenRefreshIntervalMs):(_.Xj(Error("ol`"+JSON.stringify(G))),G=IvW(b,I)):G=IvW(b,I)):G=$lK(b);return G};
_.m.onSessionEstablished_=function(G){var b=this;if(!this.isDisposed()&&!this.forceMirroring_){d_("New cast session ID: "+G.sessionId);var I=G.receiver;if(I.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20194_session_)if(I.receiverType==chrome.cast.ReceiverType.CAST)d_("Got resumed cast session before resumed mdx connection."),I.friendlyName=chrome.cast.unescape(I.friendlyName),yd(this,new op(this.JSC$20194_screenService_,I,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var h=this.JSC$20194_session_.receiver_,q=Y$(this.JSC$20194_screenService_.getScreens(),h.label);q&&Nu(q,I.label)&&h.receiverType!=chrome.cast.ReceiverType.CAST&&I.receiverType==chrome.cast.ReceiverType.CAST&&(d_("onSessionEstablished_: manual to cast session change "+I.friendlyName),_.VQ(this.JSC$20194_session_),this.JSC$20194_session_=new op(this.JSC$20194_screenService_,I,this.config_),this.JSC$20194_session_.subscribe("sessionScreen",(0,_.Hr)(this.onSessionScreen_,this,this.JSC$20194_session_)),
this.JSC$20194_session_.subscribe("sessionFailed",function(){return mlf(b,b.JSC$20194_session_)}),this.JSC$20194_session_.launchWithParams(null));
this.JSC$20194_session_.setCastSession(G)}}};
_.m.JSC$20196_getCastSession=function(){return this.JSC$20194_session_?this.JSC$20194_session_.JSC$20180_getCastSession():null};
_.m.onSessionRequestFailed_=function(G){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.yP)(G)),G.code!=chrome.cast.ErrorCode.CANCEL&&yd(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.m.onReceiverUpdated_=function(G){d_("Receiver availability updated: "+G);if(!this.isDisposed()){var b=j83(this);this.hasCastReceiver_=G==chrome.cast.ReceiverAvailability.AVAILABLE;j83(this)!=b&&this.publish("yt-remote-cast2-availability-change",j83(this))}};
var qxW=function(G){var b=G.JSC$20194_screenService_.JSC$20176_getOnlineScreens(),I=G.JSC$20194_session_&&G.JSC$20194_session_.receiver_;G=_.Ky(b,function(h){I&&Nu(h,I.label)&&(I=null);var q=h.uuid?h.uuid:h.id,l=lv1(this,h);l?(l.label=q,l.friendlyName=h.name):(l=new chrome.cast.Receiver(q,h.name),l.receiverType=chrome.cast.ReceiverType.CUSTOM);return l},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};
I2.prototype.JSC$20196_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=qxW(this),d_("Updating custom receivers: "+(0,_.yP)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Hr)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",j83(this)))};
I2.prototype.setLaunchParams=I2.prototype.setLaunchParams;I2.prototype.setConnectedScreenStatus=I2.prototype.setConnectedScreenStatus;I2.prototype.stopSession=I2.prototype.JSC$20196_stopSession;I2.prototype.getCastSession=I2.prototype.JSC$20196_getCastSession;I2.prototype.requestSession=I2.prototype.requestSession;I2.prototype.init=I2.prototype.init;I2.prototype.dispose=I2.prototype.dispose;var eOj=_.WP(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),qEF=[],Oca=_.Ba(eOj);var VU9=function(G){G.audioTrackId=null;G.trackData=null;G.playerState=-1;G.hasPrevious=!1;G.hasNext=!1;G.playerTime_=0;G.playerTimeAt_=_.nW();G.seekableStart_=0;G.seekableEnd_=0;G.duration_=0;G.loadedTime=0;G.liveIngestionTime_=NaN;G.isLive_=!1};
_.m=h0.prototype;
_.m.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_))};
_.m.stopPlayer=function(){this.index=-1;this.videoId="";VU9(this)};
_.m.isPlaying=function(){return this.playerState==1};
_.m.isBuffering=function(){return this.playerState==3};
_.m.isAdPlaying=function(){return this.playerState==1081};
var r_=function(G,b){G.playerTime_=b;G.playerTimeAt_=_.nW()},Dl8=function(G){switch(G.playerState){case 1:case 1081:return(_.nW()-G.playerTimeAt_)/1E3+G.playerTime_;
case -1E3:return 0}return G.playerTime_};
h0.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.nW()-this.playerTimeAt_)/1E3:0):this.duration_};
var cO1=function(G,b,I){var h=G.videoId;G.videoId=b;G.index=I;b!=h&&VU9(G)},kL5=function(G){var b={};
b.index=G.index;b.listId=G.listId;b.videoId=G.videoId;b.playerState=G.playerState;b.volume=G.volume;b.muted=G.muted;b.audioTrackId=G.audioTrackId;b.trackData=_.Cy.unsafeClone(G.trackData);b.hasPrevious=G.hasPrevious;b.hasNext=G.hasNext;b.playerTime=G.playerTime_;b.playerTimeAt=G.playerTimeAt_;b.seekableStart=G.seekableStart_;b.seekableEnd=G.seekableEnd_;b.duration=G.duration_;b.loadedTime=G.loadedTime;b.liveIngestionTime=G.liveIngestionTime_;return b};
h0.prototype.clone=function(){return new h0(kL5(this))};var e5=function(G,b){_.XC.call(this);var I=this;this.state_=0;this.connection_=G;this.contextSubscriptions_=[];this.actionQueue_=new GI5;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Hr)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Hr)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Hr)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Hr)(this.onCloudviewAvailabilityChange_,this);var h=0;G?(h=G.getProxyState(),
h!=3&&(G.subscribe("proxyStateChange",this.setState_,this),vO3(this))):h=3;h!=0&&(b?this.setState_(h):_.AB(function(){I.setState_(h)},0));
(G=ez1())&&Lg1(this,G);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.M(e5,_.XC);e5.prototype.getState=function(){return this.state_};
e5.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
e5.prototype.reconnect=function(){this.connection_.reconnect()};
var Fh=function(G){return new h0(G.connection_.getPlayerContextData())};
_.m=e5.prototype;_.m.play=function(){HC(this)?(this.castMedia_?this.castMedia_.play(null,_.sp,Q8F(this,"play")):WC(this,"play"),xle(this,1,Dl8(Fh(this))),this.publish("remotePlayerChange")):ap(this,this.play)};
_.m.pause=function(){HC(this)?(this.castMedia_?this.castMedia_.pause(null,_.sp,Q8F(this,"pause")):WC(this,"pause"),xle(this,2,Dl8(Fh(this))),this.publish("remotePlayerChange")):ap(this,this.pause)};
_.m.seekTo=function(G){if(HC(this)){if(this.castMedia_){var b=Fh(this),I=new chrome.cast.media.SeekRequest;I.currentTime=G;b.isPlaying()||b.isBuffering()?I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(I,_.sp,Q8F(this,"seekTo",{newTime:G}))}else WC(this,"seekTo",{newTime:G});xle(this,3,G);this.publish("remotePlayerChange")}else ap(this,_.l9(this.seekTo,G))};
_.m.stop=function(){if(HC(this)){this.castMedia_?this.castMedia_.stop(null,_.sp,Q8F(this,"stopVideo")):WC(this,"stopVideo");var G=Fh(this);G.stopPlayer();Nm(this,G);this.publish("remotePlayerChange")}else ap(this,this.stop)};
_.m.setVolume=function(G,b){if(HC(this)){var I=Fh(this);if(this.castSession_){if(I.volume!=G){var h=Math.round(G)/100;this.castSession_.setReceiverVolumeLevel(h,(0,_.Hr)(function(){nt("set receiver volume: "+h)},this),(0,_.Hr)(function(){this.warn_("failed to set receiver volume.")},this))}I.muted!=b&&this.castSession_.setReceiverMuted(b,(0,_.Hr)(function(){nt("set receiver muted: "+b)},this),(0,_.Hr)(function(){this.warn_("failed to set receiver muted.")},this))}else{var q={volume:G,
muted:b};I.volume!=-1&&(q.delta=G-I.volume);WC(this,"setVolume",q)}I.muted=b;I.volume=G;Nm(this,I)}else ap(this,_.l9(this.setVolume,G,b))};
_.m.setAudioTrack=function(G,b){HC(this)?(b=b.getLanguageInfo().getId(),WC(this,"setAudioTrack",{videoId:G,audioTrackId:b}),G=Fh(this),G.audioTrackId=b,Nm(this,G)):ap(this,_.l9(this.setAudioTrack,G,b))};
_.m.addVideo=function(G){HC(this)?WC(this,"addVideo",{videoId:G}):ap(this,_.l9(this.addVideo,G))};
_.m.addPlaylist=function(G){HC(this)?WC(this,"addVideos",{listId:G}):ap(this,_.l9(this.addPlaylist,G))};
_.m.addVideos=function(G){G.length==0?this.warn_("Ignore add videos request due to empty list"):HC(this)?WC(this,"addVideos",{videoIds:G.join(",")}):ap(this,_.l9(this.addVideos,G))};
_.m.JSC$20206_removeVideo=function(G){HC(this)?WC(this,"removeVideo",{videoId:G}):ap(this,_.l9(this.JSC$20206_removeVideo,G))};
_.m.JSC$20206_insertVideo=function(G){HC(this)?WC(this,"insertVideo",{videoId:G}):ap(this,_.l9(this.JSC$20206_insertVideo,G))};
_.m.playVideo=function(G,b,I,h,q,l,V){h=h===void 0?null:h;q=q===void 0?null:q;l=l===void 0?null:l;V=V===void 0?null:V;var D=Fh(this),k={videoId:G};I!==void 0&&(k.currentIndex=I);cO1(D,G,I||0);b!==void 0&&(r_(D,b),k.currentTime=b);h&&(k.listId=h);q&&(k.playerParams=q);l&&(k.clickTrackingParams=l);V&&(k.locationInfo=(0,_.yP)(V));WC(this,"setPlaylist",k);h||Nm(this,D)};
_.m.nextVideo=function(G,b){if(HC(this)){if(G&&b){var I=Fh(this);cO1(I,G,b);Nm(this,I)}WC(this,"next")}else ap(this,_.l9(this.nextVideo,G,b))};
_.m.clearPlaylist=function(){if(HC(this)){WC(this,"clearPlaylist");var G=Fh(this);G.reset();Nm(this,G);this.publish("remotePlayerChange")}else ap(this,this.clearPlaylist)};
_.m.dispose=function(){if(this.state_!=3){var G=this.state_;this.state_=3;this.publish("proxyStateChange",G,this.state_)}_.XC.prototype.dispose.call(this)};
_.m.disposeInternal=function(){fvc(this);this.connection_=null;this.actionQueue_.clear();Lg1(this,null);_.XC.prototype.disposeInternal.call(this)};
var vO3=function(G){_.hB("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(b){this.contextSubscriptions_.push(this.connection_.subscribe(b,_.l9(this.onProxyEvent_,b),this))},G)},fvc=function(G){_.hB(G.contextSubscriptions_,function(b){this.connection_.unsubscribeByKey(b)},G);
G.contextSubscriptions_.length=0},HC=function(G){return G.getState()==1},ap=function(G,b){G.actionQueue_.getCount()<50&&G.actionQueue_.enqueue(b)},xle=function(G,b,I){var h=Fh(G);
r_(h,I);h.playerState!=-1E3&&(h.playerState=b);Nm(G,h)},WC=function(G,b,I){G.connection_.sendMessage(b,I)},Nm=function(G,b){fvc(G);
G.connection_.setPlayerContextData(kL5(b));vO3(G)};
e5.prototype.setState_=function(G){if((G!=this.state_||G==2)&&this.state_!=3&&G!=0){var b=this.state_;this.state_=G;this.publish("proxyStateChange",b,G);if(G==1)for(;!this.actionQueue_.isEmpty();)G=this.actionQueue_,ChY(G),G.front_.pop().apply(this);else G==3&&this.dispose()}};
e5.prototype.onProxyEvent_=function(G,b){this.publish(G,b)};
var Lg1=function(G,b){G.castSession_&&(G.castSession_.removeUpdateListener(G.boundCastStatusListener_),G.castSession_.removeMediaListener(G.boundCastMediaListener_),G.onCastMediaChange_(null));G.castSession_=b;if(G.castSession_&&(nt("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])};
e5.prototype.onCastStatusUpdate_=function(G){if(!G)this.onCastMediaChange_(null),Lg1(this,null);else if(this.castSession_.receiver.volume){G=this.castSession_.receiver.volume;var b=Fh(this),I=Math.round(100*G.level||0);if(b.volume!=I||b.muted!=G.muted)nt("Cast volume update: "+G.level+(G.muted?" muted":"")),b.volume=I,b.muted=!!G.muted,Nm(this,b)}};
e5.prototype.onCastMediaChange_=function(G){nt("Cast media: "+!!G);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=G)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Tea(this),this.publish("remotePlayerChange")};
var Tea=function(G){var b=G.castMedia_.media,I=G.castMedia_.customData;if(b&&I){var h=Fh(G);b.contentId!=h.videoId&&nt("Cast changing video to: "+b.contentId);h.videoId=b.contentId;h.playerState=I.playerState;r_(h,G.castMedia_.getEstimatedTime());Nm(G,h)}else nt("No cast media video. Ignoring state update.")};
e5.prototype.onCastMediaUpdate_=function(G){if(G)Tea(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
e5.prototype.onCloudviewAvailabilityChange_=function(){var G=ez1();G&&Lg1(this,G)};
e5.prototype.warn_=function(G){Ry("CP",G)};
var Q8F=function(G,b,I){return(0,_.Hr)(function(h){this.warn_("Failed to "+b+" with cast v2 channel. Error code: "+h.code);h.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+b+" using MDx browser channel."),WC(this,b,I))},G)};var V5=function(G,b,I,h){h=h===void 0?!1:h;_.XC.call(this);var q=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$20211_http_=G;this.enableConnectWithInitialState_=h;this.listeners_.push(_.D5(window,"beforeunload",function(){q.JSC$20214_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new h0;this.currentScreenId_=b.id;this.currentScreenIdType_=b.idType;this.channelService=og3(this.JSC$20211_http_,I,this.JSC$20214_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){Be9(q)});
this.channelService.listen("channelClosed",function(){YD("Channel closed");isNaN(q.connectTimerId_)?Ct(!0):Ct();q.dispose()});
this.channelService.listen("channelError",function(l){Ct();isNaN(q.getReconnectTimeout_())?(l==1&&q.currentScreenIdType_=="shortLived"&&q.publish("browserChannelAuthError",l),YD("Channel error: "+l+" without reconnection"),q.dispose()):(q.reconnecting_=!0,YD("Channel error: "+l+" with reconnection in "+q.getReconnectTimeout_()+" ms"),Ul5(q,2))});
this.channelService.listen("channelMessage",function(l){s8j(q,l)});
this.channelService.setLoungeToken(b.token);this.subscribe("remoteQueueChange",function(){var l=q.playerContext_.videoId;LaF()&&_.LX("yt-remote-session-video-id",l)})};
_.M(V5,_.XC);
V5.prototype.connect=function(G,b){if(b){var I=b.listId,h=b.videoId,q=b.videoIds,l=b.playerParams,V=b.clickTrackingParams,D=b.index,k={videoId:h},L=b.currentTime,x=b.locationInfo;b=b.loopMode;L!==void 0&&(k.currentTime=L<=5?0:L);l&&(k.playerParams=l);x&&(k.locationInfo=x);V&&(k.clickTrackingParams=V);I&&(k.listId=I);q&&q.length>0&&(k.videoIds=q.join(","));D!==void 0&&(k.currentIndex=D);this.enableConnectWithInitialState_&&(k.loopMode=b||"LOOP_MODE_OFF");I&&(this.playerContext_.listId=I);this.playerContext_.videoId=
h;this.playerContext_.index=D||0;this.playerContext_.state=3;r_(this.playerContext_,L);this.autoplayMode_="UNSUPPORTED";I=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";YD("Connecting with "+I+" and params: "+(0,_.yP)(k));this.channelService.connect({method:I,params:(0,_.yP)(k)},G,BcY())}else YD("Connecting without params"),this.channelService.connect({},G,BcY());gO5(this)};
V5.prototype.setLoungeToken=function(G){this.channelService.setLoungeToken(G)};
V5.prototype.dispose=function(){this.isDisposed()||(_.cz("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),Ul5(this,3));_.XC.prototype.dispose.call(this)};
V5.prototype.disposeInternal=function(){AOe(this);MUf(this);Zzf(this);_.ZU(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.ZU(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.k3X(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.XC.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var tUW=function(G){return _.FO(G.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"})},YD=function(G){Ry("conn",G)},Ul5=function(G,b){G.publish("proxyStateChange",b)},gO5=function(G){G.connectTimerId_=_.AB(function(){YD("Connecting timeout");
G.JSC$20214_disconnect_(1)},2E4)},AOe=function(G){_.ZU(G.connectTimerId_);
G.connectTimerId_=NaN},Zzf=function(G){_.ZU(G.reconnectedCheckScreenTimeout_);
G.reconnectedCheckScreenTimeout_=NaN},oOF=function(G){MUf(G);
G.playingSyncTimerId_=_.AB(function(){zO1(G,"getNowPlaying")},2E4)},MUf=function(G){_.ZU(G.playingSyncTimerId_);
G.playingSyncTimerId_=NaN},Be9=function(G){YD("Channel opened");
G.reconnecting_&&(G.reconnecting_=!1,Zzf(G),G.reconnectedCheckScreenTimeout_=_.AB(function(){YD("Timing out waiting for a screen.");G.JSC$20214_disconnect_(1)},15E3))},PRa=function(G,b){var I=null;
if(b){var h=tUW(G);h&&(I={clientName:h.clientName,deviceMake:h.brand,deviceModel:h.model,osVersion:h.osVersion})}_.cz("yt.mdx.remote.remoteClient_",I);b&&(AOe(G),Zzf(G));I=G.channelService.isChannelOpened()&&isNaN(G.connectTimerId_);b==I?b&&(Ul5(G,1),zO1(G,"getSubtitlesTrack")):b?(G.getOtherConnectedRemoteId_()&&G.playerContext_.reset(),Ul5(G,1),zO1(G,"getNowPlaying"),iz9(G)):G.JSC$20214_disconnect_(1)},dlL=function(G,b){var I=b.params.videoId;
delete b.params.videoId;I==G.playerContext_.videoId&&(_.Cy.isEmpty(b.params)?G.playerContext_.trackData=null:G.playerContext_.trackData=b.params,G.publish("remotePlayerChange"))},yOL=function(G,b,I){var h=b.params.videoId||b.params.video_id,q=parseInt(b.params.currentIndex,10);
G.playerContext_.listId=b.params.listId||G.playerContext_.listId;cO1(G.playerContext_,h,q);G.publish("remoteQueueChange",I)},rOW=function(G,b){b.params=b.params||{};
yOL(G,b,"NOW_PLAYING_MAY_CHANGE");G.onStateChange_(b);G.publish("autoplayDismissed")};
V5.prototype.onStateChange_=function(G){var b=parseInt(G.params.currentTime||G.params.current_time,10);r_(this.playerContext_,isNaN(b)?0:b);b=parseInt(G.params.state,10);b=isNaN(b)?-1:b;b==-1&&this.playerContext_.playerState==-1E3&&(b=-1E3);this.playerContext_.playerState=b;b=Number(G.params.loadedTime);this.playerContext_.loadedTime=isNaN(b)?0:b;b=Number(G.params.duration);this.playerContext_.duration_=isNaN(b)?0:b;b=this.playerContext_;var I=Number(G.params.liveIngestionTime);b.liveIngestionTime_=
I;b.isLive_=isNaN(I)?!1:!0;b=this.playerContext_;I=Number(G.params.seekableStartTime);G=Number(G.params.seekableEndTime);b.seekableStart_=isNaN(I)?0:I;b.seekableEnd_=isNaN(G)?0:G;this.playerContext_.playerState==1?oOF(this):MUf(this);this.publish("remotePlayerChange")};
V5.prototype.onAdStateChange_=function(G){if(this.playerContext_.playerState!=-1E3){var b=1085;switch(parseInt(G.params.adState,10)){case 1:b=1081;break;case 2:b=1084;break;case 0:b=1083}this.playerContext_.playerState=b;G=parseInt(G.params.currentTime,10);r_(this.playerContext_,isNaN(G)?0:G);this.publish("remotePlayerChange")}};
var Fga=function(G,b){var I=b.params.muted=="true";G.playerContext_.volume=parseInt(b.params.volume,10);G.playerContext_.muted=I;G.publish("remotePlayerChange")},Hzc=function(G,b){G.autoplayVideoId_=b.params.videoId;
G.publish("nowAutoplaying",parseInt(b.params.timeout,10))},Wg3=function(G,b){G.autoplayVideoId_=b.params.videoId||null;
G.publish("autoplayUpNext",G.autoplayVideoId_)},avL=function(G,b){G.autoplayMode_=b.params.autoplayMode;
G.publish("autoplayModeChange",G.autoplayMode_);G.autoplayMode_=="DISABLED"&&G.publish("autoplayDismissed")},Ne3=function(G,b){var I=b.params.hasNext=="true";
G.playerContext_.hasPrevious=b.params.hasPrevious=="true";G.playerContext_.hasNext=I;G.publish("previousNextChange")};
V5.prototype.isCapabilitySupportedOnConnectedDevices_=function(G){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var b=_.e(this.connectedDevices_),I=b.next();!I.done;I=b.next())if(!I.value.capabilities.has(G))return!1;return!0};
var s8j=function(G,b){b=b.message;b.params?YD("Received: action="+b.action+", params="+(0,_.yP)(b.params)):YD("Received: action="+b.action+" {}");switch(b.action){case "loungeStatus":b=(0,_.xc)(b.params.devices);G.connectedDevices_=_.Ky(b,function(h){return new Ag(h)});
b=!!_.FO(G.connectedDevices_,function(h){return h.type=="LOUNGE_SCREEN"});
PRa(G,b);b=G.isCapabilitySupportedOnConnectedDevices_("mlm");G.publish("multiStateLoopEnabled",b);break;case "loungeScreenDisconnected":uve(G.connectedDevices_,function(h){return h.type=="LOUNGE_SCREEN"});
PRa(G,!1);break;case "remoteConnected":var I=new Ag((0,_.xc)(b.params.device));_.FO(G.connectedDevices_,function(h){return h.equals(I)})||_.iOr(G.connectedDevices_,I);
break;case "remoteDisconnected":I=new Ag((0,_.xc)(b.params.device));uve(G.connectedDevices_,function(h){return h.equals(I)});
break;case "gracefulDisconnect":break;case "playlistModified":yOL(G,b,"QUEUE_MODIFIED");break;case "nowPlaying":rOW(G,b);break;case "onStateChange":G.onStateChange_(b);break;case "onAdStateChange":G.onAdStateChange_(b);break;case "onVolumeChanged":Fga(G,b);break;case "onSubtitlesTrackChanged":dlL(G,b);break;case "nowAutoplaying":Hzc(G,b);break;case "autoplayDismissed":G.publish("autoplayDismissed");break;case "autoplayUpNext":Wg3(G,b);break;case "onAutoplayModeChanged":avL(G,b);break;case "onHasPreviousNextChanged":Ne3(G,
b);break;case "requestAssistedSignIn":G.publish("assistedSignInRequested",b.params.authCode);break;case "onLoopModeChanged":G.publish("loopModeChange",b.params.loopMode);break;default:YD("Unrecognized action: "+b.action)}};
_.m=V5.prototype;_.m.getProxyState_=function(){var G=3;this.isDisposed()||(G=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(G=1):G=2);return G};
_.m.JSC$20214_disconnect_=function(G){YD("Disconnecting with "+G);_.cz("yt.mdx.remote.remoteClient_",null);AOe(this);this.publish("beforeDisconnect",G);G==1&&Ct();this.channelService.disconnect(G);this.dispose()};
_.m.getPlayerContextData_=function(){var G=this.playerContext_;this.clientVideoId_&&(G=this.playerContext_.clone(),cO1(G,this.clientVideoId_,G.index));return kL5(G)};
_.m.setPlayerContextData_=function(G){var b=this,I=new h0(G);I.videoId&&I.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=I.videoId,_.ZU(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.AB(function(){if(b.clientVideoId_){var q=b.clientVideoId_;b.clientVideoId_=null;b.playerContext_.videoId!=q&&zO1(b,"getNowPlaying")}},5E3));
var h=[];this.playerContext_.listId==I.listId&&this.playerContext_.videoId==I.videoId&&this.playerContext_.index==I.index||h.push("remoteQueueChange");this.playerContext_.playerState==I.playerState&&this.playerContext_.volume==I.volume&&this.playerContext_.muted==I.muted&&Dl8(this.playerContext_)==Dl8(I)&&(0,_.yP)(this.playerContext_.trackData)==(0,_.yP)(I.trackData)||h.push("remotePlayerChange");this.playerContext_.reset(G);_.hB(h,function(q){this.publish(q)},this)};
_.m.getOtherConnectedRemoteId_=function(){var G=this.channelService.getDeviceId(),b=_.FO(this.connectedDevices_,function(I){return I.type=="REMOTE_CONTROL"&&I.id!=G});
return b?b.id:""};
_.m.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.m.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.m.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.m.JSC$20214_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var iz9=function(G){_.ZU(G.idleDisconnectTimerId_);G.idleDisconnectTimerId_=_.AB(function(){G.JSC$20214_disconnect_(1)},864E5)},zO1=function(G,b,I){I?YD("Sending: action="+b+", params="+(0,_.yP)(I)):YD("Sending: action="+b);
G.channelService.sendMessage(b,I)};
V5.prototype.sendMessageWithUserAction_=function(G,b){zO1(this,G,b);iz9(this)};
V5.prototype.JSC$20214_getXsrfToken_=function(){var G=_.di.get("SAPISID","")||_.di.get("__Secure-1PAPISID",void 0)||"",b=_.di.get("__Secure-3PAPISID","")||"";if(!G&&!b)return"";G=_.WL(_.rk(G),2);b=_.WL(_.rk(b),2);return _.WL(_.rk(","+G+","+b),2)};
V5.prototype.subscribe=V5.prototype.subscribe;V5.prototype.unsubscribeByKey=V5.prototype.unsubscribeByKey;V5.prototype.getProxyState=V5.prototype.getProxyState_;V5.prototype.disconnect=V5.prototype.JSC$20214_disconnect_;V5.prototype.getPlayerContextData=V5.prototype.getPlayerContextData_;V5.prototype.setPlayerContextData=V5.prototype.setPlayerContextData_;V5.prototype.getOtherConnectedRemoteId=V5.prototype.getOtherConnectedRemoteId_;V5.prototype.getReconnectTimeout=V5.prototype.getReconnectTimeout_;
V5.prototype.getAutoplayMode=V5.prototype.getAutoplayMode_;V5.prototype.getAutoplayVideoId=V5.prototype.getAutoplayVideoId_;V5.prototype.reconnect=V5.prototype.JSC$20214_reconnect_;V5.prototype.sendMessage=V5.prototype.sendMessageWithUserAction_;V5.prototype.getXsrfToken=V5.prototype.JSC$20214_getXsrfToken_;V5.prototype.isCapabilitySupportedOnConnectedDevices=V5.prototype.isCapabilitySupportedOnConnectedDevices_;var d_e=function(G){w6.call(this,"ScreenServiceProxy");this.instance_=G;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Hr)(this.JSC$20217_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Hr)(this.onOnlineScreenChange_,this)))};
_.M(d_e,w6);_.m=d_e.prototype;_.m.getScreens=function(G){return this.instance_.$_gs(G)};
_.m.contains=function(G){return!!this.instance_.$_c(G)};
_.m.get=function(G){return this.instance_.$_g(G)};
_.m.start=function(){this.instance_.$_st()};
_.m.add=function(G,b,I){this.instance_.$_a(G,b,I)};
_.m.remove=function(G,b,I){this.instance_.$_r(G,b,I)};
_.m.updateName=function(G,b,I,h){this.instance_.$_un(G,b,I,h)};
_.m.disposeInternal=function(){for(var G=this.subscriptionKeys_.length,b=0;b<G;++b)this.instance_.$_ubk(this.subscriptionKeys_[b]);this.subscriptionKeys_.length=0;this.instance_=null;w6.prototype.disposeInternal.call(this)};
_.m.JSC$20217_onScreenChange_=function(){this.publish("screenChange")};
_.m.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
S4.prototype.$_st=S4.prototype.start;S4.prototype.$_gspc=S4.prototype.JSC$20176_getScreenByPairingCode;S4.prototype.$_gsppc=S4.prototype.JSC$20176_getScreenByPollingPairingCode;S4.prototype.$_c=S4.prototype.contains;S4.prototype.$_g=S4.prototype.get;S4.prototype.$_a=S4.prototype.add;S4.prototype.$_un=S4.prototype.updateName;S4.prototype.$_r=S4.prototype.remove;S4.prototype.$_gs=S4.prototype.getScreens;S4.prototype.$_gos=S4.prototype.JSC$20176_getOnlineScreens;S4.prototype.$_s=S4.prototype.subscribe;
S4.prototype.$_ubk=S4.prototype.unsubscribeByKey;var ZW9=null,rkK=!1,qx=null,j5=null,PX1=null,lf=[];var Yxj=new _.EA("yt-menu"),CRc=function(){},KgF=function(G,b,I){G=b=="right-click"?I.rightClickMenuPopupHint:I.menuPopupHint;
if(!(JO1(b)>10))return b=b||"default",Yxj.set(b+"-impression",JO1(b)+1),G},JO1=function(G){return parseInt(Yxj.get((G||"default")+"-impression")||0,10)};
_.RA(CRc);var u$j=function(){this.contexts_=new WeakMap;this.JSC$20223_networkService_=this.activeContext_=null},ROY=function(G,b,I){var h=G.contexts_.get(b);
h||(h=new O6F(G.JSC$20223_networkService_),G.contexts_.set(b,h));G.activeContext_=h;I&&G.activeContext_.reset();G.activeContext_.start();return G.activeContext_};var Cg=function(){};
Cg.prototype.enqueue=function(){var G=this,b;return _.c(function(I){if(G.isCounterfactual())return(b=G.getCounterfactualData())&&G.shouldLogCounterfactualImpression()&&G.sendImpressionEndpoints(b),I.return();G.doEnqueue();_.ip(I)})};
Cg.prototype.sendImpressionEndpoints=function(G){_.I1.getInstance().triggerOptionalAction("yt-service-request",{},G[0])};var Jg=function(G,b){this.renderer=G;this.page=b};
_.M(Jg,Cg);Jg.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Jg.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Jg.prototype.shouldLogCounterfactualImpression=function(){return!0};
Jg.prototype.doEnqueue=function(){var G=_.Ja(this.page);G&&G.pause();this.renderer.impressionCommand&&_.I1.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Yl(_.I1.getInstance(),[this.renderer.promoCommand],this.page)};var nOe=function(G,b){this.renderer=G;this.resolver=_.yO();this.JSC$20235_enforcementCounter=new _.kvW;b?this.JSC$20235_playerManager=_.Ja(b):this.JSC$20235_playerManager=null;_.hL(1,!0)};
_.M(nOe,Cg);_.m=nOe.prototype;_.m.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var G=[];this.renderer.impressionEndpoints.forEach(function(b){(b=_.s0(b))&&G.push(b)});
return G}};
_.m.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.m.shouldLogCounterfactualImpression=function(){var G=_.WvX();G?(this.JSC$20235_enforcementCounter.increment("POPUP"),_.hL(3)):_.hL(2);return G};
_.m.cancel=function(){this.resolver.promise.cancel()};
_.m.doEnqueue=function(){var G=this;_.WvX()?(this.JSC$20235_enforcementCounter.increment("POPUP"),_.hL(3),Ozc(this)):this.JSC$20235_playerManager?(this.resolver.promise.then(function(){Ozc(G)}),wIY(this.resolver,this.JSC$20235_playerManager)):_.hL(2)};
var wIY=function(G,b){var I=_.yO();b.getPlayerPromise().then(function(h){I.resolve(h)});
I.promise.then(function(h){h.addEventListener("onAbnormalityDetected",G.resolve);_.i1(G.promise,function(){h.removeEventListener("onAbnormalityDetected",G.resolve)})});
G.promise.thenCatch(function(){I.promise.cancel()})},Ozc=function(G){_.hL(3);
var b={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:G.renderer}};b=_.I1.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{});Promise.all(b).then(function(){EOW();G.JSC$20235_playerManager&&G.JSC$20235_playerManager.pause()})},EOW=function(){MAe(function(G,b){_.MHL(G,b);
G===0?_.hL(7):_.hL(4)})};var pI3=function(G,b){this.renderer=G;this.page=b;this.resolver=_.yO()};
_.M(pI3,Cg);_.m=pI3.prototype;_.m.cancel=function(){this.resolver.promise.cancel()};
_.m.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.m.isCounterfactual=function(){return!this.renderer.isVisible};
_.m.shouldLogCounterfactualImpression=function(){return!0};
_.m.doEnqueue=function(){var G=this;this.resolver.promise.then(function(){var I={popup:{mealbarPromoRenderer:G.renderer},popupType:"MEALBAR"};_.I1.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:I},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var b=_.Ja(this.page);b&&Sxf(this.resolver,b)}break;default:this.resolver.resolve()}};
var Sxf=function(G,b){var I=_.yO();b.getPlayerPromise().then(function(h){I.resolve(h)});
I.promise.then(function(h){h.addEventListener("onAdEnd",G.resolve);_.i1(G.promise,function(){h.removeEventListener("onAdEnd",G.resolve)})});
G.promise.thenCatch(function(){I.promise.cancel()})};var XIL=function(G,b){this.renderer=G;this.page=b};
_.M(XIL,Cg);_.m=XIL.prototype;_.m.cancel=function(){this.JSC$20243_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20243_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20243_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.m.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.m.isCounterfactual=function(){return!this.renderer.isVisible};
_.m.shouldLogCounterfactualImpression=function(){return!0};
_.m.doEnqueue=function(){var G=this,b,I;((b=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(I=b.playbackUpsellDialogTriggerConditionData)==null?void 0:I.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20243_downloadedVideosCountSelectorUnsubscriber=_.Nj(_.Cw(),gQ1,function(h,q){h>q&&($d3(G),G.cancel())}):$d3(this)};
var $d3=function(G){var b={popup:{upsellDialogRenderer:G.renderer},popupType:"MODAL"};_.I1.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{});(G=_.Ja(G.page))&&G.pause()};var Kg={},Gpa=(Kg.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Kg.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Kg.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Kg.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Kg.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Kg.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Kg.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Kg),bS9=function(G,b){this.renderer=G;this.targetManager=
b};
_.M(bS9,Cg);_.m=bS9.prototype;_.m.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20250_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20250_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20250_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.m.getCounterfactualData=function(){if(this.isCounterfactual()){var G;return(G=this.renderer.promoConfig)==null?void 0:G.impressionEndpoints}};
_.m.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.m.shouldLogCounterfactualImpression=function(){return!0};
_.m.doEnqueue=function(){var G=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20250_downloadedVideosCountSelectorUnsubscriber=_.Nj(_.Cw(),gQ1,function(b,I){G.renderer.targetId&&b>I&&(xR9(G.targetManager,G.renderer.targetId,IM3(G)),G.cancel())});
break;default:xR9(this.targetManager,this.renderer.targetId,IM3(this))}};
var IM3=function(G){var b;if((b=G.renderer.suggestedPosition)==null?0:b.type)var I=Gpa[G.renderer.suggestedPosition.type];I||(I="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:G.renderer},popupType:"HINT",position:I}}};var hND=function(){this.previousPage=null},qyK;
hND.prototype.registerPromoCommand=function(G,b){jX5(this,void 0,void 0,_.g(G.roadblock,H$W),void 0,void 0,b)};
var jX5=function(G,b,I,h,q,l,V){G.previousPage!==V&&G.pendingTooltipPromo&&G.pendingTooltipPromo.cancel();G.previousPage=V;q?(G.pendingEnforcementPromo&&G.pendingEnforcementPromo.cancel(),G.pendingEnforcementPromo=new nOe(q,V),G.pendingEnforcementPromo.enqueue()):l?(G.pendingCommandWrapperPromo=new Jg(l,V),G.pendingCommandWrapperPromo.enqueue()):h?(G.pendingRoadblockPromo&&G.pendingRoadblockPromo.cancel(),G.pendingRoadblockPromo=new XIL(h,V),G.pendingRoadblockPromo.enqueue()):b?(G.pendingMealbarPromo&&
G.pendingMealbarPromo.cancel(),G.pendingMealbarPromo=new pI3(b,V),G.pendingMealbarPromo.enqueue()):I&&(G.pendingTooltipPromo&&G.pendingTooltipPromo.cancel(),G.pendingTooltipPromo=new bS9(I,_.PQ()),G.pendingTooltipPromo.enqueue())},lM8=function(){qyK||(qyK=new hND);
return qyK};var a_K=!1;var f$j=function(G,b){var I=_.wy("SESSION_INDEX");this.actionToken_=G;this.commonToken_=b;this.sessionIndex_=I},xLD=function(G){var b=_.yO(),I=_.Ge("payments.business.integration.bootstrap"),h=_.Ge("payments.business.integration"),q=h.Style.create().withMaterialDesignStyle(),l=h.mashupMode.popup("instrument-manager");
I.asMashupMode(l).usingUserIndex(G.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(q).inStandaloneContext(h.standaloneContextAuthId.forUserId()).instrumentManager(G.actionToken_,G.commonToken_.length>0?G.commonToken_:void 0,function(V){var D=V.instrumentId;D?b.resolve(D):(D=_.Ge("payments.business.integration.scenario.InstrumentManager"),b.reject(V.errorCode&&V.errorCode===D.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(V){_.Xj(V);
b.reject("instrumentManagerLoadError")});
return b.promise};var ct=function(G,b,I){this.payloadName="transactionFlowFailed";this.payload={errorType:G,serializedTransactionFlowLoggingParams:b,isUserDismiss:I===void 0?!1:I}};
_.cz("yt.ypc.shared.YpcTransactionFlowError",ct);var uT=function(){return _.eH.apply(this,arguments)||this};
_.M(uT,_.eH);uT.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
uT.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
uT.prototype.onErrorMessageDismiss=uT.prototype.onErrorMessageDismiss;_.R([_.H({readOnly:!0,observer:"errorRendererChanged"}),_.n("design:type",Object)],uT.prototype,"errorRenderer",void 0);_.R([_.hI("yt-live-chat-error-message-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uT.prototype,"onErrorMessageDismiss",null);_.R([_.Vx()],uT);var md1=[uT.prototype];var eND;var VjD;var Dd9=new _.EA("yt-live-chat"),c15=new Map;c15.set("timestamp_toggle","show-timestamps");c15.set("reactions_toggle","allow-reactions");var Rp=function(){return _.a.apply(this,arguments)||this};
_.M(Rp,_.a);_.m=Rp.prototype;_.m.menuItemIdentifierChanged=function(){var G;(G=this.data)!=null&&G.menuItemIdentifier&&(G=c15.get(this.data.menuItemIdentifier))&&(_.U("enable_lwe_web_mute")?(G=Dd9.get(G),this.isToggled=!(G===void 0?!this.data.isToggled:!G)):this.isToggled=Dd9.get(G))};
_.m.onFocus=function(){this.toggleButton.focus()};
_.m.onTap=function(){var G=this.data.command;G&&this.componentBehavior.resolveCommand(G)};
_.m.computeText=function(G,b,I){return this.componentBehavior.getSimpleString(G?I:b)};
_.m.computeIcon=function(G,b,I){return(G=G?I:b)&&G.iconType?_.pn(G.iconType):""};
Rp.prototype.onTap=Rp.prototype.onTap;Rp.prototype.onFocus=Rp.prototype.onFocus;Rp.prototype.menuItemIdentifierChanged=Rp.prototype.menuItemIdentifierChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Rp.prototype,"componentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Rp.prototype,"data",void 0);
_.R([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.n("design:type",String)],Rp.prototype,"icon",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Rp.prototype,"isToggled",void 0);_.R([_.lH("tp-yt-paper-toggle-button"),_.n("design:type",Object)],Rp.prototype,"toggleButton",void 0);_.R([_.q5("data.menuItemIdentifier"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rp.prototype,"menuItemIdentifierChanged",null);
_.R([_.hI("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rp.prototype,"onFocus",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Rp.prototype,"onTap",null);_.R([_.g8({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Rp);
_.J(Rp,"yt-live-chat-toggle-renderer",function(){if(VjD===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;eND===void 0&&(eND=document.createElement("template"));var h=eND;I.call(b,h.content.cloneNode(!0),G.content.firstChild);VjD=G}G=VjD;return G},{mode:0});var kpf=new _.q3("NAVIGATION_PROGRESS_TOKEN");var vM9={},LB8={},QX9=(LB8[AA9.name]=!0,LB8),ng=function(){var G=_.eH.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=_.X8();G.hasPendingNavigation=!1;G.pendingPlayerOnResponseReceivedActions=[];return G};
_.M(ng,_.eH);ng.prototype.attached=function(){xdW(this);document.addEventListener("yt-navigate-cache",_.I9(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var G=Ow();G.init();G.dispatchElement=this.hostElement};
var xdW=function(G,b){b=b===void 0?0:b;var I=_.LL().resolve(_.vf(_.id));if(I)fMY(G,I);else{if(b>=5)throw Error("tl");setTimeout(function(){xdW(G,b+1)},0)}},fMY=function(G,b){b.addEventListener("yt-navigate-start",_.I9(G,G.onYtNavigateStart));
b.addEventListener("yt-navigate-finish",_.I9(G,G.onYtNavigateFinish));b.addEventListener("yt-navigate-error",_.I9(G,G.onYtNavigateError));b.addEventListener("yt-page-data-fetched",_.I9(G,G.onYtPageDataFetched))};
_.m=ng.prototype;_.m.detached=function(){var G=_.LL().resolve(_.id);G.removeEventListener("yt-navigate-start",_.I9(this,this.onYtNavigateStart));G.removeEventListener("yt-navigate-finish",_.I9(this,this.onYtNavigateFinish));G.removeEventListener("yt-navigate-error",_.I9(this,this.onYtNavigateError));G.removeEventListener("yt-page-data-fetched",_.I9(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.I9(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.m.setPageOffset=function(G,b){G?_.wL(this.hostElement,"yt-set-page-offset",[G,b]):_.K1(Error("ul"))};
_.m.setPageOffsetForNavigation=function(G,b){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(G,b))};
_.m.onYtNavigateSetPageOffset=function(G,b){this.setPageOffsetForNavigation(b.page,b.offset)};
_.m.getPageOffset=function(){var G=_.Eo(this.hostElement).querySelector("#page-manager").getCurrentPage(),b=0;G&&(b=_.wL(this.hostElement,"yt-get-page-offset",[G])[0]);return b};
_.m.onYtHistoryPop=function(G,b){if(_.Sk("DISABLE_WARM_LOADS"))G.preventDefault(),window.location.reload();else{var I=_.LL().resolve(_.id);I.hasPendingNavigation()&&G.preventDefault();I.cancelPendingNavigation();_.E3(this.hostElement,"yt-pending-navigation-cancelled");b.errorMsg&&(G=b.errorMsg.split(" - "),b=Error(G[0]),G.length==2&&G[1]&&(_.n1(b,G[1]),_.RB(b)),window.location.reload())}};
_.m.onYtHistoryLoad=function(G,b){var I=this;if(_.Sk("DISABLE_WARM_LOADS"))window.location.reload();else{(G=b.endpoint)&&Object.keys(G).length||(G=null);var h=b.historyEntry,q=_.LL().resolve(_.id),l=_.LL().resolve(_.Ck),V=null;h&&h.rootData&&(V=h.rootData);var D=V&&Tnf(V);!V||D||V.filler?G?(q.navigate(G,!0),Bn3(this,G)):(b.legacyBorder||D||(b.JSC$30601_savedComponentState==null&&V==null?_.RB(new _.Wf("Incomplete history entry",b.forward)):_.u6(new _.Wf("Malformed history entry",b.JSC$30601_savedComponentState,
b.forward,V))),window.location.reload()):(_.RGv({isHot:!0}),_.Tm({webInfo:{navigationReason:"h"}}),_.sh2(),_.sS("srt"),_.sS("pdc"),this.cancelPendingTasks(),Ud5(this,b.forward,V),V.player&&(V.player.loaded=!1),Bn3(this,G),_.FJu(q,G||{},V,2,{},!1,b).then(function(){I.setPageOffset(l.getCurrentPage(),h.scrollTop||0)}))}};
_.m.initHistoryManager=function(G){if(!this.hasNavigated){this.hasNavigated=!0;var b=_.Eo(this.hostElement).querySelector("#page-manager").getCurrentData();G=isNaN(G)?this.getPageOffset():G;var I=_.LL().resolve(_.id).currentEndpoint;this.replaceState(I,b,G)}};
_.m.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.m.onYtNavigateStart=function(G,b){this.cancelPendingTasks();b.noProgressBar||(G=_.LL().resolve(_.vf(kpf)))&&G.start();G=this.hasPendingNavigation?null:this.data;var I=_.LL().resolve(_.Ck),h,q,l;_.U("kevlar_use_vimio_behavior")&&!((h=b.endpoint)==null?0:(q=h.commandMetadata)==null?0:(l=q.webCommandMetadata)==null?0:l.ignoreNavigation)&&(h=I.getCurrentPage())&&h.disconnectVisibilityRoot();I.prepareForNavigation(b.pageType,b.endpoint);_.U("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.DN(1,
"pcl"),_.c6(this.pagePreparer,I.preparePage.bind(I,b.pageType,b.endpoint)));h=this.getPageOffset();this.initHistoryManager(h);b.reload||this.hasPendingNavigation?(b.pageType==="shorts"&&b.reload&&_.O3(this.hostElement,"yt-shorts-reset"),this.replaceState(b.endpoint,G,h)):(G==null?void 0:G.page)==="watch"&&b.pageType==="watch"&&_.U("kevlar_replace_watch_to_watch_history_state")?this.replaceState(b.endpoint,G,h):(G==null?void 0:G.page)!=="shorts"||b.pageType!=="shorts"||b.endpoint.reelWatchEndpoint.sequenceParams||
_.U("short_to_short_back_nav_killswitch")?b.type!="navigate-back"&&b.type!="navigate-forward"&&(b.pageType==="shorts"&&_.O3(this.hostElement,"yt-shorts-reset"),this.saveAndPush(b.url,b.endpoint,G,h)):this.replaceState(b.endpoint,G,0);this.hasPendingNavigation=!0};
var sX1=function(G){G.hasPendingNavigation=!1;(G=_.LL().resolve(_.vf(kpf)))&&G.finish()};
ng.prototype.onYtNavigateError=function(G,b){sX1(this);G=this.get("endpoint.commandMetadata.webCommandMetadata.url",b);var I=_.jO(window.location.href);G&&!I.pbjreload&&(b=b.navigationErrorReason||"10",_.U("kevlar_parent_on_pbjreload")&&(I={csn:_.gL()},this.get("data.endpoint.clickTrackingParams")&&(I.itct=this.data.endpoint.clickTrackingParams),_.Cv(G,I)),_.tL(_.lB(G,{pbjreload:b})))};
ng.prototype.onYtNavigateCache=function(G,b){var I=this,h=b.url,q=b.endpoint,l=b.data;G=!!b.miniplayer;b=!!b.skipHistory;if(h&&q&&l){var V=this.getPageOffset(),D=this.data||null;b||this.saveAndPush(h,q,D,V);h=_.FJu(_.LL().resolve(_.id),q,l,G?4:3,{},G);G&&h.then(function(){I.dataUpdatePromise&&I.dataUpdatePromise.then(function(){var k=_.LL().resolve(_.Ck);I.setPageOffset(k.getCurrentPage(),0)})})}};
ng.prototype.onYtNavigateFinish=function(G,b){var I=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){gMF(I,b.fromHistory)})};
var gMF=function(G,b){sX1(G);if(G.pendingPlayerOnResponseReceivedActions){for(var I=_.e(G.pendingPlayerOnResponseReceivedActions),h=I.next();!h.done;h=I.next())_.$Q(h.value,G.hostElement);G.pendingPlayerOnResponseReceivedActions=[]}I=_.LL().resolve(_.Ck);b||!G.hasNavigated||_.U("web_disable_scroll_on_navigate_finish")||((b=I.getCurrentPage())?b.is==="ytd-shorts"||G.tabGesturesIsActive||G.setPageOffsetForNavigation(b,0):_.RB(Error("vl")));_.iH(function(){_.iH(function(){_.sS("pda")})})};
ng.prototype.onYtNavigate=function(G){if(!G.detail.endpoint){var b=new _.Wf("Error: Missing yt-navigate endpoint from target:",G.target,G.target.nodeName);_.K1(b)}if(b=_.U("cold_missing_history"))b=Ow(),b.init(!1),b=!(b.browserHistory.boundHistoryReplaceState&&b.browserHistory.boundHistoryPushState);if(b){_.OB("DISABLE_WARM_LOADS",!0);b=new _.Wf("Failed to initialize history manager",this.getDebugString());var I=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
I?_.RB(b):_.K1(b)}b=G.detail.endpoint;var h,q;_.U("debug_forward_web_query_parameters")&&((h=b.commandMetadata)==null?0:(q=h.webCommandMetadata)==null?0:q.url)&&(b=JSON.parse(JSON.stringify(b)),b.commandMetadata.webCommandMetadata.url=_.kmu(b.commandMetadata.webCommandMetadata.url,window.location.search));G={type:0,command:b,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}};_.U("kevlar_yt_navigate_command_handler")?(h=_.LL().resolve(_.xW),G.form.skipDefaultElement=!0,h.resolveCommand(b,{form:G.form})):this.handleNavigate(G)};
ng.prototype.handleNavigate=function(G){this.hasSetScrollTopForNavigation=!1;var b=_.LL().resolve(_.id),I=G.form||{};b.navigate(G.command,I.reload,I.params,I.tempData,I.requestType,I.createScreenConfig,I.ignoreConfirmation,I.requestForm)&&Bn3(this,G.command,I.tempData)};
ng.prototype.onYtPageDataFetched=function(G,b){try{_.AtW().reset();this.data=b.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.LL().resolve(_.Ck).updatePageData(this.data);var I=this.get("playerResponse.onResponseReceivedActions",this.data);I&&(I=A1Y(this,I));I&&_.Su(this.hostElement,I,this.hostElement);var h=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),q=this.get("response.responseContext.consistencyTokenJar",this.data);if(h||q){var l=_.QEj(),V=(0,_.Cy.getValues)(l.tokenJars);h&&l.replace(V,h);q&&l.replace(V,q)}}catch(D){_.K1(D)}};
var Bn3=function(G,b,I){try{G.onYtEndpointChangeHandler(b,I)}catch(h){_.K1(h)}};
_.m=ng.prototype;_.m.onYtEndpointChangeHandler=function(){};
_.m.setPageTitle=function(G){G=(this.pageTitle=G)?G+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+G};
_.m.onYtUpdateTitle=function(G,b){this.setPageTitle(b)};
_.m.setUnseenNotificationCount=function(G){this.unseenNotificationCount=G;this.setPageTitle(this.pageTitle)};
_.m.handleUpdateNotificationsUnseenCountAction=function(G){_.g(G,jED)&&((G=_.g(G,jED).unseenCount)?this.setUnseenNotificationCount(G):this.setUnseenNotificationCount(0))};
_.m.handleClearCookieAction=function(G){var b;(G=(b=_.g(G,b$5))==null?void 0:b.cookieName)&&_.dPs(G)};
_.m.onYtUpdateUnseenNotificationCount=function(G,b){this.setUnseenNotificationCount(b)};
_.m.loadData=function(G){var b=this;this.loadDepsPromise.then(function(){var I=_.LL().resolve(_.vf(_.id));I||_.K1(Error("wl"));if(G&&G.response){if(!G.endpoint){var h=_.dL(window.document.location.href)||"/",q="";if(h==="/"||h.startsWith("/?"))q="WEB_PAGE_TYPE_BROWSE";G.endpoint={commandMetadata:{webCommandMetadata:{url:h,webPageType:q,rootVe:3854}}}}_.FJu(I,G.endpoint,G,5,{})}else G.endpoint?I.navigate(G.endpoint):I.navigate(_.aa);_.uu.cancelJob(b.zwiebackInitJobId);b.zwiebackInitJobId=_.uu.addLowPriorityJob(NP3)})};
var Ow=function(){return _.LL().resolve(_.i7)};
ng.prototype.getDebugString=function(){return Ow().getDebugString()};
ng.prototype.getThirdPartyManipulationSuspected=function(){return Ow().getThirdPartyManipulationSuspected()};
ng.prototype.replaceState=function(G,b,I){Ow().saveAndReplace(G,b,I)};
ng.prototype.saveAndPush=function(G,b,I,h){Ow().saveAndPush(G,b,I,h)};
var Tnf=function(G){return _.g(G.endpoint,_.Wq)||_.g(G.endpoint,_.V4)?!0:!G||isNaN(G.expirationTime)?!1:(0,_.Li)()>G.expirationTime},Ud5=function(G,b,I){var h=G.get("response.trackingParams",I),q=_.s3(),l=_.gL();
if(h&&q&&l&&(h=G.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",I),!h&&I.rootVe&&(h=I.rootVe),q=b?"forwardButton":"backButton",b=G.get("playerResponse.topbar.desktopTopbarRenderer."+q+".buttonRenderer.command.clickTrackingParams",G.data),G=G.get("response.topbar.desktopTopbarRenderer."+q+".buttonRenderer.command.clickTrackingParams",G.data),b=(G=b||G)?_.VB(G):void 0,G=_.qo(),q=[_.X8(I)],_.oa(G,h,b,{dataPromises:q,csnToClone:I.csn}),I.graftedVes))for(I=
_.e(I.graftedVes),h=I.next();!h.done;h=I.next())_.iz(G,h.value)};
ng.prototype.onStoreGraftedVeAction=function(G){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(G)):_.RB(Error("xl"))};
var A1Y=function(G,b){return b.filter(function(I){for(var h in I)if(QX9[h])return G.pendingPlayerOnResponseReceivedActions.push(I),!0;return!1})};
_.kV.Object.defineProperties(ng.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
ng.prototype.onStoreGraftedVeAction=ng.prototype.onStoreGraftedVeAction;ng.prototype.loadData=ng.prototype.loadData;ng.prototype.onYtUpdateUnseenNotificationCount=ng.prototype.onYtUpdateUnseenNotificationCount;ng.prototype.handleClearCookieAction=ng.prototype.handleClearCookieAction;ng.prototype.handleUpdateNotificationsUnseenCountAction=ng.prototype.handleUpdateNotificationsUnseenCountAction;ng.prototype.setUnseenNotificationCount=ng.prototype.setUnseenNotificationCount;
ng.prototype.onYtUpdateTitle=ng.prototype.onYtUpdateTitle;ng.prototype.setPageTitle=ng.prototype.setPageTitle;ng.prototype.onYtEndpointChangeHandler=ng.prototype.onYtEndpointChangeHandler;ng.prototype.onYtPageDataFetched=ng.prototype.onYtPageDataFetched;ng.prototype.handleNavigate=ng.prototype.handleNavigate;ng.prototype.onYtNavigate=ng.prototype.onYtNavigate;ng.prototype.onYtNavigateFinish=ng.prototype.onYtNavigateFinish;ng.prototype.onYtNavigateCache=ng.prototype.onYtNavigateCache;
ng.prototype.onYtNavigateError=ng.prototype.onYtNavigateError;ng.prototype.onYtNavigateStart=ng.prototype.onYtNavigateStart;ng.prototype.cancelPendingTasks=ng.prototype.cancelPendingTasks;ng.prototype.initHistoryManager=ng.prototype.initHistoryManager;ng.prototype.onYtHistoryLoad=ng.prototype.onYtHistoryLoad;ng.prototype.onYtHistoryPop=ng.prototype.onYtHistoryPop;ng.prototype.onYtNavigateSetPageOffset=ng.prototype.onYtNavigateSetPageOffset;ng.prototype.setPageOffset=ng.prototype.setPageOffset;
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],ng.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ng.prototype,"data",void 0);_.R([_.hI("yt-navigate-set-page-offset"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],ng.prototype,"onYtNavigateSetPageOffset",null);
_.R([_.hI("yt-history-pop"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],ng.prototype,"onYtHistoryPop",null);_.R([_.hI("yt-history-load"),_.n("design:type",Function),_.n("design:paramtypes",[Event,_.SVe]),_.n("design:returntype")],ng.prototype,"onYtHistoryLoad",null);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ng.prototype,"onYtNavigate",null);
_.R([_.hI("yt-update-title"),_.n("design:type",Function),_.n("design:paramtypes",[Event,String]),_.n("design:returntype")],ng.prototype,"onYtUpdateTitle",null);_.R([_.hI("yt-update-unseen-notification-count"),_.n("design:type",Function),_.n("design:paramtypes",[Event,Number]),_.n("design:returntype")],ng.prototype,"onYtUpdateUnseenNotificationCount",null);_.R([_.Vx()],ng);vM9.YtdAppBehavior=[_.tV.YtActionHandlerBehavior,ng.prototype];var w_=function(){var G=_.eH.apply(this,arguments)||this;G._noAccessors=!0;return G};
_.M(w_,_.eH);w_.prototype.ready=function(){var G=this;_.Eo(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){G.onChange_()})};
w_.prototype.dataChanged_=function(){_.Eo(this.hostElement).querySelector("#checkbox").checked=!1};
w_.prototype.onChange_=function(){var G=_.Eo(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.O3(this.hostElement,"yt-dismissal-reason-"+G,this.data.feedbackToken)};
w_.prototype.dataChanged_=w_.prototype.dataChanged_;_.R([_.H(),_.n("design:type",Object)],w_.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],w_.prototype,"dataChanged_",null);_.R([_.Vx()],w_);var MjL=[w_.prototype];var Ew=function(){var G=_.eH.apply(this,arguments)||this;G.timeoutJobId=0;G.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return G};
_.M(Ew,_.eH);Ew.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Ew.prototype.startTimeout=function(){var G=this,b=this.data&&this.data.displayDurationSeconds;b&&!this.timeoutJobId&&(this.timeoutJobId=_.FQ(_.uu,function(){_.wL(G.hostElement,"yt-close-popup-action",[G.is]);G.timeoutJobId=0},b*1E3))};
Ew.prototype.cancelTimeout=function(){_.uu.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Ew.prototype.ytdHatsSurveyBehaviorDataChanged=Ew.prototype.ytdHatsSurveyBehaviorDataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Ew.prototype,"ytActionHandlerBehavior",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ew.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.R([_.Vx()],Ew);var ZSa=[_.tV.YtActionHandlerBehavior,Ew.prototype];var tj8=function(G,b){var I;return((I=G.prefixMapping)==null?0:I[b])?G.prefixMapping[b]:G.SHARED_RENDERERS_.hasOwnProperty(b)?"yt":G.prefix},pg={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}};pg.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.U("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"}};
pg.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};pg.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};pg.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
pg.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)"}};
pg.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};
pg.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};
pg.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};
pg.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
pg.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"}};pg.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};pg.TOAST={component:null,properties:{}};var zNa=new function(G,b,I){this.supportedPopups=G;this.navigationEndpointPopupMap=b;this.popupTypeMap=I;this.supportedPopups=G;this.navigationEndpointPopupMap=b;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:_.U("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"}),oMW=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,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$20301_popupConfig=pg;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 iSc=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Oq.getInstance()},S_=function(G,b){var I=G.pageNameToElement.get(b);
if(!I){switch(b){case "watch":var h=_.U("web_watch_force_learning_journey_for_testing")?_.Vy("ytd-watch-learning-journey"):_.U("kevlar_watch_fixie")?_.Vy("ytd-watch-fixie"):_.U("kevlar_watch_grid")?_.Vy("ytd-watch-grid"):_.Vy("ytd-watch-flexy");break;case "learning_journey_watch":h=_.Vy("ytd-watch-learning-journey");break;case "shorts":h=_.Vy("ytd-shorts");break;case "search":h=_.Vy("ytd-search");break;case "channel":h=_.Vy("ytd-browse");h.pageSubtype="channels";break;case "trending":h=_.Vy("ytd-browse");
h.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":h=
_.Vy("ytd-browse");h.pageSubtype=b;break;case "browse":h=_.Vy("ytd-browse");break;default:_.RB(new _.Wf("Error getting page element for type",b))}I=h;G.pageNameToElement.set(b,I)}return I};
iSc.prototype.preparePage=function(G,b,I){I&&(G=_.qe(I)||G);if(G!=="watch"&&G!=="learning_journey_watch"){var h=this.elementPoolPopulator,q=G;q!=h.targetPage_&&h.pendingPages_.indexOf(q)>-1&&(h.targetPage_&&(h.pendingPages_.unshift(h.targetPage_),h.abort()),BuK(h,q),_.Xlu(h,q))}if((h=S_(this,G))||!_.g(I,_.bx)){h.isAttached||h===b||(h.hidden=!0);if(!h.data&&(G!=="watch"&&G!=="learning_journey_watch"||!_.U("swatcheroo_page_pool_dont_provide_filler_data"))){var l;if(G=(l=_.wy("FILLER_DATA",{})[G])==
null?void 0:l.response)h.data=G}return h}};var PN8=function(G){this.JSC$32576_clientRoot=G;this.playlistHandlerActionMap={"yt-add-to-playlist-command":wPY,"yt-end-playlist-command":Exc,"yt-recover-playlist-command":SE1,"yt-refresh-playlist-command":GdL,"yt-playlist-remove-videos-action":XPc};_.je(_.I1.getInstance(),this.playlistHandlerActionMap,this.JSC$32576_clientRoot);PWY()},dd9;var Xh=function(G,b,I){this.apiKey=G;this.endpoint=b;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=b==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||b==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
b==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||b==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new OP3};
_.m=Xh.prototype;
_.m.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&&_.US("voice_assistant");_.gK("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 b;this.prefetchResponseTimeoutMs=(b=G.prefetchResponseTimeoutMs)!=null?b:this.prefetchResponseTimeoutMs;y1W(this);this.startAudio();r1j(this)}else this.errorHandler("OFFLINE")};
_.m.stop=function(G){var b=G===void 0?{}:G;G=b.logCancel===void 0?!0:b.logCancel;var I=b.logMicClosed===void 0?!0:b.logMicClosed;var h=b.handleError===void 0?!0:b.handleError;b=b.handleStop===void 0?!0:b.handleStop;this.state!==0&&(G&&$R("voz_cx"),G0(this,{logMicClosed:I,handleStop:b}),h&&this.errorHandler("ABORTED"))};
_.m.getState=function(){return this.state};
_.m.isSupported=function(){return!0};
_.m.stopAudio=function(G){(G===void 0||G)&&$R("voz_mf")};
_.m.startAudio=function(){$R("voz_vp");return _.X8(null)};
var FB8=function(G,b){G.channelOpen&&(G.state!==2&&(G.state=2,$R("voz_ss"),G.listeningHandler()),b=new Uint8Array(b),b='{ "audioIn": "'+_.WL(b)+'" }',G.channel.send(b))},G0=function(G,b){var I=b===void 0?{}:b;
b=I.logMicClosed===void 0?!0:I.logMicClosed;I=I.handleStop===void 0?!0:I.handleStop;G.vozEndOfDataTimeout>-1&&(clearTimeout(G.vozEndOfDataTimeout),G.vozEndOfDataTimeout=-1);HS5(G);G.stopAudio(b);G.channel&&(G.channelOpen=!1,G.manuallyClosedChannel=!0,G.channel.close(),G.channel=void 0);G.transcribedSpeechResults=[];G.state=0;I&&G.stopHandler()},y1W=function(G){var b={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 xD(G.endpoint,b);G.channel.open();_.cv(G.channel,"w",function(){var I=G.channel,h=I.send,q=G.isUsingVoz?"PLACEHOLDER":"example";q={config:{dialogStateIn:{languageCode:G.languageCode},deviceConfig:{deviceId:q,deviceModelId:q},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!G.isUsingVoz)q.config.requestType=4;else if(G.isUsingVoz&&G.youtubeAssistantRequest){var l=JSON.stringify(G.youtubeAssistantRequest);q.config.internalIn={youtubeAssistantS3InputJson:l}}h.call(I,q);G.channelOpen=!0;G.manuallyClosedChannel=!1});
_.cv(G.channel,"x",function(){G.manuallyClosedChannel||(G.channelOpen=!1,G.channel=void 0,G0(G))});
_.cv(G.channel,"z",function(I){if(I.data){HS5(G);for(var h=0;h<I.data.length;h++){var q=G,l=I.data[h],V=l.speechResults;if(V)a:{var D=[];l=[];var k=!1;V=_.e(V);for(var L=V.next();!L.done;L=V.next()){L=L.value;if(L.noSpeech){G0(q);q.errorHandler("NO_SPEECH");break a}L.transcript!==void 0&&L.stability!==void 0&&(L.stability<q.confidenceThreshold&&(k=!0),k?l.push(L.transcript):D.push(L.transcript))}if(D.length!==0||l.length!==0)D=D.join(" "),l=l.join(" "),q.receivedEndOfUtterance&&!q.isUsingVoz?q.isUsingVoz||
q.completeHandler([D,l]):(k=q,V=D,L=l,$R("voz_sf"),k.transcriptionUpdateHandler(V,L),k.transcribedSpeechResults=[V,L]),q.receivedEndOfUtterance&&($R("voz_eou"),q.transcriptionCompleteHandler([D,l]),q.isUsingVoz&&(q.prefetchResponseTimeoutMs===0?G0(q,{logMicClosed:!1,handleStop:!0}):q.prefetchResponseTimeoutMs>0&&WBK(q)))}else q.isUsingVoz&&(l==null?0:l.internalOut)?(l=JSON.parse(l.internalOut.youtubeAssistantS3OutputJson),l.userHasOptedInToVaa||l.vaaConsent?q.vaaConsentUpdateHandler(!!l.userHasOptedInToVaa,
!!l.vaaConsent):(aM8(q),l&&(D=q.transcribedSpeechResults,$R("voz_rqf"),q.completeHandler(D,l)))):l.eventType==="END_OF_UTTERANCE"?q.receivedEndOfUtterance=!0:($R("voz_err"),q.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.RB(Error("yl")))}}});
_.cv(G.channel,"y",function(I){G0(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))})};
Xh.prototype.logError=function(G){_.K1(G)};
Xh.prototype.isOnline=function(){return!0};
var WBK=function(G){aM8(G);G.prefetchResponseSetTimeoutId=setTimeout(function(){G0(G,{logMicClosed:!1,handleStop:!0})},G.prefetchResponseTimeoutMs)},aM8=function(G){G.prefetchResponseSetTimeoutId>-1&&(clearTimeout(G.prefetchResponseSetTimeoutId),G.prefetchResponseSetTimeoutId=-1)},r1j=function(G){HS5(G);
G.noResponseReceivedTimeout=window.setTimeout(function(){G0(G);G.errorHandler("NO_SPEECH")},11E3)},HS5=function(G){G.noResponseReceivedTimeout>-1&&(window.clearTimeout(G.noResponseReceivedTimeout),G.noResponseReceivedTimeout=-1)},$R=function(G){_.sS(G,void 0,"voice_assistant")};var bV=function(){Xh.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.M(bV,Xh);bV.prototype.isSupported=function(){return bpe()};
bV.prototype.startAudio=function(){var G=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.vv(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(h){Nnc(G,h)};
this.processor.connect(this.audioContext.destination);var b=function(h){G.stream=h;if(!G.audioContext)return _.X8(null);h=G.audioContext.createMediaStreamSource(h);G.processor&&h.connect(G.processor);return _.X8(null)},I={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?b(this.stream):(I=navigator.mediaDevices.getUserMedia(I))?I.then(b).catch(function(h){G0(G);h.name&&h.name==="NotAllowedError"?G.errorHandler("NO_MICROPHONE_PERMISSION"):(G.errorHandler("AUDIO_ERROR"),G.logError(h));return _.vv(null)}):(G0(this),this.errorHandler("AUDIO_ERROR"),_.RB(Error("zl")));
return Xh.prototype.startAudio.call(this)};
bV.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(b){b.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Xh.prototype.stopAudio.call(this,G)};
bV.prototype.isOnline=function(){return navigator.onLine};
var Nnc=function(G,b){if(G.audioContext)if(window.OfflineAudioContext){var I=G.audioContext.sampleRate,h=b.inputBuffer.getChannelData(0);b=new window.OfflineAudioContext(1,h.length,16E3);for(var q=b.createBuffer(1,h.length,I),l=q.getChannelData(0),V=0,D=0;D<h.length;D++)l[D]=h[D],V+=l[D]*l[D];!G.audioDetected&&Math.sqrt(V/h.length)>.01&&(G.audioDetected=!0,G.audioDetectedHandler());h=b.createBufferSource();h.buffer=q;h.connect(b.destination);h.start(0);b.oncomplete=function(k){k=k.renderedBuffer.getChannelData(0);
for(var L=Math.floor(16384E3/I),x=new Int16Array(L),f=0;f<L;++f)x[f]=Math.max(-1,Math.min(1,k[f]))*32767;FB8(G,x.buffer)};
b.startRendering()}else Yyf(G,b)},Yyf=function(G,b){var I=G.audioContext.sampleRate,h=b.inputBuffer.getChannelData(0),q=Math.floor((I+8E3)/16E3);
I=h.length/q;b=new Float32Array(I);for(var l=0;l<I;++l)b[l]=h[l*q];h=new Int16Array(I);for(q=0;q<I;++q)h[q]=Math.max(-1,Math.min(1,b[q]))*32767;FB8(G,h.buffer)};var CNF={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var J1L=function(){this.JSC$20366_audioEnabled=!0;this.audioFeedbackHolder={}};
J1L.prototype.isPlaying=function(G){return G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>2};
var KBe=function(G){for(var b=_.e(Object.values(CNF)),I=b.next();!I.done;I=b.next())I=I.value,G.audioFeedbackHolder[I]=new Audio,G.audioFeedbackHolder[I].src="/s/search/audio/"+I+".mp3",G.audioFeedbackHolder[I].load()},I6=function(G,b){if(G.JSC$20366_audioEnabled!==!1&&b in G.audioFeedbackHolder){for(var I=_.e(Object.values(G.audioFeedbackHolder)),h=I.next();!h.done;h=I.next())h=h.value,G.isPlaying(h)&&h.pause();
G.audioFeedbackHolder[b].currentTime=0;G.audioFeedbackHolder[b].play().catch(function(){})}};var urK=function(G,b){var I=this;this.store=G;this.service=b;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 J1L;var h;(h=this.audioPlayer)==null||KBe(h)};
_.m=urK.prototype;_.m.getService=function(){return this.service};
_.m.isEnabled=function(){return!!this.service};
_.m.isSupported=function(){var G;return(G=this.service)==null?void 0:G.isSupported()};
_.m.start=function(){var G=this,b,I,h,q,l,V,D,k,L,x,f,T,B;return _.c(function(A){switch(A.nextAddress){case 1:G.store.dispatch(aD8("",""));if(!navigator.onLine)return G.setState("offline"),A.return();window.addEventListener("offline",G.handleOfflineEvent);G.stream=null;if(!G.permissionsSupported){A.jumpTo(2);break}_.gm(A,3);return A.yield(RNa(G),5);case 5:b=A.yieldResult;if(!b)return(I=G.audioPlayer)==null||I6(I,"failure"),A.return();G.service.stream=G.stream;G.setState("listening");_.hF(A,2);break;
case 3:_.zf(A),G.permissionsSupported=!1;case 2:h={context:_.a0j(_.x_())},h.youtubeAssistantParams={searchParams:{inlineSearchResponse:G.enableInlineSearchResponse}},q=function(t,y){G.store.dispatch(NY3("transcribing"));G.store.dispatch(aD8(t,y))},l=function(){var t;
(t=G.audioPlayer)==null||I6(t,"open");G.setState("listening")},V=function(){G.setState("transcribing")},D=function(t){G.setErrorState(t)},k=function(t,y){var F;
(F=G.audioPlayer)==null||I6(F,"success");y&&(_.U("kevlar_voice_search_inline_search")&&(G.responseProcessor=_.LL().resolve(_.oZO),G.responseProcessor&&(F=y.navigationAction,t=y.prefetchedSearchResponse,F&&t&&(F=(new _.ta5).JSC$14244_getStoreKey(F),_.dP(G.responseProcessor,t,F)))),G.JSC$20384_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",y))},L=function(){window.removeEventListener("offline",G.handleOfflineEvent)},x=_.OwX(!1),f=x.Authorization!=null,T=G.enableFirstPartyAuth||
G.enableFPAForSignedInUsers&&f?x:{"X-Goog-Visitor-Id":x["X-Goog-Visitor-Id"]},B={completeHandler:k,
errorHandler:D,listeningHandler:l,audioDetectedHandler:V,stopHandler:L,transcriptionUpdateHandler:q,youtubeAssistantRequest:h,languageCode:nM1(),additionalHeaders:T,supportsCrossDomainXhr:G.enableFirstPartyAuth||G.enableFPAForSignedInUsers&&f,supportsHttpHeadersOverwriteParam:!G.disableHttpHeadersOverwrite},G.service.start(B),_.ip(A)}})};
_.m.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.m.reset=function(){this.store.dispatch(_.wK({type:"RESET_VOICE_SEARCH_STATE"}))};
_.m.setState=function(G){this.store.dispatch(NY3(G))};
_.m.setErrorState=function(G){switch(G){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var b;(b=this.audioPlayer)==null||I6(b,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)RNa(this);else{var I;(I=this.audioPlayer)==null||I6(I,"failure");this.setState("permission-denied")}break;case "ABORTED":var h;(h=this.audioPlayer)==null||I6(h,"no_input");break;default:var q;(q=this.audioPlayer)==
null||I6(q,"no_input");this.setState("timeout")}};
var RNa=function(G){var b,I;return _.c(function(h){switch(h.nextAddress){case 1:return h.yield(navigator.permissions.query({name:"microphone"}),2);case 2:b=h.yieldResult;if(b.state==="granted")return h.return(!0);if(b.state==="denied")return G.setState("permission-denied"),h.return(!1);G.setState("permission");I={audio:{sampleSize:16,channelCount:1},video:!1};_.gm(h,3);return h.yield(navigator.mediaDevices.getUserMedia(I),5);case 5:return G.stream=h.yieldResult,h.return(!0);case 3:return _.zf(h),
G.setState("permission-denied"),h.return(!1)}})},nM1=function(){var G=_.wy("INNERTUBE_CONTEXT_HL"),b=_.wy("INNERTUBE_CONTEXT_GL");
return G.indexOf("-")>-1?G:G+"-"+b};var OS1=function(G,b,I){urK.call(this,b,I);this.JSC$20384_actionRouter=G;this.enableInlineSearchResponse=_.U("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.U("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.U("kevlar_voice_search_enable_fpa_signedin_users")},we8;
_.M(OS1,urK);
var EMe=function(){if(!we8){var G="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.U("kevlar_voice_search_auth_enabled")||_.U("kevlar_voice_search_use_yt_endpoint")?G="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.U("kevlar_voice_search_use_fp_endpoint")&&(G="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");we8=
new OS1(_.I1.getInstance(),_.Cw(),new bV(_.wy("VOZ_API_KEY"),G,.5))}return we8};var pe8=function(G){this.JSC$20388_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$20388_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=_.e(this.eventListeners);for(var b=G.next();!b.done;b=G.next()){var I=
_.e(b.value);b=I.next().value;I=I.next().value;I=_.e(I);for(var h=I.next();!h.done;h=I.next()){var q=_.e(h.value);h=q.next().value;q=q.next().value;b.addEventListener(h,q)}}_.je(_.I1.getInstance(),this.autonavPauseActionMap,this.JSC$20388_clientRoot)},Syj,XeK=function(G){return _.U("kevlar_autonav_popup_filtering")?(G=_.a_(G))?G.hasAttribute("prevent-autonav"):!0:!0};
_.m=pe8.prototype;_.m.onIronOverlayOpened=function(G){XeK(G)&&(this.autonavPauseReasons.overlayOpen=!0,hS(this))};
_.m.onIronOverlayClosed=function(G){XeK(G)&&(this.autonavPauseReasons.overlayOpen=!1,hS(this))};
_.m.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;hS(this)};
_.m.onYtAutonavPauseBlur=function(){var G=this;_.uu.addJob(function(){$F3()||(G.autonavPauseReasons.inputBoxFocus=!1,hS(G))},8,0)};
_.m.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;hS(this)};
_.m.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;hS(this)};
_.m.onYtAutonavPauseScroll=function(){var G=_.LL().resolve(_.Ck);G.isOnWatch()&&(G=G.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=G.getBoundingClientRect().top<-200,hS(this))};
_.m.onYtAutonavPauseUserEngagement=function(G){var b=this;if(_.U("user_engagement_enable_autoplay_pause_feature")){var I=Number(G.lowEngagementThresholdMs);isNaN(I)||I<=0||G.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.pZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.LL().resolve(_.VO),_.vA()<I?_.FQ(_.uu,function(){_.pZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.tHW()?(this.userEngagementCsn=_.gL(),_.FQ(_.uu,function(){_.pZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
b.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,hS(this)):_.pZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.pNO(Error("Al`"+JSON.stringify(G)))};
_.m.onYtAutonavPausePlayer=function(G){this.autonavPauseReasons.requestedByPlayer=!!G.detail;hS(this)};
_.m.onYtAutonavVisibilityChanged=function(){var G=this,b,I,h;return _.c(function(q){if(q.nextAddress==1)return(b=_.Kk())?q.yield(b.getPlayerPromise(),2):q.return();I=q.yieldResult;h=I.isMuted()||I.getVolume()===0;G.autonavPauseReasons.backgroundAndMute=$F3()&&h;hS(G);_.ip(q)})};
_.m.onYtAutonavPausePlayerEnded=function(){_.LL().resolve(_.VO);var G=144E5;_.U("user_engagement_enable_autoplay_pause_feature")||_.U("is_part_of_any_user_engagement_experiment")||(G=45E5);this.autonavPauseReasons.longIdle=_.vA()>G;G2Y(this);hS(this)};
_.m.onYtUserActivity=function(){var G=this;this.autonavPauseReasons.userEngagement&&(_.FQ(_.uu,function(){_.pZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",G.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,hS(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.FQ(_.uu,function(){_.pZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",G.userEngagementCsn);_.JM()}),this.autonavPauseReasons.youthereLactExperiment=!1,hS(this));
this.autonavPauseReasons.longIdle&&!_.U("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,hS(this))};
var $F3=function(){var G=window.document.visibilityState;return!(!G||G==="visible")},hS=function(G){for(var b=!1,I=_.e(Object.values(G.autonavPauseReasons)),h=I.next();!h.done;h=I.next())h=h.value,b=b||h;
b?_.TW.getInstance().pause(G.autonavPauseReasons):(G=_.TW.getInstance(),G.autonavState_==3?(G.setState(2,!1,!1),G.autonavPauseReason_=void 0):G.autonavState_==1&&(G.disabledAutonavPauseReason_=void 0))},G2Y=function(G){var b=!1;
if(_.U("enable_autoplay_pause_by_lact")){_.LL().resolve(_.VO);b=_.Te("autoplay_pause_by_lact_sec")*1E3;var I=_.Te("autoplay_pause_by_lact_sampling_fraction");(b=_.vA()>=b&&Math.random()<I)&&!_.tHW()&&(_.FQ(_.uu,function(){_.pZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),b=!1)}b!==G.autonavPauseReasons.youthereLactExperiment&&(G.autonavPauseReasons.youthereLactExperiment=b)&&(G.userEngagementCsn=_.gL(),_.FQ(_.uu,function(){_.pZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",G.userEngagementCsn)}));
G.autonavPauseReasons.userEngagement&&_.FQ(_.uu,function(){_.pZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",G.userEngagementCsn)})};
pe8.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.pZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.JM(),this.autonavPauseReasons.youthereLactExperiment=!1,hS(this));this.autonavPauseReasons.userEngagement&&(_.pZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,hS(this))};
pe8.prototype.onYtEngagementPanelVisibleChanged=function(G){G.detail&&G.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=G.detail.visible,hS(this))};
pe8.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var b7f=_.PH.persistentPanelVisibleSelector,q4=function(){var G=_.a.apply(this,arguments)||this;G.miniGuideVisible=!1;G.guideOpened=_.U("disable_initial_guide_state_fix")?!1:G.canFitPersistentGuide(G.initialBodyClientWidth);G.guideUserStateOpened=G.getInitialGuideUserStateOpened();G.isFullscreenShorts=!1;G.miniGuideWidthThreshold=_.Te("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=_.yO();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};
_.M(q4,_.a);_.m=q4.prototype;_.m.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.m.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.m.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.m.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.m.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.m.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.m.ready=function(){_.LL().addProvider({provide:_.$E,useValue:this.hostElement})};
_.m.attached=function(){var G=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.I9(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.I9(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.I9(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.I9(this,this.onYtGuideShow));_.D1(this,function(){G.animationTransitionDuration=200})};
_.m.detached=function(){document.removeEventListener("yt-navigate-finish",_.I9(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.I9(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.I9(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.I9(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.I9(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.I9(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.I9(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.m.getData=function(){return this.data};
_.m.load=function(){var G=this,b,I,h,q;return _.c(function(l){switch(l.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=G.lateDataResolver.resolve.bind(G),l.return(G.lateDataResolver.promise);if(window.ytInitialGuideData)return b=_.yO(),b.resolve(window.ytInitialGuideData),l.return(b.promise);h=!1;_.gm(l,2);return l.yield(G.fetchGuideData(),4);case 4:I=l.yieldResult;_.hF(l,3);break;case 2:q=_.zf(l),q.message==="Returned error"&&(h=
!0);case 3:if(I)return l.return(I);G.onYtGuideClose();h||(G.initialGuideDataFetchFailed=!0);return l.return(G.lateDataResolver.promise)}})};
_.m.fetchGuideData=function(){var G=this,b,I,h,q,l,V,D;return _.c(function(k){if(k.nextAddress==1)return b=_.LL(),G.guidePromise||(I=b.resolve(_.kn),G.guidePromise=_.dR(I,u7D)),k.yield(G.guidePromise,2);if(k.nextAddress!=3)return h=k.yieldResult,q=b.resolve(_.Kx),k.yield(q(),3);(l=k.yieldResult)&&((V=h)==null?void 0:(D=V.responseContext)==null?void 0:D.maxAgeSeconds)!==0&&l.put("service:guide:fallback",new _.ZF({innertubeResponse:h}));return k.return(h)})};
_.m.initializeGuideDataIfEmpty=function(){var G=this,b,I;return _.c(function(h){if(h.nextAddress==1){if(!G.initialGuideDataFetchFailed||G.data)return h.return();_.gm(h,2);return h.yield(G.fetchGuideData(),4)}if(h.nextAddress!=2)return(b=h.yieldResult)&&G.lateDataResolver.resolve(b),_.hF(h,0);I=_.zf(h);_.RB(I);_.ip(h)})};
_.m.initializeGuideData=function(){var G=this,b;return _.c(function(I){switch(I.nextAddress){case 1:return _.bX(Do3(),{mainAppWeb:_.y4()}),_.gm(I,2),I.yield(G.load(),4);case 4:G.data=I.yieldResult;_.hF(I,3);break;case 2:_.zf(I),_.IA(Do3(),"FAILURE");case 3:b=G.data&&G.data.items&&G.data.items.length>0?"SUCCESS":"FAILURE",_.IA(Do3(),b),_.ip(I)}})};
_.m.setGuideData=function(G){var b=this,I,h;return _.c(function(q){if(q.nextAddress==1)return b.disabled?q.return():b.data?(G.data=b.data,b.guideRenderers.add(G),q.return()):q.yield(b.initializeGuideData(),2);b.graftGuideToPage();I=_.Sk("IS_HOMEPAGE_COLD")?"eop":void 0;_.U("disable_element_pool_populator")?b.setGuideDataAfterInit(G):(h=new _.DN(1,I),_.c6(h,b.setGuideDataAfterInit.bind(b,G)));_.ip(q)})};
_.m.setGuideDataAfterInit=function(G){G.data=this.data;G.markDirty();this.guideRenderers.add(G);_.iH(function(){_.sS("gle")});
_.D1(this,function(){_.sS("gpe")})};
_.m.graftGuideToPage=function(){if(this.data){var G=this.data&&this.data.trackingParams;G&&(G=_.VB(G),_.Ps(_.qo(),G))}};
_.m.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.I9(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.m.onDrawerOpenedChanged=function(G,b){!b.value&&this.guideOpened&&(this.guideOpened=!1)};
_.m.onYtGuideToggle=function(G){var b=this.guideOpened;this.guideOpened=!b;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var I=_.m$();_.eX(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;I.save()}this.updateGuideDrawerElementState();if(this.guideElement){var h;this.guideOpened&&((h=G.detail)==null?0:h.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.I9(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.I9(this,this.onAppDrawerTransitioned))}b||this.initializeGuideDataIfEmpty()};
_.m.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.I9(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.l6(this.guideElement)};
_.m.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.I9(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(H6D(this.guideOpened))};
_.m.guidePersistentAndVisibleChanged=function(){_.E3(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.m.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.wK({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.m.miniGuideVisibleChanged=function(){_.E3(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.m.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(H6D(this.guideOpened)),this.initialLoad=!1);_.E3(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.m.activeEndpointChanged=function(){_.E3(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.m.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.m.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()};
_.m.cachedClientWidthChanged=function(){this.updateGuideState()};
_.m.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.m.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()};
_.m.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.m.getGuideOpened=function(){return this.guideOpened};
_.m.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.m.getActiveEndpoint=function(){return this.activeEndpoint};
_.m.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.m.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&&_.O3(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.m.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.U("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.m.handleGuideMouseLeave=function(){var G=this;!this.sessionUserManuallyExpandedGuideState&&_.U("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.P5(this,"handleGuideMouseLeave",function(){G.isMouseOverGuide||!G.guideOpened||G.miniGuideVisible||(G.guideOpened=!1,G.updateGuideDrawerElementState())},100))};
_.m.computeGuidePersistentAndVisible=function(){var G=this;_.P5(this,"computeGuidePersistentAndVisible",function(){G.guidePersistentAndVisible=G.guideOpened&&G.guidePersistent;G.guideIsVisibleButNotPersistent=!(!G.guideOpened||G.guidePersistent)})};
_.m.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.m.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.m.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.m.startLoadingWatch=function(){this.closeGuide()};
_.m.startLoadingShorts=function(){_.U("web_hide_guide_on_shorts")&&this.closeGuide()};
_.m.onYtNavigateFinish=function(G,b){if(!_.Sf||b){this.activeEndpoint=b.endpoint;this.pageType=b.pageType;this.pageUrl=b.response.url;var I,h;G=(h=_.g((I=b.endpoint)==null?void 0:I.commandMetadata,_.IW))==null?void 0:h.url;!this.pageUrl&&G&&(this.pageUrl=G);_.U("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.m.getVisibleGuideRenderer=function(){for(var G=_.e(this.guideRenderers),b=G.next();!b.done;b=G.next())if(b=b.value,this.miniGuideVisible&&b.is==="ytd-mini-guide-renderer"||this.guideOpened&&b.is==="ytd-guide-renderer")return b;return null};
_.m.markGuideRendererDirty=function(G){if(G){typeof G.markDirty==="function"&&G.markDirty();G=_.e([].concat(_.Nz(_.Eo(G).children)));for(var b=G.next();!b.done;b=G.next())this.markGuideRendererDirty(b.value)}};
_.m.persistentGuideEnabled=function(G,b){if(!b||G==="watch"||G==="settings"||G==="shorts"&&this.isFullscreenShorts||_.U("reels_web_disable_persistent_guide_shorts")&&G==="shorts")return!1;var I=_.tB(b)||"";return _.U("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(h){return I===h}):!this.persistentGuideBlockedPagePathRegex.test(I)};
_.m.canFitPersistentGuide=function(G){var b=_.Te("kevlar_persistent_guide_width_threshold",1312);return b===-1||_.U("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:G>this.calculateGuideThreshold(b)};
_.m.calculateGuideThreshold=function(G){return _.U("enable_ai_companion")?G+(this.persistentPanelVisible?400:0):G};
_.m.canFitMiniGuide=function(G){return this.miniGuideWidthThreshold===-1?!1:G>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.m.onResize=function(){var G=this;_.P5(this,"calculateGuideState",function(){G.onResizeDebounced()})};
_.m.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.m.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.m.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.m.getInitialGuideUserStateOpened=function(){return _.U("web_force_mini_guide_default")?!1:!_.m$().getFlag(109)};
_.kV.Object.defineProperties(q4.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.wy("initialBodyClientWidth")||window.innerWidth}}});
q4.prototype.onResize=q4.prototype.onResize;q4.prototype.observeForMiniGuideVisible=q4.prototype.observeForMiniGuideVisible;q4.prototype.computeGuidePersistentAndVisible=q4.prototype.computeGuidePersistentAndVisible;q4.prototype.persistentPanelVisibleChanged=q4.prototype.persistentPanelVisibleChanged;q4.prototype.cachedClientWidthChanged=q4.prototype.cachedClientWidthChanged;q4.prototype.resetGuide=q4.prototype.resetGuide;q4.prototype.activeEndpointChanged=q4.prototype.activeEndpointChanged;
q4.prototype.guideOpenedChanged=q4.prototype.guideOpenedChanged;q4.prototype.miniGuideVisibleChanged=q4.prototype.miniGuideVisibleChanged;q4.prototype.guideIsVisibleButNotPersistentChanged=q4.prototype.guideIsVisibleButNotPersistentChanged;q4.prototype.guidePersistentAndVisibleChanged=q4.prototype.guidePersistentAndVisibleChanged;q4.prototype.onGuideElementChanged=q4.prototype.onGuideElementChanged;q4.prototype.onGuidePersistentChanged=q4.prototype.onGuidePersistentChanged;
q4.prototype.onRenderGuideChanged=q4.prototype.onRenderGuideChanged;q4.prototype.onActiveEndpointChanged=q4.prototype.onActiveEndpointChanged;q4.prototype.onMiniGuideVisibleChanged=q4.prototype.onMiniGuideVisibleChanged;q4.prototype.onGuideIsVisibleButNotPersistentChanged=q4.prototype.onGuideIsVisibleButNotPersistentChanged;q4.prototype.onGuidePersistendAndVisibleChanged=q4.prototype.onGuidePersistendAndVisibleChanged;
_.R([_.z(_.Y6),_.n("design:type",Object)],q4.prototype,"ironResizableBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],q4.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],q4.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],q4.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],q4.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Boolean)],q4.prototype,"disabled",void 0);_.R([_.H(),_.n("design:type",Boolean)],q4.prototype,"guidePersistentAndVisible",void 0);_.R([_.q5("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"onGuidePersistendAndVisibleChanged",null);_.R([_.H(),_.n("design:type",Boolean)],q4.prototype,"guideIsVisibleButNotPersistent",void 0);
_.R([_.q5("guideIsVisibleButNotPersistent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.R([_.H(),_.n("design:type",Object)],q4.prototype,"miniGuideVisible",void 0);_.R([_.q5("miniGuideVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"onMiniGuideVisibleChanged",null);_.R([_.H(),_.n("design:type",Boolean)],q4.prototype,"forceMiniGuideClose",void 0);
_.R([_.H(),_.n("design:type",Object)],q4.prototype,"activeEndpoint",void 0);_.R([_.q5("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"onActiveEndpointChanged",null);_.R([_.H(),_.n("design:type",Boolean)],q4.prototype,"renderGuide",void 0);_.R([_.q5("renderGuide"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"onRenderGuideChanged",null);
_.R([_.H({selector:b7f}),_.n("design:type",Boolean)],q4.prototype,"persistentPanelVisible",void 0);_.R([_.H(),_.n("design:type",Object)],q4.prototype,"guideOpened",void 0);_.R([_.H(),_.n("design:type",Boolean)],q4.prototype,"guidePersistent",void 0);_.R([_.q5("guidePersistent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"onGuidePersistentChanged",null);_.R([_.H(),_.n("design:type",Object)],q4.prototype,"guideUserStateOpened",void 0);
_.R([_.H(),_.n("design:type",String)],q4.prototype,"pageUrl",void 0);_.R([_.H(),_.n("design:type",String)],q4.prototype,"pageType",void 0);_.R([_.H(),_.n("design:type",Number)],q4.prototype,"cachedClientWidth",void 0);_.R([_.H(),_.n("design:type",Object)],q4.prototype,"guideElement",void 0);_.R([_.H({selector:_.nM}),_.n("design:type",Object)],q4.prototype,"isFullscreenShorts",void 0);
_.R([_.q5("guideElement"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"onGuideElementChanged",null);_.R([_.q5("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"guidePersistentAndVisibleChanged",null);
_.R([_.Dd("guideIsVisibleButNotPersistent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"guideIsVisibleButNotPersistentChanged",null);_.R([_.q5("miniGuideVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"miniGuideVisibleChanged",null);_.R([_.Dd("guideOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"guideOpenedChanged",null);
_.R([_.q5("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"activeEndpointChanged",null);_.R([_.Dd("pageUrl"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"resetGuide",null);_.R([_.Dd("cachedClientWidth"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"cachedClientWidthChanged",null);
_.R([_.Dd("persistentPanelVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"persistentPanelVisibleChanged",null);_.R([_.q5("guideOpened","guidePersistent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"computeGuidePersistentAndVisible",null);
_.R([_.Dd("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"observeForMiniGuideVisible",null);_.R([_.hI("iron-resize"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q4.prototype,"onResize",null);_.R([_.N({disableElementRegistration:!0,is:"yt-guide-manager"})],q4);
var IWY=_.J(q4,"yt-guide-manager",void 0,{mode:_.nn("kevlar_poly_si_batch_j081")?1:2});var jZ=function(){var G=_.a.apply(this,arguments)||this;G.JSC$20398_keyboardInUse=!1;G.boundHandleCapturedKeydownEvent=function(b){G.handleCapturedKeydownEvent(b)};
return G};
_.M(jZ,_.a);_.m=jZ.prototype;_.m.attached=function(){this.listenToDocument(document)};
_.m.listenToDocument=function(G){G.addEventListener("keydown",_.I9(this,this.onKeyDownEvent));G.addEventListener("keyup",_.I9(this,this.onKeyUpEvent));G.addEventListener("mousedown",_.I9(this,this.onMouseDownEvent));_.U("desktop_keyboard_capture_keydown_killswitch")||G.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);G.addEventListener("yt-page-data-updated",_.I9(this,this.onPageUpdate))};
_.m.detached=function(){this.unlistenFromDocument(document)};
_.m.unlistenFromDocument=function(G){G.removeEventListener("keydown",_.I9(this,this.onKeyDownEvent));G.removeEventListener("keyup",_.I9(this,this.onKeyUpEvent));G.removeEventListener("mousedown",_.I9(this,this.onMouseDownEvent));_.U("desktop_keyboard_capture_keydown_killswitch")||G.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);G.removeEventListener("yt-page-data-updated",_.I9(this,this.onPageUpdate))};
_.m.ready=function(){_.LL().addProvider({provide:_.v6,useValue:this})};
_.m.isKeyBoardInUse=function(){return this.JSC$20398_keyboardInUse};
_.m.handleCapturedKeydownEvent=function(G){if(G.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(G)};
_.m.onMouseDownEvent=function(){this.JSC$20398_keyboardInUse=!1};
_.m.onPageUpdate=function(){if(_.U("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.U("web_shorts_keyboard_shortcut_usage_log")){_.by.clear();for(var G=_.e(_.$$),b=G.next();!b.done;b=G.next()){var I=_.e(b.value);b=I.next().value;I=I.next().value;I=_.Xs(I);_.by.set(b,I);_.dK(_.gL(),_.s3(),I)}_.Iy.clear();G=_.e(_.Gj);for(b=G.next();!b.done;b=G.next())I=_.e(b.value),b=I.next().value,I=I.next().value,I=_.Xs(I),_.Iy.set(b,I),_.dK(_.gL(),_.s3(),I);_.yn(_.gL(),_.s3(),[].concat(_.Nz(_.Iy.values()),
_.Nz(_.by.values())));_.FT(_.gL(),[].concat(_.Nz(_.Iy.values()),_.Nz(_.by.values())))}};
_.m.onMiniplayerActiveChange=function(){var G;(G=_.LL().resolve(_.zO).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(G.document):this.unlistenFromDocument(G.document))};
_.m.ignoreKeyEvent=function(G){if(G.ctrlKey||G.altKey)if(_.U("kevlar_macro_markers_keyboard_shortcut")){if(G.keyCode!==37&&G.keyCode!==39)return!0}else return!0;var b=_.Wy(G)||[];return _.in1(b)?(_.U("web_button_or_anchor_list_item")&&yaK(b,G)&&(this.JSC$20398_keyboardInUse=!0),!0):G.defaultPrevented?(BM(G.keyCode,G.shiftKey,this.isShortsPage),!0):G.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(G):!1};
_.m.isSpacebarClick=function(G){var b=G||window.event;var I;b.composedPath&&typeof b.composedPath==="function"?I=b.composedPath():I=b.path;I&&I.length?b=I[0]:(b=b||window.event,b=b.target||b.srcElement,b.nodeType==3&&(b=b.parentNode));return b&&G.keyCode===32&&(G=b.tagName==="BUTTON"||b.tagName==="A"||b.tagName==="INPUT",b=(b=b.getAttribute("role"))&&(b==="option"||b==="button"||b.indexOf("menuitem")===0),G||b)?!0:!1};
_.m.onKeyDownEvent=function(G){if(!this.ignoreKeyEvent(G)&&(G.keyCode===191&&(G.shiftKey||G.metaKey?G.repeat!=null&&G.repeat||(this.openHotkeyDialog(),BM(G.keyCode,G.shiftKey,this.isShortsPage)):(this.focusSearchBox(),G.preventDefault())),!G.metaKey)){var b=_.LL().resolve(_.zO);switch(G.keyCode){case 9:this.JSC$20398_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(G);break;case 84:b.pipController.getWindow()&&window.focus();this.toggleTheaterMode(G.keyCode,G.shiftKey);break;case 73:b.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(G.keyCode,G.shiftKey);break;case 70:if(this.isShortsPage){_.PHK();break}this.isMiniplayerActive()?b.pipController.getWindow()&&(b.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&&_.LL().resolve(_.c9).activate(G);break;default:this.passEventToPlayer(G)}}};
_.m.onKeyUpEvent=function(G){if(!this.ignoreKeyEvent(G))if(_.U("web_speedmaster_spacebar_control")&&G.keyCode===32)this.handlePlayerSpaceKey(G,!0);else{var b=this.getPlayerManager();b&&(b=b.getPlayer())&&b.handleGlobalKeyUp(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code)}};
_.m.getPlayerManager=function(){var G=_.Kk(),b=_.LL().resolve(_.vf(_.Ck));return G&&b&&b.isOnWatch()?G:null};
_.m.passEventToPlayer=function(G,b){var I=this,h,q,l,V;return _.c(function(D){if(D.nextAddress==1){if(!_.U("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&I.isMiniplayerActive())h=_.LL().resolve(_.zO).getPlayerElement();else if(I.inlinePreviewIsActive){if(q=_.E3(I.hostElement,"yt-get-inline-preview-player-action"),(l=q)==null?0:l[0])h=q[0]}else h=_.Kk();return h?D.yield(h.getPlayerPromise(),3):D.jumpTo(0)}V=D.yieldResult;b?V.handleGlobalKeyUp(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,
G.key,G.code):V.handleGlobalKeyDown(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code,G.repeat);G.keyCode!==38&&G.keyCode!==40&&BM(G.keyCode,G.shiftKey,I.isShortsPage);_.ip(D)})};
_.m.focusSearchBox=function(){_.O3(this.hostElement,"yt-focus-searchbox")};
_.m.openHotkeyDialog=function(){_.O3(this.hostElement,"yt-open-hotkey-dialog")};
_.m.isMiniplayerActive=function(){return _.LL().resolve(_.zO).isMiniplayerActive()};
_.m.closeMiniplayer=function(G,b){return this.isMiniplayerActive()?(_.LL().resolve(_.zO).close(),BM(G,b,this.isShortsPage),!0):!1};
_.m.toggleTheaterMode=function(G,b){var I=_.BN(_.Cw().getState()),h=this.getPlayerManager(),q=_.U("disable_theater_mode_keyboard")||_.Sk("START_IN_FULL_WINDOW_MODE");h&&!q&&(I=!I,_.Kv()&&_.U("external_fullscreen")&&(I=!0),_.wL(this.hostElement,"yt-toggle-theater-mode",[I]),BM(G,b,this.isShortsPage))};
_.m.toggleMiniplayer=function(G,b){var I=this.getPlayerManager();if(this.isMiniplayerActive()){var h;((h=_.LL().resolve(_.vf(_.Ck)))==null?0:h.isOnWatch())?_.LL().resolve(_.zO).close(!0):_.s7(_.LL().resolve(_.zO));BM(G,b,this.isShortsPage)}else I&&(_.wL(this.hostElement,"yt-activate-miniplayer-from-watch-action"),BM(G,b,this.isShortsPage))};
_.m.handlePlayerSpaceKey=function(G,b){var I=!!_.Kk()||this.isMiniplayerActive();I=_.U("disable_space_scroll_fix")||I;_.U("global_spacebar_pause")&&!this.isKeyBoardInUse()&&I&&(G.preventDefault(),this.passEventToPlayer(G,b))};
_.m.isPresentingTheaterMode=function(){return _.U("web_watch_enable_tm_esc_key")?_.BN(_.Cw().getState())&&!_.Kv():!1};
jZ.prototype.onMiniplayerActiveChange=jZ.prototype.onMiniplayerActiveChange;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],jZ.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],jZ.prototype,"ytdReduxBehavior",void 0);_.R([_.H({selector:_.Fku}),_.n("design:type",Boolean)],jZ.prototype,"inlinePreviewIsActive",void 0);_.R([_.H({selector:_.nRO}),_.n("design:type",Boolean)],jZ.prototype,"isShortsPage",void 0);
_.R([_.H({selector:_.g4}),_.n("design:type",Boolean)],jZ.prototype,"miniplayerIsActive",void 0);_.R([_.q5("miniplayerIsActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],jZ.prototype,"onMiniplayerActiveChange",null);_.R([_.N({disableElementRegistration:!0,is:"yt-hotkey-manager"})],jZ);_.J(jZ,"yt-hotkey-manager",void 0,{mode:_.nn("kevlar_poly_si_batch_j081")?1:2});var lV=function(){var G=_.a.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};
_.M(lV,_.a);_.m=lV.prototype;_.m.ready=function(){_.LL().addProvider({provide:_.jm,useValue:this.hostElement})};
_.m.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_)};
_.m.attached=function(){document.addEventListener("yt-navigate-start",_.I9(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.I9(this,this.onYtNavigateFinish_))};
_.m.detached=function(){document.removeEventListener("yt-navigate-start",_.I9(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.I9(this,this.onYtNavigateFinish_))};
_.m.updatePlaylistEventListeners=function(G,b){b&&!this.playerListenersSetup_?(this.playerManager_=G,this.registerPlaylistEventListeners_(G)):!b&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(G))};
_.m.setPlayer=function(G){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=G};
_.m.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.m.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.m.registerPlaylistEventListeners_=function(G){var b=this;G.getPlayerPromise().then(function(I){b.playerListenersSetup_||(b.ytPlayerListenerBehavior.listenToPlayerEvents(I,b.PLAYER_EVENTS_),b.playerListenersSetup_=!0)})};
_.m.removePlaylistEventListeners_=function(G){var b=this;G.getPlayerPromise().then(function(I){b.playerListenersSetup_&&(b.ytPlayerListenerBehavior.unlistenFromPlayerEvents(I,b.PLAYER_EVENTS_),b.playerListenersSetup_=!1)})};
_.m.setPlaylistComponent=function(G){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.I9(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",
_.I9(this,this.onPlaylistYtNavigate_))};
_.m.setAutoplayRenderer=function(G){this.autoplayData=G};
_.m.setPlaylistData=function(G){this.currentPlaylistData_=G;_.O3(this.hostElement,"yt-playlist-data-updated");_.Cy.isEmpty(G)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(G)};
_.m.setPlayerPlaybackControlData=function(G){this.playerManager_&&this.playerManager_.updatePlayerComponents(G.playlistPanelRenderer)};
_.m.getPlaylistData=function(){return this.currentPlaylistData_};
_.m.getTempData_=function(G,b){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);b&&(G.autonav="1",_.LL().resolve(_.VO),b=_.vA(),b>0&&(G.lact=b),this.playerManager_&&(b=this.playerManager_.getPlayer())&&b.shouldSendVisibilityState()&&(b=b.getVisibilityState(),b!=0&&(G.vis=b)));_.U("enable_unknown_lact_fix_on_html5")&&(_.LL().resolve(_.VO),G.lact=
_.vA());return G};
_.m.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.m.setLoopStateEntityKey_=function(G){var b;this.loopStateEntityKey_=((b=this.getPlaylistLoopData_(G))==null?void 0:b.playlistLoopStateEntityKey)||null};
_.m.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.m.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.m.skipVideo=function(){var G=this,b=_.U("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||b)b=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.vH(_.uu,function(){G.onPlaylistNext();G.videoSkipJob_=0},b)};
_.m.cancelVideoSkip=function(){this.videoSkipJob_&&(_.uu.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.m.isInBackground_=function(){var G=window.document.visibilityState;return!(!G||G=="visible")};
_.m.onPlaylistIndex_=function(G){this.playlistComponent&&(G=this.playlistComponent.data.contents[G].playlistPanelVideoRenderer.navigationEndpoint,_.O3(this.hostElement,"yt-navigate",{endpoint:G,tempData:this.getTempData_(G)}))};
_.m.onPlayerStateChange_=function(G){if(G=G==0&&this.playlistComponent&&this.canAutoAdvance_)G=_.TW.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)};
_.m.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.m.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.m.navigateToAutoplayWatchEndpoint_=function(G,b,I){var h=this.playlistComponent.data.currentIndex,q=this.getNumPlayableVideos_();G=="NORMAL"&&b=="autoplayVideo"&&h+1>=q&&I||!(G=this.getVideoEndpoint_(G,b))||(I=this.getTempData_(G,I),_.O3(this.hostElement,"yt-navigate",{endpoint:G,tempData:I}))};
_.m.getNumPlayableVideos_=function(){for(var G=0,b=_.e(this.playlistComponent.data.contents||[]),I=b.next();!I.done;I=b.next())I.value.playlistPanelVideoRenderer&&(G+=1);return G};
_.m.getVideoEndpoint_=function(G,b){if(this.autoplayData&&this.autoplayData.sets)for(var I=0,h=this.autoplayData.sets.length;I<h;I++){var q=this.autoplayData.sets[I];if(q.mode==G){if(q[b])return q[b];break}}else G=new _.Wf("AutoplayData is undefined in playlist manager","Mode: "+G+" endpoint: "+b),_.RB(G)};
_.m.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.m.onPlaylistYtNavigate_=function(G){if(G.detail.endpoint){G.stopPropagation();var b=G.detail;b.tempData=this.getTempData_(G.detail.endpoint);_.O3(this.hostElement,"yt-navigate",b)}};
_.m.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.m.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.m.playlistLoopStateEntityChanged_=function(G){var b=this,I,h,q;return _.c(function(l){if(l.nextAddress==1){if(!G)return l.return();I=G.state==="PLAYLIST_LOOP_STATE_ONE";return b.playerManager_?l.yield(b.playerManager_.getPlayerPromise(),3):l.jumpTo(2)}l.nextAddress!=2&&(h=l.yieldResult,h.setLoopVideo(I));q=G.state==="PLAYLIST_LOOP_STATE_ALL";b.playlistComponent&&(b.playlistComponent.loopOn=q);_.ip(l)})};
_.m.getPlaylistLoopData_=function(G){var b,I;if(G=G==null?void 0:(b=G.playlistButtons)==null?void 0:(I=b.menuRenderer)==null?void 0:I.topLevelButtons)for(b=_.e(G),I=b.next();!I.done;I=b.next())if(I=I.value,I.playlistLoopButtonRenderer)return I.playlistLoopButtonRenderer};
_.m.getLoopStateCommand_=function(G){var b=this.getPlaylistData(),I;b=((I=this.getPlaylistLoopData_(b))==null?void 0:I.states)||[];var h;G=(h=_.g(b[G?1:2],_.PQz))==null?void 0:h.button;var q;return(q=_.g(G,_.bz))==null?void 0:q.command};
_.m.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)};
_.m.onSleepTimerSettingsChanged_=function(G){this.canAutoAdvance_=G!=="End of video"};
lV.prototype.onPlaylistLoopStateEntityChanged=lV.prototype.onPlaylistLoopStateEntityChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],lV.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.jJ.YtPlayerListenerBehavior),_.n("design:type",_.l7)],lV.prototype,"ytPlayerListenerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],lV.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lV.prototype,"loopStateEntityKey_",void 0);
_.R([_.H({selectorArgs:["loopStateEntityKey_"],selector:_.ND.playlistLoopStateEntitySelector}),_.n("design:type",Object)],lV.prototype,"playlistLoopStateEntity_",void 0);_.R([_.q5("playlistLoopStateEntity_"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lV.prototype,"onPlaylistLoopStateEntityChanged",null);_.R([_.N({disableElementRegistration:!0,is:"yt-playlist-manager"})],lV);_.J(lV,"yt-playlist-manager",void 0,{mode:_.nn("kevlar_poly_si_batch_j081")?1:2});var htc,qf9=function(){if(htc!==void 0)return htc;var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return htc=G};var my=function(){var G=_.a.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};
_.M(my,_.a);_.m=my.prototype;_.m.getLocation=function(){return window.location.href};
_.m.getCompletionUrl=function(){return _.Yc(this.getLocation())};
_.m.containsRedirectState=function(G){return(G=_.xx(_.Qhj(G)))?(new URLSearchParams(G)).get("redirect_state")!==null:!1};
_.m.createGalConfig=function(G,b){var I=new Ll3;G=I=b?this.getPopupOrRedirectSetting(I,_.wy("LINK_API_KEY"),_.wy("LINK_API_KEY_REDIRECT"),G):QuK(I,_.wy("LINK_API_KEY"));G.authUser=_.wy("SESSION_INDEX")||0;G.supportedFlows=new Set([4]);return G.build()};
_.m.getPopupOrRedirectSetting=function(G,b,I,h){this.isGalInteractionPopupMode(h)?(G.interactionMode=0,G=QuK(G,b)):(G.interactionMode=1,b=this.getCompletionUrl(),G.completionUrl=b,G=QuK(G,I));return G};
_.m.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};
_.m.getStatusEntityKeyForProviderId=function(G){return _.$S(G+":all","accountLinkStatusEntity")};
_.m.findNestedPropValue=function(G,b){var I=!1,h=null;JSON.stringify(G,function(q,l){I||q!==b||(I=!0,h=l);return I?null:l});
return h};
_.m.findAccountLinkButtonViewModel=function(G,b){var I=null,h=!1;JSON.stringify(G,function(q,l){h||l.accountLinkStatusEntityKey!==b||l.accountLinkStatusSecondaryEntityKey||(h=!0,I=l);return h?null:l});
return I};
_.m.executeLinkingSuccessOrFailureCommands=function(G,b,I){var h=null,q;(b==null?0:(q=b.url)==null?0:q.includes("account_sharing"))?h=b==null?void 0:b.response:h=b==null?void 0:b.response;(b=this.findAccountLinkButtonViewModel(h,G))?(G=I?this.findNestedPropValue(b,"onSuccessCommand"):this.findNestedPropValue(b,"onFailureCommand"))?_.Gm([G],this.hostElement):_.bB(Error("Bl")):_.bB(Error("Cl`"+G))};
_.m.handleInitializeRequest=function(G,b){var I=this,h=sZF(this.createGalConfig(G,!0));this.containsRedirectState(this.getLocation())?xte(G,h.config,h.galService).then(function(q){var l=I.getStatusEntityKeyForProviderId(G);if(q.statusCode===1)b&&I.executeLinkingSuccessOrFailureCommands(l,b,!0),q=I.getLocation().indexOf("#"),q!==-1&&window.history.pushState(null,"",I.getLocation().substring(0,q));else return b&&I.executeLinkingSuccessOrFailureCommands(l,b,!1),Promise.reject(Error(q.statusMessage))}).catch(function(q){_.RB(q);
_.C1("gamingAccountLinkStatusChanged",{serviceId:G,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(q)}):this.getAccountLinkPromises[G]=h.startLinkingSession({serviceId:G})};
_.m.handleAccountLinkCommand=function(G){_.g(G,fX3)&&this.handleLinkRequest(_.g(G,fX3))};
_.m.handleLinkRequest=function(G){var b=this,I=G.thirdPartyId;if(I)if(this.isGalInteractionPopupMode(I)){var h=function(){b.closeAndFire("ytd-gaming-account-link-setting-renderer",G.onFailureCommand)},q=function(){b.closeAndFire("ytd-gaming-account-link-setting-renderer",G.onSuccessCommand)};
this.lastCallback=q;this.getAccountLinkPromises[I].then(function(l){E6c(l).then(function(V){V.statusCode===1?q():h()})}).catch(function(){h()})}else this.getAccountLinkPromises[I].then(function(l){E6c(l).then(function(V){if(V.statusCode!==1)return Promise.reject(Error(V.statusMessage))})}).catch(function(l){_.RB(l);
_.C1("gamingAccountLinkStatusChanged",{serviceId:I,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(l)})};
_.m.closeAndFire=function(G,b){_.wL(this.hostElement,"yt-close-popup-action",[G]);b&&_.Gm([b],this.hostElement)};
_.m.handleAccountUnlinkCommand=function(G){_.g(G,T$a)&&this.handleUnlinkRequest(_.g(G,T$a))};
_.m.handleUnlinkRequest=function(G){var b=this,I=G.thirdPartyId;if(I){var h=function(){b.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",G.onFailureCommand)},q=function(){b.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",G.onSuccessCommand)};
this.lastCallback=q;var l=sZF(this.createGalConfig(I,!1));this.unlinkUserGal(l,I).then(function(V){V.statusCode===1?q():h()}).catch(function(){h()})}};
_.m.unlinkUserGal=function(G,b){return G.deleteLink(b)};
_.m.handleLogAccountLinkingEventCommand=function(G){_.U("enable_gel_log_commands")&&_.g(G,B$F)&&(G=_.g(G,B$F).event)&&_.C1("gamingAccountLinkStatusChanged",G)};
_.kV.Object.defineProperties(my,{template:{configurable:!0,enumerable:!0,get:function(){return qf9()}}});
_.R([_.z(_.MD.YtOpenPopupBehavior),_.n("design:type",Object)],my.prototype,"ytOpenPopupBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],my.prototype,"ytActionHandlerBehavior",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-third-party-manager"})],my);_.J(my,"ytd-third-party-manager",function(){return qf9()},{mode:_.nn("kevlar_poly_si_batch_j081")?1:2});var jYY,lWD=function(){if(jYY!==void 0)return jYY;var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return jYY=G};var eZ=function(){var G=_.a.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=_.U("web_thumbnail_to_watch_transition");G.shouldApplySlideTransition=_.UG("web_page_transition_type")==="slide"||_.U("enable_plj_landing_page");G.shouldApplyLearningJourneyTransition=_.U("enable_plj_landing_page");G.TEST_ONLY=void 0;return G};
_.M(eZ,_.a);_.m=eZ.prototype;_.m.ready=function(){var G=_.LL();G.addProvider({provide:_.Ck,useValue:this});G.addProvider({provide:_.qv5,useValue:this})};
_.m.created=function(){this.pagePool=new iSc;this.contextSwitcher=new u$j};
_.m.attached=function(){_.O3(this.hostElement,"attached");var G=_.LL().resolve(_.vf(_.cy));G&&(this.contextSwitcher.JSC$20223_networkService_=G);this.viewTransitionManager=_.LL().resolve(_.a8)};
_.m.getPageOffset=function(G){return G.getScrollTop()};
_.m.setPageOffset=function(G,b){try{G.setScrollTop(b)}catch(I){}};
_.m.setPageOffsetForNavigation=function(G,b){_.O3(this.hostElement,"yt-navigate-set-page-offset",{page:G,offset:b===void 0?0:b})};
_.m.pauseActiveContext=function(){var G=this.contextSwitcher;G.activeContext_&&G.activeContext_.pause()};
_.m.getModuleNameForType=function(G){return G==="watch"?_.U("kevlar_watch_fixie")?"watchFixie":_.U("kevlar_watch_grid")?"watchGrid":"watchFlexy":G==="shorts"||G==="search"?G:"browse"};
_.m.attachPage=function(G){var b,I=!_.U("pc_is_attached_ks")&&(G==null?void 0:(b=G.polymerController)==null?void 0:b.isAttached);if(!G.isAttached&&!I)try{_.Eo(this.hostElement).appendChild(G)}catch(q){var h;_.RB(new _.Wf("Error attaching page element for component",{origin:(h=this.currentPage)==null?void 0:h.is,component:G.is}))}};
_.m.setActivePage=function(G,b){var I=this,h=!1,q=function(){var l=I.isOnWatch(),V=I.currentPage;if(G)if(G!==I.currentPage){V&&(V.hidden=!0,V.active=!1,V.removeAttribute("role"));I.currentPage=G;var D,k=b!=null?b:_.qe((D=I.data)==null?void 0:D.endpoint);V&&_.O3(I.hostElement,"yt-page-type-changed",{oldPageType:V.is,newPageType:G.is,newPageSubtype:k});_.H5().dispatch(_.wK({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:G.is}));_.H5().dispatch(_.wK({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:k||""}));
G.hidden=!1;I.attachPage(G);G.active=!0;G.setAttribute("role","main");V&&I.setPageOffsetForNavigation(G,0);_.U("kevlar_remove_page_dom_on_switch")&&!l&&V&&_.Eo(I.hostElement).removeChild(V)}else h=!0;else I.handleMissingDestinationPage(V)};
this.shouldRunBrowseTransition(this.currentPage,G)?elK(this.viewTransitionManager,q):this.shouldRunLearningJourneyTransition(this.currentPage,G)?cuF(this.viewTransitionManager,q):q();return h};
_.m.handleMissingDestinationPage=function(G){if(this.isColdLoadForUnknownPage(G))_.RB(new _.Wf("Cold load for unknown page"));else{var b;G=new _.Wf("Unable to set active page",G?G.is:"unknown origin",(b=this.data)==null?void 0:b.endpoint);_.K1(G)}};
_.m.isColdLoadForUnknownPage=function(G){return!G&&e4(this.data)==="unknown"};
_.m.shouldRunBrowseTransition=function(G,b){return this.shouldApplySlideTransition&&(G==null?void 0:G.is)==="ytd-browse"&&(b==null?void 0:b.is)==="ytd-browse"&&G!==b};
_.m.shouldRunLearningJourneyTransition=function(G,b){return this.shouldApplyLearningJourneyTransition&&(G==null?void 0:G.is)==="ytd-browse"&&((b==null?void 0:b.is)==="ytd-watch-learning-journey"||(b==null?void 0:b.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.m.shouldRunWatchNextLoadedTransition=function(G,b){return this.viewTransitionManager&&G.is==="ytd-watch-flexy"&&b};
_.m.updatePageData=function(G){var b=this,I=this.data;this.updatePageDataJobId&&_.uu.cancelJob(this.updatePageDataJobId);this.data=G;return new _.MB(function(h){var q=function(){G.filler?b.performDataUpdate(G,I):fcD(function(){b.performDataUpdate(G,I)});
var k=_.mq();_.em(k,"cr")||k.processSignal("cr");h()},l=function(){G&&(G.page==="watch"||_.U("web_shorts_delay_shorts_page_update")&&G.page==="shorts")?b.updatePageDataJobId=_.vH(_.uu,q):q()};
if(_.U("kevlar_enable_mss_page_modules_client")&&G){var V=_.LL().resolve(_.iX),D=b.getModuleNameForType(G.page);(V=lDF(V,[D]))?V.then(l):l()}else l()})};
_.m.isDownloadsPage=function(G){var b,I;return(G==null?void 0:(b=G.endpoint)==null?void 0:(I=b.browseEndpoint)==null?void 0:I.browseId)==="FEdownloads"};
_.m.setPlayerSyncInterval=function(G){var b;return _.c(function(I){if(I.nextAddress==1)return I.yield(_.LL().resolve(_.wR),2);b=I.yieldResult;b.setUpPositionSyncInterval(G);_.ip(I)})};
_.m.performDataUpdate=function(G,b){_.U("kevlar_early_popup_close")||_.wL(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var I=!G.filler;I&&(_.sS("lps"),_.U("config_age_report_killswitch")||K6W());var h=e4(G),q,l=!1;if(_.U("kevlar_remove_page_dom_on_switch")){var V=b&&e4(b);h===V&&(q=this.getCurrentPage())}q||(q=S_(this.pagePool,h));I&&sv3(this.pagePool.elementPoolPopulator,h);I&&!this.renderLoadingStateJobId&&(l=this.setActivePage(q));if(q){V=h==="watch";var D=
h==="shorts",k=h==="learning_journey_watch";_.U("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(q);if(V||D||k)q.playerData=G.playerResponse;if(D){G.reelWatchSequenceResponse?q.reelWatchSequenceResponse=G.reelWatchSequenceResponse:q.cachedReelWatchSequenceResponse&&!q.reelWatchSequenceResponse&&(q.reelWatchSequenceResponse=q.cachedReelWatchSequenceResponse);G.reelWatchSequenceResponse&&(b==null?void 0:b.page)!=="shorts"&&(q.cachedReelWatchSequenceResponse=G.reelWatchSequenceResponse);
q.currentEndpoint=G.endpoint;var L;q.isPreviousPageShorts=!!(b==null?0:(L=b.endpoint)==null?0:L.reelWatchEndpoint)}L=this.isDownloadsPage(G);var x=this.isDownloadsPage(b);L&&!x?this.setPlayerSyncInterval(6E5):!L&&x&&this.setPlayerSyncInterval();_.U("block_all_player_prefetch_requests")||this.preparePrefetchRequest(G,q,I,V,D,k);kk1(_.LL().resolve(_.zO),b,G);if(_.U("enable_ai_companion")){var f;(f=_.LL().resolve(_.vf(_.RF)))==null||_.H0c(f,this.getPersistentPanelSurface(h))}_.kE(_.LL().resolve(_.VO));
_.U("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(q);I?(I=typeof q.loadPage,I==="function"?(q.pageContext=ROY(this.contextSwitcher,q,q.data!==G.response),I=function(){q.loadPage(G.response)},this.shouldApplySlideTransition&&q.is==="ytd-browse"&&l&&(h==="learning"||this.isDifferentBrowseId(G==null?void 0:G.endpoint,b==null?void 0:b.endpoint))?elK(this.viewTransitionManager,I):this.shouldRunWatchNextLoadedTransition(q,l)?D3Y(this.viewTransitionManager,I):I()):_.u6(new _.Wf("b/38014653 ",
[h,
q.is,q.nodeName,I,q.isAttached,b&&e4(b),this.hostElement.children.length])),_.sS("pdl")):(q.hidden=!0,G.response.filler=!0,q.data=G.response,this.attachPage(q));_.O3(this.hostElement,"yt-page-data-updated",{pageType:h})}_.FQ(_.uu,function(){_.U("logging_avoid_blocking_during_navigation")&&_.Aaa().transition("none");var T=lM8(),B=q;if(G){var A=HWD(G),t=Wbe(G),y;a:{if(G.playerResponse){var F=G.playerResponse,W;if((y=F.auxiliaryUi)==null?0:(W=y.messageRenderers)==null?0:W.upsellDialogRenderer){y=F.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(G.response&&(y=G.response,(F=y.overlay)==null?0:F.upsellDialogRenderer)){y=y.overlay.upsellDialogRenderer;break a}y=void 0}var O;var K;W=(O=G.playerResponse)==null?void 0:(K=O.auxiliaryUi)==null?void 0:K.messageRenderers;O=(W==null?void 0:W.enforcementMessageViewModel)||(W==null?void 0:W.bkaEnforcementMessageViewModel);O=(O==null?void 0:O.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?O:void 0;var u;a:{if(G.response&&(K=G.response,(u=K.overlay)==null?0:u.commandWrapperPromoRenderer)){u=
K.overlay.commandWrapperPromoRenderer;break a}u=void 0}jX5(T,A,t,y,O,u,B)}})};
_.m.preparePrefetchRequest=function(G,b,I,h,q,l){var V,D,k,L,x,f,T,B,A,t,y,F,W,O,K;return _.c(function(u){if(u.nextAddress==1)return!I||!(h||q||l)||_.U("kevlar_disable_background_prefetch")&&_.$W(_.rsj)()===0?u.return():(V=_.Ja(b))?u.yield(V.getPlayerPromise(),2):u.return();D=u.yieldResult;k=_.LL().resolve(_.vf(_.cy));if(!k)return u.return();if(q)return L=_.Jx(_.oC),ome(L,(x=G.endpoint)==null?void 0:x.reelWatchEndpoint,b.reelWatchSequenceResponse,D,k),u.return();B=(f=G.response)==null?void 0:(T=f.responseContext)==
null?void 0:T.webResponseContextExtensionData;if(!B)return u.return();W=(A=G.response)==null?void 0:(t=A.contents)==null?void 0:(y=t.twoColumnWatchNextResults)==null?void 0:(F=y.autoplay)==null?void 0:F.autoplay;O=_.LL().resolve(_.jm);K=_.Jx(_.oC);iE5(K,B,D,k,O,W);_.ip(u)})};
_.m.movePlayerToWatch=function(G){var b=this,I,h;return _.c(function(q){I=S_(b.pagePool,"watch");h=I.getPlayerContainer();G.appendTo(h);_.ip(q)})};
_.m.movePlayerToShorts=function(G){var b=this,I,h,q;return _.c(function(l){I=S_(b.pagePool,"shorts");h=I.getPlayerContainer();(q=G)==null||q.appendTo(h,void 0,!0);_.ip(l)})};
_.m.getPlayerFromWatch=function(){var G=S_(this.pagePool,"watch");return _.Ja(G)};
_.m.getPlayerFromShorts=function(){var G=S_(this.pagePool,"shorts");return _.Ja(G)};
_.m.startLoadingWatch=function(){var G=this,b=S_(this.pagePool,"watch");this.renderLoadingStateJobId?(_.uu.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.U("web_watch_transition_enable_start_loading_watch_callsite")?V08(this.viewTransitionManager,function(){G.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(b,"watch");
if(_.U("enable_ai_companion")){var I;(I=_.LL().resolve(_.vf(_.RF)))==null||_.H0c(I,this.getPersistentPanelSurface("watch"))}};
_.m.startLoadingShorts=function(){var G=S_(this.pagePool,"shorts");this.setActivePage(G,"shorts")};
_.m.startLoadingLearningJourney=function(){var G=S_(this.pagePool,"learning_journey_watch");this.setActivePage(G,"learning_journey_watch")};
_.m.getCurrentPage=function(){return this.currentPage};
_.m.getDestinationPageType=function(){return this.destinationPageType};
_.m.getCurrentData=function(){return this.data};
_.m.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.m.isOnShorts=function(){var G;return((G=this.currentPage)==null?void 0:G.is)==="ytd-shorts"};
_.m.isWatchPage=function(G){return!!G&&(G.is==="ytd-watch-flexy"||G.is==="ytd-watch-fixie"||G.is==="ytd-watch-grid")};
_.m.preparePage=function(G,b){var I=this,h=function(){var V=I.pagePool.preparePage(G,I.currentPage,b);V&&I.attachPage(V)},q=function(V){_.n1(V,b);
_.RB(V)};
if(_.U("kevlar_enable_mss_page_modules_client")){var l=this.getModuleNameForType(G);if(l=lDF(_.LL().resolve(_.iX),[l])){l.then(h.bind(this)).catch(q.bind(this));return}}try{h()}catch(V){q(V)}};
_.m.lazyPrepareCriticalPages=function(G,b){G=_.qe(b)||G;_.U("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(G).then(this.maybePrepareWatchPage.bind(this,G)):this.maybePrepareWatchPage(G)};
_.m.maybePrepareWatchPage=function(G){G==="watch"||G==="learning_journey_watch"&&_.U("web_watch_learning_journey_disable_lazy_pages")||_.FQ(_.uu,this.preparePage.bind(this,"watch"))};
_.m.downloadPageModules=function(G){G=this.getModuleNameForType(G);var b=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);b.delete(G);var I=_.LL().resolve(_.iX);I.JSC$18919_loadModules(G);return I.JSC$18919_loadModules.apply(I,_.Nz(b))};
_.m.renderPageLoadingState=function(G,b){this.preparePage(G,b);var I=S_(this.pagePool,G);I.loadingData&&(I.loadingData.endpoint=b);I.loading=!0;this.setActivePage(I,G);G!=="watch"&&G!=="learning_journey_watch"||_.O3(this.hostElement,"yt-guide-close")};
_.m.prepareForNavigation=function(G,b){var I=this;if(this.currentPage&&this.data){var h=_.qe(b)||G;this.destinationPageType=h;e4(this.data)==h&&_.O3(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&&_.uu.cancelJob(this.renderLoadingStateJobId);_.LL().resolve(_.zO).deactivate(b);_.q_(_.uu,function(){var l=I.viewTransitionManager,V=I.currentPage;
if(l.isLockupToWatchTransitionEnabled&&l.isLockupThumbnailRegistrationEnabled&&V)if(l.registeredLockupThumbnail)l.lockupThumbnailRegisteredFromWatchEndpoint&&_.RB(new _.Wf("Lockup thumbnail already registered from watch endpoint."));else{a:{var D=_.g(b,_.Wq);if(D==null?0:D.videoId){var k="yt-lockup-view-model ."+_.SwO(D.videoId)+" yt-thumbnail-view-model";V=V.querySelectorAll(k);if(V.length===1){D=V[0];break a}V.length>1?_.RB(new _.Wf("Multiple LockupViewModel thumbnails found for videoId: "+D.videoId+
". Selector: "+k)):_.U("web_thumbnail_to_watch_transition_debug")&&_.RB(new _.Wf("No LockupViewModel thumbnail found for videoId: "+D.videoId+". Selector: "+k))}D=void 0}D&&(l.registeredLockupThumbnail=D,l.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.Qb1(l,D))}});
var q=this.data;this.renderLoadingStateJobId=_.q_(_.uu,function(){V08(I.viewTransitionManager,function(){if(I.data!=q){var l=S_(I.pagePool,G);I.setActivePage(l)}else I.renderPageLoadingState(G,b);I.renderLoadingStateJobId=0})},150)}};
_.m.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var G=new _.DN(1);this.currentPage.pageDisposeJobs.forEach(function(b){_.c6(G,b)});
this.pageDisposeJobsets.set(this.currentPage,G)}};
_.m.flushPageDisposeJobset=function(G){var b=this.pageDisposeJobsets.get(G);b&&(b.flushJobs(),this.pageDisposeJobsets.delete(G))};
_.m.onYtStopOldPlayer=function(G,b){b=b===void 0?!1:b;var I,h=_.sG("kevlar_new_stop_old_player_logic_pages");if(_.U("kevlar_check_current_page_on_stop_old_player")&&(h.length===0||this.currentPage&&h.includes(this.currentPage.is)))if(this.data&&(I=e4(this.data)),e4(G)===I&&this.currentPage&&e4(this.currentPage.data)!==I)var q=_.Ja(this.currentPage);else I=e4(this.data),q=S_(this.pagePool,I),q=_.Ja(q);else this.data&&(I=e4(this.data),q=S_(this.pagePool,I),q=_.Ja(q));if(q){h=e4(G);var l=S_(this.pagePool,
h);l=_.Ja(l);if(q==l)b&&!_.U("kevlar_disable_preemptive_player_reset")&&q.resetForNewPlayback();else if(b=I==="watch"&&h!=="watch",!b||h==="shorts"||_.ml8()&&!CHW(this.data,G))G=_.LL().resolve(_.zO),b&&G.isMiniplayerActive()&&G.pipController.getWindow()||q.stop()}};
_.m.isDifferentBrowseId=function(G,b){G=_.g(G,_.jL);b=_.g(b,_.jL);return(G==null?void 0:G.browseId)!==(b==null?void 0:b.browseId)};
_.m.getPersistentPanelSurface=function(G){switch(G){case "watch":return"WATCH";default:return"APP"}};
_.kV.Object.defineProperties(eZ,{template:{configurable:!0,enumerable:!0,get:function(){return lWD()}}});
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],eZ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-page-manager"})],eZ);_.J(eZ,"ytd-page-manager",function(){return lWD()},{mode:_.nn("kevlar_poly_si_batch_j081")?1:2});var mFj;var VL=function(){var G=_.a.apply(this,arguments)||this;G.useListItemStyles=_.U("web_list_item_style_for_menu_items");G.systemIcons=_.U("kevlar_system_icons");return G};
_.M(VL,_.a);_.m=VL.prototype;_.m.ready=function(){this.hostElement.addEventListener("tap",_.I9(this,this.onEndpointTapExtra))};
_.m.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.m.onFocus=function(){var G;(G=_.Eo(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.m.onEndpointTapExtra=function(G){_.O3(this.hostElement,"iron-activate");var b=this.data.navigationEndpoint;b&&_.g(b,_.Zxu)&&(G.stopPropagation(),_.Su(this.hostElement,[b],this.hostElement))};
_.m.computeIcon=function(G){return G&&G.iconType?_.pn(G.iconType):""};
_.m.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.m.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.m.forceUpdateStylesOnLegacyBrowsers=function(){_.U("kevlar_legacy_browsers")&&_.G8(this.hostElement)};
VL.prototype.forceUpdateStylesOnLegacyBrowsers=VL.prototype.forceUpdateStylesOnLegacyBrowsers;VL.prototype.onFocus=VL.prototype.onFocus;_.R([_.z(_.kk),_.n("design:type",Object)],VL.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.dE3.YtConditionalRendererBehavior),_.n("design:type",Object)],VL.prototype,"ytConditionalRendererBehavior",void 0);_.R([_.z(_.ZN.YtEndpointBehavior),_.n("design:type",Object)],VL.prototype,"ytEndpointBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],VL.prototype,"data",void 0);_.R([_.H({computed:"computeIcon(data.icon)",value:""}),_.n("design:type",String)],VL.prototype,"icon",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],VL.prototype,"useIcons",void 0);_.R([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.n("design:type",Boolean)],VL.prototype,"hasSeparator",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],VL.prototype,"useListItemStyles",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],VL.prototype,"systemIcons",void 0);_.R([_.hI("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VL.prototype,"onFocus",null);_.R([_.q5("useIcons","hasSeparator"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],VL.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.J(VL,"ytd-menu-navigation-item-renderer",function(){if(mFj===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);mFj=G}G=mFj;return G},{mode:1});var et3;var V18=_.ao(_.qP("DOWNLOAD",{},"Download")),DFF=_.ao(_.qP("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),c7j=_.ao(_.qP("RETRY",{},"Retry")),k21=_.ao(_.qP("PAUSE_DOWNLOADING",{},"Pause downloading")),vha=_.ao(_.qP("RESUME_DOWNLOAD",{},"Resume download")),D2=function(){var G=_.a.apply(this,arguments)||this;G.primaryText=V18;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};
_.M(D2,_.a);_.m=D2.prototype;_.m.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.m.onFocus=function(){this.primaryEntry.focus()};
_.m.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.m.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.m.getRemoveAction=function(){return"ACTION_REMOVE"};
_.m.sendOfflineAction=function(G){var b=this.data.serviceEndpoint;if(b){var I=_.g(b,_.qt);I&&G&&(I.action=G);this.ytComponentBehavior.resolveCommand(b)}};
_.m.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=V18,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=V18;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=c7j;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=DFF;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=vha;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=DFF;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
k21;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=DFF;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=DFF;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=V18,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.m.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"};
_.m.isSecondaryEntryHidden=function(G,b){return G?!0:!b};
_.m.computeHasSeparator=function(){var G;return!((G=this.data)==null||!G.hasSeparator)};
_.m.computePlayerStateEntityKey=function(G){return G};
D2.prototype.showHideButton=D2.prototype.showHideButton;D2.prototype.onTransferStateChange=D2.prototype.onTransferStateChange;D2.prototype.onFocus=D2.prototype.onFocus;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],D2.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],D2.prototype,"ytComponentBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],D2.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],D2.prototype,"primaryText",void 0);_.R([_.H(),_.n("design:type",String)],D2.prototype,"primaryIconType",void 0);_.R([_.H(),_.n("design:type",String)],D2.prototype,"primaryAction",void 0);_.R([_.H(),_.n("design:type",Object)],D2.prototype,"secondaryText",void 0);_.R([_.H(),_.n("design:type",String)],D2.prototype,"secondaryIconType",void 0);
_.R([_.H(),_.n("design:type",String)],D2.prototype,"secondaryAction",void 0);_.R([_.H(),_.n("design:type",Object)],D2.prototype,"hasSecondaryContent",void 0);_.R([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.n("design:type",Object)],D2.prototype,"hasSeparator",void 0);_.R([_.H({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.n("design:type",String)],D2.prototype,"playerStateEntityKey",void 0);
_.R([_.H({selector:_.SA,selectorArgs:["playerStateEntityKey"]}),_.n("design:type",Object)],D2.prototype,"playerStateEntity",void 0);_.R([_.H({selector:_.Z0,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.n("design:type",String)],D2.prototype,"transferState",void 0);_.R([_.H({selector:_.$Tq,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.n("design:type",Object)],D2.prototype,"isVideoDeletedByUser",void 0);
_.R([_.H(),_.n("design:type",Object)],D2.prototype,"isHidden",void 0);_.R([_.H({selector:_.nKr,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.n("design:type",Object)],D2.prototype,"offlineabilityState",void 0);_.R([_.lH("#primary-entry"),_.n("design:type",Object)],D2.prototype,"primaryEntry",void 0);_.R([_.hI("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],D2.prototype,"onFocus",null);
_.R([_.Dd("transferState","isVideoDeletedByUser"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],D2.prototype,"onTransferStateChange",null);_.R([_.Dd("offlineabilityState","playerStateEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],D2.prototype,"showHideButton",null);
_.J(D2,"ytd-menu-service-item-download-renderer",function(){if(et3===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);et3=G}G=et3;return G},{mode:1});var Lzf;var cE=function(){var G=_.a.apply(this,arguments)||this;G.useIcons=!1;G.systemIcons=_.U("kevlar_system_icons");G.useListItemStyles=_.U("web_list_item_style_for_menu_items");return G};
_.M(cE,_.a);_.m=cE.prototype;_.m.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.m.onFocus=function(){var G;(G=_.Eo(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.m.onTap=function(){_.E3(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var G=this.data.serviceEndpoint,b=this.data.command;if(G){var I,h=(I=this.data)==null?void 0:I.trackingParams;I=!!_.g(G,_.QSn);h&&I&&_.Cw().dispatch(_.wK({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:h}}));this.ytComponentBehavior.resolveCommand(G)||_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}})}b&&(this.ytComponentBehavior.resolveCommand(b)||_.Su(this.hostElement,
[b],this.hostElement))};
_.m.computeIcon=function(G){return G&&G.iconType?_.pn(G.iconType):""};
_.m.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.m.computeHasSeparator=function(){var G;return!((G=this.data)==null||!G.hasSeparator)};
_.m.forceUpdateStylesOnLegacyBrowsers=function(){_.U("kevlar_legacy_browsers")&&_.G8(this.hostElement)};
_.m.computeIsSelected=function(){var G;return!((G=this.data)==null||!G.isSelected)};
cE.prototype.forceUpdateStylesOnLegacyBrowsers=cE.prototype.forceUpdateStylesOnLegacyBrowsers;cE.prototype.onTap=cE.prototype.onTap;cE.prototype.onFocus=cE.prototype.onFocus;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],cE.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],cE.prototype,"ytComponentBehavior",void 0);
_.R([_.z(_.dE3.YtConditionalRendererBehavior),_.n("design:type",Object)],cE.prototype,"ytConditionalRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],cE.prototype,"data",void 0);_.R([_.H({computed:"computeIcon(data.icon)",value:""}),_.n("design:type",String)],cE.prototype,"icon",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],cE.prototype,"useIcons",void 0);
_.R([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.n("design:type",Boolean)],cE.prototype,"hasSeparator",void 0);_.R([_.H({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.n("design:type",Boolean)],cE.prototype,"isSelected",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],cE.prototype,"systemIcons",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],cE.prototype,"useListItemStyles",void 0);
_.R([_.hI("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cE.prototype,"onFocus",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],cE.prototype,"onTap",null);_.R([_.q5("useIcons","hasSeparator"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cE.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.J(cE,"ytd-menu-service-item-renderer",function(){if(Lzf===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);Lzf=G}G=Lzf;return G},{mode:2});var QYe;var kR=function(){return _.a.apply(this,arguments)||this};
_.M(kR,_.a);_.m=kR.prototype;_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.onDataChanged=function(){var G=this;_.D1(this,function(){G.postbox.openDialog();G.focus();_.O3(G.hostElement,"yt-refit")})};
_.m.focus=function(){this.postbox.focus()};
_.m.closePopup=function(){_.wL(this.hostElement,"yt-close-popup-action")};
_.m.onYtCommentboxDismiss=function(){this.closePopup()};
kR.prototype.onYtCommentboxDismiss=kR.prototype.onYtCommentboxDismiss;kR.prototype.onDataChanged=kR.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],kR.prototype,"data",void 0);_.R([_.H({value:function(){return _.qP("SBOX_INAPPROPRIATE_CANCEL")}}),
_.n("design:type",String)],kR.prototype,"closeButtonAriaLabel",void 0);_.R([_.lH("#postbox"),_.n("design:type",Object)],kR.prototype,"postbox",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kR.prototype,"onDataChanged",null);_.R([_.hI("yt-commentbox-dismiss"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kR.prototype,"onYtCommentboxDismiss",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],kR);
_.J(kR,"ytd-backstage-post-dialog-popup-renderer",function(){if(QYe!==void 0)return QYe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return QYe=G},{mode:1});var xFF;var fWe=function(){return _.a.apply(this,arguments)||this};
_.M(fWe,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],fWe.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fWe.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],fWe);
_.J(fWe,"ytd-sender-id-section-renderer",function(){if(xFF!==void 0)return xFF;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return xFF=G},{mode:1});var TTj;var BTD;var UFW;var vE=function(){return _.a.apply(this,arguments)||this};
_.M(vE,_.a);vE.prototype.closePopup=function(){_.wL(this.hostElement,"yt-close-popup-action")};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],vE.prototype,"data",void 0);_.R([_.g8({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],vE);
_.J(vE,"yt-community-post-section-renderer",function(){if(UFW===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;BTD===void 0&&(BTD=document.createElement("template"));var h=BTD;I.call(b,h.content.cloneNode(!0),G.content.firstChild);UFW=G}G=UFW;return G},{mode:2});var sY8;var ghL;var A7F;var M1a;var Z78;var t18;var ztF=function(){return _.a.apply(this,arguments)||this};
_.M(ztF,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ztF.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ztF.prototype,"data",void 0);_.R([_.g8({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],ztF);
_.J(ztF,"yt-share-start-time-with-context-renderer",function(){if(t18===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Z78===void 0&&(Z78=document.createElement("template"));var h=Z78;I.call(b,h.content.cloneNode(!0),G.content.firstChild);t18=G}G=t18;return G},{mode:2});var Lh=function(){return _.a.apply(this,arguments)||this};
_.M(Lh,_.a);Lh.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Lh.prototype,"data",void 0);_.R([_.g8({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Lh);
_.J(Lh,"yt-share-panel-title-v15-renderer",function(){if(M1a===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;A7F===void 0&&(A7F=document.createElement("template"));var h=A7F;I.call(b,h.content.cloneNode(!0),G.content.firstChild);M1a=G}G=M1a;return G},{mode:2});var QL=function(){return _.a.apply(this,arguments)||this};
_.M(QL,_.a);QL.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],QL.prototype,"data",void 0);_.R([_.g8({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],QL);
_.J(QL,"yt-share-panel-header-renderer",function(){if(ghL===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;sY8===void 0&&(sY8=document.createElement("template"));var h=sY8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);ghL=G}G=ghL;return G},{mode:2});var oha;var i75;var xR=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-open-popup-action":"onOpen"};return G};
_.M(xR,_.a);_.m=xR.prototype;_.m.attached=function(){this.onOpen()};
_.m.updateTimeSecs=function(G){this.currentTimeSecs=G};
_.m.computeTimeString=function(G){G=G.toString();var b=Math.floor(Number(G)/3600),I=Math.floor(Number(G)%3600%60);return(b>0?b+":":"")+_.jE(Math.floor(Number(G)%3600/60),b>0?2:1)+":"+_.jE(I,2)};
_.m.computeTimeStringA11y=function(G){return _.l9r({seconds:G})};
_.m.getTimeParam=function(){return Iu5(this.timeString)};
_.m.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var G={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},b;_.yw(_.qo(),(b=this.data)==null?void 0:b.trackingParams,G,7)};
_.m.onChangeStartAtTimestamp=function(){for(var G=this.startAtTimestamp.value.split(":"),b=0,I=1,h=G.length-1;h>=0;h--)b+=Number(G[h])*I,I*=60;this.updateTimeSecs(b);this.setTimestamp()};
_.m.onOpen=function(){var G=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var b=_.Kk();b?b.getPlayerPromise().then(function(I){I=I.getCurrentTime();G.updateTimeSecs(I)}):Aa3()&&this.updateTimeSecs(Aa3())};
_.m.setTimestamp=function(){var G=Math.floor(this.currentTimeSecs);_.wL(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!G,timestamp:G||""}])};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],xR.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],xR.prototype,"data",void 0);_.R([_.H({value:!1,notify:!0}),_.n("design:type",Boolean)],xR.prototype,"isStartAtChecked",void 0);_.R([_.H(),_.n("design:type",Number)],xR.prototype,"currentTimeSecs",void 0);
_.R([_.H({computed:"computeTimeString(currentTimeSecs)"}),_.n("design:type",String)],xR.prototype,"timeString",void 0);_.R([_.H({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.n("design:type",String)],xR.prototype,"timeStringA11y",void 0);_.R([_.lH("#start-at-timestamp"),_.n("design:type",Object)],xR.prototype,"startAtTimestamp",void 0);_.R([_.g8({is:"yt-start-at-renderer",disableElementRegistration:!0})],xR);
_.J(xR,"yt-start-at-renderer",function(){if(i75===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;oha===void 0&&(oha=document.createElement("template"));var h=oha;I.call(b,h.content.cloneNode(!0),G.content.firstChild);i75=G}G=i75;return G},{mode:2});var Pb8;var dFK;var y7c={};y7c.YtBindingExpressionsBehavior={identity:_.H2,msg:function(G,b){b=b===void 0?{}:b;return _.qP(G,b,G)},
msgPlural:function(G,b){return _.jX(G,b)},
getMusicIconFromType:function(G){return _.pn(G)}};var r7W;var Fzj;var H7K;var Wza=document.head,aWj=Wza.appendChild,NTD;if(H7K===void 0){var Yfc=document.createElement("template");_.Z(Yfc,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');H7K=Yfc}NTD=H7K;aWj.call(Wza,NTD.content);var fh=function(){var G=_.a.apply(this,arguments)||this;G.screenLayer=7;return G};
_.M(fh,_.a);fh.prototype.getScreenLayer=function(){return this.screenLayer};
fh.prototype.onTap=function(G){G&&G.detail&&(G.detail.x||G.detail.y)&&_.Eo(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.pv(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(G=this.getScreenLayer(),_.O3(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()}}})};
_.kV.Object.defineProperties(fh.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()}}});
fh.prototype.onTap=fh.prototype.onTap;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],fh.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fh.prototype,"data",void 0);_.R([_.P("data.title"),_.n("design:type",Object),_.n("design:paramtypes",[])],fh.prototype,"title",null);
_.R([_.P("data.serviceName"),_.n("design:type",String),_.n("design:paramtypes",[])],fh.prototype,"icon",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],fh.prototype,"onTap",null);_.R([_.g8({is:"yt-share-target-renderer",disableElementRegistration:!0})],fh);
_.J(fh,"yt-share-target-renderer",function(){if(Fzj===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;r7W===void 0&&(r7W=document.createElement("template"));var h=r7W;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Fzj=G}G=Fzj;return G},{mode:2});var CbD;var J7f;var T0=function(){var G=_.a.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};
_.M(T0,_.a);_.m=T0.prototype;_.m.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.m.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Eo(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Eo(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.m.onReset_=function(){if(_.Eo(this.hostElement).querySelector("#list")){var G=_.Eo(this.hostElement).querySelector("#list");var b=_.Eo(this.hostElement).querySelector("#list");var I=b.offsetLeft,h=b.offsetParent;h||_.J4z(b)!="fixed"||(h=_.ny(b).documentElement);if(h){if(_.XE&&!_.Gd(58)){var q=_.paW(h);I+=q.left}else Number(_.c5X)>=8&&!(Number(_.c5X)>=9)&&(q=_.paW(h),I-=q.left);b=_.waO(h)?h.clientWidth-(I+b.offsetWidth):I}else b=I;i6W(G,b);this.updateScrollButtons_()}};
_.m.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.m.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.m.onScrollWheel_=function(G){G.stopPropagation();G.preventDefault();var b=ol1(_.Eo(this.hostElement).querySelector("#list"));G=Math.abs(G.deltaX)>Math.abs(G.deltaY)?G.deltaX:G.deltaY;i6W(_.Eo(this.hostElement).querySelector("#list"),b+G);this.updateScrollButtons_()};
_.m.smoothScrollByOnePage_=function(G){var b=_.Eo(this.hostElement).querySelector("#list"),I=(Math.floor(b.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,h=ol1(b),q=I*(G?1:-1),l=this.PAGE_SCROLL_SPEED,V=this.updateScrollButtons_.bind(this),D=0,k;(function x(){D+=l;k=D/I*2;i6W(b,h+q*(k<1?k*k:-k*k+4*k-2));D<I?window.requestAnimationFrame(x):V()})()};
_.m.updateScrollButtons_=function(){var G=ol1(_.Eo(this.hostElement).querySelector("#list")),b=_.Eo(this.hostElement).querySelector("#list").scrollWidth-_.Eo(this.hostElement).querySelector("#list").clientWidth;_.Eo(this.hostElement).querySelector("#scroll-button-back").hidden=G<=0;_.Eo(this.hostElement).querySelector("#scroll-button-forward").hidden=G>=b};
T0.prototype.onScrollWheel_=T0.prototype.onScrollWheel_;T0.prototype.onDataChanged_=T0.prototype.onDataChanged_;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],T0.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(y7c.YtBindingExpressionsBehavior),_.n("design:type",Object)],T0.prototype,"ytBindingExpressionsBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],T0.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],T0.prototype,"onDataChanged_",null);_.R([_.hI("wheel"),_.n("design:type",Function),_.n("design:paramtypes",[WheelEvent]),_.n("design:returntype")],T0.prototype,"onScrollWheel_",null);
_.R([_.g8({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],T0);
_.J(T0,"yt-third-party-share-target-section-renderer",function(){if(J7f===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;CbD===void 0&&(CbD=document.createElement("template"));var h=CbD;I.call(b,h.content.cloneNode(!0),G.content.firstChild);J7f=G}G=J7f;return G},{mode:2});var BE=function(){return _.a.apply(this,arguments)||this};
_.M(BE,_.a);BE.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],BE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],BE.prototype,"data",void 0);_.R([_.g8({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],BE);
_.J(BE,"yt-third-party-network-section-renderer",function(){if(dFK===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;Pb8===void 0&&(Pb8=document.createElement("template"));var h=Pb8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);dFK=G}G=dFK;return G},{mode:2});_.JN(_.C(function(G){return _.v("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.v("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.v(_.VX,{data:function(){return G.data().firstPartyItems}},{listItemViewModel:_.G2})))},"bj"),"first-party-network-section-view-model",{props:{data:_.hV}});var Kz5=(0,_.WPn)(_.yW.share,{parentClickTrackingParamsSelector:function(G){return G.parentClickTrackingParams}});var uYF=_.WP(["data:image/svg+xml;charset=UTF-8;base64,",""]),UW=function(){var G=_.a.apply(this,arguments)||this;G.screenLayer=7;G.qrCodeEnabled=_.U("web_enable_sharing_qr_code");G.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return G};
_.M(UW,_.a);_.m=UW.prototype;_.m.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.m.attached=function(){this.JSC$20464_scroller&&(this.JSC$20464_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20464_scroller.attached&&typeof this.JSC$20464_scroller.attached==="function"&&this.JSC$20464_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.m.onDataChanged=function(){var G=this,b;(b=this.data)!=null&&b.contents&&(this.hostElement.setAttribute("links-only","true"),_.XA(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.D1(this,function(){_.O3(G.hostElement,"yt-refit");G.focusSharePanelHeader()}))};
_.m.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.m.handleSetTimestamp=function(G){var b=this.shortUrl();G.isSet&&(b=_.Re(b,"t",G.timestamp));this.maybeRenderQrCode(b)};
_.m.shortUrl=function(){var G,b=(G=this.data)==null?void 0:G.contents;if(b)for(G=0;G<b.length;G++){var I=void 0,h=void 0;if((I=b[G])==null?0:(h=I.thirdPartyNetworkSection)==null?0:h.copyLinkContainer){var q=h=I=void 0;return(q=_.g((I=b[G])==null?void 0:(h=I.thirdPartyNetworkSection)==null?void 0:h.copyLinkContainer,$Ve))==null?void 0:q.shortUrl}}};
_.m.maybeRenderQrCode=function(G){var b=this,I,h,q,l,V,D,k,L,x;return _.c(function(f){if(f.nextAddress==1){I=_.Eo(b.hostElement).querySelector("#qr-code");if(!b.qrCodeEnabled||!G)return I&&(I.style.display="none"),f.return();h=_.Y6a(_.LL().resolve(_.SH),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});q=document.createElement("div");return typeof h==="function"?(h(q),f.jumpTo(2)):f.yield(h,3)}f.nextAddress!=2&&(l=f.yieldResult,l(q));k=(V=q)==null?void 0:(D=V.firstChild)==null?void 0:D.firstChild;
L=document.createElement("img");x=_.lJa(uYF,btoa(k.outerHTML));L.onload=function(){var T={canvas:I,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:L},B=new Y29;nU1(B,G);OMK(B,!1,wH5(B));var A=B.modules,t=Object.assign({},rn1,T);A=structuredClone(A);T=A.length;var y,F=(y=t.canvas)!=null?y:document.createElement("canvas");y=t.cellSize;B=t.logo;var W,O=(W=t.logoSize)!=null?W:Math.floor(T/4);T%2!==O%2&&O++;var K=t.logoPadding,u=t.backgroundColor;W=T*y;var w=
t.width,$a=0;w&&($a=t.padding,$a=Math.ceil($a*W/(w-$a*2)),F.style.width=w+"px",F.style.height=w+"px");F.width!==W+$a*2&&(F.width=W+$a*2);F.height!==W+$a*2&&(F.height=W+$a*2);W=F.getContext("2d");t.autoClear&&W.clearRect(0,0,F.width,F.height);W.fillStyle=u;W.beginPath();W.roundRect(0,0,F.width,F.height,t.borderRadius);W.fill();W.save();W.translate($a,$a);if(B)for(F=Math.floor(T-O)/2-K,K=Math.floor(T+O)/2+K,u=F;u<K;u++)for(w=F;w<K;w++)A[u][w]=!1;for(F=0;F<T;F++)for(K=0;K<T;K++)(F<7&&K<7||F<7&&K>=T-
7||F>=T-7&&K<7)&&(A[F][K]=!1);var ev;F=(ev=t.markerColor)!=null?ev:t.color;pHj(W,0,0,y,F);pHj(W,y*(T-7),0,y,F);pHj(W,0,y*(T-7),y,F);switch(t.cellStyle){case 0:ev=A;A=ev.length;F=t.cellSize;W.beginPath();for(K=0;K<A;K++)for(u=0;u<A;u++)ev[K][u]&&W.rect(K*F,u*F,F,F);W.fillStyle=t.color;W.fill();break;case 1:ev=A;A=ev.length;F=t.cellSize;K=F*t.relativeCircleSize;W.fillStyle=t.color;W.beginPath();for(t=0;t<A;t++)for(u=0;u<A;u++)ev[t][u]&&(W.beginPath(),W.ellipse((t+.5)*F,(u+.5)*F,K/2,K/2,0,0,2*Math.PI),
W.fill());W.fill();break;case 2:ev=A;A=ev.length;F=t.cellSize;W.fillStyle=t.color;t=[[1,1],[-1,1],[-1,-1],[1,-1]];W.beginPath();for(K=0;K<A;K++)for(u=0;u<A;u++)if(ev[K][u])W.roundRect(K*F,u*F,F,F,F/2),K+1<A&&ev[K+1][u]&&W.rect(K*F+F/2,u*F,F,F),u+1<A&&ev[K][u+1]&&W.rect(K*F,u*F+F/2,F,F);else{w=K*F+F/2;$a=u*F+F/2;for(var LO=0;LO<4;LO++){var td=_.e(t[LO]),xa=td.next().value;td=td.next().value;K+xa>=0&&K+xa<A&&u+td>=0&&u+td<A&&ev[K+xa][u]&&ev[K][u+td]&&ev[K+xa][u+td]&&(xa=LO*Math.PI/2,td=F/2,W.moveTo(w+
td*Math.cos(xa),$a+td*Math.sin(xa)),W.arc(w,$a,F/2,xa,xa+Math.PI/2,!1),W.lineTo(w+td*(Math.cos(xa)-Math.sin(xa)),$a+td*(Math.cos(xa)+Math.sin(xa))),W.lineTo(w+td*Math.cos(xa),$a+td*Math.sin(xa)))}}W.fill()}B&&W.drawImage(B,(T-O)*y/2,(T-O)*y/2,O*y,O*y);W.restore();I.style.removeProperty("display")};
L.src=_.aI(x);_.ip(f)})};
_.m.hasCommunityPostRenderer=function(){var G,b,I,h;return!!((G=this.data)==null?0:(b=G.header)==null?0:(I=b.sharePanelHeaderRenderer)==null?0:(h=I.communityPost)==null?0:h.communityPostSectionRenderer)};
_.m.onTapClose=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.m.getScreenLayer=function(){return this.screenLayer};
_.m.logSharePanelPage=function(){if(!_.U("enable_share_panel_navigation_logging_fix_on_web")){var G;if((G=this.data)!=null&&G.trackingParams){G=this.data.trackingParams;var b=this.parentClickTrackingParams;b=b?_.VB(b):void 0;var I=_.qo();_.oa(I,21760,b,{layer:7,parentLayer:0});I.graftServerVe(G,void 0,7);_.Cw().dispatch(_.wK({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
UW.prototype.onDataChanged=UW.prototype.onDataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],UW.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],UW.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],UW.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],UW.prototype,"data",void 0);_.R([_.H({value:_.qP("SBOX_INAPPROPRIATE_CANCEL")}),_.n("design:type",String)],UW.prototype,"closeButtonAriaLabel",void 0);_.R([_.lH("yt-share-panel-header-renderer"),_.n("design:type",HTMLElement)],UW.prototype,"header",void 0);_.R([_.H({selector:Kz5.parentClickTrackingParamsSelector}),_.n("design:type",String)],UW.prototype,"parentClickTrackingParams",void 0);_.R([_.H(),_.n("design:type",Object)],UW.prototype,"qrCodeEnabled",void 0);
_.R([_.lH("#scroller"),_.n("design:type",Object)],UW.prototype,"JSC$20464_scroller",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],UW.prototype,"onDataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],UW);
_.J(UW,"ytd-unified-share-panel-renderer",function(){if(TTj!==void 0)return TTj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return TTj=G},{mode:1});var RtW;var sW=function(){var G=_.a.apply(this,arguments)||this;G.modernModal=!0;return G};
_.M(sW,_.a);sW.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
sW.prototype.computeShouldHideOldButtons=function(){var G;return!((G=this.data)==null?0:G.button)};
_.kV.Object.defineProperties(sW.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var G,b;return(G=this.data)==null?void 0:(b=G.button)==null?void 0:b.buttonRenderer}}});
_.R([_.H(),_.n("design:type",Object)],sW.prototype,"data",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],sW.prototype,"ytEventForwardingBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],sW.prototype,"modernModal",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],sW.prototype,"buttonRendererData",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],sW);
_.J(sW,"ytd-modal-with-title-and-button-renderer",function(){if(RtW!==void 0)return RtW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return RtW=G},{mode:1});var nh8;var gJ=function(){return _.a.apply(this,arguments)||this};
_.M(gJ,_.a);gJ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("page-changed",this.page))};
gJ.prototype.pageChangedForBinding=gJ.prototype.pageChangedForBinding;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],gJ.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],gJ.prototype,"page",void 0);_.R([_.q5("page"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gJ.prototype,"pageChangedForBinding",null);
_.R([_.N({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],gJ);
_.J(gJ,"ytd-account-item-section-header-renderer",function(){if(nh8!==void 0)return nh8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return nh8=G},{mode:1});var O7Y;var AS=function(){return _.a.apply(this,arguments)||this};
_.M(AS,_.a);AS.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"}}}};
AS.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],AS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.mD),_.n("design:type",Object)],AS.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],AS.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!1}),_.n("design:type",Function)],AS.prototype,"onAccountItemTap",void 0);
_.R([_.N({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],AS);
_.J(AS,"ytd-account-item-section-renderer",function(){if(O7Y!==void 0)return O7Y;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return O7Y=G},{mode:1});var wDf;var Ehe;var pDK=function(){return _.a.apply(this,arguments)||this};
_.M(pDK,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],pDK.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],pDK.prototype,"data",void 0);_.R([_.N({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],pDK);
_.J(pDK,"ytd-accounts-dialog-header-renderer",function(){if(Ehe!==void 0)return Ehe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ehe=G},{mode:1});var SfK;var M4=function(){return _.a.apply(this,arguments)||this};
_.M(M4,_.a);M4.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],M4.prototype,"data",void 0);_.R([_.N({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],M4);
_.J(M4,"ytd-google-account-header-renderer",function(){if(SfK!==void 0)return SfK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return SfK=G},{mode:1});var Z2=function(){return _.a.apply(this,arguments)||this};
_.M(Z2,_.a);Z2.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"}}}};
Z2.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("page-changed",this.page))};
Z2.prototype.pageChangedForBinding=Z2.prototype.pageChangedForBinding;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Z2.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],Z2.prototype,"page",void 0);
_.R([_.q5("page"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Z2.prototype,"pageChangedForBinding",null);_.R([_.N({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Z2);
_.R9()(Z2,"ytd-account-section-list-renderer",function(){if(wDf===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);wDf=G}G=wDf;return G},{allowedProps:["data"],
mode:1});var XDf;var tS=function(){var G=_.a.apply(this,arguments)||this;G.enableHandlesAccountMenuSwitcher=_.U("enable_handles_account_menu_switcher");return G};
_.M(tS,_.a);tS.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
tS.prototype.dataChanged=tS.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],tS.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tS.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.R([_.lH("#avatar"),_.n("design:type",Object)],tS.prototype,"avatar",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tS.prototype,"dataChanged",null);_.R([_.N({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],tS);
_.R9()(tS,"ytd-active-account-header-renderer",function(){if(XDf===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);XDf=G}G=XDf;return G},{allowedProps:["data"],
mode:1});var $$3;var GE3;var z0=function(){return _.a.apply(this,arguments)||this};
_.M(z0,_.a);z0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
z0.prototype.onBackTap=function(){_.O3(this.hostElement,"yt-menu-back-tapped")};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],z0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],z0.prototype,"data",void 0);_.R([_.N({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],z0);
_.R9()(z0,"ytd-simple-menu-header-renderer",function(){if(GE3===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);GE3=G}G=GE3;return G},{allowedProps:["data"],
mode:2});var blL;var ITD=function(){return _.a.apply(this,arguments)||this};
_.M(ITD,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ITD.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ITD.prototype,"data",void 0);_.R([_.N({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],ITD);
_.J(ITD,"ytd-comment-video-thumbnail-header-renderer",function(){if(blL!==void 0)return blL;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return blL=G},{mode:1});var hIF;var q9Y=function(){return _.a.apply(this,arguments)||this};
_.M(q9Y,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],q9Y.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],q9Y.prototype,"data",void 0);_.R([_.N({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],q9Y);
_.J(q9Y,"ytd-abuse-type-selector-renderer",function(){if(hIF!==void 0)return hIF;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return hIF=G},{mode:1});var jQa;var lTK=(0,_.WPn)(_.yW.reportChannelAbuse,{isVideoIdSelectedSelector:function(G,b){return b in G.selectedVideoIds},
additionalContextSelector:function(G){return G.additionalContext},
impersonatedChannelUrlSelector:function(G){return G.impersonatedChannelUrl},
reportChannelAbuseSelector:function(G){return G}});var o6=function(){return _.a.apply(this,arguments)||this};
_.M(o6,_.a);o6.prototype.attached=function(){var G=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){G.additionalContextInput.focusTextInput()})};
o6.prototype.handleAdditionalContextChanged=function(){var G=this;_.P5(this,"ytd-report-channel-additional-context-update",function(){G.ytdReduxBehavior.dispatch(_.wK({type:"ADDITIONAL_CONTEXT_UPDATED",payload:G.additionalContext}))},300)};
o6.prototype.updateAdditionalContextFromBinding=function(G){this.additionalContext=G.detail.value};
o6.prototype.handleAdditionalContextChanged=o6.prototype.handleAdditionalContextChanged;_.R([_.z(_.wN),_.n("design:type",Object)],o6.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",String)],o6.prototype,"additionalContext",void 0);_.R([_.H({selector:lTK.additionalContextSelector}),_.n("design:type",String)],o6.prototype,"additionalContextRedux",void 0);_.R([_.H(),_.n("design:type",Object)],o6.prototype,"data",void 0);
_.R([_.lH("yt-text-input-form-field-renderer"),_.n("design:type",Object)],o6.prototype,"additionalContextInput",void 0);_.R([_.q5("additionalContext"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],o6.prototype,"handleAdditionalContextChanged",null);_.R([_.N({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],o6);
_.J(o6,"ytd-report-channel-modal-additional-context-renderer",function(){if(jQa!==void 0)return jQa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return jQa=G},{mode:1});var m$9;var iV=function(){var G=_.a.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};
_.M(iV,_.a);_.m=iV.prototype;_.m.computeNextButtonData=function(G,b,I){var h={};b&&(h.navigationEndpoint=b);I&&(h.serviceEndpoint=I);G&&G.buttonRenderer&&_.Cy.extend(h,G.buttonRenderer);return h};
_.m.handleReportChannelModalDisableNextButtonAction=function(G){this.setNextButtonIsDisabled(G)};
_.m.handleReportFormEndpointUpdateAction=function(G){this.setNextButtonIsDisabled(!!G.disableSubmitButton);this.resetEndpointData();G.submitEndpoint?this.submitEndpoint=G.submitEndpoint:G.submitNavigationEndpoint&&(this.navigationEndpoint=G.submitNavigationEndpoint)};
_.m.handleSignalActionSubmitForm=function(){var G,b=Object.keys(((G=this.reportChannelAbuseForm)==null?void 0:G.selectedVideoIds)||{}),I;G=((I=this.reportChannelAbuseForm)==null?void 0:I.additionalContext)||"";var h;I=((h=this.reportChannelAbuseForm)==null?void 0:h.impersonatedChannelUrl)||"";var q;if((q=this.data)==null?0:q.submitEndpoint){b={impersonated_channel_url:I,text:G,video_ids:b};var l;_.LL().resolve(_.xW).resolveCommand((l=this.data)==null?void 0:l.submitEndpoint,{form:Object.assign({},
b,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.m.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.m.onYtServiceRequestError=function(G){this.setNextButtonIsDisabled(!1);_.yX(this.hostElement,G.detail.error.message)};
_.m.setNextButtonIsDisabled=function(G){this.set("data.nextButton.buttonRenderer.isDisabled",G)};
_.m.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
iV.prototype.onYtServiceRequestError=iV.prototype.onYtServiceRequestError;iV.prototype.onYtServiceRequestCompleted=iV.prototype.onYtServiceRequestCompleted;_.R([_.H(),_.n("design:type",Object)],iV.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],iV.prototype,"nextButtonDisabled",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],iV.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],iV.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],iV.prototype,"submitEndpoint",void 0);_.R([_.H(),_.n("design:type",Object)],iV.prototype,"navigationEndpoint",void 0);_.R([_.H({selector:lTK.reportChannelAbuseSelector}),_.n("design:type",Object)],iV.prototype,"reportChannelAbuseForm",void 0);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],iV.prototype,"onYtServiceRequestCompleted",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],iV.prototype,"onYtServiceRequestError",null);_.R([_.N({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],iV);
_.J(iV,"ytd-report-channel-modal-footer-renderer",function(){if(m$9!==void 0)return m$9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return m$9=G},{mode:1});var eID;var PE=function(){var G=_.a.apply(this,arguments)||this;G.boundOnTapDismissButton=function(){G.closePopup()};
return G};
_.M(PE,_.a);PE.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
PE.prototype.handleDataChanged=function(){_.jG(this.hostElement)};
PE.prototype.closePopup=function(){_.wL(this.hostElement,"yt-close-popup-action")};
PE.prototype.handleDataChanged=PE.prototype.handleDataChanged;_.R([_.H(),_.n("design:type",Object)],PE.prototype,"boundOnTapDismissButton",void 0);_.R([_.H(),_.n("design:type",Object)],PE.prototype,"data",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PE.prototype,"handleDataChanged",null);_.R([_.N({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],PE);
_.J(PE,"ytd-report-channel-modal-header-renderer",function(){if(eID!==void 0)return eID;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return eID=G},{mode:1});var Vqe;var dJ=function(){var G=_.a.apply(this,arguments)||this;G.autoValidate=!1;G.invalid=!1;G.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return G};
_.M(dJ,_.a);_.m=dJ.prototype;_.m.attached=function(){var G=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){G.channelUrlInput.focusTextInput()})};
_.m.disableNextButton=function(G){_.wL(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[G])};
_.m.handleImpersonatedChannelUrlChanged=function(){var G=this;this.disableNextButton(!0);this.invalid=!1;_.P5(this,"ytd-report-channel-impersonated-channel-update",function(){var b=G.impersonatedChannelUrl.trim();G.ytdReduxBehavior.dispatch(_.wK({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:b}));var I;((I=G.data)==null?0:I.submitEndpoint)&&b&&_.LL().resolve(_.xW).resolveCommand(G.data.submitEndpoint,{form:{impersonated_channel_url:b,element:G.hostElement}})},500)};
_.m.handleModifyReportFormCommand=function(G){this.invalid=this.get("modifyReportFormCommand.action",G)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.m.updateInvalidFromBinding=function(G){this.invalid=G.detail.value};
_.m.updateImpersonatedChannelUrlFromBinding=function(G){this.impersonatedChannelUrl=G.detail.value};
dJ.prototype.handleImpersonatedChannelUrlChanged=dJ.prototype.handleImpersonatedChannelUrlChanged;_.R([_.z(_.wN),_.n("design:type",Object)],dJ.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],dJ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],dJ.prototype,"autoValidate",void 0);_.R([_.H(),_.n("design:type",Object)],dJ.prototype,"invalid",void 0);
_.R([_.H(),_.n("design:type",String)],dJ.prototype,"impersonatedChannelUrl",void 0);_.R([_.H({selector:lTK.impersonatedChannelUrlSelector}),_.n("design:type",String)],dJ.prototype,"impersonatedChannelUrlRedux",void 0);_.R([_.H(),_.n("design:type",Object)],dJ.prototype,"data",void 0);_.R([_.lH("#text-input"),_.n("design:type",Object)],dJ.prototype,"channelUrlInput",void 0);
_.R([_.q5("impersonatedChannelUrl"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dJ.prototype,"handleImpersonatedChannelUrlChanged",null);_.R([_.N({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],dJ);
_.J(dJ,"ytd-report-channel-modal-impersonation-renderer",function(){if(Vqe!==void 0)return Vqe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Vqe=G},{mode:1});var D$j;var chc;var yL=function(){return _.a.apply(this,arguments)||this};
_.M(yL,_.a);yL.prototype.onCheckboxToggled=function(G){var b,I,h=(I=_.g((b=this.data)==null?void 0:b.video,_.he))==null?void 0:I.videoId;h&&this.ytdReduxBehavior.dispatch(G.target.checked?_.wK({type:"VIDEO_SELECTED",payload:h}):_.wK({type:"VIDEO_UNSELECTED",payload:h}))};
yL.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.kV.Object.defineProperties(yL.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var G,b=(G=this.data)==null?void 0:G.video;if(!b)return{};var I;G=(I=_.g(b,_.he))==null?void 0:I.navigationEndpoint;if(!G)return b;_.g(G==null?void 0:G.commandMetadata,_.IW)&&(_.g(G.commandMetadata,_.IW).ignoreNavigation=!0);return b}}});
_.R([_.H({reflectToAttribute:!0,selector:lTK.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.n("design:type",Boolean)],yL.prototype,"checked",void 0);_.R([_.H(),_.n("design:type",Object)],yL.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],yL.prototype,"video",null);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],yL.prototype,"ytdReduxBehavior",void 0);_.R([_.N({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],yL);
_.J(yL,"ytd-selectable-video-renderer",function(){if(chc!==void 0)return chc;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return chc=G},{mode:1});var rJ=function(){var G=_.a.apply(this,arguments)||this;G.monitorScroll=!0;return G};
_.M(rJ,_.a);rJ.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],rJ.prototype,"data",void 0);_.R([_.N({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],rJ);
_.J(rJ,"ytd-selectable-video-list-renderer",function(){if(D$j!==void 0)return D$j;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return D$j=G},{mode:1});var kEc;_.QO("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Fk=function(){return _.a.apply(this,arguments)||this};
_.M(Fk,_.a);Fk.prototype.onChange=function(G){if(G=_.a_(G).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.U("kevlar_command_handler_migration_killswitch"))_.Su(this.hostElement,G,this.hostElement);else{G=_.e(G);for(var b=G.next();!b.done;b=G.next())this.ytComponentBehavior.resolveCommand(b.value)}};
Fk.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Fk.prototype.updateDataToggledFromBinding=function(G){this.set("data.toggled",G.detail.value)};
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Fk.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Fk.prototype,"data",void 0);_.R([_.H({computed:"isEnabled(data)"}),_.n("design:type",Boolean)],Fk.prototype,"enabled",void 0);_.R([_.N({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Fk);
_.J(Fk,"ytd-toggle-item-renderer",function(){if(kEc!==void 0)return kEc;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return kEc=G},{mode:1});var vB3;var LZa;var QQc;var HE=function(){var G=_.a.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};
_.M(HE,_.a);HE.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}}}}}};
HE.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
HE.prototype.onSubmitButtonClick=function(){var G;((G=this.data)==null?0:G.submitEndpoint)&&!_.U("enable_ytc_refunds_submit_form_signal_action")&&_.pv(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
HE.prototype.handleSignalActionSubmitForm=function(){var G;((G=this.data)==null?0:G.submitEndpoint)&&_.pv(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.kV.Object.defineProperties(HE.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.hiddenByDefault)&&!this.setVisible}}});
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],HE.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],HE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],HE.prototype,"setVisible",void 0);_.R([_.H(),_.n("design:type",Object)],HE.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],HE.prototype,"surveyFeedbackData",void 0);_.R([_.H(),_.n("design:type",Object)],HE.prototype,"boundOnSubmitButtonClick",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data","setVisible"),_.n("design:type",Object),_.n("design:paramtypes",[])],HE.prototype,"visibilityHidden",null);_.R([_.g8({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],HE);
_.J(HE,"yt-flow-footer-renderer",function(){if(QQc===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;LZa===void 0&&(LZa=document.createElement("template"));var h=LZa;I.call(b,h.content.cloneNode(!0),G.content.firstChild);QQc=G}G=QQc;return G},{mode:2});var x$L=(0,_.WPn)(_.yW.ypc,{surveyFeedbackDataSelector:function(G){return G.surveyFeedbackData}});var WE=function(){return _.a.apply(this,arguments)||this};
_.M(WE,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],WE.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],WE.prototype,"data",void 0);_.R([_.H({selector:x$L.surveyFeedbackDataSelector}),_.n("design:type",Object)],WE.prototype,"surveyFeedbackData",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],WE);
_.J(WE,"ytd-flow-footer-renderer",function(){if(vB3!==void 0)return vB3;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vB3=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var fTD;var TO1;var a6=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return G};
_.M(a6,_.a);_.m=a6.prototype;_.m.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.xo("multiPageMenuSectionItems")}}};
_.m.handleHideEnclosingAction_=function(G){if(this.data&&this.data.items)for(var b=0;b<this.data.items.length;b++){var I=this.data.items[b].notificationRenderer;if(I&&I.notificationId==G.hideEnclosingAction.notificationId){this.splice("data.items",b,1);_.wL(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.m.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.XA(this.hostElement,"hidden",!0)};
_.m.updateMenu_=function(G){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&G&&!G.doNotRefreshInbox){G=this.data.continuations;for(var b=0;b<G.length;b++)if(G[b].invalidationContinuationData){var I=void 0;var h=(I=G[b].invalidationContinuationData)==null?void 0:I.continuation;break}G=_.Cy.clone(this.data.continuationUpdateEndpoint||null);G.continuation=h;G.click_tracking_params=this.data.trackingParams;_.pv(this.hostElement,[G])}};
_.m.onServiceRequestCompleted_=function(G,b){if(this.data&&(G=b.actions)){b=0;for(var I=G.length;b<I;b++){var h=_.g(G[b],_.NIi);if(!h)break;if((h.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||h.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&h.continuationItems&&this.data.items){var q=this.data.items.length-1;this.data.items[q].continuationItemRenderer&&(h=["data.items",q,1].concat(h.continuationItems),this.splice.apply(this,h))}}}};
a6.prototype.onServiceRequestCompleted_=a6.prototype.onServiceRequestCompleted_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],a6.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],a6.prototype,"data",void 0);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],a6.prototype,"onServiceRequestCompleted_",null);_.R([_.g8({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],a6);
_.R9()(a6,"yt-multi-page-menu-section-renderer",function(){if(TO1===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;fTD===void 0&&(fTD=document.createElement("template"));var h=fTD;I.call(b,h.content.cloneNode(!0),G.content.firstChild);TO1=G}G=TO1;return G},{allowedProps:["data"],
mode:2});var BOj;var U$8;var N4=function(){return _.a.apply(this,arguments)||this};
_.M(N4,_.a);N4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.kV.Object.defineProperties(N4.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],N4.prototype,"data",void 0);_.R([_.P("data.progress"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],N4.prototype,"showProgressBar",null);
_.R([_.P("data.progress"),_.n("design:type",Number),_.n("design:paramtypes",[])],N4.prototype,"progress",null);_.R([_.g8({is:"yt-flow-header-renderer",disableElementRegistration:!0})],N4);
_.J(N4,"yt-flow-header-renderer",function(){if(U$8===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;BOj===void 0&&(BOj=document.createElement("template"));var h=BOj;I.call(b,h.content.cloneNode(!0),G.content.firstChild);U$8=G}G=U$8;return G},{mode:2});var sQe;var gBj;var YR=function(){return _.a.apply(this,arguments)||this};
_.M(YR,_.a);YR.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],YR.prototype,"data",void 0);_.R([_.g8({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],YR);
_.J(YR,"yt-post-confirmation-flow-step-renderer",function(){if(gBj===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;sQe===void 0&&(sQe=document.createElement("template"));var h=sQe;I.call(b,h.content.cloneNode(!0),G.content.firstChild);gBj=G}G=gBj;return G},{mode:2});var AhK;var Mqe;var Ch=function(){return _.a.apply(this,arguments)||this};
_.M(Ch,_.a);
Ch.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ch.prototype,"data",void 0);_.R([_.g8({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ch);
_.J(Ch,"yt-refund-confirmation-flow-step-renderer",function(){if(Mqe===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;AhK===void 0&&(AhK=document.createElement("template"));var h=AhK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Mqe=G}G=Mqe;return G},{mode:2});var Zlc=_.C(function(G){var b=G.data;return _.v("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.v("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.v(_.Fu,{data:function(){return{thumbnails:[{url:b().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.v("div",{class:"profileBadgeViewModelContent"},_.v("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return b().badgeDesc}),_.v(_.Q,{cond:function(){return b().badgeSubtitle},
then:function(){return _.v("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return b().badgeSubtitle})}})))},"cj");
Zlc.idomCompat=!0;var tqD=_.C(function(G){var b=G.data;return _.v("yt-comment-interaction-view-model",{el:_.Wv(_.s2(function(){return b().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.v("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return b().onTapA11yLabel},
"on:keydown":_.Cfr(),tabindex:0},_.v("div",{class:"ytCommentInteractionViewModelHeader"},_.v("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return b().headerPrefix},' "',function(){return b().videoTitle}),_.v("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.v("div",{class:"ytCommentInteractionViewModelContent"},_.v("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return b().commentContent}),_.v("div",{class:"ytCommentInteractionViewModelChevron"},
_.v(_.Fu,{data:function(){return{thumbnails:[{url:b().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"dj");
tqD.idomCompat=!0;var zIf=_.C(function(G){var b=G.data;return _.v("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.v(_.VX,{data:function(){return b().avatar}},{avatarViewModel:_.Om}),_.v("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return b().channelName}))},"ej");
zIf.idomCompat=!0;var yhc=_.C(function(G){var b=G.data;G={};return _.v("yt-profile-info-view-model",{class:_.pG("ytProfileInfoViewModelHost",(G.ytProfileInfoViewModelWithVideoShelf=function(){return b().videosHorizontalShelf},G))},_.v(oBj,{profileInfo:b}),_.v(_.VX,{data:function(){return b().videosHorizontalShelf}},{horizontalShelfViewModel:function(I){return _.v("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.v(_.qF,{data:I.data}))}}),_.v(_.Q,{cond:function(){return b().comments},
then:function(){return _.v(ilc,{profileInfo:b})}}),_.v(_.Q,{cond:function(){return b().sharedSubscriptionsTitle},
then:function(){return _.v(_.Q,{cond:function(){return b().subscriptionsAccessButtonCommand},
then:function(){return _.v(P2D,{profileInfo:b})},
else:function(){return _.v(d$9,{profileInfo:b})}})}}))},"fj");
yhc.idomCompat=!0;var ilc=_.C(function(G){var b=G.profileInfo;return _.v("div",{class:"ytProfileInfoViewModelActivity"},_.v("div",{class:"ytProfileInfoViewModelHeader"},_.v("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return b().commentsInteractionTitle})),_.v(_.VX,{data:function(){return b().comments}},{commentInteractionViewModel:function(I){return _.v("div",{class:"ytProfileInfoViewModelActivity"},_.v(tqD,{data:I.data}))}}))},"gj"),P2D=_.C(function(G){var b=G.profileInfo;
return _.v("div",{class:"ytProfileInfoViewModelSubSection"},_.v("div",{class:"ytProfileInfoViewModelSubHeader"},_.v(_.LP,{command:function(){return b().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.v("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return b().sharedSubscriptionsTitle}),_.v("div",null,_.v(_.VX,{data:function(){return b().subscriptionsAccessButton}},{buttonViewModel:_.sQ})))),_.v(rhe,{sharedSubscriptions:function(){var I;
return((I=b().sharedSubscriptions)==null?void 0:I.slice(0,5))||[]}}))},"hj"),d$9=_.C(function(G){var b=G.profileInfo;
return _.v("div",{class:"ytProfileInfoViewModelSubSection"},_.v("div",{class:"ytProfileInfoViewModelSubHeader"},_.v("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return b().sharedSubscriptionsTitle})),_.v(rhe,{sharedSubscriptions:function(){var I;
return((I=b().sharedSubscriptions)==null?void 0:I.slice(0,5))||[]}}))},"ij"),rhe=_.C(function(G){return _.v("div",{class:"ytProfileInfoViewModelSubs"},_.v(_.VX,{data:G.sharedSubscriptions},{sharedSubscriptionViewModel:function(b){return _.v("div",{class:"ytProfileInfoViewModelSub"},_.v(zIf,{data:b.data}))}}))},"jj"),oBj=_.C(function(G){var b=G.profileInfo;
return _.v("div",{class:"ytProfileInfoViewModelActivity"},_.v(_.aj,{each:function(){return[b().profileBadgeInfoYtWide,b().profileBadgeInfoChannelWide].filter(function(I){return!!I})},
keyBy:"INDEX"},function(I){return _.v(_.xz,null,_.v("div",{class:"ytProfileInfoViewModelHeader"},_.v("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return I().profileSectionTitle}),_.v("div",{class:"ytProfileInfoViewModelSectionDesc"},_.v("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var h;
return(h=I().commentBadge)==null?void 0:h.commentDesc}),_.v(_.Q,{cond:function(){var h;
return(h=I().commentBadge)==null?void 0:h.blackHeartDesc},
then:function(){return _.v("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.v("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.v(_.Fu,{data:function(){var h;
return{thumbnails:[{url:(h=I().commentBadge)==null?void 0:h.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.v("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var h;return(h=I().commentBadge)==null?void 0:h.blackHeartDesc}))),_.v("div",{class:"ytProfileInfoViewModelBadge"},_.v(_.aj,{each:function(){return I().badges||[]}},function(h){return _.v(Zlc,{data:h})})))}))},"kj");var FZY=_.C(function(G){var b=G.data;var I=function(){return b().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.v("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.v(_.VX,{data:function(){return b().profileIdentityInfo}},{profileIdentityInfoViewModel:function(h){return _.v(_.TK1,{data:h.data,
hideDivider:I,isChannelInfoCard:I})},
profileInfoViewModel:yhc}),_.v(_.VX,{data:function(){return b().profileInfo}},{profileIdentityInfoViewModel:_.TK1,
profileInfoViewModel:yhc}))},"lj");
FZY.idomCompat=!0;_.JN(FZY,"yt-profile-card-view-model",{props:{data:_.hV}});var JS=function(){var G=_.a.apply(this,arguments)||this;G.enableFocusFix=_.U("music_web_enable_focus_on_setting_menu_fix")&&_.Sk("IS_MOBILE_WEB",!1);G.covered=!1;G.hideMenu=!1;G.isCommentNotificationOnProfileCard=!1;G.scrolledByTouch=!1;G.disableBackdropFilter=_.U("web_disable_backdrop_filter");G.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return G};
_.M(JS,_.a);_.m=JS.prototype;
_.m.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"}}}};
_.m.ready=function(){var G=this;this.JSC$20565_containerElement.addEventListener("scroll",function(){G.ytRendererBehavior.markDirty()})};
_.m.attributeChanged=function(G,b){G==="menu-style"&&_.wL(this.hostElement,"yt-multi-page-menu-closed-action",[b])};
_.m.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.I9(this,this.focusOnStampFinished))};
_.m.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.I9(this,this.focusOnStampFinished))};
_.m.reset=function(){this.closeJobId&&(_.uu.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.m.focusOnStampFinished=function(G){G.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.I9(this,this.focusOnStampFinished)),this.doFocus())};
_.m.doFocus=function(){var G=_.C0n(this.sectionsElement);G.length&&G[0].focus()};
_.m.computeMenuStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.m.computeIsCommentNotificationOnProfileCard=function(G){return _.U("enable_profile_cards_on_comments")&&G.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.m.computeHideMenu=function(G,b){return G||!(!b||!b.showLoadingSpinner)};
_.m.onPopupClosed=function(){this.isPopUpOpen=!1;_.wL(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.m.onPopupOpened=function(G,b){this.isPopUpOpen=!0;b.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.O3(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.wK({type:"CHANNEL_REPORT_RESET"})))};
_.m.onYtNavigate=function(G,b){this.shouldCloseOnNavigateEvent(b.endpoint)&&_.wL(this.hostElement,"yt-close-all-popups-action")};
_.m.handleEndpoint=function(G){G=_.g(G,_.pb);!this.isCommentNotificationOnProfileCard&&G&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20565_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.m.handleActions=function(G){for(var b=0,I=G.length;b<I;b++){var h=_.g(G[b],IXY);h&&this.handleGetMultiPageMenuAction(h);(h=_.g(G[b],_.NIi))&&this.handleAppendContinuationItemsAction(h)}};
_.m.onServiceRequestSentOrCompleted=function(G,b){G.detail&&G.detail.endpoint&&this.handleEndpoint(G.detail.endpoint);b.actions&&this.handleActions(b.actions)};
_.m.handleGetMultiPageMenuAction=function(G){var b=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Eo(this.submenuElement).appendChild(b);(G=G.menu.multiPageMenuRenderer)&&this.logSubmenu(G);b.data=G;b.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.m.handleAppendContinuationItemsAction=function(G){if(this.data&&G.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&G.continuationItems&&this.data.sections){var b=this.data.sections.length-1;this.data.sections[b].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),b--);if(this.data.sections[b].multiPageMenuNotificationSectionRenderer&&G.continuationItems){G=_.e(G==null?void 0:G.continuationItems);for(var I=G.next();!I.done;I=G.next())if(I=I.value,_.g(I,oXW)){var h=
void 0,q=void 0,l=void 0,V=void 0,D=void 0;((h=this)==null?0:(q=h.data)==null?0:(l=q.sections)==null?0:(V=l[b])==null?0:(D=V.multiPageMenuNotificationSectionRenderer)==null?0:D.items)&&this.push("data.sections."+b+".multiPageMenuNotificationSectionRenderer.items",I)}else if(_.g(I,_.iYX)||_.g(I,_.Yg))this.push("data.sections",I),b++}}};
_.m.logSubmenu=function(G){if(!_.U("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var b=this.ytRendererBehavior.getScreenLayer(),I=_.gL(b),h=_.s3(b);if((G=G.trackingParams)&&I&&h){var q=_.VB(G);_.U("combine_ve_grafts")?_.qo().graftServerVe(G,h,b):_.dK(I,h,q)}}};
_.m.emptySubmenuContainer=function(){for(var G=_.Eo(this.submenuElement);G.firstChild;)G.removeChild(G.firstChild)};
_.m.onMenuBackTap=function(G){_.O3(this.hostElement,"yt-submenu-closed");G.stopPropagation()};
_.m.onSubmenuClosed=function(G){_.a_(G)!==this.hostElement&&(this.covered=!1,_.O3(this.hostElement,"yt-refit"),G.stopPropagation())};
_.m.onRetrieveLocation=function(G,b){b.hasComments&&(b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),G.stopPropagation())};
_.m.shouldCloseOnNavigateEvent=function(G){if(!G)return!0;if(_.g(G,_.edO)||_.g(G,_.VdQ)||_.g(G,_.mDJ)||_.g(G,_.bx))return!1;var b;return((b=_.g(G==null?void 0:G.commandMetadata,_.IW))==null?0:b.ignoreNavigation)?!1:!0};
_.m.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.m.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.m.refitAfterRender=function(){var G=this;_.D1(this,function(){_.O3(G.hostElement,"yt-refit")})};
JS.prototype.refitAfterRender=JS.prototype.refitAfterRender;JS.prototype.onRetrieveLocation=JS.prototype.onRetrieveLocation;JS.prototype.onSubmenuClosed=JS.prototype.onSubmenuClosed;JS.prototype.onMenuBackTap=JS.prototype.onMenuBackTap;JS.prototype.onServiceRequestSentOrCompleted=JS.prototype.onServiceRequestSentOrCompleted;JS.prototype.onYtNavigate=JS.prototype.onYtNavigate;JS.prototype.onPopupOpened=JS.prototype.onPopupOpened;JS.prototype.onPopupClosed=JS.prototype.onPopupClosed;
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],JS.prototype,"ytEventForwardingBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],JS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],JS.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],JS.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],JS.prototype,"enableFocusFix",void 0);_.R([_.H(),_.n("design:type",Object)],JS.prototype,"covered",void 0);_.R([_.H({computed:"computeHideMenu(covered, data)"}),_.n("design:type",Object)],JS.prototype,"hideMenu",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.n("design:type",String)],JS.prototype,"menuStyle",void 0);
_.R([_.H({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.n("design:type",Object)],JS.prototype,"isCommentNotificationOnProfileCard",void 0);_.R([_.H(),_.n("design:type",Boolean)],JS.prototype,"isPopUpOpen",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],JS.prototype,"scrolledByTouch",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],JS.prototype,"disableBackdropFilter",void 0);
_.R([_.lH("#sections"),_.n("design:type",HTMLElement)],JS.prototype,"sectionsElement",void 0);_.R([_.lH("#spinner"),_.n("design:type",HTMLElement)],JS.prototype,"spinnerElement",void 0);_.R([_.lH("#header"),_.n("design:type",HTMLElement)],JS.prototype,"headerElement",void 0);_.R([_.lH("#container"),_.n("design:type",HTMLElement)],JS.prototype,"JSC$20565_containerElement",void 0);_.R([_.lH("#submenu"),_.n("design:type",HTMLElement)],JS.prototype,"submenuElement",void 0);
_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JS.prototype,"onPopupClosed",null);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],JS.prototype,"onPopupOpened",null);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],JS.prototype,"onYtNavigate",null);
_.R([_.hI("yt-service-request-completed"),_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],JS.prototype,"onServiceRequestSentOrCompleted",null);_.R([_.hI("yt-menu-back-tapped"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],JS.prototype,"onMenuBackTap",null);
_.R([_.hI("yt-submenu-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],JS.prototype,"onSubmenuClosed",null);_.R([_.hI("yt-retrieve-location"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],JS.prototype,"onRetrieveLocation",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],JS.prototype,"refitAfterRender",null);
_.R([_.N({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],JS);
_.J(JS,"ytd-multi-page-menu-renderer",function(){if($$3!==void 0)return $$3;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $$3=G},{mode:1});var Hl5;var Kh=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return G};
_.M(Kh,_.a);_.m=Kh.prototype;_.m.created=function(){this.showTooltips=!0};
_.m.computeAccessibility_=function(G){return this.get("accessibility.accessibilityData",G)||null};
_.m.onTap=function(){var G=_.E3(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(G&&G.length===1&&G[0])_.wL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var b;if((b=this.data)==null?0:b.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var I;((I=this.data)==null?0:I.menuRequest)&&_.pv(this.hostElement,[this.data.menuRequest])}}};
_.m.handleTopbarMenuClosedAction=function(G){var b,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)===((b=this.data)==null?void 0:(I=b.icon)==null?void 0:I.iconType)&&this.toggleIconState(!1)};
_.m.toggleIconState=function(G){_.U("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=G)};
_.m.handleUpdateTopbarAvatarAction=function(G){var b;G=(b=_.g(G,Erc))==null?void 0:b.avatarUrl;var I,h;b=(I=this.data)==null?void 0:(h=I.avatar)==null?void 0:h.thumbnails;G&&b&&(I={thumbnails:[Object.assign({},b[0],{url:G})]},this.set("data.avatar",I))};
_.kV.Object.defineProperties(Kh.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Eo(this.hostElement).querySelector("#button")}}});
Kh.prototype.onTap=Kh.prototype.onTap;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Kh.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],Kh.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.tsW.YtButtonBehavior),_.n("design:type",Object)],Kh.prototype,"ytButtonBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Kh.prototype,"data",void 0);
_.R([_.lH("yt-icon-button#button"),_.n("design:type",Object)],Kh.prototype,"iconButton",void 0);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Kh.prototype,"onTap",null);_.R([_.N({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Kh);
_.R9()(Kh,"ytd-topbar-menu-button-renderer",function(){if(Hl5===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);Hl5=G}G=Hl5;return G},{allowedProps:["data"],
mode:1});var WZe;var uV=function(){return _.a.apply(this,arguments)||this};
_.M(uV,_.a);uV.prototype.getSelected=function(){return this.reasons.selected};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],uV.prototype,"data",void 0);_.R([_.lH("#reasons"),_.n("design:type",Object)],uV.prototype,"reasons",void 0);_.R([_.N({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],uV);
_.J(uV,"ytd-ad-feedback-content",function(){if(WZe!==void 0)return WZe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return WZe=G},{mode:1});var aT3;var R6=function(){return _.a.apply(this,arguments)||this};
_.M(R6,_.a);_.m=R6.prototype;_.m.onPopupOpened=function(){_.wL(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.m.computeConfirmButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.confirmLabel}};
_.m.computeCancelButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.cancelLabel}};
_.m.onConfirmTap=function(){var G=this.content.getSelected();G!==void 0&&(G=this.data.reasons[G].endpoint)&&(_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}}),_.wL(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.m.sendFeedbackSubmitToastAction=function(){var G;(G=this.data)!=null&&G.completionMessage&&(G=_.Kw(this.data.completionMessage),_.wL(this.hostElement,"yt-open-popup-action",[G,this]))};
_.m.onCancelTap=function(){_.wL(this.hostElement,"yt-close-popup-action")};
R6.prototype.onPopupOpened=R6.prototype.onPopupOpened;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],R6.prototype,"data",void 0);_.R([_.lH("#content"),_.n("design:type",Object)],R6.prototype,"content",void 0);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],R6.prototype,"onPopupOpened",null);
_.R([_.N({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],R6);
_.J(R6,"ytd-ad-feedback-renderer",function(){if(aT3!==void 0)return aT3;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return aT3=G},{mode:1});var NO3;var Y99=function(){return _.a.apply(this,arguments)||this};
_.M(Y99,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Y99.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Y99.prototype,"data",void 0);_.R([_.N({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Y99);
_.J(Y99,"ytd-ad-info-dialog-content",function(){if(NO3!==void 0)return NO3;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return NO3=G},{mode:1});var C2Y;var nh=function(){return _.a.apply(this,arguments)||this};
_.M(nh,_.a);nh.prototype.computeConfirmButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.confirmLabel}};
nh.prototype.onConfirmTap=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
nh.prototype.computeShouldShowTitle=function(){var G;return!((G=this.data)==null||!G.title)};
nh.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.LL().resolve(_.xW).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
nh.prototype.onPopupClosed=nh.prototype.onPopupClosed;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],nh.prototype,"data",void 0);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],nh.prototype,"onPopupClosed",null);_.R([_.N({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],nh);
_.J(nh,"ytd-ad-info-dialog-renderer",function(){if(C2Y!==void 0)return C2Y;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return C2Y=G},{mode:1});var Jhj;var OW=function(){var G=_.a.apply(this,arguments)||this;G.actionButtonClass="action-button";G.dismissButtonId="dismiss-button";G.dialogDismiss=!0;return G};
_.M(OW,_.a);_.m=OW.prototype;_.m.computeInPlayer=function(G){return(G==null?void 0:G.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.m.computedLogo=function(){var G,b;return this.isDarkTheme()?(G=this.data)==null?void 0:G.logoDark:(b=this.data)==null?void 0:b.logo};
_.m.computedHeaderImage=function(){var G,b;return this.isDarkTheme()?(G=this.data)==null?void 0:G.headerImageDark:(b=this.data)==null?void 0:b.headerImage};
_.m.computeLogoIconId=function(){var G,b,I,h=(G=this.computedLogo())==null?void 0:(b=G.sources)==null?void 0:(I=b[0])==null?void 0:I.height;return h&&h%31===0?"logo-icon-with-padding":"logo-icon"};
_.m.computeLogoIconHeight=function(){var G,b,I,h=(G=this.computedLogo())==null?void 0:(b=G.sources)==null?void 0:(I=b[0])==null?void 0:I.height;return h&&h%31===0?"31":"24"};
_.m.onPopupClosed=function(){_.LL().resolve(_.aQ).dispose()};
_.m.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.m.onShow=function(){this.inPlayer&&_.hL(6);this.titleElement.focus()};
_.m.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var G=0;G<this.data.impressionEndpoints.length;G++){var b=_.g(this.data.impressionEndpoints[G],_.U0);b&&this.ytComponentBehavior.resolveCommand(b)}};
_.m.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.wL(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.kV.Object.defineProperties(OW.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var G,b;return!((G=this.data)==null||!G.headerImageDark)&&!((b=this.data)==null||!b.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.secondaryButton)}}});
OW.prototype.onPopupClosed=OW.prototype.onPopupClosed;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],OW.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.X6.YtVisibilityBehavior),_.n("design:type",Object)],OW.prototype,"ytVisibilityBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],OW.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],OW.prototype,"actionButtonClass",void 0);_.R([_.H(),_.n("design:type",Object)],OW.prototype,"dismissButtonId",void 0);_.R([_.H(),_.n("design:type",Object)],OW.prototype,"dialogDismiss",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],OW.prototype,"hasHeaderImage",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],OW.prototype,"hasPremiumButton",null);
_.R([_.H({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.n("design:type",Boolean)],OW.prototype,"inPlayer",void 0);_.R([_.lH("#dismiss-button"),_.n("design:type",HTMLElement)],OW.prototype,"dismissButton",void 0);_.R([_.lH("#title"),_.n("design:type",HTMLElement)],OW.prototype,"titleElement",void 0);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],OW.prototype,"onPopupClosed",null);
_.R([_.N({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],OW);
_.J(OW,"ytd-enforcement-message-view-model",function(){if(Jhj!==void 0)return Jhj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Jhj=G},{mode:1});var KZ1;var u98;var wJ=function(){var G=_.a.apply(this,arguments)||this;G.TEST_ONLY={immediateValidation:function(){G.immediateValidation()},
onValidationResponse:function(b){G.onValidationResponse(b)},
onGenerateHandleFromNameResponse:function(b){G.onGenerateHandleFromNameResponse(b)}};
return G};
_.M(wJ,_.a);_.m=wJ.prototype;_.m.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.m.validate=function(){this.immediateValidation()};
_.m.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.m.setHandleInputValue=function(G){this.handleDir=this.getHandleDir(G);this.handleInput.value=G;this.validationState={status:"PENDING"};this.immediateValidation()};
_.m.getHandleDir=function(G){var b=G===""&&!1;return(b=_.qSu.test.call(_.qSu,G))?"rtl":"ltr"};
_.m.onDataChanged=function(){var G,b;this.handleDir=this.getHandleDir((b=(G=this.data)==null?void 0:G.handle)!=null?b:"");var I;this.validationState=((I=this.data)==null?0:I.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var h;((h=this.data)==null?0:h.validateOnInit)&&this.immediateValidation()};
_.m.stopPropagation=function(G){G.stopPropagation()};
_.m.onInput=function(){var G;this.handleDir=this.getHandleDir((G=this.handleInput.value)!=null?G:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.m.onFocusout=function(G){this.handleInput.contains(G.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.m.delayedValidation=function(){var G,b;this.debouncedValidation((b=(G=this.data)==null?void 0:G.validationDelayMs)!=null?b:1E3)};
_.m.immediateValidation=function(){this.debouncedValidation(0)};
_.m.debouncedValidation=function(G){var b=this;_.P5(this,"debouncedValidation",function(){var I,h=b.staticValidation((I=b.handleInput.value)!=null?I:"");if(h!==void 0)b.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:h};else{var q;if((q=b.data)!=null&&q.validateChannelHandleCommand){b.validationState={status:"LOADING"};var l;b.ytComponentBehavior.resolveCommand(b.data.validateChannelHandleCommand,{form:{handle:(l=b.handleInput.value)!=null?l:""},commandController:{onSuccess:function(V,
D){b.onValidationResponse(D)},
onServerError:function(V,D){b.onValidationServerError(D)}}})}else b.handleUnexpectedValidationError(new _.Wf("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",b.data))}},G)};
_.m.staticValidation=function(G){var b;if(((b=this.data)==null?void 0:b.channelHandleStaticValidationParams)!==void 0){b=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(G)&&b.validValueRegexpErrorMessage!==void 0)return b.validValueRegexpErrorMessage;if(b.minLength!==void 0&&G.length<b.minLength&&b.minLengthErrorMessage!==void 0)return b.minLengthErrorMessage;if(b.maxLength!==void 0&&G.length>b.maxLength&&b.maxLengthErrorMessage!==void 0)return b.maxLengthErrorMessage}};
_.m.onValidationResponse=function(G){var b=_.g(G.result,p_j);b===void 0?this.handleUnexpectedValidationError(new _.Wf("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",G)):this.handleValidationResultRenderer(b)};
_.m.onValidationServerError=function(G){this.handleUnexpectedValidationError(new _.Wf("ValidateChannelHandle request failed.",G))};
_.m.handleValidationResultRenderer=function(G){if(G.handle===void 0)this.handleUnexpectedValidationError(new _.Wf("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 _.Wf("Unrecognized ChannelHandleValidationResult",G));break;default:_.Eu(G.result)}};
_.m.handleUnexpectedValidationError=function(G){var b;this.validationState={status:"UNKNOWN",handle:(b=this.handleInput.value)!=null?b:""};_.RB(G)};
_.m.stopEventPropagation=function(G){G.stopPropagation()};
_.m.updateHandleOnChannelNameInputChange=function(G){if(!this.wasEdited){var b,I;this.debouncedGenerateHandleFromName(G,(I=(b=this.data)==null?void 0:b.validationDelayMs)!=null?I:1E3)}};
_.m.debouncedGenerateHandleFromName=function(G,b){var I=this;_.P5(this,"debouncedGenerateHandleFromName",function(){var h;(h=I.data)!=null&&h.validateChannelHandleCommand?I.ytComponentBehavior.resolveCommand(I.data.validateChannelHandleCommand,{form:{name:G},commandController:{onSuccess:function(q,l){I.onGenerateHandleFromNameResponse(l)},
onServerError:function(q,l){_.RB(new _.Wf("Error calling GenerateHandleFromName",l))}}}):_.RB(new _.Wf("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",I.data))},b)};
_.m.onGenerateHandleFromNameResponse=function(G){this.wasEdited||((G=_.g(G.result,SRD))?this.setHandleInputValue(G.handle):_.RB(new _.Wf("Invalid results when generate handle from name")))};
_.kV.Object.defineProperties(wJ.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,b=(G=this.channelHandleEntity)==null?void 0:G.handleEdit;this.handleDir=this.getHandleDir(b!=null?b:"");return b}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var G,b;if(((G=this.data)==null?void 0:(b=G.channelHandleStaticValidationParams)==null?void 0:b.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
wJ.prototype.stopEventPropagation=wJ.prototype.stopEventPropagation;wJ.prototype.onDataChanged=wJ.prototype.onDataChanged;wJ.prototype.applyHandleEdit=wJ.prototype.applyHandleEdit;wJ.prototype.onValueChanged=wJ.prototype.onValueChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],wJ.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],wJ.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],wJ.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Boolean)],wJ.prototype,"wasEdited",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],wJ.prototype,"handleDir",void 0);_.R([_.lH("#handle-input"),_.n("design:type",Object)],wJ.prototype,"handleInput",void 0);_.R([_.H(),_.P("validationState"),_.n("design:type",Object),_.n("design:paramtypes",[])],wJ.prototype,"value",null);
_.R([_.q5("value"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wJ.prototype,"onValueChanged",null);_.R([_.P("validationState"),_.n("design:type",Object),_.n("design:paramtypes",[])],wJ.prototype,"errorIndicator",null);_.R([_.H({reflectToAttribute:!0}),_.P("errorIndicator"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],wJ.prototype,"borderErrorIndicator",null);
_.R([_.H({selectorArgs:["data.channelHandleEntityKey"],selector:function(G,b){return _.Gi(G.entities,"channelHandle",b)}}),
_.n("design:type",Object)],wJ.prototype,"channelHandleEntity",void 0);_.R([_.P("channelHandleEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],wJ.prototype,"handleEdit",null);_.R([_.q5("handleEdit"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wJ.prototype,"applyHandleEdit",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wJ.prototype,"onDataChanged",null);
_.R([_.P("data.channelHandleStaticValidationParams.validValueRegexp"),_.n("design:type",Object),_.n("design:paramtypes",[])],wJ.prototype,"validValueRegexp",null);_.R([_.hI("yt-service-request-sent"),_.hI("yt-service-request-completed"),_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],wJ.prototype,"stopEventPropagation",null);_.R([_.N({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],wJ);
_.J(wJ,"ytd-channel-handle-input-renderer",function(){if(u98!==void 0)return u98;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return u98=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var EW=function(){var G=_.a.apply(this,arguments)||this;G.data=null;G.errorMessage=null;G.isLoading=!0;G.hideContainer=!1;G.enableNewChannelCreationOnIdForAll=_.U("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(b){G.resetErrorState();
G.setErrorState(b)}};
return G};
_.M(EW,_.a);_.m=EW.prototype;_.m.created=function(){this.logScreenVe()};
_.m.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")};
_.m.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var G;((G=this.zeroStepErrorMessageEntity)==null?0:G.value)&&this.set("errorMessage",_.ao(this.zeroStepErrorMessageEntity.value))};
_.m.onCreateTap=function(){var G=this;if(this.data&&this.data.channelCreationEndpoint){var b,I;if(!((b=this.data.createChannelButton)==null?0:(I=b.buttonRenderer)==null?0:I.isDisabled)){var h;if((h=this.nameInput)!=null&&h.value){this.setLoadingState();var q,l;b=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(q=this.handleInput)==null?void 0:q.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((l=this.handleInput)==null?void 0:l.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:b,commandController:{onSuccess:function(V,D){G.onChannelCreationEndpointSuccess(D);G.obakeImageSource&&_.C1("channelCreatedWithObakeImage",{imageSourceType:G.obakeImageSource})},
onServerError:function(){G.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.m.endpointRequiresServiceRequestAction=function(G){return!!_.g(G,_.UE)||!!_.g(G,Erc)};
_.m.isNavigateAction=function(G){var b;return!!_.g(G,_.ah)||!!_.g((b=_.g(G,G5W))==null?void 0:b.command,_.ah)};
_.m.isPlaylistAction=function(G){return!!_.g(G,_.SI)||!!_.g(G,_.qj)};
_.m.onChannelCreationEndpointSuccess=function(G){if(G.createChannelError){var b;this.setErrorState((b=G.createChannelError)==null?void 0:b.errorMessage);this.handleInput&&this.handleInput.validate()}else{G.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(G.navigationEndpoint);if(G.actions){b=_.e(G.actions);for(var I=b.next();!I.done;I=b.next())if(I=I.value,this.endpointRequiresServiceRequestAction(I)&&this.ytComponentBehavior.resolveCommand(I),this.isNavigateAction(I)){var h=void 0;I=_.g((h=
_.g(I,G5W))==null?void 0:h.command,_.ah);h=void 0;this.isPlaylistAction((h=I)==null?void 0:h.endpoint)&&(_.wL(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),h=void 0,this.ytComponentBehavior.resolveCommand((h=I)==null?void 0:h.endpoint))}}G.actions&&G.actions.some(function(q){var l;return _.g(q,_.ah)||_.g((l=_.g(q,G5W))==null?void 0:l.command,_.ah)})||_.wL(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.m.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.m.onCancelTap=function(){var G,b,I;if(!((G=this.data)==null?0:(b=G.cancelButton)==null?0:(I=b.buttonRenderer)==null?0:I.isDisabled)){var h,q,l;G=(h=this.data)==null?void 0:(q=h.cancelButton)==null?void 0:(l=q.buttonRenderer)==null?void 0:l.command;if(!G||!_.g(G,_.MpO)){var V;this.nameInput&&((V=this.data)==null?0:V.name)&&(this.nameInput.value=this.data.name);var D;this.handleInput&&((D=this.data)==null?0:D.channelHandleInput)&&(this.handleInput.data=_.g(this.data.channelHandleInput,X_9));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.m.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.m.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.m.onClearProfilePhotoTap=function(){var G,b,I;((G=this.data)==null?0:(b=G.clearProfilePhotoButton)==null?0:(I=b.buttonRenderer)==null?0:I.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.m.onEditAvatarTap=function(){var G,b,I;((G=this.data)==null?0:(b=G.editAvatarButton)==null?0:(I=b.buttonRenderer)==null?0:I.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.m.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)};
_.m.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)};
_.m.setErrorState=function(G){this.resetErrorState();if(G)this.set("errorMessage",G);else{var b;if((b=this.zeroStepErrorMessageEntity)==null?0:b.value)this.set("errorMessage",_.ao(this.zeroStepErrorMessageEntity.value));else{var I;((I=this.data)==null?0:I.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.m.fetchImageBlobWithAlr=function(G,b){b=b===void 0?5:b;var I=this,h,q,l,V,D;return _.c(function(k){switch(k.nextAddress){case 1:return k.yield(fetch(G,{method:"GET",mode:"cors"}),2);case 2:h=k.yieldResult;if(h.ok){k.jumpTo(3);break}if(b===0)throw Error();q=I.addJitter(Math.pow(2,5-b));return k.yield(new Promise(function(L){setTimeout(L,q*1E3)}),4);
case 4:return k.return(I.fetchImageBlobWithAlr(G,b-1));case 3:if(!h.headers.get("content-type").split(";").some(function(L){return L.trim()==="text/plain"})){k.jumpTo(5);
break}l=I;V=l.fetchImageBlobWithAlr;return k.yield(h.text(),6);case 6:return k.return(V.call(l,k.yieldResult,b-1));case 5:return k.yield(h.blob(),7);case 7:return D=k.yieldResult,k.return(D)}})};
_.m.addJitter=function(G){var b=G*.3*Math.random();Math.random()>.5&&(b*=-1);return G+b};
_.m.openProfilePicturePicker=function(){var G=this,b,I,h,q,l,V;return _.c(function(D){if(D.nextAddress==1){b=G.data.scottyUploadUrl;if(!b)return D.return();I=document.documentElement.hasAttribute("dark");h=document.body.style.colorScheme;I&&(document.body.style.colorScheme="dark");q=uge(RXj(KSY(Hm9(I?"dark":"light")),function(k){var L,x,f,T,B;return _.c(function(A){if(A.nextAddress==1)return L=_.Re(e41(new PM(k.photoUrl,!1)).build(),"alr","yes"),G.obakeImageSource=G.pictureChangeSourceToObakeImageSourceType(k.photoSource),
_.gm(A,2),G.setLoadingState(),A.yield(G.fetchImageBlobWithAlr(L),4);if(A.nextAddress!=2)return x=A.yieldResult,f=new FileReader,f.addEventListener("load",function(){var t,y,F,W,O,K;return _.c(function(u){if(u.nextAddress==1){if(x.size>15728640)return G.setErrorState((t=G.data)==null?void 0:t.imageSizeErrorMessage),_.RB(Error("Gl")),u.return();if(!f.result)return G.setErrorState((y=G.data)==null?void 0:y.genericImageLoadErrorMessage),_.RB(Error("Hl")),u.return();F=f.result;_.gm(u,2);return u.yield(hbK(x,
b),4)}if(u.nextAddress!=2)return W=u.yieldResult,G.handleImageUpdatedAction(F,W),G.resetErrorState(),_.hF(u,0);O=_.zf(u);G.setErrorState((K=G.data)==null?void 0:K.uploadErrorMessage);if(O instanceof Error)_.K1(O);else{var w=new _.Wf(JSON.stringify(O));_.K1(w)}_.ip(u)})}),f.readAsDataURL(x),_.hF(A,0);
T=_.zf(A);G.setErrorState((B=G.data)==null?void 0:B.genericImageLoadErrorMessage);T instanceof Error?_.K1(T):_.u6(new _.Wf(JSON.stringify(T)));_.ip(A)})}),function(){G.hideContainer=!1;
document.body.style.colorScheme=h});
_.gm(D,2);return((l=G.data)==null?0:l.shouldViewChannelCreationFormForSupex)?D.yield(q.openPicker("profile-picture/art-selection"),5):D.yield(q.openPicker(),5)}if(D.nextAddress!=2)return _.hF(D,0);_.zf(D);G.setErrorState((V=G.data)==null?void 0:V.selectImageErrorMessage);_.ip(D)})};
_.m.pictureChangeSourceToObakeImageSourceType=function(G){switch(G){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.m.logScreenVe=function(){_.oa(_.qo(),124448)};
_.m.graftServerVe=function(){var G=_.s3(),b,I,h=(b=this.data)==null?void 0:(I=b.loggingDirectives)==null?void 0:I.trackingParams;h&&G&&(this.channelCreationFormVe=_.qo().graftServerVe(h,G),G={visualElement:this.channelCreationFormVe},_.b$().reportShown(G))};
_.m.isNameChanged=function(G){var b;return((b=this.data)==null?void 0:b.name)!==G};
_.m.isHandleChanged=function(G){var b,I=_.g((b=this.data)==null?void 0:b.channelHandleInput,X_9);return I&&G?I.handle!==G:!1};
_.m.handleImageUpdatedAction=function(G,b){this.hideContainer=!1;this.previewDataUrl=G;this.encryptedBlobId=b};
_.m.handleImageSelectionErrorAction=function(G){this.hideContainer=!1;this.setErrorState(G)};
_.m.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.m.showContainer=function(){this.hideContainer=!1};
_.m.maybeWipeZeroStepErrorMessage=function(){var G,b=(G=this.data)==null?void 0:G.zeroStepErrorMessageEntityKey,I;b&&((I=this.zeroStepErrorMessageEntity)==null?0:I.value)&&this.ytdReduxBehavior.dispatch(_.Da("stringEntity",b,{key:b,value:""}))};
_.kV.Object.defineProperties(EW.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}}});
EW.prototype.dataChanged=EW.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],EW.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],EW.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],EW.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],EW.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],EW.prototype,"errorMessage",void 0);
_.R([_.H(),_.n("design:type",Object)],EW.prototype,"isLoading",void 0);_.R([_.H(),_.n("design:type",String)],EW.prototype,"previewDataUrl",void 0);_.R([_.H(),_.n("design:type",Number)],EW.prototype,"obakeImageSource",void 0);_.R([_.H(),_.n("design:type",Object)],EW.prototype,"hideContainer",void 0);_.R([_.lH("#title-input"),_.n("design:type",Object)],EW.prototype,"nameInput",void 0);_.R([_.lH("#handle-input"),_.n("design:type",Object)],EW.prototype,"handleInput",void 0);
_.R([_.H(),_.n("design:type",Boolean)],EW.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.R([_.H({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.mNX}),_.n("design:type",Object)],EW.prototype,"zeroStepErrorMessageEntity",void 0);_.R([_.P("data","data.isDefaultProfilePhoto","previewDataUrl"),_.n("design:type",Object),_.n("design:paramtypes",[])],EW.prototype,"photoThumbnail",null);
_.R([_.P("data","data.isDefaultProfilePhoto","photoThumbnail"),_.n("design:type",Object),_.n("design:paramtypes",[])],EW.prototype,"userSetPhotoThumbnailUrl",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],EW.prototype,"hideProfilePhotoButtonLayer",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],EW.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.R([_.Dd("data","zeroStepErrorMessageEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],EW.prototype,"dataChanged",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.descriptionInfo","zeroStepErrorMessageEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],EW.prototype,"description",null);_.R([_.N({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],EW);
_.J(EW,"ytd-channel-creation-dialog-renderer",function(){if(KZ1!==void 0)return KZ1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" 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(_.E().content.cloneNode(!0),G.content.firstChild);return KZ1=G},{mode:1});var RIe;var ph=function(){var G=_.a.apply(this,arguments)||this;G.isLoading=!1;G.isDisabled=!1;return G};
_.M(ph,_.a);ph.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
ph.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)};
ph.prototype.onSaveClick=function(){var G=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var b;((b=this.data)==null?void 0:b.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 h;G.ytComponentBehavior.resolveCommand((h=G.data)==null?void 0:h.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}}}))}};
ph.prototype.closeDialog=function(){_.wL(this.hostElement,"yt-close-popup-action",[this.is])};
ph.prototype.updateDisabled=ph.prototype.updateDisabled;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],ph.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ph.prototype,"data",void 0);_.R([_.lH("#handle-input"),_.n("design:type",Object)],ph.prototype,"handleInput",void 0);_.R([_.q5("isLoading"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],ph.prototype,"updateDisabled",null);
_.R([_.N({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],ph);
_.J(ph,"ytd-channel-handle-edit-dialog-renderer",function(){if(RIe!==void 0)return RIe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return RIe=G},{mode:1});var nB5;var SZ=function(){return _.a.apply(this,arguments)||this};
_.M(SZ,_.a);SZ.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],SZ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],SZ.prototype,"data",void 0);_.R([_.N({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],SZ);
_.J(SZ,"ytd-channel-switcher-footer-renderer",function(){if(nB5!==void 0)return nB5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return nB5=G},{mode:1});var Ole;var wuF;var Xk=function(){return _.a.apply(this,arguments)||this};
_.M(Xk,_.a);Xk.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Xk.prototype.onIronChange=Xk.prototype.onIronChange;_.R([_.H(),_.n("design:type",Object)],Xk.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!1}),_.n("design:type",Function)],Xk.prototype,"onDontAskAgainChanged",void 0);_.R([_.lH("#checkbox"),_.n("design:type",Object)],Xk.prototype,"checkbox",void 0);_.R([_.hI("iron-change"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Xk.prototype,"onIronChange",null);
_.R([_.N({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Xk);
_.J(Xk,"ytd-identity-prompt-footer-renderer",function(){if(wuF!==void 0)return wuF;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return wuF=G},{mode:1});var $N=function(){var G=_.a.apply(this,arguments)||this;G.dontAskAgain=!1;G.showPopup=!1;G.boundDontAskAgainChanged=function(b){G.dontAskAgainChanged(b)};
G.boundOnAccountItemTap=function(b){G.onAccountItemTap(b)};
return G};
_.M($N,_.a);_.m=$N.prototype;
_.m.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]]"}}}}}};
_.m.ready=function(){var G=this;_.Eo(this.hostElement).querySelector("#container").addEventListener("scroll",function(){G.ytRendererBehavior.markDirty()})};
_.m.dontAskAgainChanged=function(G){this.dontAskAgain=G};
_.m.onAccountItemTap=function(G){if(G){var b={};this.dontAskAgain&&(b={dont_ask_again:this.dontAskAgain});_.tL(G,b)}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.m.redirectOnlyAccount=function(G){G.sections&&G.sections.length>0&&(G=_.g(G.sections[0],_.M0e),(G==null?0:G.contents)&&(G==null?void 0:G.contents.length)<=1?(G=_.jO(window.location.href),(G==null?0:G.next)&&_.u8q(G.next)?_.tL(G.next):_.tL("/")):this.showPopup=!0)};
$N.prototype.dataChanged=$N.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],$N.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!1}),_.n("design:type",Object)],$N.prototype,"dontAskAgain",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],$N.prototype,"showPopup",void 0);_.R([_.H({reflectToAttribute:!1}),_.n("design:type",Object)],$N.prototype,"boundDontAskAgainChanged",void 0);_.R([_.H({reflectToAttribute:!1}),_.n("design:type",Object)],$N.prototype,"boundOnAccountItemTap",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$N.prototype,"dataChanged",null);
_.R([_.N({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],$N);
_.J($N,"ytd-channel-switcher-renderer",function(){if(Ole!==void 0)return Ole;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ole=G},{mode:1});var EB5;var G4=function(){return _.a.apply(this,arguments)||this};
_.M(G4,_.a);_.kV.Object.defineProperties(G4.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.R([_.H(),_.n("design:type",Object)],G4.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],G4.prototype,"steps",null);_.R([_.N({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],G4);
_.J(G4,"ytd-channel-transfer-stepper-renderer",function(){if(EB5!==void 0)return EB5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return EB5=G},{mode:1});var puK;var b8=function(){var G=_.a.apply(this,arguments)||this;G.data=null;G.isError=!1;G.isLoading=!1;return G};
_.M(b8,_.a);_.m=b8.prototype;_.m.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"}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.m.computeProfileName=function(G){return G?G.givenNameValue+" "+G.familyNameValue:""};
_.m.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)};
_.m.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)};
b8.prototype.onYtServiceRequestError=b8.prototype.onYtServiceRequestError;b8.prototype.onYtServiceRequestSent=b8.prototype.onYtServiceRequestSent;b8.prototype.dataChanged=b8.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],b8.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],b8.prototype,"data",void 0);
_.R([_.H({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.n("design:type",String)],b8.prototype,"profileName",void 0);_.R([_.H(),_.n("design:type",Object)],b8.prototype,"isError",void 0);_.R([_.H(),_.n("design:type",Object)],b8.prototype,"isLoading",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],b8.prototype,"dataChanged",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],b8.prototype,"onYtServiceRequestSent",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],b8.prototype,"onYtServiceRequestError",null);_.R([_.N({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],b8);
_.J(b8,"ytd-channel-warm-welcome-cont-renderer",function(){if(puK!==void 0)return puK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return puK=G},{mode:1});var S9a;var If=function(){var G=_.a.apply(this,arguments)||this;G.data=null;return G};
_.M(If,_.a);If.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
If.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],If.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],If.prototype,"data",void 0);_.R([_.N({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],If);
_.J(If,"ytd-channel-warm-welcome-renderer",function(){if(S9a!==void 0)return S9a;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return S9a=G},{mode:1});var XuK;var hl=function(){return _.a.apply(this,arguments)||this};
_.M(hl,_.a);_.kV.Object.defineProperties(hl.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.authorThumbnail)||{}}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],hl.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],hl.prototype,"thumbnailDetails",null);_.R([_.N({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],hl);
_.J(hl,"ytd-comment-preview-renderer",function(){if(XuK!==void 0)return XuK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return XuK=G},{mode:1});var $WY;var qY=function(){return _.a.apply(this,arguments)||this};
_.M(qY,_.a);qY.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.kV.Object.defineProperties(qY.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.submitButton}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],qY.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],qY.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],qY.prototype,"submitButton",null);_.R([_.N({is:"ytd-notice-renderer",disableElementRegistration:!0})],qY);
_.J(qY,"ytd-notice-renderer",function(){if($WY!==void 0)return $WY;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return $WY=G},{mode:1});var G$K;var j7=function(){return _.a.apply(this,arguments)||this};
_.M(j7,_.a);j7.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],j7.prototype,"data",void 0);_.R([_.N({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],j7);
_.J(j7,"ytd-preview-comment-dialog-content",function(){if(G$K!==void 0)return G$K;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return G$K=G},{mode:1});var bsD;var l8=function(){return _.a.apply(this,arguments)||this};
_.M(l8,_.a);l8.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
l8.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],l8.prototype,"data",void 0);_.R([_.N({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],l8);
_.J(l8,"ytd-preview-comment-dialog-renderer",function(){if(bsD!==void 0)return bsD;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return bsD=G},{mode:1});var IlK;var hV5=_.U("web_button_rework")&&_.Sk("BUTTON_REWORK")||_.U("web_button_rework_with_live"),mc=function(){var G=_.a.apply(this,arguments)||this;G.closeLabel=_.qP("CLOSE");G.selectedAmountIndex=1;G.privacyCheckboxValue=!1;G.useAmsterdamStyle=hV5;G.amountPlaceholderIndex=-1;return G};
_.M(mc,_.a);_.m=mc.prototype;_.m.onAmountClick=function(G){this.selectedAmountIndex=_.Eo(this.hostElement).querySelector("#amounts").indexForElement(G.currentTarget)};
_.m.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.wL(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.m.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.wL(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.wL(this.hostElement,"yt-close-popup-action",[this.is]);var G;(G=_.Kk())==null||G.getPlayerPromise().then(function(b){b.pauseVideo()})}};
_.m.donationCallback=function(G){G.success?(this.hostElement.hasAttribute("live-chat")&&G.response&&G.response.data&&G.response.data.actions&&_.wL(this.hostElement,"yt-live-chat-open-popup",[G.response.data.actions[0]]),_.wL(this.hostElement,"yt-close-popup-action",[this.is]),_.wL(this.hostElement,"yt-live-chat-close-buy-flow")):G.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(G.errorMessageRenderer)};
_.m.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Eo(this.hostElement).querySelector("#custom-amount-input").focus()};
_.m.updateConfirmationDialogTextWithAmount=function(G){var b=this.getConfirmDialogRuns();b&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(b),"text"],this.getFormattedAmount(G))};
_.m.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.m.getAmountPlaceholderIndex=function(G){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=G.findIndex(function(b){return b.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.m.getFormattedAmount=function(G){var b;return(new _.yg(4,((b=this.data)==null?void 0:b.currencyCode)||"")).format(G)};
_.m.isAmountValid=function(G){if(G==="")return!1;G=Number(G)*1E6;var b=this.get("minAmountMicros",this.data),I=this.get("maxAmountMicros",this.data);return b&&G<b||I&&G>I?!1:!0};
_.m.setInputError=function(){this.shouldShowValidationError?_.Eo(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Eo(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.m.setInitialCheckboxValue=function(){var G;this.privacyCheckboxValue=!((G=this.data)==null||!G.privacyCheckboxInitialState)};
_.m.updateCustomAmountInputFromBinding=function(G){this.customAmountInput=G.detail.value};
_.m.updatePrivacyCheckboxValueFromBinding=function(G){this.privacyCheckboxValue=G.detail.value};
_.kV.Object.defineProperties(mc.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var G=this,b,I;return((b=this.data)==null?void 0:(I=b.suggestedAmounts)==null?void 0:I.map(function(h,q){return{buttonRenderer:{style:G.selectedAmountIndex===q?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:h.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})}}});
mc.prototype.setInitialCheckboxValue=mc.prototype.setInitialCheckboxValue;mc.prototype.setInputError=mc.prototype.setInputError;mc.prototype.setFocusOnCustomAmountInput=mc.prototype.setFocusOnCustomAmountInput;_.R([_.z(md1),_.n("design:type",Object)],mc.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],mc.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],mc.prototype,"closeLabel",void 0);_.R([_.H(),_.n("design:type",Object)],mc.prototype,"selectedAmountIndex",void 0);_.R([_.H(),_.n("design:type",String)],mc.prototype,"customAmountInput",void 0);_.R([_.H(),_.n("design:type",Object)],mc.prototype,"privacyCheckboxValue",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],mc.prototype,"useAmsterdamStyle",void 0);_.R([_.q5("customAmount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mc.prototype,"setFocusOnCustomAmountInput",null);_.R([_.P("data","selectedAmountIndex"),_.n("design:type",Array),_.n("design:paramtypes",[])],mc.prototype,"suggestedAmountButtons",null);
_.R([_.P("data","selectedAmountIndex"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],mc.prototype,"isCustomAmountSelected",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],mc.prototype,"showPrivacyCheckbox",null);_.R([_.P("data","selectedAmountIndex","customAmount"),_.n("design:type",Object),_.n("design:paramtypes",[])],mc.prototype,"amountMicros",null);
_.R([_.P("isCustomAmountSelected","customAmountInput"),_.n("design:type",Object),_.n("design:paramtypes",[])],mc.prototype,"customAmount",null);_.R([_.P("customAmount"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],mc.prototype,"shouldShowValidationError",null);_.R([_.P("customAmount"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],mc.prototype,"isDonateButtonEnabled",null);
_.R([_.P("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.n("design:type",Object),_.n("design:paramtypes",[])],mc.prototype,"donateCommand",null);_.R([_.P("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.n("design:type",Object),_.n("design:paramtypes",[])],mc.prototype,"donateCommandWithConfirmation",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],mc.prototype,"largeDonationThreshold",null);
_.R([_.P("customAmount","donateCommand","amountMicros"),_.n("design:type",Object),_.n("design:paramtypes",[])],mc.prototype,"confirmLargeAmountCommand",null);_.R([_.P("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.n("design:type",Object),_.n("design:paramtypes",[])],mc.prototype,"donateButtonRenderer",null);_.R([_.q5("shouldShowValidationError"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mc.prototype,"setInputError",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mc.prototype,"setInitialCheckboxValue",null);_.R([_.N({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],mc);
_.J(mc,"ytd-donation-amount-picker-renderer",function(){if(IlK!==void 0)return IlK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return IlK=G},{mode:1});var qr1;var jP5=function(){return _.a.apply(this,arguments)||this};
_.M(jP5,_.a);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],jP5.prototype,"ytComponentBehavior",void 0);_.R([_.H({}),_.n("design:type",Object)],jP5.prototype,"data",void 0);_.R([_.N({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],jP5);
_.J(jP5,"ytd-donation-post-transaction-content",function(){if(qr1!==void 0)return qr1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return qr1=G},{mode:1});var llj;var e7=function(){return _.a.apply(this,arguments)||this};
_.M(e7,_.a);e7.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.R([_.H({}),_.n("design:type",Object)],e7.prototype,"data",void 0);_.R([_.N({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],e7);
_.J(e7,"ytd-donation-post-transaction-renderer",function(){if(llj!==void 0)return llj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return llj=G},{mode:1});var mWK;var eV8;var VU=function(){return _.a.apply(this,arguments)||this};
_.M(VU,_.a);VU.prototype.computeIsStreamingProvider=function(G){return!!G.isStreamingShelf};
VU.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],VU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],VU.prototype,"data",void 0);_.R([_.H({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],VU.prototype,"isStreamingProvider",void 0);
_.R([_.N({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],VU);
_.J(VU,"ytd-media-provider-renderer",function(){if(eV8!==void 0)return eV8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return eV8=G},{mode:1});var Vxa;var Dn=function(){return _.a.apply(this,arguments)||this};
_.M(Dn,_.a);Dn.prototype.observeLightsourcePalette=function(){var G,b=(G=this.data)==null?void 0:G.vibrantsourceColorPaletteData;b&&_.vN(this.hostElement,b)};
Dn.prototype.observeLightsourcePalette=Dn.prototype.observeLightsourcePalette;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Dn.prototype,"data",void 0);
_.R([_.q5("data.vibrantsourceColorPaletteData"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Dn.prototype,"observeLightsourcePalette",null);_.R([_.N({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Dn);
_.J(Dn,"ytd-streaming-pop-up-dialog",function(){if(Vxa!==void 0)return Vxa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Vxa=G},{mode:1});var cG=function(){return _.a.apply(this,arguments)||this};
_.M(cG,_.a);cG.prototype.onPopupOpened_=function(){var G;((G=this.data)==null?0:G.serviceEndpoint)&&_.LL().resolve(_.xW).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
cG.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
cG.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"}}}}};
cG.prototype.onPopupOpened_=cG.prototype.onPopupOpened_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.mD),_.n("design:type",Object)],cG.prototype,"ytContinuationHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],cG.prototype,"data",void 0);
_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],cG.prototype,"onPopupOpened_",null);_.R([_.N({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],cG);
_.J(cG,"ytd-brandconnect-popup-renderer",function(){if(mWK!==void 0)return mWK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mWK=G},{mode:1});var DWa;var kN=function(){return _.a.apply(this,arguments)||this};
_.M(kN,_.a);_.m=kN.prototype;_.m.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.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)};
_.m.updateSubmitButton=function(G){this.set("data.submitButton.buttonRenderer.isDisabled",!G)};
_.m.computeAlt=function(G){return _.NO(G)};
_.m.onDismissTap=function(){_.wL(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.LL().resolve(_.xW).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.m.getOptionRenderers=function(G){return(G=G||this.data)&&G.options?G.options.reduce(function(b,I){I.checkboxSurveyOptionRenderer&&b.push(I.checkboxSurveyOptionRenderer);return b},[]):[]};
_.m.onOptionChange=function(G){var b=this,I=!1;if(G.detail.checked)for(var h=this.getOptionRenderers().find(function(D){return D.value===G.detail.value}),q=this.getOptionRenderers(),l=0;l<q.length;l++){var V=q[l];
this.notifyPath("data.options."+l+".checkboxSurveyOptionRenderer.checked");V.checked&&((h==null?0:h.isExclusiveOption)?!V.isExclusiveOption:V.isExclusiveOption)?this.set("data.options."+l+".checkboxSurveyOptionRenderer.checked",!1):V.checked&&(I=!0)}else I=this.getOptionRenderers().some(function(D,k){b.notifyPath("data.options."+k+".checkboxSurveyOptionRenderer.checked");return D.checked});
this.updateSubmitButton(I)};
_.m.onSubmitTap=function(){var G=this.getOptionRenderers().filter(function(l){return l.checked});
if(G.length!==0){var b=G.map(function(l){return l.responseEndpoint});
G=[];for(var I=1;I<b.length;I++){var h=void 0,q=(h=_.g(b[I],_.sE))==null?void 0:h.feedbackToken;q&&G.push(q)}b=[b[0]];G.length&&b.push({extra_feedback_tokens:G});_.pv(this.hostElement,b);_.wL(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);G=this.data&&this.data.submitActions||[];if(_.U("kevlar_command_handler_migration_killswitch"))_.Su(this.hostElement,G,this.hostElement);else for(G=_.e(G),b=G.next();!b.done;b=G.next())this.ytComponentBehavior.resolveCommand(b.value)}};
kN.prototype.onOptionChange=kN.prototype.onOptionChange;kN.prototype.dataChanged=kN.prototype.dataChanged;_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],kN.prototype,"ytEventForwardingBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],kN.prototype,"ytComponentBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.R([_.z(ZSa),_.n("design:type",Object)],kN.prototype,"ytdHatsSurveyBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],kN.prototype,"data",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],kN.prototype,"dataChanged",null);
_.R([_.hI("ytd-checkbox-survey-option-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],kN.prototype,"onOptionChange",null);_.R([_.N({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],kN);
_.J(kN,"ytd-checkbox-survey-renderer",function(){if(DWa!==void 0)return DWa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return DWa=G},{mode:1});var cHK;var k$a;var vG=function(){return _.a.apply(this,arguments)||this};
_.M(vG,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.R([_.z(MjL),_.n("design:type",Object)],vG.prototype,"ytdDismissalReasonBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],vG.prototype,"data",void 0);_.R([_.N({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],vG);
_.J(vG,"ytd-dismissal-reason-text-renderer",function(){if(k$a!==void 0)return k$a;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return k$a=G},{mode:1});var vef;var La=function(){return _.a.apply(this,arguments)||this};
_.M(La,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.R([_.z(MjL),_.n("design:type",Object)],La.prototype,"ytdDismissalReasonBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],La.prototype,"data",void 0);_.R([_.N({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],La);
_.J(La,"ytd-dismissal-reason-video-renderer",function(){if(vef!==void 0)return vef;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vef=G},{mode:1});var QU=function(){return _.a.apply(this,arguments)||this};
_.M(QU,_.a);_.m=QU.prototype;_.m.created=function(){this.selectedFeedbackTokens=new sw};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.m.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.m.onDismissalReasonSelected=function(G,b){_.O3(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(b);this.hasReasonsSelected=!0};
_.m.onDismissalReasonDeselected=function(G,b){_.O3(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(b);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.m.onCancelTap=function(){_.wL(this.hostElement,"yt-close-popup-action")};
_.m.onSubmitTap=function(){var G=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(G={feedback_tokens:G},_.LL().resolve(_.xW).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},G,{element:this.hostElement})}));_.wL(this.hostElement,"yt-close-popup-action")};
QU.prototype.onDismissalReasonDeselected=QU.prototype.onDismissalReasonDeselected;QU.prototype.onDismissalReasonSelected=QU.prototype.onDismissalReasonSelected;QU.prototype.dataChanged=QU.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],QU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],QU.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Boolean)],QU.prototype,"hasReasonsSelected",void 0);_.R([_.H(),_.n("design:type",sw)],QU.prototype,"selectedFeedbackTokens",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],QU.prototype,"dataChanged",null);_.R([_.hI("yt-dismissal-reason-selected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,String]),_.n("design:returntype")],QU.prototype,"onDismissalReasonSelected",null);
_.R([_.hI("yt-dismissal-reason-deselected"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,String]),_.n("design:returntype")],QU.prototype,"onDismissalReasonDeselected",null);_.R([_.N({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],QU);
_.J(QU,"ytd-dismissal-follow-up-renderer",function(){if(cHK!==void 0)return cHK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return cHK=G},{mode:1});var LC1;var xN=function(){return _.a.apply(this,arguments)||this};
_.M(xN,_.a);_.m=xN.prototype;_.m.onCheckedChange=function(){this.multiselect||_.O3(this.hostElement,"yt-feedback-single-select-changed");_.Eo(this.hostElement).querySelector("#freeform").focus();_.O3(this.hostElement,"yt-refit")};
_.m.showTextBox=function(G,b){return G&&b};
_.m.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))};
_.m.updateDataCheckedFromBinding=function(G){this.set("data.checked",G.detail.value)};
_.m.updateDataResultTextFromBinding=function(G){this.set("data.resultText",G.detail.value)};
xN.prototype.dataChanged=xN.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],xN.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],xN.prototype,"multiselect",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xN.prototype,"dataChanged",null);
_.R([_.N({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],xN);
_.J(xN,"ytd-feedback-option-renderer",function(){if(LC1!==void 0)return LC1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return LC1=G},{mode:1});var QP9;var fa=function(){return _.a.apply(this,arguments)||this};
_.M(fa,_.a);fa.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
fa.prototype.onSingleSelectCheckedChanged=function(G){G=_.a_(G);for(var b=0;b<this.data.options.length;b++)if(G.data!==_.g(this.data.options[b],aX5)){var I="data.options."+b+".feedbackOptionRenderer.checked";this.notifyPath(I);this.set(I,!1)}};
fa.prototype.onSingleSelectCheckedChanged=fa.prototype.onSingleSelectCheckedChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fa.prototype,"data",void 0);
_.R([_.hI("yt-feedback-single-select-changed"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],fa.prototype,"onSingleSelectCheckedChanged",null);_.R([_.N({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],fa);
_.J(fa,"ytd-feedback-question-renderer",function(){if(QP9!==void 0)return QP9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return QP9=G},{mode:1});var xWf;var T4=function(){return _.a.apply(this,arguments)||this};
_.M(T4,_.a);T4.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
T4.prototype.getSelectedFeedbackResults=function(){for(var G={},b=0;b<this.data.questions.length;b++)for(var I=_.g(this.data.questions[b],WD5),h=0;h<I.options.length;h++){var q=_.g(I.options[h],aX5);q&&q.checked&&(G[q.optionKey]=q.resultText)}return G};
T4.prototype.onKeyUp=function(){var G=this;_.O0(_.uu,function(){_.O3(G.hostElement,"yt-refit")});
_.uu.start()};
T4.prototype.submitSurvey=function(){var G=this.getSelectedFeedbackResults();Object.keys(G).length>0&&this.data.submitFeedbackEndpoint&&(G={survey_results:G,is_feedback_token_unencrypted:!0},_.LL().resolve(_.xW).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},G,{element:this.hostElement})}))};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],T4.prototype,"data",void 0);_.R([_.N({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],T4);
_.J(T4,"ytd-feedback-survey-renderer",function(){if(xWf!==void 0)return xWf;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xWf=G},{mode:1});var flK;var TW3;var BG=function(){return _.a.apply(this,arguments)||this};
_.M(BG,_.a);BG.prototype.computeAlt=function(G){return _.NO(G)};
BG.prototype.submitResponse=function(){var G,b;(G=this.data)!=null&&G.feedbackToken&&((b=this.data)==null?void 0:b.nextStageIndex)!==void 0&&(_.E3(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.E3(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
BG.prototype.onClick=function(){this.submitResponse()};
BG.prototype.onClick=BG.prototype.onClick;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],BG.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],BG.prototype,"vertical",void 0);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BG.prototype,"onClick",null);
_.R([_.N({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],BG);
_.J(BG,"ytd-single-select-answer-option-renderer",function(){if(TW3!==void 0)return TW3;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return TW3=G},{mode:1});var BWK;var Ue=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return G};
_.M(Ue,_.a);Ue.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Ue.prototype.dataChanged=function(){var G,b;this.vertical=((b=(G=this.data)==null?void 0:G.answerOrientation)!=null?b:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Ue.prototype.submitFeedback=function(G){var b;((b=this.data)==null?0:b.responseEndpoint)&&G&&_.pv(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[G]}])};
Ue.prototype.dataChanged=Ue.prototype.dataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Ue.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],Ue.prototype,"eventForwardingBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ue.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],Ue.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Ue.prototype,"vertical",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ue.prototype,"dataChanged",null);_.R([_.N({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Ue);
_.J(Ue,"ytd-single-select-question-renderer",function(){if(BWK!==void 0)return BWK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return BWK=G},{mode:1});var se=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return G};
_.M(se,_.a);_.m=se.prototype;_.m.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"}}}};
_.m.dataChanged=function(){this.jumpToStage(0)};
_.m.jumpToStage=function(G){var b,I;if((b=this.data)==null?0:(I=b.stages)==null?0:I[G])this.currentStage=this.data.stages[G],this.refitAfterRender()};
_.m.computeAlt=function(G){return _.NO(G)};
_.m.computeSimpleMessage=function(G){var b;return(b=_.g(G,Cj3))==null?void 0:b.messageText};
_.m.computeHideDismiss=function(G){var b;return(b=_.g(G,vXK))==null?void 0:b.hideParentDismissButton};
_.m.onDismissTap=function(){_.wL(this.hostElement,"yt-close-popup-action");_.g(this.currentStage,Cj3)||this.data.dismissalEndpoint&&_.LL().resolve(_.xW).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.m.refitAfterRender=function(){var G=this;_.D1(this,function(){_.O3(G.hostElement,"yt-refit")})};
se.prototype.dataChanged=se.prototype.dataChanged;_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],se.prototype,"eventForwardingBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],se.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],se.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],se.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z(ZSa),_.n("design:type",Object)],se.prototype,"ytdHatsSurveyBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],se.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],se.prototype,"currentStage",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],se.prototype,"dataChanged",null);_.R([_.N({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],se);
_.J(se,"ytd-multi-stage-survey-renderer",function(){if(flK!==void 0)return flK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return flK=G},{mode:1});var UWW;var gx=function(){return _.a.apply(this,arguments)||this};
_.M(gx,_.a);gx.prototype.computeAlt=function(G){return _.NO(G)};
gx.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.LL().resolve(_.xW).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.wL(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.x5j(!1)))};
gx.prototype.onTap=function(){this.vertical&&this.submitResponse()};
gx.prototype.onTap=gx.prototype.onTap;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],gx.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],gx.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],gx.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],gx.prototype,"vertical",void 0);
_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gx.prototype,"onTap",null);_.R([_.N({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],gx);
_.J(gx,"ytd-single-option-survey-option-renderer",function(){if(UWW!==void 0)return UWW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return UWW=G},{mode:1});var sP3;var Al=function(){return _.a.apply(this,arguments)||this};
_.M(Al,_.a);_.m=Al.prototype;_.m.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.dataChanged=function(){var G,b;this.vertical=(((G=this.data)==null?void 0:(b=G.surveyOrientation)==null?void 0:b.type)||"HORIZONTAL")==="VERTICAL"};
_.m.computeAlt=function(G){return _.NO(G)};
_.m.onDismissTap=function(){_.wL(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.LL().resolve(_.xW).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.x5j(!1))};
Al.prototype.dataChanged=Al.prototype.dataChanged;_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],Al.prototype,"eventForwardingBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(ZSa),_.n("design:type",Object)],Al.prototype,"ytdHatsSurveyBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],Al.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Al.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Al.prototype,"vertical",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Al.prototype,"dataChanged",null);_.R([_.N({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Al);
_.J(Al,"ytd-single-option-survey-renderer",function(){if(sP3!==void 0)return sP3;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return sP3=G},{mode:1});var geW;var MY=function(){return _.a.apply(this,arguments)||this};
_.M(MY,_.a);MY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
MY.prototype.onDismissTap=function(){_.wL(this.hostElement,"yt-close-popup-action")};
MY.prototype.onNavigate=function(){_.wL(this.hostElement,"yt-close-popup-action")};
MY.prototype.onNavigate=MY.prototype.onNavigate;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],MY.prototype,"ytEventForwardingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],MY.prototype,"data",void 0);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],MY.prototype,"onNavigate",null);
_.R([_.N({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],MY);
_.J(MY,"ytd-survey-follow-up-renderer",function(){if(geW!==void 0)return geW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return geW=G},{mode:1});var AH9;var Mx9;var Zsj;var Zn=function(){var G=_.a.apply(this,arguments)||this;G.polymer2="Element"in Polymer;return G};
_.M(Zn,_.a);_.m=Zn.prototype;_.m.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.m.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.m.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.m.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("minutes-changed",this.minutes))};
_.m.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("seconds-changed",this.seconds))};
_.m.updateMinutesFromBinding=function(G){this.minutes=G.detail.value};
_.m.updateSecondsFromBinding=function(G){this.seconds=G.detail.value};
Zn.prototype.secondsChangedForBinding=Zn.prototype.secondsChangedForBinding;Zn.prototype.minutesChangedForBinding=Zn.prototype.minutesChangedForBinding;Zn.prototype.secondsChanged=Zn.prototype.secondsChanged;_.R([_.H(),_.n("design:type",String)],Zn.prototype,"minutes",void 0);_.R([_.H(),_.n("design:type",String)],Zn.prototype,"seconds",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Zn.prototype,"polymer2",void 0);
_.R([_.lH("#seconds"),_.n("design:type",Object)],Zn.prototype,"secondsEl",void 0);_.R([_.q5("seconds"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zn.prototype,"secondsChanged",null);_.R([_.q5("minutes"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zn.prototype,"minutesChangedForBinding",null);
_.R([_.q5("seconds"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Zn.prototype,"secondsChangedForBinding",null);_.R([_.g8({is:"yt-timestamp-input",disableElementRegistration:!0})],Zn);
_.J(Zn,"yt-timestamp-input",function(){if(Zsj===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Mx9===void 0&&(Mx9=document.createElement("template"));var h=Mx9;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Zsj=G}G=Zsj;return G},{mode:2});var tl=function(){return _.a.apply(this,arguments)||this};
_.M(tl,_.a);_.m=tl.prototype;_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20737_scroller.dialogElement=this.hostElement.parentNode};
_.m.dataChanged=function(){var G=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.uk().getPlayerPromise().then(function(b){b=b.getCurrentTime();G.minutes=Math.floor(b/60).toString();G.seconds=(Math.floor(b)%60).toString()})};
_.m.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),_.LL().resolve(_.xW).resolveCommand(this.serviceEndpoint,{form:Object.assign({},G,{element:this.hostElement})}))};
_.m.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.m.onYtServiceRequestCompleted=function(G,b){b=b.actions;if(Array.isArray(b))for(var I=0,h=b.length;I<h;I++)_.g(b[I],_.WB)&&(G.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(b[I]))};
_.m.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.m.toggleSubmitButton=function(G){this.set("submitButton.isDisabled",!G)};
_.m.handleInput=function(){var G=this.issueType,b=this.affiliation,I=this.minutes,h=this.seconds;I=!this.showTimestamp||!!I&&!!h;this.toggleSubmitButton(!!this.descriptionText&&!!G&&!!b&&I)};
_.m.computeServiceEndpoint=function(G){return this.get("submitButton.buttonRenderer.serviceEndpoint",G)};
_.m.computeSubmitButton=function(G){(G=this.get("submitButton.buttonRenderer",G))&&(G=Object.assign({},G,{serviceEndpoint:void 0}));return G};
_.m.computeShowTimestamp=function(G){return!!G};
_.m.onValueChangedForIssueType=function(G){this.issueType=G.detail.value};
_.m.onValueChangedForAffiliation=function(G){this.affiliation=G.detail.value};
_.m.updateDescriptionTextFromBinding=function(G){this.descriptionText=G.detail.value};
_.m.updateFullNameTextFromBinding=function(G){this.fullNameText=G.detail.value};
_.m.updateMinutesFromBinding=function(G){this.minutes=G.detail.value};
_.m.updateSecondsFromBinding=function(G){this.seconds=G.detail.value};
tl.prototype.handleInput=tl.prototype.handleInput;tl.prototype.onYtServiceRequestError=tl.prototype.onYtServiceRequestError;tl.prototype.onYtServiceRequestCompleted=tl.prototype.onYtServiceRequestCompleted;tl.prototype.onYtServiceRequestSent=tl.prototype.onYtServiceRequestSent;tl.prototype.dataChanged=tl.prototype.dataChanged;_.R([_.z(_.MD.YtOpenPopupBehavior),_.n("design:type",Object)],tl.prototype,"ytOpenPopupBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.R([_.lH("#scroller"),_.n("design:type",Object)],tl.prototype,"JSC$20737_scroller",void 0);_.R([_.lH("#description"),_.n("design:type",HTMLInputElement)],tl.prototype,"description",void 0);_.R([_.lH("#full-name"),_.n("design:type",Object)],tl.prototype,"fullName",void 0);_.R([_.H(),_.n("design:type",Object)],tl.prototype,"data",void 0);
_.R([_.H({computed:"computeShowTimestamp(data.timestampLabel)"}),_.n("design:type",Boolean)],tl.prototype,"showTimestamp",void 0);_.R([_.H({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.n("design:type",Object)],tl.prototype,"serviceEndpoint",void 0);_.R([_.H({computed:"computeSubmitButton(data)"}),_.n("design:type",Object)],tl.prototype,"submitButton",void 0);_.R([_.H(),_.n("design:type",String)],tl.prototype,"descriptionText",void 0);
_.R([_.H(),_.n("design:type",Number)],tl.prototype,"issueType",void 0);_.R([_.H(),_.n("design:type",Number)],tl.prototype,"affiliation",void 0);_.R([_.H(),_.n("design:type",String)],tl.prototype,"fullNameText",void 0);_.R([_.H(),_.n("design:type",String)],tl.prototype,"minutes",void 0);_.R([_.H(),_.n("design:type",String)],tl.prototype,"seconds",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tl.prototype,"dataChanged",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],tl.prototype,"onYtServiceRequestSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],tl.prototype,"onYtServiceRequestCompleted",null);
_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],tl.prototype,"onYtServiceRequestError",null);_.R([_.q5("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],tl.prototype,"handleInput",null);_.R([_.N({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],tl);
_.J(tl,"ytd-legal-report-details-form-renderer",function(){if(AH9!==void 0)return AH9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return AH9=G},{mode:1});var txK;var z4=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return G};
_.M(z4,_.a);z4.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
z4.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var G=this.formRenderer.getForm();G&&this.data.submitEndpoint&&(_.LL().resolve(_.xW).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},G,{element:this.hostElement})}),_.wL(this.hostElement,"yt-close-popup-action"))}};
z4.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.wL(this.hostElement,"yt-close-popup-action"))};
z4.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
z4.prototype.onPopupClosed=z4.prototype.onPopupClosed;_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],z4.prototype,"ytEventForwardingBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],z4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],z4.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);
_.R([_.lH("yt-form-renderer"),_.n("design:type",Object)],z4.prototype,"formRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],z4.prototype,"data",void 0);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],z4.prototype,"onPopupClosed",null);_.R([_.N({is:"ytd-form-popup-content",disableElementRegistration:!0})],z4);
_.J(z4,"ytd-form-popup-content",function(){if(txK!==void 0)return txK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return txK=G},{mode:1});var zVf;var of=function(){return _.a.apply(this,arguments)||this};
_.M(of,_.a);of.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
of.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
of.prototype.onPopupOpened=function(){_.O3(this.hostElement,"yt-invalidate-popup-tabbables")};
of.prototype.onYtServiceRequestCompleted=function(G,b){b.data&&b.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.O3(this.hostElement,"yt-invalidate-popup-tabbables"))};
of.prototype.onYtServiceRequestCompleted=of.prototype.onYtServiceRequestCompleted;of.prototype.onPopupOpened=of.prototype.onPopupOpened;_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],of.prototype,"ytEventForwardingBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],of.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],of.prototype,"data",void 0);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],of.prototype,"onPopupOpened",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],of.prototype,"onYtServiceRequestCompleted",null);_.R([_.N({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],of);
_.J(of,"ytd-form-popup-renderer",function(){if(zVf!==void 0)return zVf;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return zVf=G},{mode:1});var oeD;var i8=function(){var G=_.a.apply(this,arguments)||this;G.isLoading=!1;return G};
_.M(i8,_.a);_.m=i8.prototype;_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");B59(this.hostElement)};
_.m.onYtServiceRequestSent=function(){this.isLoading=!0};
_.m.onYtServiceRequestCompleted=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.m.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Su(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.m.closePopupHandler=function(){this.fireOnCloseActions()};
_.m.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=_.KG(G,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+G+")")}};
_.m.onYtNavigate=function(G){(G=_.a_(G))&&G.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
i8.prototype.onYtNavigate=i8.prototype.onYtNavigate;i8.prototype.onHeaderImageChanged=i8.prototype.onHeaderImageChanged;i8.prototype.closePopupHandler=i8.prototype.closePopupHandler;i8.prototype.onYtServiceRequestCompleted=i8.prototype.onYtServiceRequestCompleted;i8.prototype.onYtServiceRequestSent=i8.prototype.onYtServiceRequestSent;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],i8.prototype,"ytEventForwardingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],i8.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],i8.prototype,"isLoading",void 0);_.R([_.lH("#header"),_.n("design:type",HTMLDivElement)],i8.prototype,"header",void 0);_.R([_.lH("#confirm-button"),_.n("design:type",_.FG)],i8.prototype,"confirmButton",void 0);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],i8.prototype,"onYtServiceRequestSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],i8.prototype,"onYtServiceRequestCompleted",null);
_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],i8.prototype,"closePopupHandler",null);_.R([_.q5("data.headerImage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],i8.prototype,"onHeaderImageChanged",null);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],i8.prototype,"onYtNavigate",null);
_.R([_.N({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],i8);
_.J(i8,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(oeD!==void 0)return oeD;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return oeD=G},{mode:1});var isL;var PG=function(){var G=_.a.apply(this,arguments)||this;G.isLoading=!1;return G};
_.M(PG,_.a);_.m=PG.prototype;_.m.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"}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);B59(this.hostElement)};
_.m.onYtServiceRequestCompleted=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.m.onYtServiceRequestError=function(G){_.yX(this.hostElement,G.detail.error.message)};
_.m.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.m.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.wL(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.m.onDataChanged=function(){this.isLoading=!1;var G=this.get("data.headerImage.thumbnails");G&&(G=_.KG(G,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+G+")");G=_.gL();var b=_.s3(),I=this.get("data.trackingParams");I&&b&&G&&_.dK(G,b,_.VB(I))};
_.kV.Object.defineProperties(PG.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
PG.prototype.onDataChanged=PG.prototype.onDataChanged;PG.prototype.onDomChange=PG.prototype.onDomChange;PG.prototype.onYtServiceRequestError=PG.prototype.onYtServiceRequestError;PG.prototype.onYtServiceRequestCompleted=PG.prototype.onYtServiceRequestCompleted;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],PG.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],PG.prototype,"isLoading",void 0);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],PG.prototype,"hasDescription",null);_.R([_.lH("tp-yt-paper-dialog-scrollable"),_.n("design:type",Object)],PG.prototype,"scrollable",void 0);_.R([_.lH("#header"),_.n("design:type",HTMLElement)],PG.prototype,"header",void 0);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],PG.prototype,"onYtServiceRequestCompleted",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],PG.prototype,"onYtServiceRequestError",null);
_.R([_.hI("dom-change"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],PG.prototype,"onDomChange",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PG.prototype,"onDataChanged",null);_.R([_.N({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],PG);
_.J(PG,"ytd-gaming-account-link-setting-renderer",function(){if(isL!==void 0)return isL;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return isL=G},{mode:1});var PLj;var dWe;var dx=function(){var G=_.a.apply(this,arguments)||this;G.isHeader=!1;G.getEndpointForm=function(){return VRK(G.data)};
return G};
_.M(dx,_.a);_.m=dx.prototype;_.m.triggerHintActions=function(){var G=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var b=_.E3(G.hostElement,"yt-get-opened-popups-action");!(b&&b.length===1?b[0]:[]).some(function(I){I=I.openPopupAction.popupType;return I==="SURVEY"||I==="MEALBAR"||I==="HINT"})&&G.data.hintActions&&G.guideOpened&&(_.Su(G.hostElement,G.data.hintActions,G.hostElement),G.data.hintActions=void 0)})};
_.m.getBadgeIconType=function(G){return G&&G.liveBroadcasting?"live":null};
_.m.onDown=function(){this.interaction.triggerDown()};
_.m.onUp=function(){this.interaction.triggerUp()};
_.m.onTap=function(G){if(this.data.serviceEndpoint){var b;_.U("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.g(this.data.serviceEndpoint,_.V4))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):ebj(this.data.serviceEndpoint,this);G.preventDefault()}else this.data.navigationEndpoint&&!_.NK(_.Wy(G),this.hostElement,["A".toString()])&&_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.m.computeActive=function(G,b){if(!G)return!1;var I=G.navigationEndpoint;G=G.serviceEndpoint;if(!I&&!G||!b)return!1;if(I){G=(G=_.qe(b))&&["subscriptions","filteredsubscriptions"].includes(G);if(_.g(I,_.jL)&&_.g(b,_.jL)&&!G){var h=_.g(I,_.jL).browseId;b=_.g(b,_.jL).browseId;return h!==void 0&&b!==void 0&&(h===b||h==="VLWL"&&b==="FEwatch_later"||h==="FEwatch_later"&&b==="VLWL")}var q;I=(q=_.g(I.commandMetadata,_.IW))==null?void 0:q.url;b=(h=_.g(b.commandMetadata,_.IW))==null?void 0:h.url;return!(!I||
!b||I!==b&&I!==_.tB(b))}return this.isActiveShortsTab(G,b)};
_.m.isActiveShortsTab=function(G,b){b=!!_.g(b,_.V4)||!!_.g(b,_.X_);return(!!_.g(G,_.V4)||!!_.g(G,_.X_))&&b};
_.m.computeIsPrimary=function(G){return!!G};
_.kV.Object.defineProperties(dx.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}}});
dx.prototype.onTap=dx.prototype.onTap;dx.prototype.onUp=dx.prototype.onUp;dx.prototype.onDown=dx.prototype.onDown;dx.prototype.triggerHintActions=dx.prototype.triggerHintActions;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],dx.prototype,"componentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],dx.prototype,"rendererBehavior",void 0);_.R([_.z(_.ed.YtTaskEmitterBehavior),_.n("design:type",Object)],dx.prototype,"taskEmitterBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],dx.prototype,"activeEndpoint",void 0);_.R([_.H(),_.n("design:type",Object)],dx.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],dx.prototype,"guideOpened",void 0);_.R([_.H(),_.n("design:type",String)],dx.prototype,"type",void 0);_.R([_.lH("yt-interaction"),_.n("design:type",Object)],dx.prototype,"interaction",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],dx.prototype,"isHeader",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("data","activeEndpoint"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],dx.prototype,"active",null);_.R([_.H({reflectToAttribute:!0}),_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],dx.prototype,"isPrimary",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.count","data.presentationStyle","data.badges.*"),_.n("design:type",String),_.n("design:paramtypes",[])],dx.prototype,"lineEndStyle",null);
_.R([_.P("lineEndStyle"),_.n("design:type",Object),_.n("design:paramtypes",[])],dx.prototype,"ariaLabel",null);_.R([_.q5("data.hintActions","guideOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dx.prototype,"triggerHintActions",null);_.R([_.hI("down"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dx.prototype,"onDown",null);
_.R([_.hI("up"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],dx.prototype,"onUp",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],dx.prototype,"onTap",null);_.R([_.N({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],dx);
_.J(dx,"ytd-guide-entry-renderer",function(){if(dWe!==void 0)return dWe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return dWe=G},{mode:1});var yU=function(){var G=_.a.apply(this,arguments)||this;G.userToggled=!1;return G};
_.M(yU,_.a);_.m=yU.prototype;_.m.getItemsPath=function(){return"data.expandableItems"};
_.m.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.m.onExpanderItemTapped=function(G){var b=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.U("kevlar_guide_expandable_items_killswitch")&&_.D1(this,function(){_.l6(b.expandableItems)});
G.preventDefault()};
_.m.onCollapserItemTapped=function(G){var b=this;this._setExpanded(!1);this.userToggled=!0;G.preventDefault();this.expandableItems&&!_.U("kevlar_guide_collapsible_items_killswitch")&&_.D1(this,function(){_.jG(b.hostElement)})};
_.m.observeActiveEndpoint=function(){for(var G=this.activeEndpoint,b=this.data,I=this.expandableItems.children,h=0,q=I.length;h<q;h++)I[h].activeEndpoint=G;b&&b.autoExpandCommand&&G&&!this.userToggled&&(I=this.data.autoExpandCommand,b=!(!_.g(I,_.jL)||!_.g(G,_.jL)||_.g(I,_.jL).browseId!==_.g(G,_.jL).browseId),G=this.get("commandMetadata.webCommandMetadata.url",G),I=this.get("commandMetadata.webCommandMetadata.url",I),b=b||!!(G&&I&&G.includes(I)),this._setExpanded(b),b&&this.ytLazyListBehavior.fillRemainingListItems())};
yU.prototype.observeActiveEndpoint=yU.prototype.observeActiveEndpoint;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],yU.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.L9.YtLazyListBehavior),_.n("design:type",Object)],yU.prototype,"ytLazyListBehavior",void 0);_.R([_.lH("#expandable-items"),_.n("design:type",HTMLElement)],yU.prototype,"expandableItems",void 0);
_.R([_.H(),_.n("design:type",Object)],yU.prototype,"data",void 0);_.R([_.H({readOnly:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],yU.prototype,"expanded",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],yU.prototype,"initialCount",void 0);_.R([_.H(),_.n("design:type",Object)],yU.prototype,"activeEndpoint",void 0);_.R([_.q5("data","activeEndpoint","canShowMore"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],yU.prototype,"observeActiveEndpoint",null);
_.R([_.N({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],yU);
_.J(yU,"ytd-guide-collapsible-entry-renderer",function(){if(PLj!==void 0)return PLj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return PLj=G},{mode:_.nn("kevlar_poly_si_batch_j079")?1:2});var yHj;var rHc;var rx=function(){var G=_.a.apply(this,arguments)||this;G.allVideosCount=0;G.renderGuideEntry=!1;return G};
_.M(rx,_.a);rx.prototype.observeRenderEntry=function(){var G;this.renderGuideEntry=!((G=this.data)==null||!G.alwaysShow)||!!this.allVideosCount};
rx.prototype.observeRenderEntry=rx.prototype.observeRenderEntry;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],rx.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],rx.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],rx.prototype,"activeEndpoint",void 0);_.R([_.H({selector:_.CDX}),_.n("design:type",Object)],rx.prototype,"allVideosCount",void 0);
_.R([_.H(),_.n("design:type",Object)],rx.prototype,"renderGuideEntry",void 0);_.R([_.Dd("allVideosCount","data.alwaysShow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],rx.prototype,"observeRenderEntry",null);_.R([_.N({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],rx);
_.J(rx,"ytd-guide-downloads-entry-renderer",function(){if(rHc===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);rHc=G}G=rHc;return G},{mode:1});var FV=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return G};
_.M(FV,_.a);_.m=FV.prototype;_.m.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]]"}}}}}};
_.m.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var G=this.sectionItems.children,b=0,I=G.length;b<I;b++)G[b].activeEndpoint=this.activeEndpoint}};
_.m.handleAddToGuideSectionAction=function(G){var b=_.g(G,h93);if(b&&this.data&&(G=b.items,b=b.handlerData,G&&b&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(b)>-1)){b=0;for(var I=G.length;b<I;b++)G[b].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,G[b])}};
_.m.handleRemoveFromGuideSectionAction=function(G){var b=_.g(G,qCj);b&&this.data&&(G=b.guideEntryId,b=b.handlerData,G&&b&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(b)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(G,this.data.sectionItems),this.removeFromCollapsedSection(G,this.data.sectionItems)))};
_.m.removeFromExpandedSection=function(G,b){G=this.getEntryIndexMatchingId(G,b);G!==-1&&this.splice("data.sectionItems",G,1)};
_.m.removeFromCollapsedSection=function(G,b){var I=b.findIndex(function(h){return!!_.g(h,UV5)});
I&&I!==-1&&b[I]&&_.g(b[I],UV5)&&(b=_.g(b[I],UV5).expandableItems)&&(G=this.getEntryIndexMatchingId(G,b),G!==-1&&this.splice("data.sectionItems."+I+".guideCollapsibleEntryRenderer.expandableItems",G,1))};
_.m.getEntryIndexMatchingId=function(G,b){var I=this;return b.findIndex(function(h){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",h)===G})};
FV.prototype.activeEndpointChanged=FV.prototype.activeEndpointChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],FV.prototype,"actionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],FV.prototype,"ytRendererstamperBehavior",void 0);_.R([_.lH("#section-items"),_.n("design:type",HTMLDivElement)],FV.prototype,"sectionItems",void 0);
_.R([_.lH("#header-entry"),_.n("design:type",Object)],FV.prototype,"headerEntry",void 0);_.R([_.H(),_.n("design:type",Object)],FV.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],FV.prototype,"activeEndpoint",void 0);_.R([_.q5("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],FV.prototype,"activeEndpointChanged",null);_.R([_.N({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],FV);
_.J(FV,"ytd-guide-collapsible-section-entry-renderer",function(){if(yHj===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);yHj=G}G=yHj;return G},{mode:1});var FCf;var HsW;var HG=function(){var G=_.a.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};
_.M(HG,_.a);_.m=HG.prototype;
_.m.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}}}}};
_.m.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var G=_.E3(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);G&&G.length===1&&G[0]&&_.E3(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.m.handleResetChannelUnreadCountCommand=function(G){var b;(G=(b=_.g(G,lXj))==null?void 0:b.channelId)&&this.data&&this.data.items&&(b=this.getPathToEntryMatchingId(G))&&(this.set(b+".guideEntryRenderer.count",0),this.set(b+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.m.handleResetSubscriptionsUnreadDotCommand=function(G){var b,I=(b=_.g(G,mV9))==null?void 0:b.targetId,h;I&&(h=this.data)!=null&&h.items&&(G=this.data.items.findIndex(function(q){var l;return((l=q.guideEntryRenderer)==null?void 0:l.targetId)===I}),G<0||this.set("data.items."+G+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.m.getPathToEntryMatchingId=function(G){if(this.data&&this.data.items){var b=this.getEntryIndexMatchingId(G,this.data.items);if(b>-1)return"data.items."+b;for(var I=0;I<this.data.items.length;I++)if(b=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[I]))if(b=this.getEntryIndexMatchingId(G,b),b>-1)return"data.items."+I+".guideCollapsibleEntryRenderer.expandableItems."+b}};
_.m.handleAddToGuideSectionAction=function(G){var b=this;if(_.g(G,h93)){var I=_.g(G,h93).items;G=_.g(G,h93).handlerData;var h,q;if(I&&G&&((h=this.data)==null?void 0:(q=h.handlerDatas)==null?void 0:q.indexOf(G))>-1){I=I.filter(function(V){return(V=b.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",V))&&!b.isGuideItemPresent(V)});
var l;if(G==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((l=this.data)==null?0:l.items)&&(h=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),h>-1)){this.splice.apply(this,["data.items",h+1,0].concat(_.Nz(I)));return}this.unshift.apply(this,["data.items"].concat(_.Nz(I)))}}};
_.m.isGuideItemPresent=function(G){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(G,this.data.items)!==-1)return!0;var b=this.data.items.find(function(I){return!!I.guideCollapsibleEntryRenderer});
if((b==null?0:b.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(G,b.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.m.getEntryIndexMatchingId=function(G,b){var I=this;return b.findIndex(function(h){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",h)===G})};
_.m.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(G,b){var I=this;return b.findIndex(function(h){return I.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",h)===G})};
_.m.handleRemoveFromGuideSectionAction=function(G){if(_.g(G,qCj)){var b=_.g(G,qCj).guideEntryId;G=_.g(G,qCj).handlerData;var I,h;b&&G&&((I=this.data)==null?void 0:(h=I.handlerDatas)==null?void 0:h.indexOf(G))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(b,this.data.items),this.removeFromCollapsedSection(b,this.data.items))}};
_.m.removeFromExpandedSection=function(G,b){G=this.getEntryIndexMatchingId(G,b);G!==-1&&this.splice("data.items",G,1)};
_.m.removeFromCollapsedSection=function(G,b){var I=b.findIndex(function(h){return!!h.guideCollapsibleEntryRenderer});
I!==-1&&(b=b[I].guideCollapsibleEntryRenderer.expandableItems)&&(G=this.getEntryIndexMatchingId(G,b),G!==-1&&this.splice("data.items."+I+".guideCollapsibleEntryRenderer.expandableItems",G,1))};
_.m.activeEndpointChanged=function(){for(var G=_.Eo(this.hostElement).querySelector("#items").children,b=0,I=G.length;b<I;b++)G[b].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.m.guideOpenedChanged=function(){for(var G=_.Eo(this.hostElement).querySelector("#items").children,b=0,I=G.length;b<I;b++)G[b].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
HG.prototype.guideOpenedChanged=HG.prototype.guideOpenedChanged;HG.prototype.activeEndpointChanged=HG.prototype.activeEndpointChanged;HG.prototype.persistentGuideChanged=HG.prototype.persistentGuideChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],HG.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],HG.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.L9.YtLazyListBehavior),_.n("design:type",Object)],HG.prototype,"ytLazyListBehavior",void 0);_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],HG.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],HG.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],HG.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",String)],HG.prototype,"type",void 0);_.R([_.H({value:20}),_.n("design:type",Number)],HG.prototype,"initialCount",void 0);_.R([_.H({value:10}),_.n("design:type",Number)],HG.prototype,"targetFramerate",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],HG.prototype,"autoFill",void 0);_.R([_.H({value:50}),_.n("design:type",Number)],HG.prototype,"renderDelay",void 0);
_.R([_.q5("guidePersistentAndVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HG.prototype,"persistentGuideChanged",null);_.R([_.Dd("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HG.prototype,"activeEndpointChanged",null);_.R([_.Dd("guideOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HG.prototype,"guideOpenedChanged",null);
_.R([_.N({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],HG);
_.J(HG,"ytd-guide-section-renderer",function(){if(HsW!==void 0)return HsW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return HsW=G},{mode:_.nn("kevlar_poly_si_batch_j073")?1:2});var WCY;var WG=function(){return _.a.apply(this,arguments)||this};
_.M(WG,_.a);_.kV.Object.defineProperties(WG.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],WG.prototype,"rendererBehaviors",void 0);_.R([_.H(),_.n("design:type",Object)],WG.prototype,"data",void 0);_.R([_.H(),_.P("data.signInButton.buttonRenderer.style"),_.n("design:type",Object),_.n("design:paramtypes",[])],WG.prototype,"alignByText",null);_.R([_.N({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],WG);
_.J(WG,"ytd-guide-signin-promo-renderer",function(){if(WCY===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);WCY=G}G=WCY;return G},{mode:1});var af=function(){var G=_.a.apply(this,arguments)||this;G.showFooter=!1;return G};
_.M(af,_.a);af.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}}}}};
af.prototype.attached=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1){b=_.LL().resolve(_.vf(_.$E));if(!b)return I.jumpTo(0);b.setGuideData(G.hostElement);return I.yield(0,3)}G.ytLazyListBehavior.initialCount=2;return I.return()})};
af.prototype.onMouseExit=function(){_.U("web_guide_hover_expansion")&&_.E3(this.hostElement,"yt-guide-mouseleaved",[])};
af.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
af.prototype.dataChanged=af.prototype.dataChanged;af.prototype.onMouseExit=af.prototype.onMouseExit;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],af.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.L9.YtLazyListBehavior),_.n("design:type",Object)],af.prototype,"ytLazyListBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],af.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],af.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],af.prototype,"showFooter",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],af.prototype,"autoFill",void 0);_.R([_.hI("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],af.prototype,"onMouseExit",null);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],af.prototype,"dataChanged",null);_.R([_.N({is:"ytd-guide-renderer",disableElementRegistration:!0})],af);
_.J(af,"ytd-guide-renderer",function(){if(FCf!==void 0)return FCf;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return FCf=G},{mode:_.nn("kevlar_poly_si_batch_j073")?1:2});var alF;var NY=function(){var G=_.a.apply(this,arguments)||this;G.systemIcons=_.U("kevlar_system_icons");G.frostedGlass=_.U("web_frosted_glass");G.getEndpointForm=function(){return VRK(G.data)};
return G};
_.M(NY,_.a);_.m=NY.prototype;_.m.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0");this.JSC$20790_sheetController=_.LL().resolve(_.K9)};
_.m.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.NO(this.data.formattedTitle))};
_.m.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.m.onDown=function(){this.interaction.triggerDown()};
_.m.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var G;if((G=this.JSC$20790_sheetController)!=null){var b=this.mouseEnterCallback.bind(this),I=this.mouseLeaveCallback.bind(this);G.hoverEnterCallback=b!=null?b:void 0;G.hoverLeaveCallback=I!=null?I:void 0}}};
_.m.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.m.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.m.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.m.onUp=function(){this.interaction.triggerUp()};
_.m.onTap=function(G){if(this.data.serviceEndpoint){var b;if(_.U("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.g(this.data.serviceEndpoint,_.V4))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(_.g(this.data.serviceEndpoint,_.cH)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);G.preventDefault();return}ebj(this.data.serviceEndpoint,this)}G.preventDefault()}else{var I;((I=this.data)==
null?0:I.navigationEndpoint)&&!_.NK(_.Wy(G),this.hostElement,["A".toString()])&&_.O3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.m.computeActive=function(G,b){if(!G)return!1;var I=G.navigationEndpoint;G=G.serviceEndpoint;if(!I&&!G||!b)return!1;if(I){G=_.g(I,_.jL);var h=_.g(b,_.jL);if(G&&h)return G.browseId===h.browseId&&G.params===h.params;var q;I=(q=_.g(I.commandMetadata,_.IW))==null?void 0:q.url;var l;b=(l=_.g(b.commandMetadata,_.IW))==null?void 0:l.url;return!(!I||!b||I!==b&&I!==_.tB(b))}return this.isActiveShortsTab(G,b)};
_.m.isActiveShortsTab=function(G,b){b=!!_.g(b,_.V4)||!!_.g(b,_.X_);return(!!_.g(G,_.V4)||!!_.g(G,_.X_))&&b};
_.m.computeTitle=function(G,b){return b?"":_.NO(G)};
_.kV.Object.defineProperties(NY.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
NY.prototype.onTap=NY.prototype.onTap;NY.prototype.onUp=NY.prototype.onUp;NY.prototype.onMouseLeave=NY.prototype.onMouseLeave;NY.prototype.onMouseEnter=NY.prototype.onMouseEnter;NY.prototype.onDown=NY.prototype.onDown;NY.prototype.onActiveStateChange=NY.prototype.onActiveStateChange;NY.prototype.dataChanged=NY.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],NY.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.Jr),_.n("design:type",Object)],NY.prototype,"ironButtonState",void 0);_.R([_.H(),_.n("design:type",Object)],NY.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],NY.prototype,"activeEndpoint",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],NY.prototype,"noLabels",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.n("design:type",Boolean)],NY.prototype,"isActive",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],NY.prototype,"systemIcons",void 0);_.R([_.lH("yt-interaction"),_.n("design:type",Object)],NY.prototype,"interaction",void 0);_.R([_.P("isActive"),_.n("design:type",Object),_.n("design:paramtypes",[])],NY.prototype,"ariaSelected",null);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],NY.prototype,"frostedGlass",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NY.prototype,"dataChanged",null);_.R([_.q5("isActive"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NY.prototype,"onActiveStateChange",null);_.R([_.hI("down"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NY.prototype,"onDown",null);
_.R([_.hI("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[MouseEvent]),_.n("design:returntype")],NY.prototype,"onMouseEnter",null);_.R([_.hI("mouseleave"),_.n("design:type",Function),_.n("design:paramtypes",[MouseEvent]),_.n("design:returntype")],NY.prototype,"onMouseLeave",null);_.R([_.hI("up"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],NY.prototype,"onUp",null);
_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],NY.prototype,"onTap",null);_.R([_.N({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],NY);
_.J(NY,"ytd-mini-guide-entry-renderer",function(){if(alF!==void 0)return alF;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return alF=G},{mode:_.nn("kevlar_poly_si_batch_j063")?1:2});var NWW;var YN=function(){var G=_.a.apply(this,arguments)||this;G.allVideosCount=0;G.noLabels=_.U("kevlar_mini_guide_no_labels")||_.U("kevlar_modern_mini_guide");G.frostedGlass=_.U("web_frosted_glass");return G};
_.M(YN,_.a);_.m=YN.prototype;_.m.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.m.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.m.onMouseEnter=function(){_.U("web_guide_hover_expansion")&&_.E3(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.m.visibleChanged=function(){if(this.visible&&!this.data){var G=_.LL().resolve(_.vf(_.$E));G&&G.setGuideData(this.hostElement)}};
_.m.dataChanged=function(){var G=_.U("kevlar_guide_menu_on_hover")&&_.U("kevlar_modern_mini_guide"),b=_.U("kevlar_guide_menu_on_click")&&_.U("kevlar_modern_mini_guide"),I;var h=(I=this.data)==null?void 0:I.items;I=this.allVideosCount;var q=[];G=G?0:b?1:void 0;b=G!==void 0;if(h){for(var l=[],V=_.e(h),D=V.next();!D.done;D=V.next())if(D=D.value,D.guideSubscriptionsSectionRenderer){var k=void 0;l=((k=D.guideSubscriptionsSectionRenderer)==null?void 0:k.items)||[]}h=_.e(h);for(V=h.next();!V.done;V=h.next())if(V=
V.value,D=void 0,(D=V.guideSectionRenderer)==null?0:D.items)for(D=void 0,V=_.e((D=V.guideSectionRenderer)==null?void 0:D.items),D=V.next();!D.done;D=V.next()){D=D.value;var L=void 0,x=void 0;k=D.guideEntryRenderer||_.g((L=D)==null?void 0:(x=L.guideCollapsibleSectionEntryRenderer)==null?void 0:x.headerEntry,DCW);L=[];x=[];var f=void 0;if(((f=k)==null?void 0:f.targetId)==="subscriptions-guide-item")L=l;else{var T=f=void 0;if((f=D)==null?0:(T=f.guideCollapsibleSectionEntryRenderer)==null?0:T.sectionItems)x=
L=D.guideCollapsibleSectionEntryRenderer.sectionItems}cJL(q,k,b?L:[],G);if(x.length>0)for(D=_.e(x),k=D.next();!k.done;k=D.next())k=k.value,x=_.g(k,sEL),L=void 0,x=x&&(x.alwaysShow||I)?_.g((L=x)==null?void 0:L.entryRenderer,DCW):_.g(k,DCW),cJL(q,x,[])}}this.miniGuideItems=q};
_.m.activeEndpointChanged=function(){for(var G=this.items.children,b=0;b<G.length;b++)G[b].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.m.registerWithViewTransitionManager=function(){var G=this;_.FQ(_.uu,function(){var b=_.LL().resolve(_.vf(_.a8));if(b&&b.isAnyTransitionEnabled){var I={};b.viewTransitionCoordinator.registerElement(G.hostElement,(I.slide="mini-guide-page-transition",I))}})};
YN.prototype.activeEndpointChanged=YN.prototype.activeEndpointChanged;YN.prototype.dataChanged=YN.prototype.dataChanged;YN.prototype.visibleChanged=YN.prototype.visibleChanged;YN.prototype.onMouseEnter=YN.prototype.onMouseEnter;_.R([_.z(_.wN),_.n("design:type",Object)],YN.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],YN.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],YN.prototype,"ytComponentBehavior",void 0);_.R([_.lH("#items"),_.n("design:type",Object)],YN.prototype,"items",void 0);_.R([_.H(),_.n("design:type",Object)],YN.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Boolean)],YN.prototype,"visible",void 0);_.R([_.H(),_.n("design:type",Object)],YN.prototype,"miniGuideItems",void 0);_.R([_.H({selector:_.CDX}),_.n("design:type",Object)],YN.prototype,"allVideosCount",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],YN.prototype,"noLabels",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],YN.prototype,"frostedGlass",void 0);
_.R([_.hI("mouseenter"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YN.prototype,"onMouseEnter",null);_.R([_.Dd("visible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YN.prototype,"visibleChanged",null);_.R([_.Dd("data","allVideosCount"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YN.prototype,"dataChanged",null);
_.R([_.Dd("activeEndpoint"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],YN.prototype,"activeEndpointChanged",null);_.R([_.N({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],YN);
_.J(YN,"ytd-mini-guide-renderer",function(){if(NWW===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);NWW=G}G=NWW;return G},{mode:1});var Yrj;var CLf=/^[\x00-\x7F]+$/,Ca=function(){return _.a.apply(this,arguments)||this};
_.M(Ca,_.a);_.kV.Object.defineProperties(Ca.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var G,b=_.NO((G=this.data)==null?void 0:G.handle);if(b)return _.ao("@"+b)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var G=_.NO(this.displayHandle),b,I=_.NO((b=this.data)==null?void 0:b.handleUrl);if(G&&I)return _.ao(I+G)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var G=_.NO(this.displayHandle);if(G&&!CLf.test(G)){var b;return(b=this.data)==null?void 0:b.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var G=_.NO(this.displayHandleUrl),b,I=_.NO((b=this.data)==null?void 0:b.urlInfoText);if(G&&I)return _.ao(I+" "+G)}}});
_.R([_.H(),_.n("design:type",Object)],Ca.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ca.prototype,"displayHandle",null);_.R([_.P("displayHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ca.prototype,"displayHandleUrl",null);_.R([_.P("displayHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ca.prototype,"warningText",null);
_.R([_.P("displayHandleUrl"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ca.prototype,"urlInfoTextWithUrl",null);_.R([_.N({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Ca);
_.J(Ca,"ytd-handles-claiming-confirm-dialog-content",function(){if(Yrj!==void 0)return Yrj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Yrj=G},{mode:1});var JHj;var Jl=function(){var G=_.a.apply(this,arguments)||this;G.okButtonOverride={style:"mono",type:"outline",size:"M"};return G};
_.M(Jl,_.a);Jl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Jl.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Jl.prototype,"okButtonOverride",void 0);_.R([_.H(),_.n("design:type",Object)],Jl.prototype,"data",void 0);_.R([_.N({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Jl);
_.J(Jl,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(JHj!==void 0)return JHj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return JHj=G},{mode:1});var KCY;var uSD=/^[\x00-\x7F]+$/,Ka=function(){var G=_.a.apply(this,arguments)||this;G.isLoading=!1;return G};
_.M(Ka,_.a);Ka.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var G;this.selectedHandle=(G=this.handleInput)==null?void 0:G.value;this.onSelectedHandleChanged(this.selectedHandle);_.E3(this.hostElement,"yt-refit-popups-action")}};
_.kV.Object.defineProperties(Ka.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 _.ao("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.ao(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!uSD.test(this.selectedHandle)){var G;return(G=this.data)==null?void 0:G.warningText}}}});
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Ka.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ka.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],Ka.prototype,"selectedHandle",void 0);_.R([_.H(),_.n("design:type",Object)],Ka.prototype,"isLoading",void 0);_.R([_.H(),_.n("design:type",Function)],Ka.prototype,"onSelectedHandleChanged",void 0);_.R([_.lH("#channel-handle-input"),_.n("design:type",Object)],Ka.prototype,"handleInput",void 0);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ka.prototype,"handleUrlPrefix",null);_.R([_.P("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ka.prototype,"displayHandle",null);_.R([_.P("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ka.prototype,"displayHandleUrl",null);_.R([_.P("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ka.prototype,"warningText",null);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.R([_.N({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Ka);
_.J(Ka,"ytd-handles-claiming-edit-dialog-content",function(){if(KCY!==void 0)return KCY;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return KCY=G},{mode:1});var RV9;var Oe=function(){var G=_.a.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(b){G.selectedHandle=b};
return G};
_.M(Oe,_.a);_.m=Oe.prototype;_.m.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.m.onDataChanged=function(){var G,b;this.selectedHandle=(b=_.g((G=this.data)==null?void 0:G.inputField,X_9))==null?void 0:b.handle};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.onCancel=function(){this.selectedHandle="";_.wL(this.hostElement,"yt-close-popup-action",[this.is])};
_.m.onSelectHandle=function(){var G=this;if(this.selectedHandle!==void 0){var b;((b=this.data)==null?void 0:b.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,h){if(h.newHandleUpdateStatus!==void 0&&h.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&h.newHandleUpdateStatus.errorMessage)_.yX(G.hostElement,_.NO(h.newHandleUpdateStatus.errorMessage)),
G.isLoading=!1;else{var q;if((q=G.data)==null?0:q.onChannelUpdateSuccess){I=G.data.onChannelUpdateSuccess;var l,V;if(h=(l=_.g(I,_.WB))==null?void 0:(V=l.popup)==null?void 0:V.handlesClaimingConfirmDialogRenderer)h.handle=_.ao(G.selectedHandle);G.ytComponentBehavior.resolveCommand(I);_.wL(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;_.yX(G.hostElement,_.qP("TRY_AGAIN_LATER"))}}}))}};
_.m.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Oe.prototype.onDataChanged=Oe.prototype.onDataChanged;Oe.prototype.onSelectedHandleChanged=Oe.prototype.onSelectedHandleChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Oe.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Oe.prototype,"actionButtonOverride",void 0);_.R([_.H(),_.n("design:type",Object)],Oe.prototype,"cancelButtonOverride",void 0);_.R([_.H(),_.n("design:type",Object)],Oe.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",String)],Oe.prototype,"selectedHandle",void 0);_.R([_.H(),_.n("design:type",Object)],Oe.prototype,"selectButtonDisabled",void 0);_.R([_.H(),_.n("design:type",Object)],Oe.prototype,"isLoading",void 0);_.R([_.H(),_.n("design:type",Object)],Oe.prototype,"hasSelectedHandleEventListener",void 0);_.R([_.H(),_.n("design:type",Object)],Oe.prototype,"handleInput",void 0);
_.R([_.q5("selectedHandle"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Oe.prototype,"onSelectedHandleChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Oe.prototype,"onDataChanged",null);_.R([_.lH("ytd-handles-claiming-edit-dialog-content"),_.n("design:type",Object)],Oe.prototype,"content",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Oe.prototype,"ytRendererstamperBehavior",void 0);_.R([_.N({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Oe);
_.J(Oe,"ytd-handles-claiming-edit-dialog-renderer",function(){if(RV9!==void 0)return RV9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return RV9=G},{mode:1});var ne9;var wx=function(){return _.a.apply(this,arguments)||this};
_.M(wx,_.a);_.kV.Object.defineProperties(wx.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.handle){var b;return _.ao("@"+_.NO((b=this.data)==null?void 0:b.handle))}}}});
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],wx.prototype,"formattedHandle",null);_.R([_.H(),_.n("design:type",Object)],wx.prototype,"data",void 0);_.R([_.N({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],wx);
_.J(wx,"ytd-handles-claiming-radio-option-renderer",function(){if(ne9!==void 0)return ne9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ne9=G},{mode:1});var Osc;var wi3=/^[\x00-\x7F]+$/,Ee=function(){var G=_.a.apply(this,arguments)||this;G.initialRadioIndex="-1";G.isLoading=!1;G.maybeSubmitFeedback=function(){G.feedbackSurveyRenderer.submitSurvey()};
return G};
_.M(Ee,_.a);Ee.prototype.updateSelectedHandleIndexFromBinding=function(G){this.selectedRadioIndex=+G.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(G)};
Ee.prototype.selectedHandleChanged=function(G){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var b;this.selectedHandle=(b=this.handleInput)==null?void 0:b.value;this.onSelectedHandleChanged(G)}};
_.kV.Object.defineProperties(Ee.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 _.ao("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.ao(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!wi3.test(this.selectedHandle)){var G;return(G=this.data)==null?void 0:G.warningText}}}});
_.R([_.H(),_.n("design:type",Object)],Ee.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Ee.prototype,"initialRadioIndex",void 0);_.R([_.H(),_.n("design:type",Number)],Ee.prototype,"selectedRadioIndex",void 0);_.R([_.H(),_.n("design:type",String)],Ee.prototype,"selectedHandle",void 0);_.R([_.H(),_.n("design:type",Object)],Ee.prototype,"isLoading",void 0);_.R([_.H(),_.n("design:type",Function)],Ee.prototype,"onSelectedHandleChanged",void 0);
_.R([_.H(),_.n("design:type",Function)],Ee.prototype,"onSelectedRadioIndexChanged",void 0);_.R([_.lH("#channel-handle-input"),_.n("design:type",Object)],Ee.prototype,"handleInput",void 0);_.R([_.lH("ytd-feedback-survey-renderer"),_.n("design:type",Object)],Ee.prototype,"feedbackSurveyRenderer",void 0);_.R([_.P("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],Ee.prototype,"radioButtonLength",null);
_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ee.prototype,"handleUrlPrefix",null);_.R([_.P("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ee.prototype,"displayHandle",null);_.R([_.P("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ee.prototype,"displayHandleUrl",null);_.R([_.P("selectedHandle"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ee.prototype,"warningText",null);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ee.prototype,"ytRendererBehavior",void 0);_.R([_.N({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Ee);
_.J(Ee,"ytd-handles-claiming-select-dialog-content",function(){if(Osc!==void 0)return Osc;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Osc=G},{mode:1});var Eec;var pa=function(){var G=_.a.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(b){G.selectedRadioIndex=Number(b.detail.value)};
G.selectedHandleChanged=function(b){G.selectedHandle=b.detail.value};
return G};
_.M(pa,_.a);_.m=pa.prototype;_.m.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.m.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.m.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.E3(this.hostElement,"yt-refit-popups-action")};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.wL(this.hostElement,"yt-close-popup-action",[this.is])};
_.m.onSelectHandle=function(){var G=this;if(this.selectedHandle!==void 0){var b;((b=this.data)==null?void 0:b.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,h){if(h.newHandleUpdateStatus!==void 0&&h.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&h.newHandleUpdateStatus.errorMessage)_.yX(G.hostElement,_.NO(h.newHandleUpdateStatus.errorMessage)),
G.isLoading=!1;else{var q;if((q=G.data)==null?0:q.onChannelUpdateSuccess){I=G.data.onChannelUpdateSuccess;h=_.g(I,_.WB);var l;if(h==null?0:(l=h.popup)==null?0:l.handlesClaimingConfirmDialogRenderer)h.popup.handlesClaimingConfirmDialogRenderer.handle=_.ao(G.selectedHandle);G.ytComponentBehavior.resolveCommand(I);_.wL(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;_.yX(G.hostElement,_.qP("TRY_AGAIN_LATER"))}}}))}};
_.m.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var G,b;this.selectedHandle=(G=this.content)==null?void 0:(b=G.handleInput)==null?void 0:b.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)};
_.m.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.m.getRadioItem=function(G){if(this.radioButtonLength>G&&G>=0)return _.g(this.data.radioButton[G],LDL)};
_.kV.Object.defineProperties(pa.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.radioButton)||[]).length}}});
pa.prototype.onSelectedHandleChanged=pa.prototype.onSelectedHandleChanged;pa.prototype.onSelectedHandleIndexChanged=pa.prototype.onSelectedHandleIndexChanged;pa.prototype.onDataChanged=pa.prototype.onDataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],pa.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],pa.prototype,"actionButtonOverride",void 0);_.R([_.H(),_.n("design:type",Object)],pa.prototype,"cancelButtonOverride",void 0);
_.R([_.H(),_.n("design:type",Object)],pa.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],pa.prototype,"initialRadioIndex",void 0);_.R([_.H(),_.n("design:type",Number)],pa.prototype,"selectedRadioIndex",void 0);_.R([_.H(),_.n("design:type",String)],pa.prototype,"selectedHandle",void 0);_.R([_.H(),_.n("design:type",Object)],pa.prototype,"selectButtonDisabled",void 0);_.R([_.H(),_.n("design:type",Object)],pa.prototype,"isLoading",void 0);
_.R([_.P("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],pa.prototype,"radioButtonLength",null);_.R([_.lH("ytd-handles-claiming-select-dialog-content"),_.n("design:type",Object)],pa.prototype,"content",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pa.prototype,"onDataChanged",null);
_.R([_.q5("selectedRadioIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pa.prototype,"onSelectedHandleIndexChanged",null);_.R([_.q5("selectedHandle"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],pa.prototype,"onSelectedHandleChanged",null);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.R([_.N({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],pa);
_.J(pa,"ytd-handles-claiming-select-dialog-renderer",function(){if(Eec!==void 0)return Eec;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Eec=G},{mode:1});var piL;var Sr9;var S7=function(){return _.a.apply(this,arguments)||this};
_.M(S7,_.a);S7.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],S7.prototype,"data",void 0);_.R([_.N({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],S7);
_.J(S7,"ytd-hotkey-dialog-section-option-renderer",function(){if(Sr9!==void 0)return Sr9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Sr9=G},{mode:1});var Xic;var XV=function(){return _.a.apply(this,arguments)||this};
_.M(XV,_.a);XV.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],XV.prototype,"data",void 0);_.R([_.N({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],XV);
_.J(XV,"ytd-hotkey-dialog-section-renderer",function(){if(Xic!==void 0)return Xic;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Xic=G},{mode:1});var $d=function(){return _.a.apply(this,arguments)||this};
_.M($d,_.a);$d.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],$d.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],$d.prototype,"data",void 0);_.R([_.N({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],$d);
_.J($d,"ytd-hotkey-dialog-content",function(){if(piL!==void 0)return piL;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return piL=G},{mode:1});var $Ue;var GK=function(){return _.a.apply(this,arguments)||this};
_.M(GK,_.a);GK.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)};
GK.prototype.onCloseTap=function(){_.wL(this.hostElement,"yt-close-popup-action")};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],GK.prototype,"data",void 0);_.R([_.N({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],GK);
_.J(GK,"ytd-hotkey-dialog-renderer",function(){if($Ue!==void 0)return $Ue;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $Ue=G},{mode:1});var GDa;var bS=function(){return _.a.apply(this,arguments)||this};
_.M(bS,_.a);bS.prototype.onYtServiceRequestError=function(){if(this.blocked){var G;var b=(G=this.data)==null?void 0:G.defaultServiceEndpoint}else{var I;b=(I=this.data)==null?void 0:I.toggledServiceEndpoint}var h;(b=(h=_.g(b,_.F4A))==null?void 0:h.onFailureAction)&&this.ytComponentBehavior.resolveCommand(b);this.updateBlockState(!this.blocked)};
bS.prototype.onYtToggleButton=function(G){this.updateBlockState(G.detail.toggled)};
bS.prototype.updateBlockState=function(G){if(G!==this.blocked){var b=this.blockedEntityKey;b&&this.ytdReduxBehavior.dispatch(_.Da("blockStateEntity",b,{key:b,blocked:G}));this.set("data.isToggled",G)}};
_.kV.Object.defineProperties(bS.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)}}});
bS.prototype.onYtToggleButton=bS.prototype.onYtToggleButton;bS.prototype.onYtServiceRequestError=bS.prototype.onYtServiceRequestError;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],bS.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],bS.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],bS.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],bS.prototype,"blockedEntityKey",void 0);
_.R([_.H({selectorArgs:["blockedEntityKey"],selector:function(G,b){return _.Gi(G.entities,"blockStateEntity",b)}}),
_.n("design:type",Object)],bS.prototype,"blockStateEntity",void 0);_.R([_.P("data","blockStateEntity"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bS.prototype,"blocked",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],bS.prototype,"onYtServiceRequestError",null);
_.R([_.hI("yt-toggle-button"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],bS.prototype,"onYtToggleButton",null);_.R([_.N({is:"ytd-block-button",disableElementRegistration:!0})],bS);
_.J(bS,"ytd-block-button",function(){if(GDa!==void 0)return GDa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return GDa=G},
{mode:1});var bCf;var IV1;var I7=function(){return _.a.apply(this,arguments)||this};
_.M(I7,_.a);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],I7.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],I7.prototype,"data",void 0);_.R([_.N({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],I7);
_.J(I7,"ytd-kids-blocklist-picker-item-renderer",function(){if(IV1!==void 0)return IV1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return IV1=G},{mode:1});var h3=function(){return _.a.apply(this,arguments)||this};
_.M(h3,_.a);h3.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],h3.prototype,"data",void 0);_.R([_.N({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],h3);
_.J(h3,"ytd-kids-blocklist-picker-content",function(){if(bCf!==void 0)return bCf;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return bCf=
G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var hFK;var q0=function(){var G=_.a.apply(this,arguments)||this;G.hasAnyRequestSucceeded=!1;G.hasAnyRequestFailed=!1;G.numPendingRequests=0;return G};
_.M(q0,_.a);_.m=q0.prototype;_.m.attached=function(){this.hostElement.setAttribute("dialog","")};
_.m.onDoneButtonTap=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.m.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.m.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.m.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.m.onPopupClosed=function(G){var b,I;if(((b=G.detail)==null?void 0:(I=b.popup)==null?void 0:I.is)==="tp-yt-paper-dialog"){var h;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((h=this.data)==null?0:h.successfulToastActionMessage)&&(G=_.Kw(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(G));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
q0.prototype.onPopupClosed=q0.prototype.onPopupClosed;q0.prototype.onYtServiceRequestError=q0.prototype.onYtServiceRequestError;q0.prototype.onYtServiceRequestCompleted=q0.prototype.onYtServiceRequestCompleted;q0.prototype.onYtServiceRequestSent=q0.prototype.onYtServiceRequestSent;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],q0.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],q0.prototype,"data",void 0);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q0.prototype,"onYtServiceRequestSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q0.prototype,"onYtServiceRequestCompleted",null);
_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],q0.prototype,"onYtServiceRequestError",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],q0.prototype,"onPopupClosed",null);_.R([_.N({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],q0);
_.J(q0,"ytd-kids-blocklist-picker-renderer",function(){if(hFK!==void 0)return hFK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return hFK=G},{mode:1});var qHY;var j0F;var jD=function(){return _.a.apply(this,arguments)||this};
_.M(jD,_.a);jD.prototype.setTip=function(G){var b=this;this.data&&(this.tip=KgF(CRc.getInstance(),G,this.data),_.D1(this,function(){_.O3(b.hostElement,"yt-refit")}))};
jD.prototype.clearTip=function(){this.tip=void 0};
jD.prototype.computeHidden=function(G){return!G};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],jD.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.n("design:type",Boolean)],jD.prototype,"hidden",void 0);_.R([_.H(),_.n("design:type",Object)],jD.prototype,"tip",void 0);_.R([_.N({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],jD);
_.J(jD,"ytd-menu-popup-tip-renderer",function(){if(j0F!==void 0)return j0F;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return j0F=G},{mode:1});var lV1;var lS=function(){var G=_.a.apply(this,arguments)||this;G.useIcons=!1;G.systemIcons=_.U("kevlar_system_icons");return G};
_.M(lS,_.a);_.m=lS.prototype;_.m.onFocus=function(){var G;(G=_.Eo(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.m.onTap=function(){var G=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(G&&_.g(G,_.$P))this.componentBehavior.resolveCommand(G),this.updateToggledStateInEntity();else if(G){this.componentBehavior.resolveCommand(G)||_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}});var b;((b=_.g(G,_.b9))==null?void 0:b.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.m.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.m.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.m.updateToggledStateInEntity=function(){var G=this.data.toggleMenuServiceItemEntityKey,b=!this.data.isToggled;G&&this.ytdReduxBehavior.dispatch(_.Da("toggleMenuServiceItemEntity",G,{key:G,isToggled:b}))};
_.m.computeIcon=function(G,b,I){return(G=G?I:b)&&G.iconType?_.pn(G.iconType):""};
_.m.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.m.isIconActive=function(G){return!_.U("toggle_menu_active_icon_killswitch")&&G};
_.kV.Object.defineProperties(lS.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return((G=this.data)==null?0:G.isToggled)?(b=this.data)==null?void 0:b.toggledText:(I=this.data)==null?void 0:I.defaultText}}});
lS.prototype.toggledStateEntityChanged=lS.prototype.toggledStateEntityChanged;lS.prototype.onYtServiceRequestCompleted=lS.prototype.onYtServiceRequestCompleted;lS.prototype.onTap=lS.prototype.onTap;lS.prototype.onFocus=lS.prototype.onFocus;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],lS.prototype,"componentBehavior",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],lS.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],lS.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],lS.prototype,"useIcons",void 0);_.R([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.n("design:type",String)],lS.prototype,"icon",void 0);
_.R([_.H({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.ND.toggleMenuServiceItemEntitySelector}),_.n("design:type",Object)],lS.prototype,"toggleMenuServiceItemEntity",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],lS.prototype,"systemIcons",void 0);_.R([_.hI("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lS.prototype,"onFocus",null);
_.R([_.P("data.isToggled"),_.n("design:type",Object),_.n("design:paramtypes",[])],lS.prototype,"toggleButtonText",null);_.R([_.hI("tap"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lS.prototype,"onTap",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lS.prototype,"onYtServiceRequestCompleted",null);
_.R([_.q5("toggleMenuServiceItemEntity.isToggled","data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lS.prototype,"toggledStateEntityChanged",null);_.R([_.N({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],lS);
_.J(lS,"ytd-toggle-menu-service-item-renderer",function(){if(lV1!==void 0)return lV1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return lV1=G},{mode:1});var mU1;var mK=function(){return _.a.apply(this,arguments)||this};
_.M(mK,_.a);mK.prototype.onFocus=function(){var G;(G=_.Eo(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.kV.Object.defineProperties(mK.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.KA(this.data.iconUrl)}}});
mK.prototype.onFocus=mK.prototype.onFocus;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],mK.prototype,"rendererBehavior",void 0);_.R([_.z(_.ZN.YtEndpointBehavior),_.n("design:type",Object)],mK.prototype,"ytEndpointBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],mK.prototype,"data",void 0);_.R([_.hI("focus"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],mK.prototype,"onFocus",null);
_.R([_.P("data.iconUrl"),_.n("design:type",Object),_.n("design:paramtypes",[])],mK.prototype,"imageSource",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],mK);
_.J(mK,"ytd-menu-custom-icon-item-renderer",function(){if(mU1!==void 0)return mU1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mU1=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});_.JN(_.G2,"yt-list-item-view-model",{props:{data:_.hV,isMenuItem:_.hV,isCompact:_.hV,onTap:_.No,trailingAccessory:_.No,hideSelectionTextChevron:_.hV,disabled:_.hV,inPopup:_.hV,disableHorizontalPadding:_.hV,isOverlay:_.hV,isToggled:_.hV,ariaLabel:_.hV,ariaPressed:_.hV,shouldNotFillIcon:_.hV}});var eD=function(){var G=_.a.apply(this,arguments)||this;G.disableBackdropFilter=_.U("web_disable_backdrop_filter");return G};
_.M(eD,_.a);_.m=eD.prototype;
_.m.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"}}}};
_.m.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.m.computeAriaLabel=function(G){return G};
_.m.onPopupOpened=function(){this.items.selected=0;for(var G=_.e(_.Eo(this.items).children),b=G.next();!b.done;b=G.next())b.value.popupPositionTarget=this.positionTarget;if(G=this.popupTip||void 0)G.setTip(this.source||""),this.source=void 0;this.veData&&(G=_.gL())&&_.FT(G,[this.veData])};
_.m.onPopupClosed=function(){var G=this.popupTip||void 0;G&&G.clearTip()};
_.m.onIronActivate=function(G){this.shouldPersist(G)||_.wL(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(G=_.gL())&&_.WT(G,this.veData)};
_.m.shouldPersist=function(G){var b,I;if(((b=G.detail)==null?void 0:b.selected)===void 0||(I=this.data)==null||!I.items)return!1;var h,q;return!((q=(h=this.data.items[G.detail.selected])==null?void 0:h.toggleMenuServiceItemRenderer)==null||!q.persistentOnMenuPopup)};
_.m.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};
eD.prototype.onPopupClosed=eD.prototype.onPopupClosed;eD.prototype.onPopupOpened=eD.prototype.onPopupOpened;_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],eD.prototype,"ytEventForwardingBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],eD.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],eD.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],eD.prototype,"veData",void 0);_.R([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.n("design:type",String)],eD.prototype,"ariaLabel",void 0);_.R([_.H({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],eD.prototype,"useIcons",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],eD.prototype,"disableBackdropFilter",void 0);_.R([_.lH("#items"),_.n("design:type",Object)],eD.prototype,"items",void 0);_.R([_.lH("ytd-menu-popup-tip-renderer"),_.n("design:type",Object)],eD.prototype,"popupTip",void 0);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eD.prototype,"onPopupOpened",null);
_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],eD.prototype,"onPopupClosed",null);_.R([_.N({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],eD);
_.J(eD,"ytd-menu-popup-renderer",function(){if(qHY!==void 0)return qHY;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return qHY=G},{mode:1});var eF8;var Via=_.C(function(G){G=_.N5(G,{icon:void 0});var b=G.data;G=G.icon;var I=function(){return b().iconBadgeText},h={},q=_.pG("yt-spec-icon-badge-shape",function(){a:switch(b().iconBadgeType){case "notification":var l="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":l="yt-spec-icon-badge-shape--type-cart";break a;default:l=""}return l},function(){a:switch(b().iconBadgeStyle){case "overlay":var l="yt-spec-icon-badge-shape--style-overlay";
break a;default:l=""}return l},(h["yt-spec-icon-badge-shape--text-size-small"]=function(){var l=I();
return!!((l==null?0:l.length)&&l.length>2)},h));
return _.v("yt-icon-badge-shape",null,_.v(_.Q,{cond:G,then:function(l){return _.v("div",{class:q},_.v("div",{class:"yt-spec-icon-badge-shape__icon"},_.v(_.ha,{icon:l})),_.v(_.Q,{cond:I,then:function(V){return _.v("div",{class:"yt-spec-icon-badge-shape__badge"},V)}}))}}))},"mj");
Via.idomCompat=!0;_.JN(Via,"yt-icon-badge-shape",{props:{data:_.hV,icon:_.hV}});var V1=function(){var G=_.a.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};
_.M(V1,_.a);_.m=V1.prototype;_.m.attached=function(){var G=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(b){G.onServiceWorkerMessage(b)})};
_.m.onDataChanged=function(){this.isAttached&&!this.JSC$20877_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20877_lastData=this.data};
_.m.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.m.computeIcon=function(){var G,b;return(G=this.data)==null?void 0:(b=G.icon)==null?void 0:b.iconType};
_.m.onServiceWorkerMessage=function(G){G.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.m.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.g(this.data.updateUnseenCountEndpoint,_.b9)&&_.g(this.data.updateUnseenCountEndpoint,_.b9).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.m.handleUpdateNotificationsUnseenCountAction=function(G){var b=this;G=_.g(G,jED);G!=null&&G.unseenCount&&G.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(G.unseenCount),_.uu.addLowPriorityJob(function(){b.data.updateUnseenCountEndpoint&&b.ytComponentBehavior.resolveCommand(b.data.updateUnseenCountEndpoint)},G.timeoutMs))};
_.m.onClick=function(){_.O3(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var G=_.E3(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),b=this.data.menuRequest;G&&G.length===1&&G[0]?_.wL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):b&&this.ytComponentBehavior.resolveCommand(b)};
_.m.handleTopbarMenuClosedAction=function(G){G==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.m.toggleIconState=function(G){this.iconButton&&(this.iconButton.pressed=G)};
_.m.sendUnseenCountRequest=function(G){var b=this;_.FQ(_.uu,function(){b.ytComponentBehavior.resolveCommand(G)})};
_.m.updateCountUI=function(G){this.set("unseenCount",G<9?G:"9+")};
_.kV.Object.defineProperties(V1.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
V1.prototype.handleUpdateNotificationsUnseenCountAction=V1.prototype.handleUpdateNotificationsUnseenCountAction;V1.prototype.onDataChanged=V1.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],V1.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kk),_.n("design:type",Object)],V1.prototype,"ytdOpenPopupBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],V1.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],V1.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],V1.prototype,"unseenCount",void 0);_.R([_.H(),_.n("design:type",Object)],V1.prototype,"isOverlay",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],V1.prototype,"showTooltips",void 0);_.R([_.lH("yt-icon-button"),_.n("design:type",Object)],V1.prototype,"iconButton",void 0);
_.R([_.P("unseenCount"),_.n("design:type",Object),_.n("design:paramtypes",[])],V1.prototype,"showNotificationCount",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],V1.prototype,"onDataChanged",null);_.R([_.hI("yt-update-notifications-unseen-count-action"),_.n("design:type",Function),_.n("design:paramtypes",[Object]),_.n("design:returntype")],V1.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.R([_.N({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],V1);
_.J(V1,"ytd-notification-topbar-button-renderer",function(){if(eF8!==void 0)return eF8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return eF8=G},{mode:_.nn("kevlar_poly_si_batch_j025")?1:2});var DUc;var D7=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return G};
_.M(D7,_.a);D7.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}}}}}};
D7.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
D7.prototype.onDarkModeToggled=function(G){this.dark=G};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],D7.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],D7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],D7.prototype,"data",void 0);_.R([_.H({value:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],D7.prototype,"dark",void 0);
_.R([_.N({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],D7);
_.J(D7,"yt-pdg-buy-flow-header-renderer",function(){if(DUc!==void 0)return DUc;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return DUc=G},{mode:1});var ctL;var kDf;var c4=function(){var G=_.a.apply(this,arguments)||this;G.immediateValue=0;G.isDarkTheme=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.M(c4,_.a);_.m=c4.prototype;_.m.created=function(){_.Sb.requestAvailability()};
_.m.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.m.dataChanged=function(){var G=_.Eo(this.hostElement).querySelector("#color-slider");G.immediateValue&&this.updateSliderKnobAndGradientStyles(G.immediateValue);this.data.notches[0].knobColorArgb&&_.G8(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.so(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.wy("HTML_DIR")==="rtl"&&_.Eo(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.m.onSliderImmediateChange=function(){var G=_.Eo(this.hostElement).querySelector("#color-slider");G.dragging&&(G.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(G.immediateValue),this.updateSliderKnobAndGradientStyles(G.immediateValue)),this.updateSliderAria())};
_.m.onSliderChange=function(){var G=_.Eo(this.hostElement).querySelector("#color-slider");G.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(G.immediateValue),this.updateSliderKnobAndGradientStyles(G.immediateValue));this.updateSliderAria()};
_.m.updateSliderAria=function(){var G=_.Eo(this.hostElement).querySelector("#color-slider"),b=_.Eo(this.hostElement).querySelector("#color-slider");b=_.NO(this.data.notches[b.immediateValue].tierValue);_.frO()&&_.O3(this.hostElement,"iron-announce",{text:b});G.setAttribute("aria-valuetext",b)};
_.m.updateSuperThanksSelectedTierEntity=function(G){if(G!==this.immediateValue){var b,I,h=this==null?void 0:(b=this.data)==null?void 0:(I=b.superThanksSelectedTierEntity)==null?void 0:I.key;h&&h.length>0&&this.ytdReduxBehavior.dispatch(_.Da("superThanksSelectedTierEntity",h,{key:h,index:G}))}};
_.m.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.m.updateSliderKnobAndGradientStyles=function(G){this.immediateValue=G;G=this.data.notches[G];if(G==null?0:G.knobColorArgb)var b={"--ytd-pdg-color-slider-knob-color":_.so(G.knobColorArgb)};(G==null?0:G.linearGradientCssStyle)&&b!==null&&(b=Object.assign({},b,{"--ytd-pdg-color-slider-active-color":G==null?void 0:G.linearGradientCssStyle}));b!==null&&_.G8(this.hostElement,b)};
c4.prototype.onSliderChange=c4.prototype.onSliderChange;c4.prototype.onSliderImmediateChange=c4.prototype.onSliderImmediateChange;c4.prototype.dataChanged=c4.prototype.dataChanged;_.R([_.H(),_.n("design:type",Object)],c4.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],c4.prototype,"immediateValue",void 0);_.R([_.H(),_.n("design:type",Number)],c4.prototype,"maxMarkers",void 0);
_.R([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:the}),_.n("design:type",Object)],c4.prototype,"superThanksSelectedTierEntity",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],c4.prototype,"isDarkTheme",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],c4.prototype,"ytdReduxBehavior",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c4.prototype,"dataChanged",null);
_.R([_.hI("immediate-value-change"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c4.prototype,"onSliderImmediateChange",null);_.R([_.hI("change"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],c4.prototype,"onSliderChange",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],c4);
_.J(c4,"ytd-pdg-color-slider-renderer",function(){if(kDf!==void 0)return kDf;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return kDf=G},{mode:1});var vAK;var Lo9;var kd=null;
_.fn({is:"ytd-comment-input",_template:function(){if(Lo9!==void 0)return Lo9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Lo9=G},
behaviors:[_.hOO.YtHostElementBehavior,_.PO,_.EN.YtComponentBehavior,_.kK.YtRendererstamperBehavior,_.e$n.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 _.I4}},
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",_.I9(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;_.Uc();this.focus()},
detached:function(){document.removeEventListener("tap",_.I9(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 b=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(b,G);this.maybeUpdateTextDirection_();_.O3(this.hostElement,"input")},
getInputRange_:function(){var G=_.SK();if(G){G=G.getBrowserRangeObject();for(var b=G.commonAncestorContainer;b;){if(b===this.getEditableTextArea_())return G;b=b.parentNode}}G=this.getEditableTextArea_();G=_.uY(G,G.childNodes.length);G.select();return G.getBrowserRangeObject()},
insertTextWithEmojis_:function(G,b,I){(b=this.emojiManager.createDocumentFragment(b,!0,!1,I===void 0?!0:I))&&b.childNodes.length!==0&&(G.collapsed||G.deleteContents(),I=b.lastChild,G.insertNode(b),_.xKe(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var G=_.SK();if(G){var b=G.JSC$11416_getStartNode(),I=G.JSC$11416_getEndNode();if(kd8(b)&&kd8(I)){var h=G.JSC$11416_getStartOffset(),q;if(_.b3&&b.nodeType===Node.ELEMENT_NODE&&(q=_.QkA(b)))_.uY(q,0).select();else{q=D3(b)?b:_.wV(b,D3);var l=D3(I)?I:_.wV(I,D3);if(q||l)if(G.isCollapsed()){if(b.nodeType===Node.TEXT_NODE){G=!0;h===b.length&&(G=!1);if(kd==="end"||kd==="right")G=!1;b=b.parentNode;G=[].concat(_.Nz(b.parentNode.childNodes)).indexOf(b)+(G?0:1);_.uY(b.parentNode,
G).select()}}else q?q.previousSibling&&q.previousSibling.length>0?_.Rz(I,G.JSC$11416_getEndOffset(),q.previousSibling,q.previousSibling.length-1).select():(b=document.createTextNode("\u200b"),q.parentNode.insertBefore(b,q),_.Rz(I,G.JSC$11416_getEndOffset(),b,0).select()):l&&(l.nextSibling&&l.nextSibling.length>0?_.Rz(b,G.JSC$11416_getStartOffset(),l.nextSibling,1).select():(I=document.createTextNode("\u200b"),l.parentNode.insertBefore(I,l.nextSibling),_.Rz(b,G.JSC$11416_getStartOffset(),I,I.length).select()));
kd=null}}else kd=null}else kd=null},
leftKeyPressed_:function(){kd="left"},
rightKeyPressed_:function(){kd="right"},
endKeyPressed_:function(){kd="end"},
maybeDeleteChip_:function(){var G=BUj(!0);if(G){var b=_.SK(),I=b.JSC$11416_getStartNode();b=b.JSC$11416_getStartOffset();_.NH(I,b,G,G.childNodes.length).select()}},
maybeBackspaceChip_:function(){var G=BUj(!1);if(G){var b=_.SK(),I=b.JSC$11416_getStartNode();b=b.JSC$11416_getStartOffset();_.NH(I,b,G,0).select()}},
maybeBackspaceChipWordMode_:function(G){var b=_.SK();if(b.isCollapsed()){var I=b.JSC$11416_getStartNode();b=b.JSC$11416_getStartOffset();var h=UCD(I,b,!0);h&&(_.NH(I,b,h,0).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(G){var b=_.SK();if(b.isCollapsed()){var I=b.JSC$11416_getStartNode();b=b.JSC$11416_getStartOffset();var h=UCD(I,b,!1);h&&(_.NH(I,b,h,h.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"&&D3(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 _.Eo(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Eo(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,b){G=LI5(G,this.emojiManager,b).cloneNode(!0);for(b=G.firstChild;b;)if(b.nodeType!==1)b=b.nextSibling;else switch(b.tagName){case "BR":var I=_.Pm();_.A4n(I,b);b=I.nextSibling;break;case "DIV":(I=b.lastChild)&&b.nextSibling&&_.Fi(_.Pm(),I);b.previousSibling&&(b.previousSibling.nodeType===1||b.previousSibling.nodeType===3&&!b.previousSibling.textContent.endsWith("\n"))&&_.rt(_.Pm(),b);I&&I.nodeName==="BR"&&_.iG(I);I=b;b.hasChildNodes()?(b=b.firstChild,
_.MSW(I)):(b=b.nextSibling,_.iG(I));break;default:b=b.nextSibling}return sR8(G)},
setTextAreaValue:function(G){G||(G="");var b=this.getEditableFormattedString_();b.text="";this.getEditableTextArea_().innerText="";typeof G==="string"&&(G={runs:[{text:G}]});b.text=G},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();kd=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var G=this.getEditableTextArea_();G&&(_.uY(G,G.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.wy("HTML_DIR")==="rtl"){var G=this.getEditableTextArea_(),b=this.getTextAreaValue()!==""?"auto":"rtl";G.setAttribute("dir",b)}},
handleInputEvent_:function(){var G=null;if(this.isEmojiButtonDisplayed){var b=this.getInputRange_();b&&(G=this.emojiInput.retrieveTextBeforeRange(b))}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),_.O3(this.hostElement,"input"))},
insertText_:function(G,b,I){b=b===void 0?!1:b;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&G){var h=this.getInputRange_().cloneRange();this.emojiManager&&h&&(b&&this.emojiInput.offsetStartOfRangeBy(h,G.length),this.insertTextWithEmojis_(h,G,I),vYK(this.getEditableTextArea_().lastChild)||(h=this.getInputRange_().cloneRange()),h&&(this.emojiInput.updateSuggestions(h,G),this.updateSuggestionOffset_(h)))}},
getSimpleString:_.NO,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,b){G?this.fire("yt-autonav-pause-focus"):b!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(G){var b=this.getEditableTextArea_();[].concat(_.Nz(G.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(h){b.appendChild(document.createTextNode(h))})});
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&&_.Eo(this.emojiInput).querySelector("#dropdown")){var b=this.getEditableTextArea_().getBoundingClientRect().bottom,I=G.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(b-I)+5;b=this.getEditableTextArea_().getBoundingClientRect().left;G=G.getBoundingClientRect().left-b;_.Eo(this.emojiInput).querySelector("#dropdown").style.marginLeft=G+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.EA("yt-post"));return this.localStorage}});var v4=function(){var G=_.a.apply(this,arguments)||this;G.currentCommentOptionIndex=0;G.isEmojiPickerDisplayed=!1;G.emojiManager=_.I4;G.isUgcEmpty=!1;G.userGeneratedCommentChangedHandler=function(){_.O3(G.hostElement,"ytd-pdg-user-generated-comment-changed");G.isEmojiYtdCommentInputEnabled&&(G.isUgcEmpty=!G.ytdCommentInputEl.getTextAreaValue())};
G.pasteHandler=function(b){b.preventDefault();b.stopImmediatePropagation();var I;if(b=(I=b.clipboardData)==null?void 0:I.getData("text/plain"))I=document.getSelection().getRangeAt(0),I.collapsed||I.deleteContents(),b=document.createTextNode(b),I.insertNode(b),I.selectNodeContents(b),I.collapse(!1),b=window.getSelection(),b.removeAllRanges(),b.addRange(I)};
G.onDocumentClick=function(b){if(G.isEmojiPickerDisplayed){var I,h,q;!(b.target instanceof Node)||(I=b.composedPath())!=null&&I.includes(G.editableTextEl)||(h=b.composedPath())!=null&&h.includes(G.emojiButtonEl)||(q=b.composedPath())!=null&&q.includes(G.emojiPickerEl)||(G.isEmojiPickerDisplayed=!1)}};
return G};
_.M(v4,_.a);_.m=v4.prototype;_.m.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.m.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.m.detached=function(){var G;(G=this.contentEl)==null||G.removeEventListener("input",this.userGeneratedCommentChangedHandler);var b;(b=this.contentEl)==null||b.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.m.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.m.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()};
_.m.reloadEmojis=function(){this.emojiPickerEl&&_.g(this.emojiPicker,_.Qan)&&this.emojiPickerEl.updateEmojiCategories()};
_.m.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.G8(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.m.handleBackgroundColorStyling=function(){var G;if((G=this.currentCommentOption)==null?0:G.commentBackgroundColorArgb){var b;_.G8(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.so((b=this.currentCommentOption)==null?void 0:b.commentBackgroundColorArgb)})}else _.G8(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.m.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var G;(G=this.contentEl)==null||G.focus()}};
_.m.onEditButtonClick=function(G){var b=document.getSelection();b&&this.contentEl&&(G.stopPropagation(),G.preventDefault(),b.selectAllChildren(this.contentEl),b.collapseToEnd())};
_.m.onContentDrop=function(G){var b=this;if(G.dataTransfer){G=_.e(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(h){var q;(q=b.contentEl)==null||q.appendChild(document.createTextNode(h))})}};
_.m.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.m.getUserGeneratedCommentText=function(){var G,b=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(G=this.contentEl)==null?void 0:G.textContent;return b?b.trim():""};
_.m.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.m.onEmojiSelect=function(G){this.ytdCommentInputEl.onEmojiSelect(G)};
_.kV.Object.defineProperties(v4.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(_.g((G=this.currentCommentOption)==null?void 0:G.chipRenderer,_.aNX)){var b;return _.g((b=this.currentCommentOption)==null?void 0:b.chipRenderer,_.aNX)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var G,b;return((G=this.data)==null?0:G.commentOptionRenderers)?_.g((b=this.data)==null?void 0:b.commentOptionRenderers[this.superThanksSelectedTierEntity.index],dV9):void 0}var I,h;return((I=this.data)==null?0:I.commentOptionRenderers)?_.g((h=this.data)==null?void 0:h.commentOptionRenderers[this.currentCommentOptionIndex],dV9):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,b;return(b=_.g((G=this.data)==null?void 0:G.commentDialog,_.dHi))==null?void 0:b.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var G,b;return(b=_.g((G=this.data)==null?void 0:G.commentDialog,_.dHi))==null?void 0:b.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var G,b;return(b=_.g((G=this.data)==null?void 0:G.commentDialog,_.dHi))==null?void 0:b.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var G,b,I=(b=_.g((G=this.data)==null?void 0:G.commentDialog,_.dHi))==null?void 0:b.emojiPicker;if(!_.g(I,_.Qan)||!_.g(I,_.Qan).categories)return!1;G=function(l){return l.emojiPickerCategoryRenderer?l.emojiPickerCategoryRenderer.emojiIds&&l.emojiPickerCategoryRenderer.emojiIds.length>0:l.emojiPickerUpsellCategoryRenderer?l.emojiPickerUpsellCategoryRenderer.emojis&&l.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var h,q;return((h=_.g(I,_.Qan))==null?0:(q=h.categories)==null?0:q.find(G))?!0:!1}}});
v4.prototype.onEmojiSelect=v4.prototype.onEmojiSelect;v4.prototype.dataChanged=v4.prototype.dataChanged;v4.prototype.currentCommentOptionChanged=v4.prototype.currentCommentOptionChanged;_.R([_.z(_.wN),_.n("design:type",Object)],v4.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],v4.prototype,"rendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.lH("#content-dom-if"),_.n("design:type",_.B5)],v4.prototype,"contentDomIfEl",void 0);_.R([_.lH("#content-no-emojis"),_.n("design:type",HTMLElement)],v4.prototype,"contentEl",void 0);_.R([_.lH("#container"),_.n("design:type",HTMLElement)],v4.prototype,"containerEl",void 0);_.R([_.lH("#comment-chip-container"),_.n("design:type",HTMLElement)],v4.prototype,"paidCommentChipContainerEl",void 0);_.R([_.lH("#text-input"),_.n("design:type",HTMLElement)],v4.prototype,"editableTextEl",void 0);
_.R([_.lH("#emoji-button"),_.n("design:type",HTMLElement)],v4.prototype,"emojiButtonEl",void 0);_.R([_.lH("#emoji-picker > yt-emoji-picker-renderer"),_.n("design:type",Object)],v4.prototype,"emojiPickerEl",void 0);_.R([_.lH("#text-input > ytd-comment-input"),_.n("design:type",Object)],v4.prototype,"ytdCommentInputEl",void 0);_.R([_.H(),_.n("design:type",Object)],v4.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],v4.prototype,"currentCommentOptionIndex",void 0);
_.R([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:the}),_.n("design:type",Object)],v4.prototype,"superThanksSelectedTierEntity",void 0);_.R([_.H(),_.n("design:type",Object)],v4.prototype,"isEmojiPickerDisplayed",void 0);_.R([_.H(),_.n("design:type",Object)],v4.prototype,"emojiManager",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],v4.prototype,"isUgcEmpty",void 0);
_.R([_.q5("currentCommentOption"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],v4.prototype,"currentCommentOptionChanged",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],v4.prototype,"dataChanged",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],v4.prototype,"isEmojiYtdCommentInputEnabled",null);
_.R([_.P("data.title"),_.n("design:type",Object),_.n("design:paramtypes",[])],v4.prototype,"title",null);_.R([_.P("data.authorText"),_.n("design:type",Object),_.n("design:paramtypes",[])],v4.prototype,"channelName",null);_.R([_.P("data.commentOptionRenderers","currentCommentOption"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],v4.prototype,"shouldShowPaidCommentChipRenderer",null);
_.R([_.P("data.commentOptionRenderers","currentCommentOption"),_.n("design:type",Object),_.n("design:paramtypes",[])],v4.prototype,"paidCommentChipRenderer",null);_.R([_.P("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],v4.prototype,"currentCommentOption",null);
_.R([_.P("data.defaultCommentText","superThanksSelectedTierEntity"),_.n("design:type",Object),_.n("design:paramtypes",[])],v4.prototype,"commentText",null);_.R([_.P("data.placeholderText"),_.n("design:type",Object),_.n("design:paramtypes",[])],v4.prototype,"placeholderText",null);_.R([_.P("data.commentDialog.commentDialogRenderer.editableText"),_.n("design:type",Object),_.n("design:paramtypes",[])],v4.prototype,"editableText",null);
_.R([_.P("data.commentDialog.commentDialogRenderer.emojiButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],v4.prototype,"emojiButton",null);_.R([_.P("data.commentDialog.commentDialogRenderer.emojiPicker"),_.n("design:type",Object),_.n("design:paramtypes",[])],v4.prototype,"emojiPicker",null);
_.R([_.P("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],v4.prototype,"isEmojiButtonDisplayed",null);_.R([_.hI("yt-emoji-select"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],v4.prototype,"onEmojiSelect",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],v4);
_.J(v4,"ytd-pdg-comment-preview-renderer",function(){if(vAK!==void 0)return vAK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return vAK=G},{mode:2});var Q09;var L2=function(){var G=_.a.apply(this,arguments)||this;G.selected=!1;return G};
_.M(L2,_.a);_.m=L2.prototype;_.m.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.m.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.m.dataChanged=function(){this.data&&(_.pX(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.G8(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.so(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.so(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.m.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.m.onClick=function(){this.logClick()};
_.m.onKeyboardSelect=function(){_.O3(this.hostElement,"tap");this.onClick()};
_.m.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
L2.prototype.onClick=L2.prototype.onClick;L2.prototype.selectedChanged=L2.prototype.selectedChanged;L2.prototype.dataChanged=L2.prototype.dataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],L2.prototype,"componentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.PO),_.n("design:type",Object)],L2.prototype,"ironA11yKeysBehavior",void 0);
_.R([_.z(_.yx),_.n("design:type",Object)],L2.prototype,"ironSelectableBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],L2.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],L2.prototype,"shownThumbnail",void 0);_.R([_.H(),_.n("design:type",Object)],L2.prototype,"basePriceText",void 0);_.R([_.H(),_.n("design:type",Object)],L2.prototype,"purchaseCommand",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],L2.prototype,"selected",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],L2.prototype,"dataChanged",null);_.R([_.q5("selected"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],L2.prototype,"selectedChanged",null);_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],L2.prototype,"onClick",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],L2);
_.J(L2,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Q09!==void 0)return Q09;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Q09=G},{mode:1});var Q1=function(){var G=_.a.apply(this,arguments)||this;G.selectedItemIndex=0;G.buyButtonDisabled=!1;return G};
_.M(Q1,_.a);_.m=Q1.prototype;
_.m.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]]"}}}}}};
_.m.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var G;var b=(G=_.g(this.data.colorSlider,Pj8))==null?void 0:G.notches[this.selectedItemIndex].purchaseCommand}else{var I;b=(I=_.g(this.data.selectableItemButtons[this.selectedItemIndex],rAa))==null?void 0:I.purchaseCommand}if(b){G=_.g(b,_.AE8);G.productData||(G.productData={});var h;G.productData={pdgData:{commentMessageText:(h=this.commentPreviewRenderer)==null?void 0:h.getUserGeneratedCommentText()}};
_.O3(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(b)}}};
_.m.dataChanged=function(){if(this.data){_.I4.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.N3n(_.I4,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.I4.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var G;this.buyButtonDisabled=!((G=_.g(this.data.commentPreview,yAY))==null||!G.placeholderText);this.updatePriceSelectorStatus();var b;if((b=this.data)==null?0:b.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;G=[];this.data.preloadImages&&(G=this.data.preloadImages);
G=G.map(function(I){return _.KG(I.thumbnails,1920)});
G=_.e(G);for(b=G.next();!b.done;b=G.next())(b=b.value)&&_.HBj(b).thenCatch(function(){_.RB(Error("Il"))})}};
_.m.superThanksSelectedTierEntityChanged=function(){var G;(this==null?void 0:(G=this.superThanksSelectedTierEntity)==null?void 0:G.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.m.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.m.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Eo(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Eo(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Eo(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Eo(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.m.closeBuyFlow=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.m.onUserGeneratedContentChanged=function(){var G;this.buyButtonDisabled=!((G=this.commentPreviewRenderer)==null?0:G.getUserGeneratedCommentText())};
_.m.updateSelectedItemIndexFromBinding=function(G){this.selectedItemIndex=G.detail.value};
_.kV.Object.defineProperties(Q1.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.disclaimerText)}}});
Q1.prototype.onUserGeneratedContentChanged=Q1.prototype.onUserGeneratedContentChanged;Q1.prototype.closeBuyFlow=Q1.prototype.closeBuyFlow;Q1.prototype.selectedItemIndexChanged=Q1.prototype.selectedItemIndexChanged;Q1.prototype.superThanksSelectedTierEntityChanged=Q1.prototype.superThanksSelectedTierEntityChanged;Q1.prototype.dataChanged=Q1.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Q1.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Q1.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Q1.prototype,"selectedItemIndex",void 0);_.R([_.H(),_.n("design:type",Boolean)],Q1.prototype,"isColorSlider",void 0);
_.R([_.H(),_.n("design:type",Object)],Q1.prototype,"buyButtonDisabled",void 0);_.R([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:the}),_.n("design:type",Object)],Q1.prototype,"superThanksSelectedTierEntity",void 0);_.R([_.lH("ytd-pdg-comment-preview-renderer"),_.n("design:type",Object)],Q1.prototype,"commentPreviewRenderer",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Q1.prototype,"ytdReduxBehavior",void 0);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q1.prototype,"dataChanged",null);_.R([_.q5("superThanksSelectedTierEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q1.prototype,"superThanksSelectedTierEntityChanged",null);_.R([_.q5("selectedItemIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q1.prototype,"selectedItemIndexChanged",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q1.prototype,"closeBuyFlow",null);_.R([_.hI("ytd-pdg-user-generated-comment-changed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q1.prototype,"onUserGeneratedContentChanged",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],Q1.prototype,"isDisclaimerTextShown",null);
_.R([_.N({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Q1);
_.J(Q1,"yt-super-vod-buy-flow-content-renderer",function(){if(ctL!==void 0)return ctL;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ctL=G},{mode:1});var xUK;var xd=function(){var G=_.a.apply(this,arguments)||this;G.lottieAnimationRef={};return G};
_.M(xd,_.a);_.m=xd.prototype;_.m.created=function(){_.Sb.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.I9(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.m.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.O3(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.m.detached=function(){this.autoCloseJobId&&_.uu.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.I9(this,this.onPopupIronOverlayOpened))};
_.m.dataChanged=function(){var G=this;this.data&&this.data.autoCloseDelay&&(_.wL(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.O0(_.uu,function(){G.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.G8(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.m.onDOMLoadedLottie=function(){var G=this,b,I,h=Number((b=this.data)==null?void 0:(I=b.autoCloseDelay)==null?void 0:I.seconds)||0;this.fadeOutJobId=_.O0(_.uu,function(){G.lottiePlayerEl.classList.add("fadeout")},(h-.25)*1E3);
this.autoCloseJobId=_.O0(_.uu,function(){G.closePopup()},h*1E3)};
_.m.openPopup=function(){this.ironOverlayBehavior.open()};
_.m.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.wL(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Su(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.LL().resolve(_.xW).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.uu.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.uu.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.m.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var G,b;(G=this.lottieAnimationRef)==null||(b=G.lottieEl)==null||b.destroy();G=this.data.lottie;var I,h;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:G.url+"_"+Math.random(),path:G.url,autoplay:!0,loop:(h=(I=G.settings)==null?void 0:I.loop)!=null?h:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.kV.Object.defineProperties(xd.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var G,b;return!!((G=this.data)==null?0:(b=G.lottie)==null?0:b.url)}}});
xd.prototype.maybeInitializeLottie=xd.prototype.maybeInitializeLottie;xd.prototype.dataChanged=xd.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xd.prototype,"rendererBehavior",void 0);_.R([_.z(_.IV),_.n("design:type",Object)],xd.prototype,"ironOverlayBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],xd.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],xd.prototype,"lottiePlayerProps",void 0);
_.R([_.H(),_.n("design:type",Object)],xd.prototype,"lottieAnimationRef",void 0);_.R([_.lH("ytd-lottie-player"),_.n("design:type",HTMLElement)],xd.prototype,"lottiePlayerEl",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xd.prototype,"dataChanged",null);_.R([_.P("data"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],xd.prototype,"hasLottieAnimation",null);
_.R([_.q5("data.lottie.url"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xd.prototype,"maybeInitializeLottie",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],xd);
_.J(xd,"ytd-desktop-image-overlay-renderer",function(){if(xUK!==void 0)return xUK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-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(_.E().content.cloneNode(!0),
G.content.firstChild);return xUK=G},{mode:1});var fVe;var f2=function(){return _.a.apply(this,arguments)||this};
_.M(f2,_.a);_.m=f2.prototype;_.m.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"}}}}};
_.m.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",_.I9(this,this.closePopup))};
_.m.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.I9(this,this.closePopup))};
_.m.dataChanged=function(){_.E3(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.g(this.data.header,i$9)&&(this.hasBackgroundBanner=!!_.g(this.data.header,i$9).backgroundBanner)};
_.m.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.I9(this,this.closePopup))};
_.m.closePopup=function(){this.data&&this.data.onCloseCommand&&_.pv(this.hostElement,[this.data.onCloseCommand])};
f2.prototype.handleBuyflowSelectionSubmitted=f2.prototype.handleBuyflowSelectionSubmitted;f2.prototype.dataChanged=f2.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],f2.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],f2.prototype,"data",void 0);
_.R([_.H({value:!0,reflectToAttribute:!0}),_.n("design:type",Boolean)],f2.prototype,"hasBackgroundBanner",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f2.prototype,"dataChanged",null);_.R([_.hI("yt-pdg-buy-flow-selection-submitted"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],f2.prototype,"handleBuyflowSelectionSubmitted",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],f2);
_.J(f2,"ytd-pdg-buy-flow-renderer",function(){if(fVe!==void 0)return fVe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fVe=G},{mode:1});var T7a;var TK=function(){var G=_.a.apply(this,arguments)||this;G.isOpen=!1;G.isPlaylistCreated=!1;return G};
_.M(TK,_.a);_.m=TK.prototype;_.m.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.m.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.O3(this.hostElement,"yt-refit")};
_.m.onCreateTap=function(){var G=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.pv(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(b,I){if(!_.U("killswitch_ep_in_create_playlist_response")&&(I==null?0:I.actions))for(b=_.e(I.actions),I=b.next();!I.done;I=b.next())I=I.value,_.g(I,_.UE)&&G.ytComponentBehavior.resolveCommand(I)}}]),this.isPlaylistCreated=!0)};
_.m.onKeydown=function(G){if(G.keyCode===13)this.onCreateTap()};
_.m.onServiceRequestCompleted=function(G){G.stopPropagation();_.wL(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.m.computePrivacyBadge=function(G){return G?[{metadataBadgeRenderer:G}]:[]};
TK.prototype.onServiceRequestCompleted=TK.prototype.onServiceRequestCompleted;TK.prototype.onKeydown=TK.prototype.onKeydown;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],TK.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],TK.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],TK.prototype,"isOpen",void 0);
_.R([_.H(),_.n("design:type",Object)],TK.prototype,"isPlaylistCreated",void 0);_.R([_.H({value:{REQUIRED_LABEL:_.qP("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.qP("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.n("design:type",Object)],TK.prototype,"addToStrings",void 0);_.R([_.H({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.n("design:type",Array)],TK.prototype,"privacyBadge",void 0);
_.R([_.lH("#privacy-input"),_.n("design:type",Object)],TK.prototype,"privacyInput",void 0);_.R([_.lH("#name-input"),_.n("design:type",Object)],TK.prototype,"nameInput",void 0);_.R([_.hI("keydown"),_.n("design:type",Function),_.n("design:paramtypes",[KeyboardEvent]),_.n("design:returntype")],TK.prototype,"onKeydown",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],TK.prototype,"onServiceRequestCompleted",null);
_.R([_.N({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],TK);
_.J(TK,"ytd-add-to-playlist-create-renderer",function(){if(T7a!==void 0)return T7a;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return T7a=G},{mode:1});var B7a;var UUa;var B4=function(){var G=_.a.apply(this,arguments)||this;G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.M(B4,_.a);B4.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
B4.prototype.onCheckboxChange=function(G){var b=this;this.data&&_.P5(this,"yt-playlist-checkbox-changed",function(){var I=_.a_(G).checked?b.data.addToPlaylistServiceEndpoint:b.data.removeFromPlaylistServiceEndpoint;I&&_.LL().resolve(_.xW).resolveCommand(I,{form:{element:b.hostElement}});_.U("dl_playlist_killswitch")||b.transferState!=="TRANSFER_STATE_UNKNOWN"&&b.transferState!=="TRANSFER_STATE_FAILED"&&b.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:b.data.playlistId,action:"ACTION_SYNC"}})},
100)};
B4.prototype.computeIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
B4.prototype.dataChanged=B4.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],B4.prototype,"data",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],B4.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],B4.prototype,"ytComponentBehavior",void 0);_.R([_.lH("#checkbox"),_.n("design:type",HTMLInputElement)],B4.prototype,"checkbox",void 0);
_.R([_.H({selector:_.tQ,selectorArgs:["data.playlistId"]}),_.n("design:type",String)],B4.prototype,"transferState",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],B4.prototype,"dataChanged",null);_.R([_.N({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],B4);
_.J(B4,"ytd-playlist-add-to-option-renderer",function(){if(UUa!==void 0)return UUa;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return UUa=G},{mode:1});var s0j=_.C(function(G){var b=G.data;return _.v("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.v("div",null,_.v(_.IS,{text:function(){return b().title}})),_.v(_.Q,{cond:function(){return b().subtitle},
then:function(I){return _.v("div",{class:"ytdMenuTitleRendererSubtitle"},_.v(_.IS,{text:I}))}}))},"nj");
s0j.idomCompat=!0;_.JN(s0j,"ytd-menu-title-renderer",{props:{data:_.hV}});var Uk=function(){var G=_.a.apply(this,arguments)||this;G.addToStrings={ADD_TO_DROPDOWN_LABEL:_.qP("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};G.closeButtonAriaLabel=_.qP("SBOX_INAPPROPRIATE_CANCEL");G.dialog=_.U("desktop_add_to_playlist_renderer_dialog_popup");return G};
_.M(Uk,_.a);_.m=Uk.prototype;_.m.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"}}}};
_.m.onPopupOpened=function(){_.SL(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.m.onPopupClosed=function(){_.SL(this.playlists,"scrollable",!1)};
_.m.computeAriaLabel=function(){var G;if(this==null?0:(G=this.data)==null?0:G.actions){G=_.e(this.data.actions);for(var b=G.next();!b.done;b=G.next())if(b=b.value,b.menuTitleRenderer)return _.NO(b.menuTitleRenderer.title)}};
_.m.onTapClose=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.kV.Object.defineProperties(Uk.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if(this==null?0:(G=this.data)==null?0:G.actions){G=_.e(this.data.actions);for(var b=G.next();!b.done;b=G.next())if(b=b.value,b.menuTitleRenderer)return b.menuTitleRenderer}return!1}}});
Uk.prototype.onPopupClosed=Uk.prototype.onPopupClosed;Uk.prototype.onPopupOpened=Uk.prototype.onPopupOpened;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],Uk.prototype,"ytEventForwardingBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Uk.prototype,"ytRendererStamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],Uk.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],Uk.prototype,"addToStrings",void 0);_.R([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.n("design:type",String)],Uk.prototype,"ariaLabel",void 0);_.R([_.H(),_.n("design:type",String)],Uk.prototype,"closeButtonAriaLabel",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Uk.prototype,"dialog",void 0);
_.R([_.lH("#playlists"),_.n("design:type",HTMLElement)],Uk.prototype,"playlists",void 0);_.R([_.lH("ytd-add-to-playlist-create-renderer"),_.n("design:type",Object)],Uk.prototype,"createRenderer",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],Uk.prototype,"menuTitleRenderer",null);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uk.prototype,"onPopupOpened",null);
_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Uk.prototype,"onPopupClosed",null);_.R([_.N({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Uk);
_.J(Uk,"ytd-add-to-playlist-renderer",function(){if(B7a!==void 0)return B7a;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return B7a=G},{mode:1});var gAf;var sk=function(){var G=_.a.apply(this,arguments)||this;G.isPlaylistEditComplete=!1;G.isCollabEngagementDisabled=!1;G.closeButtonAriaLabel=_.qP("SBOX_INAPPROPRIATE_CANCEL");G.saveButton={title:_.qP("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};
_.M(sk,_.a);_.m=sk.prototype;_.m.attached=function(){this.JSC$20931_scroller&&(this.JSC$20931_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20931_scroller.attached&&typeof this.JSC$20931_scroller.attached==="function"&&this.JSC$20931_scroller.attached())};
_.m.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.m.onPopupClosed=function(){this.reset()};
_.m.close=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.m.onClickSave=function(){var G=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var b=[];this.nameInput.value!==null&&b.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&b.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var I=Number(this.privacyInput.value);isNaN(I)||b.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:I})}this.votingInput.value!==null&&(I=this.votingInput.value)&&b.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:I});if(b.length>0){var h;_.g((h=this.data)==null?void 0:h.updateSettingsEndpoint,_.SI).actions=b;var q;if((q=this.data)==null?0:q.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){G.close()}}}),this.isPlaylistEditComplete=!0}}};
_.m.computePrivacyBadge=function(G){return G?[{metadataBadgeRenderer:G}]:[]};
_.m.computeEditorData=function(G){var b,I;return G==null?void 0:(b=G.sections)==null?void 0:(I=b[0])==null?void 0:I.playlistSettingsEditorCasualSectionRenderer};
_.m.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.m.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}}}}}};
_.m.computeAriaLabel=function(){var G,b,I,h=(G=this.data)==null?void 0:(b=G.sections)==null?void 0:(I=b[0])==null?void 0:I.playlistSettingsEditorCasualSectionRenderer;return _.NO(h==null?void 0:h.title)};
_.m.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"}))};
_.m.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.m.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.m.isNameChanged=function(){var G,b,I;return(((G=this.editorData)==null?void 0:(b=G.name)==null?void 0:(I=b.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.nameInput.value||"")};
_.m.isDescriptionChanged=function(){var G,b,I;return(((G=this.editorData)==null?void 0:(b=G.description)==null?void 0:(I=b.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.descriptionInput.value||"")};
_.m.isPrivacyChanged=function(){var G,b,I,h,q,l,V,D;return((V=(G=this.editorData)==null?void 0:(b=G.privacy)==null?void 0:(I=b.dropdownFormFieldRenderer)==null?void 0:(h=I.dropdown)==null?void 0:(q=h.dropdownRenderer)==null?void 0:(l=q.entries)==null?void 0:l.find(function(k){var L;return k==null?void 0:(L=k.privacyDropdownItemRenderer)==null?void 0:L.isSelected}))==null?void 0:(D=V.privacyDropdownItemRenderer)==null?void 0:D.int32Value)!==this.privacyInput.value};
_.m.isVotingChanged=function(){var G,b,I,h,q,l,V,D;return((V=(G=this.editorData)==null?void 0:(b=G.voting)==null?void 0:(I=b.dropdownFormFieldRenderer)==null?void 0:(h=I.dropdown)==null?void 0:(q=h.dropdownRenderer)==null?void 0:(l=q.entries)==null?void 0:l.find(function(k){var L;return k==null?void 0:(L=k.privacyDropdownItemRenderer)==null?void 0:L.isSelected}))==null?void 0:(D=V.privacyDropdownItemRenderer)==null?void 0:D.int32Value)!==this.votingInput.value};
sk.prototype.onPopupClosed=sk.prototype.onPopupClosed;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],sk.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],sk.prototype,"ytEventForwardingBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],sk.prototype,"ytRendererStamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],sk.prototype,"data",void 0);_.R([_.H({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.n("design:type",Array)],sk.prototype,"privacyBadge",void 0);_.R([_.H({computed:"computeEditorData(data)"}),_.n("design:type",Object)],sk.prototype,"editorData",void 0);_.R([_.H(),_.n("design:type",Object)],sk.prototype,"isPlaylistEditComplete",void 0);_.R([_.H(),_.n("design:type",Object)],sk.prototype,"isCollabEngagementDisabled",void 0);
_.R([_.H({value:{REQUIRED_LABEL:_.qP("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.qP("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.n("design:type",Object)],sk.prototype,"addToStrings",void 0);_.R([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.n("design:type",String)],sk.prototype,"ariaLabel",void 0);_.R([_.H(),_.n("design:type",String)],sk.prototype,"closeButtonAriaLabel",void 0);
_.R([_.H(),_.n("design:type",Object)],sk.prototype,"saveButton",void 0);_.R([_.lH("#name-input"),_.n("design:type",Object)],sk.prototype,"nameInput",void 0);_.R([_.lH("#description-input"),_.n("design:type",Object)],sk.prototype,"descriptionInput",void 0);_.R([_.lH("#privacy-input"),_.n("design:type",Object)],sk.prototype,"privacyInput",void 0);_.R([_.lH("#voting-input"),_.n("design:type",Object)],sk.prototype,"votingInput",void 0);
_.R([_.lH("#scroller"),_.n("design:type",Object)],sk.prototype,"JSC$20931_scroller",void 0);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],sk.prototype,"onPopupClosed",null);_.R([_.H(),_.n("design:type",Object)],sk.prototype,"onValueChanged",void 0);_.R([_.N({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],sk);
_.J(sk,"ytd-playlist-settings-editor-renderer",function(){if(gAf===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);gAf=G}G=gAf;return G},{mode:1});var Ate;_.QO("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var gE=function(){return _.a.apply(this,arguments)||this};
_.M(gE,_.a);_.m=gE.prototype;_.m.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}}}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.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))};
_.m.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)}}};
_.m.onPopupOpened=function(G){G.detail!==this&&G.detail!==this.hostElement||!_.U("enable_premium_voluntary_pause")||_.wL(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.m.onNextButtonTap=function(){var G=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);G&&this.ytdOpenPopupBehavior.openPopup(G)};
_.m.updateSelectedResponseIndexFromBinding=function(G){this.selectedResponseIndex=G.detail.value};
gE.prototype.onPopupOpened=gE.prototype.onPopupOpened;gE.prototype.onSelectedResponseIndexChange=gE.prototype.onSelectedResponseIndexChange;gE.prototype.dataChanged=gE.prototype.dataChanged;_.R([_.z(_.kk),_.n("design:type",Object)],gE.prototype,"ytdOpenPopupBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],gE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],gE.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],gE.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Number)],gE.prototype,"selectedResponseIndex",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gE.prototype,"dataChanged",null);_.R([_.q5("selectedResponseIndex"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],gE.prototype,"onSelectedResponseIndexChange",null);
_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],gE.prototype,"onPopupOpened",null);_.R([_.N({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],gE);
_.J(gE,"ytd-red-cancel-survey-renderer",function(){if(Ate!==void 0)return Ate;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ate=G},{mode:1});var Mif;var A3=function(){var G=_.a.apply(this,arguments)||this;G.closeButtonAriaLabel=_.qP("SBOX_INAPPROPRIATE_CANCEL");return G};
_.M(A3,_.a);A3.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
A3.prototype.onClickClose=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],A3.prototype,"rendererStamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],A3.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],A3.prototype,"closeButtonAriaLabel",void 0);_.R([_.N({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],A3);
_.J(A3,"ytd-search-filter-options-dialog-renderer",function(){if(Mif!==void 0)return Mif;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Mif=G},{mode:1});var ZC1;var MRD=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 M0=function(){var G=_.a.apply(this,arguments)||this;G.qualityOptions=[];G.upsellOptions=[];G.showUpsellSection=!1;G.rememberSettingsChecked=!1;return G};
_.M(M0,_.a);_.m=M0.prototype;_.m.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}}}}};
_.m.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.m.updateQualityOptions=function(){if(this.formats===void 0)_.wL(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var G=[],b=[];this.showUpsellSection=!1;for(var I=_.e(this.formats),h=I.next();!h.done;h=I.next())(h=h.value)&&(h.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?b.push(h):G.push(h));G.length&&(this.qualityOptions=AJc(G));b.length&&(this.showUpsellSection=!0,this.upsellOptions=AJc(b))}};
_.m.updateRememberString=function(){if(this.downloadQualityPickerEntity)var G=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var b;G=(b=this.data)==null?void 0:b.premiumRememberSettingString}else{var I;G=(I=this.data)==null?void 0:I.rememberSettingString}G=G===void 0?_.qP("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):G;this.rememberSettingsCheckboxRenderer={title:_.RW(G),disabled:!1}};
_.m.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.kV.Object.defineProperties(M0.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var G;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(G=this.data)==null?void 0:G.qualityFormats}}});
M0.prototype.updateRememberString=M0.prototype.updateRememberString;M0.prototype.updateQualityOptions=M0.prototype.updateQualityOptions;M0.prototype.dataChanged=M0.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],M0.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],M0.prototype,"data",void 0);
_.R([_.z(_.wN),_.n("design:type",Object)],M0.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Boolean)],M0.prototype,"selectedUpsellQuality",void 0);_.R([_.H({computed:"computeIcon_(data.premiumIcon)",value:""}),_.n("design:type",String)],M0.prototype,"premiumIcon",void 0);_.R([_.H({selector:AN5,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.n("design:type",Object)],M0.prototype,"downloadQualityPickerEntity",void 0);
_.R([_.H(),_.n("design:type",Array)],M0.prototype,"qualityOptions",void 0);_.R([_.H(),_.n("design:type",Array)],M0.prototype,"upsellOptions",void 0);_.R([_.H(),_.n("design:type",Object)],M0.prototype,"showUpsellSection",void 0);_.R([_.H(),_.n("design:type",Object)],M0.prototype,"rememberSettingsCheckboxRenderer",void 0);_.R([_.lH("#remember-settings"),_.n("design:type",HTMLInputElement)],M0.prototype,"rememberSettingsCheckbox",void 0);
_.R([_.H(),_.n("design:type",Object)],M0.prototype,"rememberSettingsChecked",void 0);_.R([_.H(),_.n("design:type",Function)],M0.prototype,"onRememberSettingsCheckedChanged",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M0.prototype,"dataChanged",null);_.R([_.q5("downloadQualityPickerEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M0.prototype,"updateQualityOptions",null);
_.R([_.q5("selectedUpsellQuality"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],M0.prototype,"updateRememberString",null);_.R([_.N({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],M0);
_.J(M0,"ytd-download-quality-selector-content",function(){if(ZC1!==void 0)return ZC1;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ZC1=G},{mode:1});var ti9;var Z7=function(){var G=_.a.apply(this,arguments)||this;G.selectedUpsellQuality=!1;G.qualityOptions=[];G.useUpsellDismissAlternate=_.U("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(b){G.rememberSettingsChecked=b};
return G};
_.M(Z7,_.a);_.m=Z7.prototype;
_.m.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.RW(_.qP("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.RW(_.qP("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.RW(_.qP("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.RW(_.qP("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.m.updateQualityOptions=function(){this.formats===void 0?_.wL(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=AJc(this.formats)};
_.m.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 b=_.e(this.qualityOptions.entries()),I=b.next();!I.done;I=
b.next()){I=_.e(I.value);var h=I.next().value;I=I.next().value;var q=void 0,l=void 0;if(((q=I)==null?void 0:(l=q.settingsRadioOptionRenderer)==null?void 0:l.id)===G){this.selectedQualityIndex=h;G=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((G=this.formats[h])==null?void 0:G.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.m.onClickSubmit=function(){var G;if((G=this.downloadButtonRenderer)==null||!G.isDisabled){var b,I;G=(I=(b=this.data)==null?void 0:b.onSubmitEndpoint)!=null?I:{};var h,q;if(this.formats&&(((h=_.g(G,_.qt))==null?0:h.videoId)||((q=_.g(G,_.jK))==null?0:q.playlistId))){var l,V,D,k,L,x;b={formatType:(k=(l=this.formats)==null?void 0:(V=l[(D=this.selectedQualityIndex)!=null?D:0])==null?void 0:V.format)!=null?k:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(L=this.getOfflineEndpoint(G))==null?void 0:(x=L.actionParams)==null?void 0:x.settingsAction)};this.getOfflineEndpoint(G).actionParams=b;this.ytComponentBehavior.resolveCommand(G)}_.wL(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.m.onClickUpsell=function(){var G;if((G=this.upsellButtonRenderer)==null||!G.isDisabled){var b,I;G=(I=(b=this.data)==null?void 0:b.upsellEndpoint)!=null?I:{};this.ytComponentBehavior.resolveCommand(G);_.wL(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);b="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var h,q,l,V;b=(V=(h=this.formats)==null?void 0:(q=h[(l=this.selectedQualityIndex)!=null?l:0])==null?void 0:q.format)!=null?V:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:b}})}};
_.m.onClickClose=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.m.getOfflineSettingsAction=function(G,b){return G?b===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":b:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.m.getOfflineEndpoint=function(G){return _.g(G,_.qt)?_.g(G,_.qt):_.g(G,_.jK)};
_.kV.Object.defineProperties(Z7.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.RW(_.qP("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}}});
Z7.prototype.updateQualityOptions=Z7.prototype.updateQualityOptions;Z7.prototype.dataChanged=Z7.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Z7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Z7.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Z7.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Z7.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Number)],Z7.prototype,"selectedQualityIndex",void 0);_.R([_.H(),_.n("design:type",Object)],Z7.prototype,"selectedUpsellQuality",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Z7.prototype,"ytdReduxBehavior",void 0);
_.R([_.H({selector:AN5,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.n("design:type",Object)],Z7.prototype,"downloadQualityPickerEntity",void 0);_.R([_.H(),_.n("design:type",Array)],Z7.prototype,"qualityOptions",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],Z7.prototype,"useUpsellDismissAlternate",void 0);_.R([_.H(),_.n("design:type",Object)],Z7.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.R([_.H(),_.n("design:type",Object)],Z7.prototype,"downloadButtonRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],Z7.prototype,"upsellButtonRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],Z7.prototype,"cancelButtonRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],Z7.prototype,"upsellCancelButtonRenderer",void 0);_.R([_.H(),_.n("design:type",Object)],Z7.prototype,"rememberSettings",void 0);_.R([_.H(),_.n("design:type",Object)],Z7.prototype,"rememberSettingsChecked",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Z7.prototype,"dataChanged",null);_.R([_.q5("downloadQualityPickerEntity"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Z7.prototype,"updateQualityOptions",null);_.R([_.N({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Z7);
_.J(Z7,"ytd-download-quality-selector-renderer",function(){if(ti9!==void 0)return ti9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-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(_.E().content.cloneNode(!0),G.content.firstChild);return ti9=G},{mode:1});var zFc;var t3=function(){return _.a.apply(this,arguments)||this};
_.M(t3,_.a);t3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
t3.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],t3.prototype,"data",void 0);_.R([_.H({computed:"computeIcon_(data.infoIcon)"}),_.n("design:type",Object)],t3.prototype,"infoIcon",void 0);
_.R([_.H({computed:"computeIcon_(data.warningIcon)"}),_.n("design:type",Object)],t3.prototype,"warningIcon",void 0);_.R([_.N({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],t3);
_.J(t3,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(zFc!==void 0)return zFc;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return zFc=G},{mode:1});var oAD;var zK=function(){return _.a.apply(this,arguments)||this};
_.M(zK,_.a);zK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zK.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],zK.prototype,"data",void 0);_.R([_.N({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],zK);
_.J(zK,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(oAD!==void 0)return oAD;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return oAD=G},{mode:1});var iCj;var o7=function(){return _.a.apply(this,arguments)||this};
_.M(o7,_.a);o7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
o7.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"}}}}};
o7.prototype.onServiceRequestSentOrCompleted=function(G,b){b&&b.actions&&b.actions.length>0&&_.wL(this.hostElement,"yt-close-popup-action",[this.is])};
o7.prototype.onServiceRequestSentOrCompleted=o7.prototype.onServiceRequestSentOrCompleted;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],o7.prototype,"data",void 0);
_.R([_.hI("yt-service-request-completed"),_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],o7.prototype,"onServiceRequestSentOrCompleted",null);_.R([_.N({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],o7);
_.J(o7,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(iCj!==void 0)return iCj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return iCj=G},{mode:1});var Pcj;var iS=function(){var G=_.a.apply(this,arguments)||this;G.submitButtonDisabled=!0;return G};
_.M(iS,_.a);_.m=iS.prototype;_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.m.onDataChanged=function(){var G,b,I;if(((G=this.data)==null?void 0:(b=G.confirmButton)==null?void 0:(I=b.buttonRenderer)==null?void 0:I.isDisabled)!==void 0){var h,q,l;this.submitButtonDisabled=(h=this.data)==null?void 0:(q=h.confirmButton)==null?void 0:(l=q.buttonRenderer)==null?void 0:l.isDisabled}};
_.m.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.m.updateSubmitButtonDisabledFromBinding=function(G){this.submitButtonDisabled=G.detail.value};
_.m.updateSubmitButtonDisabledFromConfirmCheckbox=function(G){this.submitButtonDisabled=!G.detail.value};
iS.prototype.onDataChanged=iS.prototype.onDataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],iS.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],iS.prototype,"submitButtonDisabled",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iS.prototype,"onDataChanged",null);_.R([_.N({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],iS);
_.J(iS,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(Pcj!==void 0)return Pcj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Pcj=G},{mode:1});var dUj;var P4=function(){return _.a.apply(this,arguments)||this};
_.M(P4,_.a);_.kV.Object.defineProperties(P4.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var G,b,I;return((G=this.data)==null?void 0:G.title)+" "+((b=this.data)==null?void 0:b.metadataPrimary)+" "+((I=this.data)==null?void 0:I.metadataSecondary)}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],P4.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],P4.prototype,"data",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],P4.prototype,"ariaLabel",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],P4);
_.J(P4,"ytd-compact-product-list-item-renderer",function(){if(dUj!==void 0)return dUj;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return dUj=G},{mode:1});var ytW;var dE=function(){return _.a.apply(this,arguments)||this};
_.M(dE,_.a);dE.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]]"}}}}}};
_.kV.Object.defineProperties(dE.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],dE.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],dE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],dE.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],dE);
_.J(dE,"ytd-compact-product-list-renderer",function(){if(ytW!==void 0)return ytW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ytW=G},{mode:1});var rt8;var y1=function(){return _.a.apply(this,arguments)||this};
_.M(y1,_.a);_.m=y1.prototype;_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.m.getBackgroundUrl=function(){var G=this.get("data.headerImage.thumbnails");return G?"url("+_.KG(G,this.hostElement.clientWidth)+")":""};
_.m.onDataChanged=function(){var G=this.getBackgroundUrl();G&&(this.header.style.backgroundImage=G);G=_.gL();var b=_.s3(),I=this.get("data.trackingParams");I&&b&&G&&_.dK(G,b,_.VB(I));G=_.e(this.hostElement.querySelectorAll("yt-img-shadow"));for(b=G.next();!b.done;b=G.next())b.value.onShow()};
_.m.onPopupClosed=function(G){_.a_(G).localName==="ytd-membership-post-cancel-renderer"&&_.wL(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
y1.prototype.onPopupClosed=y1.prototype.onPopupClosed;y1.prototype.onDataChanged=y1.prototype.onDataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],y1.prototype,"data",void 0);_.R([_.lH("#header"),_.n("design:type",HTMLDivElement)],y1.prototype,"header",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],y1.prototype,"onDataChanged",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],y1.prototype,"onPopupClosed",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],y1);
_.J(y1,"ytd-membership-post-cancel-renderer",function(){if(rt8!==void 0)return rt8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return rt8=G},{mode:1});var FoF;var rE=function(){return _.a.apply(this,arguments)||this};
_.M(rE,_.a);rE.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
rE.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],rE.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],rE.prototype,"data",void 0);_.R([_.lH("ytd-feedback-survey-renderer"),_.n("design:type",Object)],rE.prototype,"feedbackSurveyRenderer",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],rE);
_.J(rE,"ytd-sponsorship-confirm-cancel-content",function(){if(FoF!==void 0)return FoF;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return FoF=G},{mode:1});var HC3;var FK=function(){var G=_.a.apply(this,arguments)||this;G.maybeSubmitFeedback=function(){G.content&&G.content.maybeSubmitFeedback()};
return G};
_.M(FK,_.a);_.m=FK.prototype;_.m.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.m.onYtPopupOpened=function(G,b){b===this&&this.data&&this.data.onOpenCommands&&_.Su(this.hostElement,this.data.onOpenCommands,this.hostElement);_.wL(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.m.onYtPopupClosed=function(G,b){(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Su(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.m.onYtServiceRequestCompleted=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.m.onYtServiceRequestError=function(G){_.yX(this.hostElement,G.detail.error.message)};
_.m.onDataChanged=function(){if(this.isAttached){var G=this.backgroundUrl;G&&(_.Eo(this.hostElement).querySelector("#header").style.backgroundImage=G)}};
_.kV.Object.defineProperties(FK.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return G?"url("+_.KG(G,this.hostElement.clientWidth)+")":""}}});
FK.prototype.onDataChanged=FK.prototype.onDataChanged;FK.prototype.onYtServiceRequestError=FK.prototype.onYtServiceRequestError;FK.prototype.onYtServiceRequestCompleted=FK.prototype.onYtServiceRequestCompleted;FK.prototype.onYtPopupClosed=FK.prototype.onYtPopupClosed;FK.prototype.onYtPopupOpened=FK.prototype.onYtPopupOpened;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],FK.prototype,"data",void 0);_.R([_.H({value:function(){return _.qP("SBOX_INAPPROPRIATE_CANCEL")}}),
_.n("design:type",String)],FK.prototype,"closeButtonAriaLabel",void 0);_.R([_.lH("#scrollable"),_.n("design:type",Object)],FK.prototype,"scrollable",void 0);_.R([_.lH("ytd-sponsorship-confirm-cancel-content"),_.n("design:type",Object)],FK.prototype,"content",void 0);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],FK.prototype,"onYtPopupOpened",null);
_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],FK.prototype,"onYtPopupClosed",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],FK.prototype,"onYtServiceRequestCompleted",null);
_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],FK.prototype,"onYtServiceRequestError",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],FK.prototype,"onDataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],FK);
_.J(FK,"ytd-sponsorship-confirm-cancel-renderer",function(){if(HC3!==void 0)return HC3;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return HC3=G},{mode:_.nn("kevlar_poly_si_batch_j081")?1:2});var WoW;var H4=function(){return _.a.apply(this,arguments)||this};
_.M(H4,_.a);H4.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],H4.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],H4);
_.J(H4,"ytd-sponsorships-celebration-content",function(){if(WoW!==void 0)return WoW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return WoW=
G},{mode:1});var aVe;var N79=_.WP(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),W4=function(){var G=_.a.apply(this,arguments)||this;G.scriptsAppended=!1;G.useFullWidthPrimaryButton=!1;G.buttonOverrides={type:"tonal",style:"overlay-dark"};return G};
_.M(W4,_.a);_.m=W4.prototype;_.m.dataChanged=function(){var G;this.useFullWidthPrimaryButton=!((G=this.data)==null||!G.useFullWidthPrimaryButton)};
_.m.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:_.U("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.onDataChanged=function(){var G;(G=this.header)==null||G.style.setProperty("background-color",this.backgroundColor);if(G=this.headerImageUrl){var b;(b=this.header)==null||b.style.setProperty("background-image",G)}b=_.gL(4);G=_.s3(4);var I=this.get("data.trackingParams");if(I&&G&&b){var h=_.VB(I);_.dK(b,G,h);_.U("combine_ve_grafts")?_.qo().graftServerVe(I,G,4):_.dK(b,G,h)}b=_.e(this.hostElement.querySelectorAll("yt-img-shadow"));for(G=b.next();!G.done;G=b.next())G.value.onShow();if(b=this.get("data.gtmId"))_.WQ(b,
_.wy("GL","")),this.setupConversionTracking()};
_.m.setupConversionTracking=function(){if(!this.scriptsAppended){var G=document.createElement("script");_.lp(G,_.qz(N79.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}};
_.m.onPopupClosed=function(G){if(_.a_(G).localName==="ytd-sponsorships-celebration-renderer"){_.wL(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var b;this.data&&((b=this.data)==null?0:b.dismissCommand)&&_.Xv.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.kV.Object.defineProperties(W4.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.so(G)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return G?"url("+_.KG(G,this.hostElement.getBoundingClientRect().width)+")":""}}});
W4.prototype.onPopupClosed=W4.prototype.onPopupClosed;W4.prototype.onDataChanged=W4.prototype.onDataChanged;W4.prototype.dataChanged=W4.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],W4.prototype,"data",void 0);
_.R([_.lH("#header"),_.n("design:type",HTMLElement)],W4.prototype,"header",void 0);_.R([_.H(),_.n("design:type",Object)],W4.prototype,"scriptsAppended",void 0);_.R([_.H({type:Boolean,reflectToAttribute:!0}),_.n("design:type",Object)],W4.prototype,"useFullWidthPrimaryButton",void 0);_.R([_.H(),_.n("design:type",Object)],W4.prototype,"buttonOverrides",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W4.prototype,"dataChanged",null);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],W4.prototype,"onDataChanged",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],W4.prototype,"onPopupClosed",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],W4);
_.J(W4,"ytd-sponsorships-celebration-renderer",function(){if(aVe!==void 0)return aVe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return aVe=G},{mode:1});var YHf;var a7=function(){var G=_.a.apply(this,arguments)||this;G.isToggleChecked=!1;return G};
_.M(a7,_.a);a7.prototype.onDataChanged=function(){var G;this.isToggleChecked=((G=this.data)==null?void 0:G.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
a7.prototype.close=function(){var G;((G=this.data)==null?0:G.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
a7.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var G,b=_.g((G=this.data)==null?void 0:G.switchButton,FDa);b&&(this.isToggleChecked&&b.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOnInnertubeCommand),!this.isToggleChecked&&b.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOffInnertubeCommand))};
a7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
a7.prototype.onDataChanged=a7.prototype.onDataChanged;_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],a7.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],a7.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],a7.prototype,"isToggleChecked",void 0);_.R([_.H({value:_.qP("CLOSE")}),_.n("design:type",String)],a7.prototype,"closeButtonAriaLabel",void 0);
_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],a7.prototype,"onDataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],a7);
_.J(a7,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(YHf!==void 0)return YHf;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YHf=G},{mode:1});var CcW;var N0=function(){return _.a.apply(this,arguments)||this};
_.M(N0,_.a);_.m=N0.prototype;_.m.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"}}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.detached=function(){this.playerElement.stop()};
_.m.onYtServiceRequestCompleted=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.m.onYtServiceRequestError=function(G){_.yX(this.hostElement,G.detail.error.message)};
_.m.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.m.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.m.getTier=function(G,b){return!G||!G.tiers||b<0?null:_.g(G.tiers[b],N$1)};
_.m.moreThanOne=function(G){return!!(G&&G.length>1)};
_.m.tierOverviewTap=function(G){var b=this;this.selectedTier=G.model.index;_.D1(this,function(){_.O3(b.hostElement,"yt-refit")})};
_.m.computeSelectedClass=function(G,b){return this.isSelected(G,b)?"selected":""};
_.m.computeButtonAriaPressed=function(G,b){return this.isSelected(G,b)?"true":"false"};
_.m.isSelected=function(G,b){return G===b};
_.m.onDataChanged=function(){_.Eo(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Eo(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=_.e(this.hostElement.querySelectorAll("yt-img-shadow")),
b=G.next();!b.done;b=G.next())b.value.onShow();var I;this.set("selectedTier",(I=this.get("data.targetTierIndex"))!=null?I:0);var h;(G=(h=this.data)==null?void 0:h.onVisible)&&this.ytComponentBehavior.resolveCommand(G)};
_.m.initializeVe=function(G){var b=_.gL(),I=_.s3(),h=this.get("data.trackingParams");I&&b&&(this.screenLayer=4,b=_.$W(_.hXj)(void 0,69877,{clientScreenNonce:b,visualElement:I},void 0,void 0,void 0),_.Mi(b,69877,4),I=_.s3(4),h&&I&&(h=_.VB(h),_.dK(b,I,h),G&&(this.offerVideoVe=_.Xs(74659),_.dK(b,h,this.offerVideoVe))))};
_.m.setHeaderBackground=function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Eo(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.so(G);if(G=this.getHeaderImage())G=_.KG(G,screen.width),_.Eo(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+G+")"};
_.m.getHeaderImage=function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&G?G:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.m.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.m.setupVideoPlayer=function(G){var b=this,I,h,q,l;return _.c(function(V){if(V.nextAddress==1)return I=b.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),h=b.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.U("kevlar_player_update_killswitch")?b.playerElement.update({args:{autoplay:I,video_id:G,player_params:h}}):b.playerElement.loadVideoWithPlayerVars({autoplay:I,video_id:G,player_params:h}),
V.yield(b.playerElement.getPlayerPromise(),2);q=V.yieldResult;q.addEventListener("onStateChange",function(D){b.onPlayerStateChange(D)});
q.setScreenLayer(b.screenLayer);(l=_.gL(4))&&b.offerVideoVe&&_.rK(l,b.offerVideoVe);I&&(b.pauseOtherPlayers(),b.playerElement.focusOnPlayer(),b.playerElement.getPlayer().hideControls(),_.FQ(_.uu,function(){b.fadeOutHeaderOverlay()},4E3));
_.ip(V)})};
_.m.onPlayerStateChange=function(G){G===1?this.backgroundPlayerElement&&(G=this.backgroundPlayerElement.player_.getPlayerState(),G!==1&&G!==3||this.backgroundPlayerElement.pause()):G===0&&(_.Eo(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Eo(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.m.fadeOutHeaderOverlay=function(){_.Eo(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.m.onHeaderTap=function(){if(this.offerVideo){_.Eo(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=_.gL(4))&&this.offerVideoVe&&_.WT(G,this.offerVideoVe)}};
_.m.getBackgroundImageLayerClass=function(G){return G?"background-image-layer-with-video":""};
_.m.getHeaderClass=function(G){return G?"header-with-video":""};
_.m.getHeaderOverlayClass=function(G){return G?"header-overlay-with-video":""};
_.m.getTitleContainerClass=function(G,b){return G?"title-container-with-video":b?"title-container-without-video-flexible":"title-container-without-video"};
_.m.tierTitleDisplayStatus=function(G){return this.moreThanOne(G)?"hide":"show"};
_.m.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.LL().resolve(_.zO).getPlayerElement():this.backgroundPlayerElement=_.Kk();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var G=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=G===1||G===3;this.backgroundPlayerElement.pause()}};
_.m.isMiniplayerActive=function(){return _.LL().resolve(_.zO).isMiniplayerActive()};
_.m.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("selected-tier-changed",this.selectedTier))};
N0.prototype.selectedTierChangedForBinding=N0.prototype.selectedTierChangedForBinding;N0.prototype.onDataChanged=N0.prototype.onDataChanged;N0.prototype.onYtPopupClosed=N0.prototype.onYtPopupClosed;N0.prototype.onYtPopupOpened=N0.prototype.onYtPopupOpened;N0.prototype.onYtServiceRequestError=N0.prototype.onYtServiceRequestError;N0.prototype.onYtServiceRequestCompleted=N0.prototype.onYtServiceRequestCompleted;
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],N0.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],N0.prototype,"data",void 0);_.R([_.H({value:0}),_.n("design:type",Number)],N0.prototype,"selectedTier",void 0);
_.R([_.H({value:""}),_.n("design:type",String)],N0.prototype,"offerVideo",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],N0.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.R([_.H({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Ej(this)}}),
_.n("design:type",String)],N0.prototype,"playerId",void 0);_.R([_.lH("tp-yt-paper-dialog-scrollable"),_.n("design:type",Object)],N0.prototype,"scrollable",void 0);_.R([_.lH("ytd-sponsorships-tier-renderer"),_.n("design:type",Object)],N0.prototype,"tierRenderer",void 0);_.R([_.lH("#player"),_.n("design:type",Object)],N0.prototype,"playerElement",void 0);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],N0.prototype,"onYtServiceRequestCompleted",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],N0.prototype,"onYtServiceRequestError",null);
_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N0.prototype,"onYtPopupOpened",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N0.prototype,"onYtPopupClosed",null);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N0.prototype,"onDataChanged",null);
_.R([_.q5("selectedTier"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],N0.prototype,"selectedTierChangedForBinding",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],N0);
_.J(N0,"ytd-sponsorships-offer-renderer",function(){if(CcW!==void 0)return CcW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-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(_.E().content.cloneNode(!0),
G.content.firstChild);return CcW=G},{mode:_.nn("kevlar_poly_si_batch_j077")?1:2});var JtK;var Yd=function(){var G=_.a.apply(this,arguments)||this;G.buttonOverrides={type:"filled",style:"mono"};return G};
_.M(Yd,_.a);Yd.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}}}}}};
Yd.prototype.backgroundColorChanged=function(){var G,b,I,h=(b=_.g((G=this.data)==null?void 0:G.content,YC1))==null?void 0:(I=b.backgroundColor)==null?void 0:I.backgroundColor;h&&(G=_.Uo(h),_.Eo(this.hostElement).querySelector("#banner").style.backgroundColor=G,_.Eo(this.hostElement).querySelector("#abstract-art").style.backgroundColor=G)};
Yd.prototype.attached=function(){this.JSC$21016_scroller&&(this.JSC$21016_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21016_scroller.attached&&typeof this.JSC$21016_scroller.attached==="function"&&this.JSC$21016_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Yd.prototype.backgroundColorChanged=Yd.prototype.backgroundColorChanged;_.R([_.H(),_.n("design:type",Object)],Yd.prototype,"data",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Yd.prototype,"ytRendererstamperBehavior",void 0);_.R([_.lH("#scroller"),_.n("design:type",Object)],Yd.prototype,"JSC$21016_scroller",void 0);_.R([_.H(),_.n("design:type",Object)],Yd.prototype,"buttonOverrides",void 0);
_.R([_.q5("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Yd.prototype,"backgroundColorChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Yd);
_.J(Yd,"ytd-sponsorships-promotion-celebration-renderer",function(){if(JtK!==void 0)return JtK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return JtK=G},{mode:_.nn("kevlar_poly_si_batch_j077")?1:2});var Ko8;var u3F;var C2=function(){return _.a.apply(this,arguments)||this};
_.M(C2,_.a);C2.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
C2.prototype.computeIsInitiallyChecked=function(G){return G===1};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],C2.prototype,"data",void 0);_.R([_.lH("#checkbox"),_.n("design:type",Object)],C2.prototype,"checkbox",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],C2);
_.J(C2,"ytd-subscription-toggle-option-renderer",function(){if(u3F!==void 0)return u3F;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return u3F=G},{mode:1});var J3=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return G};
_.M(J3,_.a);J3.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"}}}};
J3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
J3.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var G=_.Eo(this.hostElement).querySelector("#options").selected;G=this.data.options[G].subscriptionRadioOptionRenderer.serviceEndpoint;var b=_.Eo(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");b&&G&&G.modifyChannelNotificationPreferenceEndpoint&&(b=b.getValue())&&(G.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[b]);_.LL().resolve(_.xW).resolveCommand(G,{form:{element:this.hostElement}});
_.wL(this.hostElement,"yt-close-popup-action")};
_.kV.Object.defineProperties(J3.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var G=this.data.options,b=0;b<G.length;b++){var I=G[b].subscriptionRadioOptionRenderer;if(I&&I.selected)return b}return null}}});
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],J3.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],J3.prototype,"eventForwardingBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],J3.prototype,"data",void 0);_.R([_.P("data.options"),_.n("design:type",Object),_.n("design:paramtypes",[])],J3.prototype,"initialIndex",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],J3);
_.J(J3,"ytd-subscription-notification-options-renderer",function(){if(Ko8!==void 0)return Ko8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ko8=G},{mode:1});var RFe;var nAF=function(){return _.a.apply(this,arguments)||this};
_.M(nAF,_.a);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],nAF.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],nAF.prototype,"data",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],nAF);
_.J(nAF,"ytd-tvfilm-offer-groups-renderer",function(){if(RFe!==void 0)return RFe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return RFe=G},{mode:1});var OCe;var K2=function(){return _.a.apply(this,arguments)||this};
_.M(K2,_.a);_.m=K2.prototype;_.m.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"}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.m.computeThumbnailClass=function(G){return G.thumbnailOverlays?G.isShow?"thumbnail-show":"thumbnail-movie":G.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.m.computeCommerceSectionClass=function(G){return G.offers&&G.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.m.computeTitleClass=function(G){return G.offers&&G.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.m.onDataChanged=function(){[].concat(_.Nz(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(G){G.onShow()})};
K2.prototype.onDataChanged=K2.prototype.onDataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],K2.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],K2.prototype,"onDataChanged",null);
_.R([_.N({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],K2);
_.J(K2,"ytd-ypc-offers-overlay-renderer",function(){if(OCe!==void 0)return OCe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return OCe=G},{mode:_.nn("kevlar_poly_si_batch_j028")?1:2});var wUe;var EA5=function(){this.usedMethods=new Set};
EA5.prototype.add=function(G){this.usedMethods.add(G)};
EA5.prototype.reset=function(){this.usedMethods.clear()};var XU9=function(G,b){this.query=G;this.previousSearchQuery=b;this.id=pUK++;if(!SHf){b=_.wy("SBOX_SETTINGS");G="https://"+((b==null?void 0:b.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var I=b==null?void 0:b.REQUEST_LANGUAGE;I&&(G+="&hl="+I);(I=b==null?void 0:b.REQUEST_DOMAIN)&&(G+="&gl="+I);G+="&client=youtube&gs_ri=youtube";(I=b==null?void 0:b.SUGG_EXP_ID)&&(G+="&sugexp="+encodeURIComponent(I));(I=b==null?void 0:b.PSUGGEST_TOKEN)&&(G+="&tok="+I);(b=
b==null?void 0:b.SESSION_INDEX)&&(G+="&authuser="+b);_.U("desktop_enable_visual_suggest")&&(G+="&h=180&w=320&ytvs=1");SHf=G}},$na=function(G){var b="q="+encodeURIComponent(G.query);
G.previousSearchQuery&&(b+="&pq="+encodeURIComponent(G.previousSearchQuery));return b},GHD=function(){var G=_.wy("SBOX_SETTINGS"),b={};
if(G==null?0:G.SEND_VISITOR_DATA)b["X-Goog-Visitor-Id"]=G==null?void 0:G.VISITOR_DATA;return b},bVf=function(G){var b=SHf;
b+="&gs_id="+G.id.toString(36);b+="&q="+encodeURIComponent(G.query);b+="&cp="+G.query.length;G.previousSearchQuery&&(b+="&pq="+encodeURIComponent(G.previousSearchQuery));(G=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(b+="&video_id="+G);return b},pUK=0,SHf="";var Ioa=_.yH.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,hYL=_.yH.SEARCH_ENTITY_SUGGESTION_MOVIE,qlW=_.yH.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,jqL=_.yH.SEARCH_ENTITY_SUGGESTION_TV_SHOW,loK=function(G,b){this.text=G;this.bold=b},mnW=function(G,b,I){this.input=b;
this.index=I;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=G[0];this.type=G[1];this.subtypes=G[2];var h;this.displayText=tRa((h=G[3])==null?void 0:h.b);var q;this.ignoredPrefix=tRa((q=G[3])==null?void 0:q.a);var l,V;this.hasNewVideo=((l=G[3])==null?void 0:(V=l.zam)==null?void 0:V.toString())==="true"?!0:!1;var D;this.visualSuggestUrl=(D=G[3])==null?void 0:D.zai;var k;this.entityType=tRa((k=G[3])==null?void 0:k.zap);var L;this.entityName=tRa((L=G[3])==null?void 0:L.zao);var x;b=
tRa((x=G[3])==null?void 0:x.zaf);var f;this.entityMid=(f=G[3])==null?void 0:f.zae;x=zbj(this.subtypes,this.entityMid);if(b&&x){if(b){f="";switch(x){case "YOUTUBE_ENTITY_TYPE_SONG":f=qlW;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":f=Ioa;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":f=jqL;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":f=hYL}x=x==="YOUTUBE_ENTITY_TYPE_SONG"||x==="YOUTUBE_ENTITY_TYPE_ALBUM"?f+" \u2022  \u2022 "+b:b}else x="";this.entitySubtitle=x}var T;this.externalChannelId=(T=G[3])==null?void 0:T.zav;
var B;this.entityThumbnailAttributionUrl=(B=G[3])==null?void 0:B.zaq},Vs5=function(G,b){var I=[],h,q=(h=G.displayText)!=null?h:G.text;
(b==null?0:b.useEntityName)&&eYf(G)&&G.entityName&&(q=G.entityName);if(G.type===33)return I.push(new loK(q,!1)),I;if(q.length>=G.input.length&&q.substring(0,G.input.length)===G.input)I.push(new loK(G.input,!1)),I.push(new loK(q.substring(G.input.length),!0));else{var l=new Set(G.input.split(/\s/)),V=q.split(/\s/);I=V.map(function(D,k){return new loK(D.trim()+(k===V.length-1?"":" "),!l.has(D))})}return I},eYf=function(G){var b=!!zbj(G.subtypes);
G=!!G.entityMid;return b||G};var Dne=function(G){this.rawResponse=["",[],{}];this.suggestions=[];try{var b=JSON.parse(oYe(G));if(typeof b==="object"&&b!==null)this.rawResponse=b;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(h){console.log("Suggest: Failed to parse SuggestResponse!");return}var I=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(h,q){return new mnW(h,I,q)})};var cvW=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new EA5;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21053_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},kHj,v0Y=function(){kHj||(kHj=new cvW);
return kHj};
cvW.prototype.updateSuggestions=function(G){var b=this;this.availableSuggestions.forEach(function(I){b.previousSuggestions[I]=!0});
this.availableSuggestions=G.map(function(I){var h=I.type.toString();I.subtypes.length>0&&(h+="i"+I.subtypes.join("i"),h+="k"+I.suggestionSources.COMPLETE_SERVER.toString());return h})};
var LW3=function(G,b){var I=Date.now();G.firstEditTime<0&&(G.firstEditTime=I);b&&(G.lastQueryBuildTime=I);G.lastEditTime=I};
cvW.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21053_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Qqe=function(G){var b="";G.availableSuggestions.forEach(function(q){delete G.previousSuggestions[q]});
for(var I=_.e(Object.keys(G.previousSuggestions)),h=I.next();!h.done;h=I.next())h=h.value,G.previousSuggestions[h]&&(b+=(b?"j":"")+h);return b},xnK=function(G,b){var I=[];
b&&(I[1]=b.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 h=b="",q=0,l=_.e(G.availableSuggestions),V=l.next();!V.done;V=l.next())V=V.value,V!==h&&(q>1&&(b+="l"+q),b+=(h?"j":"")+V,q=0,h=V),q+=1;q>1&&(b+="l"+q);I[3]=b}I[35]=Qqe(G);G.selectedSuggestionIndex>=0&&(I[2]=G.selectedSuggestionIndex);var D;if(b=(D=_.wy("SBOX_SETTINGS"))==
null?void 0:D.SUGG_EXP_ID)I[19]=G.normalize(b),D=0,G.experimentTriggeredBeforeFinal&&(D|=1),G.experimentTriggeredFinal&&(D|=2),I[20]=D;I[26]=Array.from(G.inputMethodsTracker.usedMethods).join("j");if(G.JSC$21053_totalRoundTripTime>0){I[15]=G.JSC$21053_totalRoundTripTime;I[14]=G.maxRoundTripTime;D=[];for(q=b=0;q<10;q++)h=G.roundTripTimeHistogram[q],h===0?b++:(b>1?D.push(q+"-"+h):b===1?D.push("0j"+h):D.push(h.toString()),b=0);D=D.join("j");I[16]=D}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(".")};
cvW.prototype.normalize=function(G){return G.replaceAll(".","-")};
var foc=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var uS=function(){var G=_.a.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};
_.M(uS,_.a);_.m=uS.prototype;_.m.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.m.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=EMe()};
_.m.dataChanged=function(){this.logDialog()};
_.m.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var G;(G=this.manager.audioPlayer)!=null&&(G.JSC$20366_audioEnabled=!1)}this.manager.stop();(G=this.manager.audioPlayer)!=null&&(G.JSC$20366_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.m.handleSpeechQueryCompleteAction=function(G){var b=G.navigationAction;b&&(G.trackingParams&&_.qo().graftServerVe(G.trackingParams,this.dialogVe,5),_.O3(this.hostElement,"yt-navigate",{endpoint:b,tempData:this.getNavigationParams(b),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.m.onExitButtonClick=function(){this.closeDialog()};
_.m.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var G;if((G=this.manager)!=null){var b;(b=G.audioPlayer)==null||I6(b,"failure");G.setState("microphone-off");G.stop()}}else(G=this.manager)==null||G.start()};
_.m.transcriptionChanged=function(){var G,b;(((G=this.transcription)==null?0:G.low)||((b=this.transcription)==null?0:b.high))&&this.setState("transcribing",this.transcription)};
_.m.stateChanged=function(){this.setState(this.state,this.transcription)};
_.m.logDialog=function(){var G;(G=this.data)!=null&&G.trackingParams&&(G=_.qo(),_.oa(G,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=G.graftServerVe(this.data.trackingParams,void 0,5))};
_.m.getNavigationParams=function(G){var b={};if(_.U("web_yt_searchbox")){var I=v0Y();I.inputMethodsTracker.add(6);I=xnK(I,15);b.gs_l=I;var h;b.oq=((h=_.g(G,_.lg))==null?void 0:h.query)||""}else if(G=window.ytvoicesearchloggingparams){if(G=G())b.oq=G.oq,b.gs_l=G.gs_l}else _.bB(Error("Jl"));return b};
_.m.closeDialog=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.m.setState=function(G,b){if(this.data){var I=this.data,h={};switch(G){case "listening":h={headerText:I.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "timeout":h={headerText:I.promptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,microphoneAriaLabel:I.promptMicrophoneLabel};break;case "microphone-off":h={headerText:I.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,
microphoneAriaLabel:I.promptMicrophoneLabel};break;case "transcribing":(b==null?0:b.low)||(b==null?0:b.high)?h={transcriptionLow:b==null?void 0:b.low,transcriptionHigh:b==null?void 0:b.high,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel}:h={headerText:I.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "processing":h={headerText:I.loadingHeader,microphoneState:"processing",microphoneAriaLabel:I.microphoneButtonAriaLabel};
break;case "offline":h={headerText:I.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:I.connectionErrorMicrophoneLabel,microphoneAriaLabel:I.connectionErrorMicrophoneLabel};break;case "permission":h={headerText:I.permissionsHeader,bodyLine1:I.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:I.permissionsSubtext};break;case "permission-denied":h={headerText:I.disabledHeader,bodyLine1:I.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:I.disabledSubtext}}h.className=
G;this.speechOverlayState=h;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.m.setMicrophoneState=function(G){var b=this.isLevelAnimating;this.isLevelAnimating=G==="speaking";!b&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=G==="processing"&&!this.noAnimations};
_.m.setClass=function(G){this.speechOverlayClassName&&_.SL(this.hostElement,this.speechOverlayClassName,!1);G&&(this.speechOverlayClassName=G,_.SL(this.hostElement,G,!0))};
_.m.runLevelAnimation=function(){var G=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var b=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("+b+")");_.uu.addJob(function(){G.runLevelAnimation()},3,I)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
uS.prototype.stateChanged=uS.prototype.stateChanged;uS.prototype.transcriptionChanged=uS.prototype.transcriptionChanged;uS.prototype.onPopupClosed=uS.prototype.onPopupClosed;uS.prototype.dataChanged=uS.prototype.dataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],uS.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],uS.prototype,"rendererStamperBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],uS.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],uS.prototype,"eventForwardingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],uS.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],uS.prototype,"speechOverlayState",void 0);
_.R([_.H(),_.n("design:type",Object)],uS.prototype,"microphoneSpinnerActive",void 0);_.R([_.H({type:_.U("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.n("design:type",Object)],uS.prototype,"noAnimations",void 0);_.R([_.H({selector:function(G){var b;return(b=G.voiceSearch)==null?void 0:b.transcription}}),
_.n("design:type",Object)],uS.prototype,"transcription",void 0);_.R([_.H({selector:function(G){var b;return(b=G.voiceSearch)==null?void 0:b.overlay}}),
_.n("design:type",String)],uS.prototype,"state",void 0);_.R([_.H(),_.n("design:type",Object)],uS.prototype,"boundExitClick",void 0);_.R([_.lH("#microphone-levels"),_.n("design:type",HTMLElement)],uS.prototype,"level",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uS.prototype,"dataChanged",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uS.prototype,"onPopupClosed",null);
_.R([_.Dd("transcription"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uS.prototype,"transcriptionChanged",null);_.R([_.Dd("state"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],uS.prototype,"stateChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],uS);
_.J(uS,"ytd-voice-search-dialog-renderer",function(){if(wUe!==void 0)return wUe;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return wUe=G},{mode:1});var Tbf;var R7=function(){var G=_.a.apply(this,arguments)||this;G.isOverlay=!1;G.hidden=!1;return G};
_.M(R7,_.a);_.m=R7.prototype;_.m.onPopupClosed=function(){this.toggleIconState(!1)};
_.m.computeIcon=function(){var G,b,I;return(b=_.g((G=this.data)==null?void 0:G.icon,R9D))==null?void 0:(I=b.icon)==null?void 0:I.iconType};
_.m.computeIconBadgeShape=function(){var G;return{iconBadgeType:"cart",iconBadgeText:(G=this.iconBadgeEntity)==null?void 0:G.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.m.onClick=function(){var G;(G=this.data)!=null&&G.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.m.computeHidden=function(G){return!G};
_.m.toggleIconState=function(G){this.iconButton&&(this.iconButton.pressed=G)};
R7.prototype.onPopupClosed=R7.prototype.onPopupClosed;_.R([_.z(_.wN),_.n("design:type",Object)],R7.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],R7.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],R7.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],R7.prototype,"isOverlay",void 0);
_.R([_.H({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.n("design:type",Object)],R7.prototype,"hidden",void 0);_.R([_.H({selectorArgs:["data.iconBadgeEntityKey"],selector:function(G,b){return _.Gi(G.entities,"iconBadgeEntity",b)}}),
_.n("design:type",Object)],R7.prototype,"iconBadgeEntity",void 0);_.R([_.lH("yt-icon-button"),_.n("design:type",HTMLButtonElement)],R7.prototype,"iconButton",void 0);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],R7.prototype,"onPopupClosed",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],R7);
_.J(R7,"ytd-icon-badge-topbar-button-renderer",function(){if(Tbf!==void 0)return Tbf;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Tbf=G},{mode:1});var BbW;var n2=function(){var G=_.a.apply(this,arguments)||this;G.premiumOptions=[];return G};
_.M(n2,_.a);n2.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.kV.Object.defineProperties(n2.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],n2.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Array)],n2.prototype,"premiumOptions",void 0);_.R([_.P("premiumOptions"),_.n("design:type",Object),_.n("design:paramtypes",[])],n2.prototype,"hasPremiumOptions",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],n2);
_.J(n2,"ytd-offline-promo-content",function(){if(BbW!==void 0)return BbW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return BbW=G},{mode:1});var UnW;var Ok=function(){var G=_.a.apply(this,arguments)||this;G.premiumOptions=[];return G};
_.M(Ok,_.a);Ok.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var G;this.premiumOptions=ZpD((G=this.data)==null?void 0:G.formats)};
Ok.prototype.onClickSubmit=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var G;(G=_.Kk())==null||G.pause()};
Ok.prototype.attached=function(){this.JSC$21073_scroller&&(this.JSC$21073_scroller.dialogElement=this.hostElement.parentNode)};
_.kV.Object.defineProperties(Ok.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Ok.prototype.dataChanged=Ok.prototype.dataChanged;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Ok.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Ok.prototype,"data",void 0);
_.R([_.H({computed:"computeIcon_(data.headersIcon)",value:""}),_.n("design:type",String)],Ok.prototype,"headersIcon",void 0);_.R([_.H(),_.n("design:type",Array)],Ok.prototype,"premiumOptions",void 0);_.R([_.lH("#scroller"),_.n("design:type",Object)],Ok.prototype,"JSC$21073_scroller",void 0);_.R([_.P("headersIcon"),_.n("design:type",Object),_.n("design:paramtypes",[])],Ok.prototype,"showIcon",null);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Ok.prototype,"dataChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Ok);
_.J(Ok,"ytd-offline-promo-renderer",function(){if(UnW!==void 0)return UnW;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return UnW=G},{mode:1});var sq8;var wE=function(){var G=_.a.apply(this,arguments)||this;G.playbackPauseInterval=NaN;G.isLoading=!1;G.hasError=!1;G.dialogClass="";G.youtubeLabel=_.qP("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};
_.M(wE,_.a);_.m=wE.prototype;_.m.onDataChange=function(){var G;if(this.showEOMV1Text=!((G=this.data)==null||!G.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.m.attached=function(){this.pausePlayer()};
_.m.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.m.handleLangSelect=function(G){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[G.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.m.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.m.handleSaveConsent=function(G){var b=this;this.showLoadingSpinner();this.showLoadingSpinner();k3j(_.g(G,nr5)).catch(function(I){_.RB(new _.Wf("Something went wrong when save consent "+(I.message?I.message:I)+"."));b.hideLoadingSpinner();b.showErrorMessage()})};
_.m.handleDisablePersonalization=function(G){var b=this;this.showLoadingSpinner();vQ5(_.g(G,R6F)).then(function(){b.dialog.close();b.resumePlayer()}).catch(function(I){_.RB(new _.Wf("Something went wrong when disable personalization "+(I.message?I.message:I)+"."));
b.hideLoadingSpinner();b.showErrorMessage()})};
_.m.showLoadingSpinner=function(){var G=this;this.showSpinnerJobId=_.uu.addLowPriorityJob(function(){G.isLoading=!0},500)};
_.m.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.uu.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.m.showErrorMessage=function(){var G=this;this.hasError=!0;_.uu.addLowPriorityJob(function(){G.hasError=!1},2E3)};
_.m.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.M1(function(){try{var G=_.Kk();G&&G.pause()}catch(b){}},100))};
_.m.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var G=_.Kk();G&&G.play()}catch(b){}};
_.kV.Object.defineProperties(wE.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.eomV1Text)return[];G=[];for(var b=["SHIELD","WARNING","BAR_CHART"],I=this.data.eomV1Text.essentialCookieMsg.items,h=0;h<b.length&&h<I.length;h++)G.push({icon:b[h],text:I[h]});return G}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.eomV1Text)return[];G=[];for(var b=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],I=this.data.eomV1Text.nonEssentialCookieMsg.items,h=0;h<b.length&&h<I.length;h++)G.push({icon:b[h],text:I[h]});return G}}});
wE.prototype.onDataChange=wE.prototype.onDataChange;_.R([_.H(),_.n("design:type",Object)],wE.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],wE.prototype,"showEOMV1Text",void 0);_.R([_.H(),_.n("design:type",Object)],wE.prototype,"isLoading",void 0);_.R([_.H(),_.n("design:type",Object)],wE.prototype,"hasError",void 0);_.R([_.H(),_.n("design:type",Number)],wE.prototype,"showSpinnerJobId",void 0);_.R([_.H(),_.n("design:type",Object)],wE.prototype,"dialogClass",void 0);
_.R([_.lH("#dialog"),_.n("design:type",Object)],wE.prototype,"dialog",void 0);_.R([_.lH("#cb-header"),_.n("design:type",HTMLElement)],wE.prototype,"header",void 0);_.R([_.lH("#lang-select"),_.n("design:type",HTMLElement)],wE.prototype,"langSelect",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],wE.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],wE.prototype,"ytComponentBehavior",void 0);
_.R([_.H(),_.n("design:type",String)],wE.prototype,"youtubeLabel",void 0);_.R([_.H(),_.n("design:type",Object)],wE.prototype,"logoName",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],wE.prototype,"onDataChange",null);_.R([_.P("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],wE.prototype,"eomEssentialCookieMsgItems",null);
_.R([_.P("data"),_.n("design:type",Array),_.n("design:paramtypes",[])],wE.prototype,"eomNonEssentialCookieMsgItems",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],wE);
_.J(wE,"ytd-consent-bump-v2-lightbox",function(){if(sq8!==void 0)return sq8;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return sq8=G},{mode:1});var g0W;var Ek=function(){return _.a.apply(this,arguments)||this};
_.M(Ek,_.a);Ek.prototype.ready=function(){if(!_.ri()||ruf)var G=!0;else ruf=!0,G=!1;G||(G=document.querySelector("ytd-app"),G||(G=document.body),this.internalLightBox=_.Eo(G).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.R([_.H(),_.n("design:type",Object)],Ek.prototype,"data",void 0);_.R([_.lH("#lightbox"),_.n("design:type",Object)],Ek.prototype,"lightBox",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Ek);
_.J(Ek,"ytd-consent-bump-v2-renderer",function(){if(g0W!==void 0)return g0W;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return g0W=G},{mode:1});var AvK;var Ms5;var ZVc;var p2=function(){return _.a.apply(this,arguments)||this};
_.M(p2,_.a);_.m=p2.prototype;_.m.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&EmF(this.toastManager,this.toastType)};
_.m.open=function(G){this.toast&&(this.ephemeralAction&&_.LL().resolve(_.c9).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=G!=null?G:0,this.toastManager.enqueue(this.toast,G)):this.toast.open())};
_.m.close=function(G){var b;(b=this.toast)==null||b.close();this.toastManager&&G===1&&EmF(this.toastManager,G)};
_.m.refit=function(){var G;(G=this.toast)==null||G.refit()};
_.m.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var G;(G=this.toast)==null||G.close()}};
_.m.setVerticalOffset=function(G){this.toast&&(this.toast.verticalOffset=G,this.toast.fit())};
_.m.computeButtonClass_=function(G){return G?"toast-button":""};
_.m.computeText_=function(G){return _.NO(G)};
_.m.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.lh("toast-opened-changed",this.toastOpened))};
_.m.updateToastOpenedFromBinding=function(G){this.toastOpened=G.detail.value};
_.kV.Object.defineProperties(p2.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var G,b,I=(G=this.data)==null?void 0:(b=G.actionButton)==null?void 0:b.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=[],b;((b=this.data)==null?0:b.responseText)&&G.push(_.NO(this.data.responseText));var I;((I=this.data)==null?0:I.subText)&&G.push(_.NO(this.data.subText));var h,q;if((h=this.data)==null?0:(q=h.actionButton)==null?0:q.buttonRenderer){var l,V;G.push(((l=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(V=l.accessibilityData)==null?void 0:V.label)||_.NO(this.data.actionButton.buttonRenderer.text))}return G.filter(function(D){return D}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var G,b;return(b=(G=this.toast)==null?void 0:G.opened)!=null?b:!1}}});
p2.prototype.toastOpenedChangedForBinding=p2.prototype.toastOpenedChangedForBinding;p2.prototype.toastOpenedChanged=p2.prototype.toastOpenedChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],p2.prototype,"ytEventForwardingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],p2.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],p2.prototype,"duration",void 0);
_.R([_.H(),_.n("design:type",Number)],p2.prototype,"toastType",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],p2.prototype,"useCloseButton",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],p2.prototype,"closeToastOnActionButtonClick",void 0);_.R([_.H({value:function(){return _.qP("SBOX_INAPPROPRIATE_CANCEL")}}),
_.n("design:type",String)],p2.prototype,"closeButtonAriaLabel",void 0);_.R([_.H(),_.n("design:type",Boolean)],p2.prototype,"toastOpened",void 0);_.R([_.H(),_.n("design:type",Boolean)],p2.prototype,"hasOpened",void 0);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],p2.prototype,"command",null);_.R([_.P("labelText","command","duration"),_.n("design:type",Object),_.n("design:paramtypes",[])],p2.prototype,"ephemeralAction",null);
_.R([_.P("ephemeralAction"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],p2.prototype,"hasEphemeralAction",null);_.R([_.lH("#toast"),_.n("design:type",Object)],p2.prototype,"toast",void 0);_.R([_.H({value:function(){return{style:"call-to-action-inverse"}}}),
_.n("design:type",Object)],p2.prototype,"buttonOverrides",void 0);_.R([_.H({value:{style:"mono-inverse"}}),_.n("design:type",Object)],p2.prototype,"closeButtonOverrides",void 0);_.R([_.H({value:function(){return _.LL().resolve(_.vf(_.lw))}}),
_.n("design:type",Object)],p2.prototype,"toastManager",void 0);_.R([_.P("data.responseText","data.subText","data.actionButton"),_.n("design:type",Object),_.n("design:paramtypes",[])],p2.prototype,"labelText",null);_.R([_.q5("toastOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],p2.prototype,"toastOpenedChanged",null);
_.R([_.q5("toastOpened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],p2.prototype,"toastOpenedChangedForBinding",null);_.R([_.g8({is:"yt-notification-action-renderer",disableElementRegistration:!0})],p2);
_.J(p2,"yt-notification-action-renderer",function(){if(ZVc===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Ms5===void 0&&(Ms5=document.createElement("template"));var h=Ms5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);ZVc=G}G=ZVc;return G},{mode:2});var SD=function(){var G=_.a.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(b){G.isLeaderTab&&G.downloadingCount>0&&(b.preventDefault(),
b.returnValue=!0)};
return G};
_.M(SD,_.a);_.m=SD.prototype;
_.m.open=function(){this.updateDownloadState();if(this.data){var G=this.sessionDownloaded+1,b=this.sessionTotalDownloads>1?_.qP("VIDEOS_DOWNLOADING_RATIO",{downloaded:G.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+G+"/"+this.sessionTotalDownloads):_.qP("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(b=this.sessionTotalDownloads>1?_.qP("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:G.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
G+"/"+this.sessionTotalDownloads):_.qP("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));G=this.isLeaderTab?_.qP("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.NO(this.data.responseText)!==b||_.NO(this.data.subText)!==G)this.set("data.responseText",_.ao(b)),this.set("data.subText",_.ao(G)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.m.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.m.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.m.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.m.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};
_.m.handleFullscreenChange=function(G){(this.isFullScreen=G)||this.updatePopup()};
SD.prototype.updateCurrentDownloadProgress=SD.prototype.updateCurrentDownloadProgress;SD.prototype.updatePopup=SD.prototype.updatePopup;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],SD.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],SD.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],SD.prototype,"ytEventForwardingBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],SD.prototype,"actionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],SD.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],SD.prototype,"duration",void 0);_.R([_.H({selector:function(G){return _.YN2(G.entities).length}}),
_.n("design:type",Object)],SD.prototype,"downloadingCount",void 0);_.R([_.H({selector:gQ1}),_.n("design:type",Object)],SD.prototype,"downloadedCount",void 0);_.R([_.H({selector:function(G){var b=_.YN2(G.entities);return sM3(G.entities,b)}}),
_.n("design:type",Object)],SD.prototype,"downloadingOnlySmartDownloads",void 0);_.R([_.H(),_.n("design:type",Object)],SD.prototype,"sessionTotalDownloads",void 0);_.R([_.H(),_.n("design:type",Object)],SD.prototype,"sessionDownloaded",void 0);_.R([_.H(),_.n("design:type",Object)],SD.prototype,"previousSessionsDownloaded",void 0);_.R([_.H(),_.n("design:type",Object)],SD.prototype,"totalDownloadPercentage",void 0);
_.R([_.H({selector:function(G){var b;G=(b=_.YN2(G.entities))!=null?b:[];return G.length>0?_.oqr(G.slice(-1)):0}}),
_.n("design:type",Object)],SD.prototype,"currentDownloadProgress",void 0);_.R([_.H(),_.n("design:type",Object)],SD.prototype,"currentDownloadPercentage",void 0);_.R([_.H({selector:_.Rdq}),_.n("design:type",Object)],SD.prototype,"isLeaderTab",void 0);_.R([_.lH("yt-notification-action-renderer"),_.n("design:type",Object)],SD.prototype,"notificationActionRenderer",void 0);
_.R([_.Dd("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SD.prototype,"updatePopup",null);_.R([_.Dd("currentDownloadProgress"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],SD.prototype,"updateCurrentDownloadProgress",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],SD);
_.J(SD,"ytd-video-download-toast-renderer",function(){if(AvK!==void 0)return AvK;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return AvK=G},{mode:1});var tse;var zYc;var XK=function(){return _.a.apply(this,arguments)||this};
_.M(XK,_.a);XK.prototype.computeIsRedLogo=function(G,b){!G&&b&&(G=b);return G==="YOUTUBE_RED_LOGO"||G==="YOUTUBE_PREMIUM_LOGO"};
XK.prototype.computeLogoName=function(G){G=this.componentBehavior.computeIcon_(G);return G===""?"yt-logos-ext:yt-logo-updated":G};
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],XK.prototype,"componentBehavior",void 0);_.R([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.n("design:type",Boolean)],XK.prototype,"isRedLogo",void 0);_.R([_.H({computed:"computeLogoName(data)"}),_.n("design:type",String)],XK.prototype,"logoName",void 0);_.R([_.H({value:{}}),_.n("design:type",Object)],XK.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],XK.prototype,"logoType",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-logo"})],XK);
_.J(XK,"ytd-logo",function(){if(zYc!==void 0)return zYc;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return zYc=G},{mode:_.nn("kevlar_poly_si_batch_j074")?1:2});var $i=function(){var G=_.a.apply(this,arguments)||this;G.animationRef={};return G};
_.M($i,_.a);_.m=$i.prototype;_.m.attached=function(){document.addEventListener("yt-navigate-finish",_.I9(this,this.logYoodle))};
_.m.detached=function(){document.removeEventListener("yt-navigate-finish",_.I9(this,this.logYoodle))};
_.m.logYoodle=function(){var G,b;if((G=this.data)==null?0:(b=G.loggingDirectives)==null?0:b.trackingParams)this.ytRendererBehavior.markDirty(),_.qo().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.m.computeHideImg=function(G,b){return!!G||!!b};
_.m.computeHideYtdLogo=function(G,b){return!G||!!b};
_.m.computeHideLottie=function(G){return!G};
_.m.computeIsRedLogo=function(G){return G==="YOUTUBE_RED_LOGO"||G==="YOUTUBE_PREMIUM_LOGO"};
_.m.renderLogoEntity=function(){var G=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),b=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),I=this.getLogoTitleText(this.data),h=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==G&&(this.url=G);this.animatedUrl!==b&&(this.animatedUrl=b);this.logoTitleText!==I&&(this.logoTitleText=I);this.lottieUrl!==h&&(this.lottieUrl=h,this.lottiePlayerProps=this.computeLottiePlayerProps(h))};
_.m.getSanitizedThumbnail=function(G){return G&&G.thumbnails?_.RFB(G.thumbnails,122)||"":""};
_.m.getThumbnailUrl=function(G,b){if(!b)return"";var I,h;G=G?(I=b.darkThemeLogo)==null?void 0:I.thumbnail:(h=b.lightThemeLogo)==null?void 0:h.thumbnail;return this.getSanitizedThumbnail(G)};
_.m.getAnimatedThumbnailUrl=function(G,b){return b?this.getSanitizedThumbnail(G?b.darkThemeAnimatedLogo:b.lightThemeAnimatedLogo):""};
_.m.getLogoTitleText=function(G){if(G)return _.NO(G.tooltipText)};
_.m.computeLogoIcon=function(G,b){if(b){var I,h;return G?(I=b.darkThemeLogo)==null?void 0:I.icon:(h=b.lightThemeLogo)==null?void 0:h.icon}};
_.m.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.m.getLottieUrl=function(G,b){var I,h,q,l;return G?b==null?void 0:(I=b.darkThemeLogo)==null?void 0:(h=I.lottieAnimation)==null?void 0:h.url:b==null?void 0:(q=b.lightThemeLogo)==null?void 0:(l=q.lottieAnimation)==null?void 0:l.url};
_.m.computeLottiePlayerProps=function(G){if(G){var b;if((b=this.animationRef)==null?0:b.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)}}}};
_.m.onLottieError=function(){this.data&&this.lottieUrl&&_.O3(this.hostElement,"yoodle-error")};
_.m.onImgError=function(){this.data&&!this.lottieUrl&&_.O3(this.hostElement,"yoodle-error")};
$i.prototype.playAnimation=$i.prototype.playAnimation;$i.prototype.renderLogoEntity=$i.prototype.renderLogoEntity;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],$i.prototype,"data",void 0);_.R([_.H({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.n("design:type",Boolean)],$i.prototype,"hideImg",void 0);
_.R([_.H({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.n("design:type",Boolean)],$i.prototype,"hideYtdLogo",void 0);_.R([_.H({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.n("design:type",Boolean)],$i.prototype,"hideLottie",void 0);_.R([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.n("design:type",Boolean)],$i.prototype,"isRedLogo",void 0);
_.R([_.H(),_.n("design:type",Boolean)],$i.prototype,"useDarkThemeYoodle",void 0);_.R([_.H(),_.n("design:type",String)],$i.prototype,"url",void 0);_.R([_.H(),_.n("design:type",String)],$i.prototype,"animatedUrl",void 0);_.R([_.H(),_.n("design:type",String)],$i.prototype,"logoTitleText",void 0);_.R([_.H({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.n("design:type",Object)],$i.prototype,"logoIcon",void 0);_.R([_.H(),_.n("design:type",Object)],$i.prototype,"logoType",void 0);
_.R([_.H(),_.n("design:type",String)],$i.prototype,"lottieUrl",void 0);_.R([_.H(),_.n("design:type",Object)],$i.prototype,"lottiePlayerProps",void 0);_.R([_.H(),_.n("design:type",Object)],$i.prototype,"animationRef",void 0);_.R([_.q5("data"),_.q5("useDarkThemeYoodle"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],$i.prototype,"renderLogoEntity",null);
_.R([_.hI("click"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],$i.prototype,"playAnimation",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],$i);
_.J($i,"ytd-yoodle-renderer",function(){if(tse!==void 0)return tse;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return tse=G},{mode:_.nn("kevlar_poly_si_batch_j074")?1:2});var o0c;var iV3;var P5F=_.PH.currentPageTypeSelector,dn9=_.PH.currentPageSubTypeSelector,Gz=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return G};
_.M(Gz,_.a);_.m=Gz.prototype;_.m.onYoodleError=function(){_.U("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.m.computeLogoName=function(G){G=this.componentBehavior.computeIcon_(G);return G===""?"yt-logos-ext:yt-logo-updated":G};
_.m.computeTitle=function(G,b,I){return I&&(b==null?0:b.tooltipText)?_.NO(b.tooltipText):_.NO(G)};
_.m.computeAriaLabel=function(G,b,I){return I&&(b==null?0:b.tooltipText)?_.NO(G):""};
_.m.computeShowYoodle=function(G,b,I){return!G||!b&&!!I&&!_.Cy.isEmpty(I)};
_.m.onNavigateHomeAction=function(){if(_.U("kevlar_miniplayer_navigate_home_from_app_killswitch")){var G;(G=_.Eo(this.hostElement).querySelector(".yt-simple-endpoint"))==null||G.click()}};
_.m.computeLogoHref=function(G,b,I){var h;(I==null?0:I.onTapCommand)?h=this.componentBehavior.computeHref_(I.onTapCommand):G&&(h=this.componentBehavior.computeHref_(G));return h?h:b};
_.m.computeCommand=function(G,b){return(b==null?void 0:b.onTapCommand)||G};
_.m.getEndpointForm=function(){if(_.U("kevlar_topbar_disable_cache_only_home")){var G=_.LL().resolve(_.nR),b=P5F(G.getState())||"";G=dn9(G.getState())||"";return{disableCache:b==="ytd-browse"&&G==="home"}}return{disableCache:!0}};
Gz.prototype.onYoodleError=Gz.prototype.onYoodleError;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],Gz.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],Gz.prototype,"componentBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],Gz.prototype,"ytdReduxBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],Gz.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],Gz.prototype,"countryCode",void 0);_.R([_.H({selectorArgs:["data.overrideEntityKey"],selector:function(G,b){return _.Gi(G.entities,"logoEntity",b)}}),
_.n("design:type",Object)],Gz.prototype,"logoEntity",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.n("design:type",Boolean)],Gz.prototype,"showYoodle",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Gz.prototype,"yoodleError",void 0);_.R([_.H({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.n("design:type",String)],Gz.prototype,"titleText",void 0);
_.R([_.H({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.n("design:type",String)],Gz.prototype,"ariaLabelText",void 0);_.R([_.H({value:"/"}),_.n("design:type",String)],Gz.prototype,"defaultEndpointUrl",void 0);_.R([_.H({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.n("design:type",String)],Gz.prototype,"endpointUrl",void 0);
_.R([_.H({computed:"computeCommand(data.endpoint, logoEntity)"}),_.n("design:type",String)],Gz.prototype,"command",void 0);_.R([_.H(),_.n("design:type",Object)],Gz.prototype,"logoType",void 0);_.R([_.H({}),_.n("design:type",Boolean)],Gz.prototype,"useDarkThemeYoodle",void 0);_.R([_.hI("yoodle-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Gz.prototype,"onYoodleError",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Gz);
_.J(Gz,"ytd-topbar-logo-renderer",function(){if(iV3!==void 0)return iV3;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return iV3=G},{mode:_.nn("kevlar_poly_si_batch_j027")?1:2});var yv9=0;var rvW=_.yH.SEARCH_APPEND_LABEL,FWL=_.yH.SUGGESTION_NEW_VIDEOS_TEXT,HVF=_.yH.SUGGESTION_THUMBNAIL_LABEL,WWj=_.yH.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,ao8=_.C(function(G){function b(TA){var s1,pA;return _.c(function(yK){if(yK.nextAddress==1)return s1=new Request(TA),_.gm(yK,2),yK.yield(fetch(s1,{credentials:"include"}),4);if(yK.nextAddress!=2)return Ac(!0),_.hF(yK,0);pA=_.zf(yK);_.RB(pA);_.ip(yK)})}
var I=G.isHighlighted;var h=G.suggestion;var q=G.onClickCallback;var l=G.onHoverUpdateCallback;var V=G.labels;var D=G.queryBuilderFunction;var k=G.onRemoveCallback;var L=G.suggestionIndex;var x=G.generateUniqueId;var f=G.highlightedId;var T=G.useScrollMargin;var B=G.isKeyboardMode;var A=null,t=null,y=_.ee("div"),F=_.ee("span");G=_.e(_.ZZ(!1,void 0,"mxSc0e"));var W=G.next().value,O=G.next().value,K=_.VF("a",function(TA){TA&&_.Qq(237477,TA,t,function(s1){t=s1})}),u=_.VF("button",function(TA){TA&&_.Qq(237477,
TA,t,function(s1){t=s1})}),w=_.Xu(function(TA){if((TA==null?void 0:TA.button)===2)return TA.preventDefault(),!1;
var s1=_.gL();s1&&A&&_.aW(s1,A,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var pA;q(TA,h().text,h().index,h().entityMid,TA==null?void 0:(pA=TA.detail)==null?void 0:pA.wasSelectedByKeyboard);return!1}),$a=function(){return h().type===35},ev=function(){return _.U("desktop_enable_single_suggestion_highlight")},LO=function(){return _.Te("desktop_suggestions_panel_row_height")||0},td=function(){var TA;
return _.U("desktop_enable_new_video_metadata")&&((TA=h())==null?void 0:TA.hasNewVideo)===!0},xa=function(){return _.U("desktop_enable_visual_suggest")},Uj=function(){return _.U("desktop_enable_entity_suggest")&&eYf(h())},W2=function(){return h().entitySubtitle},is=function(){return ev()?(I==null?void 0:I())||bn()&&!(B==null?0:B()):(I==null?void 0:I())||bn()},su=function(){var TA=_.wy("SBOX_SETTINGS");
return $a()&&!(TA==null?0:TA.HIDE_REMOVE_LINK)},an=function(){return Vs5(h(),{useEntityName:Uj()})},A5,XO=!((A5=_.LL().resolve(_.vf(_.Pv)))==null||!A5()),kb=function(){return $a()?_.U("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},rz=function(){return V==null?void 0:V().SUGGESTION_DISMISS_LABEL},on=function(){return V==null?void 0:V().SUGGESTION_DISMISSED_LABEL};
G=_.e(_.ZZ(!1,void 0,"WMms1e"));A5=G.next().value;var Ac=G.next().value;G=_.e(_.ZZ(!1,void 0,"PyL0t"));var U1=G.next().value,mp=G.next().value,bn=U1,xb=_.Xu(function(){D(F.value.innerText);return!1}),j8=_.Xu(function(TA){TA.preventDefault();
return!1}),BX=_.Xu(function(TA){var s1=h().text,pA=_.wy("SBOX_SETTINGS"),yK="https://"+(pA.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
yK+="&delq="+encodeURIComponent(s1);(s1=pA==null?void 0:pA.PSUGGEST_TOKEN)&&(yK+="&tok="+s1);(pA=pA==null?void 0:pA.SESSION_INDEX)&&(yK+="&authuser="+pA);b(yK);TA.preventDefault();(TA=_.gL())&&t&&_.aW(TA,t,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");k(L==null?void 0:L());return!1}),I5=_.Xu(function(){if(ev()&&(B==null?0:B()))return!1;
mp(!0);l(!0);return!1}),ys=_.Xu(function(){mp(!1);
l(!1);return!1}),nQ=_.Xu(function(){O(!0);
return!1}),vX=_.Xu(function(){O(!1);
return!1}),cX=_.Xu(function(TA){TA.preventDefault();
if(h().entityThumbnailAttributionUrl){var s1=h().entityThumbnailAttributionUrl;TA=h().entityName;var pA={dismissDialogEndpoint:{}};s1={commandExecutorCommand:{commands:[pA,{urlEndpoint:{url:s1,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:s1}}}]}};pA={buttonViewModel:{title:_.qP("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:pA}}};s1={buttonViewModel:{title:_.qP("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:s1}}};TA={dialogHeaderViewModel:{headline:{content:TA!=null?TA:_.qP("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var yK={basicContentViewModel:{paragraphs:[{text:{content:_.qP("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};TA={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:TA,footer:{panelFooterViewModel:{primaryButton:s1,
secondaryButton:pA,shouldHideDivider:!0}},content:yK}}}}};_.LL().resolve(_.xW).resolveCommand(TA)}return!1});
G=_.e(_.ZZ("",void 0,"yG5Sx"));var Ga=G.next().value,wX=G.next().value;_.JC(function(){su()&&wX(x==null?void 0:x(L==null?void 0:L()));y.value&&_.Qq(12453,y.value,A,function(TA){A=TA})});
return _.v(_.Q,{cond:A5,then:function(){var TA={};return _.v("div",{class:_.pG("ytSuggestionComponentRemovedText",(TA.ytSuggestionComponentLargerRemovedText=function(){return xa()},TA)),
style:function(){return LO()>0?"height: "+LO()+"px;":""},
role:"button"},on)},
else:function(){var TA={},s1={};return _.v("div",{class:_.pG("ytSuggestionComponentSuggestion",(TA.ytSuggestionComponentSuggestionHover=function(){return!ev()},TA.ytSuggestionComponentHighlighted=is,TA.ytSuggestionComponentPersonalizedSuggestion=$a,TA.ytSuggestionComponentMweb=!1,TA.ytSuggestionComponentLargerSuggestion=function(){return td()||xa()},TA.ytSuggestionComponentThumbnailSuggestion=function(){return xa()},TA.ytSuggestionComponentRoundedSuggestion=function(){return _.U("desktop_enable_scrollable_suggestions_panel")&&
_.U("desktop_enable_suggestions_panel_padding")},TA.ytSuggestionComponentThumbnailPadding=function(){return xa()&&!$a()},TA)),
style:function(){return LO()>0?"height: "+LO()+"px;":""},
role:"presentation","on:mousedown":w,"on:mouseover":I5,"on:mouseout":ys,el:y},_.v("div",{class:_.pG("ytSuggestionComponentText",(s1.ytSuggestionComponentScrollMargin=T,s1)),"aria-label":function(){return td()?h().text+" "+FWL:h().text},
id:function(){return x==null?void 0:x(L==null?void 0:L())},
"on:mousedown":w,role:"option"},_.v(_.Q,{cond:function(){return h().type!==33},
then:function(){return _.v(_.ha,{icon:kb,className:"ytSuggestionComponentIcon"})}}),_.v("div",{class:"ytSuggestionComponentLeftContainer"},_.v("span",{el:F,
role:"button",tabindex:0},_.v(_.aj,{each:an},function(pA){return pA.bold?_.v("span",{class:"ytSuggestionComponentBold"},pA.text):_.v("span",null,pA.text)})),_.v(_.Q,{cond:function(){return Uj()&&!!h().entitySubtitle||td()},
then:function(){return _.v("div",{class:"ytSuggestionComponentMetadataContainer"},_.v(_.Q,{cond:function(){return Uj()&&!!h().entitySubtitle},
then:function(){return _.v("div",{class:"ytSuggestionComponentEntitySubtitle"},W2)}}),_.v(_.Q,{cond:function(){return td()},
then:function(){return _.v("div",{class:"ytSuggestionComponentNewVideoContainer"},_.v("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.v("div",{class:"ytSuggestionComponentNewVideoText"},FWL))}}))}}))),_.v("div",{class:"ytSuggestionComponentRightContainer"},_.v(_.Q,{cond:function(){return xa()&&h().visualSuggestUrl!==void 0},
then:function(){var pA={};return _.v("div",{class:"ytSuggestionComponentThumbnailContainer"},_.v("img",{"aria-label":HVF,class:_.pG("ytSuggestionComponentVisualSuggestThumbnail",(pA.ytSuggestionComponentCircularFrame=function(){return Uj()&&h().subtypes.includes(790)},pA.ytSuggestionComponentEntitySuggestThumbnail=function(){return Uj()},pA)),
src:function(){return h().visualSuggestUrl}}),_.v(_.Q,{cond:function(){return Uj()&&!!h().entityThumbnailAttributionUrl},
then:function(){var yK={};return _.v("span",{title:WWj,role:"tooltip"},_.v("div",{"on:mouseover":nQ,"on:mouseout":vX,"on:mousedown":cX,class:_.pG("ytSuggestionComponentThumbnailOverlay",(yK.ytSuggestionComponentThumbnailOverlayHidden=function(){return!W()},yK))},_.v(_.ha,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.v(_.Nc,null,_.v(_.H3,{when:function(){return xa()&&su()}},function(){var pA={};
return _.v("button",{class:_.pG("ytSuggestionComponentRemoveLinkClearButton",(pA.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Ga()&&Ga()===(f==null?void 0:f())},pA.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!is()},pA)),
el:u,"on:mousedown":BX,"aria-label":rz,id:function(){return Ga()}},_.v(_.ha,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.v(_.H3,{when:function(){return!(xa()&&h().visualSuggestUrl!==void 0)&&su()}},function(){var pA={};
return _.v("a",{class:_.pG("ytSuggestionComponentRemoveLink",(pA.ytSuggestionComponentRemoveLinkDark=XO,pA.ytSuggestionComponentRemoveLinkSelected=function(){return Ga()&&Ga()===(f==null?void 0:f())},pA)),
el:K,"on:mousedown":BX,"aria-label":rz,tabindex:0,role:"button",id:function(){return Ga()}},rz)}),_.v(_.H3,{when:function(){return!1}},function(){return _.v("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":xb,"on:mousedown":j8,role:"button","aria-label":rvW},_.v(_.ha,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"pj");var Nba=_.WP(["//www.google.com/textinputassistant/","/","_tia.js"]),Yl1=_.C(function(){return _.v("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.v("button",{class:"ytdTextInputAssistantButton","on:click":_.Xu(function(){v0Y().inputMethodsTracker.add(3);var G,b=(G=_.wy("SBOX_SETTINGS"))==null?void 0:G.REQUEST_LANGUAGE;if(b)return _.iU(_.Ba(Nba,14,b)),!1})},_.v("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"qj");var C5j=function(){this.cache=new Map},JvL=function(G){for(var b=_.e(G.cache.entries()),I=b.next();!I.done;I=b.next()){var h=_.e(I.value);
I=h.next().value;h=h.next().value;h.suggestions.some(function(q){return q.type===35})&&G.cache.delete(I)}};var KW8=_.yH.SEARCH,uBc=_.yH.SEARCH_CLEAR_LABEL,RY1=new _.q3("FAKE_SUGGEST_RESPONSE"),n0F=_.C(function(G){function b(){nQ||(nQ=setTimeout(function(){cX()},1E3))}
function I(t5,M8,CD){if(t5.trim()){ys=t5;_.OB("REFINEMENTS_TUPLE",void 0);BX=!0;var Bg;M8=xnK(U1,M8);var fQ=(Bg=G.searchEndpoint)==null?void 0:Bg.call(G);_.P3Y(t5,M8,fQ,kb.value.value,CD);cX();kb.value.value=t5;kb.value.blur();U1.reset()}}
function h(t5){return _.c(function(M8){return M8.return(new Promise(function(CD){var Bg=new XMLHttpRequest;Bg.open("GET",bVf(t5),!0);Bg.withCredentials=!0;var fQ=_.wy("SBOX_SETTINGS");(fQ==null?0:fQ.SEND_VISITOR_DATA)&&Bg.setRequestHeader("X-Goog-Visitor-Id",fQ==null?void 0:fQ.VISITOR_DATA);Bg.onload=function(){CD(Bg.responseText)};
Bg.onerror=function(){_.RB(Error("Ll"));CD(null)};
setTimeout(function(){Bg.abort()},1E4);
Bg.send(null)}))})}
function q(t5){var M8,CD,Bg,fQ;return _.c(function(ok){switch(ok.nextAddress){case 1:return M8={credentials:"include",headers:GHD()},window.AbortController&&(CD=new AbortController,setTimeout(function(){CD.abort("ytsbox-suggest-timeout")},1E4),M8.signal=CD.signal),_.gm(ok,2),ok.yield(fetch(bVf(t5),M8),4);
case 4:Bg=ok.yieldResult.text();_.hF(ok,3);break;case 2:return fQ=_.zf(ok),fQ!=="ytsbox-abort-last"&&fQ!=="ytsbox-suggest-timeout"&&_.RB(fQ),ok.return(null);case 3:return ok.return(Bg)}})}
function l(t5){var M8,CD,Bg;return _.c(function(fQ){switch(fQ.nextAddress){case 1:if(M8=_.LL().resolve(_.vf(RY1)))return fQ.return(M8);CD=Date.now();b();return _.U("yt_searchbox_xhr")?fQ.yield(h(t5),5):fQ.yield(q(t5),4);case 4:Bg=fQ.yieldResult;fQ.jumpTo(3);break;case 5:Bg=fQ.yieldResult;case 3:if(Bg){nQ&&(clearTimeout(nQ),nQ=null);var ok=U1,Tt=CD,Jz=t5.query.length===0;Tt=Date.now()-Tt;Jz?ok.zeroPrefixRoundTripTime=Tt:(ok.JSC$21053_totalRoundTripTime+=Tt,ok.maxRoundTripTime=Math.max(ok.maxRoundTripTime,
Tt),Jz=Math.floor(Tt/100),Jz>=foc.length?++ok.roundTripTimeHistogram[9]:++ok.roundTripTimeHistogram[foc[Jz]])}return fQ.return(Bg)}})}
function V(t5){var M8,CD,Bg;return _.c(function(fQ){if(fQ.nextAddress==1)return(M8=Ac.cache.get($na(t5)))?fQ.return(M8):fQ.yield(l(t5),2);CD=fQ.yieldResult;if(CD===null)return fQ.return(null);Bg=new Dne(CD);t5.query.length===0&&Bg.suggestions.length===0||Ac.cache.set($na(t5),Bg);return fQ.return(Bg)})}
function D(t5){var M8,CD;return _.c(function(Bg){if(Bg.nextAddress==1){I5=!1;var fQ=ys;fQ=_.WH()==="search"?(_.XN(location.href,"search_query")||_.XN(location.href,"q"))===fQ:!1;M8=new XU9(t5,fQ?ys:null);return Bg.yield(V(M8),2)}CD=Bg.yieldResult;if(CD===null)return Bg.return();M8.query.length===0&&(U1.zeroPrefixSuggestionCount=CD.suggestions.length);if(M8.id<=vX)return U1.outOfSyncResponseCount++,Bg.return();if(document.activeElement!==kb.value)return Bg.return();vX=M8.id;var ok=U1,Tt=CD.rawResponse[2]||
{};ok.experimentTriggeredBeforeFinal||(ok.experimentTriggeredBeforeFinal=ok.experimentTriggeredFinal);ok.experimentTriggeredFinal=!!Tt.e;U1.updateSuggestions(CD.suggestions);y(-1);su([]);CD.suggestions!==B()&&f0(CD.suggestions.length);A(CD.suggestions);ev(CD.suggestions.length>0&&CD.suggestions[0].type===33);on&&(on.hidden=CD.suggestions.length===0,$a()?(on.style.minWidth="",ok=on.style,Tt=(fQ=B()[0])==null?void 0:fQ.ignoredPrefix,ok.marginLeft=(Tt?Math.min(Tt.length*6,rz.value.offsetWidth):0).toString()+
"px"):(on.style.minWidth=rz.value.offsetWidth+"px",on.style.marginLeft="0"),Jj());_.ip(Bg)})}
function k(){if(!BX)return!1;var t5=_.wy("REFINEMENTS_TUPLE");return t5?(t5=t5[1].map(function(M8,CD){return new mnW([M8,0,[71]],kb.value.value,CD)}),B()!==t5&&f0(t5.length),su([]),A(t5),U1.updateSuggestions(t5),BX=!1,on.hidden=t5.length===0,I5=t5.length>0,!0):!1}
function L(){var t5=kb.value.value;(typeof t5==="string"||t5 instanceof String)&&t5!==""?K(!0):K(!1)}
function x(){if(_.WH()==="search"){var t5=window.location.href;try{var M8=_.XN(t5,"search_query")||_.XN(t5,"q")||""}catch(CD){M8=""}M8&&(kb.value.value=M8,K(!0))}}
var f=_.e(_.ZZ([],void 0,"OC8EPc")),T=f.next().value;f=f.next().value;var B=T,A=f;T=_.e(_.ZZ(-1,void 0,"t2tVQb"));var t=T.next().value,y=T.next().value;T=_.e(_.ZZ(-1,void 0,"v0RZCe"));var F=T.next().value,W=T.next().value;T=_.e(_.ZZ(!1,void 0,"rjAnI"));var O=T.next().value,K=T.next().value;T=_.e(_.ZZ(!1,void 0,"SyGLvb"));var u=T.next().value,w=T.next().value;f=_.e(_.ZZ(!1,void 0,"tL09Cb"));T=f.next().value;f=f.next().value;var $a=T,ev=f;f=_.e(_.ZZ(!1,void 0,"FlH7mc"));T=f.next().value;var LO=f.next().value;
f=_.e(_.ZZ(!1,void 0,"ea3fwe"));var td=f.next().value,xa=f.next().value;f=_.e(_.ZZ(1,void 0,"vSK1xe"));var Uj=f.next().value,W2=f.next().value;f=_.e(_.ZZ([],void 0,"ijlw4b"));var is=f.next().value,su=f.next().value;f=_.e(_.ZZ(!1,void 0,"HcRey"));var an=f.next().value,A5=f.next().value;f=_.U("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var XO=_.ee("yt-searchbox"),kb=_.ee("input"),rz=_.ee("div"),on,Ac=
new C5j,U1=v0Y(),mp=_.LL().resolve(_.vf(_.Pv)),bn=function(){var t5;return((t5=G.forceDarkMode)==null?void 0:t5.call(G))||!(mp==null||!mp())},xb=function(){return _.U("desktop_enable_scrollable_suggestions_panel")},j8="i"+yv9++,BX=!1,I5=!1,ys="",nQ=null,vX=-1,cX=function(){su([]);
A([]);ev(!1);on&&(on.hidden=!0);nQ&&(clearTimeout(nQ),nQ=null);y(-1)},Ga=function(t5,M8){t5.preventDefault();
A5(!0);on&&(on.hidden=!1);var CD=t();t5=B();var Bg=is();M8=dC5(M8);CD+=M8;for(CD>=t5.length?CD=-1:CD<-1&&(CD=t5.length-1);CD!==-1&&(Bg.includes(CD)||CD>=t5.length||CD<0);)CD+=M8,CD>=t5.length&&(CD=-1);y(CD);t()>=0&&(kb.value.value=B()[t()].text,W(0),L(),t5=t(),Bg=F(),(Bg=document.getElementById(U8[t5][Bg]))&&xb()&&(t5===B().length-1?on.scrollTop=on.scrollHeight:Bg.scrollIntoView({block:"nearest",inline:"start"})))},wX=_.Xu(function(t5){if(!(t5.relatedTarget instanceof Element&&t5.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){w(!0);
var M8;(M8=G.focusCallback)==null||M8.call(G,!0);k()||(I5?on.hidden=!1:(_.O3(XO.value,"yt-autonav-pause-focus",{}),D(t5.target.value)))}}),TA=_.Xu(function(t5){if(!(t5.relatedTarget instanceof Element&&t5.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){w(!1);
var M8;(M8=G.focusCallback)==null||M8.call(G,!1);on.scrollTop=0;on.hidden=!0;_.O3(XO.value,"yt-autonav-pause-blur",{})}}),s1=function(t5){t5=dC5(t5);
var M8;((M8=U8[t()])==null?0:M8[F()+t5])&&W(F()+t5)},pA=_.Xu(function(t5){var M8=t5.target;
switch(t5.keyCode){case 13:t5.preventDefault();var CD;if((CD=U8[t()])==null?0:CD[F()]){var Bg;(Bg=document.getElementById(U8[t()][F()]))==null||Bg.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}t5=t5.shiftKey?4:3;CD=U1;Bg=t();CD.selectedSuggestionIndex=Bg;I(M8.value,t5);break;case 27:on&&(on.hidden=!0);break;case 40:Ga(t5,40);break;case 38:Ga(t5,38);break;case 39:s1(39);break;case 37:s1(37);break;case 229:U1.inputMethodsTracker.add(4);break;default:U1.inputMethodsTracker.add(1),
LW3(U1)}return!1}),yK=_.Xu(function(t5){D(t5.target.value);
L();xb()&&on&&(on.scrollTop=0);return!1}),CN=_.Xu(function(){U1.inputMethodsTracker.add(2);
LW3(U1);return!1});
_.JC(function(){if(on){U1.reset();if(window.ResizeObserver){var t5=new ResizeObserver(function(){$a()||(on.style.minWidth=rz.value.offsetWidth+"px")});
t5.observe(rz.value);(new ResizeObserver(function(){Jj()})).observe(on);
_.uI(function(){t5.disconnect()})}x();
window.addEventListener("yt-navigate-finish",x);window.addEventListener("yt-focus-searchbox",function(){kb.value.focus()});
var M8;LO((M8=_.wy("SBOX_SETTINGS"))==null?void 0:M8.HAS_ON_SCREEN_KEYBOARD)}else _.K1(new _.Wf("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var SG=_.Xu(function(t5){t5.preventDefault();I(kb.value.value,12);return!1}),Va=_.Xu(function(t5){t5.preventDefault();
var M8,CD;(M8=kb)==null||(CD=M8.value)==null||CD.focus();var Bg,fQ;((Bg=kb)==null?void 0:(fQ=Bg.value)==null?void 0:fQ.value)!==""&&(kb.value.value="",kb.value.dispatchEvent(new Event("input")));return!1}),XJ=_.Xu(function(){var t5=zuF(kb.value.value,B().filter(function(M8){return M8.type!==35}).map(function(M8){return{label:M8.text}}));
_.wL(XO.value,"yt-open-popup-action",[{openPopupAction:t5},document.body]);return!1}),tc=_.Xu(function(){kb.value.focus();
return!1}),m9=function(t5,M8,CD,Bg,fQ){U1.selectedSuggestionIndex=CD;
I(M8,fQ?3:1,Bg)},Wr=function(t5){kb.value.value=t5;
kb.value.dispatchEvent(new Event("input"));U1.inputMethodsTracker.add(5);LW3(U1,!0)},U8=[[]],J4=function(t5){var M8="searchbox-suggestion"+_.W0(_.Sj);
U8[t5].push(M8);return M8},f0=function(t5){if(B()){U8=[[]];
for(var M8=0;M8<t5;M8++)U8.push([])}},Jj=function(){if(xb()){var t5=on,M8=t5.scrollTop;
t5=t5.scrollHeight-t5.clientHeight;xa(M8>=t5);M8=Math.abs(t5-M8);M8<=40?W2(1-(40-M8)/40):W2(1)}},kS=function(){return"opacity: "+Uj()*100+"%"},oO=_.Xu(function(){Jj();
return!1}),aO=_.Xu(function(){A5(!1);
return!1}),RO,gz={},gj={},dd={},rj={};
return _.v("yt-searchbox",{class:_.pG("ytSearchboxComponentHost",(gz.ytSearchboxComponentMweb=!1,gz.ytSearchboxComponentDesktop=!0,gz["yt-searchbox-filled-query"]=function(){return O()},gz["ytd-masthead"]=function(){return!u()},gz.ytSearchboxComponentHostDark=bn,gz)),
role:"search",el:XO,"client-ve-type":10349},_.v("div",{el:rz,"on:click":tc,class:_.pG("ytSearchboxComponentInputBox",(gj.ytSearchboxComponentInputBoxDark=bn,gj.ytSearchboxComponentInputBoxHasFocus=u,gj))},_.v("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":SG},_.v(_.Q,{cond:u,then:function(){return _.v("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.v(_.ha,{icon:"SEARCH"}))}}),_.v("input",{el:kb,
class:_.pG("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":j8,"aria-expanded":!((RO=on)==null?0:RO.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":TA,"on:focus":wX,"on:input":yK,"on:keydown":pA,"on:paste":CN,placeholder:G.placeholderText,"aria-activedescendant":function(){var t5;return(t5=U8[t()])==null?void 0:t5[F()]},
"aria-autocomplete":"list",role:"combobox"})),_.v(_.Q,{cond:T,then:function(){return _.v("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.v(Yl1,null))}}),_.v(_.Q,{cond:O,
then:function(){return _.v("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.v("button",{class:"ytSearchboxComponentClearButton","on:click":Va,"aria-label":G.clearButtonAriaLabel||uBc},_.v(_.ha,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.v(_.Qy,{model:{}})))}})),_.v("button",{class:_.pG("ytSearchboxComponentSearchButton",(dd.ytSearchboxComponentSearchButtonDark=bn,dd)),
"on:click":SG,"aria-label":KW8,title:G.placeholderText},_.v(_.ha,{icon:"SEARCH"})),_.v(_.Q,{cond:function(){if(bpe()&&_.U("mweb_voice_search")&&G.voiceSearchButton)return G.voiceSearchButton()},
then:function(t5){var M8={};return _.v("div",{class:_.pG("ytSearchboxComponentVoiceSearchWrapper",(M8.ytSearchboxComponentHideVoiceSearchButton=function(){return O()},M8))},_.v(_.VX,{data:t5},{buttonRenderer:function(CD){return _.v(_.Vo,{data:CD.data,
onButtonClickCallback:function(){}})}}))}}),_.v("div",{el:_.Wv(function(t5){return void(on=t5)}),
id:j8,class:_.pG("ytSearchboxComponentSuggestionsContainer",(rj.ytSearchboxComponentSuggestionsContainerDark=bn,rj["yt-searchbox-suggestions-container"]=!1,rj.ytSearchboxComponentSuggestionsContainerScrollable=xb(),rj.ytSearchboxComponentSuggestionsContainerAnimated=f,rj)),"on:scroll":oO,"on:mousemove":aO,role:"listbox",hidden:!0},_.v(_.aj,{each:B},function(t5,M8){return _.v(ao8,{suggestion:t5,isHighlighted:function(){return M8()===t()},
onClickCallback:m9,onHoverUpdateCallback:function(CD){if(_.U("desktop_enable_single_suggestion_highlight")){var Bg=M8();CD&&(W(0),y(Bg))}},
onRemoveCallback:function(CD){JvL(Ac);CD===void 0||CD<0||is().includes(CD)||su([].concat(_.Nz(is()),[CD]))},
labels:G.labels,queryBuilderFunction:Wr,suggestionIndex:M8,generateUniqueId:J4,highlightedId:function(){var CD;return(CD=U8[t()])==null?void 0:CD[F()]},
useScrollMargin:xb(),isKeyboardMode:an})}),_.v(_.Q,{cond:function(){return!$a()&&B().find(function(t5){return t5.type!==35})&&_.U("searchbox_reporting")},
then:function(){return _.v("button",{class:"ytSearchboxComponentReportButton","on:mousedown":XJ},_.qP("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.v(_.Q,{cond:function(){return!td()&&xb()},
then:function(){return _.v("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.v("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:kS}))}})))},"sj");
n0F.idomCompat={callbacks:{focusCallback:!0}};_.JN(n0F,"yt-searchbox",{props:{searchEndpoint:_.hV,placeholderText:_.hV,labels:_.hV,voiceSearchButton:_.hV,focusCallback:_.No,clearButtonAriaLabel:_.hV,forceDarkMode:_.hV}});var bZ=function(){var G=_.a.apply(this,arguments)||this;G.menuButtonTargetId="topbar-guide-menu";G.narrow=!1;G.menuStrings={BACK_ALT_LABEL:_.qP("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.qP("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.qP("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.qP("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=_.U("desktop_enable_unified_search_panel");G.aiCompanionEnabled=_.U("enable_ai_companion");G.ytSearchboxFocused=!1;G.searchboxLabels=_.wy("SBOX_LABELS");G.topbarIsAboveChipbar=!1;G.isDarkThemeForced=!1;G.areGhostCardsHidden=!1;G.guideKeyboardToggle=!1;G.voiceSearchManager=EMe();G.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};G.setYtSearchboxFocused=function(b){G.ytSearchboxFocused=b};
G.toggleFrostedGlassDuringViewTransition=function(b){G.disableFrostedGlassDuringViewTransition=b};
return G};
_.M(bZ,_.a);_.m=bZ.prototype;_.m.computeSimpleText=function(G){return _.NO(G)};
_.m.onDarkChanged=function(){for(var G=_.e(this.buttons||[]),b=G.next();!b.done;b=G.next())b.value.isOverlay=!!this.dark;G=_.e(this.buttonRenderers||[]);for(b=G.next();!b.done;b=G.next())b.value.overrides=this.computeButtonOverride()};
_.m.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.m.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"}}}};
_.m.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var G=_.em(_.mq(),"aa");_.SL(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"))&&(_.U("polymer_on_demand_shady_dom")?G.setAttribute("slot","masthead-logo-old"):_.iG(G)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.I9(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.I9(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.m.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.I9(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.I9(this,this.onSetTheaterModeEnabled))};
_.m.dataChanged=function(){var G=this.data;G&&(this.voiceEnabled=G.voiceSearchButton?EMe().isSupported():!1,_.Fzz(_.PQ(),this.menuButtonTargetId,this.guideButton),G.onReceivedActions&&G.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Su(this.hostElement,G.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&G&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.SL(this.hostElement,"dark",!1),_.SL(this.hostElement,"theater",!1),
(G=this.hostElement.querySelector("#masthead-logo"))&&(_.U("polymer_on_demand_shady_dom")?G.setAttribute("slot","masthead-logo-old"):_.iG(G))))};
_.m.computeCenterHidden=function(){var G;return this.data&&!((G=this.data.searchbox)==null?0:G.fusionSearchboxRenderer)};
_.m.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.SL(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.m.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.m.onWatchScroll=function(G){this.watchPageScrollTop=G.detail||0;this.updateMastheadBackgroundOpacity()};
_.m.onFullscreenChangeAction=function(G){G||(this.watchPageScrollTop=0);this.fullscreen=G;this.updateMastheadBackgroundOpacity()};
_.m.onSetTheaterModeEnabled=function(G){this.theater=G.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.m.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.m.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.m.setBackgroundOpacity=function(G){G=this.calculateBackgroundOpacity(G);this.background.style.opacity=""+G};
_.m.calculateBackgroundOpacity=function(G){var b=this.theater?.6:0,I=this.hostElement.clientHeight/2;return Math.min(Math.max(G,0),I)/I*(1-b)+b};
_.m.shouldShowCinematicMastHead=function(){var G=_.U("kevlar_watch_grid")&&!_.U("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(G||this.pageDarkTheme)};
_.m.focusGuide=function(){this.guideButton.focus()};
_.m.onGuideToggleTap=function(){_.O3(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.m.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.m.onGuideToggleHover=function(){_.O3(this.hostElement,"yt-guide-hover")};
_.m.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.m.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.m.closeOnOutsideClickCondition=function(G){for(G=_.Wy(G);G[0];){var b=G.shift();if(b instanceof Element&&b.id==="kbd")return!1}return!0};
_.m.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.m.pausePlayer=function(){var G;(G=_.Kk())==null||G.pause();this.pauseMiniplayer()};
_.m.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var G;(G=_.LL().resolve(_.zO).getPlayerElement())==null||G.pause()}};
_.m.isMiniplayerActive=function(){return _.LL().resolve(_.zO).isMiniplayerActive()};
_.m.updateNarrowFromBinding=function(G){this.narrow=G.detail.value};
_.m.onYtSendFeedbackAction=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.m.registerWithViewTransitionManager=function(){m31(_.LL().resolve(_.a8),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.kV.Object.defineProperties(bZ.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.U("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"}}});
bZ.prototype.narrowChanged=bZ.prototype.narrowChanged;bZ.prototype.onWatchPageChange=bZ.prototype.onWatchPageChange;bZ.prototype.onRendererStamperFinished=bZ.prototype.onRendererStamperFinished;bZ.prototype.dataChanged=bZ.prototype.dataChanged;bZ.prototype.onDarkChanged=bZ.prototype.onDarkChanged;_.R([_.z(_.Y6),_.n("design:type",Object)],bZ.prototype,"ironResizableBehavior",void 0);_.R([_.z(_.Id3),_.n("design:type",Object)],bZ.prototype,"ytdExpandableInputBehavior",void 0);
_.R([_.z(_.GJ.YtdGuideStateAwareBehavior),_.n("design:type",Object)],bZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],bZ.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],bZ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.wN),_.n("design:type",Object)],bZ.prototype,"ytdReduxBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],bZ.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],bZ.prototype,"narrow",void 0);_.R([_.H(),_.n("design:type",Object)],bZ.prototype,"logoType",void 0);_.R([_.H(),_.n("design:type",Boolean)],bZ.prototype,"voiceEnabled",void 0);
_.R([_.H(),_.n("design:type",Object)],bZ.prototype,"menuStrings",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],bZ.prototype,"dark",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bZ.prototype,"pageDarkTheme",void 0);_.R([_.H(),_.n("design:type",Object)],bZ.prototype,"watchPageScrollTop",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.yVO}),_.n("design:type",Boolean)],bZ.prototype,"isWatchPage",void 0);
_.R([_.H({reflectToAttribute:!0,selector:_.rVj}),_.n("design:type",Boolean)],bZ.prototype,"isShortsPage",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bZ.prototype,"theater",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bZ.prototype,"fullscreen",void 0);_.R([_.H({reflectToAttribute:!0,selector:_.aN2}),_.n("design:type",String)],bZ.prototype,"frostedGlassMode",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bZ.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],bZ.prototype,"aiCompanionEnabled",void 0);_.R([_.H(),_.n("design:type",Object)],bZ.prototype,"ytSearchboxFocused",void 0);_.R([_.mN("#buttons > *"),_.n("design:type",Array)],bZ.prototype,"buttons",void 0);_.R([_.mN("ytd-button-renderer"),_.n("design:type",Array)],bZ.prototype,"buttonRenderers",void 0);
_.R([_.lH("#background"),_.n("design:type",HTMLDivElement)],bZ.prototype,"background",void 0);_.R([_.lH("#guide-button"),_.n("design:type",Object)],bZ.prototype,"guideButton",void 0);_.R([_.lH("#logo"),_.n("design:type",Object)],bZ.prototype,"logo",void 0);_.R([_.H({computed:"computeButtonOverride(dark)"}),_.n("design:type",Object)],bZ.prototype,"buttonOverrides",void 0);
_.R([_.Dd("dark"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bZ.prototype,"onDarkChanged",null);_.R([_.H({value:function(){return this.onVoiceTap.bind(this)}}),
_.n("design:type",Function)],bZ.prototype,"boundOnTapVoiceButton",void 0);_.R([_.H(),_.n("design:type",Object)],bZ.prototype,"topbarIsAboveChipbar",void 0);_.R([_.H(),_.n("design:type",String),_.n("design:paramtypes",[])],bZ.prototype,"guideIcon",null);_.R([_.P("voiceEnabled"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bZ.prototype,"shouldShowVoiceSearchButton",null);
_.R([_.P("data.aiCompanionButton","aiCompanionEnabled"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],bZ.prototype,"shouldShowAiCompanionButton",null);_.R([_.P("data"),_.n("design:type",Object),_.n("design:paramtypes",[])],bZ.prototype,"voiceSearchButton",null);_.R([_.P("aiCompanionEnabled"),_.n("design:type",String),_.n("design:paramtypes",[])],bZ.prototype,"narrowQuery",null);
_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bZ.prototype,"dataChanged",null);_.R([_.hI("yt-rendererstamper-finished"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bZ.prototype,"onRendererStamperFinished",null);_.R([_.Dd("isWatchPage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bZ.prototype,"onWatchPageChange",null);
_.R([_.Dd("narrow"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],bZ.prototype,"narrowChanged",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-masthead"})],bZ);
_.J(bZ,"ytd-masthead",function(){if(o0c!==void 0)return o0c;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return o0c=G},{mode:_.nn("kevlar_poly_si_batch_j036")?1:2});var OVF;var wkD={},E0W={},pkW={},Sle={},Xka=(Sle.OFFLINE=(wkD["publicytnetworkstatus-online"]="BACK_ONLINE",wkD),Sle.ONLINE=(E0W["publicytnetworkstatus-offline"]="OFFLINE",E0W),Sle.BACK_ONLINE=(pkW["publicytnetworkstatus-offline"]="OFFLINE",pkW.TIMER_TRIGGER="ONLINE",pkW),Sle),Ix=function(){var G=_.a.apply(this,arguments)||this;G.currentState="ONLINE";G.scheduledJobId=0;G.bannerString="";G.bannerVe=null;G.networkStatusManagerInstance=new _.IB;return G};
_.M(Ix,_.a);_.m=Ix.prototype;_.m.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")})};
_.m.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")})};
_.m.enterState=function(G){var b=this;this.scheduledJobId&&_.uu.cancelJob(this.scheduledJobId);G==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):G==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.qP("NO_INTERNET_CONNECTION",void 0,"No internet connection")):G==="BACK_ONLINE"&&(this.bannerString=_.qP("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.FQ(_.uu,function(){b.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=G};
_.m.stateChangeHandler=function(G){(G=Xka[this.currentState][G])&&this.enterState(G)};
_.m.logVisibility=function(G){var b=_.gL();this.createBannerVe(G);b&&this.bannerVe&&(G?_.FT(b,[this.bannerVe]):_.HT(b,[this.bannerVe]))};
_.m.createBannerVe=function(G){!this.bannerVe&&G&&(this.bannerVe=_.Xs(37929),_.Ps(_.qo(),this.bannerVe))};
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",String)],Ix.prototype,"currentState",void 0);_.R([_.H(),_.n("design:type",Object)],Ix.prototype,"scheduledJobId",void 0);_.R([_.H(),_.n("design:type",Object)],Ix.prototype,"bannerString",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Ix);
_.J(Ix,"ytd-network-status-banner",function(){if(OVF!==void 0)return OVF;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return OVF=
G},{mode:1});var $g5;var hG=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};G.hidden=!0;G.frostedGlass=_.U("web_frosted_glass");return G};
_.M(hG,_.a);hG.prototype.computeHidden=function(G){return G&&G.status?!1:!0};
hG.prototype.handleUpdatePermissionRoleCommand=function(G){if(G=_.g(G,_.YQi))if(G=_.g(G.renderer,_.NsA))this.data=G};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],hG.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],hG.prototype,"componentBehavior",void 0);_.R([_.H({value:!0,computed:"computeHidden(data)"}),_.n("design:type",Object)],hG.prototype,"hidden",void 0);_.R([_.H(),_.n("design:type",Object)],hG.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],hG.prototype,"frostedGlass",void 0);
_.R([_.N({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],hG);
_.J(hG,"ytd-permission-role-bottom-bar-renderer",function(){if($g5!==void 0)return $g5;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $g5=G},{mode:1});var GYY;var bx9;var yJ9={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var qp=function(){return _.a.apply(this,arguments)||this};
_.M(qp,_.a);_.m=qp.prototype;_.m.attached=function(){this.JSC$21171_scroller&&(this.JSC$21171_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21171_scroller.attached&&typeof this.JSC$21171_scroller.attached==="function"&&this.JSC$21171_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.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=_.Eo(this.hostElement);G.querySelector("tp-yt-paper-radio-group").selected="";var b=G.querySelector("#reason-text");b&&(b.value="");G.querySelector("#description-text").value=""}};
_.m.canSubmit=function(G,b){_.O3(this.hostElement,"yt-invalidate-popup-tabbables");return!(G&&b)};
_.m.onCancel=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.m.onSubmit=function(){var G=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(l){return l.active}).map(function(l){return l.innerText.trim()}),b=this.hostElement.querySelector("tp-yt-paper-radio-group"),I=b.selectedItem,h=I.name;
I=I.innerText.trim();var q=b.querySelector("#reason-text");b=void 0;q&&(b=q.value);(q=this.descriptionText.value)&&(q=q.trim());rJa(this.data.searchQuery,G,h,I,q,b);_.wL(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.m.sendFormSubmitToast=function(){var G=_.um(_.qP("SBOX_INAPPROPRIATE_TOAST"));_.wL(this.hostElement,"yt-open-popup-action",[G,this])};
_.m.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(G){return G.active})};
_.m.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
qp.prototype.onIronSelect=qp.prototype.onIronSelect;qp.prototype.onIronChange=qp.prototype.onIronChange;qp.prototype.dataChanged=qp.prototype.dataChanged;_.R([_.H(),_.n("design:type",Object)],qp.prototype,"data",void 0);_.R([_.H({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.n("design:type",Boolean)],qp.prototype,"submitDisabled",void 0);_.R([_.H(),_.n("design:type",Boolean)],qp.prototype,"suggestionSelected",void 0);
_.R([_.H(),_.n("design:type",Boolean)],qp.prototype,"catagorySelected",void 0);_.R([_.lH("#scroller"),_.n("design:type",Object)],qp.prototype,"JSC$21171_scroller",void 0);_.R([_.lH("#description-text"),_.n("design:type",Object)],qp.prototype,"descriptionText",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qp.prototype,"dataChanged",null);
_.R([_.hI("iron-change"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qp.prototype,"onIronChange",null);_.R([_.hI("iron-select"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],qp.prototype,"onIronSelect",null);_.R([_.N({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],qp);
_.J(qp,"ytd-search-suggestion-report-dialog",function(){if(bx9!==void 0)return bx9;var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return bx9=G},{mode:1});var j3=function(G){var b=G.openPopupAction;var I=G.target;var h=G.container;var q=G.popupContainerConfig;var l=G.getElement;G=G.removeWhenClosed===void 0?!1:G.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=b;this.target=I;this.container=h;this.popupContainerConfig=q;this.getElement=l;this.JSC$21177_popupConfig=this.popupContainerConfig.JSC$20301_popupConfig[this.openPopupAction.popupType];this.rendererName=(b=this.getName())?_.Iaa(b,tj8(this.popupContainerConfig,
b)):"";_.U("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=G);this.createPopup()};
j3.prototype.updatePopup=function(G){this.openPopupAction=G;this.JSC$21177_popupConfig=this.popupContainerConfig.JSC$20301_popupConfig[this.openPopupAction.popupType];Iy1(this);_.U("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
j3.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var jD3=function(G,b,I){(b=b&&G.JSC$21177_popupConfig.narrowProperties?G.JSC$21177_popupConfig.narrowProperties:G.JSC$21177_popupConfig.properties)&&I!==void 0&&(b.isAriaModal=I);hvj(G,b);G.isRtl()&&hvj(G,G.JSC$21177_popupConfig.rtlProperties);q6F(G)};
j3.prototype.createPopup=function(){var G=this.JSC$21177_popupConfig.component;if(this.popupContent=ly3(this,this.rendererName)){if(G){this.popup=ly3(this,G);var b=this.popupContent;_.U("web_enable_wrapper_for_cow_component_in_popup")&&(b=document.createElement("div"),b.appendChild(this.popupContent));_.U("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21177_popupConfig.slotName&&b.setAttribute("slot",this.JSC$21177_popupConfig.slotName);G=this.popup;var I=this.container.tagName.toLowerCase(),
h=_.Yn(b);_.jHd(_.JL(G),_.ug(b,I,h));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.U("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Eo(this.container).appendChild(this.popup)}};
var Iy1=function(G){var b,I,h=(b=G.openPopupAction.accessibilityData)==null?void 0:(I=b.accessibilityData)==null?void 0:I.label;h&&(G.popup.ariaLabel=h);var q;((q=G.popupContent.polymerController)!=null?q:G.popupContent).data=(0,_.Cy.unsafeClone)(G.openPopupAction.popup[G.getName()]);G.popupContent.duration=mgW(G);G.popupContent.positionType=G.openPopupAction.position;var l=G.openPopupAction.properties;l&&Object.keys(l).forEach(function(V){G.popupContent[V]=l[V]})},hvj=function(G,b){if(b)for(var I=
_.e(Object.keys(b)),h=I.next();!h.done;h=I.next())h=h.value,G.popup[h]=b[h]},q6F=function(G){if(G.openPopupAction.position){var b=G.JSC$21177_popupConfig.positionalProperties&&G.JSC$21177_popupConfig.positionalProperties[G.openPopupAction.position],I=G.JSC$21177_popupConfig.rtlPositionalProperties&&G.JSC$21177_popupConfig.rtlPositionalProperties[G.openPopupAction.position];
b=G.isRtl()&&I?I:b;b.shiftedHorizontalOffset&&(I=G.popup.style.display,G.popup.style.display="block",G.popupContent&&G.popup.positionTarget&&G.popupContent.clientWidth>G.popup.positionTarget.clientWidth&&(b.horizontalOffset=G.popup.positionTarget.clientWidth/2-b.shiftedHorizontalOffset),G.popup.style.display=I);hvj(G,b)}},evD=function(G,b){if(b)for(var I=_.e(Object.keys(b)),h=I.next();!h.done;h=I.next())h=h.value,G.popup.style[h]=b[h]};
j3.prototype.getName=function(){return _.Rj(this.openPopupAction.popup,"renderer")||_.Rj(this.openPopupAction.popup,"dialog")||_.Rj(this.openPopupAction.popup,"model")||void 0};
var mgW=function(G){G=G.openPopupAction.durationHintMs;return G===0?G:Math.max(4E3,G||4E3)};
j3.prototype.isRtl=function(){return _.wy("HTML_DIR")==="rtl"};
var ly3=function(G,b){G=G.getElement(b,G.target);G==null&&_.RB(new _.Wf("popup getElement returned null",b));return G};var V9c={};
V9c.YtPopupContainerBehavior=[_.EN.YtComponentBehavior,_.tV.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.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.R3(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.nv(this.hostElement)},
closePopup:function(G){var b=this.createCacheKey(void 0,G);this.popups_[b]&&this.handleClosePopupAction_(void 0,G)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.uu.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.uu.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 b=this.popups_[G];if(b.popup.scrollAction==="refit"){var I=b.popup.positionTarget.getBoundingClientRect(),h=b.popup;I=I.top;var q=b;if(!q.naturalHeight){q.popup.hidden=!1;q.popup.style.position="fixed";q.popup.style.top="0px";q.popup.style.left="0px";var l=q.popup.getBoundingClientRect();q.naturalHeight=l.bottom-l.top;q.popup.refit()}h.hidden=!(I>=q.naturalHeight+60);b.popupContent.clientHeight===0&&b.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(G){this.popupContainerConfig=G},
handleOpenPopupAction:function(G,b){var I=G.openPopupAction,h=_.LL().resolve(_.vf(_.lw))&&I.popupType==="TOAST";h&&!I.uniqueId&&(I.uniqueId=_.FC());if(!_.U("popup_container_parent_target_killswitch")){var q;b=(q=this.getParentTarget(b))!=null?q:b}var l=this.ensurePopup_(I,b);return new _.MB(function(V){l.then(function(D){if(!D)return V();this.maybeCreateNarrowMediaQuery_();var k=this.createCacheKey(D.rendererName,D.openPopupAction.uniqueId);if(I.showOncePerUniqueId){if(this.shownPopupKeys_.has(k))return V();
this.shownPopupKeys_.add(k)}k=this.popups_[k];var L=!(!k||!k.openPopupAction.beReused);L=!!I.reusePopup||L;if(D.popup.opened&&!L){h&&!D.openPopupAction.replacePopup||this.handleClosePopupAction_(D.rendererName,D.openPopupAction.uniqueId);L=I.popupType==="DIALOG"&&!_.U("popup_container_dialog_reopen_killswitch");if(!h&&!L&&k&&k.target==b&&!D.openPopupAction.replacePopup)return V();_.D1(D.popup,function(){this.completeOpenPopupAction_(I,b,D);V()}.bind(this))}else D.popup.opened?D.updatePopup(I):this.completeOpenPopupAction_(I,
b,D),V()}.bind(this))}.bind(this))},
getParentTarget:function(G){if(G&&G instanceof HTMLElement)for(var b=_.e(Object.entries(this.popups_)),I=b.next();!I.done;I=b.next())if(I=_.e(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,b,I){I.updatePopup(G);G=this.narrowMediaQuery_.queryMatches;var h=this.isAriaModal;I.target=b;var q;b=((q=I.target.polymerController)!=null?q:I.target).popupPositionTarget||I.target;I.JSC$21177_popupConfig.targetContainer&&(b=I.container);I.popup.positionTarget=b;I.popupContent.positionTarget=b;q6F(I);I.JSC$21177_popupConfig.forceFocus&&(I.popupContent.style.outline="none");I.popupContent.tabIndex=-1;I.JSC$21177_popupConfig.narrowProperties&&(I.popup.style.position=
"static");I.JSC$21177_popupConfig.preventAutonav&&I.popup.setAttribute("prevent-autonav",!0);I.JSC$21177_popupConfig.forceCloseOnOutsideClick&&I.popup.setAttribute("force-close-on-outside-click",!0);jD3(I,G,h);evD(I,I.JSC$21177_popupConfig.styles);I.isRtl()&&evD(I,I.JSC$21177_popupConfig.rtlStyles);if(!I.openPopupAction.shouldStopParentSignal){var l;q=(l=I.target.polymerController)!=null?l:I.target;(I.popupContent.startForwardingEvents||I.popupContainerConfig.forwardingEnabledPopups.has(I.rendererName))&&
q.parentComponent!==I.popupContent&&I.popupContent!==I.target&&I.target!==document.body&&(I.popupContent.startForwardingEvents?I.popupContent.startForwardingEvents(I.popupContainerConfig.forwardedEvents,I.target):(I.JSC$21177_eventForwarder||(I.JSC$21177_eventForwarder=new _.Xe(I.popupContent)),I.JSC$21177_eventForwarder.start(I.popupContainerConfig.forwardedEvents,I.target)))}I=I.popup;I.addEventListener("iron-overlay-opened",_.I9(this,this.onPopupIronOverlayOpened_));I.addEventListener("iron-overlay-closed",
_.I9(this,this.onPopupIronOverlayClosed_));I.addEventListener("iron-overlay-canceled",_.I9(this,this.onPopupIronOverlayCanceled_));I.addEventListener("yt-refit",_.I9(this,this.refitPopup_));I.addEventListener("yt-invalidate-popup-tabbables",_.I9(this,this.handleInvalidatePopupTabbables_));I.open()},
getPopupDurationMs_:function(G){return G.durationHintMs===0?G.durationHintMs:Math.max(4E3,G.durationHintMs||4E3)},
handleClosePopupAction_:function(G,b){var I=_.U("web_popup_cache_key_killswitch")||!!b;if(G||I){var h=this.createCacheKey(G,b);G=(G=this.popups_[h])&&G.popup}else G=_.uii(_.GQ);if(G&&G.close){if(b=_.LL().resolve(_.vf(_.v6)))G.restoreFocusOnClose=b.isKeyBoardInUse();G.close();this.removePopup_(G,h)}},
handleClosePopupCommand_:function(G){G.closePopupCommand&&G.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,G.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(G){var b={},I;for(I in this.popups_)if(b={key$jscomp$1224:b.key$jscomp$1224},b.key$jscomp$1224=I,!G||!G.some(function(l){return function(V){return V==l.key$jscomp$1224}}(b))){var h=this.popups_[b.key$jscomp$1224],q=h.popup;
_.LL().resolve(_.vf(_.lw))&&h.openPopupAction.popupType==="TOAST"||(q&&q.close&&q.close(),this.removePopup_(q,b.key$jscomp$1224))}},
handleClosePopupsAction_:function(G){G.forEach(function(b){var I=this.popups_[b];I&&((I=I.popup)&&I.close&&I.close(),this.removePopup_(I,b))}.bind(this))},
handleGetPopupOpenedAction_:function(G,b){return(b=this.createCacheKey(G,b))&&this.popups_[b]?this.popups_[G].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var G=[],b;for(b in this.popups_){var I=this.popups_[b];I.popup.opened&&G.push(I)}return G},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(G,b){_.U("ytpopup_disable_default_html_caching")&&G&&G.removeWhenClosed&&(_.Eo(this.hostElement).removeChild(G),b&&this.popups_[b]&&delete this.popups_[b])},
shouldReusePopup_:function(G){return!(!G||!G.reusePopup)||!(!G||!G.beReused)},
ensurePopup_:function(G,b){this.maybeCreateNarrowMediaQuery_();var I=_.Rj(G.popup,"renderer")||_.Rj(G.popup,"dialog")||_.Rj(G.popup,"model");if(!I)return _.X8();I=_.Iaa(I,tj8(this.popupContainerConfig,I));return _.X8(this.getAndMaybeCreatePopup_(G,I,b))},
getAndMaybeCreatePopup_:function(G,b,I){var h=this.createCacheKey(b,G.uniqueId);if(this.popups_[h])return this.popups_[h];G=new j3({openPopupAction:G,target:I,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(b)});return this.popups_[h]=G},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(G){return _.U("ytpopup_disable_default_html_caching")?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",_.I9(this,this.openPopupQueryMatchesChanged_)),_.Eo(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(G){G=G.detail.value;for(var b in this.popups_)jD3(this.popups_[b],G)},
onPopupIronOverlayClosed_:function(G){var b=G.currentTarget,I=_.Z_O(b);I=I.length>0?I[0]:b;if(I.is!=="ytd-reel-watch-while-dialog-renderer"||G.target.is!=="tp-yt-iron-dropdown"){G.detail.popup=b;G.detail.popupRenderer=I;var h,q={context:{openingElement:((h=this.popups_[(I==null?void 0:I.is)||""])==null?void 0:h.target)||void 0}};Object.assign(q,G.detail);var l;_.O3((l=I.hostElement)!=null?l:I,"yt-popup-closed",q);b.removeEventListener("yt-refit",_.I9(this,this.refitPopup_));b.removeEventListener("yt-invalidate-popup-tabbables",
_.I9(this,this.handleInvalidatePopupTabbables_));b.removeEventListener("iron-overlay-canceled",_.I9(this,this.onPopupIronOverlayCanceled_));b.removeEventListener("iron-overlay-closed",_.I9(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(b)}},
onPopupIronOverlayCanceled_:function(G,b){var I=G.currentTarget,h=_.Z_O(I);h=h.length>0?h[0]:I;if(h.is!=="ytd-reel-watch-while-dialog-renderer"||G.target.is!=="tp-yt-iron-dropdown"){var q;_.O3((q=h.hostElement)!=null?q:h,"yt-popup-canceled",G.detail);q=b?_.Wy(b):null;(!b||["click","tap"].includes(b.type))&&!I.hasAttribute("force-close-on-outside-click")&&I.positionTarget&&q&&q.includes(I.positionTarget)&&G.preventDefault();I.restoreFocusOnClose=_.PO.keyboardEventMatchesKeys(b,"esc")}},
onPopupIronOverlayOpened_:function(G){G=G.currentTarget;var b=_.Z_O(G);b=b.length>0?b[0]:G;var I,h;_.O3((I=b.hostElement)!=null?I:b,"yt-popup-opened",(h=b.hostElement)!=null?h:b);G.keepBelowPlayer&&(this.ensurePopupBelowPlayer(G,!0),this.dynamicallyPositionedElements_.add(G));I=_.LL().resolve(_.vf(_.v6));h=!!b.querySelector("#toast");I&&I.isKeyBoardInUse()&&!h&&(typeof b.focusFirstItem==="function"?b.focusFirstItem():(b=_.C0n(G),b.length&&b[0].focus()));G.removeEventListener("iron-overlay-opened",
_.I9(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,b){return _.U("web_popup_cache_key_killswitch")?b?G+"#"+b:G:b?"#"+b:G},
openSheet:function(G,b){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}}}I&&this.handleOpenPopupAction(I,b)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var G=this;return _.c(function(b){return b.return(G.handleGetOpenedPopupsAction_().filter(function(I){var h;return((h=I.openPopupAction)==null?void 0:h.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(G,b,I){if(_.U("web_dialog_utils_killswitch")){var h=G==null?void 0:G.openPopupActionCommand,q=(I==null?0:I.ariaLabel)?{accessibilityData:{accessibilityData:{label:I.ariaLabel}}}:void 0;!h&&(G==null?0:G.viewModel)&&(h={openPopupAction:Object.assign({},{popup:{dialogViewModel:G.viewModel},popupType:(I==null?0:I.isModal)?"MODAL":"DIALOG"},q&&q)});h&&this.handleOpenPopupAction(h,b)}else{if(q=G==null?void 0:G.viewModel){var l=I=I===void 0?{}:I;I=l.ariaLabel;q={popup:{dialogViewModel:q},
popupType:l.isModal?"MODAL":"DIALOG"};l={accessibilityData:{label:I}};I&&(q.accessibilityData=l);q={openPopupAction:q}}else q=void 0;if(q=(h=q)!=null?h:G==null?void 0:G.openPopupActionCommand)this.isAriaModal=_.U("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(q,b)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var G=this;return _.c(function(b){return b.return(G.handleGetOpenedPopupsAction_().filter(function(I){var h;return((h=I.openPopupAction)==null?void 0:h.popupType)==="DIALOG"}).length>0)})}}];var Dg5;var c6L;var kYK=_.WP(["about:blank"]),lZ=function(){var G=_.a.apply(this,arguments)||this;G.isMuted=!1;G.pageLoadTimeoutId=void 0;return G};
_.M(lZ,_.a);_.m=lZ.prototype;_.m.dataChanged=function(){var G=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var b=this.data.url,I=_.Rb(b);_.U("enable_yt_ata_iframe_authuser")?(I=_.Rb(b),_.$T(this.iframe,FIY(I))):_.$T(this.iframe,I);this.pageLoadTimeoutId=_.FQ(_.fW(),function(){return void G.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Ie({destination:window,iframe:this.iframe,origin:_.Van(I.toString()),channelName:"ataiframe",onMessage:_.xEu(Oo5,function(h){w_e(h.data)?(h=_.S8(h.data,1,_.lF,_.vr()),h.length!==1?_.RB(Error("Ml")):(h=h[0],h===3?(G.isMuted=!0,G.logStateChanged({adMuteRequested:!0})):h===1&&G.close())):_.RB(Error("Nl"))}),
onEstablished:function(){G.cancelPageLoadTimeout();G.logStateChanged({pageLoadSucceeded:!0})}})}};
_.m.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.fW().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.m.logStateChanged=function(G){var b;if((b=this.data)==null?0:b.trackingParams)G={adsClientData:{aboutThisAdData:G}},_.qo().stateChanged(this.data.trackingParams,G)};
_.m.close=function(){_.wL(this.hostElement,"yt-close-popup-action",[this.is])};
_.m.handlesPopupClosed=function(G,b){var I=this,h,q;return _.c(function(l){if(l.nextAddress==1)return _.wy("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.wL(I.hostElement,"on-about-this-ad-popup-closed",[I.isMuted,b]),l.jumpTo(0)):G&&Hpc(G)?l.yield(WIe(G),4):(I.isMuted&&_.wL(I.hostElement,"yt-mute-ad-action",[I.is,I]),l.jumpTo(0));if(h=l.yieldResult){var V=q=new _.ur(h),D=I.isMuted;V.getOptions().includes("onAboutThisAdPopupClosed")?_.s7z(V,"onAboutThisAdPopupClosed",{isMuted:D,layoutId:b}):_.dQ("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.ip(l)})};
_.m.onPopupClosed=function(G){var b=this,I,h;return _.c(function(q){I=_.Ba(kYK);_.$T(b.iframe,I);b.cancelPageLoadTimeout();if(!b.data)return q.jumpTo(0);b.ytRendererBehavior.markDirty();h=G.detail.context.openingElement;return q.yield(b.handlesPopupClosed(h,b.data.layoutId),0)})};
_.m.detached=function(){this.cancelPageLoadTimeout()};
_.m.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lZ.prototype.onPopupClosed=lZ.prototype.onPopupClosed;lZ.prototype.dataChanged=lZ.prototype.dataChanged;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.R([_.lH("#iframe"),_.n("design:type",HTMLIFrameElement)],lZ.prototype,"iframe",void 0);_.R([_.H(),_.n("design:type",Object)],lZ.prototype,"data",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],lZ.prototype,"dataChanged",null);
_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype",Promise)],lZ.prototype,"onPopupClosed",null);_.R([_.g8({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],lZ);
_.J(lZ,"yt-about-this-ad-renderer",function(){if(c6L===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Dg5===void 0&&(Dg5=document.createElement("template"));var h=Dg5;I.call(b,h.content.cloneNode(!0),G.content.firstChild);c6L=G}G=c6L;return G},{mode:2});var vsK;var LVW;var QD9=function(G){var b=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.maxFileSizeMB=G;Object.setPrototypeOf(this,QD9.prototype)};
_.M(QD9,Error);var xgL=function(G,b){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=b;Object.setPrototypeOf(this,xgL.prototype)};
_.M(xgL,Error);var fy8=function(G){this.requirements=G;this.JSC$21205_maxFileSize=G.maxFileSizeMB*1024*1024},T3W=function(G,b){if(b.size>G.JSC$21205_maxFileSize)throw new QD9(G.requirements.maxFileSizeMB);
};var B3F=function(G,b){this.canvas=G;this.imageEditorBuilder=b};
B3F.prototype.addEventListeners=function(G){var b=function(q){Ug3(G,q)};
this.JSC$21211_mouseDownEvent=b;var I=function(q){sDc(G,q)};
this.JSC$21211_mouseMoveEvent=I;var h=function(){gs9(G)};
this.JSC$21211_mouseUpEvent=h;this.canvas.addEventListener("mousedown",b);this.canvas.addEventListener("mousemove",I);document.addEventListener("mouseup",h)};
B3F.prototype.removeEventListeners=function(){this.JSC$21211_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21211_mouseDownEvent);this.JSC$21211_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21211_mouseMoveEvent);this.JSC$21211_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21211_mouseUpEvent)};
var A6K=function(G,b){G.removeEventListeners();return new Promise(function(I){var h=new Image;h.crossOrigin="anonymous";h.onload=function(){var q=G.imageEditorBuilder(G.canvas,h);G.addEventListeners(q);I(q)};
h.src=b})},mY=function(G,b,I,h,q,l,V,D){this.canvas=G;
this.image=b;this.requiredRatio=I;this.minImageCropDimension=h;this.minOutputImageResolution=q;this.component=l;this.styleFocusedCorner=D===void 0?!0:D;this.action=2;this.focusedCorner=this.resizeCorner=0;G=this.canvas.getContext("2d");if(!G)throw Error("Ol");this.ctx=G;this.canvasMargin=V!=null?V:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;V=this.image;G=this.canvasInnerWidth/V.width;V.height*G>912&&(G=V.width/V.height*912/V.width);V=G;this.scaledImageWidth=this.canvas.width%2?
NU8(this.image.width*V):au8(this.image.width*V);this.scaledImageHeight=Math.round(this.image.height*V);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21214_overlayMarginBottom=this.JSC$21214_overlayMarginTop=this.canvasMargin;this.JSC$21214_overlayMarginRight=this.JSC$21214_overlayMarginLeft=this.horizontalMargin;this.JSC$21214_overlayWidth=this.scaledImageWidth;this.JSC$21214_overlayHeight=this.scaledImageHeight;
G=this.image.width/this.image.height;G>this.requiredRatio?(this.JSC$21214_overlayWidth=this.canvas.width%2?NU8(this.scaledImageHeight*this.requiredRatio):au8(this.scaledImageHeight*this.requiredRatio),this.JSC$21214_overlayMarginRight=this.JSC$21214_overlayMarginLeft=(this.canvas.width-this.JSC$21214_overlayWidth)/2):G<this.requiredRatio&&(this.JSC$21214_overlayHeight=this.canvas.height%2?NU8(this.scaledImageWidth/this.requiredRatio):au8(this.scaledImageWidth/this.requiredRatio),this.JSC$21214_overlayMarginBottom=
this.JSC$21214_overlayMarginTop=(this.canvas.height-this.JSC$21214_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*V,this.scaledImageWidth);M9a(this)};
mY.prototype.getContext=function(){return this.ctx};
var Ug3=function(G,b){b={x:Math.round(b.pageX-G.canvas.getBoundingClientRect().left),y:Math.round(b.pageY-G.canvas.getBoundingClientRect().top)};G.dragStart=b;ZxK(G,b)!==0?(G.action=1,t9W(G,b),G.resizeCorner=ZxK(G,b)):b.x>G.JSC$21214_overlayMarginLeft&&b.x<G.JSC$21214_overlayMarginLeft+G.JSC$21214_overlayWidth&&b.y>G.JSC$21214_overlayMarginTop&&b.y<G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight&&(G.action=0)},zv3=function(G,b){switch(b){case 1:return{x:G.JSC$21214_overlayMarginLeft,
y:G.JSC$21214_overlayMarginTop};case 2:return{x:G.JSC$21214_overlayMarginLeft,y:G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight};case 3:return{x:G.JSC$21214_overlayMarginLeft+G.JSC$21214_overlayWidth,y:G.JSC$21214_overlayMarginTop};case 4:return{x:G.JSC$21214_overlayMarginLeft+G.JSC$21214_overlayWidth,y:G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight};default:throw Error("Pl");}},ixj=function(G,b){if(G.focusedCorner!==0){G.dragStart=zv3(G,G.focusedCorner);
G.action=1;G.resizeCorner=G.focusedCorner;var I=G.dragStart.x,h=G.dragStart.y;switch(b){case 0:G.focusedCorner===1||G.focusedCorner===4?(I-=10,h-=10):(I-=10,h+=10);break;case 1:G.focusedCorner===1||G.focusedCorner===4?(I+=10,h+=10):(I+=10,h-=10);break;case 2:I=G.focusedCorner===1||G.focusedCorner===4?I-10:I+10;h-=10;break;case 3:I=G.focusedCorner===1||G.focusedCorner===4?I+10:I-10;h+=10;break;default:throw Error("Ql");}osc(G,{x:I,y:h});M9a(G);G.action=2;G.dragStart=void 0}},sDc=function(G,b){b={x:Math.round(b.pageX-
G.canvas.getBoundingClientRect().left),
y:Math.round(b.pageY-G.canvas.getBoundingClientRect().top)};t9W(G,b);switch(G.action){case 1:osc(G,b);break;case 0:G.dragStart&&(G.JSC$21214_overlayMarginLeft=Math.max(G.horizontalMargin,Math.min(G.JSC$21214_overlayMarginLeft-(G.dragStart.x-b.x),G.horizontalMargin+G.scaledImageWidth-G.JSC$21214_overlayWidth)),G.JSC$21214_overlayMarginRight=G.canvas.width-G.JSC$21214_overlayMarginLeft-G.JSC$21214_overlayWidth,G.JSC$21214_overlayMarginTop=Math.max(G.canvasMargin,Math.min(G.JSC$21214_overlayMarginTop-
(G.dragStart.y-b.y),G.scaledImageHeight-G.JSC$21214_overlayHeight+G.canvasMargin)),G.JSC$21214_overlayMarginBottom=G.canvas.height-(G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight));break;default:return}M9a(G);G.dragStart=b},gs9=function(G){G.action=2;
G.dragStart=void 0;document.body.style.cursor="auto"},t9W=function(G,b){switch(ZxK(G,b)){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")}},ZxK=function(G,b){var I=G.JSC$21214_overlayMarginLeft-5,h=G.JSC$21214_overlayMarginTop-5,q=G.JSC$21214_overlayMarginLeft+G.JSC$21214_overlayWidth-5;
G=G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight-5;return PK3(b,{x:I,y:h})?1:PK3(b,{x:q,y:h})?3:PK3(b,{x:I,y:G})?2:PK3(b,{x:q,y:G})?4:0},PK3=function(G,b){return G.x>=b.x&&G.x<=b.x+10&&G.y>=b.y&&G.y<=b.y+10},osc=function(G,b){if(G.dragStart)switch(G.resizeCorner){case 2:Math.abs((G.JSC$21214_overlayMarginLeft+G.JSC$21214_overlayWidth-b.x)/(b.y-G.JSC$21214_overlayMarginTop))>=G.requiredRatio?dg1(G,b.x):y6L(G,b.y);
break;case 1:Math.abs((G.JSC$21214_overlayMarginLeft+G.JSC$21214_overlayWidth-b.x)/(G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight-b.y))>=G.requiredRatio?r61(G,b.x):y6L(G,b.y);break;case 4:Math.abs((b.x-G.JSC$21214_overlayMarginLeft)/(b.y-G.JSC$21214_overlayMarginTop))>=G.requiredRatio?dg1(G,b.x):FV8(G,b.y);break;case 3:Math.abs((b.x-G.JSC$21214_overlayMarginLeft)/(G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight-b.y))>=G.requiredRatio?r61(G,b.x):FV8(G,b.y);break;default:throw Error("Rl");
}},dg1=function(G,b){var I=G.JSC$21214_overlayMarginTop;
G.JSC$21214_overlayMarginBottom=Hxj(G,b);G.JSC$21214_overlayHeight=G.canvas.height-G.JSC$21214_overlayMarginBottom-I;G.JSC$21214_overlayWidth=Math.round(G.JSC$21214_overlayHeight*G.requiredRatio);WVj(G)},r61=function(G,b){var I=G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight;
G.JSC$21214_overlayMarginTop=Hxj(G,b);G.JSC$21214_overlayHeight=I-G.JSC$21214_overlayMarginTop;G.JSC$21214_overlayWidth=Math.round(G.JSC$21214_overlayHeight*G.requiredRatio);WVj(G)},WVj=function(G){switch(G.resizeCorner){case 2:case 1:G.JSC$21214_overlayMarginLeft=G.canvas.width-G.JSC$21214_overlayMarginRight-G.JSC$21214_overlayWidth;
break;case 4:case 3:G.JSC$21214_overlayMarginRight=G.canvas.width-G.JSC$21214_overlayMarginLeft-G.JSC$21214_overlayWidth;break;default:throw Error("Rl");}},y6L=function(G,b){var I=G.JSC$21214_overlayMarginLeft+G.JSC$21214_overlayWidth;
G.JSC$21214_overlayMarginLeft=ayL(G,b);G.JSC$21214_overlayWidth=I-G.JSC$21214_overlayMarginLeft;G.JSC$21214_overlayHeight=Math.round(G.JSC$21214_overlayWidth/G.requiredRatio);N35(G)},FV8=function(G,b){var I=G.JSC$21214_overlayMarginLeft;
G.JSC$21214_overlayMarginRight=ayL(G,b);G.JSC$21214_overlayWidth=G.canvas.width-G.JSC$21214_overlayMarginRight-I;G.JSC$21214_overlayHeight=Math.round(G.JSC$21214_overlayWidth/G.requiredRatio);N35(G)},N35=function(G){switch(G.resizeCorner){case 2:case 4:G.JSC$21214_overlayMarginBottom=G.canvas.height-G.JSC$21214_overlayMarginTop-G.JSC$21214_overlayHeight;
break;case 1:case 3:G.JSC$21214_overlayMarginTop=G.canvas.height-G.JSC$21214_overlayMarginBottom-G.JSC$21214_overlayHeight;break;default:throw Error("Rl");}},Hxj=function(G,b){switch(G.resizeCorner){case 2:b=G.canvas.height-(G.JSC$21214_overlayMarginTop+Y63(G,b));
break;case 4:b=G.canvas.height-(G.JSC$21214_overlayMarginTop+CK8(G,b));break;case 1:b=G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight-Y63(G,b);break;case 3:b=G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight-CK8(G,b);break;default:throw Error("Rl");}return Math.max(b,G.canvasMargin)},Y63=function(G,b){b=G.JSC$21214_overlayMarginLeft+G.JSC$21214_overlayWidth-Math.max(b,G.horizontalMargin);
b=b<0?G.JSC$21214_overlayWidth:Math.max(b,G.minOverlayWidth);return Math.round(b/G.requiredRatio)},CK8=function(G,b){b=G.canvas.width-Math.max(G.canvas.width-b,G.horizontalMargin)-G.JSC$21214_overlayMarginLeft;
b=b<0?G.JSC$21214_overlayWidth:Math.max(b,G.minOverlayWidth);return Math.round(b/G.requiredRatio)},ayL=function(G,b){switch(G.resizeCorner){case 2:b=G.canvas.width-G.JSC$21214_overlayMarginRight-J6j(G,b);
break;case 4:b=G.canvas.width-G.JSC$21214_overlayMarginLeft-J6j(G,b);break;case 1:b=G.canvas.width-G.JSC$21214_overlayMarginRight-KVK(G,b);break;case 3:b=G.canvas.width-G.JSC$21214_overlayMarginLeft-KVK(G,b);break;default:throw Error("Rl");}return Math.max(b,G.horizontalMargin)},J6j=function(G,b){b=G.canvas.height-Math.max(G.canvas.height-b,G.canvasMargin)-G.JSC$21214_overlayMarginTop;
return b<0?G.JSC$21214_overlayWidth:Math.max(Math.round(b*G.requiredRatio),G.minOverlayWidth)},KVK=function(G,b){b=G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight-Math.max(b,G.canvasMargin);
return b<0?G.JSC$21214_overlayWidth:Math.max(Math.round(b*G.requiredRatio),G.minOverlayWidth)},M9a=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$21214_overlayMarginTop,G.JSC$21214_overlayMarginLeft-G.horizontalMargin,G.JSC$21214_overlayHeight);G.ctx.fillRect(G.JSC$21214_overlayMarginLeft+G.JSC$21214_overlayWidth,G.JSC$21214_overlayMarginTop,G.JSC$21214_overlayMarginRight-G.horizontalMargin,G.JSC$21214_overlayHeight);G.ctx.fillRect(G.horizontalMargin,
G.canvasMargin,G.scaledImageWidth,G.JSC$21214_overlayMarginTop-G.canvasMargin);G.ctx.fillRect(G.horizontalMargin,G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight,G.scaledImageWidth,G.JSC$21214_overlayMarginBottom-G.canvasMargin);G.drawOverlay();G.component&&_.O3(G.component,"image-updated")};
mY.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21214_overlayMarginLeft,this.JSC$21214_overlayMarginTop,this.JSC$21214_overlayWidth,this.JSC$21214_overlayHeight);ufe(this)};
var ufe=function(G){var b=G.JSC$21214_overlayMarginLeft-5,I=G.JSC$21214_overlayMarginTop-5,h=G.JSC$21214_overlayMarginLeft+G.JSC$21214_overlayWidth-5,q=G.JSC$21214_overlayMarginTop+G.JSC$21214_overlayHeight-5;G.ctx.fillStyle="#FFF";G.ctx.fillRect(b,I,10,10);G.ctx.strokeRect(b,I,10,10);G.ctx.fillRect(h,I,10,10);G.ctx.strokeRect(h,I,10,10);G.ctx.fillRect(b,q,10,10);G.ctx.strokeRect(b,q,10,10);G.ctx.fillRect(h,q,10,10);G.ctx.strokeRect(h,q,10,10);if(G.focusedCorner!==0&&G.styleFocusedCorner){G.ctx.lineWidth=
4;G.ctx.strokeStyle="#3EA6FF";switch(G.focusedCorner){case 1:--b;--I;break;case 2:--b;I=q-1;break;case 3:b=h-1;--I;break;case 4:b=h-1;I=q-1;break;default:return}G.ctx.strokeRect(b,I,12,12)}};
mY.prototype.crop=function(G,b){b=b===void 0?!0:b;var I=this.image.width/this.scaledImageWidth,h=document.createElement("canvas"),q=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],l=this.JSC$21214_overlayWidth*I,V=this.JSC$21214_overlayHeight*I;h.width=Math.max(l,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);h.height=Math.max(V,q);G&&(h.width=Math.min(h.width,h.height),h.height=Math.min(h.width,h.height));
G=h.getContext("2d");if(!G)throw Error("Fl");q=(this.JSC$21214_overlayMarginLeft-this.horizontalMargin)*I;I*=this.JSC$21214_overlayMarginTop-this.canvasMargin;b||(G.fillStyle="white",G.fillRect(0,0,h.width,h.height));G.drawImage(this.image,q,I,l,V,0,0,h.width,h.height);return h};var RvL=function(G,b,I,h,q){mY.call(this,G,b,I,h,void 0,q,8,!1)};
_.M(RvL,mY);RvL.prototype.drawOverlay=function(){var G=this.getContext(),b=this.JSC$21214_overlayWidth,I=this.JSC$21214_overlayHeight,h=this.JSC$21214_overlayMarginTop,q=this.JSC$21214_overlayMarginLeft;G.lineWidth=2;G.strokeStyle="#3EA6FF";G.beginPath();G.arc(q+b/2,h+I/2,b/2,0,2*Math.PI);G.stroke();G.strokeRect(q,h,b,I);ufe(this)};
var nsa={maxFileSizeMB:15,minWidth:98,minHeight:98},Oxa=["image/png","image/jpeg","image/gif"],e3=function(){var G=_.a.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};
_.M(e3,_.a);_.m=e3.prototype;_.m.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.m.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.m.computePlaylistThumbnail=function(G){return G==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.m.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.wL(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.m.setErrorState=function(G){this.resetErrorState();G&&(this.errorMessage=G)};
_.m.showPopup=function(){var G=this;this.hideContainer=!1;_.FQ(_.uu,function(){_.O3(G.hostElement,"yt-refit")});
this.isLoading=!1};
_.m.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.m.closePopup=function(){this.resetFileSelector();_.wL(this.hostElement,"yt-close-popup-action",[this.is])};
_.m.onCancelTap=function(){this.isPlaylistThumbnail||_.wL(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.m.openFileSelector=function(){var G=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.FQ(_.uu,function(){setTimeout(function(){if(!G.fileSelector.files||G.fileSelector.files.length===0)G.onCancelTap();G.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(b){b instanceof Error?_.K1(b):_.u6(new _.Wf(JSON.stringify(b)))}};
_.m.handleFileSelection=function(){var G=this,b,I,h,q,l,V;return _.c(function(D){switch(D.nextAddress){case 1:_.gm(D,2);if(!G.fileSelector.files||!G.imageEditorCanvas)return G.onCancelTap(),D.return();b=G.fileSelector.files[0];T3W(G.imageChecker,b);_.gm(D,4);return D.yield(jRL(b),6);case 6:G.mimeType=D.yieldResult;_.hF(D,5,2);break;case 4:_.zf(D,2),_.wL(G.hostElement,"yt-image-selection-error-action",[(I=G.data)==null?void 0:I.genericImageLoadErrorMessage]),G.onCancelTap();case 5:h=new FileReader;
h.addEventListener("load",function(){var k,L;return _.c(function(x){if(x.nextAddress==1){if(!h.result)return _.RB(Error("Hl")),x.return();k=h.result;L=new Image;L.src=k;L.onload=function(){try{var f=G.imageChecker;if(L.width<f.requirements.minWidth||L.height<f.requirements.minHeight)throw new xgL(f.requirements.minWidth,f.requirements.minHeight);}catch(B){if(B instanceof xgL){var T;_.wL(G.hostElement,"yt-image-selection-error-action",[(T=G.data)==null?void 0:T.imageDimensionErrorMessage]);G.logImageDimensionErrorVe()}else B instanceof
Error?_.K1(B):(f=new _.Wf(JSON.stringify(B)),_.K1(f));G.onCancelTap()}G.showPopup()};
L.onerror=function(){var f;_.wL(G.hostElement,"yt-image-selection-error-action",[(f=G.data)==null?void 0:f.genericImageLoadErrorMessage]);G.onCancelTap()};
return x.yield(A6K(G.imageEditorCanvas,k),2)}G.imageEditor=x.yieldResult;G.updatePositionOfAllCorners();G.addEventListeners(G.imageEditor);_.ip(x)})},!1);
h.readAsDataURL(b);_.hF(D,0);break;case 2:q=_.zf(D),q instanceof QD9?_.wL(G.hostElement,"yt-image-selection-error-action",[(l=G.data)==null?void 0:l.imageSizeErrorMessage]):(q instanceof Error?_.K1(q):_.u6(new _.Wf(JSON.stringify(q))),_.wL(G.hostElement,"yt-image-selection-error-action",[(V=G.data)==null?void 0:V.genericImageLoadErrorMessage])),G.onCancelTap(),_.ip(D)}})};
_.m.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var G=_.IM(_.qo(),{veType:232707,visualElement:_.Xs(232707)});G&&(G={visualElement:G},_.b$().reportShown(G))}};
_.m.handleImageSelectionErrorAction=function(G){this.isPlaylistThumbnail&&_.Lyd(this.hostElement,G)};
_.m.convertToImageFormatBundle=function(G){var b=this,I,h,q;return _.c(function(l){switch(l.nextAddress){case 1:return I=G.toDataURL(b.outputMimeType,1),l.yield(luY(I),2);case 2:h=l.yieldResult;_.gm(l,3);T3W(b.imageChecker,h);_.hF(l,4);break;case 3:q=_.zf(l);if(!(q instanceof QD9))throw q;_.RB(new _.Wf("Output size is bigger than input size for image",b.mimeType,b.outputMimeType,h.size));I=G.toDataURL("image/jpeg",.95);return l.yield(luY(I),6);case 6:h=l.yieldResult;case 4:return l.return({dataUrl:I,
imageFile:h})}})};
_.m.handleUploadImageToScottyCommand=function(G){var b=this,I,h,q,l,V,D,k,L,x,f;return _.c(function(T){switch(T.nextAddress){case 1:if(!b.imageEditor||!_.g(G,VC3))return T.return();I=_.g(G,VC3).scottyUploadUrl;if(!I){var B=new _.Wf("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.K1(B);return T.return()}_.gm(T,2);b.setLoadingState();h=b.imageEditor.crop(!1,!1);return T.yield(b.convertToImageFormatBundle(h),4);case 4:return q=T.yieldResult,T.yield(hbK(q.imageFile,I),5);
case 5:l=T.yieldResult;((V=b.data)==null?0:V.onUploadEndpoint)?(D=b.buildUploadServiceEndpoint(l),b.ytComponentBehavior.resolveCommand(D),k=_.g(D,_.SI),((L=k)==null?0:L.params)?b.closePopup():b.resetFileSelector()):(_.wL(b.hostElement,"yt-image-updated-action",[q.dataUrl,l]),b.closePopup());_.hF(T,0);break;case 2:x=_.zf(T),b.setErrorState((f=b.data)==null?void 0:f.uploadErrorMessage),x instanceof Error?_.K1(x):(B=new _.Wf(JSON.stringify(x)),_.K1(B)),_.ip(T)}})};
_.m.buildUploadServiceEndpoint=function(G){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",G),this.data.onUploadEndpoint):null};
_.m.dataChanged=function(){var G=this,b;return _.c(function(I){if(I.nextAddress==1){if(!G.data||!G.canvasElement)return I.return();G.data.imageRatio&&G.data.minImageCropWidth||_.u6(new _.Wf("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));b=function(h,q){return G.data.imageType==="IMAGE_TYPE_AVATAR"?new RvL(h,q,G.data.imageRatio,[G.data.minImageCropWidth,G.data.minImageCropWidth/G.data.imageRatio],G.hostElement):new mY(h,q,G.data.imageRatio,[G.data.minImageCropWidth,
G.data.minImageCropWidth/G.data.imageRatio],void 0,G.hostElement,8,!1)};
G.imageEditorCanvas=new B3F(G.canvasElement,b);return G.data.url?I.yield(A6K(G.imageEditorCanvas,G.data.url),3):(G.hideContainer=!0,G.openFileSelector(),I.jumpTo(0))}G.imageEditor=I.yieldResult;G.showPopup();G.addEventListeners(G.imageEditor);_.ip(I)})};
_.m.addEventListeners=function(G){this.removeEventListeners();var b=function(q){Ug3(G,q)};
this.JSC$21222_mouseDownEvent=b;var I=function(q){sDc(G,q)};
this.JSC$21222_mouseMoveEvent=I;var h=function(){gs9(G)};
this.JSC$21222_mouseUpEvent=h;this.topLeftCorner.addEventListener("mousedown",b);this.topLeftCorner.addEventListener("mousemove",I);this.topLeftCorner.addEventListener("mouseup",h);this.topRightCorner.addEventListener("mousedown",b);this.topRightCorner.addEventListener("mousemove",I);this.topRightCorner.addEventListener("mouseup",h);this.bottomLeftCorner.addEventListener("mousedown",b);this.bottomLeftCorner.addEventListener("mousemove",I);this.bottomLeftCorner.addEventListener("mouseup",h);this.bottomRightCorner.addEventListener("mousedown",
b);this.bottomRightCorner.addEventListener("mousemove",I);this.bottomRightCorner.addEventListener("mouseup",h)};
_.m.removeEventListeners=function(){this.JSC$21222_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21222_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21222_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21222_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21222_mouseDownEvent));this.JSC$21222_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21222_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21222_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21222_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21222_mouseMoveEvent));this.JSC$21222_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21222_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21222_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21222_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21222_mouseUpEvent))};
_.m.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};
_.m.updatePositionOfCorner=function(G,b){var I=G.y-b.offsetHeight/2+4;b.style.left=G.x-b.offsetWidth/2+16+"px";b.style.top=I+"px"};
_.m.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var G=_.e([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),b=G.next();!b.done;b=G.next()){b=b.value;var I=zv3(this.imageEditor,b.corner);this.updatePositionOfCorner(I,b.div)}};
_.m.onLeft=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(ixj(this.imageEditor,0),this.updatePositionOfAllCorners(),G.preventDefault())};
_.m.onRight=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(ixj(this.imageEditor,1),this.updatePositionOfAllCorners(),G.preventDefault())};
_.m.onUp=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(ixj(this.imageEditor,2),this.updatePositionOfAllCorners(),G.preventDefault())};
_.m.onDown=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(ixj(this.imageEditor,3),this.updatePositionOfAllCorners(),G.preventDefault())};
_.m.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.kV.Object.defineProperties(e3.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Oxa.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var G,b,I;((b=this.data)==null?0:b.imageRatio)&&((I=this.data)==null?0:I.minImageCropWidth)?G={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:G=nsa;return new fy8(G)}}});
e3.prototype.updatePositionOfAllCorners=e3.prototype.updatePositionOfAllCorners;e3.prototype.dataChanged=e3.prototype.dataChanged;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],e3.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],e3.prototype,"ytComponentBehavior",void 0);_.R([_.z(_.PO),_.n("design:type",Object)],e3.prototype,"ironA11yKeysBehavior",void 0);
_.R([_.lH("#canvas"),_.n("design:type",HTMLCanvasElement)],e3.prototype,"canvasElement",void 0);_.R([_.lH("#file-selector"),_.n("design:type",HTMLInputElement)],e3.prototype,"fileSelector",void 0);_.R([_.lH("#top-left-corner"),_.n("design:type",HTMLDivElement)],e3.prototype,"topLeftCorner",void 0);_.R([_.lH("#top-right-corner"),_.n("design:type",HTMLDivElement)],e3.prototype,"topRightCorner",void 0);
_.R([_.lH("#bottom-left-corner"),_.n("design:type",HTMLDivElement)],e3.prototype,"bottomLeftCorner",void 0);_.R([_.lH("#bottom-right-corner"),_.n("design:type",HTMLDivElement)],e3.prototype,"bottomRightCorner",void 0);_.R([_.H(),_.n("design:type",Object)],e3.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],e3.prototype,"errorMessage",void 0);_.R([_.H(),_.n("design:type",Object)],e3.prototype,"isLoading",void 0);_.R([_.H(),_.n("design:type",Object)],e3.prototype,"hideContainer",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.n("design:type",Boolean)],e3.prototype,"isPlaylistThumbnail",void 0);_.R([_.Dd("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],e3.prototype,"dataChanged",null);_.R([_.hI("image-updated"),_.hI("yt-refit"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],e3.prototype,"updatePositionOfAllCorners",null);
_.R([_.g8({is:"yt-image-editor-renderer",disableElementRegistration:!0})],e3);
_.J(e3,"yt-image-editor-renderer",function(){if(LVW===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;vsK===void 0&&(vsK=document.createElement("template"));var h=vsK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);LVW=G}G=LVW;return G},{mode:2});var wKK;var EsL;var V_=function(){return _.a.apply(this,arguments)||this};
_.M(V_,_.a);V_.prototype.updateMinutesFromBinding=function(G){this.handleMinutesChanged&&this.handleMinutesChanged(G)};
V_.prototype.updateSecondsFromBinding=function(G){this.handleSecondsChanged&&this.handleSecondsChanged(G)};
V_.prototype.updateDescriptionFromBinding=function(G){this.handleDescriptionChanged&&this.handleDescriptionChanged(G)};
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],V_.prototype,"ytComponentBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],V_.prototype,"data",void 0);_.R([_.H(),_.n("design:type",String)],V_.prototype,"minutes",void 0);_.R([_.H(),_.n("design:type",String)],V_.prototype,"seconds",void 0);_.R([_.H(),_.n("design:type",String)],V_.prototype,"description",void 0);_.R([_.H(),_.n("design:type",Function)],V_.prototype,"handleMinutesChanged",void 0);
_.R([_.H(),_.n("design:type",Function)],V_.prototype,"handleSecondsChanged",void 0);_.R([_.H(),_.n("design:type",Function)],V_.prototype,"handleDescriptionChanged",void 0);_.R([_.H(),_.n("design:type",Number)],V_.prototype,"characterLimit",void 0);_.R([_.H(),_.n("design:type",Number)],V_.prototype,"textNumRows",void 0);_.R([_.g8({is:"yt-report-details-form-content",disableElementRegistration:!0})],V_);
_.J(V_,"yt-report-details-form-content",function(){if(EsL===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;wKK===void 0&&(wKK=document.createElement("template"));var h=wKK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);EsL=G}G=EsL;return G},{mode:2});var pKj;var S68;var DS=function(){var G=_.a.apply(this,arguments)||this;G.updateMinutesFromBinding=function(b){G.minutes=b.detail.value};
G.updateSecondsFromBinding=function(b){G.seconds=b.detail.value};
G.updateDescriptionFromBinding=function(b){G.description=b.detail.value};
return G};
_.M(DS,_.a);_.m=DS.prototype;_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.m.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"}}}};
_.m.ready=function(){_.Eo(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.m.onSubmitYtAction=function(G){var b=G.detail;b.actionName==="yt-service-request"&&(b=b.args[1],b.flagEndpoint&&(G.stopPropagation(),this.refireAction(b)))};
_.m.refireAction=function(G){var b={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(b.vss_id=this.vssId);_.pv(this.hostElement,[G,b]);this.submitDisabled=!0};
_.m.dataChanged=function(){var G=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var b=_.Kk();b&&b.getPlayerPromise().then(function(I){var h=I.getOption("cc","track")||I.getOption("captions","track");h&&(G.vssId=h.vss_id);I=I.getCurrentTime();G.minutes=Math.floor(I/60).toString();G.seconds=(Math.floor(I)%60).toString()})};
_.m.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==="")};
_.m.onYtServiceRequestCompleted=function(){_.wL(this.hostElement,"yt-close-popup-action")};
_.m.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.kV.Object.defineProperties(DS.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}}});
DS.prototype.onYtServiceRequestError=DS.prototype.onYtServiceRequestError;DS.prototype.onYtServiceRequestCompleted=DS.prototype.onYtServiceRequestCompleted;DS.prototype.updateSubmitButtonState=DS.prototype.updateSubmitButtonState;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);
_.R([_.H({observer:"dataChanged"}),_.n("design:type",Object)],DS.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Boolean)],DS.prototype,"submitDisabled",void 0);_.R([_.H(),_.n("design:type",String)],DS.prototype,"minutes",void 0);_.R([_.H(),_.n("design:type",String)],DS.prototype,"seconds",void 0);_.R([_.H(),_.n("design:type",String)],DS.prototype,"description",void 0);_.R([_.H(),_.n("design:type",String)],DS.prototype,"vssId",void 0);
_.R([_.H({value:_.wy("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.n("design:type",Boolean)],DS.prototype,"isMusic",void 0);_.R([_.P("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],DS.prototype,"characterLimit",null);_.R([_.P("data"),_.n("design:type",Number),_.n("design:paramtypes",[])],DS.prototype,"textNumRows",null);
_.R([_.Dd("minutes","seconds","description","submitDisabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DS.prototype,"updateSubmitButtonState",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DS.prototype,"onYtServiceRequestCompleted",null);
_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],DS.prototype,"onYtServiceRequestError",null);_.R([_.g8({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],DS);
_.J(DS,"yt-report-details-form-renderer",function(){if(S68===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;pKj===void 0&&(pKj=document.createElement("template"));var h=pKj;I.call(b,h.content.cloneNode(!0),G.content.firstChild);S68=G}G=S68;return G});var XK3;var $NK;var G_j;var bBF;var cJ=function(){return _.a.apply(this,arguments)||this};
_.M(cJ,_.a);
cJ.prototype.onCheckedChanged_=function(){if(this.data){var G=_.Eo(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.wL(this.hostElement,"yt-additional-detail-checkbox-update",[G]):this.data.identifier==="yt-hide-user-checkbox"?_.wL(this.hostElement,"yt-hide-user-checkbox-update",[G]):G&&this.data.enableCommand?_.wL(this.hostElement,"yt-modify-report-form-command",[_.g(this.data.enableCommand,xVc)]):!G&&this.data.disableCommand&&_.wL(this.hostElement,
"yt-modify-report-form-command",[_.g(this.data.enableCommand,xVc)])}};
cJ.prototype.onLabelTap_=function(G){G.target.tagName!="A"&&(_.Eo(this.hostElement).querySelector("#checkbox").checked=!_.Eo(this.hostElement).querySelector("#checkbox").checked)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],cJ.prototype,"data",void 0);_.R([_.g8({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],cJ);
_.J(cJ,"yt-boolean-form-field-v2-renderer",function(){if(bBF===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;G_j===void 0&&(G_j=document.createElement("template"));var h=G_j;I.call(b,h.content.cloneNode(!0),G.content.firstChild);bBF=G}G=bBF;return G});var ki=function(){var G=_.a.apply(this,arguments)||this;G.canShowAdditionalDetailCheckbox=!1;G.canShowCheckbox=!1;G.keepDropdownFocusedAfterSelection=!0;return G};
_.M(ki,_.a);ki.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([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ki.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ki.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],ki.prototype,"canShowAdditionalDetailCheckbox",void 0);_.R([_.H(),_.n("design:type",Object)],ki.prototype,"canShowCheckbox",void 0);_.R([_.H(),_.n("design:type",Object)],ki.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.R([_.g8({is:"yt-report-form-modal-content",disableElementRegistration:!0})],ki);
_.J(ki,"yt-report-form-modal-content",function(){if($NK===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;XK3===void 0&&(XK3=document.createElement("template"));var h=XK3;I.call(b,h.content.cloneNode(!0),G.content.firstChild);$NK=G}G=$NK;return G},{mode:2});var IBf;var h73;var vJ=function(){var G=_.a.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};
_.M(vJ,_.a);_.m=vJ.prototype;_.m.created=function(){this.refitJob=0};
_.m.attached=function(){this.JSC$21245_scroller&&(this.JSC$21245_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21245_scroller.attached&&typeof this.JSC$21245_scroller.attached==="function"&&this.JSC$21245_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.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())};
_.m.onYtPopupOpened=function(){var G=_.Kk();G&&G.getPlayerPromise().then(function(b){b.pauseVideo()})};
_.m.onYtNavigate=function(G){_.g(G.detail.endpoint,_.lQJ)&&(G.stopPropagation(),this.hideReportForm=!0)};
_.m.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.m.onYtServiceRequestCompleted=function(G,b){var I=b.actions;if(I){if(I.length===1&&_.g(I[0],_.$P)){var h;I=((h=_.g(I[0],_.$P))==null?void 0:h.commands)||[]}h=0;for(var q=I.length;h<q;h++)_.g(I[h],_.WB)&&(G.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(I[h]))}if(b.data&&(G=this.get("feedbackResponses",b.data)))for(b=0;b<G.length;b++)if(G[b].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.m.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.m._onDescendantIronResize=function(G){G.stopPropagation();return!1};
_.m.handleReportFormEndpointUpdateAction=function(G){if(G.submitEndpoint){var b=this.command=G.submitEndpoint;b=_.g(b,_.jVe);if(b==null?0:b.additionalDetailCheckboxChecked)b.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()};
_.m.handleConfirmDialogCloseAction=function(G){G.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.m.submitButtonDisabledChanged=function(){var G=this.hostElement.parentElement;G&&G.invalidateTabbables&&G.invalidateTabbables()};
_.m.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()};
_.m.updateDialogStyling=function(){var G,b,I,h,q,l=((q=(G=this.data)==null?void 0:(b=G.optionsSupportedRenderers)==null?void 0:(I=b.optionsRenderer)==null?void 0:(h=I.items)==null?void 0:h.length)!=null?q:0)<=2?0:240;_.G8(this.hostElement,{"--yt-report-form-modal-renderer-min-width":l+"px"})};
_.m.toggleSubmitButton=function(G){this.submitButtonDisabled=!G;this.submitButtonDisabled=G};
_.m.computeSubmitButtonData=function(G,b){var I={};_.g(b,_.lQJ)?I.navigationEndpoint=b:I.command=b||void 0;G&&G.buttonRenderer&&_.Cy.extend(I,G.buttonRenderer);return I};
_.m.computeNextButtonData=function(G,b){var I={};if(!G||!G.buttonRenderer)return I;_.Cy.extend(I,G.buttonRenderer);if(!b)return I;if(_.g(b,_.lQJ))I.navigationEndpoint=LM1(b);else if(I.command=LM1(b),G=_.g(I.command,_.jVe))G.legalCheckboxChecked=!0;return I};
_.m.computeShowNextButton=function(G,b,I){return!!G&&b&&I};
_.m.refit=function(){var G=this;this.refitJob||(this.refitJob=_.uu.addLowPriorityJob(function(){_.O3(G.hostElement,"yt-refit");G.refitJob=0}))};
_.m.handleAdditionalDetailCheckboxUpdateAction=function(G){this.additionalDetailCheckboxChecked=G;_.g(this.command,_.jVe).additionalDetailCheckboxChecked=G};
_.kV.Object.defineProperties(vJ,{template:{configurable:!0,enumerable:!0,get:function(){if(h73===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;IBf===void 0&&(IBf=document.createElement("template"));var h=IBf;I.call(b,h.content.cloneNode(!0),G.content.firstChild);h73=G}G=h73;return G}}});
vJ.prototype.onYtServiceRequestError=vJ.prototype.onYtServiceRequestError;vJ.prototype.onYtServiceRequestCompleted=vJ.prototype.onYtServiceRequestCompleted;vJ.prototype.onYtServiceRequestSent=vJ.prototype.onYtServiceRequestSent;vJ.prototype.onYtNavigate=vJ.prototype.onYtNavigate;vJ.prototype.onYtPopupOpened=vJ.prototype.onYtPopupOpened;_.R([_.z(_.MD.YtOpenPopupBehavior),_.n("design:type",Object)],vJ.prototype,"openPopupBehavior",void 0);
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],vJ.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],vJ.prototype,"eventForwardingBehavior",void 0);_.R([_.z(_.Y6),_.n("design:type",Object)],vJ.prototype,"ironResizableBehavior",void 0);_.R([_.H({observer:"dataChanged"}),_.n("design:type",Object)],vJ.prototype,"data",void 0);
_.R([_.H(),_.n("design:type",Object)],vJ.prototype,"submitting",void 0);_.R([_.H({observer:"submitButtonDisabledChanged"}),_.n("design:type",Object)],vJ.prototype,"submitButtonDisabled",void 0);_.R([_.H(),_.n("design:type",Object)],vJ.prototype,"command",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],vJ.prototype,"hideReportForm",void 0);_.R([_.H(),_.n("design:type",Object)],vJ.prototype,"canShowCheckbox",void 0);
_.R([_.H(),_.n("design:type",Object)],vJ.prototype,"canShowAdditionalDetailCheckbox",void 0);_.R([_.H(),_.n("design:type",Object)],vJ.prototype,"canShowNextButton",void 0);_.R([_.H(),_.n("design:type",Object)],vJ.prototype,"additionalDetailCheckboxChecked",void 0);_.R([_.H(),_.n("design:type",Object)],vJ.prototype,"refitJob",void 0);_.R([_.H(),_.n("design:type",Object)],vJ.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.R([_.lH("#scroller"),_.n("design:type",Object)],vJ.prototype,"JSC$21245_scroller",void 0);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],vJ.prototype,"onYtPopupOpened",null);_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],vJ.prototype,"onYtNavigate",null);
_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],vJ.prototype,"onYtServiceRequestSent",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],vJ.prototype,"onYtServiceRequestCompleted",null);
_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],vJ.prototype,"onYtServiceRequestError",null);_.R([_.g8({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],vJ);var q7a;var jtf;var Lj=function(){return _.a.apply(this,arguments)||this};
_.M(Lj,_.a);_.m=Lj.prototype;_.m.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.m.onVisible=function(){var G,b;(b=_.LL().resolve(_.vf(_.c9)))==null||b.enqueue({label:_.NO((G=this.data)==null?void 0:G.messageTitle),elementToFocus:this.hostElement})};
_.m.onThumbnailLoaded=function(){_.O3(this.hostElement,"yt-refit")};
_.m.onDismissTap=function(){_.wL(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.m.computeAlternateIcon=function(G){return G?G==="BACKSTAGE_ARTWORK"?"backstage:artwork":G:null};
_.m.computeFontFamily=function(G){return G==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.m.computeBackgroundStyle=function(G,b){if(G=this.computeBackgroundImage(G,b))if(G=_.u$(G.thumbnails))return'background-image: url("'+G+'");'};
_.m.computeHasFullHeightImage=function(G){return!(!(G&&G.thumbnails&&G.thumbnails.length>0)||this.modern)};
_.m.isModernStyle=function(G){return G.style==="STYLE_MODERN"};
_.m.computeIcon=function(G,b){if(G&&G.icon)return b?G.iconDark:G.icon};
_.m.computeBackgroundImage=function(G,b){if(G&&G.backgroundImage)return b?G.backgroundImageDark:G.backgroundImage};
_.m.computeLogo=function(G,b){if(G&&G.logo)return b?G.logoDark:G.logo};
_.m.computeShouldShowModernIcon=function(G,b){return G&&!!b};
_.m.getLogoContainerClassName=function(G){return this.logoWithPadding(G)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.m.getLogoImageId=function(G){return this.logoWithPadding(G)?"mealbar-logo-with-padding":"mealbar-logo"};
_.m.logoWithPadding=function(G){var b,I,h;return(G=(b=this.computeLogo(G,this.isDarkTheme))==null?void 0:(I=b.thumbnails)==null?void 0:(h=I[0])==null?void 0:h.height)&&G%31===0?!0:!1};
Lj.prototype.onThumbnailLoaded=Lj.prototype.onThumbnailLoaded;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.R([_.H({}),_.n("design:type",Object)],Lj.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.n("design:type",Boolean)],Lj.prototype,"modern",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],Lj.prototype,"isDarkTheme",void 0);
_.R([_.H({computed:"computeIcon(data, isDarkTheme)"}),_.n("design:type",Object)],Lj.prototype,"icon",void 0);_.R([_.H({computed:"computeLogo(data, isDarkTheme)"}),_.n("design:type",Object)],Lj.prototype,"logo",void 0);_.R([_.H({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.n("design:type",Object)],Lj.prototype,"backgroundStyle",void 0);_.R([_.H({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.n("design:type",Object)],Lj.prototype,"alternateIcon",void 0);
_.R([_.H({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.n("design:type",Boolean)],Lj.prototype,"hasFullHeightImage",void 0);_.R([_.H({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.n("design:type",Boolean)],Lj.prototype,"useYoutubeSans",void 0);_.R([_.H({computed:"computeShouldShowModernIcon(modern, icon)"}),_.n("design:type",Boolean)],Lj.prototype,"shouldShowModernIcon",void 0);
_.R([_.hI("yt-img-shadow-loaded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Lj.prototype,"onThumbnailLoaded",null);_.R([_.g8({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Lj);
_.J(Lj,"yt-mealbar-promo-renderer",function(){if(jtf===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;q7a===void 0&&(q7a=document.createElement("template"));var h=q7a;I.call(b,h.content.cloneNode(!0),G.content.firstChild);jtf=G}G=jtf;return G},{mode:2});var lBj;var mNj;var Q_=function(){return _.a.apply(this,arguments)||this};
_.M(Q_,_.a);_.m=Q_.prototype;_.m.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]]"}}}}}};
_.m.computeHasButtons_=function(G){return!(!G.dismissButton&&!G.acceptButton)};
_.m.computeStyle_=function(G){return G||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.m.observeImpressionEndpoints_=function(){var G=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;_.pv(G.hostElement,[b])})};
_.m.onTap_=function(){_.wL(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Q_.prototype.observeImpressionEndpoints_=Q_.prototype.observeImpressionEndpoints_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],Q_.prototype,"ytEventForwardingBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Q_.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],Q_.prototype,"positionType",void 0);_.R([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.n("design:type",Boolean)],Q_.prototype,"hasButtons_",void 0);_.R([_.H({value:function(){return this.onTap_.bind(this)}}),
_.n("design:type",Function)],Q_.prototype,"boundOnTap_",void 0);_.R([_.H({value:{style:"mono-inverse"}}),_.n("design:type",Object)],Q_.prototype,"buttonOverride",void 0);_.R([_.q5("data.promoConfig.impressionEndpoints"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],Q_.prototype,"observeImpressionEndpoints_",null);_.R([_.g8({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Q_);
_.J(Q_,"yt-tooltip-renderer",function(){if(mNj===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;lBj===void 0&&(lBj=document.createElement("template"));var h=lBj;I.call(b,h.content.cloneNode(!0),G.content.firstChild);mNj=G}G=mNj;return G},{mode:2});var e7a;var Vp5;var DNY={},cma=(DNY.WEB_REMIX="music.youtube.com",DNY),xi=function(){var G=_.a.apply(this,arguments)||this;G.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return G};
_.M(xi,_.a);_.m=xi.prototype;_.m.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.created=function(){this.embedHost_=cma[_.wy("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.m.ready=function(){_.Eo(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.m.computeEmbedCode_=function(G,b,I,h,q){if(!G)return"";var l=G.videoId,V=G.fullListId,D=[];G.attributionId&&D.push("si="+G.attributionId);h||D.push("controls=0");I&&Number(b)>0&&D.push("start="+b);V&&(l="videoseries",D.push("list="+V));I="https://"+(q?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+l;G.clipId&&(D.push("clip="+G.clipId),D.push("clipt="+G.clipTiming));b=D.length>0?I+"?"+D.join("&amp;"):I;G.encryptedEmbedConfig&&D.push("embed_config="+JSON.stringify({enc:G.encryptedEmbedConfig}));
D=D.length>0?I+"?"+D.join("&amp;"):I;_.U("web_sharing_embed_preview_killswitch")?_.Eo(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(D,G.previewWidth||854,G.previewHeight||480):(_.yN(this.videoPreviewContainer),_.Eo(this.videoPreviewContainer).appendChild(this.buildIframeElement(D)));return this.getEmbedCode_(b,G.width||560,G.height||315)};
_.m.buildIframeElement=function(G){var b=document.createElement("iframe"),I,h;b.width=""+((h=(I=this.data)==null?void 0:I.previewWidth)!=null?h:854);var q,l;b.height=""+((l=(q=this.data)==null?void 0:q.previewHeight)!=null?l:480);_.Gf(b,2,G);b.title="YouTube video player";b.frameBorder="0";b.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";b.referrerPolicy="strict-origin-when-cross-origin";b.allowFullscreen=!0;return b};
_.m.computeIsSquareAspectRatio_=function(G){return G.previewHeight&&G.previewWidth?G.previewHeight==G.previewWidth:!1};
_.m.computeShowEmbedOptions_=function(G){return!!G.enablePrivacyModeOptionLabel||!!G.showPlayerControlsOptionLabel};
_.m.getEmbedCode_=function(G,b,I){return'<iframe width="'+b+'" 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>'};
_.m.handleSignalActionCopyShareEmbedUrl_=function(){_.Eo(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.m.handleSetTimestamp_=function(G){this.startAtTimeStamp_=(this.startAtChecked_=G.isSet)?G.timestamp:0};
_.m.closePanel_=function(){_.wL(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.m.onEmbedCode_=function(){_.Eo(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.m.onYtPopupClosed_=function(){_.yN(_.Eo(this.hostElement).querySelector("#video-preview"))};
_.m.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.g(this.data.actionButtons[0],_.bz)&&this.ytRendererBehavior.logExplicitClick(_.g(this.data.actionButtons[0],_.bz))};
xi.prototype.onYtPopupClosed_=xi.prototype.onYtPopupClosed_;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],xi.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],xi.prototype,"data",void 0);
_.R([_.H({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.n("design:type",String)],xi.prototype,"embedCode_",void 0);_.R([_.H({value:!0}),_.n("design:type",Boolean)],xi.prototype,"isPlayerControlsOptionChecked_",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],xi.prototype,"isPrivacyModeOptionChecked_",void 0);_.R([_.H({value:!1,notify:!0}),_.n("design:type",Boolean)],xi.prototype,"startAtChecked_",void 0);
_.R([_.H({value:0}),_.n("design:type",Number)],xi.prototype,"startAtTimeStamp_",void 0);_.R([_.H({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],xi.prototype,"isSquareAspectRatio_",void 0);_.R([_.lH("#video-preview"),_.n("design:type",HTMLElement)],xi.prototype,"videoPreviewContainer",void 0);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],xi.prototype,"onYtPopupClosed_",null);
_.R([_.g8({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],xi);
_.J(xi,"yt-sharing-embed-renderer",function(){if(Vp5===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;e7a===void 0&&(e7a=document.createElement("template"));var h=e7a;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Vp5=G}G=Vp5;return G},{mode:2});var k_c={};
k_c.YtUnlimitedFamilyInterstitialBehavior=[_.MD.YtOpenPopupBehavior,_.tV.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=_.NVe(_.a_(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 b={openPopupAction:{popupType:"DIALOG",popup:{}}};b.openPopupAction.popup[G.renderer]=G.data;this.showingPreviousDialog_=!0;this.openPopup(b)}},
handleOpenPopupAction_:function(G){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var b=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(h){return!!G.openPopupAction.popup[h]}),I=this.getElementName_();
b&&this.data&&(this.pushToHistory({renderer:I,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(G){if(G=_.g(G,uF3))this.loading=!0,_.wL(this.hostElement,"yt-open-create-family-dialog",[G,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var G=this.hostElement.nodeName.split("-").slice(1).map(function(b){return""+b[0].toUpperCase()+b.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 vC9;var LR3;var fj=function(){return _.a.apply(this,arguments)||this};
_.M(fj,_.a);_.m=fj.prototype;_.m.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}}}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.wL(this.hostElement,"yt-register-create-family-dialog");_.Eo(this.hostElement).querySelector("#thumbnail").onShow()};
_.m.fireOnCloseCommand_=function(){var G;((G=this.data)==null?0:G.onCloseCommand)&&_.Su(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.m.onYtServiceRequestSent_=function(G,b){b&&b.endpoint&&_.g(b.endpoint,_.b9)||(this.loading=!0)};
_.m.onYtServiceRequestCompleted_=function(){var G=this.hostElement.parentElement;G.close&&G.close();this.loading=!1};
_.m.openPopupHandler_=function(G){if(G.detail==this){var b;((b=this.data)==null?0:b.onOpenCommands)&&_.Su(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.m.closePopupHandler_=function(G,b){this.fireOnCloseCommand_();if(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1){var I;((I=this.data)==null?0:I.onDismissCommands)&&_.Su(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.m.dataChanged_=function(){this.loading=!1};
fj.prototype.dataChanged_=fj.prototype.dataChanged_;fj.prototype.closePopupHandler_=fj.prototype.closePopupHandler_;fj.prototype.openPopupHandler_=fj.prototype.openPopupHandler_;fj.prototype.onYtServiceRequestCompleted_=fj.prototype.onYtServiceRequestCompleted_;fj.prototype.onYtServiceRequestSent_=fj.prototype.onYtServiceRequestSent_;_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],fj.prototype,"ytEventForwardingBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],fj.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(k_c.YtUnlimitedFamilyInterstitialBehavior),_.n("design:type",Object)],fj.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],fj.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],fj.prototype,"loading",void 0);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],fj.prototype,"onYtServiceRequestSent_",null);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],fj.prototype,"onYtServiceRequestCompleted_",null);
_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],fj.prototype,"openPopupHandler_",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],fj.prototype,"closePopupHandler_",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],fj.prototype,"dataChanged_",null);
_.R([_.g8({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],fj);
_.J(fj,"yt-unlimited-family-message-interstitial-renderer",function(){if(LR3===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;vC9===void 0&&(vC9=document.createElement("template"));var h=vC9;I.call(b,h.content.cloneNode(!0),G.content.firstChild);LR3=G}G=LR3;return G},{mode:2});var Qta;var xND;var Tz=function(){return _.a.apply(this,arguments)||this};
_.M(Tz,_.a);Tz.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"}}}};
Tz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Eo(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(G){G.onShow()});
_.Eo(this.hostElement).querySelector("#main-thumbnail").onShow()};
Tz.prototype.onButtonTap_=function(G){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(G)};
Tz.prototype.computeMainThumbnailWidth_=function(G){return G&&G.length!==0?72:96};
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.R([_.z(k_c.YtUnlimitedFamilyInterstitialBehavior),_.n("design:type",Object)],Tz.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],Tz.prototype,"data",void 0);
_.R([_.H({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.n("design:type",Number)],Tz.prototype,"mainThumbnailWidth_",void 0);_.R([_.H({value:function(){return this.onButtonTap_.bind(this)}}),
_.n("design:type",Function)],Tz.prototype,"boundButtonTap_",void 0);_.R([_.g8({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Tz);
_.J(Tz,"yt-unlimited-family-profile-interstitial-renderer",function(){if(xND===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Qta===void 0&&(Qta=document.createElement("template"));var h=Qta;I.call(b,h.content.cloneNode(!0),G.content.firstChild);xND=G}G=xND;return G},{mode:2});var fB8;var Tf5;var BJ=function(){var G=_.a.apply(this,arguments)||this;G.sliderAriaValueText_=null;G.selectedIndex_=0;G.messages={PAUSE_SLIDER:_.qP("PAUSE_SLIDER",void 0,"Pause Duration")};return G};
_.M(BJ,_.a);_.m=BJ.prototype;_.m.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_]]"}}}}}};
_.m.onPopupOpened_=function(G){G.detail==this&&_.U("enable_premium_voluntary_pause")&&(_.wL(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.m.setDialogData=function(G){this.data=G;this.resetSlider_()};
_.m.dataChanged_=function(){this.data&&this.resetSlider_()};
_.m.onSubmitTap_=function(){if(this.data.confirmCommand){var G=this.data.confirmCommand;_.g(G,_.e68)&&_.pv(this.hostElement,[G,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.m.onExitButtonTap_=function(){_.wL(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.m.closePopupHandler_=function(G,b){(b&&b.canceled===!0||b.canceled===!1&&b.confirmed===!1)&&this.handleOnDismissCommands_()};
_.m.onSliderChange_=function(){this.selectedIndex_=_.Eo(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.m.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.m.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.m.resetSlider_=function(){if(this.data){var G=this.data.defaultEndOptionIndex||0,b=_.Eo(this.hostElement).querySelector("#id-pause-slider");if(b.immediateValue<G)for(;b.immediateValue!=G;)b.increment();else if(G<b.immediateValue)for(;b.immediateValue!=G;)b.decrement();this.selectedIndex_=G;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.m.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Su(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.m.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Su(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.m.onYtServiceRequestSent=function(){this.loading=!0};
_.m.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
BJ.prototype.onYtServiceRequestCompleted=BJ.prototype.onYtServiceRequestCompleted;BJ.prototype.onYtServiceRequestSent=BJ.prototype.onYtServiceRequestSent;BJ.prototype.closePopupHandler_=BJ.prototype.closePopupHandler_;BJ.prototype.dataChanged_=BJ.prototype.dataChanged_;BJ.prototype.onPopupOpened_=BJ.prototype.onPopupOpened_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],BJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],BJ.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],BJ.prototype,"loading",void 0);_.R([_.H(),_.n("design:type",Number)],BJ.prototype,"selectIndexMax_",void 0);_.R([_.H(),_.n("design:type",Object)],BJ.prototype,"selectedData_",void 0);
_.R([_.H(),_.n("design:type",Object)],BJ.prototype,"sliderAriaValueText_",void 0);_.R([_.H({value:function(){return this.onSubmitTap_.bind(this)}}),
_.n("design:type",Function)],BJ.prototype,"onButtonTap_",void 0);_.R([_.H({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.n("design:type",Function)],BJ.prototype,"onSecondaryTap_",void 0);_.R([_.H(),_.n("design:type",Object)],BJ.prototype,"messages",void 0);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],BJ.prototype,"onPopupOpened_",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],BJ.prototype,"dataChanged_",null);
_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],BJ.prototype,"closePopupHandler_",null);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],BJ.prototype,"onYtServiceRequestSent",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],BJ.prototype,"onYtServiceRequestCompleted",null);_.R([_.g8({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],BJ);
_.J(BJ,"yt-unplugged-pause-membership-dialog-renderer",function(){if(Tf5===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;fB8===void 0&&(fB8=document.createElement("template"));var h=fB8;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Tf5=G}G=Tf5;return G},{mode:2});var Bf3;var UNW;var UI=function(){return _.a.apply(this,arguments)||this};
_.M(UI,_.a);UI.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.xo("vcBalanceRenderer")}}};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],UI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],UI.prototype,"data",void 0);_.R([_.g8({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],UI);
_.J(UI,"yt-vc-offer-layout-header-renderer",function(){if(UNW===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Bf3===void 0&&(Bf3=document.createElement("template"));var h=Bf3;I.call(b,h.content.cloneNode(!0),G.content.firstChild);UNW=G}G=UNW;return G},{mode:2});var stF;var gCc;var AmD;var Mp5;var sI=function(){return _.a.apply(this,arguments)||this};
_.M(sI,_.a);sI.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.kV.Object.defineProperties(sI.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.PnY.YtTappableItemBehavior),_.n("design:type",Object)],sI.prototype,"ytTappableItemBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],sI.prototype,"data",void 0);
_.R([_.H({reflectToAttribute:!0}),_.P("data.accessibilityText"),_.n("design:type",String),_.n("design:paramtypes",[])],sI.prototype,"ariaLabel",null);_.R([_.H({reflectToAttribute:!0}),_.P("data.style"),_.n("design:type",String),_.n("design:paramtypes",[])],sI.prototype,"vcOfferStyle",null);_.R([_.P("data.style","data.titleText"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],sI.prototype,"showTitleText",null);_.R([_.g8({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],sI);
_.J(sI,"yt-vc-offer-renderer",function(){if(Mp5===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;AmD===void 0&&(AmD=document.createElement("template"));var h=AmD;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Mp5=G}G=Mp5;return G},{mode:2});var gG=function(){return _.a.apply(this,arguments)||this};
_.M(gG,_.a);gG.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],gG.prototype,"data",void 0);_.R([_.g8({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],gG);
_.J(gG,"yt-vc-offer-layout-renderer",function(){if(gCc===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;stF===void 0&&(stF=document.createElement("template"));var h=stF;I.call(b,h.content.cloneNode(!0),G.content.firstChild);gCc=G}G=gCc;return G},{mode:2});var ZBK;var tpa;var z78;var oC3;var AG=function(){return _.a.apply(this,arguments)||this};
_.M(AG,_.a);AG.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([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],AG.prototype,"data",void 0);_.R([_.g8({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],AG);
_.J(AG,"yt-ypc-offers-modal-top-bar-renderer",function(){if(oC3===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;z78===void 0&&(z78=document.createElement("template"));var h=z78;I.call(b,h.content.cloneNode(!0),G.content.firstChild);oC3=G}G=oC3;return G},{mode:2});var Mp=function(){return _.a.apply(this,arguments)||this};
_.M(Mp,_.a);Mp.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"}}}}};
Mp.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Mp.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var G=this.scrollable;G.attached&&typeof G.attached==="function"&&G.attached()};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.R([_.lH("#scrollable"),_.n("design:type",Object)],Mp.prototype,"scrollable",void 0);_.R([_.H(),_.n("design:type",Object)],Mp.prototype,"data",void 0);_.R([_.g8({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Mp);
_.J(Mp,"yt-ypc-offers-modal-renderer",function(){if(tpa===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;ZBK===void 0&&(ZBK=document.createElement("template"));var h=ZBK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);tpa=G}G=tpa;return G},{mode:2});var iB9;var PwF;var ZS=function(){return _.a.apply(this,arguments)||this};
_.M(ZS,_.a);_.m=ZS.prototype;_.m.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}}}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Eo(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.m.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.wL(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.m.onYtPopupOpened_=function(G,b){(b==null?void 0:b.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Su(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.m.onYtPopupClosed_=function(G,b){this.continueButtonTapped||b&&(b.canceled===!0||b.canceled===!1&&b.confirmed===!1)&&this.data.onDismissCommands&&_.Su(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.m.onYtServiceRequestError_=function(G){this.set("showSpinner",!1);_.yX(this.hostElement,G.detail.error.message)};
_.m.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.U("enable_ypc_spinners")?_.wL(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
ZS.prototype.onYtServiceRequestError_=ZS.prototype.onYtServiceRequestError_;ZS.prototype.onYtPopupClosed_=ZS.prototype.onYtPopupClosed_;ZS.prototype.onYtPopupOpened_=ZS.prototype.onYtPopupOpened_;ZS.prototype.onYtServiceRequestCompleted_=ZS.prototype.onYtServiceRequestCompleted_;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);
_.R([_.H(),_.n("design:type",Object)],ZS.prototype,"data",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],ZS.prototype,"showSpinner",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],ZS.prototype,"continueButtonTapped",void 0);_.R([_.H({value:function(){return this.onContinueTapped_.bind(this)}}),
_.n("design:type",Function)],ZS.prototype,"bindOnContinueTapped_",void 0);_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ZS.prototype,"onYtServiceRequestCompleted_",null);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],ZS.prototype,"onYtPopupOpened_",null);
_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],ZS.prototype,"onYtPopupClosed_",null);_.R([_.hI("yt-service-request-error"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],ZS.prototype,"onYtServiceRequestError_",null);_.R([_.g8({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],ZS);
_.J(ZS,"yt-ypc-upgrade-dialog-renderer",function(){if(PwF===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;iB9===void 0&&(iB9=document.createElement("template"));var h=iB9;I.call(b,h.content.cloneNode(!0),G.content.firstChild);PwF=G}G=PwF;return G},{mode:2});var dNW;var ymf;var tG=function(){return _.a.apply(this,arguments)||this};
_.M(tG,_.a);tG.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
tG.prototype.computeHasButtons_=function(G){return!(!G.dismissButton&&!G.confirmButton)};
tG.prototype.computeStyle_=function(G){return G||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],tG.prototype,"ytEventForwardingBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],tG.prototype,"data",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],tG.prototype,"positionType",void 0);
_.R([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.n("design:type",Boolean)],tG.prototype,"hasButtons_",void 0);_.R([_.H({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.n("design:type",Boolean)],tG.prototype,"style_",void 0);_.R([_.g8({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],tG);
_.J(tG,"yt-bubble-hint-renderer",function(){if(ymf===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;dNW===void 0&&(dNW=document.createElement("template"));var h=dNW;I.call(b,h.content.cloneNode(!0),G.content.firstChild);ymf=G}G=ymf;return G},{mode:2});var rme;var FRf;var zz=function(){var G=_.vh.apply(this,arguments)||this;G.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return G};
_.M(zz,_.vh);_.m=zz.prototype;_.m.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.m.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()})};
_.m.handleCheckBoxUpdateAction_=function(G){this.canShowCheckboxEnabledConfirmButton=G};
_.m.computeUseOverlayForSpinner_=function(G,b){return!!G&&b};
_.m.computeShowSpinner_=function(G,b){return G||!!b};
_.m.fireOnCloseActions_=function(){var G,b=_.e(((G=this.data)==null?void 0:G.onClosedActions)||[]);for(G=b.next();!G.done;G=b.next())this.ytRendererBehavior.resolveCommand(G.value)};
_.m.fireOnOpenCommands_=function(G){var b,I=(b=this.data)==null?void 0:b.onOpenCommands;if(I)for(G.stopImmediatePropagation(),G=_.e(I),b=G.next();!b.done;b=G.next())this.ytRendererBehavior.resolveCommand(b.value)};
_.m.fireOnDismissCommands_=function(G){var b,I=(b=this.data)==null?void 0:b.onDismissCommands;if(I)for(G.stopImmediatePropagation(),G=_.e(I),b=G.next();!b.done;b=G.next())this.ytRendererBehavior.resolveCommand(b.value)};
_.m.openPopupHandler_=function(G){G.detail==this&&this.fireOnOpenCommands_(G)};
_.m.closePopupHandler_=function(G,b){_.E3(this,"yt-confirm-dialog-close-action",[b]);this.fireOnCloseActions_();(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1)&&this.fireOnDismissCommands_(G)};
_.m.onHeaderImageChanged_=function(){var G;((G=this.data)==null?0:G.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.m.computeHasHeaderImageWidth_=function(G){return G!=void 0};
_.m.computeHasLoadingMessage=function(G){return!!G};
_.m.onHeaderImageWidthChanged_=function(){var G,b=(G=this.data)==null?void 0:G.headerImageWidth;if(b){if(G=1.25*b*2+b,this.$.main.style.width=G+"px",b=this.$.scroller.firstElementChild)b.style.minWidth=G+"px"}else this.$.main.style.width="100%"};
_.m.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")};
_.m.onYtNavigate_=function(G){G=_.a_(G);G instanceof Node&&_.pX(this.$["confirm-button"]).contains(G)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.m.computePrimaryIsCancel_=function(G){return G};
_.m.computeIsCancelButtonHidden_=function(G){return G.skipCancelButton||!G.cancelButton};
_.m.computeIsCheckboxHidden_=function(G){return!G.checkbox};
_.m.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.m.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.m.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};
_.kV.Object.defineProperties(zz,{template:{configurable:!0,enumerable:!0,get:function(){if(FRf===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;rme===void 0&&(rme=document.createElement("template"));var h=rme;I.call(b,h.content.cloneNode(!0),G.content.firstChild);FRf=G}G=FRf;return G}}});
zz.prototype.onYtServiceRequestCompleted_=zz.prototype.onYtServiceRequestCompleted_;zz.prototype.onYtServiceRequestSent_=zz.prototype.onYtServiceRequestSent_;zz.prototype.onThumbnailLoaded_=zz.prototype.onThumbnailLoaded_;zz.prototype.onYtNavigate_=zz.prototype.onYtNavigate_;zz.prototype.onThumbnailChanged_=zz.prototype.onThumbnailChanged_;zz.prototype.onHeaderImageWidthChanged_=zz.prototype.onHeaderImageWidthChanged_;zz.prototype.onHeaderImageChanged_=zz.prototype.onHeaderImageChanged_;
zz.prototype.closePopupHandler_=zz.prototype.closePopupHandler_;zz.prototype.openPopupHandler_=zz.prototype.openPopupHandler_;_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],zz.prototype,"ytActionHandlerBehavior",void 0);_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],zz.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);
_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],zz.prototype,"ytEventForwardingBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],zz.prototype,"data",void 0);_.R([_.H({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.n("design:type",Boolean)],zz.prototype,"primaryIsCancel",void 0);_.R([_.H({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.n("design:type",Boolean)],zz.prototype,"isCancelButtonHidden",void 0);
_.R([_.H({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.n("design:type",Boolean)],zz.prototype,"isCheckboxHidden",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],zz.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.R([_.H({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.n("design:type",Boolean)],zz.prototype,"useOverlayForSpinner_",void 0);
_.R([_.H({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.n("design:type",Boolean)],zz.prototype,"showSpinner_",void 0);_.R([_.H({value:!1}),_.n("design:type",Boolean)],zz.prototype,"isActionInProgress_",void 0);_.R([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.n("design:type",Boolean)],zz.prototype,"hasHeaderImageWidth_",void 0);
_.R([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.n("design:type",Boolean)],zz.prototype,"hasLoadingMessage",void 0);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],zz.prototype,"openPopupHandler_",null);_.R([_.hI("yt-popup-closed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],zz.prototype,"closePopupHandler_",null);
_.R([_.q5("data.headerImage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zz.prototype,"onHeaderImageChanged_",null);_.R([_.q5("data.headerImageWidth"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zz.prototype,"onHeaderImageWidthChanged_",null);_.R([_.q5("data.thumbnail"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zz.prototype,"onThumbnailChanged_",null);
_.R([_.hI("yt-navigate"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],zz.prototype,"onYtNavigate_",null);_.R([_.hI("yt-img-shadow-loaded"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],zz.prototype,"onThumbnailLoaded_",null);_.R([_.hI("yt-service-request-sent"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.zB]),_.n("design:returntype")],zz.prototype,"onYtServiceRequestSent_",null);
_.R([_.hI("yt-service-request-completed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,_.WN]),_.n("design:returntype")],zz.prototype,"onYtServiceRequestCompleted_",null);_.R([_.g8({is:"yt-confirm-dialog-renderer",noInjection:!0})],zz);var HB1;var WRF;var ox=function(){return _.a.apply(this,arguments)||this};
_.M(ox,_.a);ox.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Eo(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
ox.prototype.computeConfirmButton_=function(G){var b={text:G.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};G.confirmNavigationEndpoint?b.navigationEndpoint=G.confirmNavigationEndpoint:G.confirmServiceEndpoint&&(b.serviceEndpoint=G.confirmServiceEndpoint);return b};
ox.prototype.computeShowTitle_=function(G){return!(G==null||!G.title)};
_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],ox.prototype,"data",void 0);_.R([_.H({computed:"computeShowTitle_(data)"}),_.n("design:type",Boolean)],ox.prototype,"showTitle",void 0);_.R([_.g8({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],ox);
_.J(ox,"yt-fancy-dismissible-dialog-renderer",function(){if(WRF===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;HB1===void 0&&(HB1=document.createElement("template"));var h=HB1;I.call(b,h.content.cloneNode(!0),G.content.firstChild);WRF=G}G=WRF;return G});var aB9;var Nfc;var iZ=function(){var G=_.a.apply(this,arguments)||this;G.spinnerActive=!1;return G};
_.M(iZ,_.a);iZ.prototype.created=function(){FX3(2201)};
iZ.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
iZ.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
iZ.prototype.onIronOverlayClosed=iZ.prototype.onIronOverlayClosed;iZ.prototype.onIronOverlayOpened=iZ.prototype.onIronOverlayOpened;_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.IV),_.n("design:type",Object)],iZ.prototype,"tpYtIronOverlayBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],iZ.prototype,"data",void 0);_.R([_.H(),_.n("design:type",Object)],iZ.prototype,"spinnerActive",void 0);
_.R([_.hI("iron-overlay-opened"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iZ.prototype,"onIronOverlayOpened",null);_.R([_.hI("iron-overlay-closed"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],iZ.prototype,"onIronOverlayClosed",null);_.R([_.g8({is:"yt-loading-renderer",disableElementRegistration:!0})],iZ);
_.J(iZ,"yt-loading-renderer",function(){if(Nfc===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;aB9===void 0&&(aB9=document.createElement("template"));var h=aB9;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Nfc=G}G=Nfc;return G},{mode:2});var Y7f;var Cw8;var PJ=function(){var G=_.a.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};
_.M(PJ,_.a);_.m=PJ.prototype;_.m.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.m.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.m.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.m.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.m.openPopupHandler_=function(G){G.detail===this.hostElement&&this.hostElement.hidden&&_.wL(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.m.onDismissButtonTap_=function(){var G;this.closeOnDismissButton_.has(((G=this.data)==null?void 0:G.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.wL(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.m.onAcceptButtonTap_=function(){var G;this.closeOnAcceptButton_.has(((G=this.data)==null?void 0:G.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.wL(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.m.computeHasHeader_=function(G){return!!G.headerBackgroundImage};
_.m.computeLayoutStyle_=function(G){return G};
_.m.computePopupSize_=function(G){return G};
_.m.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:""};
_.m.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")};
_.m.computeHasCustomLogo=function(G){return!(G==null||!G.headerForegroundImage)};
_.m.computeCustomLogo=function(G,b){if(G!=null&&G.headerForegroundImage)return G.headerForegroundImageDark?b?G.headerForegroundImageDark:G.headerForegroundImage:G.headerForegroundImage};
_.m.computeHeaderBackgroundImage=function(G,b){if(G!=null&&G.headerBackgroundImage)return b&&(G==null?0:G.headerBackgroundImageDark)?G.headerBackgroundImageDark:G.headerBackgroundImage};
_.m.shouldShowIconContainer=function(G,b){return G&&!b};
_.m.shouldShowNonYouTubeIcon=function(G,b){return!G&&!b};
_.m.getLogoImageId=function(G){var b,I,h;return(G=(b=this.computeCustomLogo(G,this.isDarkTheme))==null?void 0:(I=b.thumbnails)==null?void 0:(h=I[0])==null?void 0:h.height)&&G%31===0?"custom-logo-with-padding":"custom-logo"};
PJ.prototype.openPopupHandler_=PJ.prototype.openPopupHandler_;PJ.prototype.dataChanged_=PJ.prototype.dataChanged_;_.R([_.z(_.kK.YtRendererstamperBehavior),_.n("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.R([_.H(),_.n("design:type",Boolean)],PJ.prototype,"isDarkTheme",void 0);
_.R([_.H({computed:"computeCustomLogo(data, isDarkTheme)"}),_.n("design:type",Object)],PJ.prototype,"customLogo",void 0);_.R([_.H({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.n("design:type",Object)],PJ.prototype,"headerBackgroundImage",void 0);_.R([_.H(),_.n("design:type",Object)],PJ.prototype,"data",void 0);_.R([_.H({computed:"computeHasHeader_(data)"}),_.n("design:type",Boolean)],PJ.prototype,"hasHeader",void 0);
_.R([_.H({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.n("design:type",Object)],PJ.prototype,"layoutStyle",void 0);_.R([_.H({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.n("design:type",Object)],PJ.prototype,"popupSize",void 0);_.R([_.H({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],PJ.prototype,"hasLogo",void 0);
_.R([_.H({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.n("design:type",Boolean)],PJ.prototype,"hasCustomLogo",void 0);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],PJ.prototype,"dataChanged_",null);_.R([_.hI("yt-popup-opened"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],PJ.prototype,"openPopupHandler_",null);
_.R([_.g8({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],PJ);
_.J(PJ,"yt-upsell-dialog-renderer",function(){if(Cw8===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;Y7f===void 0&&(Y7f=document.createElement("template"));var h=Y7f;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Cw8=G}G=Cw8;return G},{mode:2});var JmF=_.C(function(G){return _.v("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.v(_.Q,{cond:G.title,then:function(b){return _.v("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},b)}}))},"tj"),KR5=_.C(function(G){return _.v("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.v(_.VX,{data:G.closeButton},{buttonViewModel:function(b){return _.v("div",null,_.v(_.sQ,{data:b.data}))}}))},"uj"),uL3=_.C(function(G){var b=G.data;
return _.v(_.xz,null,_.v("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.v("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.v(_.Q,{cond:function(){return!!b().image&&!!b().title},
then:function(){return _.v(_.Fu,{data:function(){return b().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.v("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.v(_.Q,{cond:function(){return b().title},
then:function(I){return _.v("h3",{class:"miniAppGameInfoDialogViewModelTitle"},I)}}),_.v(_.Q,{cond:function(){return b().primaryGenre},
then:function(I){return _.v("span",{class:"miniAppGameInfoDialogViewModelGenre"},I)}}))),_.v(_.Q,{cond:function(){var I=b().description;
return I&&I.length<=150},
then:function(){return _.v("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.v("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return b().description}))}}))},"vj"),R78=_.C(function(G){G=G.infoRows;
var b=_.LL().resolve(_.DT),I=_.U("enable_displaying_ppn");return _.v("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.v(_.aj,{each:G},function(h){return _.v("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.v(_.Q,{cond:function(){return h.label},
then:function(q){return _.v("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},q)}}),_.v(_.Q,{cond:function(){return h.attributedLabel},
then:function(q){return _.v("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.v(_.IS,{text:q,noPreWrap:!0}))}}),_.v(_.Q,{cond:function(){return h.value},
then:function(q){return _.v("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},q)}}),_.v(_.Q,{cond:function(){return h.attributedValue},
then:function(q){return _.v("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.v(_.IS,{text:q,noPreWrap:!0}))}}))}),_.v(_.Q,{cond:function(){return I&&b.clientData.has("post_play_nonce")},
then:function(){return _.v("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.v("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.v("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},b.getData("post_play_nonce")))}}))},"wj"),nC1=_.C(function(G){var b=G.data;
return _.v("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.v(JmF,{title:function(){return b().dialogTitle}}),_.v(uL3,{data:b}),_.v(_.Q,{cond:function(){return b().infoRow},
then:function(I){return _.v(R78,{infoRows:I})}}),_.v(KR5,{closeButton:function(){return b().closeButton}}))},"xj");
nC1.idomCompat=!0;_.JN(nC1,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;return _.v("yt-gulp-triggering-dialog-view-model",{class:_.pG("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.v(_.Fu,{data:function(){return b().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.v("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.v("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.v("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.v(_.IS,{text:function(){return b().title}})),_.v(_.Q,{cond:function(){return b().bodyText},
then:function(I){return _.v(_.aj,{each:I},function(h){return _.v("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.v(_.IS,{text:h}))})}})),_.v("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.v(_.VX,{data:function(){return b().dismissButton}},{buttonViewModel:function(I){return _.v("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.v(_.sQ,{data:I.data}))}}),_.v(_.VX,{data:function(){return b().actionButton}},{buttonViewModel:function(I){return _.v("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.v(_.sQ,{data:I.data}))}}))))},"yj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.hV}});var OBe=_.C(function(G){var b=G.data;G=_.a9(function(){return b().agreements},[]);
return _.v("installment-agreements-view-model",{class:_.pG("ytInstallmentAgreementsViewModelHost")},_.v(_.aj,{each:G},function(I){return _.v("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.v("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.v(_.IS,{text:I.label})),_.v("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.v(_.VX,{data:function(){return I.openButton}},{buttonViewModel:_.sQ})))}))},"zj");
OBe.idomCompat=!0;var w9K=_.C(function(G){var b=_.e(_.bk(function(){var w,$a;return((w=G.data().createPlaylistDialogFormSchema)==null?0:($a=w.initialValues)==null?0:$a.title)?G.data().createPlaylistDialogFormSchema.initialValues.title:""})),I=b.next().value,h=b.next().value;
b=_.e(_.bk(function(){G.data();return!1}));
var q=b.next().value,l=b.next().value;b=_.e(_.bk(function(){G.data();return!1}));
var V=b.next().value,D=b.next().value;b=_.e(_.bk(function(){var w,$a;return(w=G.data().createPlaylistDialogFormSchema)==null?void 0:($a=w.initialValues)==null?void 0:$a.visibility}));
var k=b.next().value,L=b.next().value;b=_.e(_.bk(function(){G.data();return!1}));
var x=b.next().value,f=b.next().value;b=_.e(_.bk(function(){var w,$a;return(w=G.data().createPlaylistDialogFormSchema)==null?void 0:($a=w.initialValues)==null?void 0:$a.isCollaborative}));
var T=b.next().value,B=b.next().value,A=_.ee("div");_.K0(function(){var w=A.value.querySelector("textarea");w&&(w.value=I())},"axFRaf");
_.K3(function(){var w;_.Naa((w=G.data().createPlaylistDialogFormSchema)==null?void 0:w.id,{onSubmit:function(){var $a=I();var ev=k(),LO=T(),td=G.data();$a={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:$a,privacyStatus:ev,videoIds:td.videoIds,sourcePlaylistId:td.sourcePlaylistId,params:LO?td.createPlaylistParamsCollaborationEnabled:td.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.LL().resolve(_.xW).resolveCommand($a)},
isValid:function(){return q()&&!V()&&!x()}})});
var t=function(w){if(w!==void 0&&(h(w),!q()&&w.length>0&&l(!0),q())){var $a=Y5L(G.data());if($a){var ev=$a.minLength;$a=$a.maxLength;ev&&w.length<ev?D(!0):$a&&w.length>$a?D(!0):D(!1)}}},y=function(){var w=!(!T()||k()!=="PRIVATE");
f(w)},F=function(w){w!==void 0&&(L(w),y())},W=function(){if(x())return JJY(G.data())},O=function(){B(!T());
y()},K=function(){return{validate:function(w){if(q()){var $a=Y5L(G.data());
if($a){var ev=$a.minLength;$a=$a.translations;if(ev&&w.length<ev)return $a==null?void 0:$a.minLengthErrorMessage}}}}},u=function(){var w=Y5L(G.data()),$a=w==null?void 0:w.maxLength,ev;
w=w==null?void 0:(ev=w.translations)==null?void 0:ev.maxLengthErrorMessage;if($a&&w)return{maxChars:$a,errorMessage:w}};
return _.v("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.v("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:A},_.v(_.VX,{data:function(){return G.data().playlistTitle}},{textFormFieldViewModel:function(w){return _.v(_.nSj,{data:w.data,
text:I,onInput:t,validation:K,characterLimit:u})},
textFieldViewModel:function(w){return _.v(_.RA9,{data:w.data,text:I,onInput:t,validation:K,characterLimit:u})}})),_.v("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.v(_.VX,{data:function(){return G.data().playlistVisibility}},{dropdownViewModel:function(w){return _.v(_.ILf,{data:w.data,
onSelected:F,error:W})}})),_.v(_.Q,{cond:function(){return!!G.data().playlistCollaborate},
then:function(){return _.v("div",null,_.v(_.VX,{data:function(){return G.data().playlistCollaborate}},{switchListItemViewModel:function(w){return _.v(_.t2J,{data:w.data,
onTap:O})}}))}}))},"Bj");var ECF=_.C(function(G){var b=G.data;return _.v("upsell-offer-table-cell-content-view-model",null,_.v("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.v(_.Nc,null,_.v(_.H3,{when:function(){return b().iconType}},function(){return _.v("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.v(_.ha,{icon:function(){return b().iconType.toString()}}))}),_.v(_.H3,{when:function(){return b().title}},function(){return _.v(_.IS,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return b().title}})}),_.v(_.H3,{when:function(){return b().subtitle}},function(){return _.v(_.IS,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return b().subtitle}})}),_.v(_.H3,{when:function(){return b().infoText}},function(){return _.v(_.IS,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return b().infoText}})}),_.v(_.H3,{when:function(){return b().featureDescription}},function(){return _.v(_.IS,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return b().featureDescription}})}),_.v(_.H3,{when:function(){return b().note}},function(){return _.v(_.IS,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return b().note}})}))))},"Cj");
ECF.idomCompat=!0;var p9F=_.C(function(G){var b=G.data;return _.v("upsell-offer-table-cell-view-model",null,_.v("div",{class:_.pG("ytUpsellOfferTableCellViewModelCellWrapper",function(){return b().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":b().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.v(_.VX,{data:function(){return b().contents}},{upsellOfferTableCellContentViewModel:ECF})))},"Dj");
p9F.idomCompat=!0;var S7K=_.C(function(G){var b=G.data;var I=G.upsellTableIsFirstRow;var h=function(){return(I==null?0:I())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},q=function(){return(I==null?0:I())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.v("ytm-upsell-offer-table-row-view-model",null,_.v("div",{class:function(){return(I==null?0:I())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"}},_.v(_.VX,{data:function(){return b().rowHeaderCell}},{upsellOfferTableCellViewModel:function(l){return _.v("div",{class:h},_.v(p9F,{data:l.data}))}}),_.v("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.v(_.VX,{data:function(){return b().contentCells}},{upsellOfferTableCellViewModel:function(l){return _.v("div",
{class:q},_.v(p9F,{data:l.data}))}}))))},"Ej");
S7K.idomCompat=!0;var X98=_.C(function(G){var b=G.data;return _.v("ytm-upsell-offer-table-view-model",null,_.v("div",{class:"ytUpsellOfferTableViewModelHost"},_.v("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.v(_.VX,{data:function(){return b().rows}},{upsellOfferTableRowViewModel:function(I,h){return _.v(S7K,{data:I.data,
upsellTableIsFirstRow:function(){return h()===0}})}}))))},"Fj");
X98.idomCompat=!0;var $GY=_.C(function(G){var b=function(){return G.data()},I=_.a9(G.noPadding,!1),h=function(){var l,V;
return(V=(l=b().logo.accessibilityData)==null?void 0:l.label)!=null?V:""},q={};
return _.v("upsell-view-model",{class:_.pG("ytUpsellViewModelHost",(q.ytUpsellViewModelHostNoPadding=function(){return I()},q.ytUpsellViewModelHostWide=function(){return b().offerTable!==void 0},q))},_.v("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.v(_.Q,{cond:function(){return _.iA(b().logo)},
then:function(l){return _.v(_.Fu,{data:l,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:h})}})),_.v("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.v(_.IS,{text:function(){return b().title}})),_.v("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.v(_.aj,{each:function(){var l;
return(l=b().subtitles)!=null?l:[]},
keyBy:"INDEX"},function(l){var V={};return _.v("div",{class:_.pG("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(V.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return b().offerTable!==void 0},V))},_.v(_.IS,{text:l}))})),_.v("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.v(_.aj,{each:function(){var l;
return(l=b().benefitInfos)!=null?l:[]},
keyBy:"INDEX"},function(l){return _.v(_.Q,{cond:function(){return l().info},
then:function(V){return _.v("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.v(_.ha,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.v(_.IS,{text:V}))}})})),_.v(_.Q,{cond:function(){return b().offerTable!==void 0},
then:function(){return _.v("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.v(_.VX,{data:function(){return b().offerTable}},{upsellOfferTableViewModel:function(l){return _.v(X98,{data:l.data})}}))}}),_.v("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.v(_.aj,{each:function(){var l;
return(l=b().legalInfos)!=null?l:[]},
keyBy:"INDEX"},function(l){var V={};return _.v("div",{class:_.pG("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(V.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return b().offerTable!==void 0},V))},_.v(_.IS,{text:l}))})))},"Gj");var G63=_.C(function(G){var b=G.data;G={};G=(G.ytMiniAppScoreChallengeViewModelScoreRadial=!0,G.ytMiniAppScoreChallengeViewModelDarkScoreRadial=KIY(),G);return _.v("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.v("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return b().title}),_.v("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return b().subtitle}),_.v("div",{class:_.xU(G)},_.v("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return b().score})),_.v("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return b().prompt}))},"Hj");var bZ1=function(){this.store=_.H5();this.formId=""};
bZ1.prototype.onInit=function(G){G.formId&&(this.formId=G.formId,this.store.dispatch(_.wK({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var IqK=_.C(function(G){function b(D){if(D&&(D=_.g(D,_.kU)))return Object.assign({},D,{isSelected:l()})}
var I=_.e(_.bk(function(){var D,k;return(k=(D=_.g(G.data().option,_.kU))==null?void 0:D.isSelected)!=null?k:!1})),h=I.next().value,q=I.next().value,l=h;
_.K3(function(){var D;_.Naa((D=G.data().formSchema)==null?void 0:D.id,{onSubmit:function(){var k=_.LL().resolve(_.xW),L=!!G.data().selectedCommand,x=!!G.data().unselectedCommand;if(l()){if(L)var f=G.data().selectedCommand}else x&&(f=G.data().unselectedCommand);f=_.s0(f);b(G.data().option)&&!f?(k="",!L&&x?k="selected ":L&&!x&&(k="unselected "),L=new _.Wf("No "+k+"command found for SelectionListItemFormViewModel"),_.K1(L)):f&&k.resolveCommand(f)},
isValid:function(){return!0}})});
var V=function(){q(!l())};
_.uI(function(){var D,k,L=(D=G.data())==null?void 0:(k=D.formSchema)==null?void 0:k.id;L&&_.mA()().delete(L)});
return _.v("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.v("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.v(_.IS,{text:function(){return G.data().paragraph}})),_.v(_.Q,{cond:function(){return b(G.data().option)},
then:function(D){return _.v(_.G2,{data:D,isCompact:!0,hideSelectionTextChevron:!0,onTap:V,disableHorizontalPadding:!0})}}))},"Ij");var hf5=_.C(function(G){var b=G.data;var I=G.disablePadding;var h=G.className;var q=_.ee("yt-dialog-header-view-model"),l=function(){var D=b().imageBanner;a:switch(b().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var k="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:k="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:D,style:k,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},V=function(){return b().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.K3(function(){var D=function(){_.wL(q.value,"yt-refit-popups-action")},k;
(k=q.value)==null||k.addEventListener("image-loaded",D);_.uI(function(){var L;(L=q.value)==null||L.removeEventListener("image-loaded",D)})});
G={};return _.v("yt-dialog-header-view-model",{el:q,class:_.pG(h,(G.ytDialogHeaderViewModelHost=!0,G.ytDialogHeaderViewModelHostDisablePadding=I,G))},_.v(_.Q,{cond:function(){return b().imageBanner},
then:function(){var D={};return _.v("div",{class:_.pG(h,(D.ytDialogHeaderViewModelBanner=!0,D.ytDialogHeaderViewModelBannerFullBleed=V,D)),style:_.Ir({"max-height":function(){return b().assetContainerMaxHeight!==void 0?b().assetContainerMaxHeight+"px":void 0}})},_.v(_.B_,{data:l,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.v(_.Q,{cond:function(){return b().headerBlock},
then:function(){return _.v("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.v(_.VX,{data:function(){return b().headerBlock}},{contentPreviewImageViewModel:function(D){return _.v(_.B_,{data:D.data,
notifyOnLoaded:!0})}}))}}),_.v(_.Q,{cond:function(){return b().customBanner},
then:function(D){return _.v("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.v(_.VX,{data:D},{avatarStackViewModel:_.Em}))}}),_.v(_.Q,{cond:function(){return b().headline},
then:function(D){return _.v("h2",null,_.v(_.IS,{text:D,className:"ytDialogHeaderViewModelText"}))}}))},"Jj");
hf5.idomCompat=!0;var q_3=_.C(function(G){var b=_.kjB(function(){return G.data().formId}),I=b.submitForm,h=b.isValid;
return _.v("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.v(_.VX,{data:function(){return G.data().panelFooter}},{panelFooterViewModel:function(q){return _.v(_.tD,{data:q.data,
disablePadding:!0,disablePrimaryButton:function(){return!h()},
onClickPrimaryButton:function(){I()}})}}))},"Kj");var jhe=_.C(function(G){var b=function(){var I,h;return(h=(I=_.g(G.data().rendererContext,_.DA))==null?void 0:I.label)!=null?h:""};
return _.v("yt-dialog-image-content-view-model",{class:_.pG("ytDialogImageContentViewModelHost",G.className)},_.v(_.Q,{cond:function(){return _.iA(G.data().image)},
then:function(I){var h={};return _.v("div",{style:_.Ir((h.width=(0,_.Xr)(function(){var q;return(q=G.data().imageMaxWidth)!=null?q:""}),h)),
class:"ytDialogImageContentViewModelImage"},_.v(_.Fu,{data:I,alt:b,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.v(_.IS,{text:function(){return G.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Lj");var efc=_.C(function(G){var b=_.N5(G,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),I=b.elRefCallback;G=b.Icon;var h=b.Asset,q=b.assetType,l=b.Title,V=b.LeadingActionHeader,D=b.TrailingActionHeader,k=b.headerPosition,L=b.Content,x=b.buttonLayout,f=b.buttonStyle,T=b.primaryButtonWiz,B=b.secondaryButtonWiz,A=b.contentAlignment,t=b.isFullscreen,y=b.width,F=b.maxHeight,W=b.isHeaderWizDefined,O=b.Header,K=b.isFooterWizDefined,
u=b.Footer;b=_.ee("dialog-layout",function(W2){I==null||I(W2)});
var w=T?function(){var W2={};return T({buttonOverrides:function(){return{style:(f==null?void 0:f())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.pG((W2["yt-spec-dialog-layout__dialog-layout-button"]=!0,W2["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(x==null?void 0:x())===0||(x==null?void 0:x())===2},W2))})}:void 0,$a=B?function(){var W2={};
return B({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.pG((W2["yt-spec-dialog-layout__dialog-layout-button"]=!0,W2["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(x==null?void 0:x())===0||(x==null?void 0:x())===2},W2))})}:void 0,ev=function(){return(!!l||!!V||!!D)&&k()===0},LO={},td={},xa={},Uj={};
return _.v("dialog-layout",{el:b,class:_.pG((LO["yt-spec-dialog-layout"]=!0,LO["yt-spec-dialog-layout--dialog-layout-fullscreen"]=t,LO["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!t()},LO["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return F()===1},LO["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(q==null?void 0:q())===1},LO)),
style:function(){return(y==null?void 0:y())!==void 0?"width: "+y()+"px;":""}},G?_.v("div",{class:_.pG((td["yt-spec-dialog-layout__dialog-layout-icon"]=!0,td["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!h&&k()===1},td["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return A()===1},td))},_.v(G,null)):null,_.v(_.Q,{cond:W,
then:function(){return O?_.v("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.v(O,null)):null},
else:function(){return _.v(_.xz,null,_.v(_.Q,{cond:ev,then:function(){return _.v(lqD,{contentAlignment:A,LeadingActionHeader:V,TrailingActionHeader:D,Title:l,isAboveAsset:!!h})}}),h?_.v("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.v(h,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.v("div",{class:_.pG((xa["yt-spec-dialog-layout__dialog-layout-container"]=!0,xa["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(A==null?void 0:A())===1},
xa["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!l&&!(O&&W())||!!h&&(k==null?void 0:k())===0},xa))},_.v(_.Q,{cond:function(){return l&&!O&&(k==null?void 0:k())===1},
then:function(){return _.v(lqD,{contentAlignment:A,LeadingActionHeader:V,TrailingActionHeader:D,Title:l,isAboveAsset:!1})}}),L?_.v("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.v("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.v(L,null))):null,_.v(_.Q,{cond:K,
then:function(){return u?_.v("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.v(u,null)):null}}),w||$a?_.v(mGL,{footerClasses:_.pG((Uj["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Uj["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Uj["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(x==null?void 0:x())===2},Uj["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(x==null?void 0:x())===1},Uj)),
PrimaryButton:w,SecondaryButton:$a}):null))},"Mj"),lqD=_.C(function(G){var b=_.N5(G,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),I=b.contentAlignment,h=b.LeadingActionHeader;G=b.Title;var q=b.TrailingActionHeader,l=b.isAboveAsset,V=b.enableLeadingActionHeader;b={};return _.v("div",{class:_.pG((b["yt-spec-dialog-layout__dialog-header-container"]=!0,b["yt-spec-dialog-layout__dialog-header"]=!0,b["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=l,b["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(I==null?void 0:I())===1&&V()},b))},_.v(_.Q,{cond:function(){return V()},
then:function(){return h?_.v("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.v(h,null)):null}}),G?_.v("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.v(G,null)):null,q?_.v("div",null,_.v(q,null)):null)},"Nj"),mGL=_.C(function(G){var b=G.footerClasses;
var I=G.PrimaryButton;G=G.SecondaryButton;return _.v("div",{class:b},G?_.v(G,null):null,I?_.v(I,null):null)},"Oj");var Vr9=_.C(function(G){var b=G.data;return _.v("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.v("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.v(_.VX,{data:function(){return b().avatar}},{avatarViewModel:_.Om})),_.v("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.v(_.IS,{text:function(){return b().title}})),_.v(_.IS,{text:function(){return b().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Pj");var DG9=_.C(function(G){return _.v("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.v(_.IS,{text:function(){return G.data().inviteMessage}})),_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.v(_.IS,{text:function(){return G.data().attributedAccountSectionHeaderText}})),_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.v(_.VX,{data:function(){return G.data().accountAvatar}},{avatarViewModel:_.Om}),_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.v(_.IS,{text:function(){return G.data().accountName}}),_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.v(_.IS,{text:function(){return G.data().handle}}))),_.v(_.VX,{data:function(){return G.data().trailingButton}},{buttonViewModel:_.sQ})),_.v("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.v(_.IS,{text:function(){return G.data().termsOfService}})))},"Qj");var cD1=_.C(function(G){var b=G.data;return _.v("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.v("div",{class:"ytAccessConfirmationViewModelContent"},_.v(_.VX,{data:function(){var I;return(I=b().avatar)!=null?I:b().dualAvatar}},{dualAvatarViewModel:function(I){return _.v(_.QI9,{data:I.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(I){return _.v(_.w1,{data:I.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.v("h2",{class:"ytAccessConfirmationViewModelTitle"},_.v(_.IS,{text:function(){return b().title}})),_.v(_.IS,{text:function(){return b().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Rj");var k61=_.C(function(G){var b=G.data;var I=void 0;G=_.e(_.bk(function(){var L;return((L=_.g(b().content,_.pB))==null?void 0:L.defaultSelectedKey)||""}));
var h=G.next().value,q=G.next().value,l,V=function(){q("");var L;(L=I)!=null&&L.store.dispatch(_.wK({type:"RESET_COMMAND_MAP"}))};
_.K3(function(){I=new bZ1;window.addEventListener("yt-popup-closed",V)});
_.K0(function(){if(I&&l!==b().formId&&(I.onInit(b()),(l=b().formId)&&h())){var L=I,x={key:h()};x.command&&L.store.dispatch(FM1(l,x.command))}},"c2n8Gf");
_.uI(function(){window.removeEventListener("yt-popup-closed",V)});
var D=function(L,x,f){x.key&&f&&x.key!==h()&&(q(x.key),I&&x.command&&I.store.dispatch(FM1(f,x.command)))},k=function(){if(_.g(b().content,_.pB))return!(h==null?0:h())};
return _.v("yt-dialog-view-model",{class:_.pG("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.v(efc,{Header:function(){return _.v(_.VX,{data:function(){return b().header}},{dialogHeaderViewModel:function(L){return _.v(hf5,{data:L.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!b().header},
Content:function(){return _.v(_.VX,{data:function(){return b().customContent?b().customContent:b().content}},{basicContentViewModel:_.xa5,
createPlaylistDialogFormViewModel:w9K,collaborativePlaylistInviteMessageViewModel:DG9,miniAppScoreChallengeViewModel:G63,radioButtonGroupViewModel:function(L){var x=L.data;return _.v(_.Cmf,{data:x,selectedKey:h,onSelected:D,groupName:function(){return x().formId}})},
selectionListItemFormViewModel:IqK,upsellViewModel:function(L){return _.v($GY,{data:L.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Vr9,installmentAgreementsViewModel:OBe,accessConfirmationViewModel:cD1,listViewModel:function(L){return _.v(_.Fxe,{data:L.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:jhe})},
Footer:function(){return _.v(_.VX,{data:function(){return b().footer}},{panelFooterViewModel:function(L){return _.v(_.tD,{data:L.data,
disablePadding:!0,disablePrimaryButton:k})},
formPanelFooterViewModel:q_3,formFooterViewModel:function(L){return _.v(_.oSW,{data:L.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!b().footer}}))},"Tj");
k61.idomCompat=!0;_.JN(k61,"yt-dialog-view-model",{props:{data:_.hV},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var v5f=_.C(function(G){var b=G.data;return _.v("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.v(_.Q,{cond:function(){return b().title},
then:function(I){return _.v("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.v(_.IS,{text:I,className:"ytPanelHeaderViewModelTitle"}))}}),_.v(_.Q,{cond:function(){return b().subtitle},
then:function(I){return _.v(_.IS,{text:I,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Uj"),LdF=_.C(function(G){var b=G.data;
var I=_.RJO(function(){return b().rendererContext});
G={};return _.v("yt-panel-header-view-model",{class:_.pG("ytPanelHeaderViewModelHost",(G.ytPanelHeaderViewModelHostHideDivider=function(){return!!b().shouldHideDivider},G.ytPanelHeaderViewModelHostCompact=function(){return!!b().subtitle},G)),
"aria-label":function(){var h;return(h=I())==null?void 0:h.label}},_.v(_.Q,{cond:function(){return _.U2(b().rendererContext)},
then:function(){return _.v(_.fhX,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.BH(b().rendererContext)}},_.v(v5f,{data:b}))},
else:function(){return _.v(v5f,{data:b})}}),_.v("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.v(_.VX,{data:function(){return b().trailingButtons}},{buttonViewModel:function(h){return _.v(_.sQ,{data:h.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Vj");
LdF.idomCompat=!0;var Qh1=_.C(function(G){var b=_.Xu(function(l){var V;if((V=G.skipContentClick)==null?0:V.call(G))return!1;G.onContentWrapperClick(l);return!0}),I,h,q;
return _.v("div",{class:_.pG("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),_.v("div",{id:G.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Ir({"max-height":(0,_.Xr)(G.maxHeightForContentWrapper)}),"on:scroll":Opf(G.onScroll),"on:touchmove":Opf(function(l){return void l.stopPropagation()})},_.v("div",{el:{onRender:G.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":b},(h=G.body)==null?void 0:h.call(G))),(q=G.footer)==null?void 0:q.call(G))},"Wj");
Qh1.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var xGK=_.C(function(G){var b=_.a9(G.leadingLabel),I=_.a9(G.trailingLabel),h=_.a9(G.footerButtonType),q=function(){return b()||I()||G.hasPrimaryButton()||G.hasSecondaryButton()},l={},V=_.pG("yt-spec-bottom-sheet-layout__primary-button",(l["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return h()===0&&G.hasPrimaryButton()},l["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return h()===1&&G.hasPrimaryButton()},l["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return h()===2&&G.hasPrimaryButton()},l["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return h()===3&&G.hasPrimaryButton()},l));
l={};var D=_.pG("yt-spec-bottom-sheet-layout__secondary-button",(l["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return h()===1&&G.hasSecondaryButton()},l["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return h()===2&&G.hasSecondaryButton()},l["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return h()===3&&G.hasPrimaryButton()},l));
return _.v(_.Q,{cond:G.hasFooterOverride,then:function(){var k;return _.v(_.xz,null,(k=G.footerOverride)==null?void 0:k.call(G))},
else:function(){return _.v(_.Q,{cond:q,then:function(){return _.v("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.v(_.Q,{cond:function(){return b()||I()},
then:function(){var k={};return _.v("div",{class:_.pG("yt-spec-bottom-sheet-layout__footer-label-wrapper",(k["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!G.hasPrimaryButton()},k))},_.v(_.Q,{cond:b,
then:function(){return _.v("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},b)}}),_.v(_.Q,{cond:I,
then:function(){return _.v("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},I)}}))}}),_.v(_.Q,{cond:function(){return G.hasPrimaryButton()||G.hasSecondaryButton()},
then:function(){var k={};return _.v("div",{class:_.pG("yt-spec-bottom-sheet-layout__footer-button-wrapper",(k["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.DU5,k))},_.v(_.Q,{cond:function(){return G.hasSecondaryButton()&&h()!==0},
then:function(){var L;return _.v("div",{class:D},(L=G.secondaryButton)==null?void 0:L.call(G))}}),_.v(_.Q,{cond:G.hasPrimaryButton,
then:function(){var L;return _.v("div",{class:V},(L=G.primaryButton)==null?void 0:L.call(G))}}))}}))}})}})},"Xj");
xGK.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var fq1=_.C(function(G){var b=_.a9(G.title),I=_.a9(G.subtitle);return _.v("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:G.headerId,"on:touchstart":_.Xu(function(h){var q;(q=G.touchstart)==null||q.call(G,h);return!1}),
"on:touchmove":_.Xu(function(h){var q;(q=G.touchmove)==null||q.call(G,h);return!1}),
"on:touchend":_.Xu(function(h){var q;(q=G.touchend)==null||q.call(G,h);return!1})},_.v("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.v(_.Q,{cond:G.hasHeaderOverride,
then:function(){var h;return _.v(_.xz,null,(h=G.headerOverride)==null?void 0:h.call(G))},
else:function(){var h={};return _.v("div",{class:_.pG((h["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,h["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=b,h))},_.v("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.v(_.Q,{cond:b,then:function(){return _.v(_.xz,null,_.v("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},b),_.v(_.Q,{cond:I,then:function(){return _.v("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
I)}}))}})),_.v(_.Q,{cond:function(){return b()&&G.hasActionHeader()},
then:function(){var q;return _.v("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(q=G.actionHeader)==null?void 0:q.call(G))}}))}}))},"Yj");
fq1.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.C(function(G){function b(ev){if(!O&&typeof MutationObserver!=="undefined"){var LO={childList:!0};"MutationObserver"in window&&(O=new MutationObserver(I.bind(void 0,ev)),O.observe(ev,LO))}}
function I(ev){typeof O!=="undefined"&&(K["content-wrapper"]===void 0&&(K["content-wrapper"]=ev.children[0].clientHeight),t(K["content-wrapper"]),A()>y()||F(A()))}
function h(){B(window.innerHeight);A()>y()||F(A());u.isFullScreen[0]()&&A()>y()?w().dispatch("Snap To Full Screen",{maxHeight:W()}):w().dispatch("Snap To Neutral Position",{maxHeight:y()})}
function q(ev){document.body.style.overscrollBehavior="none";ev.preventDefault();w().dispatch("Touch Start",{event:ev})}
function l(ev){ev.preventDefault();w().dispatch("Touch Move",{event:ev,contentScrollable:A()>y(),fullContentWrapperHeight:W(),contentWrapperHeight:y(),heightMap:K,contentWrapperId:"content-wrapper",header:EYY(G),footer:EYY(G),headerDivHeight:K["bottom-sheet-header"],footerDivHeight:K["bottom-sheet-footer"]})}
function V(){document.body.style.overscrollBehavior="";u.isFullScreen[0]()?u.currentY[0]()>=60?w().dispatch("Snap To Neutral Position",{maxHeight:y()}):w().dispatch("Snap To Full Screen",{maxHeight:W()}):u.currentY[0]()>=60?D():u.currentY[0]()<=-60&&A()>y()?w().dispatch("Snap To Full Screen",{maxHeight:W()}):w().dispatch("Snap To Neutral Position",{maxHeight:y()})}
function D(){w().dispatch("Close Sheet",{clientHeight:T(),maxHeight:0});setTimeout(function(){w85()},250)}
var k=_.ee("div"),L=_.ee("div"),x=_.e(_.ZZ(window.innerHeight,void 0,"CmOsU")),f=x.next().value;x=x.next().value;var T=f,B=x;x=_.e(_.ZZ(0,void 0,"p0Flhb"));f=x.next().value;x=x.next().value;var A=f,t=x;x=_.e(_.bk(function(){var ev=EYY(G);return.6*T()-uc5(ev)-RbF(ev)}));
f=x.next().value;x=x.next().value;var y=f,F=x,W=function(){var ev=EYY(G),LO=T(),td=K["bottom-sheet-header"],xa=K["bottom-sheet-footer"];return LO-(ev.hasHeaderFn&&td!==void 0?td:uc5(ev))-(ev.hasFooterFn&&xa!==void 0?xa:RbF(ev))-24-24},O=null,K={},u={initialY:_.ZZ(0,void 0,"sxdESd"),
currentY:_.ZZ(0,void 0,"GZzqeb"),isAnimating:_.ZZ(!1,void 0,"vJBupc"),isFullScreen:_.ZZ(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.bk(y)},w=function(){var ev=null;return function(){if(!ev){var LO={initialY:u.initialY[0](),currentY:u.currentY[0](),isAnimating:u.isAnimating[0](),isFullScreen:u.isFullScreen[0](),maxHeightForContentWrapper:u.maxHeightForContentWrapper[0]()};ev=nY5(LO)}return ev}}();
_.K3(function(){window.addEventListener("resize",h);w().subscribe(function(ev){u.initialY[1](ev.initialY);u.currentY[1](ev.currentY);u.isAnimating[1](ev.isAnimating);u.isFullScreen[1](ev.isFullScreen);u.maxHeightForContentWrapper[1](ev.maxHeightForContentWrapper)});
requestAnimationFrame(function(){k.value&&(K["bottom-sheet-header"]=k.value.clientHeight);L.value&&(K["bottom-sheet-footer"]=L.value.clientHeight)})});
_.uI(function(){window.removeEventListener("resize",h);O&&(O.disconnect(),O=null)});
var $a=_.pG({"bottom-sheet-content-without-icon":function(){var ev;return!((ev=G.shouldShowIcons)==null?0:ev.call(G))}});
return _.v("bottom-sheet-layout",null,_.v(Qh1,{contentWrapperId:"content-wrapper",isAnimating:function(){return u.isAnimating[0]()},
currentY:function(){return u.currentY[0]()},
maxHeightForContentWrapper:function(){return u.maxHeightForContentWrapper[0]()},
shouldShowIcons:G.shouldShowIcons,skipContentClick:G.skipContentClick,onScroll:function(){var ev=document.getElementById("bottom-sheet-header"),LO=document.getElementById("content-wrapper");if(ev&&LO){var td={};td=(td["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,td["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,td);ev.className=LO.scrollTop>1?_.xU(td):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:w85,contentWrapperEl:function(ev){b(ev);requestAnimationFrame(function(){I(ev)})},
header:function(){return _.v("div",{el:k},_.v(fq1,{touchstart:q,touchmove:l,touchend:V,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 _.v("div",{el:L},_.v(xGK,{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 _.v(_.Q,{cond:G.hasContentFn,then:function(){var ev;return _.v("div",{class:$a},(ev=G.contentFn)==null?void 0:ev.call(G))}})}}))},"Zj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Twf=_.C(function(G){var b=_.LL().resolve(_.K9);return _.v("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Xu(function(){return void b.closeSheet()})},_.v(_.Q,{cond:function(){return!!G.header},
then:function(){return _.v("div",{class:"ytContextualSheetLayoutHeaderContainer"},G.header())}}),_.v(_.Q,{cond:function(){return!!G.content},
then:function(){return _.v("div",{class:"ytContextualSheetLayoutContentContainer"},G.content())}}),_.v(_.Q,{cond:function(){return!!G.footer},
then:function(){return _.v("div",{class:"ytContextualSheetLayoutFooterContainer"},G.footer())}}))},"$j");
Twf.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var Bw5=_.C(function(G){var b=G.data;var I=_.LL().resolve(_.xW),h=_.ee("yt-sheet-view-model",function(q){if(_.U("web_focus_first_element_sheet")||!_.U("sheet_focus_first_killswitch"))return q.addEventListener("focus",function(){JIa(q)}),function(){q.removeEventListener("focus",function(){JIa(q)})}});
G={};return _.v("yt-sheet-view-model",{"on:mousedown":_.Xu(function(q){_.U("sheet_focus_first_killswitch")||q.currentTarget!==q.target&&q.preventDefault()}),
"on:focus":_.Xu(function(){_.U("sheet_focus_first_killswitch")||JIa(h.value)}),
"on:mouseleave":_.Xu(function(){var q,l=b==null?void 0:(q=b())==null?void 0:q.rendererContext,V;(q=(V=_.g(l,_.gQ))==null?void 0:V.onHoverEnd)&&I.resolveCommand(q)}),
class:_.pG("ytSheetViewModelHost",(G.ytSheetViewModelContextual=!0,G.ytSheetViewModelDisableBackdropFilter=_.U("web_disable_backdrop_filter"),G)),el:h,tabindex:-1},_.v(_.Q,{cond:b,then:function(q){return _.v(Twf,{header:function(){return _.v(_.VX,{data:function(){return q().header}},{panelHeaderViewModel:LdF})},
content:function(){return _.v(_.VX,{data:function(){return q().content}},{listViewModel:function(l){return _.v(_.Fxe,{data:l.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:$GY,miniAppScoreChallengeViewModel:G63})},
footer:function(){return _.v(_.VX,{data:function(){return q().footer}},{panelFooterViewModel:_.tD})}})}}))},"ak");
Bw5.idomCompat=!0;_.JN(Bw5,"yt-sheet-view-model",{props:{data:_.hV}});var shL=_.C(function(G){var b=function(){var I;return(I=G.data().enableDebuggingFeatures)!=null?I:!1};
return _.v("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.v(_.aj,{each:function(){var I;return(I=G.data().stickers)!=null?I:[]}},function(I){return _.v(UG5,{data:function(){return I},
debugMode:b})}))},"bk"),UG5=_.C(function(G){var b=_.N5(G,{debugMode:!1}).debugMode,I=_.a9(function(){var k;
return(k=G.data().region)==null?void 0:k.w},0),h=_.a9(function(){var k;
return(k=G.data().region)==null?void 0:k.h},0),q=_.a9(function(){var k;
return(k=G.data().region)==null?void 0:k.x},0),l=_.a9(function(){var k;
return(k=G.data().region)==null?void 0:k.y},0),V=_.Xu(function(){var k=G.data().onTap;
k&&_.Zm(k)}),D={};
return _.v("div",{class:_.pG("ytStoriesStickerLayerViewModelSticker",(D.ytStoriesStickerLayerViewModelDebugMode=b,D)),style:_.Ir({width:function(){return 100*I()+"%"},
height:function(){return 100*h()+"%"},
left:function(){return 100*q()+"%"},
top:function(){return 100*l()+"%"},
"flex-direction":function(){return p81(G.data().flexDirection)},
"justify-content":function(){return S53(G.data().justifyContent)},
"align-items":function(){return X83(G.data().alignItems)}}),
"on:click":V},_.v(_.VX,{data:function(){return G.data().button||G.data().toggleButton}},{buttonViewModel:function(k){return _.v(_.sQ,{data:k.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(k){return _.v(_.YK,{data:k.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ck");var AD5=_.C(function(G){var b=function(){return G.data()},I={},h=_.e(_.ZZ(!1,void 0,"SegA3d")),q=h.next().value,l=h.next().value,V=_.a9(function(){return b().backgroundColor},0);
h=_.a9(function(){return b().actionButtons},[]);
var D=_.a9(function(){return b().stickerLayer},{}),k=function(){var x,f;
return{animationRef:I,animationConfig:{autoplay:!1,loop:!1,path:(f=(x=b().foregroundAnimation)==null?void 0:x.url)!=null?f:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){l(!0)},
complete:function(){G.navigateToNextItemOnLottieComplete()}}}},L=function(){var x,f,T,B,A,t,y,F;
return{animationConfig:{autoplay:(t=(x=b().backgroundAnimation)==null?void 0:(f=x.settings)==null?void 0:f.autoplay)!=null?t:!1,loop:(y=(T=b().backgroundAnimation)==null?void 0:(B=T.settings)==null?void 0:B.loop)!=null?y:!1,path:(F=(A=b().backgroundAnimation)==null?void 0:A.url)!=null?F:"",name:"stories_item_background_animation"}}};
_.K0(function(){if(G.isVisible()&&q()){var x;(x=I.lottieEl)==null||x.play();G.animationRef()&&(G.animationRef().lottieEl=I.lottieEl)}else{var f;(f=I.lottieEl)==null||f.stop()}},"MxM2wb");
return _.v("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Ir({"background-color":function(){return _.so(V())+";"}})},_.v("div",{class:"ytStoriesItemViewModelAssetContent"},_.v(_.Q,{cond:function(){return!!b().backgroundAnimation},
then:function(){return _.v(_.zV,{data:L,animationName:function(){return L().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.v(_.Q,{cond:function(){return!!b().backgroundImage},
then:function(){return _.v(_.Fu,{data:function(){return b().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.v(_.Q,{cond:function(){return!!b().foregroundAnimation},
then:function(){return _.v(_.zV,{data:k,animationName:function(){return k().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.v(_.Q,{cond:function(){return!!b().foregroundImage},
then:function(){return _.v(_.Fu,{data:function(){return b().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.v("div",{class:"ytStoriesItemViewModelTopShadow"}),_.v(_.VX,{data:function(){return D()}},{storiesStickerLayerViewModel:shL})),_.v("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Ir({"background-color":function(){return _.so(V())}})},_.v("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.v(_.aj,{each:h},function(x){return _.v(g5W,{data:function(){return x},
pauseAutoNavigation:G.pauseAutoNavigation})}))))},"ek"),Mrf={style:"overlay",
type:"outline"},g5W=_.C(function(G){var b={};return _.v("div",{class:_.pG("ytStoriesItemViewModelActionButton",(b.ytStoriesItemViewModelStretchedActionButton=function(){return G.data().size==="STORIES_BUTTON_SIZE_STRETCH"},b)),
"on:click":_.Xu(G.pauseAutoNavigation)},_.v(_.VX,{data:function(){return G.data().button}},{buttonViewModel:function(I){return _.v(_.sQ,{data:I.data,
buttonOverrides:Mrf})}}))},"fk");var ZZj={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.JN(_.C(function(G){var b=function(){var xa;return(xa=G.data().startIndex)!=null?xa:0},I=_.e(_.bk(b)),h=I.next().value,q=I.next().value;
I=_.e(_.ZZ(!1,void 0,"sjy7s"));var l=I.next().value,V=I.next().value,D=function(){var xa;return(xa=G.data().storyItems)!=null?xa:[]},k={},L=_.ee("yt-stories-viewer-view-model"),x=function(){return G.data().dismissButton},f=function(){var xa;
return _.s0((xa=_.g(x(),_.j6))==null?void 0:xa.onTap)},T=_.ee("div"),B,A,t=!1,y=function(){var xa;
(xa=B)==null||xa.cancel();B=F(h()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});B.onfinish=function(){var Uj=_.g(D()[h()],MCa),W2,is;Uj!=null&&Uj.foregroundAnimation&&((Uj==null?0:(W2=Uj.foregroundAnimation)==null?0:W2.url)||(Uj==null?0:(is=Uj.foregroundAnimation)==null?0:is.payload))||(h()!==D().length-1?(q(h()+1),y()):f()&&_.g5(f()))}},F=function(xa){return T.value.children[xa].children[0]},W=function(){for(var xa=0;xa<h();xa++)F(xa).style.transform=
"scaleX(1)"},O=function(){t||(l()?V(!1):(h()===D().length-1&&f()&&_.g5(f()),F(h()).style.transform="scaleX(1)",h()!==D().length-1&&(q(h()+1),y())))},K=function(){t||(l()?V(!1):(F(h()).style.transform="scaleX(0)",h()!==0&&q(h()-1),y()))},u=function(){V(!0)},w=function(){F(h()).style.transform="scaleX(1)";
h()!==D().length-1?(q(h()+1),y()):f()&&_.g5(f())};
I=function(){t=!1;A=setTimeout(function(){V(!0);t=!0},300)};
var $a=function(){clearTimeout(A);t&&l()&&V(!1)};
_.K0(function(){if(l()){var xa;(xa=B)==null||xa.pause();var Uj;(Uj=k.lottieEl)==null||Uj.pause()}else{var W2;(W2=B)==null||W2.play();var is;(is=k.lottieEl)==null||is.play()}},"vAvZob");
_.K0(function(){W();h()===b()&&y()},"uSlfE");
var ev=function(xa){xa.key==="ArrowLeft"?K():xa.key==="ArrowRight"&&O()},LO=function(xa){if(xa.target===L.value){(xa=f())&&_.g5(xa);
clearTimeout(A);var Uj;(Uj=B)==null||Uj.cancel();window.removeEventListener("keydown",ev);window.removeEventListener("yt-popup-closed",LO)}},td=function(xa){xa.target===L.value&&(window.addEventListener("keydown",ev),window.addEventListener("yt-popup-closed",LO))};
_.K3(function(){W();y();window.addEventListener("yt-popup-opened",td)});
return _.v("yt-stories-viewer-view-model",{el:L,class:_.pG("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.v("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.v("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Xu(K),"on:mousedown":_.Xu(I),"on:mouseup":_.Xu($a),"on:mouseleave":_.Xu($a)}),_.v("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Xu(O),"on:mousedown":_.Xu(I),"on:mouseup":_.Xu($a),"on:mouseleave":_.Xu($a)})),
_.v("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.v(_.VX,{data:D},{storiesItemViewModel:function(xa,Uj){var W2=xa.data;return _.v(_.Q,{cond:function(){return Math.abs(Uj()-h())<=1},
then:function(){var is={};return _.v("div",{class:_.pG("ytStoriesViewerViewModelStoryItem",(is.ytStoriesViewerViewModelActiveStoryItem=function(){return Uj()===h()},is))},_.v(AD5,{data:W2,
pauseAutoNavigation:u,navigateToNextItemOnLottieComplete:w,isVisible:function(){return Uj()===h()},
animationRef:k}))}})}})),_.v("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:T},_.v(_.aj,{each:D},function(){return _.v("div",{class:"ytStoriesViewerViewModelProgressBar"},_.v("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.v("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.v(_.Fu,{data:ZZj,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.v("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.v(_.VX,{data:function(){return G.data().muteButton}},{toggleButtonViewModel:function(xa){return _.v(_.YK,{data:xa.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.v(_.VX,{data:x},{buttonViewModel:function(xa){return _.v(_.sQ,{data:xa.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"ik"),"yt-stories-viewer-view-model",{props:{data:_.hV}});_.JN(_.C(function(G){var b=G.data;var I=_.ee("yt-gen-ai-feedback-form-view-model"),h=[];return _.v("yt-gen-ai-feedback-form-view-model",{el:I,class:"ytGenAiFeedbackFormViewModelHost"},_.v(_.IS,{text:function(){return b().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.v("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.v(_.VX,{data:function(){return b().feedbackChips}},{toggleButtonViewModel:function(q){var l=q.data;
return _.v(_.YK,{data:l,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(V){var D=l();D=_.g(D,_.mS);D=_.g(D==null?void 0:D.defaultButtonViewModel,_.j6).trackingParams;V?h.push(D):(V=h.indexOf(D),V>-1&&h.splice(V,1))}})}})),_.v(_.IS,{text:function(){return b().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.v("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.v(_.VX,{data:function(){return b().submitButton}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){$wK(I.value,h,b().uniqueId)}})}}),_.v(_.VX,{data:function(){return b().moreFeedbackButton}},{buttonViewModel:function(q){return _.v(_.sQ,{data:q.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"jk"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.hV},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var dG=function(){return _.a.apply(this,arguments)||this};
_.M(dG,_.a);dG.prototype.created=function(){FX3(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(oMW);var G=_.LL().resolve(_.dQL);G&&(G.container=this.ytPopupContainerBehavior);if(G=_.LL().resolve(_.K9))G.container=this.ytPopupContainerBehavior;if(G=_.LL().resolve(_.u7)){var b=this.ytPopupContainerBehavior;G.containerWasInjected?_.RB(Error("qj")):G.container=b}};
dG.prototype.ensurePopupBelowPlayer=function(G,b){var I=_.LL().resolve(_.vf(_.Ck));if(!I||!I.isOnWatch()||!_.Kk())return!1;I=I.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.eL().height>I+this.getPopupHeight(G,b)?(G.style.top="auto",G.style.bottom="0px"):(G.style.top=I+"px",G.style.bottom="auto");return!0};
dG.prototype.getPopupHeight=function(G,b){b&&(G.cachedPopupHeight=0);if(!G.cachedPopupHeight){b=0;var I=G.clientHeight,h=window.getComputedStyle(G);b+=parseInt(h.marginTop,10);b+=parseInt(h.marginBottom,10);G.cachedPopupHeight=I+b}return G.cachedPopupHeight};
dG.prototype.getElement=function(G){return document.createElement(G)};
_.R([_.z(V9c.YtPopupContainerBehavior),_.n("design:type",Object)],dG.prototype,"ytPopupContainerBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],dG.prototype,"ytComponentBehavior",void 0);_.R([_.N({disableElementRegistration:!0,is:"ytd-popup-container"})],dG);
_.J(dG,"ytd-popup-container",function(){if(GYY!==void 0)return GYY;var G=document.createElement("template");_.Z(G,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return GYY=G},{mode:1});var tr5;var zfc={};zfc.YtLogYpcFlowCommandsBehavior=[_.tV.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){_.g(G,KDY)&&(G=_.g(G,KDY))&&(G.serializedTransactionFlowLoggingParams?_.gXv(G.serializedTransactionFlowLoggingParams):G.serializedYpcCancelFlowLoggingParams?(G=G.serializedYpcCancelFlowLoggingParams)&&_.tm("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",G):G.serializedYpcResumeFlowLoggingParams?(G=G.serializedYpcResumeFlowLoggingParams)&&_.tm("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",G):G.serializedYpcPauseFlowLoggingParams?(G=G.serializedYpcPauseFlowLoggingParams)&&
_.tm("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",G):G.serializedYpcRefundFlowLoggingParams?(G=G.serializedYpcRefundFlowLoggingParams)&&TRD("YPC_EVENT_TYPE_START",G):G.serializedYpcDeactivateFlowLoggingParams?(G=G.serializedYpcDeactivateFlowLoggingParams)&&_.tm("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",G):G.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(G=G.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.tm("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",G))},
handleLogYpcFlowDismiss_:function(G){_.g(G,JA1)&&(G=_.g(G,JA1),G.serializedTransactionFlowLoggingParams?_.AAp(G.serializedTransactionFlowLoggingParams):G.serializedYpcCancelFlowLoggingParams?(G=G.serializedYpcCancelFlowLoggingParams)&&_.tm("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",G):G.serializedYpcResumeFlowLoggingParams?(G=G.serializedYpcResumeFlowLoggingParams)&&_.tm("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",G):G.serializedYpcPauseFlowLoggingParams?(G=
G.serializedYpcPauseFlowLoggingParams)&&_.tm("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",G):G.serializedYpcRefundFlowLoggingParams&&(G=G.serializedYpcRefundFlowLoggingParams)&&TRD("YPC_EVENT_TYPE_CANCEL",G))}}];var o51={};o51.YtCancelRecurrenceBehavior=[_.EN.YtComponentBehavior,_.lBz,{attached:function(){var G=this;TuY(this,function(b,I){return G.ypcCancelRecurrenceHandler(b,I)})},
ypcCancelRecurrenceHandler:function(G,b){var I=this;if(!b||!b.ypcCancelRecurrenceEndpoint)return!1;if(!b.ypcCancelRecurrenceEndpoint.params)return _.Xj(Error("Sl")),!0;_.oG(this.hostElement);var h=_.ik.instance,q=_.LL().resolve(_.vf(_.cy));h&&_.PN(h,b)?_.dR(h,b).then(function(l){I.ypcCancelRecurrenceSuccess_(G,b,{data:l})},function(l){I.ypcCancelRecurrenceFailure_(G,b,l)}).thenCatch(function(){_.Xj(Error("Tl"))}):q?q.requestDataForServiceEndpoint(b).then(function(l){I.ypcCancelRecurrenceSuccess_(G,
b,l)},function(l){I.ypcCancelRecurrenceFailure_(G,b,l)}).thenCatch(function(){_.Xj(Error("Tl"))}):_.Xj(Error("Ul"));
return!0},
ypcCancelRecurrenceSuccess_:function(G,b,I){_.iP(this.hostElement);I.data||(I={data:I});I.data&&I.data.actions&&_.Su(this.hostElement,I.data.actions,this.hostElement);I.data.messageRenderer?UKF(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(b=b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.tm("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",b);_.O3(G,"yt-service-request-completed",I)},
ypcCancelRecurrenceFailure_:function(G,b,I){_.iP(this.hostElement);UKF(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.O3(G,"yt-service-request-error",{error:I,params:[G,b]})}}];var iZF=function(G,b){_.bs.call(this,b)};
_.M(iZF,Elc);var PJe={};PJe.YtCompleteTransactionBehavior=[_.EN.YtComponentBehavior,_.lBz,{attached:function(){var G=this;TuY(this,function(b,I){return G.ypcCompleteTransactionHandler(b,I)})},
completeTransaction:function(G,b){var I=this;b={payments_payload:window.btoa(b.integratorData),buybucket_params:G.data.buybucketParams,offer_params:G.data.offerParams};var h=_.LL().resolve(_.cy),q=G.data.completeTransactionEndpoint,l=this.get("ypcCompleteTransactionEndpoint.actions",q);l&&_.Su(this.hostElement,l,this.hostElement);return(l=_.ik.instance)&&_.PN(l,q)?_.dR(l,q,b).then(function(V){return!V||(V==null?0:V.error)?(V=I.get("data.serializedTransactionFlowLoggingParams",G),_.vv(new ct("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
V))):{data:V}}).then(function(V){return I.handleCompleteTransactionSuccess_(V,G)},function(){return I.handleCompleteTransactionFailure_(G)}):h.requestDataForServiceEndpoint(q,b).then(function(V){return I.handleCompleteTransactionSuccess_(V,G)},function(){return I.handleCompleteTransactionFailure_(G)})},
handleCompleteTransactionSuccess_:function(G,b){G.data||(G={data:G});if(G.data.messageRenderer)return _.vv(new iZF(G.data.messageRenderer));if(G.data.trackingParams){var I=_.gL(),h=_.s3();I&&h&&_.dK(I,h,_.VB(G.data.trackingParams))}b=this.get("data.serializedTransactionFlowLoggingParams",b);BRf(b);return _.X8(G)},
handleCompleteTransactionFailure_:function(G){G=this.get("data.serializedTransactionFlowLoggingParams",G);_.FA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G);return _.vv(new ct("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G))},
ypcCompleteTransactionHandler:function(G,b){var I=this;if(!b.ypcCompleteTransactionEndpoint)return!1;if(!b.ypcCompleteTransactionEndpoint.transactionParams)return _.Xj(Error("Vl")),!0;b.ypcCompleteTransactionEndpoint&&b.ypcCompleteTransactionEndpoint.gtmData&&_.aC(b.ypcCompleteTransactionEndpoint.gtmData);var h=_.LL().resolve(_.vf(_.cy));if(h){_.oG(this.hostElement);var q=_.ik.instance;q&&_.PN(q,b)?_.dR(q,b).then(function(l){return!l||(l==null?0:l.error)?(l=I.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
b),_.vv(new ct("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",l))):{data:l}}).then(function(l){_.O3(G,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(b,l)},function(){return I.ypcCompleteTransactionFailure_(b)}):h.requestDataForServiceEndpoint(b).then(function(l){_.O3(G,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(b,l)},function(){return I.ypcCompleteTransactionFailure_(b)})}return!0},
ypcCompleteTransactionSuccess_:function(G,b){_.iP(this.hostElement);b.data||(b={data:b});_.wL(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);b.data.messageRenderer||b.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(G):(_.aC('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",G));b.data.actions&&(G=Kb1(b.data.actions),b=uE1(b.data.actions),G.length&&_.pv(this.hostElement,
G),b.length&&_.Su(this.hostElement,b,this.hostElement))},
ypcCompleteTransactionFailure_:function(G){_.iP(this.hostElement);_.wL(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",G,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(G,b,I){if(b=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",b))b={serializedTransactionFlowLoggingParams:b},I&&(b.errorType=I),_.C1(G,b),_.JM()}}];var dGD={};dGD.YtEndpointHandlerWithYpcBehavior=[_.lBz,_.tV.YtActionHandlerBehavior,[{openWalletDialog:function(G,b,I,h,q,l,V){var D=this,k=_.yO();b=b.replace(/-/g,"+").replace(/_/g,"/");var L=_.m$().get("hl");_.R12(_.Jx(_.Hy),b,k.resolve,q,function(x){l&&l();k.reject(x)},L,function(x){return D.onServerBackendAnalyticEvent_(G,I,x)},this.onDialogClose_.bind(this),h,V);
return k.promise},
openFixFlowDialog:function(G,b,I,h){G=G.replace(/-/g,"+").replace(/_/g,"/");_.Jx(_.Hy).openFixFlowDialog(G,b,I,h)},
onDialogClose_:function(){_.wL(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(G,b,I){_.O3(G,"yt-commerce-action-init-done");b&&_.pv(this.hostElement,[b,{backend_analytics:I}])}}],
_.MD.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(G,b){G=this.get("data.nativeFlowEndpoint",b);b=this.get("data.fallbackEndpoint",b);G?_.pv(this.hostElement,[G]):b&&_.O3(this.hostElement,"yt-navigate",{endpoint:b})}}],
o51.YtCancelRecurrenceBehavior,PJe.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;TuY(this,function(b,I,h){return G.handleYPCEndpoint(b,I,h)});
this.ypcRegisterActionMapJobId_=_.FQ(_.uu,function(){G.registerActionMap(G.buyFlowActionMap_)})},
detached:function(){var G=this;_.uu.cancelJob(this.ypcRegisterActionMapJobId_);_.FQ(_.uu,function(){G.unregisterActionMap(G.buyFlowActionMap_)})},
handleYPCEndpoint:function(G,b,I){var h=b.ypcGetCartEndpoint;if(h){_.US("commerce_transaction");var q=h.gtmId;q&&_.WQ(q);(h=h.gtmData)&&_.aC(h)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",b)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(G,b),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",b)!=null?(this.handleYPCFixInstrumentEndpoint_(G,b),!0):b.ypcPauseSubscriptionCommand?(ewD(this.hostElement,G,b,I),
!0):b.ypcResumeSubscriptionCommand?(c89(this.hostElement,G,b),!0):b.getPaymentInstrumentsParamsCommand?(jeF(this.hostElement,G,b),!0):b.ypcHandleTransactionEndpoint?(hw1(this.hostElement,G,b,I),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(G,b){var I=this;_.sS("ttcr",void 0,"commerce_transaction");b=b.ypcGetCartEndpoint;var h=b.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,q=h.encryptedPurchaseParams,l=h.serializedTransactionFlowLoggingParams,V=h.serializedPaymentsClientParams,D=this.createGetCartResponseFromParams_(h,b.offerParams,l);this.changeButtonState(G,!0);_.i1(this.openWalletDialog(G,q,h.ypcLogWalletAnalyticDataEndpoint,l,function(){I.changeButtonState(G,!1)},function(){I.changeButtonState(G,
!1)},V).then(function(k){return I.handleBuyFlowCompleteCallback_(G,D,k)},function(){return I.handleOnLoadError(D)}).then(function(k){return void I.handlePostPurchaseSuccess_(G,D,k)},function(k){return void I.handlePostPurchaseError_(k)}),function(){I.changeButtonState(G,!1);
G instanceof Element&&_.O3(G,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(G,b,I){var h=G.completeTransactionEndpoint,q=G.handleTransactionEndpoint;b={data:{offerParams:window.btoa(b),serializedTransactionFlowLoggingParams:I}};q?b.data.handleTransactionEndpoint=q:b.data.completeTransactionEndpoint=h;G.onCartDismissCommand&&(b.data.onCartDismissCommand=G.onCartDismissCommand);return b},
onGetCartServiceRequestCompleted_:function(G,b){var I=this,h=G.target;if(b&&b.data&&b.data.messageRenderer)_.iP(this.hostElement),this.handleMessageRenderer_(b.data.messageRenderer),this.changeButtonState(h,!1);else{var q=this.get("data.encryptedPurchaseParams",b),l=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",b),V=this.get("data.ypcLogWalletAnalyticDataEndpoint",b),D=this.get("data.serializedPaymentsClientParams",b),k=this.getLoggingParams_(b);if(k||q||l)G.stopPropagation(),_.sS("ttcr",
void 0,"commerce_transaction"),q||_.iP(this.hostElement),this.changeButtonState(h,!1),l?_.wL(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.wy("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:l}}},this]):q&&(this.changeButtonState(h,!0),G=null,G=this.openWalletDialog(h,q,V,k,function(){_.iP(I.hostElement);I.changeButtonState(h,!1)},function(){_.iP(I.hostElement);
I.changeButtonState(h,!1)},D),_.i1(G.then(function(L){return I.handleBuyFlowCompleteCallback_(h,b,L)},function(){return I.handleOnLoadError(b)}).then(function(L){return I.handlePostPurchaseSuccess_(h,b,L)},function(L){return I.handlePostPurchaseError_(L)}),function(){I.changeButtonState(h,!1);
_.O3(h,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(G,b){b&&b.endpoint&&b.endpoint.ypcGetCartEndpoint&&!b.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",b.endpoint.ypcGetCartEndpoint)&&_.Su(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",b.endpoint.ypcGetCartEndpoint)],G.target),_.oG(this.hostElement),this.changeButtonState(G.target,!0))},
onServiceRequestError_:function(G,b){if(b&&b.params&&b.params.length){b=_.e(b.params);for(var I=b.next();!I.done;I=b.next())if((I=I.value)&&I.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)&&_.Su(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)],G.target);_.iP(this.hostElement);this.changeButtonState(G.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(G,b,I){var h=I.integratorData;return h==null||h===""||I.error!=null?(h=this.getLoggingParams_(b),String(I.error)==="-1"?(b.data.onCartDismissCommand&&_.Su(this.hostElement,[b.data.onCartDismissCommand],G),_.vv(new ct("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",h,!0))):_.vv(new ct("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",h))):b.data.handleTransactionEndpoint?qp5(this.hostElement,b.data.handleTransactionEndpoint,{payments_payload:h,funds_guarantee_callback_client_data:I.integratorClientCallbackData}):
this.completeTransaction(b,I)},
handlePostPurchaseSuccess_:function(G,b,I){b=I.data;var h=!1,q,l;if(b&&((q=b.command)==null?0:(l=q.commandExecutorCommand)==null?0:l.commands)){var V,D;q=(V=b.command)==null?void 0:(D=V.commandExecutorCommand)==null?void 0:D.commands;for(V=0;V<q.length;V++)if(_.g(q[V],_.lbO)){h=!0;break}}h||(b&&b.gtmDatas&&b.gtmDatas.length?_.aC(b.gtmDatas[0]):_.aC('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));I.data&&I.data.actions&&(b=Kb1(I.data.actions),I=uE1(I.data.actions),b.length&&
_.pv(this.hostElement,b),I.length&&_.Su(this.hostElement,I,G))},
handlePostPurchaseError_:function(G){G&&G.payload&&G.payload.isUserDismiss||_.K1(Error("Xl"))},
handleOnLoadError:function(G){G=this.getLoggingParams_(G);return _.vv(new ct("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",G))},
getLoggingParams_:function(G){return this.get("data.serializedTransactionFlowLoggingParams",G)},
handleMessageRenderer_:function(G){var b=_.Rj(G,"renderer"),I=_.wy("openPopupConfig");b==="confirmDialogRenderer"&&I&&_.wL(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:I.popupTypeMap[b],popup:G}},this])},
handleYPCFixInstrumentEndpoint_:function(G,b){var I=this,h=b.ypcFixInstrumentEndpoint;b=h.encryptedFixInstrumentParameters;this.logFixFopEvent_(h,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(G,!0);this.openFixFlowDialog(b,function(q,l){I.onFixFlowCompleteCallback_(h,q,l)},function(){return I.changeButtonState(G,!1)},function(){I.changeButtonState(G,!1);
I.logFixFopEvent_(h,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(G,b,I){var h=_.Ge("payments.business.integration.scenario.FixInstrument");if(b==h.IntegratorCallbackType.ON_COMPLETE){b="FIX_FOP_EVENT_TYPE_CANCEL";var q=null;I.error!=null?I.error!=h.OnCompleteCallbackError.USER_CANCELLED&&(_.Su(this.hostElement,[G.errorAction],this.hostElement),b="FIX_FOP_EVENT_TYPE_FAILURE",q="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Su(this.hostElement,[G.successAction],this.hostElement),b="FIX_FOP_EVENT_TYPE_SUCCESS");_.Su(this.hostElement,[G.onFinishAction],
this.hostElement);this.logFixFopEvent_(G,b,q)}},
logFixFopEvent_:function(G,b,I){(G=G.serializedFixFopLoggingParams)?(b={eventType:b,serializedFixFopLoggingParams:G},I!=null&&(b.errorType=I),_.C1("fixFopFlow",b),_.JM()):_.K1(Error("Yl"))},
changeButtonState:function(G,b){_.U("enable_ypc_spinners")&&G&&(G.is==="yt-button-renderer"||G.is==="ytd-button-renderer")&&(G.disabled=b)}}];var yDD=function(G){this.JSC$32866_clientRoot=G;this.feedbackCollectorActionMap={"yt-help-dialog-requested":v4F,"yt-feedback-dialog-requested":kw1,"yt-signal-action-help":Le8,"yt-signal-action-send-feedback":Qef,"yt-send-feedback-action":fID,"yt-user-feedback-endpoint":Ttc};_.je(_.I1.getInstance(),this.feedbackCollectorActionMap,this.JSC$32866_clientRoot)},rDL;var FdL=function(G){this.JSC$32871_clientRoot=G;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Btf.bind(null,this.JSC$32871_clientRoot),"yt-signal-action-delete-all-downloads":seY,"yt-signal-action-delete-download":g4K,"yt-signal-action-delete-playlist-download":ME1,"yt-signal-action-install-pwa":P0D,"yt-signal-action-refresh-downloads":o49,"yt-offline-video-endpoint":y81,"yt-offline-playlist-endpoint":FeF,"yt-update-local-app-setting-command":WeY,"yt-offline-orchestration-action-command":Nte,
"yt-signal-action-undo-delete-download":tEF,"yt-local-watch-history-command":J8K};_.je(_.I1.getInstance(),this.downloadManagerActionMap,this.JSC$32871_clientRoot);_.Py.instance=new _.Py},HZW;var y_=function(){var G=_.a.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};
_.M(y_,_.a);_.m=y_.prototype;
_.m.ready=function(){_.U("polymer_enable_mdx")&&(sAY({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.U("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.U("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.U("enable_cast_short_lived_lounge_token")}),_.f1("yt-remote-connection-change",this.handleConnectionChange_,this),_.f1("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=iW9())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.m.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.m.handleConnectionChange_=function(G){(this.mdxConnected=G)?(G=Mff(),!G&&jA9()&&l_L()&&(G={key:"cast-selector-receiver",name:l_L()}),G=G.name):G=null;this.receiverName=G;_.VQ(this.remoteApi_);(this.remoteApi_=iW9())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.m.handleReceiverAvailabilityChange_=function(){var G=Ake();jA9()&&_.Q4("yt-remote-cast-available")&&G.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=G.length>0};
_.m.handleRemoteQueueChange_=function(){var G=this.currentVideoId_,b=this.currentListId_,I=Fh(this.remoteApi_);this.currentVideoId_=I.videoId;this.currentListId_=I.listId;this.currentVideoId_&&_.wL(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.U("polymer_enable_mdx_queue")?this.currentListId_:null,G,b])};
_.m.handleAddToQueueAction_=function(G){G=_.g(G,Z$c);this.remoteApi_&&(G.videoId?this.remoteApi_.addVideo(G.videoId):G.playlistId&&this.remoteApi_.addPlaylist(G.playlistId))};
_.m.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.m.handleInsertInQueueAction_=function(G){G=_.g(G,tCW);this.remoteApi_&&G.videoId&&this.remoteApi_.JSC$20206_insertVideo(G.videoId)};
_.m.handleRemoveFromQueueAction_=function(G){G=_.g(G,z9W);this.remoteApi_&&G.videoId&&this.remoteApi_.JSC$20206_removeVideo(G.videoId)};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],y_.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H(),_.n("design:type",Object)],y_.prototype,"appId",void 0);_.R([_.H(),_.n("design:type",Boolean)],y_.prototype,"mdxConnected",void 0);_.R([_.H(),_.n("design:type",Boolean)],y_.prototype,"receiverAvailable",void 0);_.R([_.H(),_.n("design:type",Object)],y_.prototype,"receiverName",void 0);_.R([_.H(),_.n("design:type",Object)],y_.prototype,"currentVideoId_",void 0);
_.R([_.H(),_.n("design:type",Object)],y_.prototype,"currentListId_",void 0);_.R([_.g8({is:"yt-mdx-manager",disableElementRegistration:!0})],y_);_.J(y_,"yt-mdx-manager",void 0,{mode:2});var Wdc;var aq3;var rG=function(){var G=_.a.apply(this,arguments)||this;G.APP_IDS={ytr:3,ytm:5};G.JSC$21436_timeoutId_=0;G.actionMap={"yt-open-create-family-dialog":"open"};return G};
_.M(rG,_.a);_.m=rG.prototype;_.m.created=function(){FX3(2200)};
_.m.detached=function(){this.observer_&&this.observer_.disconnect()};
_.m.open=function(G,b){var I=this,h=G.serializedYpcFamilyCreateLoggingParams;this.JSC$21436_timeoutId_=setTimeout(this.abort_.bind(this,G.postFlowErrorEndpoint,h),3E4);b&&(this.onReadyCallback_=b);var q=_.Eo(this.hostElement).querySelector("#unicorn-iframe");h&&h&&fG9("ypcFamilyCreateFlowStarted",h);_.hGj("family_creation",function(){var l=_.Ge("gapi.family_creation.render");_.Ge("gapi.config.update")("iframes/family_creation/url",I.getFamilyCreationUrlWithUnicornParams_());var V=3;G.appId&&G.appId in
I.APP_IDS&&(V=I.APP_IDS[G.appId]);V={authUser:_.wy("SESSION_INDEX")||0,clientId:V,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.wy("HL"),initialflow:[4,5,6,7],m:I.isMobile?1:0,onFlowComplete:I.onUnicornFlowComplete_.bind(I,G.postFlowSuccessEndpoint,h),onError:I.onUnicornFlowError_.bind(I,G.postFlowErrorEndpoint,h),onReady:I.onUnicornFlowReady_.bind(I,G.referencePcidParams)};l(q,V)})};
_.m.close=function(){_.Eo(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.m.onUnicornFlowComplete_=function(G,b){this.close();b&&b&&fG9("ypcFamilyCreateFlowSucceeded",b);_.O3(this.hostElement,"yt-navigate",{endpoint:G})};
_.m.onUnicornFlowError_=function(G,b){this.close();b&&fG9("ypcFamilyCreateFlowCancelled",b);_.O3(this.hostElement,"yt-navigate",{endpoint:G})};
_.m.onUnicornFlowReady_=function(G){var b=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();G&&_.Ge("gapi.family_creation.setConfig")(0,G);this.observer_=new MutationObserver(function(){_.Eo(b.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Eo(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Eo(this.hostElement).querySelector("#dialog").open()};
_.m.getFamilyCreationUrlWithUnicornParams_=function(){return _.wy("YTR_FAMILY_CREATION_URL")};
_.m.getCurrentUrl_=function(){return document.location.href};
_.m.abort_=function(G,b){this.clearTimeout_();this.onUnicornFlowError_(G,b)};
_.m.clearTimeout_=function(){clearTimeout(this.JSC$21436_timeoutId_)};
_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],rG.prototype,"ytActionHandlerBehavior",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],rG.prototype,"isMobile",void 0);_.R([_.H(),_.n("design:type",Object)],rG.prototype,"onReadyCallback_",void 0);_.R([_.H(),_.n("design:type",Object)],rG.prototype,"observer_",void 0);_.R([_.g8({is:"yt-create-family-dialog",disableElementRegistration:!0})],rG);
_.J(rG,"yt-create-family-dialog",function(){if(aq3===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var b=G.content,I=b.insertBefore;Wdc===void 0&&(Wdc=document.createElement("template"));var h=Wdc;I.call(b,h.content.cloneNode(!0),G.content.firstChild);aq3=G}G=aq3;return G},{mode:2});var NwK;var Y_j;var FR=function(){var G=_.a.apply(this,arguments)||this;G.STEP=1;G.BLOCK_ON=80;G.MIN_PROGESS=0;G.MAX_PROGESS=100;return G};
_.M(FR,_.a);_.m=FR.prototype;_.m.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.m.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));_.LL().addProvider({provide:kpf,useValue:this})};
_.m.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.m.finish=function(){var G=this;this.progress=this.MAX_PROGESS;Ke5(function(){G.progress==G.MAX_PROGESS&&(G.hostElement.hidden=!0)})};
_.m.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.kV.Object.defineProperties(FR.prototype,{progress:{configurable:!0,enumerable:!0,set:function(G){this.progress_=G;var b="scaleX("+G/this.MAX_PROGESS+")",I=_.Eo(this.hostElement).querySelector("#progress").style;I.transform=b;I.webkitTransform=b;this.hostElement.setAttribute("aria-valuenow",String(G))},
get:function(){return this.progress_}}});
_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],FR.prototype,"ytComponentBehavior",void 0);_.R([_.g8({is:"yt-page-navigation-progress",disableElementRegistration:!0})],FR);
_.J(FR,"yt-page-navigation-progress",function(){if(Y_j===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var b=G.content,I=b.insertBefore;NwK===void 0&&(NwK=document.createElement("template"));var h=NwK;I.call(b,h.content.cloneNode(!0),G.content.firstChild);Y_j=G}G=Y_j;return G},{mode:2});var CJc={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"},JD8={"font-size":"12px","font-style":"italic"},Kd3={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.OfD=function(){return _.c(function(G){_.ip(G)})};var uC9=_.C(function(G){var b=function(){return G.data().subtext},I={};
return _.v("snackbar-view-model",{class:_.pG("snackbarViewModelHost",G.className)},_.v("div",{class:_.pG("snackbarViewModelEngagementBarWrapper",G.className)},_.v(_.Q,{cond:function(){return G.data().image},
then:function(h){return _.v(_.Fu,{data:h,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.v(_.Q,{cond:function(){return G.data().imageContent},
then:function(){return _.v("div",{class:"snackbarViewModelAvatarContainer"},_.v(_.VX,{data:function(){return G.data().imageContent}},{decoratedAvatarViewModel:_.w1}))}}),_.v("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.v("div",{class:_.pG((I.snackbarViewModelTitle=!0,I.snackbarViewModelTitleWithSubtext=b,I))},_.v(_.IS,{text:function(){return G.data().text}})),_.v(_.Q,{cond:b,
then:function(){return _.v("div",{class:"snackbarViewModelSubtext"},_.v(_.IS,{text:function(){return b()}}))}})),_.v(_.Q,{cond:function(){return G.data().buttons},
then:function(){return _.v("div",{class:"snackbarViewModelButtonClassWrapper"},_.v(_.VX,{data:function(){return G.data().buttons}},{buttonViewModel:function(h){return _.v(_.sQ,{data:h.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:G.target})}}))}})))},"kk");_.JN(_.C(function(){function G(W,O,K){A(W);y(K);T("in");x(!0);b(W,O);V=setTimeout(function(){I()},O)}
function b(W,O){var K,u=(K=W.text)==null?void 0:K.content;W=_.BH(W.rendererContext);u&&(O={label:u,command:W,durationMs:O},_.LL().resolve(_.c9).enqueue(O))}
function I(W){T("out");W&&clearTimeout(V)}
function h(){I(!0)}
function q(W){if(W){var O=W.snackbarViewModel,K=W.durationMs,u=W.target;K||(K=3E3);O&&(W=_.LL().resolve(_.vf(_.lw)))&&W.enqueue({isOpened:L,open:function(){G(O,K,u)},
close:I},0)}}
var l=_.VF("snackbar-container"),V=void 0,D=_.e(_.ZZ(!1,void 0,"mDc5N")),k=D.next().value;D=D.next().value;var L=k,x=D;k=_.e(_.ZZ("out",void 0,"FpOs5e"));var f=k.next().value,T=k.next().value;k=_.e(_.ZZ(void 0,void 0,"jIDRob"));var B=k.next().value,A=k.next().value;k=_.e(_.ZZ(void 0,void 0,"kOA3Mb"));var t=k.next().value,y=k.next().value,F=_.Xu(function(){if(f()==="out"){x(!1);A(void 0);y(void 0);var W=_.LL().resolve(_.vf(_.lw));W&&EmF(W,0)}});
_.K3(function(){var W=_.LL().resolve(_.vf(_.iyf));W&&(W.showSnackbarFn=q,W.closeSnackbarFn=h)});
return _.v("snackbar-container",{class:"ytSnackbarContainerHost",el:l},_.v(_.Q,{cond:function(){return L()&&!!B()},
then:function(){var W={};return _.v("div",{class:_.pG("ytSnackbarContainerSnackbarContainer",(W.ytSnackbarContainerMobile=!1,W.ytSnackbarContainerPivotBar=function(){var O;return!((O=_.LL().resolve(_.vf(_.Pee)))==null||!O())},W.ytSnackbarContainerOpened=function(){return L()&&f()==="in"},W.ytSnackbarContainerClosed=function(){return L()&&f()==="out"},W)),
"on:animationend":F},_.v(uC9,{data:function(){return B()},
target:function(){return t()}}))}}))},"lk"),"snackbar-container");_.JN(_.IoA,"yt-tooltip");var Rf5=_.LTa.ephemeralActionSelector;_.JN(_.C(function(){var G=_.m2(Rf5);return _.v("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var b;return(b=G())==null?void 0:b.announcement})},"mk"),"yt-ephemeral-actions");var v19=new Map;var X5W=function(G,b){var I=this;this.handleError=G;this.logEventInternal=b;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){I.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
X5W.prototype.logError=function(G){this.handleError(G)};
X5W.prototype.logEvent=function(G,b){switch(G){case "IDB_DATA_CORRUPTED":_.U("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":_.U("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":n5K(this,b);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":G=Object.assign({},b,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",G)}};
var n5K=function(G,b){_.v9.getInstance().estimate().then(function(I){I=Object.assign({},b,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:QTW(I==null?void 0:I.usage),deviceStorageQuotaMbytes:QTW(I==null?void 0:I.quota)});G.logEventInternal("idbQuotaExceeded",I)})};var OZK=_.C(function(G){var b=_.ee("yt-draggable"),I=G.onDrag,h=G.onDragStart,q=G.onDragEnd,l=_.N5(G,{allowClicks:!1,dragThreshold:5}),V=l.dragThreshold,D=l.allowClicks;G=l.children;l=l.className;var k=void 0,L=void 0,x=new _.ue(0,0),f=!1;_.K3(function(){k=new _.CE(b.value);L=new _.QR(B);T(k,L);if(D()){_.WHO(k,V());var t;(t=b.value)==null||t.addEventListener("click",A,{capture:!0})}_.uI(function(){var y;(y=k)==null||y.dispose();if(D()){var F;(F=b.value)==null||F.removeEventListener("click",A,{capture:!0})}})});
var T=function(t,y){_.cv(t,"earlycancel",function(){D()&&(f=!1)});
_.cv(t,"start",function(F){h==null||h(F);F.defaultPrevented||D()&&(f=!0)});
_.cv(t,"beforedrag",function(F){k&&L&&(F.preventDefault(),x=new _.ue(F.clientX-k.startX,F.clientY-k.startY),L.start())});
_.cv(t,"end",function(){y.stop();q==null||q();x=new _.ue(0,0)})},B=function(){x&&I(x)},A=function(t){f&&(f=!1,t.stopPropagation(),t.preventDefault())};
return _.v("yt-draggable",{el:b,class:_.pG("ytDraggableComponentHost",l)},G)},"nk");var wle=_.C(function(G){var b=_.e(_.ZZ(0,void 0,"Qf0tbc")),I=b.next().value,h=b.next().value;b=function(q){var l={},V={};return _.v(OZK,{className:_.pG("ytdMiniplayerComponentResizer",(l.ytdMiniplayerComponentResizerDisabled=function(){return q===G.horizontalAlignment()||q===G.verticalAlignment()},l.ytdMiniplayerComponentResizerNorth=q==="north",l.ytdMiniplayerComponentResizerEast=q==="east",l.ytdMiniplayerComponentResizerSouth=q==="south",l.ytdMiniplayerComponentResizerWest=q==="west",l)),
onDragStart:function(){h(G.currentMiniplayerSize());if(G.onResizeStart)G.onResizeStart()},
onDrag:function(D){q!=="north"&&q!=="west"||D.scale(-1);var k;D=(k=q==="north"||q==="south")?D.y:D.x;var L=G.currentAspectRatio();k&&L>=1?D*=L:!k&&L<1&&(D/=L);k=D;G.onResize(I()+k)}},_.v("div",{class:_.pG("ytdMiniplayerComponentResizerCorner",(V.ytdMiniplayerComponentResizerNorthCorner=q==="north",V.ytdMiniplayerComponentResizerEastCorner=q==="east",V.ytdMiniplayerComponentResizerSouthCorner=q==="south",V.ytdMiniplayerComponentResizerWestCorner=q==="west",V))}))};
return _.v("div",{class:"ytdMiniplayerComponentResizers"},b("north"),b("east"),b("south"),b("west"))},"ok");var E58=16/9;_.JN(_.C(function(){var G=_.ee("ytd-miniplayer"),b=_.e(_.ZZ(new _.Pa(NaN,NaN),void 0,"NHaFyc")),I=b.next().value,h=b.next().value;b=_.e(_.ZZ(!1,void 0,"a0rwG"));var q=b.next().value,l=b.next().value;b=_.e(_.ZZ(!1,void 0,"f1jSeb"));var V=b.next().value,D=b.next().value;b=_.e(_.ZZ(!1,void 0,"JojXKc"));var k=b.next().value,L=b.next().value;b=_.e(_.ZZ(!1,void 0,"FjS8Db"));var x=b.next().value,f=b.next().value;b=_.e(_.ZZ(!1,void 0,"z5WG9e"));var T=b.next().value,B=b.next().value;b=_.e(_.ZZ(!1,void 0,"eUzZd"));
var A=b.next().value,t=b.next().value;b=_.e(_.ZZ(E58,void 0,"XsBIy"));var y=b.next().value,F=b.next().value,W=_.e(_.ZZ(!1,void 0,"FJSvse"));b=W.next().value;var O=W.next().value;W=_.e(_.ZZ(!1,void 0,"VDUFL"));var K=W.next().value,u=W.next().value;W=_.e(_.ZZ(void 0,void 0,"nFeh4b"));var w=W.next().value,$a=W.next().value;W=_.e(_.ZZ(Q5()?"west":"east",void 0,"T7co7c"));var ev=W.next().value,LO=W.next().value;W=_.e(_.ZZ("south",void 0,"QDUsLb"));var td=W.next().value,xa=W.next().value;W=_.e(_.ZZ(400,
void 0,"F7Vdze"));var Uj=W.next().value,W2=W.next().value,is=_.LL().resolve(_.zO).miniplayerPropSignalMap[0],su=is.data,an=is.externalPlaylistData;W=is.toastData;var A5=is.playabilityStatus,XO=is.isReadyToResume,kb=is.isDisabled,rz=is.watchWhile,on=is.playerVe,Ac=is.expandVe,U1=is.closeVe,mp=is.readyToResumeVe,bn=is.readyToResumeCloseVe,xb=is.repositionVe,j8=is.resizeVe;is=_.e(_.bk(XO));var BX=is.next().value,I5=is.next().value,ys=_.m2(_.PH.persistentPanelVisibleSelector),nQ=!1,vX=!1,cX;_.K3(function(){h(_.eL());
G.value.addEventListener("animationend",function(XJ){XJ.target===G.value&&(B(!1),t(!1))});
sTa(G.value)});
_.mt("yt-window-resized",function(XJ){XJ&&h(XJ)});
var Ga=function(){cX&&F(cX.getVideoAspectRatio())},wX=function(){if(cX){var XJ=cX.getPlayerState()===1;
BX()&&XJ&&I5(!1)}},TA=function(){var XJ=Ac();
if(XJ){var tc=_.gL(3);tc&&_.WT(tc,XJ)}},s1=function(){var XJ=U1(),tc=bn();
XJ&&_.WT(_.gL(3),XJ);XO()&&tc&&_.WT(_.gL(3),tc)};
_.mt("yt-activate-miniplayer",function(XJ){var tc;return _.c(function(m9){if(m9.nextAddress==1)return q()?m9.return():m9.yield((tc=_.LL().resolve(_.zO).getPlayerElement())==null?void 0:tc.getPlayerPromise(),2);cX=m9.yieldResult;if(!cX)return m9.return();!K()&&_.U("kevlar_watch_while_v2")&&(xa(XJ&&!_.U("kevlar_watch_while_bottom_align")?"north":"south"),LO(Q5()?"west":"east"));var Wr=cX;Wr.addEventListener("onVideoDataChange",Ga);Wr.addEventListener("onStateChange",wX);Wr.addEventListener("onExpandMiniplayer",
TA);Wr.addEventListener("onCloseMiniplayer",s1);F(cX.getVideoAspectRatio());l(!0);UL3()||B(!0);_.ip(m9)})});
_.mt("yt-deactivate-miniplayer",function(XJ,tc){return _.c(function(m9){if(!q())return m9.return();l(!1);I5(!1);t(XJ);f(!1);D(!1);if(cX){var Wr=cX;Wr.removeEventListener("onVideoDataChange",Ga);Wr.removeEventListener("onStateChange",wX);Wr.removeEventListener("onExpandMiniplayer",TA);Wr.removeEventListener("onCloseMiniplayer",s1)}UL3()||tc?tc&&B(!1):B(!0);_.ip(m9)})});
var pA=function(){return!(rz()&&_.U("kevlar_watch_while_modern"))},yK=function(){var XJ;
return!((XJ=an())==null||!XJ.contents)},CN=function(){var XJ=Uj();
var tc=I();tc=Math.min(Math.min(tc.width,tc.height)-32,720);var m9=y(),Wr=pA(),U8=yK()&&V(),J4=Math.min(XJ,tc);XJ=new _.Pa(192,Wr?116:192);m9=new _.Pa(U8?E58:m9,1);J4=new _.Pa(J4,Wr?J4-76:J4);J4=m9.aspectRatio()>J4.aspectRatio()?J4.width/m9.width:J4.height/m9.height;m9=m9.scale(J4);XJ.width<=m9.width&&XJ.height<=m9.height||(XJ=m9.aspectRatio()<=XJ.aspectRatio()?XJ.width/m9.width:XJ.height/m9.height,m9.scale(XJ),m9.width=Math.min(m9.width,tc),m9.height=Math.min(m9.height,tc));return new _.Pa(m9.width,
_.Ak(192,m9.height+Z4F(Wr,U8),720))},SG=function(){var XJ=CN(),tc=pA(),m9=yK()&&V();
return new _.Pa(XJ.width,XJ.height-Z4F(tc,m9))},Va=function(){var XJ=function(tc){tc.target===G.value&&x()&&(f(!1),G.value.removeEventListener("transitionend",XJ))};
UL3()||(G.value.addEventListener("transitionend",XJ),f(!0));D(!V())};
_.K0(function(){var XJ=on(),tc=_.gL(3),m9=_.s3(3);if(tc&&m9&&XJ){_.dK(tc,m9,XJ);m9=xb();var Wr=j8(),U8=Ac(),J4=U1(),f0=bn();U8&&J4&&f0&&(_.yn(tc,XJ,[U8,J4,f0]),_.FT(tc,[U8,J4]));m9&&Wr&&_.yn(tc,XJ,[m9,Wr])}},"UBpUDd");
_.K0(function(){var XJ=mp();if(XJ){var tc=_.gL(0),m9=_.s3(0);tc&&m9&&(_.dK(tc,m9,XJ),_.FT(tc,[XJ]))}},"fQpBzb");
is={};return _.v("ytd-miniplayer",{el:G,class:_.pG("ytdMiniplayerComponentHost",(is.ytdMiniplayerComponentVisible=function(){return(q()||T())&&!(rz()&&_.U("kevlar_watch_while_counterfactual"))},is.ytdMiniplayerComponentAnimatingSnap=k,is.ytdMiniplayerComponentAnimatingPlaylistExpand=x,is.ytdMiniplayerComponentAnimatingFade=T,is),function(){if(T()){var XJ=td();
var tc=q(),m9=A();XJ=tc?XJ==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":m9?XJ==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":XJ==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else XJ="";return XJ}),
style:_.Ir({top:function(){return td()==="north"?"16px":""},
right:function(){var XJ=ev(),tc=ys();tc=(tc===void 0?0:tc)&&!Q5()?400:0;return XJ==="east"?16+tc+"px":""},
bottom:function(){return td()==="south"?"16px":""},
left:function(){var XJ=ev(),tc=ys();tc=(tc===void 0?0:tc)&&Q5()?400:0;return XJ==="west"?16+tc+"px":""},
width:function(){return CN().width+"px"},
height:function(){return CN().height+"px"},
transform:function(){var XJ=w();return XJ?"translate("+XJ.x+"px, "+XJ.y+"px)":""}})},_.v("div",{class:"ytdMiniplayerComponentContent"},_.v(OZK,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(XJ){var tc=Mge(ev(),td(),I(),CN(),w()),m9=SG();Math.abs(XJ.clientY-(tc.y+m9.height))>15?(O(!0),XJ=_.gL(3),tc=xb(),nQ||(nQ=!0,XJ&&tc&&_.FT(XJ,[tc])),XJ&&tc&&_.WT(XJ,tc)):XJ.preventDefault()},
onDrag:function(XJ){$a(XJ)},
onDragEnd:function(){var XJ=g1Y(Mge(ev(),td(),I(),CN(),w()),I(),CN()),tc=AKj(ev(),td(),I(),CN(),ys()),m9=AKj(XJ.horizontalAlignment,XJ.verticalAlignment,I(),CN(),ys());m9=new _.ue(m9.x-tc.x,m9.y-tc.y);var Wr;tc=tc.y+(((Wr=w())==null?void 0:Wr.y)||0)+CN().height/2;var U8=function(){ev()===XJ.horizontalAlignment&&td()===XJ.verticalAlignment||u(!0);LO(XJ.horizontalAlignment);xa(XJ.verticalAlignment);$a(void 0)},J4=function(f0){f0.target===G.value&&k()&&(L(!1),U8(),G.value.removeEventListener("transitionend",
J4))};
O(!1);td()==="south"&&tc>I().height?(U8(),_.LL().resolve(_.zO).close()):(G.value.addEventListener("transitionend",J4),L(!0),$a(m9))}},_.v(_.Q,{cond:q,
then:function(){return _.v(_.BhW,{isDisabled:kb,playabilityStatus:A5,size:SG})}}),_.v(_.Q,{cond:pA,
then:function(){return _.v(_.fO3,{isReadyToResume:BX,data:su,expanded:V,onExpandClick:Va,playlistData:an})}}),_.v(_.Q,{cond:b,
then:function(){return _.v("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.v(_.Q,{cond:function(){return yK()&&V()||x()},
then:function(){return _.v(_.oIF,{className:"ytdMiniplayerComponentPlaylistPanel",data:an,hideHeaderText:!0,withinMiniplayer:!0})}}),_.v("div",{class:"ytdMiniplayerComponentToast"},_.v(_.U99,{toastData:W}))),_.v(wle,{onResize:function(XJ){W2(_.Ak(192,XJ,720))},
onResizeStart:function(){var XJ=_.gL(3),tc=j8();vX||(vX=!0,XJ&&tc&&_.FT(XJ,[tc]));XJ&&tc&&_.WT(XJ,tc)},
currentAspectRatio:y,currentMiniplayerSize:Uj,horizontalAlignment:ev,verticalAlignment:td}))},"rk"),"ytd-miniplayer",{});var plf=_.PH.persistentPanelVisibleSelector,HJ=function(){var G=_.a.apply(this,arguments)||this;G.tabGesturesIsActive=!1;G.persistentPanelEnabled=_.U("enable_ai_companion");G.hasDelegation=!1;G.isFrostedGlassInitialized=!1;G.frostedGlassExp=_.U("web_frosted_glass");G.hasPendingWatchNavigation=!1;G.mastheadHiddenFocusWithinKillswitch=_.U("web_masthead_hidden_focus_within_killswitch");G.clientOnlyWizTooltipsEnabled=_.U("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
G.scrollAtTop=!0;G.guideScrollTop=0;G.isTheaterModeSession=_.Sk("START_IN_THEATER_MODE");G.iMaxTheaterMode=_.U("web_watch_imax_theater_mode");G.isFullWindowSession=_.Sk("START_IN_FULL_WINDOW_MODE");G.hasCreateFamilyDialog=!1;G.mastheadHeight=56;G.networkStatusManager=new _.IB;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(b){var I=_.Q$3.instance,h=_.g(b,_.U3Q);return h?_.U("use_rta_manager_for_async")&&
adY()?ZEY(I,h,b.clickTrackingParams):MP1(I,h,b.clickTrackingParams):_.vv(Error("pi"))}};
G.isFrostedGlassDisabled=!1;G.isChannelOrPlaylistPage=!1;return G};
_.M(HJ,_.a);_.m=HJ.prototype;_.m.created=function(){var G=_.LL();_.U("kevlar_clear_duplicate_pref_cookie")&&_.FQ(_.uu,function(){var b=_.di.get("PREF");b&&!/f\d=/.test(b)&&(b=_.UG("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=b?"PREF=null;domain="+b+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.U("gzip_gel_with_worker")&&_.$5X();_.U("jspb_serialize_with_worker")&&ecK();_.U("web_worker_availability_check")&&LXj();_.U("nwl_init_killswitch")||lm8().then(function(){_.uu.addLowPriorityJob(Fba)});
this.pageManagerAttachedPromise=_.yO();this.ytdAppBehavior.loadDepsPromise=_.oT([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.GB(this.onThrottledScroll,200,this);_.U("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);$oD();woj=!!_.Ge("ytappsettings.initialized");Tj=_.Ge("ytappsettings.previousValue");Xve=_.Ge("ytappsettings.previousSnapshotTime");woj||(woj=!0,$K3());CXW();Jk5();_.OB("DEFERRED_DETACH",
_.U("kevlar_tuner_should_defer_detach"));_.OB("REUSE_COMPONENTS",!0);_.OB("STAMPER_STABLE_LIST",!0);_.OB("SCHEDULED_LAZY_LIST",!0);_.OB("openPopupConfig",zNa);_.OB("useClickHandler",!0);_.U("kevlar_shell_cleanup")&&_.uu.addLowPriorityJob(C$1.bind(this,_.hd.caches));_.Sk("IS_SHELL_LOAD")&&_.Tm({shellStartupDurationMs:Math.round((0,_.Li)()-_.vT())});SpK(this.networkStatusManager);_.U("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",uiK(CJc)),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!",
uiK(JD8)),console.log("%cVisit http://go/join-youtube-web to apply today.",uiK(Kd3)));_.FL8(G.resolve(_.Vr),1E3)};
_.m.ready=function(){var G=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var b=T5K();b&&!_.U("external_fullscreen_killswitch")&&document.addEventListener(b,this.setFullscreen.bind(this));(b=window.matchMedia("(prefers-color-scheme: dark)"))&&b.addEventListener&&b.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(b=_.LL().resolve(_.vf(_.BAB)))b.subscribe("navigation-start",
function(I){I.destinationPageSubtype==="watch"&&(G.hasPendingWatchNavigation=!0)}),b.subscribe("navigation-end",function(I){I.destinationPageSubtype==="watch"&&(G.hasPendingWatchNavigation=!1)})};
_.m.attached=function(){var G=this;_.mq().processSignal("ci");_.U("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.DEn?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.IA(_.Arq(),"SUCCESS");this.updateIconSet();_.R3(this.guideInnerContent,!1);_.PQ().initVisibilityObserver();this.guideService.guideElement=this.guide;var b=document.createElement("ytd-miniplayer"),I=_.Eo(this.hostElement).querySelector("#content");
_.Eo(this.hostElement).insertBefore(b,I);_.mq().processSignal("ma");_.LL().resolve(_.zO).init(b);this.persistentPanelEnabled&&_.WuL(_.LL().resolve(_.RF),this.persistentPanelContainer,"APP");_.Sk("IS_SHELL_LOAD")&&(I=document.createElement("ytd-network-status-banner"),_.Eo(this.hostElement).insertBefore(I,b));_.U("kevlar_right_click_on_lockups")&&_.GQ._onCaptureClick&&document.addEventListener("contextmenu",_.GQ._onCaptureClick.bind(_.GQ),!0);var h=function(){var q=_.Vy("yt-page-navigation-progress");
_.Eo(G.hostElement).appendChild(q)};
setTimeout(function(){_.mq().parkOrScheduleJob(h,0,"eocs",16)},0);
_.U("service_worker_push_enabled")&&_.FQ(_.uu,xKY);_.je(_.I1.getInstance(),this.dynamicActionMap,this.hostElement);_.O3(this.hostElement,"ytd-app-attached");_.mq().processSignal("aa");doa(this.hostElement);_.cz("gapi.load",_.hGj);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.FQ(_.uu,
function(){var q=document.createElement("ytd-video-preview");_.Eo(_.Eo(G.hostElement).querySelector("#video-preview")).appendChild(q)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.FQ(_.uu,function(){wmj();G.registerWithViewTransitionManager()});
if(_.ig()&&this.isAppDarkTheme()!==_.z9())this.onDarkModeToggledAction();else b=_.o_()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==b&&(_.U("enable_dark_theme_only_on_shorts")?_.tL(_.U("enable_dark_theme_only_on_shorts_control")?window.location.href:_.lB(window.location.href,{theme:"dark"})):_.RB(new _.Wf("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(dd9=new PN8(this.hostElement)),HZW=new FdL(this.hostElement),rDL=new yDD(this.hostElement),Syj=new pe8(this.hostElement)};
_.m.getThemeSettingsToLog=function(){var G=_.o_()==="USER_INTERFACE_THEME_DARK";G=_.ig()?_.z9()?"os-dark":"os-light":G?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:G,cookiesEnabled:_.ri()}};
_.m.detached=function(){_.nv(this.guideInnerContent);_.uu.cancelJob(vM);vM=0;_.uu.cancelJob(Q7);Q7=0;_.k3X(P$5);P$5.length=0;zce=_.Vlv=null;_.PQ().dispose();_.U("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.lx(_.I1.getInstance(),dd9.playlistHandlerActionMap,dd9.JSC$32576_clientRoot);_.lx(_.I1.getInstance(),HZW.downloadManagerActionMap,HZW.JSC$32871_clientRoot);_.lx(_.I1.getInstance(),rDL.feedbackCollectorActionMap,rDL.JSC$32866_clientRoot);
for(var G=_.e(Syj.eventListeners),b=G.next();!b.done;b=G.next()){var I=_.e(b.value);b=I.next().value;I=I.next().value;I=_.e(I);for(var h=I.next();!h.done;h=I.next()){var q=_.e(h.value);h=q.next().value;q=q.next().value;b.removeEventListener(h,q)}}_.lx(_.I1.getInstance(),Syj.autonavPauseActionMap,Syj.JSC$20388_clientRoot)};
_.m.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.m$().getFlag(186)};
_.m.computeIsInlinePreviewEnabled=function(G,b,I){return!I&&_.ZvW({miniplayerIsActive:G,miniplayerPlaybackState:b})};
_.m.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.wK({type:"SET_FROSTED_GLASS_MODE",payload:!_.U("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"}))};
_.m.computeIsFrostedGlassDisabled=function(G,b,I,h){return G||b||I||h&&_.U("web_frosted_glass_disable_watch")};
_.m.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.U("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.m.computeIsHomePage=function(G,b){if(!G||b==null||!b.endpoint)return!1;var I;return((I=_.g(b.endpoint,_.jL))==null?void 0:I.browseId)==="FEwhat_to_watch"};
_.m.updateIsChannelOrPlaylistPage=function(){if(_.U("web_frosted_glass")){var G,b,I=(b=(G=_.LL().resolve(_.vf(_.Ck)))==null?void 0:G.getCurrentPage())==null?void 0:b.pageSubtype;this.isChannelOrPlaylistPage=I?["channel","channels","playlist"].includes(I):!1}};
_.m.scheduleFrostedGlassInitialization=function(){var G=this;_.U("web_frosted_glass")&&_.mq().parkOrScheduleJob(function(){G.isFrostedGlassInitialized=!0},0,_.z_(["eocs",
"cr"]),300)};
_.m.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.lMB(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.wK({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.wK({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.m.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(WML(!0))};
_.m.onYtSignalActionRequestPersistentStorage=function(){if(!_.U("request_persistent_storage_killswitch")){var G=_.LL().resolve(_.SM9);G.cachedPersistStatePromise||(G.cachedPersistStatePromise=jwK())}};
_.m.handleYtChannelCreationFormEndpoints=function(G){G&&this.ytComponentBehavior.resolveCommand(G)};
_.m.handleShowEngagementPanelEndpoint=function(G){G&&this.ytComponentBehavior.resolveCommand(G)};
_.m.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(WML(!1))};
_.m.initIconDefs=function(G,b){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(b);document.body.appendChild(I);return I};
_.m.onWindowResized=function(){_.wL(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var G=_.An.getInstance();G.documentWidth_=document.body.clientWidth;pZ1(G)};
_.m.onWindowScrolled=function(){var G=_.LL().resolve(_.Ck).getCurrentPage();if(G!=null&&G.getScrollTop){var b=this.ytdReduxBehavior,I=b.dispatch;G=G.getScrollTop()<=0;I.call(b,_.wK({type:"SET_SCROLL_AT_TOP",payload:G}))}};
_.m.guideIsVisibleButNotPersistentSelectorChanged=function(){var G=_.LL().resolve(_.Ck).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));_.E3(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.m.getCurrentPageScrollableElementType=function(){var G=_.LL().resolve(_.Ck).getCurrentPage();if(G&&G.getPageScrollingElement())return G.getPageScrollingElement().nodeName};
_.m.observeGuideVisibility=function(){var G=_.An.getInstance(),b=this.miniGuideVisible;G.guidePersistentAndVisible_=this.guidePersistentAndVisible;G.miniGuideVisible_=b;pZ1(G)};
_.m.observePersistentPanelVisibility=function(){var G=_.An.getInstance();G.persistentPanelVisible_=this.persistentPanelVisible;pZ1(G)};
_.m.handleEduDismissAction=function(G){G&&G.eduDismissAction&&(_.wL(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.DFn.getInstance(),_.sN.set(G.eduDismissAction.key+"-dismissed",!0))};
_.m.handleEduImpressionAction=function(G){if(G&&G.eduImpressionAction){var b=_.DFn.getInstance();G=G.eduImpressionAction.key;b.JSC$13252_eduDisplayedThisLoad_[_.V1B[G].setKey||G]=!0;_.sN.set(G+"-impression",parseInt(_.sN.get(G+"-impression")||0,10)+1)}};
_.m.onYtSignalActionConfirmMentionsEdu=function(){_.wL(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Zg.getInstance();_.MS.set("edu-dismissed",!0)};
_.m.onYtSignalActionRecordMentionsEduImpression=function(){_.Zg.getInstance();var G=_.MS.set,b=parseInt(_.MS.get("edu-impressions"),10);G.call(_.MS,"edu-impressions",(isFinite(b)?b:0)+1)};
_.m.onYtPageManagerAttached=function(G){var b;((b=_.a_(G))==null?void 0:b.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.m.onInvokeInstrumentManagerAction=function(G,b){BpD(b,G)};
_.m.updateIconSet=function(){var G=this.hostElement.querySelector("#masthead");if(G){var b=_.pX(G),I=b.querySelector("g#yt-logo-updated");I&&(G=document.createElementNS("http://www.w3.org/2000/svg","defs"),G.appendChild(I.cloneNode(!0)),(b=b.querySelector("g#yt-logo-red-updated"))&&G.appendChild(b.cloneNode(!0)),this.initIconDefs("yt-logos-ext",G))}};
_.m.updateMastheadData=function(){var G=this,b,I,h,q,l;return _.c(function(V){if(V.nextAddress==1){b=G.data;I=G.hostElement.querySelector("#masthead");if(!I)return V.return();_.D1(G,function(){I.data=G.topbarData});
if(!G.get("response.topbar",b)||G.get("response.topbar.responseContext.maxAgeSeconds",b)===0)return V.jumpTo(0);if(h=_.LL().resolve(_.Kx))return V.yield(h(),6);q=_.LL().resolve(_.MM);return V.yield(q.put("service:topbar:fallback",new _.ZF({innertubeResponse:G.get("response.topbar",b)})),0)}return(l=V.yieldResult)?V.yield(l.put("service:topbar:fallback",new _.ZF({innertubeResponse:G.get("response.topbar",b)})),0):V.jumpTo(0)})};
_.m.computeTopbarData=function(G){if(!G)return null;var b;return this.isShortsPage&&this.topbarData&&!_.g((b=G.response)==null?void 0:b.topbar,k5L)?this.topbarData:G.response&&"topbar"in G.response?_.g(G.response.topbar,k5L)||null:null};
_.m.onSetTheaterModeEnabled=function(G,b){this.isTheaterModeSession=b.enabled;this.setTheaterModeStyles(b.enabled)};
_.m.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.m.onDarkModeToggledAction=function(){var G=_.tB(window.location.href);if(!_.k52(G)){(G=!!_.jO(window.location.href).themeRefresh)&&_.RB(new _.Wf("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!G){$K3();G={themeRefresh:1};var b=_.LL().resolve(_.Ck);if(b.isOnWatch()){var I,h;b=((I=b.getPlayerFromWatch())==null?void 0:(h=I.getPlayer())==null?void 0:h.getCurrentTime())||0;b>=1&&(G.time_continue=Math.floor(b))}_.ri()||_.o_()!=="USER_INTERFACE_THEME_DARK"||(G.theme="dark");_.tL(_.lB(window.location.href,
G))}_.U("web_appshell_refresh_trigger")&&_.hd.caches&&this.refreshAppShellResponse();I=_.dL(window.location.href);_.oF(_.LL().resolve(_.i7),_.J_(I,"theme"))}};
_.m.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.m.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.m.onPlayerFullscreen=function(G){_.Kv();this.playerFullscreen=G};
_.m.setRestrictedMode=function(G){var b=_.m$();_.eX(0,58,G);b.save();_.LL().resolve(_.id).reload()};
_.m.onPageChanged=function(G){G.detail.newPageType==="ytd-watch-flexy"||G.detail.newPageType==="ytd-watch-fixie"||G.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.TO("WEB_PAGE_TYPE_WATCH")):G.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.TO("WEB_PAGE_TYPE_SHORTS")):G.detail.newPageType==="ytd-browse"&&G.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.TO("WEB_PAGE_TYPE_MINI_APP")):_.U("web_frosted_glass")&&G.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.TO("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.TO("WEB_PAGE_TYPE_UNKNOWN"));G.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.m.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.m.onGuideToggleTap=function(){_.O3(this.hostElement,"yt-guide-toggle")};
_.m.onGuideToggleHover=function(){_.O3(this.hostElement,"yt-guide-hover")};
_.m.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.m.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.m.setMastheadTheme=function(){var G=_.pX(this.hostElement).querySelector("#masthead");G&&(G.dark=G.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),G.isDarkThemeForced=!1)};
_.m.onRequestPanelModeChange=function(G,b){this.hideHeaderShadow=b.mode!=="seamed"};
_.m.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.m.onDrawerIronSelect=function(G){_.a_(G).id==="guide"&&this.processDrawerIronSelect()};
_.m.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var G="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(G="opened"));_.O3(this.hostElement,"yt-autonav-pause-guide-"+G)};
_.m.onAddElementToApp=function(G){_.Eo(this.hostElement).appendChild(G.detail)};
_.m.onThrottledScroll=function(){var G=_.LL().resolve(_.Ck).getCurrentPage();G&&(this.scrollAtTop=G.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.m.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.m.setFullscreen=function(){if(_.U("external_fullscreen")||!this.isWatchPage){var G=_.U("kevlar_fullerscreen_root_only_killswitch")?!!_.Kv():!!_.Kv()&&_.Kv()===document.documentElement;G=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(G||this.isFullWindowSession);this.fullscreen!==G&&((this.fullscreen=G)&&_.E3(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Cw().dispatch(_.wIe(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.wL(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.m.setFullscreenLoggingForShorts=function(G){var b,I,h;return _.c(function(q){if(q.nextAddress==1)return q.yield((b=_.Kk())==null?void 0:b.getPlayerPromise(),2);I=q.yieldResult;(h=I)==null||h.setAppFullscreen(G);_.ip(q)})};
_.m.updateMastheadCssHeight=function(){var G=this.mastheadHeight;this.fullscreen&&(G=0);_.G8(this.hostElement,{"--ytd-masthead-height":G+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.m.updateNetworkStatusBannerDisplayStatus=function(){var G="unset";this.fullscreen&&(G="none");_.G8(this.hostElement,{"--ytd-network-status-banner-display":G})};
_.m.updateNetworkStatusBannerCssHeight=function(){var G="unset";this.fullscreen&&(G="0px");_.G8(this.hostElement,{"--ytd-network-status-banner-max-height":G})};
_.m.updateScrollAndMasthead=function(G,b,I,h){this.iMaxTheaterMode||(h=!1);var q=_.LL().resolve(_.Ck).getCurrentPage();G||b||h?(document.body.classList.add("no-scroll"),q.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.I9(this,this.onScroll)),q.setScrollTop(0),_.G8(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Hl()+"px"})):I?_.O3(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.O3(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
q.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.I9(this,this.onScroll)));this.mastheadHidden=G||b||I;this.updateMastheadCssHeight();_.U("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.m.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.m.onYtNavigateAction=function(G){G=this.get("navigateAction.endpoint",G);_.O3(this.hostElement,"yt-navigate",{endpoint:G})};
_.m.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var G=document.createElement("yt-create-family-dialog");_.Eo(this.hostElement).appendChild(G);this.hasCreateFamilyDialog=!0}};
_.m.onSetPushNotificationsEnabledCommand=function(G){var b=this,I=_.g(G,cA8);I&&typeof I.enabled==="boolean"&&(Notification.permission!=="granted"?caD().then(function(){Notification.permission==="granted"?(wvW(!I.enabled).then(S01),I.successAction&&_.pv(b.hostElement,[I.successAction])):I.failureAction&&_.pv(b.hostElement,[I.failureAction])}):(wvW(!I.enabled).then(S01),I.successAction&&_.pv(this.hostElement,[I.successAction])))};
_.m.onYtSignalActionEnableChromeNotifications=function(){kBW(!0)};
_.m.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.g(this.topbarData.hotkeyDialog,QE1)}}})};
_.m.onYtSignalActionShowKeyboardShortcutDialog=function(){_.wL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.m.onYtEndpointChangeHandler=function(G,b){var I=_.Jx(_.oC);I.pendingPrefetchJob_&&(b=!(!b||b.autonav!="1"),I.pendingPrefetchJob_.resolve(G&&_.DIr(G)?_.cEX(G,b):""),I.pendingPrefetchJob_=null);_.wL(this.hostElement,"yt-pause-active-page-context");_.wL(this.hostElement,"ytd-log-youthere-nav");_.wL(this.hostElement,"yt-prepare-page-dispose")};
_.m.handleCommandWithCommandHandler=function(G,b){_.Xv.instance.resolveCommand(G,{form:{element:b}})};
_.m.onYtTimedCommand=function(G){var b=this;G=_.g(G,G5W);var I=G.command;I&&_.q_(_.uu,function(){var h=_.g(I,_.s4Q);h?(_.Xv.instance.resolveCommand(I),b.maybeLogGetAnswerRequestTick(h)):_.Su(b.hostElement,[I],b.hostElement)},G.timeoutMs||0)};
_.m.maybeLogGetAnswerRequestTick=function(G){G&&G.isFirstRequest&&(_.US("search_overview_answer"),_.sS("so_rq",void 0,"search_overview_answer"))};
_.m.onYtSignalActionSkipNavigation=function(){var G=_.LL().resolve(_.Ck).getCurrentPage();_.l6(G)};
_.m.onYtSignalActionCopyDebugData=function(){Zka()};
_.m.handleEntityUpdateCommand=function(G){_.jn(_.g(G,_.Rqb).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.m.logFlowLoggingEventCommand=function(G){if(G=_.g(G,_.OlB))if(G.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var b=G.flowEventNamespace,I=G.flowEventType,h=G.flowType;h&&b&&I&&_.IbO(_.bg(b,I,G.flowEventMetadata),h)}else{b=_.I_();I=G.flowEventNamespace;h=G.flowEventType;var q=G.flowType;q&&I&&h&&b.logFlowEvent(_.bg(I,h,G.flowEventMetadata),q,G.flowNonce)}};
_.m.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.m.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.m.onTouchStart=function(){var G=_.dZ();_.gL()&&_.or(G.JSC$13374_screenManager,{visualElement:G.ve})};
_.m.handleSelectLanguageCommand=function(G){if(G=_.g(G,e9D).hl){var b=_.m$();b.set("hl",G);b.save();_.LL().resolve(_.id).reload()}};
_.m.handleConfirmDialogEndpoint=function(G){(G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&this.ytOpenPopupBehavior.openPopup(G)};
_.m.handleOpenPopupNavigationEndpoints=function(G,b){(G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&this.ytOpenPopupBehavior.openPopup(G,b)};
_.m.handleSaveCommandToSessionStorage=function(G){if(G=_.g(G,_.t0O)){var b=G.key;b&&G.command&&window.sessionStorage.setItem(b,JSON.stringify(G.command))}};
_.m.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"&&_.K1(G)})};
_.m.onDeviceThemeChanged=function(){var G=_.z9();_.eX(_.m$(),185,G);_.m$().save()};
_.m.handleYtRegisterPromoCommand=function(G){if(_.g(G,DVf)){var b=_.LL().resolve(_.Ck).getCurrentPage()||this.hostElement;lM8().registerPromoCommand(_.g(G,DVf),b)}};
_.m.onYtNavigateHomeAction=function(){if(!_.U("kevlar_miniplayer_navigate_home_from_app_killswitch")){var G,b,I,h,q=(h=(G=this.topbarData)==null?void 0:(b=G.logo)==null?void 0:(I=b.topbarLogoRenderer)==null?void 0:I.endpoint)!=null?h:_.aa;this.ytComponentBehavior.resolveCommand(q)}};
_.m.onYtLocationCollectionCommand=function(G){n4D(_.g(G,AA9))};
_.m.onYtGetLocationCommand=function(G){nxf(_.g(G,gX8),this)};
_.m.updateRenderGuideFromBinding=function(G){this.renderGuide=G.detail.value};
_.m.updateGuidePersistentAndVisibleFromBinding=function(G){this.guidePersistentAndVisible=G.detail.value};
_.m.updateMiniGuideVisibleFromBinding=function(G){this.miniGuideVisible=G.detail.value};
_.m.onThemeSelected=function(G,b){var I=_.m$(),h=G||b?G:_.z9(),q=(h&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!h&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.k52(_.tB(window.location.href));_.eX(0,165,G);_.eX(0,174,b);I.save();q&&_.wL(this.hostElement,"yt-dark-mode-toggled-action",[h]);_.wL(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.m.getCurrentTheme=function(){return _.ig()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.o_()};
_.m.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.m.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.m.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.m.handleShowConsentPrimitive=function(G){var b=this,I,h;return _.c(function(q){if(q.nextAddress==1){try{I=(h=_.Kk())==null?void 0:h.getPlayerPromise()}catch(l){}return q.yield(ky8(G,I),2)}_.wL(b.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.ip(q)})};
_.m.handleSelectActiveIdentityEndpointInternal=function(G){_.Me();G=_.g(G,_.a9z);if(G!=null&&G.supportedTokens){G=_.e(G.supportedTokens);for(var b=G.next();!b.done;b=G.next())b=b.value,b.accountSigninToken&&_.tL(b.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.m.handleUpdatePermissionRoleCommand=function(G){if(G=_.g(G,_.YQi)){var b;this.hasDelegation=!((b=_.g(G.renderer,_.NsA))==null||!b.status)}};
_.m.registerWithViewTransitionManager=function(){var G=_.LL().resolve(_.vf(_.a8));if(G){var b,I=(b=this.guide)==null?void 0:b.querySelector("#scrim"),h;b=(h=this.guide)==null?void 0:h.querySelector("#contentContainer");I&&b&&G.isAnyTransitionEnabled&&(h={},G.viewTransitionCoordinator.registerElement(I,(h.slide="app-drawer-scrim-page-transition",h["lockup-to-watch"]="app-drawer-scrim-page-transition",h["learning-journey"]="app-drawer-scrim-page-transition",h)),I={},G.viewTransitionCoordinator.registerElement(b,
(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)))}};
_.kV.Object.defineProperties(HJ.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.U("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.kV.Object.defineProperties(HJ,{template:{configurable:!0,enumerable:!0,get:function(){if(tr5===void 0){var G=document.createElement("template");_.Z(G,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);tr5=G}G=tr5;return G}}});
HJ.prototype.onOpenHotkeyDialog=HJ.prototype.onOpenHotkeyDialog;HJ.prototype.setFullscreen=HJ.prototype.setFullscreen;HJ.prototype.onAddElementToApp=HJ.prototype.onAddElementToApp;HJ.prototype.onDrawerIronSelect=HJ.prototype.onDrawerIronSelect;HJ.prototype.onGuideOpenButtonHover=HJ.prototype.onGuideOpenButtonHover;HJ.prototype.onRequestPanelModeChange=HJ.prototype.onRequestPanelModeChange;HJ.prototype.onPageDataUpdated=HJ.prototype.onPageDataUpdated;HJ.prototype.onPageChanged=HJ.prototype.onPageChanged;
HJ.prototype.onSetTheaterModeEnabled=HJ.prototype.onSetTheaterModeEnabled;HJ.prototype.updateMastheadData=HJ.prototype.updateMastheadData;HJ.prototype.onYtPageManagerAttached=HJ.prototype.onYtPageManagerAttached;HJ.prototype.observePersistentPanelVisibility=HJ.prototype.observePersistentPanelVisibility;HJ.prototype.observeGuideVisibility=HJ.prototype.observeGuideVisibility;HJ.prototype.guideIsVisibleButNotPersistentSelectorChanged=HJ.prototype.guideIsVisibleButNotPersistentSelectorChanged;
HJ.prototype.isInlinePreviewEnabledChanged=HJ.prototype.isInlinePreviewEnabledChanged;HJ.prototype.isWatchPageChanged=HJ.prototype.isWatchPageChanged;HJ.prototype.dispatchFrostedGlassMode=HJ.prototype.dispatchFrostedGlassMode;_.R([_.z(_.wN),_.n("design:type",Object)],HJ.prototype,"ytdReduxBehavior",void 0);_.R([_.z(_.am.YtEventForwardingBehavior),_.n("design:type",Object)],HJ.prototype,"ytEventForwardingBehavior",void 0);
_.R([_.z(_.MD.YtOpenPopupBehavior),_.n("design:type",Object)],HJ.prototype,"ytOpenPopupBehavior",void 0);_.R([_.z(_.tV.YtActionHandlerBehavior),_.n("design:type",Object)],HJ.prototype,"ytActionHandlerBehavior",void 0);
_.R([_.z({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.I1.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.U("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)}}),
_.n("design:type",Object)],HJ.prototype,"ytActionRouterBehavior",void 0);_.R([_.z(vM9.YtdAppBehavior),_.n("design:type",Object)],HJ.prototype,"ytdAppBehavior",void 0);_.R([_.z(_.ZN.YtEndpointBehavior),_.n("design:type",Object)],HJ.prototype,"ytEndpointBehavior",void 0);_.R([_.z(dGD.YtEndpointHandlerWithYpcBehavior),_.n("design:type",Object)],HJ.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.R([_.z(zfc.YtLogYpcFlowCommandsBehavior),_.n("design:type",Object)],HJ.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.R([_.z(_.p.YtRendererBehavior),_.n("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.R([_.z(_.EN.YtComponentBehavior),_.n("design:type",Object)],HJ.prototype,"ytComponentBehavior",void 0);_.R([_.H({selector:_.KuK}),_.n("design:type",Object)],HJ.prototype,"tabGesturesIsActive",void 0);_.R([_.H(),_.n("design:type",Boolean)],HJ.prototype,"renderGuide",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],HJ.prototype,"guidePersistentAndVisible",void 0);_.R([_.H({selector:_.JL1}),_.n("design:type",Boolean)],HJ.prototype,"guideIsVisibleButNotPersistent",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],HJ.prototype,"standalone",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],HJ.prototype,"miniGuideVisible",void 0);
_.R([_.H(),_.n("design:type",Object)],HJ.prototype,"persistentPanelEnabled",void 0);_.R([_.H({selector:plf,reflectToAttribute:!0}),_.n("design:type",Boolean)],HJ.prototype,"persistentPanelVisible",void 0);_.R([_.H({selector:_.WkO}),_.n("design:type",Number)],HJ.prototype,"miniplayerPlaybackState",void 0);_.R([_.H({selector:_.g4,reflectToAttribute:!0}),_.n("design:type",Boolean)],HJ.prototype,"miniplayerIsActive",void 0);
_.R([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.n("design:type",Boolean)],HJ.prototype,"isInlinePreviewEnabled",void 0);_.R([_.H(),_.n("design:type",Boolean)],HJ.prototype,"isInlinePreviewDisabled",void 0);_.R([_.H({reflectToAttribute:!0,value:function(){return _.Sk("START_IN_FULL_WINDOW_MODE")}}),
_.n("design:type",Boolean)],HJ.prototype,"mastheadHidden",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],HJ.prototype,"playerFullscreen",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],HJ.prototype,"fullscreen",void 0);_.R([_.H({value:!1,reflectToAttribute:!0}),_.n("design:type",Boolean)],HJ.prototype,"hideHeaderShadow",void 0);
_.R([_.H({value:{GUIDE_ALT_LABEL:_.qP("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.n("design:type",Object)],HJ.prototype,"menuStrings",void 0);_.R([_.H({computed:"computeTopbarData(data)"}),_.n("design:type",Object)],HJ.prototype,"topbarData",void 0);_.R([_.H({selector:_.yVO,reflectToAttribute:!0}),_.n("design:type",Boolean)],HJ.prototype,"isWatchPage",void 0);_.R([_.H({selector:_.rVj,reflectToAttribute:!0}),_.n("design:type",Boolean)],HJ.prototype,"isShortsPage",void 0);
_.R([_.H({selector:function(G){return _.AQ(G)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.n("design:type",Boolean)],HJ.prototype,"isMiniAppPage",void 0);_.R([_.H({selector:function(G){return _.AQ(G)==="WEB_PAGE_TYPE_BROWSE"}}),
_.n("design:type",Boolean)],HJ.prototype,"isBrowsePage",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Boolean)],HJ.prototype,"scrolling",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],HJ.prototype,"hasDelegation",void 0);_.R([_.H({reflectToAttribute:!0,value:!1}),_.n("design:type",Boolean)],HJ.prototype,"guideScrolledByTouch",void 0);_.R([_.H(),_.n("design:type",Object)],HJ.prototype,"isFrostedGlassInitialized",void 0);
_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],HJ.prototype,"frostedGlassExp",void 0);_.R([_.H({selector:function(G){return G.ui.chipBarIsSticky}}),
_.n("design:type",Boolean)],HJ.prototype,"chipBarIsSticky",void 0);_.R([_.H({computed:"computeIsHomePage(isBrowsePage, data)"}),_.n("design:type",Boolean)],HJ.prototype,"isHomePage",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],HJ.prototype,"hasPendingWatchNavigation",void 0);_.R([_.H({reflectToAttribute:!0}),_.n("design:type",Object)],HJ.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.R([_.H(),_.n("design:type",Object)],HJ.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.R([_.Sr("guide"),_.n("design:type",Object)],HJ.prototype,"guide",void 0);_.R([_.Sr("guide-service"),_.n("design:type",IWY)],HJ.prototype,"guideService",void 0);_.R([_.Sr("guide-inner-content"),_.n("design:type",HTMLDivElement)],HJ.prototype,"guideInnerContent",void 0);_.R([_.lH("#persistent-panel-container"),_.n("design:type",HTMLElement)],HJ.prototype,"persistentPanelContainer",void 0);
_.R([_.H({selector:_.aN2}),_.n("design:type",String)],HJ.prototype,"frostedGlassMode",void 0);_.R([_.q5("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HJ.prototype,"dispatchFrostedGlassMode",null);_.R([_.H({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.n("design:type",Object)],HJ.prototype,"isFrostedGlassDisabled",void 0);
_.R([_.q5("isWatchPage"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HJ.prototype,"isWatchPageChanged",null);_.R([_.P("isHomePage","chipBarIsSticky"),_.n("design:type",Boolean),_.n("design:paramtypes",[])],HJ.prototype,"applyFrostedGlassToChipBar",null);_.R([_.H(),_.n("design:type",Object)],HJ.prototype,"isChannelOrPlaylistPage",void 0);
_.R([_.Dd("isInlinePreviewEnabled"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HJ.prototype,"isInlinePreviewEnabledChanged",null);_.R([_.q5("guideIsVisibleButNotPersistent"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HJ.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.R([_.q5("guidePersistentAndVisible","miniGuideVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HJ.prototype,"observeGuideVisibility",null);_.R([_.q5("persistentPanelVisible"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HJ.prototype,"observePersistentPanelVisibility",null);
_.R([_.hI("attached"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],HJ.prototype,"onYtPageManagerAttached",null);_.R([_.q5("data"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype",Promise)],HJ.prototype,"updateMastheadData",null);_.R([_.hI("yt-set-theater-mode-enabled"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent,Object]),_.n("design:returntype")],HJ.prototype,"onSetTheaterModeEnabled",null);
_.R([_.hI("yt-page-type-changed"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],HJ.prototype,"onPageChanged",null);_.R([_.hI("yt-page-data-updated"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HJ.prototype,"onPageDataUpdated",null);_.R([_.hI("yt-request-panel-mode-change"),_.n("design:type",Function),_.n("design:paramtypes",[Event,Object]),_.n("design:returntype")],HJ.prototype,"onRequestPanelModeChange",null);
_.R([_.hI("yt-guide-hover"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HJ.prototype,"onGuideOpenButtonHover",null);_.R([_.hI("app-drawer-transitioned"),_.n("design:type",Function),_.n("design:paramtypes",[Event]),_.n("design:returntype")],HJ.prototype,"onDrawerIronSelect",null);_.R([_.hI("yt-add-element-to-app"),_.n("design:type",Function),_.n("design:paramtypes",[CustomEvent]),_.n("design:returntype")],HJ.prototype,"onAddElementToApp",null);
_.R([_.hI("yt-set-fullerscreen-styles"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HJ.prototype,"setFullscreen",null);_.R([_.hI("yt-open-hotkey-dialog"),_.n("design:type",Function),_.n("design:paramtypes",[]),_.n("design:returntype")],HJ.prototype,"onOpenHotkeyDialog",null);_.R([_.N({is:"ytd-app"})],HJ);_.mq().processSignal("eor");
_.uG();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
